/* ==========================================================================
   Armstrong Electrical & Field Services, L.L.C.
   v5 — Modern industrial-tech redesign
   Glassmorphism · Mesh gradients · Space Grotesk · Refined motion
   ========================================================================== */

/* ---------- Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body, h1, h2, h3, h4, h5, h6, p, ul, ol, figure, blockquote, dl, dd { margin: 0; }
ul[role='list'], ol[role='list'] { list-style: none; padding: 0; }
img, picture, svg, video { max-width: 100%; display: block; height: auto; }
input, button, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; border: none; background: none; }
a { color: inherit; text-decoration: none; }

/* ---------- Design tokens ---------- */
:root {
  /* Brand — electric blue with cyan accent */
  --brand-blue: #1E3FB8;
  --brand-blue-600: #2A4FD9;
  --brand-blue-700: #15309C;
  --brand-blue-900: #0A1E66;
  --brand-blue-50: #EEF2FF;
  --brand-blue-100: #DDE4FE;
  --cyan: #06B6D4;
  --cyan-bright: #22D3EE;
  --accent: #F59E0B;
  --accent-600: #D97706;

  /* Neutrals — slate / steel */
  --steel-950: #050914;
  --steel-900: #0B1220;
  --steel-800: #1A2236;
  --steel-700: #2C3650;
  --steel-600: #4B5675;
  --steel-500: #6B7796;
  --steel-400: #94A0BD;
  --steel-300: #CBD3E4;
  --steel-200: #E5E9F2;
  --steel-100: #F1F4FA;
  --steel-50: #F8FAFD;
  --white: #FFFFFF;
  --black: #000000;
  --success: #10B981;
  --danger: #DC2626;

  /* Type */
  --font-display: 'Space Grotesk', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;

  /* Spacing */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4rem;
  --space-9: 6rem;
  --space-10: 8rem;

  /* Radius */
  --radius-sm: 0.5rem;
  --radius: 0.75rem;
  --radius-lg: 1rem;
  --radius-xl: 1.5rem;
  --radius-2xl: 2rem;

  /* Shadows — refined elevation system */
  --shadow-xs: 0 1px 2px rgba(11, 30, 102, 0.06);
  --shadow-sm: 0 1px 3px rgba(11, 30, 102, 0.08), 0 1px 2px rgba(11, 30, 102, 0.04);
  --shadow: 0 4px 16px rgba(11, 30, 102, 0.08), 0 2px 4px rgba(11, 30, 102, 0.04);
  --shadow-md: 0 8px 24px rgba(11, 30, 102, 0.10), 0 4px 8px rgba(11, 30, 102, 0.05);
  --shadow-lg: 0 24px 48px rgba(11, 30, 102, 0.14), 0 8px 16px rgba(11, 30, 102, 0.06);
  --shadow-xl: 0 40px 80px rgba(11, 30, 102, 0.18), 0 16px 32px rgba(11, 30, 102, 0.08);
  --shadow-glow: 0 0 0 1px rgba(30, 63, 184, 0.12), 0 8px 32px rgba(30, 63, 184, 0.16);

  /* Container */
  --container: 1200px;
  --container-narrow: 880px;

  --header-h: 64px;
}

@media (min-width: 768px) {
  :root { --header-h: 76px; }
}

html { font-family: var(--font-sans); color: var(--steel-800); line-height: 1.65; }
body {
  background: var(--white);
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
}

::selection { background: var(--brand-blue); color: #fff; }

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--steel-900);
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: -0.025em;
}
h1 { font-size: clamp(2rem, 5vw + 0.5rem, 4.25rem); font-weight: 700; line-height: 1.05; letter-spacing: -0.035em; }
h2 { font-size: clamp(1.625rem, 3vw + 0.5rem, 2.75rem); letter-spacing: -0.03em; }
h3 { font-size: clamp(1.15rem, 1vw + 0.85rem, 1.5rem); letter-spacing: -0.02em; }
h4 { font-size: 1.0625rem; font-weight: 600; letter-spacing: -0.015em; }
p { color: var(--steel-600); font-size: 0.95rem; line-height: 1.7; }
.lead { font-size: 1.05rem; color: var(--steel-600); max-width: 60ch; line-height: 1.7; }
@media (min-width: 768px) {
  p { font-size: 1rem; }
  .lead { font-size: 1.2rem; line-height: 1.65; }
}

/* Headline gradient accent — use sparingly */
.text-gradient {
  background: linear-gradient(135deg, var(--brand-blue) 0%, var(--cyan) 100%);
  -webkit-background-clip: text;
          background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--space-4); }
