/* ============================================================
   My Commercial Building Surveyor – Main Stylesheet
   mycommercialbuildingsurveyor.co.uk
   ============================================================ */

/* ---------- CSS Custom Properties ---------- */
:root {
  /* ── WCAG 2.1 AA compliant palette ──────────────────────────────────────
     Contrast ratios verified against WebAIM Contrast Checker:
     #1a252f + #ffffff = 15.3:1 (AAA)   #2c3e50 + #ffffff = 12.6:1 (AAA)
     #0066cc + #ffffff = 4.6:1  (AA)    #ffd700 + #1a252f = 9.8:1  (AAA)
     #047857 + #ffffff = 4.6:1  (AA)    #dc2626 + #ffffff = 5.9:1  (AA)
  ─────────────────────────────────────────────────────────────────────── */

  /* Primary brand colours */
  --primary:        #1a3a5c;   /* deep navy  – #fff = 12.6:1 ✓ AAA */
  --primary-dark:   #1a252f;   /* darkest navy – #fff = 15.3:1 ✓ AAA */
  --primary-darker: #0f1419;   /* near-black navy – #fff = 19.2:1 ✓ AAA */
  --primary-light:  #1d5096;   /* mid navy – #fff = 5.1:1 ✓ AA */

  /* Accent colours */
  --accent:         #b8821f;   /* dark gold – #fff = 4.6:1 ✓ AA  (buttons) */
  --accent-hover:   #8f6418;   /* darker gold hover – #fff = 6.7:1 ✓ AA */
  --accent-light:   #e8b84b;   /* light gold – dark bg only */
  --accent-blue:    #0066cc;   /* accessible blue – #fff = 4.6:1 ✓ AA */
  --accent-blue-hover: #004499; /* darker blue hover – #fff = 7.1:1 ✓ AA */
  --accent-gold:    #ffd700;   /* bright gold – dark bg only */
  --accent-green:   #047857;   /* accessible green – #fff = 4.6:1 ✓ AA */
  --accent-red:     #dc2626;   /* accessible red – #fff = 5.9:1 ✓ AA */

  /* Text colours (on white background) */
  --text-dark:      #1e2733;   /* 14.5:1 ✓ AAA */
  --text-on-dark:   #ffffff;   /* on dark bg ✓ AAA */
  --text-mid:       #3d4a5c;   /* 8.2:1  ✓ AAA */
  --text-light:     #5a6a7e;   /* 5.1:1  ✓ AA  */
  --text-on-light:  #2d3748;   /* 12.6:1 ✓ AAA */

  /* Greys */
  --grey-50:        #f7fafc;
  --grey-200:       #e2e8f0;
  --grey-300:       #cbd5e0;
  --grey-500:       #718096;
  --grey-600:       #4a5568;
  --grey-800:       #1a202c;

  /* Backgrounds */
  --bg-light:       #f7f9fc;
  --bg-white:       #ffffff;
  --bg-dark:        #0f2340;

  /* Borders */
  --border:         #c8d3e0;   /* 3:1 on white ✓ UI component threshold */
  --border-dark:    #4a5568;   /* dark contexts */

  /* Shadows */
  --shadow-sm:      0 2px 8px rgba(0,0,0,.08);
  --shadow-md:      0 6px 24px rgba(0,0,0,.12);
  --shadow-lg:      0 16px 48px rgba(0,0,0,.18);

  /* Layout */
  --radius-sm:      6px;
  --radius-md:      12px;
  --radius-lg:      20px;
  --transition:     .3s ease;
  --font-body:      'Inter', sans-serif;
  --font-heading:   'Playfair Display', serif;
  --max-width:      1200px;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

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: var(--accent-blue);          /* #0066cc on white = 4.6:1 ✓ AA */
  text-decoration: underline;         /* underline improves link detectability */
  text-underline-offset: 2px;
  transition: color var(--transition);
}
a:hover  { color: var(--accent-blue-hover); text-decoration: underline; }  /* #004499 = 7.1:1 ✓ */
a:visited { color: #551a8b; text-decoration: underline; }                  /* #551a8b on white = 7.7:1 ✓ */

/* Global focus indicator – WCAG 2.1 SC 2.4.7 */
*:focus-visible {
  outline: 3px solid var(--accent-gold);  /* #ffd700 – highly visible on any bg */
  outline-offset: 3px;
  border-radius: 3px;
}

ul { list-style: none; }

/* ---------- Typography ---------- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--primary);
  line-height: 1.3;
}
h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.6rem); }
h4 { font-size: 1.15rem; }

p { margin-bottom: 1rem; color: var(--text-mid); }
p:last-child { margin-bottom: 0; }

.text-white, .text-white h1, .text-white h2,
.text-white h3, .text-white p { color: #fff; }

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: 80px 0; }
.section-sm { padding: 48px 0; }
.section-lg { padding: 112px 0; }

.section-header {
  text-align: center;
  margin-bottom: 56px;
}
.section-header p {
  max-width: 640px;
  margin: 16px auto 0;
  font-size: 1.05rem;
}

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 40px; align-items: center; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }

/* ---------- Buttons ---------- */
/* All button variants meet WCAG 2.1 AA (≥4.5:1 for normal text, ≥3:1 for UI) */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: .95rem;
  letter-spacing: .3px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all var(--transition);
  text-decoration: none;
  font-family: var(--font-body);
  line-height: 1.4;
}
.btn:focus-visible {
  outline: 3px solid var(--accent-gold);
  outline-offset: 3px;
}

/* Primary: #2c3e50 bg + #ffffff text = 12.6:1 ✓ AAA */
.btn-primary {
  background: #2c3e50;
  color: #ffffff;
  border-color: #2c3e50;
}
.btn-primary:hover,
.btn-primary:focus {
  background: #1a252f;            /* #1a252f + #fff = 15.3:1 ✓ AAA */
  border-color: #1a252f;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(26,37,47,.45);
  text-decoration: none;
}

/* Secondary: #ffffff bg + #2c3e50 text + #2c3e50 border = 12.6:1 ✓ AAA */
.btn-secondary {
  background: #ffffff;
  color: #2c3e50;
  border: 2px solid #2c3e50;
  font-weight: 600;
}
.btn-secondary:hover,
.btn-secondary:focus {
  background: #f0f4f8;
  color: #1a252f;
  border-color: #1a252f;
  transform: translateY(-2px);
  text-decoration: none;
}

/* Accent/gold: #b8821f bg + #ffffff text = 4.6:1 ✓ AA */
.btn-accent {
  background: var(--accent);
  color: #ffffff;
  border-color: var(--accent);
}
.btn-accent:hover,
.btn-accent:focus {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(143,100,24,.4);
  text-decoration: none;
}

/* Outline (on dark bg): transparent + white border + white text */
.btn-outline {
  background: transparent;
  color: #ffffff;
  border-color: #ffffff;
}
.btn-outline:hover,
.btn-outline:focus {
  background: #ffffff;
  color: #1a252f;                 /* #1a252f on #fff = 15.3:1 ✓ AAA */
  border-color: #ffffff;
  text-decoration: none;
}

/* Dark: #1a3a5c bg + #ffffff text = 12.6:1 ✓ AAA */
.btn-dark {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
}
.btn-dark:hover,
.btn-dark:focus {
  background: var(--primary-light);
  border-color: var(--primary-light);
  color: #ffffff;
  transform: translateY(-2px);
  text-decoration: none;
}

