@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@400;500;600;700&family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Space+Grotesk:wght@500;600;700&display=swap');

/* ==========================================================================
   THEME COLOR TOKENS: LIGHT MODE (DEFAULT) & DARK MODE
   Selected for Heavy Industrial EPC, SMPP & Structural Steel Engineering
   ========================================================================== */
:root, html[data-theme="light"] {
  color-scheme: light;

  /* Surfaces & Backgrounds */
  --bg-dark: #f7f4ed; /* Warm architectural ivory */
  --bg-surface: #ffffff; /* Crisp elevated cards */
  --bg-surface-elevated: #eeeae0; /* Shaded drawing-board panel */
  --bg-card: #ffffff;
  --bg-card-hover: #fcfdfd;
  --bg-light: #f7f4ed;
  --bg-sand: #e8dfcf;

  /* Header & Navigation */
  --nav-bg: rgba(255, 255, 255, 0.94);
  --nav-text: #102337;
  --nav-link: #3c4b59;
  --nav-link-hover: #9a6500;
  --topbar-bg: #ebe5d8;
  --topbar-text: #3f4c58;

  /* Accents */
  --orange: #9a6500; /* Brand-aligned engineering gold */
  --orange-hover: #764d00;
  --orange-glow: rgba(154, 101, 0, 0.24);
  --orange-subtle: rgba(154, 101, 0, 0.1);
  --acid: #14735b; /* Restrained compliance green */
  --acid-glow: rgba(5, 150, 105, 0.2);
  --amber: #d97706; /* Technical amber */

  /* Typography / Ink */
  --text-primary: #102337; /* Deep steel navy */
  --text-secondary: #465665; /* Blueprint slate */
  --text-muted: #6d7982;
  --text-dark: #102337;
  --text-dark-muted: #52616f;

  /* Borders & Dividers */
  --border: rgba(17, 24, 21, 0.12);
  --border-subtle: rgba(17, 24, 21, 0.07);
  --border-orange: rgba(154, 101, 0, 0.42);
  --border-light: rgba(17, 24, 21, 0.12);

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(17, 24, 21, 0.05);
  --shadow-md: 0 8px 24px rgba(17, 24, 21, 0.08);
  --shadow-lg: 0 16px 40px rgba(17, 24, 21, 0.12);

  /* Hero & Visual Overlays */
  --hero-overlay-1: rgba(247, 244, 237, 0.98);
  --hero-overlay-2: rgba(247, 244, 237, 0.88);
  --hero-overlay-3: rgba(247, 244, 237, 0.32);
  --hero-text-h1: #102337;
  --hero-grid-line: rgba(17, 24, 21, 0.06);

  /* Stamp Badge */
  --stamp-bg: rgba(255, 255, 255, 0.9);
  --stamp-border: rgba(154, 101, 0, 0.62);
  --stamp-text: #102337;
}

html[data-theme="dark"] {
  color-scheme: dark;

  /* Surfaces & Backgrounds */
  --bg-dark: #07121f;
  --bg-surface: #0c1b2b;
  --bg-surface-elevated: #12263a;
  --bg-card: #0e2133;
  --bg-card-hover: #142b41;
  --bg-light: #f3f1ea;
  --bg-sand: #e6e2d6;

  /* Header & Navigation */
  --nav-bg: rgba(7, 18, 31, 0.95);
  --nav-text: #ffffff;
  --nav-link: #c9d2cd;
  --nav-link-hover: #ffffff;
  --topbar-bg: #091827;
  --topbar-text: #b2bfcb;

  /* Accents */
  --orange: #ffbd2e;
  --orange-hover: #ffd064;
  --orange-glow: rgba(255, 189, 46, 0.32);
  --orange-subtle: rgba(255, 189, 46, 0.12);
  --acid: #48d7ae;
  --acid-glow: rgba(0, 229, 153, 0.35);
  --amber: #f59e0b;

  /* Typography */
  --text-primary: #f5f6f4;
  --text-secondary: #a9b5ae;
  --text-muted: #748279;
  --text-dark: #111715;
  --text-dark-muted: #57615b;

  /* Borders & Dividers */
  --border: rgba(255, 255, 255, 0.1);
  --border-subtle: rgba(255, 255, 255, 0.06);
  --border-orange: rgba(255, 189, 46, 0.42);
  --border-light: rgba(255, 255, 255, 0.12);

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.7);

  /* Hero & Visual Overlays */
  --hero-overlay-1: rgba(7, 18, 31, 0.98);
  --hero-overlay-2: rgba(7, 18, 31, 0.88);
  --hero-overlay-3: rgba(7, 18, 31, 0.42);
  --hero-text-h1: #ffffff;
  --hero-grid-line: rgba(255, 255, 255, 0.04);

  /* Stamp Badge */
  --stamp-bg: rgba(7, 18, 31, 0.8);
  --stamp-border: rgba(255, 189, 46, 0.55);
  --stamp-text: #ffffff;
}

:root {
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-display: 'Space Grotesk', sans-serif;
  --font-mono: 'Oswald', sans-serif;

  --max: 1280px;
  --header-height: 92px;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 14px;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  transition: background-color 0.3s ease, color 0.3s ease;
}

