/* V41 refinement: clean header, taller inner heroes, coordinated footer and focused quote page. */

:root {
  --v40-inner-hero-height: 480px;
  --v40-section-title: clamp(36px, 3.2vw, 48px);
  --v40-cta-title: clamp(36px, 3.4vw, 50px);
}

/* Restore the original, navigation-only header proportions. */
@media (min-width: 1041px) {
  .site-header {
    height: 78px;
    padding-top: 0;
  }

  .site-header.is-scrolled {
    height: 68px;
  }
}

/* Keep secondary labels secondary across the complete site. */
.eyebrow {
  font-size: 12px;
  letter-spacing: .14em;
}

/* Compact, consistent inner-page hero system. */
.inner-hero,
.inner-hero-content,
.services-page .services-hero,
.services-page .services-hero .inner-hero-content,
.cities-page .cities-hero,
.cities-page .cities-hero .inner-hero-content,
.rates-page-v25 .rates-hero-v25,
.rates-page-v25 .rates-hero-v25 .inner-hero-content,
.about-page-v29 .about-hero-v28,
.about-page-v29 .about-hero-v28 .inner-hero-content,
.faq-page-v36 .faq-hero-v36,
.faq-page-v36 .faq-hero-v36 .inner-hero-content,
.quote-page-v37 .quote-hero-v37,
.quote-page-v37 .quote-hero-v37 .inner-hero-content {
  min-height: var(--v40-inner-hero-height);
}

.inner-hero-content,
.quote-page-v37 .quote-hero-v37 .inner-hero-content,
.faq-page-v36 .faq-hero-v36 .inner-hero-content {
  justify-content: center;
  padding-block: 46px;
}

.inner-hero h1,
.services-page .inner-hero h1,
.cities-page .cities-hero h1,
.rates-page-v25 .rates-hero-v25 h1,
.about-page-v29 .about-hero-v28 h1,
.quote-page-v37 .quote-hero-v37 h1 {
  max-width: 780px;
  font-size: clamp(44px, 3.8vw, 58px);
  line-height: 1.04;
  letter-spacing: -.025em;
}

.inner-hero-lead,
.services-page .inner-hero-lead,
.cities-page .cities-hero .inner-hero-lead,
.rates-page-v25 .rates-hero-v25 .inner-hero-lead,
.about-page-v29 .about-hero-v28 .inner-hero-lead,
.quote-page-v37 .quote-hero-v37 .inner-hero-lead {
  max-width: 720px;
  margin: 20px 0 26px;
  font-size: 16px;
  line-height: 1.65;
}

/* Fleet remains image-led, but now uses the same heading band rhythm. */
.fleet-hero-v19 {
  min-height: 390px;
}

.fleet-hero-v19 h1 {
  font-size: clamp(44px, 3.8vw, 58px);
}

/* Same-level section and CTA headings no longer jump in scale between pages. */
.inner-cta h2,
.services-page .services-cta h2,
.cities-page .cities-cta-v11 h2,
.rates-page-v25 .rates-cta-v25 h2,
.about-page-v29 .about-cta-v31 h2,
.faq-page-v36 .faq-cta-v35 h2 {
  max-width: 760px;
  font-size: var(--v40-cta-title) !important;
  line-height: 1.08;
  letter-spacing: -.018em;
}

.cities-page .coverage-head-v11 h2,
.cities-page .search-head-v11 h2,
.cities-page .journeys-head-v12 h2,
.cities-page .seo-summary-v11 h2,
.rates-overview-head-v25 h2,
.rates-reference-head-v25 h2,
.rates-route-copy-v25 h2,
.rates-factors-head-v25 h2,
.services-page .intro-grid h2,
.services-page .business-solutions-heading h2,
.services-page .support-showcase-heading h2,
.services-page .coordination-heading h2 {
  font-size: var(--v40-section-title);
}

.inner-cta p:not(.eyebrow) {
  font-size: 16px;
  line-height: 1.7;
}

/* Equal image footprints for cards at the same hierarchy. */
.services-page .car-service-card > img {
  height: 195px;
  object-fit: cover;
}

.services-page .business-story-media,
.services-page .business-story-media img {
  height: 176px;
  min-height: 176px;
  object-fit: cover;
}

.services-page .support-card > img {
  height: 170px;
  object-fit: cover;
}

.cities-page .journey-image-v12 {
  height: 245px;
}

/* Requested gold treatment for equivalent representative-case labels. */
.services-page details.case-note summary {
  color: var(--gold) !important;
}

/* The service overview labels now mirror the four actual content sections. */
.services-page .services-jump {
  gap: 12px 24px;
}

