/* Home page only. Shared primitives (.container, .section, .media-frame,
   .reveal, .route-line, buttons) live in base.css. */

/* ---- Hero (section 3.2) ---- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.hero__image {
  position: absolute;
  inset: 0;
  border-radius: 0;
  z-index: 0;
}

.hero__image img {
  height: 115%;
  object-position: center 60%;
}

.hero__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(10, 37, 64, 0.88) 0%,
    rgba(10, 37, 64, 0.45) 45%,
    rgba(10, 37, 64, 0.25) 100%
  );
}

.hero__content {
  position: relative;
  z-index: 1;
  padding-block: 8rem 5rem;
  max-width: 46rem;
}

.hero__eyebrow {
  color: var(--sunset);
}

.hero__eyebrow::before {
  background: var(--sunset);
}

.hero__headline {
  color: var(--warm-white);
  margin-block: 0.3em 0.4em;
  opacity: 0;
}

html:not(.js) .hero__headline {
  opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
  .hero__headline {
    opacity: 1;
  }
}

.hero__subline {
  color: rgba(251, 248, 242, 0.85);
  font-size: 1.05rem;
  max-width: 38ch;
  margin-bottom: 2rem;
}

.hero__actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ---- Stats strip (section 3.3) ---- */
.stats {
  padding-block: clamp(48px, 7vw, 80px);
}

.stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.stat {
  text-align: center;
}

.stat__number {
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  font-weight: 700;
  color: var(--navy);
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.stat__number::after {
  content: attr(data-suffix);
  color: var(--sunset);
}

.stat__label {
  margin-top: 0.6em;
  font-size: var(--fs-caption);
  color: var(--ink-soft);
  letter-spacing: 0.02em;
}

/* Drawn in by JS right after the number settles (section 3.3) */
.stat__underline {
  width: 40px;
  height: 3px;
  border-radius: 2px;
  background: var(--sunset);
  margin: 0.8em auto 0;
  transform: scaleX(0);
  transform-origin: center;
}

@media (max-width: 720px) {
  .stats__grid {
    grid-template-columns: repeat(2, 1fr);
    row-gap: 2.5rem;
  }
}

/* ---- Feature cards + route-line (section 3.4) ---- */
.features {
  padding-block: clamp(48px, 7vw, 80px);
}

.features__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.feature-card {
  text-align: left;
}

.feature-card__icon {
  width: 64px;
  height: 64px;
  color: var(--riviera);
  margin-bottom: 1rem;
}

.feature-card__icon[src$="icon-guide.svg"],
.feature-card__icon[src$="icon-options.svg"],
.feature-card__icon[src$="icon-landmark.svg"] {
  width: 57.6px;
  height: 57.6px;
}

.feature-card h3 {
  margin-bottom: 0.4em;
}

.feature-card p {
  font-size: var(--fs-caption);
}

@media (max-width: 860px) {
  .features__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .features__grid {
    grid-template-columns: 1fr;
  }
}

/* ---- Section intro (shared by several sections below) ---- */
.section__intro {
  max-width: 40rem;
  margin-bottom: 2.5rem;
}

/* ---- About (section 3.5: clip-path wipe + scale-on-scroll) ---- */
.about__grid {
  display: grid;
  grid-template-columns: 0.85fr 1fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}

.about__media {
  aspect-ratio: 6 / 7;
  /* JS animates clip-path from inset(0 100% 0 0) to inset(0 0 0 0) — the
     resting/no-JS state must show the full image, not a sliver. */
  clip-path: inset(0 0 0 0);
}

.about__copy h2 {
  margin-block: 0.3em 0.6em;
}

.about__copy p {
  margin-bottom: 1.25rem;
}

.about__list {
  margin-bottom: 2rem;
}

.about__list li {
  position: relative;
  padding-left: 1.6em;
  color: var(--ink-soft);
  margin-bottom: 0.6em;
}

.about__list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--sunset);
}

@media (max-width: 860px) {
  .about__grid {
    grid-template-columns: 1fr;
  }

  .about__media {
    aspect-ratio: 16 / 10;
  }
}

/* ---- Tours: tabbed grid (section 3.6) ---- */
.tours__tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}

.tours__tab {
  padding: 0.7em 1.4em;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--ink-soft);
  background: var(--sand);
  transition: background-color var(--dur-instant) var(--ease-out), color var(--dur-instant) var(--ease-out);
}

