/* ============================================================
   Morocco.so — home-v2.css
   Supplementary styles for the redesigned homepage (index-v2.html).
   Loaded AFTER assets/styles.css; it only adds new components
   (immersive photo hero, bento destination grid) and a few page-
   scoped tweaks under .vpage. The rest of the page reuses the
   existing design system (nav, search bar, cards, footer, tokens).
   ============================================================ */

/* Show statically-authored photos on this page without the JS loader
   (the old data-img/source.unsplash pipeline is dead). */
.vpage .photo img { opacity: 1; }

/* ============================================================
   1. Immersive hero
   ============================================================ */
.vhero {
  position: relative;
  min-height: 660px;
  height: calc(100svh - var(--nav-h));
  max-height: 820px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  isolation: isolate;
}
.vhero-bg { position: absolute; inset: 0; z-index: 0; }
.vhero-bg img {
  width: 100%; height: 100%; object-fit: cover; object-position: center 40%;
}
/* Legibility scrim — darker at the foot where the search sits */
.vhero::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(180deg, rgba(20,12,8,.46) 0%, rgba(20,12,8,.12) 32%, rgba(20,12,8,.30) 70%, rgba(20,12,8,.62) 100%);
}
.vhero-inner {
  position: relative; z-index: 2;
  width: 100%; max-width: 940px;
  padding: 0 24px;
  text-align: center;
  color: #fff;
}
.vhero h1 {
  color: #fff;
  font-size: clamp(34px, 4.8vw, 52px);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -.02em;
  margin: 0 0 14px;
  text-shadow: 0 1px 24px rgba(0,0,0,.32);
}
.vhero .sub {
  font-size: clamp(15px, 1.6vw, 19px);
  line-height: 1.5;
  color: rgba(255,255,255,.92);
  margin: 0 auto 28px;
  max-width: 620px;
  text-shadow: 0 1px 14px rgba(0,0,0,.34);
}

/* --- Hero search: reuse .search-tabs/.search-bar/.search-orb, restyle for photo --- */
.vhero .search-wrap { max-width: 940px; margin: 0; padding: 0; }
.vhero .search-tabs {
  display: flex; flex-wrap: wrap; gap: 6px;
  justify-content: center;
  margin-bottom: 14px;
}
.vhero .search-tab {
  display: inline-flex; align-items: center; gap: 7px;
  height: 40px; padding: 0 16px;
  border-radius: var(--r-full);
  font-size: 14px; font-weight: 600;
  color: #fff;
  background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.28);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  cursor: pointer;
  transition: background var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
}
.vhero .search-tab .icon { width: 18px; height: 18px; }
.vhero .search-tab:hover:not(.active) { background: rgba(255,255,255,.26); color: #fff; }
.vhero .search-tab.active {
  background: #fff; color: var(--ink); border-color: #fff;
}
/* The white pill bar already carries shadow; just round + size it */
.vhero .search-bar {
  box-shadow: 0 14px 40px rgba(0,0,0,.28);
  background: #fff;
}
/* Only the active service's form shows. .search-bar sets display:flex, which
   beats the UA [hidden] rule, so restore it explicitly for hidden forms. */
.search-bar[hidden] { display: none; }
/* Popular quick-links under the bar */
.vhero-quick {
  margin-top: 16px;
  display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: center;
  font-size: 14px; color: rgba(255,255,255,.9);
}
.vhero-quick .q-label { font-weight: 500; margin-right: 2px; }
.vhero-quick a {
  color: #fff; padding: 5px 12px; border-radius: var(--r-full);
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.24);
  transition: background var(--dur-fast) var(--ease);
}
.vhero-quick a:hover { background: rgba(255,255,255,.28); }

/* ============================================================
   2. Section intro (eyebrow + lead) — plain, no serif/italic
   ============================================================ */
.sec-intro { max-width: 720px; margin-bottom: 28px; }
.sec-intro .eyebrow {
  display: inline-block;
  font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--rausch); margin-bottom: 10px;
}
.sec-intro h2 {
  font-size: clamp(22px, 2.6vw, 30px); font-weight: 700; line-height: 1.18;
  letter-spacing: -.015em; color: var(--ink); margin: 0 0 8px;
}
.sec-intro p { font-size: 16px; line-height: 1.6; color: var(--muted); margin: 0; }
.sec-intro.center { margin-left: auto; margin-right: auto; text-align: center; }

/* ============================================================
   3. Bento destination grid
   ============================================================ */
.trip-bento {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 200px;
  gap: 14px;
}
.trip-tile {
  position: relative; overflow: hidden;
  border-radius: var(--r-md);
  display: block; isolation: isolate;
  background: var(--surface-strong);
}
.trip-tile img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 600ms var(--ease);
}
.trip-tile::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 38%, rgba(0,0,0,.62) 100%);
  transition: background var(--dur-base) var(--ease);
}
.trip-tile:hover img { transform: scale(1.05); }
.trip-tile:hover::after { background: linear-gradient(180deg, rgba(0,0,0,.05) 30%, rgba(0,0,0,.72) 100%); }
.trip-tile .lbl {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
  padding: 18px 20px; color: #fff;
}
.trip-tile .lbl h3 { color: #fff; font-size: 19px; font-weight: 700; line-height: 1.2; margin: 0 0 3px; }
.trip-tile .lbl span { font-size: 13px; color: rgba(255,255,255,.88); }
.trip-tile.feature { grid-column: span 2; grid-row: span 2; }
.trip-tile.feature .lbl h3 { font-size: 26px; }
.trip-tile.wide { grid-column: span 2; }

/* ============================================================
   4. Service rail — "plan the whole trip" (reuses .svc-card look,
      adds a compact horizontal variant on this page)
   ============================================================ */
.svc-line { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }

/* ============================================================
   5. Split CTA band (photo + text)
   ============================================================ */
.split-band {
  display: grid; grid-template-columns: 1.05fr 1fr;
  border-radius: var(--r-lg); overflow: hidden;
  border: 1px solid var(--hairline-soft);
  background: var(--surface-soft);
  min-height: 320px;
}
.split-band .media { position: relative; min-height: 240px; }
.split-band .media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.split-band .copy { padding: 40px 44px; align-self: center; }
.split-band .copy h2 { font-size: clamp(22px, 2.4vw, 28px); font-weight: 700; line-height: 1.2; margin: 0 0 12px; letter-spacing: -.01em; }
.split-band .copy p { font-size: 16px; line-height: 1.6; color: var(--body); margin: 0 0 20px; }

/* ============================================================
   6. Responsive
   ============================================================ */
@media (max-width: 900px) {
  .vhero { height: auto; min-height: 0; max-height: none; padding: 64px 0 56px; }
  .trip-bento { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 168px; }
  .trip-tile.feature { grid-column: span 2; grid-row: span 1; }
  .trip-tile.wide { grid-column: span 2; }
  .svc-line { grid-template-columns: repeat(2, 1fr); }
  .split-band { grid-template-columns: 1fr; }
  .split-band .media { min-height: 220px; }
}
@media (max-width: 560px) {
  .vhero h1 { font-size: 30px; }
  .trip-bento { grid-template-columns: 1fr; grid-auto-rows: 180px; }
  .trip-tile.feature, .trip-tile.wide { grid-column: span 1; grid-row: span 1; }
  .svc-line { grid-template-columns: 1fr; }
  .split-band .copy { padding: 28px 24px; }
  .vhero .search-tabs { gap: 5px; }
  .vhero .search-tab span { display: none; }
  .vhero .search-tab { padding: 0 13px; height: 38px; }
  .vhero .search-tab .icon { width: 20px; height: 20px; }
}
