/* ==========================================================================
   CodeSure Consulting Group — Design System
   Deep Indigo / Teal / Charcoal / White
   ========================================================================== */

:root {
  /* Deep indigo scale (hero + dark sections) */
  --navy-950: #0b0e2a;
  --navy-900: #10143a;
  --navy-800: #181c4d;
  --navy-700: #212562;
  --navy-600: #2c3175;
  --navy-500: #383d87;

  /* Charcoal scale (body copy, footers, light-section text) */
  --charcoal-900: #0f1c1a;
  --charcoal-700: #2b3040;
  --charcoal-500: #4a5165;

  /* Neutrals */
  --white: #ffffff;
  --off-white: #f5f7fb;
  --line: #e3e7ef;
  --line-dark: rgba(255, 255, 255, 0.1);
  --slate-400: #8996ab;
  --slate-500: #6b7688;

  /* Teal accent (matches brand logo) */
  --blue-600: #0f766e;
  --blue-500: #14b8a6;
  --blue-400: #2dd4bf;
  --blue-300: #5eead4;
  --blue-glow: #2dd4bf;

  /* Typography */
  --font-display: "Space Grotesk", "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;

  /* Layout */
  --container: 1200px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-full: 999px;

  /* Motion */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --dur-fast: 180ms;
  --dur-med: 320ms;

  /* Shadow */
  --shadow-sm: 0 2px 10px rgba(6, 11, 22, 0.06);
  --shadow-md: 0 12px 32px rgba(6, 11, 22, 0.12);
  --shadow-lg: 0 24px 60px rgba(6, 11, 22, 0.22);
  --shadow-glow: 0 0 0 1px rgba(45, 212, 191, 0.15), 0 8px 30px rgba(20, 184, 166, 0.25);
}

/* ---- Reset ------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--charcoal-900);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  line-height: 1.55;
}

img, svg, picture, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
button { font: inherit; cursor: pointer; }
input, textarea, select { font: inherit; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--navy-900);
  line-height: 1.12;
  margin: 0;
  letter-spacing: -0.01em;
}

:focus-visible {
  outline: 2px solid var(--blue-500);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---- Layout helpers ------------------------------------------------------ */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 24px;
}

@media (min-width: 768px) {
  .container { padding-inline: 32px; }
}

.section { padding-block: clamp(64px, 9vw, 112px); }
.section--tight { padding-block: clamp(40px, 6vw, 72px); }

.section-head {
  max-width: 640px;
  margin-bottom: clamp(36px, 5vw, 56px);
}
.section-head.center { margin-inline: auto; text-align: center; }

.tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--blue-600);
  background: rgba(20, 184, 166, 0.08);
  border: 1px solid rgba(20, 184, 166, 0.18);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  margin-bottom: 18px;
}
.tag--on-dark {
  color: var(--blue-300);
  background: rgba(45, 212, 191, 0.08);
  border-color: rgba(45, 212, 191, 0.25);
}
.tag .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: currentColor;
}

h2.h-section {
  font-size: clamp(1.9rem, 3.4vw, 2.75rem);
}
p.lead {
  font-size: 1.125rem;
  color: var(--charcoal-500, var(--slate-500));
  max-width: 60ch;
}

