/* ============================================================
   X-Border Ministry Incorporated — Stylesheet
   Professional faith-based design system
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,500;9..144,600;9..144,700&family=Mulish:wght@300;400;500;600;700;800&display=swap');

:root {
  --forest:      #123c34;   /* deep evergreen */
  --forest-deep: #0c2a25;
  --forest-soft: #1d5448;
  --gold:        #c79045;   /* warm brass accent */
  --gold-light:  #e2b873;
  --cream:       #f7f3ea;   /* page background */
  --cream-card:  #fffdf8;
  --ink:         #20302c;   /* body text */
  --muted:       #5d6b66;
  --line:        #e3ddcf;
  --white:       #ffffff;

  --max: 1180px;
  --radius: 14px;
  --shadow-sm: 0 4px 18px rgba(18, 60, 52, 0.08);
  --shadow-md: 0 18px 50px rgba(12, 42, 37, 0.14);
  --ease: cubic-bezier(.22,.61,.36,1);

  --font-head: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-body: 'Mulish', -apple-system, BlinkMacSystemFont, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.7;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: var(--gold); color: var(--forest-deep); }

img { display: block; max-width: 100%; }

a { color: var(--forest-soft); text-decoration: none; transition: color .25s var(--ease); }
a:hover { color: var(--gold); }

h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 600; line-height: 1.12; color: var(--forest); letter-spacing: -0.01em; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }

.eyebrow {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: .8rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--gold);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before { content: ""; width: 30px; height: 2px; background: var(--gold); display: inline-block; }
.eyebrow.center { justify-content: center; }
.eyebrow.center::after { content: ""; width: 30px; height: 2px; background: var(--gold); display: inline-block; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: .98rem;
  padding: 15px 32px;
  border-radius: 50px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .25s var(--ease), background-color .25s var(--ease), color .25s var(--ease), box-shadow .25s var(--ease);
}
.btn-primary { background: var(--gold); color: var(--forest-deep); box-shadow: 0 10px 24px rgba(199,144,69,.35); }
.btn-primary:hover { background: var(--gold-light); color: var(--forest-deep); transform: translateY(-3px); box-shadow: 0 16px 32px rgba(199,144,69,.42); }
.btn-ghost { background: transparent; color: var(--white); border-color: rgba(255,255,255,.55); }
.btn-ghost:hover { background: var(--white); color: var(--forest); transform: translateY(-3px); }
.btn-dark { background: var(--forest); color: var(--white); }
.btn-dark:hover { background: var(--forest-soft); color: var(--white); transform: translateY(-3px); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(247,243,234,.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 78px;
}
.brand { display: flex; align-items: center; gap: 13px; }
.brand-mark {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--forest);
  display: grid; place-items: center;
  color: var(--gold-light);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.35rem;
  flex-shrink: 0;
}
.brand-text strong { display: block; font-family: var(--font-head); font-size: 1.12rem; color: var(--forest); line-height: 1.1; }
.brand-text span { font-size: .68rem; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); font-weight: 700; }

.nav-links { display: flex; align-items: center; gap: 6px; list-style: none; }
.nav-links a {
  font-weight: 600;
  font-size: .96rem;
  color: var(--ink);
  padding: 9px 16px;
  border-radius: 8px;
  transition: color .2s var(--ease), background-color .2s var(--ease);
}
.nav-links a:hover { color: var(--forest); background: rgba(18,60,52,.06); }
.nav-links a.active { color: var(--forest); background: rgba(18,60,52,.09); }
.nav-cta { margin-left: 10px; }

