/* ============================================================
   NELVAMAR — Industrial Light
   Light-mode-first design. Distinct layout primitives.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&family=IBM+Plex+Mono:wght@400;500;600&display=swap');

:root {
  /* Palette — light first */
  --navy: #0A1628;
  --navy-2: #16243C;
  --navy-3: #2A3A56;
  --blue: #1E66C9;
  --blue-hover: #1854A8;
  --blue-soft: #E8F0FB;
  --blue-tint: #F4F8FD;
  --steel: #5F7491;
  --steel-2: #8A9BB5;
  --line: #DCE3EE;
  --line-2: #EDF1F7;
  --bg: #FFFFFF;
  --bg-alt: #F7F9FC;
  --bg-tint: #FAFBFD;
  --ink: #0A1628;
  --ink-2: #3A4660;
  --ink-3: #6A7A92;
  --white: #FFFFFF;

  /* Type */
  --font-sans: 'Manrope', system-ui, -apple-system, sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, SFMono-Regular, monospace;

  /* Type scale */
  --t-eyebrow: 11px;
  --t-sm: 14px;
  --t-base: 16px;
  --t-lg: 18px;
  --t-xl: 22px;
  --t-2xl: 28px;
  --t-3xl: 38px;
  --t-4xl: 52px;
  --t-5xl: 72px;
  --t-6xl: 96px;

  /* Spacing */
  --s-1: 4px;
  --s-2: 8px;
  --s-3: 12px;
  --s-4: 16px;
  --s-5: 24px;
  --s-6: 32px;
  --s-7: 48px;
  --s-8: 64px;
  --s-9: 96px;
  --s-10: 128px;

  /* Layout */
  --container: 1280px;
  --container-wide: 1440px;
  --container-narrow: 920px;
  --gutter: 32px;
  --header-h: 76px;

  /* Motion */
  --ease: cubic-bezier(.2, .65, .25, 1);
  --t-fast: 180ms var(--ease);
  --t-med: 320ms var(--ease);
  --t-slow: 600ms var(--ease);

  /* Shadow */
  --shadow-sm: 0 1px 2px rgba(10, 22, 40, 0.06);
  --shadow-md: 0 8px 24px rgba(10, 22, 40, 0.08);
  --shadow-lg: 0 24px 60px rgba(10, 22, 40, 0.10);
}

/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  font-size: var(--t-base);
  font-weight: 400;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input, textarea, select { font-family: inherit; }

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5 { font-family: var(--font-sans); font-weight: 700; line-height: 1.1; letter-spacing: -0.02em; color: var(--navy); margin: 0; }
h1 { font-size: var(--t-5xl); font-weight: 800; letter-spacing: -0.035em; }
h2 { font-size: var(--t-4xl); letter-spacing: -0.03em; }
h3 { font-size: var(--t-2xl); }
h4 { font-size: var(--t-xl); }
p { margin: 0 0 var(--s-4); color: var(--ink-2); line-height: 1.65; }
.lead { font-size: var(--t-lg); color: var(--ink-2); line-height: 1.6; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: var(--t-eyebrow);
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--blue);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 24px;
  height: 1px;
  background: var(--blue);
  display: inline-block;
}

.section-title { font-size: var(--t-4xl); margin-bottom: var(--s-4); }
.section-subtitle { font-size: var(--t-lg); color: var(--ink-2); max-width: 60ch; }

/* ===== LAYOUT ===== */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.container-wide { width: 100%; max-width: var(--container-wide); margin: 0 auto; padding: 0 var(--gutter); }
.container-narrow { width: 100%; max-width: var(--container-narrow); margin: 0 auto; padding: 0 var(--gutter); }

section { padding: var(--s-10) 0; }
section.compact { padding: var(--s-9) 0; }

/* Optional dotted blueprint grid background for select sections */
.bp-grid {
  background-image:
    linear-gradient(var(--line-2) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-2) 1px, transparent 1px);
  background-size: 40px 40px;
  background-position: -1px -1px;
}

