/* ==========================================================================
   MAURITIUS TOURS - SINGLE-VIEWPORT COMING SOON EXPERIENCE
   Production Standalone CSS3 (cPanel / Apache / Nginx Static Hosting)
   ========================================================================== */

:root {
  --font-serif: "Cormorant Garamond", Georgia, serif;
  --font-sans: "Plus Jakarta Sans", system-ui, -apple-system, sans-serif;

  --color-bg: #03090e;
  --color-lagoon-900: #041b27;
  --color-cyan-400: #22d3ee;
  --color-cyan-300: #67e8f9;
  --color-cyan-200: #a5f3fc;
  --color-teal-500: #14b8a6;
  --color-stone-100: #f5f5f4;
  --color-stone-200: #e7e5e4;
  --color-stone-300: #d6d3d1;
  --color-stone-400: #a8a29e;
  --color-stone-500: #78716c;
}

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

html, body {
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  background-color: var(--color-bg);
  color: #ffffff;
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  user-select: none;
  -webkit-user-select: none;
}

/* Master Viewport Container */
.viewport-container {
  position: relative;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* ==========================================================================
   1. VISUAL VIEWPORT & AMBIENT ANIMATIONS
   ========================================================================== */
.visual-viewport {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.bg-layer {
  position: absolute;
  top: -5%;
  left: -5%;
  width: 110%;
  height: 110%;
  will-change: transform;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.bg-layer img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  will-change: filter;
}

/* Slow Ambient Camera Drift */
@keyframes slowDrift {
  0% { transform: scale(1.06) translate(0px, 0px); }
  50% { transform: scale(1.10) translate(-8px, -6px); }
  100% { transform: scale(1.06) translate(0px, 0px); }
}

.animate-ambient-drift {
  animation: slowDrift 28s ease-in-out infinite alternate;
}

/* Oceanic Pulse Simulation */
@keyframes oceanPulse {
  0%, 100% { opacity: 0.12; transform: scale(1); }
  50% { opacity: 0.24; transform: scale(1.04); }
}

.ocean-glow-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 50%, rgba(6, 182, 212, 0.15) 0%, transparent 65%);
  mix-blend-mode: screen;
  opacity: 0.7;
  will-change: transform, opacity;
}

.animate-ocean-pulse {
  animation: oceanPulse 12s ease-in-out infinite;
}

/* Tropical Morning Mist Overlay */
.mist-container {
  position: absolute;
  inset: 0;
  overflow: hidden;
  mix-blend-mode: screen;
  opacity: 0.85;
}

.mist-layer {
  position: absolute;
  will-change: transform, opacity;
}

.mist-dawn {
  inset: -25%;
  background: radial-gradient(
    ellipse 75% 65% at 28% 36%,
    rgba(254, 240, 138, 0.22) 0%,
    rgba(224, 242, 254, 0.15) 30%,
    rgba(34, 211, 238, 0.08) 55%,
    rgba(14, 165, 233, 0.03) 72%,
    transparent 85%
  );
}

.mist-lagoon {
  inset: -20%;
  background: radial-gradient(
    ellipse 85% 60% at 68% 52%,
    rgba(125, 211, 252, 0.18) 0%,
    rgba(45, 212, 191, 0.10) 38%,
    rgba(6, 182, 212, 0.04) 62%,
    transparent 80%
  );
}

@keyframes tropicalMistExpand {
  0% {
    transform: scale(0.9) translate(-3%, 2%);
    opacity: 0.25;
    filter: blur(35px);
  }
  50% {
    transform: scale(1.24) translate(3%, -2%);
    opacity: 0.48;
    filter: blur(52px);
  }
  100% {
    transform: scale(1.42) translate(5%, -4%);
    opacity: 0.32;
    filter: blur(65px);
  }
}

@keyframes mistSecondaryDrift {
  0% {
    transform: scale(1.18) translate(4%, -3%) rotate(0deg);
    opacity: 0.18;
  }
  50% {
    transform: scale(0.96) translate(-2%, 3%) rotate(2deg);
    opacity: 0.36;
  }
  100% {
    transform: scale(1.18) translate(4%, -3%) rotate(0deg);
  }
}

.animate-morning-mist {
  animation: tropicalMistExpand 24s cubic-bezier(0.4, 0, 0.2, 1) infinite alternate;
}

.animate-mist-secondary {
  animation: mistSecondaryDrift 32s ease-in-out infinite alternate;
}

/* Scrim & Vignette */
.scrim-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(2, 11, 18, 0.92) 0%, rgba(3, 19, 30, 0.50) 50%, rgba(2, 9, 16, 0.75) 100%);
}

.vignette-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, transparent 30%, rgba(2, 8, 13, 0.85) 100%);
}

.grain-overlay {
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.035'/%3E%3C/svg%3E");
  opacity: 0.45;
}

/* ==========================================================================
   2. TOP HORIZON (HEADER)
   ========================================================================== */
.top-horizon {
  position: relative;
  z-index: 10;
  width: 100%;
  padding: 1.5rem 2rem 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand-block {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-stone-100);
  font-weight: 400;
}

.brand-accent {
  color: var(--color-cyan-400);
  font-weight: 300;
}

.brand-subtitle {
  font-family: var(--font-sans);
  font-size: 0.68rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--color-stone-400);
  font-weight: 300;
  margin-top: 0.2rem;
}

.top-meta {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.coordinates-pill {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-stone-300);
}

.meta-dot {
  color: var(--color-stone-500);
  margin: 0 0.15rem;
}

.meta-muted {
  color: var(--color-stone-400);
}

