/* ============================================================
   Homepage — Kayak-style enterprise-minimal landing.

   - Hero is a FULL-BLEED photographic hero (design-system §5.2 /
     one-off spec §2): single destination image, dark lower
     gradient, eyebrow + display-xl H1 + lede + ONE CTA, lower-left.
     Reuses the shared .otg-hero / .otg-hero--landing component so it
     matches every other hero on the site.
   - "Featured" is a grid of flat hairline cards that are now whole
     clickable tiles with a quiet "View guide" affordance, plus an
     "All destinations" link in the section header.
   - "How we work" is a 3-up row of structured principle blocks
     (top rule + boxed line-icon + H3 + copy) on a white band.
   - "Browse by region" is a row of pill links (reuses .otg-chip).
   - "Take a guide with you." is a single CTA strip on the sunken
     surface, centred, one primary button, no imagery.

   Every value uses var(--otg-*) tokens. No hardcoded hex/font.
   ============================================================ */


/* ============================================================
   Hero — full-bleed photograph (overrides .otg-hero--landing
   height to feel more commanding on the homepage).
   Two-class selector (.otg-hero.otg-home-hero) so it wins over
   every single-class .otg-hero--landing rule at every tier.
   ============================================================ */
.otg-hero.otg-home-hero {
  min-height: 60vh;
}

@media (min-width: 1024px) {
  .otg-hero.otg-home-hero {
    min-height: min(74vh, 760px);
    max-height: 820px;
  }
}

/* Slightly stronger lower gradient so the headline always reads,
   whatever photograph is used. */
.otg-home-hero .otg-hero__overlay {
  background: linear-gradient(
    180deg,
    rgba(25, 32, 36, 0) 30%,
    rgba(25, 32, 36, 0.65) 100%
  );
}

/* Give the hero copy a touch more vertical breathing room than the
   shared default, and cap the lede for a tidy ragged edge. */
.otg-home-hero .otg-hero__lede {
  max-width: 54ch;
}


/* ============================================================
   Generic page sections (layout rhythm)
   ============================================================ */
.otg-home-section {
  padding-top: var(--otg-space-8);
  padding-bottom: var(--otg-space-8);
}

@media (min-width: 1024px) {
  .otg-home-section {
    padding-top: var(--otg-space-9);
    padding-bottom: var(--otg-space-9);
  }
}

/* ---------- Section header: title block left, link right ---------- */
.otg-home-section__head {
  display: flex;
  flex-direction: column;
  gap: var(--otg-space-4);
  margin-bottom: var(--otg-space-6);
}

@media (min-width: 768px) {
  .otg-home-section__head {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
    gap: var(--otg-space-6);
    margin-bottom: var(--otg-space-7);
  }
}

.otg-home-section__heading {
  max-width: var(--otg-container-prose);
}

.otg-home-section__title {
  font-family: var(--otg-font-display);
  font-size: var(--otg-text-display-md);
  line-height: var(--otg-leading-display-md);
  font-weight: var(--otg-weight-semibold);
  letter-spacing: var(--otg-tracking-display);
  color: var(--otg-text-primary);
  margin: 0;
}

.otg-home-section__subhead {
  margin: var(--otg-space-3) 0 0 0;
  font-size: var(--otg-text-body);
  line-height: var(--otg-leading-body);
  color: var(--otg-text-secondary);
}

/* "All destinations ›" link, right-aligned on tablet+ */
.otg-home-section__link {
  display: inline-flex;
  align-items: center;
  gap: var(--otg-space-1);
  flex-shrink: 0;
  font-family: var(--otg-font-sans);
  font-size: var(--otg-text-small);
  font-weight: var(--otg-weight-medium);
  color: var(--otg-text-primary);
  text-decoration: none;
  white-space: nowrap;
  transition: color var(--otg-duration-2) var(--otg-ease);
}

.otg-home-section__link::after {
  content: "\203A"; /* › */
  font-size: var(--otg-text-body);
  line-height: 1;
  transition: transform var(--otg-duration-2) var(--otg-ease);
}

