/* ==========================================================================
   MOKSAN LLC - Unified Corporate Stylesheet
   Design Language: Rayo-style Floating Pill Navbar, Industrial Blueprint & CAD
   Color Palette:
     - Primary Red-Orange: #C33E26 (Hover: #A8321D, Light: #EA583E)
     - Dark Navy: #161B33 (Surface: #1E2442, Deep: #0E1222, Border: #2A3358)
     - Light Base: #F8FAFC (Surface: #FFFFFF, Subtle: #F1F5F9, Border: #E2E8F0)
     - Industrial Safety Amber: #F59E0B / #EAB308
     - Slate Text: #0F172A, Body: #334155, Muted: #64748B
   ========================================================================== */

:root {
  --primary: #C33E26;
  --primary-hover: #E0482D;
  --primary-light: #EA583E;
  --primary-glow: rgba(195, 62, 38, 0.3);

  --navy-dark: #161B33;
  --navy-surface: #1E2442;
  --navy-deep: #0B0F19;
  --navy-border: #2D365E;
  --navy-hover: #262E52;

  --amber-safety: #F59E0B;
  --amber-glow: rgba(245, 158, 11, 0.25);

  --bg-light: #F8FAFC;
  --surface-white: #FFFFFF;
  --surface-alt: #F1F5F9;
  --border-light: #E2E8F0;
  --border-subtle: #EDF2F7;

  --text-dark: #0F172A;
  --text-body: #334155;
  --text-muted: #64748B;
  --text-light: #F8FAFC;

  --font-sans: 'Plus Jakarta Sans', 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-mono: 'Space Grotesk', 'JetBrains Mono', 'Fira Code', monospace;

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-pill: 9999px;

  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 8px 24px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 16px 40px rgba(15, 23, 42, 0.12);
  --shadow-glow: 0 0 24px var(--primary-glow);

  --transition-fast: 0.15s ease;
  --transition-normal: 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-slow: 0.4s cubic-bezier(0.16, 1, 0.3, 1);

  /* Navbar Light */
  --nav-bg: rgba(255, 255, 255, 0.94);
  --nav-border: rgba(15, 23, 42, 0.08);
  --nav-shadow: 0 12px 32px rgba(15, 23, 42, 0.08), 0 1px 2px rgba(0, 0, 0, 0.04);
  --nav-brand-title: #0F172A;
  --nav-brand-sub: #64748B;
  --nav-link-color: #334155;
  --nav-link-hover-bg: rgba(195, 62, 38, 0.08);
  --lang-pill-bg: rgba(15, 23, 42, 0.05);
  --lang-pill-border: rgba(15, 23, 42, 0.08);
  --lang-btn-color: #64748B;
  --theme-btn-bg: rgba(15, 23, 42, 0.05);
  --theme-btn-border: rgba(15, 23, 42, 0.08);
  --theme-btn-color: #0F172A;

  /* Hero & Page Hero Light */
  --hero-home-bg: radial-gradient(circle at 75% 30%, #E2E8F0 0%, #EEF2F6 45%, #F8FAFC 100%);
  --hero-home-overlay: linear-gradient(to right, rgba(248, 250, 252, 0.96) 25%, rgba(248, 250, 252, 0.5) 100%);
  --hero-home-title: #0F172A;
  --hero-home-desc: #475569;
  --page-hero-bg: linear-gradient(170deg, #F8FAFC 0%, #EDF2F7 50%, #E2E8F0 100%);
  --page-hero-grid: rgba(15, 23, 42, 0.05);
  --page-hero-title: #0F172A;
  --page-hero-desc: #475569;

  /* Footer Light */
  --footer-bg: #F1F5F9;
  --footer-border: #E2E8F0;
  --footer-title: #0F172A;
  --footer-desc: #475569;
  --footer-col-title: #0F172A;
  --footer-link: #475569;
  --footer-link-hover: var(--primary);
  --footer-bottom-border: #E2E8F0;
  --footer-bottom-text: #64748B;

  /* Logo: Original Crane-Red on Light mode */
  --logo-filter: drop-shadow(0 2px 6px rgba(195, 62, 38, 0.3));
}

/* ==========================================================================
   DARK THEME SPECIFICATIONS
   ========================================================================== */
[data-theme="dark"] {
  --navy-dark: #0B0F19;
  --navy-surface: #141829;
  --navy-deep: #070913;
  --bg-light: #0B0F19;
  --surface-white: #141829;
  --surface-alt: #181E33;
  --border-light: rgba(255, 255, 255, 0.08);
  --border-subtle: rgba(255, 255, 255, 0.05);

  --text-dark: #FFFFFF;
  --text-body: #CBD5E1;
  --text-muted: #A0AEC0;

  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.6);

  /* Navbar Dark */
  --nav-bg: rgba(15, 19, 38, 0.92);
  --nav-border: rgba(255, 255, 255, 0.12);
  --nav-shadow: 0 16px 36px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.05);
  --nav-brand-title: #FFFFFF;
  --nav-brand-sub: #94A3B8;
  --nav-link-color: #CBD5E1;
  --nav-link-hover-bg: rgba(255, 255, 255, 0.08);
  --lang-pill-bg: rgba(255, 255, 255, 0.06);
  --lang-pill-border: rgba(255, 255, 255, 0.12);
  --lang-btn-color: #94A3B8;
  --theme-btn-bg: rgba(255, 255, 255, 0.08);
  --theme-btn-border: rgba(255, 255, 255, 0.15);
  --theme-btn-color: #F8FAFC;

  /* Hero & Page Hero Dark */
  --hero-home-bg: radial-gradient(circle at 75% 30%, #1A213B 0%, #0F1426 45%, #0B0E1B 100%);
  --hero-home-overlay: linear-gradient(to right, rgba(11, 14, 27, 0.97) 25%, rgba(11, 14, 27, 0.55) 100%);
  --hero-home-title: #FFFFFF;
  --hero-home-desc: #94A3B8;
  --page-hero-bg: linear-gradient(170deg, #0B0E1B 0%, #11162B 50%, #171E38 100%);
  --page-hero-grid: rgba(255, 255, 255, 0.04);
  --page-hero-title: #FFFFFF;
  --page-hero-desc: #CBD5E1;

  /* Footer Dark */
  --footer-bg: #070913;
  --footer-border: #171D33;
  --footer-title: #FFFFFF;
  --footer-desc: #94A3B8;
  --footer-col-title: #FFFFFF;
  --footer-link: #94A3B8;
  --footer-link-hover: #FFFFFF;
  --footer-bottom-border: #171D33;
  --footer-bottom-text: #64748B;

  /* Logo: Retain original crane-red brand color on Dark mode (no white inversion) */
  --logo-filter: drop-shadow(0 2px 8px rgba(195, 62, 38, 0.45));
}

[data-theme="dark"] .section-title,
[data-theme="dark"] .feature-title,
[data-theme="dark"] .service-title,
[data-theme="dark"] .product-title,
[data-theme="dark"] .project-title,
[data-theme="dark"] .news-card-title,
[data-theme="dark"] .modal-title,
[data-theme="dark"] .form-label,
[data-theme="dark"] .info-title,
[data-theme="dark"] .cert-title {
  color: #FFFFFF !important;
}

[data-theme="dark"] .product-specs-table td:last-child,
[data-theme="dark"] .project-meta-val,
[data-theme="dark"] .modal-spec-val {
  color: #F8FAFC !important;
}

[data-theme="dark"] .form-input,
[data-theme="dark"] .form-select,
[data-theme="dark"] .form-textarea {
  background-color: #171D30;
  color: #F8FAFC;
  border-color: #2D3759;
}

[data-theme="dark"] .form-input:focus,
[data-theme="dark"] .form-select:focus,
[data-theme="dark"] .form-textarea:focus {
  border-color: var(--primary);
  background-color: #1A2138;
}

[data-theme="dark"] .stats-strip {
  background: #101424;
  border-bottom-color: #232A44;
}

[data-theme="dark"] .modal-container {
  background: #131728;
  border: 1px solid #232A44;
}

[data-theme="dark"] .filter-btn {
  background: #151A2C;
  border-color: #273150;
  color: #CBD5E1;
}

[data-theme="dark"] .filter-btn:hover {
  background: #1E253E;
  color: #FFFFFF;
}

[data-theme="dark"] .filter-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #FFFFFF;
}

[data-theme="dark"] .btn-outline-dark {
  border-color: #64748B;
  color: #F8FAFC;
}

[data-theme="dark"] .btn-outline-dark:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: #FFFFFF;
}

[data-theme="dark"] .badge-dark {
  background: rgba(255, 255, 255, 0.08);
  color: #CBD5E1;
  border-color: rgba(255, 255, 255, 0.15);
}

[data-theme="dark"] .info-icon-box {
  background: rgba(255, 255, 255, 0.06);
  color: #F8FAFC;
}

[data-theme="dark"] .modal-close-btn {
  background: rgba(255, 255, 255, 0.1);
  color: #FFFFFF;
}

[data-theme="dark"] .news-card {
  background: #131728;
  border-color: #232A44;
}

[data-theme="dark"] .cert-card,
[data-theme="dark"] .info-card,
[data-theme="dark"] .rfq-card,
[data-theme="dark"] .product-card,
[data-theme="dark"] .project-card,
[data-theme="dark"] .service-card,
[data-theme="dark"] .feature-card {
  background: #131728;
  border-color: #232A44;
}

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

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

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

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

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  border: none;
  outline: none;
  background: none;
}

/* Layout Utilities */
.container {
  width: 100%;
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.container-narrow {
  max-width: 960px;
}

.section {
  padding: 5rem 0;
  position: relative;
}

@media (max-width: 768px) {
  .section {
    padding: 3.5rem 0;
  }
}

/* ==========================================================================
   NAVIGATION - Modern "Rayo" Style Floating Pill Navbar
   ========================================================================== */

.navbar-wrapper {
  position: fixed;
  top: 1.15rem;
  left: 0;
  right: 0;
  z-index: 1000;
  pointer-events: none;
  padding: 0 1rem;
  transition: top 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.navbar-wrapper::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 90px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.8) 60%, transparent 100%);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: -1;
}

[data-theme="dark"] .navbar-wrapper::before {
  background: linear-gradient(180deg, rgba(11, 14, 27, 0.96) 0%, rgba(11, 14, 27, 0.82) 60%, transparent 100%);
}

.navbar-wrapper.navbar-scrolled {
  top: 0.5rem;
}

.navbar-wrapper.navbar-scrolled::before {
  opacity: 1;
}

.navbar-pill {
  pointer-events: auto;
  max-width: 1280px;
  margin: 0 auto;
  background: var(--nav-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--nav-border);
  box-shadow: var(--nav-shadow);
  border-radius: var(--radius-pill);
  padding: 0.45rem 0.85rem 0.45rem 1.15rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
  transition: all var(--transition-normal);
}

