/* Davis Chamber - v5 "Our Business is Davis" (Portland model, magazine storyteller)
   Palette: white / navy / amber / teal. No green, cream, yellow, gold, tan. */

:root {
  --white: #ffffff;
  --tint: #f5f9fc;
  --navy: #054C70;
  --ink: #08294a;
  --blue: #0a72bc;
  --amber: #d4853a;
  --amber-dark: #b86a23;
  --teal: #2bb1a4;
  --teal-bright: #3ecdc4;
  --text: #08294a;
  --muted: #4a637a;
  --line: #d9e6f0;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --maxw: 1200px;
  --shadow: 0 18px 50px -18px rgba(8, 41, 74, 0.28);
}

* { 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.65;
  -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; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; line-height: 1.05; color: var(--ink); margin: 0; }
p { margin: 0 0 1em; }

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

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--sans);
  font-weight: 700;
  font-size: 1rem;
  padding: 14px 26px;
  border-radius: 6px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, background .15s ease, color .15s ease;
  text-decoration: none;
  line-height: 1;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
@media (prefers-reduced-motion: reduce) { .btn:hover { transform: none; } }
.btn-amber { background: var(--amber); color: #fff; }
.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); color: var(--navy); }
.btn-ghost.on-dark { color: #fff; border-color: rgba(255,255,255,.5); }
.btn-ghost.on-dark:hover { border-color: #fff; background: rgba(255,255,255,.08); color: #fff; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.92);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .2s ease;
}
.site-header.scrolled { box-shadow: 0 6px 24px -14px rgba(8,41,74,.4); }
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 74px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark {
  width: 42px; height: 42px; border-radius: 9px;
  background: var(--navy);
  color: #fff;
  display: grid; place-items: center;
  font-family: var(--serif); font-weight: 600; font-size: 1.25rem;
  flex: none;
}
.brand-text { line-height: 1.1; }
.brand-text strong { font-family: var(--serif); font-size: 1.05rem; color: var(--ink); display: block; font-weight: 600; }
.brand-text span { font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.nav { display: flex; align-items: center; gap: 26px; }
.nav a.navlink { color: var(--ink); font-weight: 600; font-size: 0.95rem; }
.nav a.navlink:hover { color: var(--blue); text-decoration: none; }
.header-cta { display: flex; align-items: center; gap: 14px; }
.menu-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.menu-toggle span { display: block; width: 24px; height: 2px; background: var(--ink); margin: 5px 0; transition: .2s; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: flex-end;
  color: #fff;
  overflow: hidden;
}
.hero-img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: 0;
}
.hero-scrim {
  position: absolute; inset: 0;
  z-index: 1;
  background:
    linear-gradient(to top, rgba(8,41,74,0.92) 0%, rgba(8,41,74,0.55) 38%, rgba(8,41,74,0.12) 70%, rgba(8,41,74,0.30) 100%);
}
.hero-content {
  position: relative; z-index: 2;
  width: 100%;
  padding-bottom: 64px;
  padding-top: 120px;
}
.hero-kicker {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--sans); font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.2em; font-size: 0.72rem;
  color: var(--teal-bright);
  margin-bottom: 22px;
}
.hero-kicker::before { content: ""; width: 34px; height: 2px; background: var(--teal-bright); display: inline-block; }
.hero h1 {
  color: #fff;
  font-size: clamp(2.7rem, 7.4vw, 6.2rem);
  letter-spacing: -0.02em;
  max-width: 16ch;
  margin: 0 0 22px;
  text-shadow: 0 2px 30px rgba(0,0,0,.3);
}
.hero h1 em { font-style: italic; color: var(--teal-bright); }
.hero-lede {
  font-size: clamp(1.05rem, 1.9vw, 1.35rem);
  max-width: 56ch;
  color: rgba(255,255,255,.92);
  margin: 0 0 30px;
  line-height: 1.55;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.hero-note { font-size: 0.9rem; color: rgba(255,255,255,.82); margin: 0; }

/* ---------- Impact stats band (teal) ---------- */
.impact {
  background: var(--navy);
  color: #fff;
  border-top: 4px solid var(--teal);
}
.impact-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}
.stat {
  padding: 40px 28px;
  text-align: center;
  border-right: 1px solid rgba(255,255,255,.12);
}
.stat:last-child { border-right: 0; }
.stat .num {
  font-family: var(--serif);
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-weight: 600;
  color: var(--teal-bright);
  line-height: 1;
  margin-bottom: 8px;
}
.stat .lbl { font-size: 0.92rem; color: rgba(255,255,255,.85); line-height: 1.4; }

