/* VCH Family Office — single-page long-scroll
   Slate palette; Cormorant Garamond italic accents in gold; sticky header.
*/

:root {
  --bg:         #4A5661;
  --bg-2:       #404C57;
  --card:       #0E1E2D;
  --card-2:     #122637;
  --card-3:     #0a1622;
  --cream:      #F4ECD2;
  --cream-2:    #E8E1C5;
  --cream-3:    #D8D1B6;
  --gold:       #C99A2B;
  --gold-2:     #B5872A;
  --line:       rgba(244, 236, 210, 0.18);
  --line-soft:  rgba(244, 236, 210, 0.10);

  --serif: "Cormorant Garamond", "Playfair Display", "EB Garamond", Georgia, "Times New Roman", serif;
  --sans:  "Inter", "Helvetica Neue", Arial, system-ui, -apple-system, sans-serif;

  --header-h: 92px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
}

html, body {
  margin: 0; padding: 0;
  background: var(--bg);
  color: var(--cream);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

button { font-family: inherit; cursor: pointer; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; }

/* ---- Layout ----------------------------------------------------------- */
.container { width: 100%; max-width: 1200px; padding: 0 32px; margin: 0 auto; }

/* ---- Sticky navigation header ---------------------------------------- */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  backdrop-filter: saturate(140%) blur(2px);
}
.site-nav__inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px 32px;
  max-width: 1280px; margin: 0 auto;
  gap: 24px;
  position: relative;
}
.site-nav__brand {
  display: inline-block;
  padding: 12px 22px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 10px;
  text-align: center;
  min-width: 180px;
}
.site-nav__brand-mark {
  display: block;
  font-family: var(--serif);
  font-style: italic;
  font-size: 22px;
  color: var(--cream);
  line-height: 1.0;
  margin-bottom: 4px;
}
.site-nav__brand-sub {
  display: block;
  font-size: 9px;
  letter-spacing: 6px;
  color: var(--cream-2);
  font-weight: 500;
}
.site-nav__links {
  display: flex; gap: 48px; align-items: center;
}
.site-nav__links a {
  color: var(--cream);
  font-size: 15px;
  position: relative;
  padding: 6px 0;
  transition: color 0.2s ease;
}
.site-nav__links a:hover { color: var(--gold); }
.site-nav__links a.is-active { color: var(--gold); }
.site-nav__links a.is-active::after {
  content: "";
  position: absolute; left: 28%; right: 28%; bottom: 0;
  height: 1.5px; background: var(--gold);
}

.site-nav__ctas { display: flex; gap: 12px; }
.site-nav__cta {
  display: inline-block;
  padding: 10px 22px;
  border-radius: 999px;
  font-size: 15px;
  border: 1px solid var(--gold);
  color: var(--gold);
  background: transparent;
  transition: background 0.15s, color 0.15s;
}
.site-nav__cta:hover { background: var(--gold); color: var(--card); }
.site-nav__cta--ghost {
  border-color: var(--line);
  color: var(--cream);
}
.site-nav__cta--ghost:hover { border-color: var(--cream); background: transparent; color: var(--cream); }
.site-nav__cta.is-active { background: var(--gold); color: var(--card); }
.site-nav__cta--ghost.is-active { background: transparent; border-color: var(--gold); color: var(--gold); }

/* ---- Mobile menu toggle (hamburger) ---------------------------------- */
.site-nav__toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  width: 44px; height: 44px;
  flex-direction: column;
  justify-content: space-between;
  align-items: stretch;
  gap: 0;
  cursor: pointer;
}
.site-nav__toggle-bar {
  display: block;
  height: 2px;
  background: var(--cream);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.site-nav__toggle[aria-expanded="true"] .site-nav__toggle-bar:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}
.site-nav__toggle[aria-expanded="true"] .site-nav__toggle-bar:nth-child(2) {
  opacity: 0;
}
.site-nav__toggle[aria-expanded="true"] .site-nav__toggle-bar:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* ---- Sections (each is its own "stop" in the long scroll) ------------ */
/* Industry-standard rhythm: ~110px top + ~110px bottom = ~220px between
   sections. Content-driven heights — no forced min-height except where the
   page intentionally wants the section to fill the viewport (hero & principal). */
.section {
  padding: 110px 0;
}
.section__inner { width: 100%; }

.section--hero {
  min-height: calc(100vh - var(--header-h));
  padding: 60px 0;
  display: flex;
  align-items: center;
  text-align: center;
}
.section--principal {
  /* Deliberately quiet — taller than its content needs, but not forced full-screen */
  padding: 150px 0 170px;
  text-align: center;
}
.section--foundation {
  padding: 130px 0 150px;
  text-align: center;
}

