/* ============================================
   Lead 365 — v2
   Clean HTML/CSS · Accessibility · SEO
   ============================================ */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --blue: #0e172a;
  --blue-light: #1a2540;
  --brand: #1baee5;
  --navy: #0f172a;
  --slate-900: #1e293b;
  --slate-700: #334155;
  --slate-500: #64748b;
  --slate-300: #cbd5e1;
  --slate-100: #f1f5f9;
  --white: #ffffff;
  --text: #0f172a;
  --text-muted: #475569;
  --border: #e2e8f0;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: "Space Grotesk", "Inter", system-ui, sans-serif;
  --max-w: 1140px;
  --header-h: 72px;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  color: var(--text);
  line-height: 1.65;
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }

a {
  color: var(--blue);
  text-decoration: none;
  transition: color 0.2s var(--ease);
}
a:hover { color: var(--brand); }

:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

/* Skip link */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  background: var(--navy);
  color: var(--white);
  padding: 0.6rem 1.2rem;
  z-index: 1000;
  border-radius: 0 0 6px 6px;
  font-weight: 600;
  font-size: 0.85rem;
}
.skip-link:focus { top: 0; }

.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ============================================
   Header
   ============================================ */
.site-header {
  position: sticky;
  top: 0;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  z-index: 100;
  height: var(--header-h);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.logo {
  display: flex;
  align-items: center;
}

.logo img {
  display: block;
  height: auto;
}

.footer-about .logo img {
  filter: brightness(0) invert(1);
}

.main-nav ul {
  display: flex;
  gap: 0.15rem;
  align-items: center;
}

.main-nav a {
  display: block;
  padding: 0.45rem 0.75rem;
  color: var(--slate-700);
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: 6px;
  white-space: nowrap;
  transition: color 0.15s, background 0.15s;
}

.main-nav a:hover,
.main-nav a:focus-visible {
  color: var(--blue);
  background: var(--slate-100);
}

.main-nav a[aria-current="page"] {
  color: var(--blue);
  font-weight: 600;
}

/* --- Dropdown (JS-controlled) --- */
.has-dropdown {
  position: relative;
}

.has-dropdown > a {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.has-dropdown > a .chevron {
  display: inline-block;
  width: 10px;
  height: 10px;
  transition: transform 0.2s var(--ease);
}

.has-dropdown.is-open > a .chevron {
  transform: rotate(180deg);
}

.dropdown {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.08), 0 2px 6px rgba(0,0,0,0.04);
  min-width: 190px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: opacity 0.2s var(--ease), transform 0.2s var(--ease), visibility 0.2s;
  flex-direction: column;
  padding: 0.4rem;
  display: flex;
}

.has-dropdown.is-open .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown a {
  padding: 0.55rem 0.85rem;
  border-radius: 5px;
}

.dropdown a:hover {
  background: var(--slate-100);
}

/* Menu toggle */
.menu-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  cursor: pointer;
  padding: 0.4rem;
  color: var(--text);
  border-radius: 6px;
  transition: background 0.15s;
}
.menu-toggle:hover { background: var(--slate-100); }
.menu-toggle svg { width: 22px; height: 22px; }

/* ============================================
   Hero
   ============================================ */
.hero {
  background: var(--navy);
  color: var(--white);
  padding: 6rem 0 5rem;
  position: relative;
  overflow: hidden;
}

/* Subtle grid texture */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}

/* Accent glow */
.hero::after {
  content: "";
  position: absolute;
  top: -40%;
  right: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(27,174,229,0.15) 0%, transparent 70%);
  pointer-events: none;
}

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

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -1.5px;
  margin-bottom: 1.5rem;
  max-width: 720px;
}

.hero p {
  font-size: clamp(1rem, 2vw, 1.15rem);
  max-width: 560px;
  color: var(--slate-300);
  line-height: 1.7;
  margin-bottom: 2.5rem;
}

