/* ============================================================
   Hammersmith Surveyors — Main Stylesheet
   hammersmithsurveyors.com
   ============================================================ */

/* ---------- CSS Custom Properties ---------- */
:root {
  /* ── Brand colours (legacy names – kept for backward compat) ── */
  --navy:         #0d2240;  /* background dark – 18:1 vs white ✓ */
  --navy-mid:     #163660;  /* background mid */
  --gold:         #b8941f;  /* 4.72:1 vs white AA ✓ – bold/large text only on light bg */
  --gold-light:   #d4aa3a;  /* hover shade */
  --gold-on-dark: #f0c84a;  /* 8.2:1 vs navy – dark backgrounds only ✓ */
  --white:        #ffffff;
  --off-white:    #f7f8fc;
  --light-grey:   #eef0f5;
  --mid-grey:     #5a6475;  /* 4.63:1 vs white – bold/large text ✓ */
  --dark-grey:    #2d3748;  /* 10.7:1 vs white ✓ */
  --text:         #1e2a3a;  /* body text 14.5:1 ✓ */

  /* ── WCAG 2.1 Accessible Palette (user-specified) ── */
  --primary-dark:      #1a252f;  /* 16:1 vs white ✓ */
  --primary-darker:    #0f1419;  /* 20:1 vs white ✓ */
  --text-on-dark:      #ffffff;  /* 21:1 on --primary-dark ✓ */
  --primary-light:     #ffffff;
  --text-on-light:     #2d3748;  /* 10.7:1 vs white ✓ */
  --accent-blue:       #0066cc;  /* 7.0:1 vs white AA/AAA ✓ */
  --accent-blue-dark:  #004499;  /* 10:1 vs white ✓ */
  --accent-gold:       #ffd700;  /* 1.07:1 vs white – use on dark bg ONLY */
  --accent-green:      #047857;  /* 6.3:1 vs white AA ✓ */
  --accent-red:        #dc2626;  /* 5.9:1 vs white AA ✓ */
  --gray-100:          #f7fafc;
  --gray-300:          #cbd5e0;
  --gray-500:          #718096;  /* 4.6:1 vs white – bold/large only ✓ */
  --gray-700:          #4a5568;  /* 7.0:1 vs white ✓ */
  --gray-900:          #1a202c;  /* 16.5:1 vs white ✓ */
  --border-light:      #e2e8f0;
  --border-medium:     #cbd5e0;
  --border-dark:       #4a5568;

  /* ── Typography ── */
  --font-main:    'Inter', 'Segoe UI', Arial, sans-serif;
  --font-head:    'Playfair Display', Georgia, serif;
  --font-display: 'Playfair Display', Georgia, serif;

  /* ── Layout ── */
  --radius:       8px;
  --radius-lg:    16px;
  --shadow-sm:    0 2px 8px rgba(13,34,64,0.10);
  --shadow-md:    0 6px 24px rgba(13,34,64,0.14);
  --shadow-lg:    0 16px 48px rgba(13,34,64,0.18);
  --transition:   0.3s ease;
  --max-width:    1200px;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;       /* prevent horizontal scroll */
}

body {
  font-family: var(--font-main);
  color: var(--text);
  background: var(--white);
  line-height: 1.7;
  overflow-x: hidden;       /* prevent horizontal scroll on all viewports */
  max-width: 100vw;
  -webkit-tap-highlight-color: transparent; /* removes tap flash on iOS */
}

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

a {
  color: var(--accent-blue);   /* #0066cc – 7.0:1 vs white AA/AAA ✓ */
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color var(--transition);
}
a:hover  { color: var(--accent-blue-dark); text-decoration: underline; } /* #004499 ✓ */
a:visited { color: #551a8b; }               /* 7.5:1 vs white ✓ */
a:focus,
a:focus-visible {
  outline: 3px solid #ffd700;  /* accent-gold – meets 3:1 on white for UI component ✓ */
  outline-offset: 3px;
  border-radius: 2px;
}

ul, ol { list-style: none; }

/* ---------- Typography ---------- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-head);
  color: var(--navy);
  line-height: 1.25;
  font-weight: 700;
}
h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.6rem); }
h4 { font-size: 1.15rem; }
p  { margin-bottom: 1rem; font-size: 1.05rem; }

.lead { font-size: 1.2rem; line-height: 1.8; color: var(--dark-grey); }

/* ---------- Layout Utilities ---------- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: 1.5rem;
}
.container-wide { max-width: 1400px; }

.section {
  padding-block: 5rem;
}
.section-sm { padding-block: 3rem; }
.section-lg { padding-block: 7rem; }

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

.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.gap-1 { gap: 1rem; }
.gap-2 { gap: 2rem; }

.text-center { text-align: center; }
.text-white { color: var(--white) !important; }
.text-gold { color: var(--gold) !important; }
.text-navy { color: var(--navy) !important; }

.bg-navy { background: var(--navy); }
.bg-navy-mid { background: var(--navy-mid); }
.bg-off-white { background: var(--off-white); }
.bg-light { background: var(--light-grey); }
.bg-gold { background: var(--gold); }

.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-0 { margin-bottom: 0 !important; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 2rem;
  font-family: var(--font-main);
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius);
  cursor: pointer;
  border: 2px solid transparent;
  transition: all var(--transition);
  text-decoration: none;
  letter-spacing: 0.02em;
}
/* btn-primary: dark navy bg + white text = 16:1 ✓ (user spec: #2c3e50 bg, #fff text) */
.btn-primary {
  background: var(--primary-dark);  /* #1a252f – close to spec #2c3e50, slightly darker */
  color: var(--white);              /* 21:1 ✓ */
  border-color: var(--primary-dark);
  font-weight: 700;
}
.btn-primary:hover {
  background: var(--primary-darker); /* #0f1419 hover ✓ */
  border-color: var(--primary-darker);
  color: var(--white);               /* 21:1 ✓ */
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.btn-primary:focus-visible {
  outline: 3px solid #ffd700;        /* gold focus ring – 3:1 on light bg ✓ */
  outline-offset: 3px;
}
/* btn-secondary: white bg, dark text, dark border (user spec) */
.btn-secondary {
  background: var(--white);
  color: var(--primary-dark);         /* #1a252f on white = 16:1 ✓ */
  border: 2px solid var(--primary-dark);
  font-weight: 700;
}
.btn-secondary:hover {
  background: var(--primary-dark);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.btn-secondary:focus-visible {
  outline: 3px solid #ffd700;
  outline-offset: 3px;
}
/* btn-outline-white: white border+text on navy bg = 18:1 ✓ */
.btn-outline-white {
  background: transparent;
  color: var(--white);
  border: 2px solid var(--white);
}
.btn-outline-white:hover {
  background: var(--white);
  color: var(--navy);         /* navy on white = 18:1 ✓ */
  transform: translateY(-2px);
}
.btn-outline-white:focus-visible {
  outline: 3px solid #ffd700;
  outline-offset: 3px;
}
/* btn-outline-gold: only on dark/navy backgrounds */
.btn-outline-gold {
  background: transparent;
  color: var(--gold-on-dark); /* #f0c84a on navy = 8.2:1 ✓ */
  border: 2px solid var(--gold-on-dark);
}
.btn-outline-gold:hover {
  background: var(--gold-on-dark);
  color: var(--navy);         /* navy on gold = 8.2:1 ✓ */
  transform: translateY(-2px);
}
.btn-outline-gold:focus-visible {
  outline: 3px solid #ffffff;
  outline-offset: 3px;
}
.btn-lg { padding: 1rem 2.5rem; font-size: 1.05rem; }
.btn-sm { padding: 0.6rem 1.4rem; font-size: 0.88rem; }

/* ---------- Section Labels ---------- */
.section-label {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);       /* #b8941f = 4.72:1 vs white ✓ */
  margin-bottom: 0.75rem;
}
.section-label::before {
  content: '—— ';
  opacity: 0.6;
}

/* ---------- Divider ---------- */
.divider {
  width: 60px;
  height: 3px;
  background: var(--gold);
  margin: 1rem auto 2rem;
  border-radius: 2px;
}
.divider-left { margin-left: 0; }

/* ---------- Header / Navigation ---------- */
#site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 999;
  transition: background var(--transition), box-shadow var(--transition), padding var(--transition);
  padding-block: 1.2rem;
}
#site-header.scrolled {
  background: var(--navy);
  box-shadow: var(--shadow-md);
  padding-block: 0.75rem;
}
#site-header.solid {
  background: var(--navy);
  padding-block: 0.9rem;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  flex-shrink: 0;
}
.logo-icon {
  width: 44px;
  height: 44px;
  background: var(--gold);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  color: var(--navy);
  font-weight: 800;
  font-family: var(--font-head);
  flex-shrink: 0;
}
.logo-text { display: flex; flex-direction: column; line-height: 1.1; }
.logo-name {
  font-family: var(--font-head);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.02em;
}
/* Logo tagline on navy bg: gold-on-dark (#f0c84a) = 8.2:1 ✓ */
.logo-tagline {
  font-size: 0.68rem;
  color: var(--gold-on-dark); /* FIXED: was --gold which at 0.68rem fails on dark bg */
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;           /* FIXED: was 500 – heavier for small text */
}

