/* ============================================================
   DeepDive — Unified Production Design System
   Preserves 100% of existing visual aesthetics (ocean dark theme,
   Playfair Display typography, cyan glow accents, glassmorphism)
   while providing reusable component utilities and accessibility.
   ============================================================ */

/* ── 1. DESIGN TOKENS ── */
:root {
  /* Color Palette */
  --ocean-deep: #020b18;
  --ocean-mid: #041428;
  --ocean-surface: #062040;
  --cyan: #00d4ff;
  --cyan-soft: #00a8cc;
  --gold: #f0a500;
  --white: #e8f4ff;
  --muted: rgba(232, 244, 255, 0.65);
  --muted-soft: rgba(232, 244, 255, 0.45);
  --muted-faint: rgba(232, 244, 255, 0.25);

  /* Status Colors */
  --danger: #ff6b6b;
  --danger-bg: rgba(255, 107, 107, 0.12);
  --success: #00cec9;
  --success-bg: rgba(0, 206, 201, 0.12);
  --warning: #ffb830;
  --warning-bg: rgba(255, 184, 48, 0.12);

  /* Glassmorphism & Borders */
  --bg-card: rgba(0, 212, 255, 0.04);
  --bg-card-hover: rgba(0, 212, 255, 0.08);
  --bg-glass: rgba(4, 20, 40, 0.85);
  --border-cyan: rgba(0, 212, 255, 0.15);
  --border-cyan-hover: rgba(0, 212, 255, 0.35);
  --border-cyan-strong: rgba(0, 212, 255, 0.5);

  /* Typography */
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Spacing & Radii */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 24px;
  --radius-pill: 50px;

  /* Shadows & Glows */
  --glow-cyan: 0 0 20px rgba(0, 212, 255, 0.35);
  --glow-cyan-strong: 0 0 35px rgba(0, 212, 255, 0.55);
  --shadow-card: 0 20px 50px rgba(0, 0, 0, 0.45);
  --backdrop-blur: blur(20px);
}

/* ── 2. GLOBAL RESET & BASE STYLES ── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  background-color: var(--ocean-deep);
  color: var(--white);
  font-family: var(--font-sans);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Accessible Focus Ring */
:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 4px;
}

/* Screen Reader Only Utility */
.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* Skip Link */
.skip-link {
  position: absolute;
  top: -100px;
  left: 20px;
  z-index: 10001;
  padding: 0.8rem 1.5rem;
  background: var(--cyan);
  color: var(--ocean-deep);
  font-weight: 700;
  text-decoration: none;
  border-radius: var(--radius-pill);
  transition: top 0.2s ease;
}
.skip-link:focus {
  top: 20px;
}

/* Links & Typography Helpers */
a {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s ease, border-color 0.3s ease;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  font-weight: 700;
  line-height: 1.15;
}

.cyan-accent {
  color: var(--cyan);
}

.serif-italic {
  font-family: var(--font-serif);
  font-style: italic;
}

