/* High Forest Community Church — main stylesheet. Mobile-first; larger screens add rules in @media (min-width: ...). */
:root {
  --cream: #F7F2E7;
  --cream-2: #EFE7D6;
  --white: #FFFFFF;
  --green: #1F3A2E;
  --green-2: #2A4A3B;
  --gold: #B8975A;
  --gold-dark: #8A6B33;   /* gold dark enough for text on cream (AA) */
  --sage: #92B079;
  --sage-light: #E3ECD9;
  --ink: #26302B;
  --muted: #5A645E;
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --radius: 6px;
  --shadow: 0 10px 30px rgba(31, 58, 46, .14);
  --wrap: 1120px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body { margin: 0; background: var(--cream); color: var(--ink); font: 400 1rem/1.65 var(--sans); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--green); text-decoration-color: var(--gold); text-underline-offset: 3px; }
a:hover { color: var(--gold-dark); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 2px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.15; color: var(--green); margin: 0 0 .5em; }
h1 { font-size: clamp(2.1rem, 7vw, 3.6rem); font-weight: 500; }
h2 { font-size: clamp(1.7rem, 4.5vw, 2.5rem); }
h3 { font-size: 1.4rem; }
p { margin: 0 0 1em; }
.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.narrow { max-width: 760px; }
.center { text-align: center; }
.small { font-size: .875rem; }
.muted { color: var(--muted); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 1rem; top: -100px; z-index: 100; background: var(--gold); color: var(--green); padding: .6rem 1rem; font-weight: 600; }
.skip-link:focus { top: .5rem; }
.icon { flex: none; }

.eyebrow { font-family: var(--serif); font-weight: 700; text-transform: uppercase; letter-spacing: .18em; font-size: .95rem; color: var(--gold-dark); margin-bottom: .5rem; }
.section-dark .eyebrow, .hero .eyebrow, .page-banner .eyebrow, .cta-band .eyebrow { color: var(--gold); }