.navbar-scrolled .navbar-pill {
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.22);
  border-color: rgba(195, 62, 38, 0.35);
  background: rgba(255, 255, 255, 0.98);
}

[data-theme="dark"] .navbar-scrolled .navbar-pill {
  background: rgba(14, 18, 38, 0.98);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.65);
}

/* Brand */
.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  flex-shrink: 0;
}

.brand-logo-img {
  width: auto;
  height: 40px;
  max-height: 40px;
  object-fit: contain;
  display: block;
  filter: var(--logo-filter);
  transition: filter 0.35s ease, transform var(--transition-fast);
}

.nav-brand:hover .brand-logo-img {
  transform: scale(1.06);
}

.brand-symbol {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--primary), #e35235);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: 0 4px 12px var(--primary-glow);
  position: relative;
  overflow: hidden;
}

.brand-symbol::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
  animation: shine 4s infinite;
}

@keyframes shine {
  0%, 80% { left: -100%; }
  100% { left: 100%; }
}

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

.brand-title {
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: var(--nav-brand-title);
  line-height: 1.1;
  transition: color var(--transition-normal);
}

.brand-sub {
  font-size: 0.5625rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--nav-brand-sub);
  text-transform: uppercase;
  transition: color var(--transition-normal);
  white-space: nowrap;
  max-width: 250px;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Nav Links List */
.nav-menu {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 0.25rem;
  margin: 0;
  padding: 0;
}

.nav-link {
  color: var(--nav-link-color);
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.45rem 0.9rem;
  border-radius: var(--radius-pill);
  transition: all var(--transition-fast);
  white-space: nowrap;
  position: relative;
}

.nav-link:hover {
  color: var(--primary);
  background: var(--nav-link-hover-bg);
}

.nav-link.active {
  color: #FFFFFF !important;
  background: var(--primary) !important;
  box-shadow: 0 2px 12px var(--primary-glow);
  font-weight: 600;
}

/* Right Controls (Language + CTA) */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-shrink: 0;
}

/* Theme Toggle Button */
.theme-toggle-btn {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-pill);
  background: var(--theme-btn-bg);
  border: 1px solid var(--theme-btn-border);
  color: var(--theme-btn-color);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
  padding: 0;
}

.theme-toggle-btn:hover {
  background: rgba(195, 62, 38, 0.12);
  color: var(--primary);
  transform: rotate(15deg);
}

.theme-toggle-btn svg {
  width: 16px;
  height: 16px;
  transition: transform var(--transition-fast);
}

/* Nav Social Link Button (Facebook) */
.nav-social-btn {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-pill);
  background: var(--theme-btn-bg);
  border: 1px solid var(--theme-btn-border);
  color: var(--theme-btn-color);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  cursor: pointer;
  transition: all var(--transition-fast);
  padding: 0;
  flex-shrink: 0;
}

.nav-social-btn:hover {
  background: #1877F2;
  border-color: #1877F2;
  color: #FFFFFF !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(24, 119, 242, 0.45);
}

.nav-social-btn svg {
  width: 15px;
  height: 15px;
  transition: transform var(--transition-fast);
}

.nav-social-btn:hover svg {
  transform: scale(1.08);
}

.sun-icon {
  display: none;
}

.moon-icon {
  display: block;
}

[data-theme="dark"] .sun-icon {
  display: block;
  color: #F59E0B;
}

[data-theme="dark"] .moon-icon {
  display: none;
}

/* Language Pill Switcher */
.lang-switcher-pill {
  display: flex;
  align-items: center;
  background: var(--lang-pill-bg);
  border: 1px solid var(--lang-pill-border);
  border-radius: var(--radius-pill);
  padding: 2px;
  transition: all var(--transition-normal);
}

.lang-btn {
  font-size: 0.725rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 0.25rem 0.55rem;
  color: var(--lang-btn-color);
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.lang-btn:hover {
  color: var(--primary);
}

.lang-btn.active {
  background: var(--primary);
  color: #FFFFFF;
  box-shadow: 0 1px 6px var(--primary-glow);
}

/* CTA Pill Button */
.btn-nav-quote {
  background: var(--primary);
  color: #FFFFFF;
  font-size: 0.825rem;
  font-weight: 600;
  padding: 0.5rem 1.15rem;
  border-radius: var(--radius-pill);
  transition: all var(--transition-fast);
  box-shadow: 0 4px 14px var(--primary-glow);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  white-space: nowrap;
}

.btn-nav-quote:hover,
.btn-nav-quote.active {
  background: var(--primary-light);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(195, 62, 38, 0.55), 0 0 0 2px rgba(255, 255, 255, 0.25);
  color: #FFFFFF;
}

/* Mobile Toggle */
.mobile-nav-toggle {
  display: none;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-pill);
  background: var(--theme-btn-bg);
  color: var(--theme-btn-color);
  border: 1px solid var(--theme-btn-border);
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.mobile-nav-toggle svg {
  width: 22px;
  height: 22px;
}

/* Mobile Drawer */
.mobile-drawer {
  display: none;
}

@media (max-width: 1240px) {
  .brand-sub {
    display: none;
  }
  .nav-menu {
    gap: 0.15rem;
  }
  .nav-link {
    font-size: 0.825rem;
    padding: 0.4rem 0.65rem;
  }
  .nav-actions {
    gap: 0.45rem;
  }
  .lang-btn {
    font-size: 0.68rem;
    padding: 0.2rem 0.45rem;
  }
  .btn-nav-quote {
    font-size: 0.8rem;
    padding: 0.45rem 0.85rem;
  }
}

@media (max-width: 1040px) {
  .nav-menu {
    display: none;
  }

  /* Hide language pill and quote button from top navbar on tablet/mobile */
  .nav-actions .lang-switcher-pill,
  .nav-actions .btn-nav-quote {
    display: none;
  }
  
  .mobile-nav-toggle {
    display: flex;
  }

  .navbar-wrapper {
    top: 0.65rem;
    padding: 0 0.65rem;
  }

  .navbar-pill {
    padding: 0.4rem 0.65rem 0.4rem 0.85rem;
    gap: 0.5rem;
  }

  .mobile-drawer {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 4.5rem;
    left: 0.75rem;
    right: 0.75rem;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(15, 23, 42, 0.1);
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 48px rgba(15, 23, 42, 0.15);
    padding: 1.25rem;
    gap: 0.5rem;
    z-index: 999;
    transform: translateY(-20px);
    opacity: 0;
    pointer-events: none;
    transition: all var(--transition-normal);
  }

  [data-theme="dark"] .mobile-drawer {
    background: rgba(14, 18, 35, 0.98);
    border-color: rgba(255, 255, 255, 0.12);
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.6);
  }

  .mobile-drawer.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .mobile-drawer .nav-link {
    font-size: 0.95rem;
    padding: 0.65rem 0.85rem;
    border-radius: var(--radius-md);
    display: block;
    color: #1E293B;
  }

  [data-theme="dark"] .mobile-drawer .nav-link {
    color: #F8FAFC;
  }

  .mobile-drawer .mobile-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 0.5rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border-light);
  }

  .mobile-drawer .lang-switcher-pill {
    display: flex !important;
    justify-content: space-around;
    padding: 0.3rem;
  }
  
  .mobile-drawer .lang-btn {
    padding: 0.35rem 0.65rem;
    font-size: 0.8rem;
  }

  .mobile-drawer .btn {
    display: flex !important;
    justify-content: center;
    padding: 0.75rem;
    width: 100%;
  }
}

@media (max-width: 640px) {
  .brand-sub {
    display: none;
  }

  .brand-title {
    font-size: 0.95rem;
  }

  .brand-logo-img {
    height: 32px;
    max-height: 32px;
  }

  .brand-symbol {
    width: 32px;
    height: 32px;
    border-radius: 8px;
  }

  .brand-symbol svg {
    width: 18px;
    height: 18px;
  }

  .theme-toggle-btn {
    width: 32px;
    height: 32px;
  }

  .mobile-nav-toggle {
    width: 34px;
    height: 34px;
  }
  
  .mobile-nav-toggle svg {
    width: 20px;
    height: 20px;
  }
}

/* ==========================================================================
   BUTTONS & UI ELEMENTS
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.8rem 1.6rem;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

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

.btn-primary:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(195, 62, 38, 0.45);
  color: #FFFFFF;
}

.btn-outline-light {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #FFFFFF;
}

.btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: #FFFFFF;
  color: #FFFFFF;
}

.btn-outline-dark {
  background: transparent;
  border: 1.5px solid var(--navy-dark);
  color: var(--navy-dark);
}

.btn-outline-dark:hover {
  background: var(--navy-dark);
  color: #FFFFFF;
}

.btn-sm {
  font-size: 0.825rem;
  padding: 0.45rem 1rem;
}

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: var(--radius-pill);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.badge-primary {
  background: rgba(195, 62, 38, 0.12);
  color: var(--primary);
  border: 1px solid rgba(195, 62, 38, 0.25);
}

.badge-safety {
  background: rgba(245, 158, 11, 0.12);
  color: #B45309;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

[data-theme="dark"] .badge-safety {
  background: rgba(245, 158, 11, 0.16);
  color: #FBBF24;
  border-color: rgba(245, 158, 11, 0.35);
}

.badge-dark {
  background: rgba(22, 27, 51, 0.08);
  color: var(--navy-dark);
  border: 1px solid rgba(22, 27, 51, 0.15);
}

.badge-glow {
  background: rgba(22, 27, 51, 0.08);
  color: var(--navy-dark);
  border: 1px solid rgba(22, 27, 51, 0.15);
}

[data-theme="dark"] .badge-glow {
  background: rgba(255, 255, 255, 0.12);
  color: #F8FAFC;
  border-color: rgba(255, 255, 255, 0.25);
}

/* Section Header */
.section-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 3.5rem;
}

.section-header .badge {
  margin-bottom: 0.75rem;
}

