/* ============================================================
   The Schultz Foundation — schultzfoundation site styles
   Warm memorial palette: ivory paper, charcoal studio, honey gold
   ============================================================ */

:root {
  --paper: #faf7f1;
  --cream: #f1eadd;
  --ink: #26221c;
  --ink-soft: #555046;
  --charcoal: #232228;
  --charcoal-2: #2e2d34;
  --gold: #b9863c;
  --gold-deep: #96682a;
  --gold-soft: #d9b26a;
  --line: #e3dccc;
  --white: #ffffff;
  --shadow: 0 18px 50px rgba(38, 34, 28, 0.14);
  --radius: 18px;
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: var(--gold-deep); text-decoration: none; }
a:hover { color: var(--gold); }

/* ---------- Type ---------- */

h1, h2, h3, .display {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.01em;
}

.overline {
  display: inline-block;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: 14px;
}

.lead { font-size: 1.22rem; color: var(--ink-soft); }

/* ---------- Layout helpers ---------- */

.wrap { width: min(1120px, 92vw); margin: 0 auto; }
.wrap-narrow { width: min(780px, 92vw); margin: 0 auto; }

section { padding: 96px 0; }
section.tight { padding: 64px 0; }

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

@media (max-width: 900px) {
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  section { padding: 64px 0; }
}

/* ---------- Header ---------- */

.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 14px 0;
  transition: background 0.35s ease, box-shadow 0.35s ease;
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.site-header.scrolled,
.site-header.solid {
  background: rgba(250, 247, 241, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--line);
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  font-family: var(--font-display);
  font-size: 1.18rem;
  font-weight: 700;
  color: var(--ink);
  white-space: nowrap;
}

.brand svg { width: 34px; height: 34px; flex: none; }

