/* ==========================================================================
   METALLIST CONSULTANTS - CORE STYLESHEET
   Design System: Industrial Excellence, Modernist Dark & High Contrast
   ========================================================================== */

:root {
  /* Brand Color Palette */
  --color-primary: #E52E2D;        /* Metalist Signature Red */
  --color-primary-dark: #C62120;
  --color-primary-light: #FF4A49;
  --color-primary-glow: rgba(229, 46, 45, 0.25);
  
  --color-bg-dark: #FFFFFF;        /* Main Page Background */
  --color-bg-surface: #F8FAFC;     /* Surface Light Slate Grey */
  --color-bg-card: #FFFFFF;        /* Elevated Card Background */
  --color-bg-grey: #F1F5F9;        /* Alternating Section Grey */
  --color-bg-grey-alt: #F8FAFC;    /* Subtle Light Grey */
  --color-bg-subtle: #F1F5F9;
  --color-bg-elevated: #FFFFFF;    /* Popovers / Floating components */
  
  --color-border: #E2E8F0;
  --color-border-hover: rgba(229, 46, 45, 0.5);
  --color-border-bright: #CBD5E1;

  --color-text-main: #0F172A;      /* Deep Slate Charcoal */
  --color-text-muted: #475569;     /* Slate Secondary */
  --color-text-subtle: #64748B;
  --color-text-dim: #94A3B8;

  /* High contrast light tokens for white-base map / light cards */
  --color-light-base: #FFFFFF;
  --color-light-surface: #F8FAFC;
  --color-light-border: #E2E8F0;
  --color-light-text: #0F172A;
  --color-light-muted: #64748B;

  /* Typography */
  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  /* Transitions & Shadows */
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-medium: 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-slow: 0.6s cubic-bezier(0.16, 1, 0.3, 1);

  --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 10px 25px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 20px 45px rgba(15, 23, 42, 0.12);
  --shadow-glow: 0 0 30px rgba(229, 46, 45, 0.2);

  --container-max: 1140px;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --radius-full: 9999px;
}

/* Base Reset & Box Sizing */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
  width: 100%;
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-text-main);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  width: 100%;
  background-color: var(--color-bg-dark);
}

main {
  flex: 1;
}

img, svg, picture {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* Layout Utilities */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 2rem;
  padding-right: 2rem;
}

@media (max-width: 640px) {
  .container {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }
}

.section-padding {
  padding-top: 6rem;
  padding-bottom: 6rem;
}

@media (max-width: 768px) {
  .section-padding {
    padding-top: 4rem;
    padding-bottom: 4rem;
  }
}

.text-center {
  text-align: center !important;
}

/* ==========================================================================
   HEADER & GLOBAL NAVIGATION
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: transparent;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  transition: background var(--transition-medium), border-color var(--transition-medium), box-shadow var(--transition-medium), transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.site-header.scrolled,
.site-header.header-light {
  background: #ffffff;
  border-bottom: 1px solid #E2E8F0;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.06);
}

.site-header.drawer-open {
  background: #ffffff !important;
  border-bottom: 1px solid #E2E8F0 !important;
}

/* Force dark logo, dark text, and dark toggle when drawer is open (because header is white) */
.site-header.drawer-open .brand-logo .logo-dark {
  display: block !important;
}
.site-header.drawer-open .brand-logo .logo-light {
  display: none !important;
}
.site-header.drawer-open .brand-fallback-text,
.site-header.drawer-open .brand-logo-text {
  color: #0F172A !important;
}
.site-header.drawer-open .mobile-toggle span {
  background-color: #0F172A !important;
}

.site-header.header-hidden {
  transform: translateY(-100%);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 100px;
  padding: 10px 0;
}

/* Brand Logo */
.brand-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.2rem;
  z-index: 1010;
  text-decoration: none;
}

.brand-logo img {
  height: 68px;
  min-height: 60px;
  width: auto;
  object-fit: contain;
  transition: opacity var(--transition-fast);
}

