/*
Theme Name: CXConversion 2025
Theme URI: https://www.cxconversion.com
Author: Femi Olajiga
Author URI: https://www.cxconversion.com
Description: CXConversion brand theme. Oxford Blue #011689 | Amber #F5A623 | Playfair Display + DM Sans.
Version: 1.2.0
Requires at least: 6.0
Requires PHP: 7.4
License: Private
Text Domain: cxconversion
*/

/* =============================================
   CSS CUSTOM PROPERTIES (DESIGN TOKENS)
============================================= */
:root {
  --oxford:       #011689;
  --oxford-dark:  #010e4a;
  --oxford-mid:   #021faa;
  --amber:        #F5A623;
  --amber-dark:   #e8971a;
  --white:        #ffffff;
  --off-white:    #f9f8f6;
  --light-grey:   #f5f4f0;
  --border:       #e8e6e0;
  --text:         #0f0f0f;
  --text-muted:   #4a4a4a; /* was #666666 — lifted for WCAG AA on white */
  --text-light:   #767676; /* was #999999 — minimum AA on white (4.54:1) */

  /* WCAG-safe muted tones on dark Oxford blue backgrounds */
  --on-oxford-dim:    #b0b9df; /* 7.35:1 on #011689 — AA body text */
  --on-oxford-muted:  #a3aed8; /* 6.50:1 on #011689 — AA captions/labels */
  --on-oxford-faint:  #9aa5d4; /* 5.89:1 on #011689 — AA small labels */

  /* WCAG-safe muted tones on dark navy footer background */
  --on-dark-dim:    #a3aed8; /* 8.26:1 on #010e4a — AA body text */
  --on-dark-muted:  #9aa5d4; /* 7.49:1 on #010e4a — AA labels */
  --on-dark-faint:  #8a97cc; /* 6.35:1 on #010e4a — AA fine print */

  --font-serif:   'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-sans:    'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --radius-sm:    4px;
  --radius-md:    8px;
  --radius-lg:    10px;
  --max-width:    1200px;
  --section-pad:  80px 40px;
  --transition:   0.2s ease;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--white);
  font-size: 17px; /* up from 15px for legibility */
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, video { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; transition: color var(--transition); }
ul, ol { list-style: none; }
button, input, textarea, select {
  font-family: var(--font-sans);
  font-size: inherit;
}

/* =============================================
   TYPOGRAPHY SCALE
============================================= */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.5px;
  color: var(--oxford);
}
h1 { font-size: clamp(36px, 5vw, 52px); letter-spacing: -1px; }  /* was clamp(32,5vw,46) */
h2 { font-size: clamp(28px, 4vw, 38px); letter-spacing: -0.5px; } /* was clamp(26,4vw,34) */
h3 { font-size: clamp(22px, 3vw, 26px); }                          /* was clamp(20,3vw,24) */
h4 { font-size: 20px; }  /* was 18px */
h5 { font-size: 18px; }  /* was 16px */
p  { line-height: 1.75; margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

/* =============================================
   UTILITY CLASSES
============================================= */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 40px;
}
.section-tag {
  display: block;
  font-family: var(--font-sans);
  font-size: 12px;        /* up from 11px */
  font-weight: 700;       /* up from 600 */
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--oxford);   /* was amber — amber on off-white fails WCAG (1.91:1) */
  margin-bottom: 10px;
}
/* Section-tag on dark oxford backgrounds stays amber (7.01:1 — AAA) */
.process-section .section-tag,
.deliverables-section .section-tag,
.newsletter-section .section-tag,
.featured-wrap .featured-label,
.blog-hero .section-tag,
.page-hero .section-tag,
.post-hero .section-tag,
.generic-hero .section-tag,
.cta-band .cta-kicker { color: var(--amber); }
.section-title {
  font-family: var(--font-serif);
  font-size: clamp(28px, 4vw, 38px); /* up from clamp(26,4vw,34) */
  font-weight: 700;
  color: var(--oxford);
  line-height: 1.2;
  margin-bottom: 14px;
  letter-spacing: -0.5px;
}
.section-sub {
  font-size: 17px;              /* up from 15px */
  color: var(--text-muted);     /* #4a4a4a — 9.6:1 on white, AA✓ */
  max-width: 580px;
  line-height: 1.75;
  margin-bottom: 48px;
}
.text-white { color: var(--white) !important; }
.text-amber { color: var(--amber) !important; }
.text-oxford { color: var(--oxford) !important; }
.text-muted { color: var(--text-muted) !important; }
.bg-oxford { background: var(--oxford); }
.bg-amber { background: var(--amber); }
.bg-offwhite { background: var(--off-white); }

/* =============================================
   BUTTONS
============================================= */
.btn {
  display: inline-block;
  padding: 13px 26px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 14px;
  line-height: 1;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
  cursor: pointer;
  border: none;
  white-space: nowrap;
}
.btn-primary {
  background: var(--amber);
  color: var(--oxford);
}
.btn-primary:hover { background: var(--amber-dark); color: var(--oxford); }

.btn-dark {
  background: var(--oxford);
  color: var(--white);
}
.btn-dark:hover { background: var(--oxford-mid); color: var(--white); }

.btn-outline-white {
  background: transparent;
  color: rgba(255,255,255,0.7);
  border: 1px solid rgba(255,255,255,0.25);
}
.btn-outline-white:hover { color: var(--white); border-color: rgba(255,255,255,0.5); }

.btn-ghost {
  background: transparent;
  color: rgba(255,255,255,0.65);
  padding-left: 0;
  padding-right: 0;
}
.btn-ghost:hover { color: var(--white); }

/* =============================================
   NAVIGATION — DESKTOP
   CSS hover is the primary mechanism.
   JS adds .open class as keyboard/click fallback.
============================================= */

/* Header container — must NOT clip dropdown */
.site-header {
  background: var(--oxford);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 1px 0 rgba(255,255,255,0.06);
  /* no overflow property — default is visible, which is what we need */
}

.nav-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 40px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.site-logo {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.3px;
  flex-shrink: 0;
  text-decoration: none;
}
.site-logo span { color: var(--amber); }
.site-logo:hover { opacity: 0.9; color: var(--white); }

/* Primary nav wrapper */
.primary-nav {
  display: flex;
  gap: 28px;
  align-items: center;
}

/* Plain nav links */
.primary-nav > a {
  color: #c5cce8;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.2px;
  transition: color var(--transition);
  text-decoration: none;
  white-space: nowrap;
}
.primary-nav > a:hover,
.primary-nav > a.is-active { color: var(--white); }

/* CTA button */
.nav-cta {
  background: var(--amber) !important;
  color: var(--oxford) !important;
  padding: 9px 20px;
  border-radius: var(--radius-sm);
  font-weight: 600 !important;
  white-space: nowrap;
}
.nav-cta:hover { background: var(--amber-dark) !important; color: var(--oxford) !important; }

/* Mobile hamburger — hidden on desktop */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px 4px;
  flex-direction: column;
  gap: 5px;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}
.nav-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* =============================================
   DROPDOWN — DESKTOP
   Trigger: CSS :hover on .has-dropdown
   Fallback: JS adds .is-open class (keyboard/touch)
============================================= */
.has-dropdown {
  position: relative;
  display: flex;
  align-items: center;
}

/* The button that triggers the dropdown */
.dropdown-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: #c5cce8;
  font-size: 14px;
  font-weight: 500;
  font-family: var(--font-sans);
  letter-spacing: 0.2px;
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 0;
  line-height: 1;
  white-space: nowrap;
  transition: color var(--transition);
}
.dropdown-btn:hover,
.has-dropdown.is-active .dropdown-btn { color: var(--white); }

/* Rotate chevron when open */
.dropdown-btn svg { transition: transform var(--transition); flex-shrink: 0; }
.has-dropdown:hover .dropdown-btn svg,
.has-dropdown.is-open .dropdown-btn svg { transform: rotate(180deg); }

/* The dropdown panel */
.dropdown-panel {
  /* Hidden by default */
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  /* Positioning — anchored below the trigger */
  position: absolute;
  top: calc(100% + 14px);
  left: 50%;
  transform: translateX(-50%) translateY(-4px);
  /* Appearance */
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1), 0 12px 32px rgba(1,22,137,0.14);
  border: 1px solid rgba(0,0,0,0.06);
  min-width: 440px;
  z-index: 9999;
  padding: 16px;
  /* Layout */
  display: flex;
  flex-direction: row;
  gap: 8px;
  /* Transition */
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
}

/* Show on hover — CSS primary mechanism */
.has-dropdown:hover .dropdown-panel {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

/* Show via JS class — click/keyboard fallback */
.has-dropdown.is-open .dropdown-panel {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

/* Bridge gap between button and panel so hover doesn't break */
.has-dropdown::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  height: 16px;
}

/* Caret arrow pointing up */
.dropdown-panel::before {
  content: '';
  position: absolute;
  top: -5px;
  left: 50%;
  transform: translateX(-50%) rotate(45deg);
  width: 10px;
  height: 10px;
  background: var(--white);
  border-left: 1px solid rgba(0,0,0,0.06);
  border-top: 1px solid rgba(0,0,0,0.06);
}

/* Two-column layout inside panel */
.dropdown-col {
  flex: 1;
  min-width: 0;
}
.dropdown-col + .dropdown-col {
  border-left: 1px solid var(--border);
  padding-left: 8px;
}

.dropdown-col-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--text-light);
  padding: 2px 10px 8px;
  display: block;
  font-family: var(--font-sans);
}

.dropdown-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 9px 12px;
  border-radius: 6px;
  text-decoration: none;
  transition: background var(--transition);
  color: var(--text);
}
.dropdown-item:hover { background: var(--off-white); }
.dropdown-item[aria-current="page"] { background: rgba(1,22,137,0.05); }

.di-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--oxford);
  font-family: var(--font-sans);
  display: block;
}
.di-desc {
  font-size: 12px;
  color: var(--text-muted);
  font-family: var(--font-sans);
  line-height: 1.4;
  display: block;
}

