/* ==========================================================================
   NAILTECH ENGINEERING AND GEOTECHNICAL SERVICES - MASTER DESIGN SYSTEM
   Theme: Geotechnical Heavy Construction & Engineering Dark Slate Chic
   Palette: Dark Slate (#0b0f17), Deep Navy Card (#111827), Amber (#f59e0b), Cyan (#06b6d4), Steel (#64748b)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800;900&family=JetBrains+Mono:wght@400;500;700&display=swap');

:root {
  --bg-main: #0b0f17;
  --bg-card: rgba(17, 24, 39, 0.75);
  --bg-card-hover: rgba(31, 41, 55, 0.85);
  --bg-card-solid: #111827;
  --border-color: rgba(255, 255, 255, 0.08);
  --border-highlight: rgba(245, 158, 11, 0.4);
  
  --primary-amber: #f59e0b;
  --primary-amber-glow: rgba(245, 158, 11, 0.35);
  --amber-dark: #d97706;
  --accent-cyan: #06b6d4;
  --accent-cyan-glow: rgba(6, 182, 212, 0.3);
  --accent-emerald: #10b981;
  --accent-rose: #f43f5e;
  
  --text-main: #f3f4f6;
  --text-muted: #9ca3af;
  --text-dim: #6b7280;
  
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  
  --shadow-glow: 0 0 25px rgba(245, 158, 11, 0.2);
  --shadow-cyan: 0 0 25px rgba(6, 182, 212, 0.2);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

body {
  background-color: var(--bg-main);
  color: var(--text-main);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
  background-image: 
    radial-gradient(circle at 15% 15%, rgba(245, 158, 11, 0.04) 0%, transparent 40%),
    radial-gradient(circle at 85% 65%, rgba(6, 182, 212, 0.04) 0%, transparent 40%),
    linear-gradient(to bottom, rgba(11, 15, 23, 0.9), #0b0f17);
  background-attachment: fixed;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #ffffff;
  line-height: 1.15;
}

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

.text-gradient {
  background: linear-gradient(135deg, #ffffff 0%, var(--primary-amber) 60%, #fef3c7 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-gradient-cyan {
  background: linear-gradient(135deg, #ffffff 0%, var(--accent-cyan) 60%, #cff4fc 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Utility Components */
.container {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.9rem;
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.25);
  border-radius: 100px;
  color: var(--primary-amber);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 1.125rem;
  max-width: 680px;
  margin-bottom: 3rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.9rem 1.8rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: var(--transition);
  border: 1px solid transparent;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-amber), var(--amber-dark));
  color: #0b0f17;
  box-shadow: var(--shadow-glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 35px rgba(245, 158, 11, 0.45);
  background: linear-gradient(135deg, #fbbf24, var(--primary-amber));
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  color: #ffffff;
  border-color: var(--border-color);
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--primary-amber);
  color: var(--primary-amber);
}

.btn-cyan {
  background: linear-gradient(135deg, var(--accent-cyan), #0891b2);
  color: #0b0f17;
  box-shadow: var(--shadow-cyan);
}

.btn-cyan:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 35px rgba(6, 182, 212, 0.45);
}

/* Glass Card */
.glass-card {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 2rem;
  transition: var(--transition);
}

.glass-card:hover {
  border-color: var(--border-highlight);
  background: var(--bg-card-hover);
}

/* Header & Nav */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(11, 15, 23, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-color);
  padding: 0.65rem 0;
  transition: var(--transition);
}

.header .container {
  max-width: 1760px;
  width: 100%;
  padding-left: clamp(1.2rem, 2.5vw, 2.5rem);
  padding-right: clamp(1.2rem, 2.5vw, 2.5rem);
}

.nav-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(1rem, 2vw, 2.5rem);
  width: 100%;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: clamp(0.6rem, 1.2vw, 0.95rem);
  text-decoration: none;
  flex: 0 0 auto;
  min-width: max-content;
}

.brand-logo-img {
  height: clamp(60px, 4.2vw, 76px);
  width: auto;
  max-width: 100%;
  object-fit: contain;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.6));
  transition: var(--transition);
  flex-shrink: 0;
}

.brand-text-group {
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex: 0 0 auto;
}

.brand-title {
  font-family: var(--font-heading);
  font-size: clamp(1.22rem, 1.3vw, 1.5rem);
  font-weight: 900;
  letter-spacing: 0.02em;
  color: #ffffff;
  display: block;
  line-height: 1.1;
  white-space: nowrap;
}

.brand-title-accent {
  color: var(--primary-amber);
}

.brand-tagline {
  font-size: clamp(0.56rem, 0.6vw, 0.66rem);
  color: var(--accent-cyan);
  font-family: var(--font-mono);
  display: block;
  font-weight: 600;
  letter-spacing: 0.12em;
  margin-top: 0.2rem;
  white-space: nowrap;
}

