/* ============================================================
   Esher Surveyors — Main Stylesheet
   eshersurveyors.com
   ============================================================ */

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

:root {
  --navy:      #1a2744;
  --navy-light:#253460;
  --gold:      #c8a951;
  --gold-light:#e0c478;
  --white:     #ffffff;
  --offwhite:  #f7f6f2;
  --light-grey:#eaeaea;
  --mid-grey:  #666;
  --dark-grey: #333;
  --green:     #2e7d32;
  --font-head: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', Arial, sans-serif;
  --shadow-sm: 0 2px 8px rgba(0,0,0,.10);
  --shadow-md: 0 6px 24px rgba(0,0,0,.14);
  --shadow-lg: 0 12px 48px rgba(0,0,0,.18);
  --radius:    8px;
  --radius-lg: 16px;
  --transition: .3s ease;
}

html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-body);
  color: var(--dark-grey);
  background: var(--white);
  line-height: 1.7;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a  { color: var(--navy); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--gold); }
ul { list-style: none; }

/* ---------- Typography ---------- */
h1,h2,h3,h4,h5,h6 {
  font-family: var(--font-head);
  color: var(--navy);
  line-height: 1.25;
  margin-bottom: .6em;
}
h1 { font-size: clamp(2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.6rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.8rem); }
h4 { font-size: 1.2rem; }
p  { margin-bottom: 1.1em; color: #2d3748; } /* #2d3748 on white = 12.6:1 AAA */

.section-label {
  display: inline-block;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #6b5011; /* dark amber — 6.5:1 on white (WCAG AA large+) */
  margin-bottom: .8rem;
}
.section-title { margin-bottom: 1rem; }
.section-intro  { max-width: 680px; color: #4a5568; font-size: 1.05rem; } /* #4a5568 on white = 7.4:1 AAA */
.text-center { text-align: center; }
.text-white  { color: var(--white) !important; }
.text-gold   { color: var(--gold)  !important; }

/* ---------- Layout Helpers ---------- */
.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}
.section-pad { padding: 90px 0; }
.section-pad-sm { padding: 60px 0; }

.grid-2 { display: grid; grid-template-columns: repeat(2,1fr); gap: 40px; }
.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 32px; }
.grid-4 { display: grid; grid-template-columns: repeat(4,1fr); gap: 24px; }
.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-16 { gap: 16px; }
.gap-24 { gap: 24px; }

/* ---------- Global focus baseline (WCAG 2.4.7) ---------- */
*:focus-visible {
  outline: 3px solid #ffd700;
  outline-offset: 2px;
}
/* Remove outline for mouse users; keep for keyboard */
*:focus:not(:focus-visible) { outline: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: .95rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all var(--transition);
  text-decoration: none;
  line-height: 1;
}
.btn-primary {
  background: var(--gold);
  color: var(--navy);
  border-color: var(--gold);
}
.btn-primary:hover {
  background: var(--gold-light);
  border-color: var(--gold-light);
  color: var(--navy);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}
.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}
.btn-outline:hover {
  background: var(--white);
  color: var(--navy);
}
.btn-navy {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}
.btn-navy:hover {
  background: var(--navy-light);
  color: var(--white);
  transform: translateY(-2px);
}
.btn:focus-visible,
.btn-primary:focus-visible,
.btn-outline:focus-visible,
.btn-navy:focus-visible {
  outline: 3px solid #ffd700;
  outline-offset: 2px;
}
.btn-sm { padding: 10px 22px; font-size: .875rem; }
.btn-lg { padding: 18px 40px; font-size: 1.05rem; }

/* ---------- Site Header / Nav ---------- */
#site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  transition: background var(--transition), box-shadow var(--transition);
  padding: 18px 0;
}
#site-header.scrolled {
  background: rgba(26,39,68,.97);
  box-shadow: 0 2px 20px rgba(0,0,0,.25);
  padding: 12px 0;
  backdrop-filter: blur(8px);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; }

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.logo-mark {
  width: 46px; height: 46px;
  background: var(--gold);
  border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--navy);
  letter-spacing: -.04em;
  flex-shrink: 0;
}
.logo-text { line-height: 1.15; }
.logo-name {
  font-family: var(--font-head);
  font-size: 1.22rem;
  font-weight: 700;
  color: var(--white);
  display: block;
  letter-spacing: .02em;
}
.logo-sub {
  font-size: .7rem;
  color: var(--gold);
  letter-spacing: .1em;
  text-transform: uppercase;
}

/* Primary Nav — horizontal Flexbox row, no bullets */
.primary-nav,
.primary-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.primary-nav {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  gap: 4px;
}
.primary-nav a {
  display: inline-flex;
  align-items: center;
  padding: 8px 16px;
  font-size: .9rem;
  font-weight: 500;
  color: rgba(255,255,255,.92); /* ~14:1 on navy — AAA */
  border-radius: var(--radius);
  transition: all var(--transition);
  white-space: nowrap;
  text-decoration: none;
}
.primary-nav a:hover,
.primary-nav a.active {
  color: #f5d778; /* gold on dark — 5.2:1 AA */
  background: rgba(200,169,81,.12);
}
.primary-nav a:focus-visible {
  outline: 3px solid #ffd700;
  outline-offset: 2px;
}
/* 'Get a Quote' button — pushed right with margin-left: auto trick */
.primary-nav .nav-cta {
  margin-left: auto;
  margin-left: 16px;
  background: var(--gold);
  color: var(--navy) !important; /* navy on gold — 7.2:1 AAA */
  font-weight: 700;
  padding: 9px 20px;
  border-radius: var(--radius);
  border: 2px solid var(--gold);
}
.primary-nav .nav-cta:hover {
  background: var(--gold-light);
  border-color: var(--gold-light);
  color: var(--navy) !important;
  transform: translateY(-1px);
}
.primary-nav .nav-cta:focus-visible {
  outline: 3px solid #ffd700;
  outline-offset: 2px;
}

/* Mobile toggle */
.nav-toggle:focus-visible {
  outline: 3px solid #ffd700;
  outline-offset: 2px;
}
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  background: none;
  border: none;
}
.nav-toggle span {
  display: block;
  width: 26px; height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all var(--transition);
}
.nav-toggle.open span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }

/* ---------- Hero Section ---------- */
#hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

/* ── Hero image slider ── */
.hero-slider {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 1.4s ease-in-out;
  will-change: opacity, transform;
  animation: kenBurns 22s ease-in-out infinite;
}
.hero-slide--active {
  opacity: 1;
}
/* Stagger Ken Burns direction per slide */
.hero-slide:nth-child(1) { animation-name: kenBurns1; }
.hero-slide:nth-child(2) { animation-name: kenBurns2; }
.hero-slide:nth-child(3) { animation-name: kenBurns3; }
.hero-slide:nth-child(4) { animation-name: kenBurns4; }
.hero-slide:nth-child(5) { animation-name: kenBurns5; }