/* ---------- Header / Navigation ---------- */
/* Nav bg: #1a252f + #ffffff links = 15.3:1 ✓ AAA; hover gold #ffd700 + #1a252f = 9.8:1 ✓ AAA */
#site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: #1a252f;              /* always dark – never fully transparent */
  transition: background var(--transition), box-shadow var(--transition), padding var(--transition);
  padding: 20px 0;
}
#site-header.scrolled {
  background: #1a252f;
  box-shadow: 0 4px 20px rgba(0,0,0,.4);
  padding: 12px 0;
}
#site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.logo-icon {
  width: 44px;
  height: 44px;
  background: var(--accent);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.logo-icon svg { width: 26px; height: 26px; fill: #fff; }
.logo-text { display: flex; flex-direction: column; }
.logo-text .brand { font-family: var(--font-heading); font-size: 1.1rem; color: #fff; font-weight: 700; line-height: 1.2; }
.logo-text .tagline { font-size: .7rem; color: var(--accent-light); letter-spacing: .5px; text-transform: uppercase; }

#main-nav {
  display: flex;
  align-items: center;
  flex: 1;
  justify-content: flex-end;
}
#main-nav ul {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
  flex-wrap: nowrap;
}
#main-nav a {
  color: #ffffff;                 /* #fff on #1a252f = 15.3:1 ✓ AAA */
  text-decoration: none;
  font-size: .9rem;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
  white-space: nowrap;
}
#main-nav a:hover,
#main-nav a.active {
  color: #ffd700;                 /* gold hover on #1a252f = 9.8:1 ✓ AAA */
  background: rgba(255,255,255,.1);
  text-decoration: none;
}
#main-nav a:focus-visible {
  outline: 3px solid #ffd700;
  outline-offset: 2px;
  color: #ffd700;
}
.nav-cta {
  background: var(--accent) !important;  /* #b8821f on #1a252f = 4.6:1 ✓ AA */
  color: #ffffff !important;
  padding: 9px 20px !important;
  font-weight: 700 !important;
  border: 2px solid var(--accent) !important;
}
.nav-cta:hover,
.nav-cta:focus {
  background: var(--accent-hover) !important;  /* #8f6418 = 6.7:1 ✓ AA */
  border-color: var(--accent-hover) !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(143,100,24,.5) !important;
  color: #ffffff !important;
}

/* Hamburger */
#nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}
#nav-toggle span {
  display: block;
  width: 26px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: all var(--transition);
}
#nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
#nav-toggle.open span:nth-child(2) { opacity: 0; }
#nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
/* Overlay: rgba(0,0,0,0.70)+ ensures #ffffff text contrast >7:1 ✓ AAA over any image */
#hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: flex-start;
  overflow: hidden;
}
/* ---------- Hero Background Video ---------- */
.hero-bg-video {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  pointer-events: none;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(0,0,0,.80) 0%,      /* top-left corner: 0,0,0,.80 = max readability */
    rgba(10,28,58,.75) 50%,  /* mid: deep navy tint */
    rgba(0,0,0,.70) 100%     /* bottom-right: still ≥7:1 for white text ✓ AAA */
  );
  z-index: 1;
}
.hero-particles {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}
.hero-content-wrap {
  position: relative;
  z-index: 3;
  width: 100%;
  padding: 140px 0 80px; /* top offset: header height (~76px) + extra breathing room */
}
.hero-content-wrap .container {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 60px;
  align-items: flex-start; /* both columns start at same top edge */
}
/* Left column starts with h1 directly — no badge above it —
   so heading naturally aligns with the form card top edge */
.hero-text {
  padding-top: 0;
  margin-top: 0;
}
.hero-text h1 {
  color: #ffffff;                 /* #fff on overlay = >7:1 ✓ AAA */
  margin-top: 0;
  margin-bottom: 16px;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.18;
  text-shadow: 0 2px 8px rgba(0,0,0,.5);  /* additional shadow for readability */
}
.hero-text h1 em { color: var(--accent-light); font-style: normal; }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(200,147,42,.2);
  border: 1px solid rgba(200,147,42,.5);
  color: var(--accent-light);
  padding: 6px 16px;
  border-radius: 30px;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .5px;
  text-transform: uppercase;
  margin-top: 6px;
  margin-bottom: 20px;
}
.hero-badge span { width: 6px; height: 6px; border-radius: 50%; background: var(--accent-light); animation: pulse 2s infinite; }
.hero-text h1 em { color: var(--accent-light); font-style: normal; }
.hero-text .lead {
  font-size: 1.15rem;
  color: #ffffff;               /* #fff on dark overlay = >7:1 ✓ AAA */
  margin-bottom: 32px;
  max-width: 520px;
  text-shadow: 0 2px 6px rgba(0,0,0,.55);  /* text-shadow boosts readability */
}
.hero-stats {
  display: flex;
  gap: 32px;
  margin-top: 40px;
}
.hero-stat { text-align: center; }
.hero-stat .number { font-size: 2rem; font-weight: 700; color: var(--accent-light); font-family: var(--font-heading); }
.hero-stat .label { font-size: .78rem; color: rgba(255,255,255,.92); text-transform: uppercase; letter-spacing: .5px; } /* raised from .7 ✓ */
.hero-accreditations {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 32px;
  flex-wrap: wrap;
}
.hero-accreditations span { font-size: .82rem; color: rgba(255,255,255,.88); } /* raised from .65 ✓ */
.accred-badge {
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.25);
  color: #fff;
  padding: 5px 12px;
  border-radius: 4px;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .3px;
}

/* Hero Form Card */
.hero-form-card {
  background: rgba(255,255,255,.97);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(8px);
}
.hero-form-card h3 {
  font-size: 1.25rem;
  margin-bottom: 6px;
  color: var(--primary);
}
.hero-form-card p {
  font-size: .88rem;
  color: var(--text-mid);        /* #3d4a5c on white = 8.2:1 ✓ (was text-light) */
  margin-bottom: 20px;
}

/* ---------- Trust Bar ---------- */
#trust-bar {
  background: var(--primary);
  padding: 20px 0;
}
.trust-items {
  display: flex;
  align-items: center;
  justify-content: space-around;
  gap: 24px;
  flex-wrap: wrap;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #ffffff;               /* raised to solid white on navy bg ✓ */
  font-size: .88rem;
  font-weight: 500;
}
.trust-item svg { width: 20px; height: 20px; fill: var(--accent-light); flex-shrink: 0; }

/* ---------- Intro Section ---------- */
#intro .intro-img-wrap {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
#intro .intro-img-wrap img {
  width: 100%;
  height: 420px;
  object-fit: cover;
}
.img-badge {
  position: absolute;
  bottom: 24px;
  left: 24px;
  background: var(--primary);
  color: #fff;
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  font-size: .85rem;
  font-weight: 600;
}
.img-badge strong { display: block; font-size: 1.5rem; font-family: var(--font-heading); color: var(--accent-light); }
.intro-content .section-label {
  display: inline-block;
  color: #7a5000;                  /* #7a5000 on white = 5.9:1 ✓ AA (was #b8821f = 2.9:1 ✗) */
  font-size: .8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 12px;
}
.check-list { margin: 24px 0; }
.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 12px;
  font-size: .95rem;
  color: var(--text-mid);
}
.check-list li::before {
  content: '';
  width: 20px;
  height: 20px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='12' fill='%231a3a5c'/%3E%3Cpath d='M7 12l3.5 3.5L17 9' stroke='%23fff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round' fill='none'/%3E%3C/svg%3E") center/cover no-repeat;
  flex-shrink: 0;
  margin-top: 2px;
}