/* ---- Buttons -------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  min-height: 48px;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  transition: transform var(--dur-fast) var(--ease-out), box-shadow var(--dur-med) var(--ease-out), background-color var(--dur-fast), border-color var(--dur-fast), color var(--dur-fast);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--primary {
  background: linear-gradient(135deg, var(--blue-500), var(--blue-600));
  color: var(--white);
  box-shadow: var(--shadow-glow);
}
.btn--primary:hover { box-shadow: 0 14px 40px rgba(20, 184, 166, 0.4); }

.btn--ghost-dark {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.25);
  color: var(--white);
  backdrop-filter: blur(6px);
}
.btn--ghost-dark:hover { background: rgba(255, 255, 255, 0.1); border-color: rgba(255,255,255,0.4); }

.btn--outline-navy {
  background: transparent;
  border-color: var(--line);
  color: var(--navy-900);
}
.btn--outline-navy:hover { border-color: var(--blue-500); color: var(--blue-600); }

.btn--sm { padding: 10px 20px; min-height: 40px; font-size: 0.875rem; }
.btn--block { width: 100%; }

/* ---- Header ---------------------------------------------------------------- */
.site-header {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 50;
  padding-block: 18px;
  transition: background-color var(--dur-med) var(--ease-out), box-shadow var(--dur-med) var(--ease-out), padding var(--dur-med) var(--ease-out), border-color var(--dur-med);
  border-bottom: 1px solid transparent;
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.site-header.is-scrolled,
.site-header.solid {
  background: rgba(6, 11, 22, 0.86);
  backdrop-filter: blur(14px) saturate(140%);
  padding-block: 12px;
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 8px 30px rgba(0,0,0,0.18);
}

.brand { display: flex; align-items: center; gap: 12px; }
.brand-logo { height: 34px; width: auto; flex-shrink: 0; }
.brand-logo--mobile { height: 26px; }
.footer-logo { height: 132px; width: auto; }

.main-nav { display: none; }
.main-nav ul { display: flex; align-items: center; gap: 4px; }
.main-nav a {
  color: rgba(255,255,255,0.82);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 10px 16px;
  border-radius: var(--radius-full);
  transition: background-color var(--dur-fast), color var(--dur-fast);
}
.main-nav a:hover, .main-nav a.active { color: var(--white); background: rgba(255,255,255,0.08); }

.header-actions { display: flex; align-items: center; gap: 14px; }
.header-phone {
  display: none;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.8);
  font-size: 0.875rem;
  font-weight: 600;
}
.header-phone svg { color: var(--blue-glow); }

.header-phone-icon {
  display: inline-flex;
  width: 40px; height: 40px;
  align-items: center; justify-content: center;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius-sm);
  color: var(--blue-glow);
}
@media (min-width: 1080px) { .header-phone-icon { display: none; } }

@media (max-width: 479px) {
  .site-header .container { gap: 12px; }
  .header-actions { gap: 8px; }
  .header-actions .btn--sm { padding: 10px 14px; }
  .brand-logo { height: 26px; }
}

.nav-toggle {
  display: inline-flex;
  width: 44px; height: 44px;
  align-items: center; justify-content: center;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius-sm);
  color: var(--white);
}

@media (min-width: 1080px) {
  .main-nav { display: block; }
  .header-phone { display: inline-flex; }
  .nav-toggle { display: none; }
}

/* Mobile nav drawer */
.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: var(--navy-950);
  display: flex;
  flex-direction: column;
  padding: 24px;
  transform: translateY(-100%);
  transition: transform var(--dur-med) var(--ease-out);
}
.mobile-nav.is-open { transform: translateY(0); }
.mobile-nav-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 40px; }
.mobile-nav ul { display: flex; flex-direction: column; gap: 4px; }
.mobile-nav a { display: block; padding: 16px 6px; font-family: var(--font-display); font-size: 1.4rem; color: var(--white); border-bottom: 1px solid rgba(255,255,255,0.08); }
.mobile-nav-footer { margin-top: auto; padding-top: 24px; border-top: 1px solid rgba(255,255,255,0.08); color: var(--slate-400); font-size: 0.875rem; }
.mobile-nav-footer a { color: var(--blue-300); font-weight: 600; }

@media (min-width: 1080px) { .mobile-nav { display: none; } }

/* ---- Hero ------------------------------------------------------------------ */
.hero {
  position: relative;
  isolation: isolate;
  background: var(--navy-950);
  color: var(--white);
  overflow: hidden;
  padding-top: clamp(98px, 14vh, 140px);
  padding-bottom: clamp(63px, 8.4vh, 98px);
}

