/* ==========================================================================
   SPOT ON CLEANING SERVICES - STYLESHEET
   Light Theme, Modern, Accessible & Fully Responsive Design
   ========================================================================== */

/* --- CSS Variables / Design System --- */
:root {
  /* Color Palette - Fresh, Light, Trustworthy */
  --bg-primary: #ffffff;
  --bg-secondary: #f8fafc;
  --bg-tertiary: #f0fdfa;
  --bg-card: #ffffff;
  --bg-accent-soft: #e0f2fe;
  --bg-mint-soft: #ecfdf5;
  --bg-amber-soft: #fef3c7;

  /* Text Colors - High contrast, legible */
  --text-primary: #0f172a;       /* Slate 900 */
  --text-secondary: #334155;     /* Slate 700 */
  --text-muted: #64748b;         /* Slate 500 */
  --text-light: #94a3b8;         /* Slate 400 */
  --text-inverted: #ffffff;

  /* Brand Colors */
  --color-primary: #0284c7;      /* Ocean Blue */
  --color-primary-hover: #0369a1;/* Deep Ocean Blue */
  --color-primary-light: #38bdf8;
  --color-primary-subtle: #e0f2fe; /* was referenced by about/contact cards but never defined */
  --color-accent: #10b981;      /* Emerald / Sparkling Mint */
  --color-accent-hover: #059669;
  --color-accent-light: #34d399;
  --color-star: #f59e0b;         /* Golden Amber */
  --color-danger: #ef4444;

  /* Borders & Dividers */
  --border-color: #e2e8f0;
  --border-focus: #0284c7;
  --border-subtle: #f1f5f9;

  /* Shadows */
  --shadow-xs: 0 1px 2px rgba(15, 23, 42, 0.05);
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.08), 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 4px 6px -1px rgba(15, 23, 42, 0.08), 0 2px 4px -2px rgba(15, 23, 42, 0.04);
  --shadow-lg: 0 10px 15px -3px rgba(15, 23, 42, 0.08), 0 4px 6px -4px rgba(15, 23, 42, 0.04);
  --shadow-xl: 0 20px 25px -5px rgba(15, 23, 42, 0.08), 0 8px 10px -6px rgba(15, 23, 42, 0.04);
  --shadow-glow: 0 0 25px rgba(2, 132, 199, 0.15);

  /* Typography */
  /* Body: DM Sans (clean, friendly). Headings: Outfit (rounded geometric,
     echoes the chunky "SpotOn" wordmark in the logo). */
  --font-sans: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-heading: 'Outfit', 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Radii */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  /* Transitions */
  --transition-fast: 0.15s ease;
  --transition-normal: 0.25s ease;
  --transition-smooth: 0.35s cubic-bezier(0.16, 1, 0.3, 1);

  /* Layout */
  --container-max: 1240px;
  --header-height: 76px;
  --topbar-height: 40px;
}

/* --- Base & Reset --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
  width: 100%;
  max-width: 100vw;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  font-weight: 400;
  /* `clip` (not `hidden`) so <body> does not become a scroll container,
     which would silently break the sticky header. `hidden` is the fallback. */
  overflow-x: hidden;
  overflow-x: clip;
  width: 100%;
  -webkit-font-smoothing: antialiased;
}

img, svg {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--color-primary-hover);
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  border: none;
  background: none;
}

ul, ol {
  list-style: none;
}

/* --- Utility Classes --- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

@media (max-width: 480px) {
  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.section-padding {
  padding-top: 5rem;
  padding-bottom: 5rem;
}

@media (max-width: 768px) {
  .section-padding {
    padding-top: 3.5rem;
    padding-bottom: 3.5rem;
  }
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-primary);
  background-color: var(--bg-accent-soft);
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  margin-bottom: 0.875rem;
}

.section-tag.tag-mint {
  color: var(--color-accent-hover);
  background-color: var(--bg-mint-soft);
}

.section-title {
  font-size: clamp(1.85rem, 3.2vw, 2.5rem);
  font-weight: 800;
  line-height: 1.2;
  color: var(--text-primary);
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.section-subtitle {
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  color: var(--text-muted);
  max-width: 650px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.65;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-full);
  transition: all var(--transition-normal);
  text-decoration: none;
  border: 2px solid transparent;
  white-space: nowrap;
}

.btn:focus-visible {
  outline: 3px solid rgba(2, 132, 199, 0.35);
  outline-offset: 2px;
}

.btn-primary {
  background-color: var(--color-primary);
  color: var(--text-inverted);
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.25);
}

.btn-primary:hover {
  background-color: var(--color-primary-hover);
  color: var(--text-inverted);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(2, 132, 199, 0.35);
}

.btn-accent {
  background-color: var(--color-accent);
  color: var(--text-inverted);
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.25);
}

.btn-accent:hover {
  background-color: var(--color-accent-hover);
  color: var(--text-inverted);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(16, 185, 129, 0.35);
}

.btn-secondary {
  background-color: var(--bg-primary);
  color: var(--color-primary);
  border-color: var(--border-color);
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
  border-color: var(--color-primary);
  color: var(--color-primary-hover);
  background-color: var(--bg-accent-soft);
  transform: translateY(-1px);
}

.btn-white {
  background-color: #ffffff;
  color: var(--color-primary);
  box-shadow: var(--shadow-md);
}

.btn-white:hover {
  background-color: #f8fafc;
  color: var(--color-primary-hover);
}

.btn-lg {
  padding: 0.95rem 2rem;
  font-size: 1.05rem;
}

.btn-sm {
  padding: 0.45rem 1rem;
  font-size: 0.85rem;
}

.btn-icon {
  width: 1.15em;
  height: 1.15em;
  flex-shrink: 0;
}

/* ==========================================================================
   TOP NOTIFICATION BAR
   ========================================================================== */
.top-bar {
  background-color: #0f172a;
  color: #e2e8f0;
  font-size: 0.8125rem;
  padding: 0.5rem 0;
  position: relative;
  z-index: 50;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.top-bar-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.top-promo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 500;
}

.top-promo-badge {
  background: linear-gradient(135deg, #10b981, #059669);
  color: #ffffff;
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
}

.top-meta {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.top-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: #cbd5e1;
}

.top-meta-item a {
  color: #ffffff;
  font-weight: 600;
}

.top-meta-item a:hover {
  color: var(--color-primary-light);
}

@media (max-width: 900px) {
  .top-meta {
    display: none;
  }
  .top-bar-content {
    justify-content: center;
  }
  .top-promo {
    justify-content: center;
    text-align: center;
    flex-wrap: wrap;
    gap: 0.35rem 0.5rem;
  }
}

@media (max-width: 480px) {
  .top-bar {
    font-size: 0.75rem;
    padding: 0.45rem 0;
    line-height: 1.45;
  }
  .top-promo-badge {
    font-size: 0.65rem;
  }
}

/* ==========================================================================
   NAVIGATION / HEADER
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  background-color: #ffffff;
  z-index: 1000;
  border-bottom: 1px solid var(--border-color);
  transition: box-shadow var(--transition-normal);
}

.site-header.scrolled {
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.08);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  flex-shrink: 0;
}

.brand-logo img {
  height: 58px;
  width: auto;
  max-width: none;
}

@media (max-width: 480px) {
  .brand-logo img {
    height: 46px;
  }
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-secondary);
  transition: color var(--transition-fast);
  position: relative;
  padding: 0.5rem 0;
}

.nav-link:hover,
.nav-link.active {
  color: var(--color-primary);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--color-primary);
  border-radius: var(--radius-full);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex-shrink: 0;
}

.nav-phone {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-primary);
}

.nav-phone svg {
  color: var(--color-primary);
}

.nav-phone:hover {
  color: var(--color-primary);
}

/* Mobile Nav Toggle Button */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-around;
  width: 36px;
  height: 36px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 6px 4px;
  z-index: 10001;
}

.nav-toggle-line {
  width: 100%;
  height: 3px;
  background-color: var(--text-primary);
  border-radius: 4px;
  transition: all var(--transition-normal);
}

.nav-toggle.open .nav-toggle-line:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.open .nav-toggle-line:nth-child(2) {
  opacity: 0;
}

.nav-toggle.open .nav-toggle-line:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

.nav-menu-close-btn,
.nav-menu-cta {
  display: none;
}

@media (max-width: 1024px) {
  .nav-phone {
    display: none;
  }
}

@media (max-width: 768px) {
  .nav-actions .btn {
    display: none; /* Hidden on mobile header to leave clean space for logo & hamburger; available in floating bottom bar */
  }
}