.hero--centered {
  text-align: center;
}
.hero--centered h1,
.hero--centered p {
  margin-left: auto;
  margin-right: auto;
}

/* Video hero */
.hero--video {
  position: relative;
  min-height: 520px;
  display: flex;
  align-items: center;
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(15,23,42,0.85) 0%, rgba(15,23,42,0.6) 100%);
  z-index: 1;
}

.hero--video .container {
  position: relative;
  z-index: 2;
}

.hero--video .btn-outline {
  margin-left: 0.75rem;
}

.hero__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3rem;
}

.hero__content {
  flex: 1;
  min-width: 0;
}

.hero__badge {
  flex-shrink: 0;
}

.hero__badge img {
  width: 140px;
  height: auto;
  filter: drop-shadow(0 8px 24px rgba(0,0,0,0.3));
}

@media (max-width: 768px) {
  .hero__inner {
    flex-direction: column;
    text-align: center;
  }
  .hero__badge img {
    width: 100px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-video {
    display: none;
  }
}

/* ============================================
   Buttons
   ============================================ */
.btn {
  display: inline-block;
  padding: 0.7rem 1.6rem;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: all 0.2s var(--ease);
  text-align: center;
  letter-spacing: -0.2px;
}

.btn-primary {
  background: var(--blue);
  color: var(--white);
  border-color: var(--blue);
}
.btn-primary:hover,
.btn-primary:focus-visible {
  background: var(--blue-light);
  border-color: var(--blue-light);
  color: var(--white);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.3);
}
.btn-outline:hover,
.btn-outline:focus-visible {
  background: var(--white);
  color: var(--navy);
  border-color: var(--white);
}

.btn-secondary {
  background: var(--slate-100);
  color: var(--text);
  border-color: var(--border);
}
.btn-secondary:hover,
.btn-secondary:focus-visible {
  background: var(--white);
  border-color: var(--slate-300);
  color: var(--text);
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

.btn-ghost {
  background: transparent;
  color: var(--blue);
  border-color: transparent;
  padding-left: 0;
  padding-right: 0;
}
.btn-ghost:hover { color: var(--brand); }
.btn-ghost::after {
  content: " \2192";
}

/* ============================================
   Sections
   ============================================ */
.section {
  padding: 5.5rem 0;
}

.section--alt {
  background: var(--slate-100);
}

.section--dark {
  background: var(--navy);
  color: var(--white);
}
.section--dark a:not(.btn) { color: var(--brand); }

/* Primary buttons on dark backgrounds use brand blue */
.section--dark .btn-primary,
.hero .btn-primary {
  background: var(--brand);
  border-color: var(--brand);
}
.section--dark .btn-primary:hover,
.section--dark .btn-primary:focus-visible,
.hero .btn-primary:hover,
.hero .btn-primary:focus-visible {
  background: #16a0d4;
  border-color: #16a0d4;
}

.section-eyebrow {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 0.75rem;
}

.section-header {
  margin-bottom: 3.5rem;
  max-width: 640px;
}

.section-header--center {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.section-header h2 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3.5vw, 2.25rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.75px;
  margin-bottom: 0.75rem;
}

.section-header p {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.7;
}

.section--dark .section-header p {
  color: var(--slate-300);
}

/* ============================================
   Client logos
   ============================================ */
/* Logo strip (static, used on proof.html etc.) */
.logo-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 1rem 0;
}

.logo-strip span {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--slate-500);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.6rem 1.2rem;
  background: var(--slate-100);
  border-radius: 100px;
  white-space: nowrap;
}

/* Logo carousel section */
.logo-carousel-section {
  padding: 1rem 0 1.25rem;
  background: var(--navy);
}

.logo-carousel-label {
  text-align: center;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--slate-500);
  margin-bottom: 1.25rem;
}

