/* ============================================================
   EXPERIENCE DETAIL — hero, legacy highlight cards, featured
   itineraries. The Section Builder sections that make up the rest
   of these pages are styled by page-destination-detail.css (dg-*),
   which is loaded alongside this file and defines the shared
   --dg-* layout tokens used below.
   Breakpoints: 900 (tablet portrait) · 560 (phones)
   ============================================================ */

/* HERO — full-bleed image, bottom-up scrim, text anchored bottom-left on the
   same content edge as every section below it */
#hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 85vh;
  min-height: clamp(560px, 84svh, 940px);
  background: #0d0d0d;
  overflow: hidden;
  isolation: isolate;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
}
.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  display: block;
}
/* Readability: a top fade for the nav plus a heavy bottom-up scrim, with a
   light base tint so text also holds on bright skies and snow. */
.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, rgba(0,0,0,.5) 0, rgba(0,0,0,0) 170px),
    /* left-to-right scrim behind the text column: the orange accent line needs a dark
       field (3:1+) even where the photo is bright (faces, cliffs, sky) */
    linear-gradient(90deg, rgba(8,8,8,.66) 0%, rgba(8,8,8,.58) 34%, rgba(8,8,8,.3) 58%, rgba(8,8,8,0) 82%),
    linear-gradient(to top, rgba(8,8,8,.9) 0%, rgba(8,8,8,.62) 36%, rgba(8,8,8,.4) 68%, rgba(8,8,8,.36) 100%);
}
/* Phones and tablets: the text block takes most of the hero height, so the
   scrim stays heavy higher up (passes on bright skies and white buildings). */
@media (max-width: 820px) {
  .hero-overlay {
    background:
      linear-gradient(to bottom, rgba(0,0,0,.5) 0, rgba(0,0,0,0) 150px),
      linear-gradient(to top, rgba(8,8,8,.92) 0%, rgba(8,8,8,.8) 42%, rgba(8,8,8,.52) 74%, rgba(8,8,8,.38) 100%);
  }
}
.hero-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--dg-inner-max);
  margin: 0 auto;
  padding: calc(var(--nav-h) + clamp(32px, 6vw, 72px)) var(--gutter) clamp(44px, 6.5vw, 88px);
}
.hero-inner > * {
  max-width: 780px;
}
/* the display title may run wider than the copy under it, so a long accent phrase
   ("Team Experiences.") stays on one line instead of dropping one word per line */
.hero-inner > .hero-title {
  max-width: min(100%, 1000px);
  text-wrap: balance;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  max-width: 100%;
  margin-bottom: clamp(16px, 2vw, 22px);
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(20, 16, 12, .55);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 2.2px;
  text-transform: uppercase;
  color: #fff;
}
.hero-eyebrow::before {
  content: '';
  flex-shrink: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--orange);
}
.hero-title {
  font-family: var(--f-display);
  font-size: clamp(40px, 7vw, 96px);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -.02em;
  color: #fff;
  margin-bottom: clamp(16px, 2vw, 24px);
  text-shadow: 0 2px 28px rgba(0, 0, 0, .35);
}
.hero-title em {
  color: var(--orange);
  font-style: italic;
  text-shadow: 0 2px 22px rgba(0, 0, 0, .55), 0 1px 3px rgba(0, 0, 0, .35);
}
.hero-sub {
  font-size: clamp(16px, 1.5vw, 19px);
  color: rgba(255, 255, 255, .9);
  max-width: 620px;
  line-height: 1.65;
  font-weight: 300;
  margin-bottom: clamp(24px, 3vw, 36px);
  text-shadow: 0 1px 14px rgba(0, 0, 0, .5);
}
.hero-inner .btn-primary {
  min-height: 50px;
  justify-content: center;
}