body {
  background: var(--bg-dark);
  color: var(--text-primary);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background-color 0.3s ease, color 0.3s ease;
}

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

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

.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;
}

.ui-icon {
  display: inline-block;
  width: 1em;
  height: 1em;
  flex: 0 0 auto;
  background: currentColor;
  -webkit-mask: var(--icon) center / contain no-repeat;
  mask: var(--icon) center / contain no-repeat;
  vertical-align: -0.12em;
}

.icon-phone { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6A19.79 19.79 0 0 1 2.12 4.18 2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72c.13.96.36 1.9.69 2.8a2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45c.9.33 1.84.56 2.8.69A2 2 0 0 1 22 16.92z'/%3E%3C/svg%3E"); }
.icon-mail { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='14' rx='2'/%3E%3Cpath d='m3 7 9 6 9-6'/%3E%3C/svg%3E"); }
.icon-search { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-4-4'/%3E%3C/svg%3E"); }
.icon-menu { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round'%3E%3Cpath d='M4 7h16M4 12h16M4 17h16'/%3E%3C/svg%3E"); }
.icon-close { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round'%3E%3Cpath d='M6 6l12 12M18 6 6 18'/%3E%3C/svg%3E"); }
.icon-sun { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='4'/%3E%3Cpath d='M12 2v2M12 20v2M4.93 4.93l1.42 1.42M17.66 17.66l1.41 1.41M2 12h2M20 12h2M4.93 19.07l1.42-1.42M17.66 6.34l1.41-1.41'/%3E%3C/svg%3E"); }
.icon-moon { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 12.79A9 9 0 1 1 11.21 3 7 7 0 0 0 21 12.79z'/%3E%3C/svg%3E"); }
.icon-bolt { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M13 2 3 14h9l-1 8 10-12h-9l1-8z'/%3E%3C/svg%3E"); }
.icon-shield { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10z'/%3E%3Cpath d='m9 12 2 2 4-4'/%3E%3C/svg%3E"); }
.icon-check { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 4 4L19 6'/%3E%3C/svg%3E"); }
.icon-clock { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7v5l3 2'/%3E%3C/svg%3E"); }

.icon-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.wrap {
  width: min(calc(100% - 48px), var(--max));
  margin-inline: auto;
}

/* ==========================================================================
   TOPBAR & TELEMETRY
   ========================================================================== */
.topbar {
  background: var(--topbar-bg);
  border-bottom: 1px solid var(--border);
  color: var(--topbar-text);
  font-size: 0.72rem;
  font-family: var(--font-mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  position: relative;
  z-index: 1001;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.topbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 38px;
  gap: 20px;
}

.topbar-left, .topbar-right {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.status-dot-live {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--acid);
  font-weight: 600;
}

.status-dot-live::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--acid);
  box-shadow: 0 0 8px var(--acid-glow);
  animation: pulse-dot 2s infinite ease-in-out;
}

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

.topbar .sep {
  opacity: 0.3;
}

.topbar-badge {
  background: rgba(128, 128, 128, 0.12);
  padding: 3px 8px;
  border-radius: 3px;
  border: 1px solid var(--border);
  color: var(--text-primary);
  font-size: 0.68rem;
}

.topbar a:hover {
  color: var(--orange);
}

/* ==========================================================================
   STICKY NAVIGATION & LOGO THEME TOGGLE
   ========================================================================== */
.nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  left: 0;
  right: 0;
  background: var(--nav-bg);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  color: var(--nav-text) !important;
  transition: background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.nav-inner {
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

/* LOGO ACTS AS THEME TOGGLE BUTTON */
.brand-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 4px 8px 4px 0;
  border-radius: var(--radius-sm);
  text-align: left;
  position: relative;
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.brand-toggle-btn:hover {
  background: var(--orange-subtle);
  transform: translateY(-1px);
}

.brand-logo {
  display: block;
  width: 218px;
  height: 68px;
  object-fit: contain;
  object-position: left center;
  filter: drop-shadow(0 3px 8px rgba(80, 50, 0, 0.12));
}

.theme-indicator {
  width: 30px;
  height: 30px;
  border: 1px solid var(--border-orange);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--orange);
  background: var(--bg-surface);
  box-shadow: var(--shadow-sm);
}

.theme-icon-overlay {
  width: 15px;
  height: 15px;
}

.brand-toggle-btn:focus-visible {
  outline: 3px solid var(--orange-glow);
  outline-offset: 3px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.nav-links a {
  position: relative;
  padding: 8px 12px;
  color: var(--nav-link) !important;
  border-radius: var(--radius-sm);
  transition: all 0.25s ease;
  font-weight: 500;
}

.nav-links a:hover {
  color: var(--nav-link-hover) !important;
  background: rgba(128, 128, 128, 0.08);
}

.nav-links a.active {
  color: var(--orange) !important;
  background: var(--orange-subtle);
  border: 1px solid var(--border-orange);
  font-weight: 700;
}

.nav-links a.active::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 18%;
  right: 18%;
  height: 2px;
  background: var(--orange);
  box-shadow: 0 0 6px var(--orange);
}

.nav-cta {
  background: linear-gradient(135deg, var(--orange), var(--orange-hover)) !important;
  color: #ffffff !important;
  padding: 10px 20px !important;
  border-radius: var(--radius-sm);
  font-weight: 700 !important;
  letter-spacing: 0.08em;
  box-shadow: 0 4px 14px var(--orange-glow);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px var(--orange-glow);
  color: #ffffff !important;
}

.menu-btn {
  display: none;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border);
  color: var(--text-primary);
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  align-items: center;
  gap: 8px;
}

/* ==========================================================================
   TYPOGRAPHY & HERO
   ========================================================================== */
.display {
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  line-height: 1;
  letter-spacing: -0.03em;
}

.outline {
  -webkit-text-stroke: 1.5px var(--text-primary);
  color: transparent;
}

.orange {
  color: var(--orange);
}

.acid {
  color: var(--acid);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--orange);
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.eyebrow::before {
  content: "";
  width: 24px;
  height: 2px;
  background: currentColor;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 14px 26px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.25s ease;
  border: 1px solid transparent;
}

.btn.primary {
  background: var(--orange);
  color: #ffffff;
  box-shadow: 0 4px 18px var(--orange-glow);
}

.btn.primary:hover {
  background: var(--orange-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px var(--orange-glow);
}

.btn.secondary {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  color: var(--text-primary);
  box-shadow: var(--shadow-sm);
}

.btn.secondary:hover {
  background: var(--bg-surface-elevated);
  border-color: var(--orange);
  transform: translateY(-2px);
}

/* ==========================================================================
   HOMEPAGE HERO SECTION
   ========================================================================== */
.hero {
  position: relative;
  min-height: 840px;
  display: flex;
  align-items: center;
  background: var(--bg-dark) url('project-installed-frames.png') center 42%/cover no-repeat;
  overflow: hidden;
  transition: background-color 0.3s ease;
}

/* ==========================================================================
   REAL PROJECT PHOTOGRAPHY
   ========================================================================== */
.field-proof {
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border);
}

.field-proof-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(280px, 0.8fr);
  grid-template-rows: repeat(2, minmax(250px, 1fr));
  gap: 18px;
}

.project-photo {
  position: relative;
  min-height: 250px;
  overflow: hidden;
  border-radius: var(--radius-md);
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
}

.project-photo-main {
  grid-row: 1 / span 2;
  min-height: 620px;
}

.project-photo img,
.gallery-strip img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.7s cubic-bezier(.2,.7,.2,1);
}

.project-photo:hover img,
.gallery-strip figure:hover img {
  transform: scale(1.025);
}

.project-photo figcaption {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 2px 12px;
  align-items: center;
  padding: 14px 16px;
  color: #fff;
  background: rgba(7, 18, 31, 0.88);
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: 6px;
  backdrop-filter: blur(10px);
}

.project-photo figcaption span {
  grid-row: 1 / span 2;
  color: #ffbd2e;
  font: 600 0.72rem var(--font-mono);
  letter-spacing: 0.12em;
}

.project-photo figcaption strong {
  font: 600 0.92rem var(--font-display);
}

.project-photo figcaption small {
  color: #b9c5cf;
  font-size: 0.72rem;
}

.field-proof-note {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
  margin-top: 18px;
  border: 1px solid var(--border);
  background: var(--bg-surface-elevated);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: 0.84rem;
}

.field-proof-note > .ui-icon {
  width: 22px;
  height: 22px;
  color: var(--orange);
}

.gallery-strip {
  display: grid;
  grid-template-columns: 0.8fr 1.35fr 0.8fr;
  gap: 18px;
}

.gallery-strip figure {
  position: relative;
  min-height: 420px;
  overflow: hidden;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--bg-surface-elevated);
  box-shadow: var(--shadow-md);
}

.gallery-strip figcaption {
  position: absolute;
  left: 14px;
  bottom: 14px;
  padding: 8px 12px;
  background: rgba(7,18,31,.88);
  border: 1px solid rgba(255,255,255,.14);
  color: #fff;
  border-radius: 4px;
  font: 600 .72rem var(--font-mono);
  letter-spacing: .1em;
  text-transform: uppercase;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--hero-overlay-1) 0%, var(--hero-overlay-2) 48%, var(--hero-overlay-3) 85%),
              linear-gradient(0deg, var(--bg-dark) 0%, transparent 40%);
  z-index: 1;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--hero-grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--hero-grid-line) 1px, transparent 1px);
  background-size: 60px 60px;
  z-index: 1;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 130px 0 80px;
  max-width: 900px;
}

.hero h1 {
  font-size: clamp(3.8rem, 8vw, 7.8rem);
  line-height: 0.94;
  margin-bottom: 24px;
  color: var(--hero-text-h1);
}

.hero h1 small {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.32em;
  letter-spacing: 0.16em;
  color: var(--orange);
  margin-bottom: 14px;
  font-weight: 600;
}

.hero-copy {
  display: flex;
  gap: 36px;
  align-items: flex-start;
  margin-top: 35px;
  max-width: 760px;
}

.hero-copy p {
  color: var(--text-secondary);
  font-size: 1.12rem;
  line-height: 1.6;
  max-width: 480px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 20px;
}

.hero-meta-strip {
  display: flex;
  gap: 36px;
  margin-top: 48px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.hero-meta-strip b {
  color: var(--orange);
  font-weight: 600;
}

.hero-stamp-badge {
  position: absolute;
  right: 5%;
  bottom: 120px;
  z-index: 2;
  width: 170px;
  height: 170px;
  border: 1.5px dashed var(--stamp-border);
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: var(--stamp-bg);
  backdrop-filter: blur(8px);
  transform: rotate(-8deg);
  animation: slow-rotate 30s linear infinite;
  box-shadow: var(--shadow-md);
}

@keyframes slow-rotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.hero-stamp-badge span {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.18em;
  color: var(--orange);
}

.hero-stamp-badge strong {
  font-family: var(--font-display);
  font-size: 1.15rem;
  line-height: 1.1;
  color: var(--stamp-text);
  margin-top: 6px;
}

/* ==========================================================================
   METRICS / KPI STRIP
   ========================================================================== */
.metrics-strip {
  border-block: 1px solid var(--border);
  background: var(--bg-surface);
  position: relative;
  z-index: 5;
  box-shadow: var(--shadow-sm);
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.metric-card {
  padding: 34px 28px;
  border-right: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

.metric-card:last-child {
  border-right: 0;
}

.metric-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 40px;
  height: 2px;
  background: var(--orange);
}

.metric-num {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 4vw, 3.4rem);
  font-weight: 700;
  line-height: 1;
  color: var(--text-primary);
  display: flex;
  align-items: baseline;
  gap: 4px;
}

.metric-num span {
  color: var(--orange);
  font-size: 0.7em;
}

.metric-label {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-top: 10px;
}

.metric-detail {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 6px;
}

/* ==========================================================================
   SECTIONS & LAYOUT BLOCKS
   ========================================================================== */
.section {
  padding: 100px 0;
  position: relative;
}

.section.alt-bg {
  background: var(--bg-surface-elevated);
}

.section.sand-theme {
  background: var(--bg-sand);
  color: var(--text-dark);
}

.section.sand-theme .eyebrow {
  color: var(--orange);
}

.section.sand-theme .section-head h2 {
  color: var(--text-dark);
}

.section.sand-theme p {
  color: var(--text-dark-muted);
}

.section-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: end;
  margin-bottom: 50px;
}

.section-head h2 {
  font-size: clamp(2.8rem, 5vw, 5.2rem);
  line-height: 0.98;
  color: var(--text-primary);
}

.section-head p {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 520px;
}

/* ==========================================================================
   INTERACTIVE ESTIMATOR / SCOPE CALCULATOR
   ========================================================================== */
.estimator-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-orange);
  border-radius: var(--radius-md);
  padding: 44px;
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}

