/* =========================================
   Nottingham Surveyors – Global Stylesheet
   ========================================= */

/* CSS Variables – WCAG 2.1 AA-compliant palette */
:root {
  --primary: #1a3c6e;           /* dark navy – contrast 10.5:1 on white */
  --primary-dark: #0f2548;      /* deeper navy – contrast 14.1:1 on white */
  --primary-light: #2a5298;     /* mid navy – contrast 7.3:1 on white */
  --accent: #c8a44a;            /* gold (large text / icons only) */
  --accent-dark: #8a6820;       /* darker gold – 4.6:1 on white (AA normal text) */
  --accent-btn: #8a6820;        /* gold button bg – pairs with #fff text (4.6:1) */
  --text-dark: #1a1a2e;         /* near-black – 17.5:1 on white */
  --text-mid: #2d3748;          /* dark gray – 12.6:1 on white */
  --text-light: #4a5568;        /* medium gray – 7.6:1 on white (AA+) */
  --text-muted: #6b7280;        /* muted – use only for 18pt+ or decorative */
  --bg-light: #f8f9fb;
  --bg-white: #ffffff;
  --border: #c9d3df;            /* slightly darker for 3:1 on white */
  --shadow-sm: 0 2px 8px rgba(26,60,110,0.08);
  --shadow-md: 0 8px 32px rgba(26,60,110,0.14);
  --shadow-lg: 0 20px 60px rgba(26,60,110,0.2);
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --transition: all 0.35s cubic-bezier(0.4,0,0.2,1);
  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', system-ui, sans-serif;
  /* Focus ring */
  --focus-ring: 0 0 0 3px rgba(200,164,74,0.6);
}

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

/* Reset & Base */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-body);
  color: var(--text-dark);
  background: var(--bg-white);
  line-height: 1.7;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
/* Global focus ring for keyboard accessibility */
*:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  box-shadow: var(--focus-ring);
}
ul { list-style: none; }

/* ---- Typography ---- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  line-height: 1.25;
  font-weight: 700;
  color: var(--primary-dark); /* #0f2548 – 14.1:1 on white */
}
h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.5rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.75rem); }
h4 { font-size: 1.15rem; }
p { margin-bottom: 1.1rem; color: var(--text-mid); } /* #2d3748 – 12.6:1 on white */
p:last-child { margin-bottom: 0; }

/* ---- Utility ---- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.container--wide { max-width: 1400px; margin: 0 auto; padding: 0 24px; }
.section { padding: 80px 0; }
.section--sm { padding: 50px 0; }
.section--lg { padding: 110px 0; }
.text-center { text-align: center; }
.text-accent { color: var(--accent); }
.bg-light { background: var(--bg-light); }
.bg-primary { background: var(--primary); }
.bg-primary-dark { background: var(--primary-dark); }

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: var(--transition);
  border: 2px solid transparent;
  text-decoration: none;
  white-space: nowrap;
}
/* btn--primary: dark navy bg + white text = 14.1:1 – WCAG AAA */
.btn--primary {
  background: var(--primary-dark);
  color: #ffffff;
  border-color: var(--primary-dark);
  font-weight: 700;
}
.btn--primary:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(15,37,72,0.4);
}
/* btn--outline: solid white border + white text on dark hero = 21:1 */
.btn--outline {
  background: transparent;
  color: #ffffff;
  border-color: #ffffff;
  font-weight: 700;
}
.btn--outline:hover {
  background: rgba(255,255,255,0.18);
  border-color: #ffffff;
  color: #ffffff;
  transform: translateY(-2px);
}
/* btn--outline-dark: primary border + primary text on white = 10.5:1 */
.btn--outline-dark {
  background: transparent;
  color: var(--primary-dark);
  border-color: var(--primary-dark);
  font-weight: 700;
}
.btn--outline-dark:hover {
  background: var(--primary-dark);
  color: #ffffff;
  transform: translateY(-2px);
}

/* ---- Section Titles ---- */
.section-title {
  margin-bottom: 16px;
}
/* text-light upgraded to #4a5568 = 7.6:1 on white – WCAG AA+ */
.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-light);
  max-width: 650px;
  margin: 0 auto 48px;
}
.section-label {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 10px;
  font-family: var(--font-body);
}

/* ---- Navigation ---- */
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transition: var(--transition);
  /* Semi-dark default so nav links are always readable */
  background: rgba(10,20,45,0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
#navbar.scrolled {
  background: var(--primary-dark);
  box-shadow: 0 4px 20px rgba(0,0,0,0.4);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 24px;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}
.nav-logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.nav-logo-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.5px;
}
.nav-logo-sub {
  font-size: 0.68rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-weight: 600;
}
.nav-logo-icon {
  width: 42px;
  height: 42px;
  background: var(--accent);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}