/* ===== HEADER ===== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--white);
  border-bottom: 1px solid var(--line);
  height: var(--header-h);
  display: flex; align-items: center;
  transition: box-shadow var(--t-fast);
}
.site-header.scrolled { box-shadow: var(--shadow-sm); }

.nav-row { display: flex; align-items: center; justify-content: space-between; gap: var(--s-6); width: 100%; }
.nav-logo img { height: 38px; width: auto; }

.nav-main { display: flex; align-items: center; gap: var(--s-6); }
.nav-main a {
  font-size: var(--t-sm);
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.01em;
  padding: 8px 0;
  position: relative;
  transition: color var(--t-fast);
}
.nav-main a::after {
  content: "";
  position: absolute; left: 0; bottom: 2px;
  width: 0; height: 2px; background: var(--blue);
  transition: width var(--t-fast);
}
.nav-main a:hover, .nav-main a.active { color: var(--blue); }
.nav-main a:hover::after, .nav-main a.active::after { width: 100%; }

.nav-cta {
  background: var(--navy); color: var(--white);
  padding: 11px 22px;
  font-size: var(--t-sm); font-weight: 600;
  border-radius: 4px;
  transition: background var(--t-fast), transform var(--t-fast);
}
.nav-cta:hover { background: var(--blue); transform: translateY(-1px); }

/* Dropdown */
.nav-drop { position: relative; }
.nav-drop > a { display: inline-flex; align-items: center; gap: 4px; }
.nav-drop > a::before { content: ""; }
.nav-drop > a svg { transition: transform var(--t-fast); }
.nav-drop:hover > a svg { transform: rotate(180deg); }
.nav-drop-menu {
  position: absolute; top: calc(100% + 4px); left: 0;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 6px;
  box-shadow: var(--shadow-md);
  min-width: 280px;
  padding: var(--s-3);
  opacity: 0; pointer-events: none; transform: translateY(-6px);
  transition: opacity var(--t-fast), transform var(--t-fast);
}
.nav-drop:hover .nav-drop-menu { opacity: 1; pointer-events: auto; transform: translateY(0); }
.nav-drop-menu a {
  display: block;
  padding: 10px 14px;
  font-size: var(--t-sm);
  border-radius: 4px;
  color: var(--ink);
}
.nav-drop-menu a::after { display: none; }
.nav-drop-menu a:hover { background: var(--blue-tint); color: var(--blue); }

.menu-toggle { display: none; padding: 8px; }
.menu-toggle svg { width: 24px; height: 24px; stroke: var(--ink); }

/* ===== HERO (full-bleed photo overlay) ===== */
.hero {
  position: relative;
  min-height: 88vh;
  display: flex; align-items: flex-end;
  color: var(--white);
  overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.hero-bg::after {
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(10,22,40,0.20) 0%, rgba(10,22,40,0.40) 50%, rgba(10,22,40,0.85) 100%),
    linear-gradient(90deg, rgba(10,22,40,0.55) 0%, rgba(10,22,40,0.10) 60%);
}
.hero-content { position: relative; z-index: 1; padding-top: var(--s-10); padding-bottom: var(--s-9); width: 100%; }
.hero-meta {
  display: flex; gap: var(--s-5); align-items: center;
  font-family: var(--font-mono); font-size: var(--t-eyebrow); letter-spacing: 0.2em; text-transform: uppercase;
  color: rgba(255,255,255,0.85);
  margin-bottom: var(--s-5);
}
.hero-meta span { display: inline-flex; align-items: center; gap: 8px; }
.hero-meta .dot { width: 6px; height: 6px; background: var(--blue); border-radius: 50%; }
.hero h1 { color: var(--white); font-size: var(--t-6xl); max-width: 18ch; margin-bottom: var(--s-5); }
.hero h1 .accent { color: var(--blue); }
.hero .lead { color: rgba(255,255,255,0.85); font-size: var(--t-xl); max-width: 56ch; margin-bottom: var(--s-7); }
.hero-actions { display: flex; gap: var(--s-4); flex-wrap: wrap; }

