/* ═══════════════════════════════════════════════════════════════
   CEREBRY LUXURY — Shared Stylesheet
   ═══════════════════════════════════════════════════════════════ */

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

:root {
  --gold:        #c4a35a;
  --gold-light:  #e2c98a;
  --gold-dim:    #8a7040;
  --navy-deep:   #030810;
  --navy:        #07111e;
  --navy-mid:    #0d1a2b;
  --navy-light:  #162236;
  --navy-glass:  rgba(7, 17, 30, 0.76);
  --cream:       #ede7dc;
  --cream-dim:   #b8afa4;
  --muted:       #566a7f;
  --border:      rgba(196, 163, 90, 0.18);
  --serif:       'Cormorant Garamond', Georgia, serif;
  --sans:        'Raleway', sans-serif;
  --ease-out:    cubic-bezier(0.22, 1, 0.36, 1);
  --section-pad: clamp(80px, 10vw, 130px);
  --content-max: 1280px;
  --content-wide: 1440px;
}

html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--sans);
  background: var(--navy-deep);
  color: var(--cream);
  overflow-x: hidden;
  cursor: none;
}

/* ─── CURSOR ─────────────────────────────────────────────────── */
#cursor {
  position: fixed; top: 0; left: 0;
  width: 10px; height: 10px;
  background: var(--gold);
  border-radius: 50%;
  pointer-events: none;
  z-index: 10000;
  transform: translate(-50%,-50%);
  transition: transform 0.12s var(--ease-out), background 0.2s;
}
#cursor-ring {
  position: fixed; top: 0; left: 0;
  width: 38px; height: 38px;
  border: 1px solid rgba(196,163,90,0.5);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%,-50%);
  transition: transform 0.35s var(--ease-out), width 0.3s, height 0.3s, border-color 0.3s;
}
body.cursor-hover #cursor { transform: translate(-50%,-50%) scale(2.5); background: var(--gold-light); }
body.cursor-hover #cursor-ring { width: 56px; height: 56px; border-color: var(--gold); }

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

/* ─── SCROLLBAR ──────────────────────────────────────────────── */
::-webkit-scrollbar { width: 3px; }
::-webkit-scrollbar-track { background: var(--navy-deep); }
::-webkit-scrollbar-thumb { background: var(--gold-dim); border-radius: 2px; }

/* ─── NAVIGATION ─────────────────────────────────────────────── */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 28px 56px;
  display: flex; align-items: center; justify-content: space-between;
  transition: background 0.5s var(--ease-out), padding 0.4s var(--ease-out);
}
.nav.scrolled {
  background: var(--navy-glass);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  padding: 18px 56px;
  border-bottom: 1px solid var(--border);
}
.nav-logo {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: 0.35em;
  color: var(--cream);
  text-decoration: none;
  text-transform: uppercase;
}
.nav-logo span { color: var(--gold); }
.nav-links { display: flex; gap: 40px; list-style: none; align-items: center; }
.nav-links a {
  font-size: 10.5px;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--cream-dim);
  text-decoration: none;
  position: relative;
  transition: color 0.3s;
}
.nav-links a::after {
  content: '';
  position: absolute; bottom: -3px; left: 0;
  width: 0; height: 1px;
  background: var(--gold);
  transition: width 0.35s var(--ease-out);
}
.nav-links a:hover,
.nav-links a.active { color: var(--cream); }
.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }
.nav-links a.active { color: var(--gold); }
.nav-links a.active::after { background: var(--gold); width: 100%; }

.nav-cta {
  font-size: 10.5px !important;
  letter-spacing: 0.18em !important;
  color: var(--navy-deep) !important;
  background: var(--gold);
  padding: 10px 26px;
  transition: background 0.3s !important;
}
.nav-cta::after { display: none !important; }
.nav-cta:hover { background: var(--gold-light) !important; color: var(--navy-deep) !important; }

.nav-hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; background: none; border: none; padding: 4px; }
.nav-hamburger span { display: block; width: 24px; height: 1px; background: var(--cream); transition: 0.3s; }

/* Mobile nav */
.mobile-menu {
  display: none;
  position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  background: var(--navy-deep);
  z-index: 999;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  font-family: var(--serif);
  font-size: 32px;
  font-weight: 300;
  color: var(--cream);
  text-decoration: none;
  letter-spacing: 0.05em;
  transition: color 0.3s;
}
.mobile-menu a:hover { color: var(--gold); }
.mobile-menu-close {
  position: absolute; top: 28px; right: 36px;
  background: none; border: none;
  color: var(--cream-dim); font-size: 11px;
  letter-spacing: 0.3em; text-transform: uppercase; cursor: pointer;
  transition: color 0.3s;
}
.mobile-menu-close:hover { color: var(--gold); }