/* =============================================
   NAV — MOBILE (max 768px)
============================================= */
@media (max-width: 768px) {
  .nav-inner { padding: 16px 20px; position: relative; }
  .nav-toggle { display: flex; }

  /* Hide entire nav until hamburger opens it */
  .primary-nav {
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--oxford);
    padding: 16px 20px 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    z-index: 999;
    box-shadow: 0 8px 24px rgba(0,0,0,0.3);
  }
  .primary-nav.open { display: flex; }

  /* Plain nav links on mobile */
  .primary-nav > a {
    font-size: 16px;
    padding: 10px 0;
    width: 100%;
    border-bottom: 1px solid rgba(255,255,255,0.07);
  }
  .primary-nav > a:last-child,
  .primary-nav .nav-cta { border-bottom: none; }

  .nav-cta {
    margin-top: 8px;
    width: 100%;
    text-align: center;
    display: block;
    padding: 12px 20px !important;
  }

  /* Dropdown on mobile — inline accordion */
  .has-dropdown {
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    border-bottom: 1px solid rgba(255,255,255,0.07);
  }

  .dropdown-btn {
    font-size: 16px;
    padding: 10px 0;
    width: 100%;
    justify-content: space-between;
    color: #c5cce8;
  }

  /* On mobile: panel is NOT position absolute, flows inline */
  .dropdown-panel {
    visibility: visible; /* override — we use display:none instead */
    opacity: 1;
    pointer-events: auto;
    transform: none !important;
    position: static;
    display: none;        /* controlled by JS .is-open */
    flex-direction: column;
    box-shadow: none;
    border: none;
    border-radius: var(--radius-sm);
    background: rgba(255,255,255,0.06);
    min-width: 0;
    width: 100%;
    padding: 8px;
    margin-top: 4px;
    gap: 0;
  }
  /* CSS hover has no meaning on mobile — disable it */
  .has-dropdown:hover .dropdown-panel { display: none; }
  /* JS class controls open state on mobile */
  .has-dropdown.is-open .dropdown-panel { display: flex !important; }

  .dropdown-panel::before { display: none; }
  .has-dropdown::after { display: none; }

  .dropdown-col { flex: none; }
  .dropdown-col + .dropdown-col { border-left: none; padding-left: 0; margin-top: 4px; }
  .dropdown-col-label { color: rgba(255,255,255,0.4); padding: 6px 10px 4px; }

  .dropdown-item { color: var(--white); padding: 8px 10px; }
  .dropdown-item:hover { background: rgba(255,255,255,0.08); }
  .di-title { color: var(--white); font-size: 14px; }
  .di-desc { color: rgba(255,255,255,0.55); }
}

@media (max-width: 1024px) and (min-width: 769px) {
  .nav-inner { padding: 18px 24px; }
  .primary-nav { gap: 20px; }
  .dropdown-panel { min-width: 380px; }
}



/* =============================================
   HOMEPAGE HERO
============================================= */
.hero {
  background: var(--oxford);
  padding: 80px 40px 90px;
}
.hero-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.hero-label {
  display: inline-block;
  background: rgba(245,166,35,0.15);
  color: var(--amber);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 2px;
  margin-bottom: 20px;
  border: 1px solid rgba(245,166,35,0.3);
}
.hero h1 {
  color: var(--white);
  margin-bottom: 22px;
}
.hero h1 em { color: var(--amber); font-style: normal; }
.hero-body {
  color: #d0d6f0;           /* solid — 9.03:1 on #011689 — AAA✓ (was rgba 0.62) */
  font-size: 18px;          /* up from 16px */
  line-height: 1.75;
  margin-bottom: 36px;
  max-width: 460px;
}
.hero-actions { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }

/* Hero stats card */
.hero-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-lg);
  padding: 36px;
}
.hero-card-label {
  font-size: 12px;           /* up from 11px */
  color: var(--on-oxford-muted); /* #a3aed8 — 6.50:1 — AA✓ (was rgba 0.38 = 3.02:1 FAIL) */
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 24px;
  font-weight: 500;
}
.stat-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 24px;
}
.stat-num {
  font-family: var(--font-serif);
  font-size: 38px;           /* up from 36px */
  color: var(--amber);
  font-weight: 700;
  line-height: 1;
}
.stat-desc {
  font-size: 13px;           /* up from 12px */
  color: var(--on-oxford-dim); /* #b0b9df — 7.35:1 — AA✓ (was rgba 0.45 = 3.73:1 WARN) */
  margin-top: 5px;
  line-height: 1.45;
}
.card-divider {
  border: none;
  border-top: 1px solid rgba(255,255,255,0.15);
  margin: 0 0 24px;
}
.client-stack-label {
  font-size: 12px;           /* up from 11px */
  color: var(--on-oxford-faint); /* #9aa5d4 — 5.89:1 — AA✓ (was rgba 0.32 = 2.50:1 FAIL) */
  margin-bottom: 12px;
  letter-spacing: 0.5px;
  font-weight: 500;
}
.client-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.client-tag {
  background: rgba(255,255,255,0.09);
  border: 1px solid rgba(255,255,255,0.18);
  color: #c5cce8;            /* solid — 5.84:1 on #011689 — AA✓ (was rgba 0.55) */
  font-size: 12px;           /* up from 11px */
  padding: 6px 11px;
  border-radius: 3px;
  font-weight: 500;
}

/* =============================================
   SERVICES SECTION
============================================= */
.services-section {
  padding: var(--section-pad);
  background: var(--off-white);
}
.services-section .container { max-width: var(--max-width); margin: 0 auto; padding: 0 40px; }
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
/* 5-card layout: 3 top, 2 centred bottom */
.services-grid.five-cards .service-card:nth-child(4) { grid-column: 1; }
.services-grid.five-cards .service-card:nth-child(5) { grid-column: 2; }

/* =============================================
   SERVICES GRID
============================================= */
.service-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 32px 28px;
  position: relative;
  overflow: hidden;
  transition: box-shadow var(--transition), border-color var(--transition);
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--amber);
}
.service-card:hover {
  border-color: var(--oxford);
  box-shadow: 0 4px 24px rgba(1,22,137,0.08);
}
.service-num {
  font-family: var(--font-serif);
  font-size: 52px;           /* up from 48px */
  font-weight: 700;
  color: #e8e5e0;            /* was #f0eeea — still decorative/ghost, slightly darker */
  line-height: 1;
  margin-bottom: 16px;
}
.service-title {
  font-family: var(--font-sans);
  font-size: 18px;           /* up from 17px */
  font-weight: 600;
  color: var(--oxford);
  margin-bottom: 10px;
  letter-spacing: 0;
}
.service-desc {
  font-size: 16px;           /* up from 14px */
  color: var(--text-muted);  /* #4a4a4a — 9.6:1 on white — AAA✓ */
  line-height: 1.7;
  margin-bottom: 20px;
}
.service-link {
  font-size: 14px;           /* up from 13px */
  color: var(--amber);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.service-link:hover { opacity: 0.8; color: var(--amber); }

/* =============================================
   PROCESS SECTION
============================================= */
.process-section {
  padding: var(--section-pad);
  background: var(--oxford);
}
.process-section .container { max-width: var(--max-width); margin: 0 auto; padding: 0 40px; }
.process-section .section-title { color: var(--white); }
.process-section .section-sub { color: var(--on-oxford-dim); } /* #b0b9df — 7.35:1 — AA✓ (was rgba 0.5 = 4.34:1 FAIL) */
.process-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}
.process-step {
  padding: 32px 32px 32px 0;
  border-right: 1px solid rgba(255,255,255,0.1);
}
.process-step:last-child { border-right: none; padding-right: 0; }
.process-step:not(:first-child) { padding-left: 32px; padding-right: 32px; }
.process-step:last-child { padding-left: 32px; }
.step-number {
  font-family: var(--font-serif);
  font-size: 56px;           /* up from 52px */
  font-weight: 700;
  color: rgba(245,166,35,0.22);
  line-height: 1;
  margin-bottom: 16px;
}
.step-title {
  font-family: var(--font-sans);
  font-size: 17px;           /* up from 16px */
  font-weight: 600;
  color: var(--white);
  margin-bottom: 10px;
  letter-spacing: 0;
}
.step-desc {
  font-size: 15px;           /* up from 13px */
  color: var(--on-oxford-dim); /* #b0b9df — 7.35:1 — AA✓ (was rgba 0.48 = 4.08:1 WARN) */
  line-height: 1.7;
  margin-bottom: 0;
}

/* =============================================
   SOCIAL PROOF / CLIENT LOGOS
============================================= */
.proof-section {
  padding: 64px 40px;
  background: var(--white);
  border-top: 1px solid #eee;
  border-bottom: 1px solid #eee;
}
.proof-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 60px;
}
.proof-text {
  font-family: var(--font-serif);
  font-size: 24px;
  color: var(--oxford);
  line-height: 1.4;
  max-width: 240px;
  flex-shrink: 0;
}
.proof-logos {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 14px;
  align-items: center;
}
/* Image logo tile */
.proof-logo {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 100px;
  height: 52px;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.proof-logo:hover {
  border-color: rgba(1,22,137,0.3);
  box-shadow: 0 2px 12px rgba(1,22,137,0.07);
}
.proof-logo img {
  max-height: 28px;
  max-width: 108px;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  filter: grayscale(100%) opacity(0.6);
  transition: filter var(--transition);
}
.proof-logo:hover img {
  filter: grayscale(0%) opacity(1);
}
/* Text fallback if logo image fails */
.proof-logo .logo-fallback {
  font-size: 12px;
  font-weight: 600;
  color: #444;
  letter-spacing: 0.3px;
  font-family: var(--font-sans);
  display: none;
}
/* Hero dark-bg client tag with logo */
.client-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.client-tag {
  background: rgba(255,255,255,0.09);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 3px;
  padding: 6px 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 34px;
  min-width: 60px;
}
.client-tag img {
  max-height: 18px;
  max-width: 70px;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  filter: brightness(0) invert(1) opacity(0.72);
  transition: filter var(--transition);
}
.client-tag:hover img { filter: brightness(0) invert(1) opacity(1); }
.client-tag .logo-fallback {
  color: rgba(255,255,255,0.55);
  font-size: 11px;
  font-weight: 600;
  font-family: var(--font-sans);
  display: none;
}

/* =============================================
   CTA BAND
============================================= */
.cta-band {
  background: var(--amber);
  padding: 64px 40px;
}
.cta-band-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}
.cta-kicker {
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--oxford);       /* #011689 on amber = 7.01:1 — AAA✓ (was rgba 0.6 on amber = 3.64:1 FAIL) */
  opacity: 0.75;              /* still visually subdued but passes: 0.75 * 7.01 effective > 4.5 */
  margin-bottom: 10px;
}
.cta-headline {
  font-family: var(--font-serif);
  font-size: clamp(26px, 3.5vw, 36px); /* up from clamp(24,3.5vw,34) */
  font-weight: 700;
  color: var(--oxford);
  line-height: 1.2;
  max-width: 520px;
  letter-spacing: -0.5px;
}
.cta-actions { display: flex; gap: 16px; align-items: center; flex-shrink: 0; }
.cta-tel { font-size: 15px; font-weight: 600; color: var(--oxford); opacity: 0.65; }

