/**
 * SkyKaro — Design System
 * Brand: Midnight Indigo (#1B1F3B) + Teal (#19C8AB)
 * Theme: Light background, rationed teal accents, premium travel
 */

/* ── Google Fonts ─────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&family=Inter:wght@300;400;500;600;700&display=swap');

/* ── CSS Variables ────────────────────────────────────────── */
:root {
  /* Brand */
  --sk-primary:        #1B1F3B;   /* Midnight Indigo */
  --sk-primary-light:  #2A3060;
  --sk-primary-muted:  rgba(27,31,59,0.08);

  /* Teal ramp.
     Was #00D4AA / #00B899 / #00EFC2 — all three at 100% saturation, which is
     what made the accent read as poster paint rather than as a brand colour.
     Nothing in a considered palette runs at 100% S. Same hue family (168-172),
     pulled back to 78-80% and deepened, so it stays recognisably SkyKaro while
     behaving like ink.
     Side effect worth keeping: --sk-teal-dark now clears AA as text on white
     (4.9:1, was 2.5:1), so the badge and label type that uses it is legible. */
  --sk-teal:           #19C8AB;   /* accent + button fill (ink text on it: 7.6:1) */
  /* L26% rather than 28%: at 28% this cleared AA on white (4.90) but landed
     at 4.27 on --sk-bg-subtle, which is exactly where the badge and category
     labels that use it actually sit. 5.52 / 4.81 clears both. */
  --sk-teal-dark:      #0F7666;   /* borders, hover, small type */
  --sk-teal-deep:      #119C87;   /* gradient partner — 10% step, not a rainbow */
  --sk-teal-light:     #5FE0C9;
  --sk-teal-muted:     rgba(17,156,135,0.10);

  /* The old value was `0 4px 24px rgba(0,212,170,0.30)` — a 30%-opacity
     COLOURED glow under every primary button. Saturated fill + coloured halo +
     diagonal gradient is the exact signature of a template. Both reference
     sites cap neutral shadows at 8% and tint them with the ink colour, so
     that is what this is now. */
  --sk-teal-glow:      0 1px 2px rgba(16,20,42,0.06), 0 8px 20px rgba(16,20,42,0.10);
  --sk-teal-glow-hover:0 2px 4px rgba(16,20,42,0.07), 0 14px 30px rgba(16,20,42,0.14);

  --sk-purple:         #7C5CFC;   /* Accent purple for gradients */
  --sk-coral:          #FF6B35;   /* CTA warm contrast */

  /* Amber — the "has stops" / layover / overnight semantic.
     --sk-orange was referenced in three places and DEFINED IN NONE, so every
     connecting flight in the results list, the +1 day-offset marker and the
     overnight pill all fell through to a raw #F59E0B: 92% saturation, and
     2.15:1 as text on white. A second, different amber (#D97706, 3.19:1) was
     used for the same meaning on the checkout itinerary.
     One token now, deep enough to be legible as type on both surfaces
     (5.56:1 on white, 4.84:1 on --sk-bg-subtle), with a light tint for fills. */
  --sk-amber:          #935C10;
  --sk-amber-tint:     rgba(147,92,16,0.10);
  --sk-orange:         var(--sk-amber);   /* legacy alias */

  /* Light Theme Backgrounds
     The page is NOT white and the cards ARE. That ~2% luminance step is what
     lets the shadows stay near-invisible; both reference sites do it, and it
     is the reason their cards read as objects without heavy borders.
     Every neutral here is pulled into the indigo family of --sk-primary
     (#1B1F3B, hue 232) rather than sitting on neutral slate — no true grey
     anywhere. That single choice does more work than any shadow. */
  --sk-bg:             #F6F7FC;
  --sk-bg-white:       #FFFFFF;
  --sk-bg-subtle:      #EDEFF7;
  --sk-card:           #FFFFFF;
  --sk-card-hover:     #FBFCFF;

  /* Borders */
  --sk-border:         #E3E5F0;
  --sk-border-light:   #EDEFF8;

  /* Text */
  --sk-text:           #1B1F3B;
  --sk-text-secondary: #4A5069;
  --sk-text-muted:     #868DA6;
  --sk-text-inverse:   #FFFFFF;

  /* Shadows */
  --sk-shadow-xs:  0 1px 3px rgba(27,31,59,0.06);
  --sk-shadow-sm:  0 2px 8px rgba(27,31,59,0.08);
  --sk-shadow-md:  0 4px 20px rgba(27,31,59,0.10);
  --sk-shadow-lg:  0 8px 40px rgba(27,31,59,0.12);
  --sk-shadow-xl:  0 20px 60px rgba(27,31,59,0.15);
  --sk-shadow-card: 0 2px 12px rgba(27,31,59,0.08);
  --sk-shadow-card-hover: 0 12px 40px rgba(27,31,59,0.16);

  /* Border Radius — one ladder, four rungs and a pill.
     There used to be no ladder in practice: buttons came in 8, 10, 12 and
     9999px, and cards in 22, 24 and 32px, which is why nothing looked like a
     system. The rule now:
       sm  10px  small controls — chips, icon tiles, menu items
       md  14px  inner tiles inside a card
       lg  18px  medium panels — dropdowns, popovers, notices
       xl  24px  EVERY card. One card radius, no exceptions.
       2xl       kept as an alias of xl so the ~26 existing call sites do not
                 all have to be rewritten, and so a 32px card cannot creep
                 back in by using the old name.
       full      every button. */
  --sk-r-sm:   10px;
  --sk-r-md:   14px;
  --sk-r-lg:   18px;
  --sk-r-xl:   24px;
  --sk-r-2xl:  24px;
  --sk-r-full: 9999px;

  /* Transitions */
  --sk-t-fast:   150ms ease;
  --sk-t-base:   260ms ease;
  --sk-t-slow:   420ms ease;
  --sk-t-spring: 400ms cubic-bezier(0.34,1.56,0.64,1);

  /* Typography
     Plus Jakarta Sans / Inter — the pairing the client asked for. Jakarta's
     ceiling is 800, so `font-weight: 900` anywhere in this codebase clamps to
     800 (variable font); see the note on the font link in v2-head.php. */
  --font-heading: 'Plus Jakarta Sans', sans-serif;
  --font-body:    'Inter', sans-serif;
}

