/* ==========================================================================
   DRIVERESQ (DriveResQ.shop) - NEO-TACTICAL RESCUE GRID DESIGN SYSTEM
   Google Ads Policy Compliant • 100% Brand-New Design Direction
   ========================================================================== */

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

:root {
  /* Neo-Tactical Color Palette */
  --bg-slate-dark: #050811;
  --bg-slate-card: #0D1222;
  --bg-slate-hover: #151D36;
  
  --neon-cyan: #00F0FF;
  --neon-cyan-glow: rgba(0, 240, 255, 0.35);
  
  --safety-amber: #FF6B00;
  --safety-amber-glow: rgba(255, 107, 0, 0.3);
  
  --whatsapp-green: #25D366;
  --whatsapp-hover: #20BA5A;
  --whatsapp-glow: rgba(37, 211, 102, 0.45);
  
  --text-primary: #F8FAFC;
  --text-secondary: #CBD5E1;
  --text-muted: #64748B;
  
  --border-neon: rgba(0, 240, 255, 0.22);
  --border-subtle: rgba(255, 255, 255, 0.08);
  
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 9999px;
  --max-width: 1240px;
}

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

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

body {
  font-family: 'Inter', -apple-system, sans-serif;
  background-color: var(--bg-slate-dark);
  color: var(--text-secondary);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Tactical Background Grid Pattern */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: 
    linear-gradient(rgba(0, 240, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 240, 255, 0.03) 1px, transparent 1px);
  background-size: 50px 50px;
  pointer-events: none;
  z-index: 0;
}

.container {
  width: 90%;
  max-width: var(--max-width);
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

/* Typography */
h1, h2, h3, h4 {
  font-family: 'Space Grotesk', sans-serif;
  color: var(--text-primary);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.cyan-gradient-text {
  background: linear-gradient(135deg, #FFFFFF 0%, #00F0FF 50%, #FF6B00 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

/* TOP NAVBAR */
.simple-navbar {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  background: rgba(5, 8, 17, 0.94);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-neon);
}

.navbar-container {
  width: 90%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 12px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-text {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.compliance-badge {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--neon-cyan);
  background: rgba(0, 240, 255, 0.08);
  border: 1px solid var(--border-neon);
  padding: 3px 10px;
  border-radius: var(--radius-full);
  text-transform: uppercase;
}

.nav-wa-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 22px;
  background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
  color: white;
  font-weight: 800;
  font-size: 0.9rem;
  border-radius: var(--radius-full);
  text-decoration: none;
  box-shadow: 0 4px 18px rgba(37, 211, 102, 0.35);
  transition: all 0.3s ease;
  cursor: pointer;
}

.nav-wa-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(37, 211, 102, 0.5);
}

.nav-wa-btn svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

/* HERO SECTION - CLEAN 100VH CENTERING */
.hero-section {
  min-height: calc(100vh - 60px);
  min-height: calc(100dvh - 60px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  position: relative;
  padding: 2rem 1.5rem;
  z-index: 2;
  box-sizing: border-box;
}

.hero-brand-header {
  margin-bottom: 1.2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-domain-tag {
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--neon-cyan);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  margin-bottom: 0.6rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.hero-domain-tag::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--neon-cyan);
  box-shadow: 0 0 10px var(--neon-cyan);
}

.hero-title {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: clamp(3rem, 7vw, 5rem);
  line-height: 0.95;
  margin-bottom: 1rem;
  font-weight: 700;
}

.hero-title-sub {
  font-size: clamp(0.9rem, 2vw, 1.3rem);
  font-weight: 600;
  letter-spacing: 0.4em;
  color: var(--safety-amber);
  text-transform: uppercase;
  margin-top: 0.4rem;
}

.hero-subtitle {
  font-size: clamp(1.05rem, 1.8vw, 1.25rem);
  color: var(--text-secondary);
  margin: 0 auto 2rem auto;
  max-width: 620px;
  line-height: 1.6;
}

/* CENTERED WHATSAPP CTA */
.hero-whatsapp-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.hero-wa-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 18px 44px;
  background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
  color: #FFFFFF;
  font-size: 1.25rem;
  font-weight: 900;
  text-decoration: none;
  letter-spacing: 0.03em;
  border-radius: var(--radius-full);
  box-shadow: 0 10px 35px rgba(37, 211, 102, 0.45), 0 4px 15px rgba(0, 0, 0, 0.5);
  position: relative;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border: 1px solid rgba(255, 255, 255, 0.3);
  cursor: pointer;
  z-index: 5;
}

.hero-wa-btn::before {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, rgba(37, 211, 102, 0.6), rgba(0, 240, 255, 0.3));
  z-index: -1;
  opacity: 0.75;
  animation: waPulseRing 2.2s infinite ease-out;
}