@media (min-width: 768px) { .container { padding: 0 var(--space-6); } }
.container-narrow { max-width: var(--container-narrow); margin: 0 auto; padding: 0 var(--space-4); }
@media (min-width: 768px) { .container-narrow { padding: 0 var(--space-6); } }
.section { padding: var(--space-7) 0; position: relative; }
@media (min-width: 768px) { .section { padding: var(--space-10) 0; } }
.section-sm { padding: var(--space-6) 0; position: relative; }
@media (min-width: 768px) { .section-sm { padding: var(--space-8) 0; } }
.text-center { text-align: center; }

/* Eyebrow label with cyan accent */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand-blue);
  margin-bottom: var(--space-3);
  padding: 0.35rem 0.7rem;
  background: var(--brand-blue-50);
  border-radius: 999px;
  border: 1px solid var(--brand-blue-100);
}
.eyebrow::before {
  content: "";
  width: 5px;
  height: 5px;
  background: var(--cyan);
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(6, 182, 212, 0.18);
}
.hero .eyebrow { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.15); color: var(--cyan-bright); }

/* Grids */
.grid { display: grid; gap: var(--space-4); }
.grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
@media (min-width: 600px) { .grid { gap: var(--space-5); } .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr 1fr; } }
@media (min-width: 980px) {
  .grid-3 { grid-template-columns: 1fr 1fr 1fr; }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 0.95rem 1.4rem;
  border-radius: var(--radius);
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  transition: transform .2s cubic-bezier(.2,.8,.2,1), background .2s ease, color .2s ease, box-shadow .25s ease, border-color .2s ease;
  text-align: center;
  white-space: nowrap;
  min-height: 48px;
  line-height: 1.2;
  position: relative;
  letter-spacing: -0.005em;
}
.btn-primary {
  background: linear-gradient(135deg, var(--brand-blue) 0%, var(--brand-blue-600) 100%);
  color: #fff;
  box-shadow: var(--shadow-sm), inset 0 1px 0 rgba(255,255,255,0.2);
}
.btn-primary:hover {
  background: linear-gradient(135deg, var(--brand-blue-600) 0%, var(--brand-blue-700) 100%);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg), inset 0 1px 0 rgba(255,255,255,0.2);
}
.btn-primary:active { transform: translateY(0); }
.btn-secondary {
  background: var(--white);
  color: var(--brand-blue);
  border-color: var(--steel-200);
  box-shadow: var(--shadow-xs);
}
.btn-secondary:hover { background: var(--brand-blue-50); border-color: var(--brand-blue-100); transform: translateY(-1px); }
.btn-accent {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-600) 100%);
  color: var(--steel-950);
  font-weight: 700;
  box-shadow: 0 4px 16px rgba(245, 158, 11, 0.3), inset 0 1px 0 rgba(255,255,255,0.3);
}
.btn-accent:hover { transform: translateY(-2px); box-shadow: 0 8px 32px rgba(245, 158, 11, 0.4), inset 0 1px 0 rgba(255,255,255,0.3); }
.btn-ghost {
  color: var(--white);
  border-color: rgba(255,255,255,0.25);
  background: rgba(255,255,255,0.06);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.btn-ghost:hover { background: rgba(255,255,255,0.16); border-color: rgba(255,255,255,0.35); transform: translateY(-1px); }
.btn svg { width: 1.15em; height: 1.15em; }

/* ---------- Scroll Progress Bar ---------- */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0;
  background: linear-gradient(90deg, var(--brand-blue), var(--cyan-bright));
  z-index: 200;
  transition: width .08s linear;
  pointer-events: none;
}

