/* ==========================================================================
   Advanced Consulting LLC — Design System
   Brand foundation adapted from AdvancedConsulting.io
   Blues, whites, greys · enterprise consulting aesthetic
   ========================================================================== */

:root {
  /* Primary palette (Advanced Consulting) */
  --primary: #4a6fa5;
  --primary-dark: #3d5a87;
  --primary-darker: #2c3e50;
  --primary-light: #6b8fc4;
  --primary-soft: rgba(74, 111, 165, 0.08);
  --primary-glow: rgba(74, 111, 165, 0.3);

  /* Neutrals */
  --white: #ffffff;
  --bg: #f8f9fa;
  --bg-alt: #eef1f5;
  --text: #333333;
  --text-muted: #666666;
  --text-light: #8899a6;
  --border: #dde3ea;
  --border-light: #e8ecf1;

  /* Semantic */
  --success: #2d8a5e;
  --success-bg: #e8f5ee;
  --error: #c0392b;
  --error-bg: #fdecea;
  --warning: #e74c3c;
  --accent-teal: #1a8a8a;

  /* Typography */
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu,
    Cantarell, "Helvetica Neue", sans-serif;
  --fs-xs: 0.8125rem;
  --fs-sm: 0.9375rem;
  --fs-base: 1rem;
  --fs-md: 1.125rem;
  --fs-lg: 1.25rem;
  --fs-xl: 1.5rem;
  --fs-2xl: 1.875rem;
  --fs-3xl: 2.375rem;
  --fs-4xl: 3rem;
  --fs-hero: clamp(2rem, 5vw, 3rem);

  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 0.75rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 5rem;
  --section-pad: clamp(3.5rem, 8vw, 5rem);

  /* Layout */
  --container: 1120px;
  --container-wide: 1200px;
  --radius: 10px;
  --radius-sm: 6px;
  --radius-lg: 14px;
  --header-h: 76px;

  /* Elevation */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
  --shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.12);
  --shadow-header: 0 2px 10px rgba(0, 0, 0, 0.1);

  /* Motion */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --transition: 0.25s var(--ease);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font);
  font-size: var(--fs-base);
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: var(--primary);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--primary-dark);
}

ul,
ol {
  list-style: none;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

/* Focus styles (WCAG) */
:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: var(--space-md);
  z-index: 10000;
  background: var(--primary-darker);
  color: var(--white);
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
}

.skip-link:focus {
  top: var(--space-md);
}

/* --------------------------------------------------------------------------
   Layout
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 1.75rem);
}

.container--wide {
  max-width: var(--container-wide);
}

.section {
  padding: var(--section-pad) 0;
}

.section--white {
  background: var(--white);
}

.section--muted {
  background: var(--bg);
}

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

.section--primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: var(--white);
}

.section--dark {
  background: var(--primary-darker);
  color: var(--white);
}

.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto var(--space-2xl);
}

.section-header--left {
  text-align: left;
  margin-left: 0;
}

.section-eyebrow {
  display: inline-block;
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: var(--space-sm);
}

.section--primary .section-eyebrow,
.section--dark .section-eyebrow {
  color: rgba(255, 255, 255, 0.75);
}

.section-title {
  font-size: clamp(1.75rem, 4vw, 2.375rem);
  font-weight: 700;
  color: var(--primary-darker);
  line-height: 1.25;
  margin-bottom: var(--space-md);
  letter-spacing: -0.02em;
}

.section--primary .section-title,
.section--dark .section-title {
  color: var(--white);
}

.section-subtitle {
  font-size: var(--fs-md);
  color: var(--text-muted);
  line-height: 1.7;
}

.section--primary .section-subtitle,
.section--dark .section-subtitle {
  color: rgba(255, 255, 255, 0.9);
}

/* --------------------------------------------------------------------------
   Header / Navigation
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--white);
  box-shadow: var(--shadow-header);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-h);
  gap: var(--space-lg);
}

.logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  line-height: 0;
}

.logo:hover {
  opacity: 0.92;
}

/* Official advancedconsulting.io logo */
.logo-img {
  display: block;
  width: min(240px, 52vw);
  height: auto;
  max-height: 52px;
  object-fit: contain;
  object-position: left center;
}

