/* ============================================================
   Seek & Find Ministries — design system
   Warm & welcoming × modern ministry.
   Maroon on warm cream, Fraunces display + Karla body.
   ============================================================ */

:root {
  --maroon: #7c1f2b;
  --maroon-deep: #571520;
  --maroon-ink: #3f0f17;
  --cream: #faf6ee;
  --cream-deep: #f1e9da;
  --white: #ffffff;
  --ink: #29211e;
  --ink-soft: #5c534e;
  --gold: #c1962e;
  --gold-soft: #e8d9ae;
  --line: #e4dac6;

  --font-display: "Vollkorn", Georgia, serif;
  --font-body: "Karla", "Segoe UI", system-ui, sans-serif;

  --text-hero: clamp(2.5rem, 1.1rem + 5.2vw, 4.4rem);
  --text-h2: clamp(1.8rem, 1.3rem + 2vw, 2.7rem);
  --text-h3: clamp(1.25rem, 1.1rem + 0.6vw, 1.55rem);
  --text-body: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
  --text-small: 0.9375rem;

  --space-section: clamp(3.5rem, 2.5rem + 4vw, 7rem);
  --radius: 14px;
  --shadow: 0 10px 30px -12px rgba(63, 15, 23, 0.18);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- base ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--text-body);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--maroon); }
a:focus-visible, button:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
  border-radius: 4px;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.12;
  color: var(--maroon-ink);
  margin: 0 0 0.6em;
  text-wrap: balance;
}
h1 { font-size: var(--text-hero); }
h2 { font-size: var(--text-h2); }
h3 { font-size: var(--text-h3); }
p { margin: 0 0 1.1em; }
.lede { font-size: clamp(1.15rem, 1.05rem + 0.5vw, 1.4rem); color: var(--ink-soft); }

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--maroon); color: var(--white);
  padding: 0.75rem 1.25rem; z-index: 100; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

.container { max-width: 1120px; margin: 0 auto; padding: 0 clamp(1.1rem, 4vw, 2rem); }
.container--narrow { max-width: 780px; }

/* ---------- top strip ---------- */
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

h1, h2, h3 { text-wrap: balance; }
p, li, blockquote { text-wrap: pretty; }

.contact-menu {
  position: absolute; z-index: 200; min-width: 230px;
  background: var(--cream); border: 1px solid var(--line); border-radius: 12px;
  box-shadow: var(--shadow); padding: 0.35rem; display: flex; flex-direction: column;
}
.contact-menu button {
  background: none; border: 0; text-align: left; padding: 0.6rem 0.85rem;
  border-radius: 8px; font: inherit; font-weight: 700; font-size: 0.95rem;
  color: var(--ink); cursor: pointer;
}
.contact-menu button:hover, .contact-menu button:focus-visible { background: var(--cream-deep); color: var(--maroon); }

.press-line { text-align: center; font-size: var(--text-small); letter-spacing: 0.03em; margin: 2.6rem 0 0; opacity: 0.9; }
.press-line a { color: inherit; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }

