/* ==========================================================================
   MECZONETTS ENGINEERING SERVICES NIG. LTD.
   "Sharp Blue" Premium Design System — Core Stylesheet
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. DESIGN TOKENS & CSS CUSTOM PROPERTIES
   -------------------------------------------------------------------------- */
:root {
  /* Day Surface Colors */
  --white:        #FFFFFF;
  --surface:      #F6F7FA;
  --surface-alt:  #EEF0F5;

  /* Graphite Scale */
  --graphite-950: #0B0D12;
  --graphite-800: #1D2129;
  --graphite-600: #4B5160;
  --graphite-500: #6B7280;
  --graphite-400: #9AA1AC;
  --graphite-300: #C7CBD3;
  --graphite-200: #E3E5EA;
  --graphite-100: #EEF0F3;

  /* Night Colors (Void Inverted Sections) */
  --void:         #000000;
  --void-raised:  #101114;
  --on-void:      #FFFFFF;
  --on-void-dim:  #A8ADB8;
  --on-void-line: rgba(255, 255, 255, 0.14);

  /* Signal Blue Primary Brand Colors */
  --blue-700:     #0018B8;
  --blue-600:     #1730F2;
  --blue-500:     #3450FF;
  --blue-tint-2:  #E7EAFE;
  --blue-tint-1:  #F3F5FF;
  --on-blue:      #FFFFFF;

  /* Safety Amber & Semantic Tokens */
  --amber-600:    #C97A1F;
  --amber-tint:   #FBF0DF;
  --success:      #1F8A57;
  --success-tint: #E8F5EE;
  --focus-ring:   #1730F2;

  /* Typography */
  --font-display: "Space Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-body:    "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono:    "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;

  /* Type Scale */
  --text-hero:    clamp(2.5rem, 5.2vw, 4.75rem);
  --text-h1:      clamp(2rem, 3.8vw, 3.25rem);
  --text-h2:      clamp(1.65rem, 2.6vw, 2.5rem);
  --text-h3:      clamp(1.2rem, 1.6vw, 1.45rem);
  --text-lead:    clamp(1.05rem, 1.3vw, 1.25rem);
  --text-body:    1.0625rem;
  --text-small:   0.9375rem;
  --text-micro:   0.75rem;

  /* Spacing Scale (8px base) */
  --space-1:  0.25rem;  /* 4px */
  --space-2:  0.5rem;   /* 8px */
  --space-3:  0.75rem;  /* 12px */
  --space-4:  1rem;     /* 16px */
  --space-6:  1.5rem;   /* 24px */
  --space-8:  2rem;     /* 32px */
  --space-12: 3rem;     /* 48px */
  --space-16: 4rem;     /* 64px */
  --space-24: 6rem;     /* 96px */
  --space-32: 8rem;     /* 128px */

  /* Containers & Grid */
  --container-max:    1360px;
  --container-narrow: 860px;
  --gutter: clamp(1.25rem, 4vw, 3rem);

  /* Radius & Borders */
  --radius-none: 0px;
  --radius-sm:   4px;
  --radius-md:   8px;
  --radius-lg:   12px;
  --radius-full: 999px;

  --border-hairline:     1px solid var(--graphite-200);
  --border-hairline-inv: 1px solid var(--on-void-line);

  /* Elevation (Border-first design system) */
  --shadow-none:    none;
  --shadow-lift-sm: 0 8px 20px -12px rgba(10, 13, 20, 0.18);
  --shadow-float:   0 24px 64px -24px rgba(10, 13, 20, 0.28);
}

/* --------------------------------------------------------------------------
   2. GLOBAL RESET & BASE STYLES
   -------------------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--graphite-950);
  background-color: var(--surface);
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease, border-color 0.2s ease;
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}

/* Accessible focus ring */
:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 2px;
}

/* --------------------------------------------------------------------------
   3. TYPOGRAPHY
   -------------------------------------------------------------------------- */
