/* ═══════════════════════════════════════════
   MERCY HOUSE — MAIN STYLESHEET
   Version: 1.0.0
═══════════════════════════════════════════ */

:root {
  --cream: #f7f3ec;
  --warm-white: #fdfaf5;
  --gold: #c8963e;
  --gold-light: #e8b96a;
  --sage: #7a8c6e;
  --sage-dark: #5a6b52;
  --terracotta: #c4674a;
  --charcoal: #2c2c2c;
  --mid: #5a5a5a;
  --border: rgba(200,150,62,0.22);
  --shadow: 0 8px 40px rgba(0,0,0,0.08);
  --radius: 14px;
  --transition: .25s ease;
}

/* ── RESET ── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'DM Sans', sans-serif;
  background: var(--warm-white);
  color: var(--charcoal);
  overflow-x: hidden;
  line-height: 1.6;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button { font-family: inherit; }

/* ── NAV ── */
#navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 5%;
  background: rgba(253,250,245,0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow var(--transition);
}
#navbar.scrolled { box-shadow: 0 2px 24px rgba(0,0,0,0.07); }

.nav-logo { display: flex; align-items: center; gap: 11px; text-decoration: none; }
.nav-logo-icon {
  width: 40px; height: 40px;
  background: var(--gold); border-radius: 50%;
  display: flex; align-items: center; justify-content: center; font-size: 20px;
}
.nav-logo-text {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.4rem; font-weight: 600; color: var(--charcoal); line-height: 1;
}
.nav-logo-text span {
  display: block; font-size: .7rem; font-weight: 400;
  color: var(--mid); font-family: 'DM Sans'; letter-spacing: .08em;
}
.nav-links { display: flex; align-items: center; gap: 26px; list-style: none; }
.nav-links a {
  text-decoration: none; font-size: .86rem; font-weight: 500;
  color: var(--mid); letter-spacing: .04em; transition: color var(--transition);
}
.nav-links a:hover { color: var(--gold); }
.nav-links .nav-cta {
  background: var(--gold); color: #fff !important;
  padding: 8px 20px; border-radius: 40px;
  transition: background var(--transition) !important;
}
.nav-links .nav-cta:hover { background: var(--terracotta) !important; }
.nav-links .nav-crm {
  border: 1.5px solid var(--sage); color: var(--sage-dark) !important;
  padding: 7px 17px; border-radius: 40px;
  transition: all var(--transition) !important;
}
.nav-links .nav-crm:hover { background: var(--sage); color: #fff !important; }
.hamburger {
  display: none; flex-direction: column; gap: 5px;
  cursor: pointer; background: none; border: none; padding: 4px;
}
.hamburger span { width: 22px; height: 2px; background: var(--charcoal); border-radius: 2px; transition: .3s; }

/* ── SECTIONS SHARED ── */
section { padding: 96px 7%; }
.section-cream { background: var(--cream); }
.section-light { background: var(--warm-white); }
.section-dark  { background: var(--charcoal); color: #fff; }
.section-label {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .74rem; font-weight: 600; letter-spacing: .12em;
  text-transform: uppercase; color: var(--gold); margin-bottom: 13px;
}
.section-label::before { content: ''; width: 22px; height: 1.5px; background: var(--gold); }
.section-label.center { justify-content: center; }
.section-label.dark-label { color: rgba(200,150,62,0.85); }
.section-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2rem, 3.8vw, 3.4rem); font-weight: 300; line-height: 1.12;
  color: var(--charcoal); margin-bottom: 16px;
}
.section-title em   { font-style: italic; color: var(--gold); }
.section-title.light { color: #fff; }
.section-title.center { text-align: center; }
.section-sub {
  font-size: .96rem; color: var(--mid); line-height: 1.8;
  max-width: 540px; margin-bottom: 52px;
}
.section-sub.light  { color: rgba(255,255,255,0.55); }
.section-sub.center { text-align: center; max-width: 100%; }

/* BUTTONS */
.btn-primary {
  background: var(--gold); color: #fff;
  padding: 13px 30px; border-radius: 50px;
  text-decoration: none; font-weight: 600; font-size: .9rem;
  transition: all .3s; display: inline-flex; align-items: center; gap: 8px;
  border: none; cursor: pointer;
}
.btn-primary:hover { background: var(--terracotta); transform: translateY(-2px); box-shadow: 0 12px 30px rgba(200,150,62,.3); }
.btn-outline {
  border: 1.5px solid var(--charcoal); color: var(--charcoal);
  padding: 12px 30px; border-radius: 50px; text-decoration: none;
  font-weight: 500; font-size: .9rem; transition: all .3s;
}
.btn-outline:hover { border-color: var(--gold); color: var(--gold); }

/* ── HERO ── */
#hero {
  min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr;
  padding-top: 78px; position: relative; overflow: hidden;
}
.hero-left {
  display: flex; flex-direction: column; justify-content: center;
  padding: 80px 5% 80px 7%; position: relative; z-index: 2;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(200,150,62,.1); border: 1px solid var(--border);
  border-radius: 40px; padding: 6px 16px; font-size: .75rem;
  font-weight: 500; color: var(--gold); letter-spacing: .08em;
  text-transform: uppercase; margin-bottom: 26px; width: fit-content;
}
.hero-heading {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.8rem, 5vw, 5.2rem); font-weight: 300;
  line-height: 1.1; color: var(--charcoal); margin-bottom: 26px;
}
.hero-heading em     { font-style: italic; color: var(--gold); display: block; }
.hero-heading strong { font-weight: 600; display: block; }
.hero-desc { font-size: 1rem; color: var(--mid); line-height: 1.8; max-width: 460px; margin-bottom: 40px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-stats {
  display: flex; gap: 36px; margin-top: 52px; padding-top: 36px;
  border-top: 1px solid var(--border);
}
.hero-stat-num { font-family: 'Cormorant Garamond', serif; font-size: 2.2rem; font-weight: 600; line-height: 1; }
.hero-stat-label { font-size: .75rem; color: var(--mid); margin-top: 4px; letter-spacing: .04em; }
.hero-right { position: relative; overflow: hidden; }
.hero-image-grid { position: absolute; inset: 0; display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; }
.hero-img-p { overflow: hidden; background-size: cover; background-position: center; }
.hero-overlay-card {
  position: absolute; bottom: 44px; left: -28px;
  background: #fff; border-radius: 14px; padding: 18px 22px;
  box-shadow: var(--shadow); display: flex; align-items: center; gap: 12px;
  z-index: 3; border: 1px solid var(--border);
  animation: floatCard 4s ease-in-out infinite;
}
@keyframes floatCard { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-8px)} }
.hero-card-icon { font-size: 1.8rem; }
.hero-card-title { font-weight: 600; font-size: .88rem; }
.hero-card-sub   { font-size: .75rem; color: var(--mid); }

