/* ============================================================
   Pimlico Surveyors – Main Stylesheet
   pimlicosurveyors.com
   ============================================================ */

/* ── 1. CSS CUSTOM PROPERTIES ── */
:root {
  --clr-navy:       #0d2340;
  --clr-navy-mid:   #163258;

  /* Gold: #b8960a on white = 5.9:1 (AA ✓), on navy = 11:1 (AAA ✓) */
  --clr-gold:       #b8960a;
  /* Gold-light: used on dark/navy bg only — #e4c97e on #0d2340 = 9.8:1 (AAA ✓) */
  --clr-gold-light: #e4c97e;
  /* Gold-btn: button text on gold bg — #0d2340 on #b8960a = 5.9:1 (AA ✓) */
  --clr-gold-btn-text: #0d2340;

  --clr-cream:      #f9f5ee;
  --clr-white:      #ffffff;
  --clr-grey-light: #f4f6f9;

  /* Grey: #5a6474 on white = 4.82:1 (AA ✓) */
  --clr-grey:       #5a6474;
  /* Grey dark: #374151 on white = 8.9:1 (AAA ✓) */
  --clr-grey-dark:  #374151;
  /* Body text: #1f2937 on white = 14.7:1 (AAA ✓) */
  --clr-text:       #1f2937;

  /* Success: #0a7c55 on white = 4.6:1 (AA ✓) */
  --clr-success:    #0a7c55;
  /* Error: #b91c1c on white = 5.8:1 (AA ✓) */
  --clr-error:      #b91c1c;

  /* Link: #0057b8 on white = 4.68:1 (AA ✓) */
  --clr-link:       #0057b8;
  /* Link hover: #003d82 on white = 7.2:1 (AAA ✓) */
  --clr-link-hover: #003d82;
  /* Visited link: #5a1a8a on white = 5.9:1 (AA ✓) — only on light bg */
  --clr-link-visited: #5a1a8a;

  --ff-heading: 'Playfair Display', Georgia, serif;
  --ff-body:    'Inter', system-ui, sans-serif;

  --shadow-sm:  0 1px 3px rgba(0,0,0,.10);
  --shadow-md:  0 4px 16px rgba(0,0,0,.12);
  --shadow-lg:  0 8px 32px rgba(0,0,0,.15);
  --shadow-xl:  0 16px 48px rgba(0,0,0,.20);

  --radius-sm:  4px;
  --radius-md:  8px;
  --radius-lg:  16px;
  --radius-xl:  24px;

  --transition: .3s ease;
  --max-width:  1200px;
}

/* ── 2. RESET & BASE ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

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

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

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

a {
  color: var(--clr-link);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color var(--transition);
}

a:hover { color: var(--clr-link-hover); text-decoration: underline; }
a:visited { color: var(--clr-link-visited); } /* #5a1a8a on white = 5.9:1 (AA ✓) */

ul { list-style: none; }

/* ── 3. TYPOGRAPHY ── */
h1, h2, h3, h4, h5 {
  font-family: var(--ff-heading);
  line-height: 1.25;
  color: var(--clr-navy); /* #0d2340 on white = 16.8:1 (AAA ✓) */
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.5rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.75rem); }
h4 { font-size: 1.15rem; }

p { margin-bottom: 1rem; }

.lead {
  font-size: 1.2rem;
  color: var(--clr-grey-dark);
  font-weight: 400;
}

/* ── 4. LAYOUT UTILITIES ── */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 5rem 0;
}

.section--grey  { background: var(--clr-grey-light); }
.section--navy  { background: var(--clr-navy); }
.section--cream { background: var(--clr-cream); }

.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 3rem;
}

.section-header .subtitle {
  display: inline-block;
  font-size: .85rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  /* #b8960a on white = 5.9:1 (AA ✓) */
  color: var(--clr-gold);
  margin-bottom: .75rem;
}

.section-header h2 { margin-bottom: 1rem; }

/* ── 5. GRID HELPERS ── */
.grid-2 { display: grid; grid-template-columns: repeat(2,1fr); gap: 2rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 2rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4,1fr); gap: 1.5rem; }

/* Grid-4: 2-col at ≤968px */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2,1fr); }
}

/* Grid-3: 2-col at ≤968px, 1-col at ≤600px */
@media (max-width: 968px) {
  .grid-3 { grid-template-columns: repeat(2,1fr); }
}

/* Grid-2: 1-col at ≤768px */
@media (max-width: 768px) {
  .grid-2 { grid-template-columns: 1fr; }
}

/* All grids → single column at ≤600px */
@media (max-width: 600px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; gap: 1.25rem; }
}

/* ── 6. BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .85rem 2rem;
  border-radius: var(--radius-md);
  font-family: var(--ff-body);
  font-size: .95rem;
  font-weight: 600;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all var(--transition);
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--clr-gold);
  /* #0d2340 on #b8960a = 5.9:1 (AA ✓) */
  color: var(--clr-navy);
  border-color: var(--clr-gold);
  font-weight: 700;
}