.estimator-card::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, var(--orange-glow) 0%, transparent 70%);
  pointer-events: none;
}

.estimator-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 50px;
  align-items: center;
}

.estimator-grid > *,
.calc-group,
.range-slider-wrap,
.estimator-results {
  min-width: 0;
  max-width: 100%;
}

.estimator-inputs {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.calc-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.calc-group label {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--orange);
  font-weight: 600;
}

.calc-select, .calc-range {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border);
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  outline: none;
  transition: border-color 0.2s ease;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.calc-select:focus {
  border-color: var(--orange);
}

.range-slider-wrap {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.range-value-display {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.9rem;
}

.range-value-display b {
  color: var(--orange);
  font-size: 1.15rem;
}

.calc-slider {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  accent-color: var(--orange);
  cursor: pointer;
}

.estimator-results {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
  box-shadow: var(--shadow-sm);
}

.estimator-results-header {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  color: var(--text-muted);
  text-transform: uppercase;
  border-bottom: 1px dashed var(--border);
  padding-bottom: 12px;
}

.res-metrics-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.res-item span {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  text-transform: uppercase;
}

.res-item strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.7rem;
  color: var(--text-primary);
  margin-top: 4px;
}

.res-item small {
  color: var(--orange);
  font-size: 0.9rem;
}