.section-title {
  font-size: 2.35rem;
  font-weight: 800;
  color: var(--navy-dark);
  line-height: 1.25;
  margin-bottom: 0.85rem;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Dark Section Variant */
.section-dark {
  background-color: var(--navy-dark);
  color: var(--text-light);
}

.section-dark .section-title {
  color: #FFFFFF;
}

.section-dark .section-subtitle {
  color: #94A3B8;
}

/* ==========================================================================
   PAGE HERO SECTIONS
   ========================================================================== */

.page-hero {
  background: var(--page-hero-bg);
  color: var(--page-hero-title);
  padding-top: 8.5rem;
  padding-bottom: 5rem;
  position: relative;
  overflow: hidden;
  transition: background var(--transition-normal), color var(--transition-normal);
}

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

.page-hero-content {
  position: relative;
  z-index: 2;
  max-width: 840px;
}

.page-hero-title {
  font-size: 2.85rem;
  font-weight: 800;
  line-height: 1.2;
  margin-top: 0.75rem;
  margin-bottom: 1.25rem;
  letter-spacing: -0.02em;
  color: var(--page-hero-title);
  transition: color var(--transition-normal);
}

.page-hero-desc {
  font-size: 1.15rem;
  color: var(--page-hero-desc);
  max-width: 720px;
  line-height: 1.65;
  transition: color var(--transition-normal);
}

/* ==========================================================================
   PAGE HERO INDUSTRIAL CRANE BANNER (RIGHT-FLUSH WITH NATURAL ASPECT RATIO)
   ========================================================================== */
.page-hero-crane-banner {
  position: relative;
  overflow: hidden;
  min-height: 420px;
  display: flex;
  align-items: center;
  padding-top: 8rem;
  padding-bottom: 2.5rem;
}

.page-hero-crane-banner .container {
  position: relative;
  z-index: 3;
  width: 100%;
}

.page-hero-crane-banner .page-hero-content {
  max-width: 520px;
  position: relative;
  z-index: 3;
  padding-bottom: 1.5rem;
}

/* Crane Visual Centered in Hero Banner */
.page-hero-crane-visual {
  position: absolute;
  right: 1.5rem;
  top: 50%;
  transform: translateY(-50%);
  width: 54%;
  max-width: 900px;
  height: 82%;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  z-index: 2;
}

.page-hero-crane-visual.dock-right {
  right: 0;
  justify-content: flex-end;
}

.page-hero-crane-visual .page-hero-crane-img {
  width: 100%;
  height: auto;
  max-height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
  filter: drop-shadow(0 14px 28px rgba(0, 0, 0, 0.45));
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), filter 0.4s ease;
  user-select: none;
  pointer-events: auto;
}

.page-hero-crane-visual.dock-right .page-hero-crane-img {
  object-position: center right;
}

.page-hero-crane-visual:hover .page-hero-crane-img {
  transform: translateY(-4px) scale(1.02);
  filter: drop-shadow(0 20px 38px rgba(0, 0, 0, 0.55));
}

.page-hero-crane-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 75%;
  height: 60%;
  background: radial-gradient(ellipse at center, rgba(195, 62, 38, 0.22) 0%, rgba(195, 62, 38, 0) 70%);
  pointer-events: none;
  z-index: -1;
  filter: blur(24px);
}

.page-hero-ground-line {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, rgba(195, 62, 38, 0.25) 30%, rgba(245, 158, 11, 0.55) 65%, rgba(195, 62, 38, 0.45) 100%);
  z-index: 1;
}

[data-theme="light"] .page-hero-ground-line {
  background: linear-gradient(90deg, transparent 0%, rgba(195, 62, 38, 0.2) 30%, rgba(245, 158, 11, 0.45) 65%, rgba(195, 62, 38, 0.3) 100%);
}

@media (max-width: 992px) {
  .page-hero-crane-banner {
    min-height: auto;
    padding-top: 5.5rem;
    padding-bottom: 2rem;
    display: block;
  }
  .page-hero-crane-banner .page-hero-content {
    max-width: 100%;
    padding-bottom: 0.5rem;
  }
  .page-hero-crane-visual {
    position: relative;
    width: 100%;
    max-width: 100%;
    height: auto;
    margin-top: 1.5rem;
    right: auto;
    top: auto;
    transform: none;
    justify-content: center;
  }
  .page-hero-crane-visual .page-hero-crane-img {
    max-height: 280px;
    object-position: center;
  }
}

@media (max-width: 640px) {
  .page-hero-crane-visual .page-hero-crane-img {
    max-height: 200px;
  }
}

@media (max-width: 768px) {
  .page-hero {
    padding-top: 5.25rem;
    padding-bottom: 2.5rem;
  }
  .page-hero-title {
    font-size: 1.85rem !important;
    line-height: 1.25;
  }
  .page-hero-desc {
    font-size: 0.95rem;
  }
}

/* ==========================================================================
   HOME PAGE - HERO WITH CRANE SHOWCASE
   ========================================================================== */

.hero-home {
  background: var(--hero-home-bg);
  color: var(--hero-home-title);
  padding-top: 8.5rem;
  padding-bottom: 4.5rem;
  position: relative;
  overflow: hidden;
  min-height: 90vh;
  display: flex;
  align-items: center;
  transition: background var(--transition-normal), color var(--transition-normal);
}

.hero-home::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    radial-gradient(circle at 10% 20%, rgba(195, 62, 38, 0.12), transparent 40%),
    var(--hero-home-overlay);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 2.5rem;
  align-items: center;
  position: relative;
  z-index: 2;
}

.hero-text-block {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.hero-title {
  font-size: 3.25rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.025em;
  color: var(--hero-home-title);
  transition: color var(--transition-normal);
}

.hero-title span {
  color: var(--primary);
}

.hero-desc {
  font-size: 1.125rem;
  color: var(--hero-home-desc);
  line-height: 1.65;
  max-width: 620px;
  transition: color var(--transition-normal);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 0.5rem;
}

/* Outline button theme responsiveness */
.hero-actions .btn-outline-light {
  background: rgba(255, 255, 255, 0.85);
  border-color: #CBD5E1;
  color: #0F172A;
  transition: all var(--transition-fast);
}

.hero-actions .btn-outline-light:hover {
  background: #0F172A;
  border-color: #0F172A;
  color: #FFFFFF;
}

[data-theme="dark"] .hero-actions .btn-outline-light {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.25);
  color: #FFFFFF;
}

[data-theme="dark"] .hero-actions .btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: #FFFFFF;
  color: #FFFFFF;
}

/* Hero Image Showcase (Replaces animated CAD canvas) */
/* ==========================================================================
   HERO CRANE SHOWCASE WITH FLOATING TECHNICAL SPECS
   ========================================================================== */
.hero-image-showcase {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.hero-image-wrapper {
  position: relative;
  width: 100%;
  max-width: 640px;
  min-height: 440px;
  background: radial-gradient(circle at 50% 45%, rgba(195, 62, 38, 0.12) 0%, rgba(226, 232, 240, 0.45) 55%, transparent 75%);
  border-radius: var(--radius-lg);
  padding: 3rem 1.5rem 3.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-normal);
}

[data-theme="dark"] .hero-image-wrapper {
  background: radial-gradient(circle at 50% 45%, rgba(195, 62, 38, 0.2) 0%, rgba(20, 27, 56, 0.6) 55%, transparent 75%);
}

/* Dual Crane Slides Transition */
.hero-crane-slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 1.5rem 3.5rem;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.65s cubic-bezier(0.4, 0, 0.2, 1), transform 0.65s cubic-bezier(0.4, 0, 0.2, 1);
  transform: scale(0.96) translateY(8px);
  z-index: 1;
}

.hero-crane-slide.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: scale(1) translateY(0);
  z-index: 2;
}

/* Slider Controls (Cleanly docked below showcase without overlapping spec pills) */
.hero-crane-slider-controls {
  position: relative;
  margin-top: 1.65rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  z-index: 6;
  background: rgba(14, 18, 38, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  padding: 0.35rem 0.65rem;
  border-radius: var(--radius-pill);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.38);
  transition: all var(--transition-fast);
}

[data-theme="light"] .hero-crane-slider-controls {
  background: rgba(255, 255, 255, 0.95);
  border-color: rgba(15, 23, 42, 0.12);
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.12);
}

.hero-slide-nav-btn {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: transparent;
  border: none;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
  padding: 0;
}

.hero-slide-nav-btn:hover {
  background: var(--primary);
  color: #FFFFFF;
}

.hero-slide-dots {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.hero-slide-dot {
  background: transparent;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  padding: 0.25rem 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.725rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--transition-fast);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.hero-slide-dot:hover {
  color: var(--text-dark);
  background: rgba(15, 23, 42, 0.06);
}

[data-theme="dark"] .hero-slide-dot:hover {
  color: #FFFFFF;
  background: rgba(255, 255, 255, 0.08);
}

.hero-slide-dot.active {
  background: var(--primary);
  color: #FFFFFF;
  box-shadow: 0 2px 10px var(--primary-glow);
}

.hero-slide-dot .dot-bar {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.hero-crane-img {
  width: 100%;
  max-width: 600px;
  height: auto;
  max-height: 400px;
  object-fit: contain;
  filter: drop-shadow(0 26px 45px rgba(0, 0, 0, 0.65));
  transition: transform var(--transition-normal);
  z-index: 2;
  position: relative;
  transform: scale(1.04);
  transform-origin: center center;
}

.hero-image-wrapper:hover .hero-crane-img {
  transform: translateY(-4px) scale(1.08);
}

/* Top Equipment Header Tag */
.hero-crane-top-tag {
  position: absolute;
  top: 1rem;
  left: 1.25rem;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(195, 62, 38, 0.3);
  border-radius: var(--radius-pill);
  padding: 0.4rem 0.95rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  color: #0F172A;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  z-index: 3;
  letter-spacing: 0.04em;
}

[data-theme="dark"] .hero-crane-top-tag {
  background: rgba(17, 24, 48, 0.92);
  border-color: rgba(195, 62, 38, 0.4);
  color: #F8FAFC;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.hero-pulse-dot {
  width: 8px;
  height: 8px;
  background: var(--primary);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--primary-glow);
  animation: pulseDot 2s infinite;
}

/* Floating Technical Spec Pills */
.hero-spec-pill {
  position: absolute;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: var(--radius-md);
  padding: 0.75rem 1.15rem;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.12), 0 0 0 1px rgba(255, 255, 255, 0.6);
  z-index: 4;
  transition: all var(--transition-normal);
}

