/* ═══════════════════════════════════════════════════════════════
   SIAM ESCAPES — Luxury Thailand Travel
   Palette: deep ocean navy, turquoise, warm sand, coral
   ═══════════════════════════════════════════════════════════════ */

/* ── TOKENS ─────────────────────────────────────────────────── */
:root {
  --color-bg:         #020e16;
  --color-turquoise:  #22d3ee;
  --color-teal:       #0891b2;
  --color-sand:       #f4c167;
  --color-coral:      #f97316;
  --color-white:      #f5f4f0;
  --color-muted:      rgba(245, 244, 240, 0.55);

  --glass-bg:         rgba(2, 20, 30, 0.72);
  --glass-border:     rgba(34, 211, 238, 0.18);
  --glass-blur:       18px;

  --font-display:     'Cormorant Garamond', Georgia, serif;
  --font-body:        'Inter', system-ui, sans-serif;

  --nav-height:       68px;
  --progress-h:       3px;

  --ease-out-expo:    cubic-bezier(0.16, 1, 0.3, 1);
}

/* ── RESET / BASE ────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  background: var(--color-bg);
  color: var(--color-white);
  font-family: var(--font-body);
  font-weight: 300;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img, video { display: block; max-width: 100%; }

/* ── NAV ─────────────────────────────────────────────────────── */
.site-nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-inline: clamp(1.25rem, 4vw, 3rem);

  background: linear-gradient(to bottom, rgba(2, 14, 22, 0.92) 0%, transparent 100%);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.nav-logo {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.2rem;
  letter-spacing: 0.22em;
  color: var(--color-sand);
  text-transform: uppercase;
  transition: opacity 0.25s;
}
.nav-logo:hover { opacity: 0.75; }

.nav-links {
  display: flex;
  gap: clamp(1rem, 3vw, 2.25rem);
  align-items: center;
}

.nav-links a {
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-muted);
  transition: color 0.25s;
}
.nav-links a:hover { color: var(--color-white); }

.nav-cta {
  padding: 0.45rem 1.15rem;
  border: 1px solid var(--color-turquoise);
  border-radius: 2px;
  color: var(--color-turquoise) !important;
  transition: background 0.25s, color 0.25s !important;
}
.nav-cta:hover {
  background: var(--color-turquoise);
  color: var(--color-bg) !important;
}

/* ── VIDEO BACKGROUND ────────────────────────────────────────── */
.video-wrapper {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

#bgVideo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  will-change: transform;
}

.video-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 60%, rgba(2, 14, 22, 0.15) 0%, rgba(2, 14, 22, 0.62) 80%),
    linear-gradient(to bottom, rgba(2, 14, 22, 0.65) 0%, rgba(2, 14, 22, 0.18) 35%, rgba(2, 14, 22, 0.18) 65%, rgba(2, 14, 22, 0.80) 100%);
}

/* ── VIDEO LOADER ────────────────────────────────────────────── */
.video-loader {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-bg);
  transition: opacity 0.8s var(--ease-out-expo), visibility 0.8s;
}

.video-loader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader-bar {
  width: 120px;
  height: 2px;
  background: rgba(244, 193, 103, 0.25);
  border-radius: 2px;
  overflow: hidden;
  position: relative;
}

.loader-bar::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--color-sand);
  transform: translateX(-100%);
  animation: loader-sweep 1.4s ease-in-out infinite;
}

@keyframes loader-sweep {
  0%   { transform: translateX(-100%); }
  50%  { transform: translateX(0%); }
  100% { transform: translateX(100%); }
}

/* ── SCROLL CONTAINER ────────────────────────────────────────── */
.scroll-container {
  position: relative;
  z-index: 10;
}

/* ── SECTIONS : SHARED ───────────────────────────────────────── */
.section {
  position: relative;
  display: flex;
  align-items: center;
  padding-inline: clamp(1.25rem, 6vw, 6rem);
  min-height: 100svh;
}

.section--hero { align-items: flex-end; padding-bottom: 8vh; }

.section--right  { justify-content: flex-end; }
.section--center { justify-content: center;   }

/* ── HERO ────────────────────────────────────────────────────── */
.hero-content {
  max-width: 720px;
}

