/* ============================================================
   HERRINGER ACCESSIBILITY CONSULTING — Main Stylesheet
   ============================================================

   Table of Contents
   -----------------
   1.  Design Tokens (CSS Custom Properties)
   2.  CSS Reset
   3.  Base & Typography
   4.  Focus Styles
   5.  Skip Navigation Link
   6.  Layout Utilities
   7.  Site Header & Navigation
   8.  Mobile Navigation Overlay
   9.  Buttons
   10. Hero Section
   11. Section Foundations (padding, backgrounds)
   12. Feature / Value-Prop Cards
   13. Service Cards & Pricing Tables
   14. Testimonials
   15. Process Steps
   16. Contact Form
   17. Footer
   18. Utility Classes
   19. Responsive Overrides (≥768px tablet, ≥1024px desktop)
   20. Print Styles
   21. Reduced-Motion Overrides

   Accessibility Compliance Notes
   --------------------------------
   Palette: ink-black #01161e · dark-teal #124559 · air-force-blue #598392
            ash-grey #aec3b0 · beige #eff6e0

   All text/background colour combinations are verified WCAG 2.1 AA:
     • --color-text  (#01161e) on beige   (#eff6e0):      ~16.7:1 ✓
     • --color-text  (#01161e) on ash-grey (#aec3b0):      ~9.9:1 ✓
     • --color-text  (#01161e) on white:                  ~18.5:1 ✓
     • --color-text-secondary (#124559) on beige:          ~9.4:1 ✓
     • --color-text-secondary (#124559) on ash-grey:       ~5.6:1 ✓
     • --color-text-secondary (#124559) on white:         ~10.4:1 ✓
     • White (#fff)  on --color-navy (#01161e):           ~18.5:1 ✓ (dark section text)
     • Beige (#eff6e0) on --color-navy (#01161e):         ~16.7:1 ✓ (dark section accent)
     • Beige (#eff6e0) on dark-teal (#124559):             ~9.4:1 ✓ (btn-accent text)
     • --color-border (#124559) on beige:                  ~9.4:1 ✓ (WCAG 1.4.11 UI bounds)
     • --color-border (#124559) on white:                 ~10.4:1 ✓ (WCAG 1.4.11 UI bounds)
   NOTE: air-force-blue (#598392) MUST NOT be used as text on light backgrounds
   (3.7:1 on beige — fails normal-text 4.5:1). Use for decorative glows and as a
   border on dark sections only (4.5:1 on ink-black, passes WCAG 1.4.11 ≥3:1).
   NOTE: ash-grey (#aec3b0) on beige is 1.7:1 — purely decorative background use only.
   Focus rings: ink-black on light bg (16.7:1), beige on dark bg (16.7:1).
   ============================================================ */


/* ============================================================
   1. DESIGN TOKENS
   ============================================================ */
