/* ============================================================================
   INDJEE HOLIDAYS — CORE STYLESHEET
   ============================================================================
   Organized in sections:
   1. Design tokens (CSS custom properties — EDIT COLORS HERE)
   2. Base / resets / typography
   3. Layout utilities (section spacing, containers)
   4. Components: nav, buttons, boarding-pass card, footer, forms, badges
   5. Bonus features: cursor, loading screen, back-to-top, whatsapp, cookies
   6. Dark mode overrides
   7. Accessibility & responsive tune-ups
   ============================================================================ */

/* --------------------------------------------------------------------------
   1. DESIGN TOKENS — the entire palette lives here.
      Also mirrored in js/tailwind-config.js for Tailwind utility classes.
-------------------------------------------------------------------------- */
:root {
  /* Brand colors */
  --color-royal: #1B3B8C;
  --color-royal-light: #2F52B8;
  --color-royal-dark: #12285E;
  --color-gold: #D9A94E;
  --color-gold-light: #E8C87A;
  --color-gold-dark: #B8863A;
  --color-navy: #0A1330;
  --color-off-white: #F7F5EF;
  --color-white: #FFFFFF;
  --color-gray: #8891A3;
  --color-gray-light: #E4E1D8;

  /* Semantic tokens (swapped in dark mode) */
  --bg-page: var(--color-off-white);
  --bg-surface: var(--color-white);
  --text-primary: var(--color-navy);
  --text-muted: #5B6478;
  --border-soft: rgba(10, 19, 48, 0.08);

  /* Motion */
  --ease-premium: cubic-bezier(0.16, 1, 0.3, 1);
  --dur-fast: 0.25s;
  --dur-med: 0.55s;
  --dur-slow: 0.9s;
}

.dark {
  --bg-page: #070C1E;
  --bg-surface: #0F1830;
  --text-primary: #F5F3EC;
  --text-muted: #9AA3B8;
  --border-soft: rgba(245, 243, 236, 0.1);
}

/* --------------------------------------------------------------------------
   2. BASE / RESETS / TYPOGRAPHY
-------------------------------------------------------------------------- */
* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  background: var(--bg-page);
  color: var(--text-primary);
  font-family: "Manrope", sans-serif;
  transition: background var(--dur-med) var(--ease-premium), color var(--dur-med) var(--ease-premium);
  overflow-x: hidden;
}

h1, h2, h3, h4, .font-display {
  font-family: "Fraunces", serif;
  font-optical-sizing: auto;
  letter-spacing: -0.01em;
}

/* Eyebrow / coordinate label used throughout as a structural device */
.eyebrow {
  font-family: "Manrope", sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--color-gold-dark);
}
.dark .eyebrow { color: var(--color-gold-light); }

.text-muted { color: var(--text-muted); }

::selection { background: var(--color-gold); color: var(--color-navy); }

/* Visible keyboard focus everywhere — accessibility floor */
a:focus-visible, button:focus-visible, input:focus-visible,
select:focus-visible, textarea:focus-visible, [tabindex]:focus-visible {
  outline: 2px solid var(--color-gold);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Skip link for keyboard / screen reader users */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: var(--color-navy);
  color: var(--color-off-white);
  padding: 0.85rem 1.25rem;
  border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* --------------------------------------------------------------------------
   3. LAYOUT UTILITIES
-------------------------------------------------------------------------- */
.section-pad { padding-top: clamp(4rem, 8vw, 7.5rem); padding-bottom: clamp(4rem, 8vw, 7.5rem); }
.container-indjee { width: 100%; max-width: 1360px; margin-inline: auto; padding-inline: clamp(1.25rem, 4vw, 3rem); }

.divider-gold {
  width: 64px; height: 3px; border-radius: 2px;
  background: linear-gradient(90deg, var(--color-gold), var(--color-gold-light));
}

/* Perforated divider — travel/ticket vernacular, used inside boarding-pass cards */
.perforation {
  position: relative;
  border-top: 2px dashed var(--border-soft);
}
.perforation::before, .perforation::after {
  content: ""; position: absolute; top: -9px;
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--bg-page);
  border: 1px solid var(--border-soft);
}
.perforation::before { left: -9px; }
.perforation::after { right: -9px; }