/* =============================================
   SERVICE / LANDING PAGES
============================================= */
.page-hero {
  background: var(--oxford);
  padding: 64px 40px 72px;
}
.page-hero-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 60px;
  align-items: start;
}
.breadcrumb {
  font-size: 13px;            /* up from 11px */
  color: var(--on-oxford-muted); /* #a3aed8 — 6.50:1 — AA✓ (was rgba 0.38 FAIL) */
  margin-bottom: 16px;
  letter-spacing: 0.3px;
}
.breadcrumb a {
  color: var(--on-oxford-muted);
  transition: color var(--transition);
}
.breadcrumb a:hover { color: var(--white); }
.breadcrumb .sep { margin: 0 7px; opacity: 0.5; }
.breadcrumb .current { color: var(--amber); } /* amber on oxford = 7.01:1 — AAA✓ */
.service-badge {
  display: inline-block;
  background: rgba(245,166,35,0.15);
  color: var(--amber);
  font-size: 12px;            /* up from 11px */
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 2px;
  border: 1px solid rgba(245,166,35,0.35);
  margin-bottom: 20px;
}
.page-hero h1 { color: var(--white); margin-bottom: 20px; }
.page-hero h1 em { color: var(--amber); font-style: normal; }
.hero-intro {
  color: #d0d6f0;             /* 9.03:1 on oxford — AAA✓ (was rgba 0.58 FAIL) */
  font-size: 18px;            /* up from 16px */
  line-height: 1.75;
  margin-bottom: 28px;
}
.benefit-list { display: flex; flex-direction: column; gap: 12px; margin-bottom: 36px; }
.benefit-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: #d0d6f0;             /* 9.03:1 — AAA✓ (was rgba 0.68 = ~6.2:1) */
  font-size: 16px;            /* up from 14px */
  line-height: 1.6;
}
.check-icon {
  width: 22px;
  height: 22px;
  background: var(--amber);
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: var(--oxford);
  font-weight: 700;
}

/* Sidebar card */
.sidebar-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-lg);
  padding: 28px;
  position: sticky;
  top: 80px;
}
.sidebar-card-title {
  font-family: var(--font-serif);
  font-size: 20px;           /* up from 18px */
  color: var(--white);
  margin-bottom: 6px;
}
.sidebar-sub {
  font-size: 14px;           /* up from 13px */
  color: var(--on-oxford-muted); /* #a3aed8 — 6.50:1 — AA✓ (was rgba 0.42 = 3.41:1 WARN) */
  margin-bottom: 20px;
  line-height: 1.55;
}
.sidebar-stat { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 20px; }
.s-num {
  font-family: var(--font-serif);
  font-size: 30px;           /* up from 28px */
  color: var(--amber);
  font-weight: 700;
  line-height: 1;
}
.s-desc {
  font-size: 12px;           /* up from 11px */
  color: var(--on-oxford-muted); /* #a3aed8 — 6.50:1 — AA✓ (was rgba 0.42 = 3.41:1 WARN) */
  margin-top: 4px;
  line-height: 1.45;
}
.sidebar-divider { border: none; border-top: 1px solid rgba(255,255,255,0.15); margin: 0 0 20px; }
.sidebar-cta { display: block; background: var(--amber); color: var(--oxford); padding: 14px; border-radius: var(--radius-sm); font-weight: 600; font-size: 15px; text-align: center; margin-bottom: 10px; }
.sidebar-cta:hover { background: var(--amber-dark); color: var(--oxford); }
.sidebar-tel {
  text-align: center;
  font-size: 14px;           /* up from 13px */
  color: var(--on-oxford-muted); /* #a3aed8 — AA✓ (was rgba 0.42) */
}
.sidebar-tel a { color: var(--on-oxford-muted); }

/* Sectors */
.sectors-section { padding: 64px 40px; background: var(--off-white); }
.sectors-section .container { max-width: var(--max-width); margin: 0 auto; padding: 0 40px; }
.sectors-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.sector-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 20px 16px;
  text-align: center;
  transition: border-color var(--transition);
}
.sector-card:hover { border-color: var(--oxford); }
.sector-icon { font-size: 24px; margin-bottom: 12px; }
.sector-name { font-size: 14px; font-weight: 600; color: var(--oxford); font-family: var(--font-sans); } /* up from 13px */

/* Stages */
.stages-section { padding: 64px 40px; background: var(--white); }
.stages-section .container { max-width: var(--max-width); margin: 0 auto; padding: 0 40px; }
.stages { display: flex; flex-direction: column; }
.stage {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 32px;
  padding: 36px 0;
  border-bottom: 1px solid #eeebe5;
  align-items: start;
}
.stage:last-child { border-bottom: none; }
.stage-num { font-family: var(--font-serif); font-size: 52px; color: #e8e5e0; font-weight: 700; line-height: 1; padding-top: 4px; }
.stage-title { font-family: var(--font-sans); font-size: 19px; font-weight: 600; color: var(--oxford); margin-bottom: 10px; } /* up from 17px */
.stage-desc { font-size: 16px; color: var(--text-muted); line-height: 1.75; margin-bottom: 14px; } /* up from 14px */
.stage-bullets { display: flex; flex-wrap: wrap; gap: 8px; }
.stage-bullets li {
  background: var(--off-white);
  border: 1px solid var(--border);
  font-size: 13px;            /* up from 12px */
  color: #333;
  padding: 5px 13px;
  border-radius: 3px;
  font-weight: 500;
  font-family: var(--font-sans);
}

/* Deliverables */
.deliverables-section { padding: 64px 40px; background: var(--oxford); }
.deliverables-section .container { max-width: var(--max-width); margin: 0 auto; padding: 0 40px; }
.deliverables-section .section-title { color: var(--white); }
.deliverables-section .section-sub { color: var(--on-oxford-dim); } /* #b0b9df — 7.35:1 — AA✓ (was rgba 0.48 = 4.08:1 FAIL) */
.deliverables-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.deliverable {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-md);
  padding: 24px;
}
.del-num { font-size: 12px; font-weight: 700; color: var(--amber); letter-spacing: 1px; margin-bottom: 12px; font-family: var(--font-sans); } /* up from 11px */
.del-title { font-family: var(--font-sans); font-size: 17px; font-weight: 600; color: var(--white); margin-bottom: 10px; } /* up from 15px */
.del-desc { font-size: 15px; color: var(--on-oxford-dim); line-height: 1.65; margin-bottom: 0; } /* up from 13px, fixed colour */

/* =============================================
   BLOG INDEX
============================================= */
.blog-hero {
  background: var(--oxford);
  padding: 56px 40px 64px;
}
.blog-hero-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  max-width: 640px;
  margin-left: 0;
  padding-left: 0;
}
.blog-hero h1 { color: var(--white); margin-bottom: 16px; }
.blog-hero-sub {
  color: #d0d6f0;             /* 9.03:1 on oxford — AAA✓ (was rgba 0.55 = ~4.97:1 borderline) */
  font-size: 17px;            /* up from 15px */
  line-height: 1.75;
  margin-bottom: 32px;
}
.topic-filters { display: flex; flex-wrap: wrap; gap: 8px; }
.topic-pill {
  background: rgba(255,255,255,0.09);
  border: 1px solid rgba(255,255,255,0.2);
  color: #c5cce8;             /* solid — 5.84:1 on oxford — AA✓ (was rgba 0.6 = ~5.4:1) */
  font-size: 13px;            /* up from 12px */
  font-weight: 500;
  padding: 8px 18px;
  border-radius: 20px;
  cursor: pointer;
  transition: all var(--transition);
  font-family: var(--font-sans);
  display: inline-block;
}
.topic-pill:hover, .topic-pill.active {
  background: var(--amber);
  border-color: var(--amber);
  color: var(--oxford);
  font-weight: 600;
}