h1, h2, h3, h4, .font-display {
  font-family: var(--font-display);
  color: var(--graphite-950);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.text-hero {
  font-size: var(--text-hero);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.03em;
}

h1, .text-h1 {
  font-size: var(--text-h1);
  font-weight: 700;
  line-height: 1.15;
}

h2, .text-h2 {
  font-size: var(--text-h2);
  line-height: 1.2;
}

h3, .text-h3 {
  font-size: var(--text-h3);
  line-height: 1.3;
}

.text-lead {
  font-size: var(--text-lead);
  line-height: 1.6;
  color: var(--graphite-600);
  max-width: 68ch;
}

.text-body {
  font-size: var(--text-body);
  line-height: 1.6;
  color: var(--graphite-800);
  max-width: 62ch;
}

.text-small {
  font-size: var(--text-small);
  color: var(--graphite-500);
}

.text-micro {
  font-size: var(--text-micro);
  letter-spacing: 0.06em;
}

.font-mono {
  font-family: var(--font-mono);
}

/* --------------------------------------------------------------------------
   4. LAYOUT & CONTAINERS
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.container-narrow {
  width: 100%;
  max-width: var(--container-narrow);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.section {
  padding-top: var(--space-24);
  padding-bottom: var(--space-24);
  position: relative;
  width: 100%;
}

@media (min-width: 1024px) {
  .section {
    padding-top: var(--space-32);
    padding-bottom: var(--space-32);
  }
}

/* --------------------------------------------------------------------------
   5. TRI-TONE MODULE SYSTEM (MOTIF-C)
   -------------------------------------------------------------------------- */
/* Day Module (White / Surface) */
.module-white {
  background-color: var(--white);
  color: var(--graphite-950);
}

.module-surface {
  background-color: var(--surface);
  color: var(--graphite-950);
}

/* Night Authority Module (Void Black) */
.module-black {
  background-color: var(--void);
  color: var(--on-void);
}

.module-black h1,
.module-black h2,
.module-black h3,
.module-black .text-heading {
  color: var(--on-void);
}

.module-black .text-lead,
.module-black .text-small,
.module-black .text-muted {
  color: var(--on-void-dim);
}

.module-black .card {
  background-color: var(--void-raised);
  border-color: var(--on-void-line);
}

/* Signal Blue Statement Module */
.module-blue {
  background-color: var(--blue-600);
  color: var(--on-blue);
}

.module-blue h1,
.module-blue h2,
.module-blue h3,
.module-blue p {
  color: var(--on-blue);
}

.module-blue .text-muted {
  color: rgba(255, 255, 255, 0.8);
}

/* 1px Blueprint Module Seam */
.module-seam {
  height: 1px;
  background-color: var(--blue-600);
  width: 100%;
  position: relative;
  z-index: 10;
}

/* --------------------------------------------------------------------------
   6. BUTTONS & INTERACTIVE CONTROLS
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  height: 48px;
  padding: 0 var(--space-6);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: var(--text-small);
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  text-decoration: none;
  transition: all 0.22s cubic-bezier(0.22, 1, 0.36, 1);
  white-space: nowrap;
}

.btn .material-symbol,
.btn .icon {
  font-size: 20px;
  transition: transform 0.2s ease;
}

/* Primary Button (Signal Blue) */
.btn-primary {
  background-color: var(--blue-600);
  color: var(--on-blue);
  border-color: var(--blue-600);
}

.btn-primary:hover {
  background-color: var(--blue-500);
  border-color: var(--blue-500);
  color: var(--on-blue);
  box-shadow: 0 4px 14px rgba(23, 48, 242, 0.35);
}

.btn-primary:active {
  background-color: var(--blue-700);
  transform: translateY(1px);
}

/* Secondary Button (On Day) */
.btn-secondary {
  background-color: transparent;
  color: var(--graphite-950);
  border-color: var(--graphite-950);
}

.btn-secondary:hover {
  background-color: var(--graphite-950);
  color: var(--white);
}

/* Secondary Button (On Night / Blue) */
.module-black .btn-secondary,
.module-blue .btn-secondary,
.btn-secondary-inv {
  background-color: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.6);
}

