/* ==========================================================================
   KOREDOCK - Multi-Level Automated Parking Systems
   Official Brand Stylesheet matching Catalogue Design System
   ========================================================================== */

:root {
  /* Brand Primary Colors from Catalogue */
  --color-navy: #002d62;
  --color-navy-dark: #001e42;
  --color-navy-deep: #081a2e;
  --color-navy-light: #0d3d7a;
  
  /* Brand Vibrant Cyan & Teal from Catalogue */
  --color-cyan: #0090b5;
  --color-cyan-vibrant: #00a3c4;
  --color-cyan-glow: #00b4d8;
  --color-cyan-light: #e6f7fa;
  --color-cyan-soft: #f0f9ff;
  --color-cyan-accessible: #006b87;
  --color-cyan-text: #006b87;
  --color-whatsapp-accessible: #0f7e43;
  --color-whatsapp-hover: #0b6937;
  
  /* Equipment Safety Amber / Gold Accent */
  --color-safety-amber: #f59e0b;
  --color-safety-dark: #d97706;
  --color-safety-light: #fef3c7;

  /* Neutral & Base Palette */
  --color-bg-base: #f8fafc;
  --color-bg-white: #ffffff;
  --color-border: #e2e8f0;
  --color-border-subtle: #edf2f7;
  --color-text-main: #1e293b;
  --color-text-muted: #64748b;
  --color-text-light: #94a3b8;

  /* Typography */
  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 45, 98, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 45, 98, 0.08), 0 2px 4px -2px rgba(0, 45, 98, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 45, 98, 0.1), 0 4px 6px -4px rgba(0, 45, 98, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 45, 98, 0.12), 0 8px 10px -6px rgba(0, 45, 98, 0.04);
  --shadow-glow: 0 0 25px rgba(0, 163, 196, 0.25);

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;
  --transition-smooth: 400ms cubic-bezier(0.16, 1, 0.3, 1);
}

/* Base Styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--font-body);
  color: var(--color-text-main);
  background-color: var(--color-bg-base);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Mobile browsers ignore overflow-x on body when sizing the layout viewport,
   so stray decorative overflow would zoom the whole page out. Clip at main. */
main {
  overflow-x: clip;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--color-navy);
  line-height: 1.25;
}

/* Avoid single-word last lines (ignored by browsers without support) */
h1, h2, h3, h4,
.section-title,
.system-card-title,
.system-card-tagline,
.gallery-card-title {
  text-wrap: balance;
}

p, li, .section-desc {
  text-wrap: pretty;
}

.nowrap {
  white-space: nowrap;
}

a {
  color: inherit;
  text-decoration: none;
}

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

/* Blueprint & Catalogue Decorative Lines */
.blueprint-pattern {
  background-image: 
    linear-gradient(rgba(0, 144, 181, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 144, 181, 0.04) 1px, transparent 1px);
  background-size: 32px 32px;
}

.blueprint-grid-dark {
  background-image: 
    linear-gradient(rgba(0, 163, 196, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 163, 196, 0.07) 1px, transparent 1px);
  background-size: 40px 40px;
}

/* Corner decorative geometric lines matching catalogue page corners */
.corner-lines-tr {
  position: relative;
}
.corner-lines-tr::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 90px;
  height: 90px;
  background: 
    linear-gradient(135deg, transparent 45%, var(--color-cyan) 46%, var(--color-cyan) 48%, transparent 49%),
    linear-gradient(135deg, transparent 65%, var(--color-cyan) 66%, var(--color-cyan) 68%, transparent 69%);
  opacity: 0.7;
  pointer-events: none;
}

.corner-lines-tl {
  position: relative;
}
.corner-lines-tl::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 90px;
  height: 90px;
  background: 
    linear-gradient(45deg, transparent 45%, var(--color-cyan) 46%, var(--color-cyan) 48%, transparent 49%),
    linear-gradient(45deg, transparent 65%, var(--color-cyan) 66%, var(--color-cyan) 68%, transparent 69%);
  opacity: 0.7;
  pointer-events: none;
}

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

/* Top Notification / Contact Bar */
.top-bar {
  background: var(--color-navy-dark);
  color: #e2e8f0;
  font-size: 0.8125rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(0, 144, 181, 0.3);
}

.top-bar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.top-bar-group {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
}

.top-bar-contacts {
  gap: 1.5rem;
}

.top-bar-meta {
  gap: 1.25rem;
}

.top-bar-item {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: color var(--transition-fast);
}

.top-bar-item:hover {
  color: var(--color-cyan-glow);
}

/* Header & Sticky Navbar */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
  box-shadow: 0 4px 20px -2px rgba(0, 45, 98, 0.06);
  transition: all var(--transition-base);
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.brand-logo-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.brand-logo-img {
  height: 52px;
  width: auto;
  object-fit: contain;
}

.nav-menu {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 1.75rem;
}

.nav-link {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--color-navy);
  padding: 0.5rem 0;
  position: relative;
  transition: color var(--transition-fast);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2.5px;
  background: linear-gradient(90deg, var(--color-navy), var(--color-cyan));
  border-radius: 999px;
  transition: width var(--transition-base);
}

.nav-link:hover {
  color: var(--color-cyan);
}

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

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.9375rem;
  padding: 0.75rem 1.35rem;
  border-radius: 0.5rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--transition-smooth);
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-navy) 0%, var(--color-cyan) 100%);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(0, 45, 98, 0.25);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--color-navy-dark) 0%, var(--color-cyan-vibrant) 100%);
  box-shadow: 0 6px 20px rgba(0, 144, 181, 0.35);
  transform: translateY(-2px);
}

.btn-cyan {
  background: var(--color-cyan-accessible);
  color: #ffffff;
}

.btn-cyan:hover {
  background: #00566d;
  box-shadow: 0 4px 14px rgba(0, 107, 135, 0.4);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--color-navy);
  border-color: var(--color-cyan);
}

.btn-outline:hover {
  background: var(--color-cyan-light);
  color: var(--color-navy-dark);
  border-color: var(--color-navy);
}