:root {
  /* --- Brand colours — palette: ink-black/dark-teal/air-force-blue/ash-grey/beige --- */
  --color-navy:           #01161e; /* ink-black  — headings, primary buttons, dark sections */
  --color-navy-dark:      #01161e; /* ink-black  — footer bg (already deepest)             */
  --color-navy-light:     #124559; /* dark-teal  — secondary dark elements                 */
  --color-gold:           #eff6e0; /* beige      — accent ON DARK BG ONLY (16.7:1)         */
  --color-gold-dark:      #124559; /* dark-teal  — text-safe accent on light bg (9.4:1)    */

  /* --- Surface colours --- */
  --color-bg:             #eff6e0; /* beige     — page background                          */
  --color-bg-alt:         #aec3b0; /* ash-grey  — alternate sections                       */
  --color-surface:        #FFFFFF; /* card / panel backgrounds                             */

  /* --- Text colours (all verified ≥4.5:1 — see notes above) --- */
  --color-text:           #01161e; /* ink-black  — 16.7:1 on beige ✓                      */
  --color-text-secondary: #124559; /* dark-teal  — 9.4:1 on beige ✓                       */
  --color-link:           #124559; /* dark-teal  — 9.4:1 on beige ✓                       */
  --color-link-hover:     #01161e; /* ink-black  — 16.7:1 on beige ✓                      */

  /* --- UI & feedback colours --- */
  --color-border:         #124559; /* dark-teal  — 9.4:1 on beige ✓ (WCAG 1.4.11 ✓)      */
  --color-border-dark:    #598392; /* air-force-blue — on dark sections (4.5:1 on ink-black, 1.4.11 ✓) */
  --color-focus:          #01161e; /* ink-black  — 16.7:1 on beige ✓                      */
  --color-success:        #166534; /* keep — ≥4.5:1 on white                              */
  --color-error:          #991B1B; /* keep — ≥4.5:1 on white                              */

  /* --- Typography --- */
  --font-sans: 'Inter', system-ui, -apple-system, BlinkMacSystemFont,
               'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;

  --text-sm:   0.875rem;  /*  14px */
  --text-base: 1rem;      /*  16px */
  --text-lg:   1.125rem;  /*  18px */
  --text-xl:   1.25rem;   /*  20px */
  --text-2xl:  1.5rem;    /*  24px */
  --text-3xl:  1.875rem;  /*  30px */
  --text-4xl:  2.25rem;   /*  36px */
  --text-5xl:  3rem;      /*  48px */

  --leading-tight:  1.25;
  --leading-snug:   1.4;
  --leading-base:   1.65;  /* Comfortable body text */
  --leading-loose:  1.8;

  /* --- Spacing scale --- */
  --sp-1:  0.25rem;   --sp-2:  0.5rem;   --sp-3:  0.75rem;
  --sp-4:  1rem;      --sp-5:  1.25rem;  --sp-6:  1.5rem;
  --sp-8:  2rem;      --sp-10: 2.5rem;   --sp-12: 3rem;
  --sp-16: 4rem;      --sp-20: 5rem;     --sp-24: 6rem;

  /* --- Layout --- */
  --max-width:   1200px;
  --nav-height:   72px;
  --content-pad:  1.25rem; /* Horizontal padding inside .container */

  /* --- Borders & shadows --- */
  --radius-sm:   4px;
  --radius-md:   8px;
  --radius-lg:  12px;
  --radius-xl:  20px;
  --radius-full: 9999px;

  --shadow-sm:  0 1px 3px rgba(0,0,0,.10), 0 1px 2px rgba(0,0,0,.06);
  --shadow-md:  0 4px 12px rgba(0,0,0,.10), 0 2px 4px rgba(0,0,0,.06);
  --shadow-lg:  0 10px 30px rgba(0,0,0,.12), 0 4px 8px rgba(0,0,0,.06);

  /* --- Transitions --- */
  --ease: 200ms ease;
  --ease-slow: 350ms ease;
}


/* ============================================================
   2. CSS RESET
   Opinionated minimal reset — preserves accessible defaults
   ============================================================ */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* Remove list styling only when list has role="list"
   so Safari VoiceOver still announces lists with bullets */
ul[role="list"],
ol[role="list"] {
  list-style: none;
}

html {
  /* Smooth scrolling — overridden for reduced-motion users below */
  scroll-behavior: smooth;
  /* Prevent iOS font-size inflation on orientation change */
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  min-height: 100vh;
  font-family: var(--font-sans);
  font-size: var(--text-base);
  line-height: var(--leading-base);
  color: var(--color-text);
  background-color: var(--color-bg);
  /* Prevent horizontal overflow from full-width elements */
  overflow-x: hidden;
}

img,
svg {
  display: block;
  max-width: 100%;
}

/* Inherit fonts for form controls (browsers don't do this by default) */
input,
button,
textarea,
select {
  font: inherit;
}

/* Remove default button styling so we can restyle */
button {
  background: none;
  border: none;
  cursor: pointer;
  color: inherit;
}

/* Paragraph spacing */
p {
  max-width: 70ch; /* Comfortable reading measure */
}

/* Horizontal rules */
hr {
  border: none;
  border-top: 1px solid var(--color-border);
  margin: var(--sp-8) 0;
}


/* ============================================================
   3. BASE & TYPOGRAPHY
   ============================================================ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-sans);
  font-weight: 700;
  line-height: var(--leading-tight);
  color: var(--color-navy);
  /* Headings are "large text" (≥18px regular or ≥14px bold) so
     the 3:1 ratio applies; all our heading colours exceed 4.5:1 */
}

h1 { font-size: var(--text-4xl); }
h2 { font-size: var(--text-3xl); }
h3 { font-size: var(--text-2xl); }
h4 { font-size: var(--text-xl);  font-weight: 600; }
h5 { font-size: var(--text-lg);  font-weight: 600; }
h6 { font-size: var(--text-base); font-weight: 600; }

/* Slightly larger headings at wider viewports (set in responsive section) */

p {
  color: var(--color-text);
  line-height: var(--leading-base);
}

/* Lead / intro paragraph style */
.lead {
  font-size: var(--text-xl);
  line-height: var(--leading-snug);
  color: var(--color-text-secondary);
}