/* ---- Eyebrow (──── EYEBROW ────) -------------------------------------- */
.eyebrow {
  display: flex; align-items: center; justify-content: center;
  gap: 18px;
  font-size: 13px;
  letter-spacing: 4px;
  color: var(--gold);
  font-weight: 600;
  text-transform: uppercase;
  margin: 0 0 22px;
}
.eyebrow::before, .eyebrow::after {
  content: "";
  display: inline-block;
  width: 80px; height: 1px;
  background: var(--gold);
}

/* ---- Section title ---------------------------------------------------- */
.section__title {
  font-family: var(--serif); font-weight: 500;
  font-size: 56px; line-height: 1.15;
  text-align: center;
  margin: 0;
  color: var(--cream);
}
.section__title em {
  font-style: italic; font-weight: 500;
  color: var(--gold);
}

/* ---- Hero (Home) ------------------------------------------------------ */
.hero__headline {
  font-family: var(--serif);
  font-size: 64px;
  font-weight: 500;
  color: var(--cream);
  margin: 26px 0 0;
  line-height: 1.15;
}
.hero__headline em { font-style: italic; color: var(--gold); font-weight: 500; }

/* ---- The Principal — quiet section ----------------------------------- */
.principal-title { font-size: 56px; }

/* ---- Approach — three columns ---------------------------------------- */
.principles {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 0;
  margin: 56px auto 0;
  max-width: 1100px;
}
.principles__col {
  padding: 30px 36px;
  text-align: center;
  border-right: 1px solid var(--line);
}
.principles__col:last-child { border-right: none; }
.principles__title {
  font-family: var(--serif);
  font-size: 30px; font-weight: 500;
  color: var(--cream);
  margin: 0 0 16px;
}
.principles__body {
  color: var(--cream-2);
  font-size: 15px; line-height: 1.6;
}

/* ---- Focus — three cream cards --------------------------------------- */
.streams {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 24px;
  margin: 56px auto 0;
  max-width: 1100px;
}
.stream {
  background: var(--cream);
  color: var(--card);
  border-radius: 18px;
  padding: 56px 30px;
  text-align: center;
  min-height: 280px;
  display: flex; flex-direction: column; justify-content: center;
}
.stream__label {
  font-size: 12px; letter-spacing: 4px;
  color: var(--gold); font-weight: 600;
  margin-bottom: 28px;
}
.stream__title {
  font-family: var(--serif);
  font-size: 38px; font-weight: 500;
  color: var(--card);
  margin: 0;
}

/* ---- Foundation ------------------------------------------------------- */
.foundation__sep {
  width: 64px; height: 1px;
  background: var(--gold);
  margin: 28px auto 36px;
}
.foundation__line {
  font-family: var(--serif);
  font-size: 26px; font-weight: 500;
  color: var(--cream);
  margin: 0;
}