.btn-amber {
  background: var(--color-safety-amber);
  color: #000;
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

.btn-amber:hover {
  background: var(--color-safety-dark);
  color: #fff;
  transform: translateY(-2px);
}

.btn-whatsapp {
  background: var(--color-whatsapp-accessible);
  color: #ffffff !important;
  box-shadow: 0 4px 14px rgba(15, 126, 67, 0.35);
}

.btn-whatsapp:hover {
  background: var(--color-whatsapp-hover);
  color: #ffffff !important;
  box-shadow: 0 6px 20px rgba(15, 126, 67, 0.45);
  transform: translateY(-2px);
}

.btn-white {
  background: #ffffff;
  color: var(--color-navy);
  box-shadow: var(--shadow-md);
}

.btn-white:hover {
  background: #f1f5f9;
  transform: translateY(-2px);
}

.btn-sm {
  padding: 0.45rem 0.9rem;
  font-size: 0.8125rem;
  border-radius: 0.375rem;
}

.btn-lg {
  padding: 0.95rem 1.95rem;
  font-size: 1.05rem;
  border-radius: 0.625rem;
}

/* Section Header Styles */
.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--color-cyan-light);
  color: var(--color-navy);
  font-family: var(--font-heading);
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.35rem 0.85rem;
  border-radius: 9999px;
  border: 1px solid rgba(0, 144, 181, 0.2);
  margin-bottom: 0.75rem;
}

.section-title {
  font-size: 2.35rem;
  margin-bottom: 1rem;
  color: var(--color-navy);
  letter-spacing: -0.02em;
}

.section-desc {
  font-size: 1.1rem;
  color: var(--color-text-muted);
  max-width: 680px;
  margin-bottom: 2.5rem;
}

.section-desc.center {
  margin-left: auto;
  margin-right: auto;
}

.text-cyan {
  color: var(--color-cyan-text);
}

.text-navy {
  color: var(--color-navy);
}

.text-amber {
  color: var(--color-safety-amber);
}

/* Badge & Stat Chips */
.badge-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.25rem 0.65rem;
  border-radius: 0.375rem;
  font-size: 0.75rem;
  font-weight: 600;
}

.badge-chip.cyan {
  background: var(--color-cyan-light);
  color: var(--color-navy);
  border: 1px solid rgba(0, 144, 181, 0.2);
}

.badge-chip.amber {
  background: var(--color-safety-light);
  color: #92400e;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

/* Hero Section */
.hero-section {
  position: relative;
  background: linear-gradient(170deg, #f0f7fb 0%, #ffffff 50%, #e6f3fa 100%);
  padding: 4.5rem 0 5.5rem 0;
  overflow: hidden;
  border-bottom: 1px solid var(--color-border);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 3.5rem;
}

.hero-motto {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 0.875rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-cyan);
  margin-bottom: 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.hero-title {
  font-size: 3.6rem;
  font-weight: 800;
  line-height: 1.1;
  color: var(--color-navy);
  margin-bottom: 1.35rem;
  letter-spacing: -0.03em;
}

.hero-kicker {
  display: block;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-cyan);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.5rem;
}

.hero-subtitle {
  font-size: 1.25rem;
  line-height: 1.6;
  color: #334155;
  margin-bottom: 2rem;
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2.75rem;
}

.hero-stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  padding-top: 1.75rem;
  border-top: 1px solid rgba(0, 144, 181, 0.2);
}

.stat-box {
  display: flex;
  flex-direction: column;
}

.stat-number {
  font-family: var(--font-heading);
  font-size: 2.1rem;
  font-weight: 800;
  color: var(--color-navy);
  line-height: 1;
  margin-bottom: 0.25rem;
}

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

/* Hero Visual Stage */
.hero-visual-wrapper {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-stage-bg {
  position: absolute;
  width: 110%;
  height: 110%;
  border-radius: 2rem;
  background: radial-gradient(circle at 60% 40%, rgba(0, 144, 181, 0.12) 0%, rgba(0, 45, 98, 0.05) 70%, transparent 100%);
  z-index: 1;
}

.hero-main-img {
  position: relative;
  z-index: 2;
  max-height: 520px;
  width: auto;
  filter: drop-shadow(0 25px 35px rgba(0, 45, 98, 0.22));
  animation: floatSlow 6s ease-in-out infinite;
}

@keyframes floatSlow {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* Floating feature cards in hero */
.floating-chip {
  position: absolute;
  z-index: 3;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  padding: 0.75rem 1rem;
  border-radius: 0.75rem;
  box-shadow: 0 12px 28px -4px rgba(0, 45, 98, 0.16);
  border: 1px solid rgba(0, 144, 181, 0.25);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--color-navy);
}

.chip-1 {
  top: 10%;
  left: -8%;
}

.chip-2 {
  bottom: 12%;
  right: -6%;
}

.floating-chip small {
  display: block;
  font-size: 0.75rem;
}

/* Pillars Section */
.pillars-bar {
  background: #ffffff;
  padding: 2.25rem 0;
  border-bottom: 1px solid var(--color-border);
}

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

.pillar-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem;
  border-radius: 0.625rem;
  background: var(--color-bg-base);
  border: 1px solid var(--color-border);
  transition: all var(--transition-base);
}

.pillar-item:hover {
  background: #ffffff;
  border-color: var(--color-cyan);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.pillar-icon-box {
  width: 44px;
  height: 44px;
  border-radius: 0.5rem;
  background: var(--color-cyan-light);
  color: var(--color-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.pillar-title {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--color-navy);
  margin-bottom: 0.2rem;
}

.pillar-desc {
  font-size: 0.8125rem;
  color: var(--color-text-muted);
  line-height: 1.4;
}

/* Before / After Transformation Section */
.before-after-section {
  padding: 5.5rem 0;
  background: #ffffff;
  position: relative;
}

.compare-card-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: center;
}

.compare-visual-wrapper {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.compare-top-badges {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  padding: 0 0.25rem;
}

.compare-visual-box {
  position: relative;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--color-border);
  background: #ffffff;
}

.compare-img {
  width: 100%;
  height: auto;
  display: block;
}

.compare-pill {
  padding: 0.5rem 1.15rem;
  border-radius: 999px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-fast);
}