/* Logo carousel (infinite scroll) */
.logo-carousel {
  overflow: hidden;
  padding: 0.5rem 0;
  mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.logo-carousel__track {
  display: flex;
  align-items: center;
  gap: 5.5rem;
  width: max-content;
  animation: logo-scroll 30s linear infinite;
}

.logo-carousel__track:hover {
  animation-play-state: paused;
}

.logo-carousel__item {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 0.5rem;
}

.logo-carousel__item img {
  width: var(--logo-w, 110px);
  height: auto;
  object-fit: contain;
  opacity: 0.5;
  filter: brightness(0) invert(1);
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease);
}

.logo-carousel__item:hover img {
  opacity: 1;
  transform: scale(1.05);
}

@keyframes logo-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(var(--scroll-dist, -50%)); }
}

@media (prefers-reduced-motion: reduce) {
  .logo-carousel__track {
    animation: none;
    flex-wrap: wrap;
    justify-content: center;
    width: auto;
    gap: 2.5rem;
  }
  .logo-carousel {
    mask-image: none;
    -webkit-mask-image: none;
  }
  .logo-carousel__item[aria-hidden="true"] {
    display: none;
  }
}

/* ============================================
   Stats — editorial layout
   ============================================ */
.stats-editorial {
  display: grid;
  gap: 2.5rem;
}

.stat-large {
  display: flex;
  align-items: baseline;
  gap: 2rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.stat-large__number {
  font-family: var(--font-display);
  font-size: clamp(4rem, 10vw, 7rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -3px;
  background: linear-gradient(135deg, var(--brand) 0%, #8dd8f5 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  flex-shrink: 0;
}

.stat-large__label {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--slate-300);
  line-height: 1.5;
  max-width: 340px;
}

.stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.stat-compact {
  padding-left: 1.25rem;
  border-left: 2px solid rgba(255,255,255,0.1);
}

.stat-compact__number {
  display: block;
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--white);
  letter-spacing: -1.5px;
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat-compact__label {
  display: block;
  color: var(--slate-500);
  font-size: 0.85rem;
  line-height: 1.5;
}

/* Legacy stat (used on sub-pages) */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 2rem;
}

.stat {
  text-align: left;
  padding: 1.5rem 0;
  border-top: 2px solid var(--border);
}

.section--dark .stat {
  border-top-color: rgba(255,255,255,0.1);
}

.stat h3 {
  font-family: var(--font-display);
  font-size: 2.75rem;
  font-weight: 800;
  color: var(--brand);
  letter-spacing: -1.5px;
  line-height: 1;
  margin-bottom: 0.4rem;
}

.stat p {
  color: var(--text-muted);
  font-size: 0.875rem;
  line-height: 1.5;
}

.section--dark .stat p { color: var(--slate-300); }

/* ============================================
   Card grid
   ============================================ */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 2rem 1.75rem;
  transition: box-shadow 0.25s var(--ease), border-color 0.25s var(--ease);
}

.card:hover {
  box-shadow: 0 8px 24px rgba(0,0,0,0.06);
  border-color: var(--slate-300);
}

.card h3 {
  font-size: 1.1rem;
  font-weight: 650;
  margin-bottom: 0.5rem;
  color: var(--text);
  letter-spacing: -0.3px;
}

.card p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.65;
  margin-bottom: 1rem;
}

/* ============================================
   Testimonials
   ============================================ */
.testimonials {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.testimonial {
  background: var(--white);
  padding: 2rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  position: relative;
}

.testimonial::before {
  content: "\201C";
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  font-size: 3.5rem;
  line-height: 1;
  color: var(--slate-100);
  font-family: Georgia, serif;
}

.testimonial blockquote {
  font-style: normal;
  color: var(--text);
  margin-bottom: 1.25rem;
  line-height: 1.7;
  font-size: 0.95rem;
}

.testimonial cite {
  display: block;
  font-style: normal;
  font-weight: 600;
  color: var(--text);
  font-size: 0.875rem;
}

.testimonial cite span {
  display: block;
  font-weight: 400;
  color: var(--slate-500);
  font-size: 0.8rem;
  margin-top: 0.15rem;
}

/* ============================================
   Two-column
   ============================================ */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.two-col h2 {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 3vw, 2rem);
  font-weight: 700;
  margin-bottom: 1rem;
  line-height: 1.2;
  letter-spacing: -0.5px;
}

