/* SOLIH TRAVEL — design system
   Converted from the approved Claude Design mockup. Tokens first, then layout,
   then components. Dark navy is the brand ground; light sections invert. */

:root {
  --navy:        #0B1730;
  --navy-deep:   #07101F;
  --navy-card:   #13244A;
  --navy-tint:   #1B2E55;
  --light:       #F4F5F7;
  --mint:        #8FD3D9;

  --line:        rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.18);
  --muted:       rgba(244, 245, 247, 0.68);
  --muted-soft:  rgba(244, 245, 247, 0.5);

  --line-dark:   rgba(11, 23, 48, 0.12);
  --muted-dark:  rgba(11, 23, 48, 0.66);

  --header-h:    68px;
  --maxw:        1280px;
  --gutter:      clamp(18px, 4vw, 48px);
  --section-y:   clamp(56px, 8vw, 110px);

  --ease:        cubic-bezier(0.2, 0.7, 0.2, 1);
  --font:        'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-serif:  'DM Serif Display', Georgia, serif;
}

* { box-sizing: border-box; }

/* `hidden` must beat the component display rules below (.modal-scrim uses
   display:flex, so the UA's [hidden]{display:none} would otherwise lose). */
[hidden] { display: none !important; }

html {
  scroll-behavior: smooth;
  /* keeps anchor targets clear of the sticky header */
  scroll-padding-top: calc(var(--header-h) + 12px);
}