.hero-canvas { position: absolute; inset: 0; z-index: 0; opacity: 0.75; }

.hero-glow {
  position: absolute;
  z-index: 0;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
}
.hero-glow--a { width: 620px; height: 620px; top: -220px; left: -160px; background: radial-gradient(circle, rgba(20, 184, 166,0.45), transparent 70%); }
.hero-glow--b { width: 560px; height: 560px; bottom: -260px; right: -140px; background: radial-gradient(circle, rgba(45, 212, 191,0.3), transparent 70%); }
.hero-glow--c { width: 420px; height: 420px; top: 30%; left: 50%; background: radial-gradient(circle, rgba(15, 118, 110,0.25), transparent 70%); }

.hero-grid-overlay {
  position: absolute; inset: 0; z-index: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 20%, black 40%, transparent 90%);
}

.hero-inner { position: relative; z-index: 2; }
.hero-content { max-width: 780px; }

.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.01em;
  color: var(--blue-300);
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.14);
  padding: 8px 16px 8px 10px;
  border-radius: var(--radius-full);
  margin-bottom: 28px;
}
.hero-eyebrow .pulse {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--blue-glow);
  box-shadow: 0 0 0 0 rgba(45, 212, 191,0.7);
  animation: pulse 2.4s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(45, 212, 191,0.55); }
  70% { box-shadow: 0 0 0 10px rgba(45, 212, 191,0); }
  100% { box-shadow: 0 0 0 0 rgba(45, 212, 191,0); }
}

.hero-name {
  font-size: clamp(2.6rem, 6vw, 3.5rem);
  font-weight: 600;
  color: var(--white);
  margin-bottom: 8px;
  white-space: nowrap;
}
@media (max-width: 767px) {
  .hero-name { white-space: normal; }
}
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2.2vw, 1.6rem);
  font-weight: 500;
  color: var(--blue-300);
  margin-bottom: 22px;
}
.hero-tagline {
  font-size: clamp(1rem, 1.3vw, 1.2rem);
  color: rgba(255,255,255,0.72);
  max-width: 56ch;
  margin-bottom: 40px;
}

.hero-cta { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 56px; }

.hero-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 20px 32px;
  padding-top: 32px;
  border-top: 1px solid rgba(255,255,255,0.12);
  max-width: 640px;
}
@media (min-width: 640px) { .hero-meta { grid-template-columns: repeat(4, minmax(0,1fr)); } }
.hero-meta--3 { max-width: 720px; }
@media (min-width: 640px) { .hero-meta--3 { grid-template-columns: repeat(3, minmax(0,1fr)); } }
.hero-meta-item .num {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  color: var(--white);
  font-weight: 600;
}
.hero-meta-item .label {
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.55);
  margin-top: 2px;
}

.hero-coverage {
  margin-top: 20px;
  font-family: var(--font-display);
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--blue-glow);
}

/* ---- Trust / credential strip ------------------------------------------------ */
.trust-strip {
  background: var(--navy-900);
  border-top: 1px solid rgba(255,255,255,0.06);
  padding-block: 28px;
  overflow: hidden;
}
.trust-strip-viewport { overflow: hidden; width: 100%; }
.trust-strip-track {
  display: flex;
  width: max-content;
  animation: trust-scroll 42s linear infinite;
}
.trust-strip-group { display: flex; align-items: center; gap: 28px; flex-shrink: 0; padding-inline: 14px; }
@keyframes trust-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .trust-strip-track { animation: none; flex-wrap: wrap; width: 100%; justify-content: center; }
  .trust-strip-group[aria-hidden="true"] { display: none; }
}
.badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 16px;
  border-radius: var(--radius-full);
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.85);
  font-size: 0.8125rem;
  font-weight: 500;
  white-space: nowrap;
  flex-shrink: 0;
}
.badge svg { color: var(--blue-glow); flex-shrink: 0; }