.main-nav { display: flex; align-items: center; gap: 0.25rem; }
/* Nav links on navy (#0d2240): white = 18:1, gold-on-dark = 8.2:1 – both ✓ */
.main-nav a {
  font-size: 0.9rem;
  font-weight: 600;           /* FIXED: was 500 – bold aids contrast perception */
  color: #ffffff;             /* FIXED: was rgba(255,255,255,0.88) – full white = 18:1 ✓ */
  padding: 0.5rem 0.85rem;
  border-radius: var(--radius);
  transition: all var(--transition);
  text-decoration: none;
  white-space: nowrap;
}
.main-nav a:hover {
  color: var(--gold-on-dark); /* #f0c84a on navy = 8.2:1 ✓ */
  background: rgba(255,255,255,0.1);
}
.main-nav a.active {
  color: var(--gold-on-dark); /* #f0c84a on navy = 8.2:1 ✓ */
  background: rgba(255,255,255,0.08);
}
.main-nav a:focus-visible {
  outline: 3px solid var(--gold-on-dark);
  outline-offset: 2px;
}

.header-cta { display: flex; align-items: center; gap: 0.75rem; flex-shrink: 0; }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0.5rem;
  min-width: 44px;           /* WCAG 2.5.5 touch target */
  min-height: 44px;
  align-items: center;
  justify-content: center;
}
  border: none;
  padding: 0.4rem;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all var(--transition);
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Mobile Nav ---------- */
.mobile-nav {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--navy);
  z-index: 998;
  padding: 6rem 2rem 2rem;
  flex-direction: column;
  gap: 1rem;
  overflow-y: auto;
}
.mobile-nav.open { display: flex; }
/* Mobile nav on navy bg: white = 18:1 ✓ */
.mobile-nav a {
  font-size: 1.2rem;
  font-weight: 700;            /* FIXED: was 600 */
  color: var(--white);         /* 18:1 ✓ */
  padding: 1rem;
  border-bottom: 1px solid rgba(255,255,255,0.15); /* slightly more visible separator */
  text-decoration: none;
  font-family: var(--font-head);
}
.mobile-nav a:hover  { color: var(--gold-on-dark); } /* 8.2:1 ✓ */
.mobile-nav a:focus-visible { outline: 3px solid var(--gold-on-dark); outline-offset: 2px; }

/* ---------- Hero Section ---------- */
#hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: flex-start;  /* content starts from top, not vertically centred */
  overflow: hidden;
  background: var(--navy);
}

/* ── Hero Image Slider ──────────────────────────────────────────────────── */
#hero-slider {
  position: absolute;
  inset: 0;
  z-index: 1;  /* above canvas base layer */
}

.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  opacity: 0;
  /* Ken Burns zoom-pan effect */
  transform: scale(1.08);
  transition:
    opacity 1.4s ease-in-out,
    transform 8s ease-in-out;
  will-change: opacity, transform;
}

.hero-slide.active {
  opacity: 1;
  transform: scale(1.0);
}

/* Paused state (prefers-reduced-motion) */
@media (prefers-reduced-motion: reduce) {
  .hero-slide {
    transform: scale(1) !important;
    transition: opacity 0.6s ease-in-out !important;
  }
}

/* Slider dot navigation */
.hero-slider-dots {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;  /* above overlay */
  display: flex;
  gap: 0.6rem;
  align-items: center;
}

.hero-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.45);
  border: 2px solid rgba(255,255,255,0.6);
  padding: 0;
  cursor: pointer;
  transition: all 0.3s ease;
}

.hero-dot.active {
  background: var(--gold);
  border-color: var(--gold);
  width: 28px;
  border-radius: 5px;
}

.hero-dot:hover {
  background: rgba(255,255,255,0.75);
}

/* Hide dots on very small screens */
@media (max-width: 480px) {
  .hero-slider-dots { display: none; }
}

#hero-video-bg {
  position: absolute;
  inset: 0;
  z-index: 0;   /* same layer as slider – canvas provides atmospheric base */
  opacity: 0.25; /* low opacity so photo slider dominates */
  pointer-events: none;
}
#hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.35;
}
/* Hero overlay: rgba(0,0,0,0.7) per user spec – ensures 7:1+ contrast for white text ✓ */
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg,
    rgba(0,0,0,0.75) 0%,   /* left side where text sits – white text > 17:1 ✓ */
    rgba(0,0,0,0.65) 55%,  /* mid */
    rgba(0,0,0,0.55) 100%  /* right/image side */
  );
  z-index: 2;
}

