/* =========================================================
   ENERGY SERVICES NA — KINETIC OBSIDIAN
   Static styles. CSS custom properties only.
   ========================================================= */

/* -------- Tokens -------- */
:root {
  /* Colors */
  --surface: #0f1418;
  --surface-dim: #0f1418;
  --surface-bright: #353a3e;
  --surface-container-lowest: #0a0f13;
  --surface-container-low: #171c20;
  --surface-container: #1b2025;
  --surface-container-high: #262a2f;
  --surface-container-highest: #31353a;
  --on-surface: #dfe3e9;
  --on-surface-variant: #e4beb4;
  --outline: #ab8980;
  --outline-variant: #5b4039;
  --primary: #ffb5a0;
  --primary-container: #ff5722;
  --secondary: #9ecaff;
  --secondary-container: #1e95f2;
  --tertiary: #c6c6c7;
  --tertiary-container: #909191;
  --background: #0f1418;
  --on-background: #dfe3e9;

  /* Typography */
  --font-sans: 'Space Grotesk', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;

  /* Radius */
  --rounded-sm: 0.5rem;
  --rounded: 1rem;
  --rounded-md: 1.5rem;
  --rounded-lg: 2rem;
  --rounded-xl: 3rem;
  --rounded-full: 9999px;

  /* Spacing (8px linear scale) */
  --space-xs: 4px;
  --space-sm: 12px;
  --space-base: 8px;
  --space-md: 24px;
  --space-lg: 48px;
  --space-xl: 80px;
  --gutter: 24px;
  --margin: 40px;

  /* Layout */
  --max-width: 1440px;
  --content-px: clamp(20px, 4vw, 48px);

  /* Glass */
  --glass-bg: rgba(17, 17, 17, 0.5);
  --glass-border: rgba(255, 255, 255, 0.1);
  --glass-blur: blur(15px);
}

/* -------- Reset / Base -------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  font-weight: 400;
  color: var(--on-surface);
  background: var(--background);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

img { border-radius: var(--rounded); }

a { color: inherit; text-decoration: none; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-sans);
  margin: 0 0 var(--space-md);
  color: #fff;
  line-height: 1.2;
}

h1 {
  font-size: clamp(2.25rem, 5.5vw, 4rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 600;
  letter-spacing: -0.01em;
}

h3 {
  font-size: clamp(1.25rem, 2vw, 1.5rem);
  font-weight: 500;
}

p { margin: 0 0 var(--space-md); }

p, li { font-size: 1.0625rem; line-height: 1.65; color: var(--on-surface); }

ul { padding-left: 1.25rem; }

strong { color: #fff; font-weight: 700; }

::selection { background: var(--primary-container); color: #fff; }

/* -------- Utility -------- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding-left: var(--content-px);
  padding-right: var(--content-px);
}

.label-caps {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  line-height: 1;
}

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

.divider {
  width: 96px;
  height: 4px;
  background: var(--primary-container);
  border-radius: var(--rounded-full);
  margin: 0 0 var(--space-md);
}

/* -------- Buttons -------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 14px 28px;
  border-radius: var(--rounded-full);
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.2s ease, background 0.25s ease, border-color 0.25s ease, box-shadow 0.35s ease;
  white-space: nowrap;
}

/* Primary CTA — ember pill with glass dome + soft glow.
   Mirrors cta-button.html. */
.btn-primary {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border: 0;
  color: #fff;
  font-weight: 400;
  letter-spacing: normal;
  background:
    radial-gradient(120% 220% at 30% 50%,
      #A03B15 0%,
      #9C3508 55%,
      #7A2800 100%);
  box-shadow:
    0 0 14px rgba(255, 85, 0, 0.14),
    0 0 34px rgba(255, 85, 0, 0.09),
    0 0 70px rgba(255, 85, 0, 0.05),
    0 10px 22px rgba(0, 0, 0, 0.25),
    inset 0 0 0 1px rgba(255, 255, 255, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.25),
    inset 0 -8px 18px rgba(0, 0, 0, 0.16);
}

/* Glass-dome highlight — top half. z-index:-1 so text paints above it
   (no markup change needed since the button uses isolation). */
.btn-primary::before {
  content: '';
  position: absolute;
  inset: 1px 1px 50% 1px;
  border-radius: 9999px 9999px 50% 50% / 9999px 9999px 100% 100%;
  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.42) 0%,
    rgba(255, 255, 255, 0.16) 55%,
    rgba(255, 255, 255, 0.00) 100%);
  pointer-events: none;
  z-index: -1;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow:
    0 0 22px rgba(255, 85, 0, 0.21),
    0 0 50px rgba(255, 85, 0, 0.14),
    0 0 96px rgba(255, 85, 0, 0.08),
    0 16px 32px rgba(0, 0, 0, 0.28),
    inset 0 0 0 1px rgba(255, 255, 255, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.28),
    inset 0 -8px 18px rgba(0, 0, 0, 0.16);
}