.topbar {
  background: var(--maroon-deep);
  color: #f6e8d9;
  font-size: var(--text-small);
  padding: 0.45rem 0;
}
.topbar .container {
  display: flex; gap: 1.5rem; justify-content: space-between; align-items: center; flex-wrap: wrap;
}
.topbar a { color: #ffffff; font-weight: 700; text-decoration: none; }
.topbar a:hover { text-decoration: underline; }
.topbar .hours-note { letter-spacing: 0.01em; }
.topbar-right { display: flex; align-items: center; gap: 1rem; }
.lang-toggle {
  background: transparent; border: 1px solid rgba(246, 232, 217, 0.5); color: #ffffff;
  font-family: inherit; font-weight: 700; font-size: var(--text-small);
  padding: 0.12rem 0.75rem; border-radius: 999px; cursor: pointer;
}
.lang-toggle:hover { background: rgba(255, 255, 255, 0.14); }
@media (max-width: 560px) {
  .topbar .hours-note { display: none; }
  .topbar .container { justify-content: center; }
}

/* ---------- header / nav ---------- */
.site-header {
  background: var(--cream);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 50;
}
.site-header .container {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 0.65rem; padding-bottom: 0.65rem; gap: 1rem;
}
.brand { display: flex; align-items: center; gap: 0.75rem; text-decoration: none; }
.brand img { height: 52px; width: auto; }
.brand-name {
  font-family: var(--font-display); font-weight: 700; font-size: 1.15rem;
  color: var(--maroon-ink); line-height: 1.1;
}
.brand-name small { display: block; font-family: var(--font-body); font-weight: 400; font-size: 0.63rem; color: var(--ink-soft); letter-spacing: 0.05em; text-transform: uppercase; white-space: nowrap; }

.nav-toggle {
  display: none; background: var(--maroon); border: 0;
  border-radius: 10px; width: 44px; height: 44px; padding: 0; cursor: pointer;
  flex-direction: column; align-items: center; justify-content: center; gap: 6px;
}
.nav-toggle:active { transform: scale(0.94); }
.nav-toggle-bar {
  display: block; width: 20px; height: 2px; background: var(--cream);
  border-radius: 2px; transition: transform 0.25s var(--ease), opacity 0.2s ease;
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
.site-nav ul { list-style: none; display: flex; gap: 0.15rem; margin: 0; padding: 0; flex-wrap: wrap; justify-content: flex-end; }
.site-nav a {
  display: block; padding: 0.6rem 0.6rem; text-decoration: none;
  color: var(--ink); font-weight: 700; font-size: 0.95rem; border-radius: 8px;
}
.site-nav a:hover { background: var(--cream-deep); color: var(--maroon); }
.site-nav a[aria-current="page"] { color: var(--maroon); box-shadow: inset 0 -3px 0 var(--gold); border-radius: 8px 8px 0 0; }
.site-nav .nav-cta a { background: var(--gold); color: var(--maroon-ink); font-weight: 700; border-radius: 999px; padding: 0.7rem 1.25rem; margin-left: 0.3rem; box-shadow: 0 1px 6px rgba(63, 15, 23, 0.18); }
.site-nav .nav-cta a::before { content: "\2665\00a0"; }
.site-nav .nav-cta a:hover { background: var(--maroon); color: var(--white); }
.donate-mobile { display: none; }

@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; }
  .donate-mobile { display: inline-block; margin-left: auto; background: var(--gold); color: var(--maroon-ink); font-weight: 700; border-radius: 999px; padding: 0.45rem 0.85rem; font-size: 0.9rem; text-decoration: none; white-space: nowrap; box-shadow: 0 1px 6px rgba(63, 15, 23, 0.18); }
  .donate-mobile::before { content: "\2665\00a0"; }
  /* Phone header: the logo mark carries the brand (it contains the name); text lockup can't share
     375px with the Donate pill and menu without running under them. */
  .brand { min-width: 0; }
}
@media (max-width: 600px) {
  .brand-name { display: none; }
}
@media (max-width: 374px) {
  .site-header .container { gap: 0.5rem; }
  .donate-mobile { font-size: 0.85rem; padding: 0.4rem 0.7rem; }
  .donate-mobile::before { content: ""; }
  .brand img { height: 44px; }
}
@media (max-width: 900px) {
  .site-nav { display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: var(--cream); border-bottom: 1px solid var(--line); box-shadow: var(--shadow); }
  .site-nav.open { display: block; animation: nav-drop 0.28s var(--ease); }
  @keyframes nav-drop { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
  .site-nav ul { flex-direction: column; padding: 0.5rem 1rem 1rem; }
  .site-nav a { padding: 0.85rem 0.8rem; font-size: 1.05rem; }
  .site-nav a[aria-current="page"] { box-shadow: inset 4px 0 0 var(--gold); border-radius: 8px; }
  .site-nav .nav-cta a { display: inline-block; margin: 0.4rem 0 0.2rem 0.8rem; }
}

/* ---------- hero ---------- */
.hero { position: relative; color: var(--white); isolation: isolate; }
.hero picture, .hero > img.hero-bg {
  position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover;
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(12deg, rgba(63, 15, 23, 0.92) 0%, rgba(87, 21, 32, 0.72) 45%, rgba(41, 33, 30, 0.35) 100%);
}
.hero .container { padding-top: clamp(5rem, 12vw, 10rem); padding-bottom: clamp(5rem, 12vw, 10rem); max-width: 1120px; }
.hero h1 { color: var(--white); max-width: 14ch; margin-bottom: 0.4em; }
.hero .lede { color: #f3e6d2; max-width: 46ch; }
.hero--page .container { padding-top: clamp(3.5rem, 8vw, 6rem); padding-bottom: clamp(3.5rem, 8vw, 6rem); }

.overline {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-size: 0.82rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 1.1rem;
}
.overline::before { content: ""; width: 2.2rem; height: 2px; background: var(--gold); }
.section .overline { color: var(--maroon); }
.section .overline::before { background: var(--gold); }

/* ---------- buttons ---------- */
.btn-row { display: flex; gap: 0.8rem; flex-wrap: wrap; margin-top: 1.6rem; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.85rem 1.6rem; min-height: 48px;
  border-radius: 10px; font-weight: 700; font-size: 1.02rem; text-decoration: none;
  transition: transform 0.18s var(--ease), background 0.18s var(--ease), color 0.18s var(--ease);
}
.btn--primary { background: var(--maroon); color: var(--white); border: 2px solid var(--maroon); }
.btn--primary:hover { background: var(--maroon-deep); border-color: var(--maroon-deep); transform: translateY(-2px); }
.btn--light { background: var(--white); color: var(--maroon); border: 2px solid var(--white); }
.btn--light:hover { background: var(--gold-soft); border-color: var(--gold-soft); transform: translateY(-2px); }
.btn--ghost { background: transparent; color: var(--maroon); border: 2px solid var(--maroon); }
.btn--ghost:hover { background: var(--maroon); color: var(--white); transform: translateY(-2px); }
.hero .btn--ghost, .section--maroon .btn--ghost { color: var(--white); border-color: rgba(255,255,255,0.7); }
.hero .btn--ghost:hover, .section--maroon .btn--ghost:hover { background: var(--white); color: var(--maroon); border-color: var(--white); }

/* ---------- sections ---------- */
.section { padding: var(--space-section) 0; }
.section--alt { background: var(--cream-deep); }
.section--maroon { background: var(--maroon-deep); color: #f6e8d9; }
.section--maroon h2, .section--maroon h3 { color: var(--white); }
.section--maroon .overline { color: var(--gold); }
.section-head { max-width: 640px; margin-bottom: clamp(1.8rem, 4vw, 3rem); }

.grid { display: grid; gap: clamp(1.1rem, 2.5vw, 1.8rem); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) {
  .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 > :last-child:nth-child(odd), .grid--4 > :last-child:nth-child(odd) { grid-column: span 2; }
}
@media (max-width: 620px) { .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; } .grid--3 > :last-child:nth-child(odd), .grid--4 > :last-child:nth-child(odd) { grid-column: auto; } }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.8rem, 4vw, 4rem); align-items: center; }
@media (max-width: 820px) { .split { grid-template-columns: 1fr; } }
.split .photo { border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.split .photo img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- cards ---------- */
.card {
  background: var(--white); border-radius: var(--radius);
  padding: clamp(1.4rem, 3vw, 2rem); box-shadow: var(--shadow);
  position: relative; overflow: hidden;
}
.card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: var(--maroon);
}
.card h3 { margin-top: 0.2rem; }
.card .card-kicker {
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.13em; text-transform: uppercase; color: var(--gold);
}
.card-link { font-weight: 700; text-decoration: none; }
.card-link:hover { text-decoration: underline; }
.card--photo { padding: 0; }
.card--photo::before { display: none; }
.card--photo img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.card--photo .card-body { padding: 1.3rem 1.5rem 1.6rem; }

