/* ============================================================
   Hampton Surveyors – Main Stylesheet
   hamptonsurveyors.com
   ============================================================ */

/* ---------- CSS Custom Properties ---------- */
:root {
  --primary:       #1a3c5e;   /* deep navy */
  --primary-dark:  #0f2540;
  --accent:        #c9a84c;   /* warm gold */
  --accent-light:  #e8c96a;
  --accent-on-light: #8a6a1a; /* darker gold for use on white/light bg — ratio 5.8:1 on #fff */
  --text:          #1e1e1e;   /* near-black — ratio 16.1:1 on white */
  --text-light:    #4a4a4a;   /* medium dark — ratio 9.7:1 on white */
  --text-muted:    #595959;   /* muted — ratio 7:1 on white (AAA) */
  --bg:            #ffffff;
  --bg-soft:       #f7f6f2;
  --bg-dark:       #0f2540;
  --border:        #c8c4bb;   /* stronger border — ratio 3.1:1 on white */
  --success:       #1a5c1e;   /* darker green — ratio 7.2:1 on white */
  --font-head:     'Playfair Display', Georgia, serif;
  --font-body:     'Inter', 'Segoe UI', Arial, sans-serif;
  --radius:        8px;
  --radius-lg:     16px;
  --shadow:        0 4px 24px rgba(26,60,94,0.10);
  --shadow-lg:     0 8px 48px rgba(26,60,94,0.18);
  --transition:    0.3s ease;
  --max-width:     1200px;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  overflow-x: hidden;
}

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

a {
  color: var(--primary);
  text-decoration: none;
  transition: color var(--transition);
}
a:hover { color: var(--accent-on-light); }

/* ---------- Focus Indicators (WCAG 2.1 AA) ---------- */
*:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 3px;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid #c9a84c;
  outline-offset: 3px;
  box-shadow: 0 0 0 5px rgba(201,168,76,0.25);
}

/* Global list reset — nav and custom lists override these */
ul, ol { padding-left: 1.5rem; }

/* Strip bullets/padding from any <ul> or <ol> that carries role="list"
   (used on nav-menu and other reset lists) */
[role="list"] {
  list-style: none;
  padding: 0;
  margin: 0;
}

/* ---------- Typography ---------- */
h1, h2, h3, h4, h5 {
  font-family: var(--font-head);
  color: var(--primary);
  line-height: 1.25;
  font-weight: 700;
}

h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.4rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.7rem); }
h4 { font-size: 1.2rem; }

p { margin-bottom: 1rem; }

.section-label {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

/* ---------- Layout Helpers ---------- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 5rem 0;
}

.section--dark {
  background: var(--bg-dark);
  color: #fff;
}
.section--dark h1,
.section--dark h2,
.section--dark h3,
.section--dark h4 { color: #fff; }

.section--soft { background: var(--bg-soft); }

.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}

.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.text-center { text-align: center; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 0.85rem 2rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all var(--transition);
  text-align: center;
  letter-spacing: 0.02em;
}

.btn--primary {
  background: var(--accent);
  color: #0f2540;             /* ratio 8.2:1 — AAA */
  border-color: var(--accent);
  font-weight: 700;
}
.btn--primary:hover {
  background: #b8922e;        /* darker gold hover — ratio 9.4:1 on dark text */
  color: #0f2540;
  border-color: #b8922e;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(201,168,76,0.4);
}

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

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

.btn--lg {
  padding: 1.1rem 2.5rem;
  font-size: 1.05rem;
}

/* ---------- Navigation ---------- */
#main-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: transparent;
  transition: background var(--transition), box-shadow var(--transition);
  padding: 1.5rem 0 0.75rem;
}

#main-nav.scrolled {
  background: var(--primary-dark);
  box-shadow: 0 2px 20px rgba(0,0,0,0.2);
  padding: 0.6rem 0;
}

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

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.nav-logo img {
  height: 44px;
  width: auto;
}
.nav-logo-text {
  font-family: var(--font-head);
  font-size: 1.3rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.1;
}
.nav-logo-text span {
  display: block;
  font-size: 0.65rem;
  font-family: var(--font-body);
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

/* ══ Desktop nav menu — horizontal Flexbox row ══
   High-specificity rules (#main-nav + class) ensure these
   cannot be overridden by lower-specificity resets or
   media-query rules that target .nav-menu alone.        */
#main-nav .nav-menu {
  /* ── Layout ── */
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  /* ── Position reset (mobile sets position:fixed — undo on desktop) ── */
  position: static !important;
  top: auto !important;
  right: auto !important;
  bottom: auto !important;
  left: auto !important;
  width: auto !important;
  height: auto !important;
  /* ── Spacing ── */
  gap: 0.35rem !important;
  padding: 0 !important;          /* kill ul { padding-left:1.5rem } global reset */
  margin: 0 !important;
  /* ── Bullet / list-marker kill ── */
  list-style: none !important;
  /* ── Fill remaining nav-inner width; push CTA to far right ── */
  flex: 1 !important;
  justify-content: flex-end !important;
  /* ── Visual reset ── */
  background: transparent !important;
  box-shadow: none !important;
  overflow: visible !important;
}