.btn-primary:active { transform: translateY(-1px); }

.btn-secondary {
  background: transparent;
  color: #fff;
  border-color: var(--primary-container);
}
.btn-secondary:hover {
  background: rgba(255, 87, 34, 0.1);
  border-color: var(--primary);
  box-shadow: 0 0 16px rgba(255, 87, 34, 0.25);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
  border-color: var(--glass-border);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
}
.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.25);
}

.btn-arrow::after {
  content: '→';
  font-size: 1rem;
  transition: transform 0.25s ease;
}
.btn-arrow:hover::after { transform: translateX(4px); }

/* -------- Glass Panel -------- */
.glass {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--rounded-md);
}

/* =========================================================
   NAV — transparent at top of page, fades to dark glass on scroll.
   Initial state: see-through so the hero video reads top-edge to top-edge.
   Scrolled state (.is-scrolled, set by nav.js): standard dark-glass nav.
   ========================================================= */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background 0.35s ease, backdrop-filter 0.35s ease, border-color 0.35s ease;
}

.site-nav.is-scrolled {
  background: rgba(10, 15, 19, 0.78);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border-bottom-color: var(--glass-border);
}

.nav-utility {
  border-bottom: 1px solid transparent;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  color: #ffffff;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.55);
  transition: border-color 0.35s ease;
}
.site-nav.is-scrolled .nav-utility {
  border-bottom-color: rgba(255, 255, 255, 0.05);
}
.nav-utility .container {
  display: flex;
  justify-content: flex-end;
  gap: var(--space-md);
  padding-top: 8px;
  padding-bottom: 8px;
}
.nav-utility a:hover { color: var(--primary); }

.nav-main .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  height: 80px;
}

.site-logo {
  height: 44px;
  width: auto;
  border-radius: 0;
  display: block;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links > li { position: relative; }

.nav-links a,
.nav-links button.dropdown-trigger {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  /* Top-of-page state: black text over the video */
  color: #000;
  background: transparent;
  border: none;
  cursor: pointer;
  border-radius: var(--rounded);
  transition: color 0.35s ease, background 0.2s ease;
}

.nav-links a:hover,
.nav-links button.dropdown-trigger:hover {
  background: rgba(0, 0, 0, 0.06);
  color: #000;
}

.nav-links a.is-active {
  color: var(--primary-container);
}

/* Once scrolled past hero — restore dark-nav contrast */
.site-nav.is-scrolled .nav-links a,
.site-nav.is-scrolled .nav-links button.dropdown-trigger {
  color: var(--tertiary);
}

.site-nav.is-scrolled .nav-links a:hover,
.site-nav.is-scrolled .nav-links button.dropdown-trigger:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.04);
}

.site-nav.is-scrolled .nav-links a.is-active {
  color: var(--primary);
}

/* Dropdown */
.dropdown { position: relative; }
.dropdown-trigger::after {
  content: '▾';
  font-size: 0.7rem;
  transition: transform 0.2s ease;
}
.dropdown.is-open .dropdown-trigger::after { transform: rotate(180deg); }

.dropdown-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 280px;
  list-style: none;
  margin: 0;
  padding: 8px;
  background: rgba(15, 20, 24, 0.95);
  border: 1px solid var(--glass-border);
  border-radius: var(--rounded-md);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
}

.dropdown:hover .dropdown-menu,
.dropdown:focus-within .dropdown-menu,
.dropdown.is-open .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu a {
  display: block;
  padding: 12px 14px;
  font-size: 0.8125rem;
  letter-spacing: 0.12em;
  border-radius: var(--rounded-sm);
}