.res-equipment-list {
  border-top: 1px dashed var(--border);
  padding-top: 14px;
  font-size: 0.8rem;
  color: var(--text-secondary);
}

/* ==========================================================================
   PROJECT ROOM / LIVE PORTFOLIO
   ========================================================================== */
.room-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  padding: 16px 20px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: 30px;
  box-shadow: var(--shadow-sm);
}

.room-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.room-tab {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-secondary);
  padding: 8px 16px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s ease;
}

.room-tab.active, .room-tab:hover {
  background: var(--orange);
  border-color: var(--orange);
  color: #ffffff;
  font-weight: 700;
}

.room-search-box {
  display: flex;
  align-items: center;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 6px 14px;
  gap: 10px;
}

.room-search-box input {
  background: transparent;
  border: none;
  outline: none;
  color: var(--text-primary);
  font-size: 0.82rem;
  width: 180px;
}

.room-project-count {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.12em;
  color: var(--orange);
  font-weight: 600;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.project-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 28px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: all 0.3s ease;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.project-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: transparent;
  transition: background 0.3s ease;
}

.project-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-orange);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.project-card:hover::before {
  background: var(--orange);
}

.project-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.card-code {
  color: var(--orange);
  font-weight: 600;
}

.card-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 0.65rem;
  background: rgba(128, 128, 128, 0.08);
  border: 1px solid var(--border);
}