.otg-home-section__link:hover {
  color: var(--otg-accent);
}

.otg-home-section__link:hover::after {
  transform: translateX(2px);
}


/* ============================================================
   Featured destinations — single-row horizontal carousel
   Cards stay on ONE row and overflow horizontally with
   scroll-snap; the user pages through them with the arrow
   controls below-right. (reuses .otg-card component)
   ============================================================ */
.otg-home-featured__track {
  display: flex;
  gap: var(--otg-space-5);
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  /* top room for the card hover-lift; bottom room for its shadow
     (overflow-y clips, so the padding box must be tall enough) */
  padding: var(--otg-space-2) 0 var(--otg-space-5);
  /* native scrollbar hidden — navigation is via the arrow controls */
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.otg-home-featured__track::-webkit-scrollbar { display: none; }

@media (min-width: 1024px) {
  .otg-home-featured__track { gap: var(--otg-space-6); }
}

/* Each card keeps a fixed share of the row and never shrinks, so
   the row overflows instead of wrapping. The fractional widths
   leave a peek of the next card to signal that the row scrolls. */
.otg-home-featured__track > .otg-card {
  flex: 0 0 82%;
  scroll-snap-align: start;
}

@media (min-width: 640px)  { .otg-home-featured__track > .otg-card { flex-basis: 46%; } }
@media (min-width: 768px)  { .otg-home-featured__track > .otg-card { flex-basis: 38%; } }
@media (min-width: 1024px) { .otg-home-featured__track > .otg-card { flex-basis: 31%; } }
@media (min-width: 1440px) { .otg-home-featured__track > .otg-card { flex-basis: 23.5%; } }
@media (min-width: 1920px) { .otg-home-featured__track > .otg-card { flex-basis: 19%; } }

/* "View guide ›" affordance pinned to the bottom of each card. */
.otg-home-featured .otg-card__cta {
  display: inline-flex;
  align-items: center;
  gap: var(--otg-space-1);
  margin-top: auto;          /* pin to card bottom so CTAs align across the row */
  padding-top: var(--otg-space-4);
  border-top: 1px solid var(--otg-border);
  width: 100%;
  font-family: var(--otg-font-sans);
  font-size: var(--otg-text-small);
  font-weight: var(--otg-weight-semibold);
  letter-spacing: 0.01em;
  color: var(--otg-text-primary);
  transition: color var(--otg-duration-2) var(--otg-ease);
}

.otg-home-featured .otg-card__cta::after {
  content: "\203A"; /* › */
  font-weight: var(--otg-weight-regular);
  font-size: var(--otg-text-body);
  line-height: 1;
  transition: transform var(--otg-duration-2) var(--otg-ease);
}

.otg-home-featured .otg-card:hover .otg-card__title {
  color: var(--otg-accent);
}

.otg-home-featured .otg-card:hover .otg-card__cta {
  color: var(--otg-accent);
}

.otg-home-featured .otg-card:hover .otg-card__cta::after {
  transform: translateX(3px);
}

/* ---------- Carousel controls (below the row, right-aligned) ---------- */
.otg-home-featured__controls {
  display: flex;
  justify-content: flex-end;
  gap: var(--otg-space-2);
  margin-top: var(--otg-space-4);
}

.otg-home-featured__arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: var(--otg-surface);
  border: 1px solid var(--otg-border-strong);
  border-radius: var(--otg-radius);
  color: var(--otg-text-primary);
  cursor: pointer;
  transition: background-color var(--otg-duration-2) var(--otg-ease),
              border-color var(--otg-duration-2) var(--otg-ease),
              color var(--otg-duration-2) var(--otg-ease),
              opacity var(--otg-duration-2) var(--otg-ease);
}

.otg-home-featured__arrow:hover {
  background: var(--otg-surface-sunken);
  border-color: var(--otg-text-primary);
}

.otg-home-featured__arrow:focus-visible {
  outline: 3px solid var(--otg-focus-ring);
  outline-offset: 2px;
}

.otg-home-featured__arrow svg {
  width: 20px;
  height: 20px;
}