/* ---------- facts strip (hours/location/call) ---------- */
.facts { margin-top: -2.6rem; position: relative; z-index: 5; }
.facts .card { display: flex; gap: 1rem; align-items: flex-start; }
.facts .card::before { background: var(--gold); }
.facts .card h2 { font-size: 1.05rem; font-family: var(--font-body); font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--maroon); margin-bottom: 0.35rem; }
.facts .card p { margin: 0; font-size: 1rem; }
.fact-icon { font-size: 1.5rem; line-height: 1; }

/* ---------- scripture ---------- */
.verse {
  text-align: center; max-width: 720px; margin: 0 auto;
  padding: 0 1rem;
}
.verse blockquote {
  font-family: var(--font-display); font-style: italic; font-weight: 500;
  font-size: clamp(1.35rem, 1.1rem + 1.4vw, 2rem); line-height: 1.4;
  color: var(--maroon-ink); margin: 0 0 1rem;
}
.verse blockquote::before { content: "\201C"; display: block; font-size: 3.2rem; line-height: 0.6; color: var(--gold); margin-bottom: 0.9rem; font-style: normal; }
.verse cite { font-style: normal; font-weight: 700; font-size: 0.9rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-soft); }
.section--maroon .verse blockquote { color: var(--white); }
.section--maroon .verse cite { color: var(--gold-soft); }