.two-col p {
  color: var(--text-muted);
  margin-bottom: 1.25rem;
  line-height: 1.7;
}

/* ============================================
   Steps
   ============================================ */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  counter-reset: step;
}

.step {
  padding: 2rem 1.75rem;
  background: var(--white);
  border-radius: 10px;
  border: 1px solid var(--border);
  counter-increment: step;
  transition: box-shadow 0.25s var(--ease);
}

.step:hover {
  box-shadow: 0 8px 24px rgba(0,0,0,0.06);
}

.step::before {
  content: "0" counter(step);
  display: block;
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--brand);
  letter-spacing: 0.05em;
  margin-bottom: 1.25rem;
}

.step h3 {
  font-size: 1.05rem;
  font-weight: 650;
  margin-bottom: 0.5rem;
  letter-spacing: -0.2px;
}

.step p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

/* ============================================
   Blog posts
   ============================================ */
.posts-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 1rem;
}

.post-card {
  display: flex;
  flex-direction: column;
  padding: 1.5rem 1.75rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.post-card--featured {
  grid-row: span 2;
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}

.post-card--featured .post-tag {
  background: rgba(27,174,229,0.15);
  color: var(--brand);
}

.post-card--featured .post-card__read {
  color: var(--brand);
}

.post-card:hover,
.post-card:focus-visible {
  border-color: var(--blue);
  box-shadow: 0 4px 16px rgba(14,23,42,0.08);
  color: inherit;
}

.post-card--featured:hover {
  border-color: var(--brand);
}

.post-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.25rem 0.65rem;
  background: var(--slate-100);
  color: var(--slate-500);
  border-radius: 100px;
  margin-bottom: 0.75rem;
  width: fit-content;
}

.post-card h3 {
  font-size: 0.95rem;
  line-height: 1.45;
  font-weight: 550;
  flex: 1;
}

.post-card--featured h3 {
  font-size: 1.15rem;
  line-height: 1.4;
  font-weight: 650;
}

.post-card__read {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--blue);
  margin-top: 1rem;
}

/* ============================================
   Compliance scores
   ============================================ */
.scores {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1.5rem;
}

.score {
  text-align: center;
  padding: 2rem 1rem;
  background: var(--white);
  border-radius: 10px;
  border: 1px solid var(--border);
  transition: border-color 0.2s var(--ease);
}

.score:last-child {
  border-color: var(--brand);
}

.score .year {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--slate-500);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

.score .value {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -1px;
}

.score:last-child .value {
  color: var(--blue);
}

/* ============================================
   Case studies
   ============================================ */
.case-studies {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.case-study {
  padding: 1.75rem;
  background: var(--white);
  border-radius: 10px;
  border: 1px solid var(--border);
  transition: box-shadow 0.25s var(--ease);
}

.case-study:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.05);
}

.case-study .result {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  color: var(--blue);
  letter-spacing: -1px;
  margin-bottom: 0.25rem;
  line-height: 1.1;
}

.case-study h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
  color: var(--text);
}

.case-study p {
  color: var(--text-muted);
  font-size: 0.875rem;
  line-height: 1.55;
}

/* ============================================
   Sectors
   ============================================ */
.sector-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.sector-card {
  padding: 2.25rem 2rem;
  background: var(--navy);
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.06);
  color: var(--white);
  position: relative;
  overflow: hidden;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.sector-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--brand), transparent);
  opacity: 0;
  transition: opacity 0.3s var(--ease);
}

.sector-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.2);
}

.sector-card:hover::before {
  opacity: 1;
}

.sector-card__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.sector-card__stat {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--brand);
  letter-spacing: -1.5px;
  line-height: 1;
  flex-shrink: 0;
}