.card-status-badge.site {
  color: var(--acid);
  border-color: var(--acid);
  background: var(--acid-glow);
}

.card-status-badge.shop {
  color: var(--amber);
  border-color: var(--amber);
  background: rgba(245, 158, 11, 0.12);
}

.card-status-badge.planning {
  color: #2563eb;
  border-color: #2563eb;
  background: rgba(37, 99, 235, 0.12);
}

.project-card h3 {
  font-family: var(--font-display);
  font-size: 1.45rem;
  line-height: 1.15;
  color: var(--text-primary);
  margin: 18px 0 8px;
}

.project-card-meta {
  font-size: 0.82rem;
  color: var(--text-secondary);
  margin-bottom: 20px;
}

.project-card-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 24px;
}

.spec-pill {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border);
  padding: 4px 8px;
  border-radius: 3px;
  font-family: var(--font-mono);
  font-size: 0.64rem;
  letter-spacing: 0.08em;
  color: var(--text-secondary);
  text-transform: uppercase;
}

.project-progress-wrap {
  margin-top: auto;
}

.progress-header {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.progress-header b {
  color: var(--text-primary);
}

.progress-bar {
  height: 5px;
  background: var(--border);
  border-radius: 2px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--orange), var(--amber));
  border-radius: 2px;
  transition: width 0.6s ease;
}

.project-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px dashed var(--border);
}

.crew-count {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
}

.inspect-btn {
  background: transparent;
  border: 0;
  color: var(--orange);
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 6px;
  transition: gap 0.2s ease;
}

.inspect-btn:hover {
  gap: 8px;
  color: var(--orange-hover);
}

/* ==========================================================================
   MODAL DIALOG
   ========================================================================== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(10, 14, 13, 0.75);
  backdrop-filter: blur(12px);
  z-index: 2000;
  display: grid;
  place-items: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-box {
  background: var(--bg-surface);
  border: 1px solid var(--border-orange);
  border-radius: var(--radius-md);
  width: min(850px, 100%);
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  position: relative;
  padding: 40px;
  transform: translateY(20px);
  transition: transform 0.3s ease;
  color: var(--text-primary);
}

.modal-backdrop.active .modal-box {
  transform: translateY(0);
}

.modal-close-btn {
  position: absolute;
  top: 24px;
  right: 24px;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border);
  color: var(--text-primary);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  cursor: pointer;
  font-size: 1.2rem;
  transition: background 0.2s ease;
}

.modal-close-btn:hover {
  background: var(--orange);
  color: #ffffff;
}

.modal-header {
  border-bottom: 1px solid var(--border);
  padding-bottom: 20px;
  margin-bottom: 24px;
}

.modal-header h2 {
  font-family: var(--font-display);
  font-size: 2.2rem;
  color: var(--text-primary);
  margin-top: 6px;
}

.modal-body-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 30px;
}

.modal-spec-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}

.modal-spec-table td {
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}

.modal-spec-table td:first-child {
  color: var(--text-muted);
  font-family: var(--font-mono);
  text-transform: uppercase;
  font-size: 0.72rem;
  width: 40%;
}

.modal-spec-table td:last-child {
  color: var(--text-primary);
  font-weight: 500;
}

.modal-body-sidebar {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.modal-sidebar-title {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  color: var(--orange);
  text-transform: uppercase;
}

/* ==========================================================================
   SERVICES & CAPABILITY CARDS
   ========================================================================== */
.service-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.service-feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 40px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-sm);
}

.service-feature-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-orange);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.card-num {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  color: var(--orange);
  text-transform: uppercase;
}

.service-feature-card h3 {
  font-family: var(--font-display);
  font-size: 1.85rem;
  line-height: 1.1;
  color: var(--text-primary);
  margin: 20px 0 14px;
}

.service-feature-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 24px;
}

.service-bullets {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 28px;
}

.service-bullets li::before {
  content: "";
  display: inline-block;
  width: 14px;
  height: 14px;
  margin-right: 7px;
  background: var(--orange);
  -webkit-mask: var(--check-icon) center / contain no-repeat;
  mask: var(--check-icon) center / contain no-repeat;
  --check-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 4 4L19 6'/%3E%3C/svg%3E");
}

.card-link {
  margin-top: auto;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--orange);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* EQUIPMENT FLEET TABLE */
.equipment-table-wrap {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow-x: auto;
  box-shadow: var(--shadow-sm);
}

.equipment-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.88rem;
}

.equipment-table th {
  background: var(--bg-surface-elevated);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--orange);
  padding: 18px 24px;
  border-bottom: 1px solid var(--border);
}

.equipment-table td {
  padding: 16px 24px;
  border-bottom: 1px solid var(--border-subtle);
  color: var(--text-secondary);
}

.equipment-table tr:hover td {
  background: rgba(128, 128, 128, 0.05);
  color: var(--text-primary);
}

.status-badge-live {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 3px;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  text-transform: uppercase;
  background: var(--acid-glow);
  color: var(--acid);
  border: 1px solid var(--acid);
}

/* ==========================================================================
   ABOUT & LEADERSHIP
   ========================================================================== */
.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.team-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 28px;
  text-align: center;
  transition: transform 0.3s ease;
  box-shadow: var(--shadow-sm);
}

.team-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-orange);
  box-shadow: var(--shadow-md);
}