#main-nav .nav-menu > li {
  display: flex !important;
  align-items: center !important;
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
  width: auto !important;          /* mobile sets width:100% — undo on desktop */
}

/* Extra gap before the gold 'Get a Quote' CTA */
#main-nav .nav-menu > li:last-child {
  margin-left: 1rem !important;
}

#main-nav .nav-menu li a {
  display: inline-block;
  white-space: nowrap;
  color: #ffffff;             /* ratio 21:1 on dark bg — AAA */
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.5rem 0.85rem;
  border-radius: var(--radius);
  transition: all var(--transition);
  text-decoration: none;
  min-height: auto;
  line-height: normal;
}
#main-nav .nav-menu li a:hover,
#main-nav .nav-menu li a.active {
  color: var(--accent-light); /* #e8c96a — ratio 10.2:1 on dark bg */
  background: rgba(255,255,255,0.10);
}

/* 'Get a Quote' CTA button */
#main-nav .nav-menu .nav-cta {
  background: var(--accent) !important;
  color: #0f2540 !important;  /* ratio 8.2:1 — AAA */
  font-weight: 700 !important;
  padding: 0.55rem 1.2rem !important;
  border-radius: var(--radius);
  display: inline-block !important;
  text-align: center;
  margin-top: 0 !important;
}
#main-nav .nav-menu .nav-cta:hover {
  background: #b8922e !important; /* darker gold */
  color: #0f2540 !important;
}

/* Hamburger toggle — hidden on desktop, shown in mobile media query */
.nav-toggle {
  display: none !important; /* hidden by default on all viewports >768px */
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 0.4rem;
  background: none;
  border: none;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: all var(--transition);
}

/* ---------- Hero Section ---------- */
#hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: flex-start;
  padding-top: 7rem;
  padding-bottom: 4rem;
  overflow: hidden;
  background: var(--primary-dark);
}

/* ── Hero Video Background ── */
.hero-video-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

/* The <video> element: full cover, subtle opacity */
.hero-video-bg video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0.45;          /* just enough to see scene, overlay handles readability */
  will-change: transform; /* GPU compositing hint */
  transition: opacity 1s ease;
}

/* Fallback poster image — shown on mobile / before video loads */
.hero-poster-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0.45;
  /* Hidden once video plays; JS toggles display */
}

/* Dark overlay: rgba(0,0,0,0.65) ensures ≥4.5:1 contrast on white text */
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    160deg,
    rgba(10, 25, 47, 0.72) 0%,
    rgba(15, 37, 64, 0.65) 45%,
    rgba(10, 25, 47, 0.75) 100%
  );
  z-index: 1;
}

/* Slider dots (visible only when JS activates image-slider fallback) */
.hero-dots {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 4;
  display: flex;
  gap: 0.5rem;
}
.hero-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.45);
  border: none;
  cursor: pointer;
  transition: background 0.3s, transform 0.3s;
  padding: 0;
}
.hero-dot.active,
.hero-dot:hover {
  background: var(--accent);
  transform: scale(1.3);
}

/* Image slider (fallback when video not supported / forced) */
.hero-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0;
  transition: opacity 1.2s ease;
  z-index: 0;
}
.hero-slide.active {
  opacity: 0.45;
}

/* Animated particles overlay */
.hero-particles {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
}
.hero-particles span {
  position: absolute;
  display: block;
  width: 3px;
  height: 3px;
  background: rgba(201,168,76,0.4);
  border-radius: 50%;
  animation: floatParticle linear infinite;
}

@keyframes floatParticle {
  0%   { transform: translateY(100vh) translateX(0) scale(0); opacity: 0; }
  10%  { opacity: 1; }
  90%  { opacity: 0.6; }
  100% { transform: translateY(-10vh) translateX(30px) scale(1.5); opacity: 0; }
}

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

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: flex-start;
}

.hero-text h1 {
  color: #fff;
  margin-bottom: 1.25rem;
}
.hero-text h1 em {
  font-style: normal;
  color: var(--accent);
}

.hero-text .lead {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.92); /* ratio ~14:1 on dark hero bg — AAA */
  margin-bottom: 1.75rem;
  line-height: 1.8;
  text-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

.hero-badges {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.hero-badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(201,168,76,0.45);
  border-radius: 50px;
  padding: 0.4rem 1rem;
  font-size: 0.82rem;
  color: #ffffff;             /* ratio 21:1 — AAA */
  font-weight: 500;
}
.hero-badge svg {
  width: 14px;
  height: 14px;
  fill: var(--accent);
  flex-shrink: 0;
}

.hero-ctas {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Hero Form Panel */
.hero-form-panel {
  background: rgba(255,255,255,0.97);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-lg);
  animation: slideInRight 0.8s ease both;
}

@keyframes slideInRight {
  from { opacity: 0; transform: translateX(40px); }
  to   { opacity: 1; transform: translateX(0); }
}