.sector-card__logos {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.sector-card__logos img {
  height: 24px;
  width: auto;
  opacity: 0.45;
  transition: opacity 0.3s var(--ease);
}

.sector-card:hover .sector-card__logos img {
  opacity: 0.7;
}

.sector-card h3 {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--brand);
  margin-bottom: 0.75rem;
}

.sector-card p {
  color: var(--slate-300);
  font-size: 0.9rem;
  line-height: 1.65;
}

/* ============================================
   Forms
   ============================================ */
.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-weight: 550;
  font-size: 0.875rem;
  margin-bottom: 0.35rem;
  color: var(--text);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 0.95rem;
  font-family: inherit;
  color: var(--text);
  background: var(--white);
  transition: border-color 0.15s, box-shadow 0.15s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--blue);
  outline: none;
  box-shadow: 0 0 0 3px rgba(14,23,42,0.1);
}

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

.form-group .error-msg {
  color: #dc2626;
  font-size: 0.8rem;
  margin-top: 0.25rem;
  display: none;
}

.form-group.has-error input,
.form-group.has-error textarea,
.form-group.has-error select {
  border-color: #dc2626;
}

.form-group.has-error .error-msg {
  display: block;
}

.checkbox-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.checkbox-group label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 400;
  cursor: pointer;
}

.checkbox-group input[type="checkbox"],
.checkbox-group input[type="radio"] {
  width: auto;
  accent-color: var(--blue);
}

/* ============================================
   Tabs
   ============================================ */
.tabs {
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
}

.tab-list {
  display: flex;
  flex-wrap: wrap;
  background: var(--slate-100);
  border-bottom: 1px solid var(--border);
  gap: 0;
}

.tab-list button {
  flex: 1;
  padding: 0.85rem 1rem;
  border: none;
  background: none;
  cursor: pointer;
  font-weight: 550;
  font-size: 0.85rem;
  color: var(--slate-500);
  border-bottom: 2px solid transparent;
  transition: all 0.15s;
  font-family: inherit;
  min-width: 140px;
}

.tab-list button[aria-selected="true"] {
  color: var(--blue);
  background: var(--white);
  border-bottom-color: var(--blue);
}

.tab-list button:hover:not([aria-selected="true"]) {
  color: var(--text);
  background: rgba(255,255,255,0.5);
}

.tab-panel {
  padding: 2rem;
  display: none;
}

.tab-panel.active {
  display: block;
}

/* ============================================
   Certifications
   ============================================ */
.certs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  justify-content: center;
  padding: 1rem 0;
}

.certs a {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--slate-500);
  padding: 0.4rem 0.8rem;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 100px;
  transition: border-color 0.15s, color 0.15s;
}

.certs a:hover {
  border-color: var(--brand);
  color: var(--brand);
}

/* ============================================
   Contact options
   ============================================ */
.contact-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.contact-option {
  padding: 2rem 1.75rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  text-align: center;
  transition: box-shadow 0.25s var(--ease);
}

.contact-option:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.05);
}

.contact-option h3 {
  font-size: 1.1rem;
  font-weight: 650;
  margin-bottom: 0.6rem;
  letter-spacing: -0.3px;
}

.contact-option p {
  color: var(--text-muted);
  margin-bottom: 1.25rem;
  font-size: 0.9rem;
  line-height: 1.6;
}

/* ============================================
   Footer
   ============================================ */
