/* ─── Home — the merged single-scroll page (was intro.js + plan.js/views.css) ───
   One continuous scroll: hero → facts → guide banner → route → itinerary →
   cost → honest notes → practical → clips → footer, under a sticky section
   nav. Uses the stone/pine/sea/ink tokens from style.css; both themes. */

.view-home {
  display: block;
}

/* ── Hero ─────────────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  overflow: hidden;
  min-height: 78vh;
  display: flex;
  align-items: flex-end;
  color: #fff;
}
.hero-media {
  position: absolute;
  inset: 0;
  margin: 0;
}
.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(10, 14, 12, 0.15) 0%,
    rgba(10, 14, 12, 0.35) 45%,
    rgba(10, 14, 12, 0.88) 100%
  );
}
.hero-credit {
  position: absolute;
  bottom: 12px;
  inset-inline-end: 14px;
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.75);
  z-index: 1;
}
.hero-copy {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 32px 16px 40px;
}
.eyebrow {
  font-size: var(--text-eyebrow);
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--brand-2);
  margin: 0 0 8px;
}
.eyebrow--on-media {
  color: rgba(255, 255, 255, 0.85);
}
.hero-verdict {
  font-family: var(--font-serif);
  font-size: var(--text-hero);
  font-weight: 800;
  line-height: 1.08;
  margin: 0 0 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 0.3ch;
}
.hero-verdict-lead {
  color: rgba(255, 255, 255, 0.82);
  font-weight: 500;
}
.hero-tagline {
  font-family: var(--font-serif);
  font-size: clamp(1.05rem, 3vw, 1.4rem);
  font-weight: 600;
  line-height: 1.5;
  margin: 0 0 14px;
}
.hero-tagline-line {
  display: inline-block;
}
/* Signature motif, part 2: the two-pole tagline tints into place once on
   load (pine line first, sea line just after) — the only other element
   sharing the pine→sea/animated language besides the route line. */
.hero-tagline-line--pine {
  color: #8fd6c0;
  animation: tagline-tint-pine 0.9s ease-out 0.1s both;
}
.hero-tagline-line--sea {
  color: #8fd2e8;
  animation: tagline-tint-sea 0.9s ease-out 0.4s both;
}
@keyframes tagline-tint-pine {
  from {
    color: rgba(255, 255, 255, 0.55);
  }
  to {
    color: #8fd6c0;
  }
}
@keyframes tagline-tint-sea {
  from {
    color: rgba(255, 255, 255, 0.55);
  }
  to {
    color: #8fd2e8;
  }
}
@media (prefers-reduced-motion: reduce) {
  .hero-tagline-line--pine,
  .hero-tagline-line--sea {
    animation: none;
  }
}
.hero-lede {
  max-width: 62ch;
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.98rem;
  line-height: 1.75;
  margin: 0 0 16px;
}
.hero-chip {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.28);
  font-size: 0.82rem;
  font-weight: 600;
}

/* ── Sticky section nav ───────────────────────────────────────────────────── */
.section-nav {
  position: sticky;
  top: var(--topbar-h);
  z-index: 55;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.section-nav-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 10px;
  display: flex;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
}
.section-nav-inner::-webkit-scrollbar {
  display: none;
}
.section-nav-link {
  flex: none;
  padding: 12px 12px;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--muted);
  border-bottom: 2px solid transparent;
  white-space: nowrap;
  transition:
    color 0.15s,
    border-color 0.15s;
}
.section-nav-link:hover {
  color: var(--ink);
}
.section-nav-link.is-active {
  /* Same pine→sea color language as the route line (--arc set per link in
     home.js) — the indicator sweeps pine-to-sea while scrolling down. */
  color: color-mix(in srgb, var(--sea) calc(var(--arc, 0) * 100%), var(--pine));
  border-bottom-color: color-mix(
    in srgb,
    var(--sea) calc(var(--arc, 0) * 100%),
    var(--pine)
  );
}