@media (max-width: 900px) {
  .nav-toggle {
    display: flex;
  }

  .nav-toggle.open {
    opacity: 0;
    pointer-events: none;
  }

  .nav-menu {
    position: fixed;
    top: 0;
    right: 0;
    width: 82%;
    max-width: 320px;
    height: 100vh;
    height: 100dvh;
    background-color: #ffffff;
    box-shadow: -8px 0 30px rgba(15, 23, 42, 0.18);
    flex-direction: column;
    align-items: flex-start;
    padding: 5rem 1.75rem 2.5rem;
    gap: 1rem;
    transform: translateX(105%);
    transition: transform var(--transition-smooth), visibility var(--transition-smooth);
    visibility: hidden;
    pointer-events: none;
    z-index: 10000;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .nav-menu.open {
    transform: translateX(0);
    visibility: visible;
    pointer-events: auto;
  }

  .nav-menu .nav-link {
    font-size: 1.1rem;
    width: 100%;
    padding: 0.65rem 0;
    border-bottom: 1px solid var(--border-subtle);
  }

  .nav-menu .nav-menu-cta {
    display: inline-flex !important;
    width: 100%;
    margin-top: 1rem;
  }

  .nav-menu-close-btn {
    display: flex;
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    line-height: 1;
    color: var(--text-primary);
    cursor: pointer;
    transition: background-color var(--transition-fast);
  }

  .nav-menu-close-btn:hover {
    background-color: var(--border-color);
  }

  .nav-backdrop {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    background-color: rgba(15, 23, 42, 0.45);
    z-index: 9999;
    opacity: 0;
    transition: opacity var(--transition-normal);
  }

  .nav-backdrop.open {
    display: block;
    opacity: 1;
  }
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero {
  position: relative;
  background: linear-gradient(180deg, #f0f9ff 0%, #ffffff 100%);
  padding-top: 3.5rem;
  padding-bottom: 5rem;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -150px;
  right: -100px;
  width: 550px;
  height: 550px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(14, 165, 233, 0.12) 0%, rgba(255, 255, 255, 0) 70%);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 3.5rem;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background-color: var(--bg-primary);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  padding: 0.4rem 1rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-primary-hover);
  margin-bottom: 1.5rem;
}

.hero-pill-sparkle {
  color: var(--color-star);
}

.hero-title {
  font-size: clamp(2.2rem, 4.2vw, 3.5rem);
  font-weight: 900;
  line-height: 1.12;
  color: var(--text-primary);
  margin-bottom: 1.25rem;
  letter-spacing: -0.03em;
}

.hero-title .highlight {
  color: var(--color-primary);
  position: relative;
  display: inline-block;
}

.hero-title .highlight-mint {
  color: var(--color-accent);
}

.hero-description {
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 2rem;
  max-width: 560px;
}

.hero-badges-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.25rem;
  margin-bottom: 2.25rem;
}

.hero-badge-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.hero-badge-item svg {
  color: var(--color-accent);
  width: 18px;
  height: 18px;
}

.hero-cta-group {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.hero-social-proof {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-color);
}

.avatar-stack {
  display: flex;
  align-items: center;
}

.avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid #ffffff;
  background-color: var(--bg-accent-soft);
  margin-left: -10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--color-primary);
  box-shadow: var(--shadow-sm);
}

.avatar:first-child {
  margin-left: 0;
}

.avatar-count {
  background-color: var(--color-primary);
  color: #ffffff;
}

.proof-info {
  font-size: 0.85rem;
}

.proof-stars {
  display: flex;
  color: var(--color-star);
  margin-bottom: 0.2rem;
}

.proof-text {
  color: var(--text-muted);
  font-weight: 500;
}

.proof-text strong {
  color: var(--text-primary);
}

/* Hero Visual & Quick Quote Card */
.hero-visual {
  position: relative;
  z-index: 2;
}

.hero-card {
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  padding: 2rem;
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--border-color);
  position: relative;
}

.hero-card-header {
  margin-bottom: 1.5rem;
  text-align: left;
}

.hero-card-header h3 {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 0.35rem;
}

.hero-card-header p {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.quick-quote-form .form-group {
  margin-bottom: 1.15rem;
  text-align: left;
}

.quick-quote-form label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--text-secondary);
  margin-bottom: 0.35rem;
}

.quick-quote-form select,
.quick-quote-form input {
  width: 100%;
  padding: 0.75rem 0.95rem;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  background-color: var(--bg-secondary);
  color: var(--text-primary);
  font-size: 0.9rem;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.quick-quote-form select:focus,
.quick-quote-form input:focus {
  outline: none;
  border-color: var(--color-primary);
  background-color: #ffffff;
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.hero-card-guarantee {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 1rem;
}

.hero-card-guarantee svg {
  color: var(--color-accent);
}

@media (max-width: 992px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 2.25rem;
  }

  .hero-content {
    text-align: center;
  }

  .hero-pill {
    margin-left: auto;
    margin-right: auto;
    font-size: 0.775rem;
    padding: 0.35rem 0.75rem;
    text-align: center;
  }

  .hero-title {
    font-size: clamp(1.85rem, 6.5vw, 2.75rem);
  }

  .hero-description {
    margin-left: auto;
    margin-right: auto;
    font-size: 1rem;
  }

  .hero-badges-row {
    justify-content: center;
    gap: 0.65rem 1rem;
  }

  .hero-cta-group {
    justify-content: center;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
  }

  .hero-cta-group .btn {
    width: 100%;
    max-width: 320px;
  }

  .hero-social-proof {
    justify-content: center;
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
  }

  .hero-card {
    max-width: 100%;
    padding: 1.5rem 1.25rem;
  }
}

/* ==========================================================================
   HERO BACKGROUND VIDEO
   ========================================================================== */
.hero.has-video {
  background: #0f172a;
  isolation: isolate;
}

.hero.has-video::before {
  display: none;
}

.hero-video-wrap {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  /* Poster shows instantly while the video buffers */
  background: #0f172a url('../videos/hero/hero-poster.jpg') center / cover no-repeat;
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 30% center; /* keep the cleaner in frame on narrow screens */
  opacity: 0;
  transform: scale(1.08);
  transition: opacity 1.4s ease, transform 2.4s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

/* Fade + gentle settle-in once playback actually starts, then a slow drift */
.hero-video.is-playing {
  opacity: 1;
  transform: scale(1);
  animation: heroVideoDrift 24s ease-in-out 2.4s infinite alternate;
}

@keyframes heroVideoDrift {
  from { transform: scale(1); }
  to   { transform: scale(1.06) translate3d(-1%, -1%, 0); }
}

/* Dark gradient keeps the white headline readable over any frame */
.hero-video-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(15, 23, 42, 0.9) 0%, rgba(15, 23, 42, 0.72) 45%, rgba(15, 23, 42, 0.38) 100%),
    linear-gradient(180deg, rgba(2, 132, 199, 0.18) 0%, rgba(15, 23, 42, 0.25) 100%);
}

.hero.has-video .container {
  position: relative;
  z-index: 1;
}

/* Light-on-dark hero text */
.hero.has-video .hero-title {
  color: #ffffff;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.35);
}

.hero.has-video .hero-title .highlight {
  color: var(--color-primary-light);
}

.hero.has-video .hero-title .highlight-mint {
  color: var(--color-accent-light);
}

.hero.has-video .hero-description,
.hero.has-video .hero-badge-item,
.hero.has-video .proof-text {
  color: #e2e8f0;
}

.hero.has-video .hero-description strong,
.hero.has-video .proof-text strong {
  color: #ffffff;
}

.hero.has-video .hero-badge-item svg {
  color: var(--color-accent-light);
}

.hero.has-video .hero-pill {
  background-color: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.25);
  color: #ffffff;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  box-shadow: none;
}

.hero.has-video .hero-social-proof {
  border-top-color: rgba(255, 255, 255, 0.18);
}

.hero.has-video .btn-secondary {
  background-color: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.6);
  box-shadow: none;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.hero.has-video .btn-secondary:hover {
  background-color: #ffffff;
  color: var(--color-primary);
  border-color: #ffffff;
}

.hero.has-video .hero-card {
  border-color: rgba(255, 255, 255, 0.6);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.45);
}

/* Stacked (centred) layout: text sits over the whole video, so darken evenly */
@media (max-width: 992px) {
  .hero-video-overlay {
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.82) 0%, rgba(15, 23, 42, 0.74) 55%, rgba(15, 23, 42, 0.9) 100%);
  }
}

/* Respect users who ask for less motion: show the still poster only */
@media (prefers-reduced-motion: reduce) {
  .hero-video {
    display: none;
  }
}

/* ==========================================================================
   STATS / TRUST STRIP
   ========================================================================== */
.stats-strip {
  background-color: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  padding: 2.25rem 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
}

.stat-item {
  position: relative;
}

.stat-item:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 15%;
  right: 0;
  height: 70%;
  width: 1px;
  background-color: var(--border-color);
}

.stat-number {
  font-size: clamp(2rem, 3.2vw, 2.75rem);
  font-weight: 900;
  color: var(--color-primary);
  line-height: 1.1;
  margin-bottom: 0.35rem;
  letter-spacing: -0.02em;
}