.nav-menu {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(0.75rem, 1.2vw, 1.6rem);
  list-style: none;
  margin: 0;
  padding: 0;
  flex: 0 1 auto;
  white-space: nowrap;
}

.nav-link {
  font-size: clamp(0.82rem, 0.86vw, 0.88rem);
  font-weight: 600;
  color: var(--text-muted);
  transition: var(--transition);
  position: relative;
  padding: 0.5rem 0.15rem;
  white-space: nowrap;
  letter-spacing: 0.01em;
}

.nav-link:hover, .nav-link.active {
  color: var(--primary-amber);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary-amber);
  transition: var(--transition);
}

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

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex: 0 0 auto;
  min-width: max-content;
  margin-left: auto;
}

#navQuoteBtn {
  font-size: clamp(0.8rem, 0.85vw, 0.88rem);
  padding: 0.55rem clamp(0.95rem, 1.1vw, 1.35rem);
  white-space: nowrap;
  font-weight: 700;
  letter-spacing: 0.02em;
}

/* Mobile Nav Toggle Button */
.nav-toggle {
  display: none;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  width: 44px;
  height: 44px;
  padding: 0;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  color: #ffffff;
}

.nav-toggle:hover {
  background: rgba(245, 158, 11, 0.15);
  border-color: var(--primary-amber);
  color: var(--primary-amber);
}

.nav-toggle-icon {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 20px;
  height: 14px;
}

.nav-toggle-icon span {
  display: block;
  height: 2px;
  width: 100%;
  background-color: currentColor;
  border-radius: 2px;
  transition: var(--transition);
}

.nav-toggle.active .nav-toggle-icon span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}
.nav-toggle.active .nav-toggle-icon span:nth-child(2) {
  opacity: 0;
}
.nav-toggle.active .nav-toggle-icon span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* Accessible Mobile Drawer & Backdrop */
.nav-drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 1050;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.nav-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(88vw, 380px);
  background: #0b0f17;
  background: linear-gradient(180deg, #111827 0%, #0b0f17 100%);
  z-index: 1100;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  border-left: 1px solid var(--border-highlight);
  box-shadow: -15px 0 50px rgba(0, 0, 0, 0.85);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: max(1.25rem, env(safe-area-inset-top)) max(1.25rem, env(safe-area-inset-right)) max(1.25rem, env(safe-area-inset-bottom)) 1.25rem;
}

body.drawer-open {
  overflow: hidden !important;
  touch-action: none;
}

body.drawer-open .nav-drawer-backdrop {
  opacity: 1;
  visibility: visible;
}

body.drawer-open .nav-drawer {
  transform: translateX(0);
}

.nav-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 1.5rem;
  gap: 0.75rem;
}

.nav-drawer-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
}

.nav-drawer-logo {
  height: 48px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.5));
}

.nav-drawer-brand-text {
  min-width: 0;
}

.nav-drawer-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 900;
  color: #ffffff;
  display: block;
  line-height: 1.1;
  white-space: nowrap;
}

.nav-drawer-tagline {
  font-size: 0.55rem;
  color: var(--accent-cyan);
  font-family: var(--font-mono);
  display: block;
  letter-spacing: 0.08em;
  margin-top: 0.15rem;
  white-space: nowrap;
}

.nav-drawer-close {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-color);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  flex-shrink: 0;
}

.nav-drawer-close:hover {
  background: rgba(244, 63, 94, 0.2);
  border-color: var(--accent-rose);
  color: var(--accent-rose);
}

.nav-drawer-content {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
}

.nav-drawer-menu {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-bottom: 1.75rem;
}

.nav-drawer-link {
  display: flex;
  align-items: center;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-sm);
  color: var(--text-main);
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  transition: var(--transition);
  border: 1px solid transparent;
  min-height: 48px;
}

.nav-drawer-link:hover, .nav-drawer-link:focus-visible {
  background: rgba(245, 158, 11, 0.12);
  border-color: rgba(245, 158, 11, 0.3);
  color: var(--primary-amber);
  transform: translateX(4px);
}

.nav-drawer-actions {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-bottom: 1.75rem;
}

.nav-drawer-btn {
  width: 100%;
  min-height: 48px;
  justify-content: center;
  font-size: 0.9rem;
}

.nav-drawer-wa {
  background: #25D366;
  color: #ffffff;
  border: none;
  font-weight: 700;
}

.nav-drawer-wa:hover {
  background: #20bd5a;
  color: #ffffff;
}

.nav-drawer-footer {
  margin-top: auto;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border-color);
  font-size: 0.8rem;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.nav-drawer-contact-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
}

.nav-drawer-contact-label {
  color: var(--text-dim);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.nav-drawer-contact-val {
  color: #ffffff;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  text-decoration: none;
  transition: var(--transition);
}

.nav-drawer-contact-val:hover {
  color: var(--primary-amber);
}

/* Hero Section */
/* Full Page Viewport Hero & Video Background */
.hero {
  position: relative;
  width: 100%;
  min-height: 100vh;
  padding-top: 140px;
  padding-bottom: 80px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-video-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
  overflow: hidden;
}

.hero-video-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.70;
  filter: saturate(1.2) contrast(1.15) brightness(0.9);
}

#heroAnimCanvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  background: radial-gradient(circle at 60% 40%, rgba(11, 15, 23, 0.4), var(--bg-main) 85%);
}

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

.hero-content h1,
.hero-brand-h1 {
  font-size: 3.2rem;
  margin-bottom: 0.85rem;
  line-height: 1.12;
  letter-spacing: -0.01em;
  color: #ffffff;
}

.hero-subheadline {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--primary-amber);
  margin-bottom: 0.95rem;
  line-height: 1.3;
}

.hero-intro {
  font-size: 1.15rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  max-width: 620px;
  line-height: 1.6;
}

.hero-content p {
  font-size: 1.15rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  max-width: 620px;
  line-height: 1.6;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.hero-badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(17, 24, 39, 0.8);
  border: 1px solid var(--border-color);
  padding: 0.4rem 0.9rem;
  border-radius: 100px;
  font-size: 0.85rem;
  color: var(--text-main);
}

.hero-badge svg {
  color: var(--primary-amber);
}

.hero-buttons {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
}

/* Quick Telemetry Box in Hero */
.telemetry-box {
  background: rgba(17, 24, 39, 0.85);
  border: 1px solid var(--border-highlight);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: 0 20px 50px rgba(0,0,0,0.5), var(--shadow-glow);
  position: relative;
}

.telemetry-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-color);
}

.telemetry-title {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1.1rem;
  color: var(--primary-amber);
}

.live-indicator {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  color: var(--accent-emerald);
  font-family: var(--font-mono);
}

.live-dot {
  width: 8px;
  height: 8px;
  background-color: var(--accent-emerald);
  border-radius: 50%;
  animation: pulse 1.8s infinite;
}

@keyframes pulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { transform: scale(1.1); box-shadow: 0 0 0 10px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.telemetry-metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
}

.metric-card {
  background: rgba(11, 15, 23, 0.6);
  border: 1px solid var(--border-color);
  padding: 1.2rem;
  border-radius: var(--radius-sm);
}

.metric-label {
  font-size: 0.75rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.4rem;
}

.metric-value {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 800;
  color: #ffffff;
}

.metric-unit {
  font-size: 0.9rem;
  color: var(--primary-amber);
  margin-left: 0.2rem;
}

/* Stats Counter Banner */
.stats-banner {
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  background: rgba(17, 24, 39, 0.4);
  padding: 3rem 0;
  margin-bottom: 4rem;
}

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

.stat-item h3 {
  font-size: 2.8rem;
  color: var(--primary-amber);
  margin-bottom: 0.3rem;
}

.stat-item p {
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: 500;
}

/* Simulator Section */
.simulator-section {
  padding: 6rem 0;
  position: relative;
}

.simulator-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2rem;
  margin-top: 2rem;
}

.canvas-container {
  background: #070a10;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1rem;
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 0 30px rgba(0,0,0,0.8);
}

#slopeCanvas {
  width: 100%;
  height: 480px;
  display: block;
  border-radius: var(--radius-sm);
  background: #090d14;
}

.canvas-overlay-stats {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: rgba(11, 15, 23, 0.88);
  border: 1px solid var(--border-color);
  padding: 1rem 1.25rem;
  border-radius: var(--radius-sm);
  backdrop-filter: blur(10px);
  min-width: 180px;
}

.fos-gauge-header {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-dim);
  margin-bottom: 0.2rem;
}

.fos-value {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--accent-emerald);
  transition: color 0.3s ease;
}

.fos-status {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  display: inline-block;
}

.fos-safe {
  background: rgba(16, 185, 129, 0.2);
  color: var(--accent-emerald);
}

.fos-warning {
  background: rgba(245, 158, 11, 0.2);
  color: var(--primary-amber);
}

.fos-critical {
  background: rgba(244, 63, 94, 0.2);
  color: var(--accent-rose);
}

.sim-controls {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.control-group {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.25rem;
}

.control-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.6rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-main);
}

.control-val {
  font-family: var(--font-mono);
  color: var(--primary-amber);
  font-weight: 700;
}

.range-slider {
  width: 100%;
  height: 6px;
  border-radius: 3px;
  background: #1f2937;
  outline: none;
  -webkit-appearance: none;
}

.range-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--primary-amber);
  cursor: pointer;
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.8);
  transition: transform 0.2s ease;
}

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

.preset-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.preset-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  padding: 0.4rem 0.8rem;
  border-radius: var(--radius-sm);
  font-size: 0.78rem;
  cursor: pointer;
  transition: var(--transition);
}

.preset-btn:hover, .preset-btn.active {
  background: rgba(245, 158, 11, 0.15);
  border-color: var(--primary-amber);
  color: var(--primary-amber);
}