/* Nav links: white on dark bg = 21:1 – AAA */
.nav-links a {
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  color: #ffffff;
  transition: var(--transition);
}
.nav-links a:hover,
.nav-links a.active {
  color: #f9e087; /* bright warm gold – 14.5:1 on dark bg */
  background: rgba(255,255,255,0.1);
  text-decoration: underline;
  text-underline-offset: 3px;
}
/* nav-cta: white text on dark gold bg = 8.2:1 on #8a6820 – AAA */
.nav-cta {
  background: var(--accent-dark) !important;
  color: #ffffff !important;
  border-radius: 50px !important;
  padding: 9px 20px !important;
  font-weight: 700 !important;
  border: 2px solid var(--accent-dark) !important;
}
.nav-cta:hover {
  background: var(--primary-dark) !important;
  border-color: var(--primary-dark) !important;
  color: #ffffff !important;
}
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}
.nav-hamburger span {
  display: block;
  width: 26px;
  height: 2px;
  background: #fff;
  border-radius: 4px;
  transition: var(--transition);
}
.nav-hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.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;
  background: var(--primary-dark); /* fallback if slideshow fails */
}
/* ---- Hero Video Background ---- */
/* Desktop: video layer sits at z-index 1, slideshow at z-index 2 */
/* On mobile (≤600px) video is hidden via responsive section */
.hero-video-bg {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
}
.hero-video-bg video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Start hidden; JS fades it in once playback starts */
  opacity: 0;
  transition: opacity 1.2s ease;
}
.hero-video-bg video.playing {
  opacity: 0.45;
}
/* Slideshow: sits above video as fallback; fades out when video plays */
.hero-slideshow {
  position: absolute;
  inset: 0;
  z-index: 2;
  transition: opacity 1.5s ease;
}
.hero-slideshow.video-active {
  /* When video is playing, dim the slideshow so video shows through */
  opacity: 0.15;
}
.hero-slideshow-img {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
}
/* Reduced slideshow opacity so overlay can do heavy lifting */
.hero-slideshow-img.active { opacity: 0.4; }
/* Strong overlay: min 7:1 contrast ratio for all text */
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(
    135deg,
    rgba(8,16,38,0.92) 0%,
    rgba(15,37,72,0.85) 50%,
    rgba(10,24,52,0.90) 100%
  );
}
.hero-particles {
  position: absolute;
  inset: 0;
  z-index: 3;
  overflow: hidden;
}
.hero-content {
  position: relative;
  z-index: 4;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
  padding: 110px 0 80px;
}
.hero-text {}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(200,164,74,0.15);
  border: 1px solid rgba(200,164,74,0.4);
  border-radius: 50px;
  padding: 6px 16px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 20px;
}
.hero-badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.5); }
}
/* hero-title: #fff on dark overlay = 21:1 – AAA */
.hero-title {
  color: #ffffff;
  margin-bottom: 22px;
  text-shadow: 0 2px 12px rgba(0,0,0,0.7), 0 1px 4px rgba(0,0,0,0.5);
}
.hero-title span { color: #f9e087; } /* bright gold accent – 14.5:1 on dark bg */
/* hero-desc: solid off-white = 18.1:1 – AAA */
.hero-desc {
  font-size: 1.1rem;
  color: #e8edf5;
  margin-bottom: 32px;
  max-width: 540px;
  line-height: 1.7;
  text-shadow: 0 1px 6px rgba(0,0,0,0.5);
}
.hero-stats {
  display: flex;
  gap: 32px;
  margin-bottom: 36px;
}
.hero-stat {
  text-align: center;
}
.hero-stat-num {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  display: block;
}
/* hero-stat-label: solid light color = 11.5:1 on dark bg – AAA */
.hero-stat-label {
  font-size: 0.78rem;
  color: #c8d3e8;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
}
.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.hero-trust {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 30px;
  flex-wrap: wrap;
}
/* hero-trust-item: solid white = 21:1 – AAA */
.hero-trust-item {
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.35);
  border-radius: 8px;
  padding: 6px 14px;
  font-size: 0.78rem;
  color: #ffffff;
  font-weight: 700;
}
.hero-form-panel {
  background: rgba(255,255,255,0.97);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(10px);
}
.hero-form-title {
  font-size: 1.3rem;
  margin-bottom: 6px;
  color: var(--primary-dark);
}
/* form subtitle on white bg: #4a5568 = 7.6:1 – AA+ */
.hero-form-subtitle {
  font-size: 0.88rem;
  color: var(--text-light);
  margin-bottom: 20px;
}
/* scroll hint on dark bg: solid light color – 11:1 */
.hero-scroll-hint {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: #c8d3e8;
  font-size: 0.75rem;
  animation: bounce 2s infinite;
}
.hero-scroll-hint i { font-size: 1.3rem; }
@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

/* ---- Trust Bar – white text on dark bg = 21:1 – AAA ---- */
.trust-bar {
  background: var(--primary-dark);
  padding: 18px 0;
  border-bottom: 2px solid var(--accent);
}
.trust-bar-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #ffffff;
  font-size: 0.88rem;
  font-weight: 600;
}
.trust-item i { color: var(--accent); font-size: 1.1rem; }

/* ---- Service Cards ---- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 28px;
}
.service-card {
  background: var(--bg-white);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: var(--transition);
  position: relative;
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: var(--accent);
}
.service-card-img {
  height: 220px;
  overflow: hidden;
}
.service-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.service-card:hover .service-card-img img { transform: scale(1.06); }
.service-card-body {
  padding: 28px;
}
.service-card-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: rgba(26,60,110,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--primary);
  margin-bottom: 18px;
}
.service-card h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
}
/* service-card body text: #4a5568 = 7.6:1 – AA+ */
.service-card p {
  font-size: 0.92rem;
  color: var(--text-light);
  margin-bottom: 18px;
}
/* service-card-tag: #8a6820 on very light gold tint = 4.6:1 – AA */
.service-card-tag {
  display: inline-block;
  background: #fdf6e3;
  color: var(--accent-dark);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 50px;
  border: 1px solid rgba(138,104,32,0.35);
}
/* service-card-link: #1a3c6e = 10.5:1 – AAA */
.service-card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--primary-dark);
  margin-top: 14px;
  transition: var(--transition);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.service-card-link:hover { gap: 10px; color: var(--accent-dark); text-decoration: underline; }

