/* =============================================================================
   Fellowship Church — site.css
   Shared stylesheet for all preview pages. Option B direction: near-black +
   steel blue + cool grey on white, Clash Display + Switzer.
============================================================================= */
:root{
  --ink:#0f1216;
  --ink-2:#171b21;
  --navy:#1d2b40;
  --steel:#5c88ad;
  --steel-lift:#8fb3ce;
  --steel-ink:#4b7699;
  --steel-ink-hover:#3e6280;
  --paper:#ffffff;
  --paper-2:#f1f3f5;
  --grey:#616873;
  --line:#dfe3e7;

  --display:'Clash Display', system-ui, sans-serif;
  --body:'Switzer', system-ui, -apple-system, sans-serif;
  --container:72rem;
  --gutter:clamp(1.2rem,3vw,2.5rem);
}
*,*::before,*::after{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;background:var(--paper);color:var(--ink);font-family:var(--body);font-size:clamp(1rem,.97rem + .15vw,1.08rem);line-height:1.65;-webkit-font-smoothing:antialiased}
img{max-width:100%;display:block}
h1,h2,h3{font-family:var(--display);font-weight:600;letter-spacing:-.02em;line-height:1.08;margin:0 0 .55em}
p{margin:0 0 1rem;max-width:64ch}
a{color:var(--navy)}
.container{max-width:var(--container);margin-inline:auto;padding-inline:var(--gutter)}
/* ---- vertical rhythm scale ----
   Deliberately tiered, not one value everywhere: major transitions breathe,
   tightly-related groups stay close. Values are proportional via clamp and
   verified against computed styles, not assumed from source. */
.section{padding-block:clamp(4.5rem,3.5rem + 5vw,8rem)}
/* Compact: for sections that continue the thought above them rather than
   starting a new one. */
.section--compact{padding-block:clamp(2.75rem,2rem + 3vw,4.5rem)}
/* Sparse/self-contained sections: a narrower centred column so a small block
   doesn't strand itself against the left edge of a 1152px canvas. Copy inside
   stays left-aligned — this is a width fix, not a centring fix. */
.section--focus > .container{max-width:52rem}
:focus-visible{outline:3px solid var(--steel);outline-offset:2px}