/* ── 3. NAVIGATION ── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  padding: 1.2rem 4rem; display: flex; align-items: center; justify-content: space-between;
  -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); background: rgba(2,11,24,0.85);
  border-bottom: 1px solid rgba(0,212,255,0.1); transition: all 0.3s ease;
}
nav.scrolled {
  background: rgba(2,11,24,0.95);
  border-bottom-color: rgba(0,212,255,0.25);
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}
.nav-logo { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.nav-logo img { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; border: 2px solid rgba(0,212,255,0.4); box-shadow: 0 0 12px rgba(0,212,255,0.3); }
.nav-logo span { font-family: var(--font-serif); font-size: 1.4rem; font-style: italic; color: var(--cyan); text-shadow: 0 0 20px rgba(0,212,255,0.5); }

.nav-links { display: flex; gap: 1.8rem; list-style: none; flex-wrap: wrap; }
.nav-links a { color: var(--muted); text-decoration: none; font-size: 0.78rem; letter-spacing: 0.15em; text-transform: uppercase; transition: color 0.3s; position: relative; }
.nav-links a:hover, .nav-links a.active { color: var(--cyan); }
.nav-links a::after { content: ''; position: absolute; bottom: -4px; left: 0; width: 0; height: 1px; background: var(--cyan); transition: width 0.3s; }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }

.nav-auth { display: flex; gap: 1rem; align-items: center; }
.nav-btn-login { padding: 0.45rem 1.2rem; border: 1px solid rgba(0,212,255,0.45); border-radius: 50px; color: var(--cyan); font-size: 0.75rem; letter-spacing: 0.15em; text-transform: uppercase; background: transparent; cursor: pointer; transition: all 0.3s; text-decoration: none; }
.nav-btn-login:hover { background: rgba(0,212,255,0.12); box-shadow: 0 0 15px rgba(0,212,255,0.2); }

.nav-user { position: relative; display: flex; align-items: center; gap: 0.6rem; cursor: pointer; }
.nav-avatar { width: 36px; height: 36px; border-radius: 50%; background: linear-gradient(135deg, var(--cyan), #0066aa); display: flex; align-items: center; justify-content: center; font-size: 0.85rem; font-weight: 700; color: var(--ocean-deep); border: 2px solid rgba(0,212,255,0.4); font-family: var(--font-serif); flex-shrink: 0; }
.nav-username { font-size: 0.8rem; color: var(--white); max-width: 100px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nav-dropdown { position: absolute; top: calc(100% + 10px); right: 0; min-width: 170px; background: rgba(4,20,40,0.97); border: 1px solid rgba(0,212,255,0.18); border-radius: 14px; padding: 0.5rem; -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); box-shadow: 0 20px 60px rgba(0,0,0,0.5); z-index: 2000; display: none; }
.nav-user:hover .nav-dropdown, .nav-user.open .nav-dropdown { display: block; }
.nav-dropdown a, .nav-dropdown button { display: block; width: 100%; text-align: left; padding: 0.6rem 1rem; font-size: 0.82rem; color: rgba(232,244,255,0.6); text-decoration: none; background: transparent; border: none; cursor: pointer; font-family: var(--font-sans); border-radius: 8px; transition: all 0.2s; }
.nav-dropdown a:hover, .nav-dropdown button:hover { background: rgba(0,212,255,0.08); color: var(--cyan); }
.nav-dropdown hr { border: none; border-top: 1px solid rgba(0,212,255,0.1); margin: 0.4rem 0; }

.is-hidden { display: none !important; }

/* ── 4. SUBPAGE HERO & LAYOUT ── */
.subpage-hero {
  position: relative; padding: 10rem 1.5rem 5rem; text-align: center;
  background: radial-gradient(ellipse 80% 60% at 50% -10%, rgba(0,212,255,0.12) 0%, transparent 70%), var(--ocean-deep);
  border-bottom: 1px solid rgba(0,212,255,0.1); overflow: hidden;
}
.subpage-hero::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(circle at 50% 50%, rgba(0,212,255,0.03) 0%, transparent 60%);
}
.breadcrumb { font-size: 0.72rem; letter-spacing: 0.25em; text-transform: uppercase; color: var(--cyan); margin-bottom: 1rem; }
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--cyan); }
.subpage-title { font-family: var(--font-serif); font-size: clamp(2.2rem, 5vw, 4rem); font-weight: 900; margin-bottom: 1rem; }
.subpage-subtitle { font-size: clamp(0.95rem, 1.8vw, 1.2rem); color: var(--muted); max-width: 750px; margin: 0 auto; font-weight: 300; }

main.page-content {
  padding: 5rem 1.5rem 8rem; position: relative; z-index: 1;
}

/* ── 5. REUSABLE BUTTONS ── */
.btn-primary {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.9rem 2.2rem; background: linear-gradient(135deg, var(--cyan) 0%, #0099cc 100%);
  color: var(--ocean-deep); border: none; border-radius: var(--radius-pill);
  font-family: var(--font-sans); font-size: 0.82rem; font-weight: 700;
  letter-spacing: 0.15em; text-transform: uppercase; cursor: pointer;
  transition: all 0.3s ease; box-shadow: 0 4px 20px rgba(0, 212, 255, 0.25); text-align: center;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 35px rgba(0, 212, 255, 0.45); }
.btn-primary:disabled { opacity: 0.6; cursor: not-allowed; transform: none; box-shadow: none; }

.btn-secondary {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.85rem 2rem; background: transparent; color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.3); border-radius: var(--radius-pill);
  font-family: var(--font-sans); font-size: 0.82rem; font-weight: 500;
  letter-spacing: 0.15em; text-transform: uppercase; cursor: pointer;
  transition: all 0.3s ease; text-align: center;
}
.btn-secondary:hover { border-color: var(--cyan); color: var(--cyan); box-shadow: 0 0 20px rgba(0, 212, 255, 0.2); }