/* --------------------------------------------------------------------------
   4. COMPONENTS
-------------------------------------------------------------------------- */

/* --- Navigation --- */
#site-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  transition: background var(--dur-med) var(--ease-premium), box-shadow var(--dur-med) var(--ease-premium),
              padding var(--dur-med) var(--ease-premium), border-color var(--dur-med) var(--ease-premium);
  padding-block: 1.5rem;
  border-bottom: 1px solid transparent;
}
#site-nav.nav-solid {
  background: rgba(247, 245, 239, 0.86);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  box-shadow: 0 8px 30px -12px rgba(10, 19, 48, 0.12);
  padding-block: 0.9rem;
  border-bottom-color: var(--border-soft);
}
.dark #site-nav.nav-solid { background: rgba(7, 12, 30, 0.82); }

#site-nav .nav-link { color: var(--nav-link-color, var(--color-off-white)); }
#site-nav.nav-solid .nav-link, #site-nav.nav-page .nav-link { --nav-link-color: var(--text-primary); }
#site-nav .nav-logo { color: var(--nav-link-color, var(--color-off-white)); }
#site-nav.nav-solid .nav-logo, #site-nav.nav-page .nav-logo { --nav-link-color: var(--text-primary); }

/* animated underline for nav links */
.link-underline { position: relative; display: inline-block; }
.link-underline::after {
  content: ""; position: absolute; left: 0; bottom: -4px;
  width: 0; height: 2px; background: var(--color-gold);
  transition: width var(--dur-fast) var(--ease-premium);
}
.link-underline:hover::after, .link-underline.active::after { width: 100%; }

/* mobile menu panel */
#mobile-menu {
  position: fixed; inset: 0; z-index: 99;
  background: var(--color-navy);
  transform: translateX(100%);
  transition: transform var(--dur-med) var(--ease-premium);
}
#mobile-menu.open { transform: translateX(0); }

/* --- Buttons — every button should feel alive --- */
.btn {
  position: relative; overflow: hidden; isolation: isolate;
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem;
  font-weight: 600; font-size: 0.9rem; letter-spacing: 0.02em;
  padding: 0.95rem 2.1rem; border-radius: 999px;
  transition: transform var(--dur-fast) var(--ease-premium), box-shadow var(--dur-fast) var(--ease-premium), background var(--dur-fast) var(--ease-premium);
}
.btn:active { transform: scale(0.97); }
.btn-primary { background: var(--color-gold); color: var(--color-navy); }
.btn-primary:hover { box-shadow: 0 14px 32px -10px rgba(217, 169, 78, 0.55); transform: translateY(-2px); }
.btn-outline { border: 1.5px solid currentColor; }
.btn-outline:hover { background: rgba(255,255,255,0.1); transform: translateY(-2px); }
.btn-dark { background: var(--color-navy); color: var(--color-off-white); }
.btn-dark:hover { box-shadow: 0 14px 32px -10px rgba(10,19,48,0.5); transform: translateY(-2px); }

/* ripple effect */
.btn .ripple {
  position: absolute; border-radius: 50%; transform: scale(0);
  animation: ripple-anim 0.65s var(--ease-premium);
  background: rgba(255,255,255,0.5); pointer-events: none;
}
@keyframes ripple-anim { to { transform: scale(3.2); opacity: 0; } }

/* --- Cards --- */
.card-lift { transition: transform var(--dur-fast) var(--ease-premium), box-shadow var(--dur-fast) var(--ease-premium); }
.card-lift:hover { transform: translateY(-8px); box-shadow: 0 30px 60px -22px rgba(10,19,48,0.28); }

.img-zoom { overflow: hidden; }
.img-zoom img { transition: transform var(--dur-slow) var(--ease-premium); }
.img-zoom:hover img { transform: scale(1.08); }

