:root {
  --layout-content: 76rem;
  --layout-gutter: clamp(1.125rem, 3.5vw, 3.5rem);
  --layout-gap: clamp(1rem, 1.9vw, 1.625rem);
  --layout-section: clamp(2.75rem, 5.4vw, 5rem);
  --layout-split: clamp(1.75rem, 4.8vw, 4.5rem);
  --layout-panel: clamp(1.125rem, 2.2vw, 2rem);
}

/* Align the header, hero, photography, and section headings on the same edges. */
:is(.boss-home, .service-page, .boss-selfdrive) .container,
.boss-home .hero-vip .hero-content {
  width: min(var(--layout-content), calc(100% - 2 * var(--layout-gutter)));
  max-width: none;
  margin-inline: auto;
}
.journey-page {
  --page-max: var(--layout-content);
  --page-gutter: var(--layout-gutter);
  --page-edge: max(var(--page-gutter), calc((100% - var(--page-max)) / 2));
}
.journey-page .container { width: 100%; }
:is(.boss-home, .service-page, .boss-selfdrive, .journey-page) main h2 {
  text-wrap: balance;
}
:is(.boss-home, .service-page, .boss-selfdrive, .journey-page) main :is(h1, h2, h3) {
  overflow-wrap: break-word;
}
:is(.boss-home, .service-page, .boss-selfdrive) .header .nav-wrap { gap: clamp(.75rem, 1.7vw, 1.5rem); }
@media (min-width: 1081px) {
  :is(.boss-home, .service-page, .boss-selfdrive) .header nav {
    column-gap: clamp(.65rem, 1.15vw, 1.15rem);
    row-gap: 0;
    justify-content: center;
    flex-wrap: wrap;
    font-size: .875rem;
    line-height: 1.4;
  }
  :is(.boss-home, .service-page, .boss-selfdrive) .header nav a { padding-block: .65rem; }
}
@media (max-width: 1080px) {
  :is(.boss-home, .service-page, .boss-selfdrive) .header nav.open {
    max-height: calc(100dvh - 8.5rem);
    overflow-y: auto;
    overscroll-behavior: contain;
  }
}
:is(.boss-home, .service-page, .boss-selfdrive) .nav-cta { flex-shrink: 0; }