a {
  color: var(--color-link);
  text-decoration: underline;
  /* Underline offset improves legibility */
  text-underline-offset: 3px;
  transition: color var(--ease);
}

a:hover {
  color: var(--color-link-hover);
}

/* Visited links — darker than active link so "been there" reads as settled */
/* Visited colour applies to plain text links only — NOT buttons.
   a:not(.btn) prevents the higher-specificity :visited pseudo-class
   from overriding the explicit text colours set on .btn-* variants. */
a:not(.btn):visited {
  color: #01161e; /* ink-black — 16.7:1 on beige, darker "settled" feel vs teal links */
}

strong { font-weight: 700; }
em     { font-style: italic; }

/* Inline code — used in the developer-audience content */
code {
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.9em;
  background: var(--color-bg-alt);
  padding: 0.1em 0.35em;
  border-radius: var(--radius-sm);
}

/* Blockquote — used for testimonials */
blockquote {
  border-left: 4px solid var(--color-border); /* lobster-pink decorative accent */
  padding-left: var(--sp-6);
  font-style: italic;
  color: var(--color-text-secondary);
}

blockquote cite {
  display: block;
  font-style: normal;
  font-weight: 600;
  font-size: var(--text-sm);
  margin-top: var(--sp-3);
  color: var(--color-text);
}


/* ============================================================
   4. FOCUS STYLES
   On light backgrounds (beige/white): ink-black (#01161e) outline gives
   16.7:1 against beige and 18.5:1 against white — both exceed AA by a wide margin.
   On dark backgrounds (ink-black sections, hero, footer): a separate rule overrides
   the outline to beige (#eff6e0) giving 16.7:1 against the dark background.
   See the dark-section focus override rule below.
   WCAG 2.1 SC 2.4.7 requires focus to be visible; SC 2.4.11 (2.2, AA)
   requires the focus indicator to have 3:1 contrast. Both are met.
   ============================================================ */
:focus-visible {
  outline: 3px solid var(--color-focus);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

/* Remove outline for mouse/touch — only show for keyboard */
:focus:not(:focus-visible) {
  outline: none;
}

/* Dark-section focus override — beige outline: 16.7:1 on ink-black ✓
   .page-hero is included because it uses --color-navy but lacks .section--dark */
.hero :focus-visible,
.section--dark :focus-visible,
.page-hero :focus-visible,
.site-footer :focus-visible {
  outline-color: #eff6e0;
}


/* ============================================================
   5. SKIP NAVIGATION LINK
   Hidden off-screen until focused by keyboard. First interactive
   element in the DOM so keyboard users can bypass the nav immediately.
   ============================================================ */
.skip-link {
  position: absolute;
  top: var(--sp-4);
  left: var(--sp-4);
  z-index: 10000;
  padding: var(--sp-3) var(--sp-6);
  background: var(--color-gold);
  color: var(--color-navy);
  font-weight: 700;
  font-size: var(--text-base);
  text-decoration: none;
  border-radius: var(--radius-md);
  /* Translate off-screen when not focused */
  transform: translateY(calc(-100% - var(--sp-4) - 16px));
  transition: transform var(--ease);
}

.skip-link:focus {
  transform: translateY(0);
}


/* ============================================================
   6. LAYOUT UTILITIES
   ============================================================ */

/* Centred max-width container with horizontal padding */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: var(--content-pad);
}

/* Two-column grid — stacks on mobile, side-by-side at 768px */
.grid-2 {
  display: grid;
  gap: var(--sp-8);
}

/* Three-column grid — stacks on mobile, 3-col at 1024px */
.grid-3 {
  display: grid;
  gap: var(--sp-6);
}

/* Visually hidden but accessible to screen readers */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}


/* ============================================================
   7. SITE HEADER & NAVIGATION
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-height);
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  /* Subtle shadow to separate header from content */
  box-shadow: 0 1px 4px rgba(0,0,0,.08);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: var(--sp-6);
}

/* Logo link — reset underline, preserve focus ring */
.logo-link {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}

.logo-link img {
  height: 40px;
  width: auto;
}

/* Main nav wrapper */
.site-nav {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
}

/* Nav link list */
.nav-list {
  display: flex;
  align-items: center;
  gap: var(--sp-1);
  list-style: none;
}

.nav-list a {
  display: block;
  padding: var(--sp-2) var(--sp-3);
  color: var(--color-text);
  font-size: var(--text-sm);
  font-weight: 500;
  text-decoration: none;
  border-radius: var(--radius-sm);
  transition: color var(--ease), background-color var(--ease);
}

.nav-list a:hover {
  color: var(--color-navy);
  background-color: var(--color-bg-alt);
}