/* ---------- Header / Nav (glassmorphic) ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(229, 233, 242, 0.7);
  transition: box-shadow .25s ease, background .25s ease;
}
.site-header.scrolled {
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-sm);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  height: var(--header-h);
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--steel-900);
  letter-spacing: -0.02em;
  font-size: 0.88rem;
  line-height: 1.1;
  flex: 1;
  min-width: 0;
}
.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--brand-blue) 0%, var(--brand-blue-700) 100%);
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 800;
  font-size: 0.74rem;
  letter-spacing: 0.04em;
  box-shadow: 0 4px 12px rgba(30, 63, 184, 0.28), inset 0 1px 0 rgba(255,255,255,0.2);
  flex-shrink: 0;
  position: relative;
}
.brand-mark::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 10px;
  background: linear-gradient(135deg, transparent 50%, rgba(34, 211, 238, 0.4) 100%);
  pointer-events: none;
}
.brand-text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.brand-text small { display: block; font-family: var(--font-sans); font-weight: 500; font-size: 0.62rem; color: var(--steel-500); letter-spacing: 0.04em; text-transform: uppercase; margin-top: 1px; }

@media (max-width: 359px) {
  .brand-text small { display: none; }
  .brand { font-size: 0.78rem; }
}
@media (min-width: 768px) {
  .brand { font-size: 1.0625rem; gap: 0.75rem; }
  .brand-mark { width: 42px; height: 42px; font-size: 0.9rem; border-radius: 11px; }
  .brand-text small { font-size: 0.72rem; }
}

.nav-menu {
  display: none;
  list-style: none;
  padding: 0;
  gap: 0.25rem;
  align-items: center;
}
.nav-menu a {
  padding: 0.55rem 1rem;
  border-radius: var(--radius);
  color: var(--steel-700);
  font-weight: 500;
  font-size: 0.95rem;
  transition: color .15s ease, background .15s ease;
  position: relative;
}
.nav-menu a:hover { color: var(--brand-blue); background: var(--brand-blue-50); }
.nav-menu a[aria-current="page"] { color: var(--brand-blue); }
.nav-menu a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 1rem; right: 1rem; bottom: 4px;
  height: 2px;
  background: linear-gradient(90deg, var(--brand-blue), var(--cyan));
  border-radius: 2px;
}
.nav-cta { display: none; }

/* Hamburger */
.menu-toggle {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 44px;
  border-radius: var(--radius);
  color: #fff;
  background: linear-gradient(135deg, var(--brand-blue), var(--brand-blue-700));
  flex-shrink: 0;
  box-shadow: var(--shadow-sm), inset 0 1px 0 rgba(255,255,255,0.15);
  transition: transform .15s ease, box-shadow .2s ease;
  z-index: 102;
  padding: 0;
}
.menu-toggle:active { transform: scale(0.94); }
.menu-toggle svg {
  position: absolute;
  top: 50%; left: 50%;
  width: 20px; height: 20px;
  transform: translate(-50%, -50%);
  transition: opacity .2s ease;
  pointer-events: none;
}
.menu-toggle .icon-close { opacity: 0; }
.menu-toggle[aria-expanded="true"] .icon-open { opacity: 0; }
.menu-toggle[aria-expanded="true"] .icon-close { opacity: 1; }

/* Mobile drawer — glassmorphic-friendly */
.mobile-drawer {
  position: fixed;
  inset: 0;
  background: var(--white);
  transform: translateX(100%);
  transition: transform .35s cubic-bezier(0.32, 0.72, 0, 1);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  z-index: 101;
  display: flex;
  flex-direction: column;
  visibility: hidden;
}
.mobile-drawer[data-open="true"] { transform: translateX(0); visibility: visible; }
.drawer-spacer {
  position: relative;
  height: var(--header-h);
  flex-shrink: 0;
  background: linear-gradient(135deg, var(--brand-blue) 0%, var(--brand-blue-700) 100%);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 0 var(--space-4);
}
.drawer-spacer::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top right, rgba(34,211,238,0.18), transparent 60%);
  pointer-events: none;
}
.drawer-close {
  width: 42px; height: 42px;
  border-radius: var(--radius);
  background: rgba(255,255,255,0.18);
  color: #fff;
  display: grid; place-items: center;
  border: none;
  cursor: pointer;
  transition: background .15s ease, transform .15s ease;
  padding: 0;
  z-index: 1;
}
.drawer-close:hover { background: rgba(255,255,255,0.3); }
.drawer-close:active { transform: scale(0.94); }
.drawer-close svg { width: 22px; height: 22px; }
.drawer-nav { padding: var(--space-5) var(--space-4) var(--space-3); }
.drawer-nav ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 2px; }
.drawer-nav a {
  display: flex; align-items: center;
  padding: 1.1rem 1.1rem;
  border-radius: var(--radius);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.125rem;
  color: var(--steel-900);
  min-height: 56px;
  letter-spacing: -0.01em;
  transition: background .15s ease, color .15s ease, padding-left .15s ease;
}
.drawer-nav a:hover, .drawer-nav a[aria-current="page"] {
  background: var(--brand-blue-50);
  color: var(--brand-blue);
  padding-left: 1.35rem;
}
.drawer-footer {
  margin-top: auto;
  padding: var(--space-5) var(--space-4) calc(var(--space-5) + env(safe-area-inset-bottom));
  background: var(--steel-50);
  border-top: 1px solid var(--steel-200);
}
.drawer-footer .btn, .drawer-footer .btn-primary {
  width: 100%;
  color: #ffffff;
  background: linear-gradient(135deg, var(--brand-blue), var(--brand-blue-600));
}
.drawer-footer .btn:hover, .drawer-footer .btn-primary:hover {
  background: linear-gradient(135deg, var(--brand-blue-600), var(--brand-blue-700));
  color: #ffffff;
}