.dropdown-menu a:hover {
  color: var(--primary);
  background: rgba(255, 87, 34, 0.08);
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

/* Hamburger */
.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--glass-border);
  border-radius: var(--rounded);
  width: 44px;
  height: 44px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  color: #fff;
}
.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: #fff;
  position: relative;
}
.nav-toggle span::before,
.nav-toggle span::after {
  content: '';
  position: absolute;
  left: 0;
  width: 20px;
  height: 2px;
  background: #fff;
  transition: transform 0.25s ease, top 0.25s ease;
}
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }

@media (max-width: 1024px) {
  .nav-utility { display: none; }
  .nav-toggle { display: inline-flex; }

  /* Keep mobile nav transparent — no dark glass header covering the logo */
  .site-nav,
  .site-nav.is-scrolled {
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-bottom-color: transparent;
  }

  /* Logo and toggle paint above the dropdown panel */
  .nav-main .container { position: relative; z-index: 2; }
  .site-logo { position: relative; z-index: 3; }

  .nav-links {
    position: fixed;
    inset: 80px 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 16px var(--content-px);
    background: rgba(10, 15, 19, 0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    max-height: calc(100vh - 80px);
    overflow-y: auto;
    transform: translateY(-110%);
    transition: transform 0.3s ease;
    z-index: 1;
  }

  .nav-links.is-open { transform: translateY(0); }

  .nav-links a,
  .nav-links button.dropdown-trigger {
    width: 100%;
    padding: 16px 12px;
    border-radius: var(--rounded-sm);
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    /* Inside the open dropdown panel use light text on dark glass */
    color: var(--tertiary);
  }

  .nav-links a:hover,
  .nav-links button.dropdown-trigger:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.04);
  }

  .dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    background: transparent;
    border: none;
    padding: 0 0 8px 16px;
    backdrop-filter: none;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }
  .dropdown.is-open .dropdown-menu { max-height: 500px; }

  .nav-cta .btn { padding: 10px 18px; font-size: 0.7rem; }
}

/* Tight mobile — hide the header REQUEST INFO so logo + hamburger
   have room. The CTA still lives in the open menu and throughout the page. */
@media (max-width: 540px) {
  .nav-cta > a.btn { display: none; }
}

/* =========================================================
   HERO
   --------------------------------------------------------
   Desktop: .hero-scrub-wrapper (500vh runway / sticky 100vh / scroll-scrub video)
   Mobile : .hero-mobile-fallback (static turbine poster image)
   ========================================================= */
section.hero-home {
  position: relative;
  isolation: isolate;
  background: var(--background);
  padding: 0;
  margin: 0;
}

/* Desktop — show video scrub wrapper */
.hero-scrub-wrapper { display: block; }
.hero-mobile-fallback { display: none; }

/* Mobile — kill the scrub, show static image */
@media (max-width: 768px) {
  .hero-scrub-wrapper { display: none; }
  .hero-mobile-fallback { display: block; }
}

.hero-scrub-wrapper {
  position: relative;
  width: 100%;
  /* Scroll runway. Total scroll distance = wrapper height - 100vh.
     500vh → 400vh of scrub range. Tweak --scrub-runway to adjust. */
  height: var(--scrub-runway, 500vh);
  background: var(--background);
}

/* Mobile fallback — static turbine image, full bleed, no scrub */
.hero-mobile-fallback {
  position: relative;
  width: 100%;
  isolation: isolate;
  background: var(--background);
  overflow: hidden;
}

.hero-mobile-fallback > img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 0;
}

.hero-sticky {
  position: sticky;
  top: 0;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  background: var(--background);
}

#hero-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: auto;          /* natural aspect — no left/right cropping */
  display: block;
  border-radius: 0;
  filter: saturate(0.98) contrast(1.03);
  z-index: 1;
}

/* Readability scrim — gentle left-side darkening only.
   Center/right of the video stays clean. Text uses text-shadow
   for any-frame legibility. */
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    linear-gradient(
      to right,
      rgba(10, 14, 18, 0.55) 0%,
      rgba(10, 14, 18, 0.25) 35%,
      rgba(10, 14, 18, 0.00) 65%
    ),
    radial-gradient(
      ellipse 50% 60% at 30% 50%,
      rgba(10, 14, 18, 0.30) 0%,
      rgba(10, 14, 18, 0.00) 100%
    );
}

