/* DVS Invisible Grills & Safety Nets - Production Standalone CSS */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800;900&display=swap');

:root {
  --primary-navy: #0f2b46;
  --primary-dark: #091a2b;
  --brand-blue: #0284c7;
  --brand-light: #38bdf8;
  --brand-accent: #f59e0b;
  --whatsapp-green: #25D366;
  --whatsapp-dark: #128C7E;
  --surface-bg: #f8fafc;
  --surface-card: #ffffff;
  --text-main: #0f172a;
  --text-muted: #64748b;
  --border-light: #e2e8f0;
}

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

html {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  scroll-behavior: smooth;
  color: var(--text-main);
  background-color: #f8fafc;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

/* Subtle attention pulsing animation for Call & WhatsApp buttons */
@keyframes softPulse {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.45);
  }
  70% {
    transform: scale(1.025);
    box-shadow: 0 0 0 10px rgba(37, 211, 102, 0);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
  }
}

@keyframes callPulse {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(2, 132, 199, 0.45);
  }
  70% {
    transform: scale(1.025);
    box-shadow: 0 0 0 10px rgba(2, 132, 199, 0);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(2, 132, 199, 0);
  }
}

.animate-whatsapp-pulse {
  animation: softPulse 2.8s infinite ease-in-out;
}

.animate-call-pulse {
  animation: callPulse 2.8s infinite ease-in-out;
}

/* ================= MEGA MENU & HEADER FIX ================= */
/* Solves: "header lo services lo unna menu select cheskune lopu close aypothundi" */

.mega-menu-wrapper {
  position: relative;
}

/* Hover bridge: an invisible extension between the Services nav button and the mega menu */
.mega-menu-container {
  display: none;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  width: 96vw;
  max-width: 1060px;
  padding-top: 14px; /* Bridge gap without mouseleave */
  z-index: 1000;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

/* The invisible bridge pseudo element */
.mega-menu-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 20px;
  background: transparent;
  pointer-events: auto;
}

/* Active or hovered state */
.mega-menu-wrapper.is-open .mega-menu-container,
.mega-menu-wrapper:hover .mega-menu-container {
  display: block;
}

.mega-menu-card {
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 20px 45px -10px rgba(15, 23, 42, 0.18), 0 0 0 1px rgba(15, 23, 42, 0.08);
  border: 1px solid #e2e8f0;
  padding: 24px;
}

/* Hero Slider Heights */
.hero-slider-container {
  height: 500px;
  position: relative;
  overflow: hidden;
}

@media (max-width: 768px) {
  .hero-slider-container {
    height: 350px !important;
  }
}

/* Mobile Service Cards: Exactly 2 per row */
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

@media (max-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
  }
}

@media (max-width: 768px) {
  .services-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 12px !important;
  }
}

/* Common Card Styles */
.service-card {
  background: #ffffff;
  border-radius: 14px;
  border: 1px solid #e2e8f0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.service-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 24px -6px rgba(15, 43, 70, 0.12);
  border-color: #38bdf8;
}

/* Installation Step Card */
.step-card {
  background: #ffffff;
  border-radius: 14px;
  padding: 20px;
  border: 1px solid #e2e8f0;
  position: relative;
  transition: all 0.2s ease;
}

.step-card:hover {
  border-color: #0284c7;
  transform: translateY(-2px);
}

/* Mobile sticky CTA bar */
.mobile-sticky-cta {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #ffffff;
  border-top: 1px solid #e2e8f0;
  padding: 8px 12px;
  z-index: 999;
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.08);
}

@media (max-width: 768px) {
  .mobile-sticky-cta {
    display: flex;
    gap: 8px;
  }
  body {
    padding-bottom: 64px;
  }
}

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

@media (min-width: 640px) {
  .site-container {
    padding-left: 24px;
    padding-right: 24px;
  }
}
