/* ==========================================================================
   SKERRY (الشُعَب) — Fjord & Coastal Expeditions
   Deep Fjord #0B2229 · Paper #F3F1EC · Mist #E7E8E2 · Teal #1F4E5A · Beacon Red #C93A22
   Radar/Globe Hero + Interactive Departure Ticket + Sticky Fjord Route Map
   ========================================================================== */

:root {
  --bg: #F3F1EC;
  --paper-hi: #FAF9F5;
  --mist: #E7E8E2;
  --deep: #0B2229;
  --fg: #0F2A33;
  --teal: #1F4E5A;
  --slate: #4B5560;
  --moss: #5F7A4A;
  --red: #C93A22;
  --red-hi: #F0644C;
  --on-dark: #F1EFE9;
  --on-dark-soft: rgba(241, 239, 233, 0.76);
  --line: rgba(15, 42, 51, 0.14);
  --line-dark: rgba(241, 239, 233, 0.2);
  --font-serif: 'Amiri', Georgia, serif;
  --font-sans: 'IBM Plex Sans Arabic', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, monospace;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--bg); color: var(--fg); scroll-behavior: auto; overflow-x: clip; -webkit-font-smoothing: antialiased; }
body { margin: 0; min-height: 100vh; background: var(--bg); color: var(--fg); font-family: var(--font-sans); font-size: 16px; line-height: 1.62; overflow-x: clip; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; color: inherit; }

.container { width: min(1220px, 100% - 40px); margin-inline: auto; }
.mono { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; }

/* Fixed 72px Header (Transparent over Deep Hero -> Solid Paper on Scroll + Compass) */
.nav {
  position: fixed;
  top: 0;
  inset-inline: 0;
  height: 72px;
  z-index: 70;
  color: var(--on-dark);
  border-bottom: 1px solid rgba(241, 239, 233, 0.12);
  transition: background 0.35s ease, color 0.35s ease, border-color 0.35s ease;
}

.nav.is-solid {
  background: rgba(243, 241, 236, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  color: var(--fg);
  border-bottom-color: var(--line);
}

.nav-in { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.05rem; }
.brand-sub { font-family: var(--font-mono); font-size: 0.65rem; opacity: 0.65; padding-inline-start: 10px; border-inline-start: 1px solid currentColor; }

.nav-links { display: inline-flex; align-items: center; gap: 22px; font-size: 0.88rem; }
.nav-links a:hover { color: var(--red-hi); }

.nav-compass {
  display: none;
  align-items: center;
  gap: 10px;
  padding: 5px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--paper-hi);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  direction: ltr;
}
.nav.is-solid .nav-compass { display: inline-flex; }

.nav-right { display: inline-flex; align-items: center; gap: 14px; white-space: nowrap; }
.nav-btn { padding: 9px 18px; border-radius: 999px; background: var(--red); color: #ffffff; font-size: 0.84rem; font-weight: 600; white-space: nowrap; transition: background 0.22s ease; }
.nav-btn:hover { background: var(--red-hi); }

/* HERO (#top — Deep Fjord #0B2229 + Radar Canvas + Interactive Departure Ticket) */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 108px 0 26px;
  background: var(--deep);
  color: var(--on-dark);
  overflow: hidden;
  isolation: isolate;
}

.hero-bg { position: absolute; inset: 0; z-index: -3; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; opacity: 0.52; }
.hero-veil { position: absolute; inset: 0; z-index: -2; background: linear-gradient(180deg, rgba(11, 34, 41, 0.72) 0%, rgba(11, 34, 41, 0.36) 46%, rgba(11, 34, 41, 0.94) 100%); }

.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 32px; align-items: center; margin: auto 0; }
.hero-kicker { color: var(--red-hi); margin: 0 0 14px; }
.hero-title { margin: 0 0 18px; font-family: var(--font-serif); font-weight: 400; font-size: clamp(2.9rem, 5.8vw, 5.4rem); line-height: 1.06; }
.hero-title em { font-style: italic; color: var(--red-hi); }
.hero-lead { margin: 0 0 26px; max-width: 44ch; color: var(--on-dark-soft); font-size: 1.02rem; }

/* Radar/Globe Canvas Stage */
.radar-wrap { display: grid; place-items: center; }
#sk-radar { width: min(380px, 82vw); height: min(380px, 82vw); display: block; }

/* Interactive DEPARTURE REQUEST Ticket Bar */
.ticket {
  margin-top: 26px;
  display: grid;
  grid-template-columns: 1.2fr 1fr 0.9fr auto;
  gap: 12px;
  padding: 12px;
  border-radius: 14px;
  background: var(--paper-hi);
  color: var(--fg);
  box-shadow: 0 24px 56px rgba(0, 0, 0, 0.42);
  align-items: center;
}

.tk-cell { padding-inline: 12px; border-inline-end: 1px solid var(--line); }
.tk-cell:last-of-type { border-inline-end: none; }
.tk-cell label { display: block; font-family: var(--font-mono); font-size: 0.64rem; color: var(--red); margin-bottom: 4px; }
.tk-cell select { width: 100%; border: none; background: transparent; font-weight: 600; font-size: 0.9rem; outline: none; }

.stepper { display: inline-flex; align-items: center; gap: 12px; font-weight: 700; }
.stepper button { width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--line); background: var(--bg); cursor: pointer; }
.stepper button:hover { border-color: var(--red); color: var(--red); }