.module-black .btn-secondary:hover,
.module-blue .btn-secondary:hover,
.btn-secondary-inv:hover {
  background-color: var(--white);
  color: var(--void);
  border-color: var(--white);
}

/* Ghost Button / Inline Text Link */
.btn-ghost {
  background-color: transparent;
  color: var(--blue-600);
  padding: 0;
  height: auto;
  font-weight: 600;
  border-radius: 0;
}

.btn-ghost:hover {
  color: var(--blue-500);
}

.btn-ghost:hover .icon {
  transform: translateX(4px);
}

.module-black .btn-ghost {
  color: var(--on-void);
}

.module-black .btn-ghost:hover {
  color: var(--blue-500);
}

/* Compact / Filter Button */
.btn-sm {
  height: 38px;
  padding: 0 var(--space-4);
  font-size: var(--text-micro);
  border-radius: var(--radius-sm);
}

/* --------------------------------------------------------------------------
   7. SIGNATURE MOTIFS
   -------------------------------------------------------------------------- */

/* MOTIF-A: Drawing-Index Tag ( // 0X ) */
.drawing-tag {
  font-family: var(--font-mono);
  font-size: var(--text-micro);
  color: var(--graphite-400);
  letter-spacing: var(--tracking-wide, 0.06em);
  text-transform: uppercase;
  margin-bottom: var(--space-2);
}

.module-black .drawing-tag {
  color: var(--on-void-dim);
}

/* MOTIF-B: Eyebrow Marker Pill */
.eyebrow-pill {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 4px 10px;
  background-color: var(--graphite-950);
  color: var(--white);
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: var(--space-4);
}

.eyebrow-pill::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  background-color: var(--blue-600);
  border-radius: 1px;
}

.module-black .eyebrow-pill,
.module-blue .eyebrow-pill {
  background-color: var(--white);
  color: var(--void);
}

.module-black .eyebrow-pill::before,
.module-blue .eyebrow-pill::before {
  background-color: var(--blue-600);
}

/* MOTIF-D: Evidence Bar (Hatch vs. Solid) */
.evidence-bar-wrap {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.evidence-bar-track {
  height: 12px;
  width: 100%;
  background: repeating-linear-gradient(
    45deg,
    var(--graphite-300) 0,
    var(--graphite-300) 1px,
    var(--graphite-100) 1px,
    var(--graphite-100) 7px
  );
  border-radius: 2px;
  position: relative;
  overflow: hidden;
}

.evidence-bar-fill {
  height: 100%;
  background-color: var(--blue-600);
  width: 0%;
  transition: width 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

/* MOTIF-E: Emphasis Sweep */
mark.sweep {
  background: transparent;
  color: inherit;
  position: relative;
  padding: 0 4px;
  display: inline;
}

mark.sweep::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10%;
  width: 100%;
  height: 80%;
  background-color: var(--blue-tint-2);
  z-index: -1;
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.6s cubic-bezier(0.65, 0, 0.35, 1);
}

mark.sweep.active::before {
  transform: scaleX(1);
}

mark.sweep.active {
  color: var(--blue-600);
}

/* MOTIF-G: Glass Readout Panel */
.glass-readout {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: var(--radius-lg);
  padding: var(--space-4) var(--space-6);
  box-shadow: var(--shadow-float);
}

.module-black .glass-readout,
.glass-readout-dark {
  background: rgba(16, 17, 20, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--on-void);
}

/* MOTIF-H: Proof Card & Cards */
.card {
  background-color: var(--white);
  border: var(--border-hairline);
  border-radius: var(--radius-md);
  padding: var(--space-6);
  box-shadow: var(--shadow-none);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  position: relative;
}

.card-interactive {
  cursor: pointer;
}

.card-interactive:hover {
  border-color: var(--blue-600);
  box-shadow: var(--shadow-lift-sm);
}

.proof-card {
  overflow: hidden;
  padding: 0;
  display: flex;
  flex-direction: column;
}

.proof-card-media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background-color: var(--graphite-800);
}

