/* ═══════════════════════════════════════════════════
   ZV Holdings — Design System
   Shared tokens, reset, components, utilities
   ═══════════════════════════════════════════════════ */

:root {
  /* Colors */
  --gold: #C8A96A;
  --gold-lt: #DFC08A;
  --gold-dk: #9B7A42;
  --cream: #F0EBE0;
  --warm: #FAF7F2;
  --ink: #0C0C0A;
  --charcoal: #161614;
  --mid: #1E1E1C;
  --panel: #222220;
  --muted: #7A7570;
  --border: rgba(200, 169, 106, 0.18);
  --border-lt: rgba(200, 169, 106, 0.07);

  /* Typography */
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: 'Jost', sans-serif;

  /* Layout */
  --nav-h: 72px;
  --max: 1240px;
  --pad: clamp(1.5rem, 5vw, 5rem);
  --ease: cubic-bezier(0.4, 0, 0.2, 1);

  /* Animation */
  --dur-fast: 0.2s;
  --dur-med: 0.35s;
  --dur-slow: 0.7s;
}

/* ═══ Reset ═══ */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: var(--sans);
  background: var(--ink);
  color: var(--cream);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a {
  text-decoration: none;
  color: inherit;
}

/* ═══ Skip to Content ═══ */

.skip-to-content {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: 999;
  padding: 0.75rem 1.5rem;
  background: var(--gold);
  color: var(--ink);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;

  &:focus {
    top: 0.5rem;
  }
}

/* ═══ Focus States ═══ */

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 1px;
}

/* ═══ Nav ═══ */

#nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 200;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--pad);
  background: linear-gradient(to bottom, rgba(12, 12, 10, 0.92), transparent);
  border-bottom: 1px solid transparent;
  transition: background var(--dur-med), border-color var(--dur-med), box-shadow var(--dur-med);

  &.solid {
    background: rgba(12, 12, 10, 0.97);
    border-bottom-color: var(--border);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 1px 12px rgba(0, 0, 0, 0.25);
  }
}

.nav-logo {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 300;
  letter-spacing: 0.12em;
  color: var(--gold);
  line-height: 1;

  & span {
    color: var(--cream);
  }
}

.nav-links {
  display: flex;
  gap: 2.25rem;
  list-style: none;

  & a {
    font-size: 0.62rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: rgba(240, 235, 224, 0.8);
    transition: color var(--dur-fast);

    &:hover,
    &.active {
      color: var(--gold);
    }
  }
}

.nav-cta {
  font-size: 0.6rem;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  padding: 0.55rem 1.4rem;
  border: 1px solid var(--gold);
  color: var(--gold);
  background: transparent;
  cursor: pointer;
  transition: background 0.25s, color 0.25s, transform var(--dur-fast);

  &:hover {
    background: var(--gold);
    color: var(--ink);
  }

  &:active {
    transform: scale(0.98);
  }
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 6px;
  background: none;
  border: none;

  & span {
    display: block;
    width: 22px;
    height: 1px;
    background: var(--cream);
    transition: transform var(--dur-med), opacity var(--dur-med);
  }
}

.mobile-menu {
  position: fixed;
  top: var(--nav-h);
  left: 0;
  right: 0;
  z-index: 199;
  background: rgba(12, 12, 10, 0.98);
  border-bottom: 1px solid var(--border);
  padding: 2rem var(--pad);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  opacity: 0;
  translate: 0 -8px;
  pointer-events: none;
  transition: opacity var(--dur-med) var(--ease), translate var(--dur-med) var(--ease);

  &.open {
    opacity: 1;
    translate: 0;
    pointer-events: auto;
  }

  & ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;

    & a {
      font-size: 0.7rem;
      letter-spacing: 0.22em;
      text-transform: uppercase;
      color: var(--cream);
      transition: color var(--dur-fast);

      &:hover {
        color: var(--gold);
      }
    }
  }
}

/* ═══ Buttons ═══ */

.btn-fill {
  display: inline-block;
  background: var(--gold);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 0.625rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  font-weight: 500;
  padding: 0.85rem 2.25rem;
  border: none;
  cursor: pointer;
  transition: background 0.25s, transform var(--dur-fast), box-shadow 0.25s;

  &:hover {
    background: var(--gold-lt);
    translate: 0 -1px;
    box-shadow: 0 4px 16px rgba(200, 169, 106, 0.2);
  }

  &:active {
    translate: 0;
    box-shadow: none;
  }
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--sans);
  font-size: 0.625rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 400;
  color: rgba(240, 235, 224, 0.75);
  background: transparent;
  border: none;
  padding: 0;
  cursor: pointer;
  transition: color var(--dur-fast), gap var(--dur-fast);

  &::after {
    content: '\2192';
    font-size: 1rem;
    transition: translate var(--dur-fast);
  }

  &:hover {
    color: var(--gold);

    &::after {
      translate: 3px 0;
    }
  }
}