/* Dual logo support for automatic dark / light context */
.brand-logo .logo-dark {
  display: block;
}

.brand-logo .logo-light {
  display: none;
}

/* Transparent hero on home page before scrolling */
.site-header:not(.scrolled):not(.header-light) .brand-logo .logo-dark {
  display: none;
}

.site-header:not(.scrolled):not(.header-light) .brand-logo .logo-light {
  display: block;
}

/* Scrolled, light header */
.site-header.scrolled .brand-logo .logo-dark,
.site-header.header-light .brand-logo .logo-dark {
  display: block;
}

.site-header.scrolled .brand-logo .logo-light,
.site-header.header-light .brand-logo .logo-light {
  display: none;
}

/* In dark footers */
.site-footer .brand-logo .logo-dark {
  display: none !important;
}

.site-footer .brand-logo .logo-light {
  display: block !important;
}

.brand-fallback-text {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #FFFFFF;
  transition: color var(--transition-fast);
}

.site-header.scrolled .brand-fallback-text,
.site-header.header-light .brand-fallback-text {
  color: var(--color-text-main);
}

.brand-fallback-text span {
  color: #E52E2D; font-weight: 800; font-size: 1.1rem;
}

/* Navigation Links */
.main-nav {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}

@media (max-width: 1200px) and (min-width: 1025px) {
  .main-nav {
    gap: 1.5rem;
  }
  .nav-link {
    font-size: 1rem !important;
  }
}

@media (max-width: 1024px) {
  .main-nav {
    display: none;
  }
}

.nav-link {
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: rgba(255, 255, 255, 0.9);
  position: relative;
  padding: 0.5rem 0;
  transition: color var(--transition-fast);
  white-space: nowrap;
}

.nav-link:hover,
.nav-link.active {
  color: #FFFFFF;
}

.site-header.scrolled .nav-link,
.site-header.header-light .nav-link {
  color: #1E293B;
}

.site-header.scrolled .nav-link:hover,
.site-header.scrolled .nav-link.active,
.site-header.header-light .nav-link:hover,
.site-header.header-light .nav-link.active {
  color: #E52E2D; font-weight: 800; font-size: 1.1rem;
  font-weight: 700;
}


.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: #E52E2D; font-weight: 800; font-size: 1.1rem;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform var(--transition-medium);
}

.nav-link:hover::after,
.nav-link.active::after {
  transform: scaleX(1);
  transform-origin: left;
}

/* Header Action Buttons */
.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background-color: #E52E2D; font-weight: 800; font-size: 1.1rem;
  color: #FFFFFF;
  padding: 0.65rem 1.4rem;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
  box-shadow: 0 4px 15px rgba(229, 46, 45, 0.3);
}

.btn-primary:hover {
  background-color: var(--color-primary-light);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(229, 46, 45, 0.45);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background-color: transparent;
  color: #FFFFFF;
  border: 1px solid var(--color-border);
  padding: 0.65rem 1.4rem;
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}

.btn-outline:hover {
  border-color: #E52E2D; font-weight: 800; font-size: 1.1rem;
  color: #E52E2D; font-weight: 800; font-size: 1.1rem;
  background-color: rgba(229, 46, 45, 0.05);
}

/* Mobile Menu Toggle */
.mobile-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 44px;
  height: 44px;
  gap: 6px;
  z-index: 1010;
}

@media (max-width: 1024px) {
  .mobile-toggle {
    display: flex;
  }
}

.mobile-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: #FFFFFF;
  transition: transform var(--transition-fast), opacity var(--transition-fast), background-color var(--transition-fast);
}

.site-header.scrolled .mobile-toggle span,
.site-header.header-light .mobile-toggle span {
  background-color: var(--color-text-main);
}

.mobile-toggle.is-active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.mobile-toggle.is-active span:nth-child(2) {
  opacity: 0;
}

