/* Grace Bible Church of Conway — static site styles */
:root {
  --navy: #22397d;        /* from the GBC logo */
  --navy-deep: #16244f;
  --wood: #7b4a2c;        /* the sanctuary's wooden arches */
  --wood-light: #a8754f;
  --cream: #faf7f1;
  --sand: #f1ebe0;
  --ink: #1f2430;
  --muted: #5a5f6b;
  --line: #e2dacb;
  --white: #fff;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, "Times New Roman", serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --radius: 10px;
  --wrap: 72rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font: 1.0625rem/1.7 var(--sans);
  color: var(--ink);
  background: var(--cream);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); text-underline-offset: .2em; }
a:hover { color: var(--wood); }
:focus-visible { outline: 3px solid var(--wood-light); outline-offset: 3px; border-radius: 3px; }

h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.2; color: var(--navy-deep); margin: 0 0 .6em; }
h1 { font-size: clamp(2rem, 5vw, 3.1rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.2rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }

.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.narrow { max-width: 44rem; }
.eyebrow {
  font: 600 .8rem/1.2 var(--sans); letter-spacing: .14em; text-transform: uppercase;
  color: var(--wood); margin: 0 0 .75rem;
}
.skip { position: absolute; left: -999px; top: .5rem; background: var(--white); padding: .5rem 1rem; z-index: 100; }
.skip:focus { left: .5rem; }

/* ---------- header ---------- */
.site-header { background: var(--white); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4.5rem; }
.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; color: var(--navy-deep); }
.brand img { width: 46px; height: 46px; }
.brand span { font: 600 1.05rem/1.15 var(--serif); }
.brand small { display: block; font: 500 .72rem/1.3 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }

.nav-toggle {
  display: inline-flex; align-items: center; gap: .5rem; background: none; border: 1px solid var(--line);
  border-radius: 999px; padding: .45rem .9rem; font: 600 .9rem var(--sans); color: var(--navy-deep); cursor: pointer;
}
.nav-toggle svg { width: 18px; height: 18px; }
.site-nav { display: none; }
.site-nav.open { display: block; position: absolute; left: 0; right: 0; top: 100%; background: var(--white); border-bottom: 1px solid var(--line); box-shadow: 0 12px 24px rgba(22,36,79,.08); }
.site-nav ul { list-style: none; margin: 0; padding: .5rem 1.25rem 1rem; }
.site-nav a { display: block; padding: .7rem .25rem; text-decoration: none; color: var(--ink); font-weight: 500; border-bottom: 1px solid var(--sand); }
.site-nav a[aria-current="page"] { color: var(--navy); font-weight: 700; }
.site-nav .nav-give { color: var(--wood); font-weight: 700; }

@media (min-width: 60rem) {
  .nav-toggle { display: none; }
  .site-nav, .site-nav.open { display: block; position: static; box-shadow: none; border: 0; }
  .site-nav ul { display: flex; gap: .25rem; padding: 0; align-items: center; }
  .site-nav a { border: 0; padding: .5rem .7rem; border-radius: 6px; font-size: .95rem; }
  .site-nav a:hover { background: var(--sand); color: var(--navy-deep); }
  .site-nav a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--wood-light); border-radius: 0; }
  .site-nav .nav-give { background: var(--navy); color: var(--white); padding-inline: 1rem; margin-left: .4rem; border-radius: 999px; }
  .site-nav .nav-give:hover { background: var(--navy-deep); color: var(--white); }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .8rem 1.4rem; border-radius: 999px; font: 600 1rem/1.2 var(--sans);
  text-decoration: none; border: 2px solid var(--navy); background: var(--navy); color: var(--white);
}
.btn:hover { background: var(--navy-deep); border-color: var(--navy-deep); color: var(--white); }
.btn.ghost { background: transparent; color: var(--navy); }
.btn.ghost:hover { background: var(--navy); color: var(--white); }
.btn.light { background: var(--white); border-color: var(--white); color: var(--navy-deep); }
.btn.light:hover { background: var(--sand); border-color: var(--sand); color: var(--navy-deep); }
.btn.outline-light { background: transparent; border-color: rgba(255,255,255,.8); color: var(--white); }
.btn.outline-light:hover { background: var(--white); color: var(--navy-deep); }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.5rem; }