/* Featured article */
.featured-wrap {
  padding: 48px 40px 0;
  background: var(--off-white);
}
.featured-wrap .container-inner { max-width: var(--max-width); margin: 0 auto; }
.featured-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 20px;
  font-family: var(--font-sans);
}
.featured-card {
  background: var(--oxford);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 340px;
}
.featured-content { padding: 40px 40px; }
.feat-tag {
  display: inline-block;
  background: rgba(245,166,35,0.15);
  color: var(--amber);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 2px;
  margin-bottom: 16px;
  font-family: var(--font-sans);
}
.feat-title {
  font-family: var(--font-serif);
  font-size: 28px;           /* up from 26px */
  color: var(--white);
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 12px;
  letter-spacing: -0.4px;
}
.feat-excerpt {
  color: #c5cce8;            /* solid — 5.84:1 on #011689 — AA✓ (was rgba 0.55) */
  font-size: 15px;           /* up from 14px */
  line-height: 1.75;
  margin-bottom: 24px;
}
.feat-meta { display: flex; align-items: center; gap: 20px; margin-bottom: 20px; }
.feat-meta-item {
  font-size: 13px;           /* up from 12px */
  color: var(--on-oxford-muted); /* #a3aed8 — 6.50:1 — AA✓ (was rgba 0.35 = 2.75:1 FAIL) */
  font-family: var(--font-sans);
}
.feat-read { color: var(--amber); font-size: 14px; font-weight: 600; font-family: var(--font-sans); }
.feat-read:hover { opacity: 0.8; color: var(--amber); }
.featured-visual {
  background: linear-gradient(135deg, #0a2199 0%, #021689 50%, rgba(245,166,35,0.3) 150%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
}
.featured-visual-text {
  font-family: var(--font-serif);
  font-size: 22px;
  color: rgba(255,255,255,0.18); /* decorative watermark — aria-hidden="true" in PHP template */
  font-weight: 700;
  line-height: 1.3;
  text-align: center;
  user-select: none;
  pointer-events: none;
}

/* Articles grid */
.articles-section { padding: 48px 40px 64px; background: var(--off-white); }
.articles-section .container { max-width: var(--max-width); margin: 0 auto; padding: 0 40px; }
.articles-header { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 32px; }
.articles-heading { font-family: var(--font-serif); font-size: 28px; color: var(--oxford); font-weight: 700; } /* up from 24px */
.articles-count { font-size: 14px; color: var(--text-light); font-family: var(--font-sans); } /* up from 13px */
.articles-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.article-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: box-shadow var(--transition), border-color var(--transition);
}
.article-card:hover { border-color: var(--oxford); box-shadow: 0 4px 20px rgba(1,22,137,0.08); }
.card-img {
  height: 130px;
  background: var(--oxford);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.card-img::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: var(--amber);
}
.card-img-text {
  font-family: var(--font-serif);
  font-size: 22px;
  color: rgba(255,255,255,0.1); /* decorative watermark — aria-hidden="true" in PHP template */
  font-weight: 700;
  padding: 0 16px;
  text-align: center;
  line-height: 1.3;
  user-select: none;
  pointer-events: none;
}
.card-body { padding: 20px; }
.card-tag {
  font-size: 11px;
  font-weight: 700;          /* up from 600 */
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--oxford);      /* was amber — amber on white = 2.03:1 FAIL */
  margin-bottom: 8px;
  font-family: var(--font-sans);
}
.card-title {
  font-family: var(--font-sans);
  font-size: 16px;           /* up from 15px */
  font-weight: 600;
  color: var(--oxford);
  line-height: 1.35;
  margin-bottom: 8px;
}
.card-excerpt {
  font-size: 14px;           /* up from 13px */
  color: var(--text-muted);  /* #4a4a4a (was #777) */
  line-height: 1.65;
  margin-bottom: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card-footer { display: flex; justify-content: space-between; align-items: center; }
.card-date {
  font-size: 12px;           /* up from 11px */
  color: var(--text-light);  /* #767676 — 4.54:1 on white — AA✓ (was #999 = 2.85:1 FAIL) */
  font-family: var(--font-sans);
}
.card-read {
  font-size: 13px;           /* up from 12px */
  color: var(--oxford);      /* was amber on white — FAIL. Oxford = AAA */
  font-weight: 600;
  font-family: var(--font-sans);
}
.card-read:hover { color: var(--amber); }

/* Pagination */
.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 48px; }
.page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  background: var(--white);
  transition: all var(--transition);
  font-family: var(--font-sans);
}
.page-numbers:hover, .page-numbers.current {
  background: var(--oxford);
  border-color: var(--oxford);
  color: var(--white);
}
.page-numbers.dots { border: none; background: none; cursor: default; }

/* Newsletter */
.newsletter-section { padding: 64px 40px; background: var(--oxford); }
.newsletter-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.nl-tag {
  font-size: 12px;            /* up from 11px */
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--amber);        /* amber on oxford = 7.01:1 AAA✓ */
  margin-bottom: 10px;
  font-family: var(--font-sans);
}
.nl-title {
  font-family: var(--font-serif);
  font-size: 30px;            /* up from 28px */
  color: var(--white);
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 12px;
}
.nl-sub {
  color: var(--on-oxford-dim); /* #b0b9df — 7.35:1 — AA✓ (was rgba 0.5 = ~4.5:1 borderline) */
  font-size: 16px;             /* up from 14px */
  line-height: 1.7;
  margin-bottom: 0;
}
.nl-form { display: flex; flex-direction: column; gap: 12px; }
.nl-input {
  background: rgba(255,255,255,0.09);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--radius-sm);
  padding: 14px 16px;         /* slightly more padding */
  color: var(--white);
  font-size: 16px;            /* up from 14px */
  font-family: var(--font-sans);
  outline: none;
  transition: border-color var(--transition);
}
.nl-input::placeholder { color: var(--on-oxford-faint); } /* #9aa5d4 — 5.89:1 — AA✓ (was rgba 0.35 FAIL) */
.nl-input:focus { border-color: rgba(245,166,35,0.6); }
.nl-btn {
  background: var(--amber);
  color: var(--oxford);
  border: none;
  padding: 15px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 16px;            /* up from 14px */
  font-family: var(--font-sans);
  cursor: pointer;
  transition: background var(--transition);
}
.nl-btn:hover { background: var(--amber-dark); }
.nl-privacy {
  font-size: 13px;            /* up from 11px */
  color: var(--on-oxford-muted); /* #a3aed8 — 6.50:1 — AA✓ (was rgba 0.25 = 1.98:1 FAIL) */
  line-height: 1.55;
}

/* =============================================
   SINGLE BLOG POST
============================================= */
.post-hero { background: var(--oxford); padding: 56px 40px 64px; }
.post-hero-inner { max-width: 780px; margin: 0 auto; }
.post-hero .breadcrumb { margin-bottom: 20px; }
.post-category {
  display: inline-block;
  background: rgba(245,166,35,0.15);
  color: var(--amber);
  font-size: 12px;            /* up from 11px */
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 2px;
  border: 1px solid rgba(245,166,35,0.35);
  margin-bottom: 20px;
  font-family: var(--font-sans);
}
.post-hero h1 { font-size: clamp(30px, 4.5vw, 46px); color: var(--white); margin-bottom: 20px; } /* up from clamp(28,4.5vw,42) */
.post-meta { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.post-meta-item {
  font-size: 14px;            /* up from 13px */
  color: var(--on-oxford-muted); /* #a3aed8 — 6.50:1 — AA✓ (was rgba 0.42 = 3.41:1 WARN) */
  font-family: var(--font-sans);
}
.post-meta-item strong {
  color: #d0d6f0;             /* 9.03:1 on oxford — AAA✓ (was rgba 0.65 = ~5.7:1) */
  font-weight: 600;
}

/* Article body */
.post-body-wrap { padding: 64px 40px 80px; background: var(--white); }
.post-body-inner { max-width: 780px; margin: 0 auto; }
.post-body-inner p { font-size: 18px; line-height: 1.85; color: #1a1a1a; margin-bottom: 1.5rem; } /* up from 16px */
.post-body-inner h2 { font-size: clamp(24px, 3vw, 32px); color: var(--oxford); margin: 2.5rem 0 1rem; } /* up from clamp(22,3vw,28) */
.post-body-inner h3 { font-size: 22px; color: var(--oxford); margin: 2rem 0 0.8rem; } /* up from 20px */
.post-body-inner ul, .post-body-inner ol { padding-left: 1.5rem; margin-bottom: 1.5rem; }
.post-body-inner ul { list-style: disc; }
.post-body-inner ol { list-style: decimal; }
.post-body-inner li { font-size: 18px; line-height: 1.75; color: #1a1a1a; margin-bottom: 0.5rem; } /* up from 16px */
.post-body-inner blockquote {
  border-left: 3px solid var(--amber);
  padding: 18px 24px;
  margin: 2rem 0;
  background: var(--off-white);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
.post-body-inner blockquote p { font-size: 19px; font-style: italic; color: var(--oxford); margin-bottom: 0; }
.post-body-inner a { color: var(--oxford); text-decoration: underline; text-underline-offset: 3px; }
.post-body-inner a:hover { color: var(--amber); }
.post-body-inner img { border-radius: var(--radius-md); margin: 2rem auto; }
.post-body-inner hr { border: none; border-top: 1px solid var(--border); margin: 2.5rem 0; }
.post-body-inner strong { font-weight: 600; }
.post-body-inner code {
  background: var(--off-white);
  border: 1px solid var(--border);
  padding: 2px 7px;
  border-radius: 3px;
  font-size: 15px;            /* up from 13px */
  font-family: 'Courier New', monospace;
}

/* Author box */
.author-box {
  background: var(--off-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 32px;
  display: flex;
  gap: 20px;
  align-items: flex-start;
  margin-top: 52px;
}
.author-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--oxford);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-size: 24px;
  color: var(--amber);
  font-weight: 700;
}
.author-name { font-family: var(--font-sans); font-size: 17px; font-weight: 600; color: var(--oxford); margin-bottom: 4px; } /* up from 15px */
.author-role { font-size: 14px; color: var(--text-muted); margin-bottom: 10px; font-family: var(--font-sans); } /* up from 12px */
.author-bio { font-size: 16px; color: var(--text-muted); line-height: 1.7; margin-bottom: 0; } /* up from 14px */

/* Related posts */
.related-posts { padding: 64px 40px; background: var(--off-white); }
.related-posts .container { max-width: 1100px; margin: 0 auto; }

/* =============================================
   GENERIC PAGE (About, Contact, etc.)
============================================= */
.generic-hero { background: var(--oxford); padding: 56px 40px 64px; }
.generic-hero-inner { max-width: 700px; margin: 0 auto; }
.generic-hero h1 { color: var(--white); margin-bottom: 16px; }
.generic-hero-sub {
  color: #d0d6f0;             /* 9.03:1 on oxford — AAA✓ (was rgba 0.58 = ~5.4:1 borderline) */
  font-size: 18px;            /* up from 16px */
  line-height: 1.75;
}

.generic-content { padding: 64px 40px 80px; background: var(--white); }
.generic-content-inner { max-width: 780px; margin: 0 auto; }
.generic-content-inner p { font-size: 18px; line-height: 1.85; color: #1a1a1a; margin-bottom: 1.5rem; } /* up from 16px */
.generic-content-inner h2 { font-size: clamp(24px, 3vw, 32px); color: var(--oxford); margin: 2.5rem 0 1rem; }
.generic-content-inner h3 { font-size: 22px; color: var(--oxford); margin: 2rem 0 0.8rem; }
.generic-content-inner ul { list-style: disc; padding-left: 1.5rem; margin-bottom: 1.5rem; }
.generic-content-inner li { font-size: 18px; line-height: 1.75; color: #1a1a1a; margin-bottom: 0.5rem; }
.generic-content-inner a { color: var(--oxford); text-decoration: underline; text-underline-offset: 3px; }
.generic-content-inner a:hover { color: var(--amber); }

/* Contact form area */
.contact-grid { display: grid; grid-template-columns: 1fr 380px; gap: 60px; align-items: start; }
.contact-info h2 { color: var(--oxford); margin-bottom: 16px; }
.contact-info p { color: var(--text-muted); font-size: 17px; margin-bottom: 28px; }     /* up from 15px */
.contact-detail { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 16px; }
.contact-detail-label { font-size: 13px; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 2px; font-family: var(--font-sans); } /* up from 12px */
.contact-detail-val { font-size: 17px; color: var(--oxford); font-weight: 600; font-family: var(--font-sans); } /* up from 15px */

/* -----------------------------------------------
   CONTACT PAGE — full form layout
----------------------------------------------- */
.contact-section {
  padding: 80px 40px;
  background: var(--white);
}

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 64px;
  align-items: start;
}

/* Form wrapper */
.contact-form-wrap {
  min-width: 0;
}

/* Individual field */
.cf-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 20px;
}

/* Two-col row */
.cf-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 0;
}

.cf-row .cf-field {
  margin-bottom: 20px;
}

/* Label */
.cf-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--oxford);
  font-family: var(--font-sans);
}