/* Services Section */
.services-section {
  padding: 6rem 0;
}

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

.service-card {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.service-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-sm);
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-amber);
  margin-bottom: 1.5rem;
}

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

.service-card h3 {
  font-size: 1.35rem;
  margin-bottom: 0.75rem;
}

.service-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.service-features {
  list-style: none;
  margin-bottom: 1.5rem;
}

.service-features li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-main);
  margin-bottom: 0.4rem;
}

.service-features svg {
  color: var(--accent-emerald);
  flex-shrink: 0;
}

/* Interactive Estimator Section */
.estimator-section {
  padding: 6rem 0;
  background: radial-gradient(circle at 50% 50%, rgba(6, 182, 212, 0.05) 0%, transparent 70%);
}

.estimator-box {
  background: var(--bg-card-solid);
  border: 1px solid var(--border-highlight);
  border-radius: var(--radius-xl);
  padding: 3rem;
  box-shadow: 0 30px 60px rgba(0,0,0,0.6);
}

.estimator-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin-top: 2rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 0.5rem;
}

.form-select, .form-input {
  width: 100%;
  padding: 0.85rem 1rem;
  background: rgba(11, 15, 23, 0.8);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: white;
  font-family: var(--font-body);
  font-size: 0.95rem;
  outline: none;
  transition: var(--transition);
}

.form-select:focus, .form-input:focus {
  border-color: var(--primary-amber);
  box-shadow: 0 0 15px rgba(245, 158, 11, 0.2);
}

.estimate-output-card {
  background: rgba(11, 15, 23, 0.9);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

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

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

.output-label {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.output-value {
  font-family: var(--font-mono);
  font-weight: 700;
  color: #ffffff;
}

.total-price-box {
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: var(--radius-sm);
  padding: 1.5rem;
  text-align: center;
  margin-top: 1.5rem;
}

.total-price-label {
  font-size: 0.8rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.3rem;
}

.total-price-amount {
  font-family: var(--font-heading);
  font-size: 2.4rem;
  font-weight: 900;
  color: var(--primary-amber);
}

/* Portfolio & Case Studies */
.portfolio-section {
  padding: 6rem 0;
}

.portfolio-filter {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}

.filter-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  padding: 0.6rem 1.2rem;
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.filter-btn:hover, .filter-btn.active {
  background: var(--primary-amber);
  color: #0b0f17;
  border-color: var(--primary-amber);
  box-shadow: 0 0 15px rgba(245, 158, 11, 0.4);
}

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

.portfolio-card {
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  transition: var(--transition);
}

.portfolio-card:hover {
  transform: translateY(-6px);
  border-color: var(--primary-amber);
}

.portfolio-img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.portfolio-body {
  padding: 1.5rem;
}

.portfolio-category {
  font-size: 0.75rem;
  color: var(--accent-cyan);
  font-family: var(--font-mono);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.4rem;
}

.portfolio-body h4 {
  font-size: 1.2rem;
  margin-bottom: 0.6rem;
}

.portfolio-body p {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.portfolio-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--text-dim);
  border-top: 1px solid var(--border-color);
  padding-top: 0.8rem;
}

/* ==========================================================================
   ABOUT SECTION: BRAND IDENTITY & PAN-INDIA GEOTECHNICAL SCOPE
   ========================================================================== */
.about-section {
  padding: 6rem 0;
  background: linear-gradient(180deg, rgba(11, 15, 23, 0.98) 0%, rgba(17, 24, 39, 0.75) 50%, rgba(11, 15, 23, 0.98) 100%);
  border-bottom: 1px solid var(--border-color);
  position: relative;
}

.about-grid {
  display: grid;
  grid-template-columns: 1.18fr 0.82fr;
  gap: 3.5rem;
  align-items: center;
}

.about-lead {
  font-size: 1.18rem;
  line-height: 1.65;
  color: #f1f5f9;
  margin-bottom: 1.25rem;
}

.about-content p {
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 1.25rem;
  font-size: 1.02rem;
}

.about-content strong {
  color: #ffffff;
}

.about-highlights-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-top: 2rem;
}

.about-highlight-card {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  background: rgba(17, 24, 39, 0.7);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 1rem 1.15rem;
  transition: var(--transition);
}

.about-highlight-card:hover {
  border-color: var(--primary-amber);
  background: rgba(245, 158, 11, 0.06);
  transform: translateY(-2px);
}

.about-highlight-icon {
  color: var(--primary-amber);
  flex-shrink: 0;
  margin-top: 2px;
}

.about-highlight-text {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.about-highlight-text strong {
  font-size: 0.92rem;
  color: #ffffff;
}

.about-highlight-text span {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.about-visual-card {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-highlight);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.5), var(--shadow-glow);
  position: relative;
  overflow: hidden;
}

.about-visual-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary-amber), var(--accent-cyan));
}

