/* ═══════════════════════════════════════════════════════════════════════════
   ONE & ONLY — Shared Design System
   All pages import this file for consistent branding & animations
   ═══════════════════════════════════════════════════════════════════════════ */

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

:root {
  --navy:       #0A1628;
  --navy-mid:   #0F1C30;
  --navy-light: #1A2B45;
  --gold:       #B8935A;
  --gold-light: #D4AA70;
  --ivory:      #F5F0E8;
  --white:      #FFFFFF;
  --muted:      rgba(245,240,232,0.65);
  --ease-out:   cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring:cubic-bezier(0.34, 1.56, 0.64, 1);
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'Inter', sans-serif;
  background: var(--navy);
  color: var(--ivory);
  overflow-x: hidden;
  opacity: 0;
  animation: pageIn 0.6s var(--ease-out) forwards;
}

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

/* Page-exit class applied by nav links before navigation */
body.page-exit {
  animation: pageOut 0.35s var(--ease-out) forwards !important;
}
@keyframes pageOut {
  from { opacity: 1; transform: translateY(0); }
  to   { opacity: 0; transform: translateY(-8px); }
}

/* ═══ SCROLLBAR ═══════════════════════════════════════════════════════════ */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--navy); }
::-webkit-scrollbar-thumb { background: var(--gold); border-radius: 2px; }

/* ═══ NAV ═════════════════════════════════════════════════════════════════ */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 56px;
  transition: all 0.5s var(--ease-out);
}
nav.scrolled {
  background: rgba(10,22,40,0.97);
  backdrop-filter: blur(20px);
  padding: 16px 56px;
  border-bottom: 1px solid rgba(184,147,90,0.18);
}
.nav-logo {
  text-decoration: none;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.nav-logo-main {
  font-family: 'Cormorant Garamond', serif;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--gold-light);
  text-transform: uppercase;
}
.nav-logo-sub {
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--muted);
}
.nav-links {
  display: flex;
  gap: 36px;
  list-style: none;
  align-items: center;
}
.nav-links a {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.3s;
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -3px; left: 0; right: 100%;
  height: 1px;
  background: var(--gold);
  transition: right 0.35s var(--ease-out);
}
.nav-links a:hover,
.nav-links a.active { color: var(--ivory); }
.nav-links a:hover::after,
.nav-links a.active::after { right: 0; }
.nav-links a.active { color: var(--gold-light); }
.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 28px;
  background: transparent;
  border: 1px solid var(--gold);
  color: var(--gold-light) !important;
  font-size: 10px !important;
  letter-spacing: 0.2em !important;
  text-transform: uppercase;
  text-decoration: none;
  transition: all 0.3s !important;
  border-radius: 1px;
}
.nav-cta:hover {
  background: var(--gold) !important;
  color: var(--navy) !important;
}
.nav-cta::after { display: none !important; }

/* Mobile hamburger */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}
.nav-hamburger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--gold);
  transition: all 0.3s;
}
.nav-mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 999;
  background: rgba(10,22,40,0.98);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
}
.nav-mobile-menu.open { display: flex; }
.nav-mobile-menu a {
  font-family: 'Cormorant Garamond', serif;
  font-size: 32px;
  font-weight: 400;
  letter-spacing: 0.1em;
  color: var(--ivory);
  text-decoration: none;
  text-transform: uppercase;
  transition: color 0.3s;
}
.nav-mobile-menu a:hover { color: var(--gold-light); }
.nav-mobile-close {
  position: absolute;
  top: 24px; right: 28px;
  font-size: 28px;
  color: var(--muted);
  background: none;
  border: none;
  cursor: pointer;
}

/* ═══ PAGE HERO (interior pages) ═════════════════════════════════════════ */
.page-hero {
  position: relative;
  height: 55vh;
  min-height: 480px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
}
.page-hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.06);
  animation: heroZoom 8s var(--ease-out) forwards;
}
@keyframes heroZoom {
  from { transform: scale(1.06); }
  to   { transform: scale(1.0); }
}
.page-hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(10,22,40,0.98) 0%, rgba(10,22,40,0.4) 50%, transparent 100%),
    linear-gradient(to right, rgba(10,22,40,0.5) 0%, transparent 60%);
}
.page-hero-content {
  position: relative;
  z-index: 2;
  padding: 0 56px 64px;
  max-width: 900px;
}
.page-hero-label {
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  opacity: 0;
  animation: fadeUp 0.7s var(--ease-out) 0.3s forwards;
}
.page-hero-label::before {
  content: '';
  display: block;
  width: 32px;
  height: 1px;
  background: var(--gold);
}
.page-hero-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(40px, 6vw, 80px);
  font-weight: 300;
  line-height: 1.05;
  color: var(--ivory);
  opacity: 0;
  animation: fadeUp 0.8s var(--ease-out) 0.45s forwards;
}
.page-hero-title em {
  font-style: italic;
  color: var(--gold-light);
}

/* ═══ SECTIONS ════════════════════════════════════════════════════════════ */
.section-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 100px 56px;
}
.section-inner.narrow { max-width: 860px; }

