/* CAVA Legacy Group LLC — site styles
   Navy #032354  Gold #BE934D  Cream #F6F3EE
   Mobile-first. */

:root {
  --navy: #032354;
  --navy-deep: #02163a;
  --navy-soft: #0a2e63;
  --gold: #BE934D;
  --gold-hover: #c9a45e;
  --gold-dark: #9a7539;
  --gold-ink: #7A5420;
  --white: #ffffff;
  --cream: #F6F3EE;
  --cream-2: #EDE8DF;
  --ink: #1c1c1c;
  --muted: #4d5660;
  --line: #d8d2c8;
  --error: #8a1f1f;
  --error-bg: #fbeaea;
  --ok: #1b4d34;
  --ok-bg: #e8f4ee;
  --focus: #BE934D;
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;
  --header-h: 4.5rem;
  --wrap: 70rem;
  --wrap-narrow: 46rem;
  --radius: 2px;
  --shadow: 0 10px 40px rgba(3, 35, 84, 0.12);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
body {
  margin: 0;
  font-family: var(--sans);
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); text-underline-offset: 0.15em; }
a:hover { color: var(--gold-dark); }
h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.15;
  color: var(--navy);
  margin: 0 0 0.75rem;
  letter-spacing: 0.01em;
}
h1 { font-size: clamp(2.15rem, 5vw, 3.5rem); font-weight: 600; }
h2 { font-size: clamp(1.75rem, 3.2vw, 2.5rem); }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1rem; }
p:last-child { margin-bottom: 0; }
ul, ol { margin: 0 0 1rem; padding-left: 1.2rem; }

.skip-link {
  position: absolute;
  left: 0.75rem;
  top: -3.5rem;
  background: var(--gold);
  color: var(--navy);
  padding: 0.5rem 1rem;
  z-index: 200;
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus { top: 0.75rem; }

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}
button:focus:not(:focus-visible),
a:focus:not(:focus-visible) { outline: none; }

.wrap {
  width: min(100% - 2rem, var(--wrap));
  margin-inline: auto;
}
.wrap-narrow { width: min(100% - 2rem, var(--wrap-narrow)); margin-inline: auto; }

.kicker {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-ink);
  margin-bottom: 0.75rem;
}
.hero .kicker,
.page-hero .kicker,
.section-navy .kicker { color: var(--gold); }
.form .kicker { color: var(--gold-ink); }
.lead { font-size: 1.125rem; color: var(--muted); max-width: 42rem; }
.gold-rule {
  width: 4.5rem;
  height: 1px;
  background: var(--gold);
  border: 0;
  margin: 1.25rem 0 1.5rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.5rem;
  font-family: var(--sans);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  line-height: 1.2;
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.2s;
}
.btn:hover { transform: translateY(-1px); }
.btn-gold { background: var(--gold); color: var(--navy); border-color: var(--gold); }
.btn-gold:hover, .btn-gold:focus-visible { background: var(--gold-hover); color: var(--navy); }
.btn-navy { background: var(--navy); color: var(--white); border-color: var(--navy); }
.btn-navy:hover { background: var(--navy-soft); color: var(--white); }
.btn-outline { background: transparent; color: var(--white); border-color: var(--gold); }
.btn-outline:hover { background: var(--gold); color: var(--navy); }
.btn-outline-navy { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-outline-navy:hover { background: var(--navy); color: var(--white); }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.75rem; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--cream-2);
  box-shadow: 0 1px 0 rgba(190, 147, 77, 0.35);
}
.header-inner {
  width: min(100% - 1.5rem, var(--wrap));
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-h);
  gap: 1rem;
}
.logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  text-decoration: none;
}
.logo img {
  height: 48px;
  width: auto;
}
@media (min-width: 720px) {
  .logo img { height: 56px; }
}
.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 2.6rem;
  height: 2.6rem;
  padding: 0;
  border: 1px solid var(--line);
  background: var(--white);
  cursor: pointer;
  border-radius: var(--radius);
}
.nav-toggle span {
  display: block;
  width: 1.05rem;
  height: 1.5px;
  background: var(--navy);
  margin-inline: auto;
  transition: transform 0.2s, opacity 0.2s;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }
.nav-toggle:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

.site-nav {
  display: none;
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  background: var(--white);
  border-bottom: 1px solid var(--cream-2);
  padding: 0.5rem 1.25rem 1.25rem;
  box-shadow: var(--shadow);
}
.site-nav.is-open { display: block; }
.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.site-nav a {
  display: block;
  padding: 0.7rem 0.25rem;
  text-decoration: none;
  color: var(--navy);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--cream-2);
}
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--gold-dark); }
.site-nav .nav-cta { margin-top: 0.85rem; border-bottom: 0; padding: 0; }
.site-nav .nav-cta .btn { width: 100%; }