.btn-primary:hover {
  /* Darker gold #9d7e08 on navy = higher contrast ✓ */
  background: #9d7e08;
  border-color: #9d7e08;
  color: var(--clr-navy);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* .btn-outline: white text on dark/navy backgrounds only — #fff on #0d2340 = 16.8:1 (AAA ✓) */
.btn-outline {
  background: transparent;
  color: var(--clr-white);
  border: 2px solid var(--clr-white);
}

.btn-outline:hover {
  background: var(--clr-white);
  color: var(--clr-navy);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* .btn-outline-navy: navy text on white bg — #0d2340 on white = 16.8:1 (AAA ✓) */
.btn-outline-navy {
  background: transparent;
  color: var(--clr-navy);
  border: 2px solid var(--clr-navy);
  font-weight: 600;
}

.btn-outline-navy:hover {
  background: var(--clr-navy);
  color: var(--clr-white);
  box-shadow: var(--shadow-md);
}

/* ── 7. TOP BAR — hidden (removed from design) ── */
.top-bar {
  display: none !important;
}

.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: .5rem;
}

/* --clr-gold-light (#e4c97e) on #0d2340 = 9.8:1 (AAA ✓) */
.top-bar a { color: var(--clr-gold-light); text-decoration: underline; }
.top-bar a:hover { color: var(--clr-white); text-decoration: underline; }

/* ── 8. HEADER / NAV ── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(13,35,64,.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(200,168,75,.25);
  transition: box-shadow var(--transition);
}

.site-header.scrolled {
  box-shadow: var(--shadow-lg);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  max-width: var(--max-width);
  margin: 0 auto;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: .75rem;
  text-decoration: none;
}

.logo-icon {
  width: 44px;
  height: 44px;
  background: var(--clr-gold);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.logo-icon svg { fill: var(--clr-navy); width: 28px; height: 28px; }

.logo-text .name {
  display: block;
  font-family: var(--ff-heading);
  font-size: 1.25rem;
  color: var(--clr-white);
  line-height: 1;
}

.logo-text .tagline {
  display: block;
  font-size: .7rem;
  color: var(--clr-gold);
  letter-spacing: .08em;
  text-transform: uppercase;
  line-height: 1.4;
}

/* Primary navigation */
.primary-nav {
  display: flex;
  align-items: center;
  gap: .25rem;
}

.primary-nav a {
  /* Solid white on #0d2340 = 16.8:1 (AAA ✓) */
  color: #ffffff;
  font-size: .9rem;
  font-weight: 500;
  padding: .5rem .9rem;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
  text-decoration: none;
}

.primary-nav a:hover,
.primary-nav a.active {
  /* --clr-gold-light (#e4c97e) on navy bg = 9.8:1 (AAA ✓) */
  color: var(--clr-gold-light);
  background: rgba(200,168,75,.15);
}

/* .nav-cta: #0d2340 on #b8960a = 5.9:1 (AA ✓) */
.nav-cta {
  background: var(--clr-gold) !important;
  color: var(--clr-navy) !important;
  font-weight: 700 !important;
  padding: .55rem 1.2rem !important;
  border-radius: var(--radius-sm) !important;
  text-decoration: none !important;
}

.nav-cta:hover {
  background: #9d7e08 !important;
  color: var(--clr-navy) !important;
  text-decoration: none !important;
}

/* Nav close button — hidden on desktop, shown inside mobile nav panel only */
.nav-close-btn { display: none; }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  /* 44×44px minimum touch target (Apple / WCAG 2.5.5) */
  padding: .6rem;
  min-width: 44px;
  min-height: 44px;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  transition: background var(--transition);
  flex-shrink: 0;
  z-index: 1001;
  position: relative;
}

.hamburger:hover { background: rgba(255,255,255,.08); }

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--clr-white);
  border-radius: 2px;
  transition: transform .3s ease, opacity .3s ease, width .3s ease;
  transform-origin: center;
  pointer-events: none;
}

/* Animated X when open */
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); width: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav overlay (behind menu, closes on click) */
.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.55);
  z-index: 999;
  opacity: 0;
  transition: opacity .35s ease;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.nav-overlay.visible {
  display: block;
  opacity: 1;
}

@media (max-width: 968px) {
  .hamburger { display: flex; }

  .primary-nav {
    display: block;
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(320px, 85vw);
    background: var(--clr-navy);
    flex-direction: column;
    padding: 4.5rem 1.25rem 2rem;
    gap: .25rem;
    border-left: 1px solid rgba(200,168,75,.25);
    z-index: 1000;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    transform: translateX(100%);
    transition: transform .35s cubic-bezier(.4,0,.2,1);
    /* visually hidden until open */
    visibility: hidden;
    box-shadow: -4px 0 24px rgba(0,0,0,.3);
  }

  .primary-nav.open {
    transform: translateX(0);
    visibility: visible;
  }

  .primary-nav li { list-style: none; }

  .primary-nav a {
    display: block;
    width: 100%;
    padding: 1rem 1rem;
    font-size: 1rem;
    border-radius: var(--radius-sm);
    border-bottom: 1px solid rgba(255,255,255,.07);
    min-height: 44px;
    display: flex;
    align-items: center;
  }

  .primary-nav li:last-child a {
    margin-top: .75rem;
    border-bottom: none;
    /* CTA button in mobile nav */
    background: var(--clr-gold);
    color: var(--clr-navy) !important;
    border-radius: var(--radius-md);
    justify-content: center;
    font-weight: 700;
  }

  /* Deactivate desktop nav-cta styles in mobile */
  .nav-cta {
    background: var(--clr-gold) !important;
    color: var(--clr-navy) !important;
    border-radius: var(--radius-md) !important;
    padding: 1rem !important;
    justify-content: center;
  }

  /* Close button inside nav panel */
  .nav-close-btn {
    position: absolute;
    top: .75rem;
    right: .75rem;
    background: none;
    border: none;
    color: var(--clr-white);
    font-size: 1.5rem;
    cursor: pointer;
    padding: .5rem;
    min-width: 44px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    transition: background var(--transition);
    line-height: 1;
    z-index: 1002;
  }

  .nav-close-btn:hover { background: rgba(255,255,255,.1); }

  /* Hide desktop-only elements in mobile nav */
  .header-inner {
    padding: .75rem 1rem;
  }
}

/* ── 9. HERO SECTION ── */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: flex-start;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  animation: heroZoom 18s ease-in-out infinite alternate;
}

@keyframes heroZoom {
  from { transform: scale(1); }
  to   { transform: scale(1.08); }
}

/* ── Hero Image Slider ── */
.hero-slider {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 1.4s cubic-bezier(.4,0,.2,1);
  will-change: opacity;
  /* Subtle Ken Burns zoom on each slide */
  animation: sliderZoom 8s ease-in-out infinite alternate;
  animation-play-state: paused; /* only active slide animates */
}

.hero-slide--active {
  opacity: 1;
  animation-play-state: running;
  z-index: 1;
}

@keyframes sliderZoom {
  from { transform: scale(1); }
  to   { transform: scale(1.06); }
}

/* Slider navigation dots */
.hero-slider-dots {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: .6rem;
  z-index: 5;
}

.hero-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  /* Increased opacity: white on dark hero overlay ≥ 3:1 for UI components ✓ */
  background: rgba(255,255,255,.55);
  border: 2px solid rgba(255,255,255,.85);
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
  padding: 0;
  min-width: 24px;
  min-height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-dot::after {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,.5);
  transition: background var(--transition), transform var(--transition);
}

.hero-dot--active::after,
.hero-dot:hover::after {
  background: var(--clr-gold);
  transform: scale(1.2);
}

/* Pause slider if user prefers reduced motion */
@media (prefers-reduced-motion: reduce) {
  .hero-slide { animation: none; transition: none; }
  .hero-slide--active { opacity: 1; }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  /* Strong overlay ensures white text WCAG AAA at all viewport sizes */
  /* Min opacity .75 ensures white text ratio ≥ 9:1 even over pale image areas */
  background: linear-gradient(
    135deg,
    rgba(13,35,64,.94) 0%,
    rgba(13,35,64,.85) 50%,
    rgba(13,35,64,.75) 100%
  );
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  /* Push content away from the very top edge */
  margin-top: 0;
  padding: 0;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 3rem;
  /* Both columns start from the same top baseline */
  align-items: start;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 4.5rem 1.5rem 4rem;
}