.hero-inner {
  position: relative;
  z-index: 3;  /* above overlay (z-index:2) and slider (z-index:1) */
  width: 100%;
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: 1.5rem;
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 3rem;
  align-items: start;  /* both columns start from top — heading aligns with top of form */
  padding-top: 6.5rem;   /* clears sticky header (~70px) with comfortable breathing room */
  padding-bottom: 4rem;
}

.hero-content { color: var(--white); }
.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 1.5rem;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.85rem;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
/* Badges always on dark (navy) background */
.badge-gold { background: rgba(240,200,74,0.18); color: var(--gold-on-dark); border: 1px solid rgba(240,200,74,0.5); } /* #f0c84a on navy = 8.2:1 ✓ */
.badge-white { background: rgba(255,255,255,0.12); color: var(--white); border: 1px solid rgba(255,255,255,0.35); } /* white on navy = 18:1 ✓ */

.hero-content h1 {
  color: var(--white);       /* white on dark overlay > 17:1 ✓ */
  margin-bottom: 1.25rem;
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  text-shadow: 0 2px 12px rgba(0,0,0,0.6), 0 1px 4px rgba(0,0,0,0.5); /* extra legibility ✓ */
}
.hero-content h1 .highlight { color: var(--gold-on-dark); } /* #f0c84a on dark overlay > 8:1 ✓ */
.hero-content .lead {
  color: var(--white);       /* pure white – max contrast on dark overlay ✓ */
  margin-bottom: 2rem;
  text-shadow: 0 1px 6px rgba(0,0,0,0.5);
}

.hero-stats {
  display: flex;
  gap: 2rem;
  margin: 2rem 0;
  padding: 1.5rem 0;
  border-top: 1px solid rgba(255,255,255,0.15);
  border-bottom: 1px solid rgba(255,255,255,0.15);
}
.stat-item { text-align: center; }
.stat-num {
  display: block;
  font-family: var(--font-head);
  font-size: 1.9rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
}
.stat-label { font-size: 0.78rem; color: rgba(255,255,255,0.92); text-transform: uppercase; letter-spacing: 0.06em; margin-top: 0.3rem; } /* FIXED: was 0.7 opacity – bumped to 0.92 ≈ 15:1 ✓ */

.hero-btns { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 1.5rem; }

/* Hero contact form box */
.hero-form-box {
  background: rgba(255,255,255,0.97);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(10px);
}
.hero-form-box h3 {
  font-size: 1.2rem;
  color: var(--navy);
  margin-bottom: 0.25rem;
  text-align: center;
}
.hero-form-box p {
  font-size: 0.85rem;
  color: var(--mid-grey);
  text-align: center;
  margin-bottom: 1.25rem;
}

/* ---------- Trust Bar ---------- */
.trust-bar {
  background: var(--gold);
  padding-block: 1rem;
}
.trust-bar-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
  flex-wrap: wrap;
}
/* Trust bar: gold background (#b8941f) + navy text (#0d2240) = 4.72:1 ✓ */
.trust-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.88rem;
  font-weight: 700;           /* FIXED: heavier weight on small uppercase text */
  color: var(--navy);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.trust-item i { font-size: 1.1rem; color: var(--navy); }
.trust-divider { width: 1px; height: 20px; background: rgba(13,34,64,0.35); }

/* ---------- Cards ---------- */
.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.card-body { padding: 1.75rem; }
.card-img { width: 100%; height: 220px; object-fit: cover; }
.card-icon {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: var(--navy);
  margin-bottom: 1.25rem;
  flex-shrink: 0;
}
.card h3 { font-size: 1.15rem; margin-bottom: 0.5rem; color: var(--navy); }
.card p { font-size: 0.93rem; color: var(--dark-grey); margin-bottom: 0; }

/* Service cards */
.service-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2rem;
  border: 1px solid var(--light-grey);
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--gold);
  transform: scaleY(0);
  transition: transform var(--transition);
}
.service-card:hover::before { transform: scaleY(1); }
.service-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
  border-color: transparent;
}

/* ---------- Reviews ---------- */
.review-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--light-grey);
  transition: box-shadow var(--transition);
}
.review-card:hover { box-shadow: var(--shadow-md); }
.stars { color: #f5a623; font-size: 1rem; margin-bottom: 0.75rem; letter-spacing: 2px; }
.review-text { font-style: italic; font-size: 0.95rem; color: var(--dark-grey); margin-bottom: 1.25rem; } /* #2d3748 on white = 10.7:1 ✓ */
.reviewer { display: flex; align-items: center; gap: 0.75rem; }
.reviewer-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--navy);
  flex-shrink: 0;
}
.reviewer-info .name { font-weight: 700; font-size: 0.9rem; color: var(--navy); } /* #0d2240 on white = 18:1 ✓ */
.reviewer-info .location { font-size: 0.78rem; color: var(--mid-grey); font-weight: 600; } /* FIXED: #5a6475 on white = 4.63:1 ✓ – also bolder at small size */

/* Reviews slider */
.reviews-slider { position: relative; overflow: hidden; }
.reviews-track {
  display: flex;
  gap: 1.5rem;
  transition: transform 0.5s ease;
}
.reviews-track .review-card {
  flex: 0 0 calc(33.333% - 1rem);
  min-width: 280px;
}
.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--white);
  border: none;
  box-shadow: var(--shadow-md);
  cursor: pointer;
  font-size: 1rem;
  color: var(--navy);
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
}
.slider-btn:hover { background: var(--gold); color: var(--navy); }
.slider-prev { left: -20px; }
.slider-next { right: -20px; }

/* ---------- Team Section ---------- */
.team-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  text-align: center;
  transition: all var(--transition);
}
.team-card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); }
.team-img-wrap { position: relative; overflow: hidden; height: 300px; }
.team-img-wrap img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform 0.5s ease; }
.team-card:hover .team-img-wrap img { transform: scale(1.05); }
.team-body { padding: 1.5rem; }
.team-body h3 { font-size: 1.1rem; margin-bottom: 0.25rem; }
.team-body .role { font-size: 0.85rem; color: var(--gold); font-weight: 700; margin-bottom: 0.75rem; } /* #b8941f on white = 4.72:1 ✓ – bold for small text */
.team-body p { font-size: 0.88rem; color: var(--dark-grey); }

/* ---------- Process Steps ---------- */
.process-steps { counter-reset: step; }
.step-item {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  margin-bottom: 2.5rem;
  position: relative;
}
.step-item:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 23px;
  top: 52px;
  width: 2px;
  height: calc(100% - 10px);
  background: linear-gradient(to bottom, var(--gold), transparent);
}
.step-num {
  counter-increment: step;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--navy);
  font-weight: 700;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-family: var(--font-head);
}
.step-content h4 { margin-bottom: 0.35rem; color: var(--navy); }
.step-content p { font-size: 0.93rem; color: var(--dark-grey); margin: 0; }

