/* ================================================================
   AMERICAN COMMERCIAL GLASS — Figma-Style Design System v3
   Clean. Premium. World-Class.
   ================================================================ */

/* --- Design Tokens --- */
:root {
  /* Primary Palette — USA Patriotic Brand Colors */
  --navy-950: #040A16;
  --navy-900: #081428;
  --navy-800: #0B1D3A;
  --navy-700: #0e284f;
  --navy-600: #163566;
  --navy-500: #1F4A8A;
  --navy-400: #2E6AB8;
  --navy-300: #5A92D8;
  --navy-200: #8BB5E8;
  --navy-100: #C5D9F2;
  --navy-50: #EBF1FA;

  --red-700: #A10F1A;
  --red-600: #e11320;
  --red-500: #EF2D38;
  --red-400: #F45A63;
  --red-300: #F8949A;
  --red-200: #FCCACD;
  --red-50: #FFF1F2;

  --white: #FFFFFF;
  --off-white: #FAFBFC;
  --gray-25: #F7F8FA;
  --gray-50: #F1F3F8;
  --gray-100: #E4E8F0;
  --gray-200: #CDD3E0;
  --gray-300: #A8B2C8;
  --gray-400: #7E8BA6;
  --gray-500: #5E6B84;
  --gray-600: #434E64;
  --gray-700: #2A3244;
  --gray-800: #1A2030;
  --gray-900: #111827;

  /* Semantic Colors */
  --bg-primary: var(--white);
  --bg-secondary: var(--gray-25);
  --bg-tertiary: var(--gray-50);
  --bg-dark: var(--navy-800);
  --bg-darker: var(--navy-950);
  --bg-navy: var(--navy-700);
  --text-primary: var(--gray-900);
  --text-secondary: var(--gray-500);
  --text-tertiary: var(--gray-400);
  --text-on-dark: var(--white);
  --text-on-dark-muted: rgba(255,255,255,0.7);
  --accent: var(--red-600);
  --accent-hover: var(--red-700);
  --accent-light: var(--red-50);
  --border-light: rgba(0,0,0,0.06);
  --border-medium: rgba(0,0,0,0.1);

  /* Typography */
  --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 1.875rem;
  --text-4xl: 2.25rem;
  --text-5xl: 3rem;
  --text-6xl: 3.75rem;
  --text-7xl: 4.5rem;
  --text-8xl: 6rem;

  /* Spacing */
  --section-pad: 120px;
  --container-max: 1280px;
  --container-narrow: 880px;
  --container-wide: 1440px;

  /* Transitions */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: 150ms var(--ease-in-out);
  --transition-base: 300ms var(--ease-out);
  --transition-slow: 500ms var(--ease-out);
  --transition-spring: 800ms var(--ease-out);

  /* Shadows — Figma-style layered */
  --shadow-xs: 0 1px 2px rgba(0,0,0,0.04);
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.06), 0 2px 4px -2px rgba(0,0,0,0.04);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.06), 0 4px 6px -4px rgba(0,0,0,0.04);
  --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.06), 0 8px 10px -6px rgba(0,0,0,0.04);
  --shadow-2xl: 0 25px 50px -12px rgba(0,0,0,0.12);
  --shadow-glow-red: 0 0 0 1px rgba(225,19,32,0.1), 0 8px 24px rgba(225,19,32,0.12);
  --shadow-card-hover: 0 20px 40px -12px rgba(0,0,0,0.1), 0 0 0 1px rgba(0,0,0,0.03);

  /* Radii */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-2xl: 32px;
  --radius-full: 9999px;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  font-family: var(--font-primary);
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--bg-primary);
  overflow-x: hidden;
  opacity: 0;
  transition: opacity 0.4s ease;
}

/* Patriotic accent bar — top of page */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--navy-700) 0%, var(--navy-700) 33%, var(--red-600) 33%, var(--red-600) 67%, var(--navy-700) 67%, var(--navy-700) 100%);
  z-index: 10000;
}

body.loaded { opacity: 1; }

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: color var(--transition-fast); }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

/* --- Utility --- */
.container { width: 100%; max-width: var(--container-max); margin: 0 auto; padding: 0 32px; }
.container--narrow { max-width: var(--container-narrow); }
.container--wide { max-width: var(--container-wide); }