.cf-required {
  color: var(--amber);
}

.cf-optional {
  font-weight: 400;
  color: var(--muted);
  font-size: 13px;
}

/* Input / select */
.cf-input {
  font-size: 16px;
  font-family: var(--font-sans);
  color: var(--oxford);
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: 6px;
  padding: 12px 14px;
  width: 100%;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  -webkit-appearance: none;
  appearance: none;
  line-height: 1.4;
}

.cf-input::placeholder {
  color: var(--muted);
  opacity: 0.7;
}

.cf-input:focus,
.cf-input:focus-visible {
  outline: none;
  border-color: var(--oxford);
  box-shadow: 0 0 0 3px rgba(1, 22, 137, 0.12);
}

/* Select — custom arrow */
.cf-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23011689' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
  cursor: pointer;
}

/* Submit button */
.cf-submit {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--oxford);
  color: var(--white);
  font-size: 16px;
  font-weight: 700;
  font-family: var(--font-sans);
  padding: 14px 32px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.15s ease;
  margin-top: 4px;
  touch-action: manipulation;
  min-height: 48px;
}

.cf-submit:hover {
  background: var(--oxford-dark);
}

.cf-submit:focus-visible {
  outline: 3px solid var(--amber);
  outline-offset: 3px;
}

.cf-submit:active {
  transform: scale(0.98);
}

/* Privacy note */
.cf-privacy {
  font-size: 13px;
  color: var(--muted);
  margin-top: 12px;
}

/* Error banner */
.form-errors {
  background: #fff3f3;
  border: 1.5px solid #e53e3e;
  border-radius: 6px;
  padding: 16px 20px;
  margin-bottom: 24px;
}

.form-errors-title {
  font-size: 14px;
  font-weight: 700;
  color: #c53030;
  margin-bottom: 8px;
}

.form-errors ul {
  margin: 0;
  padding-left: 20px;
}

.form-errors ul li {
  font-size: 14px;
  color: #c53030;
  margin-bottom: 4px;
}

/* Success message */
.form-success {
  background: #f0faf4;
  border: 1.5px solid #38a169;
  border-radius: 10px;
  padding: 40px 36px;
  text-align: center;
}

.form-success-icon {
  width: 52px;
  height: 52px;
  background: #38a169;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 700;
  margin: 0 auto 20px;
}

.form-success-title {
  font-family: var(--font-serif);
  font-size: 26px;
  color: var(--oxford);
  margin-bottom: 12px;
}

.form-success-body {
  font-size: 16px;
  color: var(--muted);
  line-height: 1.7;
}

.form-success-body a {
  color: var(--oxford);
  font-weight: 600;
}

/* Sidebar */
.contact-sidebar {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 32px;
  position: sticky;
  top: 100px;
}

.contact-detail-block {
  margin-bottom: 20px;
}

.contact-detail-block .contact-detail-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 4px;
}

.contact-detail-block .contact-detail-val {
  font-size: 16px;
  font-weight: 600;
  color: var(--oxford);
  font-family: var(--font-sans);
}

.contact-detail-block .contact-detail-val a {
  color: var(--oxford);
  text-decoration: none;
}

.contact-detail-block .contact-detail-val a:hover,
.contact-detail-block .contact-detail-val a:focus-visible {
  text-decoration: underline;
  color: var(--amber);
}

.contact-divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 24px 0;
}

.contact-sidebar-note {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.65;
  margin: 0;
}

/* Responsive */
@media (max-width: 1024px) {
  .contact-layout {
    grid-template-columns: 1fr 260px;
    gap: 40px;
  }
}

@media (max-width: 768px) {
  .contact-section {
    padding: 56px 24px;
  }
  .contact-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .contact-sidebar {
    position: static;
  }
  .cf-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .contact-section {
    padding: 48px 20px;
  }
  .cf-submit {
    width: 100%;
    justify-content: center;
  }
}

/* =============================================
   FOOTER
============================================= */
.site-footer { background: var(--oxford-dark); padding: 56px 40px 32px; }
.footer-inner { max-width: var(--max-width); margin: 0 auto; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 48px; }
.footer-logo { font-family: var(--font-serif); color: var(--white); font-size: 20px; font-weight: 700; margin-bottom: 14px; display: block; }
.footer-logo span { color: var(--amber); }
.footer-tagline {
  font-size: 14px;                    /* up from 13px */
  color: var(--on-dark-dim);          /* #a3aed8 — 8.26:1 — AA✓ (was rgba 0.38 = 3.42:1 WARN) */
  line-height: 1.65;
  max-width: 220px;
  margin-bottom: 0;
}
.footer-col-title {
  font-size: 12px;                    /* up from 11px */
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--on-dark-muted);        /* #9aa5d4 — 7.49:1 — AA✓ (was rgba 0.32 = 2.74:1 FAIL) */
  margin-bottom: 18px;
  font-family: var(--font-sans);
}
.footer-nav { display: flex; flex-direction: column; gap: 10px; }
.footer-nav a {
  color: #c5cce8;                     /* solid — 5.84:1 on #010e4a — AA✓ (was rgba 0.52) */
  font-size: 14px;                    /* up from 13px */
  transition: color var(--transition);
}
.footer-nav a:hover { color: var(--white); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 24px; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.footer-copy {
  font-size: 13px;                    /* up from 12px */
  color: var(--on-dark-faint);        /* #8a97cc — 6.35:1 — AA✓ (was rgba 0.28 = 2.36:1 FAIL) */
  font-family: var(--font-sans);
}

/* =============================================
   RESPONSIVE
============================================= */
@media (max-width: 1024px) {
  :root { --section-pad: 64px 24px; }
  .nav-inner { padding: 18px 24px; }
  .hero { padding: 64px 24px 72px; }
  .hero-inner { gap: 40px; }
  .sectors-grid { grid-template-columns: repeat(3, 1fr); }
  .articles-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .deliverables-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  :root { --section-pad: 48px 20px; }

  .hero, .page-hero, .blog-hero, .post-hero, .generic-hero { padding: 48px 20px; }
  .hero-inner { grid-template-columns: 1fr; gap: 32px; }
  .page-hero-inner { grid-template-columns: 1fr; gap: 28px; }
  .sidebar-card { position: static; }

  .services-grid { grid-template-columns: 1fr; }
  .process-steps { grid-template-columns: 1fr; }
  .process-step { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.1); padding: 24px 0 !important; }
  .process-step:last-child { border-bottom: none; }

  .proof-inner { flex-direction: column; gap: 24px; }
  .proof-text { max-width: 100%; }

  .cta-band { padding: 48px 20px; }
  .cta-band-inner { flex-direction: column; gap: 24px; }
  .cta-headline { max-width: 100%; }

  .sectors-grid { grid-template-columns: repeat(2, 1fr); }
  .articles-grid { grid-template-columns: 1fr; }
  .featured-card { grid-template-columns: 1fr; }
  .featured-visual { display: none; }

  .newsletter-inner { grid-template-columns: 1fr; gap: 32px; }
  .deliverables-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .blog-hero-inner { max-width: 100%; }
  .stage { grid-template-columns: 60px 1fr; gap: 16px; }
}

@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  .stat-row { grid-template-columns: 1fr 1fr; }
  .sidebar-stat { grid-template-columns: 1fr 1fr; }
  .sectors-grid { grid-template-columns: repeat(2, 1fr); }
}

/* =============================================
   WORDPRESS-SPECIFIC OVERRIDES
============================================= */
.wp-block-image { margin: 2rem 0; }
.alignwide { margin-left: auto; margin-right: auto; }
.screen-reader-text {
  border: 0; clip: rect(1px,1px,1px,1px);
  -webkit-clip-path: inset(50%);
  clip-path: inset(50%);
  height: 1px; margin: -1px; overflow: hidden;
  padding: 0; position: absolute; width: 1px;
  word-wrap: normal !important;
}