.mobile-toggle.is-active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* Mobile Drawer */
.mobile-drawer {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh; /* Better support for mobile browser UI */
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(25px);
  padding: 110px 1.5rem 2rem 1.5rem; /* Top padding clears the header */
  display: flex;
  flex-direction: column;
  gap: 0;
  transform: translateX(100%);
  opacity: 1;
  pointer-events: none;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease;
  z-index: 999;
  overflow-y: auto;
}

.mobile-drawer.open {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}

.mobile-nav-link {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 500;
  padding: 1.15rem 1.5rem;
  margin: 0 -1.5rem; /* Bleed to the edge of the drawer */
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  color: #0F172A;
  text-decoration: none;
  display: block;
  letter-spacing: 0.02em;
  transition: all 0.3s ease;
}

.mobile-nav-link:first-child {
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.mobile-nav-link:hover, .mobile-nav-link:active {
  background: rgba(0, 0, 0, 0.03);
  color: #E52E2D;
}

.mobile-nav-link.active {
  color: #E52E2D;
  font-weight: 700;
  background: linear-gradient(90deg, rgba(229,46,45,0.08) 0%, rgba(229,46,45,0) 100%);
  border-left: 4px solid #E52E2D;
  padding-left: calc(1.5rem - 4px);
}

/* ==========================================================================
   BECHTEL-STYLE HERO SECTION (index.html)
   ========================================================================== */
.bechtel-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 100px;
  padding-bottom: 5rem;
  overflow: hidden;
  background-color: #060911;
}

/* Hero Background Media with industrial imagery */
.hero-media {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  overflow: hidden;
}

.hero-media-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.05);
  animation: heroKenBurns 24s ease-in-out infinite alternate;
  filter: brightness(0.65) contrast(1.1);
}

@keyframes heroKenBurns {
  0% { transform: scale(1.03) translate(0, 0); }
  100% { transform: scale(1.12) translate(-1%, -1%); }
}

/* Industrial dark gradient overlays matching Bechtel */
.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  background: rgba(0, 0, 0, 0.45);
}

.hero-content-wrapper {
  position: relative;
  z-index: 10;
  display: block;
  max-width: 920px;
  width: 100%;
}

@media (max-width: 1024px) {
  .hero-content-wrapper {
    max-width: 100%;
  }
}

/* Left Hero Typography */
.hero-text-col {
  max-width: 820px;
}

.hero-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.9rem;
  background: rgba(229, 46, 45, 0.15);
  border: 1px solid rgba(229, 46, 45, 0.4);
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-primary-light);
  margin-bottom: 1.5rem;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 3.8vw, 3.25rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.015em;
  color: #FFFFFF;
  margin-bottom: 1.5rem;
}

.hero-subtitle {
  font-size: clamp(1.125rem, 1.8vw, 1.35rem);
  font-weight: 400;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.85);
  max-width: 680px;
  margin-bottom: 2.5rem;
}

/* CTA Arrow Link (Bechtel style: circular red badge with arrow) */
.hero-cta-link {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  color: #FFFFFF;
  font-weight: 600;
  font-size: 1.05rem;
  transition: color var(--transition-fast);
}

.hero-cta-link:hover {
  color: var(--color-primary-light);
}

.hero-cta-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: #E52E2D; font-weight: 800; font-size: 1.1rem;
  color: #FFFFFF;
  transition: transform var(--transition-medium), background-color var(--transition-fast);
}

.hero-cta-link:hover .hero-cta-icon {
  transform: scale(1.1) rotate(45deg);
  background-color: var(--color-primary-light);
}

/* ==========================================================================
   BECHTEL-STYLE CONTINUOUS NEWS CARD WIDGET
   ========================================================================== */
.hero-news-widget-wrapper {
  display: flex;
  justify-content: flex-end;
}

@media (max-width: 1024px) {
  .hero-news-widget-wrapper {
    justify-content: flex-start;
  }
}

.hero-news-card {
  width: 100%;
  max-width: 340px;
  background: #FFFFFF;
  color: #0F172A;
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
  position: relative;
  transition: transform var(--transition-medium), box-shadow var(--transition-medium);
  overflow: visible;
  top: 4rem;
  left: 2rem;
}