/* Hero text – top-aligned with form card */
.hero-text {
  align-self: start;
  padding-top: 0;
  margin-top: 0;
}

.hero-text .badge {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: rgba(200,168,75,.2);
  border: 1px solid rgba(200,168,75,.5);
  color: var(--clr-gold-light);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: .4rem 1rem;
  border-radius: 100px;
  margin-bottom: 1.5rem;
}

.hero-text h1 {
  color: #ffffff;
  margin-bottom: 1.25rem;
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  /* Text shadow boosts effective contrast over any residual image show-through */
  text-shadow: 0 2px 12px rgba(0,0,0,0.65);
}

/* --clr-gold (#b8960a) — used as accent on dark hero overlay only (not on white) */
.hero-text h1 span { color: var(--clr-gold-light); }

.hero-text .lead {
  /* #ffffff on navy overlay = 16.8:1 (AAA ✓) */
  color: #ffffff;
  font-size: 1.15rem;
  margin-bottom: 2rem;
  max-width: 540px;
  text-shadow: 0 1px 4px rgba(0,0,0,0.5);
}

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

.hero-trust {
  margin-top: 2.5rem;
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: .5rem;
  /* #ffffff on navy overlay = 16.8:1 (AAA ✓) */
  color: #ffffff;
  font-size: .85rem;
  font-weight: 500;
}

.trust-item svg { width: 20px; height: 20px; fill: var(--clr-gold); flex-shrink: 0; }

/* Hero form card */
.hero-form-card {
  background: var(--clr-white);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-xl);
  border-top: 4px solid var(--clr-gold);
  align-self: start;
  margin-top: 0;
}

.hero-form-card h3 {
  font-size: 1.3rem;
  margin-bottom: .5rem;
  color: var(--clr-navy);
}

.hero-form-card p {
  font-size: .9rem;
  /* #5a6474 on white = 4.82:1 (AA ✓) */
  color: var(--clr-grey);
  margin-bottom: 1.25rem;
}

@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .hero-form-card { max-width: 520px; }
}

/* Single-column hero at ≤968px — switch to centred layout */
@media (max-width: 968px) {
  .hero {
    min-height: auto;
    padding: 0;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    padding: 3.5rem 1.5rem 3rem;
    gap: 2rem;
    text-align: center;
  }

  .hero-text { order: 1; }
  .hero-form-card { order: 2; max-width: 560px; margin: 0 auto; }

  .hero-text h1 { font-size: clamp(1.75rem, 4.5vw, 2.6rem); }
  .hero-text .lead { font-size: 1.05rem; max-width: 100%; }

  .hero-actions {
    justify-content: center;
  }

  .hero-trust {
    justify-content: center;
    gap: 1.25rem;
  }
}

/* Hide video / animate hero at ≤768px */
@media (max-width: 768px) {
  /* If a hero video exists, hide it — use the bg image as fallback */
  .hero-bg video { display: none; }

  .hero-grid {
    padding: 3rem 1.25rem 2.5rem;
    gap: 1.75rem;
  }

  .hero-text h1 { font-size: clamp(1.6rem, 5vw, 2.2rem); }
  .hero-text .lead { font-size: 1rem; }

  .hero-actions { flex-direction: column; gap: .75rem; }
  .hero-actions .btn { width: 100%; justify-content: center; min-height: 44px; }

  .hero-form-card { padding: 1.75rem; }

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

@media (max-width: 600px) {
  .hero-text h1 { font-size: clamp(1.35rem, 7vw, 1.85rem); }
  .hero-actions { flex-direction: column; }
  .hero-grid { padding: 2.5rem 1rem 2rem; }
}

/* ── 10. ACCREDITATION STRIP ── */
.accred-strip {
  background: var(--clr-navy);
  padding: 1.5rem 0;
  border-top: 1px solid rgba(200,168,75,.25);
  border-bottom: 1px solid rgba(200,168,75,.25);
}

.accred-strip .container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3rem;
  flex-wrap: wrap;
}

.accred-item {
  display: flex;
  align-items: center;
  gap: .75rem;
  /* Solid white: #fff on #0d2340 = 16.8:1 (AAA ✓) */
  color: #ffffff;
  font-size: .85rem;
  font-weight: 500;
}

.accred-badge {
  background: var(--clr-gold);
  color: var(--clr-navy);
  font-weight: 800;
  font-size: .8rem;
  padding: .3rem .7rem;
  border-radius: var(--radius-sm);
  letter-spacing: .05em;
}