.logo-img--footer {
  width: min(200px, 70vw);
  max-height: 48px;
  /* Lighten navy logo for dark footer */
  filter: brightness(0) invert(1);
  opacity: 0.95;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--white);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  padding: 0;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--primary-darker);
  border-radius: 1px;
  transition: transform var(--transition), opacity var(--transition);
}

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

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

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

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

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

.nav-list a {
  display: block;
  padding: 0.5rem 0.85rem;
  color: var(--text);
  font-size: var(--fs-sm);
  font-weight: 500;
  border-radius: var(--radius-sm);
  transition: background var(--transition), color var(--transition);
}

.nav-list a:hover,
.nav-list a[aria-current="page"] {
  color: var(--primary);
  background: var(--primary-soft);
}

.nav-cta {
  margin-left: 0.5rem;
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  border-radius: 5px;
  font-weight: 600;
  font-size: var(--fs-base);
  line-height: 1.3;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(0);
}

.btn--primary {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}

.btn--primary:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  color: var(--white);
  box-shadow: 0 5px 15px var(--primary-glow);
}

.btn--white {
  background: var(--white);
  color: var(--primary);
  border-color: var(--white);
}

.btn--white:hover {
  background: #f0f0f0;
  color: var(--primary-dark);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

.btn--outline {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}

.btn--outline:hover {
  background: var(--primary);
  color: var(--white);
}

.btn--outline-white {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.65);
}

.btn--outline-white:hover {
  background: var(--white);
  color: var(--primary);
  border-color: var(--white);
}

.btn--lg {
  padding: 0.95rem 2.25rem;
  font-size: var(--fs-md);
}

.btn--full {
  width: 100%;
}

.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  align-items: center;
}

.btn-group--center {
  justify-content: center;
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: var(--white);
  padding: clamp(3.5rem, 10vw, 5.5rem) 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 20% 80%, rgba(255, 255, 255, 0.08) 0%, transparent 60%),
    radial-gradient(ellipse 50% 40% at 85% 20%, rgba(255, 255, 255, 0.06) 0%, transparent 55%);
  pointer-events: none;
}

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

.hero-eyebrow {
  display: inline-block;
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.85;
  margin-bottom: var(--space-md);
  padding: 0.35rem 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 999px;
}

.hero h1 {
  font-size: var(--fs-hero);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.025em;
  margin-bottom: var(--space-lg);
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.hero-lead {
  font-size: clamp(1.05rem, 2.2vw, 1.25rem);
  opacity: 0.95;
  max-width: 700px;
  margin: 0 auto var(--space-2xl);
  line-height: 1.7;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem 2.5rem;
  margin-top: var(--space-2xl);
  padding-top: var(--space-2xl);
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-stat {
  text-align: center;
}

.hero-stat strong {
  display: block;
  font-size: clamp(1.5rem, 3vw, 1.85rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.hero-stat span {
  font-size: var(--fs-xs);
  opacity: 0.8;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
}

/* Page hero (inner pages) */
.page-hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: var(--white);
  padding: clamp(3rem, 7vw, 4.5rem) 0;
  text-align: center;
}

.page-hero h1 {
  font-size: clamp(1.85rem, 4vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  margin-bottom: var(--space-md);
  line-height: 1.2;
}

.page-hero p {
  font-size: var(--fs-md);
  opacity: 0.95;
  max-width: 680px;
  margin: 0 auto;
  line-height: 1.7;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.4rem;
  align-items: center;
  font-size: var(--fs-xs);
  margin-bottom: var(--space-lg);
  opacity: 0.8;
}

.breadcrumb a {
  color: var(--white);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.breadcrumb a:hover {
  opacity: 0.85;
  color: var(--white);
}

.breadcrumb span[aria-hidden] {
  opacity: 0.5;
}

/* --------------------------------------------------------------------------
   Cards & Grids
   -------------------------------------------------------------------------- */
.grid {
  display: grid;
  gap: 1.75rem;
}

.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

.card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
  border: 1px solid transparent;
  height: 100%;
  display: flex;
  flex-direction: column;
}

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

.card--muted {
  background: var(--bg);
  box-shadow: none;
  border: 1px solid var(--border-light);
}

.card--muted:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow);
}

.card--border-left {
  border-left: 4px solid var(--primary);
  border-radius: 0 var(--radius) var(--radius) 0;
}

.card--accent-warn {
  border-left-color: var(--warning);
}

.card-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: var(--primary-soft);
  color: var(--primary);
  display: grid;
  place-items: center;
  margin-bottom: var(--space-lg);
  flex-shrink: 0;
}

.card-icon svg {
  width: 26px;
  height: 26px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.card-icon--lg {
  width: 56px;
  height: 56px;
  font-size: 1.75rem;
  background: transparent;
  margin-bottom: var(--space-md);
}

.card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.75rem;
  line-height: 1.3;
}

.card h3 a {
  color: inherit;
}

.card h3 a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.card p {
  color: var(--text-muted);
  line-height: 1.75;
  flex-grow: 1;
}

.card-list {
  margin-top: var(--space-md);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.card-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  font-size: var(--fs-sm);
  color: var(--text-muted);
  line-height: 1.5;
}

.card-list li::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary);
  margin-top: 0.45rem;
  flex-shrink: 0;
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: var(--space-lg);
  font-weight: 600;
  font-size: var(--fs-sm);
  color: var(--primary);
}