.stat-number.stat-mint {
  color: var(--color-accent);
}

.stat-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-secondary);
}

@media (max-width: 768px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.75rem 1rem;
  }

  .stat-item:not(:last-child)::after {
    display: none;
  }
}

@media (max-width: 480px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem 0.75rem;
  }

  .stat-number {
    font-size: 1.75rem;
  }

  .stat-label {
    font-size: 0.75rem;
  }

  .stat-item::after {
    display: none !important;
  }
}

/* ==========================================================================
   SERVICES SECTION
   ========================================================================== */
.services-section {
  background-color: var(--bg-primary);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3.5rem;
}

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
  border-color: var(--color-primary-light);
}

.service-image-wrap {
  width: 100%;
  height: 200px;
  background-color: var(--bg-secondary);
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.service-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-smooth);
}

.service-card:hover .service-image-wrap img {
  transform: scale(1.05);
}

.service-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(4px);
  color: var(--color-primary);
  font-weight: 700;
  font-size: 0.75rem;
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-sm);
}

.service-content {
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.service-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 0.65rem;
}

.service-description {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

.service-features-list {
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.service-feature {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}

.service-feature svg {
  color: var(--color-accent);
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.service-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border-subtle);
}

.service-price {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.service-price strong {
  display: block;
  font-size: 1.2rem;
  color: var(--text-primary);
  font-weight: 800;
}

@media (max-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .services-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   CLEANING COST ESTIMATOR / CALCULATOR
   ========================================================================== */
.calculator-section {
  background: linear-gradient(180deg, #f8fafc 0%, #f0fdfa 100%);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.calculator-card {
  background: #ffffff;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-xl);
  padding: 2.5rem;
  margin-top: 3rem;
}

.calc-grid {
  display: grid;
  grid-template-columns: 1.35fr 0.85fr;
  gap: 3rem;
}

.calc-options-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1.25rem;
}

/* Service Type Selectors */
.calc-field-group {
  margin-bottom: 2rem;
}

.calc-field-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--text-secondary);
  margin-bottom: 0.75rem;
}

.calc-type-selector {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
}

.calc-type-btn {
  padding: 0.85rem 0.5rem;
  border: 2px solid var(--border-color);
  border-radius: var(--radius-md);
  background: #ffffff;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.calc-type-btn.active {
  border-color: var(--color-primary);
  background-color: var(--bg-accent-soft);
}

.calc-type-icon {
  font-size: 1.25rem;
  margin-bottom: 0.25rem;
}

.calc-type-name {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-primary);
  display: block;
}

/* Stepper Counters */
.calc-stepper-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.calc-stepper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 0.5rem 0.75rem;
  background-color: var(--bg-secondary);
}

.stepper-btn {
  width: 34px;
  height: 34px;
  border-radius: var(--radius-sm);
  background: #ffffff;
  border: 1px solid var(--border-color);
  font-size: 1.25rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
  transition: all var(--transition-fast);
}

.stepper-btn:hover {
  background-color: var(--color-primary);
  color: #ffffff;
}

.stepper-value {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-primary);
  min-width: 40px;
  text-align: center;
}

/* Frequency Radio Pills */
.frequency-pills {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.65rem;
}

.frequency-pill {
  border: 2px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 0.75rem 0.5rem;
  text-align: center;
  cursor: pointer;
  background: #ffffff;
  position: relative;
  transition: all var(--transition-fast);
}

.frequency-pill.active {
  border-color: var(--color-accent);
  background-color: var(--bg-mint-soft);
}

.freq-name {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-primary);
  display: block;
}

.freq-discount {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--color-accent-hover);
  display: block;
}

/* Add-ons Checkboxes */
.addons-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}

.addon-card {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  background: #ffffff;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.addon-card:hover {
  border-color: var(--color-primary);
}

.addon-card input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--color-primary);
  cursor: pointer;
}

.addon-info {
  display: flex;
  justify-content: space-between;
  width: 100%;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.addon-price {
  color: var(--color-primary);
  font-weight: 700;
}

/* Summary Card */
.calc-summary-box {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2rem;
  display: flex;
  flex-direction: column;
}

.summary-header {
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 1.25rem;
  margin-bottom: 1.25rem;
}

.summary-header h4 {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.summary-header p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.summary-breakdown {
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.breakdown-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-bottom: 0.65rem;
}

.breakdown-row.discount-row {
  color: var(--color-accent-hover);
  font-weight: 600;
}

.summary-total-box {
  background: #ffffff;
  border-radius: var(--radius-md);
  padding: 1.25rem;
  border: 1px solid var(--border-color);
  margin-bottom: 1.5rem;
  text-align: center;
}

.total-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.25rem;
}

.total-price {
  font-size: 2.75rem;
  font-weight: 900;
  color: var(--color-primary);
  line-height: 1;
  margin-bottom: 0.35rem;
}

.estimated-duration {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 500;
}

.summary-guarantee-note {
  font-size: 0.775rem;
  color: var(--text-muted);
  text-align: center;
  margin-top: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
}

@media (max-width: 992px) {
  .calc-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

@media (max-width: 640px) {
  .calculator-card {
    padding: 1.25rem 1rem;
    margin-top: 2rem;
  }

  .calc-type-selector {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
  }

  .frequency-pills {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
  }

  .calc-stepper-row {
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
  }

  .addons-grid {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }

  .calc-summary-box {
    padding: 1.25rem 1rem;
  }

  .total-price {
    font-size: 2.25rem;
  }
}

/* ==========================================================================
   WHY CHOOSE SPOT ON / VALUE PROPOSITION
   ========================================================================== */
.why-us-section {
  background-color: var(--bg-primary);
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3.5rem;
}

.why-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2.25rem 2rem;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
  text-align: left;
}

.why-card:hover {
  transform: translateY(-5px);
  border-color: var(--color-primary);
  box-shadow: var(--shadow-lg);
}

.why-icon-wrap {
  width: 58px;
  height: 58px;
  border-radius: var(--radius-md);
  background-color: var(--bg-accent-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  color: var(--color-primary);
}

.why-icon-wrap.icon-mint {
  background-color: var(--bg-mint-soft);
  color: var(--color-accent-hover);
}

.why-icon-wrap.icon-amber {
  background-color: var(--bg-amber-soft);
  color: var(--color-star);
}

.why-card-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
}

.why-card-text {
  font-size: 0.925rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

@media (max-width: 992px) {
  .why-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .why-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   BEFORE & AFTER SHOWCASE
   ========================================================================== */
.before-after-section {
  background-color: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.comparison-wrapper {
  max-width: 820px;
  margin: 3rem auto 0;
  background: #ffffff;
  border-radius: var(--radius-xl);
  padding: 1.5rem;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-xl);
}

@media (max-width: 640px) {
  .comparison-wrapper {
    padding: 1rem 0.75rem;
    margin-top: 2rem;
  }
}

.comparison-container {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 2;
  border-radius: var(--radius-lg);
  overflow: hidden;
  user-select: none;
  cursor: ew-resize;
  background-color: #0f172a;
  touch-action: pan-y;
}

.comparison-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.comparison-image-before {
  clip-path: polygon(0 0, 50% 0, 50% 100%, 0 100%);
  z-index: 2;
}

.comparison-image-after {
  z-index: 1;
}

.comparison-slider-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 4px;
  background-color: #ffffff;
  z-index: 10;
  transform: translateX(-50%);
  pointer-events: none;
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.4);
}

.handle-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: #ffffff;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
  font-size: 1.25rem;
  font-weight: 800;
}

.comparison-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 1rem;
  padding: 0 0.5rem;
}

.comp-badge {
  font-size: 0.8125rem;
  font-weight: 800;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
}

.comp-badge.before {
  background-color: #fee2e2;
  color: #b91c1c;
}

.comp-badge.after {
  background-color: var(--bg-mint-soft);
  color: var(--color-accent-hover);
}

.comparison-instructions {
  text-align: center;
  font-size: 0.825rem;
  color: var(--text-muted);
  margin-top: 0.75rem;
}

/* ==========================================================================
   HOW IT WORKS (PROCESS)
   ========================================================================== */
.process-section {
  background-color: var(--bg-primary);
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
  margin-top: 3.5rem;
  position: relative;
}

.process-step-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  text-align: center;
  position: relative;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
}

.process-step-card:hover {
  transform: translateY(-5px);
  border-color: var(--color-primary);
  box-shadow: var(--shadow-md);
}

.step-number {
  position: absolute;
  top: -18px;
  left: 50%;
  transform: translateX(-50%);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--color-primary);
  color: #ffffff;
  font-weight: 800;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(2, 132, 199, 0.3);
}

.step-icon-wrap {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background-color: var(--bg-accent-soft);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
}

.step-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
}