.proof-card-media img,
.proof-card-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.42s cubic-bezier(0.22, 1, 0.36, 1);
}

.card-interactive:hover .proof-card-media img,
.card-interactive:hover .proof-card-media video {
  transform: scale(1.03);
}

.proof-card-body {
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

/* Badges / Chips */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  border: 1px solid var(--graphite-300);
  color: var(--graphite-600);
  background-color: transparent;
  width: fit-content;
}

.badge-active,
.chip-active {
  border-color: var(--blue-600);
  background-color: var(--blue-600);
  color: var(--white);
}

.badge-verified {
  border-color: var(--success);
  background-color: var(--success-tint);
  color: var(--success);
}

.badge-amber {
  border-color: var(--amber-600);
  background-color: var(--amber-tint);
  color: var(--amber-600);
}

/* --------------------------------------------------------------------------
   8. GLOBAL HEADER & NAVIGATION
   -------------------------------------------------------------------------- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 88px;
  z-index: 1000;
  display: flex;
  align-items: center;
  transition: height 0.28s ease, background-color 0.28s ease, border-color 0.28s ease, box-shadow 0.28s ease;
  border-bottom: 1px solid transparent;
}

.header.scrolled {
  height: 68px;
  background-color: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: var(--border-hairline);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  text-decoration: none;
}

.brand-logo img {
  height: 38px;
  width: auto;
}

.brand-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--graphite-950);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.brand-tagline {
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--graphite-500);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

@media (max-width: 991px) {
  .header .brand-logo div,
  .header .brand-title,
  .header .brand-tagline,
  .header .btn,
  .header .btn-primary,
  .header .btn-magnetic,
  .header a[href^="tel"] {
    display: none !important;
  }
  .header .brand-logo img {
    height: 32px !important;
  }
  .header-container {
    padding-top: 8px !important;
    padding-bottom: 8px !important;
  }
}

/* Desktop Nav Links */
.nav-desktop {
  display: none;
  align-items: center;
  gap: var(--space-8);
}

@media (min-width: 1024px) {
  .nav-desktop {
    display: flex;
  }
}

.nav-link {
  font-size: var(--text-small);
  font-weight: 500;
  color: var(--graphite-800);
  position: relative;
  padding: 8px 0;
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background-color: var(--blue-600);
  transition: width 0.22s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-link:hover,
.nav-link.active {
  color: var(--blue-600);
}

/* Mega Menu Container */
.mega-menu-trigger {
  position: relative;
}

.mega-menu {
  position: absolute;
  top: 100%;
  left: -200px;
  width: 820px;
  background: var(--white);
  border: var(--border-hairline);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-float);
  padding: var(--space-8);
  display: none;
  grid-template-columns: repeat(3, 1fr) 220px;
  gap: var(--space-6);
  z-index: 1001;
}

.mega-menu-trigger:hover .mega-menu {
  display: grid;
  animation: megaFadeIn 0.24s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.mega-column-title {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--graphite-400);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: var(--space-3);
  padding-bottom: var(--space-1);
  border-bottom: var(--border-hairline);
}

.mega-item {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: 6px 0;
  font-size: 13px;
  color: var(--graphite-800);
  transition: color 0.18s ease, transform 0.18s ease;
}

.mega-item:hover {
  color: var(--blue-600);
  transform: translateX(3px);
}

.mega-item .material-symbol {
  font-size: 16px;
  color: var(--graphite-400);
  transition: color 0.18s ease;
}

.mega-item:hover .material-symbol {
  color: var(--blue-600);
}

/* Mobile Hamburger Toggle */
.menu-toggle-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: transparent;
  border: none;
  cursor: pointer;
  color: var(--graphite-950);
}

@media (min-width: 1024px) {
  .menu-toggle-btn {
    display: none;
  }
}

/* Mobile Full-Screen Sheet */
.mobile-sheet {
  position: fixed;
  top: 0;
  right: 0;
  width: 100%;
  height: 100vh;
  background-color: var(--white);
  z-index: 2000;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.36s cubic-bezier(0.16, 1, 0.3, 1);
  padding: var(--space-6);
  overflow-y: auto;
}