.section { padding: var(--section-pad) 0; position: relative; }
.section--light { background: var(--bg-secondary); }
.section--dark { background: var(--bg-dark); color: var(--text-on-dark); }
.section--darker { background: var(--bg-darker); color: var(--text-on-dark); }
.section--accent-bg { background: var(--navy-700); color: var(--white); }

.text-center { text-align: center; }
.text-center .section-subtitle { margin-left: auto; margin-right: auto; }

/* --- Section Labels --- */
.label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.label::before {
  content: '';
  width: 32px;
  height: 1.5px;
  background: var(--accent);
  border-radius: 2px;
}

.section--dark .label,
.section--darker .label { color: var(--red-400); }

.section-title {
  font-size: clamp(2rem, 4vw, var(--text-5xl));
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
  color: var(--text-primary);
}

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

.section-subtitle {
  font-size: clamp(1rem, 1.2vw, var(--text-lg));
  line-height: 1.7;
  color: var(--text-secondary);
  max-width: 560px;
}

.section--dark .section-subtitle,
.section--darker .section-subtitle { color: var(--text-on-dark-muted); }

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.01em;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  transition: all var(--transition-base);
  white-space: nowrap;
  border: 1px solid transparent;
  cursor: pointer;
}

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

.btn--primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow-red);
}

.btn--secondary {
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.25);
}

.btn--secondary:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.4);
  transform: translateY(-2px);
}

.btn--outline {
  border: 1.5px solid var(--border-medium);
  color: var(--text-primary);
  background: transparent;
}

.btn--outline:hover {
  background: var(--navy-700);
  color: var(--white);
  border-color: var(--navy-700);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn--dark {
  background: var(--navy-700);
  color: var(--white);
  border-color: var(--navy-700);
}

.btn--dark:hover {
  background: var(--navy-800);
  transform: translateY(-2px);
  box-shadow: var(--shadow-xl);
}

.btn--lg { font-size: var(--text-base); padding: 18px 40px; border-radius: var(--radius-md); }

.btn svg { transition: transform var(--transition-fast); }
.btn:hover svg { transform: translateX(3px); }

/* ================================================================
   HEADER
   ================================================================ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 80px;
  z-index: 1000;
  transition: all var(--transition-base);
}

.site-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  transition: all var(--transition-base);
  z-index: -1;
  border-bottom: 1px solid transparent;
}

.site-header.scrolled::before {
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(12px) saturate(180%);
  -webkit-backdrop-filter: blur(12px) saturate(180%);
  border-bottom: 1px solid var(--border-light);
}

/* Disable heavy backdrop-filter on mobile to prevent rendering blur */
@media (max-width: 768px) {
  .site-header.scrolled::before {
    background: rgba(255,255,255,0.98);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
  padding: 0 32px;
  max-width: var(--container-max);
  margin: 0 auto;
  transition: height var(--transition-base);
}

.site-header.scrolled .header-inner { height: 64px; }

.header-logo img {
  height: 36px;
  transition: all var(--transition-base);
}

.site-header.scrolled .header-logo img { height: 28px; }

/* Scrolled state: invert logo to navy */
.site-header.scrolled .header-logo img {
  filter: brightness(0) saturate(100%) invert(12%) sepia(57%) saturate(1636%) hue-rotate(198deg) brightness(93%) contrast(101%);
}

.header-nav { display: flex; align-items: center; gap: 36px; }

.header-nav a {
  color: var(--white);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.01em;
  position: relative;
  transition: color var(--transition-base), opacity var(--transition-base);
}

.site-header.scrolled .header-nav a { color: var(--gray-600); }
.site-header.scrolled .header-nav a:hover { color: var(--navy-700); }

.header-nav a::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 0;
  height: 1.5px;
  background: currentColor;
  transition: width var(--transition-base);
  border-radius: 2px;
}

.header-nav a:hover::after { width: 100%; }

.header-nav .header-cta {
  background: var(--accent);
  color: var(--white) !important;
  padding: 10px 24px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  transition: all var(--transition-base);
}

.header-nav .header-cta::after { display: none; }

.header-nav .header-cta:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: var(--shadow-glow-red);
}

/* --- Mobile Navigation --- */
.mobile-toggle { display: none; flex-direction: column; gap: 5px; padding: 8px; }
.mobile-toggle span { display: block; width: 20px; height: 1.5px; background: var(--white); border-radius: 2px; transition: all var(--transition-base); }
.site-header.scrolled .mobile-toggle span { background: var(--navy-700); }