.step-description {
  font-size: 0.925rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

@media (max-width: 850px) {
  .process-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

/* ==========================================================================
   TESTIMONIALS / REVIEWS
   ========================================================================== */
.reviews-section {
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
  border-top: 1px solid var(--border-color);
}

.reviews-filter-bar {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 2rem;
}

.review-filter-btn {
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.5rem 1.15rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-color);
  background: #ffffff;
  color: var(--text-secondary);
  transition: all var(--transition-fast);
}

.review-filter-btn.active,
.review-filter-btn:hover {
  background-color: var(--color-primary);
  color: #ffffff;
  border-color: var(--color-primary);
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 2.5rem;
}

.review-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: all var(--transition-normal);
}

.review-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--color-primary-light);
}

.review-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.review-stars {
  display: flex;
  color: var(--color-star);
  gap: 2px;
}

.review-source-badge {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.review-text {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 1.5rem;
  flex-grow: 1;
  font-style: italic;
}

.review-author {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-subtle);
}

.author-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--bg-accent-soft);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.95rem;
}

.author-info h5 {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--text-primary);
}

.author-info span {
  font-size: 0.8rem;
  color: var(--text-muted);
  display: block;
}

@media (max-width: 992px) {
  .reviews-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .reviews-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   SERVICE AREAS & LOCAL SEO ZIP CHECKER
   ========================================================================== */
.areas-section {
  background-color: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.areas-card {
  background: #ffffff;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-color);
  padding: 3rem 2.5rem;
  box-shadow: var(--shadow-md);
  margin-top: 2.5rem;
}

.zip-checker-box {
  max-width: 580px;
  margin: 0 auto 2.5rem;
  text-align: center;
}

.zip-checker-form {
  display: flex;
  gap: 0.5rem;
  margin-top: 1rem;
}

.zip-checker-input {
  flex-grow: 1;
  padding: 0.85rem 1.25rem;
  border: 2px solid var(--border-color);
  border-radius: var(--radius-full);
  font-size: 0.95rem;
  outline: none;
  transition: border-color var(--transition-fast);
}

.zip-checker-input:focus {
  border-color: var(--color-primary);
}

.zip-result-message {
  margin-top: 0.85rem;
  font-size: 0.9rem;
  font-weight: 600;
  display: none;
}

.zip-result-message.success {
  display: block;
  color: var(--color-accent-hover);
}

.zip-result-message.error {
  display: block;
  color: var(--color-danger);
}

.neighborhoods-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  border-top: 1px solid var(--border-color);
  padding-top: 2rem;
}

.neighborhood-col h5 {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
}

.neighborhood-col ul li {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 0.4rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.neighborhood-col ul li::before {
  content: '•';
  color: var(--color-primary);
  font-weight: bold;
}

@media (max-width: 850px) {
  .neighborhoods-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 500px) {
  .zip-checker-form {
    flex-direction: column;
  }
  .neighborhoods-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem 0.75rem;
  }
  .areas-card {
    padding: 1.5rem 1rem;
  }
}

@media (max-width: 360px) {
  .neighborhoods-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   FAQ SECTION (ACCORDION)
   ========================================================================== */
.faq-section {
  background-color: var(--bg-primary);
}

.faq-container {
  max-width: 820px;
  margin: 3rem auto 0;
}

.faq-item {
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  margin-bottom: 1rem;
  background-color: #ffffff;
  overflow: hidden;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.faq-item:hover {
  border-color: var(--color-primary-light);
}

.faq-item.active {
  border-color: var(--color-primary);
  box-shadow: var(--shadow-sm);
}

.faq-question-btn {
  width: 100%;
  padding: 1.35rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  text-align: left;
  background: transparent;
  border: none;
  cursor: pointer;
  gap: 1rem;
}

.faq-icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  transition: transform var(--transition-normal);
  color: var(--color-primary);
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-smooth);
}

.faq-answer-inner {
  padding: 0 1.5rem 1.5rem;
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ==========================================================================
   CONTACT & BOOKING SECTION
   ========================================================================== */
.contact-section {
  background: linear-gradient(180deg, #f8fafc 0%, #f0fdfa 100%);
  border-top: 1px solid var(--border-color);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 3.5rem;
  margin-top: 3.5rem;
}

.contact-info-panel {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.contact-card-item {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  padding: 1.5rem;
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.contact-icon-box {
  width: 50px;
  height: 50px;
  border-radius: var(--radius-md);
  background-color: var(--bg-accent-soft);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-details h5 {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 0.35rem;
}

.contact-details p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.contact-details a {
  color: var(--color-primary);
  font-weight: 700;
}

/* Contact / Booking Form */
.booking-form-box {
  background: #ffffff;
  border-radius: var(--radius-xl);
  padding: 2.75rem;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-xl);
}

.booking-form-box h3 {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.booking-form-box p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-secondary);
  margin-bottom: 0.4rem;
}

.form-control {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  background-color: var(--bg-secondary);
  font-size: 0.95rem;
  color: var(--text-primary);
  transition: border-color var(--transition-fast), background-color var(--transition-fast);
}

.form-control:focus {
  outline: none;
  border-color: var(--color-primary);
  background-color: #ffffff;
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15);
}

textarea.form-control {
  resize: vertical;
  min-height: 110px;
}

.form-feedback {
  font-size: 0.8rem;
  color: var(--color-danger);
  margin-top: 0.35rem;
  display: none;
}

.form-success-alert {
  display: none;
  background-color: var(--bg-mint-soft);
  border: 1px solid var(--color-accent);
  color: var(--color-accent-hover);
  padding: 1rem 1.25rem;
  border-radius: var(--radius-md);
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
  font-weight: 600;
}

@media (max-width: 992px) {
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}

@media (max-width: 640px) {
  .booking-form-box {
    padding: 1.5rem 1.15rem;
  }
  .booking-form-box .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
  background-color: #0f172a;
  color: #94a3b8;
  padding-top: 4.5rem;
  padding-bottom: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-top,
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.25fr;
  gap: 3rem;
  margin-bottom: 3.5rem;
}

/* White plate behind the logo: its dark-blue lettering has too little
   contrast against the navy footer background on its own. */
.footer-logo {
  display: inline-block;
  background-color: #ffffff;
  border-radius: var(--radius-md);
  padding: 0.6rem 0.9rem;
}

.footer-logo img,
.footer-brand img {
  height: 64px;
  width: auto;
  max-width: 100%;
}

.footer-brand p,
.footer-desc {
  font-size: 0.9rem;
  color: #94a3b8;
  line-height: 1.65;
  margin: 1.25rem 0 1.5rem;
  max-width: 340px;
}

.footer-contact-info {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.875rem;
  color: #cbd5e1;
  line-height: 1.5;
}

.footer-contact-item svg {
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--color-primary-light);
}

.footer-contact-item a {
  color: #cbd5e1;
  overflow-wrap: anywhere; /* long email address must not overflow on phones */
}

.footer-contact-item a:hover {
  color: #ffffff;
}

.footer-note {
  font-size: 0.775rem;
  color: #64748b;
  margin-top: 0.75rem;
}

.footer-social-links {
  display: flex;
  gap: 0.75rem;
}

.social-link {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.social-link:hover {
  background-color: var(--color-primary);
  color: #ffffff;
  transform: translateY(-2px);
}

.footer-col h4 {
  font-size: 1rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 1.25rem;
  letter-spacing: 0.02em;
}

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-links a {
  color: #94a3b8;
  font-size: 0.9rem;
  transition: color var(--transition-fast);
}

.footer-links a:hover {
  color: #ffffff;
  padding-left: 4px;
}

.footer-newsletter p {
  font-size: 0.9rem;
  margin-bottom: 1rem;
  color: #94a3b8;
}

.newsletter-form {
  display: flex;
  gap: 0.5rem;
}

.newsletter-input {
  flex-grow: 1;
  min-width: 0; /* let the input shrink inside the flex row on narrow screens */
  padding: 0.65rem 0.95rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.15);
  background-color: rgba(255, 255, 255, 0.05);
  color: #ffffff;
  font-size: 0.875rem;
  outline: none;
}

.newsletter-input:focus {
  border-color: var(--color-primary);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.85rem;
}

.footer-legal-links {
  display: flex;
  gap: 1.5rem;
  padding-right: 3.5rem;
}

@media (max-width: 768px) {
  .footer-legal-links {
    padding-right: 0;
  }
}

.footer-legal-links a {
  color: #64748b;
}

.footer-legal-links a:hover {
  color: #cbd5e1;
}

@media (max-width: 992px) {
  .footer-top,
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem 2rem;
  }
}

@media (max-width: 640px) {
  .site-footer {
    padding-top: 3rem;
  }
  .footer-top,
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem 1.25rem;
    margin-bottom: 2.5rem;
  }
  /* Brand & newsletter span full width; the two link lists sit side by side */
  .footer-brand,
  .footer-brand-col,
  .footer-newsletter {
    grid-column: 1 / -1;
  }
  .footer-desc,
  .footer-brand p {
    max-width: none;
  }
  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }
  .footer-legal-links {
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem 1.25rem;
  }
}