.compare-pill.pill-before {
  background: #fef2f2;
  color: #b91c1c;
  border: 1.5px solid #fca5a5;
}

.compare-pill.pill-after {
  background: #ecfdf5;
  color: #047857;
  border: 1.5px solid #6ee7b7;
}

.compare-content-box {
  padding-left: 1rem;
}

.compare-heading {
  font-size: 1.85rem;
  color: var(--color-navy);
  margin-bottom: 1rem;
}

.impact-metric-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  margin-top: 1.75rem;
}

.impact-card {
  background: var(--color-bg-base);
  border: 1px solid var(--color-border);
  padding: 1.25rem;
  border-radius: 0.75rem;
  border-left: 4px solid var(--color-cyan);
}

.impact-value {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--color-navy);
  margin-bottom: 0.25rem;
}

.impact-text {
  font-size: 0.8125rem;
  color: var(--color-text-muted);
}

/* Systems & Solutions Tabbed / Cards Section */
.systems-section {
  padding: 5.5rem 0;
  background: var(--color-bg-base);
  position: relative;
}

.systems-tabs {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2.5rem;
  overflow: visible;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.systems-tabs::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

.sys-tab-btn {
  background: #ffffff;
  border: 1px solid var(--color-border);
  padding: 0.75rem 1.4rem;
  border-radius: 0.5rem;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--color-navy);
  cursor: pointer;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: all var(--transition-fast);
}

.sys-tab-btn:hover {
  border-color: var(--color-cyan);
  color: var(--color-cyan);
}

.sys-tab-btn.active {
  background: var(--color-navy);
  color: #ffffff;
  border-color: var(--color-navy);
  box-shadow: 0 4px 12px rgba(0, 45, 98, 0.2);
}

.system-detail-card {
  background: #ffffff;
  border-radius: 1.25rem;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  display: none;
}

.system-detail-card.active {
  display: block;
  animation: fadeIn 0.3s ease;
}

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

.system-card-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
}

.system-card-media {
  background: #ffffff;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2.5rem;
  overflow: hidden;
}

.system-card-media img {
  max-height: 480px;
  width: 100%;
  height: auto;
  object-fit: contain;
  transition: transform var(--transition-smooth);
}

.system-card-media:hover img {
  transform: scale(1.03);
}

/* Low-resolution source (471px): never upscale it */
.system-card-media img.img-natural-cap {
  max-width: 471px;
}

.system-card-info {
  padding: 3rem 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.system-card-title {
  font-size: 2rem;
  color: var(--color-navy);
  margin-bottom: 0.5rem;
}

.system-card-tagline {
  font-family: var(--font-heading);
  font-size: 0.9375rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--color-cyan-text);
  letter-spacing: 0.05em;
  margin-bottom: 1.25rem;
}

.system-card-desc {
  font-size: 1rem;
  color: var(--color-text-muted);
  line-height: 1.6;
  margin-bottom: 1.75rem;
}

.system-feature-list {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.system-feature-item {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  font-size: 0.9375rem;
  color: var(--color-text-main);
}

.system-feature-item i,
.system-feature-item svg {
  color: var(--color-cyan);
  margin-top: 0.25rem;
  flex-shrink: 0;
}

.system-specs-mini {
  display: grid;
  grid-template-columns: repeat(3, auto);
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem;
  background: var(--color-bg-base);
  border-radius: 0.75rem;
  border: 1px solid var(--color-border);
  margin-bottom: 2rem;
}

.mini-spec-title {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 0.2rem;
}

.mini-spec-val {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.05rem;
  line-height: 1.3;
  color: var(--color-navy);
}

/* Interactive Space Calculator */
.calc-section {
  padding: 5.5rem 0;
  background: linear-gradient(135deg, var(--color-navy-dark) 0%, var(--color-navy) 60%, var(--color-navy-light) 100%);
  color: #ffffff;
  position: relative;
  overflow: hidden;
}

.calc-box {
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 1.5rem;
  padding: 3rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.4);
}

.calc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: center;
}

.calc-input-group {
  margin-bottom: 1.75rem;
}

.calc-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9375rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: #e2e8f0;
}

.calc-range {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  outline: none;
  cursor: pointer;
  accent-color: var(--color-cyan-glow);
}

.calc-range-labels {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.75rem;
  color: #94a3b8;
  margin-top: 0.35rem;
}

.calc-range-labels > span:nth-child(2) {
  text-align: center;
}

.calc-range-labels > span:last-child {
  text-align: right;
}

.calc-stepper-wrap {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.calc-step-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(0, 163, 196, 0.5);
  background: rgba(0, 163, 196, 0.2);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 0.95rem;
  transition: all var(--transition-fast);
}

.calc-step-btn:hover {
  background: var(--color-cyan);
  border-color: var(--color-cyan-glow);
  color: #ffffff;
  transform: scale(1.1);
  box-shadow: 0 0 10px rgba(0, 163, 196, 0.5);
}

.calc-step-btn:active {
  transform: scale(0.92);
}

/* Larger touch area without changing the 34px visual */
.calc-step-btn {
  position: relative;
}

.calc-step-btn::before {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 50%;
}