/* =============================================
   WCAG 2.1 AA — FOCUS STATES
   All interactive elements must have a visible
   focus indicator (WCAG 2.4.7, 2.4.11)
============================================= */

/* Global focus reset — remove browser default, apply ours */
*:focus { outline: none; }

/* Keyboard-only focus (not triggered by mouse click) */
*:focus-visible {
  outline: 3px solid var(--amber);
  outline-offset: 3px;
  border-radius: 2px;
}

/* Nav links */
.primary-nav a:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 4px;
  border-radius: 2px;
}

/* Buttons and CTAs */
.btn:focus-visible,
.nav-cta:focus-visible,
.sidebar-cta:focus-visible,
.nl-btn:focus-visible,
.btn-primary:focus-visible,
.btn-dark:focus-visible {
  outline: 3px solid var(--white);
  outline-offset: 2px;
  box-shadow: 0 0 0 5px var(--amber);
}

/* Links within content */
.post-body-inner a:focus-visible,
.generic-content-inner a:focus-visible {
  outline: 2px solid var(--oxford);
  outline-offset: 2px;
  border-radius: 1px;
}

/* Service cards */
.service-card:focus-within {
  border-color: var(--oxford);
  box-shadow: 0 0 0 3px rgba(1,22,137,0.25);
}

/* Topic pills */
.topic-pill:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 2px;
}

/* Article cards — keyboard navigable */
.article-card a:focus-visible {
  outline: 3px solid var(--oxford);
  outline-offset: -3px;
  border-radius: var(--radius-md);
}

/* Form inputs */
.nl-input:focus-visible {
  outline: none;
  border-color: var(--amber);
  box-shadow: 0 0 0 3px rgba(245,166,35,0.3);
}

/* Pagination */
.page-numbers:focus-visible {
  outline: 2px solid var(--oxford);
  outline-offset: 2px;
}

/* Footer links */
.footer-nav a:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 3px;
  border-radius: 2px;
}

/* =============================================
   WCAG 2.1 AA — SKIP LINK (WCAG 2.4.1)
============================================= */
.skip-link {
  position: absolute;
  top: -100%;
  left: 16px;
  background: var(--amber);
  color: var(--oxford);
  font-weight: 700;
  font-size: 15px;
  padding: 12px 20px;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  z-index: 9999;
  text-decoration: none;
  transition: top 0.2s;
}
.skip-link:focus { top: 0; outline: 3px solid var(--oxford); outline-offset: 2px; }

/* =============================================
   WCAG 2.1 AA — REDUCED MOTION (WCAG 2.3.3)
============================================= */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}


/* =============================================
   RESPONSIVE — LOGO PROOF BAR
============================================= */
@media (max-width: 768px) {
  .proof-logo { min-width: 80px; height: 44px; padding: 8px 12px; }
  .proof-logo img { max-height: 22px; max-width: 84px; }
  .proof-text { font-size: 20px; }
}


/* =============================================
   MOBILE & ACCESSIBILITY ENHANCEMENTS v1.3
   Target: WCAG 2.1 AA + iOS/Android optimisation
   Breakpoints: 1024px | 768px | 480px | 375px
============================================= */

/* ------------------------------------------
   GLOBAL TAP TARGET COMPLIANCE (WCAG 2.5.5)
   Minimum 44×44px for all interactive elements
------------------------------------------ */
.btn,
.nav-cta,
.sidebar-cta,
.nl-btn,
.topic-pill,
.nav-toggle,
.dropdown-btn,
.service-link,
.sidebar-cta,
.footer-nav a,
.proof-logo,
.client-tag {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

/* Restore block-level display where inline-flex breaks layout */
.sidebar-cta { display: flex; justify-content: center; }
.nl-btn { display: block; width: 100%; justify-content: center; }
.footer-nav { display: flex; flex-direction: column; gap: 10px; }
.footer-nav a { display: inline-flex; align-items: center; }

/* Buttons: ensure padding doesn't drop below tap-safe height */
.btn { min-height: 44px; padding-top: 12px; padding-bottom: 12px; }
.btn-ghost { min-height: 44px; padding-left: 4px; padding-right: 4px; }

/* Nav toggle: larger hit area */
.nav-toggle { min-width: 44px; min-height: 44px; justify-content: center; }

/* ------------------------------------------
   BTN-OUTLINE-WHITE CONTRAST FIX
   rgba(255,255,255,0.7) on oxford = ~6.3:1 ✓
   but border was too faint — lift to 0.5
------------------------------------------ */
.btn-outline-white {
  color: rgba(255,255,255,0.85);
  border-color: rgba(255,255,255,0.45);
}
.btn-outline-white:hover {
  color: var(--white);
  border-color: rgba(255,255,255,0.7);
  background: rgba(255,255,255,0.08);
}

/* ------------------------------------------
   TOUCH IMPROVEMENTS
   Prevent double-tap zoom on buttons/links
   Remove 300ms tap delay on older browsers
------------------------------------------ */
a, button, [role="button"] {
  touch-action: manipulation;
}

/* ------------------------------------------
   CONTAINER — TIGHTER PADDING AT 375px
------------------------------------------ */
@media (max-width: 400px) {
  .container { padding: 0 16px; }
  .hero, .page-hero, .blog-hero, .post-hero, .generic-hero { padding: 40px 16px; }
  .proof-section,
  .sectors-section,
  .stages-section,
  .deliverables-section,
  .newsletter-section,
  .related-posts,
  .featured-wrap,
  .articles-section,
  .cta-band,
  .site-footer { padding-left: 16px; padding-right: 16px; }
}

/* ------------------------------------------
   HERO — MOBILE FIXES
------------------------------------------ */
@media (max-width: 768px) {

  /* Hero headline: ensure it doesn't overflow on 320px devices */
  .hero h1 { font-size: clamp(28px, 8vw, 40px); word-break: break-word; hyphens: auto; }

  /* Hero body text: full width, readable */
  .hero-body { max-width: 100%; font-size: 16px; margin-bottom: 28px; }

  /* CTA buttons: stack vertically, full width */
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
  .hero-actions .btn { width: 100%; text-align: center; justify-content: center; }
  .hero-actions .btn-ghost {
    text-align: center;
    justify-content: center;
    padding: 12px 0;
    border: 1px solid rgba(255,255,255,0.25);
    border-radius: var(--radius-sm);
  }

  /* Hero stats card: reduce padding */
  .hero-card { padding: 24px 20px; }
  .hero-card-label { margin-bottom: 16px; }

  /* Stat row: keep 2-col but tighten */
  .stat-row { gap: 16px; margin-bottom: 20px; }
  .stat-num { font-size: 30px; }
  .stat-desc { font-size: 12px; }

  /* Client tags: wrap gracefully */
  .client-tags { gap: 6px; }
  .client-tag { padding: 5px 8px; }
}

@media (max-width: 400px) {
  /* On very small screens, stat row goes single column */
  .stat-row { grid-template-columns: 1fr 1fr; gap: 12px; }
  .stat-num { font-size: 26px; }
}

/* ------------------------------------------
   FIVE-CARD SERVICES GRID — TABLET FIX
   At 768-1024px the 3+2 layout breaks badly
------------------------------------------ */
@media (max-width: 1024px) {
  .services-grid.five-cards {
    grid-template-columns: repeat(2, 1fr);
  }
  /* Reset the nth-child column positioning set for desktop */
  .services-grid.five-cards .service-card:nth-child(4) { grid-column: auto; }
  .services-grid.five-cards .service-card:nth-child(5) { grid-column: auto; }
}

@media (max-width: 768px) {
  .services-grid.five-cards {
    grid-template-columns: 1fr;
  }
  .service-card { padding: 24px 20px; }
}

/* ------------------------------------------
   PROCESS SECTION — MOBILE
------------------------------------------ */
@media (max-width: 768px) {
  .process-section { padding: 48px 20px; }
  .process-step { padding: 20px 0 !important; }
  .step-number { font-size: 42px; margin-bottom: 10px; }
  .step-title { font-size: 16px; }
  .step-desc { font-size: 15px; }
}

/* ------------------------------------------
   CTA BAND — MOBILE
------------------------------------------ */
@media (max-width: 768px) {
  .cta-band-inner { flex-direction: column; align-items: stretch; gap: 20px; }
  .cta-headline { font-size: clamp(22px, 6vw, 30px); max-width: 100%; }
  .cta-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
  .cta-actions .btn { width: 100%; text-align: center; justify-content: center; }
  /* Phone number: tap to call — make it prominent */
  .cta-tel {
    display: block;
    text-align: center;
    font-size: 16px;
    opacity: 1;
    padding: 10px 0;
    text-decoration: underline;
    text-underline-offset: 3px;
  }
}

/* ------------------------------------------
   PAGE HERO — MOBILE
------------------------------------------ */
@media (max-width: 768px) {
  .page-hero h1 { font-size: clamp(26px, 7vw, 38px); }
  .hero-intro { font-size: 16px; }
  .benefit-list li { font-size: 15px; }
  /* Sidebar card stacks below on mobile — no sticky */
  .sidebar-card { margin-top: 8px; padding: 20px; }
  .sidebar-stat { grid-template-columns: 1fr 1fr; gap: 12px; }
  .s-num { font-size: 24px; }
}

/* ------------------------------------------
   SECTORS GRID — MOBILE
   8 sectors: 4×2 on tablet, 2×4 on mobile, 1×8 on tiny
------------------------------------------ */
@media (max-width: 1024px) {
  .sectors-grid { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 768px) {
  .sectors-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .sector-card { padding: 16px 12px; }
  .sector-icon { font-size: 20px; margin-bottom: 8px; }
  .sector-name { font-size: 13px; }
}

@media (max-width: 400px) {
  .sectors-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
}

/* ------------------------------------------
   PROOF BAR — MOBILE
------------------------------------------ */
@media (max-width: 768px) {
  .proof-inner { flex-direction: column; align-items: flex-start; gap: 20px; padding: 0; }
  .proof-text { font-size: 18px; max-width: 100%; }
  .proof-logos { gap: 8px 10px; }
  .proof-logo { min-width: 70px; height: 40px; padding: 6px 10px; }
  .proof-logo img { max-height: 20px; max-width: 70px; }
}

/* ------------------------------------------
   NEWSLETTER — MOBILE
------------------------------------------ */
@media (max-width: 768px) {
  .nl-title { font-size: 24px; }
  .nl-input { font-size: 16px; } /* Prevent iOS auto-zoom on input focus */
  .nl-btn { font-size: 16px; padding: 14px; }
}

/* ------------------------------------------
   BLOG & ARTICLES — MOBILE
------------------------------------------ */
@media (max-width: 768px) {
  .blog-hero { padding: 40px 20px 48px; }
  .blog-hero h1 { font-size: clamp(26px, 7vw, 36px); }
  .topic-filters { gap: 6px; }
  .topic-pill { font-size: 12px; padding: 7px 14px; }
  .featured-content { padding: 24px 20px; }
  .feat-title { font-size: 22px; }
  .feat-meta { gap: 12px; flex-wrap: wrap; }
  .articles-heading { font-size: 22px; }
}

/* ------------------------------------------
   FOOTER — MOBILE
------------------------------------------ */
@media (max-width: 768px) {
  .site-footer { padding: 40px 20px 28px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; margin-bottom: 32px; }
  .footer-bottom { flex-direction: column; text-align: center; gap: 10px; }
  .footer-copy { font-size: 12px; }
  .footer-nav a { font-size: 14px; padding: 4px 0; }
}

@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; gap: 20px; }
}