.card-link:hover {
  gap: 0.55rem;
}

/* Feature / benefit items */
.benefit-item {
  text-align: center;
  padding: 1.75rem 1.25rem;
}

.benefit-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  line-height: 1;
}

.benefit-item h3 {
  color: var(--primary-darker);
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
  font-weight: 700;
}

.benefit-item p {
  color: var(--text-muted);
  font-size: var(--fs-sm);
  line-height: 1.7;
}

/* --------------------------------------------------------------------------
   Process / Steps
   -------------------------------------------------------------------------- */
.process-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
}

.process-step {
  background: rgba(255, 255, 255, 0.1);
  padding: 1.75rem;
  border-radius: var(--radius);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.step-number {
  font-size: 2.5rem;
  font-weight: 700;
  opacity: 0.45;
  margin-bottom: 0.5rem;
  line-height: 1;
  letter-spacing: -0.03em;
}

.process-step h3 {
  font-size: 1.15rem;
  margin-bottom: 0.65rem;
  font-weight: 700;
}

.process-step p {
  font-size: var(--fs-sm);
  opacity: 0.9;
  line-height: 1.65;
}

/* Numbered feature list (vertical) */
.feature-rows {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.feature-row {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.25rem;
  align-items: flex-start;
  background: var(--white);
  padding: 1.75rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
}

.feature-num {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: var(--white);
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: var(--fs-sm);
  flex-shrink: 0;
}

.feature-row h3 {
  color: var(--primary-darker);
  font-size: 1.15rem;
  margin-bottom: 0.4rem;
}

.feature-row p {
  color: var(--text-muted);
  font-size: var(--fs-sm);
  line-height: 1.7;
}

/* --------------------------------------------------------------------------
   Case studies / testimonials
   -------------------------------------------------------------------------- */
.case-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: var(--space-md);
}

.tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary);
}

.case-result {
  margin-top: var(--space-lg);
  padding-top: var(--space-md);
  border-top: 1px solid var(--border-light);
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--success);
}

.testimonial {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
  border-left: 4px solid var(--primary);
  height: 100%;
}

.testimonial blockquote {
  font-size: var(--fs-sm);
  color: var(--text);
  line-height: 1.75;
  margin-bottom: var(--space-lg);
  font-style: italic;
}

.testimonial cite {
  display: block;
  font-style: normal;
  font-weight: 700;
  font-size: var(--fs-sm);
  color: var(--primary-darker);
}

.testimonial cite span {
  display: block;
  font-weight: 500;
  color: var(--text-muted);
  margin-top: 0.15rem;
}

/* --------------------------------------------------------------------------
   Split layout
   -------------------------------------------------------------------------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.split--start {
  align-items: start;
}

.split-content h2 {
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  color: var(--primary-darker);
  margin-bottom: var(--space-md);
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.split-content p {
  color: var(--text-muted);
  margin-bottom: var(--space-md);
  line-height: 1.75;
}

.check-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin: var(--space-lg) 0;
}

.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  color: var(--text);
  font-size: var(--fs-sm);
  line-height: 1.5;
}

.check-list li svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: var(--primary);
  margin-top: 0.1rem;
}

/* Soft panel for visual interest */
.soft-panel {
  background: var(--bg);
  border-radius: var(--radius-lg);
  padding: 2rem;
  border: 1px solid var(--border-light);
}

