/* Britannia Cars — shared inner-page visual system */

body.page-services .page-hero-bg { background-image: url('images/hero-services-overview-v1.jpg') !important; background-position: center 56% !important; }
body.page-airport .page-hero-bg { background-image: url('images/service-airport-v1.jpg') !important; background-position: center 54% !important; }
body.page-corporate .page-hero-bg { background-image: url('images/service-corporate-v1.jpg') !important; background-position: center 50% !important; }
body.page-weddings .page-hero-bg { background-image: url('images/service-weddings-v1.jpg') !important; background-position: center 52% !important; }
body.page-hospital .page-hero-bg { background-image: url('images/service-hospital-v1.jpg') !important; background-position: center 52% !important; }
body.page-long-distance .page-hero-bg { background-image: url('images/service-long-distance-v1.jpg') !important; background-position: center 54% !important; }
body.page-group-hire .page-hero-bg { background-image: url('images/service-group-hire-v1.jpg') !important; background-position: center 52% !important; }
body.page-fleet .page-hero-bg { background-image: url('images/hero-fleet-v1.jpg') !important; background-position: center 56% !important; }
body.page-about .page-hero-bg { background-image: url('images/hero-about-v2.jpg') !important; background-position: center 54% !important; }
body.page-reviews .page-hero-bg { background-image: url('images/hero-reviews-v1.jpg') !important; background-position: center 53% !important; }
body.page-contact .page-hero-bg { background-image: url('images/hero-contact-v1.jpg') !important; background-position: center 52% !important; }
body.page-privacy .page-hero-bg,
body.page-terms .page-hero-bg { background-image: url('images/hero-privacy-v1.jpg') !important; background-position: center 52% !important; }

.whatsapp-float {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 1200;
  width: 54px;
  height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  font-size: 28px;
  text-decoration: none;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .32);
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease;
}

.whatsapp-float:hover {
  background: #20bd5a;
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 14px 34px rgba(0, 0, 0, .42);
}

.whatsapp-float:focus-visible,
body[class*="page-"] a:focus-visible,
body[class*="page-"] button:focus-visible {
  outline: 2px solid var(--gold-light, #e8c97a);
  outline-offset: 4px;
}

.fleet-card-image {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.rating-summary {
  max-width: 900px;
  margin-inline: auto;
  text-align: center;
}

.legal-content {
  max-width: 960px;
  margin-inline: auto;
}

/* Shared hero geometry keeps every inner page attached to the header and
   removes the oversized empty area created by bottom-aligned page copy. */
:root {
  --inner-max: 1200px;
  --inner-gutter: 20px;
  --inner-hero-height: clamp(400px, 52svh, 460px);
  --inner-section-space: 64px;
  --inner-mobile-header-height: 80px;
}

body[class*="page-"] .page-hero {
  position: relative !important;
  width: 100%;
  height: auto !important;
  min-height: var(--inner-hero-height) !important;
  margin: 0 !important;
  padding: calc(var(--inner-mobile-header-height) + 24px) var(--inner-gutter) 40px !important;
  display: flex !important;
  align-items: center !important;
  overflow: hidden !important;
  isolation: isolate;
}

body[class*="page-"] .page-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-repeat: no-repeat !important;
  background-size: cover !important;
  transform: none;
}

body[class*="page-"] .page-hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(8, 8, 7, .96) 0%, rgba(8, 8, 7, .86) 34%, rgba(8, 8, 7, .38) 72%, rgba(8, 8, 7, .2) 100%),
    linear-gradient(0deg, rgba(8, 8, 7, .42) 0%, rgba(8, 8, 7, 0) 48%) !important;
}

body[class*="page-"] .page-hero-content {
  position: relative;
  z-index: 2;
  width: min(100%, var(--inner-max));
  max-width: var(--inner-max) !important;
  margin: 0 auto;
}

body[class*="page-"] .page-hero-content > * {
  max-width: 700px;
}

body[class*="page-"] .page-eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}

body[class*="page-"] .page-eyebrow-line {
  width: 36px;
  height: 1px;
  flex: 0 0 36px;
  background: var(--gold);
}

body[class*="page-"] .page-eyebrow span {
  color: var(--gold);
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: .18em;
  text-transform: uppercase;
}

body[class*="page-"] .page-title {
  max-width: 760px;
  margin: 0 0 14px;
  color: var(--white);
  font-family: var(--serif);
  font-size: clamp(40px, 8vw, 56px) !important;
  font-weight: 300;
  line-height: 1.04 !important;
  text-wrap: balance;
}

body[class*="page-"] .page-title em {
  color: var(--gold-light);
  font-style: italic;
}

body[class*="page-"] .page-subtitle {
  max-width: 610px !important;
  margin: 0;
  color: rgba(232, 228, 220, .8) !important;
  font-family: var(--sans);
  font-size: 15px !important;
  font-weight: 300;
  line-height: 1.7 !important;
}

body[class*="page-"] .breadcrumb {
  position: relative;
  z-index: 2;
  min-height: 48px;
  margin: 0 !important;
  padding: 0 var(--inner-gutter) !important;
  display: flex;
  align-items: center;
}