/* ---- Services grid ------------------------------------------------------------ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 20px;
}

.service-card {
  position: relative;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 30px 26px;
  transition: transform var(--dur-med) var(--ease-out), box-shadow var(--dur-med) var(--ease-out), border-color var(--dur-med);
}
.service-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: rgba(20, 184, 166,0.3); }

.service-icon {
  width: 52px; height: 52px;
  display: grid; place-items: center;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--navy-900), var(--navy-700));
  color: var(--blue-glow);
  margin-bottom: 20px;
}
.service-icon-img {
  width: 34px; height: 34px;
  object-fit: contain;
}
.service-icon-plain {
  width: 60px; height: 60px;
  object-fit: contain;
  margin-bottom: 20px;
}
.service-card h3 { font-size: 1.15rem; margin-bottom: 10px; }
.service-card p { color: var(--slate-500); font-size: 0.9375rem; margin: 0 0 16px; }
.service-card .card-link { font-size: 0.875rem; font-weight: 600; color: var(--blue-600); display: inline-flex; align-items: center; gap: 6px; }
.service-card .card-link svg { transition: transform var(--dur-fast); }
.service-card:hover .card-link svg { transform: translateX(3px); }

.service-card--index { display:flex; align-items:center; justify-content:center; font-family: var(--font-display); font-size: 0.75rem; font-weight: 700; color: var(--blue-500); background: rgba(20, 184, 166,0.08); border-radius: var(--radius-full); width: 30px; height:30px; margin-bottom: 14px; }

/* ---- Alternating detail rows (Services page) --------------------------------- */
.detail-row {
  display: grid;
  gap: 40px;
  align-items: center;
  padding-block: 56px;
  border-bottom: 1px solid var(--line);
}
.detail-row:last-child { border-bottom: none; }
@media (min-width: 900px) {
  .detail-row { grid-template-columns: 0.85fr 1.15fr; }
  .detail-row.reverse .detail-visual { order: 2; }
}
.detail-visual {
  order: -1;
  background: var(--off-white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  aspect-ratio: 4 / 3;
  position: relative;
  overflow: hidden;
  display: grid;
  place-items: center;
}
.detail-visual img { position: relative; z-index: 1; width: 52%; max-width: 210px; height: auto; }
.detail-blueprint {
  position: absolute; inset: 0;
  background-image: url('../images/bg-engineering-drawing.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.22;
  z-index: 0;
}
.detail-visual::after {
  content: "";
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(15,28,51,0.05) 1px, transparent 1px), linear-gradient(90deg, rgba(15,28,51,0.05) 1px, transparent 1px);
  background-size: 28px 28px;
}
.detail-number { font-family: var(--font-display); font-size: 0.8rem; font-weight: 700; color: var(--blue-600); letter-spacing: 0.06em; margin-bottom: 14px; display:block; }
.detail-copy h3 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); margin-bottom: 14px; }
.detail-copy p { color: var(--slate-500); margin-bottom: 20px; }
.detail-list { display: grid; gap: 12px; margin-bottom: 22px; }
.detail-list li { display: flex; gap: 12px; align-items: flex-start; font-size: 0.9375rem; color: var(--charcoal-700); }
.detail-list svg { color: var(--blue-500); flex-shrink: 0; margin-top: 3px; }

/* ---- Announcements -------------------------------------------------------------- */
.announce-band {
  position: relative;
  isolation: isolate;
  background: linear-gradient(100deg, var(--blue-400), var(--blue-500) 45%, var(--blue-600));
  overflow: hidden;
  padding-block: clamp(36px, 5vw, 48px);
}
.announce-band::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(115deg, transparent 40%, rgba(255,255,255,0.22) 50%, transparent 60%);
  background-size: 220% 100%;
  animation: announce-shine 7s ease-in-out infinite;
  pointer-events: none;
}
@keyframes announce-shine {
  0% { background-position: 120% 0; }
  55%, 100% { background-position: -40% 0; }
}

.announce-inner { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 24px; }