.mobile-nav {
  position: fixed;
  top: 0;
  right: -100%;
  width: 100%;
  height: 100dvh;
  background: var(--white);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
  transition: right 400ms var(--ease-out);
  z-index: 9999;
  padding: 40px 24px;
}

.mobile-nav.active { right: 0; }

.mobile-nav a {
  color: var(--navy-700);
  font-size: var(--text-xl);
  font-weight: 600;
  opacity: 0;
  transform: translateY(20px);
}

.mobile-nav.active a {
  animation: slideInNav 500ms var(--ease-out) forwards;
}

.mobile-nav a:nth-child(2) { animation-delay: 60ms; }
.mobile-nav a:nth-child(3) { animation-delay: 120ms; }
.mobile-nav a:nth-child(4) { animation-delay: 180ms; }
.mobile-nav a:nth-child(5) { animation-delay: 240ms; }
.mobile-nav a:nth-child(6) { animation-delay: 300ms; }

.mobile-nav .mobile-cta {
  margin-top: 24px;
  background: var(--accent);
  color: var(--white);
  padding: 16px 40px;
  border-radius: var(--radius-sm);
  font-weight: 600;
}

.mobile-close {
  position: absolute;
  top: 24px;
  right: 24px;
  color: var(--gray-400);
  font-size: 28px;
  cursor: pointer;
  transition: color var(--transition-fast);
  line-height: 1;
}

.mobile-close:hover { color: var(--navy-700); }

.mobile-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.3);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-base);
  z-index: 9998;
  backdrop-filter: blur(4px);
}

.mobile-overlay.active { opacity: 1; pointer-events: auto; }

@keyframes slideInNav {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ================================================================
   HERO
   ================================================================ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  background-color: var(--navy-900);
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.05);
  transition: transform 8s ease;
}

body.loaded .hero-bg img {
  transform: scale(1);
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(14,40,79,0.65) 0%,
    rgba(14,40,79,0.35) 40%,
    rgba(14,40,79,0.7) 100%
  );
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  color: var(--white);
  max-width: 860px;
  padding: 0 32px;
}

.hero-label {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.8);
  margin-bottom: 24px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  opacity: 0;
  transform: translateY(24px);
  animation: heroFadeUp 1s var(--ease-out) 0.2s forwards;
}

.hero-label::before {
  content: '';
  width: 28px;
  height: 2px;
  background: var(--red-600);
}

.hero h1 {
  font-size: clamp(2.75rem, 7vw, 5rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.035em;
  margin-bottom: 28px;
  opacity: 0;
  transform: translateY(30px);
  animation: heroFadeUp 1s var(--ease-out) 0.35s forwards;
}

.hero-sub {
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  line-height: 1.7;
  color: rgba(255,255,255,0.8);
  max-width: 620px;
  margin: 0 auto 44px;
  font-weight: 400;
  opacity: 0;
  transform: translateY(24px);
  animation: heroFadeUp 1s var(--ease-out) 0.5s forwards;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  opacity: 0;
  transform: translateY(24px);
  animation: heroFadeUp 1s var(--ease-out) 0.65s forwards;
}

.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 72px;
  margin-top: 72px;
  opacity: 0;
  transform: translateY(24px);
  animation: heroFadeUp 1s var(--ease-out) 0.8s forwards;
}

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

.hero-stat-number {
  font-size: 2.75rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}

.hero-stat-label {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
}

/* Scroll indicator */
.hero::after {
  content: '';
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.5), transparent);
  animation: scrollPulse 2.5s ease-in-out infinite;
}

@keyframes heroFadeUp {
  to { opacity: 1; transform: translateY(0); }
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; height: 48px; }
  50% { opacity: 0.8; height: 56px; }
}

/* ================================================================
   TRUST BAR
   ================================================================ */
.trust-bar {
  background: var(--white);
  border-bottom: 1px solid var(--border-light);
  padding: 36px 0;
}

.trust-bar-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 56px;
  flex-wrap: wrap;
}

.trust-name {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gray-300);
  transition: color var(--transition-base);
}

.trust-name:hover { color: var(--gray-500); }