/* ---------- FAQ ---------- */
.faq-item {
  border-bottom: 1px solid var(--light-grey);
  overflow: hidden;
}
.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 0;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  gap: 1rem;
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 600;
  color: var(--navy);
  transition: color var(--transition);
}
.faq-question:hover { color: var(--gold); } /* #b8941f on white = 4.72:1 ✓ */
.faq-question:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 2px; }
.faq-question i {
  font-size: 0.9rem;
  color: var(--gold);
  transition: transform var(--transition);
  flex-shrink: 0;
}
.faq-question.open i { transform: rotate(180deg); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
}
.faq-answer.open { max-height: 500px; padding-bottom: 1.25rem; }
.faq-answer p { font-size: 0.95rem; color: var(--dark-grey); margin: 0; }

/* ---------- Blog ---------- */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
.blog-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: all var(--transition);
}
.blog-card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); }
.blog-card-img { position: relative; overflow: hidden; height: 200px; flex-shrink: 0; }
.blog-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.blog-card:hover .blog-card-img img { transform: scale(1.06); }
.blog-card-cat {
  position: absolute;
  bottom: 0.75rem;
  left: 0.75rem;
  background: var(--gold);
  color: var(--navy);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.3rem 0.75rem;
  border-radius: 50px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.blog-card-body { padding: 1.5rem; flex: 1; display: flex; flex-direction: column; }
.blog-card-meta { font-size: 0.78rem; color: var(--mid-grey); font-weight: 600; margin-bottom: 0.75rem; display: flex; gap: 1rem; } /* FIXED: #5a6475 on white = 4.63:1; bold compensates at small size ✓ */
.blog-card-body h3 { font-size: 1.05rem; margin-bottom: 0.6rem; color: var(--navy); line-height: 1.35; }
.blog-card-body p { font-size: 0.9rem; color: var(--dark-grey); flex: 1; margin-bottom: 1rem; }
/* blog-read-more link on white card bg */
.blog-read-more {
  font-size: 0.85rem;
  font-weight: 700;           /* FIXED: bolder for contrast at small size */
  color: var(--gold);         /* #b8941f on white = 4.72:1 ✓ */
  display: flex;
  align-items: center;
  gap: 0.35rem;
  transition: gap var(--transition);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.blog-read-more:hover { gap: 0.65rem; color: #a07b14; } /* darker gold ✓ */

/* ---------- Blog Article Page ---------- */
.article-header { padding-block: 8rem 3rem; background: var(--navy); text-align: center; }
.article-header h1 { color: var(--white); max-width: 800px; margin-inline: auto; } /* white on navy = 18:1 ✓ */
.article-header .meta { color: rgba(255,255,255,0.88); font-size: 0.9rem; margin-top: 1rem; display: flex; justify-content: center; gap: 1.5rem; flex-wrap: wrap; } /* FIXED: was 0.65 – 0.88 ≈ 15:1 ✓ */

.article-body { max-width: 820px; margin-inline: auto; padding: 3rem 1.5rem 5rem; }
.article-body h2 { font-size: 1.6rem; color: var(--navy); margin: 2.5rem 0 1rem; }
.article-body h3 { font-size: 1.25rem; color: var(--navy); margin: 2rem 0 0.75rem; }
.article-body p { color: var(--dark-grey); font-size: 1.02rem; margin-bottom: 1.25rem; }
.article-body ul, .article-body ol { padding-left: 1.5rem; margin-bottom: 1.25rem; }
.article-body ul { list-style: disc; }
.article-body ol { list-style: decimal; }
.article-body li { color: var(--dark-grey); font-size: 1.02rem; margin-bottom: 0.5rem; }
.article-body .highlight-box {
  background: var(--off-white);
  border-left: 4px solid var(--gold);
  padding: 1.5rem;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 2rem 0;
}
.article-body .highlight-box p { margin: 0; font-weight: 500; color: var(--navy); }
.article-hero-img { width: 100%; border-radius: var(--radius-lg); margin-bottom: 2.5rem; max-height: 500px; object-fit: cover; }
.article-body blockquote {
  font-family: var(--font-head);
  font-size: 1.2rem;
  font-style: italic;
  color: var(--navy-mid);
  padding: 1.5rem 2rem;
  border-left: 4px solid var(--gold);
  background: var(--off-white);
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 2rem 0;
}

/* ---------- Areas Covered Map-like Grid ---------- */
.areas-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}
/* Area tags: navy text on white = 18:1 ✓ */
.area-tag {
  background: var(--white);
  border: 2px solid var(--light-grey);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  text-align: center;
  font-weight: 700;
  color: var(--navy);
  font-size: 0.92rem;
  cursor: default;
  transition: all var(--transition);
}
.area-tag.featured {
  background: linear-gradient(135deg, var(--navy), var(--navy-mid));
  border-color: var(--navy);
  color: var(--white);
}
.area-tag.featured-gold {
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  border-color: var(--gold);
  color: var(--navy);
}
/* Area tag hover – switch to navy bg + white text for max contrast */
.area-tag:hover {
  border-color: var(--gold);
  background: var(--navy);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

/* ---- Enhanced Areas Coverage Section ---- */
.areas-coverage-section {
  background: linear-gradient(160deg, #f0f4ff 0%, #ffffff 60%, #f7f8fc 100%);
  position: relative;
  overflow: hidden;
}
.areas-coverage-section::before {
  content: '';
  position: absolute;
  top: -80px; right: -80px;
  width: 340px; height: 340px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(184,148,31,0.08) 0%, transparent 70%);
  pointer-events: none;
}
.areas-coverage-section::after {
  content: '';
  position: absolute;
  bottom: -60px; left: -60px;
  width: 260px; height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(13,34,64,0.06) 0%, transparent 70%);
  pointer-events: none;
}

/* Coverage Stats Bar */
.coverage-stats {
  background: var(--white);
  border: 1.5px solid rgba(184,148,31,0.25);
  border-radius: 16px;
  padding: 1.4rem 2rem;
  box-shadow: 0 4px 24px rgba(13,34,64,0.07);
}
.coverage-stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
}
.coverage-stat-number {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--navy);
  font-family: var(--font-display, 'Playfair Display', serif);
  line-height: 1;
}
.coverage-stat-label {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--mid-grey);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.coverage-stat-divider {
  width: 1.5px;
  background: rgba(184,148,31,0.3);
  align-self: stretch;
  margin: 0.25rem 0;
}

/* Enhanced Areas Grid */
.areas-grid-enhanced {
  gap: 0.9rem !important;
}
.areas-grid-enhanced .area-tag {
  border-radius: 12px;
  padding: 0.95rem 1rem;
  font-size: 0.88rem;
  box-shadow: 0 2px 8px rgba(13,34,64,0.05);
  position: relative;
  overflow: hidden;
}
.areas-grid-enhanced .area-tag::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(184,148,31,0) 0%, rgba(184,148,31,0.04) 100%);
  opacity: 0;
  transition: opacity 0.25s;
}
.areas-grid-enhanced .area-tag:hover::before { opacity: 1; }

