:root {
  color-scheme: light dark;
  --bg: #eef7f6;
  --surface: #ffffff;
  --surface-soft: #dcefed;
  --ink: #071f2b;
  --muted: #4b6670;
  --line: rgba(7, 31, 43, .14);
  --accent: #0a9da3;
  --accent-strong: #087c82;
  --on-accent: #ffffff;
  --shadow: 0 24px 70px rgba(7, 61, 74, .14);
  --radius: 16px;
  --header-h: 72px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #061820;
    --surface: #0b2530;
    --surface-soft: #103440;
    --ink: #effcfa;
    --muted: #aec7c8;
    --line: rgba(213, 244, 242, .16);
    --accent: #35c8c7;
    --accent-strong: #49d8d6;
    --on-accent: #052027;
    --shadow: 0 24px 70px rgba(0, 0, 0, .32);
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 92px; }
body {
  margin: 0;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--ink);
  font-family: "Avenir Next", Avenir, "Segoe UI", system-ui, sans-serif;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
}
button, a { font: inherit; }
a { color: inherit; }
img { display: block; max-width: 100%; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }

.skip-link { position: fixed; left: 16px; top: -60px; z-index: 20; padding: 10px 16px; background: var(--ink); color: var(--bg); border-radius: 10px; }
.skip-link:focus { top: 12px; }

.site-header {
  width: min(1400px, calc(100% - 40px));
  height: var(--header-h);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  position: relative;
  z-index: 10;
}
.brand { width: 164px; justify-self: start; }
.brand img, footer img { width: 100%; height: auto; filter: saturate(.9); }
.nav-links { display: flex; gap: 28px; white-space: nowrap; }
.nav-links a, footer a { text-decoration: none; font-weight: 650; }
.nav-links a:hover, footer a:hover { color: var(--accent-strong); }

.language { justify-self: end; position: relative; }
.language-button {
  min-width: 76px;
  height: 42px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
}
.chevron { width: 7px; height: 7px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg) translateY(-2px); transition: transform .2s ease; }
.language.is-open .chevron { transform: rotate(225deg) translate(-1px, -1px); }
.language-menu {
  position: absolute;
  top: calc(100% + 10px);
  inset-inline-end: 0;
  width: 210px;
  max-height: min(460px, calc(100dvh - 100px));
  overflow: auto;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity .2s ease, transform .2s ease, visibility .2s;
}
.language.is-open .language-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.language-option { width: 100%; border: 0; border-radius: 10px; padding: 10px 12px; background: transparent; color: var(--ink); display: flex; justify-content: space-between; cursor: pointer; text-align: start; }
.language-option:hover, .language-option[aria-selected="true"] { background: var(--surface-soft); }
.language-option small { color: var(--muted); }