/* ================================================================
   SERVICES
   ================================================================ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 64px;
}

.service-card {
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 40px 36px;
  position: relative;
  overflow: hidden;
  transition: all var(--transition-base);
}

.service-card:hover {
  border-color: transparent;
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-4px);
}

.service-card-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-light);
  border-radius: var(--radius-md);
  margin-bottom: 24px;
  color: var(--accent);
  transition: all var(--transition-base);
}

.service-card-icon svg {
  width: 22px;
  height: 22px;
  stroke: var(--accent);
}

.service-card:hover .service-card-icon {
  background: var(--accent);
  color: var(--white);
}

.service-card:hover .service-card-icon svg {
  stroke: var(--white);
}

.service-card h3 {
  font-size: var(--text-lg);
  font-weight: 650;
  line-height: 1.3;
  margin-bottom: 12px;
  color: var(--navy-700);
}

.service-card p {
  font-size: var(--text-sm);
  line-height: 1.65;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

.service-card-link {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--navy-700);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all var(--transition-base);
}

.service-card-link svg {
  width: 14px;
  height: 14px;
  transition: transform var(--transition-fast);
}

.service-card:hover .service-card-link { color: var(--accent); }
.service-card:hover .service-card-link svg { transform: translateX(4px); stroke: var(--accent); }

/* Dark variant card (Supply/Install) */
.service-card--dark {
  background: var(--navy-700);
  border-color: var(--navy-700);
  color: var(--white);
}

.service-card--dark h3 { color: var(--white); }
.service-card--dark p { color: rgba(255,255,255,0.65); }
.service-card--dark .service-card-icon { background: rgba(255,255,255,0.1); }
.service-card--dark .service-card-icon svg { stroke: var(--white); }
.service-card--dark .service-card-link { color: rgba(255,255,255,0.8); }

.service-card--dark:hover {
  background: var(--navy-800);
  border-color: var(--navy-800);
  box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

.service-card--dark:hover .service-card-link { color: var(--red-300); }

/* ================================================================
   WHY ACG
   ================================================================ */
.diff-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 64px;
}

.diff-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-lg);
  padding: 44px 40px;
  transition: all var(--transition-base);
}

.diff-card:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.15);
  transform: translateY(-4px);
}

.diff-card-number {
  font-size: 14px;
  font-weight: 700;
  color: var(--red-400);
  letter-spacing: 0.04em;
  margin-bottom: 20px;
  font-variant-numeric: tabular-nums;
}

.diff-card h3 {
  font-size: var(--text-xl);
  font-weight: 650;
  line-height: 1.3;
  margin-bottom: 14px;
  color: var(--white);
}

.diff-card p {
  font-size: var(--text-sm);
  line-height: 1.7;
  color: var(--text-on-dark-muted);
}

.diff-card--full {
  grid-column: 1 / -1;
}

/* ================================================================
   PROJECTS
   ================================================================ */
.projects-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 16px;
  margin-top: 64px;
}

.project-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  cursor: pointer;
  min-height: 280px;
}

.project-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 600ms var(--ease-out);
}

.project-card:hover img { transform: scale(1.05); }

.project-card--large {
  grid-row: span 2;
}

.project-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(14,40,79,0.85) 100%);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  padding: 32px;
  transition: background var(--transition-base);
  z-index: 2;
}

.project-card:hover .project-card-overlay {
  background: linear-gradient(180deg, transparent 20%, rgba(14,40,79,0.92) 100%);
}

.project-card-type {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--red-400);
  margin-bottom: 10px;
}

.project-card h3 {
  font-size: clamp(1.125rem, 2vw, 1.5rem);
  font-weight: 650;
  color: var(--white);
  line-height: 1.2;
  margin-bottom: 6px;
}

.project-card-location {
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.65);
}

/* ================================================================
   PROCESS / TECHNOLOGY
   ================================================================ */
.tech-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  margin-bottom: 120px;
}

.tech-visual {
  background: var(--gray-50);
  border-radius: var(--radius-xl);
  aspect-ratio: 5/4;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border-light);
}

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

.tech-icon-row {
  display: flex;
  gap: 14px;
}

.tech-icon-box {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  background: var(--white);
  border: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
}

.tech-icon-box--accent {
  background: var(--accent-light);
  border-color: var(--red-200);
}

.tech-icon-box svg {
  width: 22px;
  height: 22px;
  stroke: var(--gray-400);
}

.tech-icon-box--accent svg {
  stroke: var(--accent);
}