.announce-slides { display: grid; max-width: 820px; }
.announce-slide {
  grid-area: 1 / 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.6s ease;
  pointer-events: none;
}
.announce-slide.is-active { opacity: 1; visibility: visible; pointer-events: auto; }
.announce-icon { color: var(--navy-800); flex-shrink: 0; margin-bottom: 4px; }
.announce-headline {
  margin: 0;
  color: var(--navy-950);
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 3vw, 1.85rem);
  font-weight: 700;
  line-height: 1.25;
}
.announce-body {
  margin: 0;
  color: var(--navy-800);
  font-size: 0.9375rem;
  font-weight: 500;
  line-height: 1.6;
}

.announce-dots { display: flex; align-items: center; gap: 10px; }
.announce-dot {
  width: 10px; height: 10px; border-radius: 50%; padding: 0;
  background: rgba(11,14,42,0.25);
  border: none;
}
.announce-dot.is-active { background: var(--navy-950); }

@media (prefers-reduced-motion: reduce) {
  .announce-band::after { animation: none; display: none; }
}

/* ---- Process steps -------------------------------------------------------------- */
.process-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 4px;
  counter-reset: step;
}
.process-step { position: relative; padding: 28px 22px; }
.process-step .step-num {
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--line);
  margin-bottom: 14px;
  line-height: 1;
}
.process-step h4 { font-size: 1.05rem; margin-bottom: 8px; }
.process-step p { color: var(--slate-500); font-size: 0.9rem; margin: 0; }
.process-step:not(:last-child)::after {
  content: "";
  position: absolute;
  right: -2px; top: 30%;
  width: 1px; height: 40%;
  background: var(--line);
}
@media (max-width: 640px) { .process-step:not(:last-child)::after { display: none; } }

/* ---- Testimonial ------------------------------------------------------------------ */
.testimonial-card {
  background: var(--off-white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(28px, 5vw, 52px);
  position: relative;
}
.testimonial-card svg.quote-mark { color: rgba(20, 184, 166,0.18); width: 44px; height: 44px; margin-bottom: 18px; }
.testimonial-card blockquote { margin: 0 0 24px; font-size: clamp(1.05rem, 2vw, 1.35rem); color: var(--navy-900); font-family: var(--font-display); font-weight: 500; line-height: 1.4; }
.testimonial-author { display: flex; align-items: center; gap: 14px; }
.testimonial-avatar {
  width: 46px; height: 46px; border-radius: 50%;
  background: linear-gradient(135deg, var(--navy-800), var(--blue-500));
  display: grid; place-items: center; color: var(--white); font-family: var(--font-display); font-weight: 600;
}
.testimonial-author .name { font-weight: 600; color: var(--navy-900); font-size: 0.9375rem; }
.testimonial-author .role { color: var(--slate-500); font-size: 0.8125rem; }

/* ---- CTA band -------------------------------------------------------------------- */
.cta-band {
  position: relative;
  background: linear-gradient(135deg, var(--navy-900), var(--navy-700));
  border-radius: var(--radius-lg);
  padding: clamp(44px, 7vw, 76px);
  color: var(--white);
  overflow: hidden;
  isolation: isolate;
}
.cta-band::before {
  content: "";
  position: absolute; z-index: -1;
  width: 460px; height: 460px; border-radius: 50%;
  right: -140px; top: -160px;
  background: radial-gradient(circle, rgba(45, 212, 191,0.28), transparent 70%);
  filter: blur(20px);
}
.cta-band h2 { color: var(--white); font-size: clamp(1.7rem, 3.4vw, 2.4rem); margin-bottom: 16px; max-width: 22ch; }
.cta-band p { color: rgba(255,255,255,0.7); max-width: 50ch; margin-bottom: 32px; }
.cta-band-actions { display: flex; flex-wrap: wrap; gap: 16px; }

/* ---- Footer ------------------------------------------------------------------------ */
.site-footer { background: var(--charcoal-900); color: rgba(255,255,255,0.7); }
.footer-top {
  padding-block: 42px;
  display: flex; flex-direction: column; align-items: center;
}
.footer-top-row {
  display: flex; flex-direction: column; align-items: center;
  gap: 24px; width: 100%;
}
@media (min-width: 680px) {
  .footer-top-row { flex-direction: row; justify-content: space-between; align-items: center; gap: 24px; }
}
.footer-brand { display: flex; justify-content: center; }
.footer-col h5 { color: var(--white); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 18px; text-align: center; }
.footer-col ul { display: grid; gap: 11px; }
.footer-col a { font-size: 0.9rem; color: rgba(255,255,255,0.6); transition: color var(--dur-fast); }
.footer-col a:hover { color: var(--blue-300); }
.footer-contact li { display: flex; gap: 10px; align-items: flex-start; justify-content: center; font-size: 0.9rem; color: rgba(255,255,255,0.65); text-align: left; }
.footer-contact svg { color: var(--blue-glow); flex-shrink: 0; margin-top: 3px; }

.footer-social { display: flex; gap: 10px; flex-shrink: 0; }
.footer-social a {
  width: 44px; height: 44px; display: grid; place-items: center;
  border-radius: 50%; background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1);
}
.footer-social a:hover { background: var(--blue-500); border-color: var(--blue-500); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-block: 15px;
  display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; justify-content: space-between;
  font-size: 0.8125rem; color: rgba(255,255,255,0.45);
}
.footer-bottom a:hover { color: var(--blue-300); }
.footer-legal-links { display: flex; gap: 20px; flex-wrap: wrap; }

