/*
 * LEXILUCKS DESIGN SYSTEM — EDITORIAL CELEBRITY SUITE
 * Haute couture typography, cinematic lighting, and luxury componentry
 */

:root {
  /* Colors — Luxury Obsidian & Champagne Gold */
  --dark: #08060A;
  --dark-deep: #050306;
  --mid: #0E0A14;
  --surface: #140F1D;
  --surface-glass: rgba(20, 15, 29, 0.75);
  --surface-border: rgba(212, 175, 55, 0.18);

  --gold: #D4AF37;
  --gold-light: #F6E5AB;
  --gold-bright: #FFE082;
  --gold-glow: rgba(212, 175, 55, 0.28);
  --gold-soft: rgba(212, 175, 55, 0.1);
  --gold-border: rgba(212, 175, 55, 0.22);

  --rose: #E84A7F;
  --rose-glow: rgba(232, 74, 127, 0.22);
  --hot: #E03C7A;
  --blush: #F5CBD5;
  --purple: #9B51E0;
  --chrome: #E0E0E0;

  --white: #FDFBF7;
  --white-muted: rgba(253, 251, 247, 0.75);
  --white-dim: rgba(253, 251, 247, 0.45);
  --white-subtle: rgba(253, 251, 247, 0.15);

  /* Gradients */
  --grad-gold: linear-gradient(135deg, #F3DE9A 0%, #D4AF37 50%, #A88625 100%);
  --grad-dark: radial-gradient(circle at top center, #150F21 0%, #08060A 100%);
  --grad-card: linear-gradient(180deg, rgba(28, 21, 38, 0.7) 0%, rgba(14, 10, 20, 0.85) 100%);
  --grad-hero-overlay: radial-gradient(circle at 65% 35%, rgba(212, 175, 55, 0.12) 0%, transparent 60%);

  /* Typography */
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-accent: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Raleway', 'Inter', -apple-system, sans-serif;

  /* Spacing & Radii */
  --radius-xs: 2px;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --radius-pill: 9999px;

  /* Shadows */
  --shadow-gold: 0 8px 30px rgba(212, 175, 55, 0.18);
  --shadow-card: 0 16px 40px rgba(0, 0, 0, 0.45);
  --shadow-deep: 0 24px 64px rgba(0, 0, 0, 0.7);
}

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  background-color: var(--dark);
  color-scheme: dark;
}

body {
  font-family: var(--font-body);
  background-color: var(--dark);
  color: var(--white);
  overflow-x: hidden;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

/* Accessible Utilities */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: var(--dark-deep);
}
::-webkit-scrollbar-thumb {
  background: rgba(212, 175, 55, 0.4);
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--gold);
}

/* Typography Classes */
.eyebrow {
  font-family: var(--font-accent);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}
.eyebrow::before,
.eyebrow::after {
  content: '';
  display: inline-block;
  width: 14px;
  height: 1px;
  background: currentColor;
  opacity: 0.6;
}

.h-title {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 7.5vw, 5.8rem);
  font-weight: 300;
  line-height: 1.0;
  letter-spacing: -0.02em;
  color: var(--white);
}
.h-title em {
  font-style: italic;
  color: var(--gold-light);
  font-weight: 400;
}

.h-section {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5.5vw, 3.8rem);
  font-weight: 300;
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin-bottom: 1.2rem;
  color: var(--white);
}
.h-section em {
  font-style: italic;
  color: var(--gold-light);
  font-weight: 400;
}

.section-lede {
  color: var(--white-muted);
  font-size: clamp(0.95rem, 1.8vw, 1.15rem);
  line-height: 1.8;
  font-weight: 300;
  max-width: 620px;
  margin: 0 auto;
}

/* Button Componentry */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.95rem 2.4rem;
  font-family: var(--font-accent);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  cursor: pointer;
  border-radius: var(--radius-xs);
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  text-align: center;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.1);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: -1;
}
.btn:hover::after {
  opacity: 1;
}

.btn-primary {
  background: var(--grad-gold);
  color: #0c0810;
  box-shadow: 0 4px 20px rgba(212, 175, 55, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.3);
}
.btn-primary:hover, .btn-primary:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(212, 175, 55, 0.45);
  color: #060408;
  outline: none;
}

.btn-outline,
.btn-secondary {
  background: rgba(253, 251, 247, 0.02);
  color: var(--white);
  border: 1px solid var(--surface-border);
  backdrop-filter: blur(8px);
}
.btn-outline:hover, .btn-outline:focus-visible,
.btn-secondary:hover, .btn-secondary:focus-visible {
  border-color: var(--gold);
  color: var(--gold-light);
  background: rgba(212, 175, 55, 0.08);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(212, 175, 55, 0.15);
  outline: none;
}

.btn-large {
  padding: 1.15rem 3rem;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
}

/* Subtle Link */
.link-subtle {
  font-family: var(--font-accent);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  color: var(--gold);
  text-transform: uppercase;
  font-weight: 500;
  transition: all 0.25s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.link-subtle:hover {
  color: var(--gold-light);
  transform: translateX(3px);
}

/* Global Navigation */
.global-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 1.1rem 5%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(8, 6, 10, 0.82);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(212, 175, 55, 0.12);
  transition: all 0.3s ease;
}