body {
  margin: 0;
  background: var(--navy);
  color: var(--light);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.no-scroll { overflow: hidden; }

a { color: inherit; text-decoration: none; }
button, input, textarea, select { font-family: var(--font); }
img { max-width: 100%; display: block; }
::selection { background: var(--mint); color: var(--navy); }

:focus-visible {
  outline: 2px solid var(--mint);
  outline-offset: 3px;
}

/* ---------- animation ---------- */

@keyframes fadeUp   { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes drawerIn { from { opacity: 0; transform: translateX(-40px); } to { opacity: 1; transform: none; } }
@keyframes fadeIn   { from { opacity: 0; } to { opacity: 1; } }

.page { animation: fadeUp 0.5s ease; }

/* Scroll-triggered reveal, wired up in site.js. Gated behind .js so the
   content stays visible if JavaScript never runs — otherwise a script error
   would leave most of the page blank. */
.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.js .reveal.is-visible { opacity: 1; transform: none; }

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

/* ---------- typography ---------- */

h1, h2, h3, h4 { margin: 0; font-weight: 400; line-height: 1.12; }

.h-display { font-size: clamp(38px, 7vw, 78px); font-weight: 300; letter-spacing: -0.02em; }
.h-1       { font-size: clamp(30px, 5vw, 54px);  font-weight: 300; letter-spacing: -0.015em; }
.h-2       { font-size: clamp(24px, 3.4vw, 40px); font-weight: 300; letter-spacing: -0.01em; }
.h-3       { font-size: clamp(19px, 2.2vw, 26px); font-weight: 500; }

.eyebrow {
  font-size: 11px;
  letter-spacing: 0.24em;
  font-weight: 500;
  color: var(--mint);
  text-transform: uppercase;
}
.eyebrow--dark { color: #2C6E77; }

.lead { font-size: clamp(16px, 1.6vw, 19px); line-height: 1.7; color: var(--muted); }
.body { font-size: 16px; line-height: 1.7; color: var(--muted); }
.small { font-size: 13px; line-height: 1.6; color: var(--muted-soft); }

.num {
  font-size: 12px;
  letter-spacing: 0.2em;
  color: var(--mint);
  font-weight: 500;
}

.section--light .lead,
.section--light .body { color: var(--muted-dark); }
.section--light .small { color: rgba(11, 23, 48, 0.55); }

/* ---------- layout ---------- */

.shell { min-height: 100vh; display: flex; flex-direction: column; background: var(--navy); }
main { flex: 1; }

.section { padding: var(--section-y) 0; }
.section--light { background: var(--light); color: var(--navy); }
.section--deep  { background: var(--navy-deep); }
.section--tight { padding: clamp(36px, 5vw, 64px) 0; }
.section--flush-top { padding-top: 0; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }

.stack   { display: flex; flex-direction: column; gap: clamp(28px, 4vw, 48px); }
.stack-s { display: flex; flex-direction: column; gap: 14px; }
.stack-m { display: flex; flex-direction: column; gap: 22px; }

.grid { display: grid; gap: clamp(24px, 3vw, 40px); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.grid--cards { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.grid--split { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: clamp(32px, 5vw, 72px); align-items: center; }

.section-head { display: flex; flex-direction: column; gap: 14px; margin-bottom: clamp(32px, 4vw, 56px); }
.section-head--row {
  flex-direction: row; align-items: flex-end; justify-content: space-between;
  gap: 24px; flex-wrap: wrap;
}

.rule { height: 1px; background: var(--line); border: 0; margin: 0; }
.section--light .rule { background: var(--line-dark); }

/* ---------- header ---------- */

.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11, 23, 48, 0.86);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.header__inner {
  max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter);
  height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.brand {
  display: flex; align-items: baseline; gap: 8px;
  letter-spacing: 0.22em; font-weight: 600; font-size: 15px; color: var(--light);
  white-space: nowrap;
}
.brand span:last-child { font-weight: 300; color: var(--mint); }

.header__right { display: flex; align-items: center; gap: 14px; }

.langs { display: flex; border: 1px solid var(--line-strong); height: 36px; }
.lang {
  background: transparent; color: rgba(244, 245, 247, 0.8);
  border: 0; padding: 0 12px;
  font-size: 12px; letter-spacing: 0.1em; font-weight: 500;
  cursor: pointer; transition: background 0.2s, color 0.2s;
}
.lang:hover { background: rgba(255, 255, 255, 0.12); }
.lang[aria-pressed="true"] { background: var(--light); color: var(--navy); }

.menu-btn {
  height: 44px; padding: 0 14px;
  background: transparent; border: 1px solid var(--line-strong); color: var(--light);
  display: flex; align-items: center; gap: 12px; cursor: pointer;
  transition: border-color 0.2s;
}
.menu-btn:hover { border-color: var(--mint); }
.menu-btn__bars { display: flex; flex-direction: column; gap: 5px; }
.menu-btn__bars i { display: block; width: 18px; height: 1.5px; background: var(--light); }
.menu-btn__bars i:last-child { width: 12px; }
.menu-btn__label { font-size: 12px; letter-spacing: 0.16em; font-weight: 500; }

@media (max-width: 420px) {
  .menu-btn__label { display: none; }
  .menu-btn { padding: 0 12px; }
}

/* ---------- drawer ---------- */

.drawer-scrim {
  position: fixed; inset: 0; z-index: 90;
  background: rgba(5, 10, 22, 0.6);
  backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
  animation: fadeIn 0.3s ease;
}
.drawer {
  position: absolute; top: 0; left: 0; bottom: 0;
  width: min(360px, 88vw);
  background: var(--navy);
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  display: flex; flex-direction: column;
  animation: drawerIn 0.35s var(--ease);
  box-shadow: 30px 0 80px rgba(0, 0, 0, 0.4);
}
.drawer__top {
  height: var(--header-h); flex: none;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 24px; border-bottom: 1px solid var(--line);
}
.drawer__nav { display: flex; flex-direction: column; padding: 16px 0; flex: 1; overflow-y: auto; }
.drawer__link {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 0 24px; min-height: 58px;
  font-size: 20px; color: var(--muted);
  border-left: 2px solid transparent;
  transition: background 0.2s, color 0.2s;
}
.drawer__link:hover { background: rgba(255, 255, 255, 0.05); color: #fff; }
.drawer__link[aria-current="page"] { color: #fff; border-left-color: var(--mint); }
.drawer__foot {
  flex: none; padding: 24px; border-top: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 14px;
}
.icon-btn {
  width: 44px; height: 44px; flex: none;
  background: transparent; border: 1px solid var(--line-strong); color: var(--light);
  font-size: 20px; line-height: 1; cursor: pointer; transition: border-color 0.2s;
}
.icon-btn:hover { border-color: var(--mint); }

/* ---------- buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 52px; padding: 0 22px;
  font-size: 13px; letter-spacing: 0.14em; font-weight: 600;
  border: 1px solid transparent; cursor: pointer;
  transition: background 0.25s, color 0.25s, border-color 0.25s;
  text-align: center;
}
.btn--primary { background: var(--light); color: var(--navy); }
.btn--primary:hover { background: var(--mint); color: var(--navy); }
.btn--ghost { background: transparent; color: var(--light); border-color: var(--line-strong); }
.btn--ghost:hover { border-color: var(--mint); color: var(--mint); }
.btn--dark { background: var(--navy); color: var(--light); }
.btn--dark:hover { background: var(--navy-tint); }
.btn--mint { background: var(--mint); color: var(--navy); }
.btn--mint:hover { background: var(--light); }
.btn--block { width: 100%; }
.btn--between { justify-content: space-between; }

.section--light .btn--ghost { color: var(--navy); border-color: var(--line-dark); }
.section--light .btn--ghost:hover { border-color: var(--navy); }

.link-arrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 13px; letter-spacing: 0.14em; font-weight: 600; color: var(--mint);
  transition: gap 0.25s var(--ease);
}
.link-arrow:hover { gap: 16px; }

/* ---------- media / photo frames ---------- */

.media { position: relative; overflow: hidden; background: var(--navy-card); }
.media > picture, .media > img { position: absolute; inset: 0; }
.media img { width: 100%; height: 100%; object-fit: cover; }

.media__zoom img { transition: transform 1.1s var(--ease); }
.media__zoom:hover img,
a:hover .media__zoom img,
article:hover .media__zoom img { transform: scale(1.05); }

/* Colour grades carried over from the mockup */
.grade-default img { filter: saturate(0.8); }
.grade-warm img    { filter: saturate(1.1) contrast(1.04); }
.grade-vivid img   { filter: saturate(1.25) contrast(1.08) brightness(1.04); }

.tint { position: absolute; inset: 0; background: var(--navy-tint); mix-blend-mode: multiply; pointer-events: none; }
.grade-default .tint { opacity: 0.4; }
.grade-warm .tint    { opacity: 0.25; }
.grade-vivid .tint   { opacity: 0.15; }

.scrim {
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(11, 23, 48, 0.05) 0%, rgba(11, 23, 48, 0.2) 45%, rgba(11, 23, 48, 0.9) 100%);
}
.scrim--soft { background: linear-gradient(180deg, rgba(11, 23, 48, 0.1) 0%, rgba(11, 23, 48, 0.55) 100%); }

/* ---------- hero (3 service banners) ---------- */

.hero { padding: clamp(10px, 1.5vw, 20px); }
.hero__track {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(10px, 1.5vw, 20px);
  height: calc(100vh - var(--header-h) - 40px);
  min-height: 520px; max-height: 900px;
}
.hero__card {
  position: relative; overflow: hidden; background: var(--navy-card);
  display: block; color: var(--light);
}
.hero__body {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: clamp(22px, 3vw, 40px);
  display: flex; flex-direction: column; gap: 12px; align-items: flex-start;
  pointer-events: none;
}
.hero__title { font-size: clamp(24px, 2.6vw, 38px); font-weight: 300; letter-spacing: -0.01em; }
.hero__sub { font-size: clamp(14px, 1.1vw, 16px); color: rgba(244, 245, 247, 0.82); line-height: 1.55; }
.hero__cta {
  margin-top: 6px; display: inline-flex; align-items: center; gap: 10px;
  font-size: 12px; letter-spacing: 0.16em; font-weight: 600; color: var(--mint);
  transition: gap 0.3s var(--ease);
}
.hero__card:hover .hero__cta { gap: 16px; }

@media (max-width: 880px) {
  .hero__track {
    display: flex; height: auto; min-height: 0; max-height: none;
    overflow-x: auto; scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .hero__track::-webkit-scrollbar { display: none; }
  .hero__card {
    flex: 0 0 86%; scroll-snap-align: center;
    aspect-ratio: 3 / 4; min-height: 460px;
  }
}

/* swipe dots, mobile only */
.hero__dots { display: none; }
@media (max-width: 880px) {
  .hero__dots { display: flex; justify-content: center; gap: 8px; padding: 16px 0 4px; }
  .hero__dot {
    width: 24px; height: 3px; border: 0; padding: 0;
    background: var(--line-strong); cursor: pointer; transition: background 0.3s;
  }
  .hero__dot[aria-current="true"] { background: var(--mint); }
}

/* ---------- page hero (inner pages) ---------- */

.page-hero {
  position: relative; overflow: hidden;
  min-height: clamp(420px, 60vh, 640px);
  display: flex; align-items: flex-end;
}
.page-hero__body {
  position: relative; z-index: 2;
  width: 100%; max-width: var(--maxw); margin: 0 auto;
  padding: clamp(36px, 6vw, 80px) var(--gutter);
  display: flex; flex-direction: column; gap: 16px; align-items: flex-start;
}

/* ---------- cards ---------- */

.card {
  position: relative; overflow: hidden;
  background: var(--navy-card); color: var(--light);
  display: flex; flex-direction: column;
  border: 1px solid var(--line);
  transition: border-color 0.3s, transform 0.4s var(--ease);
}
.card:hover { border-color: rgba(143, 211, 217, 0.45); }
.card__media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--navy-tint); }
.card__body { padding: clamp(18px, 2vw, 26px); display: flex; flex-direction: column; gap: 12px; flex: 1; }
.card__title { font-size: 22px; font-weight: 500; }
.card__flag {
  position: absolute; top: 14px; left: 14px; z-index: 2;
  background: rgba(11, 23, 48, 0.72); backdrop-filter: blur(6px);
  padding: 5px 10px; font-size: 11px; letter-spacing: 0.18em; font-weight: 600; color: var(--light);
}
.card__price {
  position: absolute; top: 14px; right: 14px; z-index: 2;
  background: var(--mint); color: var(--navy);
  padding: 5px 10px; font-size: 13px; font-weight: 600;
}
.card__foot { margin-top: auto; padding-top: 6px; }

/* spec rows inside a tour card */
.specs { display: flex; flex-direction: column; gap: 0; margin: 4px 0; }
.spec {
  display: flex; justify-content: space-between; gap: 16px;
  padding: 9px 0; border-top: 1px solid var(--line);
  font-size: 13px;
}
.spec dt { color: var(--muted-soft); }
.spec dd { margin: 0; text-align: right; color: var(--light); }

/* feature tile (why / medical directions) */
.tile { display: flex; flex-direction: column; gap: 14px; }
.tile__icon { color: var(--mint); }
.section--light .tile__icon { color: #2C6E77; }

/* country block (work & travel) */
.country { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: clamp(24px, 4vw, 56px); align-items: center; }
.country:nth-child(even) .country__media { order: 2; }
.country__media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--navy-card); }

/* numbered step list */
.steps { display: flex; flex-direction: column; }
.step { display: grid; grid-template-columns: 44px 1fr; gap: 20px; }
.step__rail { display: flex; flex-direction: column; align-items: center; }
.step__node {
  width: 44px; height: 44px; flex: none;
  border: 1px solid var(--mint); color: var(--mint); background: var(--navy);
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 600; letter-spacing: 0.05em;
}
.step:last-child .step__node { background: var(--mint); color: var(--navy); }
.step__line { flex: 1; width: 1px; background: rgba(143, 211, 217, 0.45); min-height: 26px; }
.step:last-child .step__line { background: transparent; }
.step__body { padding-bottom: 34px; display: flex; flex-direction: column; gap: 8px; }
.step:last-child .step__body { padding-bottom: 0; }
.step__title { font-size: 19px; font-weight: 500; }
.step:last-child .step__title { color: var(--mint); }

.section--light .step__node { background: var(--light); border-color: #2C6E77; color: #2C6E77; }
.section--light .step:last-child .step__node { background: #2C6E77; color: var(--light); }
.section--light .step__line { background: rgba(44, 110, 119, 0.35); }
.section--light .step:last-child .step__title { color: #2C6E77; }

/* checklist */
.checks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.checks li { display: grid; grid-template-columns: 20px 1fr; gap: 12px; align-items: start; font-size: 16px; line-height: 1.6; }
.checks li::before { content: "✦"; color: var(--mint); font-size: 13px; line-height: 1.75; }
.section--light .checks li::before { color: #2C6E77; }

/* pill list */
.pills { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; margin: 0; padding: 0; }
.pill {
  border: 1px solid var(--line-strong); padding: 9px 16px;
  font-size: 14px; color: var(--light);
}
.section--light .pill { border-color: var(--line-dark); color: var(--navy); }

/* split promo band */
.promo { position: relative; overflow: hidden; min-height: clamp(380px, 52vh, 560px); display: flex; align-items: flex-end; }
.promo__body {
  position: relative; z-index: 2;
  max-width: var(--maxw); margin: 0 auto; width: 100%;
  padding: clamp(32px, 5vw, 72px) var(--gutter);
  display: flex; flex-direction: column; gap: 16px; align-items: flex-start;
}

/* stat / trip card */
.trip { border: 1px solid var(--line); padding: clamp(20px, 2.5vw, 30px); display: flex; flex-direction: column; gap: 16px; background: rgba(255, 255, 255, 0.02); }
.trip__city { font-size: 26px; font-weight: 300; }
.section--light .trip { border-color: var(--line-dark); background: rgba(11, 23, 48, 0.02); }

/* contact rows */
.contact-row { display: flex; flex-direction: column; gap: 6px; padding: 20px 0; border-top: 1px solid var(--line); }
.contact-row a { font-size: clamp(19px, 2.2vw, 26px); font-weight: 500; transition: color 0.2s; }
.contact-row a:hover { color: var(--mint); }
.section--light .contact-row { border-color: var(--line-dark); }

/* ---------- order modal ---------- */

.modal-scrim {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(5, 10, 22, 0.72);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center;
  padding: 20px; animation: fadeIn 0.25s ease;
}
.modal {
  width: min(460px, 100%);
  background: var(--navy); border: 1px solid var(--line-strong);
  padding: clamp(24px, 4vw, 36px);
  display: flex; flex-direction: column; gap: 20px;
  animation: fadeUp 0.35s var(--ease);
  max-height: calc(100vh - 40px); overflow-y: auto;
}
.modal__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-size: 11px; letter-spacing: 0.2em; color: var(--mint); font-weight: 500; text-transform: uppercase; }
.field input {
  height: 52px; padding: 0 14px;
  background: rgba(255, 255, 255, 0.04); color: var(--light);
  border: 1px solid var(--line-strong); font-size: 16px;
  transition: border-color 0.2s;
}
.field input:focus { border-color: var(--mint); outline: none; }
.field input::placeholder { color: rgba(244, 245, 247, 0.35); }
.field__error { font-size: 12px; color: #FF9B9B; min-height: 0; }

/* ---------- floating telegram ---------- */

.tg-float {
  position: fixed; right: clamp(14px, 3vw, 26px); bottom: clamp(14px, 3vw, 26px); z-index: 60;
  display: inline-flex; align-items: center; gap: 10px;
  height: 52px; padding: 0 18px;
  background: var(--mint); color: var(--navy);
  font-size: 13px; letter-spacing: 0.08em; font-weight: 600;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  transition: transform 0.25s var(--ease), background 0.25s;
}
.tg-float:hover { transform: translateY(-2px); background: var(--light); }
@media (max-width: 560px) {
  .tg-float { height: 52px; width: 52px; padding: 0; justify-content: center; border-radius: 50%; }
  .tg-float span { display: none; }
}

/* ---------- footer ---------- */

.footer { background: var(--navy-deep); border-top: 1px solid var(--line); padding: clamp(44px, 6vw, 72px) 0 32px; }
.footer__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 36px; }
.footer__links { display: flex; flex-direction: column; gap: 12px; }
.footer__links a { color: var(--muted); font-size: 15px; transition: color 0.2s; }
.footer__links a:hover { color: var(--mint); }
.footer__bottom {
  margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between;
  font-size: 13px; color: var(--muted-soft);
}

/* ---------- utility ---------- */

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--mint); color: var(--navy); padding: 12px 20px; font-weight: 600;
}
.skip-link:focus { left: 12px; top: 12px; }

.text-mint { color: var(--mint); }
.mt-auto { margin-top: auto; }
.flex-row { display: flex; flex-wrap: wrap; gap: 14px; }

/* Notice shown when the page is served without the Worker (static fallback) */
.env-note {
  background: rgba(143, 211, 217, 0.12); border-bottom: 1px solid rgba(143, 211, 217, 0.3);
  padding: 10px var(--gutter); font-size: 13px; color: var(--mint); text-align: center;
}
