/* =========================================================
   Grace Fellowship Church — stylesheet
   Design tokens
   ========================================================= */

:root{
  --ink:        #171F1A;
  --ink-soft:   #4B564E;
  --paper:      #FFFFFF;
  --paper-2:    #F3F5F1;
  --forest:     #1F7A55;
  --forest-dark:#155C40;
  --forest-tint:#E1F3E9;
  --gold:       #E7A93B;
  --gold-dark:  #C6851F;
  --gold-tint:  #FCEDCC;
  --rust:       #E35A32;
  --sky:        #2E8FE0;
  --sky-tint:   #E3F1FC;
  --white:      #FFFFFF;
  --line:       rgba(23,31,26,0.10);
  --line-strong:rgba(23,31,26,0.20);
  --shadow-sm:  0 2px 10px -3px rgba(23,31,26,0.10);
  --shadow-md:  0 12px 30px -12px rgba(23,31,26,0.18);
  --shadow-lg:  0 28px 64px -22px rgba(23,31,26,0.28);

  --font-display: "Fraunces", Georgia, serif;
  --font-body:    "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono:    "IBM Plex Mono", ui-monospace, monospace;

  --radius: 14px;
  --radius-sm: 8px;
  --max: 1160px;

  --sp-1: 8px;
  --sp-2: 16px;
  --sp-3: 24px;
  --sp-4: 32px;
  --sp-5: 48px;
  --sp-6: 64px;
  --sp-7: 96px;
}

*,*::before,*::after{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }
body{
  margin:0;
  background:var(--paper);
  color:var(--ink);
  font-family:var(--font-body);
  font-size:16px;
  line-height:1.65;
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
}
img{ max-width:100%; display:block; }
a{ color:inherit; text-decoration:none; }
ul{ margin:0; padding:0; list-style:none; }
h1,h2,h3,h4{
  font-family:var(--font-display);
  font-weight:600;
  line-height:1.08;
  margin:0 0 .5em;
  letter-spacing:-0.02em;
  color:var(--ink);
}
h1{ font-weight:700; }
p{ margin:0 0 1em; color:var(--ink-soft); }
strong{ color:var(--ink); }
.container{
  max-width:var(--max);
  margin:0 auto;
  padding:0 28px;
}
:focus-visible{
  outline:3px solid var(--gold);
  outline-offset:3px;
  border-radius:2px;
}
@media (prefers-reduced-motion: reduce){
  *{ animation-duration:0.001ms !important; animation-iteration-count:1 !important; transition-duration:0.001ms !important; scroll-behavior:auto !important; }
}

/* Eyebrow / mono labels */
.eyebrow{
  font-family:var(--font-mono);
  font-size:12px;
  letter-spacing:0.16em;
  text-transform:uppercase;
  color:var(--forest);
  font-weight:500;
  display:flex;
  align-items:center;
  gap:12px;
  margin:0 0 16px;
}
.eyebrow::before{
  content:"";
  width:26px; height:1px;
  background:var(--gold-dark);
  display:inline-block;
  flex:none;
}
.eyebrow.center{ justify-content:center; }
.eyebrow.on-dark{ color:var(--sky); }
.eyebrow.on-dark::before{ background:var(--gold); }
.eyebrow.rust{ color:var(--rust); }
.eyebrow.rust::before{ background:var(--rust); }