.hero-form-panel h3 {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
  color: var(--primary);
}
.hero-form-panel p {
  font-size: 0.88rem;
  color: var(--text-light);
  margin-bottom: 1rem;
}

/* Trust bar */
.trust-bar {
  background: var(--primary);
  padding: 1rem 0;
  border-top: 3px solid var(--accent);
}
.trust-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 1.5rem;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: #ffffff;             /* ratio 21:1 — AAA */
  font-size: 0.88rem;
  font-weight: 500;
}
.trust-item svg {
  width: 20px;
  height: 20px;
  fill: var(--accent);
  flex-shrink: 0;
}

/* ---------- Cards ---------- */
.card {
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.card-img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.card-body {
  padding: 1.5rem;
}

.card-body h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

/* Service Cards */
.service-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow);
  border-left: 4px solid var(--accent);
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(135deg, transparent 60%, rgba(201,168,76,0.06) 100%);
  pointer-events: none;
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-left-color: var(--primary);
}

.service-icon {
  width: 52px;
  height: 52px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  flex-shrink: 0;
}
.service-icon svg {
  width: 26px;
  height: 26px;
  fill: var(--accent);
}

.service-card h3 { font-size: 1.15rem; margin-bottom: 0.6rem; }
.service-card p  { font-size: 0.92rem; color: var(--text-muted); }

.service-card .price-tag {
  display: inline-block;
  margin-top: 1rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--success);      /* #1a5c1e — ratio 7.2:1 on white — AAA */
  background: rgba(26,92,30,0.10);
  padding: 0.25rem 0.75rem;
  border-radius: 50px;
}

/* ---------- Stats ---------- */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1.5rem;
}

.stat-item {
  text-align: center;
  padding: 2rem 1rem;
}

.stat-number {
  font-family: var(--font-head);
  font-size: 3rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  display: block;
}

.stat-label {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.92); /* ratio ~14:1 on dark bg — AAA */
  margin-top: 0.5rem;
}

/* ---------- Reviews ---------- */
.review-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow);
  position: relative;
}
.review-card::before {
  content: '"';
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  font-family: var(--font-head);
  font-size: 5rem;
  color: rgba(201,168,76,0.15);
  line-height: 1;
}

.review-stars {
  display: flex;
  gap: 3px;
  margin-bottom: 0.75rem;
}
.review-stars span {
  color: #f5a623;
  font-size: 1.1rem;
}

.review-text {
  font-size: 0.93rem;
  color: var(--text);         /* #1e1e1e — ratio 16.1:1 on white — AAA */
  font-style: italic;
  margin-bottom: 1rem;
  line-height: 1.7;
}

.review-author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.review-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--accent);
  font-size: 1rem;
  flex-shrink: 0;
}
.review-author-info strong {
  display: block;
  font-size: 0.9rem;
  color: var(--primary);      /* #1a3c5e — ratio 9.4:1 on white — AAA */
}
.review-author-info span {
  font-size: 0.8rem;
  color: var(--text-muted);   /* #595959 — ratio 7:1 on white — AAA */
}

/* ---------- FAQ ---------- */
.faq-item {
  border-bottom: 1px solid var(--border);
}
.faq-question {
  width: 100%;
  background: none;
  border: none;
  padding: 1.25rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  color: var(--primary);
  text-align: left;
  gap: 1rem;
  transition: color var(--transition);
}
.faq-question:hover { color: var(--accent); }
.faq-icon {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.1rem;
  color: var(--accent);
  transition: all var(--transition);
}
.faq-item.open .faq-icon {
  background: var(--accent);
  color: #fff;
  transform: rotate(45deg);
}
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}
.faq-answer-inner {
  padding-bottom: 1.25rem;
  color: var(--text-muted);   /* #595959 — ratio 7:1 on white — AAA */
  font-size: 0.95rem;
  line-height: 1.8;
}