/* Long translated menus may run to a second line at laptop widths. */
@media (min-width: 1081px) {
  :is(.boss-home, .service-page, .boss-selfdrive) .header .nav-wrap {
    height: auto;
    min-height: 5.25rem;
  }
}
@media (min-width: 1081px) and (max-width: 1199px) {
  .boss-home .header .nav-wrap { position: relative; }
  .boss-home .header .nav-cta { display: inline-flex; margin-left: auto; }
  .boss-home .header .menu-toggle {
    display: grid;
    place-items: center;
    min-width: 2.75rem;
    min-height: 2.75rem;
    margin-left: auto;
  }
  .boss-home .header .nav-cta + .menu-toggle { margin-left: 0; }
  .boss-home .header nav {
    display: none;
    position: absolute;
    z-index: 1;
    inset: 100% 0 auto;
    flex-direction: column;
    align-items: stretch;
    flex-wrap: nowrap;
    gap: 0;
    max-height: calc(100dvh - 8.5rem);
    overflow-y: auto;
    padding: 1rem 1.375rem;
    background: var(--boss-cream);
    border: 1px solid var(--boss-rule);
    box-shadow: 0 .75rem 1.25rem #22190616;
  }
  .boss-home .header nav.open { display: flex; }
  .boss-home .header nav a { min-height: 2.75rem; padding: .75rem .25rem; }
}
.boss-home .header .nav-cta > span {
  display: inline-block;
  flex: none;
  width: 1rem;
  height: 1rem;
  font-size: 0;
  background-color: currentColor;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 13L13 3M4 3h9v9' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* Home: six featured vehicles form two rows on a wide screen. */
.boss-home main > :is(.section, .home-extra-services, .about-section, .contact-section) {
  padding-block: var(--layout-section);
}
.boss-home #dich-vu { margin-top: 0; }
.boss-home .assurances { border-bottom: 0; }
.boss-home .section-top,
.boss-home .reviews-heading { margin-bottom: clamp(1.375rem, 2.5vw, 2.25rem); }
.boss-home .section-top p,
.boss-home .service-list small,
.boss-home .extra-service-copy p,
.boss-home .reviews-bottom p { font-size: .9375rem; line-height: 1.7; }
.boss-home .service-layout,
.boss-home #ve-boss .about-layout,
.boss-home .faq-section { gap: var(--layout-split); }
.boss-home .service-photo {
  height: auto;
  max-width: 33rem;
  aspect-ratio: 1.96;
}
.boss-home .service-list > button { padding-block: clamp(1.25rem, 2.2vw, 1.875rem); }
.boss-home .filters { gap: .45rem; }
.boss-home .filters button {
  min-height: 2.5rem;
  padding: .5rem .9rem;
  border-radius: 2rem;
  font-size: .8125rem;
  line-height: 1.4;
}
.boss-home :is(.fleet-grid, .home-extra-grid, .google-reviews-grid, .route-grid) {
  gap: var(--layout-gap);
}
.boss-home .fleet-grid { align-items: stretch; }
.boss-home .fleet-expand[hidden] { display: none; }
.boss-home .fleet-card:not([hidden]) { display: flex; flex-direction: column; min-width: 0; }
.boss-home :is(.fleet-card, .extra-service-card, .google-review-card) {
  border-radius: .5rem;
}
.boss-home :is(.fleet-card .car-image, .extra-service-photo) {
  overflow: hidden;
  border-radius: .45rem .45rem 0 0;
}
.boss-home .fleet-card .car-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  padding: var(--layout-panel) var(--layout-panel) 0;
}
.boss-home .fleet-card .car-info > p {
  min-height: 0;
  font-size: .9375rem;
  line-height: 1.65;
}
.boss-home .fleet-card .car-spec {
  margin-top: auto;
  flex-wrap: wrap;
  align-items: center;
  row-gap: .375rem;
}
.boss-home .fleet-card .car-spec > span { font-size: .8125rem; }
.boss-home .fleet-card :is(.car-select,.vehicle-consult,.sedona-consult) {
  min-height: 2.75rem;
  font-size: .875rem;
}
.boss-home .extra-service-copy,
.boss-home .google-review-card { padding: var(--layout-panel); }
.boss-home .extra-service-action .btn { font-size: .875rem; }
.boss-home .google-review-card blockquote { font-size: clamp(1.125rem, 1.55vw, 1.375rem); }
.boss-home .footer-main > div:not(:first-child),
.boss-home .footer-main p { font-size: .875rem; line-height: 1.7; }
.boss-home .footer-main > div > strong,
.boss-home .footer-bottom { font-size: .75rem; }
.boss-home .footer-main > div { min-width: 0; }
.boss-home .footer-main a { overflow-wrap: anywhere; }

@media (min-width: 901px) {
  .boss-home .hero.hero-vip { height: clamp(39rem, 52vw, 51rem); }
  .boss-home .hero-vip .hero-content { padding-block: 5rem; }
}
@media (min-width: 761px) {
  .boss-home .section-top > p { max-width: 35ch; }
  .boss-home .service-layout { grid-template-columns: minmax(0,.93fr) minmax(0,1.07fr); }
  .boss-home .faq-section { grid-template-columns: minmax(0,.82fr) minmax(0,1.18fr); }
}
@media (min-width: 1080px) {
  .boss-home .fleet-grid { grid-template-columns: repeat(3, minmax(0,1fr)); }
}