/* Ken Burns variants — each moves in a slightly different direction */
@keyframes kenBurns1 {
  0%   { transform: scale(1)    translate(0, 0); }
  50%  { transform: scale(1.07) translate(-1.2%, 0.6%); }
  100% { transform: scale(1)    translate(0, 0); }
}
@keyframes kenBurns2 {
  0%   { transform: scale(1)    translate(0, 0); }
  50%  { transform: scale(1.06) translate(1.0%, -0.5%); }
  100% { transform: scale(1)    translate(0, 0); }
}
@keyframes kenBurns3 {
  0%   { transform: scale(1.04) translate(-0.5%, 0); }
  50%  { transform: scale(1.08) translate(0.8%, 0.8%); }
  100% { transform: scale(1.04) translate(-0.5%, 0); }
}
@keyframes kenBurns4 {
  0%   { transform: scale(1)    translate(0, 0); }
  50%  { transform: scale(1.05) translate(-0.6%, -0.8%); }
  100% { transform: scale(1)    translate(0, 0); }
}
@keyframes kenBurns5 {
  0%   { transform: scale(1.03) translate(0.4%, 0); }
  50%  { transform: scale(1.07) translate(-0.8%, 0.5%); }
  100% { transform: scale(1.03) translate(0.4%, 0); }
}

/* ── Slider indicator dots ── */
.hero-slider-dots {
  position: absolute;
  bottom: 72px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 3;
}
.hero-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,.4);
  border: 2px solid rgba(255,255,255,.6);
  cursor: pointer;
  padding: 0;
  transition: background .3s ease, transform .3s ease, border-color .3s ease;
}
.hero-dot--active {
  background: var(--gold);
  border-color: var(--gold);
  transform: scale(1.3);
}
.hero-dot:hover { background: rgba(255,255,255,.75); }
.hero-dot:focus-visible { outline: 2px solid #ffd700; outline-offset: 3px; }

/* Legacy: keep .hero-bg-image working on any other pages */
.hero-bg-image {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 0;
}

/* hero-video-bg kept for future video implementation */
.hero-video-bg {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: 0;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(26,39,68,.88) 0%, rgba(26,39,68,.65) 55%, rgba(26,39,68,.4) 100%);
  z-index: 1;
}

/* Ken Burns fallback (for .hero-bg-image on other pages) */
@keyframes kenBurns {
  0%   { transform: scale(1)    translate(0,0); }
  33%  { transform: scale(1.06) translate(-1%,.5%); }
  66%  { transform: scale(1.04) translate(.8%,-.4%); }
  100% { transform: scale(1)    translate(0,0); }
}
.hero-bg-image { animation: kenBurns 22s ease-in-out infinite; }

.hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 60px;
  align-items: flex-start;
  width: 100%;
  padding-top: 120px;
  padding-bottom: 60px;
}
.hero-content {
  padding-top: 20px;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(200,169,81,.15);
  border: 1px solid rgba(200,169,81,.4);
  border-radius: 30px;
  padding: 6px 16px;
  font-size: .78rem;
  font-weight: 600;
  color: var(--gold);
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 1.4rem;
}
.hero-title {
  font-size: clamp(2.2rem, 5.5vw, 4rem);
  color: var(--white);
  margin-bottom: 1.2rem;
  line-height: 1.15;
}
.hero-title em { color: var(--gold); font-style: normal; }
.hero-subtitle {
  font-size: 1.1rem;
  color: rgba(255,255,255,.92); /* raised to .92 — ~14:1 on dark overlay (AAA) */
  margin-bottom: 2rem;
  max-width: 520px;
  line-height: 1.75;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 2.8rem; }
.hero-stats {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
}
.hero-stat {}
.hero-stat-num {
  font-family: var(--font-head);
  font-size: 2rem;
  font-weight: 700;
  color: var(--gold);
  display: block;
  line-height: 1;
}
.hero-stat-label {
  font-size: .78rem;
  color: rgba(255,255,255,.88); /* raised — ~13:1 on dark overlay (AAA) */
  letter-spacing: .04em;
  text-transform: uppercase;
}

/* Hero Form Panel */
.hero-form-panel {
  background: rgba(255,255,255,.97);
  border-radius: var(--radius-lg);
  padding: 28px 28px 20px;
  box-shadow: var(--shadow-lg);
  max-height: calc(100vh - 160px);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.hero-form-panel h3 + p { margin-bottom: 14px; }
.hubspot-form-wrap {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  min-height: 0;
  padding-right: 4px;
  scrollbar-width: thin;
  scrollbar-color: var(--gold) transparent;
}
.hubspot-form-wrap::-webkit-scrollbar { width: 4px; }
.hubspot-form-wrap::-webkit-scrollbar-track { background: transparent; }
.hubspot-form-wrap::-webkit-scrollbar-thumb { background: var(--gold); border-radius: 4px; }
.hero-form-panel h3 {
  font-size: 1.3rem;
  margin-bottom: .4rem;
  color: var(--navy);
}
.hero-form-panel p {
  font-size: .875rem;
  color: #4a5568; /* 7.4:1 on white AAA */
  margin-bottom: 1.4rem;
}
.trust-badges {
  display: flex;
  gap: 8px;
  margin-top: 16px;
  flex-wrap: wrap;
}
.trust-badge {
  background: var(--offwhite);
  border: 1px solid var(--light-grey);
  border-radius: 6px;
  padding: 5px 10px;
  font-size: .72rem;
  font-weight: 600;
  color: var(--navy);
  letter-spacing: .04em;
}

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: rgba(255,255,255,.78); /* raised — ~11.6:1 (AAA) */
  font-size: .7rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  cursor: pointer;
}
@keyframes bounce {
  0%,100% { transform: translateY(0); }
  50%      { transform: translateY(8px); }
}
.scroll-arrow { animation: bounce 1.8s ease-in-out infinite; font-size: 1.2rem; }

/* ---------- Trust Bar ---------- */
#trust-bar {
  background: var(--navy);
  padding: 20px 0;
  border-bottom: 3px solid var(--gold);
}
.trust-bar-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255,255,255,.92); /* raised to .92 — ~14:1 on navy (AAA) */
  font-size: .88rem;
  font-weight: 500;
}
.trust-item i { color: var(--gold); font-size: 1.1rem; }

/* ---------- Services Section ---------- */
.service-card {
  background: var(--white);
  border: 1px solid var(--light-grey);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
}
.service-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-6px);
  border-color: var(--gold);
}
.service-card-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}
.service-card-body { padding: 28px; flex: 1; display: flex; flex-direction: column; }
.service-icon {
  width: 52px; height: 52px;
  background: rgba(200,169,81,.12);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 1.2rem;
  color: var(--gold);
}
.service-card h3 { font-size: 1.25rem; margin-bottom: .5rem; }
.service-card p  { font-size: .92rem; flex: 1; }
.service-card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .88rem;
  font-weight: 600;
  color: var(--gold);
  margin-top: 1rem;
  transition: gap var(--transition);
}
.service-card-link:hover { gap: 10px; color: var(--navy); }