.services-page .services-jump a {
  font-size: 12px;
  letter-spacing: .055em;
}

.legal-hero {
  padding-block: 54px 48px;
}

.legal-hero h1 {
  font-size: clamp(42px, 4.5vw, 58px);
}

/* Payment and direct contact read as one balanced footer group. */
.footer-grid {
  grid-template-columns: 1.28fr .78fr .68fr 1.42fr;
}

.payment-section .payment-grid {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 8px;
}

.payment-section .payment-brand,
.payment-section .payment-brand:nth-child(n) {
  width: 34px;
  height: 26px;
  flex: 0 0 34px;
}

.payment-section .payment-brand img,
.payment-section .payment-brand:nth-child(n) img {
  width: 28px;
  height: 21px;
  object-fit: contain;
}

.payment-section .footer-contact {
  display: grid;
  gap: 7px;
  margin-top: 19px;
  padding-top: 17px;
  border-top: 1px solid rgba(255, 255, 255, .12);
  color: var(--gold-hover);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.45;
}

.payment-section .footer-contact a,
.payment-section .footer-contact span {
  color: var(--gold-hover);
  overflow-wrap: anywhere;
}

/* The company history is an anchor, not a secondary eyebrow. */
.about-page-v29 .about-story-head-v29 > .eyebrow {
  margin-bottom: 15px;
  color: var(--gold);
  font-family: "Newsreader", Georgia, serif;
  font-size: clamp(25px, 2.2vw, 34px);
  font-weight: 600;
  letter-spacing: -.01em;
  line-height: 1;
  text-transform: none;
}