.mobile-sheet.open {
  transform: translateX(0);
}

.mobile-sheet-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: var(--space-6);
  border-bottom: var(--border-hairline);
}

.mobile-nav-list {
  list-style: none;
  padding-top: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.mobile-nav-item a {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 600;
  color: var(--graphite-950);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0;
}

.mobile-nav-item a:hover {
  color: var(--blue-600);
}

/* Sticky Mobile Action Dock */
.mobile-sticky-bar {
  display: flex;
  align-items: center;
  justify-content: space-around;
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 56px;
  background-color: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: var(--border-hairline);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.06);
  z-index: 990;
  padding: 0 var(--space-4);
}

@media (min-width: 768px) {
  .mobile-sticky-bar {
    display: none;
  }
}

.mobile-sticky-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--graphite-800);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
}

.mobile-sticky-btn-primary {
  background-color: var(--blue-600);
  color: var(--white);
}

/* --------------------------------------------------------------------------
   9. HERO & 3-LAYER PARALLAX (HOMEPAGE & INNER PAGES)
   -------------------------------------------------------------------------- */
.hero-section {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  padding-top: calc(88px + var(--space-12));
  padding-bottom: var(--space-16);
  overflow: hidden;
  background-color: var(--void);
}

/* Layer 1: Background Video / Media Canvas */
.hero-parallax-layer-1 {
  position: absolute;
  top: -10%;
  left: 0;
  width: 100%;
  height: 120%;
  z-index: 1;
  pointer-events: none;
}

.hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.42;
  filter: contrast(1.1) brightness(0.9);
}

/* Layer 2: Blueprint Lines & Gradient Scrim */
.hero-parallax-layer-2 {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(
    90deg,
    rgba(0, 0, 0, 0.88) 0%,
    rgba(0, 0, 0, 0.65) 55%,
    rgba(0, 0, 0, 0.3) 100%
  );
}

.hero-grid-overlay {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 40px 40px;
}

/* Layer 3: Foreground Content & Glass Telemetry */
.hero-parallax-layer-3 {
  position: relative;
  z-index: 3;
  width: 100%;
  color: var(--on-void);
}

.hero-content-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
  align-items: center;
}

@media (min-width: 1024px) {
  .hero-content-grid {
    grid-template-columns: 1.25fr 0.85fr;
    gap: var(--space-12);
  }
}

.hero-title {
  color: var(--on-void);
  margin-bottom: var(--space-6);
}

.hero-lead {
  color: var(--on-void-dim);
  margin-bottom: var(--space-8);
  font-size: var(--text-lead);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  margin-bottom: var(--space-8);
}

.hero-telemetry-badge {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.telemetry-row {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--on-void-dim);
}

.telemetry-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--success);
  box-shadow: 0 0 8px var(--success);
}

/* --------------------------------------------------------------------------
   10. TRUST STRIP & PROOF METRICS
   -------------------------------------------------------------------------- */
.trust-strip {
  background-color: var(--white);
  border-bottom: var(--border-hairline);
  padding: var(--space-8) 0;
}

.trust-marquee {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
  flex-wrap: wrap;
  padding-bottom: var(--space-6);
  border-bottom: var(--border-hairline);
  font-family: var(--font-mono);
  font-size: var(--text-micro);
  color: var(--graphite-500);
  text-transform: uppercase;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-6);
  padding-top: var(--space-6);
}

@media (min-width: 768px) {
  .stats-grid {
    grid-template-columns: repeat(5, 1fr);
  }
}

.stat-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.stat-numeral {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.2vw, 3rem);
  font-weight: 700;
  color: var(--graphite-950);
  line-height: 1;
}

.stat-label {
  font-size: var(--text-micro);
  color: var(--graphite-500);
  font-family: var(--font-mono);
  text-transform: uppercase;
}

/* --------------------------------------------------------------------------
   11. CAPABILITY PROCESS RAIL ("Concept to Commissioning")
   -------------------------------------------------------------------------- */