/* ── 6. CARDS & CONTAINERS ── */
.glass-card {
  background: var(--bg-card); border: 1px solid var(--border-cyan);
  border-radius: var(--radius-lg); padding: 2rem;
  -webkit-backdrop-filter: var(--backdrop-blur); backdrop-filter: var(--backdrop-blur);
  transition: all 0.3s ease;
}
.glass-card:hover { border-color: var(--border-cyan-hover); background: var(--bg-card-hover); box-shadow: var(--shadow-card); }

.container { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 1.5rem; }

/* ── 7. FOOTER ── */
.main-footer {
  background: var(--ocean-deep); border-top: 1px solid rgba(0,212,255,0.1);
  padding: 4rem 1.5rem 2rem; text-align: left; position: relative; z-index: 10;
}
.footer-content { display: grid; grid-template-columns: 1.5fr 2fr; gap: 3rem; margin-bottom: 3rem; }
.footer-brand .footer-logo { font-family: var(--font-serif); font-size: 1.8rem; font-style: italic; color: var(--cyan); margin-bottom: 0.5rem; }
.footer-brand .footer-tagline { color: var(--muted); font-size: 0.9rem; max-width: 320px; }
.footer-links-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.footer-col h4 { font-family: var(--font-sans); font-size: 0.78rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--cyan); margin-bottom: 1.2rem; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 0.6rem; }
.footer-col a { color: var(--muted); font-size: 0.88rem; text-decoration: none; transition: color 0.2s; }
.footer-col a:hover { color: var(--cyan); }
.footer-bottom { text-align: center; border-top: 1px solid rgba(0,212,255,0.06); padding-top: 2rem; color: var(--muted-soft); font-size: 0.8rem; }

/* ── 8. RESPONSIVE BREAKPOINTS ── */
@media (max-width: 1024px) {
  nav { padding: 1rem 2rem; }
  .nav-links { display: none; }
  .footer-content { grid-template-columns: 1fr; gap: 2rem; }
  .exp-detail-grid { grid-template-columns: 1fr; gap: 2rem; }
}

@media (max-width: 768px) {
  nav { padding: 0.75rem 1.25rem; }
  main.page-content { padding: 3rem 1rem 5rem; }
  .btn-primary, .btn-secondary { min-height: 44px; padding: 0.75rem 1.6rem; font-size: 0.78rem; }
}

@media (max-width: 600px) {
  nav { padding: 0.65rem 1rem; }
  .subpage-hero { padding: 5.2rem 1rem 2.2rem; }
  .subpage-title { font-size: clamp(1.75rem, 5.5vw, 2.5rem); margin-bottom: 0.5rem; }
  .subpage-subtitle { font-size: 0.88rem; margin-bottom: 0; }
  main.page-content { padding: 2.2rem 0.85rem 4rem; }
  .glass-card { padding: 1.2rem; }
  .exp-detail-grid { gap: 1.5rem; }
  .exp-info-card { padding: 1.2rem; border-radius: var(--radius-md); }
  .check-list { margin: 0.6rem 0 1.2rem; gap: 0.5rem; }
  .check-list li { font-size: 0.85rem; }
  .spec-detail-row { padding: 0.4rem 0; font-size: 0.8rem; }
  .main-footer { padding: 2.5rem 1rem 1.5rem; }
  .footer-content { gap: 1.5rem; margin-bottom: 1.5rem; }
  .footer-links-grid { grid-template-columns: 1fr; gap: 1.2rem; }
}