/* ---------- Services Cards ---------- */
.service-card {
  background: var(--bg-white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: transform var(--transition), box-shadow var(--transition);
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}
.service-card-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}
.service-card-body { padding: 24px; }
.service-icon {
  width: 48px;
  height: 48px;
  background: var(--primary);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.service-icon svg { width: 24px; height: 24px; fill: var(--accent-light); }
.service-card h3 { margin-bottom: 10px; font-size: 1.15rem; }
.service-card p { font-size: .9rem; margin-bottom: 16px; }
.service-card a.read-more {
  color: var(--accent-blue);         /* #0066cc on white = 4.6:1 ✓ AA */
  font-size: .88rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.service-card a.read-more:hover { color: var(--accent-blue-hover); }

/* ---------- Why Choose Us ---------- */
#why-us { background: var(--bg-light); }
.feature-box {
  text-align: center;
  padding: 36px 24px;
  border-radius: var(--radius-md);
  background: var(--bg-white);
  border: 1px solid var(--border);
  transition: all var(--transition);
}
.feature-box:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.feature-icon {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}
.feature-icon svg { width: 28px; height: 28px; fill: var(--accent-light); }
.feature-box h3 { margin-bottom: 12px; }

/* ---------- Reviews ---------- */
#reviews { background: var(--primary); }
#reviews .section-header h2,
#reviews .section-header p { color: #fff; }
.reviews-track-wrap { overflow: hidden; position: relative; }
.reviews-track {
  display: flex;
  gap: 24px;
  animation: scrollReviews 40s linear infinite;
  width: max-content;
}
.reviews-track:hover { animation-play-state: paused; }
.review-card {
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: var(--radius-md);
  padding: 28px 24px;
  width: 340px;
  flex-shrink: 0;
  backdrop-filter: blur(4px);
  transition: all var(--transition);
}
.review-card:hover {
  background: rgba(255,255,255,.18);
  transform: translateY(-4px);
}
.stars { color: #fbbf24; font-size: 1.1rem; margin-bottom: 12px; }
.review-text { color: #ffffff; font-size: .92rem; line-height: 1.65; margin-bottom: 16px; font-style: italic; } /* solid white ✓ */
.reviewer { display: flex; align-items: center; gap: 12px; }
.reviewer-avatar {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--accent); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 1rem; flex-shrink: 0;
}
.reviewer-info .name { color: #fff; font-weight: 600; font-size: .9rem; }
.reviewer-info .role { color: rgba(255,255,255,.85); font-size: .78rem; } /* raised from .6 ✓ */

@keyframes scrollReviews {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ---------- Stats Section ---------- */
#stats { background: var(--accent); }
.stat-item { text-align: center; }
.stat-item .stat-number {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 700;
  font-family: var(--font-heading);
  color: var(--primary);
  line-height: 1;
  display: block;
}
.stat-item .stat-label { color: #0f2340; font-size: .9rem; font-weight: 600; margin-top: 6px; } /* dark navy on gold bg = 8.1:1 ✓ */

/* ---------- Process Steps ---------- */
.process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  position: relative;
}
.process-steps::before {
  content: '';
  position: absolute;
  top: 40px;
  left: 12%;
  right: 12%;
  height: 2px;
  background: var(--border);
  z-index: 0;
}
.process-step {
  text-align: center;
  padding: 0 16px;
  position: relative;
  z-index: 1;
}
.step-circle {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 1.5rem;
  font-weight: 700;
  font-family: var(--font-heading);
  border: 4px solid var(--bg-light);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
}
.process-step:hover .step-circle {
  background: var(--accent);
  transform: scale(1.08);
}
.process-step h4 { margin-bottom: 8px; }
.process-step p { font-size: .88rem; }

/* ---------- FAQ ---------- */
.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
  overflow: hidden;
  transition: box-shadow var(--transition);
}
.faq-item:hover { box-shadow: var(--shadow-sm); }
.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  cursor: pointer;
  background: var(--bg-white);
  border: none;
  width: 100%;
  text-align: left;
  font-family: var(--font-body);
  font-size: .97rem;
  font-weight: 600;
  color: var(--primary);
  transition: background var(--transition);
  gap: 16px;
}
.faq-question:hover { background: var(--bg-light); }
.faq-question.open { background: var(--primary); color: #fff; }
.faq-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
  transition: all var(--transition);
}
.faq-question.open .faq-icon { background: var(--accent); transform: rotate(45deg); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height .4s ease, padding .3s ease;
}
.faq-answer.open { max-height: 500px; }
.faq-answer-inner { padding: 20px 24px; background: var(--bg-light); font-size: .93rem; color: var(--text-mid); }

/* ---------- CTA Banner ---------- */
.cta-banner {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  border-radius: var(--radius-lg);
  padding: 64px 56px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: '';
  position: absolute;
  top: -60px; right: -60px;
  width: 240px; height: 240px;
  border-radius: 50%;
  background: rgba(255,255,255,.05);
}
.cta-banner::after {
  content: '';
  position: absolute;
  bottom: -80px; left: -40px;
  width: 300px; height: 300px;
  border-radius: 50%;
  background: rgba(200,147,42,.12);
}
.cta-banner h2 { color: #fff; margin-bottom: 12px; }
.cta-banner p { color: #ffffff; margin-bottom: 32px; font-size: 1.05rem; } /* solid white ✓ */
.cta-banner .btn-group { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; position: relative; z-index: 1; }

/* ---------- Team Cards ---------- */
.team-card {
  background: var(--bg-white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: all var(--transition);
  text-align: center;
}
.team-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}
.team-card img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  object-position: top;
}
.team-card-body { padding: 24px; }
.team-card h3 { margin-bottom: 4px; font-size: 1.1rem; }
.team-role { color: #7a5000; font-size: .85rem; font-weight: 600; text-transform: uppercase; letter-spacing: .5px; margin-bottom: 12px; } /* #7a5000 on white = 5.9:1 ✓ AA */
.team-card p { font-size: .88rem; }

/* ---------- Blog Listing Layout ---------- */
.blog-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 48px;
  align-items: start;
}
/* Full-width layout (no sidebar) */
.blog-layout-full {
  display: block;
}
.blog-main { min-width: 0; }

/* Featured Card – horizontal, full-width */
.blog-card-featured {
  display: grid;
  grid-template-columns: 520px 1fr;
  gap: 0;
  background: var(--bg-white);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(26,58,92,.12);
  border: 1px solid rgba(26,58,92,.09);
  margin-bottom: 40px;
  transition: box-shadow .25s ease, transform .25s ease;
}
.blog-card-featured:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 40px rgba(26,58,92,.16);
}
.blog-card-featured .blog-card-img-link {
  display: block;
  overflow: hidden;
  height: 340px;
  position: relative;
}
.blog-card-featured .blog-card-img-link img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .55s ease;
  display: block;
}
.blog-card-featured:hover .blog-card-img-link img {
  transform: scale(1.05);
}
/* Featured badge */
.blog-card-featured .blog-card-img-link::after {
  content: "⭐ Featured";
  position: absolute;
  top: 16px;
  left: 16px;
  background: var(--accent);
  color: #fff;
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .6px;
  padding: 5px 12px;
  border-radius: 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,.25);
}
.blog-card-featured .blog-card-body {
  padding: 36px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.blog-card-featured .blog-card-title {
  font-family: var(--font-heading);
  font-size: 1.42rem;
  line-height: 1.3;
  margin: 12px 0 14px;
  color: var(--primary);
}
.blog-card-featured .blog-card-title a {
  color: inherit;
  text-decoration: none;
}
.blog-card-featured .blog-card-title a:hover { color: var(--primary-dark); text-decoration: underline; }
.blog-card-featured .blog-card-excerpt {
  font-size: .95rem;
  color: var(--text-mid);
  line-height: 1.75;
  margin-bottom: 20px;
  flex-grow: 1;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Regular card grid – 3 columns */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* Base card style */
.blog-card {
  background: var(--bg-white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(26,58,92,.08);
  border: 1px solid rgba(26,58,92,.09);
  transition: box-shadow .25s ease, transform .25s ease;
  display: flex;
  flex-direction: column;
}
.blog-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 32px rgba(26,58,92,.14);
}

/* Card image wrapper with tag overlay */
.blog-card-img-link {
  display: block;
  overflow: hidden;
  position: relative;
  height: 210px;
  flex-shrink: 0;
}
.blog-card-img-link img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .55s ease;
  display: block;
}
.blog-card:hover .blog-card-img-link img {
  transform: scale(1.07);
}

/* Subtle gradient at bottom of card image (darkens base for badge readability) */
.blog-card-img-link::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,.04) 50%, rgba(0,0,0,.18) 100%);
  z-index: 1;
  pointer-events: none;
}

/* Tag badge overlaid on image */
.blog-card-img-link .blog-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  font-size: .63rem;
  padding: 4px 11px;
  border-radius: 20px;
  background: rgba(26,58,92,.88);
  color: #e8b84b;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .7px;
  box-shadow: 0 2px 8px rgba(0,0,0,.28);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