.site-footer {
  background: var(--navy);
  color: var(--slate-300);
  padding: 4rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-about .logo {
  color: var(--white);
  margin-bottom: 1.25rem;
  display: inline-block;
}

.footer-about p {
  font-size: 0.875rem;
  line-height: 1.7;
}

.footer-about .ceo-quote {
  font-style: italic;
  border-left: 2px solid var(--brand);
  padding-left: 1rem;
  margin-top: 1rem;
  font-size: 0.85rem;
  color: var(--slate-500);
}

.site-footer h4 {
  color: var(--white);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1rem;
}

.footer-links a {
  display: block;
  color: var(--slate-500);
  font-size: 0.875rem;
  padding: 0.2rem 0;
  transition: color 0.15s;
}

.footer-links a:hover { color: var(--white); }

.footer-contact address {
  font-style: normal;
  font-size: 0.875rem;
  line-height: 1.8;
  color: var(--slate-500);
}

.footer-contact a { color: var(--brand); }
.footer-contact a:hover { color: var(--white); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.footer-bottom p {
  font-size: 0.75rem;
  color: var(--slate-700);
}

.footer-bottom-links {
  display: flex;
  gap: 1.5rem;
}

.footer-bottom-links a {
  font-size: 0.75rem;
  color: var(--slate-700);
  transition: color 0.15s;
}

.footer-bottom-links a:hover { color: var(--slate-300); }

/* ============================================
   CTA sections
   ============================================ */
.cta {
  text-align: center;
}

.cta h2 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3.5vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.75px;
  margin-bottom: 0.75rem;
}

.cta p {
  max-width: 540px;
  margin: 0 auto 2rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.section--dark .cta p {
  color: var(--slate-300);
}

.cta-sectors {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
  margin-bottom: 2rem;
}

.cta-sectors li {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.5rem 1.2rem;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 100px;
  color: var(--slate-300);
}

/* ============================================
   Utilities
   ============================================ */
.text-center { text-align: center; }
.narrow { max-width: 700px; margin-left: auto; margin-right: auto; }
.mt-2 { margin-top: 2rem; }

fieldset.clean {
  border: none;
  padding: 0;
  margin-bottom: 1.25rem;
}

fieldset.clean legend {
  font-weight: 550;
  font-size: 0.875rem;
  margin-bottom: 0.5rem;
}

.list-disc {
  list-style: disc;
  padding-left: 1.5rem;
  color: var(--text-muted);
  line-height: 2;
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 900px) {
  .two-col {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .section { padding: 4rem 0; }
  .hero { padding: 4.5rem 0 4rem; }

  .stat-large {
    flex-direction: column;
    gap: 0.75rem;
  }

  .stat-row {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .sector-grid {
    grid-template-columns: 1fr;
  }

  .posts-grid {
    grid-template-columns: 1fr;
  }

  .post-card--featured {
    grid-row: auto;
  }
}

@media (max-width: 768px) {
  .menu-toggle { display: block; }

  .main-nav {
    position: fixed;
    inset: var(--header-h) 0 0 0;
    background: var(--white);
    padding: 1rem;
    transform: translateX(100%);
    transition: transform 0.3s var(--ease);
    overflow-y: auto;
    z-index: 99;
    border-top: 1px solid var(--border);
  }

  .main-nav.is-open {
    transform: translateX(0);
  }

  .main-nav ul {
    flex-direction: column;
    gap: 0;
  }

  .main-nav a {
    padding: 0.85rem 1rem;
    font-size: 1rem;
    border-radius: 8px;
  }

  /* Dropdown always visible in mobile nav */
  .has-dropdown .dropdown {
    position: static;
    box-shadow: none;
    border: none;
    opacity: 1;
    visibility: visible;
    transform: none;
    padding-left: 1rem;
    background: transparent;
  }

  .tab-list { flex-direction: column; }

  .tab-list button {
    border-bottom: none;
    border-left: 2px solid transparent;
    text-align: left;
  }

  .tab-list button[aria-selected="true"] {
    border-left-color: var(--blue);
    border-bottom: none;
  }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 1.85rem; letter-spacing: -1px; }
  .stats { grid-template-columns: 1fr 1fr; }
  .card-grid, .testimonials, .case-studies { grid-template-columns: 1fr; }
}

@media print {
  .site-header, .menu-toggle, .skip-link, .btn { display: none; }
  body { font-size: 11pt; color: #000; }
  .hero { background: none; color: #000; padding: 1rem 0; }
  .hero::before, .hero::after { display: none; }
}