.hero-wa-btn:hover {
  transform: translateY(-3px) scale(1.04);
  box-shadow: 0 14px 45px rgba(37, 211, 102, 0.65);
}

.hero-wa-btn svg {
  width: 28px;
  height: 28px;
  fill: currentColor;
}

.wa-btn-subtext {
  margin-top: 12px;
  font-size: 0.92rem;
  color: var(--neon-cyan);
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
}

.online-dot {
  width: 9px;
  height: 9px;
  background-color: var(--whatsapp-green);
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 10px var(--whatsapp-green);
  animation: blinkFast 1.5s infinite alternate;
}

/* HERO RADAR HUD DISPLAY */
.hero-radar-box {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  max-width: 380px;
  margin: 0 auto;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(13, 18, 34, 0.9) 0%, rgba(5, 8, 17, 0.98) 70%);
  border: 2px solid var(--neon-cyan);
  box-shadow: 0 0 40px rgba(0, 240, 255, 0.25), inset 0 0 30px rgba(0, 240, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.radar-sweep {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: conic-gradient(from 0deg, rgba(0, 240, 255, 0.4) 0deg, transparent 60deg, transparent 360deg);
  animation: radarSweep 4s linear infinite;
}

.radar-ring-inner {
  position: absolute;
  inset: 20%;
  border-radius: 50%;
  border: 1px dashed rgba(0, 240, 255, 0.3);
}

.radar-ring-mid {
  position: absolute;
  inset: 50%;
  border-radius: 50%;
  border: 1px solid rgba(255, 107, 0, 0.3);
}

.radar-center-node {
  position: relative;
  z-index: 2;
  text-align: center;
}

.radar-center-node h4 {
  font-size: 1.4rem;
  color: var(--neon-cyan);
}

.radar-center-node p {
  font-size: 0.8rem;
  color: var(--text-muted);
  letter-spacing: 0.1em;
}

/* SECTION 1: TELEMETRY STRIP */
.telemetry-section {
  padding: 1.5rem 0 3.5rem;
}

.telemetry-strip {
  background: rgba(13, 18, 34, 0.95);
  border: 1px solid var(--border-neon);
  border-radius: var(--radius-md);
  padding: 20px 32px;
  display: flex;
  justify-content: space-around;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
}

.telemetry-item {
  display: flex;
  align-items: center;
  gap: 12px;
}

.telemetry-val {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--neon-cyan);
}

.telemetry-lbl {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* SECTIONS BASE */
.section {
  padding: 5.5rem 0;
  position: relative;
}

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

.section-title {
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  margin-bottom: 0.8rem;
}

.section-desc {
  font-size: 1.08rem;
  color: var(--text-muted);
}

/* SECTION 2: TABBED COMMAND CONSOLE FOR SERVICES */
.tab-console-wrapper {
  background: var(--bg-slate-card);
  border: 1px solid var(--border-neon);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6);
}

.tab-nav {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 1rem;
}

.tab-btn {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.tab-btn.active, .tab-btn:hover {
  background: rgba(0, 240, 255, 0.1);
  border-color: var(--neon-cyan);
  color: var(--neon-cyan);
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
  animation: fadeIn 0.4s ease;
}

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

.tab-pane-info h3 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
}

.tab-pane-info p {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.tab-pane-list {
  list-style: none;
  margin-bottom: 2rem;
}

.tab-pane-list li {
  padding-left: 24px;
  position: relative;
  margin-bottom: 10px;
  font-size: 0.95rem;
}

.tab-pane-list li::before {
  content: '▶';
  position: absolute;
  left: 0;
  color: var(--neon-cyan);
  font-size: 0.8rem;
}

/* SECTION 3: HORIZONTAL FLOW PIPELINE */
.pipeline-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

.pipeline-card {
  background: var(--bg-slate-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 2rem 1.6rem;
  position: relative;
  transition: all 0.3s ease;
}

.pipeline-card:hover {
  border-color: var(--border-neon);
  transform: translateY(-4px);
}

.pipeline-step-num {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--safety-amber);
  margin-bottom: 0.8rem;
}

.pipeline-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.6rem;
}