@media (min-width: 980px) {
  .nav-menu { display: flex; }
  .nav-cta { display: inline-flex; }
  .menu-toggle { display: none; }
  .mobile-drawer { display: none; }
}

/* ---------- Hero with animated mesh gradient ---------- */
.hero {
  position: relative;
  isolation: isolate;
  padding: var(--space-8) 0 var(--space-9);
  overflow: hidden;
  background: var(--steel-950);
  color: #fff;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 0%, rgba(30, 63, 184, 0.55) 0%, transparent 45%),
    radial-gradient(circle at 80% 20%, rgba(6, 182, 212, 0.35) 0%, transparent 45%),
    radial-gradient(circle at 50% 100%, rgba(30, 63, 184, 0.45) 0%, transparent 55%),
    linear-gradient(180deg, var(--steel-950) 0%, var(--brand-blue-900) 100%);
  z-index: -2;
  animation: mesh-shift 20s ease-in-out infinite alternate;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(2px 2px at 20% 30%, rgba(255,255,255,0.4), transparent),
    radial-gradient(2px 2px at 60% 70%, rgba(255,255,255,0.3), transparent),
    radial-gradient(1px 1px at 80% 10%, rgba(34,211,238,0.5), transparent),
    radial-gradient(1px 1px at 30% 80%, rgba(34,211,238,0.4), transparent);
  z-index: -1;
  opacity: 0.6;
}
@keyframes mesh-shift {
  0%   { background-position: 0% 0%, 100% 0%, 50% 100%, 0 0; }
  50%  { background-position: 10% 5%, 90% 15%, 60% 90%, 0 0; }
  100% { background-position: 0% 0%, 100% 0%, 50% 100%, 0 0; }
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
  align-items: center;
}
@media (min-width: 980px) {
  .hero { padding: var(--space-10) 0; }
  .hero-grid { grid-template-columns: 1.15fr 1fr; gap: var(--space-9); }
}
.hero h1 { color: #fff; }
.hero p { color: rgba(255,255,255,0.82); font-size: 1.05rem; max-width: 56ch; margin-top: var(--space-4); }
@media (min-width: 768px) { .hero p { font-size: 1.2rem; margin-top: var(--space-5); } }

.hero-cta {
  margin-top: var(--space-6);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}
.hero-cta .btn { flex: 1 1 auto; min-width: 0; }
@media (min-width: 480px) { .hero-cta .btn { flex: 0 1 auto; } }

.hero-trust {
  margin-top: var(--space-6);
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-3);
  font-size: 0.875rem;
  color: rgba(255,255,255,0.78);
}
@media (min-width: 480px) {
  .hero-trust { display: flex; flex-wrap: wrap; gap: var(--space-5); margin-top: var(--space-7); }
}
.hero-trust span { display: inline-flex; align-items: center; gap: 0.5rem; }
.hero-trust svg { width: 18px; height: 18px; color: var(--cyan-bright); flex-shrink: 0; filter: drop-shadow(0 0 4px rgba(34,211,238,0.4)); }

.hero-visual {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  aspect-ratio: 4/3;
  box-shadow: 0 30px 60px rgba(0,0,0,0.4), 0 0 0 1px rgba(255,255,255,0.06);
  margin-top: var(--space-3);
}
.hero-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(11,18,32,0.4) 100%);
  pointer-events: none;
}
@media (min-width: 600px) { .hero-visual { aspect-ratio: 16/10; } }
@media (min-width: 980px) {
  .hero-visual { aspect-ratio: 4/5; transform: rotate(-2deg); border-radius: var(--radius-2xl); margin-top: 0; }
}
.hero-visual img { width: 100%; height: 100%; object-fit: cover; }
.hero-badge {
  position: absolute;
  bottom: 12px;
  left: 12px;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-600) 100%);
  color: var(--steel-950);
  font-weight: 800;
  padding: 0.55rem 0.9rem;
  border-radius: var(--radius);
  box-shadow: 0 8px 24px rgba(245,158,11,0.4), inset 0 1px 0 rgba(255,255,255,0.3);
  font-size: 0.82rem;
  line-height: 1.2;
  letter-spacing: -0.005em;
  z-index: 2;
}
@media (min-width: 980px) {
  .hero-badge { bottom: -14px; left: -14px; padding: 0.7rem 1rem; font-size: 0.9rem; transform: rotate(3deg); }
}