[data-theme="dark"] .hero-spec-pill {
  background: rgba(15, 20, 42, 0.92);
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.hero-spec-pill:hover {
  transform: translateY(-3px);
  border-color: var(--primary);
  box-shadow: 0 20px 42px rgba(195, 62, 38, 0.25);
}

.hero-spec-icon {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  background: rgba(195, 62, 38, 0.12);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.hero-spec-icon svg {
  width: 20px;
  height: 20px;
}

.hero-spec-info {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.hero-spec-label {
  font-size: 0.72rem;
  font-family: var(--font-mono);
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.hero-spec-val {
  font-size: 1.18rem;
  font-weight: 800;
  font-family: var(--font-mono);
  color: var(--text-dark);
  letter-spacing: -0.01em;
  white-space: nowrap;
}

[data-theme="dark"] .hero-spec-val {
  color: #FFFFFF;
}

/* Positioning of Floating Pills */
.hero-spec-capacity {
  top: 1rem;
  right: -0.5rem;
}

.hero-spec-span {
  bottom: 0.5rem;
  left: -0.75rem;
}

.hero-spec-lift {
  bottom: 0.5rem;
  right: -0.5rem;
}

/* Tablet & Mobile Media Queries for Hero Specs */
@media (max-width: 1200px) {
  .hero-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
  }
  .hero-crane-img {
    transform: scale(1.04);
    max-height: 400px;
  }
  .hero-spec-capacity {
    right: 0.25rem;
    top: 0.5rem;
  }
  .hero-spec-span {
    left: 0;
    bottom: 0.5rem;
  }
  .hero-spec-lift {
    right: 0;
    bottom: 0.5rem;
  }
}

@media (max-width: 992px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .hero-image-wrapper {
    min-height: 360px;
    padding: 2.5rem 1rem 1.5rem;
  }
  .hero-crane-img {
    width: 100%;
    transform: none;
    max-height: 320px;
  }
  .hero-spec-pill {
    padding: 0.55rem 0.85rem;
  }
  .hero-spec-val {
    font-size: 1.05rem;
  }
}

@media (max-width: 640px) {
  .hero-crane-slide {
    position: static;
    display: none;
    flex-direction: column;
    padding: 0 0 2rem;
    transform: none;
    min-height: auto;
  }
  .hero-crane-slide.active {
    display: flex;
    transform: none;
  }
  .hero-spec-pill {
    position: static;
    width: 100%;
  }
  .hero-crane-top-tag {
    position: static;
    margin-bottom: 0.75rem;
  }
  .hero-image-wrapper {
    flex-direction: column;
    padding: 1.25rem 1rem 3.5rem;
    min-height: auto;
    gap: 0.75rem;
  }
  .hero-crane-img {
    max-height: 240px;
    margin: 0.5rem 0;
  }
  .hero-crane-slider-controls {
    margin-top: 1rem;
  }
}

/* CAD Canvas Card Container */
.cad-viewport-card {
  background: rgba(14, 18, 38, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(195, 62, 38, 0.2);
  position: relative;
  display: flex;
  flex-direction: column;
}

.cad-header {
  padding: 0.75rem 1rem;
  background: rgba(22, 27, 51, 0.9);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cad-status {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: #94A3B8;
}

.status-dot {
  width: 8px;
  height: 8px;
  background: #10B981;
  border-radius: 50%;
  box-shadow: 0 0 8px #10B981;
  animation: pulse-dot 2s infinite;
}

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

.cad-controls {
  display: flex;
  gap: 0.35rem;
}

.cad-btn {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  padding: 0.25rem 0.55rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-sm);
  color: #CBD5E1;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.cad-btn:hover, .cad-btn.active {
  background: var(--primary);
  color: #FFFFFF;
  border-color: var(--primary);
}

.cad-canvas-wrap {
  width: 100%;
  height: 380px;
  position: relative;
  background: #0B0E1B;
  cursor: grab;
}

.cad-canvas-wrap:active {
  cursor: grabbing;
}

#cadCanvas {
  width: 100%;
  height: 100%;
  display: block;
}

.cad-overlay-meta {
  position: absolute;
  bottom: 0.75rem;
  left: 0.75rem;
  right: 0.75rem;
  pointer-events: none;
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.7);
  background: rgba(14, 18, 38, 0.6);
  backdrop-filter: blur(4px);
  padding: 0.4rem 0.75rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

@media (max-width: 992px) {
  .hero-home {
    padding-top: 6rem;
    padding-bottom: 2.75rem;
    min-height: auto;
  }
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }
  .hero-title {
    font-size: 2.35rem;
  }
}

@media (max-width: 640px) {
  .hero-home {
    padding-top: 5rem;
    padding-bottom: 2rem;
  }
  .hero-title {
    font-size: 1.85rem !important;
    line-height: 1.22 !important;
    letter-spacing: -0.015em;
  }
  .hero-desc {
    font-size: 0.925rem !important;
    line-height: 1.55;
  }
  .hero-actions {
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: 0.65rem;
  }
  .hero-actions .btn {
    width: 100%;
    justify-content: center;
    padding: 0.75rem 1.25rem;
    font-size: 0.9rem;
  }
  .hero-image-showcase {
    padding: 0.5rem 0;
  }
  .hero-image-wrapper {
    padding: 0.75rem;
    max-width: 100%;
  }
  .hero-crane-img {
    max-height: 230px;
  }
  .hero-img-badge {
    font-size: 0.68rem;
    padding: 0.35rem 0.75rem;
    bottom: 0.25rem;
    right: 0.5rem;
  }
}

/* ==========================================================================
   STATS BAR
   ========================================================================== */

.stats-strip {
  background: var(--surface-white);
  border-bottom: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  padding: 2rem 0;
  position: relative;
  z-index: 10;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  text-align: center;
}

.stat-item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  position: relative;
}

.stat-item:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0;
  top: 15%;
  height: 70%;
  width: 1px;
  background: var(--border-light);
}

.stat-num {
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1.1;
  font-family: var(--font-sans);
}

.stat-label {
  font-size: 0.875rem;
  color: var(--text-muted);
  font-weight: 500;
}

@media (max-width: 768px) {
  .stats-strip {
    padding: 1.25rem 0;
  }
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem 0.75rem;
  }
  .stat-item:nth-child(2)::after {
    display: none;
  }
  .stat-num {
    font-size: 1.55rem;
  }
  .stat-label {
    font-size: 0.75rem;
  }
}

/* ==========================================================================
   FEATURE CARDS
   ========================================================================== */

.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.feature-card {
  background: var(--surface-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 2rem 1.5rem;
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
  position: relative;
}

.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(195, 62, 38, 0.4);
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 1.5rem;
  right: 1.5rem;
  height: 3px;
  background: var(--primary);
  border-radius: var(--radius-pill);
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.feature-card:hover::before {
  opacity: 1;
}

.feature-icon-box {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: rgba(195, 62, 38, 0.08);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.feature-icon-box svg {
  width: 26px;
  height: 26px;
}

.feature-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--navy-dark);
  margin-bottom: 0.65rem;
  line-height: 1.35;
}

.feature-desc {
  font-size: 0.9rem;
  color: var(--text-body);
  line-height: 1.6;
}

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

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

/* ==========================================================================
   SERVICES CARDS & LISTS
   ========================================================================== */

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.service-card {
  background: var(--surface-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 2.25rem 2rem;
  display: flex;
  flex-direction: column;
  transition: all var(--transition-normal);
  position: relative;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
}

.service-num {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.75rem;
  display: inline-block;
  background: rgba(195, 62, 38, 0.08);
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-pill);
}

.service-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--navy-dark);
  margin-bottom: 0.85rem;
  line-height: 1.3;
}

.service-desc {
  font-size: 0.925rem;
  color: var(--text-body);
  line-height: 1.65;
  margin-bottom: 1.5rem;
}

.service-checklist {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-top: auto;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border-subtle);
}

.service-checklist li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--text-body);
}

.service-checklist li svg {
  width: 18px;
  height: 18px;
  color: var(--primary);
  flex-shrink: 0;
  margin-top: 2px;
}

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

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

/* ==========================================================================
   5-STEP WORKFLOW BENTO GRID ("Ажлын Үе Шат ба Хяналт")
   ========================================================================== */
.workflow-section {
  position: relative;
  overflow: hidden;
}

.workflow-bento-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.25rem;
}

.workflow-bento-card {
  background: #141829;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  padding: 1.75rem 1.4rem;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
  transition: transform var(--transition-normal), border-color var(--transition-normal), box-shadow var(--transition-normal);
}

.workflow-bento-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: transparent;
  transition: background var(--transition-normal);
}

.workflow-bento-card:hover {
  transform: translateY(-6px);
  border-color: rgba(195, 62, 38, 0.45);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.5), 0 0 20px rgba(195, 62, 38, 0.15);
}

.workflow-bento-card:hover::before {
  background: var(--primary);
}

.workflow-bento-card.final {
  border-color: rgba(16, 185, 129, 0.22);
  background: radial-gradient(circle at top right, rgba(16, 185, 129, 0.08) 0%, #141829 65%);
}

.workflow-bento-card.final:hover {
  border-color: rgba(16, 185, 129, 0.55);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.5), 0 0 20px rgba(16, 185, 129, 0.2);
}

.workflow-bento-card.final:hover::before {
  background: #10B981;
}

.workflow-bento-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.15rem;
}

.workflow-step-num {
  font-family: var(--font-mono);
  font-size: 1.85rem;
  font-weight: 800;
  color: #C33E26;
  letter-spacing: -0.02em;
  line-height: 1;
}

.workflow-bento-card.final .workflow-step-num {
  color: #10B981;
}

.workflow-step-badge {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-pill);
  background: rgba(195, 62, 38, 0.14);
  color: #EA583E;
  letter-spacing: 0.04em;
  border: 1px solid rgba(195, 62, 38, 0.25);
}

.workflow-bento-card.final .workflow-step-badge {
  background: rgba(16, 185, 129, 0.14);
  color: #10B981;
  border-color: rgba(16, 185, 129, 0.3);
}

.workflow-step-title {
  font-size: 1.08rem;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 0.65rem;
  line-height: 1.35;
}

.workflow-step-desc {
  font-size: 0.825rem;
  color: #94A3B8;
  line-height: 1.55;
  margin: 0;
}

@media (max-width: 1200px) {
  .workflow-bento-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
  }
}

@media (max-width: 768px) {
  .workflow-bento-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
}

@media (max-width: 540px) {
  .workflow-bento-grid {
    grid-template-columns: 1fr;
    gap: 0.85rem;
  }
  .workflow-bento-card {
    padding: 1.35rem 1.15rem;
  }
}

.workflow-steps-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
}

@media (max-width: 992px) {
  .workflow-steps-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 640px) {
  .workflow-steps-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
}

/* ==========================================================================
   PRODUCTS CATALOGUE & FILTER
   ========================================================================== */

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin-bottom: 3rem;
}