/* ─── PAGE HERO (inner pages) ────────────────────────────────── */
.page-hero {
  position: relative;
  height: clamp(420px, 55vh, 700px);
  display: flex; flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
}
.page-hero-media {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  filter: brightness(0.5) saturate(0.85);
}
.page-hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(170deg, rgba(3,8,16,0.2) 0%, rgba(3,8,16,0.85) 100%);
}
.page-hero-content {
  position: relative; z-index: 2;
  padding: 0 56px 60px;
}
.page-hero-eyebrow {
  font-size: 10px;
  letter-spacing: 0.45em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
  opacity: 0;
  transform: translateY(14px);
  animation: fadeUp 0.8s var(--ease-out) 0.2s forwards;
}
.page-hero-title {
  font-family: var(--serif);
  font-size: clamp(38px, 5vw, 74px);
  font-weight: 300;
  line-height: 1.06;
  color: #fff;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.9s var(--ease-out) 0.4s forwards;
}
.page-hero-title em { font-style: italic; color: var(--gold-light); }

/* ─── BREADCRUMB ─────────────────────────────────────────────── */
.breadcrumb {
  padding: 16px 56px;
  border-bottom: 1px solid var(--border);
  background: var(--navy);
  display: flex; gap: 10px; align-items: center;
}
.breadcrumb a, .breadcrumb span {
  font-size: 10.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.3s;
}
.breadcrumb a:hover { color: var(--gold); }
.breadcrumb .sep { color: var(--border); }
.breadcrumb .current { color: var(--cream-dim); }

/* ─── SECTION UTILITIES ──────────────────────────────────────── */
.section { padding: var(--section-pad) clamp(32px, 5vw, 80px); }
.section-inner { max-width: var(--content-max); margin: 0 auto; }
.section-wide { max-width: var(--content-wide); margin: 0 auto; }

.label {
  font-size: 9px;
  letter-spacing: 0.45em;
  text-transform: uppercase;
  color: var(--gold);
  display: block;
  margin-bottom: 14px;
}
.h1 {
  font-family: var(--serif);
  font-size: clamp(40px, 5vw, 70px);
  font-weight: 300;
  line-height: 1.08;
  color: var(--cream);
}
.h2 {
  font-family: var(--serif);
  font-size: clamp(30px, 3.8vw, 54px);
  font-weight: 300;
  line-height: 1.1;
  color: var(--cream);
}
.h3 {
  font-family: var(--serif);
  font-size: clamp(22px, 2.4vw, 32px);
  font-weight: 400;
  line-height: 1.15;
  color: var(--cream);
}
.h2 em, .h1 em, .h3 em { font-style: italic; color: var(--gold-light); }
.lead {
  font-size: 15px;
  font-weight: 300;
  line-height: 1.85;
  color: var(--cream-dim);
}
.body-text {
  font-size: 13px;
  font-weight: 300;
  line-height: 1.8;
  color: var(--cream-dim);
}

/* ─── DIVIDERS ───────────────────────────────────────────────── */
.divider {
  border: none;
  border-top: 1px solid var(--border);
}

/* ─── BUTTONS ────────────────────────────────────────────────── */
.btn-primary {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--navy-deep);
  background: var(--gold);
  padding: 16px 38px;
  text-decoration: none;
  border: none; cursor: pointer;
  transition: background 0.3s, transform 0.2s var(--ease-out), box-shadow 0.3s;
}
.btn-primary:hover {
  background: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(196,163,90,0.25);
}
.btn-primary svg { width: 14px; stroke: currentColor; fill: none; transition: transform 0.3s; }
.btn-primary:hover svg { transform: translateX(4px); }

.btn-ghost {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--cream);
  background: transparent;
  border: 1px solid rgba(237,231,220,0.28);
  padding: 15px 32px;
  text-decoration: none;
  cursor: pointer;
  transition: border-color 0.3s, color 0.3s;
}
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); }

/* ─── CTA BANNER ─────────────────────────────────────────────── */
.cta-banner {
  background: var(--navy-mid);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 72px clamp(32px, 5vw, 80px);
  text-align: center;
}
.cta-banner .h2 { margin-bottom: 20px; }
.cta-banner .lead { max-width: 520px; margin: 0 auto 36px; }
.cta-banner-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ─── MARQUEE ────────────────────────────────────────────────── */
.marquee-section {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--navy);
  overflow: hidden;
  padding: 16px 0;
}
.marquee-track { display: flex; animation: marquee 30s linear infinite; width: max-content; }
.marquee-item { display: flex; align-items: center; gap: 32px; padding: 0 32px; white-space: nowrap; }
.marquee-text { font-size: 10px; letter-spacing: 0.35em; text-transform: uppercase; color: var(--cream-dim); }
.marquee-dot { width: 4px; height: 4px; background: var(--gold); border-radius: 50%; flex-shrink: 0; }