/* HIGHLIGHTS (legacy per-type layout, used when no Page Sections are set) */
.highlights-section {
  padding: var(--dg-pad-y) var(--gutter);
  background: var(--ivory);
}
.highlights-container {
  max-width: var(--dg-w);
  margin: 0 auto;
}
.highlights-heading {
  font-family: var(--f-display);
  font-size: clamp(30px, 3.6vw, 44px);
  font-weight: 900;
  line-height: 1.15;
  color: var(--black);
  margin-bottom: 0;
}
.highlights-heading em {
  color: var(--orange);
  font-style: italic;
}
.highlights-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: clamp(24px, 3vw, 40px);
}
.highlight-card {
  background: var(--white);
  border-radius: 16px;
  padding: clamp(24px, 2.6vw, 32px);
  transition: transform .3s, box-shadow .3s;
}
.highlight-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,.08);
}
.highlight-icon {
  width: 48px;
  height: 48px;
  background: var(--orange-pale);
  color: var(--orange);
  border-radius: 12px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}
.highlight-title {
  font-family: var(--f-display);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 12px;
  color: var(--black);
}
.highlight-desc {
  font-size: 15px;
  color: #5f5f58;
  line-height: 1.65;
}

/* FEATURED ITINERARIES */
.itineraries-section {
  padding: var(--dg-pad-y) var(--gutter);
  background: var(--ivory);
}
.itineraries-section.is-alt {
  background: var(--ivory-2);
}
.itineraries-container {
  max-width: var(--dg-w);
  margin: 0 auto;
}
.itineraries-heading {
  font-family: var(--f-display);
  font-size: clamp(30px, 3.6vw, 44px);
  font-weight: 900;
  line-height: 1.15;
  color: var(--black);
  margin-bottom: 0;
}
.itineraries-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: clamp(24px, 3vw, 40px);
}
.itinerary-card {
  display: block;
  background: var(--white);
  border-radius: 16px;
  overflow: hidden;
  transition: transform .4s, box-shadow .4s;
  cursor: pointer;
  text-decoration: none;
}
.itinerary-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 48px rgba(0,0,0,.1);
}
.itinerary-card-img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  height: auto;
  object-fit: cover;
  object-position: center;
}
.itinerary-card-body {
  padding: clamp(20px, 2.2vw, 24px);
}
.itinerary-region {
  display: block;
  font-size: 11px;
  color: var(--dg-ink);
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 700;
  margin-bottom: 8px;
}
.itinerary-name {
  font-family: var(--f-display);
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--black);
  line-height: 1.2;
}
.itinerary-desc {
  font-size: 14px;
  color: #5f5f58;
  line-height: 1.6;
  margin-bottom: 18px;
}
.itinerary-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 40px;
  padding: 10px 20px;
  font-size: 12px;
}

/* View all row */
.itineraries-viewall {
  text-align: center;
  padding-top: clamp(28px, 4vw, 48px);
}
.itineraries-viewall-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 14px 36px;
  border: 1.5px solid rgba(26,26,26,.25);
  border-radius: 60px;
  color: var(--black);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: all .25s;
}

/* Legacy highlight icons use the shared brand icon chip */
.why-brand-card:hover .why-brand-icon svg { stroke: #fff; }

/* ── Tablet portrait & below ── */
@media (max-width: 1000px) {
  .highlights-grid { gap: 20px; }
}
@media (max-width: 900px) {
  .highlights-grid { grid-template-columns: 1fr; gap: 16px; }

  /* Featured itineraries become a swipeable row with the next card peeking in */
  .itineraries-grid {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    margin-inline: calc(var(--gutter) * -1);
    padding: 4px var(--gutter) 16px;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: var(--gutter);
    overscroll-behavior-x: contain;
    scrollbar-width: none;
  }
  .itineraries-grid::-webkit-scrollbar { display: none; }
  .itinerary-card {
    flex: 0 0 min(78vw, 340px);
    scroll-snap-align: start;
  }
  .itinerary-card.reveal { opacity: 1; transform: none; }
}

/* ── Phones ── */
@media (max-width: 560px) {
  #hero {
    min-height: 88vh;
    min-height: min(88svh, 780px);
  }
  .hero-title { font-size: clamp(36px, 11.5vw, 48px); }
  .hero-sub { font-weight: 400; }
  .hero-eyebrow { letter-spacing: 1.6px; }
  .hero-inner .btn-primary { width: 100%; padding-left: 22px; padding-right: 22px; }
  .itineraries-viewall-btn { width: 100%; }
}