.about-badge-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}

.about-badge-pill {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(245, 158, 11, 0.15);
  color: var(--primary-amber);
  border: 1px solid rgba(245, 158, 11, 0.35);
  padding: 0.25rem 0.65rem;
  border-radius: 100px;
}

.about-badge-domain {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--accent-cyan);
}

.about-card-title {
  font-family: var(--font-heading);
  font-size: 1.45rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 0.75rem;
  line-height: 1.25;
}

.about-card-desc {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 1.5rem;
}

.about-service-list {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.about-service-list li {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.88rem;
  color: var(--text-main);
}

.about-service-list svg {
  color: var(--accent-emerald);
  flex-shrink: 0;
}

/* Before / After Interactive Visualizer */
.ba-comparison-section {
  padding: 6rem 0;
  background: linear-gradient(to top, rgba(17, 24, 39, 0.7), rgba(11, 15, 23, 0.9));
}

.ba-video-banner {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-highlight);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.85);
  margin-bottom: 3rem;
  width: 100%;
  height: 560px;
}

.ba-video-media {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.8) contrast(1.2);
}

#baRadarCanvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 2;
}

.ba-video-gradient {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(11, 15, 23, 0.95), transparent 55%);
  z-index: 3;
  pointer-events: none;
}

.ba-banner-badge {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  z-index: 4;
  background: rgba(11, 15, 23, 0.88);
  border: 1px solid var(--border-highlight);
  padding: 0.5rem 1.2rem;
  border-radius: 100px;
  font-size: 0.85rem;
  color: var(--primary-amber);
  font-weight: 700;
  font-family: var(--font-mono);
  display: flex;
  align-items: center;
  gap: 0.6rem;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.ba-radar-status-dot {
  width: 10px;
  height: 10px;
  background: #10b981;
  border-radius: 50%;
  box-shadow: 0 0 12px #10b981;
}

.ba-banner-content {
  position: absolute;
  bottom: 2rem;
  left: 2rem;
  right: 2rem;
  z-index: 4;
}

.ba-banner-tag {
  font-size: 0.85rem;
  color: var(--accent-cyan);
  font-family: var(--font-mono);
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  display: block;
  margin-bottom: 0.3rem;
}

.ba-banner-title {
  font-size: 1.8rem;
  color: white;
  font-family: var(--font-heading);
  line-height: 1.25;
}

.ba-section-header {
  text-align: center;
  margin-bottom: 2rem;
}

.ba-tabs {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.ba-slider-container {
  position: relative;
  width: 100%;
  max-width: 960px;
  height: 480px;
  margin: 0 auto;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-highlight);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.7);
  user-select: none;
  -webkit-user-select: none;
  touch-action: none;
}

.ba-image-after {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ba-image-before {
  position: absolute;
  top: 0;
  left: 0;
  width: 50%;
  height: 100%;
  border-right: 3px solid var(--primary-amber);
  box-shadow: 5px 0 20px rgba(0, 0, 0, 0.5);
  overflow: hidden;
}

.ba-image-before img {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  object-fit: cover;
  max-width: none;
}

.ba-handle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 44px;
  height: 44px;
  background: var(--primary-amber);
  color: #0b0f17;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 20px rgba(245, 158, 11, 0.8);
  cursor: ew-resize;
  z-index: 10;
  touch-action: none;
}

.ba-label {
  position: absolute;
  top: 1.5rem;
  padding: 0.4rem 1rem;
  background: rgba(11, 15, 23, 0.85);
  border: 1px solid var(--border-color);
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.ba-label-before {
  left: 1.5rem;
  color: var(--accent-rose);
}

.ba-label-after {
  right: 1.5rem;
  color: var(--accent-emerald);
}

/* Equipment Fleet Section */
.fleet-section {
  padding: 6rem 0;
}

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

.fleet-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  text-align: center;
  transition: var(--transition);
}

.fleet-card:hover {
  border-color: var(--accent-cyan);
  transform: translateY(-4px);
}

.fleet-badge {
  font-size: 0.7rem;
  font-family: var(--font-mono);
  color: var(--accent-cyan);
  background: rgba(6, 182, 212, 0.1);
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  margin-bottom: 1rem;
  display: inline-block;
}