.gold-divider {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}
.gold-divider-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--gold), transparent);
  opacity: 0.4;
  max-width: 80px;
}
.gold-divider span {
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold);
  white-space: nowrap;
}

.section-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(32px, 4vw, 60px);
  font-weight: 300;
  line-height: 1.08;
  color: var(--ivory);
}
.section-title em {
  font-style: italic;
  color: var(--gold-light);
}
.section-body {
  font-size: 15px;
  line-height: 1.8;
  color: var(--muted);
  max-width: 540px;
  margin-top: 16px;
}

/* ═══ BUTTONS ═════════════════════════════════════════════════════════════ */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 40px;
  background: var(--gold);
  color: var(--navy);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 1px;
  border: none;
  cursor: pointer;
  transition: all 0.3s;
}
.btn-primary:hover { background: var(--gold-light); }

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 38px;
  background: transparent;
  border: 1px solid var(--gold);
  color: var(--gold-light);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 1px;
  cursor: pointer;
  transition: all 0.3s;
}
.btn-outline:hover {
  background: var(--gold);
  color: var(--navy);
}

/* ═══ REVEAL ANIMATIONS ═══════════════════════════════════════════════════ */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.75s var(--ease-out), transform 0.75s 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; }
.reveal-delay-5 { transition-delay: 0.5s; }

/* Stagger children */
.reveal-stagger > * {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}
.reveal-stagger.visible > *:nth-child(1) { opacity:1;transform:none;transition-delay:0.05s; }
.reveal-stagger.visible > *:nth-child(2) { opacity:1;transform:none;transition-delay:0.15s; }
.reveal-stagger.visible > *:nth-child(3) { opacity:1;transform:none;transition-delay:0.25s; }
.reveal-stagger.visible > *:nth-child(4) { opacity:1;transform:none;transition-delay:0.35s; }
.reveal-stagger.visible > *:nth-child(5) { opacity:1;transform:none;transition-delay:0.45s; }
.reveal-stagger.visible > *:nth-child(6) { opacity:1;transform:none;transition-delay:0.55s; }

/* ═══ SHIMMER LINE ════════════════════════════════════════════════════════ */
.shimmer-line {
  height: 1px;
  background: linear-gradient(to right, transparent, var(--gold), transparent);
  animation: shimmer 3s ease-in-out infinite;
  opacity: 0.5;
}
@keyframes shimmer {
  0%,100% { transform: scaleX(0.3) translateX(-60%); opacity:0; }
  50%      { transform: scaleX(1) translateX(0);      opacity:0.7; }
}

/* ═══ FOOTER ══════════════════════════════════════════════════════════════ */
footer {
  background: var(--navy-mid);
  border-top: 1px solid rgba(184,147,90,0.1);
  padding: 64px 56px 32px;
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(184,147,90,0.1);
}
.footer-brand p {
  font-size: 13px;
  line-height: 1.8;
  color: var(--muted);
  margin-top: 16px;
  max-width: 280px;
}
.footer-col h4 {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col ul a {
  font-size: 13px;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.3s;
}
.footer-col ul a:hover { color: var(--gold-light); }
.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.footer-bottom p {
  font-size: 11px;
  color: var(--muted);
  opacity: 0.6;
  letter-spacing: 0.06em;
}
.footer-socials { display: flex; gap: 20px; }
.footer-socials a {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  opacity: 0.6;
  transition: all 0.3s;
}
.footer-socials a:hover { color: var(--gold); opacity: 1; }

/* ═══ LIGHTBOX ════════════════════════════════════════════════════════════ */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
}
.lightbox.open { display: flex; }
.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.95);
  cursor: pointer;
}
.lightbox img {
  position: relative;
  z-index: 2;
  max-width: 88vw;
  max-height: 88vh;
  object-fit: contain;
  border-radius: 2px;
  box-shadow: 0 20px 80px rgba(0,0,0,0.8);
}
.lightbox-close {
  position: absolute;
  top: 24px; right: 32px;
  z-index: 4;
  font-size: 32px;
  color: var(--gold);
  cursor: pointer;
  background: none;
  border: none;
  line-height: 1;
  transition: color 0.2s;
}
.lightbox-close:hover { color: var(--ivory); }
.lightbox-prev, .lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 4;
  font-size: 52px;
  color: var(--gold);
  background: rgba(10,22,40,0.7);
  border: 1px solid rgba(184,147,90,0.3);
  border-radius: 2px;
  width: 56px; height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  line-height: 1;
}
.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }
.lightbox-prev:hover, .lightbox-next:hover {
  background: rgba(184,147,90,0.9);
  color: var(--navy);
}
.lightbox-counter {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 4;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}

/* ═══ MOBILE ══════════════════════════════════════════════════════════════ */
@media (max-width: 900px) {
  nav { padding: 18px 24px; }
  nav.scrolled { padding: 14px 24px; }
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  .section-inner { padding: 72px 24px; }
  .page-hero-content { padding: 0 24px 48px; }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 32px; }
}

/* ═══ SHARED JS (inline at bottom of each page) ══════════════════════════ */
/* Nav scroll, reveal, page transitions handled via shared.js */