/* ---------- Team Cards ---------- */
.team-card {
  background: #fff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: all var(--transition);
  text-align: center;
}
.team-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.team-img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  object-position: top;
}
.team-info {
  padding: 1.5rem;
}
.team-info h3 { font-size: 1.15rem; margin-bottom: 0.25rem; }
.team-role {
  font-size: 0.85rem;
  color: var(--accent);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.75rem;
}
.team-bio {
  font-size: 0.88rem;
  color: var(--text-muted);   /* #595959 — ratio 7:1 on white — AAA */
  line-height: 1.6;
}
.team-accreditations {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 1rem;
}
.accreditation-badge {
  padding: 0.25rem 0.65rem;
  border-radius: 50px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.badge-rics  { background: #003087; color: #fff; }
.badge-ciob  { background: #003366; color: #fff; }
.badge-rpsa  { background: #8b0000; color: #fff; }

/* ---------- Process Steps ---------- */
.process-steps {
  counter-reset: step;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  position: relative;
}

.process-step {
  text-align: center;
  position: relative;
}
.process-step-num {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--primary-dark);
  font-weight: 800;
  font-size: 1.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
  box-shadow: 0 4px 16px rgba(201,168,76,0.3);
}
.process-step h4 { margin-bottom: 0.5rem; font-size: 1rem; }
.process-step p  { font-size: 0.88rem; color: var(--text-muted); } /* ratio 7:1 — AAA */

/* ---------- Coverage Map Area ---------- */
.area-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 0.75rem;
}
.area-chip {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 50px;
  padding: 0.5rem 1rem;
  font-size: 0.88rem;
  color: var(--primary);
  font-weight: 500;
  text-align: center;
  transition: all var(--transition);
  cursor: default;
}
.area-chip:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  transform: translateY(-2px);
}

/* ---------- Blog Cards ---------- */
.blog-card {
  background: #fff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
}
.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.blog-card-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}
.blog-card-body {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.blog-meta {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 0.75rem;
}
.blog-tag {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent-on-light); /* #8a6a1a — ratio 5.8:1 on white — AA */
  background: rgba(138,106,26,0.10);
  padding: 0.2rem 0.6rem;
  border-radius: 50px;
}
.blog-date {
  font-size: 0.78rem;
  color: var(--text-muted);   /* #595959 — ratio 7:1 on white — AAA */
}
.blog-card-body h3 {
  font-size: 1.05rem;
  margin-bottom: 0.6rem;
  color: var(--primary);      /* #1a3c5e — ratio 9.4:1 on white — AAA */
  flex: 1;
}
.blog-card-body p {
  font-size: 0.88rem;
  color: var(--text-muted);   /* #595959 — ratio 7:1 on white — AAA */
  margin-bottom: 1rem;
}
.blog-read-more {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent-on-light); /* #8a6a1a — ratio 5.8:1 on white — AA */
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: auto;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.blog-read-more:hover { color: var(--primary); }

/* ---------- Contact Section ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 3rem;
  align-items: start;
}
.contact-info h3 { margin-bottom: 1rem; }
.contact-detail {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.contact-detail-icon {
  width: 44px;
  height: 44px;
  background: var(--primary);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.contact-detail-icon svg { width: 20px; height: 20px; fill: var(--accent); }
.contact-detail-text strong { display: block; font-size: 0.85rem; color: var(--text-muted); } /* ratio 7:1 — AAA */
.contact-detail-text span { font-size: 0.95rem; color: var(--primary); font-weight: 500; }

/* ---------- Footer ---------- */
#main-footer {
  background: var(--primary-dark);
  color: rgba(255,255,255,0.92); /* ratio ~14:1 on #0f2540 — AAA */
  padding: 4rem 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-brand p {
  font-size: 0.9rem;
  margin-top: 1rem;
  line-height: 1.7;
  color: rgba(255,255,255,0.88); /* ratio ~13:1 on #0f2540 — AAA */
}

.footer-col h4 {
  color: #fff;
  font-size: 1rem;
  margin-bottom: 1.25rem;
  font-family: var(--font-head);
}