/* ── ABOUT ── */
#about { background: var(--cream); }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.about-visual { position: relative; padding-bottom: 55px; }
.about-main-img {
  width: 100%; aspect-ratio: 4/5;
  background: url('https://images.unsplash.com/photo-1516307365426-bea591f05011?w=700') center/cover;
  border-radius: 4px 80px 4px 4px;
}
.about-accent-img {
  position: absolute; bottom: 0; right: -20px; width: 52%; aspect-ratio: 1;
  background: url('https://images.unsplash.com/photo-1581579438747-1dc8d17bbce4?w=400') center/cover;
  border-radius: 4px; border: 6px solid var(--cream); box-shadow: var(--shadow);
}
.about-years-badge {
  position: absolute; top: 24px; left: -20px;
  background: var(--gold); color: #fff; border-radius: 12px; padding: 14px 18px;
  text-align: center; box-shadow: 0 8px 24px rgba(200,150,62,.4);
}
.about-years-badge .num { font-family: 'Cormorant Garamond', serif; font-size: 2.6rem; font-weight: 600; line-height: 1; }
.about-years-badge .lbl { font-size: .7rem; letter-spacing: .06em; opacity: .9; }
.about-content p { color: var(--mid); line-height: 1.8; margin-bottom: 12px; }
.about-pillars { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; margin-top: 34px; }
.about-pillar { background: #fff; border-radius: 12px; padding: 18px; border: 1px solid var(--border); transition: box-shadow var(--transition); }
.about-pillar:hover { box-shadow: var(--shadow); }
.pillar-icon  { font-size: 1.6rem; margin-bottom: 8px; }
.pillar-title { font-weight: 600; font-size: .88rem; margin-bottom: 4px; }
.pillar-text  { font-size: .8rem; color: var(--mid); line-height: 1.6; }

/* ── SERVICES ── */
#services { background: var(--warm-white); }
.services-header { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 16px; margin-bottom: 50px; }
.services-intro { color: var(--mid); max-width: 340px; line-height: 1.7; font-size: .9rem; }
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.service-card {
  background: var(--cream); border-radius: 15px; padding: 30px 24px;
  border: 1px solid var(--border); transition: all var(--transition);
  position: relative; overflow: hidden;
}
.service-card::before {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--terracotta));
  transform: scaleX(0); transition: transform var(--transition);
}
.service-card:hover::before  { transform: scaleX(1); }
.service-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.service-icon { width: 50px; height: 50px; background: rgba(200,150,62,.1); border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; margin-bottom: 16px; }
.service-title { font-weight: 600; font-size: .98rem; margin-bottom: 8px; }
.service-text  { font-size: .86rem; color: var(--mid); line-height: 1.7; }
.service-tag   { display: inline-block; margin-top: 15px; font-size: .72rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--gold); }