/* Quote page: the form is the action; its hero no longer repeats the CTA. */
.quote-page-v37 .quote-aside .contact-note a {
  color: var(--gold);
  font-size: 20px;
  font-weight: 800;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

@media (max-width: 1040px) {
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .payment-section {
    grid-column: 1 / -1;
  }

  .main-nav {
    top: 78px;
  }
}

@media (max-width: 760px) {
  :root {
    --v40-inner-hero-height: 500px;
    --v40-section-title: clamp(34px, 10vw, 43px);
    --v40-cta-title: clamp(34px, 10vw, 43px);
  }

  .site-header {
    height: 70px;
    padding-top: 0;
  }

  .main-nav {
    top: 70px;
  }

  .eyebrow {
    margin-bottom: 13px;
    font-size: 12px;
  }

  .inner-hero-content,
  .quote-page-v37 .quote-hero-v37 .inner-hero-content,
  .faq-page-v36 .faq-hero-v36 .inner-hero-content {
    justify-content: flex-end;
    padding-block: 40px;
  }

  .inner-hero h1,
  .services-page .inner-hero h1,
  .cities-page .cities-hero h1,
  .rates-page-v25 .rates-hero-v25 h1,
  .about-page-v29 .about-hero-v28 h1,
  .quote-page-v37 .quote-hero-v37 h1 {
    font-size: clamp(38px, 11vw, 48px);
    line-height: 1.02;
  }

  .services-page .services-hero .inner-hero-content {
    padding-block: 32px;
  }

  .services-page .services-hero h1 {
    font-size: 36px;
    line-height: 1.01;
  }

  .services-page .services-hero .inner-hero-lead {
    font-size: 15px;
    line-height: 1.58;
  }

  .inner-hero-lead,
  .services-page .inner-hero-lead,
  .cities-page .cities-hero .inner-hero-lead,
  .rates-page-v25 .rates-hero-v25 .inner-hero-lead,
  .about-page-v29 .about-hero-v28 .inner-hero-lead,
  .quote-page-v37 .quote-hero-v37 .inner-hero-lead {
    margin: 17px 0 22px;
  }

  .fleet-hero-v19 {
    min-height: 330px;
  }

  .fleet-hero-v19 h1 {
    font-size: clamp(40px, 12vw, 50px);
  }

  .inner-cta {
    padding-block: 64px;
  }

  .services-page .car-service-card > img,
  .services-page .support-card > img,
  .cities-page .journey-image-v12 {
    height: 205px;
  }

  .services-page .business-story-media,
  .services-page .business-story-media img {
    height: 180px;
    min-height: 180px;
  }

  .services-page .services-jump {
    gap: 0;
  }

  .services-page .services-jump a {
    width: 100%;
    padding-block: 11px;
    border-bottom: 1px solid rgba(7, 52, 58, .09);
  }

  .legal-hero {
    padding-block: 46px 42px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .payment-section {
    grid-column: auto;
  }

  .payment-section .payment-grid {
    gap: 7px;
  }

  .payment-section .payment-brand,
  .payment-section .payment-brand:nth-child(n) {
    width: 32px;
    height: 25px;
    flex-basis: 32px;
  }

  .quote-page-v37 .quote-aside .contact-note a {
    font-size: 19px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .services-page .car-service-card,
  .services-page .business-story,
  .services-page .support-card,
  .cities-page .journey-card-v12 {
    transition: none;
  }
}

/* V57: compact Cities & Routes navigation family. */
.main-nav .nav-cities {
  position: relative;
  display: flex;
  align-self: stretch;
  align-items: center;
}

.main-nav .nav-cities-row {
  display: flex;
  align-items: center;
}

.main-nav .nav-cities-toggle {
  display: inline-flex;
  width: 26px;
  height: 38px;
  align-items: center;
  justify-content: center;
  margin: 0 -7px 0 1px;
  padding: 0;
  color: rgba(255, 255, 255, .82);
  border: 0;
  background: transparent;
  cursor: pointer;
}

.main-nav .nav-cities-toggle svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
  transition: transform 220ms ease;
}

.main-nav .nav-cities.is-open .nav-cities-toggle svg {
  transform: rotate(180deg);
}

.main-nav .nav-cities-menu {
  position: absolute;
  z-index: 130;
  top: calc(100% - 1px);
  left: 50%;
  width: min(350px, calc(100vw - 32px));
  padding: 6px;
  visibility: hidden;
  opacity: 0;
  color: #fff;
  border-top: 2px solid var(--gold);
  background: rgba(4, 43, 48, .97);
  box-shadow: 0 18px 40px rgba(3, 27, 31, .34);
  backdrop-filter: blur(12px);
  transform: translate(-50%, 8px);
  pointer-events: none;
  transition: opacity 180ms ease, transform 220ms ease, visibility 180ms ease;
}

.main-nav .nav-cities-menu a {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 9px;
  align-items: center;
  padding: 9px 10px;
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  white-space: normal;
}

.main-nav .nav-cities-menu a:last-child {
  border-bottom: 0;
}

.main-nav .nav-cities-menu a::after {
  display: none;
}

.main-nav .nav-cities-menu a:hover,
.main-nav .nav-cities-menu a[aria-current="page"] {
  background: rgba(255, 255, 255, .07);
}

.main-nav .nav-cities-menu span {
  color: var(--gold-hover);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .13em;
  line-height: 1.4;
  text-transform: uppercase;
}

.main-nav .nav-cities-menu strong {
  font-family: "Inter", Arial, sans-serif;
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0;
  line-height: 1.3;
}

.main-nav .nav-cities-overview {
  background: rgba(191, 158, 96, .12);
}

@media (min-width: 1041px) {
  .main-nav .nav-cities:hover .nav-cities-menu,
  .main-nav .nav-cities:focus-within .nav-cities-menu,
  .main-nav .nav-cities.is-open .nav-cities-menu {
    visibility: visible;
    opacity: 1;
    transform: translate(-50%, 0);
    pointer-events: auto;
  }
}

@media (max-width: 1040px) {
  .main-nav .nav-cities {
    display: block;
    align-self: auto;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
  }

  .main-nav .nav-cities-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 48px;
  }

  .main-nav .nav-cities-row > a {
    border-bottom: 0;
  }

  .main-nav .nav-cities-toggle {
    width: 48px;
    height: 48px;
    margin: 0;
    justify-self: end;
    border-left: 1px solid rgba(255, 255, 255, .1);
  }

  .main-nav .nav-cities-menu {
    position: static;
    width: auto;
    max-height: 0;
    padding: 0 8px;
    visibility: hidden;
    overflow: hidden;
    opacity: 1;
    border-top: 0;
    background: rgba(3, 30, 34, .55);
    box-shadow: none;
    transform: none;
    pointer-events: none;
    transition: max-height 360ms var(--ease-premium), padding 220ms ease, visibility 220ms ease;
  }

  .main-nav .nav-cities.is-open .nav-cities-menu {
    max-height: 430px;
    padding: 7px 8px 10px;
    visibility: visible;
    pointer-events: auto;
  }

  .main-nav .nav-cities-menu a,
  .main-nav .nav-cities-menu a:last-child {
    grid-template-columns: 86px minmax(0, 1fr);
    padding: 10px 12px;
    color: #fff;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
    background: transparent;
  }

  .main-nav .nav-cities-menu a:hover,
  .main-nav .nav-cities-menu a[aria-current="page"] {
    background: rgba(255, 255, 255, .055);
  }

  .main-nav .nav-cities-menu span {
    color: var(--gold-hover);
  }

  .main-nav .nav-cities-menu strong {
    font-family: "Inter", Arial, sans-serif;
    font-size: 13px;
    font-weight: 650;
  }
}

/* V57: compact fixed conversion access on desktop; touch-safe mobile bar. */
.mobile-menu-quote {
  display: none;
}

.mobile-contact-bar {
  position: fixed;
  z-index: 1200;
  right: 14px;
  bottom: 14px;
  display: flex;
  width: 162px;
  flex-direction: column;
  gap: 5px;
  filter: drop-shadow(0 10px 20px rgba(3, 27, 31, .24));
}

.mobile-contact-action {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 10px;
  border: 1px solid rgba(191, 158, 96, .72);
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: .05em;
  line-height: 1.2;
  text-align: center;
  text-transform: uppercase;
  transition: transform 180ms ease, background-color 180ms ease;
}

.mobile-contact-action:hover {
  transform: translateY(-2px);
}

.mobile-contact-whatsapp {
  color: #fff;
  background: var(--dark-soft);
}

.mobile-contact-whatsapp svg {
  width: 16px;
  height: 16px;
  flex: none;
  fill: none;
  stroke: var(--gold);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.55;
}

.mobile-contact-quote {
  color: #12272b;
  background: var(--gold);
}

@media (max-width: 1040px) {
  .main-nav .mobile-menu-quote {
    display: inline-flex;
    min-height: 50px;
    align-items: center;
    justify-content: center;
    margin-top: 14px;
    padding: 0 24px;
    color: #12272b;
    border: 1px solid var(--gold);
    background: var(--gold);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .09em;
    text-transform: uppercase;
  }

  .main-nav .mobile-menu-quote::after {
    display: none;
  }
}

@media (max-width: 760px) {
  footer {
    padding-bottom: calc(82px + env(safe-area-inset-bottom, 0px));
  }

  .mobile-contact-bar {
    right: 12px;
    bottom: calc(10px + env(safe-area-inset-bottom, 0px));
    left: 12px;
    display: grid;
    width: auto;
    grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
    gap: 0;
    overflow: hidden;
    border: 1px solid rgba(191, 158, 96, .62);
    background: var(--dark);
    box-shadow: 0 14px 38px rgba(3, 27, 31, .34);
    filter: none;
  }

  .mobile-contact-bar.is-quote-page {
    grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  }

  .mobile-contact-action {
    display: inline-flex;
    min-width: 0;
    min-height: 54px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 13px;
    border: 0;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .055em;
    line-height: 1.2;
    text-align: center;
    text-transform: uppercase;
  }

  .mobile-contact-whatsapp svg { width: 20px; height: 20px; }
}

/* V58: compact, brand-aligned analytics consent controls. */
.cookie-consent {
  position: fixed;
  z-index: 1400;
  bottom: 16px;
  left: 16px;
  display: grid;
  width: min(560px, calc(100vw - 32px));
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 16px 18px;
  color: #fff;
  border-top: 2px solid var(--gold);
  background: rgba(4, 43, 48, .98);
  box-shadow: 0 18px 46px rgba(3, 27, 31, .34);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 180ms ease, transform 220ms ease;
}

.cookie-consent.is-visible {
  opacity: 1;
  transform: none;
}

.cookie-consent p {
  margin: 0;
  color: rgba(255, 255, 255, .84);
  font-size: 12px;
  line-height: 1.55;
}

.cookie-consent-actions {
  display: flex;
  gap: 7px;
  align-items: center;
}

.cookie-consent-button,
.cookie-consent-privacy,
.cookie-preferences-button {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  font-family: "Inter", Arial, sans-serif;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .055em;
  line-height: 1;
  text-transform: uppercase;
  cursor: pointer;
}

.cookie-consent-button {
  color: #fff;
  border: 1px solid rgba(191, 158, 96, .7);
  background: transparent;
}

.cookie-consent-accept {
  color: #12272b;
  background: var(--gold);
}

.cookie-consent-privacy {
  min-height: 36px;
  color: var(--gold-hover);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.cookie-preferences-button {
  min-height: 40px;
  margin-top: 8px;
  color: #12272b;
  border: 1px solid var(--gold);
  background: var(--gold);
}

@media (max-width: 760px) {
  .cookie-consent {
    right: 10px;
    bottom: calc(76px + env(safe-area-inset-bottom, 0px));
    left: 10px;
    width: auto;
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 15px;
  }

  .cookie-consent-actions {
    display: grid;
    grid-template-columns: 1fr 1fr auto;
  }

  .cookie-consent-button,
  .cookie-consent-privacy {
    min-height: 40px;
  }
}
