/* Homepage sections */

/* ---------- Hero: indigo night, photo seen through the logo's arch ---------- */
.hero {
  position: relative; overflow: hidden;
  background: var(--indigo) var(--lattice-light);
  color: rgb(255 255 255 / .8);
  padding-block: clamp(3rem, 2rem + 4vw, 5.5rem) clamp(7rem, 5rem + 6vw, 9rem);
}
.hero__grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(2rem, 1rem + 4vw, 5rem); align-items: center; }
.hero__copy { display: grid; gap: var(--s-5); align-content: center; }
.hero h1 { font-size: var(--fs-hero); color: var(--white); letter-spacing: -.015em; }
.hero h1 em { font-style: normal; color: var(--saffron); display: block; }
.hero .eyebrow { color: var(--saffron); }
.hero__lead { font-size: var(--fs-lg); max-width: 34rem; color: rgb(255 255 255 / .75); }
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--s-3); margin-top: var(--s-2); }
.hero__note { display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-5); font-size: var(--fs-sm); color: rgb(255 255 255 / .6); }
.hero__note span { display: inline-flex; align-items: center; gap: 8px; }
.hero__note span::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--saffron); }

.hero__window { position: relative; justify-self: center; width: min(100%, 30rem); }
.hero__window::before {      /* saffron arch outline, offset like the logo frame */
  content: ""; position: absolute; inset: -14px 14px 14px -14px;
  border: 1.5px solid var(--saffron); border-radius: var(--arch); opacity: .7;
}
.hero__arch {
  position: relative; aspect-ratio: 4 / 5; max-width: 100%;
  border-radius: var(--arch); overflow: hidden; background: var(--indigo-2);
}
.hero__arch img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 50%; animation: hero-drift 18s var(--ease) both; }
@keyframes hero-drift { from { transform: scale(1.12); } to { transform: scale(1); } }
.hero__caption {
  position: absolute; left: -12px; bottom: 34px; z-index: 1;
  display: grid; gap: 2px; padding: var(--s-3) var(--s-4);
  background: var(--chalk); color: var(--indigo); border-radius: var(--r-sm); box-shadow: var(--shadow-2);
  font-size: var(--fs-xs);
}
.hero__caption b { font-family: var(--font-display); font-weight: 400; font-size: 1.05rem; }
.hero__caption span { color: var(--stone); font-variant-numeric: tabular-nums; }

.finder-wrap { position: relative; z-index: 2; margin-top: clamp(-6rem, -4rem - 3vw, -4.5rem); }
.finder-wrap .finder__title { grid-column: 1 / -1; display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s-2); align-items: baseline; }
.finder-wrap .finder__title b { font-family: var(--font-display); font-weight: 400; font-size: var(--fs-lg); color: var(--indigo); }
.finder-wrap .finder__title span { font-size: var(--fs-sm); color: var(--muted); }
.finder__result { grid-column: 1 / -1; font-size: var(--fs-sm); color: var(--indigo); }
.finder__result:empty { display: none; }

@media (max-width: 860px) {
  .hero__grid { grid-template-columns: minmax(0, 1fr); }
  .hero__window { order: -1; width: min(100%, 22rem); }
  .hero__caption { left: 0; }
}

