/* ── Profix Contractors — Brand design tokens ─────────────────────────────
   Navy #0B1F3A on white #FFFFFF = 15.8:1 contrast (WCAG AAA)
   Yellow #F5C400 on navy #0B1F3A = 8.9:1 contrast (WCAG AAA)
   Logo SVG fill must match --brand-navy exactly.
──────────────────────────────────────────────────────────────────────────── */
:root {
  --brand-navy: #0B1F3A;
  --brand-navy-light: #152d4f;
  --brand-yellow: #F5C400;
  --brand-yellow-dark: #e0b300;
  --brand-white: #FFFFFF;
  --brand-navy-rgb: 11, 31, 58;
  --brand-yellow-rgb: 245, 196, 0;
  --header-height-mobile: 4rem;
  --header-height-desktop: 4.5rem;
}

.hero-bg {
  background-image: linear-gradient(105deg, rgba(var(--brand-navy-rgb), 0.94) 0%, rgba(var(--brand-navy-rgb), 0.82) 38%, rgba(var(--brand-navy-rgb), 0.5) 62%, rgba(var(--brand-navy-rgb), 0.28) 100%),
    url('images/hero-van.webp');
  background-size: cover;
  background-position: center right;
}
.service-card:hover .service-img { transform: scale(1.05); }
.review-slide { display: none; }
.review-slide.active { display: block; }

.review-carousel-btn {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.review-carousel-btn:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.45);
}
.review-carousel-btn:active {
  transform: scale(0.96);
}
@media (min-width: 640px) {
  .review-carousel-btn {
    width: 3rem;
    height: 3rem;
  }
}

.london-map-pin {
  background: transparent;
  border: none;
}
.london-map-pin span {
  display: block;
  width: 16px;
  height: 16px;
  background: var(--brand-yellow);
  border: 2.5px solid var(--brand-navy);
  border-radius: 50%;
  box-shadow: 0 2px 10px rgba(var(--brand-navy-rgb), 0.35);
}
#london-map .leaflet-popup-content-wrapper {
  border-radius: 0.75rem;
  box-shadow: 0 8px 24px rgba(var(--brand-navy-rgb), 0.12);
}
#london-map .leaflet-popup-content {
  margin: 12px 14px;
  font-family: Inter, system-ui, sans-serif;
  font-size: 0.875rem;
  line-height: 1.4;
}

.trust-bar-item {
  position: relative;
}
@media (min-width: 640px) {
  .trust-bar-item:not(:last-child)::after {
    content: '';
    position: absolute;
    right: -1rem;
    top: 50%;
    transform: translateY(-50%);
    height: 1.5rem;
    width: 1px;
    background: rgba(255, 255, 255, 0.15);
  }
}
@media (min-width: 1024px) {
  .trust-bar-item:not(:last-child)::after {
    right: -1.25rem;
  }
}

.home-service-card {
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.home-service-card:hover {
  box-shadow: 0 12px 32px rgba(var(--brand-navy-rgb), 0.12);
  transform: translateY(-2px);
}

.service-pricing-card {
  box-shadow: 0 4px 24px rgba(var(--brand-navy-rgb), 0.08);
}
.service-pricing-card--popular {
  box-shadow: 0 8px 32px rgba(var(--brand-navy-rgb), 0.14);
}
.popular-ribbon {
  position: absolute;
  top: 14px;
  right: -32px;
  width: 130px;
  transform: rotate(45deg);
  background: var(--brand-yellow);
  color: var(--brand-navy);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-align: center;
  padding: 5px 0;
  z-index: 10;
}

.services-hero {
  background-image: linear-gradient(105deg, rgba(var(--brand-navy-rgb), 0.97) 0%, rgba(var(--brand-navy-rgb), 0.88) 45%, rgba(var(--brand-navy-rgb), 0.75) 100%),
    url('images/service-boiler-install.png');
  background-size: cover;
  background-position: center;
}

.service-detail-card {
  box-shadow: 0 4px 24px rgba(var(--brand-navy-rgb), 0.08);
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}
.service-detail-card:hover {
  box-shadow: 0 16px 40px rgba(var(--brand-navy-rgb), 0.14);
  transform: translateY(-3px);
}
.service-detail-card--featured {
  box-shadow: 0 8px 32px rgba(var(--brand-navy-rgb), 0.16);
}
.service-detail-card--featured:hover {
  box-shadow: 0 20px 48px rgba(var(--brand-navy-rgb), 0.2);
}
.service-detail-card__img img {
  transition: transform 0.4s ease;
}
.service-detail-card:hover .service-detail-card__img img {
  transform: scale(1.04);
}
.service-check-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 9999px;
  background: rgba(var(--brand-yellow-rgb), 0.15);
  color: var(--brand-navy);
  flex-shrink: 0;
  margin-top: 1px;
}
.service-check-icon svg {
  width: 0.65rem;
  height: 0.65rem;
}

/* Site header — white bar, fixed height, logo scales without crowding CTAs */
.site-header {
  background-color: var(--brand-white);
}

.site-header-logo-link {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  height: 100%;
  max-width: 52%;
  padding-block: 0;
  text-decoration: none;
}

.site-header-logo-box {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: var(--brand-navy);
  padding: 5px 12px;
  border-radius: 4px;
  flex-shrink: 0;
  line-height: 0;
}

.site-header-logo {
  display: block;
  width: auto;
  height: 3rem;
  max-height: 3rem;
  max-width: min(200px, 40vw);
  object-fit: contain;
  object-position: left center;
}

@media (min-width: 1024px) {
  .site-header-logo-link {
    max-width: none;
  }
  .site-header-logo {
    height: 3.5rem;
    max-height: 3.5rem;
    max-width: 280px;
  }
}

.site-footer-logo {
  display: block;
  width: auto;
  height: 2.75rem;
  max-height: 2.75rem;
  max-width: 180px;
  object-fit: contain;
}

@media (min-width: 1024px) {
  .site-footer-logo {
    height: 3rem;
    max-height: 3rem;
    max-width: 200px;
  }
}

.site-footer-legal a {
  font-size: 0.875rem;
  letter-spacing: 0.01em;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
