/* ========================================
   CSS CUSTOM PROPERTIES
   ======================================== */
:root {
  --bg-deep: #0C0B09;
  --bg-surface: #151412;
  --bg-elevated: #1E1C19;
  --bg-card: #1A1815;
  --bg-cream: #F2EDE4;
  --bg-cream-elev: #EAE1CE;
  --accent-gold: #C8A55C;
  --accent-gold-dim: #9E8344;
  --accent-gold-bright: #E8D5A3;
  --accent-green: #22c55e;
  --accent-green-dim: #16a34a;
  --text-primary: #F2EDE4;
  --text-secondary: #8A8378;
  --text-muted: #5C5750;
  --text-on-cream: #1A1510;
  --text-on-cream-soft: #4A4238;
  --text-on-cream-muted: #6E675C;
  --border-subtle: rgba(200, 165, 92, 0.12);
  --border-medium: rgba(200, 165, 92, 0.25);
  --border-cream: rgba(26, 21, 16, 0.14);
  --border-cream-strong: rgba(26, 21, 16, 0.28);
  --font-display: 'Fraunces', serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}

/* ========================================
   RESET & BASE
   ======================================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  background: var(--bg-deep);
  color: var(--text-primary);
  line-height: 1.7;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

/* ========================================
   NOISE TEXTURE OVERLAY
   ======================================== */
body::before {
  content: '';
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  opacity: 0.03;
  pointer-events: none;
  z-index: 9999;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
}

/* ========================================
   LAYOUT UTILITIES
   ======================================== */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 clamp(24px, 5vw, 80px);
}

.container--narrow {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 clamp(24px, 5vw, 80px);
}

.section-pad {
  padding: clamp(80px, 12vw, 160px) 0;
}

/* ========================================
   TYPOGRAPHY
   ======================================== */
.headline-xl {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 6vw, 5.5rem);
  font-weight: 300;
  line-height: 1.05;
  letter-spacing: -0.02em;
  font-variation-settings: "SOFT" 50, "WONK" 1;
}

.headline-lg {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 300;
  line-height: 1.15;
  letter-spacing: -0.015em;
}

.headline-md {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.5vw, 2.2rem);
  font-weight: 400;
  line-height: 1.25;
}

.headline-sm {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 1.8vw, 1.5rem);
  font-weight: 600;
  line-height: 1.3;
}

.body-lg {
  font-size: clamp(1.05rem, 1.3vw, 1.2rem);
  line-height: 1.8;
  color: var(--text-secondary);
}

.body-md {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-secondary);
}

.label {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent-gold);
}

.accent-text {
  color: var(--accent-gold);
}

.italic {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 300;
}

/* ========================================
   NAVIGATION
   ======================================== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 24px 0;
  transition: all 0.5s var(--ease-out);
}

.nav.scrolled {
  background: rgba(12, 11, 9, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 14px 0;
  border-bottom: 1px solid var(--border-subtle);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 clamp(24px, 5vw, 80px);
}

.nav__logo {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--text-primary);
  transition: opacity 0.3s;
}

.nav__logo:hover { opacity: 0.7; }

.nav__links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav__link {
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-secondary);
  transition: color 0.3s;
  position: relative;
}

.nav__link:hover { color: var(--text-primary); }

.nav__link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--accent-gold);
  transition: width 0.4s var(--ease-out);
}

.nav__link:hover::after { width: 100%; }

.nav__cta {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--bg-deep);
  background: var(--accent-gold);
  padding: 10px 24px;
  border-radius: 2px;
  transition: all 0.3s;
}

.nav__cta:hover {
  background: var(--accent-gold-bright);
  transform: translateY(-1px);
}

/* Mobile nav */
.nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}

.nav__hamburger span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--text-primary);
  transition: all 0.3s;
}

.nav__mobile-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--bg-deep);
  z-index: 999;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 32px;
}

.nav__mobile-overlay.active { display: flex; }

.nav__mobile-overlay a {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 300;
  color: var(--text-primary);
  transition: color 0.3s;
}

.nav__mobile-overlay a:hover { color: var(--accent-gold); }

.nav__mobile-close {
  position: absolute;
  top: 24px;
  right: clamp(24px, 5vw, 80px);
  font-size: 2rem;
  color: var(--text-primary);
  background: none;
  border: none;
  cursor: pointer;
}

@media (max-width: 900px) {
  .nav__links { display: none; }
  .nav__hamburger { display: flex; }
}