@media (min-width: 960px) {
  .nav-toggle { display: none; }
  .site-nav {
    display: block;
    position: static;
    background: transparent;
    border: 0;
    padding: 0;
    box-shadow: none;
  }
  .site-nav ul {
    flex-direction: row;
    align-items: center;
    gap: 0.15rem 1.15rem;
  }
  .site-nav a {
    border: 0;
    padding: 0.35rem 0;
  }
  .site-nav .nav-cta { margin-top: 0; margin-left: 0.4rem; }
  .site-nav .nav-cta .btn { width: auto; padding: 0.65rem 1.1rem; }
}

/* Hero */
.hero {
  position: relative;
  color: var(--white);
  background: var(--navy);
  isolation: isolate;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.hero-media {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  min-height: 14.5rem;
  background: var(--navy);
}
.hero-media img,
.hero-media picture,
.hero-media picture img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Keep the family on the right in frame on narrow screens */
  object-position: 78% 50%;
}
.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, var(--navy) 100%);
  pointer-events: none;
}
.hero-inner {
  width: min(100% - 2rem, var(--wrap));
  margin-inline: auto;
  padding: 1.75rem 0 2.75rem;
  max-width: 44rem;
  position: relative;
  z-index: 1;
}
.hero h1 { color: var(--white); max-width: 18ch; }
.hero .lead { color: rgba(255, 255, 255, 0.9); }
.hero .kicker { color: var(--gold); }
.hero .gold-rule { background: var(--gold); }

@media (min-width: 800px) {
  .hero {
    min-height: min(86vh, 44rem);
    display: flex;
    flex-direction: row;
    align-items: center;
  }
  .hero-media {
    position: absolute;
    inset: 0;
    aspect-ratio: auto;
    min-height: 0;
    z-index: 0;
  }
  .hero-media img,
  .hero-media picture,
  .hero-media picture img {
    object-position: 62% 50%;
  }
  .hero-media::after {
    background: linear-gradient(
      90deg,
      rgba(3, 35, 84, 0.92) 0%,
      rgba(3, 35, 84, 0.80) 26%,
      rgba(3, 35, 84, 0.50) 44%,
      rgba(3, 35, 84, 0.20) 64%,
      rgba(3, 35, 84, 0.08) 100%
    );
  }
  .hero-inner { padding: 4.5rem 0 5rem; }
}


/* Home split hero: solid navy text panel beside an untinted photo.
   Scoped to .hero-split so inner-page .page-hero looks stay unchanged. */
.hero.hero-split .hero-media::after {
  content: none;
  display: none;
  background: none;
}
.hero.hero-split .hero-media img,
.hero.hero-split .hero-media picture,
.hero.hero-split .hero-media picture img {
  /* Full-width mobile shows nearly the whole 16:9 frame */
  object-position: 30% 50%;
}

@media (min-width: 900px) {
  .hero.hero-split {
    min-height: 0;
    display: grid;
    grid-template-columns: minmax(20rem, 42%) 1fr;
    align-items: stretch;
  }
  .hero.hero-split .hero-inner {
    grid-column: 1;
    grid-row: 1;
    width: auto;
    max-width: none;
    margin: 0;
    padding: 2.75rem clamp(1.5rem, 3.2vw, 3.25rem) 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: #032354;
    position: relative;
    z-index: 1;
  }
  /* Overlay layout used 18ch so type didn’t run over faces; the panel can use its width.
     Slightly smaller than the 3.5rem cap so the title can sit on two lines and the
     photo column stays close to 16:9 — enough to keep Kimber and the family in frame. */
  .hero.hero-split h1 {
    max-width: none;
    font-size: clamp(2.15rem, 3.2vw, 2.75rem);
  }
  .hero.hero-split .hero-media {
    grid-column: 2;
    grid-row: 1;
    position: relative;
    inset: auto;
    z-index: 0;
    width: auto;
    min-width: 0;
    min-height: 0;
    height: 100%;
    aspect-ratio: auto;
    overflow: hidden;
    align-self: stretch;
  }
  .hero.hero-split .hero-media::after {
    content: none;
    display: none;
    background: none;
  }
  .hero.hero-split .hero-media img,
  .hero.hero-split .hero-media picture,
  .hero.hero-split .hero-media picture img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    max-width: none;
    min-height: 0;
    object-fit: cover;
    /* Slight left bias keeps Kimber visible if the panel is taller than 16:9 */
    object-position: 18% 50%;
  }
}