/* Buttons & links */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 48px; padding: .75rem 1.5rem; border: 2px solid transparent; border-radius: var(--radius); font: 600 .9rem/1.2 var(--sans); letter-spacing: .06em; text-transform: uppercase; text-decoration: none; cursor: pointer; transition: background .2s, color .2s, transform .2s; }
.btn:hover { transform: translateY(-1px); }
.btn-gold { background: var(--gold); color: #1a1a1a; }
.btn-gold:hover { background: #CDAE72; color: #1a1a1a; }
.btn-ghost { border-color: rgba(255,255,255,.75); color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,.12); color: #fff; }
.btn-outline { border-color: var(--green); color: var(--green); }
.btn-outline:hover { background: var(--green); color: #fff; }
.btn-block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.25rem; }
.center-row { justify-content: center; }
.link-arrow { font-weight: 600; text-decoration: none; border-bottom: 2px solid var(--gold); padding-bottom: 2px; }
.link-arrow::after { content: " →"; }
.link-gold { color: var(--gold); }
.link-gold:hover { color: #E0C48A; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--green); background-image: linear-gradient(180deg, rgba(255,255,255,.04), rgba(0,0,0,.08)); border-bottom: 2px solid var(--gold); }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 64px; gap: 1rem; }
.brand img { width: 168px; height: auto; }
.nav-toggle { display: inline-flex; align-items: center; gap: .55rem; background: none; border: 1px solid rgba(255,255,255,.4); color: #fff; padding: .55rem .8rem; border-radius: var(--radius); font: 500 .9rem var(--sans); cursor: pointer; min-height: 44px; }
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after { display: block; width: 18px; height: 2px; background: currentColor; position: relative; transition: transform .2s; }
.nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle-bars::before { top: -6px; } .nav-toggle-bars::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: translateY(-6px) rotate(-45deg); }
.site-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--green); border-bottom: 2px solid var(--gold); box-shadow: var(--shadow); }
.site-nav.open { display: block; }
.site-nav ul { list-style: none; margin: 0; padding: .5rem 1.25rem 1rem; }
.site-nav a { display: block; padding: .8rem .25rem; color: #fff; text-decoration: none; border-bottom: 1px solid rgba(255,255,255,.1); font-size: 1.05rem; }
.site-nav a[aria-current="page"] { color: var(--gold); }
.no-js .site-nav { display: block; position: static; box-shadow: none; border: 0; }
@media (min-width: 1060px) {
  .brand img { width: 210px; }
  .header-inner { min-height: 80px; }
  .nav-toggle { display: none; }
  .site-nav, .no-js .site-nav { display: block; position: static; background: none; border: 0; box-shadow: none; }
  .site-nav ul { display: flex; gap: .2rem; padding: 0; }
  .site-nav a { border: 0; padding: .5rem .7rem; font-size: .92rem; border-bottom: 2px solid transparent; }
  .site-nav a:hover { color: var(--gold); }
  .site-nav a[aria-current="page"] { border-bottom-color: var(--gold); color: #fff; }
}

/* Hero (home) — on a phone the first screen shows times, address and Plan Your Visit */
.hero { position: relative; color: #fff; background: var(--green); overflow: hidden; isolation: isolate; }
.hero-bg img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 60%; z-index: -2; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(20,40,31,.78) 0%, rgba(20,40,31,.82) 55%, rgba(20,40,31,.95) 100%); }
.hero-inner { padding: 1.4rem 0 1.6rem; }
.hero h1 { color: #fff; margin-bottom: .35rem; font-size: clamp(2rem, 8.5vw, 4rem); }
.hero .eyebrow { font-size: .82rem; margin-bottom: .35rem; }
.hero-lead { font-size: 1rem; opacity: .92; margin-bottom: .9rem; max-width: 36rem; }
.times { list-style: none; margin: 0 0 .9rem; padding: 0; display: grid; gap: .45rem; }
.times li { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; padding: .5rem .85rem; background: rgba(255,255,255,.08); border-left: 3px solid var(--gold); border-radius: 0 var(--radius) var(--radius) 0; }
.times-time { font: 600 1.55rem/1 var(--serif); white-space: nowrap; order: 2; }
.times-time small { font-size: .7em; }
.times-label { text-transform: uppercase; letter-spacing: .1em; font-size: .74rem; font-weight: 600; color: #E7D3A8; }
.hero-address { display: flex; align-items: center; gap: .45rem; margin: 0; font-size: .95rem; }
.hero-address a { color: #fff; }
.hero .btn-row { margin-top: 1rem; }
.hero .btn { flex: 1 1 auto; }
@media (min-width: 800px) {
  .hero-inner { padding: 5.5rem 0 4.5rem; text-align: center; }
  .hero::after { background: linear-gradient(180deg, rgba(20,40,31,.55), rgba(20,40,31,.75)); }
  .hero-lead { margin-inline: auto; font-size: 1.15rem; margin-bottom: 2rem; }
  .times { grid-template-columns: repeat(3, 1fr); gap: 1rem; max-width: 900px; margin: 0 auto 1.5rem; }
  .times li { flex-direction: column; align-items: center; gap: .35rem; border: 1px solid rgba(184,151,90,.6); border-radius: var(--radius); padding: 1.1rem; background: rgba(20,40,31,.55); }
  .times-time { order: 0; font-size: 2.6rem; }
  .hero-address { justify-content: center; }
  .hero .btn-row { justify-content: center; }
  .hero .btn { flex: 0 0 auto; }
}

/* Announcements */
.announcements { background: var(--sage-light); border-bottom: 1px solid #cfdcc1; }
.announcement { padding: .85rem 0; font-size: .95rem; }
.announcement + .announcement { border-top: 1px solid #cfdcc1; }
.announcement strong { color: var(--green); margin-right: .25rem; }
.announcement a { font-weight: 600; white-space: nowrap; }

/* Sections */
.section { padding: 3.5rem 0; }
.section-light { background: var(--white); }
.section-dark { background: var(--green); color: #EDE8DC; }
.section-dark h2, .section-dark h3 { color: #fff; }
.cta-band { background: var(--green-2); color: #EDE8DC; }
.cta-band h2 { color: #fff; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 2rem; }
@media (min-width: 800px) { .section { padding: 5rem 0; } }
.split { display: grid; gap: 2rem; align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; gap: 4rem; } .split-reverse > :first-child { order: 0; } }
.photo-frame { margin: 0; }
.photo-frame img { border: 1px solid var(--gold); padding: 6px; background: var(--white); box-shadow: var(--shadow); width: 100%; }
.photo-frame figcaption { font: italic 500 1.05rem/1.4 var(--serif); color: var(--muted); text-align: center; margin-top: .75rem; }
.card { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 1.75rem; border-top: 4px solid var(--gold); }

/* Page banner */
.page-banner { background: var(--green); color: #fff; padding: 2.75rem 0 2.5rem; text-align: center; background-image: radial-gradient(ellipse at top, rgba(184,151,90,.18), transparent 60%); }
.page-banner h1 { color: #fff; margin-bottom: .25rem; }
.banner-lead { max-width: 40rem; margin: .5rem auto 0; opacity: .9; font-size: 1.05rem; }
@media (min-width: 800px) { .page-banner { padding: 4.5rem 0 4rem; } }

/* Values */
.values-grid { display: grid; gap: .75rem; margin: 2rem 0; text-align: left; }
.value { border: 1px solid var(--gold); border-radius: var(--radius); padding: 1rem 1.2rem; font: 500 1.25rem/1.3 var(--serif); color: #fff; }
.value span { display: block; font: 600 .75rem/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--gold); margin-bottom: .4rem; }
@media (min-width: 700px) { .values-grid { grid-template-columns: repeat(2, 1fr); } .value:last-child { grid-column: 1 / -1; } }
.lead-italic { font: italic 500 1.3rem/1.5 var(--serif); color: #fff; }

/* Sermons */
.sermon-grid { display: grid; gap: 1.25rem; margin-bottom: 2rem; }
@media (min-width: 640px) { .sermon-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .sermon-grid { grid-template-columns: repeat(3, 1fr); } }
.sermon-card { background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: 0 2px 10px rgba(31,58,46,.08); border: 1px solid #E7E0CF; display: flex; flex-direction: column; }
.section-light .sermon-card { background: var(--cream); }
.sermon-thumb { position: relative; display: block; aspect-ratio: 16/9; background: var(--green); }
.sermon-thumb img { width: 100%; height: 100%; object-fit: cover; }
.play { position: absolute; inset: 0; margin: auto; width: 56px; height: 56px; border-radius: 50%; background: rgba(31,58,46,.85); border: 2px solid var(--gold); }
.play::after { content: ""; position: absolute; left: 22px; top: 17px; border-left: 16px solid #fff; border-top: 10px solid transparent; border-bottom: 10px solid transparent; }
.sermon-thumb:hover .play { background: var(--gold); }
.sermon-body { padding: 1rem 1.2rem 1.25rem; }
.sermon-date { font-size: .78rem; text-transform: uppercase; letter-spacing: .12em; color: var(--gold-dark); font-weight: 600; margin-bottom: .3rem; }
.sermon-title { font-size: 1.35rem; margin-bottom: .25rem; }
.sermon-title a { text-decoration: none; }
.sermon-speaker { margin: 0; color: var(--muted); font-size: .95rem; }
.listen { list-style: none; padding: 0; margin: 1.5rem 0 0; display: flex; flex-wrap: wrap; gap: .75rem; justify-content: center; }
.btn-listen { border-color: var(--gold); color: #fff; }
.btn-listen:hover { background: var(--gold); color: #1a1a1a; }

/* Contact list & map */
.contact-list, .service-list { margin: 0 0 1rem; }
.contact-list div, .service-list div { padding: .6rem 0; border-bottom: 1px solid #E3DAC6; }
.contact-list dt, .service-list dt { font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-dark); font-weight: 600; }
.contact-list dd, .service-list dd { margin: 0; font-size: 1.05rem; }
.service-list dd { font-family: var(--serif); font-size: 1.3rem; font-weight: 600; color: var(--green); }
.map { border: 1px solid var(--gold); padding: 6px; background: var(--white); box-shadow: var(--shadow); margin-bottom: 1.5rem; }
.map iframe { display: block; width: 100%; height: 340px; border: 0; }

/* Plan your visit */
.visit-top { display: grid; gap: 2.5rem; }
@media (min-width: 900px) { .visit-top { grid-template-columns: 380px 1fr; gap: 4rem; align-items: start; } }
.visit-card h2 { font-size: 1.8rem; }
.info-grid { display: grid; gap: 1.25rem; }
@media (min-width: 700px) { .info-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .info-grid { grid-template-columns: repeat(3, 1fr); } }
.info { background: var(--cream); border-radius: var(--radius); padding: 1.5rem; border-left: 4px solid var(--sage); }
.info h3 { font-size: 1.45rem; }
.info p { margin: 0; }
.photo-row { display: grid; gap: 1.25rem; }
@media (min-width: 700px) { .photo-row { grid-template-columns: repeat(3, 1fr); } }
.photo-row img { aspect-ratio: 4/3; object-fit: cover; }
.faq details { background: var(--cream); border-radius: var(--radius); margin-bottom: .75rem; border: 1px solid #E7E0CF; }
.faq summary { cursor: pointer; padding: 1rem 3rem 1rem 1.25rem; font: 600 1.25rem/1.3 var(--serif); color: var(--green); list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 1.25rem; top: 50%; transform: translateY(-50%); font: 400 1.6rem var(--sans); color: var(--gold-dark); }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding: 0 1.25rem 1.1rem; margin: 0; }

/* Salvation */
.prose { max-width: 760px; }
.step { padding: 2rem 0; border-bottom: 1px solid #E3DAC6; }
.step h2 { display: flex; align-items: center; gap: .9rem; font-size: clamp(1.5rem, 4vw, 2rem); }
.step-num { flex: none; display: inline-grid; place-items: center; width: 2.4rem; height: 2.4rem; border-radius: 50%; background: var(--green); color: var(--gold); font: 600 1.15rem var(--sans); }
.step h3 { font-size: 1.3rem; margin-top: 1rem; }
.verse { margin: 1.25rem 0; padding: 1rem 1.25rem; background: var(--white); border-left: 4px solid var(--gold); border-radius: 0 var(--radius) var(--radius) 0; }
.verse p { font: italic 500 1.3rem/1.45 var(--serif); margin: 0 0 .35rem; color: var(--green); }
.verse cite { font-style: normal; font-size: .8rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-dark); }
.prayer { margin: 1.25rem 0; padding: 1.5rem; background: var(--green); color: #fff; border-radius: var(--radius); font: italic 500 1.35rem/1.5 var(--serif); }
.prayer p { margin: 0; }
.salvation-cta { margin-top: 3rem; }

/* History */
.milestones { list-style: none; padding: 0; margin: 0 0 3rem; display: grid; gap: .75rem; }
.milestones li { background: var(--white); border-radius: var(--radius); padding: 1rem 1.1rem; border-top: 3px solid var(--gold); box-shadow: 0 2px 10px rgba(31,58,46,.06); font-size: .92rem; line-height: 1.4; }
.milestones strong { display: block; font: 600 1.7rem/1 var(--serif); color: var(--green); margin-bottom: .3rem; }
@media (min-width: 700px) { .milestones { grid-template-columns: repeat(5, 1fr); } }
.timeline { list-style: none; margin: 0 auto; padding: 0; position: relative; max-width: 1000px; }
.timeline::before { content: ""; position: absolute; left: 1.15rem; top: 0; bottom: 0; width: 2px; background: linear-gradient(var(--gold), var(--sage)); }
.tl-item { position: relative; padding: 0 0 2.25rem 3.25rem; }
.tl-item::before { content: ""; position: absolute; left: .65rem; top: .35rem; width: 1.1rem; height: 1.1rem; border-radius: 50%; background: var(--cream); border: 3px solid var(--gold); }
.tl-year { font: 700 1.6rem/1 var(--serif); color: var(--gold-dark); margin-bottom: .4rem; }
.tl-content h2 { font-size: 1.6rem; margin-bottom: .4rem; }
.tl-content .photo-frame { margin-top: 1.25rem; max-width: 560px; }
@media (min-width: 900px) {
  .timeline::before { left: 7.6rem; }
  .tl-item { display: grid; grid-template-columns: 6.5rem 1fr; gap: 0 3rem; padding: 0 0 3rem; }
  .tl-item::before { left: 7.05rem; top: .45rem; }
  .tl-year { text-align: right; font-size: 1.9rem; }
  .tl-item.has-photo .tl-content { display: grid; grid-template-columns: 1fr 1fr; gap: 0 2.5rem; align-items: start; }
  .tl-item.has-photo .tl-content h2, .tl-item.has-photo .tl-content p { grid-column: 1; }
  .tl-item.has-photo .photo-frame { grid-column: 2; grid-row: 1 / span 3; margin-top: 0; }
  .tl-content > p { max-width: 38rem; }
}

/* Contact & form */
.contact-grid { display: grid; gap: 2.5rem; }
@media (min-width: 900px) { .contact-grid { grid-template-columns: 1fr 1.25fr; gap: 4rem; align-items: start; } }
.contact-grid h3 { margin-top: 1.75rem; }
.social-dark .social a { color: var(--green); }
.prayer-box { background: var(--sage-light); border: 1px solid var(--sage); border-radius: 10px; padding: 1.5rem; scroll-margin-top: 90px; }
@media (min-width: 700px) { .prayer-box { padding: 2.25rem; } }
.form-row { display: grid; gap: 0 1rem; }
@media (min-width: 560px) { .form-row { grid-template-columns: 1fr 1fr; } }
.field { margin-bottom: 1rem; }
.field label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: .3rem; color: var(--green); }
.field input, .field textarea { width: 100%; font: inherit; padding: .75rem .85rem; border: 1px solid #8FA58C; border-radius: var(--radius); background: #fff; color: var(--ink); min-height: 48px; }
.field input:focus, .field textarea:focus { outline: 3px solid var(--gold); outline-offset: 0; border-color: var(--green); }
.field [aria-invalid="true"] { border-color: #A3341F; box-shadow: 0 0 0 1px #A3341F; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
#turnstile-slot:not(:empty) { margin-bottom: 1rem; }
.form-status { margin: 1rem 0 0; font-weight: 600; }
.form-status.ok { color: var(--green); }
.form-status.err { color: #A3341F; }
.prayer-fallback { background: #fff; border-radius: var(--radius); padding: 1.25rem; }

/* Footer */
.site-footer { background: var(--green); color: #D9D3C3; padding: 3rem 0 0; border-top: 3px solid var(--gold); }
.site-footer a { color: #fff; text-decoration-color: rgba(184,151,90,.7); }
.site-footer a:hover { color: var(--gold); }
.footer-grid { display: grid; gap: 2rem; }
@media (min-width: 700px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .footer-grid { grid-template-columns: 1.3fr 1.2fr 1fr 1fr; } }
.site-footer address { font-style: normal; margin-top: 1rem; line-height: 1.8; }
.footer-h { font: 700 .85rem/1 var(--serif); letter-spacing: .18em; text-transform: uppercase; color: var(--gold); margin-bottom: 1rem; font-size: 1rem; }
.footer-links, .footer-times, .social { list-style: none; margin: 0; padding: 0; }
.footer-links li, .footer-times li { padding: .25rem 0; }
.footer-times li { display: flex; flex-direction: column; }
.footer-times strong { color: #fff; font-weight: 500; }
.social li { padding: .2rem 0; }
.social a { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; min-height: 32px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 2.5rem; padding: 1.25rem 0 1.5rem; font-size: .85rem; }
.footer-bottom p { margin: 0; }

/* ===== Seasonal theme hooks (future phase) =====
   js/season.js sets <html data-season="..."> to one of:
   good-friday | holy-saturday | easter | christmas   (or nothing on ordinary days).
   Preview any season with ?season=easter in the URL. Add effects inside these slots. */
html[data-season="good-friday"] { }
html[data-season="holy-saturday"] { }
html[data-season="easter"] { }
html[data-season="christmas"] { }

/* Contact page: on phones show the prayer form first */
@media (max-width: 899px) { .contact-grid .prayer-box { order: -1; } }
.prayer-fallback .btn { text-transform: none; letter-spacing: 0; white-space: normal; text-align: center; }