/* ------------------------------------------
   STAGE / PAID ADS PROCESS — MOBILE
------------------------------------------ */
@media (max-width: 768px) {
  .stage { grid-template-columns: 52px 1fr; gap: 12px; padding: 24px 0; }
  .stage-num { font-size: 38px; }
  .stage-title { font-size: 16px; }
  .stage-desc { font-size: 15px; }
  .stage-bullets li { font-size: 12px; padding: 4px 10px; }
}

/* ------------------------------------------
   DELIVERABLES — MOBILE
------------------------------------------ */
@media (max-width: 768px) {
  .deliverables-grid { grid-template-columns: 1fr; }
  .deliverable { padding: 20px; }
  .del-title { font-size: 16px; }
  .del-desc { font-size: 14px; }
}

/* ------------------------------------------
   GENERIC / CONTACT PAGE — MOBILE
------------------------------------------ */
@media (max-width: 768px) {
  .contact-grid { grid-template-columns: 1fr; gap: 32px; }
  .post-body-wrap { padding: 40px 20px 56px; }
  .post-body-inner p,
  .post-body-inner li { font-size: 16px; }
  .post-body-inner h2 { font-size: clamp(20px, 5vw, 26px); }
  .author-box { flex-direction: column; gap: 14px; padding: 20px; }
  .author-avatar { width: 52px; height: 52px; font-size: 20px; }
}

/* ------------------------------------------
   INPUT FONT SIZE — PREVENT iOS ZOOM
   iOS zooms into inputs with font-size < 16px
------------------------------------------ */
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="url"],
input[type="search"],
select,
textarea {
  font-size: 16px !important;
}

/* ------------------------------------------
   SECTION TITLE OVERFLOW — MOBILE
------------------------------------------ */
@media (max-width: 768px) {
  .section-title { font-size: clamp(22px, 6vw, 32px); }
  .section-sub { font-size: 15px; margin-bottom: 32px; max-width: 100%; }
}

/* ------------------------------------------
   NEW SERVICES CALLOUT — MOBILE (front-page.php)
   The inline-style two-column grid needs overriding
------------------------------------------ */
@media (max-width: 768px) {
  /* Target the new services grid which uses inline styles */
  section[style*="background:var(--oxford)"] > div > div[style*="grid-template-columns:1fr 1fr"] {
    display: flex !important;
    flex-direction: column !important;
    gap: 16px !important;
  }
  /* The individual callout cards */
  section[style*="background:var(--oxford)"] > div > div > div[style*="border-radius:10px"] {
    padding: 24px 20px !important;
  }
}

/* ------------------------------------------
   THREE-PLATFORM GRID (paid ads page) — MOBILE
------------------------------------------ */
@media (max-width: 1024px) {
  div[style*="grid-template-columns:repeat(3,1fr)"] {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}
@media (max-width: 600px) {
  div[style*="grid-template-columns:repeat(3,1fr)"] {
    grid-template-columns: 1fr !important;
  }
}

/* ------------------------------------------
   BRAND AUDIT RIGHT-FIT GRID — MOBILE
------------------------------------------ */
@media (max-width: 768px) {
  div[style*="grid-template-columns:repeat(3,1fr)"][style*="gap:16px"] {
    grid-template-columns: 1fr !important;
  }
}

/* ------------------------------------------
   SKIP LINK — VISIBLE ON FOCUS
   Already in base CSS but reinforce z-index
------------------------------------------ */
.skip-link:focus {
  top: 0;
  z-index: 99999;
}

/* ------------------------------------------
   HIGH CONTRAST MODE SUPPORT
   (Windows High Contrast / Forced Colors)
------------------------------------------ */
@media (forced-colors: active) {
  .btn-primary,
  .btn-dark,
  .nav-cta,
  .sidebar-cta,
  .nl-btn {
    forced-color-adjust: none;
    border: 2px solid ButtonText;
  }
  .service-card,
  .hero-card,
  .proof-logo {
    forced-color-adjust: none;
    border: 1px solid ButtonText;
  }
}

/* ------------------------------------------
   WHO THIS IS FOR SECTION
------------------------------------------ */
.who-section {
  padding: 96px 40px;
  background: var(--white);
}

.who-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-top: 48px;
}

.who-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 40px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.who-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--oxford);
}

.who-card--alt::before {
  background: var(--amber);
}

.who-card-eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--oxford);
  margin-bottom: 14px;
}

.who-card--alt .who-card-eyebrow {
  color: var(--amber);
}

.who-card-title {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 700;
  color: var(--oxford);
  line-height: 1.3;
  letter-spacing: -0.3px;
  margin-bottom: 16px;
}

.who-card-body {
  font-size: 16px;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 20px;
}

.who-list {
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.who-list li {
  font-size: 15px;
  color: var(--body);
  padding-left: 20px;
  position: relative;
  line-height: 1.5;
}

.who-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--amber);
  font-weight: 700;
  font-size: 13px;
  top: 1px;
}

.who-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 15px;
  font-weight: 700;
  color: var(--oxford);
  text-decoration: none;
  transition: gap 0.2s ease;
}

.who-cta:hover,
.who-cta:focus-visible {
  gap: 10px;
  text-decoration: underline;
}

.who-card--alt .who-cta {
  color: var(--amber);
}

@media (max-width: 1024px) {
  .who-grid {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }
  .who-card {
    padding: 32px;
  }
}

@media (max-width: 768px) {
  .who-section {
    padding: 64px 24px;
  }
  .who-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .who-card {
    padding: 28px 24px;
  }
  .who-card-title {
    font-size: 20px;
  }
}

@media (max-width: 480px) {
  .who-section {
    padding: 48px 20px;
  }
  .who-card {
    padding: 24px 20px;
  }
  .who-card-title {
    font-size: 18px;
  }
}

/* ------------------------------------------
   FRACTIONAL CMO SECTION
------------------------------------------ */
.fcmo-section {
  padding: 96px 40px;
  background: var(--bg);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.fcmo-grid {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 64px;
  margin-top: 48px;
  align-items: start;
}

.fcmo-responsibilities {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.fcmo-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.fcmo-icon {
  color: var(--amber);
  font-size: 8px;
  margin-top: 7px;
  flex-shrink: 0;
}

.fcmo-item-title {
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 700;
  color: var(--oxford);
  margin-bottom: 6px;
  letter-spacing: -0.2px;
}

.fcmo-item-desc {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.7;
  margin: 0;
}

.fcmo-cta-card {
  background: var(--oxford);
  border-radius: 12px;
  padding: 40px;
  position: sticky;
  top: 100px;
}

.fcmo-cta-eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 16px;
}

.fcmo-cta-title {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 700;
  color: var(--white);
  line-height: 1.3;
  letter-spacing: -0.3px;
  margin-bottom: 16px;
}

.fcmo-cta-body {
  font-size: 15px;
  color: rgba(255,255,255,0.7);
  line-height: 1.7;
  margin-bottom: 28px;
}

.fcmo-btn {
  display: block;
  text-align: center;
  width: 100%;
}

.fcmo-tel {
  margin-top: 16px;
  font-size: 13px;
  color: rgba(255,255,255,0.55);
  text-align: center;
}

.fcmo-tel a {
  color: var(--amber);
  text-decoration: none;
}

.fcmo-tel a:hover,
.fcmo-tel a:focus-visible {
  text-decoration: underline;
}

@media (max-width: 1200px) {
  .fcmo-grid {
    grid-template-columns: 1fr 380px;
    gap: 48px;
  }
}

@media (max-width: 1024px) {
  .fcmo-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .fcmo-cta-card {
    position: static;
  }
}

@media (max-width: 768px) {
  .fcmo-section {
    padding: 64px 24px;
  }
  .fcmo-cta-card {
    padding: 28px 24px;
  }
  .fcmo-cta-title {
    font-size: 20px;
  }
  .fcmo-item-title {
    font-size: 17px;
  }
}

@media (max-width: 480px) {
  .fcmo-section {
    padding: 48px 20px;
  }
  .fcmo-cta-card {
    padding: 24px 20px;
  }
}

/* ============================================================
   FOOTER CALENDLY EMBED SECTION
   ============================================================ */
.footer-calendly {
    background: var(--white);
    padding: 80px 40px 60px;
    border-top: 4px solid var(--amber);
}
.footer-calendly-inner {
    max-width: 860px;
    margin: 0 auto;
}
.footer-calendly-header {
    text-align: center;
    margin-bottom: 32px;
}
.footer-calendly-title {
    font-size: clamp(26px, 4vw, 40px);
    font-weight: 800;
    color: var(--oxford);
    margin: 8px 0 12px;
    line-height: 1.15;
}
.footer-calendly-sub {
    font-size: 17px;
    color: var(--text-muted);
    max-width: 520px;
    margin: 0 auto;
    line-height: 1.6;
}
@media (max-width: 600px) {
    .footer-calendly {
        padding: 48px 20px 40px;
    }
    .footer-calendly-title {
        font-size: 24px;
    }
}

/* =============================================
   V11 UPDATES — CTA, MOBILE, UX IMPROVEMENTS
   ============================================= */

/* ── Hero CTA sub-text ─────────────────────── */
.hero-cta-sub {
  font-size: 13px;
  color: var(--on-oxford-muted);
  margin-top: 10px;
  margin-bottom: 0;
  letter-spacing: 0.2px;
}

/* ── Services mid-section CTA banner ──────── */
.services-cta-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: var(--oxford);
  border-radius: var(--radius-md);
  padding: 28px 36px;
  margin-top: 48px;
}
.services-cta-copy {
  font-size: 16px;
  color: var(--on-oxford-dim);
  line-height: 1.65;
  flex: 1;
}
.services-cta-copy strong {
  color: var(--white);
}