/* --- Boarding-pass / luggage-tag package card — brand signature device --- */
.ticket-card {
  background: var(--bg-surface);
  border-radius: 22px;
  box-shadow: 0 12px 32px -14px rgba(10,19,48,0.18);
  border: 1px solid var(--border-soft);
  overflow: visible;
}
.ticket-card .ticket-code {
  font-family: "Fraunces", serif; font-variant-numeric: tabular-nums;
  letter-spacing: 0.08em;
}

/* --- Glassmorphism (subtle, used sparingly) --- */
.glass {
  background: rgba(255,255,255,0.10);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border: 1px solid rgba(255,255,255,0.18);
}
.glass-solid {
  background: rgba(255,255,255,0.65);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border: 1px solid rgba(255,255,255,0.5);
}
.dark .glass-solid { background: rgba(15,24,48,0.6); border-color: rgba(255,255,255,0.08); }

/* --- Forms --- */
.field-label { font-size: 0.82rem; font-weight: 600; color: var(--text-primary); margin-bottom: 0.4rem; display: block; }
.field-input, .field-select, .field-textarea {
  width: 100%; background: var(--bg-surface); color: var(--text-primary);
  border: 1.5px solid var(--border-soft); border-radius: 12px;
  padding: 0.85rem 1rem; font-family: inherit; font-size: 0.95rem;
  transition: border-color var(--dur-fast) var(--ease-premium), box-shadow var(--dur-fast) var(--ease-premium);
}
.field-input:focus, .field-select:focus, .field-textarea:focus {
  border-color: var(--color-royal-light); box-shadow: 0 0 0 4px rgba(47,82,184,0.14); outline: none;
}
.field-input.field-error, .field-select.field-error, .field-textarea.field-error {
  border-color: #C24A4A; box-shadow: 0 0 0 4px rgba(194,74,74,0.12);
}
.field-error-msg { color: #C24A4A; font-size: 0.8rem; margin-top: 0.35rem; display: none; }
.field-error-msg.show { display: block; }

/* Step / traveler counter */
.stepper-btn {
  width: 34px; height: 34px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
  border: 1.5px solid var(--border-soft); transition: all var(--dur-fast) var(--ease-premium);
}
.stepper-btn:hover { background: var(--color-royal); color: white; border-color: var(--color-royal); }

/* --- FAQ Accordion --- */
.faq-item { border-bottom: 1px solid var(--border-soft); }
.faq-trigger { width: 100%; text-align: left; padding: 1.4rem 0; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.faq-icon { transition: transform var(--dur-fast) var(--ease-premium); flex-shrink: 0; }
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-panel { max-height: 0; overflow: hidden; transition: max-height var(--dur-med) var(--ease-premium); }
.faq-item.open .faq-panel { max-height: 400px; }

/* --- Rating stars --- */
.stars { color: var(--color-gold); letter-spacing: 0.1em; }

/* --- Footer --- */
footer a { transition: color var(--dur-fast) var(--ease-premium), opacity var(--dur-fast) var(--ease-premium); }
.social-icon {
  width: 42px; height: 42px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid rgba(247,245,239,0.2);
  transition: all var(--dur-fast) var(--ease-premium);
}
.social-icon:hover { background: var(--color-gold); border-color: var(--color-gold); color: var(--color-navy); transform: translateY(-3px); }

/* --------------------------------------------------------------------------
   5. BONUS FEATURES
-------------------------------------------------------------------------- */

/* Loading screen */
#loading-screen {
  position: fixed; inset: 0; z-index: 999;
  background: var(--color-navy);
  display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 1rem;
  transition: opacity 0.6s var(--ease-premium), visibility 0.6s var(--ease-premium);
}
#loading-screen.hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.loader-mark { font-family: "Fraunces", serif; font-size: 2.2rem; color: var(--color-off-white); letter-spacing: 0.05em; }
.loader-bar { width: 180px; height: 2px; background: rgba(247,245,239,0.15); overflow: hidden; border-radius: 2px; }
.loader-bar::after {
  content: ""; display: block; width: 40%; height: 100%; background: var(--color-gold);
  animation: loader-sweep 1.1s ease-in-out infinite;
}
@keyframes loader-sweep { 0% { transform: translateX(-100%); } 100% { transform: translateX(350%); } }

/* Scroll progress bar */
#scroll-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0%;
  background: linear-gradient(90deg, var(--color-royal), var(--color-gold));
  z-index: 101; transition: width 0.1s linear;
}