@media (max-width: 380px) {
  .newsletter-form {
    flex-direction: column;
  }
  .newsletter-form .btn {
    width: 100%;
  }
}

/* ==========================================================================
   FLOATING MOBILE ACTION BAR & SCROLL TO TOP
   ========================================================================== */
.floating-mobile-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 0.75rem 1rem;
  border-top: 1px solid var(--border-color);
  box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.08);
  z-index: 998;
  gap: 0.75rem;
}

.floating-mobile-bar .btn {
  flex: 1;
  padding: 0.75rem 0.5rem;
  font-size: 0.9rem;
}

@media (max-width: 768px) {
  .floating-mobile-bar {
    display: flex;
    transition: transform var(--transition-normal), opacity var(--transition-normal);
  }
  body.nav-open .floating-mobile-bar {
    opacity: 0;
    pointer-events: none;
    transform: translateY(100%);
  }
  .floating-mobile-bar {
    padding-bottom: calc(0.75rem + env(safe-area-inset-bottom, 0px)); /* iPhone home bar */
  }
  body {
    padding-bottom: calc(76px + env(safe-area-inset-bottom, 0px)); /* bar height, so it never hides the footer */
  }
}

@media (max-width: 400px) {
  .floating-mobile-bar {
    gap: 0.5rem;
    padding-left: 0.65rem;
    padding-right: 0.65rem;
  }
  .floating-mobile-bar .btn {
    font-size: 0.8rem;
    padding: 0.7rem 0.35rem;
    gap: 0.3rem;
  }
}

.scroll-top-btn {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--color-primary);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(15px);
  transition: all var(--transition-normal);
  z-index: 990;
}

.scroll-top-btn.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.scroll-top-btn:hover {
  background-color: var(--color-primary-hover);
  transform: translateY(-3px);
}

@media (max-width: 768px) {
  .scroll-top-btn {
    bottom: 5.5rem;
    right: 1.25rem;
  }
}

/* ==========================================================================
   MODAL DIALOG (BOOKING / QUICK QUOTE)
   ========================================================================== */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  transition: opacity var(--transition-normal);
}

.modal-overlay.open {
  display: flex;
  opacity: 1;
}

.modal-dialog {
  background: #ffffff;
  border-radius: var(--radius-xl);
  max-width: 540px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-xl);
  padding: 2.25rem;
  position: relative;
  transform: scale(0.95);
  transition: transform var(--transition-normal);
}

.modal-overlay.open .modal-dialog {
  transform: scale(1);
}

@media (max-width: 640px) {
  .modal-overlay {
    padding: 0.75rem;
  }
  .modal-dialog {
    padding: 1.5rem 1.15rem;
    max-height: 94vh;
  }
  .modal-dialog .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }
}

.modal-close-btn {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  font-size: 1.5rem;
  color: var(--text-muted);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--bg-secondary);
}

.modal-close-btn:hover {
  color: var(--text-primary);
  background-color: var(--border-color);
}


/* ==========================================================================
   SUBPAGE STYLING (About, Services, Contact, Terms, Privacy)
   ========================================================================== */

/* Page Hero Banner */
.page-hero {
  position: relative;
  background: linear-gradient(180deg, #f0f9ff 0%, #ffffff 100%);
  padding: 3.5rem 0 3rem;
  border-bottom: 1px solid var(--border-color);
  text-align: center;
}

.page-hero::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -60px;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(14, 165, 233, 0.08) 0%, rgba(255, 255, 255, 0) 70%);
  pointer-events: none;
}

.page-title {
  font-size: clamp(2rem, 4vw, 3.1rem);
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.18;
  letter-spacing: -0.025em;
  margin-top: 0.85rem;
  margin-bottom: 1rem;
}

.page-subtitle {
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  color: var(--text-secondary);
  line-height: 1.65;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

/* Breadcrumbs */
.breadcrumb-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
  flex-wrap: wrap;
}

.breadcrumb-nav a {
  color: var(--color-primary);
  font-weight: 500;
  transition: color var(--transition-fast);
}

.breadcrumb-nav a:hover {
  color: var(--color-primary-hover);
  text-decoration: underline;
}

.breadcrumb-nav .separator {
  color: #94a3b8;
  font-size: 0.8rem;
  user-select: none;
}

.breadcrumb-nav .current {
  color: var(--text-secondary);
  font-weight: 600;
}

/* ==========================================================================
   ABOUT PAGE STYLING
   ========================================================================== */
.about-mission-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3.5rem;
  align-items: center;
  margin-bottom: 4rem;
}

.about-image-card {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-color);
  background-color: var(--bg-secondary);
}

.about-image-card img {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 2.5rem;
}

.value-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2.25rem 1.75rem;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.value-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--color-primary-light);
}

.value-icon-box {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background-color: var(--color-primary-subtle);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.value-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--text-primary);
}

.value-card p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.75rem;
  margin-top: 2.5rem;
}

.team-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.75rem 1.25rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.team-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.team-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  margin: 0 auto 1.25rem;
  background: linear-gradient(135deg, var(--color-primary-subtle) 0%, #cffafe 100%);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.4rem;
  border: 3px solid #ffffff;
  box-shadow: var(--shadow-sm);
}

.team-card h4 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.team-role {
  font-size: 0.85rem;
  color: var(--color-primary);
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.team-bio {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* Accreditations Row */
.accreditations-strip {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 2.5rem 2rem;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
  margin-top: 4rem;
}

.accred-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.accred-icon {
  width: 48px;
  height: 48px;
  color: var(--color-primary);
}

.accred-title {
  font-weight: 700;
  font-size: 1rem;
  color: var(--text-primary);
}

.accred-desc {
  font-size: 0.825rem;
  color: var(--text-muted);
}

/* ==========================================================================
   SERVICES DETAILED PAGE STYLING
   ========================================================================== */
.service-detail-section {
  padding: 3.5rem 0;
  border-bottom: 1px solid var(--border-color);
}

.service-detail-section:last-of-type {
  border-bottom: none;
}

.service-detail-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.service-detail-row.reverse {
  direction: rtl;
}

.service-detail-row.reverse > * {
  direction: ltr;
}

.service-detail-visual {
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-color);
  background-color: var(--bg-secondary);
}

.service-detail-visual img {
  width: 100%;
  height: 380px;
  object-fit: cover;
  display: block;
}

.service-detail-content {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.service-pricing-badge {
  display: inline-flex;
  align-items: baseline;
  gap: 0.4rem;
  background-color: var(--bg-secondary);
  padding: 0.4rem 1rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-color);
  width: fit-content;
}

.service-pricing-badge .from {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.service-pricing-badge .price {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--color-primary);
}

.service-checklist-box {
  background-color: var(--bg-secondary);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  border: 1px solid var(--border-color);
}

.service-checklist-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.service-checklist {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem 1.5rem;
}

.service-checklist li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.service-checklist li svg {
  color: var(--color-accent);
  flex-shrink: 0;
  margin-top: 3px;
}

/* Service Comparison Table */
.comparison-table-wrapper {
  overflow-x: auto;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  background: #ffffff;
  margin-top: 2.5rem;
}

.service-matrix {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.95rem;
}

.service-matrix th,
.service-matrix td {
  padding: 1.15rem 1.5rem;
  border-bottom: 1px solid var(--border-color);
}

.service-matrix th {
  background-color: var(--bg-secondary);
  font-weight: 700;
  color: var(--text-primary);
  font-size: 0.95rem;
}

.service-matrix th.highlight-col {
  background-color: #ecfeff;
  color: var(--color-primary-hover);
  border-left: 2px solid var(--color-primary);
  border-right: 2px solid var(--color-primary);
}

.service-matrix td.highlight-col {
  background-color: #f0fdf4;
  border-left: 2px solid var(--color-primary);
  border-right: 2px solid var(--color-primary);
}

.service-matrix tbody tr:last-child td {
  border-bottom: none;
}

.service-matrix tbody tr:hover {
  background-color: #f8fafc;
}

/* ==========================================================================
   CONTACT PAGE STYLING
   ========================================================================== */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.35fr;
  gap: 3.5rem;
  align-items: start;
  padding: 4rem 0;
}

.contact-info-col {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-channels-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

.contact-channel-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), border-color var(--transition-fast);
}

.contact-channel-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--color-primary-light);
}

.contact-channel-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background-color: var(--color-primary-subtle);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-channel-info h4 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.contact-channel-info p {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 0.35rem;
}

.contact-channel-info a,
.contact-channel-info strong {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-primary);
}

.contact-channel-info a:hover {
  text-decoration: underline;
}