/* Vertically center the hero text inside the sticky 100vh container */
.hero-content {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0;
  pointer-events: none;
}

.hero-content > .container { pointer-events: auto; }

/* Text shadow for any-frame readability without darkening the video itself */
.hero-content h1,
.hero-content .hero-tagline,
.hero-content .hero-sub,
.hero-content .hero-status .label-caps {
  text-shadow:
    0 2px 18px rgba(0, 0, 0, 0.75),
    0 1px 4px rgba(0, 0, 0, 0.65);
}

.hero-content h1 {
  max-width: 20ch;
  margin-bottom: var(--space-md);
}

.hero-content .hero-sub { max-width: 620px; }

.hero-content .btn-ghost {
  background: rgba(15, 20, 24, 0.55);
}

/* Mobile fallback hero content positioning */
@media (max-width: 768px) {
  .hero-mobile-fallback .hero-content {
    position: relative;
    padding: var(--space-lg) 0 var(--space-xl);
    background: linear-gradient(to top,
      var(--background) 60%,
      rgba(15, 20, 24, 0.4) 100%);
  }
  .hero-mobile-fallback .hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom,
      rgba(15, 20, 24, 0.0) 0%,
      rgba(15, 20, 24, 0.55) 100%);
    z-index: 1;
  }
  .hero-mobile-fallback > img { position: relative; z-index: 0; }
  .hero-mobile-fallback .hero-content { z-index: 2; }
  .hero-mobile-fallback .hero-content h1 { max-width: none; }
}

.hero-status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  border-radius: var(--rounded-full);
  background: rgba(30, 149, 242, 0.08);
  border: 1px solid rgba(30, 149, 242, 0.3);
  color: var(--secondary);
  margin-bottom: var(--space-md);
}

.hero-status .pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--secondary-container);
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.4); }
}

.hero-tagline {
  font-size: clamp(1.125rem, 1.6vw, 1.375rem);
  color: var(--primary);
  font-weight: 700;
  letter-spacing: 0.02em;
  margin-bottom: var(--space-md);
}

.hero-sub {
  font-size: clamp(1rem, 1.4vw, 1.25rem);
  color: var(--tertiary);
  max-width: 720px;
  margin-bottom: var(--space-lg);
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

/* =========================================================
   SECTIONS
   ========================================================= */
section {
  padding: var(--space-xl) 0;
  position: relative;
}

.section-head {
  margin-bottom: var(--space-lg);
  max-width: 880px;
}

.section-head h2 { margin-bottom: var(--space-md); }
.section-head p {
  font-size: 1.125rem;
  color: var(--tertiary);
}

/* Hairline section divider */
.section-bordered {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.section-dim { background: var(--surface-container-lowest); }

/* Orange radial glow — applied to sections with blank backgrounds */
section:not(.hero-home):not(.hero-page):not(.section-streaks):not(.section-dim) {
  background: radial-gradient(ellipse at top, rgba(255, 87, 34, 0.12), transparent 70%);
}

/* Orange-streak background — used behind "Why Plant Operators Choose Energy Services NA" */
.section-streaks {
  position: relative;
  isolation: isolate;
  background-color: var(--surface-container-lowest);
}
.section-streaks::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image: url('../images/bg-misc1.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.55;
}
.section-streaks::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(to bottom,
      rgba(15, 20, 24, 0.55) 0%,
      rgba(15, 20, 24, 0.40) 50%,
      rgba(15, 20, 24, 0.75) 100%);
}

/* =========================================================
   FEATURE GRID — "Why ESNA" 3 cards
   ========================================================= */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-md);
}

.feature-card {
  padding: var(--space-md);
  border-radius: var(--rounded-md);
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-8px);
  border-color: var(--secondary-container);
  box-shadow: 0 0 20px rgba(30, 149, 242, 0.2);
}

.feature-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--rounded-full);
  background: var(--surface-variant, var(--surface-container-high));
  border: 1px solid var(--glass-border);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-md);
  color: var(--primary-container);
  font-size: 1.5rem;
  font-weight: 700;
}

.feature-card h3 {
  color: #fff;
  margin-bottom: var(--space-sm);
}

.feature-card p {
  color: var(--tertiary);
  font-size: 1rem;
  margin-bottom: 0;
}