/* ---------- Why Choose Us ---------- */
.why-grid {
  display: grid;
  grid-template-columns: repeat(2,1fr);
  gap: 28px;
}
.why-item {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  padding: 28px;
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--light-grey);
  transition: box-shadow var(--transition);
}
.why-item:hover { box-shadow: var(--shadow-sm); }
.why-icon {
  width: 54px; height: 54px;
  background: var(--navy);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  color: var(--gold);
  font-size: 1.3rem;
  flex-shrink: 0;
}
.why-item h4 { margin-bottom: .3rem; }
.why-item p  { margin: 0; font-size: .9rem; color: #4a5568; } /* 7.4:1 on white AAA */

/* ---------- Process / Steps ---------- */
.process-steps {
  display: flex;
  gap: 0;
  position: relative;
}
.process-steps::before {
  content: '';
  position: absolute;
  top: 36px;
  left: calc(100%/8);
  right: calc(100%/8);
  height: 2px;
  background: linear-gradient(90deg, var(--gold), var(--navy));
  z-index: 0;
}
.step-item {
  flex: 1;
  text-align: center;
  position: relative;
  z-index: 1;
  padding: 0 12px;
}
.step-num {
  width: 72px; height: 72px;
  background: var(--navy);
  border: 3px solid var(--gold);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-head);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gold);
  margin: 0 auto 1.2rem;
  transition: all var(--transition);
}
.step-item:hover .step-num {
  background: var(--gold);
  color: var(--navy);
  transform: scale(1.1);
}
.step-item h4 { font-size: 1rem; margin-bottom: .4rem; }
.step-item p  { font-size: .85rem; color: #4a5568; } /* 7.4:1 AAA */

/* ---------- Stats / Counter ---------- */
.stats-band {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  padding: 70px 0;
}
.stats-section-heading {
  text-align: center;
  font-family: var(--font-head);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  color: var(--white);
  margin-bottom: 48px;
  letter-spacing: .01em;
  line-height: 1.2;
}
.stats-section-heading em {
  color: var(--gold);
  font-style: normal;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: 40px;
  text-align: center;
}
.stat-item {}
.stat-num {
  font-family: var(--font-head);
  font-size: 3.2rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
  display: block;
}
.stat-label {
  color: rgba(255,255,255,.9); /* raised — ~13.5:1 on navy (AAA) */
  font-size: .88rem;
  margin-top: .4rem;
  display: block;
}
.stat-icon { font-size: 2rem; color: rgba(200,169,81,.5); margin-bottom: .6rem; display: block; }

/* ============================================================
   Reviews / Testimonials — Full Redesign
   ============================================================ */

/* ── Section wrapper ── */
.reviews-section {
  padding: 100px 0 90px;
  background: linear-gradient(160deg, #0f1c38 0%, #1a2744 55%, #1e2f54 100%);
  position: relative;
  overflow: hidden;
}

/* Decorative background blobs */
.reviews-bg-circle {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
.reviews-bg-circle--1 {
  width: 500px; height: 500px;
  top: -160px; left: -140px;
  background: radial-gradient(circle, rgba(200,169,81,.13) 0%, transparent 65%);
}
.reviews-bg-circle--2 {
  width: 420px; height: 420px;
  bottom: -120px; right: -100px;
  background: radial-gradient(circle, rgba(200,169,81,.09) 0%, transparent 65%);
}

/* Invert section-label & section-title for dark background */
.reviews-section .section-label {
  color: var(--gold);
  border-color: rgba(200,169,81,.35);
  background: rgba(200,169,81,.08);
}
.reviews-section .section-title { color: var(--white); }
.reviews-section .section-title em { color: var(--gold-light); }

/* ── Header ── */
.reviews-header {
  text-align: center;
  margin-bottom: 56px;
}
.reviews-subtext {
  color: rgba(255,255,255,.82); /* raised — ~12:1 on dark bg (AAA) */
  font-size: .95rem;
  margin-top: 10px;
  margin-bottom: 36px;
}

/* ── Score strip ── */
.reviews-score-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 20px;
  padding: 28px 36px;
  max-width: 820px;
  margin: 0 auto;
  backdrop-filter: blur(6px);
}
.reviews-score-divider {
  width: 1px;
  height: 60px;
  background: rgba(255,255,255,.15);
  margin: 0 32px;
  flex-shrink: 0;
}
.reviews-score-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.reviews-score-number {
  font-family: var(--font-head);
  font-size: 3.4rem;
  font-weight: 800;
  color: var(--gold);
  line-height: 1;
}
.reviews-score-stars {
  color: #f4c030;
  font-size: 1.3rem;
  letter-spacing: 3px;
  line-height: 1;
}
.reviews-score-label {
  font-size: .75rem;
  color: rgba(255,255,255,.75); /* raised — ~11:1 on dark bg (AA large text) */
  text-transform: uppercase;
  letter-spacing: 1px;
}
.reviews-score-meta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.reviews-score-count {
  font-size: .95rem;
  color: rgba(255,255,255,.9); /* raised — ~13.5:1 (AAA) */
}
.reviews-score-count strong {
  color: var(--white);
  font-size: 1.2rem;
  font-weight: 700;
}
.reviews-score-platforms {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
}
.rsp-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border-radius: 20px;
  padding: 4px 12px;
  font-size: .75rem;
  font-weight: 600;
}
.rsp-badge--google { background: rgba(66,133,244,.22); color: #9ec5ff; border: 1px solid rgba(66,133,244,.4); } /* ~4.6:1 AA */
.rsp-badge--rics   { background: rgba(200,169,81,.15); color: var(--gold-light); border: 1px solid rgba(200,169,81,.3); }
.rsp-badge--tp     { background: rgba(0,182,122,.18); color: #5de8b0; border: 1px solid rgba(0,182,122,.35); } /* ~4.5:1 AA */

/* Rating bar mini chart */
.reviews-score-bars {
  display: flex;
  flex-direction: column;
  gap: 7px;
  min-width: 160px;
}
.rsb-row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.rsb-label {
  font-size: .72rem;
  color: rgba(255,255,255,.75); /* raised — passes AA for small text */
  width: 28px;
  flex-shrink: 0;
}
.rsb-track {
  flex: 1;
  height: 6px;
  background: rgba(255,255,255,.1);
  border-radius: 10px;
  overflow: hidden;
}
.rsb-fill {
  height: 100%;
  background: linear-gradient(90deg, #f4c030, #e0a800);
  border-radius: 10px;
  transition: width .6s ease;
}
.rsb-fill--dim    { background: linear-gradient(90deg, #c8a951, #b8923f); }
.rsb-fill--dimmer { background: rgba(200,169,81,.4); }
.rsb-pct {
  font-size: .68rem;
  color: rgba(255,255,255,.72); /* raised — meets AA threshold */
  width: 26px;
  text-align: right;
  flex-shrink: 0;
}

/* ── Row layouts ── */
.reviews-row { display: grid; gap: 22px; }
.reviews-row--top {
  grid-template-columns: 2fr 1fr 1fr;
  align-items: stretch;
  margin-bottom: 22px;
}
.reviews-row--bottom {
  grid-template-columns: repeat(4, 1fr);
  align-items: stretch;
}

/* ── Card base ── */
.review-card {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 18px;
  padding: 28px 26px 24px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease, background .25s ease;
  backdrop-filter: blur(4px);
}
.review-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(200,169,81,.07) 0%, transparent 60%);
  opacity: 0;
  transition: opacity .25s ease;
  pointer-events: none;
}
.review-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 48px rgba(0,0,0,.35);
  border-color: rgba(200,169,81,.4);
  background: rgba(255,255,255,.08);
}
.review-card:hover::after { opacity: 1; }

/* Top gold accent line */
.review-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light), transparent);
  border-radius: 18px 18px 0 0;
  opacity: 0;
  transition: opacity .25s ease;
}
.review-card:hover::before { opacity: 1; }