.pipeline-card p {
  font-size: 0.94rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* SECTION 4: TACTICAL DISPATCH FORM */
.tactical-form-box {
  background: linear-gradient(160deg, #0A0F1D, #050811);
  border: 2px solid var(--border-neon);
  border-radius: var(--radius-lg);
  padding: 3.5rem 2.5rem;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8);
}

.tactical-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.8rem;
  margin-bottom: 2rem;
}

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

.tactical-label {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--neon-cyan);
  letter-spacing: 0.1em;
}

.tactical-select {
  background: rgba(5, 8, 17, 0.95);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 16px;
  color: var(--text-primary);
  font-family: inherit;
  font-size: 1rem;
  outline: none;
  transition: all 0.3s ease;
}

.tactical-select:focus {
  border-color: var(--neon-cyan);
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.2);
}

.tactical-submit-btn {
  width: 100%;
  padding: 20px 32px;
  background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
  color: white;
  font-weight: 900;
  font-size: 1.15rem;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  box-shadow: 0 10px 30px rgba(37, 211, 102, 0.4);
  transition: all 0.3s ease;
}

.tactical-submit-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 40px rgba(37, 211, 102, 0.6);
}

.tactical-submit-btn svg {
  width: 26px;
  height: 26px;
  fill: currentColor;
}

/* FOOTER & GOOGLE ADS POLICY MODAL */
.footer-section {
  background: #020409;
  border-top: 1px solid var(--border-subtle);
  padding: 4rem 0 2.5rem;
}

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

.footer-links {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--text-muted);
  font-size: 0.9rem;
  text-decoration: none;
  transition: color 0.3s ease;
  cursor: pointer;
}

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

.footer-disclaimer-block {
  margin-top: 2rem;
  padding: 1.2rem 1.5rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.footer-bottom {
  margin-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.88rem;
  color: var(--text-muted);
}

/* FLOATING FAB */
.floating-wa-fab {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 30px rgba(37, 211, 102, 0.45);
  z-index: 99;
  transition: all 0.3s ease;
  text-decoration: none;
  cursor: pointer;
}

.floating-wa-fab:hover {
  transform: scale(1.1);
}

.floating-wa-fab svg {
  width: 30px;
  height: 30px;
  fill: currentColor;
}

/* MODAL OVERLAY */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(2, 4, 9, 0.85);
  backdrop-filter: blur(10px);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.modal-card {
  background: var(--bg-slate-card);
  border: 1px solid var(--border-neon);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  max-width: 600px;
  width: 100%;
  max-height: 80vh;
  overflow-y: auto;
  position: relative;
  color: var(--text-secondary);
}

.modal-close-btn {
  position: absolute;
  top: 18px;
  right: 20px;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.5rem;
  cursor: pointer;
}

.modal-close-btn:hover {
  color: var(--neon-cyan);
}

/* ANIMATIONS */
@keyframes radarSweep {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes waPulseRing {
  0% { transform: scale(1); opacity: 0.75; }
  50% { transform: scale(1.1); opacity: 0.3; }
  100% { transform: scale(1.2); opacity: 0; }
}

@keyframes blinkFast {
  from { opacity: 0.3; }
  to { opacity: 1; }
}

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

/* RESPONSIVE */
@media (max-width: 900px) {
  .hero-grid-layout {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-content {
    align-items: center;
  }
  .hero-whatsapp-container {
    align-items: center;
  }
  .tab-pane-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .hero-section {
    padding: 0 0.8rem;
    height: calc(100vh - 54px);
    height: calc(100dvh - 54px);
    min-height: calc(100vh - 54px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-sizing: border-box;
  }
  .hero-title {
    font-size: 2.8rem;
  }
  .hero-wa-btn {
    padding: 14px 28px;
    font-size: 1.05rem;
    width: 100%;
    max-width: 300px;
  }
  .hero-radar-box {
    max-width: 260px;
  }
  .telemetry-strip {
    flex-direction: column;
    align-items: flex-start;
  }
  .tactical-form-box {
    padding: 2rem 1.25rem;
  }
}