.contact-hours-card {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
}

.contact-hours-card h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.hours-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.hours-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  color: var(--text-secondary);
  padding-bottom: 0.4rem;
  border-bottom: 1px dashed var(--border-color);
}

.hours-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.hours-row strong {
  color: var(--text-primary);
}

.contact-form-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  box-shadow: var(--shadow-md);
}

.contact-form-header {
  margin-bottom: 2rem;
}

.contact-form-header h3 {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.contact-form-header p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* ==========================================================================
   LEGAL PAGES (Terms & Conditions, Privacy Policy)
   ========================================================================== */
.legal-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 3.5rem;
  align-items: start;
  padding: 4rem 0 6rem;
}

.legal-sidebar {
  position: sticky;
  top: 90px;
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
}

.legal-sidebar-title {
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border-color);
}

.legal-toc-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.legal-toc-link {
  font-size: 0.9rem;
  color: var(--text-secondary);
  font-weight: 500;
  padding: 0.4rem 0.6rem;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
  display: block;
}

.legal-toc-link:hover {
  background-color: var(--bg-secondary);
  color: var(--color-primary);
  transform: translateX(3px);
}

.legal-content-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 3rem 2.75rem;
  box-shadow: var(--shadow-sm);
}

.legal-meta-strip {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  font-size: 0.875rem;
  color: var(--text-muted);
  padding-bottom: 1.5rem;
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--border-color);
  flex-wrap: wrap;
}

.legal-meta-strip span {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.legal-section {
  margin-bottom: 2.75rem;
  scroll-margin-top: 100px;
}

.legal-section:last-child {
  margin-bottom: 0;
}

.legal-section h2 {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--border-subtle);
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
}

.legal-section h2 span.section-num {
  color: var(--color-primary);
  font-size: 1.2rem;
}

.legal-section h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-top: 1.25rem;
  margin-bottom: 0.6rem;
}

.legal-section p {
  font-size: 1rem;
  color: #334155;
  line-height: 1.75;
  margin-bottom: 1rem;
}

.legal-section ul,
.legal-section ol {
  margin: 1rem 0 1.25rem 1.25rem;
}

.legal-section ul {
  list-style: disc;
}

.legal-section ol {
  list-style: decimal;
}

.legal-section li {
  font-size: 0.975rem;
  color: #334155;
  line-height: 1.7;
  margin-bottom: 0.5rem;
}

.legal-callout {
  background-color: #f0fdf4;
  border-left: 4px solid var(--color-accent);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
}

.legal-callout.blue {
  background-color: #f0f9ff;
  border-left-color: var(--color-primary);
}

.legal-callout p {
  margin-bottom: 0;
  color: var(--text-primary);
  font-size: 0.95rem;
}

/* ==========================================================================
   RESPONSIVE QUERIES FOR SUBPAGES
   ========================================================================== */
@media (max-width: 992px) {
  .about-mission-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .values-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
  }

  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .accreditations-strip {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }

  .service-detail-row {
    grid-template-columns: 1fr;
    gap: 2.25rem;
  }

  .service-detail-row.reverse {
    direction: ltr;
  }

  .service-detail-visual img {
    height: 280px;
  }

  .contact-layout {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .legal-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .legal-sidebar {
    position: static;
    top: auto;
  }
}

@media (max-width: 640px) {
  .values-grid {
    grid-template-columns: 1fr;
  }

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

  .accreditations-strip {
    grid-template-columns: 1fr;
  }

  .service-checklist {
    grid-template-columns: 1fr;
  }

  .legal-content-card {
    padding: 2rem 1.25rem;
  }

  .contact-form-card {
    padding: 2rem 1.25rem;
  }
}

/* ==========================================================================
   MISSING COMPONENT STYLES
   (classes used in the HTML that previously had no CSS)
   ========================================================================== */
.section-tag.tag-blue {
  color: var(--color-primary);
  background-color: var(--bg-accent-soft);
}

.btn-outline-white {
  background-color: transparent;
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.75);
}

.btn-outline-white:hover {
  background-color: #ffffff;
  color: var(--color-primary);
  border-color: #ffffff;
  transform: translateY(-2px);
}

/* About page stats strip uses .stat-card instead of .stat-item */
.stat-card {
  position: relative;
}

.stat-card:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 15%;
  right: -1rem;
  height: 70%;
  width: 1px;
  background-color: var(--border-color);
}

/* Contact page booking form alert */
.form-alert {
  padding: 1rem 1.25rem;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  font-weight: 600;
}

.form-alert.success {
  background-color: var(--bg-mint-soft);
  border: 1px solid var(--color-accent);
  color: var(--color-accent-hover);
}

/* Contact page FAQ (answers are bare <p>, no .faq-answer-inner wrapper) */
.faq-accordion .faq-answer > p {
  padding: 0 1.5rem 1.5rem;
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.faq-chevron {
  flex-shrink: 0;
  color: var(--color-primary);
  transition: transform var(--transition-normal);
}

.faq-item.active .faq-chevron {
  transform: rotate(180deg);
}

/* ==========================================================================
   SMALL-DEVICE REFINEMENTS (tablets → 320px phones)
   ========================================================================== */

/* Grid/flex children default to min-width:auto, so one long unbreakable string
   (an email address or URL) stretches the whole column past the screen edge. */
.contact-grid > *,
.contact-layout > *,
.legal-layout > *,
.contact-details,
.contact-channel-info,
.footer-grid > *,
.footer-top > *,
.form-row > * {
  min-width: 0;
}

select.form-control,
.quick-quote-form select {
  max-width: 100%;
  text-overflow: ellipsis;
}

/* Contact page form fields have no .form-control class — style them here */
.contact-form-card input:not([type="checkbox"]):not([type="radio"]),
.contact-form-card select,
.contact-form-card textarea {
  display: block;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  padding: 0.85rem 1rem;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  background-color: var(--bg-secondary);
  font-size: 0.95rem;
  color: var(--text-primary);
  text-overflow: ellipsis;
  transition: border-color var(--transition-fast), background-color var(--transition-fast);
}

.contact-form-card input:focus,
.contact-form-card select:focus,
.contact-form-card textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  background-color: #ffffff;
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15);
}

.contact-form-card textarea {
  resize: vertical;
  min-height: 110px;
}

@media (max-width: 768px) {
  .contact-form-card input:not([type="checkbox"]):not([type="radio"]),
  .contact-form-card select,
  .contact-form-card textarea {
    font-size: 16px; /* stops iOS zoom-on-focus */
  }
}

@media (max-width: 640px) {
  .contact-form-card .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }
}

p, li, h1, h2, h3, h4, h5, h6, a, td {
  overflow-wrap: break-word;
}

a[href^="mailto:"],
.legal-section a {
  overflow-wrap: anywhere;
}
@media (max-width: 992px) {
  /* The open drawer must sit above the floating bar and scroll-top button */
  body.nav-open .site-header {
    z-index: 10002;
  }
}

@media (max-width: 768px) {
  .page-hero {
    padding: 2.5rem 0 2.25rem;
  }

  .page-hero::before,
  .hero::before {
    width: 280px;
    height: 280px;
  }

  .stat-card:not(:last-child)::after {
    display: none;
  }

  .why-card,
  .value-card,
  .review-card {
    padding: 1.75rem 1.4rem;
  }

  .process-step-card {
    padding: 2.25rem 1.5rem 1.75rem;
  }

  .areas-card {
    padding: 2rem 1.5rem;
  }

  .accreditations-strip {
    padding: 2rem 1.25rem;
    margin-top: 2.5rem;
  }

  .about-mission-grid {
    margin-bottom: 2.5rem;
  }

  .service-detail-section {
    padding: 2.5rem 0;
  }

  .contact-layout {
    padding: 2.5rem 0;
  }

  .legal-layout {
    padding: 2.5rem 0 4rem;
  }

  .legal-section h2 {
    font-size: 1.25rem;
  }

  .faq-question-btn {
    padding: 1.1rem 1.15rem;
    font-size: 0.975rem;
  }

  .faq-answer-inner,
  .faq-accordion .faq-answer > p {
    padding: 0 1.15rem 1.15rem;
  }

  /* Comparison table: keep columns readable and let the wrapper scroll sideways */
  .comparison-table-wrapper {
    -webkit-overflow-scrolling: touch;
  }

  .service-matrix {
    min-width: 600px;
    font-size: 0.875rem;
  }

  .service-matrix th,
  .service-matrix td {
    padding: 0.85rem 1rem;
  }

  /* Prevent iOS Safari from zooming into form fields (needs >= 16px) */
  .form-control,
  .quick-quote-form select,
  .quick-quote-form input,
  .zip-checker-input,
  .newsletter-input {
    font-size: 16px;
  }
}