/* ── Facts row ────────────────────────────────────────────────────────────── */
.facts-row {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}
.facts-grid {
  max-width: var(--container);
  margin: 0 auto;
  padding: 18px 16px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 14px 20px;
}
.fact {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.fact-label {
  font-size: 0.74rem;
  color: var(--muted);
  font-weight: 600;
}
.fact-value {
  font-size: 0.94rem;
  color: var(--ink);
  font-weight: 700;
  line-height: 1.4;
}

/* ── Guide banner ─────────────────────────────────────────────────────────── */
.guide-banner {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 8px 16px;
  max-width: var(--container);
  margin: 22px auto;
  padding: 18px 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition:
    border-color 0.15s,
    box-shadow 0.15s;
}
.guide-banner:hover {
  border-color: var(--line-strong);
  box-shadow: var(--shadow);
}
.guide-banner-kicker {
  grid-column: 1;
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--brand-2);
}
.guide-banner-title {
  grid-column: 1;
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--ink);
}
.guide-banner-sub {
  grid-column: 1;
  font-size: 0.85rem;
  color: var(--ink-2);
}
.guide-banner-arrow {
  grid-column: 2;
  grid-row: 1 / span 3;
  color: var(--brand);
  display: inline-flex;
}
.guide-banner-arrow svg {
  width: 20px;
  height: 20px;
}

/* ── Fork-note callout (route → guide's ثيث/فالبونا decision block) ────────── */
.fork-note {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px 14px;
  margin-top: 18px;
  padding: 14px 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-inline-start: 3px solid var(--brand-2);
  border-radius: var(--radius);
  text-decoration: none;
  transition:
    border-color 0.15s,
    box-shadow 0.15s;
}
.fork-note:hover {
  border-color: var(--line-strong);
  box-shadow: var(--shadow-sm);
}
.fork-note-text {
  font-size: 0.88rem;
  line-height: 1.6;
  color: var(--ink-2);
}
.fork-note-cta {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--brand);
  white-space: nowrap;
}
.fork-note-arrow {
  width: 16px;
  height: 16px;
  display: inline-flex;
}

/* ── Shared section scaffold ──────────────────────────────────────────────── */
.sec {
  max-width: var(--container);
  margin: 0 auto;
  padding: 34px 16px;
  border-top: 1px solid var(--line);
}
.sec h2 {
  font-family: var(--font-serif);
  font-size: var(--text-h2);
  font-weight: 700;
  margin: 0 0 6px;
}
.sec-sub {
  color: var(--muted);
  font-size: 0.9rem;
  margin: 0 0 18px;
}
.cost-total-note {
  color: var(--muted);
  font-size: 0.84rem;
  margin-top: 10px;
}

/* ── Honest notes ─────────────────────────────────────────────────────────── */
.honest-cards {
  display: grid;
  gap: 14px;
}
.honest-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-inline-start: 3px solid var(--brand-2);
  border-radius: var(--radius);
  padding: 16px 18px;
}
.honest-card-label {
  display: block;
  font-size: 0.76rem;
  font-weight: 800;
  color: var(--brand-2);
  margin-bottom: 6px;
}
.honest-card p {
  margin: 0;
  color: var(--ink-2);
  line-height: 1.75;
}

/* ── Practical ─────────────────────────────────────────────────────────────── */
.practical-list {
  display: grid;
  gap: 16px;
}
.p-item-title {
  font-size: 0.95rem;
  font-weight: 700;
  margin: 0 0 4px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.p-item-title::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand);
  flex: none;
}
.p-item-text {
  margin: 0;
  color: var(--ink-2);
  line-height: 1.75;
}

/* ── Footer ───────────────────────────────────────────────────────────────── */
.site-footer {
  max-width: var(--container);
  margin: 0 auto;
  padding: 28px 16px 56px;
  text-align: center;
}
.footer-credit {
  color: var(--muted);
  font-size: 0.85rem;
}

@media (max-width: 480px) {
  .hero {
    min-height: 84vh;
  }
  .guide-banner {
    grid-template-columns: 1fr;
  }
  .guide-banner-arrow {
    grid-row: auto;
    grid-column: 1;
  }
}