/* Hero — secondary pages (shorter, photo overlay) */
.hero-secondary {
  position: relative;
  min-height: 56vh; min-height: 460px;
  display: flex; align-items: center;
  color: var(--white);
  overflow: hidden;
}
.hero-secondary .hero-bg::after {
  background:
    linear-gradient(180deg, rgba(10,22,40,0.35) 0%, rgba(10,22,40,0.70) 100%),
    linear-gradient(90deg, rgba(10,22,40,0.65) 0%, rgba(10,22,40,0.20) 70%);
}
.hero-secondary h1 { color: var(--white); font-size: var(--t-5xl); max-width: 20ch; margin-bottom: var(--s-5); }
.hero-secondary h1 .accent { color: var(--blue); }
.hero-secondary .lead { color: rgba(255,255,255,0.9); font-size: var(--t-lg); max-width: 56ch; }
.hero-secondary .hero-content { padding-top: var(--s-9); padding-bottom: var(--s-9); }

/* Hero stat ribbon — appears at bottom of hero overlapping next section */
.hero-ribbon {
  position: relative;
  margin-top: -56px;
  z-index: 5;
}
.hero-ribbon-inner {
  background: var(--white);
  box-shadow: var(--shadow-lg);
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 4px solid var(--blue);
}
.hero-ribbon-item {
  padding: var(--s-6) var(--s-6);
  border-right: 1px solid var(--line);
}
.hero-ribbon-item:last-child { border-right: none; }
.hero-ribbon-item .num { font-size: var(--t-3xl); font-weight: 800; color: var(--navy); letter-spacing: -0.03em; line-height: 1; }
.hero-ribbon-item .num .accent { color: var(--blue); }
.hero-ribbon-item .label {
  display: block; margin-top: var(--s-2);
  font-family: var(--font-mono); font-size: var(--t-eyebrow);
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--steel);
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 26px;
  font-size: var(--t-sm); font-weight: 600;
  border-radius: 4px;
  border: 2px solid transparent;
  letter-spacing: -0.01em;
  transition: all var(--t-fast);
  white-space: nowrap;
}
.btn svg { width: 16px; height: 16px; transition: transform var(--t-fast); }
.btn:hover svg { transform: translateX(3px); }
.btn-primary { background: var(--blue); color: var(--white); border-color: var(--blue); }
.btn-primary:hover { background: var(--blue-hover); border-color: var(--blue-hover); }
.btn-dark { background: var(--navy); color: var(--white); border-color: var(--navy); }
.btn-dark:hover { background: var(--blue); border-color: var(--blue); }
.btn-outline { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.6); }
.btn-outline:hover { background: var(--white); color: var(--navy); border-color: var(--white); }
.btn-outline-dark { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-outline-dark:hover { background: var(--navy); color: var(--white); }
.btn-link { background: none; padding: 0; color: var(--blue); font-weight: 600; display: inline-flex; align-items: center; gap: 8px; }
.btn-link svg { width: 16px; height: 16px; transition: transform var(--t-fast); }
.btn-link:hover svg { transform: translateX(3px); }
.btn-link:hover { color: var(--blue-hover); }

/* ===== SECTION HEADERS ===== */
.section-head {
  display: grid; grid-template-columns: 1.2fr 2fr; gap: var(--s-8);
  margin-bottom: var(--s-8);
  align-items: end;
}
.section-head h2 { margin: var(--s-3) 0 0; }
.section-head p { margin: 0; }

/* ===== INTRO BLOCK ===== */
.intro {
  display: grid; grid-template-columns: 1fr 1.2fr;
  gap: var(--s-9);
  align-items: start;
}
.intro-mark {
  font-family: var(--font-mono);
  font-size: var(--t-eyebrow);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--steel);
}
.intro h2 { font-size: var(--t-3xl); }
.intro p { font-size: var(--t-lg); }
.intro-side {
  border-left: 3px solid var(--blue);
  padding-left: var(--s-5);
}
.intro-side h3 { font-size: var(--t-xl); margin-bottom: var(--s-3); }