.calc-presets {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.calc-preset-chip {
  font-family: var(--font-heading);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #cbd5e1;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.calc-preset-chip:hover {
  background: rgba(0, 163, 196, 0.25);
  color: #ffffff;
  border-color: var(--color-cyan-glow);
}

.calc-preset-chip.active {
  background: var(--color-cyan-accessible);
  border-color: var(--color-cyan-accessible);
  color: #ffffff;
  box-shadow: 0 0 12px rgba(0, 107, 135, 0.45);
}

.calc-radio-group {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}

.calc-radio-card {
  position: relative;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 1rem;
  border-radius: 0.75rem;
  cursor: pointer;
  text-align: center;
  transition: all var(--transition-fast);
  user-select: none;
}

.calc-radio-card:hover {
  border-color: rgba(0, 163, 196, 0.5);
  background: rgba(255, 255, 255, 0.12);
}

.calc-radio-card.active {
  background: rgba(0, 163, 196, 0.25);
  border-color: var(--color-cyan-glow);
  box-shadow: 0 0 15px rgba(0, 163, 196, 0.4);
}

.calc-radio-card .card-sys-title {
  font-weight: 700;
  font-size: 1.05rem;
  margin-bottom: 0.25rem;
  color: #ffffff;
  transition: color var(--transition-fast);
}

.calc-radio-card.active .card-sys-title {
  color: var(--color-cyan-glow);
}

.calc-radio-card .card-sys-desc {
  font-size: 0.75rem;
  color: #94a3b8;
  transition: color var(--transition-fast);
}

.calc-radio-card.active .card-sys-desc {
  color: #e2e8f0;
}

.calc-radio-card .card-sys-mult {
  white-space: nowrap;
}

.calc-results-card {
  background: #ffffff;
  color: var(--color-navy);
  border-radius: 1.25rem;
  padding: 2.25rem;
  box-shadow: var(--shadow-xl);
}

.calc-results-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem 0.75rem;
  margin-bottom: 1.25rem;
}

.calc-results-head .badge-chip {
  white-space: nowrap;
}

.calc-result-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
  border-bottom: 1px solid var(--color-border);
}

.calc-result-row:last-child {
  border-bottom: none;
}

.calc-res-big {
  font-family: var(--font-heading);
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--color-cyan);
  line-height: 1;
}

/* Technical Specification Matrix (Page 7) */
.specs-section {
  padding: 5.5rem 0;
  background: #ffffff;
}

.specs-grid {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 3rem;
  align-items: start;
  margin-bottom: 3.5rem;
}

.specs-table-wrapper {
  background: #ffffff;
  border-radius: 0.875rem;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-md);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  container-type: inline-size;
}

/* Wide wrappers: keep cell values on one line */
@container (min-width: 630px) {
  .specs-table td {
    white-space: nowrap;
  }
}

.table-swipe-hint {
  display: none;
}

.specs-visual-strip {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr);
  gap: 2rem;
  align-items: end;
  background: var(--color-bg-base);
  padding: 2rem;
  border-radius: 1rem;
  border: 1px solid var(--color-border);
}

/* Seven engineering-feature tiles: one row on desktop */
.specs-feature-strip {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  grid-auto-rows: 1fr;
  gap: 1rem;
  margin-top: 2.5rem;
  text-align: center;
}

.specs-feature-strip > * {
  min-width: 0;
}

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

.specs-table th {
  background: var(--color-navy);
  color: #ffffff;
  padding: 0.85rem 1rem;
  font-family: var(--font-heading);
  font-weight: 600;
  letter-spacing: 0.03em;
}

/* Cover the antialiased seam between navy header cells at fractional DPR */
.specs-table th + th {
  box-shadow: -1px 0 0 var(--color-navy);
}

.specs-table td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--color-border);
  color: var(--color-text-main);
}

.specs-table tr:last-child td {
  border-bottom: none;
}

.specs-table tr:nth-child(even) {
  background: var(--color-bg-base);
}

.specs-table .highlight-col {
  font-weight: 700;
  color: var(--color-navy);
}

/* Strategic Presence / Pan-India Network */
.network-section {
  padding: 5.5rem 0;
  background: var(--color-bg-base);
}

.network-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3.5rem;
  align-items: center;
}

.network-heading {
  font-size: 1.6rem;
  color: var(--color-navy);
  margin-bottom: 1.25rem;
}

.network-map-box {
  background: #ffffff;
  padding: 1.5rem;
  border-radius: 1.25rem;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-lg);
  text-align: center;
}

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

.city-pill-card {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: #ffffff;
  padding: 1rem 1.25rem;
  border-radius: 0.75rem;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-fast);
}

.city-pill-card:hover {
  border-color: var(--color-cyan);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.city-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--color-cyan-light);
  color: var(--color-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}

.city-name {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  color: var(--color-navy);
}

.city-sub {
  font-size: 0.75rem;
  color: var(--color-text-muted);
}


/* FAQ */
.faq-section {
  padding: 5.5rem 0;
}

.faq-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
  gap: 1.5rem;
}

.faq-card {
  background: #ffffff;
  padding: 2rem;
  border-radius: 1rem;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
}

/* Contact & Quotation Section */
.contact-section {
  padding: 5.5rem 0;
  background: #ffffff;
  position: relative;
}

/* Contact Hub (Executive Contact & Direct Action Desk) */
.contact-hub-wrapper {
  max-width: 1040px;
  margin: 0 auto;
}

.contact-hub-card {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  border-radius: 1.5rem;
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--color-border);
}