.filter-btn {
  padding: 0.55rem 1.25rem;
  border-radius: var(--radius-pill);
  font-size: 0.875rem;
  font-weight: 600;
  background: var(--surface-white);
  border: 1px solid var(--border-light);
  color: var(--text-body);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.filter-btn:hover {
  background: var(--surface-alt);
  border-color: #CBD5E1;
}

.filter-btn.active {
  background: var(--navy-dark);
  color: #FFFFFF;
  border-color: var(--navy-dark);
  box-shadow: 0 4px 12px rgba(22, 27, 51, 0.25);
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.product-card {
  background: var(--surface-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all var(--transition-normal);
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(195, 62, 38, 0.35);
}

.product-img-box {
  width: 100%;
  height: 220px;
  background: #0E1222;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-blueprint-svg {
  width: 100%;
  height: 100%;
  stroke: #4B5563;
  transition: stroke var(--transition-normal);
}

.product-card:hover .product-blueprint-svg {
  stroke: var(--primary-light);
}

.product-badge-float {
  position: absolute;
  top: 1rem;
  right: 1rem;
}

.product-content {
  padding: 1.75rem 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.product-model {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  margin-bottom: 0.4rem;
}

.product-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--navy-dark);
  margin-bottom: 0.65rem;
  line-height: 1.3;
}

.product-summary {
  font-size: 0.875rem;
  color: var(--text-body);
  line-height: 1.55;
  margin-bottom: 1.25rem;
}

.product-specs-table {
  width: 100%;
  font-size: 0.8rem;
  border-collapse: collapse;
  margin-top: auto;
  margin-bottom: 1.25rem;
}

.product-specs-table tr {
  border-bottom: 1px solid var(--border-subtle);
}

.product-specs-table td {
  padding: 0.45rem 0;
}

.product-specs-table td:first-child {
  color: var(--text-muted);
  font-weight: 500;
}

.product-specs-table td:last-child {
  text-align: right;
  font-family: var(--font-mono);
  font-weight: 600;
  color: var(--navy-dark);
}

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

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

/* ==========================================================================
   PROJECTS PORTFOLIO & MODAL
   ========================================================================== */

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

.project-card {
  background: var(--surface-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: default;
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
}

.project-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
}

.project-visual {
  height: 200px;
  background: #111528;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.project-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.4s ease;
  display: block;
}

.project-visual img[src$=".png"] {
  object-fit: contain;
}

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

.project-tag {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: rgba(22, 27, 51, 0.85);
  backdrop-filter: blur(8px);
  color: #FFFFFF;
  font-size: 0.725rem;
  font-weight: 600;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.project-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.project-client {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  margin-bottom: 0.35rem;
}

.project-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--navy-dark);
  line-height: 1.35;
  margin-bottom: 0.65rem;
}

.project-excerpt {
  font-size: 0.875rem;
  color: var(--text-body);
  line-height: 1.55;
  margin-bottom: 1.25rem;
}

.project-meta-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid var(--border-subtle);
  font-size: 0.8rem;
  color: var(--text-muted);
}

.project-meta-val {
  font-weight: 700;
  color: var(--navy-dark);
  font-family: var(--font-mono);
}

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

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

/* Modal Window */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(14, 18, 38, 0.8);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  transition: opacity var(--transition-normal);
}

.modal-overlay.open {
  display: flex;
  opacity: 1;
}

.modal-container {
  background: var(--surface-white);
  border-radius: var(--radius-lg);
  max-width: 720px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.35);
  position: relative;
  transform: translateY(20px);
  transition: transform var(--transition-normal);
}

.modal-overlay.open .modal-container {
  transform: translateY(0);
}

.modal-close-btn {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-dark);
  transition: all var(--transition-fast);
  z-index: 10;
}

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

/* RFQ Popup Modal Specific */
.rfq-modal-overlay {
  padding: 1.25rem;
  overflow-y: auto;
}

.rfq-modal-container {
  max-width: 650px;
  width: 100%;
  max-height: calc(100vh - 2.5rem);
  background: var(--surface-white);
  border: 1px solid var(--border-light);
  border-radius: 16px;
  padding: 1.65rem 2rem 1.4rem;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.4);
  position: relative;
  margin: auto;
  overflow-y: auto;
  overscroll-behavior: contain;
}

/* Custom sleek scrollbar for RFQ modal */
.rfq-modal-container::-webkit-scrollbar {
  width: 5px;
}
.rfq-modal-container::-webkit-scrollbar-track {
  background: transparent;
}
.rfq-modal-container::-webkit-scrollbar-thumb {
  background: rgba(195, 62, 38, 0.35);
  border-radius: 4px;
}
.rfq-modal-container::-webkit-scrollbar-thumb:hover {
  background: var(--primary);
}

.rfq-modal-body .rfq-modal-header {
  margin-bottom: 1rem;
  padding-right: 2.25rem;
}

.rfq-modal-body .rfq-modal-header h2 {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-dark);
  margin-top: 0.3rem;
  margin-bottom: 0.3rem;
  line-height: 1.3;
}

.rfq-modal-body .rfq-modal-header p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.45;
  margin: 0;
}

.rfq-form .form-group {
  margin-bottom: 0.75rem;
}

.rfq-form .form-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 0.28rem;
  display: block;
}

.rfq-form .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.rfq-form .form-row-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.65rem;
  align-items: end;
}

.rfq-form .form-row-3 .form-group {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.rfq-form .form-row-3 .form-label {
  white-space: nowrap;
  font-size: 0.8rem;
  letter-spacing: -0.01em;
}

.rfq-form .form-input,
.rfq-form .form-select {
  height: 38px;
  padding: 0.45rem 0.75rem;
  font-size: 0.875rem;
  border-radius: 8px;
}

.rfq-form .form-textarea {
  min-height: 52px;
  height: 52px;
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  border-radius: 8px;
  resize: vertical;
}

.rfq-form .btn-submit-rfq {
  padding: 0.75rem 1.25rem;
  font-size: 0.95rem;
  font-weight: 700;
  width: 100%;
  margin-top: 0.35rem;
  border-radius: 8px;
  box-shadow: 0 4px 14px rgba(195, 62, 38, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

/* Dark mode specific enhancements for RFQ modal */
[data-theme="dark"] .rfq-modal-container {
  background: #141829;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 25px 65px rgba(0, 0, 0, 0.85), 0 0 0 1px rgba(255, 255, 255, 0.05);
}

[data-theme="dark"] .rfq-modal-container .modal-close-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #FFFFFF;
}

[data-theme="dark"] .rfq-modal-container .modal-close-btn:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #FFFFFF;
}

[data-theme="dark"] .rfq-modal-body .rfq-modal-header h2 {
  color: #FFFFFF !important;
}

[data-theme="dark"] .rfq-modal-body .rfq-modal-header p {
  color: #94A3B8 !important;
}

[data-theme="dark"] .rfq-form .form-label {
  color: #E2E8F0 !important;
}

[data-theme="dark"] .rfq-form .form-input,
[data-theme="dark"] .rfq-form .form-select,
[data-theme="dark"] .rfq-form .form-textarea {
  background-color: #192036 !important;
  color: #F8FAFC !important;
  border-color: #2D3759 !important;
}

[data-theme="dark"] .rfq-form .form-input:focus,
[data-theme="dark"] .rfq-form .form-select:focus,
[data-theme="dark"] .rfq-form .form-textarea:focus {
  background-color: #1D2540 !important;
  border-color: var(--primary) !important;
  box-shadow: 0 0 0 3px rgba(195, 62, 38, 0.28) !important;
}

[data-theme="dark"] .rfq-form .form-input::placeholder,
[data-theme="dark"] .rfq-form .form-textarea::placeholder {
  color: #64748B !important;
}

@media (max-width: 640px) {
  .rfq-modal-overlay {
    padding: 0.5rem;
  }
  .rfq-modal-container {
    padding: 1.25rem 1rem 1.15rem;
    max-height: calc(100vh - 1rem);
  }
  .rfq-form .form-row,
  .rfq-form .form-row-3 {
    grid-template-columns: 1fr;
    gap: 0.65rem;
  }
}

.modal-header-visual {
  background: #111528;
  position: relative;
  width: 100%;
  display: block;
  overflow: hidden;
}

.modal-header-visual > img,
.modal-header-visual > svg {
  width: 100%;
  height: 300px;
  object-fit: cover;
  object-position: top center;
  display: block;
}

/* ==========================================================================
   IDEA 1: STAGE-BY-STAGE INTERACTIVE TAB GALLERY (PROJECT MODAL)
   ========================================================================== */
.modal-gallery-viewport {
  position: relative;
  width: 100%;
  height: 340px;
  background: #080B14;
  overflow: hidden;
}

.stage-main-frame {
  position: relative;
  width: 100%;
  height: 100%;
}

.stage-main-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
  opacity: 1;
  transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
}

.stage-main-img.fade-out {
  opacity: 0.15;
}

/* Engineering Status Badge Overlay */
.stage-badge-overlay {
  position: absolute;
  top: 0.85rem;
  left: 0.85rem;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: rgba(10, 14, 28, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  z-index: 8;
  pointer-events: none;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
}

.stage-pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10B981;
  box-shadow: 0 0 8px #10B981;
  animation: stagePulseDot 1.8s ease-in-out infinite;
}

@keyframes stagePulseDot {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.4);
    opacity: 0.6;
  }
}

.stage-badge-text {
  font-family: var(--font-mono, monospace);
  font-size: 0.72rem;
  font-weight: 700;
  color: #FFFFFF;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

/* Fullscreen Zoom Button */
.stage-zoom-btn {
  position: absolute;
  top: 0.85rem;
  right: 3.5rem;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(10, 14, 28, 0.82);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 6px;
  padding: 5px 10px;
  color: #FFFFFF;
  font-size: 0.72rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  z-index: 8;
}

.stage-zoom-btn:hover {
  background: #C33E26;
  border-color: #C33E26;
  transform: translateY(-1px);
}

/* Lower-Left Caption Overlay */
.stage-caption-overlay {
  position: absolute;
  bottom: 0.75rem;
  left: 0.85rem;
  max-width: 46%;
  z-index: 8;
  background: rgba(8, 12, 24, 0.84);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 8px 14px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  pointer-events: none;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.45);
}