/* ═══ Typography Components ═══ */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.6rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 400;
  margin-bottom: 0.75rem;

  &::before {
    content: '';
    width: 30px;
    height: 1px;
    background: var(--gold);
    flex-shrink: 0;
  }
}

.section-title {
  font-family: var(--serif);
  font-size: clamp(2.2rem, 4.5vw, 3.8rem);
  font-weight: 300;
  line-height: 1.1;
  color: var(--cream);
  margin-top: 1rem;

  & em {
    font-style: italic;
    color: var(--gold-lt);
  }
}

.section-heading {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(1.7rem, 2.8vw, 2.6rem);
  line-height: 1.08;
  margin-bottom: 0.95rem;

  & em {
    font-style: italic;
    color: var(--gold-lt);
  }
}

.divider {
  width: 48px;
  height: 1px;
  background: var(--gold);
  margin: 1.5rem 0;
}

.rule {
  display: block;
  width: 36px;
  height: 1px;
  background: var(--gold);
  margin: 1rem 0;
}

.body-text {
  font-size: 0.875rem;
  line-height: 1.95;
  font-weight: 300;
  color: rgba(240, 235, 224, 0.65);
  letter-spacing: 0.03em;

  & p + p {
    margin-top: 1rem;
  }
}

.lead {
  font-size: 0.88rem;
  font-weight: 300;
  line-height: 1.85;
  color: var(--muted);
  max-width: 500px;
}

/* ═══ Reveal System ═══ */

.reveal {
  opacity: 0;
  translate: 0 24px;
  transition: opacity var(--dur-slow) var(--ease), translate var(--dur-slow) var(--ease);

  &.in {
    opacity: 1;
    translate: 0;
  }

  &.d1 { transition-delay: 0.08s; }
  &.d2 { transition-delay: 0.16s; }
  &.d3 { transition-delay: 0.24s; }
  &.d4 { transition-delay: 0.32s; }
}

/* ═══ Footer ═══ */

footer {
  background: var(--charcoal);
  border-top: 1px solid var(--border);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 3rem;
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(3rem, 6vw, 5rem) var(--pad);
}

.footer-brand {
  & .nav-logo {
    display: block;
    margin-bottom: 1rem;
  }

  & p {
    font-size: 0.78rem;
    line-height: 1.8;
    color: var(--muted);
    font-weight: 300;
  }
}

.footer-col {
  & h5 {
    font-size: 0.575rem;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 1.25rem;
  }

  & ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;

    & a {
      font-size: 0.78rem;
      color: var(--muted);
      font-weight: 300;
      background-image: linear-gradient(var(--gold), var(--gold));
      background-size: 0% 1px;
      background-position: left bottom;
      background-repeat: no-repeat;
      transition: color var(--dur-fast), background-size var(--dur-med) var(--ease);

      &:hover {
        color: var(--cream);
        background-size: 100% 1px;
      }
    }
  }
}

.footer-bottom {
  max-width: var(--max);
  margin: 0 auto;
  padding: 1.5rem var(--pad);
  border-top: 1px solid rgba(200, 169, 106, 0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  color: var(--muted);

  & a {
    color: var(--gold-dk);
  }
}

/* ═══ Utility Classes ═══ */

.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--pad);
}

.pad { padding: 5rem clamp(1.2rem, 5vw, 4rem); }
.pad-sm { padding: 3.5rem clamp(1.2rem, 5vw, 4rem); }

.bg-ink { background: var(--ink); }
.bg-charcoal { background: var(--charcoal); }
.bg-mid { background: var(--mid); }

.bg-warm {
  background: var(--warm);
  color: var(--ink);

  & .eyebrow { color: var(--gold-dk); }
  & .eyebrow::before { background: var(--gold-dk); }
  & .section-heading { color: var(--ink); }
  & .section-heading em { color: var(--gold-dk); }
  & .lead { color: #575350; }
  & .rule { background: var(--gold-dk); }
}

/* ═══ Content Visibility ═══ */

section:not(:first-of-type) {
  content-visibility: auto;
  contain-intrinsic-size: auto 600px;
}

/* ═══ View Transitions ═══ */

@view-transition {
  navigation: auto;
}

::view-transition-old(root) {
  animation: vt-fade-out 0.2s var(--ease);
}

::view-transition-new(root) {
  animation: vt-fade-in 0.2s var(--ease);
}

@keyframes vt-fade-out {
  to { opacity: 0; }
}

@keyframes vt-fade-in {
  from { opacity: 0; }
}

/* ═══ Responsive — Shared Components ═══ */

@media (max-width: 960px) {
  .nav-links,
  .nav-cta {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
}

@media (max-width: 560px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

/* ═══ Accessibility ═══ */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .reveal {
    opacity: 1;
    translate: 0;
  }
}
