/* ==========================================================================
   Kwaai Kombi - styles
   Dark theme by default ([data-theme="dark"]), light theme via the navbar switch.
   Spacing scale: 4 8 12 16 24 32 48 64 96. No inline styles anywhere (strict CSP).
   ========================================================================== */

/* ---------- Design tokens ---------- */
:root,
[data-theme="dark"] {
  color-scheme: dark;
  --bg: #14101f;
  --bg-alt: #1b1529;
  --surface: #221a34;
  --surface-2: #2b2142;
  --border: #3a2e57;
  --text: #f4efff;
  --text-muted: #c4b8de;
  --primary: #a98bff;          /* jacaranda purple, readable on dark */
  --primary-strong: #8f6bff;
  --on-primary: #14101f;
  --accent: #ff9a52;           /* kombi orange */
  --accent-text: #ffb27a;
  --cta-bg: #ff8a3d;
  --cta-bg-hover: #ffa364;
  --cta-text: #1a1020;
  --success: #6ee7b7;
  --danger: #ff8a8a;
  --focus: #ffd166;
  --shadow-1: 0 1px 2px rgb(0 0 0 / 0.35), 0 2px 8px rgb(0 0 0 / 0.25);
  --shadow-2: 0 8px 24px rgb(0 0 0 / 0.4);
  --nav-bg: rgb(20 16 31 / 0.88);
  --switch-track: #3a2e57;
}

[data-theme="light"] {
  color-scheme: light;
  --bg: #fbf8ff;
  --bg-alt: #f2ecfd;
  --surface: #ffffff;
  --surface-2: #f6f1ff;
  --border: #ddd2f3;
  --text: #1e1630;
  --text-muted: #554a6b;
  --primary: #5b3fd1;
  --primary-strong: #4a2fc0;
  --on-primary: #ffffff;
  --accent: #c4561b;
  --accent-text: #a8460f;
  --cta-bg: #ff8a3d;
  --cta-bg-hover: #ff7a24;
  --cta-text: #1a1020;
  --success: #047857;
  --danger: #b42318;
  --focus: #5b3fd1;
  --shadow-1: 0 1px 2px rgb(30 22 48 / 0.08), 0 2px 8px rgb(30 22 48 / 0.06);
  --shadow-2: 0 8px 24px rgb(30 22 48 / 0.12);
  --nav-bg: rgb(251 248 255 / 0.9);
  --switch-track: #ff8a3d;
}

:root {
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --container: 1160px;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-hero: Verdana, Geneva, sans-serif;
  --nav-h: 72px;
}

/* ---------- Base ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 12px);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
h1, h2, h3 { line-height: 1.2; margin: 0; text-wrap: balance; }
p { margin: 0 0 16px; }
a { color: var(--primary); text-underline-offset: 3px; }
a:hover { color: var(--primary-strong); }
ul[role="list"] { list-style: none; margin: 0; padding: 0; }

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 100;
  padding: 8px 16px;
  background: var(--cta-bg);
  color: var(--cta-text);
  border-radius: var(--radius-sm);
  font-weight: 700;
  text-decoration: none;
}
.skip-link:focus { top: 12px; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}
.container--narrow { max-width: 820px; }

@media (max-width: 480px) {
  .container { padding: 0 16px; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 24px;
  border-radius: 999px;
  border: 2px solid transparent;
  font: inherit;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}
.btn:active { transform: translateY(1px); }

.btn--primary { background: var(--cta-bg); color: var(--cta-text); }
.btn--primary:hover { background: var(--cta-bg-hover); color: var(--cta-text); }

.btn--outline { border-color: var(--primary); color: var(--primary); background: transparent; }
.btn--outline:hover { background: var(--primary); color: var(--on-primary); }

.btn--ghost-light { border-color: rgb(255 255 255 / 0.85); color: #fff; background: rgb(255 255 255 / 0.06); }
.btn--ghost-light:hover { background: #fff; color: #1a1020; }

.btn--block { width: 100%; }

/* ---------- Navbar ---------- */
.navbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--nav-bg);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--border);
}