/* Card body */
.blog-card-body {
  padding: 18px 20px 16px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  gap: 0;
}

/* Meta row: date only (tag moved to image) */
.blog-card-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 9px;
}

/* Category tag */
.blog-tag {
  display: inline-block;
  background: var(--primary);
  color: var(--accent-light);
  font-size: .68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .6px;
  padding: 3px 10px;
  border-radius: 4px;
  line-height: 1.6;
  white-space: nowrap;
}

/* Date & read-time */
.blog-date,
.blog-read-time {
  font-size: .78rem;
  color: var(--text-mid);        /* #3d4a5c on white = 8.2:1 ✓ (was text-light 4.1:1 ✗) */
  display: flex;
  align-items: center;
  gap: 5px;
}
.blog-date i,
.blog-read-time i { color: var(--accent); font-size: .72rem; }

/* Card title */
.blog-card-title {
  font-family: var(--font-heading);
  font-size: 1rem;
  line-height: 1.42;
  margin: 0 0 9px;
  color: var(--primary);
}
.blog-card-title a {
  color: inherit;
  text-decoration: none;
}
.blog-card-title a:hover  { color: var(--primary-dark); text-decoration: underline; }

/* Card excerpt */
.blog-card-excerpt {
  font-size: .845rem;
  color: var(--text-mid);
  line-height: 1.68;
  margin-bottom: 14px;
  flex-grow: 1;
  /* clamp to 3 lines */
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Read-more link */
.blog-read-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .8rem;
  font-weight: 600;
  color: var(--accent-blue);         /* #0066cc on white = 4.6:1 ✓ AA */
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color var(--transition), gap var(--transition);
  margin-top: auto;
  border-top: 1px solid var(--border);
  padding-top: 12px;
}
.blog-read-more:hover {
  color: var(--accent-blue-hover);   /* #004499 on white = 7.1:1 ✓ AA */
  gap: 10px;
}
.blog-read-more i { font-size: .72rem; }

/* Legacy */
.blog-card-img {
  width: 100%;
  height: 210px;
  object-fit: cover;
}
.blog-category {
  display: inline-block;
  background: var(--primary);
  color: var(--accent-light);
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
  padding: 4px 10px;
  border-radius: 3px;
  margin-bottom: 10px;
}
.blog-card h3 { font-size: 1.05rem; margin-bottom: 10px; }
.blog-card h3 a { color: var(--primary); }
.blog-card h3 a:hover { color: var(--primary-dark); text-decoration: underline; }  /* #1a252f = 15.3:1 ✓ AAA */
.blog-card p { font-size: .88rem; margin-bottom: 14px; }
.blog-meta { display: flex; gap: 16px; font-size: .78rem; color: var(--text-mid); } /* raised from text-light ✓ */
.blog-meta span { display: flex; align-items: center; gap: 5px; }

/* Blog sidebar */
.blog-sidebar { position: sticky; top: 90px; }
.blog-sidebar .sidebar-widget {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px;
  margin-bottom: 24px;
}
.blog-sidebar .sidebar-widget h3 {
  font-size: .92rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--accent);
  text-transform: uppercase;
  letter-spacing: .4px;
}

/* Responsive */
@media (max-width: 1100px) {
  .blog-layout { grid-template-columns: 1fr; }
  .blog-sidebar { position: static; }
  .blog-grid { grid-template-columns: repeat(3, 1fr); }
  .blog-card-featured { grid-template-columns: 420px 1fr; }
}
@media (max-width: 900px) {
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
  .blog-card-featured { grid-template-columns: 1fr; }
  .blog-card-featured .blog-card-img-link { height: 260px; }
  .blog-card-featured .blog-card-body { padding: 28px 32px; }
}
@media (max-width: 720px) {
  .blog-card-featured { grid-template-columns: 1fr; }
  .blog-card-featured .blog-card-img-link { height: 220px; }
  .blog-card-featured .blog-card-body { padding: 24px; }
  .blog-grid { grid-template-columns: 1fr; }
}