/* =========================================================
   SERVICE CARDS — 6-card grid
   ========================================================= */
.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
}

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

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

.service-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--rounded-md);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}

.service-card:hover {
  transform: translateY(-8px);
  border-color: var(--primary-container);
  box-shadow: 0 0 22px rgba(255, 87, 34, 0.25);
}

.service-card-media {
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.service-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
  transition: transform 0.6s ease;
}

.service-card:hover .service-card-media img {
  transform: scale(1.04);
}

.service-card-body {
  padding: var(--space-md);
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}

.service-card-num {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--primary);
}

.service-card-title {
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #fff;
  line-height: 1.25;
  margin: 0;
}

.service-card-desc {
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--tertiary);
  margin: 0;
  flex: 1;
}

.service-card-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--secondary);
  text-transform: uppercase;
  margin-top: 4px;
}

.service-card-link::after {
  content: '→';
  transition: transform 0.25s ease;
}

.service-card:hover .service-card-link {
  color: var(--primary);
}

.service-card:hover .service-card-link::after {
  transform: translateX(4px);
}

/* =========================================================
   PILL LIST — Industries
   ========================================================= */
.pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.pill {
  display: inline-flex;
  align-items: center;
  padding: 10px 18px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--on-surface);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--glass-border);
  border-radius: var(--rounded-full);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.pill:hover {
  color: var(--secondary);
  border-color: var(--secondary-container);
  background: rgba(30, 149, 242, 0.05);
}

/* =========================================================
   CTA PANEL
   ========================================================= */
.cta-panel {
  text-align: center;
  padding: clamp(48px, 8vw, 96px) clamp(24px, 5vw, 64px);
  background:
    radial-gradient(ellipse at top, rgba(255, 87, 34, 0.12), transparent 70%),
    var(--surface-container-low);
  border: 1px solid var(--glass-border);
  border-radius: var(--rounded-md);
}

.cta-panel h2 {
  max-width: 780px;
  margin-left: auto;
  margin-right: auto;
}

.cta-panel p {
  max-width: 640px;
  margin: 0 auto var(--space-lg);
  color: var(--tertiary);
  font-size: 1.125rem;
}

.cta-panel .hero-ctas { justify-content: center; }

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer {
  background: var(--surface-container-lowest);
  border-top: 1px solid var(--glass-border);
  padding: var(--space-xl) 0 var(--space-md);
  margin-top: var(--space-xl);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: var(--space-lg);
  margin-bottom: var(--space-lg);
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }
}

.footer-col h4 {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: var(--space-md);
}

.footer-col p,
.footer-col li {
  font-size: 0.95rem;
  color: var(--tertiary);
  margin-bottom: 6px;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

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

.footer-cert {
  font-style: italic;
  color: var(--on-surface);
}

.footer-cert strong { font-style: normal; }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  padding-top: var(--space-md);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 0.8125rem;
  color: var(--tertiary-container);
}

.footer-badge {
  display: inline-block;
  line-height: 0;
}

.footer-badge img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 96px;
  border-radius: 0;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.footer-badge:hover img {
  opacity: 0.85;
  transform: translateY(-2px);
}

/* =========================================================
   SCROLL ANIMATIONS — IntersectionObserver targets
   ========================================================= */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in.delay-1 { transition-delay: 0.1s; }
.fade-in.delay-2 { transition-delay: 0.2s; }
.fade-in.delay-3 { transition-delay: 0.3s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .fade-in { opacity: 1; transform: none; }
}

/* =========================================================
   GENERIC PAGE HERO (every page except home)
   Background image set per page via inline `--hero-bg` CSS var.
   ========================================================= */
.hero-page {
  position: relative;
  padding: 180px 0 var(--space-xl);
  isolation: isolate;
  overflow: hidden;
  background: var(--background);
}

.hero-page::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image: var(--hero-bg, none);
  background-size: cover;
  background-position: center;
  opacity: 0.4;
}

.hero-page::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    to bottom,
    rgba(15, 20, 24, 0.55) 0%,
    rgba(15, 20, 24, 0.80) 70%,
    var(--background) 100%);
}

.hero-page h1 {
  margin-bottom: var(--space-md);
  max-width: 22ch;
}

.hero-page-headline {
  font-size: clamp(1.25rem, 1.8vw, 1.6rem);
  color: var(--primary);
  font-weight: 600;
  margin-bottom: var(--space-md);
  max-width: 760px;
}