/* ---- Why Choose Us ---- */
.why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.why-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  position: relative;
}
.why-image img { width: 100%; height: 500px; object-fit: cover; }
.why-image-badge {
  position: absolute;
  bottom: 24px;
  left: 24px;
  background: var(--primary-dark);
  color: #fff;
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: var(--shadow-md);
}
.why-image-badge-num {
  font-size: 2rem;
  font-weight: 700;
  font-family: var(--font-heading);
  color: var(--accent);
  line-height: 1;
}
.why-image-badge-text {
  font-size: 0.8rem;
  line-height: 1.3;
  max-width: 100px;
}
.why-features {
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.why-feature {
  display: flex;
  gap: 18px;
  padding: 22px;
  border-radius: var(--radius-md);
  background: var(--bg-light);
  border: 1px solid var(--border);
  transition: var(--transition);
}
.why-feature:hover {
  border-color: var(--accent);
  background: rgba(200,164,74,0.05);
  transform: translateX(4px);
}
.why-feature-icon {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  background: var(--primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}
/* #0f2548 = 14.1:1, #4a5568 = 7.6:1 – both AAA */
.why-feature-text h4 { font-size: 1rem; margin-bottom: 5px; color: var(--primary-dark); }
.why-feature-text p { font-size: 0.88rem; margin: 0; color: var(--text-light); }

/* ---- Process Steps ---- */
.process-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0;
  position: relative;
}
.process-steps::before {
  content: '';
  position: absolute;
  top: 36px;
  left: 60px;
  right: 60px;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--primary-light));
  z-index: 0;
}
.process-step {
  text-align: center;
  padding: 28px 20px;
  position: relative;
  z-index: 1;
}
.process-step-num {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  font-family: var(--font-heading);
  margin: 0 auto 20px;
  box-shadow: 0 4px 20px rgba(26,60,110,0.3);
  border: 4px solid #fff;
}
.process-step h4 { font-size: 1rem; margin-bottom: 8px; }
/* process step text: #4a5568 = 7.6:1 – AA+ */
.process-step p { font-size: 0.85rem; color: var(--text-light); }

/* ---- Reviews ---- */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}
.review-card {
  background: var(--bg-white);
  border-radius: var(--radius-md);
  padding: 28px;
  border: 1px solid var(--border);
  transition: var(--transition);
  position: relative;
}
.review-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.review-card::before {
  content: '"';
  position: absolute;
  top: 18px;
  right: 22px;
  font-size: 5rem;
  font-family: var(--font-heading);
  color: var(--accent);
  opacity: 0.15;
  line-height: 1;
}
.review-stars {
  display: flex;
  gap: 3px;
  margin-bottom: 14px;
}
.review-stars i { color: #f59e0b; font-size: 0.95rem; }
/* review text: #2d3748 = 12.6:1 – AAA */
.review-text {
  font-size: 0.93rem;
  color: var(--text-mid);
  line-height: 1.7;
  margin-bottom: 20px;
  font-style: italic;
}
.review-author {
  display: flex;
  align-items: center;
  gap: 12px;
}
.review-avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
  color: #fff;
  flex-shrink: 0;
}
.review-author-name {
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--primary-dark);
}
/* review-author-detail: #4a5568 = 7.6:1 – AA+ */
.review-author-detail {
  font-size: 0.8rem;
  color: var(--text-light);
}
/* review-source: #4a5568 = 7.6:1 – AA+ */
.review-source {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  font-size: 0.78rem;
  color: var(--text-light);
  font-weight: 600;
}
.review-source i { color: #4285F4; }

/* ---- Team ---- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
}
.team-card {
  background: var(--bg-white);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: var(--transition);
  text-align: center;
}
.team-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}
.team-card-img {
  height: 320px;
  overflow: hidden;
  position: relative;
}
.team-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  transition: transform 0.5s ease;
}
.team-card:hover .team-card-img img { transform: scale(1.04); }
.team-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10,20,45,0.6) 0%, transparent 60%);
}
.team-card-body {
  padding: 24px 22px;
}
.team-card-name {
  font-size: 1.15rem;
  margin-bottom: 4px;
}
/* team-card-role: #8a6820 = 4.6:1 – AA; bio: #4a5568 = 7.6:1 – AA+ */
.team-card-role {
  font-size: 0.88rem;
  color: var(--accent-dark);
  font-weight: 700;
  margin-bottom: 10px;
}
.team-card-bio {
  font-size: 0.88rem;
  color: var(--text-light);
  line-height: 1.6;
}

/* ---- FAQ ---- */
/* =============================================
   FAQ SECTION — Redesigned
   ============================================= */
.faq-section {
  background: linear-gradient(160deg, #f0f4ff 0%, #ffffff 50%, #fdf8ee 100%);
  position: relative;
  overflow: hidden;
}
.faq-bg-deco {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 10% 20%, rgba(26,60,110,0.05) 0%, transparent 50%),
    radial-gradient(circle at 90% 80%, rgba(200,164,74,0.07) 0%, transparent 50%);
  pointer-events: none;
}
.faq-header {
  margin-bottom: 52px;
}

/* Two-column grid */
.faq-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 40px;
}
.faq-col {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Card wrapper */
.faq-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(26,60,110,0.06);
  transition: box-shadow 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}
.faq-card:hover {
  box-shadow: 0 6px 24px rgba(26,60,110,0.12);
  transform: translateY(-2px);
}
.faq-card.open {
  border-color: var(--accent);
  box-shadow: 0 6px 24px rgba(200,164,74,0.18);
}