.team-avatar {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  background: var(--bg-surface-elevated);
  border: 2px solid var(--orange);
  margin: 0 auto 18px;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--text-primary);
  font-weight: 700;
}

.team-card h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--text-primary);
}

.team-role {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--orange);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-top: 4px;
}

.team-bio {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 12px;
}

.timeline-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  position: relative;
  margin-top: 40px;
}

.timeline-list::before {
  content: "";
  position: absolute;
  top: 24px;
  left: 30px;
  right: 30px;
  height: 2px;
  background: var(--border);
  z-index: 1;
}

.timeline-item {
  position: relative;
  z-index: 2;
}

.timeline-bullet {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--bg-surface);
  border: 2px solid var(--orange);
  display: grid;
  place-items: center;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 18px;
  box-shadow: var(--shadow-sm);
}

.timeline-item h4 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--text-primary);
}

.timeline-item p {
  font-size: 0.84rem;
  color: var(--text-secondary);
  margin-top: 8px;
}

/* ==========================================================================
   CONTACT PAGE & RFP
   ========================================================================== */
.contact-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 60px;
}

.office-cards-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.office-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}

.office-card h4 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--text-primary);
}

.office-badge {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--orange);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.office-card address {
  font-style: normal;
  font-size: 0.86rem;
  color: var(--text-secondary);
  margin: 10px 0;
  line-height: 1.5;
}

.office-card a {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--text-primary);
}

.office-card a:hover {
  color: var(--orange);
}

.rfp-form-card {
  background: var(--bg-card);
  border: 1px solid var(--border-orange);
  border-radius: var(--radius-md);
  padding: 40px;
  box-shadow: var(--shadow-md);
}

.rfp-form-card h3 {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.rfp-form-card p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 28px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-field.full {
  grid-column: 1 / -1;
}

.form-field label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.form-field input, .form-field select, .form-field textarea {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  color: var(--text-primary);
  outline: none;
  transition: border-color 0.2s ease;
}

.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  border-color: var(--orange);
  box-shadow: 0 0 10px var(--orange-glow);
}

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

.form-submit-row {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 10px;
}

.form-feedback-box {
  grid-column: 1 / -1;
  display: none;
  padding: 18px 24px;
  background: var(--acid-glow);
  border: 1px solid var(--acid);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
}

.form-feedback-box.active {
  display: block;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
  background: #07121f;
  border-top: 1px solid var(--border);
  padding: 80px 0 30px;
  color: #a9b5ae;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 0.8fr 1fr;
  gap: 50px;
  margin-bottom: 60px;
}

.footer-brand p {
  color: #748279;
  font-size: 0.9rem;
  margin-top: 16px;
  max-width: 340px;
}

.footer-logo-link {
  display: inline-flex;
}

.footer-logo {
  display: block;
  width: 250px;
  height: auto;
  max-height: 112px;
  object-fit: contain;
  object-position: left center;
}

.footer-col h4 {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 20px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 0.88rem;
}

.footer-links a:hover {
  color: #ffffff;
  padding-left: 4px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.74rem;
  font-family: var(--font-mono);
  letter-spacing: 0.1em;
  color: #748279;
  text-transform: uppercase;
}

/* ==========================================================================
   PAGE HERO COMPONENT
   ========================================================================== */
.page-hero {
  padding: 90px 0 70px;
  position: relative;
  background: var(--bg-surface-elevated);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
  transition: background-color 0.3s ease;
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--hero-grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--hero-grid-line) 1px, transparent 1px);
  background-size: 50px 50px;
  pointer-events: none;
}

.page-hero h1 {
  font-size: clamp(3.2rem, 6.5vw, 6rem);
  line-height: 0.96;
  margin: 12px 0 18px;
  color: var(--text-primary);
}

.breadcrumb {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--orange);
}

.page-hero-desc {
  max-width: 650px;
  font-size: 1.15rem;
  color: var(--text-secondary);
}

/* ==========================================================================
   RESPONSIVE MEDIA QUERIES
   ========================================================================== */
@media (max-width: 1080px) {
  .metrics-grid, .team-grid, .projects-grid, .service-cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .estimator-grid, .section-head, .contact-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .timeline-list {
    grid-template-columns: 1fr 1fr;
  }
  .timeline-list::before {
    display: none;
  }
  .field-proof-grid {
    grid-template-columns: 1.25fr .9fr;
  }
  .gallery-strip {
    grid-template-columns: 1fr 1fr;
  }
  .gallery-strip figure:last-child {
    grid-column: 1 / -1;
    min-height: 340px;
  }
}

