/* Reformed Heritage Church — site styles */
:root {
  --navy: #1b2341;
  --navy-deep: #121a2e;
  --gold: #c9a064;
  --gold-dark: #7d5a1f;
  --maroon: #660000;
  --cream: #f2e9d8;
  --paper: #faf6ee;
  --ink: #1f2330;
  --muted: #4d5263;
  --line: #dfcfae;
  --serif: "Spectral", "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: "Albert Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --wrap: 1120px;
  --radius: 6px;
}
*, *::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; } }
body { margin: 0; font-family: var(--serif); font-size: 1.125rem; line-height: 1.65; color: var(--ink); background: var(--paper); overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--maroon); text-underline-offset: 3px; }
a:hover { color: var(--navy); }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.2; margin: 0 0 .6em; color: var(--navy); }
h1 { font-size: clamp(2rem, 5.2vw, 3.4rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.6rem, 3.6vw, 2.4rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }
.wrap { width: min(var(--wrap), 100% - 2.5rem); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 0; background: var(--gold); color: var(--navy-deep); padding: .6rem 1rem; z-index: 100; }
.skip:focus { left: 1rem; top: 1rem; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

/* eyebrow labels, from the old site's "— LABEL" style */
.eyebrow { font-family: var(--sans); font-size: .8rem; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--gold-dark); margin: 0 0 .9rem; display: flex; align-items: center; gap: .75rem; }
.eyebrow::before { content: ""; width: 28px; height: 2px; background: currentColor; }
.dark .eyebrow, .hero .eyebrow, .page-head .eyebrow { color: var(--gold); }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 48px; padding: .75rem 1.5rem; border-radius: var(--radius); font-family: var(--sans); font-weight: 600; font-size: 1rem; text-decoration: none; border: 2px solid transparent; cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
.btn-gold { background: var(--gold); color: var(--navy-deep); }
.btn-gold:hover { background: #dbb57c; color: var(--navy-deep); }
.btn-ghost { border-color: rgba(255,255,255,.7); color: #fff; }
.btn-ghost:hover { background: #fff; color: var(--navy); }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-deep); color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: .8rem; }
.more { font-family: var(--sans); font-weight: 600; font-size: 1rem; color: var(--maroon); text-decoration: none; display: inline-block; padding: .3rem 0; }
.more:hover { text-decoration: underline; }

/* header */
.site-header { background: var(--navy); color: #fff; position: sticky; top: 0; z-index: 50; box-shadow: 0 1px 0 rgba(255,255,255,.06); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 76px; }
.brand { display: flex; align-items: center; gap: .9rem; text-decoration: none; color: #fff; }
.brand img { width: 150px; height: 60px; }
.brand .tagline { font-family: var(--sans); font-size: .8rem; letter-spacing: .08em; color: #d9cbb1; line-height: 1.35; border-left: 1px solid rgba(201,160,100,.5); padding-left: .9rem; display: none; }
.nav-toggle { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; background: transparent; border: 1px solid rgba(255,255,255,.35); border-radius: var(--radius); color: #fff; cursor: pointer; }
.nav-toggle svg { width: 24px; height: 24px; }
.site-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--navy); border-top: 1px solid rgba(255,255,255,.1); padding: .5rem 1.25rem 1.25rem; }
.site-nav.open { display: block; }
.site-nav ul { list-style: none; margin: 0; padding: 0; }
.site-nav a { display: block; padding: .8rem .25rem; color: #fff; text-decoration: none; font-family: var(--sans); font-weight: 600; letter-spacing: .06em; font-size: 1rem; border-bottom: 1px solid rgba(255,255,255,.08); }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--gold); }
.site-nav .nav-give a { color: var(--gold); }
@media (min-width: 560px) { .brand .tagline { display: block; } }
@media (min-width: 1000px) and (max-width: 1199px) { .brand .tagline { display: none; } }
@media (min-width: 1000px) {
  .nav-toggle { display: none; }
  .site-nav { display: block; position: static; background: none; border: 0; padding: 0; }
  .site-nav ul { display: flex; align-items: center; gap: .2rem; }
  .site-nav a { border: 0; padding: .55rem .7rem; font-size: .95rem; }
  .site-nav .nav-give a { border: 2px solid var(--gold); border-radius: var(--radius); padding: .45rem 1rem; margin-left: .5rem; }
  .site-nav .nav-give a:hover { background: var(--gold); color: var(--navy-deep); }
}

/* hero */
.hero { position: relative; color: #fff; background: var(--navy-deep); overflow: hidden; }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 60% 30%; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(18,26,46,.94) 0%, rgba(18,26,46,.82) 50%, rgba(18,26,46,.55) 100%); }
.hero .wrap { position: relative; z-index: 1; padding: 4.5rem 0 5rem; }
.hero h1 { color: #fff; max-width: 17em; }
.hero h1 em { font-style: normal; color: var(--gold); }
.hero .lead { font-size: 1.2rem; max-width: 34em; color: #e9e3d6; margin-bottom: 1.8rem; }
@media (min-width: 800px) { .hero .wrap { padding: 7rem 0 7.5rem; } }

.page-head { background: var(--navy-deep); color: #fff; position: relative; overflow: hidden; }
.page-head .wrap { position: relative; z-index: 1; padding: 3.5rem 0 3.25rem; }
.page-head h1 { color: #fff; margin-bottom: .4em; }
.page-head p { color: #e2dccd; max-width: 40em; font-size: 1.15rem; margin: 0; }
.page-head.has-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.page-head.has-img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(18,26,46,.95), rgba(18,26,46,.72)); }

/* sections */
.section { padding: 4rem 0; }
.section.cream { background: var(--cream); }
.section.dark { background: var(--navy); color: #eee7da; }
.section.dark h2, .section.dark h3 { color: #fff; }
.section.dark a:not(.btn) { color: var(--gold); }
@media (min-width: 800px) { .section { padding: 5.5rem 0; } }
.split { display: grid; gap: 2.5rem; }
@media (min-width: 860px) { .split { grid-template-columns: 1fr 1fr; align-items: center; gap: 4rem; } .split.top { align-items: start; } }
.intro { max-width: 46em; }
.checks { list-style: none; padding: 0; margin: 0; border-top: 2px solid var(--line); }
.checks li { padding: 1rem 0 1rem 2.2rem; border-bottom: 1px solid var(--line); position: relative; }
.checks li::before { content: ""; position: absolute; left: .2rem; top: 1.45rem; width: 12px; height: 12px; border: 2px solid var(--gold-dark); transform: rotate(45deg); }
.photo { border-radius: var(--radius); overflow: hidden; box-shadow: 0 12px 30px rgba(18,26,46,.18); }
.photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
figure { margin: 0; }
figcaption { font-family: var(--sans); font-size: .9rem; color: var(--muted); padding-top: .6rem; }

/* cards */
.cards { display: grid; gap: 1.25rem; }
@media (min-width: 760px) { .cards.three { grid-template-columns: repeat(3, 1fr); } .cards.two { grid-template-columns: repeat(2, 1fr); } }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem; }
.cream .card { background: var(--paper); }
.card h3 { margin-bottom: .2em; }
.card .when { font-family: var(--sans); font-weight: 600; color: var(--maroon); font-size: .95rem; letter-spacing: .04em; text-transform: uppercase; margin-bottom: .8rem; }
.card p:last-child, .card ul:last-child { margin-bottom: 0; }
.card ul { padding-left: 1.1rem; margin: 0; }
.note { font-family: var(--sans); font-size: 1rem; color: var(--muted); margin-top: 1.5rem; }

/* beliefs */
.articles { display: grid; gap: 1rem; counter-reset: art; }
@media (min-width: 760px) { .articles { grid-template-columns: 1fr 1fr; } }
.article { background: var(--paper); border-left: 3px solid var(--gold); padding: 1.2rem 1.4rem; border-radius: 0 var(--radius) var(--radius) 0; }
.article h3 { font-family: var(--sans); font-size: .85rem; letter-spacing: .18em; text-transform: uppercase; color: var(--gold-dark); margin-bottom: .4rem; }
.article p { margin: 0; }
.mission { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: 1rem; }
.mission li { display: grid; grid-template-columns: 3rem 1fr; gap: .5rem; align-items: baseline; }
.mission b { font-family: var(--serif); font-size: 1.5rem; color: var(--gold-dark); }
blockquote { margin: 1.5rem 0; padding: 1.2rem 1.5rem; border-left: 3px solid var(--gold); font-size: 1.3rem; font-style: italic; color: var(--navy); background: rgba(201,160,100,.1); }
.solas { display: flex; flex-wrap: wrap; gap: .5rem; padding: 0; list-style: none; margin: 1.2rem 0; }
.solas li { font-family: var(--sans); font-size: .9rem; border: 1px solid var(--gold); color: var(--gold); padding: .3rem .8rem; border-radius: 999px; font-style: italic; }

/* leadership */
.people { display: grid; gap: 1.5rem; }
@media (min-width: 760px) { .people { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1060px) { .people { grid-template-columns: repeat(3, 1fr); } }
.person { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.person img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; object-position: center 25%; background: var(--cream); }
.person .body { padding: 1.4rem 1.5rem 1.6rem; }
.person .role { font-family: var(--sans); font-size: .8rem; letter-spacing: .18em; text-transform: uppercase; color: var(--gold-dark); font-weight: 600; margin: 0 0 .3rem; }
.person h2 { font-size: 1.5rem; margin-bottom: .6rem; }
.person p { font-size: 1.02rem; }
.person blockquote { font-size: 1.05rem; margin: .5rem 0 1rem; padding: .8rem 1rem; }
.pastor-feature { display: grid; gap: 1.5rem; align-items: center; }
.pastor-feature img { width: 180px; border-radius: var(--radius); box-shadow: 0 10px 24px rgba(0,0,0,.25); }
@media (min-width: 700px) { .pastor-feature { grid-template-columns: 200px 1fr; gap: 2.5rem; } }

/* sermons */
.listen-links { display: grid; gap: .75rem; }
@media (min-width: 700px) { .listen-links { grid-template-columns: repeat(2, 1fr); } }
.listen-links a { display: flex; align-items: center; gap: .9rem; padding: 1rem 1.2rem; min-height: 64px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--navy); font-family: var(--sans); font-weight: 600; }
.listen-links a:hover { border-color: var(--gold); box-shadow: 0 6px 16px rgba(18,26,46,.1); }
.listen-links svg { width: 28px; height: 28px; flex: none; color: var(--maroon); }
.listen-links small { display: block; font-weight: 400; color: var(--muted); font-size: .9rem; }
.sermon-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
.sermon { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.2rem 1.4rem; }
.dark .sermon { background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.15); }
.sermon .date { font-family: var(--sans); font-size: .85rem; letter-spacing: .1em; text-transform: uppercase; color: var(--gold-dark); font-weight: 600; }
.dark .sermon .date { color: var(--gold); }
.sermon h3 { margin: .25rem 0 .35rem; font-size: 1.25rem; }
.sermon h3 a { color: inherit; text-decoration: none; }
.sermon h3 a:hover { text-decoration: underline; }
.sermon .meta { font-family: var(--sans); font-size: .95rem; color: var(--muted); margin: 0 0 .6rem; }
.dark .sermon .meta { color: #cfc8b8; }
.sermon .actions { display: flex; flex-wrap: wrap; gap: .5rem 1.2rem; font-family: var(--sans); font-size: .95rem; font-weight: 600; }
.sermon .actions a { padding: .25rem 0; }

/* donate band */
.give { background: var(--navy-deep); color: #e8e1d2; text-align: center; }
.give h2 { color: #fff; }
.give p { max-width: 36em; margin-inline: auto; margin-bottom: 1.6rem; }

/* forms */
.form { display: grid; gap: 1rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem; }
.form .row { display: grid; gap: 1rem; }
@media (min-width: 600px) { .form .row { grid-template-columns: 1fr 1fr; } }
.form label { display: block; font-family: var(--sans); font-weight: 600; font-size: .95rem; margin-bottom: .35rem; color: var(--navy); }
.form input, .form textarea { width: 100%; font: inherit; font-size: 1rem; padding: .75rem .9rem; border: 1px solid #c9bb9e; border-radius: var(--radius); background: var(--paper); color: var(--ink); }
.form input:focus, .form textarea:focus { outline: 2px solid var(--gold); border-color: var(--gold-dark); }
.form textarea { min-height: 150px; resize: vertical; }
.map { border: 0; width: 100%; height: 340px; border-radius: var(--radius); background: var(--cream); }

/* footer */
.site-footer { background: var(--navy); color: #d8d1c2; font-family: var(--sans); font-size: 1rem; padding: 3.5rem 0 2.5rem; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { color: var(--gold); text-decoration: underline; }
.footer-grid { display: grid; gap: 2.2rem; }
@media (min-width: 720px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .footer-grid { grid-template-columns: 1.3fr 1fr 1fr 1fr; } }
.site-footer h2 { font-family: var(--sans); font-size: .8rem; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); margin-bottom: .9rem; }
.site-footer p { margin: 0 0 .9rem; line-height: 1.55; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li a { display: inline-block; padding: .3rem 0; }
.site-footer .times { font-family: var(--serif); font-size: 1.35rem; color: #fff; margin-bottom: .4rem; }
.footer-logo { width: 150px; height: 60px; margin-bottom: 1rem; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 2.5rem; padding-top: 1.5rem; font-size: .9rem; color: #b9b2a4; display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; justify-content: space-between; }
.site-footer .phone { font-size: 1.15rem; font-weight: 600; display: inline-block; padding: .3rem 0; }
.site-footer p > a { display: inline-block; padding: .2rem 0; }
.footer-bottom a { display: inline-block; padding: .35rem 0; }

.center { text-align: center; }
.mt { margin-top: 2rem; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