/* ---------- hero ---------- */
.hero { position: relative; color: var(--white); background: var(--navy-deep); overflow: hidden; }
.hero img.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .38; }
.hero .wrap { position: relative; padding: 5rem 0 4.5rem; }
.hero h1 { color: var(--white); max-width: 18ch; }
.hero .eyebrow { color: #e9c9a8; }
.hero p.lead { font-size: 1.2rem; max-width: 36rem; color: rgba(255,255,255,.92); }
@media (min-width: 48rem) { .hero .wrap { padding: 8rem 0 7rem; } }

.page-hero { background: var(--navy-deep); color: var(--white); position: relative; overflow: hidden; }
.page-hero img.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .22; }
.page-hero .wrap { position: relative; padding: 3.5rem 0 3rem; }
.page-hero h1 { color: var(--white); margin: 0; }
.page-hero .eyebrow { color: #e9c9a8; }
.page-hero p { color: rgba(255,255,255,.9); max-width: 40rem; margin: .8rem 0 0; font-size: 1.1rem; }

/* ---------- sections ---------- */
section.block { padding: 4rem 0; }
section.block.alt { background: var(--white); border-block: 1px solid var(--line); }
section.block.sand { background: var(--sand); }
.section-head { margin-bottom: 2rem; max-width: 44rem; }

.grid { display: grid; gap: 1.25rem; }
@media (min-width: 40rem) { .grid.two { grid-template-columns: repeat(2, 1fr); } .grid.three { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 60rem) { .grid.three { grid-template-columns: repeat(3, 1fr); } .grid.four { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 40rem) and (max-width: 59.99rem) { .grid.four { grid-template-columns: repeat(2, 1fr); } }

.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem; }
.card h3 { margin-bottom: .4rem; }
.card p:last-child { margin-bottom: 0; }
.card .more { font-weight: 600; text-decoration: none; }
.card .more::after { content: " →"; }

.split { display: grid; gap: 2rem; align-items: center; }
@media (min-width: 52rem) { .split { grid-template-columns: 1fr 1fr; gap: 3.5rem; } }
.split img { border-radius: var(--radius); }

/* times */
.times { list-style: none; margin: 0; padding: 0; }
.times li { display: flex; justify-content: space-between; gap: 1rem; padding: .7rem 0; border-bottom: 1px solid var(--line); }
.times li:last-child { border-bottom: 0; }
.times strong { color: var(--navy-deep); white-space: nowrap; }
.times .highlight strong, .times .highlight span { color: var(--wood); font-weight: 700; }

.callout { background: var(--navy); color: var(--white); border-radius: var(--radius); padding: 2rem; }
.callout h2, .callout h3 { color: var(--white); }
.callout p { color: rgba(255,255,255,.9); }
.callout a:not(.btn) { color: var(--white); }

/* people */
.people { display: grid; gap: 1.5rem; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 48rem) { .people { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 64rem) { .people.deacons { grid-template-columns: repeat(6, 1fr); } }
.person img { aspect-ratio: 4 / 5; object-fit: cover; object-position: top; border-radius: var(--radius); background: var(--sand); width: 100%; }
.person h3 { margin: .8rem 0 .1rem; font-size: 1.15rem; }
.person p.role { color: var(--wood); font-weight: 600; font-size: .9rem; margin: 0; }

.feature-person { display: grid; gap: 1.75rem; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; margin-bottom: 1.5rem; }
@media (min-width: 48rem) { .feature-person { grid-template-columns: 15rem 1fr; padding: 2rem; } }
.feature-person img { aspect-ratio: 4 / 5; object-fit: cover; object-position: top; border-radius: var(--radius); width: 100%; max-width: 15rem; }
.feature-person p.role { color: var(--wood); font-weight: 600; margin-bottom: 1rem; }
.feature-person ul { padding-left: 1.2rem; margin: 0 0 1rem; }

/* beliefs */
.toc { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; padding: 0; margin: 0 0 1rem; }
.toc a { display: inline-block; padding: .4rem .9rem; border: 1px solid var(--line); border-radius: 999px; background: var(--white); text-decoration: none; font-size: .92rem; font-weight: 500; }
.toc a:hover { border-color: var(--navy); }
.prose h2 { margin-top: 2.5rem; scroll-margin-top: 6rem; }
.prose h3 { margin-top: 1.75rem; scroll-margin-top: 6rem; }
.prose { max-width: 46rem; }
details.item { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: .75rem; scroll-margin-top: 6rem; }
details.item summary { cursor: pointer; padding: 1rem 1.25rem; font: 600 1.1rem/1.3 var(--serif); color: var(--navy-deep); list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
details.item summary::-webkit-details-marker { display: none; }
details.item summary::after { content: "+"; font: 400 1.4rem/1 var(--sans); color: var(--wood); }
details.item[open] summary::after { content: "–"; }
details.item .body { padding: 0 1.25rem 1.1rem; }
.num { color: var(--wood); margin-right: .4rem; }

/* media links */
.platforms { display: grid; gap: 1rem; }
@media (min-width: 40rem) { .platforms { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 60rem) { .platforms { grid-template-columns: repeat(4, 1fr); } }
.platform { display: flex; flex-direction: column; gap: .3rem; padding: 1.4rem; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--ink); }
.platform:hover { border-color: var(--navy); color: var(--ink); box-shadow: 0 6px 18px rgba(22,36,79,.08); }
.platform strong { font: 600 1.15rem var(--serif); color: var(--navy-deep); }
.platform span { color: var(--muted); font-size: .95rem; }

/* missions */
.mission img { aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); width: 100%; }
.mission h3 { margin: .9rem 0 .3rem; }
.mission ul { list-style: none; padding: 0; margin: 0; font-size: .95rem; overflow-wrap: anywhere; }
.partner { display: grid; grid-template-columns: 4.5rem 1fr; gap: 1.1rem; align-items: start; }
.partner img { width: 4.5rem; height: 4.5rem; object-fit: contain; border-radius: 8px; background: var(--white); border: 1px solid var(--line); padding: .3rem; }

.qr { display: grid; gap: 1.25rem; grid-template-columns: repeat(2, 1fr); max-width: 30rem; }
.qr figure { margin: 0; text-align: center; }
.qr img { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: .6rem; }
.qr figcaption { font-weight: 600; margin-top: .4rem; }

.contact-list { list-style: none; padding: 0; margin: 0; }
.contact-list li { padding: .9rem 0; border-bottom: 1px solid var(--line); }
.contact-list li:last-child { border-bottom: 0; }
.contact-list .label { display: block; font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.contact-list a, .contact-list .value { font-size: 1.15rem; font-weight: 600; }

/* footer */
.site-footer { background: var(--navy-deep); color: rgba(255,255,255,.85); padding: 3.5rem 0 2rem; font-size: .95rem; }
.site-footer a { color: var(--white); }
.site-footer a:hover { color: #e9c9a8; }
.site-footer .cols { display: grid; gap: 2rem; }
@media (min-width: 48rem) { .site-footer .cols { grid-template-columns: 1.3fr 1fr 1fr 1fr; } }
.site-footer h2 { color: var(--white); font-size: 1rem; font-family: var(--sans); letter-spacing: .12em; text-transform: uppercase; margin-bottom: .8rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: .35rem; }
.site-footer .logo { width: 84px; margin-bottom: 1rem; }
.site-footer .fine { border-top: 1px solid rgba(255,255,255,.15); margin-top: 2.5rem; padding-top: 1.5rem; font-size: .85rem; color: rgba(255,255,255,.65); }