body[class*="page-"] .breadcrumb-inner {
  width: min(100%, var(--inner-max));
  max-width: var(--inner-max) !important;
  margin-inline: auto;
  font-size: 12px;
  line-height: 1.5;
}

body[class*="page-"] nav#navbar + .page-hero,
body[class*="page-"] .page-hero + .breadcrumb,
body[class*="page-"] .breadcrumb + .page-first-content {
  margin-block: 0 !important;
}

@media (min-width: 641px) and (max-width: 1024px) {
  :root {
    --inner-gutter: 32px;
  }

  body[class*="page-"] .page-hero {
    padding-top: calc(var(--inner-mobile-header-height) + 30px) !important;
    padding-bottom: 44px !important;
  }
}

@media (max-width: 1024px) {
  body[class*="page-"] > section.page-first-content:not(.page-hero):not(.page-cta):not(#cta-banner),
  body[class*="page-"] .section-pad.page-first-content {
    padding-top: 56px !important;
  }
}

@media (max-width: 640px) {
  body[class*="page-"] > section.page-first-content:not(.page-hero):not(.page-cta):not(#cta-banner),
  body[class*="page-"] .section-pad.page-first-content {
    padding-top: 48px !important;
  }
}

@media (min-width: 1025px) {
  :root {
    --inner-gutter: clamp(32px, 4.2vw, 60px);
    --inner-hero-height: clamp(360px, 40vh, 420px);
    --inner-section-space: clamp(76px, 4.6vw, 88px);
  }

  body[class*="page-"] .page-hero {
    padding: 48px var(--inner-gutter) !important;
  }

  body[class*="page-"] .page-hero-content {
    margin-block: 0;
  }

  body[class*="page-"] .page-eyebrow {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
  }

  body[class*="page-"] .page-eyebrow-line {
    width: 40px;
    height: 1px;
    flex: 0 0 40px;
    background: var(--gold);
  }

  body[class*="page-"] .page-eyebrow span {
    color: var(--gold);
    font-family: var(--sans);
    font-size: 11px;
    font-weight: 600;
    line-height: 1.4;
    letter-spacing: .2em;
    text-transform: uppercase;
  }

  body[class*="page-"] .page-title {
    max-width: 760px;
    margin-bottom: 16px;
    color: var(--white);
    font-family: var(--serif);
    font-size: clamp(48px, 4.05vw, 64px) !important;
    font-weight: 300;
    line-height: 1.02 !important;
    text-wrap: balance;
  }

  body[class*="page-"] .page-title em {
    color: var(--gold-light);
    font-style: italic;
  }

  body[class*="page-"] .page-subtitle {
    max-width: 610px !important;
    color: rgba(232, 228, 220, .78) !important;
    font-family: var(--sans);
    font-size: 15px !important;
    font-weight: 300;
    line-height: 1.75 !important;
  }

  body[class*="page-"] .breadcrumb {
    height: 48px;
  }

  body[class*="page-"] > section:not(.page-hero):not(.page-cta):not(#cta-banner),
  body[class*="page-"] .section-pad {
    padding: var(--inner-section-space) var(--inner-gutter) !important;
  }

  body[class*="page-"] .two-column,
  body[class*="page-"] .process-inner,
  body[class*="page-"] .promise-inner,
  body[class*="page-"] .services-intro,
  body[class*="page-"] .services-cards,
  body[class*="page-"] .services-grid,
  body[class*="page-"] .feature-grid,
  body[class*="page-"] .gallery-grid {
    width: min(100%, var(--inner-max));
    max-width: var(--inner-max) !important;
    margin-inline: auto;
  }

  body[class*="page-"] .two-column,
  body[class*="page-"] .promise-inner {
    gap: clamp(56px, 5vw, 76px) !important;
  }

  body[class*="page-"] .page-first-content .reveal {
    opacity: 1 !important;
    transform: none !important;
  }

  body[class*="page-"] .page-first-content .img-wrap img {
    width: 100%;
    height: auto !important;
    max-height: 520px;
    aspect-ratio: 4 / 3 !important;
    object-fit: cover;
  }

  body[class*="page-"] .section-title {
    text-wrap: balance;
  }

  body[class*="page-"] > section.page-first-content:not(.page-hero):not(.page-cta):not(#cta-banner),
  body[class*="page-"] .section-pad.page-first-content {
    padding-top: clamp(56px, 3.6vw, 68px) !important;
  }

  body[class*="page-"] .page-cta {
    margin: 0 !important;
    padding: 60px var(--inner-gutter) 68px !important;
    text-align: center;
    background: var(--dark2);
    border-top: 1px solid rgba(201, 168, 76, .1);
  }

  body[class*="page-"] .page-cta .section-title {
    margin-bottom: 24px;
  }

  body[class*="page-"] #cta-banner {
    padding: 64px var(--inner-gutter) !important;
  }

  body[class*="page-"] .cta-sub {
    margin-bottom: 28px !important;
  }

  body[class*="page-"] footer {
    padding: 62px var(--inner-gutter) 30px !important;
  }

  body[class*="page-"] .footer-grid {
    width: min(100%, var(--inner-max));
    max-width: var(--inner-max) !important;
    margin: 0 auto 36px !important;
    gap: clamp(36px, 4vw, 58px) !important;
  }

  body[class*="page-"] .footer-bottom {
    width: min(100%, var(--inner-max));
    max-width: var(--inner-max) !important;
    margin-inline: auto;
    padding-top: 24px !important;
  }

  /* Services overview */
  .page-services .services-intro {
    margin-bottom: 46px !important;
  }

  .page-services .services-cards {
    gap: 16px !important;
  }

  .page-services .service-full-card {
    padding: 36px 30px 34px !important;
  }

  .page-services .service-num {
    margin-bottom: 10px !important;
    font-size: 48px !important;
  }

  .page-services .service-icon {
    margin-bottom: 18px !important;
  }

  .page-services .service-desc {
    margin-bottom: 22px !important;
  }

  .page-services .service-features {
    margin-bottom: 26px !important;
  }

  .page-services .process-steps {
    gap: 16px !important;
    margin-top: 46px !important;
  }

  .page-services .process-step {
    padding: 32px 26px !important;
  }

  .page-services .process-step-number {
    margin-bottom: 14px !important;
    font-size: 54px !important;
  }

  .page-services .promise-image img {
    max-height: 500px;
    aspect-ratio: 4 / 3 !important;
    object-fit: cover;
    object-position: center 45%;
  }

  /* Fleet cards */
  .page-fleet .fleet-intro {
    max-width: 760px;
    margin: 0 auto 44px;
    text-align: center;
  }

  .page-fleet .fleet-intro .section-eyebrow {
    justify-content: center;
  }

  .page-fleet .fleet-intro .section-body {
    margin-inline: auto;
  }

  .page-fleet .services-grid {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 22px !important;
  }

  .page-fleet .service-card {
    min-width: 0;
    padding: 0 0 30px !important;
    overflow: hidden;
    background: var(--dark2) !important;
    border: 1px solid rgba(201, 168, 76, .14);
  }

  .page-fleet .fleet-card-image {
    height: clamp(190px, 16vw, 240px) !important;
    margin-bottom: 28px;
    filter: brightness(.82) saturate(.78);
  }

  .page-fleet .service-card > :not(.fleet-card-image) {
    margin-left: 30px;
    margin-right: 30px;
  }

  .page-fleet .service-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(201, 168, 76, .24);
  }

  .page-fleet .service-icon svg {
    width: 24px;
    height: 24px;
    fill: none;
    stroke: var(--gold);
  }

  .page-fleet .service-name {
    margin-bottom: 10px;
    color: var(--white);
    font-family: var(--serif);
    font-size: 25px;
  }

  .page-fleet .service-desc {
    margin-bottom: 18px;
    color: var(--text-muted);
    font-size: 13px;
    line-height: 1.75;
  }

  /* Reviews */
  .page-reviews .rating-summary {
    margin-bottom: 38px;
  }

  .page-reviews .rating-summary .rating-stars {
    margin-bottom: 8px;
    color: var(--gold);
    font-size: 20px;
    letter-spacing: .14em;
  }

  .page-reviews .services-grid {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 22px !important;
    max-width: 900px !important;
  }

  .page-reviews .service-card {
    padding: 30px 36px !important;
    background: var(--dark2) !important;
    border: 1px solid rgba(201, 168, 76, .14);
  }

  .page-reviews .service-desc {
    margin: 0;
    color: var(--text-muted);
    line-height: 1.75;
  }

  /* Service-detail finishing */
  .page-weddings .gallery-grid {
    margin-top: 42px !important;
    gap: 14px !important;
  }

  .page-weddings .gallery-img {
    aspect-ratio: 4 / 3 !important;
  }

  .page-weddings .testimonial-box {
    margin: 0 auto !important;
  }

  .page-corporate .feature-grid {
    margin-top: 0 !important;
    gap: 20px !important;
  }

  .page-corporate .feature-card {
    padding: 32px 28px !important;
  }

  .page-corporate .testimonial-single {
    margin-top: 48px !important;
  }

  /* Legal pages */
  .page-privacy .legal-content,
  .page-terms .legal-content {
    color: var(--text-muted);
    font-size: 15px;
    line-height: 1.85;
  }

  .page-privacy .legal-content h2,
  .page-terms .legal-content h2 {
    margin: 38px 0 12px;
    color: var(--white);
    font-family: var(--serif);
    font-size: 30px;
    font-weight: 400;
  }

  .page-privacy .legal-content h2:first-of-type,
  .page-terms .legal-content h2:first-of-type {
    margin-top: 24px;
  }

  .page-privacy .legal-content p + p,
  .page-terms .legal-content p + p {
    margin-top: 14px;
  }

  .page-privacy .legal-content ul,
  .page-terms .legal-content ul {
    margin: 14px 0 0 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .whatsapp-float,
  body[class*="page-"] .reveal {
    transition: none !important;
  }
}