/* Active/current page link */
.nav-list a[aria-current="page"] {
  color: var(--color-navy);
  font-weight: 700;
  background-color: var(--color-bg);
}

/* CTA link in nav — styled as a button */
.nav-cta {
  margin-left: var(--sp-2);
  white-space: nowrap;
}

/* Hamburger toggle — visible only on mobile */
.nav-toggle {
  display: none; /* shown in mobile breakpoint */
  align-items: center;
  justify-content: center;
  width: 44px;   /* WCAG 2.5.5 target size */
  height: 44px;
  border-radius: var(--radius-sm);
  color: var(--color-text);
  transition: background-color var(--ease);
  flex-shrink: 0;
}

.nav-toggle:hover {
  background-color: var(--color-bg-alt);
}

/* Hamburger icon lines — drawn in CSS */
.hamburger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 22px;
}

.hamburger span {
  display: block;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transform-origin: center;
  transition: transform var(--ease), opacity var(--ease);
}

/* When the mobile menu is open, animate hamburger → X */
.nav-toggle[aria-expanded="true"] .hamburger span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .hamburger span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .hamburger span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}


/* ============================================================
   8. MOBILE NAVIGATION OVERLAY
   On small screens the nav list is hidden off-screen and slides
   in when the hamburger is activated. We avoid display:none
   toggling because it prevents transitions; instead we use
   clip-path + opacity. aria-expanded on the button and
   aria-hidden on the menu communicate state to assistive tech.
   ============================================================ */
@media (max-width: 767px) {
  .nav-toggle {
    display: flex;
  }

  .site-nav {
    position: fixed;
    inset: var(--nav-height) 0 0 0; /* Full width below header */
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--color-surface);
    border-top: 1px solid var(--color-border);
    padding: var(--sp-4) var(--content-pad) var(--sp-8);
    overflow-y: auto;
    /* Hidden by default */
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity var(--ease), transform var(--ease);
    z-index: 99;
  }

  /* JS toggles .is-open on .site-nav */
  .site-nav.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    border-bottom: 1px solid var(--color-border);
    padding-bottom: var(--sp-4);
    margin-bottom: var(--sp-4);
  }

  .nav-list a {
    padding: var(--sp-4) var(--sp-2);
    font-size: var(--text-base);
    border-bottom: 1px solid var(--color-border);
  }

  .nav-cta {
    margin-left: 0;
    text-align: center;
  }
}


/* ============================================================
   9. BUTTONS
   Three variants: primary (navy fill), secondary (navy outline),
   ghost (text only). All have min 44×44px tap targets.
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  padding: var(--sp-3) var(--sp-6);
  font-family: var(--font-sans);
  font-size: var(--text-base);
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  border: 2px solid transparent;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: background-color var(--ease), color var(--ease),
              border-color var(--ease), box-shadow var(--ease);
  /* Ensure minimum 44px height for touch targets */
  min-height: 44px;
  white-space: nowrap;
}

/* Primary: navy background, white text — 13.7:1 contrast */
.btn-primary {
  background-color: var(--color-navy);
  color: #FFFFFF;
  border-color: var(--color-navy);
}

.btn-primary:hover {
  background-color: var(--color-navy-dark);
  border-color: var(--color-navy-dark);
  color: #FFFFFF;
}

/* Dark-teal accent: hero CTA — beige text on dark-teal (9.4:1 ✓) */
.btn-accent {
  background-color: #124559; /* dark-teal */
  color: #eff6e0;            /* beige — 9.4:1 on dark-teal ✓ */
  border-color: #124559;
  font-size: var(--text-lg);
  padding: var(--sp-4) var(--sp-8);
}

.btn-accent:hover {
  /* Darken: ink-black bg + beige text = 16.7:1 ✓ */
  background-color: #01161e;
  border-color: #01161e;
  color: #eff6e0;
}

/* Secondary: navy outline, navy text */
.btn-secondary {
  background-color: transparent;
  color: var(--color-navy);
  border-color: var(--color-navy);
}

.btn-secondary:hover {
  background-color: var(--color-navy);
  color: #FFFFFF;
}

/* Ghost (for dark backgrounds) — white outline + white text */
.btn-ghost {
  background-color: transparent;
  color: #FFFFFF;
  border-color: #FFFFFF;
}

.btn-ghost:hover {
  background-color: rgba(255,255,255,.12);
}

/* Large button size modifier */
.btn-lg {
  padding: var(--sp-4) var(--sp-10);
  font-size: var(--text-lg);
  min-height: 52px;
}