/* Buttons */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  font-family:var(--font-body);
  font-weight:600;
  font-size:14.5px;
  letter-spacing:0.01em;
  line-height:1;
  padding:15px 26px;
  border-radius:999px;
  border:1px solid transparent;
  cursor:pointer;
  transition:transform .18s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease, color .18s ease;
  white-space:nowrap;
}
.btn:hover{ transform:translateY(-2px); }
.btn-primary{ background:var(--forest); color:var(--white); box-shadow:var(--shadow-sm); }
.btn-primary:hover{ background:var(--forest-dark); box-shadow:var(--shadow-md); }
.btn-gold{ background:var(--gold); color:var(--forest-dark); box-shadow:var(--shadow-sm); }
.btn-gold:hover{ background:var(--gold-dark); color:var(--white); box-shadow:var(--shadow-md); }
.btn-outline{ background:transparent; border-color:var(--line-strong); color:var(--ink); }
.btn-outline:hover{ border-color:var(--forest); background:var(--forest); color:var(--white); }
.btn-ghost-light{ background:transparent; border-color:rgba(255,255,255,0.4); color:var(--white); }
.btn-ghost-light:hover{ background:rgba(255,255,255,0.14); border-color:rgba(255,255,255,0.7); }
.btn-block{ width:100%; }
.btn-sm{ padding:11px 20px; font-size:13.5px; }

/* =========================================================
   Header / nav
   ========================================================= */
.site-header{
  position:sticky; top:0; z-index:100;
  background:rgba(255,255,255,0.86);
  backdrop-filter:blur(10px) saturate(1.1);
  border-bottom:1px solid var(--line);
}
.nav{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:18px 28px;
}
.brand{
  display:flex; align-items:center; gap:11px;
  font-family:var(--font-display);
  font-weight:600;
  font-size:19px;
  color:var(--ink);
  flex:none;
}
.brand svg{ flex:none; }
.brand-mark{ width:30px; height:30px; display:block; flex:none; object-fit:contain; }
.footer-brand-mark{ width:26px; height:26px; display:block; flex:none; object-fit:contain; }
.nav-links{
  display:flex;
  align-items:center;
  gap:34px;
}
.nav-links a{
  font-size:14px;
  font-weight:500;
  color:var(--ink-soft);
  position:relative;
  padding:6px 0;
  transition:color .15s ease;
}
.nav-links a:hover{ color:var(--forest); }
.nav-links a.active{ color:var(--forest); }
.nav-links a.active::after{
  content:"";
  position:absolute; left:0; right:0; bottom:0;
  height:2px; background:var(--gold);
  border-radius:2px;
}
.nav-cta{ display:flex; align-items:center; gap:12px; flex:none; }
.nav-toggle{
  display:none;
  background:none; border:none; cursor:pointer;
  padding:8px;
  border-radius:8px;
}
.nav-toggle:hover{ background:var(--paper-2); }
.nav-toggle span{
  display:block; width:22px; height:2px; background:var(--ink);
  margin:5px 0; transition:transform .2s ease, opacity .2s ease;
  border-radius:2px;
}
body.menu-open .nav-toggle span:nth-child(1){ transform:translateY(7px) rotate(45deg); }
body.menu-open .nav-toggle span:nth-child(2){ opacity:0; }
body.menu-open .nav-toggle span:nth-child(3){ transform:translateY(-7px) rotate(-45deg); }

/* This-week rhythm strip — signature element */
.rhythm-strip{
  background:var(--ink);
  color:var(--paper);
  font-family:var(--font-mono);
  font-size:12px;
  letter-spacing:0.03em;
}
.rhythm-strip .container{
  display:flex;
  align-items:center;
  gap:34px;
  padding:9px 28px;
  overflow-x:auto;
  white-space:nowrap;
  scrollbar-width:none;
}
.rhythm-strip .container::-webkit-scrollbar{ display:none; }
.rhythm-strip .item{ display:flex; align-items:center; gap:9px; color:rgba(243,238,225,0.88); }
.rhythm-strip .dot{
  width:6px; height:6px; border-radius:50%;
  background:var(--gold);
  flex:none;
}
.rhythm-strip .label{ color:var(--sky); font-weight:500; }

/* =========================================================
   Hero
   ========================================================= */