/* ---- Page hero (interior pages) ----------------------------------------------------- */
.page-hero {
  background: var(--navy-950);
  color: var(--white);
  padding-top: clamp(120px, 16vh, 168px);
  padding-bottom: clamp(56px, 8vh, 88px);
  position: relative;
  isolation: isolate;
  overflow: hidden;
}
.page-hero .hero-glow { opacity: 0.8; }
.breadcrumb { font-size: 0.8125rem; color: rgba(255,255,255,0.5); margin-bottom: 18px; display:flex; gap:8px; align-items:center; }
.breadcrumb a:hover { color: var(--blue-300); }
.page-hero h1 { color: var(--white); font-size: clamp(2.1rem, 4.4vw, 3.1rem); max-width: 16ch; }
.page-hero p.lead { color: rgba(255,255,255,0.68); margin-top: 18px; }

/* ---- Certifications list (About) ------------------------------------------------------ */
.cert-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.cert-card {
  display: flex; gap: 16px; align-items: flex-start;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-md); padding: 22px;
}
.cert-card .icon { width: 44px; height: 44px; border-radius: var(--radius-sm); background: rgba(20, 184, 166,0.08); color: var(--blue-600); display: grid; place-items: center; flex-shrink: 0; }
.cert-card h4 { font-size: 1rem; margin-bottom: 4px; }
.cert-card p { font-size: 0.85rem; color: var(--slate-500); margin: 0; }

.cert-groups { display: grid; gap: 36px; }
.cert-group-title {
  font-family: var(--font-display); font-size: 0.8rem; font-weight: 700;
  color: var(--blue-600); letter-spacing: 0.04em; margin-bottom: 16px; display: block;
}
.cert-grid--sub { display: flex; flex-wrap: wrap; gap: 18px; }
.cert-grid--sub .cert-card { flex: 1 1 260px; max-width: 360px; }
.cert-footnote {
  display: grid; gap: 10px;
  margin-top: 8px; padding-top: 28px; border-top: 1px solid var(--line);
  color: var(--slate-500); font-size: 0.875rem;
}
.cert-footnote p { display: flex; align-items: center; gap: 12px; margin: 0; }
.cert-footnote svg { color: var(--blue-600); flex-shrink: 0; }