.hero-news-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.7);
}

.news-card-viewport {
  overflow: hidden;
  width: 100%;
}

.news-card-track {
  display: flex;
  transition: transform 0.5s ease-in-out;
}

.news-card-slide {
  flex: 0 0 100%;
  width: 100%;
}

.news-card-image-wrap {
  position: relative;
  width: 100%;
  height: 140px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin-bottom: 1rem;
  background: #090D16;
}

.news-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.hero-news-card:hover .news-card-img {
  transform: scale(1.08);
}

.news-tag-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(9, 13, 22, 0.85);
  backdrop-filter: blur(4px);
  color: #FFFFFF;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-sm);
  text-transform: uppercase;
}

.news-headline {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.35;
  color: #0F172A;
  margin-bottom: 0.75rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-desc {
  font-size: 0.75rem;
  line-height: 1.5;
  color: #475569;
  margin-bottom: 1.25rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.75rem;
  border-top: 1px solid #E2E8F0;
}

/* Dots & Progress */
.news-dots {
  display: flex;
  align-items: center;
  gap: 6px;
}

.news-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #CBD5E1;
  transition: all var(--transition-fast);
  cursor: pointer;
}

.news-dot.active {
  width: 24px;
  border-radius: 4px;
  background: var(--color-primary);
}

/* Circular Red Arrow Link */
.news-arrow-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(229, 46, 45, 0.1);
  color: #E52E2D; font-weight: 800; font-size: 1.1rem;
  transition: all var(--transition-fast);
}

.news-arrow-btn:hover {
  background: var(--color-primary);
  color: #FFFFFF;
  transform: rotate(45deg);
}

/* Left/Right floating controls for hero news */
.news-widget-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.5);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  z-index: 10;
  transition: all var(--transition-fast);
}

.news-widget-nav:hover {
  background: var(--color-primary);
}

.news-widget-nav.prev {
  left: -20px;
}

.news-widget-nav.next {
  right: -20px;
}

/* ==========================================================================
   METRICS BANNER
   ========================================================================== */
.metrics-banner {
  background: var(--color-bg-grey);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  padding: 3rem 0;
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.5rem;
}

@media (max-width: 1024px) {
  .metrics-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 640px) {
  .metrics-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
}

.metric-item {
  display: flex;
  flex-direction: column;
}

.metric-val {
  font-family: var(--font-heading);
  font-size: clamp(1.1rem, 1.6vw, 1.6rem);
  font-weight: 800;
  line-height: 1;
  color: var(--color-text-main);
  margin-bottom: 0.5rem;
  white-space: nowrap;
}

.metric-label {
  font-size: 1rem;
  font-weight: 800;
  color: #E52E2D;
  margin-bottom: 0.25rem;
  white-space: nowrap;
}

.metric-sub {
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

/* ==========================================================================
   SECTION HEADERS & REUSABLE CARDS
   ========================================================================== */
.section-header {
  margin-bottom: 3.5rem;
}

.section-tag {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #E52E2D; font-weight: 800; font-size: 1.1rem;
  margin-bottom: 0.75rem;
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--color-text-main);
}

.section-desc {
  font-size: 1.1rem;
  color: var(--color-text-muted);
  max-width: 720px;
  margin-top: 1rem;
}