/* ============================================================
   10. HERO SECTION
   Deep forest background with a warm sunlit gradient.
   Decorative geometric shapes are aria-hidden.
   ============================================================ */
.hero {
  position: relative;
  background-color: var(--color-navy);
  background-image: linear-gradient(150deg, #010d12 0%, #01161e 55%, #0d2a35 100%);
  color: #FFFFFF;
  padding: var(--sp-20) 0 var(--sp-16);
  overflow: hidden;
}

/* Decorative circles — pure CSS, aria-hidden in HTML */
.hero::before,
.hero::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.hero::before {
  width: 600px;
  height: 600px;
  top: -200px;
  right: -150px;
  /* air-force-blue warm glow */
  background: radial-gradient(circle, rgba(89,131,146,.22) 0%, transparent 70%);
}

.hero::after {
  width: 400px;
  height: 400px;
  bottom: -150px;
  left: -100px;
  /* ash-grey ambient glow */
  background: radial-gradient(circle, rgba(174,195,176,.20) 0%, transparent 70%);
}

.hero__inner {
  position: relative; /* Sit above pseudo-elements */
  z-index: 1;
}

/* Gold eyebrow label above the h1 */
.hero__eyebrow {
  display: inline-block;
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: var(--sp-4);
}

.hero__title {
  font-size: clamp(2rem, 5vw, var(--text-5xl));
  line-height: var(--leading-tight);
  color: #FFFFFF;
  max-width: 18ch;
  margin-bottom: var(--sp-6);
}

/* Accent span within h1 — gold highlight on a word */
.hero__title .accent {
  color: var(--color-gold);
}

.hero__subtitle {
  font-size: clamp(var(--text-base), 2.5vw, var(--text-xl));
  line-height: var(--leading-base);
  color: rgba(255,255,255,.85);
  max-width: 52ch;
  margin-bottom: var(--sp-10);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-4);
  align-items: center;
  margin-bottom: var(--sp-12);
}

/* Stats row below hero copy */
.hero__stats {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-8);
  padding-top: var(--sp-10);
  border-top: 1px solid rgba(255,255,255,.15);
}

.hero__stat {
  display: flex;
  flex-direction: column;
  gap: var(--sp-1);
}

.hero__stat-value {
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--color-gold); /* On navy background: 6.4:1 ✓ */
}

.hero__stat-label {
  font-size: var(--text-sm);
  color: rgba(255,255,255,.75);
}


/* ============================================================
   11. SECTION FOUNDATIONS
   Consistent vertical padding and background alternation so
   sections are visually grouped without using borders alone.
   ============================================================ */
.section {
  padding: var(--sp-16) 0;
}

/* Tighter spacing for sections that follow a prominent one */
.section--tight {
  padding: var(--sp-12) 0;
}

/* Ink-black background section (e.g. bottom CTA) */
.section--dark {
  background-color: var(--color-navy);
  background-image: linear-gradient(135deg, #124559 0%, #01161e 100%);
  color: #FFFFFF;
}

.section--dark h2,
.section--dark h3 {
  color: #FFFFFF;
}

.section--dark .lead,
.section--dark p {
  color: rgba(255,255,255,.85);
}

/* Warm alt background (every other light section) */
.section--alt {
  background-color: var(--color-bg-alt);
}

/* Section header — title + optional subtitle, centred */
.section-header {
  margin-bottom: var(--sp-12);
}

.section-header--center {
  text-align: center;
}

.section-header--center p {
  margin-inline: auto;
}

/* Gold overline above section title (decorative, aria-hidden in HTML) */
.section-overline {
  display: inline-block;
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-gold-dark);
  margin-bottom: var(--sp-3);
}

/* page-hero included: it uses --color-navy bg but is not .section--dark */
.section--dark .section-overline,
.page-hero .section-overline {
  color: var(--color-gold); /* beige — 16.7:1 on ink-black ✓ */
}

.section-header h2 {
  margin-bottom: var(--sp-4);
}


/* ============================================================
   12. FEATURE / VALUE-PROP CARDS
   Icon + heading + body copy. Equal-height grid items.
   ============================================================ */
.feature-grid {
  display: grid;
  gap: var(--sp-6);
}

.feature-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--sp-8);
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--ease), transform var(--ease);
}

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

/* Gold icon circle */
.feature-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  background: var(--color-navy);
  border-radius: var(--radius-md);
  margin-bottom: var(--sp-5);
  color: var(--color-gold);
}

.feature-card h3 {
  font-size: var(--text-xl);
  margin-bottom: var(--sp-3);
}