.page-hero {
  min-height: 0;
  display: flex;
  align-items: center;
}
.page-hero .hero-media { display: none; }
.page-hero .hero-inner { padding: 3.75rem 0 3.5rem; max-width: 44rem; }
.page-hero.has-photo .hero-media {
  display: block;
}

/* Sections */
.section { padding: 4.25rem 0; }
.section-cream { background: var(--cream); }
.section-navy { background: var(--navy); color: var(--white); }
.section-navy h2, .section-navy h3 { color: var(--white); }
.section-navy .lead, .section-navy p { color: rgba(255, 255, 255, 0.88); }
.section-header { margin-bottom: 2.5rem; max-width: 40rem; }

.grid-2, .grid-3, .grid-4 {
  display: grid;
  gap: 1.5rem;
}
@media (min-width: 720px) {
  .grid-2 { grid-template-columns: 1fr 1fr; gap: 2.5rem; align-items: center; }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 960px) {
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

/* Cards */
.card {
  background: var(--white);
  border: 1px solid var(--cream-2);
  padding: 1.6rem 1.5rem 1.7rem;
  height: 100%;
  box-shadow: 0 1px 0 rgba(3, 35, 84, 0.03);
}
.card h3 { margin-top: 0.35rem; }
.step-num {
  font-family: var(--serif);
  font-size: 1.5rem;
  color: var(--gold-ink);
  font-weight: 600;
  letter-spacing: 0.04em;
}
.who-card {
  background: var(--white);
  border-top: 2px solid var(--gold);
  padding: 1.5rem 1.35rem 1.6rem;
}

/* Why Work With Us */
.why-card {
  background: var(--cream);
  border-top: 2px solid var(--gold);
  padding: 1.6rem 1.5rem 1.7rem;
  height: 100%;
}
.why-card h3 { margin-top: 0.2rem; }
.grid-why {
  display: grid;
  gap: 1.5rem;
}
@media (min-width: 720px) {
  .grid-why { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 960px) {
  .grid-why { grid-template-columns: repeat(6, 1fr); }
  .grid-why > * { grid-column: span 2; }
  .grid-why > *:nth-child(4):nth-last-child(2) { grid-column: 2 / span 2; }
  .grid-why > *:nth-child(5):last-child { grid-column: 4 / span 2; }
}


/* Split image blocks */
.media-block { overflow: hidden; }
.media-block img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4/3; min-height: 16rem; }
@media (min-width: 720px) {
  .media-block img { min-height: 22rem; height: 100%; }
}

/* Quote cards (kept for any future, permissioned reviews) */
.quote-card {
  background: var(--white);
  border: 1px solid var(--cream-2);
  padding: 1.75rem 1.5rem 1.4rem;
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
}
.quote-card.sample {
  outline: 1px dashed var(--gold);
  outline-offset: -1px;
  background: linear-gradient(180deg, #fffdf8 0%, var(--white) 48%);
}
.sample-label {
  display: inline-block;
  align-self: flex-start;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-ink);
  background: #f3ead8;
  border: 1px solid #e4d3ae;
  padding: 0.2rem 0.45rem;
  margin-bottom: 0.9rem;
}
.quote-card blockquote {
  margin: 0 0 1.2rem;
  font-family: var(--serif);
  font-size: 1.2rem;
  line-height: 1.45;
  color: var(--navy);
  flex: 1;
}
.quote-card cite {
  font-style: normal;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0.03em;
}

/* FAQ */
.faq-list { max-width: 48rem; }
.faq-list details {
  border-bottom: 1px solid var(--line);
  padding: 0.25rem 0;
}
.faq-list summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--navy);
  padding: 1rem 1.75rem 1rem 0;
  list-style: none;
  position: relative;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gold);
  font-size: 1.3rem;
  font-weight: 400;
}
.faq-list details[open] summary::after { content: "–"; }
.faq-list details p { padding: 0 0 1.1rem; color: var(--muted); }