.hero-page-sub {
  font-size: clamp(1.05rem, 1.4vw, 1.3rem);
  color: var(--tertiary);
  max-width: 760px;
  margin-bottom: var(--space-md);
}

/* =========================================================
   CONTENT BLOCKS — used by service / about pages
   ========================================================= */
.content-block { max-width: 880px; }

.content-block p { font-size: 1.0625rem; }

.content-block ul {
  padding-left: 1.25rem;
  margin: 0 0 var(--space-md);
}
.content-block ul li { margin-bottom: 10px; }

/* Two-column "what we do" grid */
.def-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-md);
}

.def-card {
  padding: var(--space-md);
  border-radius: var(--rounded-md);
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.def-card:hover {
  transform: translateY(-6px);
  border-color: var(--secondary-container);
  box-shadow: 0 0 20px rgba(30, 149, 242, 0.18);
}

.def-card h3 {
  color: #fff;
  margin-bottom: 10px;
  font-size: 1.125rem;
}

.def-card p {
  font-size: 1rem;
  color: var(--tertiary);
  margin: 0;
}

/* Numbered steps (for process / how-it-works) */
.steps-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-md);
  counter-reset: step;
}

.steps-list li {
  counter-increment: step;
  position: relative;
  padding: var(--space-md);
  padding-left: 84px;
  border-radius: var(--rounded-md);
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
}

.steps-list li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute;
  left: 18px;
  top: 18px;
  width: 48px;
  height: 48px;
  border-radius: var(--rounded-full);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 87, 34, 0.12);
  border: 1px solid rgba(255, 87, 34, 0.3);
  color: var(--primary);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.05em;
}

.steps-list li h3 {
  color: #fff;
  font-size: 1.0625rem;
  margin: 0 0 8px;
}

.steps-list li p {
  font-size: 0.95rem;
  color: var(--tertiary);
  margin: 0;
}

/* Stat callouts */
.stat-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--space-md);
}

.stat {
  padding: var(--space-md);
  border-left: 3px solid var(--primary-container);
  background: var(--glass-bg);
  border-radius: var(--rounded);
}

.stat-num {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.01em;
  line-height: 1.1;
}

.stat-label {
  font-size: 0.8125rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--tertiary);
  margin-top: 6px;
}

/* =========================================================
   CONTACT PAGE — info cards + form
   ========================================================= */
.contact-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
}

.contact-card {
  padding: var(--space-md);
  border-radius: var(--rounded-md);
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
}

.contact-card h3 {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 12px;
}

.contact-card p {
  margin: 0;
  font-size: 1.0625rem;
  color: #fff;
}

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

/* Form */
.contact-form {
  padding: clamp(28px, 4vw, 48px);
  background: var(--surface-container-low);
  border: 1px solid var(--glass-border);
  border-radius: var(--rounded-md);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
}

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

.form-field { display: flex; flex-direction: column; gap: 8px; }
.form-field.full { grid-column: 1 / -1; }

.form-field label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary);
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 14px 18px;
  font: inherit;
  font-size: 1rem;
  color: var(--on-surface);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--glass-border);
  border-radius: var(--rounded);
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.form-field input::placeholder,
.form-field textarea::placeholder { color: var(--tertiary-container); }

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--primary-container);
  background: rgba(255, 255, 255, 0.05);
  box-shadow: 0 0 0 4px rgba(255, 87, 34, 0.12);
}

.form-field textarea {
  min-height: 140px;
  resize: vertical;
  font-family: inherit;
}

.form-field select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'><path fill='%23dfe3e9' d='M1 1l5 5 5-5'/></svg>");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 12px 8px;
  padding-right: 44px;
}

.form-field select option { background: var(--surface-container); color: var(--on-surface); }

.form-actions {
  margin-top: var(--space-md);
  display: flex;
  justify-content: flex-end;
  gap: var(--space-md);
}

.form-status {
  margin-top: var(--space-md);
  padding: 14px 18px;
  background: rgba(30, 149, 242, 0.08);
  border: 1px solid rgba(30, 149, 242, 0.3);
  border-radius: var(--rounded);
  color: var(--secondary);
  font-size: 0.95rem;
  display: none;
}

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