.navbar__inner {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: var(--nav-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  flex-shrink: 0;
}
.brand:hover { color: var(--text); }
.brand__name { font-size: 1.25rem; font-weight: 800; letter-spacing: -0.01em; white-space: nowrap; }
.brand__accent { color: var(--accent-text); }

.nav { margin-left: auto; }
.nav__list {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav__link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--text);
  font-weight: 600;
  text-decoration: none;
}
.nav__link:hover { background: var(--surface-2); color: var(--text); }
.nav__link--cta { background: var(--cta-bg); color: var(--cta-text); margin-left: 8px; }
.nav__link--cta:hover { background: var(--cta-bg-hover); color: var(--cta-text); }

.navbar__tools { display: flex; align-items: center; gap: 12px; }

/* iPhone-style theme switch: pill track with a sliding round knob. */
.theme-switch {
  position: relative;
  width: 60px;
  height: 34px;
  flex-shrink: 0;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: var(--switch-track);
  cursor: pointer;
  transition: background-color 0.25s ease;
}
.theme-switch__knob {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 4px rgb(0 0 0 / 0.3);
  transition: transform 0.25s ease;
}
.theme-switch[aria-checked="true"] .theme-switch__knob { transform: translateX(26px); }
.theme-switch__icon {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: #fff;
  line-height: 0;
}
.theme-switch__icon--moon { right: 9px; }
.theme-switch__icon--sun { left: 9px; }

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  cursor: pointer;
}
.menu-toggle__bar {
  display: block;
  height: 2px;
  width: 100%;
  border-radius: 2px;
  background: var(--text);
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.menu-toggle[aria-expanded="true"] .menu-toggle__bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle__bar:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] .menu-toggle__bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 900px) {
  .menu-toggle { display: inline-flex; }
  .navbar__tools { margin-left: auto; }
  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-2);
    display: none;
  }
  .nav.is-open { display: block; }
  .nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 12px 16px 20px;
  }
  .nav__link { width: 100%; padding: 12px 16px; border-radius: var(--radius-sm); }
  .nav__link--cta { margin: 8px 0 0; justify-content: center; }
}

@media (max-width: 360px) {
  .brand__name { font-size: 1.05rem; }
  .brand__logo { width: 36px; height: 36px; }
  .navbar__inner { gap: 8px; }
  .navbar__tools { gap: 8px; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: min(88vh, 760px);
  display: flex;
  align-items: center;
  padding: 96px 0;
  color: #fff;
}
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: 60% 40%;
}
/* Brand gradient strong enough for WCAG AA white text everywhere the copy sits. */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgb(16 10 32 / 0.92) 0%, rgb(26 14 52 / 0.82) 45%, rgb(40 20 70 / 0.45) 100%),
    linear-gradient(0deg, rgb(16 10 32 / 0.55) 0%, rgb(16 10 32 / 0) 40%);
}
.hero__content { max-width: var(--container); }
.hero__content > * { max-width: 660px; }