.hero {
  width: min(1400px, calc(100% - 40px));
  min-height: calc(100dvh - var(--header-h) - 20px);
  margin: 0 auto 20px;
  display: grid;
  grid-template-columns: minmax(0, .82fr) minmax(520px, 1.18fr);
  align-items: center;
  gap: clamp(36px, 6vw, 96px);
}
.hero-copy { max-width: 620px; padding: 34px 0; }
.eyebrow, .trip-kicker { margin: 0 0 18px; color: var(--accent-strong); font-size: .76rem; font-weight: 800; letter-spacing: .17em; }
h1, h2, h3 { margin: 0; font-weight: 750; letter-spacing: -.045em; line-height: .98; }
h1 { font-size: clamp(3.2rem, 6vw, 6.4rem); text-wrap: balance; }
.hero-text { max-width: 510px; margin: 24px 0 0; color: var(--muted); font-size: clamp(1rem, 1.4vw, 1.2rem); }
.hero-actions { margin-top: 32px; display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.button { min-height: 50px; padding: 0 22px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; text-decoration: none; font-weight: 760; white-space: nowrap; transition: transform .2s ease, background .2s ease; }
.button:active { transform: scale(.98); }
.button-primary { background: var(--accent-strong); color: #fff; }
.button-primary:hover { background: var(--accent); }
.text-link { font-weight: 740; text-underline-offset: 5px; }
.hero-visual { position: relative; min-height: min(720px, calc(100dvh - 114px)); overflow: hidden; border-radius: var(--radius); box-shadow: var(--shadow); }
.hero-visual img { width: 100%; height: 100%; position: absolute; inset: 0; object-fit: cover; object-position: 64% center; }
.route-card { position: absolute; inset-inline-start: 24px; bottom: 24px; max-width: 280px; padding: 15px 17px; border: 1px solid rgba(255,255,255,.32); border-radius: var(--radius); background: rgba(4, 28, 38, .76); color: white; backdrop-filter: blur(18px); }
.route-card span, .route-card strong { display: block; }
.route-card span { font-size: .75rem; opacity: .72; margin-bottom: 3px; }

.category-strip { width: min(1400px, calc(100% - 40px)); margin: 0 auto; padding: 24px 0; display: grid; grid-template-columns: repeat(4, 1fr); border-block: 1px solid var(--line); color: var(--muted); text-transform: uppercase; letter-spacing: .12em; font-size: .76rem; font-weight: 760; }
.category-strip span:not(:last-child) { border-inline-end: 1px solid var(--line); }
.category-strip span { text-align: center; }

.section { width: min(1240px, calc(100% - 40px)); margin: 0 auto; padding: clamp(88px, 11vw, 150px) 0; }
.section-heading { max-width: 720px; }
h2 { font-size: clamp(2.4rem, 5vw, 5rem); text-wrap: balance; }
.section-heading p, .answer-intro p, .final-cta p { max-width: 620px; color: var(--muted); font-size: 1.08rem; }

.planner-shell { margin-top: 52px; }
.trip-tabs { display: flex; gap: 10px; overflow-x: auto; padding: 2px 2px 16px; scrollbar-width: none; }
.trip-tabs::-webkit-scrollbar { display: none; }
.trip-tab { flex: 0 0 auto; padding: 12px 18px; border: 1px solid var(--line); border-radius: 999px; background: transparent; color: var(--ink); font-weight: 720; cursor: pointer; }
.trip-tab[aria-selected="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.trip-panel { min-height: 430px; display: grid; grid-template-columns: .82fr 1.18fr; overflow: hidden; border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); }
.trip-copy { padding: clamp(32px, 5vw, 70px); align-self: center; }
.trip-copy h3 { font-size: clamp(2rem, 4vw, 4.2rem); }
.trip-copy > p:not(.trip-kicker) { max-width: 440px; color: var(--muted); margin: 22px 0 28px; }
.trip-visual { position: relative; overflow: hidden; min-height: 430px; background: linear-gradient(180deg, #68d8dc 0%, #c4f0ed 58%, #0b7180 59%, #064d60 100%); }
.sun { position: absolute; width: 110px; height: 110px; border-radius: 50%; background: #f7fbdf; top: 54px; right: 18%; box-shadow: 0 0 60px rgba(247,251,223,.65); }
.horizon { position: absolute; inset: 59% 0 auto; height: 2px; background: rgba(255,255,255,.55); }
.island { position: absolute; bottom: -8%; background: #073c45; border-radius: 50% 50% 0 0; transform: rotate(-4deg); }
.island-one { width: 72%; height: 38%; left: -14%; }
.island-two { width: 64%; height: 25%; right: -16%; background: #0b5660; }

.how { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(42px, 7vw, 96px); align-items: center; }
.how-image { min-height: 660px; border-radius: var(--radius); overflow: hidden; }
.how-image img { width: 100%; height: 100%; min-height: 660px; object-fit: cover; }
.journey-list { margin: 48px 0 0; padding: 0; list-style: none; }
.journey-list li { display: grid; grid-template-columns: 48px 1fr; gap: 14px; padding: 24px 0; border-top: 1px solid var(--line); }
.journey-list li:last-child { border-bottom: 1px solid var(--line); }
.journey-list > li > span { color: var(--accent-strong); font-weight: 800; }
.journey-list strong { font-size: 1.1rem; }
.journey-list p { margin: 5px 0 0; color: var(--muted); }

.answers { display: grid; grid-template-columns: .75fr 1.25fr; gap: clamp(40px, 8vw, 110px); align-items: start; }
.answer-intro { position: sticky; top: 110px; }
.accordion { border-top: 1px solid var(--line); }
details { border-bottom: 1px solid var(--line); padding: 22px 0; }
summary { cursor: pointer; font-size: 1.18rem; font-weight: 730; list-style: none; display: flex; justify-content: space-between; gap: 20px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--accent-strong); font-size: 1.35rem; line-height: 1; }
details[open] summary::after { content: "−"; }
details p { max-width: 660px; color: var(--muted); margin: 16px 36px 0 0; }

.final-cta { width: min(1400px, calc(100% - 40px)); padding-inline: clamp(28px, 6vw, 88px); border-radius: var(--radius); background: var(--accent-strong); color: white; display: flex; align-items: center; justify-content: space-between; gap: 40px; }
.final-cta h2 { max-width: 850px; font-size: clamp(2.4rem, 5vw, 5.1rem); }
.final-cta p { color: rgba(255,255,255,.78); }
.button-light { background: #fff; color: #075d64; flex: 0 0 auto; }

footer { width: min(1400px, calc(100% - 40px)); margin: 0 auto; padding: 44px 0 54px; display: grid; grid-template-columns: 150px 1fr auto; gap: 34px; align-items: center; color: var(--muted); }
footer p { max-width: 780px; margin: 0; font-size: .82rem; }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .65s ease, transform .65s cubic-bezier(.2,.7,.2,1); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

[dir="rtl"] .hero-visual img { transform: scaleX(-1); }
[dir="rtl"] details p { margin: 16px 0 0 36px; }

@media (max-width: 900px) {
  .site-header { width: min(100% - 28px, 1400px); grid-template-columns: 1fr auto; height: 64px; }
  .brand { width: 132px; }
  .nav-links { display: none; }
  .language-button { min-width: 68px; height: 38px; padding: 0 12px; }
  .language-menu { width: min(220px, calc(100vw - 28px)); }
  .hero { width: min(100% - 28px, 1400px); min-height: auto; grid-template-columns: 1fr; gap: 24px; }
  .hero-copy { padding: 38px 0 10px; }
  h1 { font-size: clamp(2.85rem, 13vw, 4.8rem); }
  .hero-visual { min-height: clamp(300px, 38dvh, 380px); }
  .hero-visual img { object-position: 68% center; }
  .category-strip { width: min(100% - 28px, 1400px); overflow-x: auto; grid-template-columns: repeat(4, minmax(120px, 1fr)); }
  .section { width: min(100% - 28px, 1240px); }
  .trip-panel { grid-template-columns: 1fr; }
  .trip-copy { min-height: 310px; }
  .trip-visual { min-height: 300px; order: -1; }
  .how { grid-template-columns: 1fr; }
  .how-image, .how-image img { min-height: 52dvh; }
  .how-image img { object-position: 58% center; }
  .answers { grid-template-columns: 1fr; }
  .answer-intro { position: static; }
  .final-cta { width: min(100% - 28px, 1400px); align-items: flex-start; flex-direction: column; }
  footer { width: min(100% - 28px, 1400px); grid-template-columns: 1fr; }
  footer img { width: 140px; }
}

@media (max-width: 480px) {
  .hero-copy { padding-top: 24px; }
  .hero-text { margin-top: 18px; }
  .hero-actions { margin-top: 24px; gap: 16px; }
  .hero-actions .button { width: 100%; }
  .hero-actions .text-link { width: 100%; text-align: center; }
  .hero-visual { min-height: clamp(280px, 36dvh, 330px); }
  .route-card { inset-inline: 14px; bottom: 14px; max-width: none; }
  .section { padding-block: 76px; }
  .planner-shell { margin-top: 34px; }
  .trip-copy { padding: 28px 24px 34px; }
  .trip-visual { min-height: 250px; }
  .how-image, .how-image img { min-height: 440px; }
  .final-cta { padding-block: 54px; }
  .final-cta .button { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