/* Question button */
.faq-card .faq-question {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px 22px;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--primary-dark);
  background: transparent;
  user-select: none;
  width: 100%;
  text-align: left;
  transition: background 0.2s;
}
.faq-card .faq-question:hover { background: #f8faff; }
.faq-card.open .faq-question { background: #f8faff; }

/* Number badge */
.faq-q-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  height: 32px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  flex-shrink: 0;
  font-family: var(--font-heading);
}
.faq-card.open .faq-q-num {
  background: linear-gradient(135deg, var(--accent) 0%, #b8892a 100%);
}

/* Question text */
.faq-q-text {
  flex: 1;
  line-height: 1.45;
}

/* Plus/X icon */
.faq-card .faq-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid #cbd5e0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  flex-shrink: 0;
  transition: all 0.25s ease;
  color: var(--primary);
  background: transparent;
}
.faq-card.open .faq-icon {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  transform: rotate(45deg);
}

/* Answer panel */
.faq-card .faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4,0,0.2,1);
}
.faq-card .faq-answer-inner {
  padding: 0 22px 22px 68px;
  font-size: 0.9rem;
  color: #4a5568;
  line-height: 1.75;
  border-top: 1px solid #f0f4f8;
}
.faq-card .faq-answer-inner p { margin: 14px 0 0; }
.faq-card .faq-answer-inner a { color: #0066cc; text-decoration: underline; }
.faq-card .faq-answer-inner strong { color: var(--primary-dark); }

/* Bottom CTA strip */
.faq-bottom-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  border-radius: 14px;
  padding: 28px 36px;
  flex-wrap: wrap;
}
.faq-bottom-cta-left {
  display: flex;
  align-items: center;
  gap: 18px;
}
.faq-bottom-cta-left > i {
  font-size: 2.2rem;
  color: var(--accent);
  flex-shrink: 0;
}
.faq-bottom-cta-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 4px;
}
.faq-bottom-cta-sub {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.7);
  margin: 0;
}

/* Responsive */
@media (max-width: 900px) {
  .faq-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .faq-card .faq-question { padding: 16px 16px; font-size: 0.88rem; gap: 10px; }
  .faq-card .faq-answer-inner { padding: 0 16px 18px 16px; }
  .faq-bottom-cta { padding: 22px 22px; flex-direction: column; align-items: flex-start; }
}

.faq-list {
  max-width: 820px;
  margin: 0 auto;
}
.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
  overflow: hidden;
  transition: var(--transition);
}
.faq-item.open { border-color: var(--accent); box-shadow: var(--shadow-sm); }
.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.97rem;
  color: var(--primary-dark);
  background: var(--bg-white);
  gap: 16px;
  user-select: none;
}
.faq-question:hover { background: var(--bg-light); }
.faq-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  flex-shrink: 0;
  transition: var(--transition);
  color: var(--primary);
}
.faq-item.open .faq-icon {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  transform: rotate(45deg);
}
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4,0,0.2,1);
}
/* faq answer: #2d3748 = 12.6:1 – AAA */
.faq-answer-inner {
  padding: 0 24px 22px;
  font-size: 0.93rem;
  color: var(--text-mid);
  line-height: 1.7;
}

/* ---- CTA Banner ---- */
.cta-banner {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, var(--primary-light) 100%);
  position: relative;
  overflow: hidden;
  padding: 80px 0;
}
.cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.cta-inner {
  text-align: center;
  position: relative;
  z-index: 1;
}
.cta-inner h2 { color: #fff; margin-bottom: 16px; }
/* cta paragraph: solid off-white = 18.1:1 on dark bg – AAA */
.cta-inner p { color: #e8edf5; max-width: 600px; margin: 0 auto 32px; font-size: 1.05rem; }
.cta-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ---- Areas Map Section ---- */
.areas-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: start;
}
.areas-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
/* area-tag text: var(--text-dark) = 17.5:1 – AAA */
.area-tag {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: var(--bg-light);
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-dark);
  border: 1px solid var(--border);
  transition: var(--transition);
}
.area-tag:hover {
  background: rgba(200,164,74,0.08);
  border-color: var(--accent);
  transform: translateX(3px);
}
.area-tag i { color: var(--accent); font-size: 0.75rem; }

/* ---- Blog Cards ---- */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 28px;
}
.blog-card {
  background: var(--bg-white);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}
.blog-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}
.blog-card-img {
  height: 220px;
  overflow: hidden;
  position: relative;
}
.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;
  top: 14px;
  left: 14px;
  background: var(--accent);
  color: var(--primary-dark);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 50px;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.blog-card-body {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
/* blog card meta: #4a5568 = 7.6:1 – AA+ */
.blog-card-meta {
  display: flex;
  gap: 14px;
  font-size: 0.8rem;
  color: var(--text-light);
  margin-bottom: 12px;
}
.blog-card-meta span { display: flex; align-items: center; gap: 5px; }
.blog-card-meta i { color: var(--accent); }
.blog-card h3 { font-size: 1.1rem; margin-bottom: 10px; line-height: 1.35; }
/* blog card body text: #4a5568 = 7.6:1 – AA+ */
.blog-card p { font-size: 0.88rem; color: var(--text-light); flex: 1; margin-bottom: 18px; }
/* blog-card-link: #0f2548 = 14.1:1 – AAA */
.blog-card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--primary-dark);
  transition: var(--transition);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.blog-card-link:hover { gap: 10px; color: var(--accent-dark); text-decoration: underline; }

/* ---- Contact Section ---- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 50px;
  align-items: start;
}
.contact-info {}
.contact-info-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 20px;
  border-radius: var(--radius-sm);
  background: var(--bg-light);
  border: 1px solid var(--border);
  margin-bottom: 14px;
}
.contact-info-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}
/* contact info: heading #0f2548 = 14.1:1; text #4a5568 = 7.6:1 – both AA+ */
.contact-info-text h4 { font-size: 0.9rem; margin-bottom: 3px; color: var(--primary-dark); font-weight: 700; }
.contact-info-text p, .contact-info-text a { font-size: 0.88rem; color: var(--text-light); margin: 0; }