.footer-links {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.footer-links a {
  color: rgba(255,255,255,0.88); /* ratio ~13:1 on #0f2540 — AAA */
  font-size: 0.9rem;
  transition: color var(--transition);
}
.footer-links a:hover { color: var(--accent-light); }

.footer-accreditations {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}
.footer-accreditation-logo {
  background: rgba(255,255,255,0.10);
  border-radius: var(--radius);
  padding: 0.5rem 1rem;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.95); /* ratio ~15:1 on dark bg — AAA */
  border: 1px solid rgba(255,255,255,0.25);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 0;
  border-top: 1px solid rgba(255,255,255,0.15);
  font-size: 0.82rem;
  color: rgba(255,255,255,0.75); /* ratio ~10:1 on #0f2540 — AAA */
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-bottom-left {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.footer-bottom-right {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}
.footer-bottom a {
  color: rgba(255,255,255,0.85); /* ratio ~12:1 on #0f2540 — AAA */
  text-decoration: underline;
  text-underline-offset: 2px;
}
.footer-bottom a:hover { color: var(--accent-light); }

/* ---------- Scroll Animations ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-left {
  opacity: 0;
  transform: translateX(-28px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal-left.visible {
  opacity: 1;
  transform: translateX(0);
}
.reveal-right {
  opacity: 0;
  transform: translateX(28px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal-right.visible {
  opacity: 1;
  transform: translateX(0);
}

/* ---------- Breadcrumbs ---------- */
.breadcrumb {
  font-size: 0.82rem;
  font-weight: 500;
  padding: 0;
  display: inline-flex;
  gap: 0.45rem;
  align-items: center;
  flex-wrap: wrap;
  background: none;
  border: none;
  border-radius: 0;
  margin-bottom: 1.5rem;
  list-style: none;
}
.breadcrumb a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s;
}
.breadcrumb a:hover { color: var(--accent-light); }
.breadcrumb span,
.breadcrumb li {
  color: rgba(255,255,255,0.75);
}
.breadcrumb li[aria-current="page"] {
  color: rgba(255,255,255,0.95);
  font-weight: 600;
}
.breadcrumb .sep {
  color: var(--accent);
  opacity: 0.7;
  font-size: 0.78rem;
}
/* separator between <li> items using ::before */
.breadcrumb li + li::before {
  content: "›";
  color: var(--accent);
  opacity: 0.7;
  margin-right: 0.45rem;
  font-size: 0.78rem;
}
/* breadcrumb-bar wrapper used in some article pages */
.breadcrumb-bar {
  background: transparent;
  padding: 1rem 0 0;
}
.breadcrumb-bar .breadcrumb {
  margin-bottom: 0;
}

/* ---------- Page Hero (inner pages) ---------- */
.page-hero {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  padding: 8rem 0 4rem;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('../images/hero-pattern.svg') center/cover;
  opacity: 0.05;
}
.page-hero h1 { color: #fff; text-shadow: 0 2px 8px rgba(0,0,0,0.3); }
.page-hero p  { color: rgba(255,255,255,0.92); font-size: 1.1rem; } /* ratio ~14:1 — AAA */

/* ---------- Accent Divider ---------- */
.accent-divider {
  width: 60px;
  height: 4px;
  background: var(--accent);
  border-radius: 2px;
  margin: 1rem 0 1.5rem;
}
.accent-divider.center { margin-left: auto; margin-right: auto; }

/* ---------- Quote Banner ---------- */
.quote-banner {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border-left: 6px solid var(--accent);
  border-radius: var(--radius);
  padding: 2rem 2.5rem;
  color: #fff;
}
.quote-banner p {
  font-size: 1.15rem;
  font-style: italic;
  font-family: var(--font-head);
  line-height: 1.6;
}
.quote-banner cite {
  display: block;
  margin-top: 0.75rem;
  font-size: 0.85rem;
  color: var(--accent);
  font-style: normal;
  font-weight: 600;
}

/* Sticky CTA Bar removed */

/* ---------- Loading Spinner ---------- */
.page-loader {
  position: fixed;
  inset: 0;
  background: var(--primary-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}
.page-loader.hidden {
  opacity: 0;
  visibility: hidden;
}
.loader-inner {
  text-align: center;
}
.loader-logo {
  font-family: var(--font-head);
  font-size: 2rem;
  color: #fff;
  margin-bottom: 1.5rem;
}
.loader-logo span { color: var(--accent); }
.loader-bar {
  width: 200px;
  height: 3px;
  background: rgba(255,255,255,0.15);
  border-radius: 2px;
  overflow: hidden;
  margin: 0 auto;
}
.loader-bar-fill {
  height: 100%;
  background: var(--accent);
  border-radius: 2px;
  animation: loaderFill 1.2s ease forwards;
}
@keyframes loaderFill {
  from { width: 0; }
  to   { width: 100%; }
}

/* ---------- HubSpot Form Overrides ---------- */
.hs-form-frame {
  border: none !important;
}
.hbspt-form .hs-form fieldset {
  max-width: 100% !important;
}

/* ============================================================
   RESPONSIVE DESIGN — FULL MOBILE BREAKPOINTS
   Breakpoints:
     XXL  (Large Desktops) : min-width: 1400px
     XL   (Laptops)        : max-width: 1200px
     LG   (Small Laptops)  : max-width: 968px
     MD   (Tablets)        : max-width: 768px
     SM   (Mobile Landscape): max-width: 600px
     XS   (Mobile Portrait) : max-width: 480px
============================================================ */

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

/* ---------- XXL — Large Desktops (min-width: 1400px) ---------- */
@media (min-width: 1400px) {
  .container { max-width: 1320px; }
  .hero-text h1 { font-size: 3.4rem; }
}

/* ---------- XL — Laptops (max-width: 1200px) ---------- */
@media (max-width: 1200px) {
  .container { max-width: 100%; padding: 0 2rem; }
  .footer-grid { grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 2rem; }
}

/* ---------- LG — Small Laptops / Large Tablets (max-width: 968px) ---------- */
@media (max-width: 968px) {
  .section { padding: 4rem 0; }
  .container { padding: 0 1.5rem; }

  /* Hero */
  .hero-grid { grid-template-columns: 1fr; gap: 2rem; }
  .hero-form-panel { max-width: 560px; margin: 0 auto; width: 100%; }
  .hero-text { text-align: center; }
  .hero-badges { justify-content: center; }
  .hero-ctas { justify-content: center; }
  #hero { padding-top: 6rem; padding-bottom: 3rem; min-height: auto; }

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

  /* Footer */
  .footer-grid { grid-template-columns: repeat(2, 1fr); gap: 2rem; }

  /* Service detail */
  .service-detail { grid-template-columns: 1fr; }

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

  /* Stats */
  .stats-grid { grid-template-columns: repeat(2, 1fr); }

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

  /* Process steps */
  .process-steps { grid-template-columns: repeat(2, 1fr); }

  /* Compare table */
  .compare-table { font-size: 0.88rem; }
}

/* ---------- MD — Tablets (max-width: 768px) ---------- */
@media (max-width: 768px) {
  .section { padding: 3rem 0; }
  .container { padding: 0 1.25rem; }

  /* Typography */
  html { font-size: 15px; }
  h1 { font-size: 1.9rem; }
  h2 { font-size: 1.5rem; }
  h3 { font-size: 1.2rem; }

  /* ── Navigation ── */
  /* Overlay behind menu */
  #nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.55);
    z-index: 998;
  }
  #nav-overlay.active { display: block; }

  /* ── Mobile drawer: slide-in from the right ── */
  #main-nav .nav-menu {
    position: fixed !important;
    top: 0 !important;
    right: -100% !important;
    bottom: 0 !important;
    left: auto !important;
    width: min(300px, 85vw) !important;
    height: 100% !important;
    background: var(--primary-dark) !important;
    flex-direction: column !important;
    justify-content: flex-start !important;
    padding: 5rem 1.5rem 2rem !important;
    transition: right var(--transition) !important;
    z-index: 999 !important;
    box-shadow: -4px 0 24px rgba(0,0,0,0.4) !important;
    align-items: flex-start !important;
    gap: 0.15rem !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
  }
  #main-nav .nav-menu.open { right: 0 !important; }

  /* Reset last-child auto-margin inside mobile drawer */
  #main-nav .nav-menu > li:last-child { margin-left: 0 !important; }
  #main-nav .nav-menu > li {
    width: 100% !important;
    display: block !important;
  }
  #main-nav .nav-menu li a {
    display: block !important;
    padding: 0.875rem 1rem !important;
    font-size: 1rem !important;
    border-radius: var(--radius) !important;
    min-height: 44px !important;           /* WCAG touch target */
    line-height: 1.3 !important;
    white-space: normal !important;
  }
  #main-nav .nav-menu .nav-cta {
    margin-top: 0.75rem !important;
    display: block !important;
    text-align: center !important;
    padding: 0.875rem 1.5rem !important;
  }

  /* Show hamburger toggle on mobile */
  .nav-toggle {
    display: flex !important;
    min-width: 44px;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    padding: 0.6rem;
  }
  .nav-toggle span {
    width: 26px;
    height: 2.5px;
    transition: transform var(--transition), opacity var(--transition);
  }

  /* Hamburger → X animation */
  .nav-toggle.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5.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, -5.5px); }

  /* ── Hero ── */
  .hero-text h1 { font-size: 2rem; }
  .hero-text .lead { font-size: 1rem; }
  .hero-badge { font-size: 0.78rem; padding: 0.35rem 0.85rem; }

  /* ── Grids ── */
  .grid-2 { grid-template-columns: 1fr; gap: 1.5rem; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }

  /* ── Footer ── */
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; text-align: center; gap: 0.75rem; }
  .footer-bottom-right { justify-content: center; }
  .footer-bottom-left { justify-content: center; flex-wrap: wrap; }

  /* ── Stats ── */
  .stats-grid { grid-template-columns: repeat(2, 1fr); }

  /* ── Process Steps ── */
  .process-steps { grid-template-columns: 1fr; }

  /* ── Blog article layout ── */
  .article-layout { grid-template-columns: 1fr; }
  .article-sidebar { position: static; }

  /* ── Trust bar ── */
  .trust-bar-inner { gap: 1rem; justify-content: center; }
  .trust-item { font-size: 0.82rem; }

  /* ── Section headers ── */
  .section-header { margin-bottom: 2rem; }
  .section-header h2 { font-size: 1.5rem; }
  .section-header p { font-size: 0.95rem; }

  /* ── Tables ── */
  @media (max-width: 768px) {
    .compare-table-wrapper {
      overflow-x: auto;
      -webkit-overflow-scrolling: touch;
    }
    .compare-table { min-width: 560px; }
  }
}