/* ---- Values / feature list (About) ----------------------------------------------------- */
.value-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px,1fr)); gap: 24px; }
.value-item .icon { width: 48px; height: 48px; border-radius: var(--radius-md); background: var(--off-white); border:1px solid var(--line); display: grid; place-items: center; color: var(--blue-600); margin-bottom: 16px; }
.value-item h4 { font-size: 1.05rem; margin-bottom: 8px; }
.value-item p { font-size: 0.9rem; color: var(--slate-500); margin: 0; }

/* ---- Team grid ------------------------------------------------------------------------- */
.team-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px; }
.team-card { text-align: left; }
.team-avatar {
  aspect-ratio: 1; border-radius: var(--radius-lg);
  background: linear-gradient(155deg, var(--navy-800), var(--navy-600));
  display: grid; place-items: center; color: var(--blue-glow); margin-bottom: 18px;
  font-family: var(--font-display); font-size: 2rem; font-weight: 600;
}
.team-avatar--photo {
  position: relative; overflow: hidden;
  background:
    radial-gradient(circle at 72% 22%, rgba(45, 212, 191, 0.38), transparent 58%),
    linear-gradient(155deg, var(--navy-800), var(--navy-600));
}
.team-avatar--photo img { width: 100%; height: 100%; object-fit: cover; object-position: center top; mix-blend-mode: lighten; }
.team-avatar--photo.team-avatar--cutout img { mix-blend-mode: normal; }
.team-card h4 { font-size: 1.05rem; margin-bottom: 2px; }
.team-card .role { color: var(--blue-600); font-size: 0.85rem; font-weight: 600; margin-bottom: 10px; }
.team-card p.bio { font-size: 0.875rem; color: var(--slate-500); margin: 0; }
.team-card p.bio + p.bio { margin-top: 12px; }

/* ---- Story / split section -------------------------------------------------------------- */
.split { display: grid; gap: 48px; align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; } }
.split-visual { position: relative; }
.timeline { display: grid; gap: 22px; }
.timeline-item { display: grid; grid-template-columns: 64px 1fr; gap: 18px; }
.timeline-year { font-family: var(--font-display); font-weight: 700; color: var(--blue-600); font-size: 0.9rem; }
.timeline-item h5 { font-size: 0.95rem; margin-bottom: 4px; color: var(--navy-900); }
.timeline-item p { font-size: 0.875rem; color: var(--slate-500); margin: 0; }

/* ---- Contact page ------------------------------------------------------------------------ */
.contact-layout { display: grid; gap: 40px; }
@media (min-width: 960px) { .contact-layout { grid-template-columns: 1fr 1.3fr; align-items: start; } }

.contact-info-card {
  background: linear-gradient(160deg, var(--navy-900), var(--navy-700));
  border-radius: var(--radius-lg);
  padding: clamp(28px, 4vw, 40px);
  color: var(--white);
}
.contact-info-card h3 { color: var(--white); margin-bottom: 8px; }
.contact-info-card > p { color: rgba(255,255,255,0.65); margin-bottom: 28px; }
.contact-info-list { display: grid; gap: 20px; margin-bottom: 32px; }
.contact-info-list li { display: flex; gap: 14px; }
.contact-info-list .icon { width: 40px; height: 40px; border-radius: var(--radius-sm); background: rgba(255,255,255,0.08); display: grid; place-items: center; color: var(--blue-glow); flex-shrink: 0; }
.contact-info-list strong { display: block; font-size: 0.9rem; color: var(--white); }
.contact-info-list span { font-size: 0.85rem; color: rgba(255,255,255,0.6); }
.hours-list { display: grid; gap: 8px; font-size: 0.875rem; border-top: 1px solid rgba(255,255,255,0.12); padding-top: 20px; }
.hours-list div { display: flex; justify-content: space-between; color: rgba(255,255,255,0.7); }
.hours-list strong { color: var(--white); font-weight: 500; }