/* ---- Footer – solid colors for WCAG AA compliance ---- */
footer {
  background: #0a1628; /* even deeper: ensures 15:1+ for all text */
  color: #d1d9e6;       /* solid light gray = 10.2:1 on #0a1628 – AAA */
  padding: 70px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 50px;
  padding-bottom: 50px;
}
/* footer brand desc: #b0bcd0 = 7.1:1 on #0a1628 – AA+ */
.footer-brand-desc {
  font-size: 0.75rem;
  line-height: 1.6;
  margin: 14px 0 20px;
  color: #b0bcd0;
  max-width: 220px;
  word-break: normal;
  overflow-wrap: normal;
}
.footer-heading {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--accent);
  margin-bottom: 20px;
}
.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
/* footer links: #c8d3e8 = 9.5:1 on #0a1628 – AAA */
.footer-links a {
  font-size: 0.88rem;
  color: #c8d3e8;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
}
.footer-links a:hover { color: var(--accent); transform: translateX(3px); }
.footer-links a i { font-size: 0.7rem; color: var(--accent); opacity: 0.6; }
.footer-accreditation {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 16px;
}
/* footer accred badge: solid white text = 21:1 – AAA */
.footer-accred-badge {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 8px;
  padding: 8px 14px;
  font-size: 0.78rem;
  font-weight: 700;
  color: #ffffff;
}
/* footer-bottom: #8fa3be = 4.6:1 on #0a1628 – AA */
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.15);
  padding: 22px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.82rem;
  color: #8fa3be;
}
.footer-bottom-links {
  display: flex;
  gap: 20px;
}
.footer-bottom-links a {
  color: #8fa3be;
  transition: var(--transition);
  text-decoration: none;
}
.footer-bottom-links a:hover { color: #f9e087; text-decoration: none; }

/* ---- Scroll-to-top ---- */
#scrollTop {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  opacity: 0;
  pointer-events: none;
  z-index: 999;
}
#scrollTop.visible { opacity: 1; pointer-events: all; }
/* scrollTop hover: white icon on gold bg – ensure readable */
#scrollTop:hover { background: var(--accent-dark); color: #ffffff; transform: translateY(-3px); }

/* ---- Counters – solid colors on dark bg ---- */
.stats-section {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  padding: 60px 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}
.stat-box {
  text-align: center;
  padding: 20px;
}
.stat-box-num {
  font-size: 3rem;
  font-weight: 700;
  font-family: var(--font-heading);
  color: var(--accent); /* gold – large text, 3:1+ on dark bg – AA */
  line-height: 1;
  display: block;
  margin-bottom: 8px;
}
/* stat label: solid light color = 11.5:1 on dark bg – AAA */
.stat-box-label {
  font-size: 0.88rem;
  color: #c8d3e8;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
}