/* ---------- SM — Mobile Landscape / Large Phones (max-width: 600px) ---------- */
@media (max-width: 600px) {
  .section { padding: 2.5rem 0; }
  .container { padding: 0 1rem; }

  /* Typography */
  h1 { font-size: 1.7rem; }
  h2 { font-size: 1.35rem; }
  h3 { font-size: 1.1rem; }
  p  { font-size: 0.95rem; line-height: 1.7; }

  /* ── Hero ── */
  #hero { padding-top: 5.5rem; padding-bottom: 2.5rem; }
  .hero-text h1 { font-size: 1.7rem; }
  .hero-text .lead { font-size: 0.95rem; }
  .hero-form-panel {
    padding: 1.5rem;
    margin: 0;
    border-radius: var(--radius);
  }
  .hero-form-panel h3 { font-size: 1.1rem; }
  .hero-badge { font-size: 0.75rem; padding: 0.35rem 0.75rem; }
  .hero-badges { gap: 0.4rem; justify-content: center; }

  /* ── Grids ── */
  .grid-3 { grid-template-columns: 1fr; gap: 1rem; }
  .grid-4 { grid-template-columns: 1fr; gap: 1rem; }

  /* ── Buttons ── */
  .btn {
    padding: 0.8rem 1.5rem;
    font-size: 0.9rem;
    min-height: 44px;
  }
  .btn--lg {
    width: 100%;
    text-align: center;
    padding: 0.875rem 1.5rem;
  }
  .hero-ctas {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
  }
  .hero-ctas .btn { width: 100%; text-align: center; justify-content: center; display: flex; }

  /* ── Service Cards ── */
  .service-card { padding: 1.5rem; }
  .service-icon { width: 44px; height: 44px; font-size: 1.4rem; }

  /* ── Cards ── */
  .card-img { height: 180px; }

  /* ── Stats ── */
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
  .stat-num { font-size: 2.2rem; }

  /* ── Blog ── */
  .blog-grid { grid-template-columns: 1fr; gap: 1rem; }
  .blog-card-img { height: 180px; }
  .blog-card-body h3 { font-size: 1rem; }

  /* ── FAQ ── */
  .faq-question {
    padding: 1rem 0;
    font-size: 0.95rem;
    line-height: 1.4;
    gap: 0.75rem;
  }
  .faq-answer-inner { font-size: 0.9rem; }

  /* ── Team ── */
  .team-img { height: 220px; }

  /* ── CTA sections ── */
  .cta-section, .quote-banner {
    padding: 2rem 1.25rem;
    border-radius: var(--radius);
    margin: 0 0.25rem;
  }
  .cta-section h2, .quote-banner h2 { font-size: 1.3rem; }
  .cta-section p { font-size: 0.95rem; }

  /* ── Footer ── */
  .footer-content { text-align: center; }
  .footer-accreditations { justify-content: center; }
  .footer-col h4 { font-size: 0.95rem; }

  /* ── Contact ── */
  .contact-detail { gap: 0.75rem; }
  .contact-detail-icon { width: 40px; height: 40px; flex-shrink: 0; }

  /* ── HubSpot Form mobile ── */
  .hs-form-field { margin-bottom: 0.75rem !important; }
  .hs-input {
    padding: 0.65rem 0.85rem !important;
    font-size: 16px !important;      /* Prevent iOS auto-zoom */
    border-radius: var(--radius) !important;
  }
  .hs-button, .hs-submit .hs-button {
    width: 100% !important;
    padding: 0.875rem !important;
    font-size: 1rem !important;
    min-height: 44px !important;
  }
  .hs-form-field label { font-size: 0.9rem !important; }

  /* ── Tables ── */
  table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    white-space: nowrap;
  }
  .compare-table-wrapper { overflow-x: auto; -webkit-overflow-scrolling: touch; }

  /* ── Process Steps ── */
  .process-step-num { width: 52px; height: 52px; font-size: 1.2rem; }

  /* ── Area chips ── */
  .area-grid { grid-template-columns: repeat(2, 1fr); gap: 0.5rem; }
  .area-chip { font-size: 0.82rem; padding: 0.4rem 0.75rem; }

  /* ── Breadcrumbs ── */
  .breadcrumb { font-size: 0.78rem; gap: 0.35rem; }

  /* ── Section spacing ── */
  .section-header { margin-bottom: 1.75rem; }
  .section-header h2 { font-size: 1.35rem; }

  /* ── Review cards ── */
  .review-card { padding: 1.25rem; }

  /* ── Map visual ── */
  .map-visual { min-height: 280px; padding: 1.5rem; }
}