/* Forms */
.form {
  background: var(--white);
  border: 1px solid var(--cream-2);
  padding: 1.75rem 1.35rem;
  box-shadow: var(--shadow);
}
@media (min-width: 640px) {
  .form { padding: 2.1rem 2rem; }
}
.form-grid {
  display: grid;
  gap: 1rem;
}
@media (min-width: 640px) {
  .form-grid.two { grid-template-columns: 1fr 1fr; }
}
.field { display: flex; flex-direction: column; gap: 0.35rem; }
.field label, .check label {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--navy);
}
.optional { font-weight: 500; text-transform: none; letter-spacing: 0; color: var(--muted); }
.field input, .field select, .field textarea {
  font-family: var(--sans);
  font-size: 1rem;
  padding: 0.7rem 0.8rem;
  border: 1px solid #cfc8bc;
  border-radius: var(--radius);
  background: var(--white);
  color: var(--ink);
  width: 100%;
}
.field textarea { min-height: 7.5rem; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--gold);
  outline: 2px solid rgba(190, 147, 77, 0.35);
  outline-offset: 0;
}
.field.has-error input,
.field.has-error select,
.field.has-error textarea { border-color: var(--error); }
.field-error { color: var(--error); font-size: 0.8rem; min-height: 1.1em; }
.check {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  font-size: 0.92rem;
  color: var(--muted);
  margin: 0.4rem 0 1rem;
}
.check input { margin-top: 0.3rem; accent-color: var(--navy); flex-shrink: 0; }
.check label { text-transform: none; letter-spacing: 0; font-weight: 400; font-size: 0.9rem; color: var(--muted); line-height: 1.55; }
.hp { position: absolute; left: -8000px; width: 1px; height: 1px; overflow: hidden; }
.form-status[hidden] { display: none; }
.form-status.is-error { background: var(--error-bg); color: var(--error); padding: 0.75rem 1rem; margin-bottom: 1rem; }
.form-note { font-size: 0.85rem; color: var(--muted); margin-top: 0.85rem; }

/* Founder portrait */
.founder-frame {
  display: block;
  background: var(--white);
  border: 1px solid var(--gold);
  padding: 0.45rem;
  box-shadow: 0 12px 36px rgba(3, 35, 84, 0.12);
}
.founder-frame img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 50% 15%;
  display: block;
}
.founder-caption {
  margin-top: 0.9rem;
}
.founder-caption .role {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-ink);
  margin-top: 0.2rem;
}
.meet-founder {
  display: grid;
  gap: 1.5rem;
  align-items: center;
}
@media (min-width: 720px) {
  .meet-founder { grid-template-columns: 11.5rem 1fr; gap: 2rem; }
  .meet-founder .founder-frame { max-width: 11.5rem; }
}

/* Footer */
.site-footer {
  background: var(--navy-deep);
  color: rgba(255, 255, 255, 0.82);
  padding: 3rem 0 1.5rem;
  font-size: 0.9rem;
}
.site-footer a { color: var(--white); text-decoration: none; }
.site-footer a:hover { color: var(--gold); }
.footer-grid {
  display: grid;
  gap: 2rem;
  margin-bottom: 2.25rem;
}
@media (min-width: 720px) {
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
}
.footer-brand img { height: 58px; width: auto; margin-bottom: 0.9rem; }
.footer-brand p { color: rgba(255, 255, 255, 0.75); }
.site-footer h2 {
  color: var(--gold);
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 0.85rem;
}
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 0.4rem; }
.footer-legal {
  border-top: 1px solid rgba(190, 147, 77, 0.28);
  padding-top: 1.4rem;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.7);
}
.eho {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  margin: 1rem 0;
}
.eho-mark {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
}
.disclaimer { max-width: 58rem; margin-top: 0.75rem; }
.copyright { margin-top: 1.1rem; color: rgba(255, 255, 255, 0.55); }

/* Banner strip */
.brand-band {
  background: var(--navy) center / cover no-repeat;
  min-height: 8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.brand-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(3, 35, 84, 0.15);
}

/* Utility */
.center { text-align: center; }
.center .lead, .center .gold-rule { margin-inline: auto; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}

/* Thank you */
.thanks { padding: 5rem 0 6rem; text-align: center; }
.thanks .card { max-width: 36rem; margin: 2rem auto 0; padding: 2.25rem; }

/* Legal pages */
.legal { padding: 3.5rem 0 5rem; }
.legal h2 { margin-top: 2rem; font-size: 1.5rem; }
.legal h3 { margin-top: 1.4rem; }
.placeholder-token {
  display: inline-block;
  background: #f3ead8;
  border: 1px dashed var(--gold-dark);
  color: var(--navy);
  padding: 0 0.3rem;
  font-family: ui-monospace, monospace;
  font-size: 0.92em;
}

/* CTA band */
.cta-band .btn-row { justify-content: flex-start; }
.cta-band.center .btn-row { justify-content: center; }