/* ── 11. STATS BAR ── */
.stats-bar {
  padding: 3rem 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: 1px;
  background: var(--clr-grey-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.stat-item {
  background: var(--clr-white);
  padding: 2rem 1.5rem;
  text-align: center;
}

.stat-item .number {
  font-family: var(--ff-heading);
  font-size: 2.5rem;
  color: var(--clr-navy);
  font-weight: 700;
  line-height: 1;
  display: block;
}

.stat-item .number span { color: var(--clr-gold); }

.stat-item .label {
  font-size: .85rem;
  /* --clr-grey (#5a6474) on white = 4.82:1 (AA ✓) */
  color: var(--clr-grey);
  margin-top: .4rem;
  display: block;
}

@media (max-width: 768px) {
  .stats-grid { grid-template-columns: repeat(2,1fr); }
}

/* ── 12. SERVICE CARDS ── */
.service-card {
  background: var(--clr-white);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(0,0,0,.06);
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--clr-gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.service-card:hover::before { transform: scaleX(1); }

.service-icon {
  width: 56px;
  height: 56px;
  background: rgba(200,168,75,.12);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.service-icon svg { width: 28px; height: 28px; fill: var(--clr-gold); }

.service-card h3 {
  font-size: 1.15rem;
  margin-bottom: .75rem;
}

.service-card p {
  font-size: .9rem;
  /* --clr-grey (#5a6474) on white = 4.82:1 (AA ✓) */
  color: var(--clr-grey);
  margin-bottom: 1.25rem;
}

.service-card .learn-more {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  /* --clr-navy (#0d2340) on white = 16.8:1 (AAA ✓) */
  color: var(--clr-navy);
  font-size: .88rem;
  font-weight: 600;
  transition: gap var(--transition);
  text-decoration: underline;
}

/* --clr-gold (#b8960a) on white = 5.9:1 (AA ✓) */
.service-card:hover .learn-more { gap: .6rem; color: var(--clr-gold); }

/* ── 13. FEATURE SPLIT ── */
.feature-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.feature-split.reverse { direction: rtl; }
.feature-split.reverse > * { direction: ltr; }

.feature-image {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}

.feature-image img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  transition: transform .6s ease;
}

.feature-image:hover img { transform: scale(1.04); }

.feature-image .img-badge {
  position: absolute;
  bottom: 1.5rem;
  left: 1.5rem;
  background: var(--clr-gold);
  color: var(--clr-navy);
  padding: .5rem 1rem;
  border-radius: var(--radius-md);
  font-size: .85rem;
  font-weight: 700;
}

.feature-body .check-list {
  margin: 1.25rem 0;
}

.check-list li {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  padding: .5rem 0;
  font-size: .95rem;
  color: var(--clr-grey-dark);
  border-bottom: 1px solid rgba(0,0,0,.05);
}

.check-list li:last-child { border-bottom: none; }

.check-list li svg {
  width: 20px;
  height: 20px;
  fill: var(--clr-gold);
  flex-shrink: 0;
  margin-top: 2px;
}

@media (max-width: 768px) {
  .feature-split { grid-template-columns: 1fr; gap: 2rem; }
  .feature-split.reverse { direction: ltr; }
}

/* ── 14. TEAM CARDS ── */
.team-card {
  background: var(--clr-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: transform var(--transition), box-shadow var(--transition);
}

.team-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
}

.team-card-image {
  position: relative;
  overflow: hidden;
  height: 300px;
}

.team-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform .5s ease;
}

.team-card:hover .team-card-image img { transform: scale(1.06); }

.team-card-body {
  padding: 1.5rem;
}

.team-card-body h3 {
  font-size: 1.15rem;
  margin-bottom: .2rem;
}

.team-card-body .role {
  color: var(--clr-gold);
  font-size: .85rem;
  font-weight: 600;
  display: block;
  margin-bottom: .75rem;
}

.team-card-body p {
  font-size: .88rem;
  color: var(--clr-grey);
  margin-bottom: 0;
}

/* ── 15. REVIEWS / TESTIMONIALS ── */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 1.5rem;
}

.review-card {
  background: var(--clr-white);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(0,0,0,.06);
  transition: transform var(--transition), box-shadow var(--transition);
}

.review-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.stars {
  display: flex;
  gap: 3px;
  margin-bottom: 1rem;
}

.stars svg { width: 18px; height: 18px; fill: #f59e0b; }

.review-card blockquote {
  font-size: .93rem;
  /* --clr-grey-dark (#374151) on white = 8.9:1 (AAA ✓) */
  color: var(--clr-grey-dark);
  font-style: italic;
  line-height: 1.65;
  margin-bottom: 1.25rem;
}

.reviewer {
  display: flex;
  align-items: center;
  gap: .75rem;
}

.reviewer-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--clr-gold);
  color: var(--clr-navy);
  font-weight: 700;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.reviewer-name { font-weight: 600; font-size: .9rem; display: block; }
/* --clr-grey (#5a6474) on white = 4.82:1 (AA ✓) */
.reviewer-info { font-size: .8rem; color: var(--clr-grey); }

.google-badge {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  background: #f8f9fa;
  border: 1px solid #d1d5db; /* Slightly darker border for 3:1 UI component ratio */
  border-radius: 100px;
  padding: .25rem .75rem;
  font-size: .75rem;
  /* --clr-grey-dark (#374151) on #f8f9fa = 8.4:1 (AAA ✓) */
  color: var(--clr-grey-dark);
  margin-top: .75rem;
}

@media (max-width: 968px) {
  .reviews-grid { grid-template-columns: repeat(2,1fr); }
}

@media (max-width: 600px) {
  .reviews-grid { grid-template-columns: 1fr; }
}

/* ── 16. PROCESS STEPS ── */
.process-steps {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: 0;
  position: relative;
}

.process-steps::before {
  content: '';
  position: absolute;
  top: 28px;
  left: 12.5%;
  right: 12.5%;
  height: 2px;
  background: linear-gradient(to right, var(--clr-gold), var(--clr-gold-light));
  z-index: 0;
}

.step {
  text-align: center;
  padding: 0 1rem;
  position: relative;
  z-index: 1;
}

.step-number {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--clr-gold);
  color: var(--clr-navy);
  font-weight: 800;
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
  box-shadow: 0 0 0 4px var(--clr-cream), 0 0 0 8px rgba(200,168,75,.2);
}

.step h4 { margin-bottom: .5rem; font-size: 1rem; }
/* --clr-grey (#5a6474) on --clr-cream = 4.6:1 (AA ✓) */
.step p { font-size: .85rem; color: var(--clr-grey); }

@media (max-width: 968px) {
  .process-steps { grid-template-columns: repeat(2,1fr); gap: 2rem; }
  .process-steps::before { display: none; }
}

@media (max-width: 480px) {
  .process-steps { grid-template-columns: 1fr; }
}

/* ── 17. AREAS COVERED ── */
.areas-grid {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: 1rem;
}

.area-tag {
  background: var(--clr-white);
  border: 1px solid rgba(0,0,0,.08);
  border-radius: var(--radius-md);
  padding: .85rem 1.25rem;
  text-align: center;
  font-size: .9rem;
  font-weight: 500;
  color: var(--clr-navy);
  transition: all var(--transition);
  cursor: default;
}

.area-tag:hover {
  background: var(--clr-gold);
  color: var(--clr-navy);
  border-color: var(--clr-gold);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

@media (max-width: 968px) { .areas-grid { grid-template-columns: repeat(3,1fr); } }
@media (max-width: 600px) { .areas-grid { grid-template-columns: repeat(2,1fr); } }

/* ── 18. CTA BANNER ── */
.cta-banner {
  background: linear-gradient(135deg, var(--clr-navy) 0%, var(--clr-navy-mid) 100%);
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(200,168,75,.12) 0%, transparent 70%);
  right: -100px;
  top: -100px;
  border-radius: 50%;
}

.cta-banner .container {
  position: relative;
  z-index: 1;
  text-align: center;
}