.hero{
  position:relative;
  padding:104px 0 96px;
  overflow:hidden;
  background:
    radial-gradient(720px 440px at 88% -12%, rgba(231,169,59,0.18), transparent 60%),
    radial-gradient(600px 420px at -8% 108%, rgba(31,122,85,0.12), transparent 60%),
    radial-gradient(520px 360px at 40% 40%, rgba(46,143,224,0.06), transparent 65%),
    var(--paper);
}
.hero-grid{
  display:grid;
  grid-template-columns:1.05fr 0.95fr;
  gap:64px;
  align-items:center;
}
.hero h1{
  font-size:clamp(40px, 5.4vw, 68px);
  color:var(--ink);
  margin-bottom:22px;
}
.hero h1 em{
  font-style:italic;
  color:var(--forest);
}
.hero .lede{
  font-size:18px;
  color:var(--ink-soft);
  max-width:46ch;
  margin-bottom:32px;
}
.hero-actions{ display:flex; gap:14px; flex-wrap:wrap; }

/* Signature graphic — an arched, photo-filled chapel window */
.hero-visual{ position:relative; }
.hero-visual .photo{
  box-shadow:var(--shadow-lg);
}
.photo--arch{ --ar:3/4; border-radius:220px 220px 24px 24px; }
.hero-visual .tag{
  position:absolute;
  bottom:-16px; left:32px;
  background:var(--ink);
  color:var(--paper);
  font-family:var(--font-mono);
  font-size:11.5px;
  letter-spacing:.08em;
  padding:9px 16px;
  border-radius:999px;
  box-shadow:var(--shadow-md);
  z-index:2;
}

/* Page hero (interior pages) */
.page-hero{
  padding:76px 0 60px;
  background:
    radial-gradient(320px 320px at 0% 120%, rgba(46,143,224,0.35), transparent 70%),
    var(--forest);
  color:var(--white);
  position:relative;
  overflow:hidden;
}
.page-hero::before{
  content:"";
  position:absolute; right:-100px; top:-120px;
  width:340px; height:340px;
  border:1px solid rgba(255,255,255,0.12);
  border-radius:50%;
}
.page-hero::after{
  content:"";
  position:absolute; right:60px; top:-40px;
  width:180px; height:180px;
  border:1px solid rgba(231,169,59,0.32);
  border-radius:50%;
}
.page-hero .container{ position:relative; }
.page-hero .eyebrow{ color:var(--sky); }
.page-hero .eyebrow::before{ background:var(--gold); }
.page-hero h1{ color:var(--white); font-size:clamp(32px,4.2vw,46px); max-width:18ch; }
.page-hero p{ color:rgba(243,238,225,0.82); max-width:56ch; font-size:17px; margin-bottom:0; }

/* =========================================================
   Sections
   ========================================================= */
section{ padding:var(--sp-7) 0; }
.section-dark{ background:var(--ink); color:var(--paper); }
.section-dark h2, .section-dark h3{ color:var(--white); }
.section-dark p{ color:rgba(243,238,225,0.75); }
.section-forest{ background:var(--forest); color:var(--white); }
.section-forest h2, .section-forest h3{ color:var(--white); }
.section-forest p{ color:rgba(243,238,225,0.78); }
.section-alt{ background:var(--paper-2); }
.section-head{
  max-width:640px;
  margin:0 0 52px;
}
.section-head h2{ font-size:clamp(28px,3.2vw,38px); margin-bottom:12px; }
.section-head p{ font-size:16.5px; margin-bottom:0; }
.section-head.center{ margin-left:auto; margin-right:auto; text-align:center; }

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