.nav-brand {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--white);
  display: flex;
  flex-direction: column;
  line-height: 1.0;
}
.nav-brand sub {
  font-family: var(--font-accent);
  font-style: normal;
  font-size: 0.52rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--gold);
  margin-top: 3px;
  font-weight: 600;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.2rem;
  list-style: none;
}
.nav-links a {
  font-family: var(--font-accent);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--white-muted);
  position: relative;
  padding: 0.4rem 0;
  transition: color 0.25s ease;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 1px;
  background: var(--gold);
  transition: width 0.3s ease;
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--white);
}
.nav-links a:hover::after {
  width: 100%;
}
.nav-links a.nav-curiosity {
  color: var(--gold-light);
}

.nav-cta {
  font-family: var(--font-accent);
  font-size: 0.68rem;
  font-weight: 600;
  padding: 0.7rem 1.6rem;
  background: var(--grad-gold);
  color: #0c0810;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border-radius: var(--radius-xs);
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.2);
}
.nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(212, 175, 55, 0.35);
  background: var(--gold-light);
}

.nav-ham {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  background: rgba(253, 251, 247, 0.05);
  border: 1px solid rgba(212, 175, 55, 0.2);
  width: 42px;
  height: 42px;
  border-radius: var(--radius-xs);
  padding: 0;
  transition: background 0.2s ease, border-color 0.2s ease;
}
.nav-ham:hover {
  background: rgba(212, 175, 55, 0.1);
  border-color: var(--gold);
}
.nav-ham span {
  display: block;
  width: 20px;
  height: 1.5px;
  background: var(--white);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease;
}

/* Hamburger to X Transform */
.nav-ham.open span:nth-child(1) {
  transform: translateY(7.5px) rotate(45deg);
}
.nav-ham.open span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.nav-ham.open span:nth-child(3) {
  transform: translateY(-7.5px) rotate(-45deg);
}

/* Mobile Drawer When Open */
@media (max-width: 960px) {
  .global-nav {
    padding: 0.9rem 5%;
  }
  .nav-cta {
    display: none;
  }
  .nav-ham {
    display: flex;
  }

  .nav-links {
    position: fixed;
    inset: 0;
    top: 62px;
    height: calc(100vh - 62px);
    background: rgba(8, 6, 10, 0.98);
    backdrop-filter: blur(28px);
    -webkit-backdrop-filter: blur(28px);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2.2rem;
    padding: 2rem;
    border-top: 1px solid rgba(212, 175, 55, 0.15);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity 0.35s ease, transform 0.35s ease;
    z-index: 9500;
  }

  .nav-links.open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
    display: flex;
  }

  .nav-links a {
    font-family: var(--font-display);
    font-size: 2rem;
    letter-spacing: 0.05em;
    text-transform: none;
    color: var(--white);
  }
  .nav-links a.nav-curiosity {
    color: var(--gold-light);
    font-style: italic;
  }
}

/* Concierge & Sticky Mobile Dock Spacing */
@media (max-width: 768px) {
  body {
    padding-bottom: 58px;
  }
  .llc-widget {
    bottom: 68px !important;
    right: 16px !important;
  }
}

/* Forms & Inputs */
.form-standard {
  width: 100%;
}
.form-input {
  width: 100%;
  padding: 1rem 1.4rem;
  background: rgba(14, 10, 20, 0.7);
  border: 1px solid rgba(212, 175, 55, 0.2);
  border-radius: var(--radius-xs);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.92rem;
  outline: none;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}
.form-input::placeholder {
  color: var(--white-dim);
  font-weight: 300;
}
.form-input:focus,
.form-input:focus-visible {
  border-color: var(--gold);
  background: rgba(22, 16, 32, 0.85);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.15);
}

.field-error {
  display: block;
  font-family: var(--font-accent);
  font-size: 0.72rem;
  color: #FF6B8B;
  margin-top: 0.4rem;
  text-align: left;
}

/* Global Footer */
.global-footer {
  padding: 6rem 5% 3rem;
  border-top: 1px solid rgba(212, 175, 55, 0.15);
  background: var(--dark-deep);
  position: relative;
}
.global-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 400px;
  max-width: 90%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2.2fr 1fr 1fr 1fr;
  gap: 3.5rem;
  margin-bottom: 4rem;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.footer-brand .nav-brand {
  font-size: 2.2rem;
  margin-bottom: 1rem;
}
.footer-brand p {
  font-size: 0.88rem;
  color: var(--white-muted);
  line-height: 1.8;
  max-width: 320px;
  font-weight: 300;
}

.footer-col h4 {
  font-family: var(--font-accent);
  font-size: 0.65rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.4rem;
  font-weight: 600;
}
.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}
.footer-col a {
  font-size: 0.85rem;
  color: var(--white-muted);
  transition: color 0.2s ease, transform 0.2s ease;
  display: inline-block;
}
.footer-col a:hover {
  color: var(--gold-light);
  transform: translateX(2px);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 2.5rem;
  border-top: 1px solid rgba(253, 251, 247, 0.06);
  font-family: var(--font-accent);
  font-size: 0.65rem;
  color: var(--white-dim);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  max-width: 1200px;
  margin: 0 auto;
}
.footer-bottom a:hover {
  color: var(--gold);
}

/* Responsive Footer */
@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
  }
}
@media (max-width: 600px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 1.2rem;
    text-align: center;
  }
  .btn {
    width: 100%;
  }
}

/* Accessibility: High-Contrast Focus Visible */
a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

/* Accessibility: Reduced Motion */
@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;
  }
}