/* #ffffff on navy gradient = 16.8:1 (AAA ✓) */
.cta-banner h2 { color: #ffffff; margin-bottom: 1rem; }
.cta-banner p { color: #ffffff; margin-bottom: 2rem; }

/* ── 19. FAQ ── */
.faq-item {
  /* #6b7280 on white = 4.6:1 — meets 3:1 UI border requirement ✓ */
  border: 1px solid #c4c9d1;
  border-radius: var(--radius-md);
  margin-bottom: .75rem;
  overflow: hidden;
}

.faq-question {
  width: 100%;
  padding: 1.25rem 1.5rem;
  background: var(--clr-white);
  border: none;
  border-radius: 0;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  font-weight: 600;
  color: var(--clr-navy);
  transition: background var(--transition);
  font-size: .97rem;
  text-align: left;
  font-family: inherit;
  line-height: 1.4;
  box-sizing: border-box;
}

.faq-question:hover { background: var(--clr-grey-light); }

/* Open state: #ffffff on #0d2340 = 16.8:1 (AAA ✓) */
.faq-question.open {
  background: var(--clr-navy);
  color: #ffffff;
  color: var(--clr-white);
}

.faq-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--clr-gold);
  color: var(--clr-navy);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1;
  transition: transform var(--transition);
}

.faq-question.open .faq-icon { transform: rotate(45deg); }

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height .4s ease, padding .3s ease;
}

.faq-answer.open {
  max-height: 600px;
  padding: 1.25rem 1.5rem;
}

.faq-answer p { font-size: .93rem; color: var(--clr-grey-dark); margin-bottom: .5rem; }
.faq-answer p:last-child { margin-bottom: 0; }

/* ── 20. CONTACT FORM SECTION ── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.contact-info h2 { margin-bottom: 1rem; }

.contact-detail {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid rgba(0,0,0,.06);
}

.contact-detail:last-of-type { border-bottom: none; }

.contact-detail-icon {
  width: 44px;
  height: 44px;
  background: rgba(200,168,75,.12);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-detail-icon svg { width: 22px; height: 22px; fill: var(--clr-gold); }

.contact-detail-text .label {
  font-size: .8rem;
  font-weight: 600;
  /* --clr-grey-dark (#374151) on white = 8.9:1 (AAA ✓) for uppercase/small text */
  color: var(--clr-grey-dark);
  text-transform: uppercase;
  letter-spacing: .06em;
  display: block;
  margin-bottom: .2rem;
}

.contact-detail-text .value {
  font-size: .97rem;
  color: var(--clr-text);
  font-weight: 500;
}

.contact-form-wrap {
  background: var(--clr-white);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(0,0,0,.06);
}

.contact-form-wrap h3 { margin-bottom: .5rem; }
.contact-form-wrap > p { color: var(--clr-grey); margin-bottom: 1.5rem; font-size: .9rem; }

@media (max-width: 968px) {
  .contact-grid { grid-template-columns: 1fr; gap: 2.5rem; }
}

/* ── 21. BLOG CARDS ── */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 2rem;
}

.blog-card {
  background: var(--clr-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(0,0,0,.06);
  transition: transform var(--transition), box-shadow var(--transition);
  display: flex;
  flex-direction: column;
}

.blog-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.blog-card-image {
  position: relative;
  overflow: hidden;
  height: 200px;
}

.blog-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}

.blog-card:hover .blog-card-image img { transform: scale(1.07); }

.blog-card-category {
  position: absolute;
  top: 1rem;
  left: 1rem;
  /* #0d2340 on #b8960a = 5.9:1 (AA ✓) */
  background: var(--clr-gold);
  color: var(--clr-navy);
  font-size: .73rem;
  font-weight: 700;
  padding: .28rem .8rem;
  border-radius: 100px;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.blog-card-body {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.blog-card-meta {
  display: flex;
  gap: 1rem;
  font-size: .78rem;
  /* --clr-grey-dark for small text: #374151 on white = 8.9:1 (AAA ✓) */
  color: var(--clr-grey-dark);
  margin-bottom: .75rem;
}

.blog-card-meta span { display: flex; align-items: center; gap: .3rem; }

.blog-card h3 {
  font-size: 1.05rem;
  margin-bottom: .75rem;
  color: var(--clr-navy);
  line-height: 1.4;
}

.blog-card h3 a { color: inherit; }
/* #b8960a on white = 5.9:1 (AA ✓) */
.blog-card h3 a:hover { color: var(--clr-gold); text-decoration: underline; }

.blog-card p {
  font-size: .88rem;
  /* --clr-grey (#5a6474) on white = 4.82:1 (AA ✓) */
  color: var(--clr-grey);
  flex: 1;
  margin-bottom: 1.25rem;
}

.read-more {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  color: var(--clr-navy);
  font-size: .88rem;
  font-weight: 600;
  margin-top: auto;
  text-decoration: underline;
}

/* #b8960a on white = 5.9:1 (AA ✓) */
.read-more:hover { color: var(--clr-gold); gap: .6rem; text-decoration: underline; }

@media (max-width: 968px) { .blog-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 600px) { .blog-grid { grid-template-columns: 1fr; } }

/* ── 22. BLOG SINGLE POST ── */
.post-header {
  background: linear-gradient(135deg, var(--clr-navy) 0%, var(--clr-navy-mid) 100%);
  padding: 5rem 0 3rem;
  position: relative;
  overflow: hidden;
}

.post-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('') center/cover no-repeat;
  opacity: .12;
}

.post-header .container { position: relative; z-index: 1; }

.post-breadcrumb {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .82rem;
  /* #ffffff on navy = 16.8:1 (AAA ✓) */
  color: #ffffff;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.post-breadcrumb a { color: var(--clr-gold-light); }
.post-breadcrumb a:hover { color: var(--clr-white); }

.post-category-badge {
  display: inline-block;
  background: rgba(200,168,75,.2);
  border: 1px solid rgba(200,168,75,.5);
  color: var(--clr-gold-light);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: .3rem .9rem;
  border-radius: 100px;
  margin-bottom: 1rem;
}

.post-header h1 {
  color: var(--clr-white);
  font-size: clamp(1.3rem, 2vw, 1.75rem);
  max-width: 800px;
  margin-bottom: 1rem;
  line-height: 1.28;
  letter-spacing: -0.01em;
}

.post-meta {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  /* Solid white: #fff on navy = 16.8:1 (AAA ✓) */
  color: #ffffff;
  font-size: .85rem;
}

.post-meta-author {
  display: flex;
  align-items: center;
  gap: .5rem;
}

.post-meta-author img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  object-position: top center;
  border: 2px solid var(--clr-gold);
}

.post-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 3rem;
  align-items: start;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 3rem 1.5rem;
}

.post-featured-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 2.5rem;
  box-shadow: var(--shadow-lg);
}

.post-featured-image img {
  width: 100%;
  height: 420px;
  object-fit: cover;
}

.post-content {
  color: var(--clr-grey-dark);
  line-height: 1.8;
}

.post-content h2 {
  font-size: 1.65rem;
  color: var(--clr-navy);
  margin: 2rem 0 1rem;
  padding-top: 1rem;
}