.tech-label {
  font-size: 10px;
  font-weight: 600;
  color: var(--gray-300);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.tech-text p {
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 16px;
  font-size: var(--text-base);
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 24px;
  margin-top: 64px;
}

.process-step {
  text-align: center;
  position: relative;
}

.process-step-number {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 16px;
  font-weight: 700;
  color: var(--white);
  background: var(--navy-700);
  border-radius: var(--radius-full);
  transition: all var(--transition-base);
}

.process-step:hover .process-step-number {
  background: var(--accent);
  transform: scale(1.1);
}

.process-step h4 {
  font-size: var(--text-base);
  font-weight: 650;
  margin-bottom: 10px;
}

.process-step p {
  font-size: var(--text-sm);
  line-height: 1.6;
  color: var(--text-secondary);
}

/* Connector line between steps */
.process-step:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 24px;
  left: calc(50% + 32px);
  width: calc(100% - 64px);
  height: 1px;
  background: var(--gray-200);
}

/* ================================================================
   MANUFACTURERS
   ================================================================ */
.mfg-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
  margin-top: 64px;
}

.mfg-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-lg);
  padding: 36px 24px;
  text-align: center;
  transition: all var(--transition-base);
}

.mfg-card:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.15);
  transform: translateY(-4px);
}

.mfg-card h4 {
  font-size: var(--text-base);
  font-weight: 650;
  margin-bottom: 10px;
  color: var(--white);
}

.mfg-card p {
  font-size: var(--text-xs);
  line-height: 1.6;
  color: var(--text-on-dark-muted);
}

/* ================================================================
   CTA BLOCK
   ================================================================ */
.cta-block {
  text-align: center;
  padding: 100px 40px;
  position: relative;
  overflow: hidden;
}

.cta-block > * { position: relative; z-index: 1; }

.cta-block h2 {
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
}

.cta-block p {
  font-size: var(--text-lg);
  line-height: 1.7;
  margin-bottom: 36px;
  color: var(--text-on-dark-muted);
}

.cta-block-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ================================================================
   FOOTER
   ================================================================ */
.site-footer {
  background: var(--navy-700);
  color: var(--text-on-dark);
  border-top: 3px solid var(--red-600);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 56px;
  padding: 80px 0 48px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-brand { display: flex; flex-direction: column; }

.footer-brand-logo {
  height: 28px;
  margin-bottom: 20px;
  opacity: 0.9;
}

.footer-brand p {
  font-size: var(--text-sm);
  line-height: 1.7;
  color: var(--text-on-dark-muted);
  max-width: 320px;
}

.footer-contact {
  margin-top: 24px;
}

.footer-contact a {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: var(--text-sm);
  color: var(--text-on-dark-muted);
  margin-bottom: 10px;
  transition: color var(--transition-fast);
}

.footer-contact a:hover { color: var(--white); }
.footer-contact a svg { opacity: 0.5; flex-shrink: 0; }

.footer-col h4 {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 24px;
  color: var(--white);
}

.footer-col a {
  display: block;
  font-size: var(--text-sm);
  color: var(--text-on-dark-muted);
  margin-bottom: 14px;
  transition: all var(--transition-fast);
}

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

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
  padding: 28px 0;
  font-size: var(--text-sm);
  color: var(--text-on-dark-muted);
}

.footer-bottom-links { display: flex; gap: 28px; }

.footer-bottom-links a {
  font-size: var(--text-sm);
  color: var(--text-on-dark-muted);
  transition: color var(--transition-fast);
}

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

/* ================================================================
   PAGE HERO (Inner Pages)
   ================================================================ */
.page-hero {
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: linear-gradient(135deg, var(--navy-800) 0%, var(--navy-700) 50%, var(--navy-800) 100%);
  position: relative;
  overflow: hidden;
  padding: 120px 40px 80px;
  border-bottom: 3px solid var(--red-600);
}

.page-hero > * { position: relative; z-index: 1; }

.page-hero .label { color: var(--red-400); margin-bottom: 20px; }

.page-hero h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--white);
  margin-bottom: 20px;
}

.page-hero p {
  font-size: clamp(1rem, 1.2vw, 1.15rem);
  color: var(--text-on-dark-muted);
  max-width: 540px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ================================================================
   PORTFOLIO PAGE
   ================================================================ */
.portfolio-filters {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  margin: 56px 0;
}

.filter-btn {
  padding: 10px 22px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-medium);
  background: var(--white);
  color: var(--text-secondary);
  font-size: var(--text-sm);
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition-base);
}

.filter-btn.active,
.filter-btn:hover {
  background: var(--navy-700);
  border-color: var(--navy-700);
  color: var(--white);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

.portfolio-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  aspect-ratio: 1;
  cursor: pointer;
}

.portfolio-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 600ms var(--ease-out);
}