.process-rail-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
}

@media (min-width: 768px) {
  .process-rail-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1200px) {
  .process-rail-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.process-step-card {
  background-color: var(--white);
  border: var(--border-hairline);
  border-radius: var(--radius-md);
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  transition: all 0.24s ease;
}

.process-step-card:hover {
  border-color: var(--blue-600);
  box-shadow: var(--shadow-lift-sm);
  transform: translateY(-2px);
}

.process-step-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.process-step-num {
  font-family: var(--font-mono);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--blue-600);
}

.process-step-icon {
  font-size: 28px;
  color: var(--graphite-500);
}

.process-step-card:hover .process-step-icon {
  color: var(--blue-600);
}

/* --------------------------------------------------------------------------
   12. PROJECT PORTFOLIO & DATA CONSOLE
   -------------------------------------------------------------------------- */
.filter-bar {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  flex-wrap: wrap;
  padding: var(--space-4) 0;
  margin-bottom: var(--space-8);
  border-bottom: var(--border-hairline);
}

.filter-chip {
  padding: 6px 14px;
  border-radius: var(--radius-full);
  border: 1px solid var(--graphite-300);
  background: var(--white);
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--graphite-600);
  cursor: pointer;
  transition: all 0.2s ease;
}

.filter-chip:hover {
  border-color: var(--blue-600);
  background-color: var(--blue-tint-1);
}

.filter-chip.active {
  border-color: var(--blue-600);
  background-color: var(--blue-600);
  color: var(--white);
}

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

@media (min-width: 768px) {
  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1200px) {
  .projects-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* --------------------------------------------------------------------------
   13. REVIEWS & TESTIMONIAL CARDS
   -------------------------------------------------------------------------- */
.reviews-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
}

@media (min-width: 1024px) {
  .reviews-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.review-card {
  background-color: var(--white);
  border: var(--border-hairline);
  border-radius: var(--radius-md);
  padding: var(--space-8);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: var(--space-6);
}

.review-stars {
  display: flex;
  gap: 2px;
  color: #F59E0B;
  font-size: 18px;
}

.review-quote {
  font-size: var(--text-body);
  line-height: 1.6;
  color: var(--graphite-800);
  font-style: normal;
}

.review-author-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  border-top: var(--border-hairline);
  padding-top: var(--space-4);
}

.review-author-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--text-small);
  color: var(--graphite-950);
}

.review-author-org {
  font-family: var(--font-mono);
  font-size: var(--text-micro);
  color: var(--graphite-500);
}

/* --------------------------------------------------------------------------
   14. LOCATION, HOURS & GOOGLE MAPS CARD
   -------------------------------------------------------------------------- */
.location-card {
  background-color: var(--white);
  border: var(--border-hairline);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr;
}

@media (min-width: 1024px) {
  .location-card {
    grid-template-columns: 1fr 1fr;
  }
}

.location-info {
  padding: var(--space-8);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: var(--space-6);
}

.location-map-frame {
  min-height: 340px;
  background-color: var(--surface-alt);
  position: relative;
  overflow: hidden;
}

.location-map-frame iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* Live Office Hours Status Badge */
.hours-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
}

.hours-status-open {
  background-color: var(--success-tint);
  color: var(--success);
  border: 1px solid var(--success);
}

.hours-status-closed {
  background-color: var(--graphite-100);
  color: var(--graphite-600);
  border: 1px solid var(--graphite-300);
}

.pulse-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: currentColor;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { transform: scale(0.95); opacity: 0.9; }
  50% { transform: scale(1.3); opacity: 0.4; }
  100% { transform: scale(0.95); opacity: 0.9; }
}

/* --------------------------------------------------------------------------
   15. FORMS & INPUTS
   -------------------------------------------------------------------------- */
.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  margin-bottom: var(--space-4);
}

.form-label {
  font-size: var(--text-small);
  font-weight: 500;
  color: var(--graphite-800);
}

.module-black .form-label {
  color: var(--on-void);
}