/* ── 9. ACCESSIBILITY & MOTION PREFERENCES ── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ── 10. UTILITY CLASSES & INLINE STYLE REPLACEMENTS ── */
.text-muted { color: var(--muted); }
.text-muted-body { color: var(--muted); font-size: 0.95rem; line-height: 1.7; }
.text-muted-sm { color: var(--muted); font-size: 0.9rem; }
.text-white { color: var(--white); }
.text-cyan { color: var(--cyan); }
.text-gold { color: var(--gold); }
.text-warning-orange { color: #ff8800; }
.text-center { text-align: center; }
.text-right { text-align: right; }

.mb-xs { margin-bottom: 0.3rem; }
.mb-sm { margin-bottom: 0.8rem; }
.mb-md { margin-bottom: 1rem; }
.mb-lg { margin-bottom: 1.5rem; }
.mb-xl { margin-bottom: 2rem; }
.mt-sm { margin-top: 0.5rem; }
.mt-md { margin-top: 1rem; }
.mt-lg { margin-top: 1.5rem; }
.mt-xl { margin-top: 2rem; }
.mt-2xl { margin-top: 2.5rem; }

.spec-detail-row {
  display: flex;
  justify-content: space-between;
  padding: 0.6rem 0;
  border-bottom: 1px solid rgba(0,212,255,0.08);
  font-size: 0.85rem;
}
.section-title-sm {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  margin-bottom: 1rem;
}
.section-title-md {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  margin-bottom: 1rem;
}
.section-title-lg {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  margin-bottom: 1rem;
}
.section-title-xl {
  font-family: var(--font-serif);
  font-size: 2rem;
  margin-bottom: 1rem;
}
.section-title-hero {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  color: var(--white);
  margin-bottom: 1rem;
}
.section-lead {
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.8;
  margin-bottom: 2rem;
}
.subtext-muted {
  font-size: 0.75rem;
  color: var(--muted);
  margin-bottom: 1.5rem;
}

.btn-full-wrap {
  width: 100%;
  margin-top: 1.8rem;
  text-align: center;
}
.btn-submit-full {
  width: 100%;
  margin-top: 1rem;
}
.btn-sm {
  padding: 0.6rem 1.2rem;
  font-size: 0.75rem;
}
.btn-auto-width {
  width: auto;
}
.btn-error-action {
  border: 1px solid var(--border-cyan);
  color: var(--cyan);
  padding: 0.8rem 1.6rem;
  border-radius: 50px;
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.stat-number-gold {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  color: var(--gold);
  font-weight: 700;
  margin-bottom: 0.2rem;
}
.stat-number-cyan {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  color: var(--cyan);
  font-weight: 700;
  margin-bottom: 0.2rem;
}

.error-title {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  color: var(--white);
  margin-bottom: 1rem;
}
.error-desc {
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.auth-header {
  text-align: center;
  margin-bottom: 2rem;
}
.auth-title {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  color: var(--white);
  margin-bottom: 0.4rem;
}
.auth-title-lg {
  font-family: var(--font-serif);
  font-size: 2rem;
  color: var(--white);
  margin-bottom: 0.4rem;
}
.auth-subtitle {
  font-size: 0.85rem;
  color: var(--muted);
}
.auth-footer {
  text-align: center;
  margin-top: 1.8rem;
  font-size: 0.85rem;
  color: var(--muted);
}

.link-cyan {
  color: var(--cyan);
  font-weight: 600;
  text-decoration: none;
}
.link-cyan-plain {
  color: var(--cyan);
  text-decoration: none;
}

.map-container {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(0,212,255,0.2);
  margin-top: 0.5rem;
}
.map-iframe {
  border: none;
  filter: hue-rotate(185deg) invert(0.88) saturate(0.75) brightness(0.9);
}

.cancellation-note {
  font-size: 0.72rem;
  color: var(--muted);
  text-align: center;
  margin-top: 1rem;
  line-height: 1.6;
}
.legend-note {
  margin-top: 1.5rem;
  font-size: 0.85rem;
}
.col-span-2 {
  grid-column: span 2;
}

.stat-card-lg {
  text-align: center;
  padding: 3rem 2rem;
}
.hero-stat-number-cyan {
  font-family: var(--font-serif);
  font-size: 3rem;
  color: var(--cyan);
  margin-bottom: 0.5rem;
}
.hero-stat-number-gold {
  font-family: var(--font-serif);
  font-size: 3rem;
  color: var(--gold);
  margin-bottom: 0.5rem;
}
.hero-stat-label {
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}
.hero-stat-label-mb {
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 2rem;
}
.divider-cyan-faint {
  border: none;
  border-top: 1px solid rgba(0,212,255,0.1);
  margin: 1.5rem 0;
}

.glass-card-center-lg {
  max-width: 900px;
  margin: 0 auto 4rem;
  text-align: center;
}
.glass-card-center-md {
  margin-bottom: 3rem;
  text-align: center;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}
.form-row-flex-between {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 0.8rem 0 1.5rem;
  font-size: 0.8rem;
}
.checkbox-label-muted {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--muted);
  cursor: pointer;
}
.profile-title-md {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  margin-bottom: 1.5rem;
}
.profile-title-sm {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  margin: 2.5rem 0 1rem;
}
.input-disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.cursor-default {
  cursor: default;
}