/* ── Hero card (card 1) ── */
.review-card--hero {
  background: linear-gradient(135deg, #c8a951 0%, #b8923f 40%, #9a7a2e 100%);
  border-color: transparent;
  padding: 0;
}
.review-card--hero::before { opacity: 0 !important; }
.review-card--hero::after  { display: none; }
.review-card--hero:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 60px rgba(200,169,81,.35);
  border-color: rgba(200,169,81,.6);
  background: linear-gradient(135deg, #d4b55d 0%, #c8a951 40%, #a88530 100%);
}

.rc-hero-inner {
  display: flex;
  height: 100%;
}
.rc-hero-left {
  flex: 1;
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  position: relative;
}
.rc-hero-right {
  width: 160px;
  flex-shrink: 0;
  background: rgba(0,0,0,.18);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 28px 16px;
  border-left: 1px solid rgba(255,255,255,.15);
}
.rc-hero-quote {
  position: absolute;
  top: 12px; right: 16px;
  font-family: Georgia, serif;
  font-size: 7rem;
  line-height: 1;
  color: rgba(255,255,255,.15);
  font-weight: 900;
  user-select: none;
  pointer-events: none;
}
.rc-hero-stars {
  color: #fff;
  font-size: 1.1rem;
  letter-spacing: 3px;
  margin-bottom: 16px;
}
.rc-hero-text {
  font-size: 1.02rem;
  color: rgba(255,255,255,.95);
  line-height: 1.78;
  font-style: italic;
  flex: 1;
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
}
.rc-hero-text strong { color: #fff; font-weight: 800; }
.review-saving-tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(0,0,0,.2);
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 20px;
  padding: 6px 16px;
  font-size: .8rem;
  font-weight: 700;
  color: #fff;
  width: fit-content;
}
.review-saving-tag i { font-size: .78rem; }

.rc-hero-avatar {
  width: 64px; height: 64px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--navy);
  background: linear-gradient(135deg, #fff, rgba(255,255,255,.85));
  box-shadow: 0 4px 16px rgba(0,0,0,.25);
  flex-shrink: 0;
}
.rc-hero-name {
  font-weight: 800;
  font-size: 1rem;
  color: #fff;
  text-align: center;
}
.rc-hero-loc {
  font-size: .75rem;
  color: rgba(255,255,255,.75);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}
.rc-hero-loc i { color: rgba(255,255,255,.6); }
.rc-hero-prop {
  font-size: .72rem;
  color: rgba(255,255,255,.8);
  font-weight: 600;
  text-align: center;
  background: rgba(0,0,0,.2);
  border-radius: 10px;
  padding: 3px 8px;
}
.rc-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 20px;
  padding: 4px 10px;
  font-size: .68rem;
  font-weight: 600;
  color: rgba(255,255,255,.9);
  margin-top: 4px;
}
.rc-hero-badge i { color: #4dd9a0; font-size: .7rem; }

/* ── Standard cards (col 2 & 3 in row 1) ── */
.review-card--std {}

/* ── Compact cards (row 2 — 4 cards) ── */
.review-card--compact {
  padding: 22px 20px 18px;
}

/* ── Common inner elements ── */

/* Decorative quote icon for std & compact */
.review-quote-icon {
  position: absolute;
  top: 12px; right: 18px;
  font-family: Georgia, serif;
  font-size: 5rem;
  line-height: 1;
  color: rgba(200,169,81,.12);
  font-weight: 900;
  user-select: none;
  pointer-events: none;
}

/* Stars */
.review-stars {
  color: #f4c030;
  font-size: 1rem;
  letter-spacing: 2px;
  margin-bottom: 12px;
}
.review-stars--sm {
  font-size: .85rem;
  margin-bottom: 10px;
}

/* Body text */
.review-text {
  font-size: .9rem;
  color: rgba(255,255,255,.88); /* raised — ~13:1 on dark card bg (AAA) */
  line-height: 1.72;
  font-style: italic;
  flex: 1;
  margin-bottom: 18px;
}
.review-card--compact .review-text {
  font-size: .84rem;
  margin-bottom: 14px;
}

/* Author row */
.review-author {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,.08);
}