.form-input,
.form-select,
.form-textarea {
  height: 46px;
  padding: 0 var(--space-4);
  background-color: var(--white);
  border: var(--border-hairline);
  border-radius: var(--radius-sm);
  font-size: var(--text-small);
  color: var(--graphite-950);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  width: 100%;
}

.form-textarea {
  height: auto;
  min-height: 120px;
  padding: var(--space-3) var(--space-4);
  resize: vertical;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--blue-600);
  box-shadow: 0 0 0 3px var(--blue-tint-2);
}

/* --------------------------------------------------------------------------
   16. MODALS & CASE STUDY DRAWER
   -------------------------------------------------------------------------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 2500;
  display: none;
  align-items: center;
  justify-content: center;
  padding: var(--space-4);
}

.modal-overlay.active {
  display: flex;
}

.modal-dialog {
  background-color: var(--white);
  border-radius: var(--radius-lg);
  max-width: 900px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-float);
  position: relative;
  padding: var(--space-8);
  animation: modalScale 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalScale {
  from { opacity: 0; transform: scale(0.96); }
  to { opacity: 1; transform: scale(1); }
}

.modal-close-btn {
  position: absolute;
  top: var(--space-6);
  right: var(--space-6);
  background: var(--surface-alt);
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--graphite-800);
  transition: all 0.2s ease;
}

.modal-close-btn:hover {
  background: var(--graphite-950);
  color: var(--white);
}

/* --------------------------------------------------------------------------
   17. FOOTER
   -------------------------------------------------------------------------- */
.footer {
  background-color: var(--void);
  color: var(--on-void);
  padding-top: var(--space-24);
  padding-bottom: var(--space-12);
  border-top: 1px solid var(--on-void-line);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
  padding-bottom: var(--space-16);
  border-bottom: 1px solid var(--on-void-line);
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 1.5fr repeat(3, 1fr);
  }
}

.footer-col-title {
  font-family: var(--font-mono);
  font-size: var(--text-micro);
  color: var(--on-void-dim);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--space-4);
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.footer-links a {
  font-size: var(--text-small);
  color: var(--on-void);
  transition: color 0.18s ease;
}

.footer-links a:hover {
  color: var(--blue-500);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-4);
  padding-top: var(--space-8);
  font-size: var(--text-small);
  color: var(--on-void-dim);
}

/* Back to Top Button */
.back-to-top {
  position: fixed;
  bottom: 80px;
  right: var(--space-6);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: var(--graphite-950);
  color: var(--white);
  border: 1px solid var(--graphite-800);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 950;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.24s ease, transform 0.24s ease;
}

.back-to-top.visible {
  opacity: 1;
  pointer-events: auto;
}

.back-to-top:hover {
  background-color: var(--blue-600);
  transform: translateY(-2px);
}

/* Cookie / Privacy Notification */
.cookie-banner {
  position: fixed;
  bottom: var(--space-6);
  left: var(--space-6);
  right: var(--space-6);
  max-width: 520px;
  background-color: var(--white);
  border: var(--border-hairline);
  border-radius: var(--radius-md);
  padding: var(--space-4) var(--space-6);
  box-shadow: var(--shadow-float);
  z-index: 2200;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  animation: slideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* --------------------------------------------------------------------------
   18. REDUCED-MOTION ACCESSIBILITY
   -------------------------------------------------------------------------- */
@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;
  }

  .hero-parallax-layer-1,
  .hero-parallax-layer-2,
  .hero-parallax-layer-3 {
    transform: none !important;
  }

  mark.sweep::before {
    transform: scaleX(1) !important;
  }

  .evidence-bar-fill {
    transition: none !important;
  }
}

/* --------------------------------------------------------------------------
   19. INTERACTIVE HVAC ESTIMATOR & SIZING CALCULATOR
   -------------------------------------------------------------------------- */
.estimator-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
}
@media (min-width: 1024px) {
  .estimator-grid {
    grid-template-columns: 1.15fr 0.85fr;
  }
}

.calc-input-group {
  margin-bottom: var(--space-6);
}