.eyebrow {
  margin: 0 0 12px;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-text);
}
.eyebrow--light { color: #ffc49a; }

.hero__title {
  font-family: var(--font-hero);
  font-size: clamp(2.1rem, 5.4vw, 3.6rem);
  line-height: 1.12;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
}
.hero__lead {
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  color: #ede6ff;
  margin-bottom: 32px;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 32px; }

.hero__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.hero__badges li {
  padding: 6px 14px;
  border-radius: 999px;
  background: rgb(255 255 255 / 0.12);
  border: 1px solid rgb(255 255 255 / 0.28);
  font-size: 0.9rem;
  font-weight: 600;
}

@media (max-width: 600px) {
  .hero { padding: 64px 0; min-height: 0; }
  .hero::before {
    background: linear-gradient(180deg, rgb(16 10 32 / 0.72) 0%, rgb(22 12 44 / 0.8) 100%);
  }
  .hero__actions .btn { flex: 1 1 100%; }
}

/* ---------- Launch notice ---------- */
.notice {
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
}
.notice__inner {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 14px;
  padding-bottom: 14px;
}
.notice__inner p { margin: 0; color: var(--text); }
.notice__dot {
  flex-shrink: 0;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgb(255 138 61 / 0.25);
}

/* ---------- Sections ---------- */
.section { padding: 96px 0; }
.section--alt { background: var(--bg-alt); }
@media (max-width: 600px) { .section { padding: 64px 0; } }

.section__head { max-width: 680px; margin-bottom: 48px; }
.section__title {
  font-size: clamp(1.75rem, 3.4vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}
.section__lead { font-size: 1.125rem; color: var(--text-muted); }

/* ---------- Cards ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
  gap: 24px;
}
.card-grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr)); }

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 32px 24px 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-1);
}

.tour__icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin-bottom: 16px;
  border-radius: 14px;
  background: var(--surface-2);
  color: var(--primary);
}
.tour__title { font-size: 1.25rem; font-weight: 800; margin-bottom: 8px; }
.tour__meta { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.chip {
  padding: 2px 10px;
  border-radius: 999px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
}
.tour__desc { color: var(--text-muted); flex-grow: 1; }
.tour__price { font-size: 1rem; color: var(--text-muted); margin-bottom: 16px; }
.tour__price strong { font-size: 1.35rem; color: var(--accent-text); }
.tour__btn { align-self: flex-start; }

/* Packages */
.package__title { font-size: 1.4rem; font-weight: 800; margin-bottom: 4px; }
.package__tag { color: var(--text-muted); }
.package .btn { margin-top: auto; }
.package--featured { border: 2px solid var(--cta-bg); box-shadow: var(--shadow-2); }
.package__badge {
  position: absolute;
  top: -14px;
  left: 24px;
  margin: 0;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--cta-bg);
  color: var(--cta-text);
  font-size: 0.8rem;
  font-weight: 800;
}

.ticks { margin: 8px 0 24px !important; display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 30px; }
.ticks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--surface-2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='m5.5 10.5 3 3 6-6.5' fill='none' stroke='%23ff8a3d' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 20px no-repeat;
  border: 1px solid var(--border);
}

/* ---------- Split layouts (stays, enquiry) ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}
.split--form { grid-template-columns: 5fr 6fr; }
.split__text p:not(.eyebrow):not(.section__lead) { color: var(--text-muted); }
@media (max-width: 900px) {
  .split, .split--form { grid-template-columns: 1fr; gap: 48px; }
}

.feature-list { display: grid; gap: 16px; }
.feature {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 16px 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-muted);
}
.feature strong { color: var(--text); }
.feature__icon {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--surface-2);
  color: var(--accent-text);
}

/* ---------- Why us ---------- */
.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: 24px;
}
.why {
  padding: 24px;
  border-left: 4px solid var(--primary);
  background: var(--surface);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.why__title { font-size: 1.15rem; font-weight: 800; margin-bottom: 8px; }
.why p { color: var(--text-muted); margin: 0; }

/* ---------- FAQ (accordion; not used as a menu) ---------- */
.faq { display: grid; gap: 12px; }
.faq__item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.faq__item summary {
  position: relative;
  padding: 18px 56px 18px 24px;
  font-weight: 700;
  font-size: 1.05rem;
  cursor: pointer;
  list-style: none;
  border-radius: var(--radius);
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: "+";
  position: absolute;
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--accent-text);
}
.faq__item[open] summary::after { content: "\2212"; }
.faq__item p { padding: 0 24px 20px; margin: 0; color: var(--text-muted); }