.contact-hub-info {
  background: linear-gradient(150deg, var(--color-navy) 0%, var(--color-navy-dark) 100%);
  color: #ffffff;
  padding: 3rem 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.contact-hub-actions {
  background: #ffffff;
  padding: 3rem 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.contact-detail-row {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  margin-bottom: 1.5rem;
}

.contact-icon-box {
  width: 42px;
  height: 42px;
  border-radius: 0.5rem;
  background: rgba(0, 163, 196, 0.2);
  color: var(--color-cyan-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.contact-item-title {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #94a3b8;
  margin-bottom: 0.2rem;
}

.contact-item-val {
  font-size: 1.05rem;
  font-weight: 600;
  color: #ffffff;
}

.contact-item-val a {
  color: #ffffff;
  transition: color var(--transition-fast);
}

.contact-item-val a:hover {
  color: var(--color-cyan-glow);
}

.contact-hub-info .fa-flag {
  margin-right: 0.5rem;
}

.direct-action-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.direct-action-btn {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  border-radius: 0.75rem;
  border: 1px solid var(--color-border);
  background: var(--color-bg-base);
  text-decoration: none;
  color: var(--color-navy);
  transition: all var(--transition-fast);
}

.direct-action-btn:hover {
  transform: translateX(4px);
  box-shadow: var(--shadow-md);
}

.direct-action-btn.whatsapp-action {
  border-color: rgba(37, 211, 102, 0.4);
  background: #f0fdf4;
}

.direct-action-btn.whatsapp-action:hover {
  background: #dcfce7;
  border-color: #25d366;
}

.direct-action-btn.call-action:hover {
  background: var(--color-cyan-light);
  border-color: var(--color-cyan);
}

.direct-action-btn.email-action:hover {
  background: #f8fafc;
  border-color: var(--color-navy);
}

.action-icon-circle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.whatsapp-circle {
  background: #25d366;
  color: #ffffff;
}

.call-circle {
  background: var(--color-cyan-light);
  color: var(--color-cyan);
}

.email-circle {
  background: #f1f5f9;
  color: var(--color-navy);
}

.action-btn-text {
  flex: 1;
}

.action-btn-text .action-tag {
  display: block;
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-muted);
  font-weight: 700;
  margin-bottom: 0.15rem;
}

.action-btn-text strong {
  display: block;
  font-size: 1rem;
  color: var(--color-navy);
}

.action-btn-text small {
  display: block;
  font-size: 0.75rem;
  color: var(--color-text-muted);
}

.action-arrow {
  color: var(--color-text-light);
  font-size: 0.875rem;
  transition: transform var(--transition-fast), color var(--transition-fast);
}

.direct-action-btn:hover .action-arrow {
  color: var(--color-cyan);
  transform: translateX(3px);
}

@media (max-width: 900px) {
  .contact-hub-card {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Footer */
.site-footer {
  background: var(--color-navy-deep);
  color: #94a3b8;
  padding: 5rem 0 2rem 0;
  border-top: 1px solid rgba(0, 144, 181, 0.3);
}

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

.footer-brand-desc {
  font-size: 0.875rem;
  line-height: 1.6;
  margin: 1.25rem 0 1.5rem 0;
  max-width: 320px;
}

.footer-title {
  color: #ffffff;
  font-size: 1.1rem;
  margin-bottom: 1.25rem;
}

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

.footer-links a {
  display: inline-block;
  padding: 0.3125rem 0;
  transition: color var(--transition-fast);
}

.footer-links a:hover {
  color: var(--color-cyan-glow);
}

.footer-social {
  display: flex;
  gap: 0.75rem;
}

/* 44px touch area around the 36px social circles */
.footer-social a {
  position: relative;
}

.footer-social a::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
}

.footer-contact-list {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.125rem;
  margin-top: 1rem;
}

.footer-contact-link {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 32px;
  transition: color var(--transition-fast);
}

.footer-contact-link:hover,
.footer-contact-link:focus-visible {
  color: var(--color-cyan-glow);
}

.footer-contact-link i {
  width: 1em;
  text-align: center;
  flex: none;
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.8125rem;
}

/* Floating Quick Actions */
.floating-actions {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 999;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.float-btn {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  cursor: pointer;
  transition: all var(--transition-fast);
  color: #ffffff;
  text-decoration: none;
  border: none;
  font-size: 1.4rem;
}

.float-whatsapp {
  background: var(--color-whatsapp-accessible);
}

.float-whatsapp:hover {
  background: var(--color-whatsapp-hover);
  transform: scale(1.1);
}

.float-call {
  background: var(--color-cyan-accessible);
}

.float-call:hover {
  background: #00566d;
  transform: scale(1.1);
}

.float-top {
  background: var(--color-navy);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.float-top.visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.float-top:hover {
  background: var(--color-navy-dark);
  transform: translateY(-3px);
}

/* Mobile Nav Drawer */
.mobile-nav-toggle {
  display: none;
  background: transparent;
  border: none;
  font-size: 1.75rem;
  color: var(--color-navy);
  cursor: pointer;
}

.mobile-drawer {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  z-index: 2000;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-base);
}

.mobile-drawer.open {
  opacity: 1;
  pointer-events: auto;
}

.mobile-drawer-content {
  position: absolute;
  top: 0;
  right: 0;
  width: 82%;
  max-width: 340px;
  height: 100%;
  background: #ffffff;
  padding: 2rem 1.5rem;
  transform: translateX(100%);
  transition: transform var(--transition-smooth);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow-y: auto;
}

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

.drawer-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

.drawer-nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.drawer-nav-link {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--color-navy);
}

.drawer-ctas {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 2rem;
}

/* ==========================================================================
   Gallery & Lightbox Styles
   ========================================================================== */
.gallery-section {
  padding: 5.5rem 0;
  background: #ffffff;
}

.gallery-filters {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2.5rem;
}

.gallery-filter-btn {
  background: var(--color-bg-base);
  border: 1px solid var(--color-border);
  padding: 0.55rem 1.25rem;
  border-radius: 999px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--color-navy);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.gallery-filter-btn:hover {
  border-color: var(--color-cyan-accessible);
  color: var(--color-cyan-accessible);
}

.gallery-filter-btn.active {
  background: var(--color-cyan-accessible);
  color: #ffffff;
  border-color: var(--color-cyan-accessible);
  box-shadow: 0 4px 12px rgba(0, 107, 135, 0.3);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr));
  gap: 1.5rem;
}

.gallery-card {
  position: relative;
  border-radius: 0.875rem;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: all var(--transition-smooth);
}

.gallery-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
  border-color: var(--color-cyan);
}

.gallery-thumb-wrap {
  width: 100%;
  height: 220px;
  overflow: hidden;
  background: #1e293b;
  position: relative;
}

/* Fixed 4:3 crop window so framing doesn't change with card width */
@supports (aspect-ratio: 1) {
  .gallery-thumb-wrap {
    height: auto;
    aspect-ratio: 4 / 3;
  }
}

.gallery-thumb-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-smooth);
}

.gallery-card:hover .gallery-thumb-wrap img {
  transform: scale(1.06);
}

/* Portrait stacker photos: show the whole stack instead of a mid-car slice */
.gallery-thumb-wrap img.thumb-contain {
  object-fit: contain;
  background: #d4dddf;
}

/* Showroom photo: keep its headline and the turntable in frame */
.gallery-thumb-wrap img.thumb-focus-low {
  object-position: center 90%;
}

/* 10/11/12.jpg carry a thin baked-in black frame; push it out of the crop */
.gallery-thumb-wrap img.gallery-img-trim {
  transform: scale(1.04);
}