/* ---------- Section scaffolding ---------- */
section { position: relative; }
.section-pad { padding: 92px 0; }
.section-pad-sm { padding: 64px 0; }
.tint-bg { background: var(--tint); }
.section-head { max-width: 60ch; margin-bottom: 48px; }
.section-head h2 { font-size: clamp(2rem, 4vw, 3rem); letter-spacing: -0.01em; }
.section-head p { color: var(--muted); font-size: 1.1rem; margin-top: 14px; }

/* ---------- The Davis Story (origin) ---------- */
.story {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 64px;
  align-items: center;
}
.story-figure { position: relative; }
.story-figure img { border-radius: 14px; box-shadow: var(--shadow); width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4/5; }
.story-badge {
  position: absolute;
  right: -22px; bottom: -22px;
  background: var(--amber);
  color: #fff;
  font-family: var(--serif);
  border-radius: 14px;
  padding: 18px 22px;
  text-align: center;
  box-shadow: var(--shadow);
}
.story-badge .y { font-size: 2.1rem; font-weight: 600; line-height: 1; }
.story-badge .t { font-family: var(--sans); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.12em; font-weight: 700; }
.story-body h2 { font-size: clamp(2rem, 3.8vw, 2.9rem); margin-bottom: 18px; }
.story-body .drop::first-letter {
  font-family: var(--serif);
  font-size: 3.6em;
  float: left;
  line-height: 0.8;
  padding: 8px 12px 0 0;
  color: var(--navy);
  font-weight: 600;
}
.story-body p { color: #234; font-size: 1.08rem; }
.pull {
  border-left: 4px solid var(--amber);
  padding: 6px 0 6px 22px;
  margin: 26px 0;
  font-family: var(--serif);
  font-size: 1.3rem;
  color: var(--navy);
  font-style: italic;
}

/* ---------- Heritage 1905 -> 2026 ---------- */
.heritage {
  position: relative;
  color: #fff;
  text-align: center;
  overflow: hidden;
  padding: 110px 0;
}
.heritage-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.heritage::after { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(120deg, rgba(8,41,74,.92), rgba(5,76,112,.85)); }
.heritage .wrap { position: relative; z-index: 2; }
.heritage-years {
  display: flex; align-items: center; justify-content: center; gap: clamp(16px, 5vw, 60px);
  font-family: var(--serif); font-weight: 600;
  line-height: 1;
  margin-bottom: 18px;
}
.heritage-years .yr { font-size: clamp(3rem, 11vw, 8rem); color: #fff; }
.heritage-years .arrow { color: var(--teal-bright); font-size: clamp(1.6rem, 5vw, 3.4rem); }
.heritage .big { font-family: var(--serif); font-size: clamp(1.4rem, 3vw, 2.2rem); color: var(--teal-bright); margin-bottom: 10px; }
.heritage p { max-width: 60ch; margin: 0 auto; color: rgba(255,255,255,.9); font-size: 1.1rem; }

/* ---------- Why join (consolidated) ---------- */
.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.why-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 30px 26px;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.why-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
@media (prefers-reduced-motion: reduce) { .why-card:hover { transform: none; } }
.why-card .n { font-family: var(--serif); font-size: 1.3rem; color: var(--amber); margin-bottom: 10px; }
.why-card h3 { font-size: 1.3rem; margin-bottom: 8px; }
.why-card p { color: var(--muted); font-size: 0.98rem; margin: 0; }
.proof {
  margin-top: 44px;
  background: var(--navy);
  border-radius: 16px;
  color: #fff;
  padding: 40px;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 40px;
  align-items: center;
}
.proof h3 { color: #fff; font-size: 1.7rem; margin-bottom: 12px; }
.proof p { color: rgba(255,255,255,.85); margin: 0; }
.proof-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.proof-stats .ps .v { font-family: var(--serif); font-size: 2rem; color: var(--teal-bright); line-height: 1; }
.proof-stats .ps .k { font-size: 0.86rem; color: rgba(255,255,255,.82); margin-top: 4px; }
.proof cite { display: block; font-style: normal; font-size: 0.78rem; color: rgba(255,255,255,.6); margin-top: 18px; grid-column: 1 / -1; }

/* ---------- Events ---------- */
.events-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 28px; }
.event-feature {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  color: #fff;
  min-height: 460px;
  display: flex;
  align-items: flex-end;
  box-shadow: var(--shadow);
}
.event-feature img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.event-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%); }
.event-feature .ef-body { position: relative; z-index: 2; padding: 34px; }
.tag {
  display: inline-block;
  background: var(--amber);
  color: #fff;
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 6px 12px; border-radius: 999px; margin-bottom: 14px;
}
.tag.teal { background: var(--teal); }
.event-feature h3 { color: #fff; font-size: clamp(1.8rem, 3vw, 2.6rem); margin-bottom: 8px; }
.event-feature .when { font-weight: 700; color: var(--teal-bright); margin-bottom: 8px; font-family: var(--sans); }
.event-feature p { color: rgba(255,255,255,.9); margin: 0 0 18px; max-width: 50ch; }
.event-list { display: grid; gap: 28px; align-content: start; }
.event-mini { display: grid; grid-template-columns: 92px 1fr; gap: 18px; align-items: center; }
.event-mini img { width: 92px; height: 92px; border-radius: 12px; object-fit: cover; }
.event-mini .when { font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--amber-dark); }
.event-mini h4 { font-size: 1.2rem; margin: 3px 0 4px; }
.event-mini p { font-size: 0.92rem; color: var(--muted); margin: 0; }
.events-foot { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }

