/* ============================================================
   Wesley Chapel Community Church — shared styles
   Palette comes from the church logo.
   Change a color here and it changes on every page.
   ============================================================ */
:root{
  --teal:#243c46;          /* from the WC logo background */
  --teal-dark:#182b33;
  --cream:#f1f2ec;         /* from the WC logo lettering */
  --page:#f7f6ef;
  --gold:#c9a227;
  --rust:#a8442e;          /* "needed" accent */
  --ink:#22272a;
  --soft:#dfdfd4;
  --display:'Fraunces', Georgia, serif;
  --body:'Karla', -apple-system, sans-serif;
}
*{margin:0;padding:0;box-sizing:border-box;}
html{scroll-behavior:smooth;}
@media (prefers-reduced-motion: reduce){html{scroll-behavior:auto;}}
body{font-family:var(--body);color:var(--ink);background:var(--page);line-height:1.6;}
img{max-width:100%;display:block;}
a{color:var(--rust);}
h1,h2,h3{font-family:var(--display);color:var(--teal);line-height:1.15;font-variant-ligatures:none;font-feature-settings:"liga" 0,"dlig" 0,"calt" 0;font-optical-sizing:none;}
.wrap{max-width:1040px;margin:0 auto;padding:0 20px;}
.eyebrow{font-size:.78rem;letter-spacing:.18em;text-transform:uppercase;color:var(--rust);font-weight:700;margin-bottom:.6rem;}
section{padding:64px 0;}
.btn{display:inline-block;background:var(--teal);color:var(--cream);text-decoration:none;padding:.8rem 1.6rem;border-radius:4px;font-weight:700;letter-spacing:.02em;}
.btn:focus-visible, a:focus-visible{outline:3px solid var(--gold);outline-offset:2px;}
.btn.ghost{background:transparent;color:var(--teal);border:2px solid var(--teal);}
.btn.fb{background:#1877f2;color:#fff;}

/* ---------- NAV ---------- */
nav{background:var(--teal);position:sticky;top:0;z-index:50;}
.nav-inner{max-width:1040px;margin:0 auto;padding:0 20px;display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;}
.nav-name{color:var(--cream);font-family:var(--display);font-weight:600;font-size:1.05rem;padding:10px 0;text-decoration:none;display:flex;align-items:center;gap:.7rem;}
.nav-logo{height:58px;width:58px;border-radius:50%;}
.nav-links{display:flex;gap:1.2rem;flex-wrap:wrap;padding:10px 0;}
.nav-links a{color:var(--cream);opacity:.8;text-decoration:none;font-size:.92rem;font-weight:500;}
.nav-links a:hover{opacity:1;text-decoration:underline;}
.nav-links a.active{opacity:1;border-bottom:2px solid var(--gold);}

/* ---------- HOME HERO ---------- */
header.hero{background:var(--teal);color:var(--cream);padding:34px 0 0;text-align:center;}
.hero .logo{max-width:156px;margin:0 auto .6rem;}
.hero h1{color:var(--cream);font-size:clamp(2rem,5vw,3.2rem);font-weight:700;max-width:22ch;margin:0 auto .6rem;}
.hero .motto{font-family:var(--display);font-size:clamp(1.1rem,2.6vw,1.45rem);color:var(--gold);font-weight:600;font-style:italic;margin-bottom:.7rem;}
.hero p.sub{max-width:52ch;margin:0 auto 1.1rem;color:var(--cream);opacity:.9;font-size:1rem;}
.hero .btn-row{display:flex;gap:.8rem;justify-content:center;flex-wrap:wrap;margin-bottom:24px;}
.hero .btn{background:var(--gold);color:var(--teal-dark);}
.hero .btn.ghost{background:transparent;color:var(--cream);border:2px solid var(--cream);}

/* ---------- Roadside letter-board sign (home) ---------- */
.signboard{max-width:560px;margin:0 auto;transform:translateY(50%);}
.sign-frame{background:#fff;border:10px solid var(--teal-dark);border-radius:6px;box-shadow:0 14px 34px rgba(0,0,0,.3);}
.sign-top{background:var(--gold);color:var(--teal-dark);font-family:var(--display);font-weight:700;text-align:center;padding:.55rem;letter-spacing:.12em;text-transform:uppercase;font-size:.85rem;}
.sign-letters{background:repeating-linear-gradient(180deg,#f4f1e8 0 34px,#e7e4d6 34px 36px);padding:1.1rem 1rem;text-align:center;font-family:var(--display);color:var(--ink);}
.sign-letters .line{font-size:1.05rem;font-weight:600;letter-spacing:.1em;text-transform:uppercase;line-height:36px;}
.sign-letters .line strong{color:var(--rust);}
.hero-spacer{height:100px;background:var(--page);}

/* ---------- INNER PAGE HEADER ---------- */
header.page-head{background:var(--teal);color:var(--cream);padding:48px 0;}
.page-head h1{color:var(--cream);font-size:clamp(1.8rem,4vw,2.6rem);}
.page-head p{color:var(--cream);opacity:.85;max-width:62ch;margin-top:.4rem;}

/* ---------- GRIDS & CARDS ---------- */
.grid{display:grid;gap:1.4rem;}
.grid.cols-3{grid-template-columns:repeat(auto-fit,minmax(240px,1fr));}
.grid.cols-2{grid-template-columns:repeat(auto-fit,minmax(300px,1fr));}
.card{background:#fff;border:1px solid var(--soft);border-radius:8px;padding:1.6rem;}
.card h3{margin-bottom:.5rem;font-size:1.25rem;}
.card .meta{font-size:.85rem;color:var(--rust);font-weight:700;letter-spacing:.06em;text-transform:uppercase;margin-bottom:.4rem;}
.card.photo{padding:0;overflow:hidden;}
.card.photo img{width:100%;height:280px;object-fit:cover;}
.card.photo .cap{padding:1rem 1.3rem;}
.card.link-card{text-decoration:none;display:block;color:var(--ink);transition:transform .12s ease, box-shadow .12s ease;}
.card.link-card:hover{transform:translateY(-3px);box-shadow:0 8px 20px rgba(0,0,0,.08);}
.card.link-card .go{color:var(--rust);font-weight:700;}

section.alt{background:#ebeae0;}
section h2{font-size:clamp(1.7rem,3.5vw,2.3rem);margin-bottom:1.2rem;max-width:26ch;}
.lede{max-width:62ch;margin-bottom:2rem;font-size:1.05rem;}

/* ---------- VISIT ---------- */
.expect{border-left:4px solid var(--gold);padding-left:1.2rem;margin-bottom:1.1rem;}
.expect h3{font-size:1.1rem;margin-bottom:.2rem;}

/* ---------- VOLUNTEER SCHEDULE ---------- */
table.sched{width:100%;border-collapse:collapse;background:#fff;border:1px solid var(--soft);border-radius:8px;overflow:hidden;}
.sched th{background:var(--teal);color:var(--cream);text-align:left;padding:.7rem .9rem;font-size:.85rem;letter-spacing:.06em;text-transform:uppercase;}
.sched td{padding:.7rem .9rem;border-top:1px solid var(--soft);font-size:.95rem;}
.pill{display:inline-block;font-size:.75rem;font-weight:700;padding:.18rem .65rem;border-radius:999px;letter-spacing:.04em;text-transform:uppercase;}
.pill.need{background:#f6e3dc;color:var(--rust);}
.pill.filled{background:#e2eadf;color:#3a5a40;}
.sched-note{font-size:.9rem;margin-top:.8rem;color:#555;}

.map-embed{border:0;width:100%;height:320px;border-radius:8px;}
ul.plain{list-style:none;}
ul.plain li{padding:.45rem 0;border-bottom:1px dashed var(--soft);}

/* ---------- FOOTER ---------- */
footer{background:var(--teal);border-top:4px solid var(--gold);color:var(--cream);padding:48px 0;font-size:.92rem;}
.foot-logo{height:168px;width:168px;margin:0 auto 1.8rem;display:block;}
footer a{color:var(--gold);}
.foot-grid{display:grid;gap:2rem;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));}
footer h3{color:var(--cream);font-size:1.05rem;margin-bottom:.6rem;}

/* ============================================================
   MOBILE  (phones, ~600px and below)
   ============================================================ */
@media (max-width: 600px){
  section{padding:48px 0;}

  /* Nav: smaller brand text so logo + links fit tidily */
  .nav-name{font-size:.92rem;gap:.5rem;}
  .nav-logo{height:48px;width:48px;}
  .nav-links{gap:.9rem;}

  /* Hero sign: drop the overlap trick so it never collides
     with the text below — it just sits in the hero with space. */
  .signboard{transform:none;margin-top:1.6rem;max-width:100%;}
  .hero-spacer{display:none;}
  header.hero{padding-bottom:48px;}
  .sign-letters .line{font-size:.95rem;letter-spacing:.06em;}

  /* Volunteer table: stack each row into a labeled card
     instead of forcing a 4-column sideways scroll. */
  table.sched thead{position:absolute;left:-9999px;}   /* hide header row */
  table.sched, table.sched tbody, table.sched tr, table.sched td{display:block;width:100%;}
  table.sched tr{border-top:2px solid var(--teal);padding:.5rem 0;}
  table.sched tr:first-child{border-top:none;}
  .sched td{border:none;padding:.25rem .9rem;font-size:.95rem;}
  .sched td:first-child{font-family:var(--display);font-weight:700;color:var(--teal);font-size:1.05rem;padding-top:.6rem;}
  .sched td:nth-of-type(2)::before{content:"";}
  .sched td:nth-of-type(3)::before{content:"Help with: ";font-weight:700;}
  .sched td:nth-of-type(4){padding-top:.4rem;padding-bottom:.6rem;}
}

/* ---------- MEET THE PASTOR ---------- */
.pastor-feature{margin:0 auto 2.2rem;text-align:center;}
.pastor-feature img{max-width:100%;max-height:520px;border-radius:10px;border:1px solid var(--soft);display:inline-block;}
.pastor-feature figcaption{font-size:.9rem;color:#6b7068;margin-top:.7rem;font-style:italic;}
.pastor-bio{max-width:70ch;}
.pullquote{border-left:4px solid var(--gold);margin:1.2rem 0;padding:.3rem 0 .3rem 1.4rem;
  font-family:var(--display);font-style:italic;font-size:1.55rem;color:var(--teal);line-height:1.25;}
@media (max-width:600px){
  .pastor-feature img{max-height:none;width:100%;}
  .pullquote{font-size:1.3rem;}
}


/* ---------- JOB LISTS ---------- */
ul.joblist{list-style:disc;padding-left:1.2rem;margin-top:.5rem;}
ul.joblist li{padding:.22rem 0;border:none;}


/* ---- normalize Fraunces letterforms everywhere the display font is used ---- */
.motto,.nav-name,.sign-top,.sign-letters,.pullquote,.hero h1{
  font-variant-ligatures:none;font-feature-settings:"liga" 0,"dlig" 0,"calt" 0;font-optical-sizing:none;}


/* ---- Summer Movie Night flyer: show the whole graphic, uncropped ---- */
.card.photo img.flyer{height:auto;object-fit:contain;background:#0e1f27;}