.calc-input-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  font-size: var(--text-small);
  color: var(--graphite-950);
  margin-bottom: var(--space-2);
}

.calc-range-slider {
  width: 100%;
  height: 8px;
  border-radius: 4px;
  background: var(--graphite-200);
  outline: none;
  -webkit-appearance: none;
  cursor: pointer;
}

.calc-range-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--blue-600);
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(23, 48, 242, 0.4);
  border: 2px solid #FFF;
  transition: transform 0.15s ease;
}

.calc-range-slider::-webkit-slider-thumb:hover {
  transform: scale(1.15);
}

.calc-select {
  width: 100%;
  padding: 12px 16px;
  background: var(--white);
  border: 1px solid var(--graphite-300);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: var(--text-body);
  color: var(--graphite-950);
  outline: none;
  transition: border-color 0.2s ease;
}
.calc-select:focus {
  border-color: var(--blue-600);
  box-shadow: 0 0 0 3px rgba(23, 48, 242, 0.15);
}

.calc-result-box {
  background: var(--graphite-950);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
  overflow: hidden;
}

.calc-result-box::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 260px;
  height: 260px;
  background: radial-gradient(circle, rgba(23, 48, 242, 0.3) 0%, transparent 70%);
  pointer-events: none;
}

.calc-metric-badge {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
}

.calc-metric-num {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-weight: 700;
  color: #FFF;
  line-height: 1;
}

.calc-metric-unit {
  font-family: var(--font-mono);
  font-size: 1rem;
  color: var(--blue-500);
  font-weight: 600;
}

.calc-telemetry-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-4);
  padding: var(--space-4) 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  margin: var(--space-6) 0;
}

/* --------------------------------------------------------------------------
   20. CLIENT QA/QC & ITP MILESTONE PORTAL VIEWER
   -------------------------------------------------------------------------- */
.portal-console {
  background: var(--white);
  border: var(--border-hairline);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lift-sm);
}

.portal-topbar {
  background: var(--graphite-950);
  color: var(--white);
  padding: var(--space-4) var(--space-6);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-3);
}

.portal-nav-tabs {
  display: flex;
  gap: var(--space-2);
  background: var(--surface);
  padding: 6px;
  border-bottom: var(--border-hairline);
  overflow-x: auto;
}

.portal-tab-btn {
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  border: none;
  background: transparent;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  color: var(--graphite-600);
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.portal-tab-btn.active {
  background: var(--white);
  color: var(--blue-600);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

.portal-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  text-align: left;
}

.portal-table th {
  background: var(--surface);
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--graphite-500);
  padding: 12px 16px;
  border-bottom: var(--border-hairline);
  text-transform: uppercase;
}

.portal-table td {
  padding: 12px 16px;
  border-bottom: var(--border-hairline);
  color: var(--graphite-950);
}

.portal-table tr:hover td {
  background: var(--surface-alt);
}

.status-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 4px;
}

.status-tag-pass {
  background: var(--success-tint);
  color: var(--success);
  border: 1px solid rgba(31, 138, 87, 0.3);
}

.status-tag-hold {
  background: var(--amber-tint);
  color: var(--amber-600);
  border: 1px solid rgba(201, 122, 31, 0.3);
}

.stamp-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(23, 48, 242, 0.08);
  border: 1px solid var(--blue-600);
  padding: 4px 10px;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--blue-600);
  font-weight: 600;
}

/* ==========================================================================
   MOBILE HEADER CLEAN MINIMAL MODE (< 992px)
   Hides logo word labels, taglines, company text and long CTA captions from header
   ========================================================================== */
@media (max-width: 991px) {
  .brand-logo div {
    display: none !important;
  }
  .brand-title,
  .brand-tagline {
    display: none !important;
  }
  .header .btn,
  .header .btn-primary,
  .header .btn-magnetic {
    display: none !important;
  }
  .header-container {
    padding-top: 10px;
    padding-bottom: 10px;
  }
  .brand-logo img {
    height: 32px !important;
  }
}