@media (max-width: 640px) {
  .service-detail-visual img {
    height: 220px;
  }

  .service-card-footer {
    flex-wrap: wrap;
    gap: 0.75rem;
  }

  .service-content {
    padding: 1.4rem;
  }

  .contact-card-item,
  .contact-channel-card {
    padding: 1.15rem;
    gap: 0.9rem;
  }

  .legal-sidebar {
    padding: 1.15rem;
  }

  .hours-row {
    gap: 0.75rem;
  }

  .hours-row strong {
    text-align: right;
  }
}

@media (max-width: 480px) {
  /* Long CTA labels ("Calculate Instant Price (£)") must wrap, not overflow */
  .btn {
    white-space: normal;
    text-align: center;
    line-height: 1.3;
  }

  .btn-lg {
    padding: 0.85rem 1.4rem;
    font-size: 1rem;
  }

  .section-title {
    font-size: 1.65rem;
  }

  .page-title {
    font-size: 1.85rem;
  }

  .hero-title {
    font-size: 1.85rem;
  }

  .hero-card {
    padding: 1.25rem 1rem;
  }

  .calc-type-btn,
  .frequency-pill {
    padding: 0.7rem 0.35rem;
  }

  .addon-info {
    gap: 0.5rem;
  }

  .comparison-labels {
    padding: 0;
  }

  .comp-badge {
    font-size: 0.75rem;
    padding: 0.3rem 0.65rem;
  }

  .legal-content-card {
    padding: 1.5rem 1rem;
  }

  .legal-meta-strip {
    gap: 0.5rem 1rem;
  }

  .modal-close-btn {
    top: 0.75rem;
    right: 0.75rem;
  }
}

@media (max-width: 360px) {
  .container {
    padding-left: 0.85rem;
    padding-right: 0.85rem;
  }

  .brand-logo img {
    height: 40px;
    max-width: none;
  }

  .calc-stepper {
    padding: 0.4rem 0.5rem;
  }

  .stepper-btn {
    width: 30px;
    height: 30px;
  }

  .stats-grid {
    gap: 1rem 0.5rem;
  }
}

/* ==========================================================================
   SERVICES PAGE: "SEE OUR CLEANERS IN ACTION" VIDEO SHOWCASE
   ========================================================================== */
.work-section {
  background: linear-gradient(180deg, #ffffff 0%, var(--bg-tertiary) 100%);
  border-top: 1px solid var(--border-color);
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}

.work-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  /* Cards rise in one after another when the section scrolls into view */
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow var(--transition-normal), border-color var(--transition-normal);
}

.work-card.is-visible {
  opacity: 1;
  transform: none;
}

.work-card:nth-child(2) { transition-delay: 0.1s; }
.work-card:nth-child(3) { transition-delay: 0.2s; }
.work-card:nth-child(4) { transition-delay: 0.3s; }

.work-card.is-visible:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
  border-color: var(--color-primary-light);
  transition-delay: 0s;
}

.work-media {
  position: relative;
  aspect-ratio: 9 / 16;
  max-height: 520px;
  width: 100%;
  background-color: #0f172a;
  overflow: hidden;
}

.work-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.work-card:hover .work-video {
  transform: scale(1.04);
}

/* Soft shade so the label & button stay legible on bright frames */
.work-media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.35) 0%, rgba(15, 23, 42, 0) 28%, rgba(15, 23, 42, 0) 75%, rgba(15, 23, 42, 0.35) 100%);
  pointer-events: none;
}

.work-tag {
  position: absolute;
  top: 0.85rem;
  left: 0.85rem;
  z-index: 1;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.3rem 0.7rem;
  border-radius: var(--radius-full);
  background-color: rgba(255, 255, 255, 0.95);
  color: var(--color-primary);
  box-shadow: var(--shadow-sm);
}

.work-tag.tag-mint { color: var(--color-accent-hover); }
.work-tag.tag-amber { color: #b45309; }

.work-toggle {
  position: absolute;
  right: 0.85rem;
  bottom: 0.85rem;
  z-index: 1;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.92);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  transition: transform var(--transition-fast), background-color var(--transition-fast);
}

.work-toggle:hover {
  background-color: #ffffff;
  transform: scale(1.08);
}

.work-toggle:focus-visible {
  outline: 3px solid rgba(2, 132, 199, 0.5);
  outline-offset: 2px;
}

.work-toggle .icon-play { display: none; }
.work-card.is-paused .work-toggle .icon-play { display: block; }
.work-card.is-paused .work-toggle .icon-pause { display: none; }

.work-body {
  padding: 1.25rem 1.25rem 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  flex-grow: 1;
}

.work-body h3 {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text-primary);
}

.work-body p {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.55;
  flex-grow: 1;
}

.work-link {
  font-size: 0.875rem;
  font-weight: 700;
  margin-top: 0.35rem;
}

@media (max-width: 1024px) {
  .work-grid {
    grid-template-columns: repeat(2, 1fr);
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
  }
  .work-media {
    max-height: 460px;
  }
}

/* Phones: swipeable row with snap, next card peeking in as a hint */
@media (max-width: 640px) {
  .work-grid {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    margin: 2rem -1rem 0;
    padding: 0.25rem 1rem 1rem;
    scroll-padding-left: 1rem;
    scrollbar-width: none;
    max-width: none;
  }
  .work-grid::-webkit-scrollbar {
    display: none;
  }
  .work-card {
    flex: 0 0 78%;
    scroll-snap-align: start;
  }
  .work-media {
    max-height: 420px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .work-card,
  .work-video {
    transition: none;
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 360px) {
  .work-grid {
    margin-left: -0.85rem;
    margin-right: -0.85rem;
    padding-left: 0.85rem;
    padding-right: 0.85rem;
    scroll-padding-left: 0.85rem;
  }
}

/* ==========================================================================
   HERO QUOTE FORM: scroll target, validation & status message
   ========================================================================== */
#get-estimate {
  scroll-margin-top: calc(var(--header-height) + 1rem); /* clear the sticky header */
}

#get-estimate:focus {
  outline: none;
}

/* Pulse when "Calculate Instant Price (£)" brings the visitor here */
.hero-card.is-highlighted {
  animation: estimatePulse 1.6s ease-out 0.35s 1;
}

@keyframes estimatePulse {
  0%   { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.55), var(--shadow-xl); }
  70%  { box-shadow: 0 0 0 18px rgba(16, 185, 129, 0), var(--shadow-xl); }
  100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0), var(--shadow-xl); }
}

.quick-quote-form .is-invalid {
  border-color: var(--color-danger);
  background-color: #fef2f2;
}

.quick-quote-form .is-invalid:focus {
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.18);
}

/* Honeypot: off-screen, never visible to people or screen readers */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.quote-submit-btn[disabled] {
  opacity: 0.75;
  cursor: progress;
  transform: none;
}

.quote-status:empty {
  display: none;
}

.quote-status {
  margin-top: 1rem;
}

.quote-error {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-danger);
  text-align: center;
}

.quote-result {
  border: 1px solid var(--border-color);
  background: linear-gradient(180deg, var(--bg-mint-soft) 0%, #ffffff 100%);
  border-radius: var(--radius-md);
  padding: 1rem 1.1rem;
  text-align: center;
  animation: quoteResultIn 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes quoteResultIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: none; }
}

.quote-result-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}

.quote-result-price {
  font-size: 2.25rem;
  font-weight: 900;
  line-height: 1.1;
  color: var(--color-primary);
  margin: 0.15rem 0 0.25rem;
}

.quote-result-meta {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.quote-result-msg {
  font-size: 0.825rem;
  font-weight: 600;
  margin-top: 0.65rem;
  padding-top: 0.65rem;
  border-top: 1px dashed var(--border-color);
}

.quote-result-msg.success { color: var(--color-accent-hover); }
.quote-result-msg.warning { color: #b45309; }
.quote-result-msg.error   { color: var(--color-danger); }

@media (prefers-reduced-motion: reduce) {
  .hero-card.is-highlighted,
  .quote-result {
    animation: none;
  }
}

/* In-page anchors (service sections, video showcase) land below the sticky header */
.service-detail-section,
#our-work {
  scroll-margin-top: var(--header-height);
}

/* ==========================================================================
   WHATSAPP: floating button (all pages) + contact-card links
   ========================================================================== */
:root {
  --whatsapp: #25d366;
  --whatsapp-dark: #128c7e;
  --wa-size: 58px;
  --wa-gap: 2rem;              /* distance from the screen edge */
  --wa-bottom: 2rem;
}

.whatsapp-float {
  position: fixed;
  right: var(--wa-gap);
  bottom: var(--wa-bottom);
  z-index: 995;
  height: var(--wa-size);
  min-width: var(--wa-size);
  padding: 0 calc((var(--wa-size) - 30px) / 2);
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0;
  border-radius: var(--radius-full);
  background-color: var(--whatsapp);
  color: #ffffff;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4), 0 2px 6px rgba(15, 23, 42, 0.15);
  text-decoration: none;
  flex-direction: row-reverse;  /* icon stays on the right, label grows to the left */
  animation: waPopIn 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) 0.8s both;
  transition: background-color var(--transition-normal), box-shadow var(--transition-normal), gap var(--transition-smooth), transform var(--transition-normal);
}