/* ─── STATS ──────────────────────────────────────────────────── */
.stats-band {
  background: var(--navy);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 56px clamp(32px, 5vw, 80px);
}
.stats-grid {
  max-width: var(--content-max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}
.stat-item { text-align: center; }
.stat-num {
  font-family: var(--serif);
  font-size: clamp(36px, 4vw, 54px);
  font-weight: 300;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 8px;
}
.stat-label { font-size: 10px; letter-spacing: 0.28em; text-transform: uppercase; color: var(--muted); }

/* ─── FORMS ──────────────────────────────────────────────────── */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { display: flex; flex-direction: column; gap: 8px; }
.form-group.full { grid-column: 1 / -1; }
.form-label { font-size: 9px; letter-spacing: 0.35em; text-transform: uppercase; color: var(--gold); }
.form-input, .form-select, .form-textarea {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  color: var(--cream);
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 300;
  padding: 14px 18px;
  outline: none;
  transition: border-color 0.3s, background 0.3s;
  width: 100%;
  -webkit-appearance: none;
  appearance: none;
}
.form-input::placeholder { color: var(--muted); }
.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: rgba(196,163,90,0.5);
  background: rgba(255,255,255,0.06);
}
.form-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='7' viewBox='0 0 12 7'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23c4a35a' stroke-width='1.2' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 18px center;
  background-color: rgba(255,255,255,0.04);
  cursor: pointer;
}
.form-select option { background: var(--navy-mid); }
.form-textarea { resize: vertical; min-height: 130px; }

/* ─── FOOTER ─────────────────────────────────────────────────── */
footer {
  background: var(--navy-deep);
  border-top: 1px solid var(--border);
}
.footer-top {
  max-width: var(--content-wide);
  margin: 0 auto;
  padding: 72px clamp(32px, 5vw, 80px) 56px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
}
.footer-logo {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: 0.35em;
  color: var(--cream);
  text-transform: uppercase;
  text-decoration: none;
  display: block;
  margin-bottom: 16px;
}
.footer-logo span { color: var(--gold); }
.footer-tagline { font-size: 13px; font-weight: 300; line-height: 1.75; color: var(--muted); max-width: 260px; margin-bottom: 24px; }
.footer-contact a { display: block; font-size: 12px; color: var(--cream-dim); text-decoration: none; margin-bottom: 6px; transition: color 0.3s; }
.footer-contact a:hover { color: var(--gold); }
.footer-col h5 { font-size: 9px; letter-spacing: 0.4em; text-transform: uppercase; color: var(--gold); margin-bottom: 20px; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { font-size: 13px; font-weight: 300; color: var(--muted); text-decoration: none; transition: color 0.3s; }
.footer-col a:hover { color: var(--cream); }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 22px clamp(32px, 5vw, 80px);
  max-width: var(--content-wide);
  margin: 0 auto;
  display: flex; justify-content: space-between; align-items: center;
  gap: 16px; flex-wrap: wrap;
}
.footer-legal { font-size: 11px; color: var(--muted); }
.footer-address { font-size: 11px; color: var(--muted); text-align: right; }

/* ─── ANIMATIONS ─────────────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@keyframes scrollPulse {
  0%,100% { opacity: 0.4; }
  50%      { opacity: 1; }
}

.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.85s var(--ease-out), transform 0.85s var(--ease-out); }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-d1 { transition-delay: 0.1s; }
.reveal-d2 { transition-delay: 0.2s; }
.reveal-d3 { transition-delay: 0.3s; }
.reveal-d4 { transition-delay: 0.4s; }

/* ─── VIDEO MODAL ────────────────────────────────────────────── */
.modal-backdrop {
  position: fixed; inset: 0;
  background: rgba(3,8,16,0.94);
  backdrop-filter: blur(10px);
  z-index: 5000;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none;
  transition: opacity 0.4s;
}
.modal-backdrop.active { opacity: 1; pointer-events: all; }
.modal-close {
  position: absolute; top: 28px; right: 36px;
  font-family: var(--sans);
  font-size: 11px; letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--cream-dim); cursor: pointer; background: none; border: none;
  display: flex; align-items: center; gap: 10px; transition: color 0.3s;
}
.modal-close:hover { color: var(--gold); }
.modal-video-wrap { width: min(90vw, 1200px); aspect-ratio: 16/9; }
.modal-video-wrap video { width: 100%; height: 100%; background: #000; }

/* ─── RESPONSIVE ─────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .nav { padding: 24px 36px; }
  .nav.scrolled { padding: 16px 36px; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .stats-grid { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 768px) {
  .nav { padding: 20px 24px; }
  .nav.scrolled { padding: 14px 24px; }
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  .page-hero-content { padding: 0 24px 48px; }
  .breadcrumb { padding: 14px 24px; }
  .section { padding: clamp(56px, 8vw, 100px) 24px; }
  .form-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .footer-address { text-align: center; }
  .stats-grid { grid-template-columns: repeat(2,1fr); }
  .cta-banner-actions { flex-direction: column; align-items: center; }
}
@media (max-width: 480px) {
  .nav-logo { font-size: 18px; }
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
}