.otg-home-featured__arrow[disabled] {
  opacity: 0.4;
  cursor: not-allowed;
}


/* ============================================================
   How we work — structured principle blocks on a white band
   ============================================================ */
.otg-home-how {
  background: var(--otg-surface);
  border-top: 1px solid var(--otg-border);
  border-bottom: 1px solid var(--otg-border);
}

.otg-home-how__grid {
  display: grid;
  gap: var(--otg-space-6);
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .otg-home-how__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--otg-space-7);
  }
}

@media (min-width: 1024px) {
  .otg-home-how__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.otg-home-how__item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--otg-space-3);
  border-top: 2px solid var(--otg-text-primary);
  padding-top: var(--otg-space-5);
}

.otg-home-how__icon-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border: 1px solid var(--otg-border);
  border-radius: var(--otg-radius);
  color: var(--otg-text-primary);
  margin-bottom: var(--otg-space-2);
}

.otg-home-how__icon {
  width: 24px;
  height: 24px;
  color: var(--otg-text-primary);
}

.otg-home-how__title {
  font-family: var(--otg-font-sans);
  font-size: var(--otg-text-h3);
  line-height: var(--otg-leading-h3);
  font-weight: var(--otg-weight-semibold);
  letter-spacing: var(--otg-tracking-normal);
  color: var(--otg-text-primary);
  margin: 0;
}

.otg-home-how__desc {
  font-size: var(--otg-text-body);
  line-height: var(--otg-leading-body);
  color: var(--otg-text-secondary);
  margin: 0;
  max-width: 42ch;
}

.otg-home-how__desc a {
  color: var(--otg-text-primary);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.otg-home-how__desc a:hover {
  color: var(--otg-accent);
}


/* ============================================================
   Browse by region — pill link row (reuses .otg-chip component)
   ============================================================ */
.otg-home-regions__row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--otg-space-3);
  padding: 0;
  margin: 0;
  list-style: none;
}

.otg-home-regions__row li {
  display: inline-flex;
}

.otg-home-regions__row .otg-chip {
  padding: 10px 18px;
  font-size: var(--otg-text-small);
  font-weight: var(--otg-weight-medium);
  border-radius: var(--otg-radius);
}

.otg-home-regions__row .otg-chip::after {
  content: "\203A"; /* › */
  margin-left: var(--otg-space-2);
  color: var(--otg-text-muted);
  font-weight: var(--otg-weight-regular);
  transition: transform var(--otg-duration-2) var(--otg-ease),
              color var(--otg-duration-2) var(--otg-ease);
}

.otg-home-regions__row .otg-chip:hover::after {
  color: var(--otg-accent);
  transform: translateX(2px);
}


/* ============================================================
   Shop CTA strip — sunken surface, centred, one primary CTA
   ============================================================ */
.otg-home-shop {
  background: var(--otg-surface-sunken);
  border-top: 1px solid var(--otg-border);
  border-bottom: 1px solid var(--otg-border);
  padding-top: var(--otg-space-9);
  padding-bottom: var(--otg-space-9);
}

@media (min-width: 1024px) {
  .otg-home-shop {
    padding-top: var(--otg-space-10);
    padding-bottom: var(--otg-space-10);
  }
}

.otg-home-shop__inner {
  max-width: var(--otg-container-prose);
  margin: 0 auto;
  text-align: center;
}

.otg-home-shop__title {
  font-family: var(--otg-font-display);
  font-size: var(--otg-text-display-md);
  line-height: var(--otg-leading-display-md);
  font-weight: var(--otg-weight-semibold);
  letter-spacing: var(--otg-tracking-display);
  color: var(--otg-text-primary);
  margin: 0;
}

.otg-home-shop__lede {
  margin: var(--otg-space-4) auto 0 auto;
  max-width: 48ch;
  font-size: var(--otg-text-body-lg);
  line-height: var(--otg-leading-body-lg);
  color: var(--otg-text-secondary);
}

.otg-home-shop__cta {
  margin: var(--otg-space-6) 0 0 0;
}