/* ===== SERVICE GRID (different from PSV) — large editorial cards with photo headers ===== */
.svc-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: var(--s-5);
}
.svc-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform var(--t-med), box-shadow var(--t-med), border-color var(--t-med);
}
.svc-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--blue); }
.svc-card-num {
  font-family: var(--font-mono);
  font-size: var(--t-sm);
  font-weight: 600;
  color: var(--blue);
  letter-spacing: 0.1em;
  padding: var(--s-5) var(--s-5) 0;
}
.svc-card-body { padding: var(--s-3) var(--s-5) var(--s-5); flex: 1; display: flex; flex-direction: column; }
.svc-card h3 { font-size: var(--t-xl); margin-bottom: var(--s-3); }
.svc-card p { color: var(--ink-2); font-size: var(--t-base); flex: 1; }
.svc-card-foot {
  margin-top: var(--s-5);
  padding-top: var(--s-4);
  border-top: 1px solid var(--line-2);
  display: flex; align-items: center; justify-content: space-between;
  font-size: var(--t-sm); font-weight: 600; color: var(--navy);
}
.svc-card-foot svg { width: 18px; height: 18px; color: var(--blue); transition: transform var(--t-fast); }
.svc-card:hover .svc-card-foot svg { transform: translateX(4px); }

/* ===== CAPABILITY LIST — alternating two-col with photo + spec ===== */
.cap-row {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: var(--s-8);
  align-items: center;
  padding: var(--s-8) 0;
  border-bottom: 1px solid var(--line);
}
.cap-row:last-child { border-bottom: none; }
.cap-row.reverse .cap-text { order: 2; }
.cap-row.reverse .cap-photo { order: 1; }
.cap-photo {
  position: relative;
  aspect-ratio: 4/3;
  background: var(--bg-alt);
  border-radius: 6px;
  overflow: hidden;
}
.cap-photo img { width: 100%; height: 100%; object-fit: cover; }
.cap-photo .cap-tag {
  position: absolute; top: var(--s-4); left: var(--s-4);
  background: var(--navy); color: var(--white);
  padding: 6px 12px;
  font-family: var(--font-mono); font-size: var(--t-eyebrow); letter-spacing: 0.18em; text-transform: uppercase;
  border-radius: 3px;
}
.cap-num {
  font-family: var(--font-mono);
  font-size: var(--t-sm); font-weight: 600;
  color: var(--blue); letter-spacing: 0.18em;
  margin-bottom: var(--s-3);
}
.cap-text h3 { font-size: var(--t-3xl); margin-bottom: var(--s-4); }
.cap-text p { font-size: var(--t-lg); }
.cap-specs {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: var(--s-3);
  margin-top: var(--s-5);
  padding-top: var(--s-5);
  border-top: 1px solid var(--line);
}
.cap-spec { }
.cap-spec dt {
  font-family: var(--font-mono); font-size: var(--t-eyebrow);
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--steel);
  margin-bottom: 4px;
}
.cap-spec dd { font-size: var(--t-base); font-weight: 600; color: var(--navy); margin: 0; }

/* ===== INDUSTRIES — masonry-like grid with hover ===== */
.ind-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: var(--s-4);
}
.ind-card {
  position: relative;
  aspect-ratio: 4/5;
  border-radius: 6px;
  overflow: hidden;
  background: var(--navy);
  cursor: default;
}
.ind-card img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
  opacity: 0.55;
  transition: opacity var(--t-med), transform var(--t-slow);
}
.ind-card:hover img { opacity: 0.4; transform: scale(1.04); }
.ind-card-content {
  position: relative; z-index: 1;
  height: 100%;
  padding: var(--s-5);
  display: flex; flex-direction: column; justify-content: space-between;
  color: var(--white);
}
.ind-card .ind-num {
  font-family: var(--font-mono); font-size: var(--t-eyebrow); letter-spacing: 0.18em;
  color: var(--blue);
}
.ind-card h3 { color: var(--white); font-size: var(--t-2xl); }
.ind-card p { color: rgba(255,255,255,0.8); font-size: var(--t-sm); margin: var(--s-2) 0 0; }

/* ===== PROCESS — horizontal numbered timeline ===== */
.process {
  display: grid; grid-template-columns: repeat(6, 1fr);
  gap: var(--s-5);
  position: relative;
}
.process::before {
  content: "";
  position: absolute; top: 28px; left: 0; right: 0; height: 2px;
  background: var(--line);
  z-index: 0;
}
.process-step { position: relative; z-index: 1; }
.process-num {
  width: 56px; height: 56px;
  background: var(--white);
  border: 2px solid var(--blue);
  color: var(--blue);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono); font-weight: 700; font-size: var(--t-lg);
  margin-bottom: var(--s-4);
}
.process-step h4 { font-size: var(--t-lg); margin-bottom: var(--s-2); }
.process-step p { font-size: var(--t-sm); margin: 0; }

