/* ==========================================================================
   The Willow Branch — willowbranchca.com
   Sand base · slate dark · ochre accent · Bricolage Grotesque + Public Sans
   Illustrative generated photographs; A-01 awaits the real archival portrait.
   ========================================================================== */

:root {
  --sand: #F5EFE6;
  --sand-2: #ECE3D5;
  --white: #FFFFFF;
  --ink: #1F252B;
  --slate: #2B3440;
  --slate-2: #38434F;
  --body: #3E4852;
  --muted: #6F7A85;
  --line: #E0D6C6;
  --ochre: #C8862B;
  --ochre-dark: #A86D1C;
  --ochre-soft: #F6E7CF;
  --willow: #6E8B5E;
  --willow-soft: #E3EBDC;

  --display: "Bricolage Grotesque", "Arial Black", system-ui, sans-serif;
  --sans: "Public Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --w: 1200px;
  --r: 10px;
  --r-lg: 18px;
  --shadow: 0 1px 2px rgba(31,37,43,0.05), 0 12px 30px rgba(31,37,43,0.08);
  --ease: cubic-bezier(.22,.61,.36,1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--sans); font-size: 17px; line-height: 1.7; color: var(--body); background: var(--sand); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
p { margin: 0 0 16px; } p:last-child { margin-bottom: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; }
address { font-style: normal; }

h1, h2, h3, h4 { font-family: var(--display); font-weight: 700; color: var(--ink); line-height: 1.02; letter-spacing: -0.025em; margin: 0 0 18px; font-variation-settings: "opsz" 96, "wdth" 100; }
h1 { font-size: clamp(2.8rem, 6.6vw, 5.4rem); }
h2 { font-size: clamp(2rem, 4.2vw, 3.3rem); }
h3 { font-size: clamp(1.35rem, 2vw, 1.7rem); line-height: 1.12; }
h4 { font-size: 1.15rem; line-height: 1.25; }
h1 .hl, h2 .hl { color: var(--ochre); }
.dark h1 .hl, .dark h2 .hl { color: #F0C27B; }

.lede { font-size: 1.2rem; line-height: 1.6; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: 0.76rem; letter-spacing: 0.18em; text-transform: uppercase; font-weight: 700; color: var(--ochre-dark); margin-bottom: 18px; }
.eyebrow::before { content: ""; width: 28px; height: 3px; background: var(--ochre); border-radius: 2px; }
.dark .eyebrow { color: #F0C27B; } .dark .eyebrow::before { background: #F0C27B; }

.wrap { width: min(var(--w), 100% - 40px); margin-inline: auto; }
.narrow { max-width: 740px; }
.center { text-align: center; }
.center .narrow { margin-inline: auto; }
.section { padding: 104px 0; }
.section.tight { padding: 72px 0; }
.section.white { background: var(--white); }
.section.sand2 { background: var(--sand-2); }
.dark { background: var(--slate); color: rgba(255,255,255,0.8); }
.dark h1, .dark h2, .dark h3, .dark h4 { color: #fff; }
.dark .lede { color: rgba(255,255,255,0.86); }
.section-head { max-width: 760px; margin-bottom: 56px; }
.section-head.center { margin-inline: auto; }
@media (max-width: 760px) { .section { padding: 72px 0; } .section.tight { padding: 56px 0; } }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 26px; border-radius: var(--r); font-weight: 700; font-size: 0.95rem; border: 2px solid transparent; cursor: pointer; transition: all .25s var(--ease); font-family: var(--display); letter-spacing: -0.01em; }
.btn svg { width: 16px; height: 16px; transition: transform .25s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn-primary { background: var(--ochre); color: #fff; }
.btn-primary:hover { background: var(--ochre-dark); transform: translateY(-1px); }
.btn-ink { background: var(--ink); color: #fff; }
.btn-ink:hover { background: #000; }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: #fff; }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: var(--sand); }
.dark .btn-outline { color: #fff; border-color: rgba(255,255,255,0.6); }
.dark .btn-outline:hover { background: #fff; color: var(--ink); border-color: #fff; }
.link { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--ochre-dark); font-size: 0.95rem; }
.link svg { width: 16px; height: 16px; transition: transform .25s var(--ease); }
.link:hover svg { transform: translateX(3px); }
.dark .link { color: #F0C27B; }
.actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(245,239,230,0.9); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid transparent; transition: border-color .3s; }
.site-header.solid { border-color: var(--line); }
.nav-wrap { display: flex; align-items: center; gap: 24px; min-height: 78px; }
.brand { display: flex; align-items: center; gap: 12px; margin-right: auto; color: var(--ink); }
.mark { width: 42px; height: 42px; flex: none; }
.mark svg { width: 100%; height: 100%; }
.brand-text { font-family: var(--display); font-weight: 700; font-size: 1.25rem; line-height: 1; letter-spacing: -0.02em; }
.brand-text small { display: block; font-family: var(--sans); font-weight: 600; font-size: 0.62rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ochre-dark); margin-top: 5px; }
.nav { display: flex; gap: 2px; }
.nav a { font-size: 0.92rem; font-weight: 600; color: var(--ink); padding: 10px 14px; border-radius: var(--r); transition: background .2s; }
.nav a:hover { background: rgba(31,37,43,0.06); }
.nav a[aria-current="page"] { background: var(--ochre-soft); color: var(--ochre-dark); }
.nav-cta { min-height: 44px; padding: 0 20px; font-size: 0.9rem; }
.nav-toggle { display: none; width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 0; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--ink); transition: .3s; }
.site-header.open .nav-toggle span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.site-header.open .nav-toggle span:nth-child(2) { opacity: 0; }
.site-header.open .nav-toggle span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
@media (max-width: 1000px) {
  .nav-toggle { display: flex; } .nav-cta { display: none; }
  .nav { position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; gap: 0; padding: 8px 20px 24px; background: rgba(245,239,230,0.98); border-bottom: 1px solid var(--line); display: none; }
  .site-header.open .nav { display: flex; }
  .nav a { font-size: 1.1rem; padding: 14px 4px; border-radius: 0; border-bottom: 1px solid var(--line); }
  .nav a[aria-current="page"] { background: none; color: var(--ochre-dark); }
}

/* Image placeholders */
.img-slot { position: relative; border: 2px dashed rgba(200,134,43,0.5); border-radius: var(--r-lg); background: repeating-linear-gradient(135deg, rgba(200,134,43,0.05) 0 12px, transparent 12px 24px), var(--sand-2); display: grid; place-items: center; text-align: center; padding: 24px; color: var(--slate); overflow: hidden; }
.img-slot .id { font-family: var(--display); font-weight: 700; font-size: 2.2rem; line-height: 1; color: var(--ochre-dark); }
.img-slot .title { font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 700; margin-top: 10px; }
.img-slot .ratio { font-size: 0.78rem; color: var(--muted); margin-top: 4px; }
.img-slot.r-16-9 { aspect-ratio: 16/9; } .img-slot.r-4-3 { aspect-ratio: 4/3; } .img-slot.r-4-5 { aspect-ratio: 4/5; } .img-slot.r-1-1 { aspect-ratio: 1/1; } .img-slot.r-3-2 { aspect-ratio: 3/2; } .img-slot.r-21-9 { aspect-ratio: 21/9; }
.img-slot.dark-slot { background: repeating-linear-gradient(135deg, rgba(255,255,255,0.04) 0 12px, transparent 12px 24px), var(--slate-2); border-color: rgba(240,194,123,0.5); color: rgba(255,255,255,0.8); }
.img-slot.dark-slot .id { color: #F0C27B; }

/* Hero */
.hero { position: relative; overflow: hidden; background: var(--slate); color: #fff; }
.hero .wrap { position: relative; z-index: 1; }
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 64px; align-items: end; padding: 88px 0 0; }
.hero h1 { color: #fff; margin-bottom: 24px; }
.hero .lede { color: rgba(255,255,255,0.85); max-width: 580px; }
.hero .eyebrow { color: #F0C27B; } .hero .eyebrow::before { background: #F0C27B; }
.hero .btn-outline { color: #fff; border-color: rgba(255,255,255,0.6); }
.hero .btn-outline:hover { background: #fff; color: var(--ink); }
.hero-media { padding-bottom: 0; margin-bottom: -2px; }
.hero-media .img-slot { border-radius: var(--r-lg) var(--r-lg) 0 0; border-bottom: 0; }
.hero-grid > * { opacity: 0; transform: translateY(18px); animation: rise .9s var(--ease) forwards; }
.hero-grid > :nth-child(2) { animation-delay: .2s; }
@keyframes rise { to { opacity: 1; transform: none; } }
.hero-text { padding-bottom: 88px; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; gap: 40px; padding-top: 56px; } .hero-text { padding-bottom: 0; } }

/* Stats */
.stats { background: var(--ochre); color: #fff; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 36px 28px; border-left: 1px solid rgba(255,255,255,0.25); }
.stat:first-child { border-left: 0; }
.stat strong { display: block; font-family: var(--display); font-weight: 800; font-size: clamp(2.2rem, 3.6vw, 3.2rem); line-height: 1; letter-spacing: -0.03em; }
.stat span { display: block; margin-top: 8px; font-size: 0.95rem; color: rgba(255,255,255,0.9); }
@media (max-width: 900px) { .stats-grid { grid-template-columns: 1fr 1fr; } .stat:nth-child(3) { border-left: 0; } .stat:nth-child(n+3) { border-top: 1px solid rgba(255,255,255,0.25); } }
@media (max-width: 520px) { .stats-grid { grid-template-columns: 1fr; } .stat { border-left: 0 !important; border-top: 1px solid rgba(255,255,255,0.25); } .stat:first-child { border-top: 0; } }

/* Page hero */
.page-hero { padding: 88px 0 72px; background: var(--slate); color: #fff; position: relative; overflow: hidden; }
.page-hero::after { content: ""; position: absolute; right: -8%; bottom: -40%; width: 46%; aspect-ratio: 1; border-radius: 50%; border: 60px solid rgba(200,134,43,0.18); pointer-events: none; }
.page-hero .inner { max-width: 840px; position: relative; z-index: 1; }
.page-hero h1 { color: #fff; font-size: clamp(2.6rem, 5.6vw, 4.6rem); }
.page-hero .lede { color: rgba(255,255,255,0.85); }
.page-hero .eyebrow { color: #F0C27B; } .page-hero .eyebrow::before { background: #F0C27B; }
.crumbs { display: flex; gap: 10px; font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255,255,255,0.55); margin-bottom: 20px; font-weight: 600; }
.crumbs a:hover { color: #fff; }
@media (max-width: 760px) { .page-hero { padding: 56px 0 48px; } }

/* Layout */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.split.start { align-items: start; }
.split.text-wide { grid-template-columns: 1.15fr 0.85fr; }
@media (max-width: 880px) { .split, .split.text-wide { grid-template-columns: 1fr; gap: 40px; } }
.grid { display: grid; gap: 24px; }
.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: 1000px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

/* Cards */
.card { background: var(--white); border-radius: var(--r-lg); padding: 36px; box-shadow: var(--shadow); height: 100%; }
.card.flat { box-shadow: none; border: 1px solid var(--line); background: transparent; }
.card.ochre { background: var(--ochre-soft); box-shadow: none; }
.card.slate { background: var(--slate); color: rgba(255,255,255,0.82); }
.card.slate h3, .card.slate h4 { color: #fff; }
.card h3 { margin-bottom: 10px; }
.card .num { font-family: var(--display); font-weight: 800; font-size: 0.85rem; letter-spacing: 0.2em; color: var(--ochre-dark); margin-bottom: 14px; }
.card .glyph { width: 48px; height: 48px; border-radius: 12px; background: var(--ochre-soft); color: var(--ochre-dark); display: grid; place-items: center; margin-bottom: 20px; }
.card .glyph svg { width: 24px; height: 24px; }
.card ul.list li { position: relative; padding-left: 22px; margin-bottom: 8px; }
.card ul.list li::before { content: ""; position: absolute; left: 0; top: 11px; width: 10px; height: 3px; background: var(--ochre); border-radius: 2px; }
a.card { display: block; color: inherit; transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
a.card:hover { transform: translateY(-5px); box-shadow: 0 2px 6px rgba(31,37,43,0.06), 0 24px 56px rgba(31,37,43,0.14); }
@media (max-width: 620px) { .card { padding: 28px 24px; } }

/* Programs rows */
.prog { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 56px; align-items: center; padding: 72px 0; border-top: 1px solid var(--line); }
.prog:first-of-type { border-top: 0; padding-top: 0; }
.prog.flip { grid-template-columns: 1.1fr 0.9fr; }
.prog.flip .media { order: 2; }
.prog .num { font-family: var(--display); font-weight: 800; font-size: 0.85rem; letter-spacing: 0.22em; color: var(--ochre-dark); display: block; margin-bottom: 12px; }
.facts { margin-top: 24px; display: flex; flex-wrap: wrap; gap: 10px; }
.facts span { display: inline-flex; align-items: center; padding: 8px 14px; border-radius: 999px; background: var(--ochre-soft); color: var(--ochre-dark); font-size: 0.85rem; font-weight: 700; }
@media (max-width: 880px) { .prog, .prog.flip { grid-template-columns: 1fr; gap: 32px; padding: 56px 0; } .prog.flip .media { order: 0; } }

/* Partners */
.partners { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.partner { background: var(--white); border-radius: var(--r-lg); padding: 32px; box-shadow: var(--shadow); }
.partner .badge { display: inline-block; font-family: var(--display); font-weight: 800; font-size: 1.1rem; letter-spacing: -0.01em; padding: 10px 16px; border-radius: var(--r); background: var(--slate); color: #fff; margin-bottom: 18px; }
.partner h3 { font-size: 1.3rem; margin-bottom: 6px; }
.partner p { color: var(--muted); font-size: 0.95rem; }
.logo-strip { display: flex; flex-wrap: wrap; gap: 12px; }
.logo-strip span { font-family: var(--display); font-weight: 700; padding: 12px 20px; border-radius: var(--r); background: var(--white); border: 1px solid var(--line); color: var(--slate); }
@media (max-width: 1000px) { .partners { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .partners { grid-template-columns: 1fr; } }

/* Donors & tribute */
.donors { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 48px; border-top: 1px solid var(--line); }
.donors li { padding: 18px 0; border-bottom: 1px solid var(--line); font-family: var(--display); font-weight: 600; font-size: 1.2rem; color: var(--ink); }
@media (max-width: 620px) { .donors { grid-template-columns: 1fr; } }
.tribute { background: var(--slate); color: rgba(255,255,255,0.85); border-radius: var(--r-lg); padding: 56px; display: grid; grid-template-columns: 280px 1fr; gap: 48px; align-items: center; }
.tribute h2 { color: #fff; }
.tribute .eyebrow { color: #F0C27B; } .tribute .eyebrow::before { background: #F0C27B; }
@media (max-width: 880px) { .tribute { grid-template-columns: 1fr; padding: 36px 28px; } .tribute .img-slot { max-width: 280px; } }

/* Quote */
.quote { font-family: var(--display); font-weight: 600; font-size: clamp(1.5rem, 3vw, 2.3rem); line-height: 1.25; letter-spacing: -0.02em; color: var(--ink); max-width: 880px; margin: 0 auto; }
.dark .quote { color: #fff; }

/* FAQ */
.faq { max-width: 840px; margin: 0 auto; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 24px 4px; font-family: var(--display); font-weight: 700; font-size: 1.25rem; color: var(--ink); line-height: 1.2; letter-spacing: -0.01em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; width: 36px; height: 36px; border-radius: var(--r); background: var(--ochre-soft); color: var(--ochre-dark); display: grid; place-items: center; font-size: 1.4rem; transition: transform .3s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .answer { padding: 0 4px 26px; max-width: 740px; }

/* Forms */
.form { display: grid; gap: 20px; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 620px) { .form .row { grid-template-columns: 1fr; } }
.field { display: grid; gap: 8px; }
.field label { font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 700; color: var(--ink); }
.field input, .field textarea, .field select { width: 100%; min-height: 52px; padding: 14px 18px; font: inherit; color: var(--ink); background: var(--sand); border: 2px solid transparent; border-radius: var(--r); transition: border-color .2s, background .2s; }
.field textarea { min-height: 160px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--ochre); background: #fff; }
.form-note { font-size: 0.88rem; color: var(--muted); }
.form-status { display: none; padding: 16px 20px; border-radius: var(--r); font-size: 0.95rem; }
.form-status.ok { display: block; background: var(--willow-soft); color: #3D5533; }
.form-status.err { display: block; background: #FBE6E0; color: #8A3A26; }

.contact-list li { display: grid; grid-template-columns: 44px 1fr; gap: 16px; padding: 20px 0; border-bottom: 1px solid var(--line); align-items: start; }
.contact-list li:last-child { border-bottom: 0; }
.contact-list .ic { width: 44px; height: 44px; border-radius: 12px; background: var(--ochre-soft); color: var(--ochre-dark); display: grid; place-items: center; }
.contact-list .ic svg { width: 20px; height: 20px; }
.contact-list strong { display: block; font-size: 0.74rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ochre-dark); margin-bottom: 4px; }
.contact-list a:hover { color: var(--ochre-dark); }
.map { border-radius: var(--r-lg); overflow: hidden; background: var(--sand-2); }
.map iframe { display: block; width: 100%; height: 420px; border: 0; }

/* CTA */
.cta { background: var(--ochre); color: #fff; position: relative; overflow: hidden; }
.cta::before { content: ""; position: absolute; left: -6%; top: -60%; width: 44%; aspect-ratio: 1; border-radius: 50%; border: 50px solid rgba(255,255,255,0.12); }
.cta .inner { position: relative; padding: 104px 0; max-width: 780px; margin-inline: auto; text-align: center; }
.cta h2 { color: #fff; }
.cta .lede { color: rgba(255,255,255,0.92); }
.cta .eyebrow { color: #fff; } .cta .eyebrow::before { background: #fff; }
.cta .actions { justify-content: center; }
.cta .btn-light { color: var(--ochre-dark); }
.cta .btn-outline { color: #fff; border-color: rgba(255,255,255,0.7); }
.cta .btn-outline:hover { background: #fff; color: var(--ochre-dark); }
@media (max-width: 760px) { .cta .inner { padding: 72px 0; } }

/* Footer */
.site-footer { background: var(--ink); color: rgba(255,255,255,0.72); padding: 80px 0 32px; font-size: 0.95rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 0.8fr 1fr; gap: 48px; padding-bottom: 48px; border-bottom: 1px solid rgba(255,255,255,0.12); }
.site-footer h4 { color: #fff; font-family: var(--sans); font-size: 0.74rem; letter-spacing: 0.2em; text-transform: uppercase; margin-bottom: 20px; }
.site-footer .brand { color: #fff; margin-bottom: 16px; }
.site-footer .brand-text small { color: #F0C27B; }
.site-footer li { margin-bottom: 10px; }
.site-footer a:hover { color: #fff; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 24px; font-size: 0.82rem; color: rgba(255,255,255,0.45); }
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr; gap: 32px; } }

/* Reveal */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .1s; } .reveal.d2 { transition-delay: .2s; } .reveal.d3 { transition-delay: .3s; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } .hero-grid > * { animation: none; opacity: 1; transform: none; } html { scroll-behavior: auto; } }
.skip { position: absolute; left: 16px; top: -48px; z-index: 100; background: var(--ochre); color: #fff; padding: 10px 16px; border-radius: 8px; }
.skip:focus { top: 16px; }

/* Generated photo assets */
.site-photo { display: block; width: 100%; height: auto; object-fit: cover; border-radius: var(--r-lg); background: var(--sand-2); }
.site-photo.r-4-5 { aspect-ratio: 4/5; }
.site-photo.r-4-3 { aspect-ratio: 4/3; }
.site-photo.r-1-1 { aspect-ratio: 1/1; }
.site-photo.r-16-9 { aspect-ratio: 16/9; }
.hero-media .site-photo { border-radius: var(--r-lg) var(--r-lg) 0 0; }