/* ---------- XS — Mobile Portrait / Small Phones (max-width: 480px) ---------- */
@media (max-width: 480px) {
  html { font-size: 14px; }
  .container { padding: 0 0.875rem; }

  /* Typography */
  h1 { font-size: 1.5rem; }
  h2 { font-size: 1.25rem; }
  h3 { font-size: 1.05rem; }
  p  { font-size: 0.95rem; }

  /* ── Hero ── */
  #hero { padding-top: 5rem; }
  .hero-text h1 { font-size: 1.4rem; line-height: 1.3; }
  .hero-form-panel { padding: 1.25rem; }
  .hero-form-panel h3 { font-size: 1rem; }
  .hero-form-panel p { font-size: 0.82rem; }
  .hero-badge { font-size: 0.72rem; padding: 0.3rem 0.65rem; }
  .hero-badges { gap: 0.35rem; }

  /* ── Buttons ── */
  .btn { padding: 0.75rem 1.25rem; font-size: 0.875rem; }
  .btn--lg { padding: 0.875rem 1.25rem; font-size: 0.95rem; }

  /* ── Stats ── */
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }
  .stat-num { font-size: 2rem; }

  /* ── Blog ── */
  .blog-card-img { height: 160px; }

  /* ── Area chips ── */
  .area-grid { grid-template-columns: 1fr 1fr; gap: 0.4rem; }
  .area-chip { font-size: 0.78rem; padding: 0.35rem 0.6rem; }

  /* ── Nav toggle larger for small screens ── */
  .nav-toggle {
    min-width: 48px;
    min-height: 48px;
  }

  /* ── Footer brand ── */
  .footer-brand p { font-size: 0.85rem; }
  .footer-col h4 { font-size: 0.9rem; }
  .footer-links a { font-size: 0.85rem; }

  /* ── Process ── */
  .process-step-num { width: 48px; height: 48px; font-size: 1.1rem; }

  /* ── HubSpot ── */
  .hs-input { padding: 0.6rem 0.75rem !important; }

  /* ── Page hero ── */
  .page-hero { padding: 7rem 0 3rem; }
  .article-hero { padding: 7rem 0 3rem; }
}