/* Grey & White Section Utility Classes */
.section-grey {
  background-color: var(--color-bg-grey);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.section-white {
  background-color: #FFFFFF;
}

.section-grey-alt {
  background-color: var(--color-bg-grey-alt);
}

/* Card Style standard */
.card-dark {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 2rem;
  transition: all var(--transition-medium);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  color: var(--color-text-main);
}

.card-dark:hover {
  border-color: #E52E2D; font-weight: 800; font-size: 1.1rem;
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.card-dark::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 100%;
  background: var(--color-primary);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform var(--transition-medium);
}

.card-dark:hover::before {
  transform: scaleY(1);
}

/* Client Logo Grid / Strip */
.clients-strip {
  padding: 4.5rem 0;
  background: var(--color-bg-grey);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.clients-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.5rem;
  align-items: center;
}

.client-logo-item {
  background: #FFFFFF;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 1.25rem 1rem;
  text-align: center;
  transition: all var(--transition-fast);
  box-shadow: var(--shadow-sm);
}

.client-logo-item:hover {
  background: #FFFFFF;
  border-color: #E52E2D; font-weight: 800; font-size: 1.1rem;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.client-name {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--color-text-main);
}

.client-type {
  font-size: 0.725rem;
  color: var(--color-text-muted);
  margin-top: 0.25rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ==========================================================================
   FOOTER (Industrial Sleek Slate Charcoal)
   ========================================================================== */
.site-footer {
  background: #0F172A;
  border-top: 1px solid #1E293B;
  padding: 3rem 0 1.5rem 0;
  margin-top: auto;
  color: #94A3B8;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1.5fr;
  gap: 3rem;
  margin-bottom: 2rem;
}

@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}


.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  height: 100%;
}

.footer-brand p {
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 1.25rem auto 1.5rem auto;
  color: #94A3B8;
  max-width: 360px;
}

.footer-heading {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 1.5rem;
  letter-spacing: 0.02em;
  text-align: center;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.footer-links a {
  color: #CBD5E1;
  font-size: 0.9rem;
  transition: color var(--transition-fast), transform var(--transition-fast);
  display: inline-block;
}

.footer-links a:hover {
  color: #FFFFFF;
  transform: translateX(4px);
}

.footer-contact-item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
  font-size: 0.9rem;
  color: #CBD5E1;
}

.footer-contact-item svg {
  width: 18px;
  height: 18px;
  color: #E52E2D; font-weight: 800; font-size: 1.1rem;
  flex-shrink: 0;
  margin-top: 3px;
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.75rem;
  color: #64748B;
}