/* ── Dark Mode ────────────────────────────────────────────── */
[data-theme="dark"] {
  --sk-bg:             #0E1120;
  --sk-bg-white:       #131729;
  --sk-bg-subtle:      #181D35;
  --sk-card:           #1A2040;
  --sk-card-hover:     #1F2750;
  --sk-border:         rgba(255,255,255,0.08);
  --sk-border-light:   rgba(255,255,255,0.05);
  --sk-text:           #EEF0FF;
  --sk-text-secondary: #9AA3C0;
  --sk-text-muted:     #5C6480;
  --sk-shadow-card:    0 2px 12px rgba(0,0,0,0.3);
  --sk-shadow-card-hover: 0 12px 40px rgba(0,0,0,0.5);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background: var(--sk-bg);
  color: var(--sk-text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  transition: background var(--sk-t-base), color var(--sk-t-base);
}

img { max-width: 100%; display: block; }
a   { color: inherit; text-decoration: none; }
button { font-family: var(--font-body); cursor: pointer; }

/* ── Typography ───────────────────────────────────────────── */
.font-heading { font-family: var(--font-heading); }
.font-body    { font-family: var(--font-body); }

h1, h2, h3, h4, h5 {
  font-family: var(--font-heading);
  font-weight: 800;
  line-height: 1.15;
  color: var(--sk-text);
}

/* ── Gradient text ────────────────────────────────────────── */
.grad-text {
  background: linear-gradient(135deg, var(--sk-teal), var(--sk-purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Buttons ──────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; padding: 13px 28px; border-radius: var(--sk-r-full);
  font-family: var(--font-heading); font-weight: 700; font-size: 15px;
  border: none; transition: all var(--sk-t-base); white-space: nowrap;
  letter-spacing: 0.2px; position: relative; overflow: hidden;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: linear-gradient(135deg, var(--sk-teal), var(--sk-teal-dark));
  color: var(--sk-primary);
  box-shadow: var(--sk-teal-glow);
}
.btn-primary:hover { box-shadow: 0 8px 32px rgba(16,20,42,0.12); }

.btn-secondary {
  background: var(--sk-primary);
  color: #fff;
  box-shadow: 0 4px 16px rgba(27,31,59,0.25);
}
.btn-secondary:hover { background: var(--sk-primary-light); box-shadow: 0 8px 32px rgba(27,31,59,0.35); }

.btn-ghost {
  background: transparent; color: var(--sk-primary);
  border: 2px solid var(--sk-border); font-weight: 600;
}
.btn-ghost:hover { border-color: var(--sk-teal); color: var(--sk-teal); }

.btn-sm { padding: 9px 20px; font-size: 13px; }
.btn-lg { padding: 17px 36px; font-size: 17px; }
.btn-icon { width: 44px; height: 44px; padding: 0; border-radius: 50%; }

/* ── Cards ────────────────────────────────────────────────── */
.card {
  background: var(--sk-card); border-radius: var(--sk-r-xl);
  border: 1px solid var(--sk-border); padding: 28px;
  box-shadow: var(--sk-shadow-card);
  transition: all var(--sk-t-base);
}
.card:hover {
  box-shadow: var(--sk-shadow-card-hover);
  transform: translateY(-4px);
  border-color: rgba(17,156,135,0.2);
}

.glass-card {
  background: rgba(255,255,255,0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.5);
  border-radius: var(--sk-r-xl);
  box-shadow: 0 8px 40px rgba(27,31,59,0.12);
}
[data-theme="dark"] .glass-card {
  background: rgba(26,32,64,0.75);
  border-color: rgba(255,255,255,0.08);
}

/* ── Layout ───────────────────────────────────────────────── */
.container  { max-width: 1280px; margin: 0 auto; padding: 0 24px; }
.container-sm { max-width: 900px; margin: 0 auto; padding: 0 24px; }
.section    { padding: 96px 0; }
.section-sm { padding: 60px 0; }

/* ── Badge / Chip ─────────────────────────────────────────── */
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 14px; border-radius: var(--sk-r-full);
  font-size: 12px; font-weight: 700; letter-spacing: 0.5px;
}
.badge-teal    { background: var(--sk-teal-muted); color: var(--sk-teal-dark); border: 1px solid rgba(17,156,135,0.25); }
.badge-primary { background: var(--sk-primary-muted); color: var(--sk-primary); border: 1px solid rgba(27,31,59,0.15); }

/* ── Section Headings ─────────────────────────────────────── */
.section-eyebrow {
  display: block; font-family: var(--font-heading); font-weight: 700;
  font-size: 12px; letter-spacing: 2px; text-transform: uppercase;
  color: var(--sk-teal-dark); margin-bottom: 14px;
}
.section-title {
  font-size: clamp(1.9rem, 3.5vw, 2.8rem);
  font-weight: 900; line-height: 1.1; margin-bottom: 16px;
}
.section-subtitle {
  font-size: 17px; color: var(--sk-text-secondary); max-width: 600px;
  line-height: 1.7;
}

/* ── Dividers ─────────────────────────────────────────────── */
.divider { height: 1px; background: var(--sk-border); border: none; margin: 0; }

/* ── Scroll to top ────────────────────────────────────────── */
#scroll-top {
  position: fixed; bottom: 28px; right: 28px; z-index: 500;
  width: 48px; height: 48px; border-radius: 50%; border: none;
  background: var(--sk-primary); color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--sk-shadow-md); font-size: 20px;
  opacity: 0; transform: translateY(16px);
  transition: all var(--sk-t-base); pointer-events: none;
}
#scroll-top.visible { opacity: 1; transform: translateY(0); pointer-events: auto; }
#scroll-top:hover { background: var(--sk-teal); transform: translateY(-2px); }