/* Back to top */
#back-to-top {
  position: fixed; right: 1.5rem; bottom: 1.5rem; z-index: 60;
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--color-navy); color: var(--color-off-white);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 12px 24px -8px rgba(10,19,48,0.4);
  opacity: 0; visibility: hidden; transform: translateY(12px);
  transition: all var(--dur-fast) var(--ease-premium);
}
#back-to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
#back-to-top:hover { background: var(--color-gold); color: var(--color-navy); }

/* Floating WhatsApp button */
#whatsapp-float {
  position: fixed; left: 1.5rem; bottom: 1.5rem; z-index: 60;
  width: 54px; height: 54px; border-radius: 50%;
  background: #25D366; color: white;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 12px 24px -8px rgba(37,211,102,0.5);
  animation: float-y 3s ease-in-out infinite;
}
@keyframes float-y { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

/* Cookie consent banner */
#cookie-banner {
  position: fixed; left: 1rem; right: 1rem; bottom: 1rem; z-index: 90;
  max-width: 620px; margin-inline: auto;
  transform: translateY(140%); transition: transform var(--dur-med) var(--ease-premium);
}
#cookie-banner.show { transform: translateY(0); }

/* Custom cursor — desktop only */
.custom-cursor {
  position: fixed; top: 0; left: 0; z-index: 200; pointer-events: none;
  width: 14px; height: 14px; border-radius: 50%; background: var(--color-gold);
  transform: translate(-50%, -50%); mix-blend-mode: difference;
  transition: width 0.2s var(--ease-premium), height 0.2s var(--ease-premium), opacity 0.2s;
  opacity: 0;
}
.custom-cursor.active { opacity: 1; }
.custom-cursor.grow { width: 46px; height: 46px; background: rgba(217,169,78,0.5); }
@media (hover: none), (pointer: coarse) { .custom-cursor { display: none !important; } }

/* Dark mode toggle */
.theme-toggle {
  width: 52px; height: 28px; border-radius: 999px; position: relative;
  background: var(--border-soft); transition: background var(--dur-fast);
  border: 1px solid var(--border-soft);
}
.theme-toggle .knob {
  position: absolute; top: 2px; left: 2px; width: 22px; height: 22px; border-radius: 50%;
  background: var(--color-gold); transition: transform var(--dur-fast) var(--ease-premium);
}
.dark .theme-toggle .knob { transform: translateX(24px); }

/* --------------------------------------------------------------------------
   6. IMAGE REVEAL MASK (used on hero + section image reveals)
-------------------------------------------------------------------------- */
.reveal-mask { position: relative; overflow: hidden; }
.reveal-mask::after {
  content: ""; position: absolute; inset: 0; background: var(--color-navy);
  transform-origin: right; transform: scaleX(0);
  animation: mask-wipe 1.1s var(--ease-premium) forwards;
  animation-delay: 0.15s;
}
@keyframes mask-wipe {
  0% { transform: scaleX(1); transform-origin: left; }
  50% { transform: scaleX(0); transform-origin: left; }
  50.001% { transform: scaleX(0); transform-origin: right; }
  100% { transform: scaleX(0); transform-origin: right; }
}

/* --------------------------------------------------------------------------
   7. MISC / RESPONSIVE TUNE-UPS
-------------------------------------------------------------------------- */
img { max-width: 100%; display: block; }
.no-scrollbar::-webkit-scrollbar { display: none; }
.no-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }

@media (max-width: 640px) {
  #back-to-top, #whatsapp-float { width: 46px; height: 46px; }
}