.portfolio-card:hover img { transform: scale(1.06); }

.portfolio-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,0.7) 100%);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  padding: 28px;
  transition: background var(--transition-base);
  z-index: 2;
}

.portfolio-card:hover .portfolio-card-overlay {
  background: linear-gradient(180deg, transparent 10%, rgba(0,0,0,0.85) 100%);
}

.portfolio-card h3 {
  font-size: 1.2rem;
  font-weight: 650;
  color: var(--white);
  margin-bottom: 6px;
}

.portfolio-card-meta {
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.7);
}

/* ================================================================
   FORMS
   ================================================================ */
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 40px;
}

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

.form-label {
  font-size: var(--text-sm);
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.form-input,
.form-select,
.form-textarea {
  padding: 12px 16px;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-sm);
  background: var(--white);
  font-family: inherit;
  font-size: var(--text-sm);
  color: var(--text-primary);
  transition: all var(--transition-base);
  outline: none;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--navy-700);
  box-shadow: 0 0 0 3px rgba(14,40,79,0.08);
}

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

.file-upload {
  border: 1.5px dashed var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 48px 24px;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition-base);
  background: var(--gray-25);
}

.file-upload:hover {
  border-color: var(--gray-400);
  background: var(--gray-50);
}

.file-upload-icon { font-size: 28px; margin-bottom: 12px; }
.file-upload-text { font-size: var(--text-sm); color: var(--text-secondary); }

/* ================================================================
   SCROLL REVEAL
   ================================================================ */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 700ms var(--ease-out), transform 700ms var(--ease-out);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 80ms; }
.reveal-delay-2 { transition-delay: 160ms; }
.reveal-delay-3 { transition-delay: 240ms; }
.reveal-delay-4 { transition-delay: 320ms; }
.reveal-delay-5 { transition-delay: 400ms; }

/* ================================================================
   RESPONSIVE
   ================================================================ */
@media (max-width: 1280px) {
  .mfg-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 1024px) {
  :root { --section-pad: 88px; }

  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .diff-grid { grid-template-columns: 1fr; }
  .projects-grid { grid-template-columns: 1fr 1fr; }
  .project-card--large { grid-row: span 1; }
  .process-grid { grid-template-columns: repeat(3, 1fr); }
  .process-step:not(:last-child)::after { display: none; }
  .mfg-grid { grid-template-columns: repeat(3, 1fr); }
  .tech-split { grid-template-columns: 1fr; gap: 48px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero-stats { gap: 48px; }
}

@media (max-width: 768px) {
  :root { --section-pad: 64px; }

  .container { padding: 0 20px; }
  .header-nav { display: none; }
  .mobile-toggle { display: flex; }
  .header-inner { padding: 0 20px; }

  .services-grid { grid-template-columns: 1fr; }
  .diff-grid { grid-template-columns: 1fr; }
  .projects-grid { grid-template-columns: 1fr; gap: 12px; }
  .project-card--large { grid-row: span 1; }
  .process-grid { grid-template-columns: 1fr; gap: 32px; }
  .mfg-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 40px; }

  .hero-stats { flex-direction: column; gap: 28px; }
  .hero-actions { flex-direction: column; gap: 12px; }
  .hero-actions .btn { width: 100%; }

  /* Disable hero image scale on mobile to prevent blur */
  .hero-bg img { transform: none !important; }
  body.loaded .hero-bg img { transform: none !important; }

  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .form-grid { grid-template-columns: 1fr; }

  .cta-block { padding: 72px 24px; }
  .portfolio-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  :root { --section-pad: 48px; }

  .container { padding: 0 16px; }
  .header-inner { padding: 0 16px; }
  .hero-stat-number { font-size: 2.25rem; }
  .mfg-grid { grid-template-columns: 1fr; }

  .service-card, .diff-card { padding: 28px 24px; }
  .cta-block { padding: 56px 20px; }
  .cta-block-actions { flex-direction: column; }
  .cta-block .btn { width: 100%; }
  .page-hero { padding: 100px 20px 60px; }
}

/* ================================================================
   PRINT & ACCESSIBILITY
   ================================================================ */
@media print {
  .site-header, .mobile-toggle, .hero::after, .cta-block-actions { display: none; }
  .section { page-break-inside: avoid; }
  body { background: var(--white); }
}

@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;
  }
  body { opacity: 1; }
  .reveal { opacity: 1; transform: none; }
}