/* Section dividers — subtle SVG wave from dark to light */
.section-divider-top {
  position: absolute;
  top: -1px; left: 0; right: 0;
  height: 60px;
  background: var(--white);
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 60' preserveAspectRatio='none'><path d='M0,0 C300,60 900,60 1200,0 L1200,60 L0,60 Z' fill='black'/></svg>") top/100% 100% no-repeat;
          mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 60' preserveAspectRatio='none'><path d='M0,0 C300,60 900,60 1200,0 L1200,60 L0,60 Z' fill='black'/></svg>") top/100% 100% no-repeat;
  pointer-events: none;
  z-index: 1;
}

/* ---------- Page header (interior pages) ---------- */
.page-header {
  background: var(--steel-950);
  color: #fff;
  padding: var(--space-7) 0 var(--space-7);
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.page-header::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 0% 0%, rgba(30, 63, 184, 0.55) 0%, transparent 50%),
    radial-gradient(circle at 100% 100%, rgba(6, 182, 212, 0.3) 0%, transparent 55%),
    linear-gradient(180deg, var(--steel-950) 0%, var(--brand-blue-900) 100%);
  z-index: -1;
}
@media (min-width: 768px) { .page-header { padding: var(--space-9) 0 var(--space-8); } }
.page-header h1 { color: #fff; }
.page-header p { color: rgba(255,255,255,0.85); margin-top: var(--space-3); max-width: 60ch; font-size: 1.05rem; }
.breadcrumb {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.65);
  margin-bottom: var(--space-4);
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.breadcrumb a { color: rgba(255,255,255,0.85); transition: color .15s ease; }
.breadcrumb a:hover { color: var(--cyan-bright); }
.breadcrumb span[aria-current] { color: var(--cyan-bright); }

/* ---------- Cards — premium with subtle glow ---------- */
.card {
  background: #fff;
  border: 1px solid var(--steel-200);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  transition: transform .25s cubic-bezier(.2,.8,.2,1), box-shadow .3s ease, border-color .2s ease;
  position: relative;
  overflow: hidden;
}
.card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, transparent 60%, rgba(30,63,184,0.04) 100%);
  pointer-events: none;
  opacity: 0;
  transition: opacity .3s ease;
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--brand-blue-100);
}
.card:hover::before { opacity: 1; }
.card-icon {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--brand-blue-50) 0%, #fff 100%);
  color: var(--brand-blue);
  border-radius: 14px;
  margin-bottom: var(--space-4);
  box-shadow: inset 0 0 0 1px var(--brand-blue-100), 0 4px 12px rgba(30,63,184,0.08);
  position: relative;
  transition: transform .25s ease;
}
.card:hover .card-icon { transform: scale(1.05) rotate(-3deg); }
.card-icon::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 14px;
  background: linear-gradient(135deg, transparent 50%, rgba(34,211,238,0.15) 100%);
}
.card-icon svg { width: 28px; height: 28px; position: relative; z-index: 1; }
.card h3 { margin-bottom: var(--space-2); }
.card p { font-size: 0.95rem; }
.card-link {
  color: var(--brand-blue);
  font-weight: 600;
  font-size: 0.95rem;
  margin-top: var(--space-4);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  position: relative;
}
.card-link::after { content: "→"; transition: transform .2s ease; }
.card:hover .card-link::after { transform: translateX(4px); }

/* ---------- Feature row ---------- */
.feature-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-7);
  align-items: center;
}
@media (min-width: 980px) {
  .feature-row { grid-template-columns: 1fr 1fr; gap: var(--space-10); }
  .feature-row.reverse > div:first-child { order: 2; }
}
.feature-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/3;
  box-shadow: var(--shadow-xl);
  position: relative;
  isolation: isolate;
}
.feature-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 70%, rgba(30,63,184,0.15) 100%);
  pointer-events: none;
}
@media (min-width: 768px) { .feature-image { border-radius: var(--radius-xl); } }
.feature-image img { width: 100%; height: 100%; object-fit: cover; }
.feature-list { list-style: none; padding: 0; margin-top: var(--space-5); display: grid; gap: var(--space-3); }
.feature-list li {
  position: relative;
  padding-left: 2rem;
  color: var(--steel-700);
  font-size: 0.95rem;
  line-height: 1.65;
}
.feature-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.35rem;
  width: 1.35rem;
  height: 1.35rem;
  background: linear-gradient(135deg, var(--brand-blue), var(--cyan));
  border-radius: 50%;
  box-shadow: 0 2px 6px rgba(30,63,184,0.25);
}
.feature-list li::after {
  content: "";
  position: absolute;
  left: 0.3rem;
  top: 0.65rem;
  width: 0.75rem;
  height: 0.75rem;
  background-color: #fff;
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'><path d='M16.7 5.3a1 1 0 010 1.4l-7.5 7.5a1 1 0 01-1.4 0L3.3 9.7a1 1 0 011.4-1.4L8.5 12l6.8-6.7a1 1 0 011.4 0z'/></svg>") center/contain no-repeat;
          mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'><path d='M16.7 5.3a1 1 0 010 1.4l-7.5 7.5a1 1 0 01-1.4 0L3.3 9.7a1 1 0 011.4-1.4L8.5 12l6.8-6.7a1 1 0 011.4 0z'/></svg>") center/contain no-repeat;
}