.feature-card p {
  font-size: var(--text-base);
  color: var(--color-text-secondary);
}


/* ============================================================
   13. SERVICE CARDS & PRICING TABLES
   ============================================================ */

/* Service section — full-width card with accent border on left */
.service-block {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-left: 4px solid var(--color-navy);
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
  padding: var(--sp-10) var(--sp-8);
  margin-bottom: var(--sp-10);
  box-shadow: var(--shadow-sm);
}

.service-block__meta {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  margin-bottom: var(--sp-3);
  font-style: italic;
}

.service-block h3 {
  margin-bottom: var(--sp-2);
}

.service-block > p {
  margin-bottom: var(--sp-6);
  color: var(--color-text-secondary);
}

/* "What makes this different" bullet list */
.differentiator-list {
  list-style: none;
  margin-bottom: var(--sp-8);
}

.differentiator-list li {
  display: flex;
  gap: var(--sp-3);
  padding: var(--sp-2) 0;
  font-size: var(--text-sm);
  color: var(--color-text);
  border-bottom: 1px solid var(--color-border);
}

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

/* Checkmark icon before each list item (inline SVG in HTML) */
.differentiator-list .check-icon {
  flex-shrink: 0;
  color: var(--color-navy);
}

/* Supported-platforms two-column dl */
.platform-list {
  display: grid;
  gap: var(--sp-3) var(--sp-8);
  margin-bottom: var(--sp-8);
  font-size: var(--text-sm);
}

.platform-list dt {
  font-weight: 700;
  color: var(--color-navy);
  margin-bottom: var(--sp-1);
}

.platform-list dd {
  color: var(--color-text-secondary);
  margin-left: 0;
}

/* Pricing table — responsive horizontal scroll on mobile */
.pricing-table-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  /* Screen-reader note about scrollable region */
}

/* Visually communicate that the table scrolls horizontally */
.pricing-table-wrapper::before {
  content: 'Scroll to see full table →';
  display: block;
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  padding: var(--sp-2) var(--sp-4);
  background: var(--color-bg-alt);
  border-bottom: 1px solid var(--color-border);
}

@media (min-width: 768px) {
  .pricing-table-wrapper::before {
    display: none; /* Not needed when there's enough horizontal space */
  }
}

.pricing-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--text-sm);
  background: var(--color-surface);
}

.pricing-table caption {
  text-align: left;
  font-weight: 700;
  font-size: var(--text-base);
  color: var(--color-navy);
  padding: var(--sp-4) var(--sp-4) var(--sp-3);
  background: var(--color-bg-alt);
  border-bottom: 2px solid var(--color-navy);
  caption-side: top;
}

.pricing-table th {
  background: var(--color-navy);
  color: #FFFFFF;
  text-align: left;
  padding: var(--sp-3) var(--sp-4);
  font-weight: 600;
  white-space: nowrap;
}

/* Scope column header */
.pricing-table th:first-child {
  min-width: 140px;
}

.pricing-table td {
  padding: var(--sp-3) var(--sp-4);
  border-bottom: 1px solid var(--color-border);
  vertical-align: top;
  color: var(--color-text);
}

/* Zebra striping — colour alone is NOT the only differentiator;
   row borders are also present (multiple cues per WCAG 1.4.1) */
.pricing-table tr:nth-child(even) td {
  background: var(--color-bg-alt);
}

.pricing-table tr:last-child td {
  border-bottom: none;
}

/* Tier name — bold */
.pricing-table td:first-child {
  font-weight: 700;
  color: var(--color-navy);
  white-space: nowrap;
}

/* Price column — uses numeric font variant for alignment */
.pricing-table .price {
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  color: var(--color-navy);
  white-space: nowrap;
}

/* Add-on service cards (smaller, three-column grid) */
.addon-grid {
  display: grid;
  gap: var(--sp-6);
}

.addon-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--sp-8);
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
  box-shadow: var(--shadow-sm);
}

.addon-card h3 {
  font-size: var(--text-lg);
  margin-bottom: 0;
}

.addon-card p {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  flex: 1;
}

.addon-card .addon-price {
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--color-navy);
  border-top: 1px solid var(--color-border);
  padding-top: var(--sp-4);
}

.addon-card .addon-note {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  font-style: italic;
  margin-top: var(--sp-1);
}


/* ============================================================
   14. TESTIMONIALS
   ============================================================ */
.testimonial-grid {
  display: grid;
  gap: var(--sp-6);
}

.testimonial-card {
  background: rgba(255,255,255,.08); /* Subtle contrast on dark bg */
  border: 1px solid rgba(255,255,255,.15);
  border-radius: var(--radius-lg);
  padding: var(--sp-8);
}