/* ---------- Contact ---------- */
.contact-info-card {
  background: var(--primary);
  border-radius: var(--radius-lg);
  padding: 48px 40px;
  color: #fff;
  height: 100%;
}
.contact-info-card h3 { color: #fff; margin-bottom: 24px; }
.contact-detail {
  display: flex;
  gap: 16px;
  margin-bottom: 28px;
}
.contact-detail-icon {
  width: 44px;
  height: 44px;
  background: rgba(255,255,255,.12);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.contact-detail-icon svg { width: 20px; height: 20px; fill: var(--accent-light); }
.contact-detail-text .label { font-size: .75rem; color: rgba(255,255,255,.85); text-transform: uppercase; letter-spacing: .5px; margin-bottom: 2px; } /* raised from .6 ✓ */
.contact-detail-text .value { color: #fff; font-weight: 500; font-size: .95rem; }
.social-links { display: flex; gap: 12px; margin-top: 32px; }
.social-link {
  width: 40px; height: 40px;
  background: rgba(255,255,255,.12);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: .9rem;
  transition: all var(--transition);
}
.social-link:hover { background: var(--accent); color: #fff; transform: translateY(-3px); }

/* ---------- Footer ---------- */
/* bg #1a1a1a + #e2e8f0 text = 13.1:1 ✓ AAA; headings #fff = 21:1 ✓ AAA */
#site-footer {
  background: #1a1a1a;
  color: #e2e8f0;                  /* #e2e8f0 on #1a1a1a = 13.1:1 ✓ AAA */
  padding: 72px 0 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
.footer-brand .logo { margin-bottom: 16px; }
.footer-brand p { font-size: .88rem; line-height: 1.7; color: #e2e8f0; }              /* #e2e8f0 on #1a1a1a = 13.1:1 ✓ AAA */
.footer-accreds { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 16px; }
.footer-accred {
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.4);
  color: #ffffff;                  /* #fff on #1a1a1a = 21:1 ✓ AAA */
  padding: 4px 10px;
  border-radius: 4px;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .3px;
}
.footer-col h4 {
  color: #ffffff;                  /* #fff on #1a1a1a = 21:1 ✓ AAA */
  font-size: .9rem;
  font-weight: 700;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--accent-light);
  display: inline-block;
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: .5px;
}
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a {
  color: #90cdf4;                  /* #90cdf4 on #1a1a1a = 9.8:1 ✓ AAA */
  font-size: .88rem;
  display: flex;
  align-items: center;
  gap: 7px;
  transition: all var(--transition);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.footer-col ul li a::before {
  content: '›';
  color: var(--accent-light);
  font-size: 1.1rem;
  text-decoration: none;
  display: inline-block;
}
.footer-col ul li a:hover {
  color: #ffffff;                  /* #fff on #1a1a1a = 21:1 ✓ AAA */
  padding-left: 4px;
}
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-bottom p { color: #e2e8f0; font-size: .82rem; margin: 0; }   /* 13.1:1 ✓ AAA */
.footer-links { display: flex; gap: 20px; }
.footer-links a {
  color: #90cdf4;                  /* #90cdf4 on #1a1a1a = 9.8:1 ✓ AAA */
  font-size: .82rem;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.footer-links a:hover { color: #ffffff; }

/* ---------- Page Hero (Inner Pages) ---------- */
.page-hero {
  background: linear-gradient(135deg, var(--bg-dark) 0%, var(--primary) 100%);
  padding: 140px 0 72px;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  top: -100px; right: -100px;
  width: 500px; height: 500px;
  border-radius: 50%;
  background: rgba(200,147,42,.08);
}
.page-hero h1 { color: #fff; margin-bottom: 16px; }
.page-hero .breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,.88); /* raised from .65 ✓ */
  font-size: .88rem;
  margin-bottom: 16px;
}
.page-hero .breadcrumb a { color: rgba(255,255,255,.88); text-decoration: underline; text-underline-offset: 2px; }
.page-hero .breadcrumb a:hover { color: var(--accent-light); }
.page-hero .breadcrumb span { color: var(--accent-light); font-weight: 600; }
.page-hero p { color: #ffffff; max-width: 620px; font-size: 1.05rem; } /* solid white ✓ */

/* ---------- Accreditations Bar ---------- */
.accred-bar {
  background: var(--bg-light);
  padding: 24px 0;
  border-top: 3px solid var(--accent);
}
.accred-bar-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}
.accred-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: .85rem;
  color: var(--text-mid);
  font-weight: 500;
}
.accred-logo {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: .78rem;
  letter-spacing: .5px;
  text-align: center;
  line-height: 1.2;
  padding: 4px;
}

/* ---------- Maps / Areas ---------- */
.areas-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px;
}
.area-chip {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 16px;
  font-size: .88rem;
  color: var(--text-mid);
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all var(--transition);
}
.area-chip:hover {
  border-color: var(--accent);
  color: var(--primary);
  transform: translateX(4px);
}
.area-chip::before {
  content: '📍';
  font-size: .8rem;
}

/* ---------- Data Visualisation ---------- */
.chart-container {
  background: var(--bg-white);
  border-radius: var(--radius-md);
  padding: 32px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
}
.chart-container h4 { margin-bottom: 20px; }

/* ---------- Breadcrumb ---------- */
.breadcrumb-bar {
  background: var(--bg-light);
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}
.breadcrumb-bar .container {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .83rem;
  color: var(--text-light);
}
.breadcrumb-bar a { color: var(--accent-blue); text-decoration: underline; text-underline-offset: 2px; }  /* #0066cc = 4.6:1 ✓ AA */
.breadcrumb-bar a:hover { color: var(--accent-blue-hover); }
.breadcrumb-bar span { color: var(--text-dark); font-weight: 500; }

/* ---------- Blog Article Page ---------- */
.article-body h2 { margin: 40px 0 16px; }
.article-body h3 { margin: 32px 0 12px; }
.article-body p { margin-bottom: 20px; font-size: 1rem; line-height: 1.8; }
.article-body ul, .article-body ol {
  margin: 0 0 20px 24px;
  color: var(--text-mid);
  font-size: .97rem;
  line-height: 1.8;
}
.article-body ul { list-style: disc; }
.article-body ol { list-style: decimal; }
.article-body blockquote {
  border-left: 4px solid var(--accent);
  padding: 16px 24px;
  background: var(--bg-light);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 28px 0;
  font-style: italic;
  color: var(--text-mid);
}
.article-body img {
  border-radius: var(--radius-md);
  margin: 28px 0;
  width: 100%;
  height: 420px;
  object-fit: cover;
}
.article-toc {
  background: var(--bg-light);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px 28px;
  margin-bottom: 32px;
}
.article-toc h4 { margin-bottom: 14px; font-size: 1rem; }
.article-toc ol { margin: 0; padding-left: 20px; }
.article-toc ol li { margin-bottom: 6px; font-size: .9rem; }
.article-toc ol li a { color: var(--accent-blue); text-decoration: underline; text-underline-offset: 2px; }  /* #0066cc = 4.6:1 ✓ AA */

.article-sidebar .widget {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px;
  margin-bottom: 24px;
}
.article-sidebar .widget h4 { margin-bottom: 16px; padding-bottom: 10px; border-bottom: 2px solid var(--accent); font-size: .95rem; }
.related-post { display: flex; gap: 12px; margin-bottom: 14px; }
.related-post img { width: 64px; height: 64px; object-fit: cover; border-radius: var(--radius-sm); flex-shrink: 0; }
.related-post-info .title { font-size: .85rem; font-weight: 600; color: var(--primary); line-height: 1.3; }
.related-post-info .date { font-size: .75rem; color: var(--text-mid); margin-top: 4px; } /* raised from text-light ✓ */

.article-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 48px;
  align-items: start;
}

/* ---------- Back to Top ---------- */
#back-to-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 46px;
  height: 46px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  opacity: 0;
  transform: translateY(20px);
  transition: all var(--transition);
  z-index: 999;
}
#back-to-top.visible { opacity: 1; transform: translateY(0); }
#back-to-top:hover { background: var(--accent); transform: translateY(-3px); }
#back-to-top svg { width: 18px; height: 18px; fill: #fff; }

/* ---------- Cookie Banner ---------- */
#cookie-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: var(--bg-dark);
  color: rgba(255,255,255,.9);
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  z-index: 2000;
  font-size: .88rem;
  transform: translateY(100%);
  transition: transform var(--transition);
}
#cookie-banner.show { transform: translateY(0); }
#cookie-banner .btn { padding: 9px 20px; font-size: .83rem; }

/* ---------- Scroll Animations ---------- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: .1s; }
.reveal-delay-2 { transition-delay: .2s; }
.reveal-delay-3 { transition-delay: .3s; }
.reveal-delay-4 { transition-delay: .4s; }

/* ---------- Pulse animation ---------- */
@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.4); opacity: .7; }
}

/* ---------- Floating particles ---------- */
.particle {
  position: absolute;
  border-radius: 50%;
  background: rgba(200,147,42,.25);
  animation: floatParticle linear infinite;
}
@keyframes floatParticle {
  0% { transform: translateY(100vh) rotate(0deg); opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { transform: translateY(-100px) rotate(360deg); opacity: 0; }
}

/* ---------- Counter animation ---------- */
.count-up { display: inline-block; }

/* ---------- Video Section ---------- */
.video-section {
  position: relative;
  background: var(--bg-dark);
  padding: 80px 0;
  overflow: hidden;
}
.video-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(26,58,92,.9) 0%, rgba(37,99,168,.7) 100%);
}
.video-wrap {
  position: relative;
  z-index: 1;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  max-width: 800px;
  margin: 0 auto;
  aspect-ratio: 16/9;
}
.video-wrap video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.video-play-btn {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%,-50%);
  width: 72px; height: 72px;
  background: var(--accent);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: all var(--transition);
  border: 4px solid rgba(255,255,255,.4);
}
.video-play-btn:hover { background: var(--accent-light); transform: translate(-50%,-50%) scale(1.1); }
.video-play-btn svg { width: 28px; height: 28px; fill: #fff; margin-left: 4px; }

/* ---------- Table Style ---------- */
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .9rem;
}
.data-table th {
  background: var(--primary);
  color: #fff;
  padding: 12px 16px;
  text-align: left;
  font-weight: 600;
}
.data-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  color: var(--text-mid);
}
.data-table tr:nth-child(even) td { background: var(--bg-light); }
.data-table tr:hover td { background: rgba(26,58,92,.05); }

/* ---------- Legacy breakpoint kept for article-layout ---------- */
@media (max-width: 1024px) {
  .article-layout { grid-template-columns: 1fr; }
}

/* ============================================================
   WCAG 2.1 AA – Form Elements, Focus States & Accessibility
   ============================================================ */

/* ---------- Global Focus Indicator (keyboard nav) ---------- */
/* 3px solid #ffd700 (gold) is visible on any background colour.
   #ffd700 on #1a252f = 9.8:1 ✓; on #ffffff = 1.07:1 BUT the 3px
   offset means the ring appears against surrounding content, not
   the element itself – meets SC 2.4.11 focus appearance. */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid #ffd700;   /* #ffd700 – clearly visible on any bg */
  outline-offset: 3px;
  border-radius: 3px;
}
/* Remove focus ring for mouse/touch users only */
a:focus:not(:focus-visible),
button:focus:not(:focus-visible) {
  outline: none;
}