.tours__tab:hover {
  background: rgba(29, 132, 194, 0.16);
  color: var(--riviera-dark);
}

.tours__tab[aria-selected='true'] {
  background: var(--navy);
  color: var(--warm-white);
}

.tours__panel {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.tours__panel[hidden] {
  display: none;
}

.tour-card[hidden] {
  display: none;
}

.tour-card {
  display: block;
  color: inherit;
  text-decoration: none;
  background: var(--warm-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 10px 28px rgba(10, 37, 64, 0.09);
  transition: box-shadow var(--dur-fast) var(--ease-out), transform var(--dur-fast) var(--ease-out);
}

.tour-card:focus-visible {
  outline: 3px solid var(--riviera);
  outline-offset: 3px;
}

.tour-card:hover {
  box-shadow: 0 16px 38px rgba(10, 37, 64, 0.14);
  transform: translateY(-2px);
}

.tour-card__media {
  aspect-ratio: 4 / 3;
  border-radius: 0;
  cursor: pointer;
}

.tour-card__body {
  padding: 1.5rem;
}

.tour-card__meta {
  font-size: var(--fs-caption);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--sunset-dark);
  margin-bottom: 0.5em;
}

.tour-card__body h3 {
  font-size: 1.15rem;
  margin-bottom: 0.5em;
}

.tour-card__body p {
  font-size: 0.92rem;
  margin-bottom: 1rem;
}

.tour-card__body .tour-card__price {
  color: #2f6f4e;
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 0.75rem;
}

.tour-card__link {
  font-weight: 600;
  color: var(--riviera-dark);
}

.tour-card:hover .tour-card__link,
.tour-card:focus-visible .tour-card__link {
  color: var(--riviera);
}

@media (max-width: 960px) {
  .tours__panel {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .tours__panel {
    grid-template-columns: 1fr;
  }
}

/* ---- Destinations: horizontal strip (section 3.7) ---- */
.route-line {
  margin-block: 0 2.5rem;
}

.destinations__strip {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  padding-bottom: 1rem;
  margin: 0 calc(var(--container-pad) * -1);
  padding-inline: var(--container-pad);
  /* Thin, unobtrusive scrollbar so the strip still reads as a deliberate
     component, not a leaky overflow container. */
  scrollbar-width: thin;
  scrollbar-color: var(--riviera) transparent;
  cursor: grab;
  touch-action: pan-y;
  user-select: none;
}

.destinations__strip.is-dragging {
  cursor: grabbing;
  scroll-snap-type: none;
}

.destinations__strip img {
  -webkit-user-drag: none;
}

.destination-card {
  flex: 0 0 240px;
  scroll-snap-align: start;
}

.destination-card__media {
  aspect-ratio: 3 / 4;
  margin-bottom: 1rem;
}

.destination-card h3 {
  font-size: 1.05rem;
  text-align: center;
}

@media (max-width: 600px) {
  .destination-card {
    flex-basis: 200px;
  }
}

/* ---- Logo / platform marquee (section 3.8) ---- */
.marquee {
  padding-block: clamp(40px, 6vw, 64px);
  border-block: 1px solid var(--line);
  overflow: hidden;
}

.marquee__track {
  display: flex;
  gap: clamp(3rem, 8vw, 6rem);
  width: max-content;
  will-change: transform;
}

.marquee__item {
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--ink-soft);
  opacity: 0.6;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 0.5em;
}

.marquee__item span {
  color: var(--sunset);
}

@media (prefers-reduced-motion: reduce) {
  .destinations__strip {
    scroll-snap-type: none;
  }
}

/* ---- CTA band (section 3.9) ---- */
.cta-band {
  position: relative;
  overflow: hidden;
  padding-block: clamp(56px, 8vw, 96px);
}

.cta-band__image {
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: 0;
}

.cta-band__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(10, 37, 64, 0.82), rgba(10, 37, 64, 0.82));
}

.cta-band__inner {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 40rem;
}

.cta-band h2 {
  color: var(--warm-white);
  margin-bottom: 0.5em;
  opacity: 0;
}

html:not(.js) .cta-band h2 {
  opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
  .cta-band h2 {
    opacity: 1;
  }
}

.cta-band p {
  color: rgba(251, 248, 242, 0.9);
  margin-bottom: 2rem;
}

.cta-band__actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.cta-band .btn-outline {
  border-color: rgba(251, 248, 242, 0.6);
}