.testimonial-card blockquote {
  border-left: none;
  padding-left: 0;
  font-size: var(--text-lg);
  font-style: italic;
  color: rgba(255,255,255,.9);
  margin-bottom: var(--sp-4);
}

.testimonial-card cite {
  font-size: var(--text-sm);
  color: var(--color-gold); /* Gold on navy: 6.4:1 ✓ */
  font-style: normal;
  font-weight: 600;
}

/* Decorative opening quote — aria-hidden in HTML */
.testimonial-quote-mark {
  display: block;
  font-size: 4rem;
  line-height: 1;
  color: var(--color-gold);
  margin-bottom: var(--sp-2);
  font-family: Georgia, serif;
}


/* ============================================================
   15. PROCESS STEPS
   Numbered steps for the "How to Engage" section.
   ============================================================ */
.process-steps {
  display: grid;
  gap: var(--sp-6);
  counter-reset: step-counter;
}

.process-step {
  display: flex;
  gap: var(--sp-6);
  align-items: flex-start;
}

.process-step__number {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--color-navy);
  color: #FFFFFF;
  font-size: var(--text-xl);
  font-weight: 700;
  line-height: 1;
}

.section--dark .process-step__number {
  background: var(--color-gold);
  color: var(--color-navy); /* 7.7:1 ✓ */
}

.process-step__content h3 {
  font-size: var(--text-lg);
  margin-bottom: var(--sp-2);
}

.process-step__content p {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
}

.section--dark .process-step__content p {
  color: rgba(255,255,255,.75);
}


/* ============================================================
   16. CONTACT FORM
   ============================================================ */
.contact-grid {
  display: grid;
  gap: var(--sp-12);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  margin-bottom: var(--sp-5);
}

/* Label — always visible, never placeholder-only */
.form-label {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text);
}

/* Required field marker — both visually and with aria-required on the input */
.form-label .required-mark {
  color: var(--color-error);
  margin-left: var(--sp-1);
  /* aria-hidden set in HTML; the input uses aria-required="true" */
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: var(--sp-3) var(--sp-4);
  border: 2px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-surface);
  color: var(--color-text);
  font-size: var(--text-base);
  line-height: var(--leading-base);
  transition: border-color var(--ease), box-shadow var(--ease);
  /* Min 44px height for touch targets */
  min-height: 44px;
}

.form-textarea {
  min-height: 140px;
  resize: vertical;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  border-color: var(--color-navy);
  box-shadow: 0 0 0 3px rgba(1,22,30,.2); /* ink-black at 20% */
  outline: none; /* Custom focus indicator via box-shadow */
}

/* Error state */
.form-input[aria-invalid="true"],
.form-textarea[aria-invalid="true"] {
  border-color: var(--color-error);
  box-shadow: 0 0 0 3px rgba(153,27,27,.15);
}

/* Inline error message */
.form-error {
  font-size: var(--text-sm);
  color: var(--color-error);
  display: flex;
  align-items: center;
  gap: var(--sp-2);
}

/* Live region for form-level feedback (success / error) */
.form-status {
  padding: var(--sp-4);
  border-radius: var(--radius-md);
  font-weight: 600;
  margin-bottom: var(--sp-6);
  display: none;
}

.form-status.is-success {
  display: block;
  background: #DCFCE7;
  color: var(--color-success);
  border: 1px solid #86EFAC;
}

.form-status.is-error {
  display: block;
  background: #FEE2E2;
  color: var(--color-error);
  border: 1px solid #FCA5A5;
}

/* Form note / helper text */
.form-hint {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  margin-top: var(--sp-1);
}


/* ============================================================
   17. FOOTER
   ============================================================ */
.site-footer {
  background: var(--color-navy-dark);
  color: rgba(255,255,255,.8);
  padding: var(--sp-12) 0 var(--sp-6);
}

.footer-inner {
  display: grid;
  gap: var(--sp-10);
  margin-bottom: var(--sp-10);
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
}

.footer-brand p {
  font-size: var(--text-sm);
  max-width: 38ch;
}

.footer-nav-heading {
  font-size: var(--text-sm);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-gold);  /* Gold on navy-dark: well above 4.5:1 ✓ */
  margin-bottom: var(--sp-4);
}

.footer-nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}

.footer-nav-list a {
  font-size: var(--text-sm);
  color: rgba(255,255,255,.8);
  text-decoration: none;
  transition: color var(--ease);
}

.footer-nav-list a:visited {
  color: rgba(255,255,255,.8);
}