/* Vehicle, route and specialist service pages use the same reading rhythm. */
:is(.vehicle-page, .sedona-page) :is(.vehicle-hero, .sedona-hero),
.journey-page :is(.hero, .section, .closing) { padding-block: var(--layout-section); }
:is(.vehicle-page, .sedona-page) .pricing-section { padding-block: var(--layout-section); }
:is(.vehicle-page, .sedona-page) :is(.vehicle-lead, .sedona-lead),
.journey-page .hero .intro,
.pricing-page .fare-copy p,
.boss-wedding .wedding-copy > p,
.boss-selfdrive .drive-copy > p,
.boss-vespa .vespa-copy > p {
  max-width: 51ch;
  font-size: 1rem;
  line-height: 1.75;
}
:is(.vehicle-page, .sedona-page) :is(.vehicle-intro, .sedona-intro) h1 {
  font-size: clamp(2.4rem, 4.5vw, 3.9rem);
  line-height: 1.13;
  letter-spacing: -.035em;
  text-wrap: balance;
}
:is(.vehicle-page, .sedona-page) :is(.vehicle-gallery, .sedona-gallery) figcaption {
  min-height: 0;
  font-size: .8125rem;
  line-height: 1.55;
}
:is(.vehicle-page, .sedona-page) :is(.vehicle-specs, .sedona-specs) span,
:is(.vehicle-page, .sedona-page) :is(.vehicle-airport-price, .sedona-airport-price) small {
  font-size: .8125rem;
}
.journey-page :is(.section-heading > p, .service-card > p, .journey-list p,
  .journey > div > p:not(.eyebrow), .faq details p, .conditions ul) {
  font-size: .9375rem;
  line-height: 1.75;
}
.journey-page :is(.section-heading, .conditions-grid),
:is(.vehicle-page, .sedona-page) .section-top { gap: var(--layout-gap); }
.journey-page .service-options { gap: var(--layout-gap); }
.journey-page .service-card { padding: var(--layout-panel); }
:is(.service-page, .boss-selfdrive) :is(.price-controls, .rental-controls) > * { min-width: 0; }
:is(.pricing-page .pricing-section, .boss-wedding .wedding-section, .boss-vespa .vespa-section) {
  padding-block: var(--layout-section);
}
.boss-selfdrive .drive-hero { padding-top: var(--layout-section); }
:is(.boss-selfdrive .drive-pricing, .pricing-page .fare-lookup,
    .boss-wedding .wedding-collection, .boss-vespa .vespa-pricing) {
  min-width: 0;
}
@media (min-width: 761px) {
  .vehicle-page .vehicle-hero-grid,
  .sedona-page .sedona-hero-grid,
  .journey-page .hero,
  .pricing-page .fare-intro,
  .boss-wedding .wedding-intro,
  .boss-selfdrive .drive-intro,
  .boss-vespa .vespa-intro {
    grid-template-columns: minmax(0,.94fr) minmax(0,1.06fr);
    gap: var(--layout-split);
  }
  .journey-page :is(.journey, .faq) { gap: var(--layout-split); }
}

/* Phone: keep price and contact actions reachable, including at larger text sizes. */
@media (max-width: 760px) {
  .boss-home .hero-vip .hero-content { padding-block: 2.1rem 1.625rem; }
  .boss-home .hero-vip .hero-content p { font-size: .9375rem; line-height: 1.65; }
  .boss-home .quick-book :is(select, input) { font-size: 1rem; }
  .boss-home .section-top p { max-width: 44ch; margin-top: .75rem; }
  .boss-home .service-photo { max-width: none; }
  .boss-home .home-extra-grid { gap: 1.5rem; }
  .boss-home .google-rating { min-width: 0; }
  .boss-home .service-layout,
  .boss-home #ve-boss .about-layout,
  .boss-home .faq-section { gap: 1.5rem; }
  .boss-home .filters button { min-height: 2.75rem; }
  .boss-home .footer-main { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .boss-home .footer-main .brand { padding-inline: 0; }
  .journey-page .closing .actions { flex-wrap: wrap; }
  .journey-page .header-back { text-align: end; }
  :is(.vehicle-page, .sedona-page) :is(.vehicle-hero-grid, .sedona-hero-grid) {
    gap: 1.375rem;
  }
  :is(.vehicle-page, .sedona-page) :is(.vehicle-hero, .sedona-hero),
  .journey-page .hero { padding-block: 1.5rem 2rem; }
  :is(.service-page .service-page-footer, .boss-selfdrive .rental-footer, .journey-page footer) .container {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    align-items: center;
    gap: .75rem 1.5rem;
    font-size: .8125rem;
    line-height: 1.55;
  }
  :is(.service-page .service-page-footer, .boss-selfdrive .rental-footer, .journey-page footer) .container > :first-child {
    flex-basis: 100%;
  }
}