/* On dark hero, header text starts light */
.header-on-dark:not(.scrolled) .brand,
.header-on-dark:not(.scrolled) .nav a { color: #f5f1e8; }
.header-on-dark:not(.scrolled) .brand svg .paw-fill { fill: #f5f1e8; }
.header-on-dark:not(.scrolled) .nav a.active,
.header-on-dark:not(.scrolled) .nav a:hover { color: var(--gold-soft); }

.nav { display: flex; align-items: center; gap: 26px; }

.nav a {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink-soft);
  letter-spacing: 0.01em;
}

.nav a.active, .nav a:hover { color: var(--gold-deep); }

.nav .btn { padding: 9px 18px; font-size: 14px; }

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  cursor: pointer;
  width: 42px; height: 42px;
  border-radius: 10px;
  align-items: center;
  justify-content: center;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: "";
  display: block;
  width: 22px; height: 2px;
  background: currentColor;
  position: relative;
  transition: transform .25s ease;
}
.nav-toggle span::before { position: absolute; top: -7px; }
.nav-toggle span::after { position: absolute; top: 7px; }
.header-on-dark:not(.scrolled) .nav-toggle { color: #f5f1e8; }
.nav-toggle { color: var(--ink); }

@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  .nav {
    position: absolute;
    top: calc(100% + 8px);
    right: 4vw;
    flex-direction: column;
    align-items: flex-start;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 18px 22px;
    box-shadow: var(--shadow);
    display: none;
    min-width: 220px;
  }
  .nav.open { display: flex; }
  .nav a { color: var(--ink) !important; font-size: 16px; }
  .nav .btn { color: #fff !important; }
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  background: var(--gold);
  color: #fff !important;
  font-weight: 700;
  font-size: 15.5px;
  padding: 13px 26px;
  border-radius: 999px;
  border: 2px solid var(--gold);
  transition: background .2s ease, border-color .2s ease, transform .15s ease;
}
.btn:hover { background: var(--gold-deep); border-color: var(--gold-deep); transform: translateY(-1px); }

.btn.ghost {
  background: transparent;
  color: var(--gold-deep) !important;
  border-color: var(--gold);
}
.btn.ghost:hover { background: rgba(185, 134, 60, 0.08); }

.btn.on-dark { border-color: var(--gold-soft); background: var(--gold-soft); color: var(--charcoal) !important; }
.btn.on-dark:hover { background: #e5c284; border-color: #e5c284; }
.btn.ghost.on-dark { background: transparent; color: var(--gold-soft) !important; }
.btn.ghost.on-dark:hover { background: rgba(217, 178, 106, 0.12); }

.btn-row { display: flex; gap: 16px; flex-wrap: wrap; align-items: center; }

/* ---------- Hero (scroll scrub) ---------- */

.scrub-stage-outer { height: 240vh; position: relative; background: #f5f4f0; }

.scrub-stage {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
  /* snowy, high-key backdrop the video blends into */
  background: radial-gradient(120% 90% at 50% 38%, #ffffff 0%, #f5f4f0 58%, #e9e7e0 100%);
}

.scrub-stage canvas {
  position: absolute;
  /* keep the image clear of the fixed menu bar */
  top: 86px;
  left: 0; right: 0; bottom: 16px;
  width: 100%;
  height: calc(100% - 102px);
  /* feather the video edges into the snowy backdrop */
  -webkit-mask-image: radial-gradient(78% 78% at 50% 52%, #000 58%, transparent 97%);
  mask-image: radial-gradient(78% 78% at 50% 52%, #000 58%, transparent 97%);
}

.scrub-fallback {
  position: absolute;
  top: 86px;
  left: 0; right: 0; bottom: 16px;
  width: 100%; height: calc(100% - 102px);
  object-fit: contain;
  object-position: center 50%;
  transition: opacity .6s ease;
  /* same edge feathering as the canvas */
  -webkit-mask-image: radial-gradient(78% 78% at 50% 52%, #000 58%, transparent 97%);
  mask-image: radial-gradient(78% 78% at 50% 52%, #000 58%, transparent 97%);
}
.frames-ready .scrub-fallback { opacity: 0; }

.hero-caption {
  position: absolute;
  z-index: 5;
  left: 0; right: 0;
  text-align: center;
  color: var(--ink);
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .5s ease, transform .5s ease;
  pointer-events: none;
  padding: 0 6vw;
}
.hero-caption.visible { opacity: 1; transform: translateY(0); }
.hero-caption .btn-row { pointer-events: auto; justify-content: center; margin-top: 26px; }

.hero-caption.top { top: 13vh; }
.hero-caption.bottom { bottom: 9vh; }

.hero-caption h1 {
  font-size: clamp(2.6rem, 6.5vw, 5rem);
  color: var(--ink);
  text-shadow: 0 1px 24px rgba(255,255,255,.6);
}
.hero-caption .sub {
  margin-top: 14px;
  font-size: clamp(1.02rem, 2vw, 1.3rem);
  color: var(--ink-soft);
  max-width: 640px;
  margin-left: auto; margin-right: auto;
  text-shadow: 0 1px 18px rgba(255,255,255,.65);
}
.hero-caption .overline { color: var(--gold-deep); }

.scroll-hint {
  position: absolute;
  bottom: 26px; left: 50%;
  transform: translateX(-50%);
  z-index: 6;
  color: var(--ink-soft);
  font-size: 12.5px;
  letter-spacing: .18em;
  text-transform: uppercase;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  transition: opacity .4s ease;
}
.scroll-hint::after {
  content: "";
  width: 1.5px; height: 34px;
  background: linear-gradient(to bottom, var(--gold-soft), transparent);
  animation: drip 1.6s ease-in-out infinite;
}
@keyframes drip { 0% {transform: scaleY(0); transform-origin: top;} 55% {transform: scaleY(1); transform-origin: top;} 100% {transform: scaleY(1) translateY(8px); opacity: 0;} }
.scroll-hint.hidden { opacity: 0; }

/* ---------- Sections ---------- */

.section-dark {
  background: var(--charcoal);
  color: #efeadd;
}
.section-dark h2 { color: #f8f4ea; }
.section-dark p { color: rgba(239, 234, 221, 0.85); }

.section-cream { background: var(--cream); }

h2.section-title { font-size: clamp(2rem, 4vw, 2.9rem); margin-bottom: 20px; }

.stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}
@media (max-width: 700px) { .stat-row { grid-template-columns: 1fr; } }

.stat {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 28px;
  text-align: center;
}
.section-dark .stat { background: var(--charcoal-2); border-color: #3c3b43; }

.stat .num {
  font-family: var(--font-display);
  font-size: 2.6rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1.1;
}
.stat .label { font-size: 15px; color: inherit; opacity: .8; margin-top: 6px; }

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px 30px;
  height: 100%;
}
.card h3 { font-size: 1.35rem; margin-bottom: 12px; }
.card p { color: var(--ink-soft); font-size: 16px; }
.card .step-num {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--cream);
  color: var(--gold-deep);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
}

.photo-frame {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.photo-frame img { width: 100%; height: 100%; object-fit: cover; }

figure.captioned figcaption {
  font-size: 14px;
  color: var(--ink-soft);
  margin-top: 10px;
  text-align: center;
  font-style: italic;
}

/* ---------- Gallery ---------- */

.gallery {
  columns: 3 300px;
  column-gap: 18px;
}
.gallery a {
  display: block;
  margin-bottom: 18px;
  border-radius: 14px;
  overflow: hidden;
  break-inside: avoid;
  position: relative;
}
.gallery img {
  transition: transform .4s ease;
  width: 100%;
}
.gallery a:hover img { transform: scale(1.035); }

/* lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(20, 18, 15, 0.93);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 300;
  padding: 4vh 4vw;
  cursor: zoom-out;
}
.lightbox.open { display: flex; }
.lightbox img {
  max-width: 92vw;
  max-height: 88vh;
  width: auto; height: auto;
  border-radius: 10px;
  box-shadow: 0 30px 80px rgba(0,0,0,.5);
}
.lightbox .close {
  position: absolute;
  top: 20px; right: 26px;
  color: #fff;
  font-size: 34px;
  background: none;
  border: 0;
  cursor: pointer;
  line-height: 1;
}

/* ---------- Page hero (interior pages) ---------- */

.page-hero {
  padding: 168px 0 72px;
  background: linear-gradient(180deg, var(--cream) 0%, var(--paper) 100%);
}
.page-hero h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); margin-bottom: 16px; }
.page-hero .lead { max-width: 720px; }

/* ---------- Reveal on scroll ---------- */

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Quote ---------- */

blockquote.pull {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  font-weight: 500;
  line-height: 1.35;
  color: var(--ink);
  border-left: 4px solid var(--gold);
  padding-left: 28px;
  margin: 0;
}
blockquote.pull cite {
  display: block;
  font-family: var(--font-body);
  font-style: normal;
  font-size: 15px;
  color: var(--ink-soft);
  margin-top: 16px;
}

/* ---------- Info list / address ---------- */

.info-box {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px;
}
.info-box strong { display: block; margin-bottom: 6px; }
address { font-style: normal; line-height: 1.8; }

/* ---------- CTA band ---------- */

.cta-band {
  background: var(--charcoal);
  color: #f2eddf;
  text-align: center;
  padding: 84px 0;
}
.cta-band h2 { font-size: clamp(1.9rem, 4vw, 2.7rem); color: #f8f4ea; margin-bottom: 14px; }
.cta-band p { color: rgba(242, 237, 223, .8); max-width: 620px; margin: 0 auto 32px; }
.cta-band .btn-row { justify-content: center; }

/* ---------- Footer ---------- */

.site-footer {
  background: #1c1b20;
  color: #b7b2a6;
  padding: 56px 0 40px;
  font-size: 15px;
}
.site-footer .cols {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 36px;
}
@media (max-width: 800px) { .site-footer .cols { grid-template-columns: 1fr; } }
.site-footer h4 {
  color: #f0ebdf;
  font-family: var(--font-display);
  font-size: 1.05rem;
  margin-bottom: 14px;
}
.site-footer a { color: #d8d2c2; }
.site-footer a:hover { color: var(--gold-soft); }
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: 9px; }
.site-footer .fine {
  border-top: 1px solid #34333a;
  padding-top: 24px;
  font-size: 13.5px;
  color: #8d8879;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.footer-brand {
  display: flex; align-items: center; gap: 10px;
  color: #f0ebdf;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  margin-bottom: 14px;
}
.footer-brand svg { width: 30px; height: 30px; }
.footer-brand svg .paw-fill { fill: #f0ebdf; }