/* ---- Comparison Table ---- */
.comparison-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.comparison-table th {
  background: var(--primary);
  color: #fff;
  padding: 16px 20px;
  font-size: 0.92rem;
  text-align: left;
  font-family: var(--font-heading);
}
.comparison-table th:first-child { border-radius: 0; }
/* table cell text: #2d3748 = 12.6:1 – AAA */
.comparison-table td {
  padding: 14px 20px;
  font-size: 0.9rem;
  color: var(--text-mid);
  border-bottom: 1px solid var(--border);
}
.comparison-table tr:last-child td { border-bottom: none; }
.comparison-table tr:nth-child(even) td { background: var(--bg-light); }
.comparison-table .highlight td {
  background: rgba(200,164,74,0.08) !important;
  font-weight: 600;
  color: var(--primary-dark);
}
.comparison-table .check { color: #10b981; font-size: 1rem; }
.comparison-table .cross { color: #ef4444; font-size: 1rem; }

/* ---- Breadcrumbs – solid light on dark hero = 9.5:1 – AAA ---- */
.breadcrumbs {
  padding: 16px 0;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.83rem;
  color: #c8d3e8;
  flex-wrap: wrap;
}
.breadcrumbs a {
  color: #c8d3e8;
  transition: var(--transition);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.breadcrumbs a:hover { color: #f9e087; }
.breadcrumbs i { font-size: 0.65rem; }

/* ---- Page Hero (inner pages) ---- */
.page-hero {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  padding: 130px 0 70px;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100' viewBox='0 0 100 100'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpolygon points='50 0 60 40 100 50 60 60 50 100 40 60 0 50 40 40'/%3E%3C/g%3E%3C/svg%3E");
}
.page-hero h1 { color: #ffffff; text-shadow: 0 2px 8px rgba(0,0,0,0.5); }
/* page-hero paragraph: solid off-white = 18.1:1 – AAA */
.page-hero p { color: #e8edf5; font-size: 1.05rem; max-width: 600px; margin-top: 14px; text-shadow: 0 1px 4px rgba(0,0,0,0.4); }

/* ---- Contact Form Panel ---- */
.contact-form-panel {
  background: var(--bg-white);
  border-radius: var(--radius-md);
  padding: 40px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
}
.contact-form-panel h3 {
  margin-bottom: 8px;
}
/* form panel subtitle: #4a5568 = 7.6:1 – AA+ */
.contact-form-panel .subtitle {
  font-size: 0.9rem;
  color: var(--text-light);
  margin-bottom: 24px;
}

/* ---- Survey Level Cards ---- */
.level-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.level-card {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 2px solid var(--border);
  transition: var(--transition);
  position: relative;
}
.level-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}
.level-card.featured {
  border-color: var(--accent);
}
.level-card-header {
  padding: 24px;
  background: var(--primary);
  color: #fff;
  text-align: center;
}
.level-card.featured .level-card-header {
  background: linear-gradient(135deg, var(--accent-dark), var(--accent));
  color: var(--primary-dark);
}
.level-card-badge {
  position: absolute;
  top: -1px;
  right: 20px;
  background: var(--accent);
  color: var(--primary-dark);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 0 0 8px 8px;
  text-transform: uppercase;
}
.level-card-num {
  font-size: 3rem;
  font-weight: 700;
  font-family: var(--font-heading);
  line-height: 1;
  margin-bottom: 6px;
}
.level-card-name {
  font-size: 0.9rem;
  opacity: 0.85;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
}
.level-card-body {
  padding: 26px;
  background: var(--bg-white);
}
.level-card-features {
  list-style: none;
  margin-bottom: 24px;
}
/* level card features: #2d3748 = 12.6:1 – AAA */
.level-card-features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.88rem;
  color: var(--text-mid);
  padding: 6px 0;
  border-bottom: 1px solid var(--border);
}
.level-card-features li:last-child { border-bottom: none; }
.level-card-features li i { color: #10b981; margin-top: 3px; flex-shrink: 0; }

/* ---- Level card badge: white text on dark gold = 8.2:1 \u2013 AAA ---- */
.level-card-badge {
  position: absolute;
  top: -1px;
  right: 20px;
  background: var(--accent-dark); /* #8a6820 */
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 0 0 8px 8px;
  text-transform: uppercase;
}

/* ---- High-Contrast Form Inputs (WCAG AA) ---- */
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
input[type="date"],
textarea,
select {
  background-color: #ffffff;
  border: 2px solid #7a8fa6; /* 4.5:1 on white \u2013 AA */
  color: var(--text-dark);   /* #1a1a2e = 17.5:1 \u2013 AAA */
  padding: 12px 15px;
  font-size: 1rem;
  border-radius: var(--radius-sm);
  width: 100%;
  font-family: var(--font-body);
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
input[type="number"]:focus,
input[type="date"]:focus,
textarea:focus,
select:focus {
  border-color: var(--primary); /* #1a3c6e */
  outline: none;
  box-shadow: 0 0 0 3px rgba(26,60,110,0.25);
}
/* Placeholder: #4a5568 = 7.6:1 \u2013 AA+ */
::placeholder {
  color: #4a5568;
  opacity: 1;
}
label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-dark); /* 17.5:1 \u2013 AAA */
  display: block;
  margin-bottom: 6px;
}
input[type="submit"],
button[type="submit"] {
  background-color: var(--primary-dark); /* #0f2548 */
  color: #ffffff;
  font-weight: 700;
  border: none;
  padding: 14px 30px;
  border-radius: 50px;
  cursor: pointer;
  font-size: 1rem;
  font-family: var(--font-body);
  transition: var(--transition);
}
input[type="submit"]:hover,
button[type="submit"]:hover {
  background-color: var(--primary);
  box-shadow: 0 6px 20px rgba(15,37,72,0.35);
  transform: translateY(-2px);
}
input[type="submit"]:focus-visible,
button[type="submit"]:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

/* ---- Global accessible link style (body content links) ---- */
.blog-article-content a,
.contact-info-text a,
.footer-links a {
  text-decoration: none;
}

/* ---- Animations ---- */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}
.fade-in-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.fade-in-left.visible { opacity: 1; transform: translateX(0); }
.fade-in-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.fade-in-right.visible { opacity: 1; transform: translateX(0); }

/* =============================================
   RESPONSIVE DESIGN — MOBILE-FIRST OVERHAUL
   Breakpoints:
     xl:   1200px (laptop)
     lg:   1024px (small laptop / large tablet)
     md:    968px (tablet landscape)
     sm:    768px (tablet portrait)
     xs:    600px (mobile landscape)
     xxs:   480px (mobile portrait)
     xxxs:  375px (small phone – iPhone SE)
   ============================================= */

/* ---- Global mobile foundations ---- */
html, body {
  overflow-x: hidden;
  max-width: 100vw;
  -webkit-text-size-adjust: 100%;
}
* { -webkit-tap-highlight-color: transparent; }

/* ---- 1. Large-Laptop (≤1200px) ---- */
@media (max-width: 1200px) {
  .container { padding: 0 20px; }
  .hero-content { gap: 40px; }
  .footer-grid { grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 36px; }
}

/* ---- 2. Tablet Landscape / Small Laptop (≤1024px) ---- */
@media (max-width: 1024px) {
  /* Hero */
  .hero-content { grid-template-columns: 1fr; gap: 36px; padding: 100px 0 60px; }
  .hero-text { text-align: center; }
  .hero-stats { justify-content: center; }
  .hero-actions { justify-content: center; }
  .hero-trust { justify-content: center; }
  .hero-form-panel { max-width: 560px; margin: 0 auto; }

  /* Grids */
  .why-grid { grid-template-columns: 1fr; }
  .why-image { max-height: 360px; }
  .why-image img { height: 360px; }
  .areas-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .level-cards { grid-template-columns: 1fr 1fr; gap: 20px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
}

/* ---- 3. Tablet Portrait (≤968px) ---- */
@media (max-width: 968px) {
  /* Sections */
  .section { padding: 70px 0; }

  /* Service & blog grids: 2 columns */
  .services-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .blog-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .reviews-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .team-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .level-cards { grid-template-columns: 1fr; gap: 16px; }
  .process-steps { grid-template-columns: repeat(2, 1fr); }
  .process-steps::before { display: none; }
}

/* ---- 4. Tablet Portrait Narrow (≤768px) ---- */
@media (max-width: 768px) {
  /* Base */
  html { font-size: 15px; }
  .section { padding: 60px 0; }
  .section--lg { padding: 80px 0; }
  .container { padding: 0 18px; }

  /* ---- Navigation ---- */
  /* Hide desktop links, show hamburger */
  .nav-links {
    display: none;
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--primary-dark);
    padding: 16px 20px 24px;
    flex-direction: column;
    gap: 4px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.6);
    z-index: 999;
    /* Slide-down animation */
    transform: translateY(-10px);
    opacity: 0;
    transition: transform 0.25s ease, opacity 0.25s ease;
    pointer-events: none;
  }
  .nav-links.open {
    display: flex;
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
  }
  .nav-links a {
    padding: 13px 16px;         /* min 44px effective height */
    font-size: 1rem;
    font-weight: 600;
    color: #ffffff;
    border-radius: 8px;
    width: 100%;
    display: block;
  }
  .nav-links a:hover,
  .nav-links a.active {
    background: rgba(255,255,255,0.12);
    color: #f9e087;
  }
  .nav-cta {
    margin-top: 8px !important;
    text-align: center !important;
    width: 100% !important;
    padding: 13px 20px !important;
  }
  /* Hamburger: 44×44 touch target */
  .nav-hamburger {
    display: flex;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    padding: 0;
    border-radius: 8px;
    background: rgba(255,255,255,0.08);
  }
  .nav-hamburger span { width: 22px; height: 2px; }

  /* Mobile overlay when menu is open */
  .nav-overlay {
    display: none;
    position: fixed;
    inset: 72px 0 0 0;
    background: rgba(0,0,0,0.4);
    z-index: 998;
  }
  .nav-overlay.visible { display: block; }

  /* Hero */
  .hero-content { padding: 90px 0 50px; gap: 28px; }
  .hero-title { font-size: clamp(1.6rem, 6vw, 2.4rem); }
  .hero-desc { font-size: 1rem; }
  .hero-stats { gap: 20px; flex-wrap: wrap; justify-content: center; }
  .hero-stat-num { font-size: 1.6rem; }
  .hero-stat-label { font-size: 0.72rem; }
  .hero-form-panel { padding: 28px 24px; }

  /* Typography */
  h1 { font-size: clamp(1.6rem, 5vw, 2.8rem); }
  h2 { font-size: clamp(1.4rem, 4vw, 2rem); }
  h3 { font-size: clamp(1.1rem, 3vw, 1.5rem); }

  /* Grids → single column */
  .services-grid { grid-template-columns: 1fr; gap: 16px; }
  .blog-grid { grid-template-columns: 1fr; gap: 16px; }
  .reviews-grid { grid-template-columns: 1fr; gap: 16px; }
  .team-grid { grid-template-columns: 1fr 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .areas-list { grid-template-columns: 1fr 1fr; }
  .trust-bar-inner { gap: 16px; flex-wrap: wrap; }
  .process-steps { grid-template-columns: 1fr 1fr; }

  /* Tables → horizontal scroll */
  .comparison-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: var(--radius-sm);
  }
  .comparison-table { font-size: 0.82rem; min-width: 560px; }
  .comparison-table th, .comparison-table td { padding: 10px 12px; }

  /* CTA banner */
  .cta-banner { padding: 60px 0; }
  .cta-inner h2 { font-size: 1.5rem; }
  .cta-actions { flex-direction: column; align-items: center; gap: 12px; }

  /* Contact */
  .contact-grid { grid-template-columns: 1fr; }

  /* Page hero */
  .page-hero { padding: 100px 0 50px; }
}

/* ---- 5. Mobile Landscape (≤600px) ---- */
@media (max-width: 600px) {
  html { font-size: 15px; }
  .section { padding: 50px 0; }
  .container { padding: 0 16px; }

  /* Navigation */
  .nav-links { top: 68px; }

  /* Hero */
  .hero-content { padding: 84px 0 40px; gap: 24px; }
  .hero-title { font-size: clamp(1.4rem, 7vw, 2rem); }
  .hero-desc { font-size: 0.95rem; max-width: 100%; }
  .hero-form-panel { padding: 22px 18px; border-radius: var(--radius-md); }
  .hero-form-title { font-size: 1.1rem; }
  .hero-badge { font-size: 0.72rem; padding: 5px 12px; }
  .hero-stats { gap: 16px; }
  .hero-stat-num { font-size: 1.4rem; }

  /* Hero actions: stack buttons */
  .hero-actions { flex-direction: column; align-items: stretch; gap: 10px; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .hero-trust { gap: 6px; justify-content: center; flex-wrap: wrap; }
  .hero-trust-item { font-size: 0.72rem; padding: 5px 10px; }

  /* Video bg: hide on mobile for performance */
  .hero-video-bg { display: none; }

  /* Buttons — full touch targets */
  .btn {
    min-height: 44px;
    padding: 12px 24px;
    font-size: 0.95rem;
  }

  /* Typography */
  h1 { font-size: clamp(1.4rem, 7vw, 1.9rem); }
  h2 { font-size: clamp(1.25rem, 5.5vw, 1.6rem); }
  h3 { font-size: clamp(1.05rem, 4vw, 1.3rem); }
  .section-subtitle { font-size: 0.95rem; margin-bottom: 32px; }
  .section-label { font-size: 0.72rem; }

  /* Grids */
  .team-grid { grid-template-columns: 1fr; }
  .process-steps { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .stat-box-num { font-size: 2.2rem; }
  .areas-list { grid-template-columns: 1fr 1fr; gap: 8px; }

  /* FAQ */
  .faq-question { padding: 16px 18px; font-size: 0.92rem; line-height: 1.45; }
  .faq-answer-inner { padding: 0 18px 18px; font-size: 0.9rem; }

  /* Trust bar */
  .trust-bar { padding: 14px 0; }
  .trust-item { font-size: 0.82rem; gap: 7px; }
  .trust-bar-inner { gap: 12px; }

  /* Footer */
  .footer-grid { grid-template-columns: 1fr; gap: 24px; text-align: center; }
  .footer-brand-desc { font-size: 0.88rem; }
  .footer-links { align-items: center; }
  .footer-links a { justify-content: center; }
  .footer-accreditation { justify-content: center; }
  .footer-bottom { flex-direction: column; align-items: center; text-align: center; gap: 8px; }
  .footer-bottom-links { justify-content: center; flex-wrap: wrap; gap: 12px; }

  /* Contact info items */
  .contact-info-item { flex-direction: column; align-items: flex-start; gap: 10px; }

  /* Reviews */
  .review-source { flex-wrap: wrap; }

  /* Blog card cat badge */
  .blog-card-cat { font-size: 0.68rem; }

  /* Level cards: stacked */
  .level-cards { grid-template-columns: 1fr; }

  /* CTA */
  .cta-inner h2 { font-size: 1.3rem; }
  .cta-inner p { font-size: 0.95rem; }
  .cta-actions .btn { width: 100%; justify-content: center; }

  /* Service cards */
  .service-card-body { padding: 20px; }
  .service-card-icon { width: 44px; height: 44px; font-size: 1.25rem; }

  /* Why-feature */
  .why-feature { padding: 16px; gap: 14px; }
  .why-feature-icon { width: 42px; height: 42px; font-size: 1.1rem; }

  /* Process steps */
  .process-step-num { width: 58px; height: 58px; font-size: 1.2rem; }

  /* Page-hero inner pages */
  .page-hero { padding: 88px 0 44px; }
  .page-hero h1 { font-size: clamp(1.4rem, 7vw, 2rem); }

  /* HubSpot form overrides */
  .hs-form-field { margin-bottom: 12px !important; }
  .hs-input {
    padding: 10px 12px !important;
    font-size: 16px !important; /* Prevents iOS auto-zoom */
    border-radius: 6px !important;
  }
  .hs-button {
    width: 100% !important;
    padding: 13px !important;
    font-size: 1rem !important;
    min-height: 44px !important;
  }
  .hs-form-field label { font-size: 0.9rem !important; margin-bottom: 4px !important; }
}

/* ---- 6. Mobile Portrait (≤480px) ---- */
@media (max-width: 480px) {
  html { font-size: 14px; }
  .section { padding: 44px 0; }
  .container { padding: 0 14px; }

  /* Nav height tightened on small phones */
  .nav-inner { height: 64px; }
  .nav-links { top: 64px; }

  /* Hero */
  .hero-content { padding: 76px 0 36px; gap: 20px; }
  .hero-title { font-size: clamp(1.25rem, 8vw, 1.7rem); }
  .hero-desc { font-size: 0.9rem; }
  .hero-stats { gap: 12px; }
  .hero-stat-num { font-size: 1.3rem; }
  .hero-form-panel { padding: 18px 14px; }
  .hero-form-title { font-size: 1rem; }
  .hero-badge { font-size: 0.68rem; letter-spacing: 1px; }

  /* Typography */
  h1 { font-size: clamp(1.25rem, 8vw, 1.6rem); }
  h2 { font-size: clamp(1.15rem, 6vw, 1.4rem); }
  h3 { font-size: clamp(1rem, 4.5vw, 1.2rem); }
  p { font-size: 0.93rem; line-height: 1.65; }
  .section-subtitle { font-size: 0.9rem; margin-bottom: 24px; }

  /* Grids */
  .areas-list { grid-template-columns: 1fr; gap: 7px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .stat-box-num { font-size: 2rem; }
  .stat-box-label { font-size: 0.78rem; letter-spacing: 0.5px; }
  .hero-actions { gap: 8px; }
  .hero-trust-item { font-size: 0.68rem; }

  /* Buttons */
  .btn { padding: 11px 20px; font-size: 0.9rem; min-height: 44px; }

  /* Section title */
  .section-title { font-size: clamp(1.15rem, 6vw, 1.4rem); }

  /* Why feature */
  .why-feature { padding: 14px; flex-direction: column; gap: 10px; text-align: center; }
  .why-feature-icon { margin: 0 auto; }

  /* Process */
  .process-step { padding: 20px 12px; }
  .process-step h4 { font-size: 0.95rem; }

  /* Blog card */
  .blog-card-img { height: 180px; }
  .blog-card-body { padding: 18px 16px; }
  .blog-card h3 { font-size: 1rem; }

  /* Review card */
  .review-card { padding: 20px 16px; }
  .review-text { font-size: 0.88rem; }

  /* FAQ */
  .faq-question { padding: 14px 16px; font-size: 0.9rem; }
  .faq-answer-inner { padding: 0 16px 16px; font-size: 0.88rem; }
  .faq-icon { width: 24px; height: 24px; font-size: 0.72rem; }

  /* Contact */
  .contact-form-panel { padding: 20px 16px; }
  .contact-info-icon { width: 38px; height: 38px; font-size: 1rem; }

  /* Footer */
  footer { padding: 50px 0 0; }
  .footer-heading { font-size: 0.78rem; }
  .footer-links a { font-size: 0.83rem; }
  .footer-accred-badge { font-size: 0.72rem; padding: 6px 10px; }

  /* Table */
  .comparison-table { font-size: 0.78rem; }
  .comparison-table th, .comparison-table td { padding: 8px 10px; }

  /* Page hero */
  .page-hero { padding: 80px 0 36px; }

  /* Scroll top btn */
  #scrollTop { bottom: 16px; right: 16px; width: 40px; height: 40px; font-size: 1rem; }
}

/* ---- 7. Small Phone – iPhone SE (≤375px) ---- */
@media (max-width: 375px) {
  html { font-size: 13px; }
  .container { padding: 0 12px; }
  .hero-form-panel { padding: 16px 12px; }
  .hero-title { font-size: 1.25rem; }
  .hero-desc { font-size: 0.88rem; }
  .hero-stat-num { font-size: 1.2rem; }
  h1 { font-size: 1.2rem; }
  h2 { font-size: 1.1rem; }
  .stats-grid { gap: 8px; }
  .stat-box-num { font-size: 1.8rem; }
  .trust-bar { padding: 10px 0; }
  .trust-item { font-size: 0.78rem; }
}

/* ---- 8. Large Desktop (≥1400px) ---- */
@media (min-width: 1400px) {
  .container { max-width: 1320px; }
  .container--wide { max-width: 1560px; }
  h1 { font-size: clamp(2.5rem, 4vw, 4rem); }
  h2 { font-size: clamp(2rem, 3vw, 3rem); }
  .hero-content { gap: 80px; padding: 130px 0 100px; }
}