.tk-go { padding: 14px 24px; border-radius: 10px; border: none; background: var(--red); color: #ffffff; font-weight: 700; cursor: pointer; white-space: nowrap; }
.tk-go:hover { background: var(--red-hi); }

.hero-strip {
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid var(--line-dark);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 14px;
  color: var(--on-dark-soft);
}

/* Sticky Fjord Route Narrative (#route) */
.route-sec { position: relative; height: 250svh; background: var(--deep); color: var(--on-dark); }
.route-stage { position: sticky; top: 0; height: 100svh; display: flex; align-items: center; overflow: hidden; background: radial-gradient(circle at 65% 45%, rgba(31, 78, 90, 0.48), var(--deep) 70%); }
.route-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 40px; align-items: center; }
.rcards { position: relative; min-height: 220px; }
.rcard { position: absolute; inset: 0; padding: 26px; border-radius: 12px; background: rgba(11, 34, 41, 0.82); border: 1px solid var(--line-dark); border-inline-start: 3px solid var(--red-hi); opacity: 0; transform: translateY(14px); transition: all 0.4s var(--ease); }
.rcard.is-active { opacity: 1; transform: translateY(0); }
.rcard h3 { margin: 8px 0; font-family: var(--font-serif); font-size: 1.9rem; font-weight: 400; }
.rcard p { margin: 0; color: var(--on-dark-soft); }

.route-map { border-radius: 18px; border: 1px solid var(--line-dark); background: rgba(6, 20, 25, 0.72); padding: 16px; }
.route-hud { display: flex; justify-content: space-between; margin-top: 10px; color: var(--red-hi); direction: ltr; }

/* Sections on Warm Paper (#F3F1EC) */
.sec { padding: clamp(74px, 9vw, 126px) 0; }
.sec-mist { background: var(--mist); border-block: 1px solid var(--line); }
.h2 { margin: 0 0 14px; font-family: var(--font-serif); font-weight: 400; font-size: clamp(2.2rem, 4.6vw, 4rem); line-height: 1.08; }
.h2 em { font-style: italic; color: var(--red); }

/* 3D Tilt-Glare Tour Cards (#tours) */
.tgrid { margin-top: 32px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.tcard { border-radius: 14px; background: var(--paper-hi); border: 1px solid var(--line); overflow: hidden; transition: transform 0.28s var(--ease), box-shadow 0.28s ease; }
.tcard:hover { transform: translateY(-6px) rotateX(2deg) rotateY(-2deg); box-shadow: 0 26px 52px rgba(11, 34, 41, 0.14); }
.tcard-img { aspect-ratio: 16 / 11; overflow: hidden; background: var(--deep); position: relative; }
.tcard-img img, .tcard-img svg { width: 100%; height: 100%; object-fit: cover; display: block; }
.tbadge { position: absolute; top: 12px; inset-inline-start: 12px; padding: 4px 10px; border-radius: 999px; font-family: var(--font-mono); font-size: 0.64rem; color: #ffffff; }
.tbadge.is-hot { background: var(--red); }
.tbadge.is-ok { background: var(--moss); }
.tcard-body { padding: 20px; }
.tcard-body h3 { margin: 6px 0 8px; font-family: var(--font-serif); font-size: 1.55rem; font-weight: 400; }
.tcard-foot { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; }

/* Why & Guides & FAQ */
.why-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 30px; border-top: 1px solid var(--line); padding-top: 28px; }
.why-list span { color: var(--red); display: block; margin-bottom: 8px; }
.why-list h3 { margin: 0 0 6px; font-family: var(--font-serif); font-size: 1.45rem; font-weight: 400; }
.why-list p { margin: 0; font-size: 0.9rem; color: var(--slate); }

.guides-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 28px; }
.gcard { padding: 22px; border-radius: 12px; background: var(--paper-hi); border: 1px solid var(--line); }
.gcard h3 { margin: 0 0 4px; font-family: var(--font-serif); font-size: 1.45rem; }
.gcard small { color: var(--teal); display: block; margin-bottom: 8px; }

.faq-list details { border-top: 1px solid var(--line); padding: 16px 0; }
.faq-list details:last-child { border-bottom: 1px solid var(--line); }
.faq-list summary { cursor: pointer; font-weight: 700; list-style: none; display: flex; justify-content: space-between; }
.faq-list summary::after { content: '+'; color: var(--red); font-family: var(--font-mono); }
.faq-list details[open] summary::after { content: '−'; }
.faq-list p { margin: 10px 0 0; color: var(--slate); }

/* Dark Fjord Footer */
.sk-foot { background: var(--deep); color: var(--on-dark); padding: 68px 0 32px; }
.sk-foot-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 32px; padding-bottom: 38px; border-bottom: 1px solid var(--line-dark); }
.sk-foot h4 { margin: 0 0 12px; color: var(--red-hi); }
.sk-foot ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; font-size: 0.88rem; color: var(--on-dark-soft); }
.sk-foot a:hover { color: var(--red-hi); }
.sk-foot-bot { padding-top: 22px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px; font-size: 0.8rem; color: var(--on-dark-soft); }

@media (max-width: 980px) {
  .route-grid, .tgrid, .why-list, .guides-grid { grid-template-columns: 1fr; }
  .ticket { grid-template-columns: 1fr 1fr; }
  .tk-cell { border-inline-end: none; }
  .sk-foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .hero-grid { grid-template-columns: 1fr; }
  .container { width: calc(100% - 32px); }
  .nav-links, .brand-sub { display: none; }
  .ticket, .sk-foot-grid { grid-template-columns: 1fr; }
}