.whatsapp-float svg {
  flex-shrink: 0;
}

/* Gentle attention ring every few seconds */
.whatsapp-float::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 2px solid var(--whatsapp);
  animation: waRing 3.2s ease-out 2s infinite;
  pointer-events: none;
}

.whatsapp-float-label {
  max-width: 0;
  overflow: hidden;
  white-space: nowrap;
  font-size: 0.95rem;
  font-weight: 700;
  opacity: 0;
  transition: max-width var(--transition-smooth), opacity var(--transition-normal);
}

.whatsapp-float:hover,
.whatsapp-float:focus-visible {
  background-color: var(--whatsapp-dark);
  color: #ffffff;
  gap: 0.6rem;
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(18, 140, 126, 0.45), 0 2px 6px rgba(15, 23, 42, 0.15);
}

.whatsapp-float:hover .whatsapp-float-label,
.whatsapp-float:focus-visible .whatsapp-float-label {
  max-width: 180px;
  opacity: 1;
}

.whatsapp-float:focus-visible {
  outline: 3px solid rgba(37, 211, 102, 0.45);
  outline-offset: 3px;
}

@keyframes waPopIn {
  from { opacity: 0; transform: scale(0.4) translateY(20px); }
  to   { opacity: 1; transform: none; }
}

@keyframes waRing {
  0%   { opacity: 0.7; transform: scale(1); }
  70%  { opacity: 0;   transform: scale(1.45); }
  100% { opacity: 0;   transform: scale(1.45); }
}

/* Scroll-to-top sits directly above the WhatsApp button, centred on it */
.scroll-top-btn {
  bottom: calc(var(--wa-bottom) + var(--wa-size) + 0.75rem);
  right: calc(var(--wa-gap) + (var(--wa-size) - 46px) / 2);
}

/* Phones & tablets: above the "Instant Booking" bar */
@media (max-width: 768px) {
  :root {
    --wa-size: 54px;
    --wa-gap: 1rem;
    --wa-bottom: calc(76px + 0.85rem + env(safe-area-inset-bottom, 0px));
  }
  .whatsapp-float-label {
    display: none; /* no hover on touch: icon only */
  }
  .scroll-top-btn {
    width: 42px;
    height: 42px;
    right: calc(var(--wa-gap) + (var(--wa-size) - 42px) / 2);
  }
  body.nav-open .whatsapp-float {
    opacity: 0;
    pointer-events: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .whatsapp-float,
  .whatsapp-float::before {
    animation: none;
  }
}

/* "Message us on WhatsApp →" links in contact cards */
.contact-whatsapp-link {
  display: inline-flex;
  align-items: center;
  margin-top: 0.35rem;
  font-size: 0.9rem !important;
  font-weight: 700;
  color: var(--whatsapp-dark) !important;
}

.contact-whatsapp-link:hover {
  color: #0b6b60 !important;
  text-decoration: underline;
}

.contact-details a,
.contact-channel-info a {
  display: block;
  width: fit-content;
}

/* Hero form: standalone status message (estimate block removed) */
.quote-status > .quote-result-msg {
  margin: 0;
  padding: 0.85rem 1rem;
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  text-align: center;
  line-height: 1.5;
  animation: quoteResultIn 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.quote-status > .quote-result-msg.success { background: var(--bg-mint-soft); border-color: rgba(16, 185, 129, 0.35); }
.quote-status > .quote-result-msg.warning { background: var(--bg-amber-soft); border-color: rgba(245, 158, 11, 0.35); }
.quote-status > .quote-result-msg.error   { background: #fef2f2; border-color: rgba(239, 68, 68, 0.3); }

/* ==========================================================================
   TYPOGRAPHY: heading font + highlighted keywords in headings
   ========================================================================== */
h1, h2, h3, h4, h5, h6,
.section-title,
.page-title,
.hero-title,
.stat-number,
.step-number,
.total-price,
.quote-result-price,
.service-pricing-badge .price {
  font-family: var(--font-heading);
}

h1, h2, .section-title, .page-title, .hero-title {
  letter-spacing: -0.02em;
}

h3, h4, h5, h6 {
  letter-spacing: -0.005em;
}

/*
 * <span class="hl">…</span> highlights a key phrase in a heading:
 * brand-blue text with a hand-drawn mint marker stroke underneath
 * (like the underline under the logo's tagline). The stroke "draws"
 * left-to-right when the heading scrolls into view (see main.js, section 10).
 */
.hl {
  --hl-text: var(--color-primary);
  --hl-stroke: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 24' preserveAspectRatio='none'%3E%3Cpath d='M4 15.5C58 7.5 140 4.5 206 6.5c33 1 63 3.5 90 7' fill='none' stroke='%2334d399' stroke-width='8' stroke-linecap='round'/%3E%3Cpath d='M30 19.5c64-6 140-7.5 230-4' fill='none' stroke='%2334d399' stroke-width='4' stroke-linecap='round' opacity='.55'/%3E%3C/svg%3E");
  color: var(--hl-text);
  background-image: var(--hl-stroke);
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 100% 0.38em;
  padding-bottom: 0.08em;
  /* each wrapped line gets its own stroke */
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
  transition: background-size 0.9s cubic-bezier(0.65, 0, 0.35, 1);
}

/* Start undrawn only when JS is running (no JS = always visible) */
.js-hl .hl:not(.is-drawn) {
  background-size: 0% 0.38em;
}

/* On dark backgrounds (video hero, blue CTA banners) */
.hero.has-video .hl {
  --hl-text: #7dd3fc;
}

.hl-light {
  --hl-text: #ffffff;
  --hl-stroke: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 24' preserveAspectRatio='none'%3E%3Cpath d='M4 15.5C58 7.5 140 4.5 206 6.5c33 1 63 3.5 90 7' fill='none' stroke='%236ee7b7' stroke-width='8' stroke-linecap='round'/%3E%3Cpath d='M30 19.5c64-6 140-7.5 230-4' fill='none' stroke='%236ee7b7' stroke-width='4' stroke-linecap='round' opacity='.55'/%3E%3C/svg%3E");
}

@media (prefers-reduced-motion: reduce) {
  .hl {
    transition: none;
  }
  .js-hl .hl:not(.is-drawn) {
    background-size: 100% 0.38em;
  }
}

/* Service cards: price removed, so the booking button fills the footer */
.service-card-footer > .btn:only-child {
  flex: 1;
  width: 100%;
  padding-top: 0.65rem;
  padding-bottom: 0.65rem;
}

/* ==========================================================================
   FORMS → WHATSAPP: button icon, confirmation message & fallback link
   ========================================================================== */
button[type="submit"] svg {
  flex-shrink: 0;
}

/* Inside the green success boxes the message needs no extra frame */
.form-success-alert .quote-result-msg,
.form-alert .quote-result-msg {
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  text-align: left;
}

.wa-fallback-link {
  display: inline-block;
  margin-top: 0.35rem;
  font-weight: 700;
  color: var(--whatsapp-dark, #128c7e);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.wa-fallback-link:hover {
  color: #0b6b60;
}

/* Homepage services grid: 5 cards → centre the incomplete last row */
@media (min-width: 1025px) {
  .services-grid {
    grid-template-columns: repeat(6, 1fr);
  }
  .services-grid > .service-card {
    grid-column: span 2;
  }
  /* 3 + 2 layout: shift the 4th card in by one track so the last two sit centred */
  .services-grid > .service-card:nth-child(4):nth-last-child(2) {
    grid-column: 2 / span 2;
  }
}

@media (min-width: 641px) and (max-width: 1024px) {
  /* 2 + 2 + 1 layout: centre the final odd card */
  .services-grid > .service-card:last-child:nth-child(odd) {
    grid-column: 1 / -1;
    justify-self: center;
    width: calc(50% - 1rem);
  }
}

/* About page: 5 value cards → centre the 2 cards on the last row (desktop) */
@media (min-width: 993px) {
  .values-grid {
    grid-template-columns: repeat(6, 1fr);
  }
  .values-grid > .value-card {
    grid-column: span 2;
  }
  .values-grid > .value-card:nth-child(4):nth-last-child(2) {
    grid-column: 2 / span 2;
  }
  /* 3 accreditations now, so 3 equal columns */
  .accreditations-strip {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 641px) and (max-width: 992px) {
  .values-grid > .value-card:last-child:nth-child(odd),
  .accreditations-strip > .accred-item:last-child:nth-child(odd) {
    grid-column: 1 / -1;
    justify-self: center;
    max-width: 50%;
  }
}