/* ── GALLERY ── */
#gallery { background: var(--charcoal); }
.gallery-grid { display: grid; grid-template-columns: repeat(4,1fr); grid-template-rows: 230px 230px; gap: 10px; }
.gallery-item { border-radius: 10px; overflow: hidden; position: relative; cursor: pointer; background-size: cover; background-position: center; transition: transform .3s; }
.gallery-item:hover { transform: scale(1.01); }
.gallery-item-1 { grid-column: 1/3; }
.gallery-item-6 { grid-column: 3/5; }
.gal-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.5) 0%, transparent 60%); opacity: 0; transition: opacity .3s; display: flex; align-items: flex-end; padding: 14px; }
.gallery-item:hover .gal-overlay { opacity: 1; }
.gal-label { font-size: .8rem; color: #fff; font-weight: 500; }

/* ── DONATE ── */
#donate { background: var(--cream); }
.donate-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: start; }
.donate-intro { color: var(--mid); line-height: 1.8; margin-bottom: 26px; }
.donate-amounts { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 26px; }
.amount-btn {
  border: 1.5px solid var(--border); background: #fff; border-radius: 40px;
  padding: 8px 22px; font-size: .9rem; font-weight: 500; cursor: pointer;
  transition: all .2s; font-family: 'DM Sans', sans-serif;
}
.amount-btn:hover, .amount-btn.active { background: var(--gold); border-color: var(--gold); color: #fff; }
.impact-item { display: flex; align-items: flex-start; gap: 13px; padding: 17px 0; border-bottom: 1px solid var(--border); }
.impact-item:last-child { border-bottom: none; }
.impact-icon  { font-size: 1.6rem; flex-shrink: 0; }
.impact-title { font-weight: 600; font-size: .88rem; margin-bottom: 3px; }
.impact-text  { font-size: .8rem; color: var(--mid); line-height: 1.6; }

.donate-form-card { background: #fff; border-radius: 18px; padding: 34px; border: 1px solid var(--border); box-shadow: var(--shadow); }
.donate-form-card h3 { font-family: 'Cormorant Garamond', serif; font-size: 1.7rem; margin-bottom: 4px; }
.donate-form-card > p { font-size: .86rem; color: var(--mid); margin-bottom: 24px; }

/* FORMS */
.form-row { margin-bottom: 15px; }
.form-row label { display: block; font-size: .8rem; font-weight: 600; margin-bottom: 5px; }
.form-row input,
.form-row select,
.form-row textarea {
  width: 100%; padding: 11px 14px;
  border: 1.5px solid #e4ddd2; border-radius: 9px;
  font-family: 'DM Sans', sans-serif; font-size: .9rem; outline: none;
  transition: border-color var(--transition); background: var(--warm-white); color: var(--charcoal);
}
.form-row input:focus, .form-row select:focus, .form-row textarea:focus { border-color: var(--gold); }
.form-row textarea { resize: vertical; min-height: 84px; }
.custom-amount { display: flex; align-items: center; border: 1.5px solid #e4ddd2; border-radius: 9px; overflow: hidden; background: var(--warm-white); transition: border-color var(--transition); }
.custom-amount:focus-within { border-color: var(--gold); }
.custom-amount span { padding: 11px 13px; color: var(--mid); font-weight: 600; border-right: 1.5px solid #e4ddd2; }
.custom-amount input { border: none; padding: 11px 13px; background: transparent; flex: 1; font-size: .9rem; font-family: 'DM Sans'; outline: none; }
.payment-methods { display: flex; gap: 9px; }
.pay-method { flex: 1; border: 1.5px solid #e4ddd2; border-radius: 9px; padding: 9px 6px; text-align: center; cursor: pointer; font-size: .78rem; font-weight: 500; transition: all .2s; background: #fff; font-family: 'DM Sans'; }
.pay-method:hover, .pay-method.active { border-color: var(--gold); background: rgba(200,150,62,.06); }
.pm-icon { font-size: 1.3rem; display: block; margin-bottom: 3px; }
.submit-btn { width: 100%; padding: 13px; background: var(--gold); color: #fff; border: none; border-radius: 9px; font-size: .93rem; font-weight: 600; cursor: pointer; font-family: 'DM Sans'; transition: all .3s; margin-top: 5px; }
.submit-btn:hover { background: var(--terracotta); }
.form-two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; }

/* ── CONTACT ── */
#contact { background: var(--warm-white); }
.contact-intro { text-align: center; max-width: 580px; margin: 0 auto 52px; }
.contact-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 70px; align-items: start; }
.contact-detail { display: flex; gap: 13px; margin-bottom: 22px; align-items: flex-start; }
.contact-detail-icon { width: 40px; height: 40px; flex-shrink: 0; background: rgba(200,150,62,.1); border-radius: 9px; display: flex; align-items: center; justify-content: center; font-size: 1.1rem; }
.contact-detail-label { font-size: .73rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--gold); margin-bottom: 3px; }
.contact-detail-val { font-size: .9rem; }
.contact-detail-val a:hover { color: var(--gold); }
.contact-detail-val.banking { font-size: .84rem; line-height: 1.9; }
.contact-form-card { background: var(--cream); border-radius: 16px; padding: 38px; border: 1px solid var(--border); }
.contact-form-card h3 { font-family: 'Cormorant Garamond', serif; font-size: 1.9rem; margin-bottom: 4px; }
.contact-form-card > p { font-size: .86rem; color: var(--mid); margin-bottom: 26px; }

/* ── FOOTER ── */
.site-footer { background: var(--charcoal); color: rgba(255,255,255,.7); padding: 56px 7% 28px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 44px; padding-bottom: 44px; border-bottom: 1px solid rgba(255,255,255,.1); margin-bottom: 26px; }
.footer-logo-text { font-family: 'Cormorant Garamond', serif; font-size: 1.5rem; font-weight: 600; color: #fff; margin-bottom: 10px; }
.footer-desc { font-size: .84rem; line-height: 1.75; margin-bottom: 18px; }
.footer-social { display: flex; gap: 8px; }
.footer-social a { width: 34px; height: 34px; background: rgba(255,255,255,.1); border-radius: 7px; display: flex; align-items: center; justify-content: center; color: #fff; text-decoration: none; font-size: .82rem; transition: background .2s; }
.footer-social a:hover { background: var(--gold); }
.footer-col-title { font-size: .77rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: #fff; margin-bottom: 15px; }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 9px; }
.footer-links a { font-size: .83rem; color: rgba(255,255,255,.58); text-decoration: none; transition: color .2s; }
.footer-links a:hover { color: var(--gold-light); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; font-size: .78rem; }

/* ── TOAST ── */
.toast {
  position: fixed; bottom: 26px; right: 26px; z-index: 9999;
  background: var(--charcoal); color: #fff; padding: 13px 20px;
  border-radius: 11px; font-size: .86rem; font-weight: 500;
  box-shadow: 0 8px 32px rgba(0,0,0,.25);
  transform: translateY(80px); opacity: 0;
  transition: all .4s cubic-bezier(.34,1.56,.64,1);
  display: flex; align-items: center; gap: 9px;
  border-left: 4px solid var(--gold);
  pointer-events: none;
}
.toast.show { transform: translateY(0); opacity: 1; pointer-events: auto; }
.toast.error { border-left-color: #ff6b6b; }

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .services-grid       { grid-template-columns: 1fr 1fr; }
  .footer-grid         { grid-template-columns: 1fr 1fr; }
  .gallery-grid        { grid-template-columns: 1fr 1fr; grid-template-rows: auto; }
  .gallery-grid .gallery-item { min-height: 200px; }
  .gallery-item-1, .gallery-item-6 { grid-column: auto; }
}
@media (max-width: 768px) {
  #navbar { padding: 12px 5%; }
  .nav-links {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: var(--warm-white); flex-direction: column;
    padding: 18px 5%; border-bottom: 1px solid var(--border); gap: 14px;
  }
  .nav-links.open { display: flex; }
  .hamburger { display: flex; }

  #hero          { grid-template-columns: 1fr; }
  .hero-right    { display: none; }
  .hero-left     { padding: 100px 6% 60px; }

  .about-grid,
  .donate-grid,
  .contact-grid  { grid-template-columns: 1fr; gap: 40px; }
  .about-visual  { display: none; }

  .services-grid { grid-template-columns: 1fr; }
  .footer-grid   { grid-template-columns: 1fr; gap: 28px; }
  section        { padding: 64px 5%; }
  .form-two-col  { grid-template-columns: 1fr; }
  .gallery-grid  { grid-template-columns: 1fr; }
  .gallery-item  { min-height: 220px !important; }
}