.stage-caption-title {
  font-size: 0.82rem;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.stage-caption-desc {
  font-size: 0.7rem;
  color: #94A3B8;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Lower-Right Interactive Thumbnail Carousel */
.stage-thumbnails-carousel {
  position: absolute;
  bottom: 0.75rem;
  right: 0.85rem;
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 8;
  background: rgba(8, 12, 24, 0.86);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 6px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
  max-width: 50%;
  overflow-x: auto;
  scrollbar-width: none;
}
.stage-thumbnails-carousel::-webkit-scrollbar {
  display: none;
}

.stage-thumb-card {
  position: relative;
  width: 68px;
  height: 48px;
  border-radius: 6px;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.22);
  background: #000000;
  cursor: pointer;
  padding: 0;
  transition: all 0.22s cubic-bezier(0.34, 1.56, 0.64, 1);
  flex-shrink: 0;
}

.stage-thumb-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.stage-thumb-card:hover {
  transform: translateY(-2px);
  border-color: #FFFFFF;
}

.stage-thumb-card.active {
  border-color: #C33E26 !important;
  box-shadow: 0 0 14px rgba(195, 62, 38, 0.85);
  transform: translateY(-2px) scale(1.05);
}

.stage-thumb-tag {
  position: absolute;
  bottom: 2px;
  right: 2px;
  font-family: var(--font-mono, monospace);
  font-size: 0.58rem;
  font-weight: 800;
  background: rgba(0, 0, 0, 0.8);
  color: #FFFFFF;
  padding: 1px 4px;
  border-radius: 3px;
  line-height: 1;
}

/* Engineering Stage Filter Bar (Tabs) */
.modal-stage-tabs {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  background: var(--surface-alt, #F8FAFC);
  border-bottom: 1px solid var(--border-color, #E2E8F0);
  overflow-x: auto;
  white-space: nowrap;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.modal-stage-tabs::-webkit-scrollbar {
  display: none;
}

[data-theme="dark"] .modal-stage-tabs {
  background: #0B0F1E;
  border-bottom-color: #1E293B;
}

.stage-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.42rem 0.95rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(0, 0, 0, 0.08);
  color: #475569;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.22s ease;
  flex-shrink: 0;
  user-select: none;
}

[data-theme="dark"] .stage-tab-btn {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
  color: #94A3B8;
}

.stage-tab-btn:hover {
  color: #C33E26;
  border-color: rgba(195, 62, 38, 0.4);
  background: rgba(195, 62, 38, 0.08);
}

.stage-tab-btn.active {
  background: #C33E26 !important;
  color: #FFFFFF !important;
  border-color: #C33E26 !important;
  box-shadow: 0 4px 14px rgba(195, 62, 38, 0.4);
}

.stage-tab-num {
  font-family: var(--font-mono, monospace);
  font-size: 0.7rem;
  font-weight: 800;
  opacity: 0.75;
}

.stage-tab-btn.active .stage-tab-num {
  opacity: 1;
  color: #FFFFFF;
}

/* ==========================================================================
   INTERACTIVE INSPECTION HOTSPOTS (PROJECT MODAL)
   ========================================================================== */
.image-hotspot-container {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.hotspot-base-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}

.hotspot-pin {
  position: absolute;
  transform: translate(-50%, -50%);
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #C33E26;
  color: #FFFFFF;
  border: 2.5px solid #FFFFFF;
  box-shadow: 0 0 14px rgba(195, 62, 38, 0.75), 0 3px 8px rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  cursor: pointer;
  z-index: 6;
  font-family: var(--font-mono, monospace);
  font-size: 0.75rem;
  font-weight: 800;
  line-height: 1;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.25s ease;
}

.hotspot-pin:hover,
.hotspot-pin:focus-visible {
  transform: translate(-50%, -50%) scale(1.25);
  box-shadow: 0 0 22px rgba(195, 62, 38, 0.95), 0 6px 14px rgba(0, 0, 0, 0.6);
  z-index: 10;
  outline: none;
}

.hotspot-pulse {
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: rgba(195, 62, 38, 0.65);
  pointer-events: none;
  animation: hotspotRadar 2.2s cubic-bezier(0.24, 0, 0.38, 1) infinite;
}

@keyframes hotspotRadar {
  0% {
    transform: scale(0.9);
    opacity: 0.95;
  }
  70% {
    transform: scale(2.6);
    opacity: 0;
  }
  100% {
    transform: scale(2.8);
    opacity: 0;
  }
}

.hotspot-inner {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hotspot-tooltip {
  position: absolute;
  bottom: calc(100% + 9px);
  left: 50%;
  transform: translateX(-50%) translateY(5px);
  background: rgba(11, 15, 29, 0.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #F8FAFC;
  font-family: var(--font-sans, system-ui);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  padding: 5px 11px;
  border-radius: 6px;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.16);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
  z-index: 12;
}

.hotspot-tooltip::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border-width: 5px;
  border-style: solid;
  border-color: rgba(11, 15, 29, 0.95) transparent transparent transparent;
}

.hotspot-pin:hover .hotspot-tooltip {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

/* Sub-modal detail pop-up / Lightbox */
.hotspot-preview-modal {
  position: fixed;
  inset: 0;
  z-index: 10050;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.28s ease, visibility 0.28s ease;
}

.hotspot-preview-modal.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.hotspot-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(6, 9, 18, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.hotspot-modal-dialog {
  position: relative;
  max-width: 580px;
  width: 100%;
  background: #0E1322;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-lg, 16px);
  overflow: hidden;
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.7);
  transform: scale(0.93) translateY(12px);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 2;
}

.hotspot-preview-modal.active .hotspot-modal-dialog {
  transform: scale(1) translateY(0);
}

.hotspot-modal-close {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(14, 19, 34, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 5;
  transition: all 0.2s ease;
}

.hotspot-modal-close:hover {
  background: #C33E26;
  border-color: #C33E26;
  transform: scale(1.08);
}

.hotspot-modal-media {
  height: 270px;
  position: relative;
  background: #070A14;
  overflow: hidden;
}

.hotspot-modal-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.hotspot-modal-content {
  padding: 1.5rem 1.75rem 1.85rem;
  color: #FFFFFF;
}

.hotspot-modal-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  font-family: var(--font-mono, monospace);
  letter-spacing: 0.08em;
  padding: 3px 9px;
  border-radius: 4px;
  background: rgba(195, 62, 38, 0.2);
  color: #FF6B4A;
  border: 1px solid rgba(195, 62, 38, 0.4);
  margin-bottom: 0.65rem;
}

.hotspot-modal-title {
  font-size: 1.22rem;
  font-weight: 700;
  color: #FFFFFF;
  margin: 0 0 0.6rem;
  line-height: 1.35;
}

.hotspot-modal-desc {
  font-size: 0.88rem;
  line-height: 1.6;
  color: #94A3B8;
  margin: 0;
}

.modal-content-inner {
  padding: 2rem;
}

.modal-title {
  font-size: 1.65rem;
  font-weight: 800;
  color: var(--navy-dark);
  margin-bottom: 0.5rem;
}

.modal-spec-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  background: var(--surface-alt);
  padding: 1rem;
  border-radius: var(--radius-md);
  margin: 1.25rem 0;
}

.modal-spec-box {
  display: flex;
  flex-direction: column;
}

.modal-spec-lbl {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.modal-spec-val {
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy-dark);
  font-family: var(--font-mono);
}

@media (max-width: 640px) {
  .modal-overlay {
    padding: 0.75rem;
  }
  .modal-content-inner {
    padding: 1.25rem;
  }
  .modal-title {
    font-size: 1.25rem;
  }
  .modal-spec-grid {
    grid-template-columns: 1fr;
    gap: 0.65rem;
  }
  .modal-spec-box[style*="grid-column: span 2"] {
    grid-column: span 1 !important;
  }
  .modal-header-visual {
    height: auto;
    min-height: 220px;
  }
  .modal-gallery-viewport {
    height: 230px;
  }
  .stage-caption-overlay {
    display: none;
  }
  .stage-zoom-btn span {
    display: none;
  }
  .stage-zoom-btn {
    right: 3.2rem;
    padding: 5px;
  }
  .stage-thumbnails-carousel {
    bottom: 0.5rem;
    right: 0.5rem;
    max-width: 82%;
    gap: 5px;
    padding: 4px;
  }
  .stage-thumb-card {
    width: 48px;
    height: 34px;
  }
  .modal-stage-tabs {
    padding: 0.5rem 0.75rem;
    gap: 0.35rem;
  }
  .stage-tab-btn {
    padding: 0.35rem 0.75rem;
    font-size: 0.72rem;
  }
}

/* ==========================================================================
   CONTACT PAGE & TECHNICAL RFQ FORM
   ========================================================================== */

.contact-layout-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 3rem;
  align-items: start;
}

.rfq-card {
  background: var(--surface-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-md);
}

.rfq-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--navy-dark);
}

.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-sm);
  background: var(--surface-white);
  color: var(--text-dark);
  font-size: 0.925rem;
  transition: all var(--transition-fast);
}

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

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.form-row-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  align-items: end;
}