.eyebrow {
  font-family: var(--font-body);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--color-sand);
  margin-bottom: 1.2rem;
  opacity: 0;
  animation: fade-up 0.9s 0.35s var(--ease-out-expo) forwards;
}

.hero-heading {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(3.2rem, 9vw, 8.5rem);
  line-height: 1.02;
  letter-spacing: -0.01em;
  margin-bottom: 1.5rem;
  opacity: 0;
  animation: fade-up 0.9s 0.55s var(--ease-out-expo) forwards;
}

.hero-heading em { color: var(--color-turquoise); font-style: italic; }

.hero-subtext {
  font-size: clamp(0.9rem, 1.6vw, 1.1rem);
  line-height: 1.75;
  color: var(--color-muted);
  max-width: 520px;
  margin-bottom: 2.5rem;
  opacity: 0;
  animation: fade-up 0.9s 0.75s var(--ease-out-expo) forwards;
}

/* ── BUTTONS ─────────────────────────────────────────────────── */
.cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  opacity: 0;
  animation: fade-up 0.9s 0.95s var(--ease-out-expo) forwards;
}

.btn {
  display: inline-block;
  padding: 0.85rem 2.2rem;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border-radius: 2px;
  transition: background 0.25s, color 0.25s, border-color 0.25s, transform 0.2s;
  cursor: pointer;
}

.btn:active { transform: scale(0.97); }

.btn--primary {
  background: var(--color-turquoise);
  color: var(--color-bg);
  border: 1px solid var(--color-turquoise);
}
.btn--primary:hover {
  background: var(--color-sand);
  border-color: var(--color-sand);
  color: var(--color-bg);
}

.btn--secondary {
  background: transparent;
  color: var(--color-white);
  border: 1px solid rgba(245, 244, 240, 0.35);
}
.btn--secondary:hover {
  border-color: var(--color-white);
  background: rgba(245, 244, 240, 0.07);
}

/* ── HERO STATS ──────────────────────────────────────────────── */
.hero-stats {
  position: absolute;
  bottom: clamp(3rem, 6vh, 5rem);
  right: clamp(1.25rem, 6vw, 6rem);
  display: flex;
  align-items: center;
  gap: 2rem;
  opacity: 0;
  animation: fade-up 0.9s 1.2s var(--ease-out-expo) forwards;
}

.stat { text-align: right; }

.stat-number {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 300;
  color: var(--color-sand);
  line-height: 1;
}

.stat-label {
  display: block;
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-muted);
  margin-top: 0.3rem;
}

.stat-divider {
  width: 1px;
  height: 40px;
  background: rgba(244, 193, 103, 0.28);
}

/* ── SCROLL INDICATOR ────────────────────────────────────────── */
.scroll-indicator {
  position: absolute;
  left: 50%;
  bottom: 2.5rem;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  opacity: 0;
  animation: fade-up 0.9s 1.5s var(--ease-out-expo) forwards;
  transition: opacity 0.5s;
}

.scroll-label {
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-muted);
}

.scroll-line {
  width: 1px;
  height: 44px;
  background: linear-gradient(to bottom, var(--color-turquoise), transparent);
  animation: scroll-line-pulse 2s ease-in-out infinite;
}

@keyframes scroll-line-pulse {
  0%, 100% { opacity: 0.4; transform: scaleY(0.7); transform-origin: top; }
  50%       { opacity: 1;   transform: scaleY(1);   }
}

/* ── GLASS PANELS ────────────────────────────────────────────── */
.glass-panel {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 4px;
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  padding: clamp(2rem, 5vw, 4rem);
  max-width: 560px;
  width: 100%;
}

.glass-panel--wide { max-width: 720px; }

/* ── SECTION TEXT ────────────────────────────────────────────── */
.section-label {
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--color-turquoise);
  margin-bottom: 1.1rem;
}

.section-heading {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(2.2rem, 5.5vw, 4.5rem);
  line-height: 1.08;
  margin-bottom: 1.5rem;
}

.section-heading em { color: var(--color-sand); font-style: italic; }

.section-body {
  font-size: clamp(0.88rem, 1.4vw, 1rem);
  line-height: 1.8;
  color: var(--color-muted);
}