@media (max-width: 768px) {
  .topbar {
    display: none;
  }
  .menu-btn {
    display: inline-flex;
  }
  .nav-links {
    display: none;
    position: absolute;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: var(--nav-bg);
    border-bottom: 1px solid var(--border);
    padding: 24px;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    box-shadow: var(--shadow-lg);
  }
  .nav-links.open {
    display: flex;
  }
  .nav-links a {
    padding: 12px 16px;
  }
  .hero {
    min-height: 660px;
    align-items: flex-start;
  }
  .hero-content {
    padding: 96px 0 64px;
  }
  .hero h1 {
    font-size: clamp(3rem, 12.5vw, 4.5rem);
    line-height: 0.98;
    letter-spacing: -0.04em;
  }
  .hero h1 small {
    font-size: 0.26em;
    line-height: 1.35;
    letter-spacing: 0.13em;
    margin-bottom: 18px;
  }
  .hero-copy {
    margin-top: 28px;
  }
  .hero-copy p {
    font-size: 1rem;
    line-height: 1.65;
  }
  .hero-meta-strip {
    gap: 16px;
    margin-top: 34px;
  }
  .estimator-card {
    padding: 24px;
    overflow: hidden;
  }
  .estimator-grid {
    gap: 28px;
  }
  .estimator-inputs {
    gap: 22px;
  }
  .calc-select {
    display: block;
    font-size: 0.92rem;
    padding: 12px;
  }
  .range-value-display {
    flex-wrap: wrap;
    gap: 6px 12px;
  }
  .estimator-results {
    padding: 24px;
  }
  .res-metrics-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .res-item {
    padding-bottom: 14px;
    border-bottom: 1px dashed var(--border);
  }
  .res-item:last-child {
    padding-bottom: 0;
    border-bottom: 0;
  }
  .res-equipment-list {
    overflow-wrap: anywhere;
  }
  .brand-logo {
    width: 165px;
    height: 58px;
  }
  .theme-indicator {
    width: 28px;
    height: 28px;
  }
  .field-proof-grid,
  .gallery-strip {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }
  .project-photo,
  .project-photo-main,
  .gallery-strip figure,
  .gallery-strip figure:last-child {
    grid-column: auto;
    grid-row: auto;
    min-height: 360px;
  }
  .project-photo-tall {
    min-height: 520px;
  }
  .field-proof-note {
    grid-template-columns: auto 1fr;
  }
  .field-proof-note .card-link {
    grid-column: 2;
  }
  .hero-stamp-badge {
    display: none;
  }
  .metrics-grid, .team-grid, .projects-grid, .service-cards-grid, .footer-grid, .timeline-list {
    grid-template-columns: 1fr;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .modal-body-grid {
    grid-template-columns: 1fr;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .wrap {
    width: min(calc(100% - 30px), var(--max));
  }
  .brand-logo {
    width: 140px;
    height: 52px;
  }
  .theme-indicator {
    width: 26px;
    height: 26px;
  }
  .nav-inner {
    gap: 10px;
  }
  .section {
    padding: 76px 0;
  }
  .estimator-card {
    padding: 18px;
  }
  .estimator-results {
    padding: 18px;
    gap: 16px;
  }
  .estimator-results-header {
    line-height: 1.55;
  }
  .hero {
    min-height: 700px;
  }
  .hero h1 {
    font-size: clamp(2.75rem, 12vw, 3.7rem);
  }
  .project-photo,
  .project-photo-main,
  .gallery-strip figure,
  .gallery-strip figure:last-child {
    min-height: 310px;
  }
}

/* ==========================================================================
   CARD THUMBNAILS & BANNER SHOWCASE
   ========================================================================== */
.card-thumb {
  position: relative;
  width: 100%;
  height: 220px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin-bottom: 22px;
  border: 1px solid var(--border);
  background: var(--bg-surface-elevated);
}

.card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease, filter 0.45s ease;
  display: block;
}

.service-feature-card:hover .card-thumb img {
  transform: scale(1.06);
}

.banner-showcase-card {
  background: var(--bg-card);
  border: 1.5px solid var(--border-orange);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  margin-bottom: 40px;
  transition: all 0.3s ease;
}

.banner-showcase-card:hover {
  box-shadow: var(--shadow-lg);
  border-color: var(--orange);
}

.banner-img-wrap {
  width: 100%;
  background: #000;
  position: relative;
  overflow: hidden;
}

.banner-img-wrap img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}

.banner-details-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  padding: 20px 28px;
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
}

/* ==========================================================================
   GALLERY PAGE SPECIFIC STYLES
   ========================================================================== */
.gallery-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 36px;
  padding: 16px 20px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