.form-row-3 .form-group {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.form-row-3 .form-label {
  white-space: nowrap;
  font-size: 0.84rem;
  letter-spacing: -0.01em;
}

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

.form-alert {
  padding: 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  display: none;
}

.form-alert.success {
  background: #ECFDF5;
  color: #065F46;
  border: 1px solid #A7F3D0;
}

/* Contact Info Column */
.contact-info-col {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.info-card {
  background: var(--surface-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  display: flex;
  gap: 1.25rem;
  box-shadow: var(--shadow-sm);
}

.info-icon-box {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: rgba(22, 27, 51, 0.06);
  color: var(--navy-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.info-icon-box svg {
  width: 24px;
  height: 24px;
}

.info-body {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.info-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--navy-dark);
}

.info-text {
  font-size: 0.9rem;
  color: var(--text-body);
  line-height: 1.6;
}

@media (max-width: 992px) {
  .contact-layout-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .form-row, .form-row-3 {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .rfq-card {
    padding: 1.25rem;
  }
  .form-input, .form-select, .form-textarea {
    font-size: 16px;
    padding: 0.65rem 0.85rem;
  }
}

/* ==========================================================================
   ABOUT PAGE - TIMELINE & CERTIFICATIONS
   ========================================================================== */

.certs-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.cert-card {
  background: var(--surface-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  transition: all var(--transition-normal);
}

.cert-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.cert-badge-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: rgba(195, 62, 38, 0.1);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.cert-badge-icon svg {
  width: 24px;
  height: 24px;
}

.cert-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--navy-dark);
  margin-bottom: 0.35rem;
}

.cert-body {
  font-size: 0.875rem;
  color: var(--text-body);
  line-height: 1.5;
}

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

/* Value Cards */
.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}

.value-card {
  background: var(--navy-surface);
  border: 1px solid var(--navy-border);
  border-radius: var(--radius-md);
  padding: 2rem;
  color: #FFFFFF;
}

.value-card-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 0.75rem;
}

.value-card-desc {
  font-size: 0.925rem;
  color: #94A3B8;
  line-height: 1.6;
}

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

/* ==========================================================================
   CALL TO ACTION BANNER
   ========================================================================== */

.cta-banner {
  background: linear-gradient(135deg, var(--navy-deep) 0%, var(--navy-dark) 50%, #1d2547 100%);
  color: #FFFFFF;
  padding: 4.5rem 0;
  position: relative;
  overflow: hidden;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .cta-banner {
  background: linear-gradient(135deg, #090C17 0%, #101426 50%, #161B33 100%);
  border-top-color: #1F2744;
}

.cta-banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: repeating-linear-gradient(
    45deg,
    var(--amber-safety),
    var(--amber-safety) 15px,
    #111528 15px,
    #111528 30px
  );
}

.cta-flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2.5rem;
}

.cta-info {
  max-width: 700px;
}

.cta-title {
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 0.75rem;
  line-height: 1.25;
}

.cta-desc {
  font-size: 1.05rem;
  color: #CBD5E1;
  line-height: 1.6;
}

@media (max-width: 900px) {
  .cta-flex {
    flex-direction: column;
    text-align: center;
    gap: 1.75rem;
  }
}

@media (max-width: 640px) {
  .cta-banner {
    padding: 2.75rem 0;
  }
  .cta-title {
    font-size: 1.55rem;
  }
  .cta-desc {
    font-size: 0.95rem;
  }
  .cta-flex .btn {
    width: 100%;
  }
}

/* ==========================================================================
   FOOTER
   ========================================================================== */

.site-footer {
  background: var(--footer-bg);
  color: var(--footer-desc);
  padding: 4.5rem 0 2rem;
  border-top: 1px solid var(--footer-border);
  margin-top: auto;
  transition: background var(--transition-normal), color var(--transition-normal);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1.2fr 1.3fr;
  gap: 3rem;
  margin-bottom: 3.5rem;
}

.footer-brand-col {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-brand-header {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.footer-brand-logo {
  width: auto;
  height: 38px;
  max-height: 38px;
  object-fit: contain;
  display: block;
  filter: var(--logo-filter, none);
  transition: filter 0.35s ease, transform var(--transition-fast);
}

.footer-brand-title {
  color: var(--footer-title);
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  transition: color var(--transition-normal);
}

.footer-brand-desc {
  font-size: 0.875rem;
  line-height: 1.65;
  color: var(--footer-desc);
  transition: color var(--transition-normal);
}

.footer-col-title {
  color: var(--footer-col-title);
  font-size: 0.95rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1.25rem;
  transition: color var(--transition-normal);
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.footer-links a {
  font-size: 0.875rem;
  color: var(--footer-link);
  transition: color var(--transition-fast);
}

.footer-links a:hover {
  color: var(--footer-link-hover);
  padding-left: 4px;
}

.footer-contacts-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  font-size: 0.875rem;
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
}

.footer-contact-item svg {
  width: 18px;
  height: 18px;
  color: var(--primary);
  flex-shrink: 0;
  margin-top: 3px;
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid var(--footer-bottom-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: var(--footer-bottom-text);
}

@media (max-width: 992px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
  }
}

@media (max-width: 600px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
}

/* ==========================================================================
   FEATURED PROJECT BENTO CARD (ERDENET MINING CORP HIGHLIGHT)
   ========================================================================== */
.featured-project-card {
  background: var(--surface-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  box-shadow: 0 12px 36px rgba(15, 23, 42, 0.08);
  transition: all var(--transition-normal);
  position: relative;
  margin-top: 2rem;
}

[data-theme="dark"] .featured-project-card {
  background: #141829;
  border-color: rgba(255, 255, 255, 0.08);
}

.featured-project-card:hover {
  transform: translateY(-4px);
  border-color: rgba(195, 62, 38, 0.4);
  box-shadow: 0 20px 48px rgba(15, 23, 42, 0.16);
}

.featured-project-info {
  padding: 3rem 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1.25rem;
}

.featured-client-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.featured-client-tag::before {
  content: '';
  width: 8px;
  height: 8px;
  background: var(--primary);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--primary-glow);
}

.featured-project-title {
  font-size: 1.85rem;
  font-weight: 800;
  line-height: 1.25;
  color: var(--text-dark);
}

.featured-project-scope {
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text-muted);
}

.featured-specs-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
  padding: 1rem 0;
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
  margin-top: 0.25rem;
}

.featured-spec-item {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  background: rgba(15, 23, 42, 0.03);
  padding: 0.75rem 0.85rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(15, 23, 42, 0.06);
}

[data-theme="dark"] .featured-spec-item {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.07);
}

.featured-spec-lbl {
  font-size: 0.68rem;
  font-family: var(--font-mono);
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  font-weight: 600;
}

.featured-spec-val {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-dark);
  font-family: var(--font-mono);
}

.featured-blueprint-visual {
  position: relative;
  background: #0B0E1B;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  min-height: 420px;
}

/* Real site photo visual styling */
.featured-photo-visual {
  position: relative;
  background: #070A14;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  min-height: 420px;
  cursor: pointer;
}

.photo-ambient-bg {
  position: absolute;
  inset: -20px;
  width: calc(100% + 40px);
  height: calc(100% + 40px);
  object-fit: cover;
  filter: blur(28px) brightness(0.35) saturate(1.2);
  transform: scale(1.15);
  pointer-events: none;
  z-index: 1;
}

.featured-real-photo {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
  position: relative;
  z-index: 2;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.featured-project-card:hover .featured-real-photo {
  transform: scale(1.02);
}

/* Real site photo UI overlays */
.photo-overlay-top-left {
  position: absolute;
  top: 1.25rem;
  left: 1.25rem;
  max-width: calc(100% - 135px);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(14, 18, 38, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(10px);
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-pill);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  color: #FFFFFF;
  letter-spacing: 0.04em;
  z-index: 4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.photo-pulse-dot {
  width: 8px;
  height: 8px;
  background: #10B981;
  border-radius: 50%;
  box-shadow: 0 0 10px #10B981;
  animation: pulseGreen 2s infinite ease-in-out;
}

@keyframes pulseGreen {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(1.3); }
}

.photo-overlay-top-right {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: rgba(14, 18, 38, 0.85);
  border: 1px solid rgba(56, 189, 248, 0.4);
  backdrop-filter: blur(10px);
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  z-index: 4;
}

.photo-hud-lbl {
  color: #94A3B8;
  font-weight: 600;
  letter-spacing: 0.05em;
}

.photo-hud-val {
  color: #38BDF8;
  font-weight: 800;
}

.photo-overlay-bottom {
  position: absolute;
  bottom: 1.25rem;
  left: 1.25rem;
  right: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(14, 18, 38, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  z-index: 4;
  transition: all var(--transition-fast);
}

.photo-model-name {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 800;
  color: #F8FAFC;
  letter-spacing: 0.04em;
}

.photo-model-sub {
  font-size: 0.72rem;
  color: #94A3B8;
  margin-top: 0.15rem;
}

.photo-zoom-action {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: rgba(195, 62, 38, 0.2);
  border: 1px solid rgba(195, 62, 38, 0.5);
  color: #FFFFFF;
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.photo-zoom-action:hover {
  background: var(--primary);
  border-color: var(--primary);
  transform: translateY(-1px);
}

/* Photo Lightbox Modal */
.photo-lightbox {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

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

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(7, 10, 19, 0.94);
  backdrop-filter: blur(10px);
}

.lightbox-dialog {
  position: relative;
  z-index: 2;
  max-width: 94vw;
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: lightboxPop 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes lightboxPop {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

.lightbox-img-frame {
  position: relative;
  max-width: 100%;
  max-height: 80vh;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.7);
}

.lightbox-img {
  width: 100%;
  height: 100%;
  max-height: 80vh;
  object-fit: contain;
  display: block;
}

.lightbox-close-btn {
  position: absolute;
  top: -2.75rem;
  right: 0;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #FFFFFF;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.lightbox-close-btn:hover {
  background: var(--primary);
  border-color: var(--primary);
  transform: rotate(90deg);
}

.lightbox-info-bar {
  margin-top: 0.85rem;
  background: rgba(14, 18, 38, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
  padding: 0.45rem 1.25rem;
  border-radius: var(--radius-pill);
  color: #E2E8F0;
  font-size: 0.825rem;
  font-family: var(--font-mono);
  text-align: center;
}

.blueprint-cad-frame {
  width: 100%;
  height: 100%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

/* Inverted blueprint contrast styling requested */
.blueprint-inverted-img {
  max-width: 90%;
  max-height: 280px;
  object-fit: contain;
  filter: invert(0.9) hue-rotate(180deg) brightness(1.1) contrast(1.2);
  transition: transform 0.4s ease;
}

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

.blueprint-grid-overlay {
  position: absolute;
  inset: 0;
  background-size: 24px 24px;
  background-image: 
    linear-gradient(rgba(56, 189, 248, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(56, 189, 248, 0.08) 1px, transparent 1px);
  pointer-events: none;
}

.blueprint-meta-tag {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(14, 18, 38, 0.85);
  border: 1px solid rgba(56, 189, 248, 0.3);
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: #38BDF8;
  letter-spacing: 0.05em;
  backdrop-filter: blur(8px);
  z-index: 4;
}

.blueprint-meta-tag-secondary {
  position: absolute;
  bottom: 1.25rem;
  left: 1.25rem;
  background: rgba(14, 18, 38, 0.9);
  border: 1px solid rgba(245, 158, 11, 0.4);
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: #F59E0B;
  letter-spacing: 0.05em;
  backdrop-filter: blur(8px);
  z-index: 4;
}

.blueprint-meta-tag-top-left {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: rgba(14, 18, 38, 0.88);
  border: 1px solid rgba(16, 185, 129, 0.4);
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: #10B981;
  letter-spacing: 0.05em;
  backdrop-filter: blur(8px);
  z-index: 4;
}

.truss-blueprint-img {
  max-width: 95%;
  max-height: 290px;
  object-fit: contain;
  filter: invert(0.9) brightness(1.2);
  transition: transform 0.4s ease;
}

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

.featured-projects-stack {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  margin-top: 1.5rem;
}

@media (max-width: 992px) {
  .featured-project-card {
    grid-template-columns: 1fr;
  }
  .featured-project-info {
    padding: 2rem 1.5rem;
  }
  .featured-project-title {
    font-size: 1.5rem;
  }
}

/* ==========================================================================
   CAD-FEA SIMULATOR HUD
   ========================================================================== */
.cad-fea-sim-container {
  width: 100%;
  max-width: 620px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #0B0F19;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.6);
  position: relative;
}

.cad-fea-sim-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.65rem 1rem;
  background: rgba(14, 19, 36, 0.95);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.cad-fea-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  color: #F8FAFC;
  letter-spacing: 0.04em;
}

.cad-pulse-dot {
  width: 8px;
  height: 8px;
  background: #10B981;
  border-radius: 50%;
  box-shadow: 0 0 8px #10B981;
  animation: pulseDot 2s infinite;
}

@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

.cad-hud-controls {
  display: flex;
  gap: 0.35rem;
}

.cad-hud-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #CBD5E1;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.25rem 0.55rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.cad-hud-btn:hover,
.cad-hud-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #FFFFFF;
}

.cad-stage-viewport {
  position: relative;
  width: 100%;
  height: 330px;
  background: radial-gradient(circle at center, #141B33 0%, #070913 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.cad-vector-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 3;
}

.crane-sim-hero-img {
  max-width: 92%;
  max-height: 250px;
  object-fit: contain;
  filter: drop-shadow(0 16px 32px rgba(0, 0, 0, 0.8));
  position: relative;
  z-index: 2;
  transition: transform 0.3s ease;
}

.cad-telemetry-hud {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 1rem;
  background: rgba(10, 14, 25, 0.95);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: #94A3B8;
}

.cad-telemetry-left {
  display: flex;
  gap: 1.25rem;
}

.cad-tel-val {
  color: #38BDF8;
  font-weight: 700;
}

.cad-tel-rpm {
  color: #F59E0B;
  font-weight: 700;
}

.cad-tel-load {
  color: #EF4444;
  font-weight: 700;
  letter-spacing: 0.03em;
}


/* About page: let the story and fact panel use the full mobile width. */
.about-overview-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr);
  gap: 3.5rem;
  align-items: center;
}
.about-overview-grid > *, .about-purpose-grid > * { min-width: 0; }
.about-history-title { margin-top: .5rem; }
.about-facts {
  background: var(--navy-dark);
  color: #fff;
  padding: 2.5rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}
.about-purpose-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}
.about-purpose-card {
  background: var(--navy-surface);
  padding: 2.25rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--navy-border);
}
@media (max-width: 900px) {
  .about-overview-grid { grid-template-columns: minmax(0, 1fr); gap: 2rem; align-items: start; }
}
@media (max-width: 640px) {
  .about-overview-grid { gap: 1.5rem; }
  .about-history-title { font-size: clamp(1.75rem, 7vw, 2.25rem); line-height: 1.25; margin-bottom: 1rem; }
  .about-facts { padding: 1.5rem; }
  .about-facts h3 { line-height: 1.45; }
  .about-purpose-grid { grid-template-columns: minmax(0, 1fr); gap: 1rem; }
  .about-purpose-card { padding: 1.5rem; }
}

/* Contact page: readable form and direct contact cards across screen sizes. */
.contact-page .contact-layout-grid {
  grid-template-columns: minmax(0, 1.35fr) minmax(0, .9fr);
  gap: 2rem;
}
.contact-page .contact-layout-grid > *,
.contact-page .form-group, .contact-page .info-body { min-width: 0; }
.contact-page .rfq-card { padding: clamp(1.25rem, 3vw, 2.5rem); }
.contact-form-header { margin-bottom: 1.75rem; }
.contact-form-title { font-size: clamp(1.3rem, 2vw, 1.6rem); font-weight: 800; line-height: 1.45; color: var(--text-dark); margin-bottom: .65rem; }
.contact-form-header p { line-height: 1.7; }
.contact-page .rfq-form { gap: 1.25rem; }
.contact-page .rfq-form .form-group { margin-bottom: 0; gap: .5rem; }
.contact-page .rfq-form .form-label { font-size: .875rem; line-height: 1.5; white-space: normal; margin-bottom: 0; }
.contact-page .rfq-form .form-row { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.contact-page .rfq-form .form-row-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.contact-page .rfq-form .form-input,
.contact-page .rfq-form .form-select,
.contact-page .rfq-form .form-textarea { min-width: 0; min-height: 48px; height: auto; padding: .8rem .9rem; font-size: 1rem; }
.contact-page .rfq-form .form-textarea { min-height: 130px; }
.contact-page .rfq-form button[type="submit"] { width: 100%; min-height: 50px; white-space: normal; }
.contact-page .form-alert { margin-bottom: 1.5rem; line-height: 1.65; }
.contact-page .info-card { padding: 1.5rem; gap: 1rem; }
.contact-page .contact-info-col { gap: 1rem; }
.contact-page .info-title { line-height: 1.45; }
.contact-page .info-text { overflow-wrap: anywhere; }
.contact-page .contact-phone-link { display: inline-block; font-size: 1.15rem; font-weight: 700; color: var(--primary); padding: .25rem 0; }
.contact-page .contact-hotline-note { display: block; font-family: var(--font-body); font-size: .85rem; font-weight: 500; color: var(--text-muted); }
.contact-email-link:hover { color: var(--primary); text-decoration: underline; }
.contact-page a:focus-visible { outline: 2px solid var(--primary); outline-offset: 4px; border-radius: 4px; }
@media (max-width: 1100px) and (min-width: 993px) {
  .contact-page .contact-layout-grid { gap: 1.5rem; }
  .contact-page .info-card { flex-direction: column; }
}
@media (max-width: 992px) {
  .contact-page .contact-layout-grid { grid-template-columns: minmax(0, 1fr); }
  .contact-page .contact-info-col { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .contact-page .contact-info-col > :last-child { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .contact-page .rfq-form .form-row,
  .contact-page .rfq-form .form-row-3,
  .contact-page .contact-info-col { grid-template-columns: minmax(0, 1fr); }
  .contact-page .info-card { padding: 1.25rem; gap: .85rem; }
  .contact-page .info-icon-box { width: 40px; height: 40px; border-radius: 12px; }
  .contact-page .info-icon-box svg { width: 21px; height: 21px; }
  .contact-form-header { margin-bottom: 1.25rem; }
}

/* Mobile layout audit: intrinsic grid widths must not push cards off-screen. */
.featured-project-actions { display: flex; gap: .85rem; align-items: center; flex-wrap: wrap; }
.featured-project-card { grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); }
.featured-project-card > *, .featured-spec-item, .photo-overlay-info { min-width: 0; }
.featured-specs-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.featured-client-tag { overflow-wrap: anywhere; }
.featured-client-tag::before, .photo-pulse-dot { flex-shrink: 0; }
.photo-overlay-top-left > span:last-child { min-width: 0; white-space: normal; overflow-wrap: anywhere; }
@media (max-width: 992px) {
  .featured-project-card { grid-template-columns: minmax(0, 1fr); }
  .featured-specs-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .container { padding-left: 1.25rem; padding-right: 1.25rem; }
  .featured-project-info { padding: 1.5rem 1.25rem; gap: 1rem; }
  .featured-project-title { font-size: clamp(1.25rem, 5.5vw, 1.5rem); overflow-wrap: anywhere; }
  .featured-project-scope { font-size: .95rem; }
  .featured-spec-item { padding: .75rem; }
  .featured-spec-lbl, .featured-spec-val { overflow-wrap: anywhere; }
  .featured-spec-val { font-size: 1rem; }
  .featured-project-actions { display: grid; grid-template-columns: minmax(0, 1fr); width: 100%; gap: .65rem; }
  .featured-project-actions .btn { width: 100%; min-height: 44px; white-space: normal; text-align: center; justify-content: center; padding: .8rem 1rem; }
  .featured-photo-visual { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: .75rem; min-height: 0; padding: 1rem; }
  .featured-photo-visual .photo-ambient-bg { display: none; }
  .featured-photo-visual .photo-overlay-top-left { position: relative; top: auto; left: auto; max-width: 100%; border-radius: 12px; font-size: .6rem; letter-spacing: 0; padding: .5rem; }
  .featured-photo-visual .photo-overlay-top-right { position: relative; top: auto; right: auto; font-size: .65rem; padding: .5rem; }
  .featured-photo-visual .featured-real-photo { grid-column: 1 / -1; height: auto; max-height: none; object-fit: contain; border-radius: 8px; }
  .featured-photo-visual .photo-overlay-bottom { position: relative; bottom: auto; left: auto; right: auto; grid-column: 1 / -1; padding: .75rem; gap: .6rem; flex-wrap: wrap; }
  .photo-model-name, .photo-model-sub { overflow-wrap: anywhere; }
  .photo-zoom-action { min-height: 44px; flex-shrink: 0; }
  .filter-bar { gap: .5rem; }
  .filter-btn { max-width: 100%; white-space: normal; text-align: center; min-height: 44px; }
  .news-card, .project-card, .product-card, .service-card, .footer-col { min-width: 0; }
  .project-meta-row { flex-wrap: wrap; gap: .6rem; }
  .footer-contact-item { min-width: 0; overflow-wrap: anywhere; }
  .section-title, .page-hero-title { overflow-wrap: anywhere; }
  .rfq-form .form-row, .rfq-form .form-row-3 { grid-template-columns: minmax(0, 1fr); }
  .rfq-form .form-label { white-space: normal; }
  .rfq-form .form-input, .rfq-form .form-select, .rfq-form .form-textarea { min-height: 44px; font-size: 16px; }
  .modal-container { max-height: calc(100dvh - 2rem); }
  #articleModal .modal-content-inner { padding: 1.25rem !important; }
  .lightbox-info-bar { flex-wrap: wrap; overflow-wrap: anywhere; }
}
@media (max-width: 360px) {
  .navbar-wrapper { padding: 0 .5rem; }
  .navbar-pill { padding-left: .65rem; padding-right: .65rem; gap: .4rem; }
  .nav-brand { gap: .45rem; min-width: 0; }
  .brand-title { font-size: .82rem; }
  .navbar-actions { gap: .35rem; }
}
@media (max-width: 640px) {
  .nav-brand { flex: 1 1 auto; min-width: 0; }
  .nav-brand .brand-logo-img { flex-shrink: 0; }
  .brand-text { min-width: 0; }
  .brand-title { display: block; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .nav-actions { flex-shrink: 0; }
}
@media (max-width: 360px) {
  .nav-actions { gap: .35rem; }
}

/* Article close control stays outside the scrolling reading area. */
#articleModal .modal-container {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  max-height: 90vh;
  max-height: 90dvh;
}
#articleModal .article-modal-toolbar {
  display: flex;
  justify-content: flex-end;
  flex: 0 0 auto;
  padding: .5rem .75rem;
  background: var(--surface-white);
  border-bottom: 1px solid var(--border-light);
  z-index: 11;
}
#articleModal #artModalCloseBtn {
  position: static;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  background: var(--surface-alt);
  color: var(--text-dark);
}
#articleModal #artModalCloseBtn:hover { background: var(--primary); color: #fff; }
#articleModal #artModalCloseBtn:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
#articleModal .modal-content-inner {
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

/* Preserve the complete supplied location map on every screen size. */
.contact-map-card { margin: 0; min-width: 0; overflow: hidden; border: 1px solid var(--border-light); border-radius: var(--radius-md); background: #0B111B; }
.contact-map-card a { display: block; }
.contact-map-card img { display: block; width: 100%; height: auto; }
.contact-map-caption { display: block; padding: .8rem 1rem; color: #e2e8f0; font-size: .85rem; text-align: right; border-top: 1px solid rgba(255,255,255,.1); }
.contact-map-card a:hover .contact-map-caption { color: #38bdf8; }

@media (min-width: 993px) and (max-width: 1199px) {
  .products-hero .page-hero-content { max-width: 44%; }
  .products-hero .page-hero-crane-visual { width: 50%; }
}

/* Long localized spare-parts labels fit the same product-card layout. */
:is(.crane-spares-card, .crane-wire-rope-card, .crane-rail-card) .product-badge-float { max-width: calc(100% - 2rem); white-space: normal; text-align: center; }
:is(.crane-spares-card, .crane-wire-rope-card, .crane-rail-card) .product-specs-table { table-layout: fixed; width: 100%; }
:is(.crane-spares-card, .crane-wire-rope-card, .crane-rail-card) .product-specs-table td { overflow-wrap: anywhere; }
:is(.crane-spares-card, .crane-wire-rope-card, .crane-rail-card) .product-title, :is(.crane-spares-card, .crane-wire-rope-card, .crane-rail-card) .product-summary { overflow-wrap: anywhere; }
:is(.crane-spares-card, .crane-wire-rope-card, .crane-rail-card) .product-quote-link { white-space: normal; margin-top: auto; }

.product-guide-link { color: var(--primary); text-decoration: underline; text-underline-offset: .2em; }
.product-guide-link:hover { color: var(--primary-hover); }
.product-guide-link:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; }