.fleet-card h4 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.fleet-spec {
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* Quote Wizard Modal / Section */
.rfp-section {
  padding: 6rem 0;
  background: linear-gradient(to top, rgba(17, 24, 39, 0.8), transparent);
}

.rfp-card {
  max-width: 800px;
  margin: 0 auto;
  background: var(--bg-card-solid);
  border: 1px solid var(--border-highlight);
  border-radius: var(--radius-xl);
  padding: 3rem;
  box-shadow: 0 30px 70px rgba(0,0,0,0.8);
}

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

.faq-list {
  max-width: 860px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.faq-question {
  width: 100%;
  padding: 1.25rem 1.5rem;
  background: none;
  border: none;
  color: white;
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  text-align: left;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}

.faq-answer {
  padding: 0 1.5rem 1.25rem 1.5rem;
  color: var(--text-muted);
  font-size: 0.95rem;
  display: none;
}

.faq-item.active .faq-answer {
  display: block;
}

.faq-item.active .faq-question {
  color: var(--primary-amber);
}

/* Footer */
.footer {
  background: #07090f;
  border-top: 1px solid var(--border-color);
  padding: 4rem 0 2rem 0;
}

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

.footer-about p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-top: 1rem;
  max-width: 320px;
}

.footer-column h5 {
  font-size: 1rem;
  margin-bottom: 1.2rem;
  color: #ffffff;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.6rem;
}

.footer-links a {
  color: var(--text-muted);
  font-size: 0.88rem;
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--primary-amber);
}

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

/* Highway Precast Concrete Panel Section */
.highway-panel-section {
  padding: 6rem 0;
  background: rgba(17, 24, 39, 0.4);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

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

.stacked-deck-wrapper {
  position: relative;
  width: 100%;
  height: 380px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 2rem;
}

.stacked-card {
  position: absolute;
  width: 92%;
  height: 330px;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-highlight);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8);
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
}

.stacked-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.stacked-card-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background: linear-gradient(to top, rgba(11, 15, 23, 0.95), transparent);
  padding: 1.25rem 1.25rem 0.8rem 1.25rem;
}

.stacked-card-badge {
  font-size: 0.72rem;
  font-family: var(--font-mono);
  font-weight: 700;
  text-transform: uppercase;
  display: block;
}

.stacked-card-overlay h5 {
  font-size: 1.1rem;
  color: white;
  margin-top: 0.2rem;
  line-height: 1.3;
}

.stacked-controls-bar {
  position: absolute;
  bottom: -15px;
  display: flex;
  gap: 0.6rem;
  z-index: 10;
}

.highway-panel-info h3 {
  font-size: 2rem;
  margin-bottom: 1.25rem;
  line-height: 1.2;
}

.highway-panel-info p {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.panel-feature-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 2rem;
}

.panel-feature-card {
  background: rgba(11, 15, 23, 0.7);
  border: 1px solid var(--border-color);
  padding: 1rem;
  border-radius: var(--radius-sm);
}

.panel-feature-title {
  font-weight: 800;
  font-size: 1.2rem;
  font-family: var(--font-heading);
}

.panel-feature-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 0.2rem;
}

/* Service Card Enhancements */
.service-img-wrapper {
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin-bottom: 0.75rem;
  height: 170px;
  position: relative;
}

.service-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.service-card:hover .service-img-wrapper img {
  transform: scale(1.04);
}

.service-thumbs-bar {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.service-thumb-btn {
  background: none;
  border: 1px solid var(--border-color);
  padding: 2px;
  border-radius: 5px;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  min-width: 52px;
}

.service-thumb-btn img {
  width: 48px;
  height: 32px;
  object-fit: cover;
  border-radius: 3px;
  display: block;
}

.service-thumb-btn:hover, .service-thumb-btn.active {
  border-color: var(--primary-amber);
  box-shadow: 0 0 8px rgba(245, 158, 11, 0.4);
}

.service-cta-btn {
  font-size: 0.85rem;
  padding: 0.65rem 1.2rem;
  align-self: flex-start;
  min-height: 44px;
}

/* RFP Form Grid */
.rfp-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.rfp-submit-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 1rem;
  margin-top: 1rem;
}

.rfp-wa-btn {
  background: #25D366;
  border: none;
  color: white;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 48px;
}

.rfp-wa-btn:hover {
  background: #20bd5a;
  color: white;
}

/* Footer Enhancements */
.footer-brand-logo {
  display: inline-flex;
  align-items: center;
  gap: clamp(0.6rem, 1.5vw, 1rem);
  text-decoration: none;
}

.footer-logo-img {
  height: 85px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.6));
  flex-shrink: 0;
}

.footer-brand-title {
  font-weight: 900;
  font-size: 1.55rem;
  font-family: var(--font-heading);
  color: white;
  line-height: 1.15;
}

.footer-hq-links {
  color: var(--text-muted);
  font-size: 0.85rem;
  line-height: 1.6;
}

.footer-company-name {
  color: white;
  font-weight: 700;
  margin-bottom: 0.2rem;
}

.footer-gstin {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--accent-emerald);
  margin-bottom: 0.6rem;
}

.footer-contact-link {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: var(--transition);
}

.footer-contact-link:hover {
  color: var(--primary-amber);
}

/* Form inputs: Set font-size to 16px to prevent iOS Safari auto-zoom on mobile */
.form-input, .form-select, textarea.form-input {
  font-size: 16px;
  min-height: 48px;
}

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

/* Touch & Mobile Drag Gesture Optimizations (Android & iPhone) */
.ba-slider-container, .ba-handle {
  touch-action: none;
  -webkit-user-select: none;
  user-select: none;
}