.gallery-card:hover .gallery-thumb-wrap img.gallery-img-trim {
  transform: scale(1.1);
}

.gallery-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(0, 45, 98, 0.85) 0%, transparent 60%);
  opacity: 0;
  display: flex;
  align-items: flex-end;
  padding: 1.25rem;
  transition: opacity var(--transition-fast);
}

.gallery-card:hover .gallery-overlay {
  opacity: 1;
}

.gallery-card-body {
  padding: 1rem 1.25rem;
  background: #ffffff;
}

.gallery-card-title {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-navy);
  margin-bottom: 0.25rem;
}

.gallery-card-cat {
  font-size: 0.75rem;
  color: var(--color-cyan-text);
  font-weight: 600;
  text-transform: uppercase;
}

/* Lightbox Modal */
.lightbox-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(8, 26, 46, 0.95);
  backdrop-filter: blur(8px);
  z-index: 3000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  opacity: 0;
  transition: opacity 0.25s ease;
}

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

.lightbox-content {
  position: relative;
  max-width: 90vw;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lightbox-img {
  max-width: 100%;
  max-height: 75vh;
  object-fit: contain;
  border-radius: 0.5rem;
  box-shadow: 0 20px 40px rgba(0,0,0,0.6);
}

.lightbox-caption {
  margin-top: 1rem;
  color: #ffffff;
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
  text-align: center;
}

.lightbox-close-btn {
  position: absolute;
  top: -2.5rem;
  right: 0;
  background: none;
  border: none;
  color: #ffffff;
  font-size: 2rem;
  cursor: pointer;
  transition: color var(--transition-fast);
}

.lightbox-close-btn:hover {
  color: var(--color-cyan-glow);
}

/* Responsive Media Queries */

/* Grid items default to min-width: auto, so wide content (tables, nowrap
   buttons, long emails) would stretch a 1fr track past the viewport. */
.hero-grid > *,
.compare-card-grid > *,
.system-card-inner > *,
.calc-grid > *,
.specs-grid > *,
.network-grid > *,
.contact-hub-card > *,
.network-cities-grid > *,
.impact-metric-grid > *,
.calc-radio-group > *,
.system-specs-mini > * {
  min-width: 0;
}

/* ---------- Wide-screen refinements ---------- */

/* Five system tabs on one row (they need ~1246px at the base size) */
@media (min-width: 1140px) {
  .systems-tabs {
    gap: 0.5rem;
  }

  .sys-tab-btn {
    padding: 0.7rem 0.9rem;
    font-size: 0.875rem;
    gap: 0.4rem;
  }
}

@media (min-width: 1280px) {
  .sys-tab-btn {
    padding: 0.75rem 1.1rem;
    font-size: 0.9375rem;
    gap: 0.5rem;
  }
}

@media (min-width: 1025px) {
  /* Two-column systems card: leftover height reads as card whitespace */
  .system-card-media {
    padding: 2.5rem 0.75rem 2.5rem 2.5rem;
  }

  /* Give the address column the room its longest line needs */
  .footer-grid {
    grid-template-columns: 1.35fr 0.8fr 1fr 1.25fr;
    gap: 2.5rem;
  }
}

@media (min-width: 1025px) and (max-width: 1199px) {
  .system-card-info {
    padding: 3rem 2rem;
  }

  .system-specs-mini {
    padding: 1rem;
  }

  .mini-spec-val {
    font-size: 0.9rem;
  }
}

/* Hero chips: keep inside the viewport and clear of the fixed WhatsApp/Call stack */
@media (min-width: 901px) {
  .chip-2 {
    right: 5rem;
  }
}

@media (min-width: 901px) and (max-width: 1330px) {
  .hero-stage-bg {
    width: 104%;
  }
}

/* Touch screens that still show the full nav (iPad landscape, touch laptops) */
@media (pointer: coarse) and (min-width: 901px) {
  .nav-link {
    padding: 0.8rem 0;
  }

  .nav-link::after {
    bottom: 0.3rem;
  }
}

@media (pointer: coarse) {
  .calc-preset-chip,
  .sys-tab-btn,
  .gallery-filter-btn {
    min-height: 44px;
  }
}

/* Gallery: centre partial rows and filtered results under the centred filters.
   Breakpoints match where the 280px auto-fill grid changes column count. */
@media (min-width: 632px) {
  .gallery-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
  }

  .gallery-card {
    flex: 0 0 calc((100% - 1.5rem) / 2);
    min-width: 0;
  }
}

@media (min-width: 936px) {
  .gallery-card {
    flex-basis: calc((100% - 3rem) / 3);
  }
}

@media (min-width: 1240px) {
  .gallery-card {
    flex-basis: calc((100% - 4.5rem) / 4);
  }
}

@media (min-width: 769px) {
  /* 2 x 2 instead of 3 + 1 */
  .faq-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* ---------- Header ---------- */

/* Full nav (8 links + 2 CTAs) needs ~1150px; drop the header CTAs first
   (floating WhatsApp/Call buttons cover them), then switch to the drawer. */
@media (max-width: 1199px) {
  .nav-actions {
    display: none;
  }

  .nav-menu {
    gap: 1.25rem;
  }

  .specs-table th,
  .specs-table td {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }
}

/* ---------- Tablet ---------- */

@media (max-width: 1024px) {
  .compare-card-grid,
  .system-card-inner,
  .calc-grid,
  .specs-grid,
  .network-grid,
  .contact-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 2.5rem;
  }

  /* Stacked systems card: the image panel needs no extra row gap */
  .system-card-inner {
    gap: 0;
  }

  .pillars-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-title {
    font-size: 2.75rem;
  }

  /* Stacked before/after: one centred column that fits a landscape tablet */
  .compare-card-grid {
    max-width: 760px;
    margin-inline: auto;
  }

  .compare-content-box {
    padding-left: 0;
  }

  /* Comfortable line length in full-width stacked layouts */
  .compare-content-box > p,
  .system-card-desc,
  .network-grid > div > p,
  .calc-grid > div > p {
    max-width: 40rem;
  }

  .specs-grid > div > p {
    max-width: 40rem;
    margin-left: auto;
    margin-right: auto;
  }

  /* Equal-width system tabs on each row */
  .sys-tab-btn {
    flex: 1 1 0;
    justify-content: center;
  }

  /* Engineering features: centred 4 + 3 */
  .specs-feature-strip {
    grid-template-columns: repeat(8, minmax(0, 1fr));
  }

  .specs-feature-strip > * {
    grid-column: span 2;
  }

  .specs-feature-strip > :nth-child(5) {
    grid-column: 2 / span 2;
  }
}