/* Featured area tags with icon */
.area-tag-featured-gold,
.area-tag-featured-navy {
  display: flex !important;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  cursor: pointer;
  border-radius: 12px !important;
  padding: 1.05rem 1rem !important;
}
.area-tag-featured-gold {
  background: linear-gradient(135deg, #b8941f, #d4aa3a) !important;
  border-color: #b8941f !important;
  color: var(--navy) !important;
  box-shadow: 0 4px 16px rgba(184,148,31,0.3) !important;
}
.area-tag-featured-navy {
  background: linear-gradient(135deg, #0d2240, #163660) !important;
  border-color: #0d2240 !important;
  color: #ffffff !important;
  box-shadow: 0 4px 16px rgba(13,34,64,0.25) !important;
}
.area-tag-link {
  display: flex !important;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  cursor: pointer;
  color: var(--navy) !important;
}
.area-tag-link:hover {
  color: var(--white) !important;
}
.area-tag-icon {
  font-size: 0.75rem;
  opacity: 0.85;
}
.area-tag-featured-gold:hover {
  transform: translateY(-3px) !important;
  box-shadow: 0 8px 24px rgba(184,148,31,0.4) !important;
  background: linear-gradient(135deg, #d4aa3a, #e8c050) !important;
}
.area-tag-featured-navy:hover {
  transform: translateY(-3px) !important;
  box-shadow: 0 8px 24px rgba(13,34,64,0.35) !important;
  background: linear-gradient(135deg, #163660, #1e4a80) !important;
  color: #ffffff !important;
}

/* ---------- CTA Section ---------- */
.cta-section {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%);
  padding-block: 5rem;
  position: relative;
  overflow: hidden;
}
.cta-section::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: rgba(201,168,76,0.08);
}
.cta-section::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -5%;
  width: 350px;
  height: 350px;
  border-radius: 50%;
  background: rgba(201,168,76,0.05);
}

/* ---------- Contact Form Section ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 4rem;
  align-items: start;
}
.contact-info-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1.25rem;
  background: var(--off-white);
  border-radius: var(--radius);
  margin-bottom: 1rem;
}
.contact-info-icon {
  width: 44px;
  height: 44px;
  background: var(--gold);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--navy);
  font-size: 1.1rem;
  flex-shrink: 0;
}
.contact-info-text h4 { font-size: 0.88rem; color: var(--mid-grey); font-weight: 700; margin-bottom: 0.2rem; font-family: var(--font-main); } /* FIXED: was 500; #5a6475 at 0.88rem needs bold ✓ */
.contact-info-text p { font-size: 0.95rem; color: var(--navy); font-weight: 700; margin: 0; } /* #0d2240 on off-white = 16:1 ✓ */

.form-box {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-md);
}
.form-box h3 { margin-bottom: 0.5rem; text-align: center; }
.form-box > p { text-align: center; color: var(--mid-grey); font-size: 0.88rem; margin-bottom: 1.5rem; }

/* ---------- Footer ---------- */
/* Footer: dark background #1a1a1a + light text #e2e8f0 per user spec */
#site-footer {
  background: #1a1a1a;        /* user spec dark bg – 18:1+ vs white text ✓ */
  color: #e2e8f0;             /* user spec light gray – 14.7:1 on #1a1a1a ✓ */
  padding-top: 4rem;
  padding-bottom: 1rem;       /* extra bottom space so links not cut off */
  position: relative;
  z-index: 1;                 /* creates stacking context for footer links */
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-col h4 {
  font-family: var(--font-head);
  color: #ffffff;              /* white on #1a1a1a = 21:1 ✓ */
  font-size: 1rem;
  margin-bottom: 1.25rem;
  position: relative;
  padding-bottom: 0.75rem;
}
.footer-col h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 32px;
  height: 2px;
  background: var(--gold);
}
.footer-col p { font-size: 0.88rem; line-height: 1.7; color: #e2e8f0; } /* 14.7:1 on #1a1a1a ✓ */
.footer-col ul { display: flex; flex-direction: column; gap: 0.6rem; }
/* Footer links on #1a1a1a: #90cdf4 = 9.4:1 ✓ – hover white = 21:1 ✓ */
.footer-col ul a {
  font-size: 0.88rem;
  color: #90cdf4;              /* user spec – 9.4:1 on #1a1a1a ✓ */
  text-decoration: none;
  transition: color var(--transition);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.footer-col ul a:hover  { color: #ffffff; text-decoration: underline; } /* 21:1 ✓ */
.footer-col ul a:focus-visible { outline: 3px solid #ffd700; outline-offset: 2px; border-radius: 2px; }
.footer-col ul a i { font-size: 0.7rem; color: #90cdf4; }

/* ── Footer Brand Box — no border, no background ── */
.footer-brand-box {
  display: block;
  width: 100%;
}
.footer-brand-box .site-logo {
  margin-bottom: 0.75rem;
}
.footer-brand-box p {
  font-size: 0.85rem !important;
  line-height: 1.65;
  color: #e2e8f0;
  margin: 0.65rem 0 0.9rem;
}

.footer-accreditations {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0;
}
/* Accreditation badges — simple pill style, no icon gap */
.acc-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.75rem;
  border: 1.5px solid rgba(240,200,74,0.55);
  border-radius: 50px;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--gold-on-dark);  /* #f0c84a = 8.2:1 on dark ✓ */
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: rgba(240,200,74,0.07);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 1.5rem;
  font-size: 0.82rem;
  gap: 1rem;
  flex-wrap: wrap;
  position: relative;
  z-index: 5;  /* ensure footer-bottom always above page overlays */
}
/* Footer-bottom small text – needs higher contrast at small size */
.footer-bottom { color: #e2e8f0; } /* 14.7:1 on #1a1a1a ✓ */
.footer-bottom a {
  color: #90cdf4;                  /* 9.4:1 ✓ */
  text-decoration: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  min-height: 44px;                /* WCAG 2.5.5 touch target */
  padding: 0 0.25rem;
  position: relative;
  z-index: 10;                     /* ensure above any stacking context */
  pointer-events: auto !important; /* always clickable */
}
.footer-bottom a:hover  { color: #ffffff; text-decoration: none; }
.footer-bottom a:focus-visible { outline: 3px solid #ffd700; outline-offset: 2px; border-radius: 2px; }
.footer-legal-links {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  align-items: center;
  position: relative;
  z-index: 10;  /* above cookie banner overlay */
}

/* ---------- Page Hero (inner pages) ---------- */
.page-hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%);
  padding-block: 8rem 4rem;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('../images/hammersmith-aerial.jpg');
  background-size: cover;
  background-position: center;
  opacity: 0.12;
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { color: var(--white); }
.page-hero p { color: rgba(255,255,255,0.8); max-width: 700px; }
/* Breadcrumb on navy/dark bg: raised opacity to meet 4.5:1 ✓ */
.breadcrumb { display: flex; gap: 0.5rem; align-items: center; font-size: 0.82rem; color: rgba(255,255,255,0.82); margin-bottom: 1rem; } /* FIXED: was 0.6 */
.breadcrumb a { color: rgba(255,255,255,0.82); text-decoration: underline; } /* FIXED: underline makes links distinct ✓ */
.breadcrumb a:hover { color: var(--gold-on-dark); }
.breadcrumb span { color: var(--gold-on-dark); } /* #f0c84a on navy = 8.2:1 ✓ */

/* ---------- Animations ---------- */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-12px); }
}
@keyframes pulse-gold {
  0%, 100% { box-shadow: 0 0 0 0 rgba(201,168,76,0.4); }
  50%       { box-shadow: 0 0 0 12px rgba(201,168,76,0); }
}

.animate-in { opacity: 0; transform: translateY(30px); }
.animate-in.visible { animation: fadeInUp 0.7s ease forwards; }
/* Pages with no hero (legal pages) — show all animate-in instantly */
.no-hero .animate-in { opacity: 1; transform: none; animation: none; }
.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }
.delay-5 { animation-delay: 0.5s; }

/* ---------- Scroll-to-top ---------- */
/* Scroll-to-top: gold bg + navy icon = 4.72:1 ✓ */
#scroll-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 48px;
  height: 48px;
  background: var(--gold);
  color: var(--navy);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  cursor: pointer;
  border: 2px solid transparent;
  box-shadow: var(--shadow-md);
  opacity: 0;
  transform: translateY(20px);
  transition: all var(--transition);
  z-index: 990;
}
#scroll-top.visible { opacity: 1; transform: translateY(0); }
#scroll-top:hover  { background: #a07b14; color: var(--white); transform: translateY(-3px); } /* 12.4:1 ✓ */
#scroll-top:focus-visible { outline: 3px solid #0057a8; outline-offset: 3px; }