canvas {
  touch-action: manipulation;
}

/* Keyboard Accessibility Focus Rings */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--primary-amber);
  outline-offset: 2px;
}

/* ==========================================================================
   RESPONSIVE DESIGN BREAKPOINTS
   Laptops (<=1024px) | Tablets (<=768px) | Large Phones (<=640px)
   Standard Phones (<=480px) | Compact Phones (<=360px)
   ========================================================================== */

/* 1. COMPACT DESKTOP FINE-TUNING (1201px - 1340px) */
@media (max-width: 1340px) and (min-width: 1201px) {
  .nav-menu {
    gap: clamp(0.6rem, 1vw, 1.1rem);
  }
  .nav-link {
    font-size: 0.83rem;
    padding: 0.4rem 0.1rem;
  }
  .brand-logo-img {
    height: 62px;
  }
  .brand-title {
    font-size: 1.28rem;
  }
  .brand-tagline {
    font-size: 0.58rem;
  }
  #navQuoteBtn {
    font-size: 0.82rem;
    padding: 0.5rem 1rem;
  }
}

/* 2. TABLET & LAPTOP RESPONSIVE NAV BREAKPOINT (<= 1200px) */
@media (max-width: 1200px) {
  .nav-menu {
    display: none !important;
  }
  .nav-toggle {
    display: flex;
  }
  .nav-actions #navQuoteBtn {
    display: none;
  }
  .header .container {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
  .brand-logo-img {
    height: 62px;
  }
  .brand-title {
    font-size: 1.35rem;
  }
  .brand-tagline {
    font-size: 0.62rem;
  }
}

/* 2. TABLET / LAPTOP GRID LAYOUTS (<= 1024px) */
@media (max-width: 1024px) {
  .hero-grid, .simulator-grid, .estimator-grid, .highway-panel-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
  }
  .services-grid, .portfolio-grid, .stats-grid, .fleet-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .hero-content h1 {
    font-size: clamp(2.2rem, 4.5vw, 3.2rem);
  }
}

/* 3. TABLET PORTRAIT / MOBILE (<= 768px) */
@media (max-width: 768px) {
  html {
    font-size: 15px;
  }
  body {
    padding-top: max(0px, env(safe-area-inset-top));
    padding-bottom: max(0px, env(safe-area-inset-bottom));
  }
  .container {
    padding-left: max(1.2rem, env(safe-area-inset-left));
    padding-right: max(1.2rem, env(safe-area-inset-right));
  }
  .header {
    padding: 0.55rem 0;
  }
  .brand-logo-img {
    height: 54px;
  }
  .brand-title {
    font-size: 1.2rem;
  }
  .brand-tagline {
    font-size: 0.56rem;
    letter-spacing: 0.08em;
  }
  .hero {
    padding-top: 115px;
    padding-bottom: 3.5rem;
    min-height: auto;
  }
  .hero-content h1,
  .hero-brand-h1 {
    font-size: clamp(1.85rem, 5.5vw, 2.5rem);
    line-height: 1.15;
  }
  .hero-subheadline {
    font-size: 1.05rem;
    margin-bottom: 0.75rem;
  }
  .hero-intro {
    font-size: 0.98rem;
    line-height: 1.55;
  }
  .hero-content p {
    font-size: 1.05rem;
  }
  .hero-badges {
    gap: 0.6rem;
  }
  .hero-badge {
    font-size: 0.8rem;
    padding: 0.35rem 0.75rem;
  }
  .section-title {
    font-size: clamp(1.6rem, 4.5vw, 2.2rem);
    line-height: 1.2;
  }
  .section-subtitle {
    font-size: 1rem;
    margin-bottom: 2rem;
  }
  .services-section, .portfolio-section, .simulator-section, .ba-comparison-section, .highway-panel-section, .rfp-section, .faq-section, .about-section {
    padding: 4rem 0;
  }
  .about-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .about-highlights-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .about-visual-card {
    padding: 1.75rem;
  }
  .ba-video-banner {
    height: 380px;
  }
  .ba-banner-title {
    font-size: 1.4rem;
  }
  .ba-slider-container {
    height: 320px;
  }
  .services-grid, .portfolio-grid, .fleet-grid {
    grid-template-columns: 1fr;
  }
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
  .stat-item h3 {
    font-size: 2.3rem;
  }
  #slopeCanvas {
    height: 320px;
  }
  .stacked-deck-wrapper {
    height: 340px;
  }
  .stacked-card {
    height: 300px;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .footer-logo-img {
    height: 64px;
  }
  .footer-brand-title {
    font-size: 1.35rem;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 0.8rem;
    text-align: center;
  }
}