.footer-nav-list a:hover {
  color: #FFFFFF;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.12);
  padding-top: var(--sp-6);
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-4);
  justify-content: space-between;
  align-items: center;
  font-size: var(--text-sm);
  color: rgba(255,255,255,.55);
}

.footer-bottom a {
  color: rgba(255,255,255,.55);
}

.footer-bottom a:visited {
  color: rgba(255,255,255,.55);
}

.footer-bottom a:hover {
  color: rgba(255,255,255,.9);
}


/* ============================================================
   18. UTILITY CLASSES
   ============================================================ */

/* Text alignment */
.text-center { text-align: center; }
.text-left   { text-align: left;   }

/* Margin helpers */
.mt-4  { margin-top: var(--sp-4);  }
.mt-8  { margin-top: var(--sp-8);  }
.mt-12 { margin-top: var(--sp-12); }
.mb-4  { margin-bottom: var(--sp-4);  }
.mb-6  { margin-bottom: var(--sp-6);  }
.mb-8  { margin-bottom: var(--sp-8);  }
.mb-12 { margin-bottom: var(--sp-12); }

/* Inline-flex row */
.flex-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-4);
  align-items: center;
}

/* Chip / badge */
.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-1);
  padding: var(--sp-1) var(--sp-3);
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-weight: 600;
}

.badge--navy {
  background: var(--color-navy);
  color: #FFFFFF; /* 13.7:1 ✓ */
}

.badge--gold {
  background: var(--color-bg-alt);
  color: var(--color-navy);
  border: 1px solid var(--color-gold-dark);
}

/* Divider with optional label */
.divider {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  margin: var(--sp-8) 0;
  color: var(--color-text-secondary);
  font-size: var(--text-sm);
}

.divider::before,
.divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--color-border);
}


/* ============================================================
   19. RESPONSIVE OVERRIDES
   Mobile-first: styles above are mobile. Breakpoints add
   layout complexity progressively.
   ============================================================ */

/* ── Tablet and up (≥768px) ─────────────────────────────────── */
@media (min-width: 768px) {
  h1 { font-size: var(--text-5xl); }
  h2 { font-size: var(--text-4xl); }
  h3 { font-size: var(--text-3xl); }

  .grid-2       { grid-template-columns: repeat(2, 1fr); }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .testimonial-grid { grid-template-columns: repeat(2, 1fr); }
  .addon-grid   { grid-template-columns: repeat(2, 1fr); }
  .process-steps { grid-template-columns: repeat(2, 1fr); }
  .platform-list { grid-template-columns: repeat(2, 1fr); }

  .contact-grid { grid-template-columns: 1fr 1.5fr; }

  .footer-inner { grid-template-columns: 1.5fr 1fr 1fr; }

  .hero {
    padding: var(--sp-24) 0 var(--sp-20);
  }

  .hero__title {
    max-width: 22ch;
  }
}

/* ── Desktop and up (≥1024px) ───────────────────────────────── */
@media (min-width: 1024px) {
  :root { --content-pad: 2rem; }

  .feature-grid { grid-template-columns: repeat(3, 1fr); }
  .addon-grid   { grid-template-columns: repeat(3, 1fr); }
  .process-steps { grid-template-columns: repeat(4, 1fr); }

  .service-block {
    padding: var(--sp-12) var(--sp-10);
  }
}

/* ── Wide desktop (≥1280px) ─────────────────────────────────── */
@media (min-width: 1280px) {
  :root { --content-pad: 2.5rem; }
}


/* ============================================================
   20. PRINT STYLES
   ============================================================ */
@media print {
  /* Show full URLs for links */
  a[href]::after {
    content: ' (' attr(href) ')';
    font-size: 0.8em;
    color: #555;
  }

  /* Don't show hash links */
  a[href^="#"]::after {
    content: '';
  }

  /* Hide navigation and interactive chrome */
  .site-header,
  .site-footer,
  .nav-toggle,
  .btn-accent,
  .skip-link {
    display: none !important;
  }

  body {
    font-size: 11pt;
    color: #000;
    background: #fff;
  }

  h1, h2, h3 {
    color: #000;
    page-break-after: avoid;
  }

  /* Avoid breaking cards across pages */
  .service-block,
  .feature-card,
  .addon-card {
    page-break-inside: avoid;
  }

  .pricing-table-wrapper::before {
    display: none;
  }
}


/* ============================================================
   21. REDUCED-MOTION OVERRIDES
   WCAG 2.1 SC 2.3.3 (AAA) and good practice: respect the
   user's system preference for reduced motion.
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