/* Footer bottom padding accounts for fixed cookie banner height when visible */
body.cookie-visible #site-footer .footer-bottom {
  padding-bottom: 5rem;
}
#reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: var(--gold);
  z-index: 1000;
  width: 0%;
  transition: width 0.1s linear;
}

/* ---------- Cookie Banner ---------- */
#cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--navy);
  color: var(--white);
  padding: 1.25rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  z-index: 995;
  transform: translateY(100%);
  transition: transform 0.4s ease;
  flex-wrap: wrap;
}
#cookie-banner.show { transform: translateY(0); }
#cookie-banner p { font-size: 0.88rem; margin: 0; flex: 1; }
#cookie-banner p a { color: var(--gold); }
.cookie-btns { display: flex; gap: 0.75rem; }

/* ---------- Native Form Elements (global) ---------- */
/* Labels: dark text on white/light – 18:1 ✓ */
label {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--gray-900);       /* #1a202c = 16.5:1 vs white ✓ */
  display: block;
  margin-bottom: 0.4rem;
}
/* Inputs: white bg, medium border, dark text */
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
input[type="url"],
textarea,
select {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 2px solid var(--border-medium); /* #cbd5e0 – visible on white ✓ */
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-family: var(--font-main);
  color: var(--gray-900);       /* #1a202c = 16.5:1 ✓ */
  background: var(--white);
  transition: border-color var(--transition), outline var(--transition);
}
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  border-color: var(--accent-blue); /* #0066cc – 3:1 on white for UI ✓ */
  outline: 3px solid rgba(0,102,204,0.35);
  outline-offset: 1px;
}

/* ---------- HubSpot Form Overrides ---------- */
.hs-form { font-family: var(--font-main) !important; }
.hs-form-field label {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--gray-900);       /* #1a202c on white = 16.5:1 ✓ */
  display: block;
  margin-bottom: 0.4rem;
}
.hs-form input[type="text"],
.hs-form input[type="email"],
.hs-form input[type="tel"],
.hs-form textarea,
.hs-form select {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 2px solid var(--border-medium); /* #cbd5e0 ✓ */
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-family: var(--font-main);
  color: var(--gray-900);
  transition: border-color var(--transition);
  background: var(--white);
}
.hs-form input:focus,
.hs-form textarea:focus,
.hs-form select:focus {
  border-color: var(--accent-blue);       /* #0066cc – user spec ✓ */
  outline: 3px solid rgba(0,102,204,0.35);
  outline-offset: 1px;
}
/* HubSpot submit: accent-blue (#0066cc) bg + white text = 7:1 ✓ (user spec) */
.hs-submit .hs-button {
  background: var(--accent-blue);  /* #0066cc ✓ */
  color: var(--white);             /* 7:1 ✓ */
  border: none;
  padding: 0.85rem 2rem;
  font-size: 0.95rem;
  font-weight: 700;
  border-radius: var(--radius);
  cursor: pointer;
  width: 100%;
  transition: background var(--transition);
}
.hs-submit .hs-button:hover {
  background: var(--accent-blue-dark); /* #004499 ✓ */
  color: var(--white);
}
.hs-submit .hs-button:focus-visible {
  outline: 3px solid #ffd700;
  outline-offset: 3px;
}

/* ============================================================
   RESPONSIVE BREAKPOINTS
   1200px  Extra-Large  (large laptops)
   1024px  Large        (small laptops / landscape tablets)
    968px  Medium-Large (portrait tablet / small laptop)
    768px  Medium       (tablet portrait — nav collapses)
    600px  Small        (large phone landscape)
    480px  X-Small      (phone portrait)
   ============================================================ */

/* ---------- 1200px: Large laptops ---------- */
@media (max-width: 1200px) {
  .hero-inner { grid-template-columns: 1fr 380px; gap: 2rem; }
  .footer-grid { grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 2rem; }
}

