/* style.css – Smart Garage global variables and base theme */

:root {
  --brand: #163262;
  --accent1: #7ED957;
  --accent2: #FFDE59;
  --accent3: #8C52FF;
  --soft: #E2A9F1;
  --dark: #0D2A5C;

  --text-main: #1a1a1a;
  --text-muted: #6b7280;
  --bg-light: #ffffff;
  --bg-section: #e1e6f2;
  --border-color: #e5e7eb;
}
/* Layout container */
.site-wrapper {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  background: var(--bg-light);
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.08);
}

body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  color: var(--text-main);
  background: var(--bg-light);
}

body {
  padding-top: 50px; /* ensures content isn’t hidden by banner */
}

.top-offer-banner {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  background: #F9A825;
  color: #000;
  font-weight: 600;
  border-radius: 0 0 10px 10px;
  padding: 10px 18px;
  box-shadow: 0 3px 8px rgba(0,0,0,0.2);
  cursor: pointer;
  z-index: 5000; /* raised above header/nav */
  text-align: center;
  transition: background 0.2s ease, transform 0.2s ease;
}

a {
  color: var(--brand);
  text-decoration: none;
  transition: opacity 0.2s ease;
}

a:hover {
  opacity: 0.8;
}



button, .btn {
  border: none;
  border-radius: 1rem;
  cursor: pointer;
  font-weight: 500;
  transition: background 0.2s ease, transform 0.1s ease;
}

button:hover, .btn:hover {
  transform: translateY(-1px);
}

header {
  background-color: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--border-color);
}



/* === Section Headings === */
.section-heading {
  text-align: center;
  color: var(--brand);
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  letter-spacing: -0.5px;
}

@media (min-width: 768px) {
  .section-heading {
    font-size: 2.4rem;
    margin-bottom: 2rem;
  }
}

section {
  padding: 4rem 0;
}

footer {
  background: var(--bg-light);
  border-top: 1px solid var(--border-color);
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Utility classes */
.text-brand { color: var(--brand); }
.bg-brand { background: var(--brand); color: #fff; }
.bg-accent1 { background: var(--accent1); }
.bg-accent2 { background: var(--accent2); }
.bg-accent3 { background: var(--accent3); }

/* Responsive tweaks */
@media (max-width: 768px) {
  header nav { display: none; }
}

    header nav {
      display: flex;
      gap: 1.5rem;
    }
    .menu-toggle {
      display: none;
      flex-direction: column;
      justify-content: center;
      cursor: pointer;
      background: none;
      border: none;
    }
    .menu-toggle span {
      width: 25px;
      height: 3px;
      background: var(--brand);
      margin: 4px 0;
      border-radius: 2px;
      transition: 0.3s;
      z-index: 100;
    }
    /* Hero section background (contained within section) */
    #home {
      position: relative;
      padding: 8rem 2rem;
      text-align: center;
      overflow: hidden;
    }
    #home::before {
      content: "";
      position: absolute;
      inset: 0;
      background-image: url('hero-desktop.webp');
      background-size: cover;
      background-position: center;
      background-repeat: no-repeat;
      z-index: 0;
    }
    #home::after {
      content: "";
      position: absolute;
      inset: 0;
      background: rgba(125, 125, 125, 0.2);
      z-index: 1;
    }
    #home .content {
      position: relative;
      z-index: 2;
      max-width: 800px;
      margin: auto;
      color: #fffF;
    }
    #home h2, h4{
     text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.6);
    }
    
@media (max-width: 768px) {
  header nav {
    display: none;
    flex-direction: column;
    position: fixed;
    top: 90px;
    right: 0px;
    width: 240px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    z-index: 2001; /* must be ABOVE the overlay */
    padding: 1rem 0;
  }

  header nav.active {
    display: flex;
  }

  header nav a {
    display: block;
    padding: 0.9rem 1.5rem;
    color: var(--brand);
    text-align: left;
    font-weight: 500;
  }

  header nav a:hover {
    background: var(--bg-section);
  }

  .menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    cursor: pointer;
    background: none;
    border: none;
    z-index: 2002; /* stays clickable */
  }

  .menu-toggle span {
    width: 26px;
    height: 3px;
    background: var(--brand);
    margin: 4px 0;
    border-radius: 2px;
  }

  .menu-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 2000; /* sits BELOW the nav now */
  }

  .menu-overlay.active {
    display: block;
  }
}