/* ---------- hours table ---------- */
.hours-table { width: 100%; border-collapse: collapse; background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.hours-table caption { caption-side: top; text-align: left; font-weight: 700; padding-bottom: 0.6rem; color: var(--maroon-ink); font-family: var(--font-display); font-size: 1.2rem; }
.hours-table th, .hours-table td { text-align: left; padding: 0.8rem 1.2rem; border-bottom: 1px solid var(--line); font-size: 1rem; }
.hours-table thead th { background: var(--maroon); color: var(--white); font-size: 0.85rem; letter-spacing: 0.08em; text-transform: uppercase; }
.hours-table tr:last-child td { border-bottom: none; }
.hours-table .closed { color: var(--ink-soft); }
/* Times like "10am–5pm" may not break at the dash; day column absorbs any squeeze. */
.hours-table th:nth-child(n+2), .hours-table td:nth-child(n+2) { white-space: nowrap; }
.nb, .nb-lines { white-space: nowrap; }
@media (max-width: 480px) {
  .hours-table th, .hours-table td { padding: 0.8rem 0.7rem; font-size: 0.95rem; }
}

/* ---------- lists ---------- */
.check-list { list-style: none; padding: 0; margin: 0 0 1.2em; }
.check-list li { padding: 0.35rem 0 0.35rem 1.9rem; position: relative; }
.check-list li::before {
  content: "✓"; position: absolute; left: 0.2rem; top: 0.35rem;
  color: var(--gold); font-weight: 700;
}
.x-list li::before { content: "✕"; color: var(--maroon); }

/* ---------- gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.9rem; }
.gallery img { border-radius: 10px; aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.gallery img.gallery-wide { grid-column: span 2; aspect-ratio: 2.73; }
@media (max-width: 820px) { .gallery { grid-template-columns: repeat(2, 1fr); } }

/* ---------- forms ---------- */
.form-grid { display: grid; gap: 1rem; }
.form-grid label { font-weight: 700; font-size: 0.95rem; display: block; margin-bottom: 0.3rem; }
.form-grid input, .form-grid select, .form-grid textarea {
  width: 100%; padding: 0.8rem 0.9rem; font: inherit; font-size: 16px;
  border: 2px solid var(--line); border-radius: 8px; background: var(--white); color: var(--ink);
}
.form-grid input:focus, .form-grid select:focus, .form-grid textarea:focus {
  outline: none; border-color: var(--maroon); box-shadow: 0 0 0 3px rgba(124, 31, 43, 0.15);
}
.form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 620px) { .form-row-2 { grid-template-columns: 1fr; } }

/* ---------- footer ---------- */
.site-footer { background: var(--maroon-ink); color: #e9d9c8; font-size: 0.98rem; }
.site-footer .footer-main {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2.5rem;
  padding: clamp(2.5rem, 5vw, 4rem) 0;
}
@media (max-width: 820px) { .site-footer .footer-main { grid-template-columns: 1fr; gap: 1.8rem; } }
.site-footer h2 { color: var(--white); font-size: 1.05rem; margin-bottom: 0.7rem; }
.site-footer a { color: var(--gold-soft); }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { padding: 0.2rem 0; }
.footer-verse { border-top: 1px solid rgba(233, 217, 200, 0.2); padding: 1.4rem 0; text-align: center; font-family: var(--font-display); font-style: italic; font-size: 1.05rem; }
.footer-legal { border-top: 1px solid rgba(233, 217, 200, 0.2); padding: 1.1rem 0; text-align: center; font-size: 0.85rem; color: #b8a493; }
.footer-legal a { color: #b8a493; }

/* ---------- reveal animation (JS-gated: no JS = fully visible) ---------- */
html.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
html.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  html.js .reveal { opacity: 1; transform: none; transition: none; }
  .btn { transition: none; }
  .nav-toggle-bar { transition: none; }
  .site-nav.open { animation: none; }
}

/* ---------- utilities ---------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.badge-501 {
  display: inline-block; background: var(--cream-deep); border: 1px solid var(--line);
  border-radius: 999px; padding: 0.35rem 1rem; font-size: 0.85rem; font-weight: 700; color: var(--ink-soft);
}