.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; color: var(--forest); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 82vh;
  display: flex;
  align-items: center;
  color: var(--white);
  overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; z-index: -2; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.hero::after {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(110deg, rgba(12,42,37,.93) 0%, rgba(12,42,37,.78) 42%, rgba(12,42,37,.35) 100%);
}
.hero-inner { max-width: 680px; padding: 90px 0; }
.hero h1 {
  color: var(--white);
  font-size: clamp(2.6rem, 6vw, 4.3rem);
  font-weight: 600;
  margin: 22px 0;
}
.hero h1 .accent { color: var(--gold-light); font-style: italic; }
.hero p { font-size: 1.18rem; color: rgba(255,255,255,.9); max-width: 560px; margin-bottom: 34px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

/* ---------- Sections ---------- */
.section { padding: 100px 0; }
.section-sm { padding: 70px 0; }
.section.alt { background: var(--cream-card); }
.section.forest { background: var(--forest); color: rgba(255,255,255,.85); }
.section.forest h2, .section.forest h3 { color: var(--white); }
.section-head { max-width: 720px; margin-bottom: 56px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 { font-size: clamp(2rem, 4vw, 3rem); margin: 18px 0 16px; }
.section-head p { color: var(--muted); font-size: 1.1rem; }
.section.forest .section-head p { color: rgba(255,255,255,.72); }

.lead { font-size: 1.22rem; color: var(--muted); }

/* ---------- Split / Feature ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.split.reverse .split-media { order: 2; }
.split-media { position: relative; }
.split-media img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  aspect-ratio: 4/3;
  object-fit: cover;
}
.split-media .badge {
  position: absolute;
  bottom: -26px; left: -26px;
  background: var(--gold);
  color: var(--forest-deep);
  padding: 20px 26px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  font-family: var(--font-head);
}
.split-media .badge strong { display: block; font-size: 2rem; line-height: 1; }
.split-media .badge span { font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 700; font-family: var(--font-body); }
.split-body h2 { font-size: clamp(1.9rem, 3.4vw, 2.7rem); margin-bottom: 22px; }
.split-body p { color: var(--muted); margin-bottom: 18px; }
.tick-list { list-style: none; margin: 26px 0; }
.tick-list li { position: relative; padding-left: 38px; margin-bottom: 14px; color: var(--ink); font-weight: 500; }
.tick-list li::before {
  content: "✓";
  position: absolute; left: 0; top: 0;
  width: 26px; height: 26px;
  background: rgba(18,60,52,.1);
  color: var(--forest-soft);
  border-radius: 50%;
  display: grid; place-items: center;
  font-size: .8rem; font-weight: 800;
}

/* ---------- Cards grid ---------- */
.grid { display: grid; gap: 28px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--cream-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.card:hover { transform: translateY(-8px); box-shadow: var(--shadow-md); }
.card-img { aspect-ratio: 16/11; overflow: hidden; }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.card:hover .card-img img { transform: scale(1.07); }
.card-body { padding: 28px; }
.card-body h3 { font-size: 1.4rem; margin-bottom: 12px; }
.card-body p { color: var(--muted); font-size: .98rem; }
.card-tag {
  display: inline-block;
  font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 12px;
}

/* icon feature card */
.feature {
  background: var(--cream-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px 30px;
  transition: transform .3s var(--ease), border-color .3s var(--ease);
}
.feature:hover { transform: translateY(-6px); border-color: var(--gold); }
.feature .ico {
  width: 56px; height: 56px;
  border-radius: 14px;
  background: var(--forest);
  color: var(--gold-light);
  display: grid; place-items: center;
  margin-bottom: 22px;
}
.feature .ico svg { width: 26px; height: 26px; }
.feature h3 { font-size: 1.3rem; margin-bottom: 10px; }
.feature p { color: var(--muted); font-size: .97rem; }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.stat { text-align: center; padding: 20px; }
.stat strong { display: block; font-family: var(--font-head); font-size: 3rem; color: var(--gold-light); line-height: 1; }
.stat span { font-size: .92rem; letter-spacing: .04em; color: rgba(255,255,255,.78); margin-top: 10px; display: block; }

/* ---------- Values list ---------- */
.value-row { display: flex; gap: 22px; padding: 28px 0; border-bottom: 1px solid var(--line); }
.value-row:last-child { border-bottom: none; }
.value-num { font-family: var(--font-head); font-size: 1.6rem; color: var(--gold); font-weight: 600; flex-shrink: 0; width: 50px; }
.value-row h3 { font-size: 1.35rem; margin-bottom: 8px; }
.value-row p { color: var(--muted); }

/* ---------- Page banner ---------- */
.page-banner {
  position: relative;
  padding: 130px 0 90px;
  color: var(--white);
  text-align: center;
  overflow: hidden;
}
.page-banner .hero-bg img { width:100%; height:100%; object-fit: cover; }
.page-banner::after { content:""; position:absolute; inset:0; z-index:-1; background: linear-gradient(180deg, rgba(12,42,37,.86), rgba(12,42,37,.92)); }
.page-banner h1 { color: var(--white); font-size: clamp(2.4rem, 5vw, 3.6rem); margin: 16px 0 14px; }
.page-banner p { color: rgba(255,255,255,.85); max-width: 620px; margin: 0 auto; font-size: 1.12rem; }
.crumbs { font-size: .86rem; color: rgba(255,255,255,.7); margin-top: 20px; }
.crumbs a { color: var(--gold-light); }

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--forest);
  border-radius: 22px;
  padding: 64px 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: ""; position: absolute; right: -60px; top: -60px;
  width: 280px; height: 280px; border-radius: 50%;
  background: radial-gradient(circle, rgba(199,144,69,.28), transparent 70%);
}
.cta-band h2 { color: var(--white); font-size: clamp(1.8rem, 3.5vw, 2.6rem); max-width: 600px; }
.cta-band p { color: rgba(255,255,255,.78); margin-top: 10px; max-width: 520px; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: start; }
.info-item { display: flex; gap: 18px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.info-item:last-child { border-bottom: none; }
.info-item .ico { width: 50px; height: 50px; border-radius: 12px; background: rgba(18,60,52,.08); color: var(--forest-soft); display: grid; place-items: center; flex-shrink: 0; }
.info-item .ico svg { width: 22px; height: 22px; }
.info-item h4 { font-family: var(--font-body); font-weight: 700; color: var(--forest); margin-bottom: 3px; font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; }
.info-item a, .info-item p { color: var(--ink); font-size: 1.05rem; }

.form-card { background: var(--cream-card); border: 1px solid var(--line); border-radius: var(--radius); padding: 38px; box-shadow: var(--shadow-sm); }
.field { margin-bottom: 20px; }
.field label { display: block; font-weight: 700; font-size: .85rem; margin-bottom: 8px; color: var(--forest); }
.field input, .field textarea, .field select {
  width: 100%;
  padding: 14px 16px;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  font-family: var(--font-body);
  font-size: 1rem;
  background: var(--white);
  color: var(--ink);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(199,144,69,.18);
}
.field textarea { resize: vertical; min-height: 130px; }
.form-note { font-size: .85rem; color: var(--muted); margin-top: 14px; }
.form-success {
  display: none;
  background: rgba(18,60,52,.08);
  border: 1px solid var(--forest-soft);
  color: var(--forest);
  border-radius: 10px;
  padding: 16px;
  margin-bottom: 20px;
  font-weight: 600;
}
.form-success.show { display: block; }

.map-embed { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); margin-top: 40px; border: 1px solid var(--line); }
.map-embed iframe { width: 100%; height: 320px; border: 0; display: block; }

/* ---------- Quote ---------- */
.quote-block { max-width: 820px; margin: 0 auto; text-align: center; }
.quote-block blockquote {
  font-family: var(--font-head);
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  font-weight: 500;
  color: var(--forest);
  font-style: italic;
  line-height: 1.4;
}
.section.forest .quote-block blockquote { color: var(--white); }
.quote-block cite { display: block; margin-top: 22px; font-style: normal; font-weight: 700; color: var(--gold); letter-spacing: .04em; }

/* ---------- Footer ---------- */
.site-footer { background: var(--forest-deep); color: rgba(255,255,255,.7); padding: 72px 0 32px; }
.footer-top { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 44px; margin-bottom: 50px; }
.site-footer .brand-text strong { color: var(--white); }
.site-footer .brand-text span { color: rgba(255,255,255,.55); }
.footer-about { margin-top: 20px; font-size: .96rem; max-width: 320px; }
.footer-col h4 { color: var(--white); font-family: var(--font-body); font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 18px; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 11px; }
.footer-col a { color: rgba(255,255,255,.7); font-size: .96rem; }
.footer-col a:hover { color: var(--gold-light); }
.footer-contact-item { display: flex; gap: 10px; margin-bottom: 12px; font-size: .95rem; align-items: flex-start; }
.footer-contact-item svg { width: 18px; height: 18px; color: var(--gold-light); flex-shrink: 0; margin-top: 3px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.12);
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  font-size: .86rem;
}
.footer-bottom a { color: rgba(255,255,255,.7); }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 940px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); gap: 30px; }
  .split, .contact-grid { grid-template-columns: 1fr; gap: 44px; }
  .split.reverse .split-media { order: 0; }
  .split-media .badge { left: 20px; bottom: 20px; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 36px; }
}
@media (max-width: 720px) {
  body { font-size: 16px; }
  .section { padding: 70px 0; }
  .nav-links {
    position: fixed;
    top: 78px; left: 0; right: 0;
    background: var(--cream);
    flex-direction: column;
    align-items: stretch;
    padding: 16px 24px 28px;
    gap: 4px;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
    transform: translateY(-130%);
    transition: transform .35s var(--ease);
  }
  .nav-links.open { transform: translateY(0); }
  .nav-links a { padding: 13px 14px; }
  .nav-cta { margin: 8px 0 0; }
  .nav-cta .btn { width: 100%; justify-content: center; }
  .nav-toggle { display: block; }
  .grid-3, .grid-4, .grid-2 { grid-template-columns: 1fr; }
  .cta-band { padding: 44px 30px; text-align: center; justify-content: center; }
  .footer-top { grid-template-columns: 1fr; }
}