/* Responsive helpers */
@media (max-width: 768px) {
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

/* ==========================================================================
   ZOOM NOTICE BANNER
   Helps users detect and reset accidental browser zoom discrepancies
   ========================================================================== */
.zoom-notice-banner {
  position: fixed;
  top: 96px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 99999;
  background: #0F172A;
  color: #FFFFFF;
  padding: 0.65rem 1.4rem;
  border-radius: 9999px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.88rem;
  font-family: var(--font-body);
  animation: slideDownZoom 0.3s ease;
  pointer-events: auto;
}

@keyframes slideDownZoom {
  from {
    opacity: 0;
    transform: translate(-50%, -15px);
  }
  to {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}

.zoom-notice-banner kbd {
  background: rgba(255, 255, 255, 0.25);
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  font-family: monospace;
  font-size: 0.75rem;
  font-weight: 700;
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #FFFFFF;
}

.zoom-notice-banner strong {
  color: #FBBF24;
}

.zoom-notice-banner .btn-close-zoom {
  background: none;
  border: none;
  color: #94A3B8;
  font-size: 1.3rem;
  cursor: pointer;
  line-height: 1;
  padding: 0 0.25rem;
  transition: color 0.2s;
}

.zoom-notice-banner .btn-close-zoom:hover {
  color: #FFFFFF;
}




#static-services-container .card-dark {
  flex: 1 1 300px;
  max-width: 380px;
  width: 100%;
}


/* Live Pulsing Animation for Maps */
@keyframes live-pulse {
  0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { box-shadow: 0 0 0 10px rgba(16, 185, 129, 0); }
  100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.pulsing-live-dot, .pulsing-live-ring {
  animation: live-pulse 2s infinite;
}

.pulsing-live-ring {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  pointer-events: none;
}

.pulsing-live-dot-inline { animation: live-pulse 2s infinite; }

.brand-logo-text {
    color: #FFFFFF;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.5px;
  white-space: nowrap;
  font-family: var(--font-body);
}
.site-header.scrolled .brand-logo-text,
.site-header.header-light .brand-logo-text {
    color: #0F172A;
}

/* Live Projects Carousel */
.live-projects-container {
  display: flex;
  flex-direction: column;
  width: 100%;
}
.live-projects-title {
  font-family: var(--font-heading);
  font-weight: 700;
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
}
.lp-carousel-wrapper {
  overflow: hidden;
  position: relative;
  width: 100%;
  padding: 8px 6px 12px;
  margin-top: -4px;
}
.lp-arrow {
  position: absolute;
  top: 55%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(0, 0, 0, 0.08);
  color: #10B981;
  font-size: 1.5rem;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
  line-height: 1;
}
.lp-arrow:hover {
  background: #ffffff;
  color: #059669;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  transform: translateY(-50%) scale(1.05);
}
.lp-prev { left: -8px; }
.lp-next { right: -8px; }
.lp-carousel {
  display: flex;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
  width: 100%;
}
.lp-card {
    min-width: 100%;
    background: #ffffff;
    border: 2px solid #e2e8f0;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    border-radius: 14px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
    display: flex;
    flex-direction: column;
    cursor: pointer;
    overflow: hidden;
    height: 150px;
    box-sizing: border-box;
  }
.lp-card:hover { 
  transform: translateY(-3px); 
  box-shadow: 0 10px 25px rgba(0,0,0,0.08); 
}
.lp-card.active {
  border-color: #2563EB;
  animation: lp-blue-glow-blink 1.8s ease-in-out infinite;
}
.lp-card.active:hover {
  transform: translateY(-3px);
  box-shadow: 0 0 25px rgba(37, 99, 235, 0.5), 0 12px 25px rgba(0, 0, 0, 0.08);
}
@keyframes lp-blue-glow-blink {
  0%, 100% {
    border-color: rgba(37, 99, 235, 0.4);
    box-shadow: 
      0 0 10px rgba(37, 99, 235, 0.2), 
      0 4px 15px rgba(0, 0, 0, 0.04);
  }
  50% {
    border-color: #2563EB;
    box-shadow: 
      0 0 18px 2px rgba(37, 99, 235, 0.45), 
      0 0 32px 6px rgba(37, 99, 235, 0.2), 
      inset 0 0 12px rgba(37, 99, 235, 0.08),
      0 8px 22px rgba(0, 0, 0, 0.06);
  }
}
.lp-card-content {
    padding: 1.2rem 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    flex: 1;
    height: 100%;
    gap: 8px;
  }
.lp-card-logo {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
  }
  .lp-card-name {
    text-align: center;
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 600;
    color: #334155;
    margin: 0;
  }
.lp-card-logo img {
  max-width: 155px;
  max-height: 80px;
  object-fit: contain;
  transition: transform 0.3s ease;
}
.lp-card:hover .lp-card-logo img {
  transform: scale(1.05);
}
.text-logo {
  text-align: center;
  width: 100%;
}
.text-logo span {
  display: block;
  transition: transform 0.3s ease;
}
.lp-card:hover .text-logo span {
  transform: scale(1.05);
}

.lp-dot {
  width: 8px;
  height: 8px;
  border-radius: 4px;
  background-color: #e5e7eb;
  position: relative;
  overflow: hidden;
  transition: width 0.3s ease;
}
.lp-dot.active {
  width: 28px;
  background-color: #e5e7eb;
}
.lp-dot.active::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0;
  background-color: #2563EB;
  border-radius: 4px;
  animation: lp-dot-progress 2.2s linear forwards;
}
@keyframes lp-dot-progress {
  from { width: 0; }
  to { width: 100%; }
}

/* Removed duplicate override */

/* ==========================================================================
   GLOBAL RESPONSIVE OVERRIDES
   Ensures the website is responsive across all devices without altering HTML
   ========================================================================== */

@media (max-width: 1024px) {
  /* Override inline fixed grids */
  [style*="grid-template-columns: 1fr 1fr"],
  [style*="grid-template-columns: repeat(3, 1fr)"] {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
  }

  /* Override fixed flex columns */
  [style*="flex: 0 0 62%"],
  [style*="max-width: 62%"] {
    flex: 0 0 100% !important;
    max-width: 100% !important;
  }

  [style*="flex: 0 0 25%"],
  [style*="max-width: 25%"] {
    flex: 0 0 100% !important;
    max-width: 100% !important;
    margin-top: 2rem !important;
  }
  
  [style*="max-width: 650px"] {
    max-width: 100% !important;
  }

  /* Hero Content */
  .hero-content-wrapper {
    padding-left: 5% !important;
    padding-right: 5% !important;
  }
}

@media (max-width: 768px) {
  /* Further overrides for mobile */
  .hero-content-wrapper {
    padding-left: 1.5rem !important;
    padding-right: 1.5rem !important;
    text-align: center !important;
    justify-content: center !important;
  }
  
  .hero-content-wrapper [style*="justify-content: flex-start"] {
    justify-content: center !important;
  }

  .hero-title {
    font-size: 2rem !important;
    line-height: 1.2 !important;
  }
  
  .hero-subtitle {
    font-size: 0.95rem !important;
    margin-left: auto;
    margin-right: auto;
  }

  /* Force Hero to 100vh and ensure layout accommodates carousel perfectly */
  .bechtel-hero {
    height: 100svh !important; 
    min-height: 100svh !important;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  /* Make sure the carousel at bottom stays perfectly in view */
  .bechtel-hero > div[style*="bottom: 1.5rem"] {
    bottom: 0.75rem !important;
  }
  
  .hero-text-col {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  /* Adjust section padding for smaller screens */
  .section-padding {
    padding-top: 3.5rem !important;
    padding-bottom: 3.5rem !important;
  }

  /* Footer adjustments */
  .footer-brand {
    align-items: center !important;
    text-align: center !important;
  }
  .footer-brand p {
    margin-left: auto !important;
    margin-right: auto !important;
  }
  
  .brand-logo-text {
    white-space: normal !important;
    text-align: center !important;
  }

  .footer-grid {
    grid-template-columns: 1fr !important;
    gap: 2.5rem !important;
    text-align: center !important;
  }
  
  .footer-contact-item {
    justify-content: center !important;
  }
  
  .live-projects-title {
    justify-content: center !important;
  }
  
  /* Make sure maps and iframes adjust */
  iframe {
    width: 100% !important;
  }
  
  /* Add padding to the logo on mobile so it shifts right and has space on all sides, plus shrink logo */
  .brand-logo {
    padding: 10px 15px !important;
  }
  .site-header .brand-logo img {
    height: 38px !important;
    min-height: 38px !important;
    max-height: 38px !important;
  }
  .site-footer .brand-logo img {
    height: 38px !important;
    min-height: 38px !important;
    max-height: 38px !important;
  }
  .brand-logo-text {
    font-size: 0.65rem !important;
    line-height: 1.1 !important;
  }
  
  .header-inner {
    padding: 15px !important;
  }
  
  /* Fix metrics section overflow on mobile */
  .metric-label, .metric-val {
    white-space: normal !important;
  }
  
  [style*="padding: 0 4rem;"] {
    padding: 0 1.5rem !important;
  }
}

/* Make footer logo slightly larger on desktop */
.site-footer .brand-logo img {
  height: 60px !important;
  min-height: 60px !important;
  max-height: 60px !important;
  transition: all var(--transition-medium);
}


/* ==========================================================================
   SMOOTH PAGE LOAD TRANSITIONS
   ========================================================================== */
@keyframes smoothPageLoad {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

body {
  animation: smoothPageLoad 0.15s ease-out forwards;
}

 @ m e d i a   ( m a x - w i d t h :   7 6 8 p x )   { 
     . f o u n d e r - s p e a k - c a r d   { 
         p a d d i n g :   1 . 5 r e m   ! i m p o r t a n t ; 
         g a p :   1 . 5 r e m   ! i m p o r t a n t ; 
     } 
 } 
  
 