/* ---------- Facts strip (confirmed facts only) ---------- */
.facts { padding-block: var(--s-7) 0; }
.facts ul { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--s-5); list-style: none; }
.facts li { display: grid; gap: 4px; padding-left: var(--s-4); border-left: 2px solid var(--saffron); }
.facts b { font-family: var(--font-display); font-weight: 400; font-size: 1.15rem; color: var(--indigo); line-height: 1.2; }
.facts span { font-size: var(--fs-sm); color: var(--muted); }
@media (max-width: 1000px) { .facts ul { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 640px) { .facts ul { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 400px) { .facts ul { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Destinations ---------- */
.dest-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s-7) var(--s-5); }
@media (max-width: 1000px) { .dest-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 720px) {
  .dest-grid { grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: 62%; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: var(--s-4); }
  .dest-grid > * { scroll-snap-align: start; }
}

/* ---------- Journey map ---------- */
.journey { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: var(--s-7); align-items: start; }
.map-card { position: relative; background: var(--chalk) var(--lattice); border: 1px solid var(--line); border-radius: var(--r-md); padding: var(--s-4); }
.map { width: 100%; height: auto; }
.map__land { fill: #f1e4c9; stroke: #d8c39a; stroke-width: 1.5; }
.map__fade stop { stop-color: var(--chalk); }
.map__sea { font-size: 16px; font-style: italic; fill: #8aa1b8; letter-spacing: .2em; font-family: var(--font-display); }
.map__atlas { fill: none; stroke: #b9a274; stroke-width: 1.5; stroke-dasharray: 1 7; stroke-linecap: round; }
.map__atlas-label { font-size: 11px; fill: #9a8457; letter-spacing: .25em; font-family: var(--font-body); font-weight: 700; }
.map__erg { fill: var(--saffron); opacity: .35; }
.map__route { fill: none; stroke: var(--indigo); stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; opacity: 0; transition: opacity var(--t-med); }
.map__route.is-active { opacity: 1; stroke-dasharray: 6 6; animation: route-march 1.2s linear infinite; }
@keyframes route-march { to { stroke-dashoffset: -12; } }
.map__city { cursor: pointer; }
.map__city circle { fill: var(--white); stroke: var(--indigo); stroke-width: 2; transition: r var(--t-fast), fill var(--t-fast); }
.map__city text { font-family: var(--font-body); font-size: 15px; font-weight: 700; fill: var(--indigo); paint-order: stroke; stroke: var(--chalk); stroke-width: 4px; stroke-linejoin: round; }
.map__city:hover circle, .map__city:focus-visible circle, .map__city.is-active circle { fill: var(--saffron); r: 9; }
.map__city.is-home circle { fill: var(--saffron); }
.map__city:focus { outline: none; }
.map__city:focus-visible text { text-decoration: underline; }
.map-note { margin-top: var(--s-2); font-size: var(--fs-xs); color: var(--muted); }

.route-picker { display: grid; gap: var(--s-4); }
.route-picker .cluster { gap: var(--s-2); }
.place-panel { display: grid; gap: var(--s-3); padding: var(--s-5); background: var(--white); border: 1px solid var(--line); border-radius: var(--r-md); min-height: 15rem; }
.place-panel h3 { font-size: var(--fs-xl); }
.place-panel dl { display: grid; grid-template-columns: auto 1fr; gap: 4px var(--s-4); margin: 0; font-size: var(--fs-sm); }
.place-panel dt { color: var(--muted); }
.place-panel dd { margin: 0; color: var(--fg); font-weight: 600; }
@media (max-width: 900px) { .journey { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Tours ---------- */
.tour-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-6) var(--s-5); }
@media (max-width: 1000px) { .tour-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .tour-grid { grid-template-columns: minmax(0, 1fr); } }
.price-bands { display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-5); margin-top: var(--s-6); font-size: var(--fs-sm); color: var(--muted); }
.price-bands b { color: var(--indigo); font-variant-numeric: tabular-nums; }

/* ---------- Sahara band ---------- */
.sahara { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(2rem, 1rem + 4vw, 5rem); align-items: center; }
.sahara__photo { position: relative; }
.sahara__photo .hero__arch { aspect-ratio: 4 / 5; }
.sahara__photo figcaption { margin-top: var(--s-3); font-size: var(--fs-xs); color: rgb(255 255 255 / .55); }
.sahara__copy { display: grid; gap: var(--s-5); min-width: 0; }
.exp-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-4); }
.sahara__times { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-4); padding-block: var(--s-5); border-block: 1px solid rgb(255 255 255 / .14); }
.sahara__times div { display: grid; gap: 2px; }
.sahara__times b { font-family: var(--font-display); font-weight: 400; font-size: 1.5rem; color: var(--saffron); font-variant-numeric: tabular-nums; }
.sahara__times span { font-size: var(--fs-xs); letter-spacing: .06em; color: rgb(255 255 255 / .6); }
@media (max-width: 900px) { .sahara { grid-template-columns: minmax(0, 1fr); } .sahara__photo { max-width: 26rem; } }
@media (max-width: 420px) { .exp-grid { grid-template-columns: minmax(0, 1fr); } .sahara__times { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Why / founder ---------- */
.why { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(2rem, 1rem + 4vw, 5rem); align-items: center; }
.why__portrait { position: relative; max-width: 26rem; }
.why__portrait .arch-card__frame { aspect-ratio: 4 / 5; }
.why__tag {
  position: absolute; right: -10px; bottom: 28px; padding: var(--s-3) var(--s-4);
  background: var(--indigo); color: var(--white); border-radius: var(--r-sm); font-size: var(--fs-sm); box-shadow: var(--shadow-2);
}
.why__tag b { display: block; font-family: var(--font-display); font-weight: 400; font-size: 1.2rem; }
.promises { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-6) var(--s-5); list-style: none; margin-top: var(--s-6); }
.promises li { display: grid; gap: var(--s-2); align-content: start; }
.promises h3 { font-size: var(--fs-lg); }
.promises p { font-size: var(--fs-sm); color: var(--muted); }
.promises svg { width: 30px; height: 30px; color: var(--saffron); }
@media (max-width: 900px) { .why { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 520px) { .promises { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Guide ---------- */
.guide-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-5); }
.guide-card { display: grid; gap: var(--s-3); text-decoration: none; color: inherit; }
.guide-card__media { aspect-ratio: 3 / 2; max-width: 100%; border-radius: var(--r-md); overflow: hidden; }
.guide-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.guide-card:hover img { transform: scale(1.05); }
.guide-card h3 { font-size: 1.35rem; }
.guide-card p { font-size: var(--fs-sm); color: var(--muted); }
@media (max-width: 900px) { .guide-grid { grid-template-columns: minmax(0, 1fr); } .guide-card { grid-template-columns: 40% 1fr; align-items: start; } .guide-card > div { display: grid; gap: var(--s-2); } }

/* ---------- Final CTA ---------- */
.cta { position: relative; overflow: hidden; color: var(--white); padding-block: clamp(5rem, 4rem + 5vw, 8rem); }
.cta > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cta::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgb(15 22 38 / .92) 0%, rgb(15 22 38 / .7) 50%, rgb(15 22 38 / .25) 100%); z-index: 1; }
.cta .wrap { position: relative; z-index: 2; }
.cta__box { display: grid; gap: var(--s-5); max-width: 36rem; }
.cta h2 { color: var(--white); font-size: var(--fs-3xl); }
.cta p { color: rgb(255 255 255 / .8); font-size: var(--fs-lg); }
.cta__contact { display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-5); font-size: var(--fs-sm); color: rgb(255 255 255 / .7); }
.cta__contact b { color: var(--white); font-variant-numeric: tabular-nums; user-select: all; }