/* Coloured avatar circles */
.review-avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: .88rem;
  color: var(--white);
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0,0,0,.3);
}
.review-avatar--sm { width: 38px; height: 38px; font-size: .8rem; }
.review-avatar--teal   { background: linear-gradient(135deg, #0d7377, #14a085); }
.review-avatar--gold   { background: linear-gradient(135deg, #c8a951, #e0c478); color: var(--navy); }
.review-avatar--navy   { background: linear-gradient(135deg, #2a3f70, #3a5298); }
.review-avatar--rose   { background: linear-gradient(135deg, #c0392b, #e74c3c); }
.review-avatar--green  { background: linear-gradient(135deg, #2e7d32, #43a047); }
.review-avatar--purple { background: linear-gradient(135deg, #6a1b9a, #8e24aa); }

/* Author info */
.review-author-info { display: flex; flex-direction: column; gap: 2px; }
.review-name {
  font-weight: 700;
  font-size: .88rem;
  color: rgba(255,255,255,.95);
  line-height: 1.2;
}
.review-location {
  font-size: .74rem;
  color: rgba(255,255,255,.75); /* raised — ~11:1 on dark card bg (AA) */
  display: flex;
  align-items: center;
  gap: 4px;
}
.review-location i { font-size: .66rem; color: var(--gold); }
.review-property {
  font-size: .7rem;
  color: var(--gold-light);
  font-weight: 600;
  margin-top: 1px;
}

/* ── Trust bar at bottom ── */
.reviews-trust-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0;
  margin-top: 52px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.reviews-trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 22px 32px;
  color: rgba(255,255,255,.92); /* raised — ~14:1 (AAA) */
  font-size: .875rem;
  font-weight: 500;
  border-right: 1px solid rgba(255,255,255,.08);
  flex: 1;
  min-width: 200px;
  justify-content: center;
}
.reviews-trust-item:last-child { border-right: none; }
.reviews-trust-item i {
  color: var(--gold);
  font-size: 1.1rem;
  flex-shrink: 0;
}

/* ── Responsive ── */
@media (max-width: 1100px) {
  .reviews-row--top    { grid-template-columns: 1.5fr 1fr 1fr; }
  .reviews-row--bottom { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .reviews-row--top {
    grid-template-columns: 1fr;
  }
  .rc-hero-inner { flex-direction: column; }
  .rc-hero-right {
    width: 100%;
    flex-direction: row;
    border-left: none;
    border-top: 1px solid rgba(255,255,255,.15);
    padding: 20px 24px;
    justify-content: flex-start;
  }
  .rc-hero-badge { display: none; }
  .reviews-score-strip { flex-direction: column; gap: 20px; padding: 24px; }
  .reviews-score-divider { width: 100%; height: 1px; margin: 0; }
  .reviews-score-bars { min-width: 200px; }
}
@media (max-width: 640px) {
  .reviews-row--bottom { grid-template-columns: 1fr; }
  .reviews-trust-bar   { flex-direction: column; }
  .reviews-trust-item  { border-right: none; border-bottom: 1px solid rgba(255,255,255,.08); width: 100%; }
  .reviews-trust-item:last-child { border-bottom: none; }
}

/* Keep carousel-btn class for any other usage */
.carousel-nav { display: flex; justify-content: center; gap: 12px; margin-top: 28px; }
.carousel-btn {
  width: 42px; height: 42px;
  border: 2px solid var(--navy);
  border-radius: 50%;
  background: none;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
  color: var(--navy);
  transition: all var(--transition);
}
.carousel-btn:hover { background: var(--navy); color: var(--white); }

/* ---------- FAQ ---------- */
.faq-item {
  border: 1px solid var(--light-grey);
  border-radius: var(--radius);
  margin-bottom: 12px;
  overflow: hidden;
  transition: box-shadow var(--transition);
}
.faq-item.open { box-shadow: var(--shadow-sm); border-color: var(--gold); }
.faq-question {
  width: 100%;
  padding: 20px 24px;
  background: var(--white);
  border: none;
  cursor: pointer;
  text-align: left;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-size: .98rem;
  font-weight: 600;
  color: var(--navy);
  transition: background var(--transition);
}
.faq-question:hover { background: var(--offwhite); }
.faq-item.open .faq-question { background: var(--navy); color: var(--white); }
.faq-icon {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: rgba(200,169,81,.15);
  display: flex; align-items: center; justify-content: center;
  font-size: .9rem;
  color: var(--gold);
  flex-shrink: 0;
  transition: transform var(--transition);
}
.faq-item.open .faq-icon { transform: rotate(45deg); background: rgba(255,255,255,.15); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height .4s ease, padding .4s ease;
  padding: 0 24px;
  font-size: .93rem;
  color: #444;
  line-height: 1.7;
}
.faq-answer.open { max-height: 600px; padding: 20px 24px; }

/* ---------- CTA Banner ---------- */
.cta-banner {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 100%);
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: '';
  position: absolute;
  top: -60px; right: -60px;
  width: 300px; height: 300px;
  border-radius: 50%;
  background: rgba(255,255,255,.08);
}
.cta-banner::after {
  content: '';
  position: absolute;
  bottom: -80px; left: -40px;
  width: 250px; height: 250px;
  border-radius: 50%;
  background: rgba(255,255,255,.06);
}
.cta-inner { position: relative; z-index: 1; text-align: center; }
.cta-inner h2 { color: var(--navy); margin-bottom: .6rem; }
.cta-inner p  { color: #1a2744; max-width: 560px; margin: 0 auto 2rem; } /* navy on gold — 7.2:1 (AA) */

/* ---------- Contact Form Section ---------- */
.contact-section { background: var(--offwhite); }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 480px;
  gap: 60px;
  align-items: start;
}
.contact-info {}
.contact-info h2 { margin-bottom: 1rem; }
.contact-detail {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 24px;
}
.contact-detail-icon {
  width: 46px; height: 46px;
  background: var(--navy);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  color: var(--gold);
  font-size: 1.1rem;
  flex-shrink: 0;
}
.contact-detail-text strong { display: block; font-size: .88rem; color: #4a5568; font-weight: 500; } /* 7.4:1 AAA */
.contact-detail-text span   { font-weight: 600; color: var(--navy); }

.contact-form-panel {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px 36px 24px;
  box-shadow: var(--shadow-md);
  max-height: 80vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.contact-form-panel h3 { margin-bottom: .3rem; flex-shrink: 0; }
.contact-form-panel > p { margin-bottom: 1rem; font-size: .9rem; color: #4a5568; flex-shrink: 0; } /* 7.4:1 AAA */
.contact-form-panel .hubspot-form-wrap {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  min-height: 0;
  padding-right: 4px;
  scrollbar-width: thin;
  scrollbar-color: var(--gold) transparent;
}
.contact-form-panel .hubspot-form-wrap::-webkit-scrollbar { width: 4px; }
.contact-form-panel .hubspot-form-wrap::-webkit-scrollbar-track { background: transparent; }
.contact-form-panel .hubspot-form-wrap::-webkit-scrollbar-thumb { background: var(--gold); border-radius: 4px; }
.contact-form-panel .trust-badges { flex-shrink: 0; margin-top: 12px; }

/* ---------- Blog Cards ---------- */
.blog-card {
  background: var(--white);
  border: 1px solid var(--light-grey);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
}
.blog-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}
.blog-card-img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  transition: transform .5s ease;
}
.blog-card:hover .blog-card-img { transform: scale(1.04); }
.blog-card-img-wrap { overflow: hidden; }
.blog-card-body { padding: 24px; flex: 1; display: flex; flex-direction: column; }
.blog-meta { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: .8rem; }
.blog-tag {
  background: rgba(200,169,81,.15);
  color: #5a4410; /* dark brown — 7.5:1 on that bg (AAA) */
  border-radius: 4px;
  padding: 2px 8px;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.blog-date { font-size: .78rem; color: #4a5568; } /* #4a5568 on white = 7.4:1 AAA */
.blog-card h3 { font-size: 1.15rem; margin-bottom: .5rem; line-height: 1.3; }
.blog-card p  { font-size: .88rem; color: #4a5568; flex: 1; margin-bottom: 1rem; } /* 7.4:1 AAA */
.blog-read-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .85rem;
  font-weight: 600;
  color: var(--navy);
  margin-top: auto;
}
.blog-read-more:hover { color: var(--gold); gap: 10px; }

/* ---------- Team Cards ---------- */
.team-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
}
.team-card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); }
.team-card-img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  object-position: top center;
}
.team-card-body { padding: 24px; }
.team-card-body h3 { font-size: 1.2rem; margin-bottom: .2rem; }
.team-role { font-size: .85rem; color: var(--gold); font-weight: 600; margin-bottom: .8rem; display: block; }
.team-card-body p { font-size: .88rem; color: #4a5568; margin: 0; } /* 7.4:1 AAA */

/* ---------- Areas Map ---------- */
.areas-map-container {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  height: 480px;
  background: #e8e8e8;
}
.area-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 1.6rem;
}
.area-chip {
  background: var(--navy);
  color: var(--white);
  border-radius: 30px;
  padding: 7px 18px;
  font-size: .85rem;
  font-weight: 500;
  transition: background var(--transition);
  cursor: default;
}
.area-chip:hover { background: var(--gold); color: var(--navy); }

/* ---------- Floating animated particles ---------- */
.particles-canvas {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}

/* ---------- Page Hero (inner pages) ---------- */
.page-hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  padding: 140px 0 80px;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  top: -100px; right: -80px;
  width: 500px; height: 500px;
  border-radius: 50%;
  background: rgba(200,169,81,.06);
}
.page-hero-breadcrumb {
  font-size: .82rem;
  color: rgba(255,255,255,.88); /* ~13:1 on navy bg (AAA) */
  margin-bottom: 1rem;
}
.page-hero-breadcrumb a { color: var(--gold); }
.page-hero-breadcrumb span { margin: 0 8px; }
.page-hero h1 { color: var(--white); }
.page-hero p  { color: rgba(255,255,255,.9); max-width: 620px; font-size: 1.05rem; } /* ~13.5:1 AAA */

/* ---------- Accreditation Logos ---------- */
.accred-strip {
  background: var(--offwhite);
  border-top: 1px solid var(--light-grey);
  border-bottom: 1px solid var(--light-grey);
  padding: 30px 0;
}
.accred-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
}
.accred-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.accred-logo {
  width: 80px;
  height: 48px;
  object-fit: contain;
  filter: grayscale(60%);
  transition: filter var(--transition), transform var(--transition);
}
.accred-logo:hover { filter: none; transform: scale(1.05); }
.accred-badge span {
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .08em;
  color: #4a5568; /* 7.4:1 on off-white AAA */
  text-transform: uppercase;
}

/* ---------- Timeline ---------- */
.timeline { position: relative; padding-left: 40px; }
.timeline::before {
  content: '';
  position: absolute;
  left: 16px; top: 0; bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--gold), var(--navy));
}
.timeline-item {
  position: relative;
  margin-bottom: 36px;
  padding-left: 20px;
}
.timeline-dot {
  position: absolute;
  left: -32px; top: 4px;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--gold);
  border: 3px solid var(--white);
  box-shadow: 0 0 0 2px var(--navy);
}
.timeline-item h4 { color: var(--navy); margin-bottom: .3rem; }
.timeline-item p  { margin: 0; font-size: .9rem; color: #555; } /* 7.4:1 AAA */

/* ---------- Image with caption ---------- */
.img-frame {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  position: relative;
}
.img-caption {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(0deg, rgba(26,39,68,.9), transparent);
  color: var(--white);
  padding: 30px 20px 20px;
  font-size: .85rem;
}

/* ---------- Highlight Box ---------- */
.highlight-box {
  background: linear-gradient(135deg, var(--navy), var(--navy-light));
  border-radius: var(--radius-lg);
  padding: 40px;
  color: var(--white);
  position: relative;
  overflow: hidden;
}
.highlight-box::after {
  content: '"';
  position: absolute;
  top: -20px; right: 20px;
  font-family: var(--font-head);
  font-size: 12rem;
  color: rgba(200,169,81,.08);
  line-height: 1;
}
.highlight-box p { color: rgba(255,255,255,.88); font-size: 1.05rem; font-style: italic; }
.highlight-box cite { color: var(--gold); font-size: .85rem; font-style: normal; }

/* ---------- Footer ---------- */
#site-footer {
  background: #0d1525;
  padding: 70px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 50px;
}
.footer-logo-wrap { margin-bottom: 1.2rem; }
.footer-desc { color: rgba(255,255,255,.85); font-size: .88rem; line-height: 1.8; margin-bottom: 1.4rem; } /* ~13:1 on #0d1525 (AAA) */
.footer-socials { display: flex; gap: 10px; }
.footer-social {
  width: 38px; height: 38px;
  border: 1px solid rgba(255,255,255,.45);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.88); /* ~13:1 on #0d1525 (AAA) */
  font-size: .95rem;
  transition: all var(--transition);
}
.footer-social:hover { background: var(--gold); border-color: var(--gold); color: var(--navy); }
.footer-col h4 {
  color: var(--white);
  font-size: 1rem;
  margin-bottom: 1.2rem;
  padding-bottom: .6rem;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.footer-links { display: flex; flex-direction: column; gap: 8px; }
.footer-links a {
  color: rgba(255,255,255,.82); /* ~12:1 on #0d1525 (AAA) */
  font-size: .88rem;
  transition: color var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.footer-links a:hover { color: var(--gold); }
.footer-links a i { font-size: .75rem; color: var(--gold); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 22px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom p { color: rgba(255,255,255,.72); font-size: .8rem; margin: 0; } /* ~9.5:1 on #0d1525 (AA) */
.footer-bottom-links { display: flex; gap: 20px; }
.footer-bottom-links a { color: rgba(255,255,255,.72); font-size: .8rem; } /* ~9.5:1 (AA) */
.footer-bottom-links a:hover { color: var(--gold); }

/* ---------- Progress bar (scroll) ---------- */
#scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  z-index: 9999;
  width: 0%;
  transition: width .1s;
}

/* ---------- Back to top ---------- */
#back-to-top {
  position: fixed;
  bottom: 32px; right: 32px;
  width: 48px; height: 48px;
  background: var(--navy);
  color: var(--gold);
  border: none;
  border-radius: 12px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
  box-shadow: var(--shadow-md);
  opacity: 0;
  transform: translateY(20px);
  transition: all var(--transition);
  z-index: 999;
}
#back-to-top.visible { opacity: 1; transform: translateY(0); }
#back-to-top:hover { background: var(--gold); color: var(--navy); }

/* ---------- Cookie Banner ---------- */
#cookie-banner {
  position: fixed;
  bottom: 20px; left: 50%;
  transform: translateX(-50%);
  background: var(--navy);
  color: var(--white);
  padding: 18px 28px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  max-width: 640px;
  width: calc(100% - 40px);
  z-index: 9998;
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  transition: all .4s ease;
}
#cookie-banner p { margin: 0; font-size: .85rem; color: rgba(255,255,255,.95); } /* ~14.5:1 on navy (AAA) */
#cookie-banner .btn { flex-shrink: 0; }
#cookie-banner.hidden { opacity: 0; pointer-events: none; transform: translateX(-50%) translateY(20px); }

/* ---------- Lazy fade-in animations ---------- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-up { opacity: 0; }
.fade-up.visible { animation: fadeUp .65s ease forwards; }
.fade-up:nth-child(2) { animation-delay: .1s; }
.fade-up:nth-child(3) { animation-delay: .2s; }
.fade-up:nth-child(4) { animation-delay: .3s; }
.fade-up:nth-child(5) { animation-delay: .4s; }
.fade-up:nth-child(6) { animation-delay: .5s; }

/* ---------- Survey Type Selector (interactive) ---------- */
.survey-selector {
  background: var(--offwhite);
  border-radius: var(--radius-lg);
  padding: 40px;
}
.survey-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.survey-tab {
  padding: 10px 20px;
  border-radius: 30px;
  border: 2px solid var(--light-grey);
  background: var(--white);
  cursor: pointer;
  font-size: .9rem;
  font-weight: 600;
  color: #2d3748; /* #2d3748 on white = 12.6:1 AAA */
  transition: all var(--transition);
}
.survey-tab:focus-visible {
  outline: 3px solid #0066cc;
  outline-offset: 2px;
}
.survey-tab.active {
  background: var(--navy);
  color: var(--gold);
  border-color: var(--navy);
}
.survey-panel { display: none; }
.survey-panel.active { display: block; }
.survey-panel h3 { margin-bottom: .6rem; }
.survey-features { display: grid; grid-template-columns: repeat(2,1fr); gap: 10px; margin-top: 16px; }
.survey-feature {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: .88rem;
  color: var(--dark-grey);
}
.survey-feature i { color: var(--green); font-size: .85rem; }

/* ---------- Quote Calculator ---------- */
.quote-calc {
  background: var(--white);
  border: 2px solid var(--gold);
  border-radius: var(--radius-lg);
  padding: 40px;
}
.quote-calc h3 { margin-bottom: 1.4rem; }
.quote-field { margin-bottom: 20px; }
.quote-field label {
  display: block;
  font-size: .85rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 6px;
}
.quote-field select,
.quote-field input[type=range] {
  width: 100%;
  padding: 11px 14px;
  border: 2px solid #cbd5e0;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: .92rem;
  background: var(--white);
  color: #2d3748; /* 12.6:1 AAA */
}
.quote-field select:focus,
.quote-field input[type=range]:focus {
  outline: none;
  border-color: #0066cc;
  box-shadow: 0 0 0 3px rgba(0,102,204,.2);
}
.quote-range-value {
  font-size: .85rem;
  color: #4a5568; /* 7.4:1 AAA */
  margin-top: 4px;
}
.quote-result {
  background: var(--offwhite);
  border-radius: var(--radius);
  padding: 20px;
  margin-top: 20px;
  text-align: center;
}
.quote-price {
  font-family: var(--font-head);
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--navy);
}
.quote-price span { font-size: 1rem; color: #4a5568; font-family: var(--font-body); } /* 7.4:1 AAA */

/* ---------- HubSpot form override ---------- */
.hs-form-iframe { width: 100% !important; }
.hubspot-form-wrap { min-height: 400px; }

/* ============================================================
   RESPONSIVE — Complete Mobile-First Overrides
   Breakpoints:
     1400px  XXL (min-width — wide desktops)
     1200px  Extra-Large (small desktops)
     1024px  Large (small laptops)
      968px  Medium-Large (tablets landscape)
      768px  Medium (tablets portrait / large phones)
      600px  Small (phones landscape / mid phones)
      480px  Extra-Small (phones portrait)
   ============================================================ */

/* ── Global mobile hygiene ── */
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
html, body { overflow-x: hidden; max-width: 100vw; }
* { -webkit-tap-highlight-color: transparent; }
img { max-width: 100%; height: auto; display: block; }

/* ── Mobile nav overlay backdrop ── */
.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.55);
  z-index: 998;
  opacity: 0;
  transition: opacity .3s ease;
}
.nav-overlay.visible {
  display: block;
  opacity: 1;
}

/* ── XXL — wide desktops ≥1400px ── */
@media (min-width: 1400px) {
  .container { max-width: 1300px; }
  .hero-inner { grid-template-columns: 1fr 460px; gap: 64px; }
  .hero-title { font-size: clamp(2.6rem, 3.5vw, 4.2rem); }
  .section-pad { padding: 100px 0; }
}

/* ── 1200px — extra-large tweaks ── */
@media (max-width: 1200px) {
  .container { max-width: 100%; padding: 0 32px; }
  .hero-inner { grid-template-columns: 1fr 380px; gap: 40px; }
}

/* ── 1024px — small laptop / tablet landscape ── */
@media (max-width: 1024px) {
  /* Hero */
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 40px;
    padding-top: 120px;
  }
  .hero-form-panel { max-width: 520px; margin: 0 auto; }

  /* Grids */
  .grid-4     { grid-template-columns: repeat(2,1fr); gap: 20px; }
  .stats-grid { grid-template-columns: repeat(2,1fr); }
  .contact-grid { grid-template-columns: 1fr; }

  /* Footer */
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
}

/* ── 968px — tablet landscape ── */
@media (max-width: 968px) {
  /* Container */
  .container { padding: 0 24px; }

  /* Grids */
  .grid-3         { grid-template-columns: repeat(2,1fr); gap: 20px; }
  .areas-grid     { grid-template-columns: repeat(2,1fr); }
  .why-grid       { grid-template-columns: repeat(2,1fr); gap: 20px; }
  .feature-grid   { grid-template-columns: repeat(2,1fr); gap: 20px; }

  /* Blog index grid */
  .blog-grid      { grid-template-columns: repeat(2,1fr); gap: 24px; }

  /* Services tabs */
  .survey-features { grid-template-columns: repeat(2,1fr); }
}

/* ── 768px — tablet portrait / large phones ── */
@media (max-width: 768px) {
  /* ── Navigation ── */
  .primary-nav {
    display: none;
    flex-direction: column;
  }
  /* Slide-down full-screen overlay menu */
  .primary-nav.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: var(--navy);
    z-index: 999;
    padding: 88px 24px 40px;
    gap: 4px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    animation: slideDownNav .28s ease forwards;
  }
  @keyframes slideDownNav {
    from { opacity: 0; transform: translateY(-12px); }
    to   { opacity: 1; transform: translateY(0); }
  }
  .primary-nav.open a {
    font-size: 1.1rem;
    padding: 1rem 20px;
    border-radius: var(--radius);
    width: 100%;
  }
  .primary-nav.open a:hover,
  .primary-nav.open a.active {
    background: rgba(200,169,81,.18);
    color: var(--gold);
  }
  .primary-nav.open .nav-cta {
    display: inline-flex;
    margin-left: 0;
    margin-top: 12px;
    width: 100%;
    justify-content: center;
    padding: 14px 20px;
  }
  /* Hamburger — show, ensure ≥44px touch target */
  .nav-toggle {
    display: flex;
    z-index: 1001;
    position: relative;
    min-width: 44px;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    padding: 10px;
  }
  /* Animated hamburger → X on open */
  .nav-toggle span {
    width: 28px;
    height: 2px;
    transition: transform .3s ease, opacity .3s ease;
  }
  .nav-toggle.open span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
  .nav-toggle.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
  .nav-toggle.open span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }

  /* ── Typography ── */
  html { font-size: 15px; }
  h1   { font-size: clamp(1.75rem, 5vw, 2.4rem); }
  h2   { font-size: clamp(1.4rem,  4vw, 1.9rem); }
  h3   { font-size: clamp(1.1rem,  3vw, 1.4rem); }

  /* ── Hero ── */
  #hero { min-height: auto; }
  .hero-inner {
    grid-template-columns: 1fr;
    padding-top: 100px;
    padding-bottom: 48px;
    gap: 32px;
    text-align: center;
  }
  .hero-content { padding-top: 0; }
  .hero-subtitle { max-width: 100%; margin-left: auto; margin-right: auto; }
  .hero-actions   { justify-content: center; }
  .hero-stats     { justify-content: center; gap: 20px; }
  .hero-form-panel {
    max-width: 500px;
    margin: 0 auto;
  }
  /* Hide hero background video on mobile — use fallback image */
  .hero-bg-video { display: none; }

  /* ── Grids ── */
  .grid-2, .grid-3, .why-grid { grid-template-columns: 1fr; gap: 20px; }
  .grid-4     { grid-template-columns: repeat(2,1fr); gap: 16px; }
  .areas-grid { grid-template-columns: repeat(2,1fr); gap: 16px; }
  .feature-grid { grid-template-columns: repeat(2,1fr); gap: 16px; }
  .survey-features { grid-template-columns: 1fr; }

  /* ── Process steps ── */
  .process-steps { flex-direction: column; gap: 24px; }
  .process-steps::before { display: none; }

  /* ── Footer ── */
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .footer-bottom { flex-direction: column; text-align: center; gap: 8px; }
  .footer-bottom-links { justify-content: center; }

  /* ── Stats ── */
  .hero-stats { gap: 20px; }
  .accred-inner { gap: 28px; }

  /* ── Section spacing ── */
  .section     { padding: 3rem 0; }
  .section-pad { padding: 64px 0; }
  .section-pad-sm { padding: 40px 0; }
  .section-header { margin-bottom: 2rem; }
  .container { padding: 0 1.25rem; }

  /* ── Contact ── */
  .contact-grid { grid-template-columns: 1fr; }
  .contact-form-panel { max-height: none; }
  .contact-info { order: 2; }
  .contact-form-panel { order: 1; }

  /* ── HubSpot forms ── */
  .hs-form-iframe { width: 100% !important; }
  .hs-form-field  { margin-bottom: 0.75rem !important; }
  .hs-input       { padding: 0.6rem !important; font-size: 16px !important; }
  .hs-button      { width: 100% !important; padding: 0.75rem !important; font-size: 1rem !important; min-height: 44px !important; }

  /* ── Blog index ── */
  .blog-grid { grid-template-columns: 1fr; gap: 20px; }
  .blog-card h3 { font-size: 1.1rem; }

  /* ── FAQ ── */
  .faq-item     { margin-bottom: 0.75rem; }
  .faq-question { padding: 1rem; font-size: 0.95rem; line-height: 1.45; }
  .faq-answer   { padding: 0 1rem; }
  .faq-answer.open { padding: 0.75rem 1rem; }
  .faq-icon     { font-size: 1.25rem; width: 24px; height: 24px; }

  /* ── Responsive table overflow ── */
  table, .ba-table-wrap table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
}

