* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins";
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px; /* Adjust this value to match your header's actual layout height */
}

body {
  background: #0b1f3a;
}

@keyframes pulse {
  0% {
    transform: scale(0.95);
    opacity: 0.7;
  }
  50% {
    transform: scale(1.05);
    opacity: 1;
  }
  100% {
    transform: scale(0.95);
    opacity: 0.7;
  }
}

.pulse-animation {
  animation: pulse 1.5s infinite ease-in-out;
}

header {
  position: fixed; /* Changed to fixed so it stays stuck while scrolling */
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1050;
  padding-top: 15px;
  margin: 0;
  pointer-events: none;
}

.navbar {
  width: 100%;
  display: flex !important;
  justify-content: center;
  padding: 0 15px !important;
  background: transparent !important;
  box-shadow: none !important;
  pointer-events: auto;
}

.navbar-pill {
  background-color: #f8fafc;
  padding: 0.5rem 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  border-radius: 50px;
  box-shadow: 0 1px 10px rgb(168, 168, 168);
  border: none;
}

/* .navbar-pill .logo{
  border: 1px solid #000;
  width: 100px;
  height: auto;
}

.navbar-pill .logo img{
  width: 100%;
  height: 100%;
} */

.close-btn-container {
  display: flex;
  justify-content: flex-end;
  margin-right: 1rem;
}

.navbar-links {
  position: fixed;
  top: 0;
  right: -250px;
  height: 100%;
  width: 250px;
  background: #f8fafc;
  box-shadow: -2px 0 5px rgba(0, 0, 0, 0.1);
  flex-direction: column;
  gap: 20px;
  transition: right 0.3s ease;
  padding-top: 3rem;
  z-index: 1000;
}

.navbar-links ul {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin-top: 2rem;
}

.navbar-links li {
  list-style: none;
}

.navbar-links li a {
  text-decoration: none;
  color: #0b1f3a;
  font-size: 16px;
  font-weight: 500;
}

.navbar-links.active {
  right: 0;
}

.navbar-links a.active {
  color: #0a8f3d;
  font-weight: 600;
  border-bottom: 2px solid #0a8f3d;
  padding-bottom: 0.5rem;
}

.request-quote {
  display: none;
}

.request-quote-mobile {
  margin: auto;
  text-align: center;
  padding: 2rem;
}

.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease;
  z-index: 900;
}

.overlay.active {
  opacity: 1;
  visibility: visible;
}

@media (min-width: 1024px) {
  .navbar {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
  }

  .hamburger {
    display: none;
  }

  .close-btn-container {
    display: none;
  }

  .navbar-links {
    position: static;
    top: 0;
    right: 0;
    height: auto;
    width: auto;
    background: none;
    box-shadow: none;
    flex-direction: row;
    gap: 0;
    transition: none;
    padding-top: 0;
    z-index: 10;
  }

  .navbar-links ul {
    flex-direction: row;
    margin: 0;
    padding: 0;
  }

  .navbar-links li a {
    font-weight: 400;
    font-size: 14px;
  }
  .navbar-links a.active {
    padding-bottom: 0.5rem;
  }
}

footer {
  background-color: #0b1f3a;
  color: #ffffff;
  padding: 2rem 1rem;
  position: relative;
}

footer a {
  text-decoration: none;
  cursor: pointer;
  color: rgba(255, 255, 255, 0.703);
  transition: all 0.5s ease;
}

footer a:hover {
  color: #0a8f3d;
}

.footer-wrapper {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 3rem;
  margin-bottom: 2rem;
}

.footer-wrapper ul {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 0;
}

.footer-wrapper ul li {
  list-style: none;
}

.footer-logo {
  padding-right: 2px;
}

.footer-logo img {
  max-width: 250px;
  height: auto;
}

.via-phone,
.via-address,
.via-email {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.phone-details span {
  color: #dbdada;
  font-size: 14px;
  font-style: italic;
}

.via-address span {
  color: #dbdada;
  font-size: 14px;
  text-transform: capitalize;
}

.via-email a {
  font-size: 14px;
}

.quick-links,
.our-services,
.legal,
.social-links {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.socials {
  display: flex;
  gap: 1rem;
}

footer hr {
  border: none;
  border: 1px solid #e5e7eb;
  height: 0;
}

.footer-copyright {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.642);
  text-align: center;
}

@media (min-width: 768px) {
  footer {
    padding: 3rem 2.5rem;
  }

  .footer-wrapper {
    flex-direction: row;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 2rem;
  }
}

@media (min-width: 992px) {
  header {
    padding-left: 2rem;
    padding-right: 2rem;
  }

  .footer-wrapper {
    gap: 4rem;
  }

  footer {
    padding: 5rem 2.5rem 3rem;
  }
}
/* ==========================================
   MOBILE ACCORDION DROPDOWN (< 1023px)
   ========================================== */
@media (max-width: 1023px) {
  .navbar-links ul li.dropdown {
    position: static !important;
    display: block;
    width: 100%;
  }

  .navbar-links .dropdown-toggle {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 1rem;
    width: 100%;
    cursor: pointer;
  }

  /* HIDDEN BY DEFAULT ON MOBILE */
  .navbar-links .dropdown-menu {
    display: none;
    position: static !important;
    box-shadow: none !important;
    background: transparent !important;
    padding: 0.5rem !important;
    margin: 1rem 0 0 0 !important;
    width: 100%;
    border: none !important;
  }

  .navbar-links .dropdown.open .dropdown-menu {
    display: block;
  }

  .navbar-links .dropdown-menu li {
    margin-bottom: 1.5rem !important;
    padding-left: 0.5rem !important;
  }

  .navbar-links .dropdown-menu li a {
    font-size: 14px !important;
    font-weight: 500 !important;
    color: #0b1f3a !important;
    margin-top: 0 !important;
    display: inline-block; /* Inline-block respects the border-bottom width precisely */
    text-decoration: none;
    border: none !important;
    transition: all 0.2s ease;
  }

  /* Matches your global `.navbar-links a.active` style rules perfectly */
  .navbar-links .dropdown-menu li a.active {
    font-weight: 600 !important;
    color: #0a8f3d !important;
    border: none !important;
    padding-bottom: 0.5rem !important;
  }
}

/* ==========================================
   DESKTOP FLOATING DROPDOWN (>= 1024px)
   ========================================== */
@media (min-width: 1024px) {
  .navbar-links ul li.dropdown {
    position: relative;
  }

  .navbar-links .dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translate(-50%, -5%);
    background-color: #f8fafc;
    min-width: 220px;
    border: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border-radius: 8px;
    padding: 0.75rem 0;
    margin-top: 0.5rem;
    z-index: 1100;
  }

  .navbar-links .dropdown-menu li {
    display: block;
    width: 100%;
    margin: 0;
  }

  .navbar-links .dropdown-menu li a {
    display: block;
    padding: 0.6rem 1.2rem;
    color: #0b1f3a !important;
    font-size: 14px !important;
    font-weight: 400;
    white-space: nowrap;
    border-bottom: none !important; /* Removes default flat underline on desktop panel */
    text-decoration: none;
    transition: all 0.2s ease;
  }

  /* Active styling inside the desktop floating block layout */
  .navbar-links .dropdown-menu li a.active {
    font-weight: 600 !important;
    color: #0a8f3d !important;
    background-color: #f1f5f9;
    border-bottom: none !important;
    padding-bottom: 0.6rem !important;
  }

  .navbar-links .dropdown-menu li a:hover {
    background-color: #e2e8f0;
    color: #c48200 !important;
  }

  .navbar-links li.dropdown:hover .dropdown-menu {
    display: block;
  }
}