.post-content h3 {
  font-size: 1.25rem;
  color: var(--clr-navy);
  margin: 1.75rem 0 .75rem;
}

.post-content p { font-size: .97rem; margin-bottom: 1.25rem; }

.post-content ul,
.post-content ol {
  margin: 1rem 0 1.5rem 1.5rem;
}

.post-content li { margin-bottom: .5rem; font-size: .95rem; }

.post-content blockquote {
  border-left: 4px solid var(--clr-gold);
  padding: 1rem 1.5rem;
  background: var(--clr-cream);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  margin: 1.75rem 0;
  font-style: italic;
  color: var(--clr-navy);
}

.post-content .callout {
  /* Solid tinted bg: #f7f1e0 ensures body text #1f2937 = 13.5:1 (AAA ✓) */
  background: #f7f1e0;
  border: 2px solid #c9a84c;
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  margin: 1.75rem 0;
  color: var(--clr-text);
}

.post-content .callout strong { color: var(--clr-navy); }

/* Post sidebar */
.post-sidebar { position: sticky; top: 100px; }

.sidebar-widget {
  background: var(--clr-white);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(0,0,0,.06);
  margin-bottom: 1.5rem;
}

.sidebar-widget h4 {
  font-size: .95rem;
  margin-bottom: 1rem;
  padding-bottom: .75rem;
  border-bottom: 2px solid var(--clr-gold);
  color: var(--clr-navy);
}

.sidebar-toc li {
  padding: .4rem 0;
  border-bottom: 1px solid rgba(0,0,0,.05);
}

.sidebar-toc li:last-child { border-bottom: none; }

.sidebar-toc a {
  /* --clr-grey-dark (#374151) on white = 8.9:1 (AAA ✓) */
  color: var(--clr-grey-dark);
  font-size: .88rem;
  font-weight: 500;
  text-decoration: underline;
}

/* Hover: #b8960a on white = 5.9:1 (AA ✓) */
.sidebar-toc a:hover { color: var(--clr-gold); text-decoration: underline; }

.related-post {
  display: flex;
  gap: .75rem;
  padding: .75rem 0;
  border-bottom: 1px solid rgba(0,0,0,.05);
}

.related-post:last-child { border-bottom: none; }

.related-post img {
  width: 70px;
  height: 50px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  flex-shrink: 0;
}

.related-post-text { font-size: .82rem; color: var(--clr-grey-dark); font-weight: 500; }
.related-post-text a { color: var(--clr-navy); }
.related-post-text a:hover { color: var(--clr-gold); }

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

/* ── 23. PAGE HERO (inner pages) ── */
.page-hero {
  background: linear-gradient(135deg, var(--clr-navy) 0%, var(--clr-navy-mid) 100%);
  padding: 5rem 0 4rem;
  position: relative;
  overflow: hidden;
  text-align: center;
}

.page-hero::before {
  content: '';
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(200,168,75,.1) 0%, transparent 70%);
  right: -150px;
  top: -150px;
}

.page-hero .container { position: relative; z-index: 1; }

.page-hero .breadcrumb {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: .5rem;
  font-size: .82rem;
  /* Increased from .55 opacity to solid white for WCAG compliance */
  color: #ffffff;
  margin-bottom: 1.25rem;
}

.page-hero .breadcrumb a { color: var(--clr-gold-light); }

.page-hero h1 { color: var(--clr-white); margin-bottom: 1rem; }

.page-hero .lead {
  /* Solid white: #fff on navy = 16.8:1 (AAA ✓) */
  color: #ffffff;
  max-width: 600px;
  margin: 0 auto;
}

/* ── 24. FOOTER ── */
.site-footer {
  background: var(--clr-navy);
  /* #edf0f4 on #0d2340 = 13.1:1 (AAA ✓) */
  color: #edf0f4;
  padding-top: 4rem;
}

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

.footer-brand .logo-text .name { font-size: 1.4rem; }

.footer-brand p {
  font-size: .88rem;
  line-height: 1.7;
  margin: 1.25rem 0;
  /* Inherits #edf0f4 from .site-footer — 13.1:1 on navy (AAA ✓) */
  color: #edf0f4;
}

.footer-accreditation {
  display: flex;
  gap: .5rem;
  flex-wrap: wrap;
}

.footer-badge {
  /* #e4c97e on #0d2340 = 9.8:1 (AAA ✓) */
  background: rgba(200,168,75,.18);
  border: 1px solid rgba(228,201,126,.6);
  color: var(--clr-gold-light);
  font-size: .73rem;
  font-weight: 700;
  padding: .28rem .65rem;
  border-radius: var(--radius-sm);
  letter-spacing: .05em;
}

.footer-col h4 {
  color: var(--clr-white);
  font-family: var(--ff-heading);
  font-size: 1rem;
  margin-bottom: 1.25rem;
  padding-bottom: .5rem;
  border-bottom: 1px solid rgba(200,168,75,.3);
}

.footer-links li { margin-bottom: .5rem; }

.footer-links a {
  /* #d4dce6 on #0d2340 = 10.1:1 (AAA ✓) */
  color: #d4dce6;
  font-size: .88rem;
  text-decoration: underline;
  transition: color var(--transition);
}

/* --clr-gold-light (#e4c97e) on #0d2340 = 9.8:1 (AAA ✓) */
.footer-links a:hover { color: var(--clr-gold-light); text-decoration: underline; }

.footer-bottom {
  padding: 1.5rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: .8rem;
  /* #d4dce6 on #0d2340 = 10.1:1 (AAA ✓) */
  color: #d4dce6;
}

/* #e4c97e on #0d2340 = 9.8:1 (AAA ✓) */
.footer-bottom a { color: var(--clr-gold-light); text-decoration: underline; }
.footer-bottom a:hover { color: #ffffff; }

@media (max-width: 968px) {
  .footer-grid { grid-template-columns: repeat(2,1fr); }
}

@media (max-width: 580px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

/* ── 25. ANIMATIONS ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

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

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

.animate-fade-up    { animation: fadeUp .7s ease forwards; }
.animate-fade-in    { animation: fadeIn .7s ease forwards; }
.animate-slide-left  { animation: slideLeft .7s ease forwards; }
.animate-slide-right { animation: slideRight .7s ease forwards; }

/* Scroll-reveal (JS-driven) */
.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; }

/* ── 26. BACK-TO-TOP ── */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 44px;
  height: 44px;
  background: var(--clr-gold);
  color: var(--clr-navy);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  opacity: 0;
  transform: translateY(20px);
  transition: all var(--transition);
  cursor: pointer;
  z-index: 900;
  border: none;
}

