/* -------------------- HEADER -------------------- */
/* =========================
   Header — mobile-first
   Base (mobile) styles first,
   desktop overrides with min-width
   ========================= */

.header {
  background: #fff;
  border-bottom: 1px solid #ccc;
  position: sticky;
  top: 0;
  z-index: 999;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  transition: background-color 0.25s ease, box-shadow 0.25s ease;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 15px;
}

/* scrolled / shrink states (works same) */
.header.scrolled {
  background-color: #fff;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
.header.shrink .header-inner { padding: 5px 12px; }
.header.shrink .logo { height: 30px; width: 30px; }

/* --- Mobile (base) layout --- */
.logo-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: black;
  margin: 0 auto; /* centers logo on mobile */
}
.logo { height: 40px; width: 40px; border-radius: 50%; }
.logo img { height: 40px; width: auto; }
.brand-name { display: none; font-weight: 600; font-size: 1rem; }

.nav-links { display: none; } /* hidden on mobile */
.nav-links a { color: #333; font-weight: 500; text-decoration: none; }

.hamburger {
  display: flex;           /* shown on mobile by default */
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 6px;
}
.hamburger span { width: 24px; height: 3px; background: #333; border-radius: 2px; }

.mobile-menu {
  display: none;
  flex-direction: column;
  background: #fff;
  padding: 15px 20px;
  border-top: 1px solid #ccc;
}
.mobile-menu a { padding: 10px 0; color: #333; text-decoration: none; font-weight: 500; }
.mobile-menu.active { display: flex; }

.header-actions { display: flex; gap: 8px; align-items: center; }
.header-actions svg {
  width: 22px;
  height: 22px;
  fill: #007bff;
  transition: fill 0.2s;
}
.header-actions a {
  display: flex;          /* make each button a flexbox */
  align-items: center;    /* center the SVG vertically */
  justify-content: center;
  width: 20px;            /* equal hit area */
  height: 20px;
  border-radius: 50%;     /* circular area */
}

.header-actions a:hover svg { fill: #0056b3; }
/* Desktop search in header */
.search-desktop {
  display: none; /* hidden by default (mobile-first) */
  align-items: center;
  border: 1px solid #ccc;
  border-radius: 25px;
  overflow: hidden;
  height: 36px;
}

.search-desktop input {
  border: none;
  padding: 0 10px;
  font-size: 14px;
  height: 100%;
  outline: none;
  flex: 1;
  min-width: 150px;
}

.search-desktop button {
  background: #007bff;
  border: none;
  width: 40px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.search-desktop button svg {
  width: 18px;
  height: 18px;
  fill: #fff;
}

.search-desktop button:hover {
  background: #0056b3;
}

/* Show only on desktop */
@media (min-width: 769px) {
  .search-desktop { display: flex; }
  .floating-search { display: none; }
}

/* example: show call button on mobile by default */
.call-btn-mobile { display: block; }

/* --- Desktop / larger screens --- */
@media (min-width: 769px) {
  .logo-wrap { margin: 0; }          /* left aligned on desktop */
  .hamburger { display: none; }      /* hide hamburger */
  .nav-links { display: flex; gap: 20px; } /* show desktop nav */
  .brand-name { display: inline-block; }  /* show brand text */
  .mobile-menu { display: none !important; } /* ensure mobile menu hidden */
  .call-btn-mobile { display: none; }   /* hide mobile-only call button */
}

/* -------------------- FLOATING BUTTONS -------------------- */
.whatsapp-float,
.call-float,
.social-float {
  position: fixed;
  width: 55px; height: 55px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
  z-index: 1001; cursor: pointer;
}

.whatsapp-float { bottom: 20px; right: 20px; background: #25d366; }
.whatsapp-float:hover { transform: scale(1.1); background: #1ebe5d; }
.whatsapp-float svg { width: 28px; height: 28px; fill: #fff; }

.call-float { bottom: 20px; left: 20px; background: #007bff; }
.call-float:hover { transform: scale(1.1); background: #0056b3; }
.call-float svg { width: 26px; height: 26px; fill: #fff; }

.social-float {
  bottom: 90px; left: 20px;
  width: 55px; height: 55px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ff416c, #ff4b2b); /* eye-catching gradient */
  animation: bubble 3s infinite;
}

.social-float svg { width: 28px; height: 28px; fill: #fff; }

@keyframes bubble {
  0%,100% { transform: scale(1); }
  30% { transform: scale(1.15); }
  60% { transform: scale(0.9); }
}

/* -------------------- STICKY SOCIAL BAR -------------------- */
.sticky-social {
  display: none;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  position: fixed;
  bottom: 150px; left: 20px;
  background: #fff; padding: 12px;
  border-radius: 12px; box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  flex-direction: column; gap: 10px;
}
.sticky-social.show {
  display: flex !important;
  opacity: 1; transform: translateY(0);
}
.sticky-social .ss-link {
  display: flex; align-items: center; justify-content: center;
  width: 42px; height: 42px;
  background: #f1f1f1; border-radius: 50%;
  text-decoration: none; font-size: 14px;
}
.sticky-social .ss-link:hover { background: #e0e0e0; transform: scale(1.1); }

.close-social {
  position: absolute;
  top: -10px; right: -10px;
  width: 28px; height: 28px;
  border-radius: 50%; border: none;
  background: #333; color: #fff;
  font-size: 18px; cursor: pointer;
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
  z-index: 2001;
}

/* Back to Top Button */
.back-to-top {
  position: fixed;
  bottom: 90px;   /* above WhatsApp button */
  right: 20px;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background: #007bff; /* Brand blue */
  color: #fff;
  font-size: 20px;
  font-weight: bold;
  border: none;
  display: none;  /* hidden by default */
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
  transition: transform 0.3s, background 0.3s;
  z-index: 1002;
}

.back-to-top:hover {
  transform: scale(1.1);
  background: #0056b3; /* Darker blue on hover */
}

.floating-search {
  position: fixed;
  bottom: 20px;
  left: 80px;   /* reduce gap to allow more space */
  right: 80px;  /* reduce gap */
  display: flex;
  align-items: center;
  height: 40px;
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 25px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
  overflow: hidden;
  z-index: 1001;
  min-width: 180px; /* ✅ prevent collapsing */
}

.floating-search input {
  flex: 1;
  border: none;
  padding: 0 10px;
  font-size: 14px;
  height: 100%;
  min-width: 0; /* ✅ allow flex shrink without breaking */
  outline: none;
}

.floating-search button {
  background: #007bff;
  border: none;
  width: 42px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0; /* ✅ button never shrinks */
}

.floating-search button svg {
  width: 18px;
  height: 18px;
  fill: #fff;
}



.floating-search button:hover {
  background: #0056b3;
}

.floating-search button:hover svg {
  transform: scale(1.2); /* icon grows a bit */
  transition: transform 0.2s ease; 
}

/* Hide floating search on desktop */
@media (min-width: 769px) {
  .floating-search {
    display: none;
  }
}
/* -------------------- SMALL SCREENS FIX -------------------- */
/* Prevent overlap of floating buttons on very small screens */
@media (max-width: 340px) {
  .whatsapp-float,
  .call-float,
  .social-float {
    width: 45px;
    height: 45px;
  }

  .whatsapp-float svg,
  .call-float svg,
  .social-float svg {
    width: 22px;
    height: 22px;
  }

  /* Adjust spacing so they stack neatly */
  .call-float { bottom: 80px; left: 15px; }
  .social-float { bottom: 140px; left: 15px; }
  .whatsapp-float { bottom: 140px; right: 15px; }

  /* Make floating search full width minus small margins */
  .floating-search {
    left: 10px;
    right: 10px;
    bottom: 20px; /* move it above WhatsApp button */
  }
}

.contact-popup {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.6);
  display: none; justify-content: center; align-items: center;
  z-index: 3000;
}
.contact-popup.active { display: flex; }

.contact-content {
  position: relative;
  background: #fff;
  width: 92%; max-width: 420px;
  padding: 25px 20px;
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.25);
  animation: popupScale 0.3s ease;
}
@keyframes popupScale {
  from { transform: scale(0.85); opacity: 0; }
  to   { transform: scale(1); opacity: 1; }
}

.contact-content h2 {
  text-align: center;
  margin-bottom: 18px;
  font-size: 20px;
  color: #007bff;
}

.contact-content input,
.contact-content select,
.contact-content textarea {
  width: 100%;
  padding: 12px;
  margin-bottom: 14px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 15px;
  box-sizing: border-box;
}

/* Submit button only */
.contact-content form button[type="submit"] {
  width: 100%;
  padding: 12px;
  background: #007bff;
  border: none;
  color: #fff;
  font-size: 16px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.25s;
}
.contact-content form button[type="submit"]:hover { background: #0056b3; }

/* Close button — top-right round */
.close-popup {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #ffffff;
  color: #007bff;
  border: 1px solid rgba(0,0,0,0.15);
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(0,0,0,0.12);
  cursor: pointer;
  z-index: 9999;
  padding: 0;
}
.close-popup:hover { background: #f5f5f5; }
.close-popup:active { transform: translateY(1px); }

/* Don’t show again checkbox */
.dont-show {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  margin-bottom: 12px;
  color: #444;
}
.dont-show input {
  width: 16px;
  height: 16px;
  cursor: pointer;
  /* fallback style */
  appearance: none;            /* remove default */
  -webkit-appearance: none;
  border: 2px solid #007bff;
  border-radius: 3px;
  display: inline-block;
  position: relative;
}

.dont-show input:checked {
  background-color: #007bff;
  border-color: #007bff;
}

.dont-show input:checked::after {
  content: "✔";
  color: #fff;
  position: absolute;
  top: -2px;
  left: 2px;
  font-size: 12px;
}

/* Full Width Contact Section */
.contact-section {
  width: 100%;
  padding: 20px 15px;
  background: #f9f9f9;     /* light gray highlight background */
  margin: 20px 0;          /* remove auto to stop side margins */
  border-radius: 0;        /* no rounded corners for full-width */
  box-shadow: none;        /* remove shadow so it blends with page */
  box-sizing: border-box;
}

.contact-title {
  text-align: center;
  font-size: 22px;
  margin-bottom: 20px;
  color: #007bff;
}

/* Same form styling as popup */
#inline-quote-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

#inline-quote-form input,
#inline-quote-form select,
#inline-quote-form textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 15px;
  box-sizing: border-box;
}

#inline-quote-form .submit-btn {
  padding: 12px;
  background: #007bff;
  border: none;
  color: #fff;
  font-size: 16px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.3s;
}
#inline-quote-form .submit-btn:hover {
  background: #0056b3;
}

/* Desktop adjustments only */
@media (min-width: 992px) {
  .contact-section {
    padding: 0.5px 0px;       /* give more breathing space */
  }

  .contact-title {
    font-size: 28px;          /* bigger heading on desktop */
    margin-bottom: 10px;
  }

  #inline-quote-form {
    max-width: 800px;         /* keep form narrower for readability */
    margin: 0 auto;           /* center it */
  }
}




/* Footer */
.footer {
  background: #222;
  color: #eee;
  padding: 30px 20px 10px;
  font-size: 14px;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 25px;
  max-width: 1200px;
  margin: auto;
}

.footer-col h3 {
  color: #fff;
  margin-bottom: 12px;
  font-size: 16px;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-col ul li {
  margin-bottom: 8px;
}
.footer-col ul li a {
  color: #ddd;
  text-decoration: none;
  transition: color 0.3s;
}
.footer-col ul li a:hover {
  color: #007bff;
}

.footer p, .footer a {
  color: #ddd;
  line-height: 1.5;
}

.footer-logo {
  width: 60px;
  border-radius: 50%;
  margin-bottom: 10px;
}

.footer-social {
  display: flex;
  gap: 12px;
}
.footer-social a {
  font-size: 20px;
  color: #ddd;
  text-decoration: none;
  transition: color 0.3s;
}
.footer-social a:hover {
  color: #007bff;
}

/* Bottom bar */
.footer-bottom {
  border-top: 1px solid #444;
  text-align: center;
  margin-top: 25px;
  padding-top: 10px;
  font-size: 13px;
  color: #aaa;
}

.footer-social {
  display: flex;
  gap: 12px;
  margin-top: 10px;
}

.footer-social .ss-link svg {
  width: 32px;
  height: 32px;
  display: block;
  transition: transform 0.2s;
}

.footer-social .ss-link:hover svg {
  transform: scale(1.1);
}

/* Desktop layout */
@media (min-width: 768px) {
  .footer-inner {
    flex-direction: row;
    justify-content: space-between;
  }
  .footer-col {
    flex: 1;
    min-width: 200px;
  }
}
/* Quick Links - 3 equal columns with separators */
.footer-col.quick-links ul {
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

.footer-col.quick-links ul li {
  list-style: none;
  margin-bottom: 8px;
}

/* Each column */
.footer-col.quick-links ul {
  width: 100%;
}
.footer-col.quick-links ul li a {
  color: #ddd;
  text-decoration: none;
  transition: color 0.3s;
}
.footer-col.quick-links ul li a:hover {
  color: #007bff;
}

/* Force 3 equal columns */
.footer-col.quick-links ul {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr; /* 3 equal columns */
  gap: 1px;
}

/* Vertical separators */
.footer-col.quick-links ul::before,
.footer-col.quick-links ul::after {
  content: "";
}
.footer-col.quick-links ul {
  position: relative;
}
.footer-col.quick-links ul::before,
.footer-col.quick-links ul::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 1px;
  background: #444; /* separator color */
}
.footer-col.quick-links ul::before {
  left: 33.3%;
}
.footer-col.quick-links ul::after {
  left: 66.6%;
}

/* Footer Map */
.footer-map {
  margin-top: 25px;
  padding: 20px 15px;
  background: #111; /* keep consistent with footer, or use #f9f9f9 if you want contrast */
  text-align: center;
}

.footer-map h3 {
  color: #fff;
  margin-bottom: 12px;
  font-size: 18px;
}

.map-container {
  width: 100%;
  max-width: 1000px;
  margin: auto;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(0,0,0,0.15);
}

.map-container iframe {
  width: 100%;
  height: 300px;  /* adjust height if needed */
  border: none;
}

/* Desktop adjustments for footer map */
@media (min-width: 992px) {
  .footer-map {
    padding: 2px 10px;       /* more breathing space on desktop */
  }

  .footer-map h3 {
    font-size: 22px;          /* larger title on desktop */
    margin-bottom: 20px;
  }

  .map-container {
    max-width: 1200px;        /* expand map container on large screens */
  }

  .map-container iframe {
    height: 400px;            /* taller map for desktop */
  }
}

/* === Responsive Footer Layout === */

/* Default: mobile first (stacked) */
.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

/* Tablet and small desktop (≥600px) */
@media (min-width: 600px) {
  .footer-inner {
    flex-direction: row;
    flex-wrap: wrap;             /* allow wrapping */
    justify-content: space-between;
    gap: 20px;
  }
  .footer-col {
    flex: 1 1 calc(50% - 20px);  /* two columns per row */
    min-width: 250px;
  }
}

/* Medium–large desktops (≥992px) */
@media (min-width: 992px) {
  .footer-col {
    flex: 1 1 calc(25% - 20px);  /* four columns per row */
    min-width: 200px;
  }
}

/* Wide screens (≥1350px) */
@media (min-width: 1350px) {
  .footer-inner {
    max-width: 1200px;           /* center and limit width */
    margin: 0 auto;
  }
}

/* Ultra-wide screens (≥1600px) */
@media (min-width: 1600px) {
  .footer-inner {
    max-width: 1400px;
  }
}

/* 💡 Fix footer overflow and layout at all screen sizes */
@media (max-width: 1350px) {
  .footer-inner {
    display: flex;
    flex-wrap: wrap;                /* allow wrapping */
    justify-content: center;        /* center columns neatly */
    gap: 25px;                      /* balanced spacing */
  }

  .footer-col {
    flex: 1 1 45%;                  /* two columns per row */
    min-width: 260px;               /* prevent shrinking */
    box-sizing: border-box;
  }

  .footer-social {
    justify-content: center;        /* center social icons */
    flex-wrap: wrap;
  }
}

/* 💡 Small screen fix (for widths below ~400px) */
@media (max-width: 420px) {
  .footer-inner {
    flex-direction: column;         /* stack columns */
    align-items: center;
    gap: 20px;
  }

  .footer-col {
    width: 100%;
    text-align: center;
  }

  .footer-social {
    justify-content: center;
  }

  .footer-map iframe {
    height: 250px;                  /* keep map visible but compact */
  }
}

/* hide sticky social when mobile menu open (improves layering) */
body.menu-open .sticky-social,
body.menu-open .social-floating,
body.menu-open .ss-link {
  display: none !important;
}

/* alternatively reduce visibility instead of hide:
body.menu-open .sticky-social { opacity: .0; pointer-events: none; }
*/

/* Simple styling for new sections */
/* --- Homepage Section Styling --- */

/* ===== Homepage visual kit (compact, grid, cards) ===== */
.promo-bar { background:#002b5b; color:#fff; padding:6px 0; text-align:center; font-weight:600; font-size:0.95rem; }
.promo-bar a { color:#fff; text-decoration:underline; }


section {
  padding: 5px 0;                 /* Reduced spacing */
  background: #fff;
  border-bottom: 1px solid #f0f0f0;
}

section:nth-child(even) {
  background: #f7faff;             /* Light alternate color for visual separation */
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 15px;
}

/* --- Headings --- */
section h1, section h2 {
  font-size: 1.7rem;
  color: #003366;
  text-align: center;
  margin-bottom: 10px;
}

section p {
  color: #444;
  line-height: 1.6;
  text-align: center;
  max-width: 900px;
  margin: 0 auto 10px;
}

/* --- Hindi Text --- */
.hindi-text {
  font-size: 0.95rem;
  color: #555;
  font-style: italic;
  text-align: center;
  margin-top: 4px;
}

/* --- Buttons --- */
.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 15px;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 8px 18px;
  border-radius: 30px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
}

.call-btn {
  background: #007bff;
  color: #fff;
}
.whatsapp-btn {
  background: #25d366;
  color: #fff;
}
.secondary-btn {
  background: #eaeaea;
  color: #333;
}

.btn:hover {
  transform: scale(1.05);
  opacity: 0.9;
}

/* --- Lists --- */
section ul {
  list-style: none;
  padding: 0;
  margin: 10px auto;
  text-align: center;
}
section ul li {
  margin: 5px 0;
  font-size: 1rem;
  color: #333;
  position: relative;
  padding-left: 18px;
}
section ul li::before {
  content: "✔";
  color: #007bff;
  position: absolute;
  left: 0;
  font-size: 0.9rem;
}

/* --- Hero Section Special --- */
.hero-section {
  background: linear-gradient(135deg, #f8fbff, #ffffff);
  text-align: center;
  padding: 50px 20px;
}
.hero-section h1 {
  font-size: 1.9rem;
  color: #002b5b;
}
.hero-section p {
  font-size: 1.05rem;
}

/* --- Product / Service Cards (Optional Visuals) --- */
#products ul li,
#services ul li {
  display: inline-block;
  background: #fff;
  border: 1px solid #ddd;
  padding: 10px 15px;
  margin: 6px;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
  transition: 0.3s;
}
#products ul li:hover,
#services ul li:hover {
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  transform: translateY(-2px);
}
