/*
 * desktop.css: desktops (1024px and up). Loaded with media="(min-width: 1024px)".
 * Same range as Tailwind's lg: and up.
 */

/* === Hero === */
/* Taller hero, 4 features in one line, form aligned right. */
.hero {
  min-height: calc(100svh - 80px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-block: 5rem 2.5rem;
}
.hero__features {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 4rem;
}
:is(.hero, .booking-panel) .taxi-booking-wrapper {
  margin-right: 0;
}

/* === Split Media === */
/* Space between image and text on wide screens (text side gets the padding). */
.split-media .row:not(.row--reverse) .content {
  padding-left: 2.5rem;
}
.split-media .row--reverse .content {
  padding-right: 2.5rem;
}

/* === Split Cards === */
/* 2 x 3 grid with lines between cards (no outer frame). */
.split-cards .content {
  padding-right: 3rem;
}
.split-cards__grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 0;
  border-left: 1px solid var(--color-border);
}
.split-cards__grid .card {
  padding: 2rem 2rem;
}
.split-cards__grid .card:nth-child(odd) {
  border-right: 1px solid var(--color-border);
}
.split-cards__grid .card:nth-last-child(-n + 2) {
  border-bottom: 0;
}

/* === Feature Banner === */
/* 2 features per row (2 × 2) on the dark left part, thin line between the two columns. */
.feature-banner__list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 3rem 0;
  max-width: 44rem;
  margin-top: 3.5rem;
}
.feature-banner__item {
  padding-inline: 2.5rem;
}
.feature-banner__item:nth-child(odd) {
  padding-left: 0;
}
.feature-banner__item:nth-child(even) {
  border-left: 1px solid rgba(255, 255, 255, .12);
}

/* === CTA Banner === */
.cta-banner {
  padding-block: 6.5rem;
}

/* === Site Footer === */
.site-footer__grid {
  grid-template-columns: 1.1fr 1fr 1.3fr 1.3fr;
  gap: 3rem;
}

/* === Image Slider === */
/* Thin chevron arrows outside the photos. */
.image-slider__arrow {
  position: absolute;
  top: 50%;
  z-index: 2;
  display: flex;
  width: 3rem;
  height: 3rem;
  align-items: center;
  justify-content: center;
  border: 0;
  background: transparent;
  font-size: 1.75rem;
  color: var(--color-primary);
  cursor: pointer;
  translate: 0 -50%;
}
.image-slider__arrow--prev {
  left: -1.5rem;
}
.image-slider__arrow--next {
  right: -1.5rem;
}
.image-slider__arrow:hover {
  color: var(--color-primary-hover);
}

/* === FAQ === */
/* Two columns of questions. */
.faq__columns {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
}

/* === Split Media: stretch === */
/* .split-media--stretch: the image is as tall as the text column ("as much image as content"). */
.split-media--stretch .row {
  align-items: stretch;
}
.split-media--stretch .media {
  aspect-ratio: auto;
  height: 100%;
  min-height: 26rem;
}

/* === Split Statement === */
/* Two halves side by side; text aligned to the page container. */
.split-statement {
  grid-template-columns: 1fr 1fr;
}
.split-statement__inner {
  max-width: 45rem;
  padding: 6rem 4rem;
}
.split-statement__dark .split-statement__inner {
  margin-left: auto;
}

/* === Key Stats === */
/* As many columns as numbers (1 to 4). */
.key-stats__list--1 { grid-template-columns: minmax(0, 24rem); justify-content: center; }
.key-stats__list--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 56rem; }
.key-stats__list--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.key-stats__list--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* === Pricing === */
.pricing-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

/* === Highlight Cards === */
.highlight-cards {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.highlight-card {
  min-height: 32rem;
  padding: 4.5rem 4rem;
}

/* === Hero Slider === */
.hero-slider__arrow {
  display: flex;
}

/* === Tile Grid === */
/* 4 columns, 2 rows: the large tile takes the first column on both rows. */
.tile-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: 15rem;
}
.tile--large {
  grid-column: auto;
  grid-row: span 2;
}

/* === Panel / Feature Cards === */
.panel {
  padding: 5.5rem 6rem;
}
.feature-cards {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2rem;
}

/* === Contact page === */
.contact-section .row {
  align-items: flex-start;
}
.contact-section .content {
  padding-right: 3rem;
}
.form-card {
  padding: 3rem;
}
.page-banner {
  padding-block: 8rem 7rem;
}

/* === Packages === */
.package-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.steps { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.pricing-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.aside-card { margin-left: 2rem; }

/* === Header: dropdown menu === */
#primary-menu .menu-item-has-children {
  position: relative;
}
#primary-menu .sub-menu {
  position: absolute;
  top: 100%;
  left: -1rem;
  z-index: 50;
  min-width: 17rem;
  padding: .6rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-top: 2px solid var(--color-primary);
  border-radius: 0 0 8px 8px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, .45);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity .2s ease, transform .2s ease, visibility .2s;
}
#primary-menu .menu-item-has-children:hover > .sub-menu,
#primary-menu .menu-item-has-children:focus-within > .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: none;
}
#primary-menu .sub-menu a {
  display: block;
  padding: .7rem .9rem !important;
  border-radius: 4px;
  white-space: nowrap;
}
#primary-menu .sub-menu a:hover {
  background: var(--color-surface-hover);
}

/* === Fact Bar / Service page / Link Cards === */
.fact-bar__list { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.service-body .row { align-items: flex-start; }
.service-body__content { padding-right: 3rem; }
.service-sidebar { position: sticky; top: 6.5rem; }
.link-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* === Site Header (home) === */
.home .hero {
  padding-top: calc(0rem + 5.5rem);
  min-height: 100svh;
}

/* === Image Slider: arrows === */
/* Never let the arrows widen the page; when the container fills the screen, put them over the photos. */
.image-slider {
  overflow-x: clip;
}
@media (max-width: 1520px) {
  .image-slider__arrow {
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 999px;
    background: rgba(0, 0, 0, .65);
    font-size: 1.1rem;
  }
  .image-slider__arrow--prev { left: 1.75rem; }
  .image-slider__arrow--next { right: 1.75rem; }
}

/* === Legal Pages === */
/* Index on the left (sticky), text card on the right. */
.legal__layout {
  grid-template-columns: 19rem minmax(0, 1fr);
  align-items: start;
  gap: 3rem;
}
.legal__aside {
  position: sticky;
  top: 6.5rem;
}
.legal__card {
  padding: 3.5rem 4rem;
}

/* === Panel / Feature Cards: column count follows the number of cards === */
/* 4 cards → one row of 4 (never 3 + 1 alone); 2 cards → 2 columns. */
.feature-cards:has(> :nth-child(4):last-child) {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.5rem;
}
.feature-cards:has(> :nth-child(2):last-child) {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

/* === Booking Wizard === */
/* Steps on the left, summary sticks on the right. */
.booking-howto { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.car-choice { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.booking-wizard__layout { grid-template-columns: minmax(0, 1fr) 22rem; gap: 2.5rem; }
.booking-wizard__main { padding: 2.75rem; }
.booking-wizard__aside { position: sticky; top: 6.5rem; }