.soft-panel--primary {
  background: linear-gradient(145deg, var(--primary-soft), rgba(61, 90, 135, 0.06));
  border-color: rgba(74, 111, 165, 0.15);
}

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

.stat-box {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.25rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
}

.stat-box strong {
  display: block;
  font-size: 1.65rem;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: -0.02em;
  margin-bottom: 0.25rem;
}

.stat-box span {
  font-size: var(--fs-xs);
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* --------------------------------------------------------------------------
   Integration / logo strip
   -------------------------------------------------------------------------- */
.logo-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem 1rem;
}

.logo-chip {
  padding: 0.65rem 1.15rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--primary-darker);
  box-shadow: var(--shadow-sm);
}

/* Specialty pills */
.pill-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.pill {
  padding: 0.5rem 1rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--text);
}

/* --------------------------------------------------------------------------
   CTA band
   -------------------------------------------------------------------------- */
.cta-band {
  background: var(--primary-darker);
  color: var(--white);
  text-align: center;
  padding: var(--section-pad) 0;
}

.cta-band h2 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  margin-bottom: var(--space-md);
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.cta-band p {
  font-size: var(--fs-md);
  opacity: 0.9;
  max-width: 600px;
  margin: 0 auto var(--space-xl);
  line-height: 1.7;
}

/* --------------------------------------------------------------------------
   Forms
   -------------------------------------------------------------------------- */
.form-panel {
  max-width: 640px;
  margin: 0 auto;
  background: var(--bg);
  padding: clamp(1.75rem, 4vw, 2.5rem);
  border-radius: var(--radius);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.form-panel--white {
  background: var(--white);
  border: 1px solid var(--border-light);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.15rem;
}

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

.form-group--full {
  grid-column: 1 / -1;
}

.form-group label {
  display: block;
  margin-bottom: 0.45rem;
  font-weight: 600;
  color: var(--primary-darker);
  font-size: var(--fs-sm);
}

.form-group .required {
  color: var(--error);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: 5px;
  background: var(--white);
  font-size: 1rem;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.form-group input:hover,
.form-group select:hover,
.form-group textarea:hover {
  border-color: #c5ced8;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-soft);
}

.form-group input[aria-invalid="true"],
.form-group select[aria-invalid="true"],
.form-group textarea[aria-invalid="true"] {
  border-color: var(--error);
  box-shadow: 0 0 0 3px rgba(192, 57, 43, 0.12);
}

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

.field-error {
  display: none;
  margin-top: 0.4rem;
  font-size: var(--fs-xs);
  color: var(--error);
  font-weight: 500;
}

.field-error.is-visible {
  display: block;
}

.form-hint {
  font-size: var(--fs-xs);
  color: var(--text-muted);
  margin-top: 0.85rem;
  text-align: center;
}

.form-success {
  display: none;
  text-align: center;
  padding: 2rem 1rem;
}

.form-success.is-visible {
  display: block;
}

.form-success-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--success-bg);
  color: var(--success);
  display: grid;
  place-items: center;
  margin: 0 auto 1.25rem;
  font-size: 1.75rem;
}

.form-success h3 {
  color: var(--primary-darker);
  margin-bottom: 0.5rem;
  font-size: 1.35rem;
}