/* ---------- Stats — glassmorphic block ---------- */
.stats {
  background: linear-gradient(135deg, var(--steel-50) 0%, #fff 100%);
  border: 1px solid var(--steel-200);
  border-radius: var(--radius-xl);
  padding: var(--space-5);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-5);
  text-align: center;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}
.stats::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--brand-blue), var(--cyan), var(--accent));
}
@media (min-width: 700px) { .stats { grid-template-columns: repeat(4, 1fr); padding: var(--space-7); border-radius: var(--radius-2xl); } }
.stat-num {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 2.5vw + 1rem, 2.75rem);
  font-weight: 700;
  background: linear-gradient(135deg, var(--brand-blue) 0%, var(--cyan) 100%);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  letter-spacing: -0.03em;
  line-height: 1;
}
.stat-label { font-size: 0.825rem; color: var(--steel-600); margin-top: var(--space-2); font-weight: 500; }
@media (min-width: 768px) { .stat-label { font-size: 0.9rem; } }

/* ---------- Gallery ---------- */
.gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2);
}
@media (min-width: 600px) { .gallery { grid-template-columns: repeat(3, 1fr); gap: var(--space-3); } }
@media (min-width: 980px) { .gallery { grid-template-columns: repeat(4, 1fr); gap: var(--space-4); } }
.gallery a {
  position: relative;
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 1/1;
  background: var(--steel-100);
  box-shadow: var(--shadow-sm);
  transition: transform .25s ease, box-shadow .3s ease;
}
@media (min-width: 768px) { .gallery a { border-radius: var(--radius-lg); } }
.gallery a:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.gallery img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .5s ease;
}
.gallery a:hover img { transform: scale(1.08); }
.gallery a::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 70%, rgba(11,18,32,0.5) 100%);
  opacity: 0;
  transition: opacity .25s ease;
}
.gallery a:hover::after { opacity: 1; }

/* ---------- CTA Banner — mesh gradient ---------- */
.cta-banner {
  background: var(--steel-950);
  color: #fff;
  padding: var(--space-7) var(--space-4);
  border-radius: var(--radius-lg);
  text-align: center;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.cta-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 0%, rgba(30, 63, 184, 0.7) 0%, transparent 50%),
    radial-gradient(circle at 80% 100%, rgba(6, 182, 212, 0.5) 0%, transparent 55%),
    radial-gradient(circle at 100% 0%, rgba(245, 158, 11, 0.25) 0%, transparent 40%);
  z-index: -1;
}
@media (min-width: 768px) { .cta-banner { padding: var(--space-8) var(--space-7); border-radius: var(--radius-2xl); } }
.cta-banner h2 { color: #fff; max-width: 28ch; margin: 0 auto var(--space-3); }
.cta-banner p { color: rgba(255,255,255,0.85); max-width: 50ch; margin: 0 auto var(--space-5); font-size: 1.05rem; }
.cta-banner .btn { margin: 0.25rem; }

/* ---------- Forms ---------- */
.form { display: grid; gap: var(--space-4); }
.form-row { display: grid; grid-template-columns: 1fr; gap: var(--space-4); }
@media (min-width: 600px) { .form-row { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: 0.45rem; }
.field label { font-size: 0.875rem; font-weight: 600; color: var(--steel-800); }
.field label .req { color: var(--danger); margin-left: 0.15rem; }
.field input, .field select, .field textarea {
  background: #fff;
  border: 1.5px solid var(--steel-200);
  border-radius: var(--radius);
  padding: 0.9rem 1rem;
  font-size: 16px;
  width: 100%;
  transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
  min-height: 50px;
  font-family: var(--font-sans);
  color: var(--steel-900);
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--steel-300); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--brand-blue);
  box-shadow: 0 0 0 4px rgba(30, 63, 184, 0.12);
}
.field .hint { font-size: 0.8rem; color: var(--steel-500); }
.form-note {
  background: var(--brand-blue-50);
  border: 1px solid var(--brand-blue-100);
  border-left: 3px solid var(--brand-blue);
  border-radius: var(--radius);
  padding: 0.95rem 1rem;
  font-size: 0.875rem;
  color: var(--steel-700);
}
.form-status {
  padding: 0.95rem 1.1rem;
  border-radius: var(--radius);
  font-size: 0.95rem;
  display: none;
  font-weight: 500;
}
.form-status.success { background: #DCFCE7; color: #166534; border: 1px solid #86EFAC; display: block; }
.form-status.error { background: #FEE2E2; color: #991B1B; border: 1px solid #FCA5A5; display: block; }

/* ---------- Contact info ---------- */
.contact-grid { display: grid; gap: var(--space-7); grid-template-columns: 1fr; }
@media (min-width: 980px) { .contact-grid { grid-template-columns: 1.2fr 1fr; gap: var(--space-9); } }
.info-card {
  background: linear-gradient(135deg, var(--steel-50) 0%, #fff 100%);
  border: 1px solid var(--steel-200);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  display: grid;
  gap: var(--space-4);
  box-shadow: var(--shadow-sm);
}
.info-row {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: var(--space-3);
  align-items: start;
}
.info-row .icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--brand-blue), var(--brand-blue-700));
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 4px 12px rgba(30,63,184,0.25);
}
.info-row .icon svg { width: 20px; height: 20px; }
.info-row strong { color: var(--steel-900); font-weight: 600; display: block; margin-bottom: 0.1rem; }
.info-row a { color: var(--brand-blue); font-weight: 500; word-break: break-word; }
.info-row a:hover { text-decoration: underline; }