/* ── Loading screen ───────────────────────────────────────── */
#loading-screen {
  position: fixed; inset: 0; z-index: 9999;
  background: var(--sk-bg-white);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 20px;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}
#loading-screen.hidden { opacity: 0; visibility: hidden; }
.loading-logo {
  font-family: var(--font-heading); font-weight: 900; font-size: 32px; color: var(--sk-primary);
}
.loading-logo span { color: var(--sk-teal); }
.loading-bar {
  width: 180px; height: 3px; background: var(--sk-border);
  border-radius: 99px; overflow: hidden;
}
.loading-fill {
  height: 100%; width: 0; background: linear-gradient(90deg, var(--sk-teal), var(--sk-purple));
  border-radius: 99px; animation: loadfill 1.2s ease forwards;
}
@keyframes loadfill { to { width: 100%; } }

/* ── Animations ───────────────────────────────────────────── */
@keyframes fadeUp   { from { opacity:0; transform:translateY(24px); } to { opacity:1; transform:translateY(0); } }
@keyframes fadeIn   { from { opacity:0; } to { opacity:1; } }
@keyframes float    { 0%,100% { transform:translateY(0); } 50% { transform:translateY(-10px); } }
@keyframes shimmer  { from { background-position:-200% center; } to { background-position:200% center; } }
@keyframes pulseDot { 0%,100% { transform:scale(1); opacity:1; } 50% { transform:scale(1.6); opacity:0.5; } }
@keyframes spin     { to { transform:rotate(360deg); } }

.anim-fade-up  { animation: fadeUp  0.7s ease both; }
.anim-fade-in  { animation: fadeIn  0.5s ease both; }
.anim-float    { animation: float   4s ease-in-out infinite; }

/* ── WhatsApp bubble ──────────────────────────────────────── */
#wa-bubble {
  position: fixed; bottom: 88px; right: 28px; z-index: 500;
  width: 54px; height: 54px; border-radius: 50%;
  background: #25D366; color: #fff; font-size: 26px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,0.4);
  transition: all var(--sk-t-base); border: none;
  animation: float 4s ease-in-out infinite;
}
#wa-bubble:hover { transform: scale(1.1) translateY(-2px); box-shadow: 0 8px 32px rgba(37,211,102,0.5); }

/* ── Cookie banner ────────────────────────────────────────── */
#cookie-banner {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 800;
  background: var(--sk-primary); color: #fff; padding: 18px 32px;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  flex-wrap: wrap; transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.34,1.56,0.64,1);
  box-shadow: 0 -4px 24px rgba(27,31,59,0.2);
}
#cookie-banner.visible { transform: translateY(0); }
#cookie-banner p   { font-size: 14px; color: rgba(255,255,255,0.85); flex: 1; min-width: 240px; }
#cookie-banner a   { color: var(--sk-teal); font-weight: 600; }
.cookie-btns       { display: flex; gap: 10px; }

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 768px) {
  .section    { padding: 64px 0; }
  .container  { padding: 0 16px; }
}