/* ---- Contact form ---------------------------------------------------- */
.form {
  max-width: 760px; margin: 36px auto 0;
  display: grid; grid-template-columns: 1fr 1fr; gap: 24px 28px;
}
.form__row { grid-column: 1 / -1; }
.form__field { display: flex; flex-direction: column; gap: 10px; }
.form__field label {
  font-size: 11px; letter-spacing: 4px;
  color: var(--cream-2); font-weight: 600;
  text-transform: uppercase;
}
.form__field input,
.form__field textarea,
.form__field select {
  background: var(--card);
  color: var(--cream);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px 16px;
  font-size: 15px;
  font-family: inherit;
}
.form__field select {
  appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path fill='%23E8E1C5' d='M6 8L0 0h12z'/></svg>");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 38px;
  cursor: pointer;
}
.form__field select:disabled { opacity: 0.45; cursor: not-allowed; }
.form__field select option { background: var(--card-2); color: var(--cream); }
.form__field input:focus,
.form__field textarea:focus,
.form__field select:focus { border-color: var(--gold); background: #14283c; outline: none; }
.form__field textarea { min-height: 130px; resize: vertical; }
.form__field--hidden { display: none; }

.form__submit {
  grid-column: 1 / -1;
  display: flex; justify-content: center;
  margin-top: 12px;
}
.btn {
  display: inline-block;
  padding: 14px 38px;
  border-radius: 999px;
  font-size: 15px;
  border: 1px solid transparent;
  font-family: inherit;
  cursor: pointer;
}
.btn--gold { background: var(--gold); color: var(--card); border-color: var(--gold); }
.btn--gold:hover { background: var(--gold-2); border-color: var(--gold-2); }
.form__submit .btn[disabled],
.form__submit .btn[aria-disabled="true"] { opacity: 0.45; cursor: not-allowed; }

/* Notice with 1-second fade-out */
.form__notice {
  grid-column: 1 / -1; text-align: center; margin-top: 18px;
  padding: 14px 18px; border-radius: 10px;
  font-size: 14px; line-height: 1.5; color: var(--gold);
  border: 1px solid transparent; background: transparent;
  display: none;
  opacity: 1;
  transition: opacity 1s ease;
}
.form__notice.is-shown { display: block; }
.form__notice.is-fading { opacity: 0; }
.form__notice.is-success {
  color: var(--cream);
  background: rgba(201, 154, 43, 0.10);
  border-color: rgba(201, 154, 43, 0.45);
}
.form__notice.is-error {
  color: #FCD7C7;
  background: rgba(196, 84, 60, 0.12);
  border-color: rgba(196, 84, 60, 0.55);
}

/* ---- Footer ----------------------------------------------------------- */
.site-foot {
  border-top: 1px solid var(--line);
  padding: 26px 0;
  text-align: center;
}
.site-foot__inner {
  font-size: 11px;
  letter-spacing: 2px;
  color: var(--cream-3);
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
}

/* =====================================================================
   Mobile (≤ 960px) — drawer-style menu opens below the brand row
   ===================================================================== */
@media (max-width: 960px) {

  .site-nav__inner {
    flex-wrap: wrap;
    padding: 16px 20px;
    gap: 12px;
  }

  /* Hamburger appears, replaces inline nav */
  .site-nav__toggle {
    display: flex;
    margin-left: auto;
    order: 2;
  }

  /* Links + CTAs are hidden by default and drop below header when open */
  .site-nav__links,
  .site-nav__ctas {
    display: none;
    width: 100%;
    flex-direction: column;
    gap: 0;
    padding: 0;
    order: 3;
  }
  .site-nav__links.is-open,
  .site-nav__ctas.is-open {
    display: flex;
  }

  .site-nav__links {
    border-top: 1px solid var(--line);
    padding-top: 4px;
    margin-top: 12px;
  }
  .site-nav__links a {
    display: block;
    width: 100%;
    text-align: center;
    padding: 16px 0;
    border-bottom: 1px solid var(--line-soft);
    font-size: 16px;
  }
  .site-nav__links a:last-child { border-bottom: none; }
  .site-nav__links a.is-active::after { display: none; }

  .site-nav__ctas {
    padding: 8px 0 4px;
    gap: 10px;
  }
  .site-nav__ctas a {
    width: 100%;
    text-align: center;
    padding: 12px 0;
  }

  /* Section spacing scaled down */
  .principles { grid-template-columns: 1fr; }
  .principles__col { border-right: none; border-bottom: 1px solid var(--line); padding: 28px 12px; }
  .principles__col:last-child { border-bottom: none; }
  .streams { grid-template-columns: 1fr; }
  .hero__headline { font-size: 44px; }
  .section__title { font-size: 36px; }
  .section { padding: 80px 0; }
  .section--principal { padding: 100px 0 120px; }
  .section--foundation { padding: 90px 0 110px; }
  .section--hero { min-height: 70vh; padding: 40px 0; }
}

@media (max-width: 640px) {
  .form { grid-template-columns: 1fr; }
  .container { padding: 0 22px; }
  .site-nav__brand { min-width: 150px; padding: 10px 16px; }
  .site-nav__brand-mark { font-size: 19px; }
  .hero__headline { font-size: 38px; }
  .section__title { font-size: 30px; }
  .stream { padding: 44px 24px; min-height: 220px; }
  .stream__title { font-size: 30px; }
}

/* =====================================================================
   Recessed image card
   --------------------------------------------------------------------
   Dark navy backing, thin cream/line border, 12px rounded corners, 20px
   inner padding. One image fills the inner box; multi-image cards
   (triptych, pair) sit edge-to-edge with a small gap between panels.
   On narrow screens the multi-image card collapses to a stack so each
   photo stays readable.
   ===================================================================== */
.recess {
  display: block;
  background: #0a1622;            /* navy-3 */
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 20px;
  margin: 56px auto 0;
  max-width: 420px;
}
.recess img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 4px;
}

/* Triptych and pair: side-by-side flex */
.recess--triptych,
.recess--pair {
  display: flex;
  gap: 8px;
  align-items: stretch;
}
.recess--triptych img,
.recess--pair img {
  flex: 1 1 0;
  min-width: 0;
  object-fit: cover;
  height: auto;
}

/* Mobile: keep multi-image cards side-by-side (the source photos are
   tall portrait crops, so a vertical stack made each one taller than
   the phone screen). Slightly tighten the card itself so the recess
   matches the proportions of the single-image card on smaller screens. */
@media (max-width: 640px) {
  .recess {
    max-width: 320px;
    padding: 14px;
    margin-top: 40px;
  }
  .recess--triptych,
  .recess--pair {
    gap: 6px;
  }
  /* Cap each panel's max-height so a tall portrait crop can't push the
     recess off-screen. Keeps the visible block proportional to the
     standard single-image card. */
  .recess--triptych img,
  .recess--pair img {
    max-height: 220px;
  }
}