/* 3. MID-SIZE SMARTPHONES (<= 640px) */
@media (max-width: 640px) {
  .hero-buttons {
    flex-direction: column;
    width: 100%;
  }
  .hero-buttons .btn {
    width: 100%;
    justify-content: center;
    min-height: 48px;
  }
  .telemetry-box {
    padding: 1.5rem 1.2rem;
  }
  .telemetry-metrics {
    gap: 0.75rem;
  }
  .metric-card {
    padding: 0.85rem;
  }
  .metric-value {
    font-size: 1.4rem;
  }
  .metric-unit {
    display: block;
    margin-left: 0;
    font-size: 0.75rem;
  }
  .ba-video-banner {
    height: 320px;
  }
  .ba-banner-badge {
    top: 0.85rem;
    right: 0.85rem;
    font-size: 0.72rem;
    padding: 0.35rem 0.8rem;
  }
  .ba-banner-content {
    bottom: 1.2rem;
    left: 1.2rem;
    right: 1.2rem;
  }
  .ba-banner-tag {
    font-size: 0.7rem;
    letter-spacing: 1px;
  }
  .ba-banner-title {
    font-size: 1.15rem;
  }
  .ba-slider-container {
    height: 290px;
  }
  .ba-label {
    top: 0.85rem;
    padding: 0.3rem 0.75rem;
    font-size: 0.7rem;
  }
  .ba-label-before {
    left: 0.85rem;
  }
  .ba-label-after {
    right: 0.85rem;
  }
  .ba-tabs {
    flex-direction: column;
    width: 100%;
  }
  .ba-tab-btn {
    width: 100%;
    text-align: center;
    min-height: 44px;
  }
  .canvas-overlay-stats {
    top: 0.75rem;
    right: 0.75rem;
    padding: 0.6rem 0.85rem;
    min-width: 140px;
  }
  .fos-value {
    font-size: 1.7rem;
  }
  .service-cta-btn {
    width: 100%;
    justify-content: center;
  }
  .rfp-card {
    padding: 2rem 1.25rem;
  }
  .rfp-form-grid, .rfp-submit-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .rfp-submit-grid .btn {
    width: 100%;
  }
  .portfolio-filter {
    gap: 0.5rem;
  }
  .filter-btn {
    flex: 1 1 calc(50% - 0.5rem);
    text-align: center;
    padding: 0.55rem 0.75rem;
    min-height: 42px;
  }
}

/* 4. STANDARD PHONES & IPHONES (<= 480px) */
@media (max-width: 480px) {
  html {
    font-size: 14.5px;
  }
  .container {
    padding-left: max(0.9rem, env(safe-area-inset-left));
    padding-right: max(0.9rem, env(safe-area-inset-right));
  }
  .brand-logo-img {
    height: 46px;
  }
  .brand-title {
    font-size: 1.05rem;
  }
  .brand-tagline {
    font-size: 0.5rem;
    letter-spacing: 0.08em;
  }
  .hero-content h1 {
    font-size: clamp(1.6rem, 6.5vw, 1.95rem);
  }
  .section-tag {
    font-size: 0.72rem;
    padding: 0.3rem 0.75rem;
  }
  .ba-video-banner {
    height: 270px;
  }
  .ba-banner-title {
    font-size: 1.05rem;
  }
  .ba-slider-container {
    height: 250px;
  }
  .stacked-deck-wrapper {
    height: 310px;
  }
  .stacked-card {
    height: 270px;
  }
  .panel-feature-grid {
    grid-template-columns: 1fr;
  }
  #slopeCanvas {
    height: 270px;
  }
  .preset-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.4rem;
  }
  .preset-btn {
    min-height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
  }
  .faq-question {
    padding: 1rem 1.15rem;
    font-size: 0.98rem;
  }
  .faq-answer {
    padding: 0 1.15rem 1.15rem 1.15rem;
    font-size: 0.9rem;
  }
  .footer-logo-img {
    height: 52px;
  }
  .footer-brand-title {
    font-size: 1.2rem;
  }
}

/* 5. ULTRA-COMPACT SMARTPHONES (<= 360px - e.g. iPhone SE / Galaxy A) */
@media (max-width: 360px) {
  html {
    font-size: 13.5px;
  }
  .container {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }
  .brand-logo-img {
    height: 40px;
  }
  .brand-title {
    font-size: 0.95rem;
  }
  .brand-tagline {
    font-size: 0.46rem;
    letter-spacing: 0.05em;
  }
  .hero-content h1,
  .hero-brand-h1 {
    font-size: 1.5rem;
  }
  .telemetry-metrics {
    grid-template-columns: 1fr;
  }
  .stats-grid {
    grid-template-columns: 1fr;
    gap: 1.2rem;
  }
  .filter-btn {
    flex: 1 1 100%;
  }
  .ba-slider-container {
    height: 220px;
  }
  .ba-label {
    font-size: 0.62rem;
    padding: 0.2rem 0.5rem;
    max-width: 44%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}

/* Respect prefers-reduced-motion for Accessibility */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .live-dot {
    animation: none !important;
  }
}