/* ── TAGS ────────────────────────────────────────────────────── */
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.75rem;
}

.tag {
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.35rem 0.9rem;
  border: 1px solid var(--glass-border);
  border-radius: 2px;
  color: var(--color-muted);
  background: rgba(34, 211, 238, 0.07);
  transition: border-color 0.25s, color 0.25s;
}

.tag:hover {
  border-color: var(--color-turquoise);
  color: var(--color-turquoise);
}

/* ── FEATURE LIST ────────────────────────────────────────────── */
.feature-list { margin-top: 1.75rem; display: flex; flex-direction: column; gap: 0.9rem; }

.feature-item {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-size: clamp(0.85rem, 1.3vw, 0.95rem);
  color: var(--color-muted);
}

.feature-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-coral);
  flex-shrink: 0;
}

/* ── PULL QUOTE ──────────────────────────────────────────────── */
.pull-quote {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(1.5rem, 3.5vw, 2.6rem);
  line-height: 1.35;
  color: var(--color-white);
  margin-bottom: 0.75rem;
}

.quote-attr {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  color: var(--color-sand);
  text-transform: uppercase;
}

/* ── ANIMATE-IN ──────────────────────────────────────────────── */
.animate-in {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.85s var(--ease-out-expo), transform 0.85s var(--ease-out-expo);
}

.animate-in.visible {
  opacity: 1;
  transform: none;
}

/* ── PROGRESS BAR ────────────────────────────────────────────── */
.progress-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  height: var(--progress-h);
  width: 0%;
  background: linear-gradient(to right, var(--color-teal), var(--color-turquoise), var(--color-sand));
  z-index: 200;
  border-radius: 0 2px 0 0;
  transition: opacity 0.3s;
}

/* ── FOOTER ──────────────────────────────────────────────────── */
.site-footer {
  position: relative;
  z-index: 10;
  background: rgba(2, 10, 18, 0.96);
  margin-top: 0;
  padding: clamp(3rem, 8vh, 6rem) clamp(1.25rem, 6vw, 6rem) 2.5rem;
  border-top: 1px solid var(--glass-border);
}

.footer-brand {
  font-family: var(--font-display);
  font-size: 1.9rem;
  font-weight: 300;
  letter-spacing: 0.2em;
  color: var(--color-sand);
  margin-bottom: 0.4rem;
}

.footer-tagline {
  font-size: 0.82rem;
  color: var(--color-muted);
  letter-spacing: 0.06em;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--glass-border);
  margin-bottom: 2.5rem;
}

.footer-mid {
  display: flex;
  flex-wrap: wrap;
  gap: 2.5rem 4rem;
  margin-bottom: 3rem;
}

.footer-col-label {
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-turquoise);
  margin-bottom: 1rem;
}

.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer-nav a {
  font-size: 0.88rem;
  color: var(--color-muted);
  transition: color 0.25s;
}
.footer-nav a:hover { color: var(--color-white); }

.footer-location {
  font-size: 0.88rem;
  color: var(--color-muted);
  margin-bottom: 0.35rem;
}

.footer-availability {
  font-size: 0.78rem;
  color: var(--color-coral);
  letter-spacing: 0.05em;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--glass-border);
  padding-top: 1.75rem;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.footer-copy {
  font-size: 0.75rem;
  color: rgba(245, 244, 240, 0.35);
  letter-spacing: 0.06em;
}

.footer-back-top {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-muted);
  transition: color 0.25s;
}
.footer-back-top:hover { color: var(--color-turquoise); }

/* ── FADE-UP KEYFRAMES ───────────────────────────────────────── */
@keyframes fade-up {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: none; }
}

/* ── RESPONSIVE ──────────────────────────────────────────────── */
@media (max-width: 768px) {
  .hero-stats { display: none; }
  .site-nav .nav-links { gap: 0.85rem; }
  .section--right { justify-content: flex-start; }
  .section--hero { padding-bottom: 10vh; }
}

@media (max-width: 520px) {
  .nav-links li:not(:last-child) { display: none; }
  .cta-group { flex-direction: column; }
  .btn { text-align: center; }
}