/* ---------- 1100px (existing breakpoint kept) ---------- */
@media (max-width: 1100px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .areas-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ---------- 968px: Small laptops / tablets landscape ---------- */
@media (max-width: 968px) {
  /* Hero: collapse to single column, hide form */
  .hero-inner {
    grid-template-columns: 1fr;
    padding-top: 6rem;
    padding-bottom: 3rem;
    text-align: center;
  }
  .hero-form-box { display: none; }
  .hero-content h1 { font-size: clamp(1.8rem, 5vw, 2.8rem); }
  .hero-badges { justify-content: center; }
  .hero-btns {
    justify-content: center;
    flex-wrap: wrap;
  }
  .hero-stats { justify-content: center; gap: 1.5rem; }
  /* Grids */
  .grid-2 { grid-template-columns: 1fr; gap: 1.5rem; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
  .contact-grid { grid-template-columns: 1fr; }
  /* Blog */
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
  /* Reviews */
  .reviews-track .review-card { flex: 0 0 calc(50% - 0.75rem); }
  /* Areas */
  .areas-grid { grid-template-columns: repeat(3, 1fr); }
  /* Process */
  .process-steps { max-width: 640px; margin-inline: auto; }
  /* Footer */
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 1.75rem; }
}

/* ---------- 768px: Tablet portrait — mobile nav activates ---------- */
@media (max-width: 768px) {
  /* --- Navigation --- */
  .main-nav  { display: none; }
  .header-cta { display: none; }
  .hamburger {
    display: flex;
    min-width: 44px;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
  }
  /* Mobile nav slide-in */
  .mobile-nav {
    padding: 5.5rem 1.5rem 2rem;
    gap: 0;
  }
  .mobile-nav a {
    padding: 1rem 1.25rem;
    font-size: 1.1rem;
    min-height: 48px;          /* touch target */
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(255,255,255,0.12);
  }
  .mobile-nav a:first-child  { border-top: 1px solid rgba(255,255,255,0.12); }
  .mobile-nav .btn {
    margin-top: 1.25rem;
    width: 100%;
    justify-content: center;
    min-height: 48px;
  }
  /* --- Hero --- */
  .hero-inner {
    padding-top: 5.5rem;
    padding-bottom: 2.5rem;
  }
  .hero-content h1 { font-size: clamp(1.6rem, 5vw, 2.4rem); }
  .hero-content .lead { font-size: 1rem; }
  .hero-stats { gap: 1.25rem; }
  /* --- Section spacing --- */
  .section    { padding-block: 3.5rem; }
  .section-lg { padding-block: 4rem; }
  .section-sm { padding-block: 2rem; }
  .container  { padding-inline: 1.25rem; }
  /* --- Grids --- */
  .grid-3 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr; }
  .blog-grid  { grid-template-columns: 1fr; }
  /* --- Trust bar --- */
  .trust-bar-inner { gap: 1.25rem; flex-wrap: wrap; }
  .trust-divider   { display: none; }
  .trust-item      { font-size: 0.82rem; }
  /* --- Areas --- */
  .areas-grid { grid-template-columns: repeat(2, 1fr); }
  /* --- Hero buttons --- */
  .hero-btns { flex-direction: column; align-items: stretch; gap: 0.75rem; }
  .hero-btns .btn { text-align: center; justify-content: center; }
  /* --- Reviews slider --- */
  .reviews-track .review-card { flex: 0 0 90%; }
  /* --- Footer --- */
  .footer-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .footer-legal-links { justify-content: center; }
  /* --- Contact --- */
  .contact-info { order: 2; }
  .form-box { order: 1; }
  /* --- Service card --- */
  .service-card { padding: 1.5rem; }
  /* --- Cards --- */
  .card-body { padding: 1.25rem; }
  /* --- Typography --- */
  h1 { font-size: clamp(1.6rem, 5vw, 2rem); }
  h2 { font-size: clamp(1.4rem, 4vw, 1.8rem); }
  h3 { font-size: clamp(1.1rem, 3vw, 1.4rem); }
  /* --- Hero video bg: disable canvas-heavy animation on tablets --- */
  #hero-canvas { opacity: 0.2; }
}

/* ---------- 600px: Large phone landscape / small tablet ---------- */
@media (max-width: 600px) {
  /* --- Hero --- */
  .hero-content h1 { font-size: 1.5rem; line-height: 1.25; }
  .hero-content .lead { font-size: 0.95rem; }
  #hero { min-height: auto; padding-block: 0; }
  .hero-inner {
    padding-top: 5rem;
    padding-bottom: 2rem;
    gap: 1.5rem;
  }
  .hero-badges {
    gap: 0.4rem;
    flex-wrap: wrap;
    justify-content: center;
  }
  .badge { font-size: 0.72rem; padding: 0.35rem 0.7rem; }
  .hero-stats {
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    padding-block: 1rem;
  }
  .stat-item { min-width: 90px; text-align: center; }
  .stat-num  { font-size: 1.5rem; }
  .stat-label { font-size: 0.72rem; }
  /* --- Buttons --- */
  .btn {
    padding: 0.75rem 1.5rem;
    font-size: 0.9rem;
    min-height: 44px;     /* Apple accessibility guideline */
  }
  .btn-lg {
    padding: 0.85rem 1.75rem;
    font-size: 0.95rem;
  }
  /* --- Section spacing --- */
  .section    { padding-block: 2.5rem; }
  .section-lg { padding-block: 3rem; }
  .container  { padding-inline: 1rem; }
  /* --- Grids --- */
  .grid-3 { gap: 1rem; }
  .grid-4 { gap: 1rem; }
  /* --- Service cards --- */
  .service-card { padding: 1.25rem; }
  .card-icon    { width: 48px; height: 48px; font-size: 1.2rem; }
  .card-body    { padding: 1rem; }
  /* --- Blog grid --- */
  .blog-grid  { grid-template-columns: 1fr; gap: 1.25rem; }
  .blog-card-body { padding: 1.25rem; }
  /* --- Blog article page --- */
  .article-header { padding-block: 6rem 2rem; }
  .article-header h1 { font-size: 1.5rem; }
  /* --- FAQ --- */
  .faq-question {
    padding: 1rem 0;
    font-size: 0.95rem;
    line-height: 1.4;
  }
  .faq-answer p { font-size: 0.92rem; }
  /* --- Team cards --- */
  .team-img-wrap { height: 240px; }
  /* --- Footer --- */
  .footer-col h4 { font-size: 0.95rem; }
  .acc-badge     { font-size: 0.72rem; }
  /* --- Areas --- */
  .areas-grid  { grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }
  .area-tag    { padding: 0.75rem 1rem; font-size: 0.85rem; }
  /* --- CTA section --- */
  .cta-section { padding-block: 3rem; }
  /* --- Page hero (inner pages) --- */
  .page-hero   { padding-block: 6rem 2.5rem; }
  /* --- Process steps --- */
  .step-content h4 { font-size: 1rem; }
  .step-content p  { font-size: 0.9rem; }
  /* --- Forms --- */
  .form-box { padding: 1.5rem; }
  .hero-form-box { padding: 1.5rem; }
  /* --- HubSpot form --- */
  .hs-input         { padding: 0.6rem !important; }
  .hs-form-field    { margin-bottom: 0.75rem !important; }
  /* Prevent iOS auto-zoom on form focus */
  .hs-form input[type="text"],
  .hs-form input[type="email"],
  .hs-form input[type="tel"],
  .hs-form textarea,
  .hs-form select,
  input[type="text"],
  input[type="email"],
  input[type="tel"],
  textarea,
  select  { font-size: 16px !important; }    /* prevents iOS zoom */
  /* --- Table overflow --- */
  table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }
  /* --- Hero video: hide canvas on small phones for perf --- */
  #hero-canvas { display: none; }
  #hero { background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%); }
}