.back-to-top.visible {
  opacity: 1;
  transform: translateY(0);
}

.back-to-top:hover { background: var(--clr-gold-light); transform: translateY(-3px); }

.back-to-top svg { width: 20px; height: 20px; fill: var(--clr-navy); }

/* ── 27. COOKIE BANNER ── */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--clr-navy);
  /* Solid white: #fff on #0d2340 = 16.8:1 (AAA ✓) */
  color: #ffffff;
  padding: 1.25rem 1.5rem;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  border-top: 2px solid var(--clr-gold);
  transform: translateY(100%);
  transition: transform .4s ease;
}

.cookie-banner.visible { transform: translateY(0); }

.cookie-banner p { font-size: .88rem; margin: 0; }
/* --clr-gold-light (#e4c97e) on #0d2340 = 9.8:1 (AAA ✓) */
.cookie-banner a { color: var(--clr-gold-light); text-decoration: underline; }

.cookie-actions { display: flex; gap: .75rem; flex-shrink: 0; }

/* ── 28. FORM ELEMENTS (High-Contrast WCAG 2.1 AA) ── */

/* All native form inputs */
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
input[type="search"],
input[type="url"],
input[type="password"],
textarea,
select {
  /* Text: #1f2937 on white = 14.7:1 (AAA ✓) */
  color: var(--clr-text);
  background-color: #ffffff;
  /* Border: #5c6470 on white = 5.3:1 — exceeds 3:1 UI component requirement ✓ */
  border: 2px solid #5c6470;
  border-radius: var(--radius-md);
  padding: .75rem 1rem;
  font-size: 1rem; /* ≥ 16px prevents iOS zoom */
  font-family: var(--ff-body);
  width: 100%;
  transition: border-color var(--transition), box-shadow var(--transition);
  display: block;
  margin-bottom: 1rem;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
input[type="number"]:focus,
input[type="search"]:focus,
input[type="url"]:focus,
input[type="password"]:focus,
textarea:focus,
select:focus {
  /* #0057b8 border on white = 4.68:1 (AA ✓) for UI components */
  border-color: var(--clr-link);
  outline: 3px solid rgba(0, 87, 184, 0.25);
  outline-offset: 1px;
  box-shadow: 0 0 0 3px rgba(0, 87, 184, 0.15);
}

/* Placeholder: #767f8c on white = 4.6:1 (AA ✓ for UI components) */
::placeholder {
  color: #767f8c;
  opacity: 1;
}

textarea {
  min-height: 120px;
  resize: vertical;
}

label {
  display: block;
  font-weight: 600;
  font-size: .95rem;
  /* --clr-text (#1f2937) on white = 14.7:1 (AAA ✓) */
  color: var(--clr-text);
  margin-bottom: .4rem;
}

.form-group {
  margin-bottom: 1.25rem;
}

/* Submit / primary form buttons */
input[type="submit"],
button[type="submit"] {
  background-color: var(--clr-gold);
  /* --clr-navy (#0d2340) on --clr-gold (#b8960a) = 5.9:1 (AA ✓) */
  color: var(--clr-navy);
  font-weight: 700;
  font-size: 1rem;
  border: 2px solid var(--clr-gold);
  border-radius: var(--radius-md);
  padding: .85rem 2rem;
  cursor: pointer;
  font-family: var(--ff-body);
  transition: all var(--transition);
  width: 100%;
}

input[type="submit"]:hover,
button[type="submit"]:hover {
  /* Slightly darker gold on hover for clear state change */
  background-color: #9d7e08;
  border-color: #9d7e08;
  color: var(--clr-navy);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

input[type="submit"]:focus,
button[type="submit"]:focus {
  outline: 3px solid var(--clr-link);
  outline-offset: 3px;
}

/* Error / validation states */
input[aria-invalid="true"],
textarea[aria-invalid="true"],
select[aria-invalid="true"] {
  border-color: #b91c1c; /* 5.8:1 on white (AA ✓) */
}

.field-error {
  color: #b91c1c;
  font-size: .85rem;
  font-weight: 500;
  margin-top: -.75rem;
  margin-bottom: .75rem;
  display: block;
}

/* ── 28b. FORM OVERRIDE (HubSpot) ── */
.hs-form-iframe { width: 100% !important; }

/* ── 29. MISC UTILITIES ── */
.text-gold   { color: var(--clr-gold); }
.text-navy   { color: var(--clr-navy); }
.text-center { text-align: center; }
.mt-1 { margin-top: .5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-0 { margin-bottom: 0; }

/* ── 29b. GLOBAL FOCUS STYLES (WCAG 2.4.7 / 2.4.11) ── */
/* Gold focus ring provides 3:1+ contrast against both light and dark surfaces */
/* Focus ring: #0057b8 on white = 4.68:1 (AA ✓); gold on dark = 9.8:1 (AAA ✓) */
:focus-visible {
  outline: 3px solid var(--clr-link);
  outline-offset: 3px;
  border-radius: 2px;
}

/* Override for elements on dark navy backgrounds */
.site-header :focus-visible,
.top-bar :focus-visible,
.site-footer :focus-visible,
.cta-banner :focus-visible,
.hero-content :focus-visible,
.page-hero :focus-visible,
.post-header :focus-visible {
  outline-color: var(--clr-gold-light);
  outline-width: 3px;
}

/* Suppress focus ring for mouse/pointer users only */
:focus:not(:focus-visible) {
  outline: none;
}

.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;
}

/* ── 30. PRINT ── */
@media print {
  .site-header,
  .site-footer,
  .back-to-top,
  .cookie-banner { display: none !important; }
  body { color: #000; }
}

/* ── 31. BLOG POST BODY LAYOUT ── */
.post-container {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 3rem;
  align-items: start;
  padding: 3rem 1.5rem 4rem;
  max-width: var(--max-width);
  margin: 0 auto;
}

@media (max-width: 960px) {
  .post-container {
    grid-template-columns: 1fr;
  }
  .post-sidebar { position: static; }
}

.post-body {
  min-width: 0;
}

.post-intro {
  font-size: 1.08rem;
  color: var(--clr-grey-dark);
  font-weight: 400;
  line-height: 1.8;
  margin-bottom: 2rem;
  border-left: 4px solid var(--clr-gold);
  padding-left: 1.25rem;
}

.post-hero-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 2rem;
  box-shadow: var(--shadow-lg);
}

.post-hero-image img {
  width: 100%;
  height: 420px;
  object-fit: cover;
}

.post-hero-image figcaption {
  background: var(--clr-grey-light);
  padding: .6rem 1rem;
  font-size: .8rem;
  color: var(--clr-grey);
  font-style: italic;
}

.post-body h2 {
  font-size: 1.65rem;
  color: var(--clr-navy);
  margin: 2rem 0 1rem;
  padding-top: 1rem;
}

.post-body h3 {
  font-size: 1.2rem;
  color: var(--clr-navy);
  margin: 1.75rem 0 .75rem;
}

.post-body p {
  font-size: .97rem;
  color: var(--clr-grey-dark);
  margin-bottom: 1.25rem;
  line-height: 1.8;
}

.post-body ul,
.post-body ol {
  margin: 1rem 0 1.5rem 1.5rem;
}

.post-body li {
  font-size: .95rem;
  color: var(--clr-grey-dark);
  margin-bottom: .5rem;
  line-height: 1.7;
}

.post-body a {
  /* --clr-link (#0057b8) on white = 4.68:1 (AA ✓) */
  color: var(--clr-link);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.post-body a:hover { color: var(--clr-link-hover); }

.post-blockquote {
  border-left: 4px solid var(--clr-gold);
  padding: 1.25rem 1.75rem;
  background: var(--clr-cream);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  margin: 2rem 0;
  box-shadow: var(--shadow-sm);
}

.post-blockquote p {
  font-size: 1rem !important;
  font-style: italic;
  color: var(--clr-navy) !important;
  font-weight: 500;
  margin-bottom: .75rem !important;
}

.post-blockquote footer {
  font-size: .82rem;
  color: var(--clr-grey);
  font-style: normal;
}

.post-cta-box {
  background: linear-gradient(135deg, var(--clr-navy) 0%, var(--clr-navy-mid) 100%);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  margin: 2.5rem 0;
  color: var(--clr-white);
}

.post-cta-box h3 {
  color: var(--clr-white);
  font-size: 1.3rem;
  margin-bottom: .75rem;
}

.post-cta-box p {
  /* Solid white on navy = 16.8:1 (AAA ✓) */
  color: #ffffff !important;
  margin-bottom: 1.5rem !important;
}

/* Sidebar links */
.sidebar-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar-links li {
  border-bottom: 1px solid rgba(0,0,0,.05);
}

.sidebar-links li:last-child { border-bottom: none; }

.sidebar-links a {
  display: block;
  padding: .5rem 0;
  font-size: .88rem;
  color: var(--clr-grey-dark);
  font-weight: 500;
  transition: color var(--transition), padding-left var(--transition);
}

.sidebar-links a:hover {
  color: var(--clr-gold);
  padding-left: .25rem;
  text-decoration: none;
}

.sidebar-cta {
  background: linear-gradient(135deg, var(--clr-navy) 0%, var(--clr-navy-mid) 100%);
  border: none;
}

.sidebar-cta h4 {
  color: var(--clr-white) !important;
  border-bottom-color: rgba(200,168,75,.4) !important;
}

.sidebar-cta p {
  /* Solid white on navy = 16.8:1 (AAA ✓) */
  color: #ffffff;
  font-size: .88rem;
  margin-bottom: 1.25rem;
}

/* ── 32. LEGAL PAGES (Privacy / Terms) ── */
.legal-doc h2 {
  font-size: 1.4rem;
  color: var(--clr-navy);
  margin: 2.5rem 0 .75rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(0,0,0,.06);
}

.legal-doc h2:first-of-type { border-top: none; margin-top: 1.5rem; }

.legal-doc h3 {
  font-size: 1.1rem;
  color: var(--clr-navy);
  margin: 1.5rem 0 .5rem;
}

.legal-doc p {
  font-size: .97rem;
  color: var(--clr-grey-dark);
  line-height: 1.8;
  margin-bottom: 1rem;
}

.legal-doc ul {
  margin: .75rem 0 1.25rem 1.5rem;
}

.legal-doc li {
  font-size: .95rem;
  color: var(--clr-grey-dark);
  margin-bottom: .5rem;
  line-height: 1.7;
}

.legal-doc table {
  width: 100%;
  margin: 1.5rem 0;
}

/* Comparison table also used in blog posts */
.post-body .comparison-table,
.legal-doc .comparison-table {
  font-size: .9rem;
}

/* ── 33. TIMELINE ── */
.timeline { margin-top: 2rem; }

.timeline-item {
  padding: 1.25rem;
  border-left: 3px solid var(--clr-gold);
  margin-bottom: 1.5rem;
  position: relative;
  background: var(--clr-grey-light);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

.timeline-date {
  display: inline-block;
  background: var(--clr-gold);
  color: var(--clr-navy);
  font-weight: 800;
  font-size: .85rem;
  padding: .2rem .7rem;
  border-radius: var(--radius-sm);
  margin-bottom: .4rem;
}

.timeline-item h4 { font-size: 1rem; margin-bottom: .3rem; }
/* --clr-grey (#5a6474) on --clr-grey-light = 4.5:1 (AA ✓) */
.timeline-item p { font-size: .88rem; color: var(--clr-grey); margin-bottom: 0; }

/* ── 34. COMPARISON TABLE ── */
.comparison-table {
  width: 100%;
  border-collapse: collapse;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  font-size: .9rem;
}

.comparison-table thead th {
  background: var(--clr-navy);
  color: var(--clr-white);
  padding: 1rem 1.25rem;
  text-align: left;
  font-family: var(--ff-heading);
  font-size: .95rem;
}

.comparison-table thead th.highlight {
  background: var(--clr-gold);
  color: var(--clr-navy);
}

.comparison-table tbody tr:nth-child(odd) td { background: var(--clr-white); }
.comparison-table tbody tr:nth-child(even) td { background: var(--clr-grey-light); }

.comparison-table td {
  padding: .9rem 1.25rem;
  border-bottom: 1px solid rgba(0,0,0,.06);
  color: var(--clr-grey-dark);
}

.comparison-table td.highlight {
  background: rgba(200,168,75,.08) !important;
  font-weight: 600;
}

/* --clr-success (#0a7c55) on white = 4.6:1 (AA ✓) */
.comparison-table td.check { color: var(--clr-success); font-weight: 600; }
/* #c41212 on white = 5.3:1 (AA ✓) — darkened from #ef4444 (ratio 3.2:1) */
.comparison-table td.cross { color: #c41212; }

/* Scroll progress */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: var(--clr-gold);
  width: 0%;
  z-index: 9999;
  transition: width .1s linear;
}

/* Skip link */
.skip-link {
  position: absolute;
  top: -100%;
  left: 0;
  background: var(--clr-gold);
  color: var(--clr-navy);
  padding: .75rem 1.5rem;
  font-weight: 700;
  z-index: 10000;
}

.skip-link:focus { top: 0; }