/* Landscape tablet keeps the two-column hero, slightly tighter */
@media (min-width: 901px) and (max-width: 1024px) {
  .hero-grid {
    gap: 2rem;
  }

  .hero-main-img {
    max-height: 440px;
  }

  .hero-cta-group .btn-lg {
    padding: 0.95rem 1.4rem;
  }
}

/* Top bar wraps to two rows here; centre them like the phone layout */
@media (min-width: 769px) and (max-width: 960px) {
  .top-bar-inner {
    justify-content: center;
  }
}

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

  .mobile-nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    margin-right: -0.6rem;
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 2.5rem;
  }

  .hero-stage-bg {
    width: 100%;
    height: 104%;
    border-radius: 1.5rem;
  }

  .sys-tab-btn,
  .gallery-filter-btn {
    min-height: 44px;
  }
}

/* Stacked hero with chips still shown: centre the visual so chips stay on screen */
@media (min-width: 769px) and (max-width: 900px) {
  .hero-visual-wrapper {
    width: 100%;
    max-width: 640px;
    margin-inline: auto;
  }
}

/* Short screens (320x568, landscape phones): keep drawer CTAs on screen */
@media (max-width: 900px) and (max-height: 600px) {
  .mobile-drawer-content {
    padding-top: 1.25rem;
    padding-bottom: 1.25rem;
  }

  .drawer-head {
    margin-bottom: 1.25rem;
  }

  .drawer-nav-list {
    gap: 0.75rem;
  }

  .drawer-ctas {
    margin-top: 1.5rem;
  }
}

/* ---------- Mobile ---------- */

@media (max-width: 768px) {
  .top-bar-inner {
    justify-content: center;
    text-align: center;
  }

  .hero-section {
    padding: 3rem 0 4rem 0;
  }

  .hero-title {
    font-size: 2.2rem;
  }

  .floating-chip {
    display: none;
  }

  .pillars-grid {
    grid-template-columns: 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2.25rem;
  }

  /* Header */
  .navbar-inner {
    height: 66px;
  }

  .brand-logo-img {
    height: 44px;
  }

  /* Let long button labels wrap instead of forcing horizontal overflow */
  .btn {
    white-space: normal;
    text-align: center;
    text-wrap: balance;
  }

  /* Section rhythm */
  .before-after-section,
  .systems-section,
  .calc-section,
  .specs-section,
  .network-section,
  .faq-section,
  .contact-section,
  .gallery-section {
    padding: 3.5rem 0;
  }

  .site-footer {
    padding: 3.5rem 0 1.5rem 0;
  }

  .section-title {
    font-size: 1.75rem;
  }

  .section-desc {
    font-size: 1rem;
    margin-bottom: 2rem;
  }

  .corner-lines-tr::after,
  .corner-lines-tl::before {
    width: 56px;
    height: 56px;
  }

  /* Hero */
  .hero-subtitle {
    font-size: 1.05rem;
  }

  /* Side by side when both fit, otherwise stacked full width */
  .hero-cta-group .btn {
    flex: 1 1 auto;
  }

  .hero-stats-row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
  }

  .stat-number {
    font-size: 1.5rem;
  }

  .stat-label {
    font-size: 0.75rem;
    line-height: 1.35;
  }

  .hero-stage-bg {
    border-radius: 1.25rem;
  }

  /* Before / After */
  .compare-top-badges {
    flex-wrap: wrap;
    justify-content: center;
  }

  .compare-pill {
    font-size: 0.75rem;
    padding: 0.4rem 0.85rem;
  }

  .impact-metric-grid {
    gap: 0.75rem;
  }

  .impact-card {
    padding: 1rem;
  }

  .impact-value {
    font-size: 1.4rem;
  }

  /* Sub-headings stay below the 28px section title */
  .compare-heading,
  .network-heading {
    font-size: 1.4rem;
    line-height: 1.3;
  }

  /* Systems */
  .systems-tabs {
    gap: 0.5rem;
    margin-bottom: 1.75rem;
  }

  .sys-tab-btn {
    padding: 0.6rem 0.9rem;
    font-size: 0.8125rem;
    min-height: 44px;
  }

  .system-card-media {
    padding: 1.25rem;
  }

  .system-card-info {
    padding: 1.75rem 1.25rem;
  }

  .system-card-title {
    font-size: 1.5rem;
  }

  .system-specs-mini {
    grid-template-columns: 1fr;
    gap: 0.6rem;
    padding: 1rem;
  }

  .system-specs-mini > div {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 1rem;
  }

  .mini-spec-title {
    margin-bottom: 0;
  }

  .mini-spec-val {
    text-align: right;
  }

  /* Calculator */
  .calc-box {
    padding: 1.25rem;
    border-radius: 1rem;
  }

  .calc-label {
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  .calc-results-card {
    padding: 1.5rem 1.25rem;
  }

  .calc-result-row {
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  .calc-res-big {
    font-size: 1.85rem;
  }

  /* Specs */
  .specs-visual-strip {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.5rem;
    padding: 1.25rem;
  }

  .specs-table {
    font-size: 0.8125rem;
  }

  .specs-table th,
  .specs-table td {
    padding: 0.7rem 0.75rem;
  }

  /* Network */
  .network-map-box {
    padding: 1rem;
  }

  /* Contact */
  .contact-hub-info,
  .contact-hub-actions {
    padding: 2rem 1.25rem;
  }

  .contact-detail-row > div:last-child,
  .action-btn-text {
    min-width: 0;
    overflow-wrap: anywhere;
  }

  .direct-action-btn {
    padding: 0.85rem 1rem;
    gap: 0.75rem;
  }

  /* Floating actions */
  .floating-actions {
    bottom: 1rem;
    right: 1rem;
    gap: 0.6rem;
  }

  .float-btn {
    width: 48px;
    height: 48px;
    font-size: 1.25rem;
  }

  .lightbox-modal {
    padding: 1rem;
  }
}

/* Portrait tablets: 2 x 2 footer instead of one narrow column */
@media (min-width: 577px) and (max-width: 768px) {
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2.25rem 2rem;
  }
}