/* ========================================
   BUTTONS
   ======================================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 16px 32px;
  border-radius: 2px;
  transition: all 0.35s var(--ease-out);
  position: relative;
  overflow: hidden;
}

.btn--primary {
  background: var(--accent-gold);
  color: var(--bg-deep);
}

.btn--primary:hover {
  background: var(--accent-gold-bright);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(200, 165, 92, 0.25);
}

.btn--outline {
  background: transparent;
  color: var(--accent-gold);
  border: 1px solid var(--accent-gold-dim);
}

.btn--outline:hover {
  background: rgba(200, 165, 92, 0.08);
  border-color: var(--accent-gold);
  transform: translateY(-2px);
}

.btn--ghost {
  background: transparent;
  color: var(--text-primary);
  padding: 16px 0;
}

.btn--ghost:hover { color: var(--accent-gold); }

.btn__arrow {
  transition: transform 0.3s var(--ease-out);
}

.btn:hover .btn__arrow {
  transform: translateX(4px);
}

/* ========================================
   CREDENTIAL TICKER
   ======================================== */
.ticker {
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  padding: 28px 0;
  overflow: hidden;
  position: relative;
}

.ticker__track {
  display: flex;
  gap: 64px;
  align-items: center;
  animation: tickerScroll 30s linear infinite;
  white-space: nowrap;
}

.ticker__item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-secondary);
  flex-shrink: 0;
}

.ticker__dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent-gold);
  flex-shrink: 0;
}

@keyframes tickerScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ========================================
   SECTION DIVIDER
   ======================================== */
.divider {
  height: 1px;
  background: linear-gradient(to right, transparent, var(--border-subtle), transparent);
}

/* ========================================
   SCROLL ANIMATIONS
   ======================================== */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ========================================
   CTA FOOTER
   ======================================== */
.cta-footer {
  position: relative;
  text-align: center;
  overflow: hidden;
}

.cta-footer__glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(200, 165, 92, 0.06), transparent 70%);
  pointer-events: none;
}

.cta-footer__content {
  position: relative;
  z-index: 2;
}

.cta-footer .headline-xl {
  margin-bottom: 20px;
}

.cta-footer .body-lg {
  max-width: 520px;
  margin: 0 auto 40px;
}

.cta-footer__actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ========================================
   SITE FOOTER
   ======================================== */
.footer {
  border-top: 1px solid var(--border-subtle);
  padding: 48px 0;
}

.footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
}

.footer__logo {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 400;
  color: var(--text-secondary);
}

.footer__links {
  display: flex;
  gap: 28px;
  list-style: none;
}

.footer__link {
  font-size: 0.82rem;
  color: var(--text-muted);
  transition: color 0.3s;
}

.footer__link:hover { color: var(--text-primary); }

.footer__copy {
  font-size: 0.75rem;
  color: var(--text-muted);
  width: 100%;
  text-align: center;
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--border-subtle);
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 600px) {
  .btn { width: 100%; justify-content: center; }
}

/* ========================================
   CREAM SECTION RHYTHM
   Editorial dark ↔ cream alternation.
   Remaps text/border tokens at the section scope so
   descendant rules using var(--text-primary) etc.
   automatically render correctly on cream.
   ======================================== */
section.sec-cream {
  background: var(--bg-cream);
  color: var(--text-on-cream-soft);

  /* Remap shared tokens for everything inside this section */
  --text-primary: var(--text-on-cream);
  --text-secondary: var(--text-on-cream-soft);
  --text-muted: var(--text-on-cream-muted);
  --border-subtle: var(--border-cream);
  --border-medium: var(--border-cream-strong);
  --bg-card: var(--bg-cream-elev);
  --bg-surface: var(--bg-cream);
  --bg-elevated: var(--bg-cream-elev);
  --bg-deep: var(--bg-cream);
  /* Gold accents shift to dim variant — better contrast on cream */
  --accent-gold: var(--accent-gold-dim);
}

/* Buttons on cream — primary flips to dark ink */
section.sec-cream .btn--primary {
  background: var(--text-on-cream);
  color: var(--bg-cream);
}
section.sec-cream .btn--primary:hover {
  background: #2A2118;
  color: var(--bg-cream);
  box-shadow: 0 8px 32px rgba(26, 21, 16, 0.18);
}

section.sec-cream .btn--outline {
  color: var(--text-on-cream);
  border-color: var(--border-cream-strong);
  background: transparent;
}
section.sec-cream .btn--outline:hover {
  background: rgba(26, 21, 16, 0.06);
  border-color: var(--text-on-cream);
  color: var(--text-on-cream);
}

section.sec-cream .btn--ghost {
  color: var(--text-on-cream);
}
section.sec-cream .btn--ghost:hover {
  color: var(--accent-gold-dim);
}

/* Accent italic/em stays gold-dim for readable contrast */
section.sec-cream .italic,
section.sec-cream em {
  color: var(--accent-gold-dim);
}