/* ── 600px — phones landscape / mid-size phones ── */
@media (max-width: 600px) {
  /* ── Container ── */
  .container { padding: 0 1rem; }

  /* ── Typography ── */
  .section-header h2,
  .section-title   { font-size: 1.5rem; }
  .section-intro   { font-size: 0.95rem; }
  .section-label   { font-size: 0.72rem; }

  /* ── Hero ── */
  .hero-inner { padding: 2rem 1rem; padding-top: 90px; gap: 24px; }
  .hero-title { font-size: clamp(1.5rem, 5.5vw, 2.2rem); }
  .hero-subtitle { font-size: 0.9rem; }
  .hero-form-panel { padding: 1.25rem; }
  .hero-badge { font-size: 0.72rem; padding: 5px 12px; flex-wrap: wrap; }
  .hero-actions { flex-direction: column; align-items: center; gap: 10px; }
  .hero-actions .btn { width: 100%; max-width: 320px; justify-content: center; }
  .hero-stats { gap: 14px; flex-wrap: wrap; }
  .hero-stat-num { font-size: 1.6rem; }

  /* ── Buttons ── */
  .btn {
    width: 100%;
    padding: 0.75rem 1.5rem;
    font-size: 0.9rem;
    min-height: 44px;
  }
  .btn-sm { padding: 10px 18px; font-size: 0.82rem; min-height: 40px; width: auto; }

  /* ── Section spacing ── */
  .section-pad { padding: 52px 0; }

  /* ── Grids ── */
  .grid-3     { grid-template-columns: 1fr; gap: 16px; }
  .grid-4     { grid-template-columns: 1fr; gap: 16px; }
  .areas-grid { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: 1fr; }
  .why-grid   { grid-template-columns: 1fr; }

  /* ── Service cards ── */
  .service-item  { padding: 1.25rem; }
  .service-icon  { font-size: 2rem; }
  .service-item h3 { font-size: 1.1rem; }

  /* ── FAQ ── */
  .faq-item     { margin-bottom: 0.75rem; }
  .faq-question { padding: 1rem; font-size: 0.95rem; line-height: 1.45; }
  .faq-answer   { padding: 0 1rem; }
  .faq-answer.open { padding: 0.75rem 1rem; }
  .faq-icon     { font-size: 1.25rem; width: 24px; height: 24px; }

  /* ── CTA Banner ── */
  .cta-banner { padding: 2rem 1.5rem; border-radius: 10px; }
  .cta-inner h2 { font-size: 1.3rem; }
  .cta-inner p  { font-size: 1rem; margin-bottom: 1.5rem; }
  .cta-inner .btn { width: 100%; max-width: 320px; }
  .cta-inner .hero-actions { align-items: center; }

  /* ── Blog cards ── */
  .blog-card  { margin-bottom: 0; }
  .blog-card h3 { font-size: 1.1rem; }

  /* ── Blog article pages ── */
  .ba-hero    { min-height: 280px; }
  .ba-body-wrap { padding: 1rem 0; }
  .ba-grid    { padding: 0 1rem; gap: 2rem; }
  .ba-hero-content h1 { font-size: 1.5rem; }
  .ba-hero-content h2 { font-size: 1.25rem; }

  /* ── HubSpot / Forms ── */
  .hero-form-panel { margin: 0; }
  .hs-form-field label { font-size: 0.9rem !important; }
  .contact-form-panel { padding: 1.25rem; margin: 0 0.5rem; }
  .hs-form-field  { margin-bottom: 0.75rem !important; }
  .hs-input       { padding: 0.6rem !important; font-size: 16px !important; }
  .hs-button      { width: 100% !important; padding: 0.75rem 1.5rem !important; font-size: 0.9rem !important; min-height: 44px !important; }

  /* ── Footer ── */
  .footer-grid { grid-template-columns: 1fr; text-align: center; }
  .footer-col h4 { margin-top: 4px; }
  .footer-links { align-items: center; }
  .accreditation-badges { justify-content: center; flex-wrap: wrap; }
  .footer-bottom { flex-direction: column; align-items: center; gap: 8px; }
  .footer-bottom-links { justify-content: center; }

  /* ── Highlight / info boxes ── */
  .highlight-box { padding: 1.5rem 1rem; }
}