.icon {
  width: 0.9rem;
  height: 0.9rem;
  stroke: var(--color-cyan-400);
}

/* Audio Toggle Button */
.audio-toggle-btn {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.45rem 0.85rem;
  border-radius: 9999px;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--color-stone-300);
  font-family: var(--font-sans);
  font-size: 0.68rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  cursor: pointer;
  transition: all 0.3s ease;
}

.audio-toggle-btn:hover {
  background: rgba(0, 0, 0, 0.65);
  border-color: rgba(34, 211, 238, 0.4);
  color: #ffffff;
}

.audio-toggle-btn.is-active {
  border-color: rgba(34, 211, 238, 0.6);
  color: #ffffff;
}

.audio-bars {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  width: 14px;
  height: 12px;
}

.audio-bars .bar {
  width: 2px;
  background: var(--color-stone-500);
  border-radius: 9999px;
  opacity: 0.4;
  transition: all 0.3s ease;
}

.audio-bars .bar-1 { height: 35%; }
.audio-bars .bar-2 { height: 60%; }
.audio-bars .bar-3 { height: 40%; }

.audio-toggle-btn.is-active .audio-bars .bar {
  background: var(--color-cyan-400);
  opacity: 1;
  animation: pulseBar 1.2s infinite ease-in-out alternate;
}

.audio-toggle-btn.is-active .audio-bars .bar-2 {
  animation-duration: 0.8s;
  animation-delay: 0.2s;
}

.audio-toggle-btn.is-active .audio-bars .bar-3 {
  animation-duration: 1.4s;
  animation-delay: 0.4s;
}

@keyframes pulseBar {
  0% { height: 25%; }
  100% { height: 100%; }
}

.hidden {
  display: none !important;
}

/* ==========================================================================
   3. CENTRAL FOCUS (HERO ANNOUNCEMENT)
   ========================================================================== */
.center-stage {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 82rem;
  margin: auto;
  padding: 0 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.announcement-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}

.kicker-wrapper {
  overflow: hidden;
  margin-bottom: 0.75rem;
}

.editorial-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  font-weight: 500;
  color: rgba(103, 232, 249, 0.95);
}

.icon-sparkle {
  width: 0.75rem;
  height: 0.75rem;
  stroke: var(--color-cyan-400);
}

/* Primary Headline with Essential Descender Protection */
.primary-headline {
  font-family: var(--font-serif);
  color: #ffffff;
  letter-spacing: -0.015em;
  line-height: 1.12;
  font-weight: 400;
  width: 100%;
}

.headline-line-mask {
  overflow: hidden;
  padding-top: 4px;
  /* Crucial: generous bottom padding prevents cutting of descender on 'g' */
  padding-bottom: 24px;
  margin-bottom: -18px;
}

.headline-line-mask.line-mask-2 {
  padding-bottom: 28px;
  margin-bottom: -20px;
}

.headline-text {
  display: block;
  font-size: clamp(2.35rem, 6.2vw, 6.25rem);
  will-change: transform, opacity;
}

.line-italic {
  font-style: italic;
  font-weight: 300;
  color: var(--color-stone-200);
}

.line-roman {
  font-style: normal;
  font-weight: 400;
  color: #ffffff;
  text-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
}

/* Secondary Brand Attribution */
.attribution-container {
  margin-top: 1.75rem;
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.attribution-hairline {
  width: 3rem;
  height: 1px;
  background-color: rgba(34, 211, 238, 0.5);
}

.brand-attribution {
  font-family: var(--font-sans);
  font-size: clamp(0.72rem, 1.1vw, 0.88rem);
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--color-cyan-200);
  font-weight: 500;
}

/* ==========================================================================
   4. BOTTOM HORIZON (FOOTER)
   ========================================================================== */
.bottom-horizon {
  position: relative;
  z-index: 10;
  width: 100%;
  padding: 0.85rem 2rem 1.5rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-stone-400);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.accent-text {
  color: var(--color-cyan-400);
  font-weight: 500;
}

/* ==========================================================================
   5. RESPONSIVE BREAKPOINTS (Mobile & Small Viewports)
   ========================================================================== */
@media (max-width: 900px) {
  .footer-center {
    display: none;
  }
}

@media (max-width: 768px) {
  .top-horizon {
    padding: 1.25rem 1.25rem 0 1.25rem;
  }

  .coordinates-pill {
    display: none;
  }

  .center-stage {
    padding: 0 1.25rem;
  }

  .announcement-card {
    align-items: center;
    text-align: center;
  }

  .attribution-container {
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 1.25rem;
  }

  .attribution-hairline {
    display: none;
  }

  .bottom-horizon {
    padding: 0.75rem 1.25rem 1.25rem 1.25rem;
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .brand-title {
    font-size: 1.15rem;
  }

  .brand-subtitle {
    font-size: 0.6rem;
    letter-spacing: 0.18em;
  }

  .headline-line-mask {
    padding-bottom: 18px;
    margin-bottom: -12px;
  }

  .headline-line-mask.line-mask-2 {
    padding-bottom: 20px;
    margin-bottom: -14px;
  }

  .brand-attribution {
    font-size: 0.65rem;
    letter-spacing: 0.18em;
  }
}

/* ==========================================================================
   6. REDUCED MOTION PREFERENCES
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  .animate-ambient-drift,
  .animate-ocean-pulse,
  .animate-morning-mist,
  .animate-mist-secondary {
    animation: none !important;
    transform: none !important;
  }
  
  .bg-layer {
    transition: none !important;
  }
}