/* Filters can't fit one row of five here; force a balanced 3 + 2 */
@media (min-width: 577px) and (max-width: 799px) {
  .gallery-filters {
    max-width: 30rem;
    margin-left: auto;
    margin-right: auto;
  }
}

@media (max-width: 576px) {
  .site-container {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  /* Compact top bar: phones on one row, email + brochure on the next */
  .top-bar {
    font-size: 0.75rem;
    padding: 0.45rem 0;
  }

  .top-bar-inner {
    gap: 0.35rem 1rem;
  }

  .top-bar-group {
    display: contents;
  }

  .top-bar-location {
    display: none;
  }

  /* Bigger tap area on the top-bar links without changing the bar height */
  .top-bar-item {
    padding: 0.3rem 0;
    margin: -0.3rem 0;
  }

  .hero-section {
    padding: 2.25rem 0 3rem 0;
  }

  .hero-title {
    font-size: 2rem;
  }

  /* Hero eyebrows: one line each, clear of the corner decoration */
  .hero-motto {
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    line-height: 1.4;
    margin-bottom: 0.5rem;
    padding-right: 2.5rem;
    text-wrap: balance;
  }

  .hero-kicker {
    font-size: 0.875rem;
    letter-spacing: 0.05em;
    line-height: 1.3;
    margin-bottom: 0.35rem;
  }

  .hero-section.corner-lines-tr::after {
    width: 40px;
    height: 40px;
  }

  /* Calculator */
  .calc-presets {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.5rem;
  }

  .calc-preset-chip {
    min-height: 44px;
    padding: 0.5rem 0.4rem;
  }

  /* Slider legend: value on line 1, description on line 2 */
  .calc-range-hint {
    display: block;
    white-space: nowrap;
  }

  .calc-radio-card {
    padding: 0.85rem 0.6rem;
  }

  /* Specs tables scroll inside their card; values stay on one line */
  .specs-table {
    min-width: 33rem;
  }

  .specs-table tr:nth-child(even) {
    background: rgba(0, 45, 98, 0.025);
  }

  /* Right-edge scroll shadow; the white 'local' strip hides it at the scroll end */
  .specs-table-wrapper {
    background:
      linear-gradient(to left, #fff 40%, rgba(255, 255, 255, 0)) right center / 2.5rem 100% no-repeat local,
      radial-gradient(farthest-side at 100% 50%, rgba(0, 45, 98, 0.22), rgba(0, 45, 98, 0)) right center / 1rem 100% no-repeat scroll,
      #fff;
  }

  .table-swipe-hint {
    display: block;
    font-size: 0.75rem;
    color: var(--color-text-muted);
    margin: -0.25rem 0 0.5rem;
  }

  .specs-feature-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
  }

  .specs-feature-strip > *,
  .specs-feature-strip > :nth-child(5) {
    grid-column: auto;
  }

  .specs-feature-strip > :last-child {
    grid-column: 1 / -1;
  }

  /* Gallery filters: one swipeable row, bleeding to the screen edges */
  .gallery-filters {
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 0.5rem;
    margin: -0.5rem -1rem 1.5rem;
    padding: 0.5rem 1rem 1rem;
  }

  .gallery-filters::-webkit-scrollbar {
    display: none;
  }

  .gallery-filter-btn {
    flex: 0 0 auto;
    white-space: nowrap;
  }

  .network-cities-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
  }

  .city-pill-card {
    padding: 0.75rem;
    gap: 0.6rem;
  }

  .city-icon {
    width: 32px;
    height: 32px;
    font-size: 0.875rem;
    flex-shrink: 0;
  }

  .city-name {
    font-size: 0.9375rem;
  }

  .faq-card {
    padding: 1.25rem;
  }

  .action-icon-circle {
    width: 40px;
    height: 40px;
    font-size: 1.1rem;
  }

  .action-btn-text strong {
    font-size: 0.9375rem;
  }

  .action-arrow {
    display: none;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
}

/* Two calculator cards side by side: multiplier on its own line in both */
@media (min-width: 341px) and (max-width: 576px) {
  .calc-radio-card .card-sys-mult {
    display: block;
  }
}

@media (max-width: 400px) {
  /* Contact values fit (or break at the <wbr>) on narrow phones */
  .contact-item-val {
    font-size: 0.9375rem;
  }

  .action-btn-text strong {
    font-size: 0.875rem;
  }

  .direct-action-btn {
    padding-left: 0.875rem;
    padding-right: 0.875rem;
    gap: 0.65rem;
  }

  /* Less nested padding around the calculator cards */
  .calc-box {
    padding: 1rem 0.75rem;
  }

  .calc-results-card {
    padding: 1.25rem 1rem;
  }

  .calc-range-hint {
    display: none;
  }

  /* System specs: label over value */
  .system-specs-mini {
    gap: 0.75rem;
  }

  .system-specs-mini > div {
    display: block;
  }

  .mini-spec-title {
    margin-bottom: 0.15rem;
  }

  .mini-spec-val {
    text-align: left;
  }
}

/* Narrow phones: stop drawer labels wrapping */
@media (max-width: 359px) {
  .mobile-drawer-content {
    width: 88%;
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }

  .drawer-nav-link {
    font-size: 1rem;
  }
}

@media (max-width: 340px) {
  .hero-title {
    font-size: 1.8rem;
  }

  .hero-stats-row {
    grid-template-columns: 1fr;
  }

  .calc-radio-group,
  .network-cities-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .impact-card {
    padding: 0.875rem 0.75rem;
  }

  .impact-value {
    font-size: 1.25rem;
    line-height: 1.25;
  }
}