/* ── 480px — small phones portrait ── */
@media (max-width: 480px) {
  /* ── Typography ── */
  html { font-size: 14px; }
  h1   { font-size: 1.5rem; }
  h2   { font-size: 1.3rem; }
  h3   { font-size: 1.1rem; }
  p    { font-size: 0.95rem; line-height: 1.6; }

  /* ── Container ── */
  .container { padding: 0 1rem; }
  .section-pad { padding: 2rem 0; }
  .section-pad-sm { padding: 1.5rem 0; }
  .section-header { margin-bottom: 2rem; }

  /* ── Hero ── */
  .hero-inner { padding-top: 84px; padding-left: 1rem; padding-right: 1rem; }
  .hero-title { font-size: 1.25rem; line-height: 1.2; }
  .hero-subtitle { font-size: 0.92rem; }
  .hero-form-panel { padding: 0.6rem 1rem 0.7rem; border-radius: var(--radius); }
  .hero-form-panel h3 { font-size: 1.1rem; }
  .hero-badge { font-size: 0.68rem; padding: 4px 10px; }

  /* ── Stats / counters ── */
  .stats-grid { grid-template-columns: 1fr; }
  .hero-stats { gap: 12px; }
  .hero-stat-num { font-size: 1.4rem; }

  /* ── Footer ── */
  .footer-grid { grid-template-columns: 1fr; }

  /* ── Process ── */
  .process-step { text-align: center; }

  /* ── Service cards ── */
  .service-item { padding: 18px 14px; }
  .service-item h3 { font-size: 1rem; }

  /* ── Area cards ── */
  .area-card { padding: 1rem 14px; }

  /* ── Areas / Features grids → single column ── */
  .areas-grid   { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: 1fr; }
  .feature-item { padding: 1rem; text-align: center; }
  .feature-item i { font-size: 2rem; }

  /* ── Buttons ── */
  .btn    { padding: 0.7rem 1rem; font-size: 0.88rem; }
  .btn-lg { padding: 14px 24px; font-size: 0.95rem; }

  /* ── Quote panel ── */
  .quote-price  { font-size: 2rem; }
  .contact-form-panel { padding: 1rem 14px; }

  /* ── Survey selector ── */
  .survey-tabs { flex-wrap: wrap; gap: 8px; }
  .survey-tab  { flex: 1 1 calc(50% - 4px); text-align: center; padding: 8px 6px; font-size: 0.82rem; }
}

/* ---------- Print styles ---------- */
@media print {
  #site-header, #back-to-top, #cookie-banner, .scroll-indicator { display: none; }
  body { padding-top: 0; }
}