.gallery-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.gallery-filter-btn {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 8px 16px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.gallery-filter-btn:hover {
  background: var(--bg-card-hover);
  color: var(--text-primary);
  border-color: var(--orange);
}

.gallery-filter-btn.active {
  background: var(--orange);
  color: #ffffff;
  border-color: var(--orange);
  font-weight: 600;
  box-shadow: 0 2px 8px var(--orange-glow);
}

.gallery-search-box {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 8px 14px;
  min-width: 260px;
}

.gallery-search-box input {
  background: transparent;
  border: none;
  outline: none;
  color: var(--text-primary);
  font-size: 0.85rem;
  width: 100%;
}

.gallery-counter-badge {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  text-transform: uppercase;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

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

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

.gallery-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  position: relative;
}

.gallery-card:hover {
  border-color: var(--border-orange);
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.gallery-card-media {
  position: relative;
  width: 100%;
  height: 260px;
  overflow: hidden;
  background: #091827;
}

.gallery-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
  display: block;
}

.gallery-card:hover .gallery-card-media img {
  transform: scale(1.08);
}

.gallery-tag-pill {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(7, 18, 31, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(8px);
  padding: 4px 10px;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  color: var(--orange);
  font-weight: 600;
}

.gallery-category-pill {
  position: absolute;
  top: 14px;
  right: 14px;
  background: rgba(7, 18, 31, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(8px);
  padding: 4px 10px;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  color: #fff;
  text-transform: uppercase;
}

.gallery-card-content {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.gallery-card-title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  line-height: 1.15;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.gallery-card-desc {
  font-size: 0.86rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 16px;
  flex: 1;
}

.gallery-card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--border);
  padding-top: 14px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
}

.gallery-inspect-btn {
  color: var(--orange);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: gap 0.2s ease;
}

.gallery-card:hover .gallery-inspect-btn {
  gap: 8px;
}

/* LIGHTBOX MODAL */
.lightbox-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(3, 10, 18, 0.92);
  backdrop-filter: blur(12px);
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.lightbox-backdrop.active {
  display: flex;
}

.lightbox-dialog {
  background: var(--bg-surface);
  border: 1px solid var(--border-orange);
  border-radius: var(--radius-md);
  width: min(1200px, 96vw);
  max-height: 92vh;
  overflow: hidden;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5);
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  position: relative;
  animation: modal-pop 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

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

@media (max-width: 900px) {
  .lightbox-dialog {
    grid-template-columns: 1fr;
    max-height: 94vh;
    overflow-y: auto;
  }
}

.lightbox-media-box {
  background: #050d17;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 20px;
  min-height: 380px;
}

.lightbox-media-box img {
  max-width: 100%;
  max-height: 75vh;
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.4);
}

.lightbox-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(7, 18, 31, 0.85);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  cursor: pointer;
  font-size: 1.2rem;
  transition: all 0.2s ease;
  z-index: 5;
}

.lightbox-nav-btn:hover {
  background: var(--orange);
  border-color: var(--orange);
}

.lightbox-prev { left: 16px; }
.lightbox-next { right: 16px; }

.lightbox-close-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border);
  color: var(--text-primary);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  cursor: pointer;
  font-size: 1.1rem;
  z-index: 10;
  transition: all 0.2s ease;
}

.lightbox-close-btn:hover {
  background: var(--orange);
  color: #fff;
}

.lightbox-sidebar {
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  background: var(--bg-surface);
}

.lightbox-header-tag {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--orange);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.lightbox-title {
  font-family: var(--font-display);
  font-size: 1.85rem;
  line-height: 1.1;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.lightbox-desc {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 24px;
}

.lightbox-spec-list {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.84rem;
  margin-bottom: 24px;
}

.lightbox-spec-list td {
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}

.lightbox-spec-list td:first-child {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  color: var(--text-muted);
  width: 42%;
}

.lightbox-spec-list td:last-child {
  color: var(--text-primary);
  font-weight: 500;
}

/* ==========================================================================
   VIDEO SHOWCASE COMPONENT
   ========================================================================== */
.video-showcase-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

@media (max-width: 860px) {
  .video-showcase-grid {
    grid-template-columns: 1fr;
  }
}

.video-card {
  background: var(--bg-card);
  border: 1px solid var(--border-orange);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.video-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.video-player-wrap {
  position: relative;
  width: 100%;
  background: #000;
  aspect-ratio: 16 / 9;
  display: flex;
  align-items: center;
  justify-content: center;
}

.video-player-wrap video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.video-card-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.video-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 8px;
}

.video-title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  line-height: 1.15;
  color: var(--text-primary);
  margin-bottom: 10px;
}

.video-desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

/* ==========================================================================
   AUTOMATION SOLUTIONS BRAND GRID (12 BRANDS + HVAC)
   ========================================================================== */
.automation-banner {
  background: linear-gradient(135deg, rgba(154, 101, 0, 0.08) 0%, rgba(12, 27, 43, 0.04) 100%);
  border: 1px solid var(--border-orange);
  border-radius: var(--radius-md);
  padding: 40px;
  margin-bottom: 50px;
}

.automation-brands-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 28px;
}

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

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

.automation-brand-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 20px 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  transition: all 0.25s ease;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}

.automation-brand-card:hover {
  border-color: var(--orange);
  background: var(--bg-card-hover);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.brand-number {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--orange);
  letter-spacing: 0.1em;
  margin-bottom: 6px;
}

.brand-title {
  font-family: var(--font-display);
  font-size: 1.22rem;
  letter-spacing: 0.04em;
  color: var(--text-primary);
  font-weight: 700;
  text-transform: uppercase;
}

.brand-sub {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
  margin-top: 4px;
}

/* ==========================================================================
   PRODUCT SUPPLIES GRID
   ========================================================================== */
.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

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

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

.product-supply-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 30px;
  display: flex;
  flex-direction: column;
  transition: all 0.3s ease;
}

.product-supply-card:hover {
  border-color: var(--border-orange);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.product-supply-card h4 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--text-primary);
  margin: 14px 0 10px;
}

.product-supply-card p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.55;
  margin-bottom: 16px;
}

.product-brands-strip {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--orange);
}

/* ==========================================================================
   PRESENCE COUNTRIES CHIPS
   ========================================================================== */
.countries-list {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 16px;
}

.country-chip {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-orange);
  padding: 8px 16px;
  border-radius: 20px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-primary);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.country-chip .ui-icon {
  color: var(--orange);
}