.skip-link{position:absolute;top:-100px;left:1rem;z-index:100;background:var(--navy);color:#fff;padding:.75rem 1.25rem;border-radius:2px;text-decoration:none;font-weight:700;font-size:.9rem;transition:top .15s}
.skip-link:focus{top:1rem}

@media (prefers-reduced-motion: reduce){
  *,*::before,*::after{animation-duration:.01ms !important;animation-iteration-count:1 !important;transition-duration:.01ms !important;scroll-behavior:auto !important}
}

.eyebrow{font-family:var(--body);font-weight:700;font-size:.76rem;letter-spacing:.16em;text-transform:uppercase;color:var(--steel-ink);margin:0 0 .8rem}
.section--dark .eyebrow{color:var(--steel-lift)}
.lede{font-size:clamp(1.05rem,1rem + .35vw,1.2rem);color:var(--grey);max-width:56ch;margin-bottom:1.75rem}

/* ---- service bar ---- */
.topbar{background:var(--ink);color:#aeb6c1;font-size:.83rem;letter-spacing:.01em}
.topbar .container{display:flex;align-items:center;gap:1.5rem;padding-block:.55rem;flex-wrap:wrap}
.topbar strong{color:#fff;font-weight:600}
.topbar .right{margin-left:auto;display:flex;gap:1.4rem}
/* The utility strip is ONE string, never duplicated variants toggled by CSS —
   if that CSS is ever cached/delayed, hidden text renders and the strip reads
   as garbled duplicated copy. On very narrow phones the type scales down a
   touch so it stays on one line instead. */
@media (max-width:23rem){
  .topbar{font-size:.76rem}
}
.topbar a{color:#98a1ae;text-decoration:none}
.topbar a:hover{color:#fff}

/* ---- header ---- */
.header{background:var(--ink);border-bottom:1px solid rgba(255,255,255,.07);position:sticky;top:0;z-index:50}
.header .container{display:flex;align-items:center;gap:1.25rem;min-height:4.75rem;position:relative}
.nav-toggle{display:none;align-items:center;justify-content:center;width:44px;height:44px;border:1px solid rgba(255,255,255,.25);border-radius:2px;background:transparent;cursor:pointer;flex:none}
.nav-toggle svg{width:20px;height:20px;stroke:#fff}
.brand{display:flex;align-items:center;gap:.7rem;text-decoration:none;margin-right:auto}
.brand img{width:44px;height:44px;border-radius:50%}
.brand span{font-family:var(--display);font-weight:600;font-size:1.12rem;color:#fff;letter-spacing:-.01em}
.nav{display:flex;gap:1.35rem;font-size:.9rem;font-weight:500;flex-wrap:wrap}
.nav a{color:#b4bcc8;text-decoration:none;white-space:nowrap}
.nav a:hover,.nav a[aria-current="page"]{color:#fff}
.cta{display:flex;gap:.6rem;align-items:center}
.btn{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:.6rem 1.2rem;border-radius:2px;font-weight:700;font-size:.88rem;text-decoration:none;border:1.5px solid transparent;transition:.15s;cursor:pointer}
.btn--steel{background:var(--steel-ink);color:#fff}
.btn--steel:hover{background:var(--steel-ink-hover)}
.btn--outline{border-color:rgba(255,255,255,.32);color:#fff;background:transparent}
.btn--outline:hover{background:#fff;color:var(--ink)}
.btn--dark{background:var(--navy);color:#fff}
.btn--dark:hover{background:var(--ink)}
.btn--ghost{border-color:var(--navy);color:var(--navy);background:transparent}
.btn--ghost:hover{background:var(--navy);color:#fff}
.btn-row{display:flex;flex-wrap:wrap;gap:.75rem;margin-top:.5rem}

/* ---- page hero (interior pages) ---- */
.page-hero{background:var(--ink);color:#fff;padding-block:clamp(4rem,3rem + 4vw,6.5rem)}
/* Optional photo background for page heroes. Mirrors the homepage .hero
   pattern, but the scrim is deliberately heavier: page-hero copy runs across
   more of the width than the homepage's narrow column, so it needs guaranteed
   contrast rather than a gradient that fades out early. Verified against
   computed WCAG ratios, not eyeballed. */
.page-hero--photo{position:relative;overflow:hidden;isolation:isolate}
.page-hero__bg{position:absolute;top:0;right:0;bottom:0;left:0;z-index:-2}
.page-hero__bg img{width:100%;height:100%;object-fit:cover;object-position:center 35%;filter:grayscale(.4) contrast(1.03)}
.page-hero--photo::after{content:"";position:absolute;top:0;right:0;bottom:0;left:0;z-index:-1;
  background:linear-gradient(100deg,rgba(15,18,22,.96) 42%,rgba(15,18,22,.88) 66%,rgba(29,43,64,.72) 100%)}
@media (max-width:56rem){
  /* On phones the copy fills the full width, so the scrim goes flat and darker. */
  .page-hero--photo::after{background:rgba(15,18,22,.9)}
}
.page-hero h1{color:#fff;max-width:20ch}
.page-hero .lede{color:#bcc4d0;margin-bottom:0}
.crumb{font-size:.85rem;color:#8b93a0;margin-bottom:1rem}
.crumb a{color:#8b93a0;text-decoration:none}
.crumb a:hover{color:#fff}
/* Single-level crumbs ("Home / Page") convey no hierarchy the nav doesn't
   already show, so they're hidden on phones to save vertical space. Two-level
   crumbs (e.g. Home / Get Plugged In / Teams) are marked .crumb--deep and stay. */
@media (max-width:34rem){
  .crumb:not(.crumb--deep){display:none}
}

/* ---- hero (home) ---- */
.hero{position:relative;background:var(--ink);color:#fff;overflow:hidden;isolation:isolate}
.hero__bg{position:absolute;top:0;right:0;bottom:0;left:0;z-index:-2}
.hero__bg img{width:100%;height:100%;object-fit:cover;object-position:center 8%;filter:grayscale(.35) contrast(1.05)}
.hero::after{content:"";position:absolute;top:0;right:0;bottom:0;left:0;z-index:-1;background:linear-gradient(100deg,rgba(15,18,22,1) 48%,rgba(15,18,22,.9) 68%,rgba(29,43,64,.55) 100%)}
.hero .container{padding-block:clamp(4.5rem,3rem + 7vw,8rem)}
.hero h1{font-size:clamp(2.7rem,1.9rem + 3.6vw,4.6rem);max-width:14ch;color:#fff}
.hero h1 .rule{display:block;width:5.5rem;height:2px;background:var(--steel-lift);margin-top:1.4rem}
.hero .lede{color:#bcc4d0;max-width:44ch;margin-top:1.5rem;font-size:1.12rem}

/* ---- quick links strip ---- */
.quick{background:var(--ink-2)}
.quick__grid{display:grid;grid-template-columns:repeat(4,1fr)}
.quick a{display:block;padding:1.7rem 1.3rem;text-decoration:none;color:#e4e8ed;border-right:1px solid rgba(255,255,255,.08);border-top:1px solid rgba(255,255,255,.08);transition:background .15s}
.quick a:last-child{border-right:none}
.quick a:hover{background:rgba(255,255,255,.04)}
.quick strong{display:block;font-family:var(--display);font-weight:600;font-size:1.06rem;margin-bottom:.2rem}
.quick span{font-size:.85rem;color:#858d99}

/* ---- facts strip ---- */
.facts{background:var(--paper-2);border-bottom:1px solid var(--line)}
.facts .container{display:flex;flex-wrap:wrap;gap:1.4rem 3.5rem;padding-block:1.9rem}
.facts dt{font-weight:700;font-size:.74rem;letter-spacing:.1em;text-transform:uppercase;color:var(--steel-ink-hover);margin-bottom:.25rem}
.facts dd{margin:0;font-weight:500}

/* ---- split ---- */
.split{display:grid;gap:clamp(2.25rem,1.5rem + 5vw,5.5rem);grid-template-columns:1.05fr .95fr;align-items:center}
.split.reverse{grid-template-columns:.95fr 1.05fr}
.split.reverse .frame{order:2}
.frame{overflow:hidden;border-radius:2px;box-shadow:0 14px 34px rgba(15,18,22,.14)}
.frame img{width:100%;aspect-ratio:4/3;object-fit:cover}
/* Portrait sources (Pastor Jose 0.80, lighthouse sign 0.67) were being forced
   into the 4/3 landscape frame, cropping 40-50% of their height — that is what
   read as "too zoomed". A taller container keeps the subject and its context.
   Landscape sources stay on 4/3, where the crop is negligible. */
.frame--portrait img{aspect-ratio:4/5}
@media (min-width:56rem){
  /* In a two-column split the column is already narrow, so a slightly less
     tall ratio keeps the row balanced without reintroducing a hard crop. */
  .frame--portrait img{aspect-ratio:1/1}
}

/* ---- rhythm ---- */
.rhythm{display:grid;grid-template-columns:repeat(4,1fr);margin-top:2.5rem;border-top:2px solid var(--steel)}
.rhythm__item{padding:1.6rem 1.4rem 1.4rem;border-right:1px solid var(--line)}
.rhythm__item:last-child{border-right:none}
.rhythm__day{font-family:var(--display);font-weight:600;font-size:1.15rem;color:var(--navy);margin-bottom:.15rem}
.rhythm__time{font-weight:700;color:var(--steel-ink);font-size:.9rem;margin-bottom:.5rem}
.rhythm__where{font-size:.83rem;color:var(--grey);text-transform:uppercase;letter-spacing:.08em;margin-bottom:.6rem}
.rhythm__item p{font-size:.93rem;color:var(--grey);margin:0}
.section--dark .rhythm__day{color:#fff}
.section--dark .rhythm__where{color:#858d99}
.section--dark .rhythm__item p{color:#b6bec9}
.section--dark .rhythm__item{border-right-color:rgba(255,255,255,.12)}

/* ---- dark band ---- */
.section--dark{background:var(--ink);color:#d5dbe3}
.section--dark h2{color:#fff}
.section--dark p{color:#b6bec9}

/* ---- gallery ---- */
.gallery{display:grid;grid-template-columns:repeat(4,1fr);gap:.6rem;margin-top:2.2rem}
.gallery img{width:100%;aspect-ratio:1/1;object-fit:cover;border-radius:2px}

/* ---- cards grid (teams/ministries/small groups) ---- */
.cardgrid{display:grid;grid-template-columns:repeat(3,1fr);gap:1.1rem;margin-top:2.2rem}
.cardgrid.cols-2{grid-template-columns:repeat(2,1fr)}
.card{background:var(--paper-2);border:1px solid var(--line);border-radius:3px;padding:1.6rem 1.5rem}

.verse{border-left:3px solid var(--steel);padding:.3rem 0 .3rem 1.5rem;margin:2.75rem 0}
.verse p{font-family:var(--display);font-weight:500;font-size:clamp(1.15rem,1rem + .6vw,1.5rem);color:var(--navy);line-height:1.5;margin-bottom:.6rem}
.verse cite{display:block;font-style:normal;font-size:.78rem;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:var(--steel-ink)}
.page-hero .verse{border-left-color:var(--steel-lift)}
.page-hero .verse p{color:#fff}
.page-hero .verse cite{color:var(--steel-lift)}
.card h3{font-size:1.15rem;color:var(--navy);margin-bottom:.5rem}
.card p{font-size:.94rem;color:var(--grey);margin-bottom:0}
.card .tag{display:inline-block;font-size:.72rem;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:var(--steel-ink-hover);margin-bottom:.6rem}

/* ---- leadership grid ---- */
.leadgrid{display:grid;grid-template-columns:repeat(4,1fr);gap:1.5rem 1.2rem;margin-top:2.5rem}
.leadcard{text-align:left}
.leadcard .frame{aspect-ratio:4/5;margin-bottom:.9rem}
.leadcard .frame img{width:100%;height:100%;object-fit:cover}
.leadcard h3{font-size:1.05rem;margin-bottom:.15rem;color:var(--navy)}
.leadcard .role{font-size:.85rem;color:var(--steel-ink);font-weight:600}

.leader-featured{display:grid;grid-template-columns:.8fr 1.2fr;gap:clamp(2rem,1.5rem + 4vw,5rem);align-items:center;padding-bottom:clamp(2.5rem,2rem + 2vw,4rem);margin-bottom:clamp(2.5rem,2rem + 2vw,4rem);border-bottom:1px solid var(--line)}
.leader-featured .frame{aspect-ratio:4/5;box-shadow:0 14px 34px rgba(15,18,22,.14)}
.leader-featured .frame img{width:100%;height:100%;object-fit:cover}
.leader-featured h3{font-size:clamp(1.6rem,1.3rem + 1vw,2.1rem);margin-bottom:.2rem}
.leader-featured .role{display:block;font-size:1rem;color:var(--steel-ink);font-weight:700;margin-bottom:1rem}
.leader-featured p:not(.role):not(.eyebrow){color:var(--grey);max-width:44ch}
.team-label{margin-top:0}

/* ---- invite / closing ---- */
.invite{text-align:center}
.invite h2{font-size:clamp(2rem,1.5rem + 2vw,3rem)}
.invite p{margin-inline:auto}
.invite .btn-row{justify-content:center}

/* ---- forms ---- */
.form{max-width:38rem}
/* Contact's form/aside split: the aside was sitting flush against the form and
   vertically centred against a tall column, which read as cramped. Wider gutter,
   top-aligned so both columns start on the same line. */
.split--contact{align-items:start;gap:clamp(2.5rem,2rem + 6vw,7rem)}
@media (max-width:56rem){
  .split--contact{gap:clamp(2.5rem,2rem + 3vw,3.5rem)}
}
.field{margin-bottom:1.2rem}
.field label{display:block;font-weight:700;color:var(--navy);margin-bottom:.4rem;font-size:.92rem}
.field .hint{font-weight:400;color:var(--grey);font-size:.82rem}
.field input,.field textarea,.field select{width:100%;font:inherit;color:var(--ink);background:#fff;border:1.5px solid var(--line);border-radius:2px;padding:.7rem .85rem;min-height:46px}
.field textarea{min-height:8rem;resize:vertical}
.field input:focus,.field textarea:focus,.field select:focus{border-color:var(--steel);outline:3px solid var(--steel-lift);outline-offset:1px}
.req::after{content:"*";color:var(--steel-ink);margin-left:.15em}
.visually-hidden{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}

/* ---- FAQ accordion ---- */
.faq{max-width:52rem;margin-top:2rem}
.faq-item{border-bottom:1px solid var(--line)}
.faq-item summary{cursor:pointer;list-style:none;display:flex;justify-content:space-between;align-items:center;gap:1rem;padding:1.3rem 0;font-family:var(--display);font-weight:600;font-size:1.05rem;color:var(--navy)}
.faq-item summary::-webkit-details-marker{display:none}
.faq-item summary .icon{flex:none;width:1.6rem;height:1.6rem;border:1.5px solid var(--steel);border-radius:50%;display:grid;place-items:center;font-size:1rem;color:var(--steel);transition:transform .15s}
.faq-item[open] summary .icon{transform:rotate(45deg)}
.faq-item .answer{padding:0 0 1.4rem;color:var(--grey);font-size:.96rem;max-width:56ch}

/* ---- sermon embed ---- */
.video-frame{position:relative;width:100%;aspect-ratio:16/9;background:var(--ink-2);border-radius:2px;overflow:hidden}
.video-frame iframe{position:absolute;top:0;right:0;bottom:0;left:0;width:100%;height:100%;border:0}

/* ---- give button (tithe.ly override) ---- */
.tithely-give-button{
  background-color:var(--steel-ink) !important;
  font-family:var(--body) !important;
  font-weight:700 !important;
  font-size:1rem !important;
  padding:.9rem 2.5rem !important;
  border-radius:2px !important;
  color:#fff !important;
  text-shadow:none !important;
  border:none !important;
}
.tithely-give-button:hover{background-color:var(--steel-ink-hover) !important}

/* ---- social icons ---- */
.social-icons{display:flex;gap:.85rem;align-items:center}
.social-icons a{color:#c6ced9;display:inline-flex;flex:none;transition:color .15s}
.social-icons a:hover{color:#fff}
.social-icons svg{width:16px;height:16px;display:block;flex:none}

.social-row{display:flex;flex-direction:column;gap:.55rem;margin-top:1.5rem}
.social-row a{display:flex;align-items:center;gap:.65rem;padding:.7rem .95rem;border:1.5px solid var(--line);border-radius:2px;text-decoration:none;color:var(--ink);font-weight:600;font-size:.88rem;transition:.15s}
.social-row a:hover{border-color:var(--steel);background:var(--paper-2)}
.social-row svg{width:17px;height:17px;flex:none;color:var(--steel)}
.social-row--quiet{gap:.6rem}
.social-row--quiet a{padding:.15rem 0;border:none;font-weight:500;color:var(--grey)}
.social-row--quiet a:hover{background:transparent;color:var(--steel-ink);text-decoration:underline}
.social-row--quiet svg{color:var(--steel-ink)}

/* ---- footer ---- */
/* The closing CTA band and the footer share the same near-black background, so
   without help they read as one continuous slab. Two system-level fixes rather
   than per-page magic numbers: give the last dark band real breathing room
   below its content, and make the footer's top edge actually visible. */
.section--dark:last-of-type{padding-bottom:clamp(4.5rem,3.5rem + 4vw,7rem)}
.footer{background:var(--ink);color:#a2aab6;padding-block:clamp(2.8rem,2rem + 3vw,4rem);font-size:.94rem;border-top:1px solid rgba(255,255,255,.08)}
.footer{border-top-color:rgba(255,255,255,.16);padding-top:clamp(3.25rem,2.5rem + 3vw,4.5rem)}
/* Extra room below the last footer row so it never sits flush against the
   viewport edge or under mobile browser chrome. */
.footer{padding-bottom:clamp(3.5rem,2.5rem + 4vw,5rem)}
@media (max-width:34rem){
  /* Give Now is a compact, self-contained CTA — centering it reads better on
     phones, while the explanatory giving copy above stays left-aligned. */
  .give-cta{text-align:center}
}
.footer h3{color:#fff;font-size:1rem;font-family:var(--body);font-weight:700;letter-spacing:.06em;text-transform:uppercase;margin-bottom:.9rem}
.footer a{color:#c6ced9;text-decoration:none}
.footer a:hover{color:#fff;text-decoration:underline}
.footer__grid{display:grid;grid-template-columns:1.5fr 1fr 1fr;gap:2.5rem}
.footer__brand{display:flex;align-items:center;gap:.75rem;margin-bottom:1rem}
.footer__brand img{width:52px;height:52px;border-radius:50%}
.footer__brand span{font-family:var(--display);font-size:1.2rem;color:#fff;font-weight:600}
.footer ul{list-style:none;margin:0;padding:0}
.footer li{margin-bottom:.55rem}
.footer__bottom{margin-top:2.6rem;padding-top:1.5rem;border-top:1px solid rgba(255,255,255,.1);font-size:.85rem;color:#78818e;display:flex;flex-wrap:wrap;gap:.6rem 2rem;justify-content:space-between}

@media (max-width:74rem){
  .nav-toggle{display:inline-flex}
  .nav{
    display:none;
    position:absolute;top:100%;left:0;right:0;
    flex-direction:column;align-items:stretch;gap:0;
    background:var(--ink);
    border-bottom:1px solid rgba(255,255,255,.1);
    padding:.25rem var(--gutter) .75rem;
    box-shadow:0 12px 24px rgba(0,0,0,.35);
    z-index:60;
  }
  .nav.is-open{display:flex}
  .nav a{padding:.9rem 0;border-bottom:1px solid rgba(255,255,255,.07);min-height:48px;display:flex;align-items:center;font-size:1rem}
  .nav a:last-of-type{border-bottom:none}
  .cta .btn--outline{display:none}
  .split,.split.reverse{grid-template-columns:1fr}
  .split.reverse .frame{order:0}
  .quick__grid,.rhythm{grid-template-columns:1fr 1fr}
  .footer__grid{grid-template-columns:1fr}
  .gallery{grid-template-columns:1fr 1fr}
  .cardgrid{grid-template-columns:1fr 1fr}
  .leadgrid{grid-template-columns:1fr 1fr}
  .leader-featured{grid-template-columns:1fr}
  .leader-featured .frame{max-width:20rem;margin-inline:auto}
  .topbar .right{display:none}
}
@media (max-width:28rem){
  .brand span{display:none}
}
@media (max-width:34rem){
  .cardgrid{grid-template-columns:1fr}
  .cardgrid.cols-2{grid-template-columns:1fr}
  /* Two-column portrait cards squeeze titles like "Assistant Children's
     Ministry Director" onto three cramped lines. Single column instead — but
     laid out horizontally (photo left, name/role right) so ten full-width 4:5
     portraits don't turn the page into an endless scroll. */
  .leadgrid{grid-template-columns:1fr;gap:1.1rem}
  .leadcard{display:grid;grid-template-columns:5.5rem 1fr;grid-template-rows:auto auto;column-gap:1rem;row-gap:.15rem;align-content:center}
  .leadcard .frame{grid-column:1;grid-row:1 / 3;aspect-ratio:1/1;margin-bottom:0;align-self:center}
  .leadcard h3{grid-column:2;grid-row:1;align-self:end;font-size:1rem}
  .leadcard .role{grid-column:2;grid-row:2;align-self:start}
}

/* ---- narrowest phones (~320px) ----
   Placed last on purpose: media queries of equal specificity are resolved by
   source order, and the broader max-width blocks above would otherwise win. */
@media (max-width:23rem){
  /* At 320px the 2-up schedule grid overflowed — fixed 1.4rem side padding
     plus vertical borders exceeded the available track width. */
  .quick__grid,.rhythm{grid-template-columns:1fr}
  .rhythm__item{padding:1.25rem 1rem;border-right:none;border-bottom:1px solid var(--line)}
  .rhythm__item:last-child{border-bottom:none}
  .section--dark .rhythm__item{border-bottom-color:rgba(255,255,255,.12)}
}