/* ---------- Contact list ---------- */
.contact-list { margin: 32px 0 0; display: grid; gap: 12px; }
.contact-list__row {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}
.contact-list dt { font-weight: 700; }
.contact-list dd { margin: 0; color: var(--text-muted); overflow-wrap: anywhere; }

/* ---------- Form ---------- */
.form-card {
  padding: 32px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-2);
}
@media (max-width: 480px) { .form-card { padding: 24px 16px; } }

.field { margin-bottom: 20px; min-width: 0; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 420px) { .field-row { grid-template-columns: 1fr; gap: 0; } }

.field label { display: block; font-weight: 700; margin-bottom: 6px; }
.req { color: var(--accent-text); }
.optional { font-weight: 400; color: var(--text-muted); font-size: 0.9rem; }

.field input,
.field select,
.field textarea {
  display: block;
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  font: inherit;
  color: var(--text);
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: 12px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgb(169 139 255 / 0.35);
}
.field [aria-invalid="true"] { border-color: var(--danger); }

.field__hint { margin: 6px 0 0; font-size: 0.85rem; color: var(--text-muted); }
.field__error { margin: 6px 0 0; font-size: 0.9rem; font-weight: 600; color: var(--danger); }
.field__error:empty { display: none; }

.field--check {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 12px;
  align-items: start;
}
.field--check input {
  width: 22px;
  height: 22px;
  min-height: 0;
  margin: 2px 0 0;
  padding: 0;
  accent-color: var(--cta-bg);
}
.field--check label { font-weight: 400; margin: 0; color: var(--text-muted); }
.field--check .field__error { grid-column: 2; }

.hp {
  position: absolute !important;
  left: -10000px !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-errors {
  margin-bottom: 20px;
  padding: 14px 16px;
  border: 1.5px solid var(--danger);
  border-radius: 12px;
  color: var(--text);
  background: rgb(255 138 138 / 0.08);
}
.form-errors p { margin: 0 0 6px; font-weight: 700; }
.form-errors ul { margin: 0; padding-left: 20px; }
.form-errors a { color: var(--danger); font-weight: 600; }

.form-note { margin: 12px 0 0; font-size: 0.85rem; color: var(--text-muted); text-align: center; }

.form-success { text-align: center; padding: 16px 0; color: var(--success); }
.form-success svg { margin: 0 auto 12px; }
.form-success__title { color: var(--text); font-size: 1.5rem; margin-bottom: 12px; }
.form-success p { color: var(--text-muted); text-align: left; }
.form-success:focus { outline: none; }

[hidden] { display: none !important; }

/* ---------- Footer ---------- */
.footer {
  padding: 64px 0 32px;
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
}
.footer__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--border);
}
.footer__blurb { margin: 12px 0 0; color: var(--text-muted); max-width: 320px; }
.footer__nav ul { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.footer__nav a { color: var(--text); text-decoration: none; font-weight: 600; display: inline-block; padding: 6px 0; }
.footer__nav a:hover { color: var(--primary); text-decoration: underline; }
.footer__legal { padding-top: 24px; font-size: 0.9rem; color: var(--text-muted); }
.footer__legal p { margin-bottom: 8px; }
.footer__legal a { color: var(--text-muted); }
.footer__legal a:hover { color: var(--primary); }
.footer__credit { font-size: 0.8rem; }

/* ---------- Simple content pages (privacy, 404) ---------- */
.page { padding: 64px 0 96px; }
.page h1 {
  font-family: var(--font-hero);
  font-size: clamp(1.9rem, 4.4vw, 2.8rem);
  line-height: 1.12;
  margin-bottom: 24px;
}
.page h2 { font-size: 1.35rem; margin: 40px 0 12px; }
.page p, .page li { color: var(--text-muted); }
.page ul { padding-left: 22px; }
.page__meta { font-size: 0.9rem; }

.not-found { text-align: center; padding: 96px 0; }
.not-found svg { margin: 0 auto 24px; }
.not-found h1 { margin-bottom: 16px; }
.not-found .hero__actions { justify-content: center; }
