/* Davis Chamber v6 "Davis's Largest Business Community" (impact)
   Magazine-quality civic storyteller. White-dominant. Navy + amber + teal. */

:root {
  --white: #ffffff;
  --tint: #f5f9fc;
  --tint-2: #eaf2f8;
  --navy: #054C70;
  --ink: #08294a;
  --blue: #0a72bc;
  --amber: #d4853a;
  --amber-dark: #b86a23;
  --teal: #2bb1a4;
  --teal-bright: #3ecdc4;
  --line: #d9e4ee;
  --text: #102a3f;
  --muted: #4a627a;

  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --wrap: 1240px;
  --gut: clamp(20px, 5vw, 64px);
  --radius: 4px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--text);
  background: var(--white);
  font-size: 18px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; line-height: 1.04; color: var(--ink); margin: 0; letter-spacing: -0.01em; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding-inline: var(--gut); }

.eyebrow {
  font-family: var(--sans);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.74rem;
  color: var(--amber-dark);
  margin: 0 0 1rem;
}
.eyebrow.teal { color: var(--teal); }
.eyebrow.light { color: var(--teal-bright); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 0.5em;
  font-family: var(--sans); font-weight: 700; font-size: 1rem;
  padding: 0.85em 1.6em; border-radius: var(--radius);
  border: 2px solid transparent; cursor: pointer;
  transition: background-color .18s ease, color .18s ease, border-color .18s ease, transform .18s ease;
  text-decoration: none; line-height: 1;
}
.btn:hover { text-decoration: none; }
.btn-amber { background: var(--amber); color: #2a1402; }
.btn-amber:hover { background: var(--amber-dark); color: #fff; }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--ink); color: #fff; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--navy); }
.btn-ghost-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.5); }
.btn-ghost-light:hover { border-color: #fff; background: rgba(255,255,255,.08); }
.btn-lg { font-size: 1.08rem; padding: 1em 1.9em; }

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.92);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .2s ease;
}
.header.scrolled { box-shadow: 0 6px 24px -16px rgba(8,41,74,.45); }
.header-in {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.5rem; height: 72px;
  max-width: var(--wrap); margin: 0 auto; padding-inline: var(--gut);
}
.brand { display: flex; align-items: center; gap: 0.65rem; text-decoration: none; }
.brand-mark {
  width: 38px; height: 38px; border-radius: 6px; flex: none;
  background: var(--navy); color: #fff;
  display: grid; place-items: center;
  font-family: var(--serif); font-weight: 700; font-size: 1.25rem; line-height: 1;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-text b { font-family: var(--serif); color: var(--ink); font-size: 1.02rem; font-weight: 700; }
.brand-text span { font-size: 0.66rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.nav { display: flex; align-items: center; gap: 1.6rem; }
.nav a { color: var(--ink); font-weight: 600; font-size: 0.96rem; }
.nav a:hover { color: var(--blue); text-decoration: none; }
.header-cta { display: flex; align-items: center; gap: 0.9rem; }
.menu-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.menu-toggle span { display: block; width: 24px; height: 2px; background: var(--ink); margin: 5px 0; transition: .2s; }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: min(92vh, 880px);
  display: flex; align-items: flex-end;
  color: #fff; overflow: hidden;
  background: var(--ink);
}
.hero-img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center 40%;
  z-index: 0;
}
.hero-scrim {
  position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(to top, rgba(8,41,74,.92) 0%, rgba(8,41,74,.66) 28%, rgba(8,41,74,.18) 60%, rgba(8,41,74,.30) 100%);
}
.hero-in { position: relative; z-index: 2; width: 100%; padding-bottom: clamp(2.5rem, 6vh, 4.5rem); padding-top: 6rem; }
.hero .eyebrow { color: var(--teal-bright); }
.hero h1 {
  color: #fff;
  font-size: clamp(2.7rem, 7.4vw, 6.1rem);
  font-weight: 600; letter-spacing: -0.02em;
  max-width: 16ch; margin: 0 0 1.1rem;
  text-shadow: 0 2px 30px rgba(0,0,0,.35);
}
.hero h1 em { font-style: italic; color: var(--teal-bright); }
.hero-sub {
  font-size: clamp(1.05rem, 1.7vw, 1.32rem);
  max-width: 56ch; color: #eaf3fb; margin: 0 0 1.9rem; line-height: 1.55;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 0.9rem; align-items: center; }
.hero-note { font-size: 0.92rem; color: #cfe0ee; margin-top: 1.4rem; }
.hero-note b { color: #fff; }

/* Hero impact strip */
.hero-strip {
  position: relative; z-index: 2;
  background: rgba(8,41,74,.5);
  border-top: 1px solid rgba(255,255,255,.14);
  backdrop-filter: blur(3px);
}
.hero-strip-in {
  display: grid; grid-template-columns: repeat(4, 1fr);
  max-width: var(--wrap); margin: 0 auto; padding: 1.1rem var(--gut);
  gap: 1rem;
}
.hero-strip .st b { display: block; font-family: var(--serif); font-size: clamp(1.4rem, 2.5vw, 2rem); color: #fff; line-height: 1; }
.hero-strip .st .tl { color: var(--teal-bright); font-weight: 700; }
.hero-strip .st span { font-size: 0.82rem; color: #cfe0ee; }

/* ---------- Section scaffolding ---------- */
.section { padding-block: clamp(4rem, 9vh, 7rem); }
.section.tint { background: var(--tint); }
.section-head { max-width: 60ch; margin-bottom: 2.6rem; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head h2 { font-size: clamp(2rem, 4.4vw, 3.25rem); }
.section-head p { color: var(--muted); font-size: 1.12rem; margin: 1rem 0 0; }

/* ---------- Heritage / 1905 spine ---------- */
.heritage { background: var(--white); overflow: hidden; }
.heritage-grid {
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}
.heritage-figure { position: relative; }
.heritage-figure img { border-radius: var(--radius); width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4/3; box-shadow: 0 30px 60px -36px rgba(8,41,74,.55); }
.heritage-figure figcaption {
  position: absolute; left: 18px; bottom: 18px;
  background: rgba(8,41,74,.86); color: #fff; padding: 0.5rem 0.85rem; border-radius: 3px;
  font-size: 0.8rem; letter-spacing: .02em;
}
.year-leap {
  display: flex; align-items: baseline; gap: 0.75rem; margin: 0 0 1.4rem;
  font-family: var(--serif); line-height: 1;
}
.year-leap .y { font-size: clamp(3rem, 7vw, 5.6rem); font-weight: 600; color: var(--ink); }
.year-leap .arrow { font-size: clamp(1.6rem, 3vw, 2.4rem); color: var(--amber); font-weight: 700; }
.year-leap .now { color: var(--navy); }
.year-leap .badge {
  align-self: center; font-family: var(--sans); font-weight: 800; font-size: 0.78rem;
  letter-spacing: .12em; text-transform: uppercase; color: var(--amber-dark);
  border: 2px solid var(--amber); border-radius: 999px; padding: 0.35em 0.8em; margin-left: 0.4rem;
}
.heritage-body p { color: var(--text); font-size: 1.12rem; margin: 0 0 1.1rem; }
.heritage-body p strong { color: var(--ink); }
.heritage-body .lead { font-size: 1.25rem; }

/* ---------- Why join ---------- */
.why { background: var(--tint); }
.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem; margin-top: 0.6rem; }
.why-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.8rem 1.6rem; position: relative; overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease;
}
.why-card::before { content: ""; position: absolute; left: 0; top: 0; height: 4px; width: 100%; background: var(--amber); }
.why-card:nth-child(2)::before { background: var(--teal); }
.why-card:nth-child(3)::before { background: var(--blue); }
.why-card:nth-child(4)::before { background: var(--navy); }
.why-card:hover { transform: translateY(-4px); box-shadow: 0 22px 40px -28px rgba(8,41,74,.5); }
.why-card .num { font-family: var(--serif); font-size: 0.9rem; color: var(--amber-dark); font-weight: 700; }
.why-card h3 { font-size: 1.4rem; margin: 0.6rem 0 0.5rem; }
.why-card p { margin: 0; color: var(--muted); font-size: 1rem; }

.proof {
  margin-top: 3rem; display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(2rem,4vw,4rem);
  align-items: center; background: var(--navy); color: #fff; border-radius: 8px;
  padding: clamp(2rem, 4vw, 3.2rem);
}
.proof h3 { color: #fff; font-size: clamp(1.5rem, 2.6vw, 2.1rem); }
.proof p { color: #d7e6f2; margin: 0.9rem 0 0; }
.proof .cite { font-size: 0.82rem; color: var(--teal-bright); margin-top: 1.1rem; }
.proof-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem 1.8rem; }
.proof-stats .ps b { display: block; font-family: var(--serif); font-size: clamp(2.1rem, 4vw, 3rem); color: var(--teal-bright); line-height: 1; }
.proof-stats .ps span { font-size: 0.92rem; color: #d7e6f2; }

/* ---------- Immersive band ---------- */
.band {
  position: relative; color: #fff; isolation: isolate;
  padding-block: clamp(5rem, 12vh, 8rem);
  background: var(--ink);
}
.band-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 45%; z-index: -2; }
.band::after { content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(105deg, rgba(8,41,74,.92) 0%, rgba(5,76,112,.78) 48%, rgba(8,41,74,.55) 100%); }
.band-in { max-width: 760px; }
.band h2 { color: #fff; font-size: clamp(2.1rem, 5vw, 3.6rem); }
.band p { color: #e7f1f9; font-size: 1.2rem; margin: 1.1rem 0 0; }
.band .stat-row { display: flex; flex-wrap: wrap; gap: 2.4rem; margin-top: 2.2rem; }
.band .stat-row .s b { display: block; font-family: var(--serif); font-size: clamp(1.8rem, 3.4vw, 2.6rem); color: var(--teal-bright); line-height: 1; }
.band .stat-row .s span { font-size: 0.9rem; color: #cfe0ee; }

/* ---------- Events ---------- */
.events-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 1.6rem; }
.ev-feature {
  position: relative; border-radius: 8px; overflow: hidden; min-height: 440px;
  display: flex; align-items: flex-end; color: #fff; isolation: isolate;
}
.ev-feature img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .5s ease; }
.ev-feature:hover img { transform: scale(1.04); }
.ev-feature::after { content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(to top, rgba(8,41,74,.95) 8%, rgba(8,41,74,.35) 55%, rgba(8,41,74,.1) 100%); }
.ev-feature .ev-body { padding: clamp(1.6rem, 3vw, 2.4rem); }
.ev-tag { display: inline-block; background: var(--amber); color: #2a1402; font-weight: 800; font-size: 0.72rem; letter-spacing: .12em; text-transform: uppercase; padding: 0.4em 0.8em; border-radius: 999px; margin-bottom: 0.9rem; }
.ev-feature h3 { color: #fff; font-size: clamp(1.8rem, 3.4vw, 2.7rem); }
.ev-feature .ev-meta { color: #e7f1f9; font-weight: 700; margin: 0.6rem 0 0.4rem; }
.ev-feature p { color: #dceaf5; margin: 0.3rem 0 1.2rem; max-width: 46ch; }
.ev-pills { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1.2rem; }
.ev-pills span { background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.28); border-radius: 999px; padding: 0.3em 0.75em; font-size: 0.74rem; font-weight: 700; letter-spacing: .06em; }

.ev-list { display: flex; flex-direction: column; gap: 1.6rem; }
.ev-card {
  display: grid; grid-template-columns: 96px 1fr; gap: 1.1rem; align-items: center;
  background: #fff; border: 1px solid var(--line); border-radius: 6px; padding: 1rem; overflow: hidden;
  transition: border-color .18s ease, box-shadow .18s ease;
}
.ev-card:hover { border-color: var(--navy); box-shadow: 0 16px 30px -24px rgba(8,41,74,.5); }
.ev-card img { width: 96px; height: 96px; object-fit: cover; border-radius: 4px; }
.ev-card .d { font-size: 0.78rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--amber-dark); }
.ev-card h4 { font-size: 1.2rem; margin: 0.2rem 0 0.25rem; }
.ev-card p { margin: 0; font-size: 0.92rem; color: var(--muted); }

/* ---------- Voices ---------- */
.voices-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.6rem; }
.voice {
  display: grid; grid-template-columns: 132px 1fr; gap: 1.4rem; align-items: center;
  background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 1.6rem;
}
.voice img { width: 132px; height: 156px; object-fit: cover; border-radius: 6px; }
.voice blockquote { margin: 0; font-family: var(--serif); font-size: 1.18rem; line-height: 1.4; color: var(--ink); }
.voice .who { margin-top: 0.9rem; font-size: 0.92rem; }
.voice .who b { color: var(--navy); display: block; font-family: var(--sans); }
.voice .who span { color: var(--muted); }

/* ---------- Gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(6, 1fr); grid-auto-rows: 150px; gap: 10px; }
.gallery a { overflow: hidden; border-radius: 4px; display: block; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.gallery a:hover img { transform: scale(1.06); }
.g-tall { grid-row: span 2; }
.g-wide { grid-column: span 2; }
.g-big { grid-column: span 2; grid-row: span 2; }

/* ---------- Final CTA ---------- */
.join {
  text-align: center; background: var(--navy); color: #fff;
  padding-block: clamp(4.5rem, 11vh, 7.5rem);
}
.join h2 { color: #fff; font-size: clamp(2.2rem, 5.4vw, 4rem); max-width: 18ch; margin: 0 auto 1rem; }
.join p { color: #d7e6f2; font-size: 1.2rem; max-width: 50ch; margin: 0 auto 2rem; }
.join .price { color: var(--teal-bright); font-weight: 700; }
.join .btns { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.join .note { margin-top: 1.6rem; font-size: 0.95rem; color: #bcd2e6; }
.join .note b { color: #fff; }

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: #c7d8e8; padding-block: 3.5rem 2.2rem; font-size: 0.95rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2.4rem; padding-bottom: 2.4rem; border-bottom: 1px solid rgba(255,255,255,.12); }
.footer h4 { color: #fff; font-family: var(--sans); font-size: 0.82rem; letter-spacing: .14em; text-transform: uppercase; margin: 0 0 1rem; }
.footer a { color: #c7d8e8; }
.footer a:hover { color: #fff; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.55rem; }
.footer .brand-text b { color: #fff; }
.footer .brand-text span { color: #8fb0cc; }
.footer .lede { margin: 1rem 0 0; max-width: 38ch; color: #aac4dc; }
.footer-bottom { padding-top: 1.6rem; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; color: #8fb0cc; font-size: 0.85rem; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; transition: none; }
  .ev-feature img, .gallery img { transition: none; }
}
.no-js .reveal { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .heritage-grid { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr 1fr; }
  .proof { grid-template-columns: 1fr; }
  .events-grid { grid-template-columns: 1fr; }
  .voices-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .gallery { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 720px) {
  body { font-size: 17px; }
  .nav { display: none; }
  .header-cta .btn-ghost { display: none; }
  .menu-toggle { display: block; }
  .nav.open {
    display: flex; flex-direction: column; align-items: flex-start; gap: 1rem;
    position: absolute; top: 72px; left: 0; right: 0; background: #fff;
    padding: 1.4rem var(--gut); border-bottom: 1px solid var(--line);
    box-shadow: 0 16px 30px -20px rgba(8,41,74,.5);
  }
  .hero-strip-in { grid-template-columns: 1fr 1fr; gap: 1rem 1.4rem; }
  .why-grid { grid-template-columns: 1fr; }
  .proof-stats { grid-template-columns: 1fr 1fr; }
  .voice { grid-template-columns: 1fr; text-align: left; }
  .voice img { width: 110px; height: 132px; }
  .footer-grid { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 130px; }
  .g-big { grid-column: span 2; grid-row: span 1; }
}