/* ── Process section bottom CTA ───────────── */
.process-bottom-cta {
  text-align: center;
  margin-top: 48px;
}

/* ── New services grid (dark section) ─────── */
.new-services-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.new-service-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-lg);
  padding: 36px;
  position: relative;
  overflow: hidden;
}
.new-service-eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 16px;
}
.new-service-title {
  font-family: var(--font-serif);
  font-size: 24px;
  color: var(--white);
  font-weight: 700;
  margin-bottom: 14px;
  letter-spacing: -0.3px;
}
.new-service-desc {
  font-size: 16px;
  color: var(--on-oxford-dim);
  line-height: 1.7;
  margin-bottom: 20px;
}
.new-service-tags {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
.new-service-tag {
  background: rgba(245,166,35,0.15);
  border: 1px solid rgba(245,166,35,0.3);
  color: var(--amber);
  font-size: 12px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 3px;
}

/* ── Footer checklist section ─────────────── */
.footer-checklist {
  background: var(--oxford);
  padding: 72px 40px;
}
.footer-checklist-inner {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}
.footer-checklist-title {
  font-family: var(--font-serif);
  font-size: clamp(28px, 4vw, 38px);
  color: var(--white);
  font-weight: 700;
  margin-bottom: 16px;
  margin-top: 8px;
  letter-spacing: -0.5px;
}
.footer-checklist-sub {
  font-size: 17px;
  color: var(--on-oxford-dim);
  line-height: 1.7;
  margin-bottom: 0;
  max-width: 580px;
  margin-left: auto;
  margin-right: auto;
}
.footer-checklist-actions {
  margin-top: 28px;
}
.footer-checklist-btn {
  font-size: 16px;
  padding: 15px 36px;
}
.footer-checklist-note {
  font-size: 13px;
  color: var(--on-oxford-muted);
  margin-top: 12px;
  margin-bottom: 0;
}
.footer-checklist-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 48px;
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 36px;
}
.fc-stat-num {
  font-family: var(--font-serif);
  font-size: 36px;
  font-weight: 700;
  color: var(--amber);
  line-height: 1;
}
.fc-stat-label {
  font-size: 13px;
  color: var(--on-oxford-muted);
  margin-top: 6px;
  line-height: 1.4;
}

/* ── FCMO card updated ─────────────────────── */
.fcmo-cta-eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 12px;
}

/* ── CTA band update ───────────────────────── */
.cta-band .cta-kicker {
  opacity: 1; /* fully visible — the amber start label */
  color: var(--oxford);
}

/* =============================================
   MOBILE FIXES — HOMEPAGE
   Key issues: hero grid collapse, hero card
   overflow, proof-section wrapping, button
   sizing, section padding on small screens.
   ============================================= */

/* Hero: stack on mobile properly */
@media (max-width: 768px) {
  .hero {
    padding: 48px 20px 56px;
  }
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .hero-content {
    order: 1;
  }
  .hero-card-wrap {
    order: 2;
  }
  .hero h1 {
    font-size: clamp(30px, 7vw, 40px);
  }
  .hero-body {
    font-size: 16px;
    max-width: 100%;
  }
  .hero-actions {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .hero-actions .btn {
    width: 100%;
    text-align: center;
    padding: 16px 20px;
    font-size: 15px;
  }
  .hero-card {
    padding: 24px 20px;
  }
  .stat-row {
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }
  .stat-num {
    font-size: 28px;
  }
  .stat-desc {
    font-size: 12px;
  }
  .client-tags {
    gap: 6px;
  }

  /* Who section */
  .who-section { padding: 48px 20px; }
  .who-grid { grid-template-columns: 1fr; gap: 20px; }

  /* Services section */
  .services-section { padding: 48px 20px; }
  .services-section .container { padding: 0; }
  .services-grid { grid-template-columns: 1fr; gap: 16px; }
  .services-grid.five-cards .service-card:nth-child(4),
  .services-grid.five-cards .service-card:nth-child(5) { grid-column: auto; }
  .services-cta-banner {
    flex-direction: column;
    align-items: flex-start;
    padding: 24px 20px;
    gap: 16px;
  }
  .services-cta-banner .btn { width: 100%; text-align: center; }

  /* Fractional CMO section */
  .fcmo-section { padding: 48px 20px; }
  .fcmo-grid { grid-template-columns: 1fr; gap: 32px; }
  .fcmo-cta-card { padding: 28px 20px; }
  .fcmo-btn { width: 100%; text-align: center; }

  /* New services dark section */
  .new-services-grid { grid-template-columns: 1fr; gap: 20px; }
  .new-service-card { padding: 28px 20px; }

  /* Process section */
  .process-section { padding: 48px 20px; }
  .process-section .container { padding: 0; }
  .process-steps { grid-template-columns: 1fr; }
  .process-step {
    padding: 24px 0;
    border-right: none;
    border-bottom: 1px solid rgba(255,255,255,0.1);
  }
  .process-step:last-child { border-bottom: none; }
  .process-step:not(:first-child) { padding-left: 0; }
  .process-bottom-cta .btn { width: 100%; text-align: center; font-size: 15px; }

  /* Proof section */
  .proof-section { padding: 40px 20px; }
  .proof-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
  }
  .proof-text { max-width: 100%; font-size: 20px; }
  .proof-logos { gap: 8px 10px; }

  /* CTA band */
  .cta-band { padding: 44px 20px; }
  .cta-band-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
  }
  .cta-headline { font-size: 24px; max-width: 100%; }
  .cta-actions {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    width: 100%;
  }
  .cta-actions .btn { width: 100%; text-align: center; padding: 16px 20px; }

  /* Footer checklist section */
  .footer-checklist { padding: 48px 20px; }
  .footer-checklist-title { font-size: 26px; }
  .footer-checklist-btn { width: 100%; text-align: center; }
  .footer-checklist-stats {
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }

  /* Footer grid */
  .footer-inner { padding: 40px 20px 24px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px 20px; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }

  /* Section containers */
  .container { padding: 0 20px; }
  .section-sub { font-size: 16px; margin-bottom: 32px; }
  .section-title { font-size: clamp(24px, 6vw, 34px); }

  /* General button improvements on mobile */
  .btn { min-height: 48px; display: inline-flex; align-items: center; justify-content: center; }
}

/* Tablet tweaks */
@media (max-width: 1024px) and (min-width: 769px) {
  .hero { padding: 60px 32px; }
  .hero-inner { gap: 40px; }
  .new-services-grid { gap: 16px; }
  .footer-checklist-stats { grid-template-columns: repeat(4, 1fr); }
  .fcmo-grid { gap: 32px; }
  .services-cta-banner { padding: 24px 28px; }
}

/* Extra small screens (iPhone SE etc.) */
@media (max-width: 380px) {
  .hero h1 { font-size: 28px; }
  .stat-row { gap: 12px; }
  .footer-checklist-stats { grid-template-columns: 1fr 1fr; }
}

/* =============================================
   UX IMPROVEMENTS FROM CRO/UX AUDIT
   ============================================= */

/* Improve focus states sitewide for keyboard nav */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid var(--amber);
  outline-offset: 2px;
  border-radius: 2px;
}

/* Skip link — improve visibility */
.skip-link {
  position: absolute;
  top: -100px;
  left: 20px;
  background: var(--amber);
  color: var(--oxford);
  padding: 12px 20px;
  font-weight: 700;
  font-size: 14px;
  border-radius: 0 0 4px 4px;
  z-index: 9999;
  transition: top 0.2s;
}
.skip-link:focus {
  top: 0;
}

/* Improve touch targets — all interactive elements min 44px */
.nav-toggle { min-height: 44px; min-width: 44px; }
.dropdown-btn { min-height: 44px; }
.primary-nav > a { min-height: 44px; display: inline-flex; align-items: center; }

/* Improve service card readability */
.service-card .service-link {
  padding: 8px 0;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

/* Who section card improvements */
.who-card { position: relative; }
.who-cta {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

/* Smooth scroll for internal anchors */
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms \!important; animation-duration: 0.01ms \!important; }
}

/* Improve contrast on proof-section mobile */
@media (max-width: 768px) {
  .proof-logo img { filter: grayscale(100%) opacity(0.75); }
}

/* Prevent horizontal scroll on mobile */
body { overflow-x: hidden; }

/* Improve sidebar card on mobile — remove sticky which breaks layout */
@media (max-width: 900px) {
  .sidebar-card { position: static; top: auto; }
  .page-hero-inner { grid-template-columns: 1fr; }
  .page-hero-inner > div:last-child { display: none; } /* hide sidebar card on mobile — content is duplicated in page body */
}

/* ── Remove old footer-calendly styles that are now replaced ── */
/* The footer-calendly section has been replaced with footer-checklist */
/* Keep class in case it exists on other templates */
.footer-calendly { display: none; }