.form-success p {
  color: var(--text-muted);
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.contact-detail {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.contact-detail-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--primary-soft);
  color: var(--primary);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.contact-detail-icon svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.contact-detail h3 {
  font-size: var(--fs-sm);
  color: var(--primary-darker);
  margin-bottom: 0.2rem;
}

.contact-detail p,
.contact-detail a {
  font-size: var(--fs-sm);
  color: var(--text-muted);
}

.contact-detail a:hover {
  color: var(--primary);
}

/* --------------------------------------------------------------------------
   Team
   -------------------------------------------------------------------------- */
.team-card {
  text-align: center;
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  box-shadow: var(--shadow);
  height: 100%;
}

.team-avatar {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: var(--white);
  display: grid;
  place-items: center;
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 auto 1.15rem;
  letter-spacing: -0.02em;
}

.team-card h3 {
  color: var(--primary-darker);
  font-size: 1.15rem;
  margin-bottom: 0.25rem;
}

.team-role {
  color: var(--primary);
  font-size: var(--fs-sm);
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.team-card p {
  color: var(--text-muted);
  font-size: var(--fs-sm);
  line-height: 1.65;
}

/* --------------------------------------------------------------------------
   Timeline
   -------------------------------------------------------------------------- */
.timeline {
  display: grid;
  gap: 1.25rem;
  max-width: 800px;
  margin: 0 auto;
}

.timeline-item {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 1.5rem;
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
}

.timeline-when {
  font-weight: 700;
  color: var(--primary);
  font-size: var(--fs-sm);
}

.timeline-item h3 {
  color: var(--primary-darker);
  font-size: 1.05rem;
  margin-bottom: 0.35rem;
}

.timeline-item p {
  color: var(--text-muted);
  font-size: var(--fs-sm);
  line-height: 1.65;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-footer {
  background: var(--primary-darker);
  color: var(--white);
  padding: 3.5rem 0 0;
}

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

.footer-brand .logo {
  display: inline-flex;
  margin-bottom: 1.15rem;
}

.footer-brand .logo:hover {
  opacity: 0.85;
}

.footer-brand p {
  font-size: var(--fs-sm);
  opacity: 0.8;
  line-height: 1.7;
  max-width: 280px;
}

.footer-col h4 {
  font-size: var(--fs-sm);
  font-weight: 700;
  margin-bottom: 1rem;
  letter-spacing: 0.02em;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.footer-col a {
  color: rgba(255, 255, 255, 0.75);
  font-size: var(--fs-sm);
  transition: color var(--transition);
}

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

.footer-col p {
  font-size: var(--fs-sm);
  opacity: 0.75;
  line-height: 1.7;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1.35rem 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: var(--fs-xs);
  opacity: 0.7;
}

/* --------------------------------------------------------------------------
   Utilities
   -------------------------------------------------------------------------- */
.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;
}

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

.mt-0 {
  margin-top: 0;
}

.mb-0 {
  margin-bottom: 0;
}

.mt-lg {
  margin-top: var(--space-lg);
}

.mt-xl {
  margin-top: var(--space-xl);
}

.mb-xl {
  margin-bottom: var(--space-xl);
}

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

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

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

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

  .split--reverse-mobile .split-visual {
    order: -1;
  }
}

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

  .nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    align-items: stretch;
    padding: 1rem 1.25rem 1.5rem;
    box-shadow: var(--shadow-lg);
    border-top: 1px solid var(--border-light);
    transform: translateY(-120%);
    opacity: 0;
    visibility: hidden;
    transition: transform var(--transition), opacity var(--transition),
      visibility var(--transition);
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
  }

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

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 0.15rem;
  }

  .nav-list a {
    padding: 0.85rem 1rem;
    font-size: 1rem;
  }

  .nav-cta {
    margin: 0.75rem 0 0;
  }

  .nav-cta .btn {
    width: 100%;
  }

  body.nav-open {
    overflow: hidden;
  }

  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }

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

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

  .timeline-item {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }

  .hero-stats {
    gap: 1.25rem 1.5rem;
  }

  .btn-group {
    flex-direction: column;
    width: 100%;
  }

  .btn-group .btn {
    width: 100%;
  }

  .hero .btn-group {
    max-width: 360px;
    margin-left: auto;
    margin-right: auto;
  }
}

@media (max-width: 480px) {
  .logo-img {
    width: min(200px, 58vw);
    max-height: 44px;
  }

  .card {
    padding: 1.5rem;
  }

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

/* --------------------------------------------------------------------------
   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;
  }

  .card:hover,
  .btn:hover {
    transform: none;
  }
}

/* Print */
@media print {
  .site-header,
  .nav-toggle,
  .cta-band,
  .site-footer {
    display: none;
  }

  body {
    background: white;
    color: black;
  }

  .hero,
  .page-hero,
  .section--primary {
    background: white !important;
    color: black !important;
  }
}