/* ---------- Process steps ---------- */
.steps {
  display: grid;
  gap: var(--space-6);
  grid-template-columns: 1fr;
  counter-reset: step;
}
@media (min-width: 600px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .steps { grid-template-columns: repeat(4, 1fr); gap: var(--space-5); } }
.step {
  position: relative;
  padding: var(--space-5);
  border-radius: var(--radius-lg);
  background: #fff;
  border: 1px solid var(--steel-200);
  counter-increment: step;
  box-shadow: var(--shadow-sm);
  transition: transform .25s ease, box-shadow .3s ease;
}
.step:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.step::before {
  content: counter(step, decimal-leading-zero);
  position: absolute;
  top: -18px;
  left: var(--space-5);
  background: linear-gradient(135deg, var(--brand-blue), var(--brand-blue-700));
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.85rem;
  padding: 0.45rem 0.7rem;
  border-radius: var(--radius);
  letter-spacing: 0.06em;
  box-shadow: 0 6px 14px rgba(30,63,184,0.3);
}
.step h4 { margin-bottom: var(--space-2); margin-top: var(--space-3); font-size: 1.0625rem; }
.step p { font-size: 0.92rem; }

/* ---------- Prose ---------- */
.prose { max-width: var(--container-narrow); margin: 0 auto; }
.prose h2 { margin-top: var(--space-7); margin-bottom: var(--space-3); }
.prose h3 { margin-top: var(--space-5); margin-bottom: var(--space-2); }
.prose p, .prose ul, .prose ol { margin-bottom: var(--space-4); }
.prose ul, .prose ol { padding-left: 1.5rem; color: var(--steel-600); }
.prose li { margin-bottom: var(--space-2); }
.prose strong { color: var(--steel-900); }
.prose a { color: var(--brand-blue); text-decoration: underline; text-decoration-color: rgba(30,63,184,0.3); text-underline-offset: 3px; transition: text-decoration-color .15s ease; }
.prose a:hover { text-decoration-color: var(--brand-blue); }
.prose-meta { color: var(--steel-500); font-size: 0.9rem; margin-bottom: var(--space-5); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--steel-950);
  color: var(--steel-300);
  padding: var(--space-8) 0 var(--space-5);
  margin-top: var(--space-9);
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.site-footer::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--brand-blue), var(--cyan), var(--brand-blue), transparent);
}
.site-footer::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 0% 0%, rgba(30,63,184,0.18) 0%, transparent 50%);
  z-index: -1;
}
@media (min-width: 768px) { .site-footer { padding: var(--space-9) 0 var(--space-5); margin-top: var(--space-10); } }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: var(--space-6); }
@media (min-width: 600px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 980px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; } }
.site-footer h4 { color: #fff; font-family: var(--font-sans); font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: var(--space-4); }
.site-footer ul { list-style: none; padding: 0; display: grid; gap: var(--space-2); }
.site-footer a { color: var(--steel-300); font-size: 0.95rem; transition: color .15s ease; }
.site-footer a:hover { color: var(--cyan-bright); }
.site-footer .brand { color: #fff; margin-bottom: var(--space-3); }
.site-footer .brand-text { white-space: normal; }
.site-footer .brand-text small { color: var(--steel-400); }
.footer-about { color: var(--steel-400); font-size: 0.92rem; max-width: 36ch; line-height: 1.65; }
.footer-bottom {
  border-top: 1px solid var(--steel-800);
  margin-top: var(--space-7);
  padding-top: var(--space-5);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: var(--steel-400);
  text-align: center;
}
@media (min-width: 600px) { .footer-bottom { flex-direction: row; text-align: left; } }
.footer-bottom .links { display: flex; gap: var(--space-4); flex-wrap: wrap; justify-content: center; }

/* ---------- A11y & utility ---------- */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute;
  left: var(--space-4);
  top: -3rem;
  background: var(--brand-blue);
  color: #fff;
  padding: 0.65rem 1rem;
  border-radius: var(--radius);
  z-index: 1000;
  transition: top .2s ease;
  font-weight: 600;
}
.skip-link:focus { top: var(--space-3); }

/* Scroll reveal — polished */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s cubic-bezier(.2,.8,.2,1), transform .7s cubic-bezier(.2,.8,.2,1);
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: .08s; }
.reveal-delay-2 { transition-delay: .16s; }
.reveal-delay-3 { transition-delay: .24s; }