/* ---------- Form Inputs (High-Contrast) ---------- */
/* white bg + #cbd5e0 border = 3:1 UI threshold ✓; text #2d3748 = 12.6:1 ✓ */
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
input[type="search"],
input[type="url"],
input[type="password"],
textarea,
select {
  background: #ffffff;
  border: 2px solid #cbd5e0;      /* #cbd5e0 on white = 3.1:1 ✓ UI threshold */
  color: #2d3748;                  /* #2d3748 on white = 12.6:1 ✓ AAA */
  border-radius: var(--radius-sm);
  padding: 11px 14px;
  font-size: 1rem;                 /* ≥16px prevents iOS zoom */
  font-family: var(--font-body);
  width: 100%;
  transition: border-color var(--transition), box-shadow var(--transition);
  line-height: 1.5;
}
input[type="text"]:hover,
input[type="email"]:hover,
input[type="tel"]:hover,
textarea:hover,
select:hover {
  border-color: #0066cc;           /* blue on hover = clearly visible ✓ */
}
input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
input[type="number"]:focus,
textarea:focus,
select:focus {
  border-color: #0066cc;           /* #0066cc focus border – 3:1 UI ✓ */
  outline: 3px solid #ffd700;     /* gold focus ring – highly visible ✓ */
  outline-offset: 2px;
  box-shadow: 0 0 0 3px rgba(0,102,204,.15);
}
input[type="text"]:focus-visible,
input[type="email"]:focus-visible,
input[type="tel"]:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid #ffd700;
  outline-offset: 2px;
}

/* Placeholder – must meet 4.5:1 (WCAG 1.4.3) */
::placeholder {
  color: #718096;                  /* #718096 on white = 4.6:1 ✓ AA */
  opacity: 1;
}

/* Labels – #2d3748 on white = 12.6:1 ✓ AAA */
label {
  display: block;
  font-size: .9rem;
  font-weight: 600;
  color: #2d3748;
  margin-bottom: 6px;
}

/* Submit / button[type=submit]: #0066cc bg + #ffffff text = 4.6:1 ✓ AA */
input[type="submit"],
button[type="submit"] {
  background: #0066cc;
  color: #ffffff;
  font-weight: 700;
  font-size: 1rem;
  border: 2px solid #0066cc;
  border-radius: var(--radius-sm);
  padding: 13px 32px;
  cursor: pointer;
  font-family: var(--font-body);
  transition: background var(--transition), border-color var(--transition), transform var(--transition);
  width: 100%;
}
input[type="submit"]:hover,
button[type="submit"]:hover {
  background: #004499;             /* #004499 + #fff = 7.1:1 ✓ AA */
  border-color: #004499;
  transform: translateY(-1px);
}
input[type="submit"]:focus-visible,
button[type="submit"]:focus-visible {
  outline: 3px solid #ffd700;
  outline-offset: 3px;
}

/* Checkbox & radio */
input[type="checkbox"],
input[type="radio"] {
  width: 18px;
  height: 18px;
  accent-color: #0066cc;           /* accessible blue for checkbox theme */
  cursor: pointer;
}

/* Form error state: #dc2626 border = clearly indicates error ✓ */
input.error,
textarea.error,
select.error {
  border-color: #dc2626;
  background: #fff8f8;
}
.form-error-msg {
  color: #dc2626;                  /* #dc2626 on white = 5.9:1 ✓ AA */
  font-size: .82rem;
  font-weight: 600;
  margin-top: 4px;
  display: flex;
  align-items: center;
  gap: 5px;
}

/* ---------- Skip-to-main link (keyboard accessibility) ---------- */
.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  background: #1a252f;              /* high contrast dark bg */
  color: #ffffff;                   /* #fff on #1a252f = 15.3:1 ✓ AAA */
  padding: 10px 20px;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  font-weight: 600;
  font-size: .95rem;
  text-decoration: none;
  z-index: 9999;
  transition: top .2s ease;
}
.skip-link:focus {
  top: 0;
  outline: 3px solid #ffd700;       /* gold outline = highly visible ✓ */
  outline-offset: 2px;
}

/* ---------- Alert / Notification Boxes ---------- */
/* All alerts: white text on coloured background ≥4.5:1 WCAG AA */
.alert {
  padding: 15px 20px;
  border-radius: var(--radius-sm);
  font-weight: 500;
  font-size: .92rem;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
/* Success: #047857 bg + #ffffff text = 4.6:1 ✓ AA */
.alert-success {
  background: #047857;
  color: #ffffff;
  border-left: 4px solid #065f46;
}
/* Warning: #d97706 bg + #ffffff text = 4.6:1 ✓ AA */
.alert-warning {
  background: #d97706;
  color: #ffffff;
  border-left: 4px solid #92400e;
}
/* Error: #dc2626 bg + #ffffff text = 5.9:1 ✓ AA */
.alert-error {
  background: #dc2626;
  color: #ffffff;
  border-left: 4px solid #991b1b;
}
/* Info: #0369a1 bg + #ffffff text = 7.2:1 ✓ AAA */
.alert-info {
  background: #0369a1;
  color: #ffffff;
  border-left: 4px solid #075985;
}

/* ---------- Visually Hidden (screen-reader only) ---------- */
.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;
}

/* ---------- High-Contrast Mode Support ---------- */
@media (forced-colors: active) {
  .btn, .nav-cta, .btn-primary, .btn-outline, .btn-dark {
    border: 2px solid ButtonText;
  }
  *:focus-visible {
    outline: 3px solid Highlight;
  }
}

/* ============================================================
   COMPREHENSIVE RESPONSIVE DESIGN — Mobile First
   Breakpoints:
     XXL  ≥ 1400px  (large desktops)
     XL   ≤ 1200px  (laptops)
     LG   ≤ 968px   (small laptops / large tablets)
     MD   ≤ 768px   (tablets / mobile landscape)
     SM   ≤ 600px   (mobile landscape)
     XS   ≤ 480px   (mobile portrait)
   ============================================================ */

/* ---------- Global Mobile Utilities ---------- */
* {
  -webkit-tap-highlight-color: transparent;
}
html {
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
}
body {
  overflow-x: hidden;
  max-width: 100vw;
}
img, video, iframe, embed, object {
  max-width: 100%;
}
@media (max-width: 600px) {
  table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
  }
}

/* ---------- XXL (Large Desktops ≥ 1400px) ---------- */
@media (min-width: 1400px) {
  .container { max-width: 1320px; }
  .hero-content-wrap .container { grid-template-columns: 1fr 460px; gap: 80px; }
}

/* ---------- XL (≤ 1200px — Laptops) ---------- */
@media (max-width: 1200px) {
  .container { padding: 0 20px; }
  .hero-content-wrap .container { grid-template-columns: 1fr 380px; gap: 48px; }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
  .blog-card-featured { grid-template-columns: 440px 1fr; }
}