.contact-form-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(28px, 4vw, 44px);
  box-shadow: var(--shadow-sm);
}
.form-grid { display: grid; gap: 18px; grid-template-columns: 1fr; }
@media (min-width: 620px) { .form-grid.cols-2 { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: 8px; }
.field label { font-size: 0.85rem; font-weight: 600; color: var(--navy-900); }
.field .req { color: var(--blue-600); }
.field input, .field select, .field textarea {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 13px 14px;
  font-size: 0.9375rem;
  color: var(--charcoal-900);
  background: var(--off-white);
  transition: border-color var(--dur-fast), box-shadow var(--dur-fast);
  width: 100%;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--blue-500); box-shadow: 0 0 0 4px rgba(20, 184, 166,0.12); background: var(--white);
}
.field textarea { resize: vertical; min-height: 120px; }
.form-note { font-size: 0.8rem; color: var(--slate-500); margin-top: 4px; }

.form-success {
  display: none;
  align-items: flex-start;
  gap: 14px;
  padding: 20px;
  border-radius: var(--radius-md);
  background: rgba(20, 184, 166,0.06);
  border: 1px solid rgba(20, 184, 166,0.25);
  color: var(--navy-900);
}
.form-success.is-visible { display: flex; }
.form-success svg { color: var(--blue-600); flex-shrink: 0; margin-top: 2px; }
.form-success strong { display: block; margin-bottom: 4px; }
.form-success p { margin: 0; font-size: 0.9rem; color: var(--slate-500); }

.map-placeholder {
  margin-top: 40px;
  border-radius: var(--radius-lg);
  aspect-ratio: 21 / 7;
  background:
    linear-gradient(rgba(15,28,51,0.9), rgba(15,28,51,0.9)),
    repeating-linear-gradient(45deg, rgba(20, 184, 166,0.12) 0 2px, transparent 2px 14px);
  display: grid; place-items: center;
  color: rgba(255,255,255,0.7);
  font-size: 0.9rem;
  gap: 10px;
  text-align: center;
}
.map-placeholder svg { color: var(--blue-glow); }

/* ---- Utility / misc ------------------------------------------------------------------------ */
.text-center { text-align: center; }
.mt-0 { margin-top: 0 !important; }
.bg-navy { background: var(--navy-950); color: var(--white); }
.bg-off { background: var(--off-white); }
.reveal { opacity: 0; }
.icon-check { color: var(--blue-500); }

.two-col { display: grid; gap: 20px; grid-template-columns: 1fr; }
@media (min-width: 768px) { .two-col { grid-template-columns: repeat(2, 1fr); } }
.three-col { display: grid; gap: 20px; grid-template-columns: 1fr; }
@media (min-width: 768px) { .three-col { grid-template-columns: repeat(3, 1fr); } }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--blue-600); color: var(--white); padding: 12px 18px; border-radius: var(--radius-sm);
  transition: top var(--dur-fast);
}
.skip-link:focus { top: 12px; }

/* ---- Legal content (Privacy Policy, Terms, etc.) -------------------------------------------- */
.legal-content { max-width: 760px; }
.legal-content .legal-updated { color: var(--slate-500); font-size: 0.9375rem; margin-bottom: 44px; }
.legal-content h2 { font-size: 1.4rem; margin-top: 44px; margin-bottom: 16px; }
.legal-content h2:first-of-type { margin-top: 0; }
.legal-content h3 { font-size: 1.1rem; margin-top: 28px; margin-bottom: 12px; }
.legal-content p { margin: 0 0 16px; color: var(--charcoal-700); }
.legal-content ul { list-style: disc; padding-left: 22px; margin: 0 0 16px; }
.legal-content ul li { margin-bottom: 8px; color: var(--charcoal-700); }
.legal-content ul li::marker { color: var(--blue-500); }
.legal-content a { color: var(--blue-600); text-decoration: underline; text-underline-offset: 2px; }
.legal-content a:hover { color: var(--blue-500); }
.legal-content strong { color: var(--navy-900); }