/* Stagger children automatically */
.stagger > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .6s cubic-bezier(.2,.8,.2,1), transform .6s cubic-bezier(.2,.8,.2,1);
}
.stagger.is-visible > * { opacity: 1; transform: translateY(0); }
.stagger.is-visible > *:nth-child(1) { transition-delay: 0s; }
.stagger.is-visible > *:nth-child(2) { transition-delay: .08s; }
.stagger.is-visible > *:nth-child(3) { transition-delay: .16s; }
.stagger.is-visible > *:nth-child(4) { transition-delay: .24s; }
.stagger.is-visible > *:nth-child(5) { transition-delay: .32s; }
.stagger.is-visible > *:nth-child(6) { transition-delay: .40s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
  .reveal, .stagger > * { opacity: 1 !important; transform: none !important; }
}

/* Lightbox */
.lightbox {
  position: fixed; inset: 0;
  background: rgba(5, 9, 20, 0.95);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: none;
  place-items: center;
  padding: var(--space-5);
  z-index: 200;
}
.lightbox[data-open="true"] { display: grid; }
.lightbox img { max-width: 100%; max-height: 90vh; border-radius: var(--radius-lg); box-shadow: 0 40px 80px rgba(0,0,0,0.5); }
.lightbox-close {
  position: absolute; top: var(--space-4); right: var(--space-4);
  background: rgba(255,255,255,0.15); color: #fff;
  width: 48px; height: 48px; border-radius: 50%;
  display: grid; place-items: center;
  font-size: 1.5rem;
  backdrop-filter: blur(8px);
  transition: background .2s ease, transform .2s ease;
}
.lightbox-close:hover { background: rgba(255,255,255,0.3); transform: rotate(90deg); }

body.no-scroll { overflow: hidden; }

/* Floating call button on mobile */
.float-call {
  position: fixed;
  bottom: var(--space-4);
  right: var(--space-4);
  width: 56px; height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-600) 100%);
  color: var(--steel-950);
  display: grid;
  place-items: center;
  box-shadow: 0 12px 32px rgba(245,158,11,0.5), 0 0 0 0 rgba(245,158,11,0.4);
  z-index: 90;
  animation: pulse-ring 2.5s ease-out infinite;
  transition: transform .2s ease;
}
.float-call:hover { transform: scale(1.08); }
.float-call svg { width: 24px; height: 24px; }
@keyframes pulse-ring {
  0%   { box-shadow: 0 12px 32px rgba(245,158,11,0.5), 0 0 0 0 rgba(245,158,11,0.4); }
  70%  { box-shadow: 0 12px 32px rgba(245,158,11,0.5), 0 0 0 16px rgba(245,158,11,0); }
  100% { box-shadow: 0 12px 32px rgba(245,158,11,0.5), 0 0 0 0 rgba(245,158,11,0); }
}
@media (min-width: 980px) { .float-call { display: none; } }

/* Print */
@media print {
  .site-header, .site-footer, .mobile-drawer, .hero-cta, .cta-banner, .float-call, .scroll-progress { display: none !important; }
  body { color: #000; background: #fff; }
}