/* ===== SPEC BLOCK (blueprint feel) ===== */
.spec-block {
  background: var(--navy);
  color: var(--white);
  padding: var(--s-9);
  border-radius: 6px;
  position: relative;
  overflow: hidden;
}
.spec-block::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
}
.spec-block > * { position: relative; z-index: 1; }
.spec-block h2 { color: var(--white); }
.spec-block p { color: rgba(255,255,255,0.8); }
.spec-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: var(--s-6);
  margin-top: var(--s-7);
}
.spec-item .spec-label {
  font-family: var(--font-mono); font-size: var(--t-eyebrow);
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--blue);
  margin-bottom: var(--s-2);
}
.spec-item .spec-value {
  font-size: var(--t-base);
  color: var(--white);
  font-weight: 500;
  line-height: 1.5;
}

/* ===== CHECK LIST ===== */
.check-list { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--s-3); }
.check-list li {
  display: flex; gap: var(--s-3); align-items: flex-start;
  color: var(--ink-2); font-size: var(--t-base);
  line-height: 1.6;
}
.check-list svg {
  flex-shrink: 0;
  width: 20px; height: 20px;
  color: var(--blue);
  margin-top: 2px;
}
.check-list.dark li { color: rgba(255,255,255,0.9); }
.check-list.dark svg { color: var(--blue); }

/* ===== CTA BAND ===== */
.cta-band {
  background: var(--navy);
  color: var(--white);
  padding: var(--s-9) 0;
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: "";
  position: absolute; right: -100px; top: 50%; transform: translateY(-50%);
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(30,102,201,0.25) 0%, transparent 70%);
  pointer-events: none;
}
.cta-row {
  display: grid; grid-template-columns: 1.4fr 1fr;
  gap: var(--s-8); align-items: center;
  position: relative;
}
.cta-row h2 { color: var(--white); font-size: var(--t-4xl); margin-bottom: var(--s-3); }
.cta-row p { color: rgba(255,255,255,0.8); font-size: var(--t-lg); margin: 0; }
.cta-actions { display: flex; gap: var(--s-3); justify-content: flex-end; flex-wrap: wrap; }

/* ===== FORM ===== */
.form-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: var(--s-7);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-4); margin-bottom: var(--s-4); }
.form-field { display: flex; flex-direction: column; }
.form-field.full { grid-column: 1 / -1; }
.form-field label {
  font-family: var(--font-mono); font-size: var(--t-eyebrow);
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--steel); margin-bottom: 6px;
}
.form-field input, .form-field select, .form-field textarea {
  padding: 12px 14px;
  font-size: var(--t-base);
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--white);
  color: var(--ink);
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(30,102,201,0.15);
}
.form-field textarea { min-height: 140px; resize: vertical; font-family: inherit; }
.hp { position: absolute; left: -9999px; }

/* Contact info panel */
.contact-grid {
  display: grid; grid-template-columns: 1fr 1.4fr;
  gap: var(--s-8);
  align-items: start;
}
.contact-info { display: grid; gap: var(--s-5); }
.contact-info-item {
  padding-bottom: var(--s-5);
  border-bottom: 1px solid var(--line);
}
.contact-info-item:last-child { border-bottom: none; }
.contact-info-item .ci-label {
  font-family: var(--font-mono); font-size: var(--t-eyebrow);
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--blue); margin-bottom: var(--s-2);
}
.contact-info-item .ci-value { font-size: var(--t-lg); font-weight: 600; color: var(--navy); }
.contact-info-item p { margin: 4px 0 0; font-size: var(--t-sm); }

/* ===== SERVICE DETAIL — sidebar layout (different from PSV) ===== */
.svc-layout {
  display: grid; grid-template-columns: 280px 1fr;
  gap: var(--s-8);
  align-items: start;
}
.svc-sidebar {
  position: sticky; top: calc(var(--header-h) + 24px);
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: var(--s-5);
}
.svc-sidebar h4 {
  font-family: var(--font-mono); font-size: var(--t-eyebrow);
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--steel);
  margin-bottom: var(--s-4);
  font-weight: 600;
}
.svc-sidebar-list { list-style: none; padding: 0; margin: 0; }
.svc-sidebar-list li { border-bottom: 1px solid var(--line); }
.svc-sidebar-list li:last-child { border-bottom: none; }
.svc-sidebar-list a {
  display: block;
  padding: 12px 0;
  font-size: var(--t-sm);
  font-weight: 500;
  color: var(--ink);
  transition: color var(--t-fast), padding var(--t-fast);
}
.svc-sidebar-list a:hover { color: var(--blue); padding-left: 6px; }
.svc-sidebar-list a.active { color: var(--blue); }