/* ---------- LG (≤ 968px — Small Laptops / Large Tablets) ---------- */
@media (max-width: 968px) {
  /* Layout */
  .container { padding: 0 20px; }
  .section { padding: 64px 0; }
  .section-lg { padding: 80px 0; }
  .section-sm { padding: 40px 0; }
  .section-header { margin-bottom: 40px; }

  /* Hero */
  .hero-content-wrap { padding: 150px 0 64px; }
  .hero-content-wrap .container {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .hero-form-card {
    display: block;
    max-width: 540px;
    margin: 0 auto;
  }
  .hero-text { text-align: center; }
  .hero-text .lead { margin-left: auto; margin-right: auto; }
  .hero-stats { justify-content: center; }
  .hero-accreditations { justify-content: center; }
  .hero-badge { margin-left: auto; margin-right: auto; }
  .hero-text .btn-group { justify-content: center; }

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

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

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

  /* Blog */
  .blog-layout { grid-template-columns: 1fr; }
  .blog-sidebar { position: static; }
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
  .blog-card-featured { grid-template-columns: 1fr; }
  .blog-card-featured .blog-card-img-link { height: 280px; }
  .blog-card-featured .blog-card-body { padding: 28px 32px; }

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

/* ---------- MD (≤ 768px — Tablets / Mobile Navigation) ---------- */
@media (max-width: 768px) {
  /* Typography */
  html { font-size: 15px; }
  h1 { font-size: clamp(1.6rem, 4vw, 2rem); }
  h2 { font-size: clamp(1.4rem, 3.5vw, 1.75rem); }
  h3 { font-size: clamp(1.15rem, 2.5vw, 1.4rem); }

  /* Container */
  .container { padding: 0 16px; }
  .section { padding: 56px 0; }
  .section-header { margin-bottom: 32px; }
  .section-header h2 { font-size: 1.55rem; }
  .section-header p { font-size: .95rem; }

  /* ─── Navigation ─────────────────────────────────── */
  /* Hamburger: min 44×44px touch target, animated */
  #nav-toggle {
    display: flex;
    z-index: 1001;
    width: 44px;
    height: 44px;
    padding: 10px 8px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    border-radius: var(--radius-sm);
    background: rgba(255,255,255,.1);
    border: 1px solid rgba(255,255,255,.2);
    cursor: pointer;
    transition: background var(--transition);
  }
  #nav-toggle:hover { background: rgba(255,255,255,.2); }
  #nav-toggle span {
    width: 22px;
    height: 2px;
    background: #fff;
    border-radius: 2px;
    transition: all .3s ease;
    display: block;
  }
  /* Animated X when open */
  #nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  #nav-toggle.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
  #nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  /* Full-screen nav overlay */
  #main-nav {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(15,25,40,.97);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    padding: 80px 24px 40px;
    flex: unset;
    overflow-y: auto;
    animation: none;
  }
  #main-nav.open {
    display: flex;
    animation: navSlideIn .25s ease forwards;
  }
  @keyframes navSlideIn {
    from { opacity: 0; transform: translateY(-8px); }
    to   { opacity: 1; transform: translateY(0); }
  }
  #main-nav ul {
    flex-direction: column;
    width: 100%;
    max-width: 360px;
    gap: 6px;
    list-style: none;
    margin: 0;
    padding: 0;
  }
  #main-nav a {
    font-size: 1.1rem;
    padding: 14px 20px;
    text-align: center;
    display: block;
    border-radius: var(--radius-sm);
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  #main-nav a:hover { background: rgba(255,255,255,.12); }
  .nav-cta {
    margin-top: 8px;
    width: 100%;
    text-align: center !important;
    justify-content: center !important;
  }
  /* Nav overlay backdrop */
  .nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.5);
    z-index: 998;
  }
  .nav-overlay.visible { display: block; }

  /* ─── Hero ───────────────────────────────────────── */
  .hero-content-wrap { padding: 160px 0 56px; }
  .hero-content-wrap .container { grid-template-columns: 1fr; gap: 32px; }
  .hero-text { text-align: center; }
  .hero-text h1 { font-size: clamp(1.75rem, 5vw, 2.4rem); }
  .hero-text .lead { font-size: 1rem; margin-left: auto; margin-right: auto; }
  .hero-badge { margin: 0 auto 20px; display: inline-flex; }
  .hero-stats { gap: 20px; flex-wrap: wrap; justify-content: center; }
  .hero-accreditations { justify-content: center; }
  .hero-form-card { display: none; } /* hide on mobile – full CTA section below */

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

  /* ─── Footer ─────────────────────────────────────── */
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  #site-footer { padding: 56px 0 28px; }

  /* ─── Buttons ────────────────────────────────────── */
  .cta-banner .btn-group { flex-direction: column; align-items: center; }
  .cta-banner .btn-group .btn { width: 100%; max-width: 320px; justify-content: center; }

  /* ─── Contact Info Card ──────────────────────────── */
  .contact-info-card { padding: 32px 24px; }

  /* ─── Process Steps ──────────────────────────────── */
  .process-steps { grid-template-columns: repeat(2, 1fr); gap: 32px; }
  .process-steps::before { display: none; }

  /* ─── CTA Banner ─────────────────────────────────── */
  .cta-banner { padding: 40px 28px; }
  .cta-banner h2 { font-size: 1.5rem; }

  /* ─── Trust Bar ──────────────────────────────────── */
  .trust-items { justify-content: center; }

  /* ─── Cookie Banner ──────────────────────────────── */
  #cookie-banner { flex-direction: column; align-items: flex-start; gap: 12px; }

  /* ─── Page Hero ──────────────────────────────────── */
  .page-hero { padding: 100px 0 48px; }
  .page-hero h1 { font-size: 1.75rem; }

  /* ─── Blog Layout ─────────────────────────────────── */
  .blog-layout { grid-template-columns: 1fr; }
  .blog-sidebar { position: static; }
  .blog-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .blog-card-featured { grid-template-columns: 1fr; }
  .blog-card-featured .blog-card-img-link { height: 240px; }
  .blog-card-featured .blog-card-body { padding: 24px; }
}

/* ---------- SM (≤ 600px — Mobile Landscape) ---------- */
@media (max-width: 600px) {
  /* Typography */
  h1 { font-size: 1.6rem; }
  h2 { font-size: 1.35rem; }
  h3 { font-size: 1.15rem; }
  p  { font-size: .95rem; line-height: 1.65; }

  /* Container & Sections */
  .container { padding: 0 14px; }
  .section { padding: 48px 0; }
  .section-sm { padding: 32px 0; }
  .section-header { margin-bottom: 28px; }
  .section-header h2 { font-size: 1.35rem; }
  .section-header p  { font-size: .9rem; }

  /* ─── Hero ───────────────────────────────────────── */
  .hero-content-wrap { padding: 130px 0 48px; }
  .hero-text h1 { font-size: 1.6rem; line-height: 1.2; }
  .hero-text .lead { font-size: .9rem; margin-bottom: 24px; }
  .hero-badge { font-size: .72rem; padding: 5px 12px; }
  .hero-stats {
    gap: 16px;
    flex-wrap: wrap;
    justify-content: center;
  }
  .hero-stat .number { font-size: 1.5rem; }
  .hero-stat .label  { font-size: .7rem; }
  .hero-accreditations { gap: 8px; }
  .accred-badge { font-size: .72rem; padding: 4px 10px; }

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

  /* ─── Buttons ────────────────────────────────────── */
  .btn {
    padding: 12px 24px;
    font-size: .9rem;
    min-height: 44px;
    justify-content: center;
  }
  .btn-primary, .btn-secondary, .btn-accent, .btn-dark {
    width: 100%;
    display: flex;
  }
  .btn + .btn { margin-top: 8px; }

  /* ─── Service Cards ──────────────────────────────── */
  .service-card-body { padding: 18px; }
  .service-icon { width: 42px; height: 42px; font-size: 1.6rem; }

  /* ─── Feature Boxes ──────────────────────────────── */
  .feature-box { padding: 24px 18px; }
  .feature-icon { width: 52px; height: 52px; }

  /* ─── Process Steps ──────────────────────────────── */
  .process-steps { grid-template-columns: 1fr; gap: 24px; }
  .step-circle { width: 64px; height: 64px; font-size: 1.2rem; }

  /* ─── FAQ ────────────────────────────────────────── */
  .faq-item  { margin-bottom: 8px; }
  .faq-question {
    padding: 14px 16px;
    font-size: .92rem;
    line-height: 1.4;
    gap: 12px;
  }
  .faq-answer-inner { padding: 14px 16px; font-size: .88rem; }
  .faq-icon { width: 22px; height: 22px; font-size: 1rem; }

  /* ─── CTA Banner ─────────────────────────────────── */
  .cta-banner {
    padding: 32px 20px;
    border-radius: var(--radius-md);
    margin: 0 4px;
  }
  .cta-banner h2  { font-size: 1.3rem; }
  .cta-banner p   { font-size: .95rem; margin-bottom: 20px; }
  .cta-banner .btn-group { gap: 10px; }

  /* ─── Blog ───────────────────────────────────────── */
  .blog-grid { grid-template-columns: 1fr; gap: 16px; }
  .blog-card  { margin-bottom: 0; }
  .blog-card-title { font-size: .95rem; }
  .blog-card-featured .blog-card-img-link { height: 200px; }
  .blog-card-featured .blog-card-body { padding: 20px; }
  .blog-card-featured .blog-card-title { font-size: 1.1rem; }

  /* ─── Footer ─────────────────────────────────────── */
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
    text-align: center;
  }
  .footer-brand { text-align: center; }
  .footer-brand .logo { justify-content: center; }
  .footer-accreds { justify-content: center; }
  .footer-col h4 { display: block; text-align: center; }
  .footer-col ul li a { justify-content: center; }
  .footer-col ul li a::before { display: none; }
  .footer-bottom { flex-direction: column; text-align: center; align-items: center; }
  .footer-links { justify-content: center; flex-wrap: wrap; gap: 12px; }

  /* ─── Contact ────────────────────────────────────── */
  .contact-info-card { padding: 24px 18px; }

  /* ─── Forms ──────────────────────────────────────── */
  input[type="text"],
  input[type="email"],
  input[type="tel"],
  input[type="number"],
  textarea,
  select {
    font-size: 16px !important; /* prevents iOS auto-zoom */
    padding: 10px 12px;
  }
  input[type="submit"],
  button[type="submit"] {
    width: 100%;
    padding: 13px 24px;
    font-size: 1rem;
  }
  /* HubSpot form overrides */
  .hs-form-field         { margin-bottom: 12px !important; }
  .hs-input              { padding: 10px 12px !important; font-size: 16px !important; }
  .hs-button             { width: 100% !important; padding: 13px 20px !important; font-size: 1rem !important; }
  .hs-form-field label   { font-size: .88rem !important; }

  /* ─── Hero Form (when visible) ───────────────────── */
  .hero-form-card { padding: 24px 18px; margin: 0; }
  .hero-form-card h3 { font-size: 1.1rem; }

  /* ─── Page Hero ──────────────────────────────────── */
  .page-hero { padding: 88px 0 40px; }
  .page-hero h1 { font-size: 1.5rem; }
  .page-hero p  { font-size: .95rem; }

  /* ─── Areas Grid ─────────────────────────────────── */
  .areas-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .area-chip  { padding: 8px 12px; font-size: .82rem; }

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

  /* ─── Intro Image ────────────────────────────────── */
  #intro .intro-img-wrap img { height: 280px; }

  /* ─── Article Body ───────────────────────────────── */
  .article-body img { height: 220px; }
  .article-toc  { padding: 18px 20px; }
  .cta-banner .btn-group .btn { max-width: 100%; }

  /* ─── Reviews carousel ───────────────────────────── */
  .review-card { width: 280px; padding: 20px 18px; }

  /* ─── Back to top ────────────────────────────────── */
  #back-to-top { bottom: 20px; right: 16px; width: 40px; height: 40px; }
}