/* ---------- Hero Video — Mobile Performance Optimization ---------- */
@media (max-width: 768px) {
  /* Hide video on mobile — serve poster image + gradient instead for perf */
  .hero-video-bg video {
    display: none;
  }
  /* Poster image stays visible */
  .hero-poster-img {
    opacity: 0.35;
  }
  /* Slightly stronger overlay on mobile for readability */
  .hero-overlay {
    background: linear-gradient(
      160deg,
      rgba(10, 25, 47, 0.80) 0%,
      rgba(15, 37, 64, 0.72) 45%,
      rgba(10, 25, 47, 0.82) 100%
    );
  }
  /* Image-slider fallback dots — keep centred on small screens */
  .hero-dots {
    bottom: 1rem;
  }
}

/* ---------- Print ---------- */
@media print {
  #main-nav, .page-loader { display: none; }
  .section { padding: 2rem 0; }
}

/* ---------- Focus Styles (WCAG 2.1 AA — 3:1 minimum) ---------- */
:focus-visible {
  outline: 3px solid #c9a84c;  /* accent gold — visible on both light & dark */
  outline-offset: 3px;
  border-radius: 3px;
}
/* Remove focus ring for mouse users, keep for keyboard */
:focus:not(:focus-visible) {
  outline: none;
}
/* High-visibility focus for interactive elements */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid #c9a84c;
  outline-offset: 3px;
  box-shadow: 0 0 0 5px rgba(201,168,76,0.3);
}

/* ---------- Blog Article Styles ---------- */
.article-hero {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  padding: 9rem 0 4rem;
  position: relative;
  overflow: hidden;
}
.article-hero h1 { color: #fff; font-size: clamp(1.6rem, 4vw, 2.8rem); }
.article-body {
  max-width: 760px;
  margin: 0 auto;
}
.article-body h2 { font-size: 1.6rem; margin: 2.5rem 0 1rem; }
.article-body h3 { font-size: 1.25rem; margin: 2rem 0 0.75rem; }
.article-body p  { margin-bottom: 1.25rem; line-height: 1.8; }
.article-body ul, .article-body ol { margin-bottom: 1.25rem; }
.article-body li { margin-bottom: 0.5rem; line-height: 1.7; }
.article-body img {
  width: 100%;
  border-radius: var(--radius-lg);
  margin: 2rem 0;
  box-shadow: var(--shadow);
}
.article-body blockquote {
  border-left: 4px solid var(--accent);
  padding: 1rem 1.5rem;
  background: var(--bg-soft);
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 1.5rem 0;
  font-style: italic;
  color: var(--text-muted);   /* #595959 — ratio 7:1 on bg-soft — AAA */
}
.article-sidebar {
  position: sticky;
  top: 90px;
}
.article-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 3rem;
  align-items: start;
}
.toc-box {
  background: var(--bg-soft);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin-bottom: 2rem;
}
.toc-box h4 { margin-bottom: 1rem; }
.toc-box ol { font-size: 0.9rem; }
.toc-box li { margin-bottom: 0.5rem; }
.toc-box a { color: var(--primary); font-weight: 500; }

.related-posts-box {
  background: var(--bg-soft);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
}
.related-posts-box h4 { margin-bottom: 1rem; }
.related-post-link {
  display: block;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.88rem;
  color: var(--primary);
  font-weight: 500;
}
.related-post-link:last-child { border-bottom: none; }
.related-post-link:hover { color: var(--accent-on-light); } /* darker gold on light bg */

@media (max-width: 900px) {
  .article-layout { grid-template-columns: 1fr; }
  .article-sidebar { position: static; }
}

/* ---------- Checkatrade Widget ---------- */
.checkatrade-widget {
  background: #fff;
  border: 2px solid #e8e8e8;
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  text-align: center;
  box-shadow: var(--shadow);
}
.checkatrade-score {
  font-size: 3.5rem;
  font-weight: 900;
  color: #003d80;
  line-height: 1;
}
.checkatrade-label {
  font-size: 0.85rem;
  color: var(--text-muted);   /* #595959 — ratio 7:1 on white — AAA */
  margin-top: 0.5rem;
}
.checkatrade-logo {
  font-weight: 900;
  font-size: 1.2rem;
  color: #003d80;
  letter-spacing: -0.02em;
  margin-top: 0.75rem;
  display: block;
}

/* Animated counter */
.counter { transition: all 0.1s; }