.svc-main h2 { font-size: var(--t-3xl); margin-bottom: var(--s-4); }
.svc-main h3 { font-size: var(--t-xl); margin: var(--s-7) 0 var(--s-4); }
.svc-main p { font-size: var(--t-base); margin-bottom: var(--s-4); }
.svc-main p.lead { font-size: var(--t-lg); margin-bottom: var(--s-6); }

.svc-codes {
  display: flex; flex-wrap: wrap; gap: var(--s-2);
  margin: var(--s-5) 0;
}
.svc-codes .code-pill {
  font-family: var(--font-mono); font-size: var(--t-sm);
  padding: 6px 12px;
  background: var(--blue-soft);
  color: var(--blue);
  border-radius: 4px;
  font-weight: 500;
}

/* ===== FOOTER ===== */
.site-footer {
  background: var(--navy);
  color: rgba(255,255,255,0.75);
  padding: var(--s-9) 0 var(--s-6);
}
.footer-top {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--s-7);
  padding-bottom: var(--s-7);
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-brand img { height: 48px; margin-bottom: var(--s-4); }
.footer-brand p { color: rgba(255,255,255,0.7); font-size: var(--t-sm); max-width: 36ch; }
.footer-col h5 {
  font-family: var(--font-mono); font-size: var(--t-eyebrow);
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--blue);
  margin-bottom: var(--s-4);
}
.footer-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer-col a { color: rgba(255,255,255,0.75); font-size: var(--t-sm); transition: color var(--t-fast); }
.footer-col a:hover { color: var(--blue); }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: var(--s-5);
  font-size: var(--t-sm);
  color: rgba(255,255,255,0.5);
}

/* ===== UTILITIES ===== */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-6); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-5); }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s-5); }
.text-center { text-align: center; }
.bg-alt { background: var(--bg-alt); }
.bg-tint { background: var(--blue-tint); }
.mt-0 { margin-top: 0; }

.reveal { opacity: 0; transform: translateY(20px); transition: opacity 700ms var(--ease), transform 700ms var(--ease); }
.reveal.in { opacity: 1; transform: translateY(0); }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  :root { --t-5xl: 56px; --t-6xl: 72px; --t-4xl: 40px; --s-10: 96px; --s-9: 72px; }
  .nav-main { display: none; }
  .menu-toggle { display: flex; }
  .section-head { grid-template-columns: 1fr; gap: var(--s-4); }
  .intro { grid-template-columns: 1fr; gap: var(--s-7); }
  .cap-row { grid-template-columns: 1fr; gap: var(--s-5); }
  .cap-row.reverse .cap-text, .cap-row.reverse .cap-photo { order: 0; }
  .svc-grid, .ind-grid, .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .process { grid-template-columns: repeat(3, 1fr); row-gap: var(--s-7); }
  .process::before { display: none; }
  .spec-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-ribbon-inner { grid-template-columns: repeat(2, 1fr); }
  .hero-ribbon-item { border-bottom: 1px solid var(--line); }
  .cta-row { grid-template-columns: 1fr; }
  .cta-actions { justify-content: flex-start; }
  .contact-grid { grid-template-columns: 1fr; }
  .svc-layout { grid-template-columns: 1fr; }
  .svc-sidebar { position: static; }
  .footer-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  :root { --t-5xl: 44px; --t-6xl: 52px; --t-4xl: 32px; --t-3xl: 28px; --gutter: 20px; }
  .hero { min-height: 80vh; }
  .hero h1 { font-size: var(--t-6xl); }
  .svc-grid, .ind-grid, .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .cap-specs { grid-template-columns: 1fr; }
  .spec-grid { grid-template-columns: 1fr; }
  .process { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: var(--s-3); }
}