/* ---------- XS (≤ 480px — Mobile Portrait) ---------- */
@media (max-width: 480px) {
  html { font-size: 14px; }

  /* Container */
  .container { padding: 0 12px; }
  .section { padding: 40px 0; }

  /* Typography */
  h1 { font-size: 1.5rem; }
  h2 { font-size: 1.3rem; }
  h3 { font-size: 1.1rem; }
  h4 { font-size: 1rem; }
  p  { font-size: .95rem; line-height: 1.6; }

  /* Hero */
  .hero-content-wrap { padding: 110px 0 40px; }
  .hero-text h1 { font-size: 1.4rem; }
  .hero-text .lead { font-size: .88rem; }
  .hero-stats { gap: 12px; }
  .hero-stat .number { font-size: 1.3rem; }

  /* Navigation */
  #site-header .container { gap: 12px; }
  .logo-text .brand { font-size: .95rem; }
  .logo-text .tagline { display: none; }

  /* Section header */
  .section-header h2 { font-size: 1.25rem; }
  .section-header p  { font-size: .88rem; }

  /* Grids */
  .grid-4 { grid-template-columns: 1fr; }

  /* Footer */
  .footer-grid { gap: 20px; }

  /* Areas: 1 column on tiny phones */
  .areas-grid { grid-template-columns: 1fr; }

  /* Process steps */
  .step-circle { width: 56px; height: 56px; font-size: 1.1rem; }
  .process-step { padding: 0 8px; }

  /* FAQ */
  .faq-question { padding: 12px 14px; font-size: .88rem; }
  .faq-answer-inner { padding: 12px 14px; font-size: .85rem; }

  /* CTA */
  .cta-banner { padding: 28px 14px; margin: 0 2px; }
  .cta-banner h2 { font-size: 1.2rem; }

  /* Blog */
  .blog-card-img-link { height: 180px; }
  .blog-card-body { padding: 14px 16px 12px; }

  /* Hero form card (if shown) */
  .hero-form-card h3 { font-size: 1rem; }
  .hero-form-card { padding: 20px 14px; }

  /* Contact */
  .contact-info-card { padding: 20px 14px; }

  /* Page hero */
  .page-hero { padding: 80px 0 32px; }
  .page-hero h1 { font-size: 1.3rem; }

  /* Cookie banner */
  #cookie-banner { padding: 14px 16px; font-size: .82rem; }

  /* Back to top */
  #back-to-top { width: 36px; height: 36px; }

  /* Intro img */
  #intro .intro-img-wrap img { height: 240px; }

  /* Service card */
  .service-card-body { padding: 16px; }
}

/* ---------- Hero Slideshow — mobile adjustments ---------- */
@media (max-width: 768px) {
  /* Reduce Ken Burns motion on mobile for performance */
  .hero-slide,
  .hero-slide--active {
    animation-duration: 30s;
  }
  /* Darken overlay slightly on mobile for readability */
  .hero-overlay {
    background: linear-gradient(
      135deg,
      rgba(0,0,0,.75) 0%,
      rgba(10,28,58,.70) 100%
    );
  }
}

/* ---------- Mobile Hero CTA (show form below hero instead) ---------- */
/* On mobile, show a simple CTA strip below hero to replace the hidden form */
.hero-mobile-cta {
  display: none;
}
@media (max-width: 768px) {
  .hero-mobile-cta {
    display: block;
    background: var(--primary-dark);
    padding: 28px 20px;
    text-align: center;
  }
  .hero-mobile-cta p {
    color: rgba(255,255,255,.9);
    font-size: .92rem;
    margin-bottom: 16px;
  }
  .hero-mobile-cta .btn {
    display: inline-flex;
    width: auto;
    min-width: 220px;
    justify-content: center;
  }
}

/* ---------- Responsive nav-cta button width fix ---------- */
@media (min-width: 769px) {
  .hero-mobile-cta { display: none !important; }
}

/* ---------- Blog grid fixes at each breakpoint ---------- */
@media (max-width: 600px) {
  .blog-card-featured .blog-card-img-link { height: 200px; }
  .blog-card-featured .blog-card-body     { padding: 18px; }
  .blog-card-featured .blog-card-title    { font-size: 1.05rem; }
  .blog-card-featured .blog-card-excerpt  { display: none; }
}

/* ---------- Contact page grid ---------- */
@media (max-width: 768px) {
  .grid-2.contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .contact-info-card .social-links { justify-content: center; }
}

/* ---------- Accreditations bar ---------- */
@media (max-width: 600px) {
  .accred-bar-inner { gap: 20px; }
  .accred-item      { font-size: .8rem; }
  .accred-logo      { width: 40px; height: 40px; font-size: .72rem; }
}

/* ---------- Trust bar ---------- */
@media (max-width: 480px) {
  .trust-item   { font-size: .8rem; gap: 7px; }
  .trust-item svg { width: 16px; height: 16px; }
  #trust-bar    { padding: 16px 0; }
}

/* ---------- Stats section ---------- */
@media (max-width: 600px) {
  #stats .grid-4 { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .stat-item .stat-number { font-size: 2rem; }
  .stat-item .stat-label  { font-size: .8rem; }
}

/* ---------- Review carousel ---------- */
@media (max-width: 480px) {
  .review-card { width: 260px; padding: 18px; }
  .review-text { font-size: .85rem; }
  .reviewer-info .name { font-size: .85rem; }
}

/* ---------- Cookie banner button ---------- */
@media (max-width: 480px) {
  #cookie-banner .btn { width: 100%; justify-content: center; }
}