.card{
  background:var(--white);
  border:1px solid var(--line);
  border-radius:var(--radius);
  padding:32px;
  box-shadow:var(--shadow-sm);
  transition:transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover{ transform:translateY(-4px); box-shadow:var(--shadow-md); border-color:var(--line-strong); }
.card .icon{
  width:46px; height:46px;
  border-radius:12px;
  background:var(--forest-tint);
  display:flex; align-items:center; justify-content:center;
  margin-bottom:20px;
  color:var(--forest);
  flex:none;
}
/* rotate icon tint across a 3-up grid for visual rhythm */
.grid-3 .card:nth-child(3n+2) .icon{ background:var(--gold-tint); color:var(--gold-dark); }
.grid-3 .card:nth-child(3n+3) .icon{ background:var(--sky-tint); color:#4C7472; }
.grid-4 .card:nth-child(4n+2) .icon{ background:var(--gold-tint); color:var(--gold-dark); }
.grid-4 .card:nth-child(4n+3) .icon{ background:var(--sky-tint); color:#4C7472; }
.grid-4 .card:nth-child(4n+4) .icon{ background:var(--forest-tint); color:var(--forest); }
.card h3{ font-size:19px; margin-bottom:10px; }
.card p{ color:var(--ink-soft); font-size:15px; margin-bottom:0; }
.card.on-dark{ background:rgba(255,253,249,0.06); border-color:rgba(255,253,249,0.16); box-shadow:none; }
.card.on-dark:hover{ background:rgba(255,253,249,0.1); border-color:rgba(255,253,249,0.3); }
.card.on-dark h3{ color:var(--white); }
.card.on-dark p{ color:rgba(243,238,225,0.78); }

/* Service-times card */
.times-card{
  background:var(--white);
  border:1px solid var(--line);
  border-radius:var(--radius);
  box-shadow:var(--shadow-md);
  padding:38px;
}
.times-card.narrow{ max-width:640px; margin:0 auto; }
.times-card .eyebrow{ margin-bottom:20px; }
.time-row{
  display:flex; justify-content:space-between; align-items:baseline;
  gap:16px;
  padding:16px 0;
  border-top:1px solid var(--line);
}
.time-row:first-of-type{ border-top:none; padding-top:4px; }
.time-row .when{ font-family:var(--font-display); font-size:19px; font-weight:600; }
.time-row .where{ font-family:var(--font-mono); font-size:12px; color:var(--ink-soft); letter-spacing:.03em; text-align:right; }

/* Stat strip */
.stats{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:28px;
  text-align:left;
}
.stat{ border-top:1px solid rgba(255,253,249,0.2); padding-top:20px; }
.stat .num{ font-family:var(--font-display); font-size:42px; color:var(--gold); line-height:1; margin-bottom:8px; }
.stat .label{ font-family:var(--font-mono); font-size:11.5px; letter-spacing:.08em; text-transform:uppercase; opacity:.85; }

/* Quote / mission */
.mission-block{
  display:grid;
  grid-template-columns:1fr 0.85fr;
  gap:72px;
  align-items:center;
}
.mission-block blockquote{
  font-family:var(--font-display);
  font-style:italic;
  font-size:clamp(26px,2.9vw,34px);
  line-height:1.32;
  margin:0;
  color:var(--white);
}
.mission-block cite{
  display:block;
  font-style:normal;
  font-family:var(--font-mono);
  font-size:12.5px;
  color:var(--sky);
  margin-top:22px;
  letter-spacing:.03em;
}

/* List rows (messages / staff / values / events) */
.list-row{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:28px;
  padding:28px 0;
  border-top:1px solid var(--line);
  transition:background .15s ease;
}
.list-row:last-child{ border-bottom:1px solid var(--line); }
.list-row .meta{ font-family:var(--font-mono); font-size:11.5px; color:var(--forest); letter-spacing:.03em; margin-bottom:8px; text-transform:uppercase; }
.list-row h3{ font-size:21px; margin-bottom:8px; }
.list-row p{ color:var(--ink-soft); font-size:15px; margin-bottom:0; max-width:60ch; }
.list-row .actions{ flex:none; display:flex; gap:10px; }

/* Simple two-column feature row (about page beliefs, etc.) */
.feature-row{ padding:20px 0; border-top:1px solid var(--line); }
.feature-row:first-child{ border-top:none; padding-top:0; }
.feature-row h3{ font-size:18px; margin-bottom:8px; }
.feature-row p{ margin-bottom:0; }

/* Forms */
.form-card{
  background:var(--white);
  border:1px solid var(--line);
  border-radius:var(--radius);
  padding:36px;
  box-shadow:var(--shadow-sm);
}
.form-grid{ display:grid; gap:20px; grid-template-columns:1fr 1fr; }
.form-grid .full{ grid-column:1 / -1; }
label{ display:block; font-family:var(--font-mono); font-size:11.5px; letter-spacing:.06em; text-transform:uppercase; margin-bottom:9px; color:var(--ink-soft); }
input, select, textarea{
  width:100%;
  padding:14px 16px;
  border:1px solid var(--line-strong);
  border-radius:var(--radius-sm);
  font-family:var(--font-body);
  font-size:15px;
  background:var(--paper);
  color:var(--ink);
  transition:border-color .15s ease, background .15s ease;
}
input:focus, select:focus, textarea:focus{ outline:none; border-color:var(--forest); background:var(--white); }
textarea{ resize:vertical; min-height:130px; }
#form-status{ font-size:13.5px; color:var(--ink-soft); margin:14px 0 0; }

/* Give methods */
.give-methods{ display:grid; grid-template-columns:repeat(3,1fr); gap:26px; }
.give-methods .card{ display:flex; flex-direction:column; }
.give-methods .btn{ margin-top:auto; padding-top:18px; }

/* Map frame */
.map-frame{
  border:1px solid var(--line);
  border-radius:var(--radius);
  overflow:hidden;
  box-shadow:var(--shadow-sm);
}
.map-frame iframe{ display:block; width:100%; height:380px; border:0; filter:sepia(8%) saturate(88%); }

/* FAQ grid (dark section) */
.faq-grid{ display:grid; grid-template-columns:repeat(2,1fr); gap:36px 48px; max-width:920px; margin:0 auto; }
.faq-grid h3{ font-size:17.5px; color:var(--white); margin-bottom:8px; }
.faq-grid p{ margin-bottom:0; }

/* Footer */
.site-footer{
  background:var(--ink);
  color:var(--paper);
  padding:72px 0 30px;
}
.footer-grid{
  display:grid;
  grid-template-columns:1.5fr 1fr 1fr 1fr;
  gap:44px;
  padding-bottom:48px;
  border-bottom:1px solid rgba(243,238,225,0.14);
}
.footer-grid h4{
  font-family:var(--font-mono);
  font-size:11.5px;
  letter-spacing:.1em;
  text-transform:uppercase;
  color:var(--sky);
  margin-bottom:18px;
  font-weight:500;
}
.footer-grid a, .footer-grid p, .footer-grid li{ color:rgba(243,238,225,0.72); font-size:14.5px; }
.footer-grid li{ margin-bottom:11px; }
.footer-grid a{ transition:color .15s ease; }
.footer-grid a:hover{ color:var(--gold); }
.footer-brand{ font-family:var(--font-display); font-size:20px; color:var(--white); margin-bottom:16px; display:flex; gap:11px; align-items:center; }
.footer-grid > div > p{ max-width:32ch; }
.footer-bottom{
  display:flex; justify-content:space-between; align-items:center;
  padding-top:26px;
  font-size:12.5px;
  color:rgba(243,238,225,0.5);
  flex-wrap:wrap; gap:12px;
}

/* Photo slots — ready for real photos; shows a placeholder until the file exists */
.photo{
  position:relative;
  aspect-ratio:var(--ar, 4/3);
  border-radius:22px;
  overflow:hidden;
  background:linear-gradient(135deg, var(--paper-2), var(--sky-tint));
  border:1px solid var(--line);
}
.photo img{
  position:absolute; inset:0;
  width:100%; height:100%;
  object-fit:cover;
  display:block;
}
.photo .photo-label{
  display:none;
  position:absolute; inset:0;
  flex-direction:column; align-items:center; justify-content:center;
  gap:10px; text-align:center; padding:20px;
  font-family:var(--font-mono); font-size:11px; letter-spacing:.06em; text-transform:uppercase;
  color:var(--ink-soft);
}
.photo--empty img{ display:none; }
.photo--empty .photo-label{ display:flex; }
.photo--wide{ --ar:16/10; border-radius:22px; }
.photo--tall{ --ar:3/4; border-radius:22px; }
.photo--square{ --ar:1/1; border-radius:20px; }
.photo--round{ border-radius:50%; --ar:1/1; }
.photo-caption{
  font-family:var(--font-mono);
  font-size:12px;
  letter-spacing:.04em;
  color:var(--ink-soft);
  margin-top:14px;
  text-align:center;
}

/* Photo band grid */
.photo-band{ display:grid; grid-template-columns:repeat(3,1fr); gap:26px; }

/* Person card (leadership / staff) */
.person-card{ text-align:center; }
.person-card .photo{ margin-bottom:18px; }
.person-card h3{ font-size:18px; margin-bottom:4px; }
.person-card .role{ font-family:var(--font-mono); font-size:11.5px; letter-spacing:.04em; text-transform:uppercase; color:var(--forest); margin-bottom:10px; }
.person-card p{ font-size:14.5px; }

/* Card with a photo header (ministries) */
.card-photo{
  background:var(--white);
  border:1px solid var(--line);
  border-radius:var(--radius);
  overflow:hidden;
  box-shadow:var(--shadow-sm);
  transition:transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card-photo:hover{ transform:translateY(-4px); box-shadow:var(--shadow-md); border-color:var(--line-strong); }
.card-photo .photo{ border-radius:0; border:none; border-bottom:1px solid var(--line); }
.card-photo .card-photo-body{ padding:26px 28px 28px; }
.card-photo h3{ font-size:19px; margin-bottom:8px; }
.card-photo p{ font-size:15px; margin-bottom:0; }

.text-center{ text-align:center; }
.mx-auto{ margin-left:auto; margin-right:auto; }
.mt-0{ margin-top:0; }
.mt-lg{ margin-top:40px; }
.max-narrow{ max-width:620px; }
.max-mid{ max-width:560px; }
.section-dark .text-center h2,
.section-forest .text-center h2{ margin-bottom:22px; }
.section-dark .text-center p,
.section-forest .text-center p{ margin-bottom:32px; }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 980px){
  .hero-grid{ grid-template-columns:1fr; }
  .hero .hero-visual{ max-width:400px; margin:0 auto; }
  .mission-block{ grid-template-columns:1fr; gap:44px; }
  .grid-3, .grid-4{ grid-template-columns:repeat(2,1fr); }
  .footer-grid{ grid-template-columns:1fr 1fr; gap:36px; }
  .give-methods{ grid-template-columns:1fr; max-width:440px; margin:0 auto; }
  .stats{ grid-template-columns:repeat(2,1fr); gap:32px 24px; }
  .faq-grid{ grid-template-columns:1fr; }
}
@media (max-width: 760px){
  .nav-links{ display:none; }
  .nav-cta .btn-outline{ display:none; }
  .nav-toggle{ display:block; }
  body.menu-open .nav-links{
    display:flex;
    position:absolute; top:100%; left:0; right:0;
    flex-direction:column;
    align-items:flex-start;
    background:var(--paper);
    padding:22px 28px 28px;
    border-bottom:1px solid var(--line);
    gap:20px;
    box-shadow:var(--shadow-md);
  }
  .form-grid{ grid-template-columns:1fr; }
  .grid-3, .grid-4, .grid-2{ grid-template-columns:1fr; }
  .list-row{ flex-direction:column; }
  .list-row .actions{ align-self:flex-start; }
  section{ padding:64px 0; }
  .hero{ padding:60px 0 52px; }
  .page-hero{ padding:56px 0 44px; }
  .mission-block blockquote{ font-size:24px; }
  .form-card, .times-card{ padding:26px; }
}