/* Clear any previous alternation */
section { background: #fff; }

/* Start alternating from the section *after* #services */
#services ~ section:nth-of-type(odd)  { background: var(--bg-section); }
#services ~ section:nth-of-type(even) { background: #fff; }

/* Optional: lock hero/services to white explicitly, if you like */
#home, #services { background: #fff; }

/* --- Force menu above all else --- */
header {
  position: relative;
  z-index: 3000; /* ensure header content sits above page */
}

header nav {
  z-index: 3001 !important; /* override any lower stacking contexts */
}

.menu-toggle {
  z-index: 3002 !important; /* make the hamburger always clickable */
}

.menu-overlay {
  z-index: 2000 !important; /* stays below the nav, above content */
}

/* === Section Spacing === */
section {
  padding: 2rem 1rem; /* top/bottom 2.5rem, sides 1rem */
}

@media (min-width: 768px) {
  section {
    padding: 3rem 2rem; /* a bit more breathing room on desktop */
  }
}

/* === Two-column layout for Smart Power & Smart Space === */
.grid-two {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(420px, 1fr));
  align-items: center;
  gap: 3rem; /* wider space between text and image */
  max-width: 1200px; /* slightly wider overall */
  margin: 0 auto;
  padding: 2.5rem 1.5rem; /* less side padding */
}

@media (max-width: 768px) {
  .grid-two {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 2rem 1rem;
  }
}

/* === Product Grid Section === */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(333px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.product-grid h2 {
  grid-column: 1 / -1;
  margin-bottom: 1.5rem;
  color: var(--brand);
}

.product-card {
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: 1rem;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
}

.product-card h3 {
  font-size: 1.2rem;
  margin-bottom: 1rem;
  color: var(--text-main);
}

.product-card img {
  width: 100%;
  max-width: 420px;
  border-radius: 0.8rem;
  border: 1px solid var(--border-color);
  margin-bottom: 1rem;
}

.product-card .desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.product-card .price {
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--brand);
}

@media (max-width: 768px) {
  .product-grid {
    gap: 1rem;
  }
  .product-card {
    padding: 1rem;
  }
}
  .product-card {
    padding: 1rem;
  }
  .product-card img {
    max-width: 100%;
  }
}

/* === Smart Power Fixed 2x2 Grid === */
.service-grid-section {
  background: var(--bg-section);
  padding: 4rem 2rem;
  text-align: center;
}

.service-subtitle {
  color: var(--text-muted);
  margin-bottom: 2.5rem;
}

.service-grid-2x2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: repeat(2, 1fr);
  gap: 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

.service-card {
  background: #fff;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-align: center;
}

.service-card img {
  width: 100%;
  height: 260px;
  object-fit: cover;
}

.service-card h3 {
  font-size: 1.3rem;
  color: var(--brand);
  margin: 1rem 0 0.5rem;
}

.service-card p {
  font-size: 0.95rem;
  color: var(--text-muted);
  padding: 0 1.2rem 1.5rem;
  line-height: 1.4;
}

@media (max-width: 768px) {
  .service-grid-2x2 {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }

  .service-card img {
    height: 220px;
  }
}

/* === WhatsApp Floating Button (white icon, pulsing) === */
.whatsapp-float {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 3000;
  background: #25D366;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  animation: whatsapp-pulse 5s ease-in-out infinite;
}

.whatsapp-float:hover {
  transform: scale(1.08);
  box-shadow: 0 5px 12px rgba(0, 0, 0, 0.35);
}

/* Force white icon tint */
.whatsapp-float img {
  width: 32px;
  height: 32px;
  filter: brightness(0) invert(1); /* converts black parts to white */
}

/* Subtle pulse animation */
@keyframes whatsapp-pulse {
  0%, 70%, 100% { transform: scale(1); box-shadow: 0 3px 8px rgba(0,0,0,0.25); }
  80% { transform: scale(1.12); box-shadow: 0 6px 14px rgba(0,0,0,0.3); }
  90% { transform: scale(1.06); }
}

/* === Top Offer Banner === */
.top-offer-banner {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  background: #F9A825;
  color: #000;
  font-weight: 600;
  border-radius: 0 0 10px 10px;
  padding: 10px 18px;
  box-shadow: 0 3px 8px rgba(0,0,0,0.2);
  cursor: pointer;
  z-index: 3100;
  text-align: center;
  transition: background 0.2s ease, transform 0.2s ease;
}

.top-offer-banner:hover {
  background: #FFDE59;
  transform: translateX(-50%) scale(1.05);
}

/* === Offer Interstitial Modal === */
.offer-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.75);
  backdrop-filter: blur(2px);
  z-index: 3200;
  justify-content: center;
  align-items: center;
}

.offer-content {
  position: relative;
  background: #fff;
  border-radius: 10px;
  max-width: 600px;
  width: 90%;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0,0,0,0.4);
  animation: fadeInUp 0.4s ease;
}

.offer-content img {
  width: 100%;
  display: block;
  border-radius: 10px;
}

.offer-close {
  position: absolute;
  top: 8px;
  right: 12px;
  background: none;
  border: none;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
  font-weight: bold;
  z-index: 3300;
  text-shadow: 0 2px 6px rgba(0,0,0,0.6);
}

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