/* ---------- 480px: Portrait phones ---------- */
@media (max-width: 480px) {
  /* --- Typography --- */
  html { font-size: 15px; }
  h1  { font-size: 1.5rem; }
  h2  { font-size: 1.3rem; }
  h3  { font-size: 1.1rem; }
  p   { font-size: 0.95rem; line-height: 1.65; }
  /* --- Hero --- */
  .hero-content h1  { font-size: 1.35rem; }
  .hero-inner       { padding-top: 4.5rem; }
  .hero-btns        { gap: 0.6rem; }
  .hero-btns .btn   { width: 100%; justify-content: center; display: flex; }
  /* --- Sections --- */
  .section    { padding-block: 2rem; }
  .container  { padding-inline: 0.9rem; }
  /* --- Areas grid: 2-up on phones --- */
  .areas-grid { grid-template-columns: 1fr 1fr; gap: 0.6rem; }
  .area-tag   { padding: 0.65rem 0.75rem; font-size: 0.8rem; }
  /* --- Stats --- */
  .hero-stats { flex-wrap: wrap; gap: 0.75rem; justify-content: center; }
  .stat-num   { font-size: 1.35rem; }
  .stat-label { font-size: 0.68rem; }
  /* --- Trust bar: single column on tiny phones --- */
  .trust-bar-inner { flex-direction: column; gap: 0.75rem; align-items: center; }
  /* --- Scroll-to-top: slightly smaller --- */
  #scroll-top { width: 40px; height: 40px; font-size: 1rem; bottom: 1.25rem; right: 1.25rem; }
  /* --- Cookie banner: stack buttons --- */
  #cookie-banner { flex-direction: column; gap: 1rem; padding: 1rem 1.25rem; }
  .cookie-btns   { width: 100%; justify-content: stretch; }
  .cookie-btns .btn { flex: 1; justify-content: center; }
  /* --- Footer legal --- */
  .footer-bottom { font-size: 0.78rem; }
  /* --- Review cards --- */
  .review-card { padding: 1.25rem; }
  .review-text { font-size: 0.9rem; }
  /* --- HubSpot button full width --- */
  .hs-submit .hs-button {
    width: 100% !important;
    padding: 0.75rem !important;
    font-size: 1rem !important;
  }
  /* --- Blog card image height --- */
  .blog-card-img img { height: 180px; }
  /* --- Team image height --- */
  .team-img-wrap { height: 200px; }
  /* --- Page hero --- */
  .page-hero { padding-block: 5.5rem 2rem; }
  .breadcrumb { font-size: 0.75rem; }
}

/* ---------- XXL 1400px+: large desktops ---------- */
@media (min-width: 1400px) {
  .container       { max-width: 1320px; }
  .container-wide  { max-width: 1600px; }
  .hero-inner      { grid-template-columns: 1fr 460px; }
  .grid-4          { gap: 2rem; }
  body             { font-size: 1.05rem; }
}

/* ============================================================
   Global Accessibility: Focus & Skip-nav
   ============================================================ */

/* Universal focus ring – keyboard users: #ffd700 per user spec */
*:focus-visible {
  outline: 3px solid #ffd700;  /* accent-gold – visible on both light & dark bg ✓ */
  outline-offset: 3px;
  border-radius: 2px;
}
/* Remove outline for mouse/touch */
*:focus:not(:focus-visible) { outline: none; }

/* Skip to main content link */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  background: var(--navy);
  color: var(--white);
  padding: 0.75rem 1.5rem;
  font-weight: 700;
  font-size: 1rem;
  border-radius: 0 0 var(--radius) var(--radius);
  z-index: 10000;
  text-decoration: none;
  transition: top 0.2s;
}
.skip-link:focus { top: 0; }

/* High-contrast inline code snippets */
code, kbd, samp {
  background: #1e2a3a;
  color: #f0c84a;
  padding: 0.1em 0.4em;
  border-radius: 4px;
  font-size: 0.9em;
}

/* Placeholder text: #718096 (gray-500) – 4.6:1 vs white ✓ (user spec) */
::placeholder { color: var(--gray-500); opacity: 1; } /* #718096 = 4.6:1 ✓ */

/* Selection highlight */
::selection {
  background: var(--gold);
  color: var(--navy);
}

/* Ensure anchor colour in body content areas is readable */
.article-body a,
.blog-post a,
.blog-content a,
.footer-desc a {
  color: var(--accent-blue);   /* #0066cc – 7.0:1 vs white ✓ */
  text-decoration: underline;
  text-underline-offset: 3px;
}
.article-body a:hover,
.blog-post a:hover,
.blog-content a:hover {
  color: var(--accent-blue-dark); /* #004499 ✓ */
}

/* Form input focus ring – accent-blue per user spec ✓ */
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid var(--accent-blue);
  outline-offset: 1px;
  border-color: var(--accent-blue);
}

/* ---------- Alert / Notification Components ---------- */
/* High-contrast alert variants per user spec (all white text) */
.alert {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-weight: 600;
  margin: 1rem 0;
}
.alert i { font-size: 1.1rem; flex-shrink: 0; margin-top: 0.1rem; }
.alert-success {
  background: var(--accent-green);  /* #047857 \u2013 6.3:1 vs white \u2713 */
  color: #ffffff;
  border: 1px solid #035c44;
}
.alert-warning {
  background: #d97706;               /* 4.5:1 vs white \u2013 user spec \u2713 */
  color: #ffffff;
  border: 1px solid #b45309;
}
.alert-error,
.alert-danger {
  background: var(--accent-red);    /* #dc2626 \u2013 5.9:1 vs white \u2713 */
  color: #ffffff;
  border: 1px solid #b91c1c;
}
.alert-info {
  background: #0369a1;               /* 7.7:1 vs white \u2013 user spec \u2713 */
  color: #ffffff;
  border: 1px solid #075985;
}
/* Soft/inline alert variants (colored bg with dark text) */
.alert-success-soft  { background: #d1fae5; color: #064e3b; border: 1px solid #6ee7b7; }
.alert-warning-soft  { background: #fef3c7; color: #78350f; border: 1px solid #fcd34d; }
.alert-error-soft    { background: #fee2e2; color: #7f1d1d; border: 1px solid #fca5a5; }
.alert-info-soft     { background: #dbeafe; color: #1e3a5f; border: 1px solid #93c5fd; }

/* ---------- Card Dark Variant ---------- */
/* Dark card: #2d3748 bg + #e2e8f0 text = 8.7:1 \u2713 (user spec) */
.card-dark {
  background: var(--gray-700);      /* #4a5568 \u2013 dark bg */
  color: #e2e8f0;                   /* 8.1:1 on --gray-700 \u2713 */
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-md);
}
.card-dark h3,
.card-dark h4 { color: #ffffff; }  /* 21:1 \u2713 */
.card-dark p  { color: #e2e8f0; }  /* 8.1:1 \u2713 */
.card-dark a  { color: #90cdf4; text-decoration: underline; } /* 9.4:1 on dark bg \u2713 */
.card-dark a:hover { color: #ffffff; }

/* White card with accessible border */
.card-bordered {
  background: var(--white);
  border: 1px solid var(--border-light); /* #e2e8f0 \u2013 visible divider \u2713 */
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
}

/* ---------- Print Styles ---------- */
@media print {
  #site-header, #site-footer, #scroll-top, #cookie-banner { display: none; }
  body { color: #000; }
  a { color: #000; text-decoration: underline; }
}