/* ---------- Gallery breath ---------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: 150px;
  gap: 10px;
}
.gallery img { width: 100%; height: 100%; object-fit: cover; border-radius: 6px; }
.gallery .g-wide { grid-column: span 2; grid-row: span 2; }
.gallery .g-tall { grid-row: span 2; }

/* ---------- Voices ---------- */
.voices-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.voice {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 34px;
  display: grid;
  grid-template-columns: 84px 1fr;
  gap: 22px;
  align-items: start;
}
.voice img { width: 84px; height: 84px; border-radius: 50%; object-fit: cover; }
.voice blockquote { margin: 0; font-family: var(--serif); font-size: 1.18rem; line-height: 1.5; color: var(--ink); font-style: italic; }
.voice .who { margin-top: 14px; font-family: var(--sans); }
.voice .who strong { display: block; color: var(--navy); }
.voice .who span { font-size: 0.88rem; color: var(--muted); }

/* ---------- Sponsors ---------- */
.sponsor-row {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: clamp(28px, 5vw, 64px);
  margin-top: 8px;
}
.sponsor-row img { height: 46px; width: auto; opacity: .72; filter: saturate(.9); transition: opacity .2s; }
.sponsor-row img:hover { opacity: 1; }

/* ---------- Final CTA ---------- */
.final {
  position: relative;
  overflow: hidden;
  color: #fff;
  text-align: center;
  padding: 100px 0;
}
.final img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.final::after { content:""; position:absolute; inset:0; z-index:1; background: linear-gradient(180deg, rgba(8,41,74,.82), rgba(5,76,112,.92)); }
.final .wrap { position: relative; z-index: 2; }
.final h2 { color: #fff; font-size: clamp(2.2rem, 5vw, 3.6rem); margin-bottom: 16px; max-width: 18ch; margin-left: auto; margin-right: auto; }
.final p { color: rgba(255,255,255,.9); font-size: 1.15rem; max-width: 52ch; margin: 0 auto 28px; }
.final .actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; align-items: center; }
.final .note { font-size: 0.92rem; color: rgba(255,255,255,.82); margin-top: 18px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: rgba(255,255,255,.78); padding: 64px 0 32px; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.footer-brand .brand-mark { background: var(--teal); }
.footer-brand p { color: rgba(255,255,255,.7); max-width: 38ch; margin-top: 16px; font-size: 0.96rem; }
.footer-col h4 { font-family: var(--sans); color: #fff; font-size: 0.82rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 16px; }
.footer-col a, .footer-col p { color: rgba(255,255,255,.74); display: block; margin-bottom: 10px; font-size: 0.96rem; }
.footer-col a:hover { color: var(--teal-bright); text-decoration: none; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 44px; padding-top: 22px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: 0.86rem; color: rgba(255,255,255,.55); }

/* reveal */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal, .reduce-motion .reveal { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .nav { display: none; }
  .menu-toggle { display: block; }
  .nav.open {
    display: flex; flex-direction: column; align-items: flex-start; gap: 4px;
    position: absolute; top: 74px; left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    padding: 16px 24px; box-shadow: var(--shadow);
  }
  .nav.open a.navlink { padding: 10px 0; width: 100%; }
  .impact-grid { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(1), .stat:nth-child(2) { border-bottom: 1px solid rgba(255,255,255,.12); }
  .story { grid-template-columns: 1fr; gap: 48px; }
  .story-figure { max-width: 460px; }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .proof { grid-template-columns: 1fr; gap: 24px; }
  .events-grid { grid-template-columns: 1fr; }
  .voices-grid { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(4, 1fr); grid-auto-rows: 120px; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .section-pad { padding: 64px 0; }
  .hero { min-height: 92vh; }
  .why-grid { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .voice { grid-template-columns: 1fr; text-align: left; }
  .voice img { width: 70px; height: 70px; }
  .footer-top { grid-template-columns: 1fr; }
  .header-cta .btn-ghost { display: none; }
  .story-badge { right: 12px; bottom: -16px; }
}
