/* Basic reset & layout */
html,
body {
  height: 100%;
  margin: 0;
  font-family: Arial, sans-serif;
}
.page-wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* NAVBAR */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #2c64ad;
  padding: 10px 5%;
  z-index: 9999;
  position: fixed;
  top: 0;
  width: 100%;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  box-sizing: border-box;
}

.navbar .logo {
  display: flex;
  align-items: center;
  gap: 10px; /* space between logo and text */
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.logo-img {
  height: 35px;
  width: auto;
}

.menu {
  display: flex;
  gap: 10px;
  /* align-items: center; */
}

.navbar a,
.dropbtnServices {
  color: #fff;
  text-decoration: none;
  padding: 8px 10px;
  display: block;
  white-space: nowrap;
  transition: background-color 0.22s, color 0.22s;
  cursor: pointer;
  font-weight: 600;
  background: transparent;
  border: none;
  border-radius: 4px;
}

.navbar a:hover,
.dropbtnServices:hover {
  background-color: #ff8c42;
  color: #00274d;
}

/* Dropdown */
.dropdown {
  position: relative;
}

.dropdown-content {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #1a1a1a;
  min-width: 200px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
  border-radius: 6px;
  overflow: hidden;
  z-index: 10000;
}

.dropdown-content a {
  color: #fff;
  padding: 10px 12px;
  display: block;
  text-decoration: none;
  font-weight: 500;
}

.dropdown-content a:hover {
  background: #ff8c42;
  color: #00274d;
}

.dropdown.open .dropdown-content {
  display: block;
}

/* Hamburger menu */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
  padding: 6px;
  border-radius: 6px;
  background: none;
  border: none;
  z-index: 10001;
}
.menu-toggle .bar {
  width: 24px;
  height: 3px;
  background: #fff;
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

/* MOBILE */
@media (max-width: 880px) {
  .menu-toggle {
    display: flex;
    z-index: 10001;
  }

  .menu {
    display: none;
    flex-direction: column;
    /* position: fixed; */
    top: 60px;
    left: 0;
    right: 0;
    /* background: linear-gradient(180deg, #2c64ad, #255aa3); */
    padding: 12px 16px;
    z-index: 10002;
  }

  .navbar.open .menu {
    display: flex;
  }

  /* All links and dropdown button aligned vertically */
  .dropbtnServices {
    display: flex;
    /* width: 100%; */
    padding: 10px 12px;
    line-height: 1.6;
    box-sizing: border-box;
  }

  /* Dropdown container itself behaves like normal block */
  .menu .dropdown {
    display: block;
    margin: 0;
    padding: 0;
  }

  /* Submenu dropdown */
  .dropdown-content {
    display: none;
    position: static;
    background: transparent;
    box-shadow: none;
    padding-left: 16px; /* indent submenu items */
  }
  .dropdown.open .dropdown-content {
    display: block;
  }

  /* Submenu links */
  .dropdown-content a {
    background: rgba(255, 255, 255, 0.04);
    margin: 6px 6px;
    border-radius: 6px;
    padding: 8px 16px;
  }

  .navbar .logo {
    font-size: 18px;
  }
}

/* Accessibility */
a:focus,
.dropbtnServices:focus,
.menu-toggle:focus {
  outline: 3px solid rgba(255, 140, 66, 0.18);
  outline-offset: 2px;
}

.pointer {
  cursor: pointer;
}

/* Footer base styles */
.footer {
  background-color: #333; /* Gentle black */
  color: white;
  padding: 40px 20px;
  font-size: 14px;
  width: 100%;
  box-sizing: border-box;
  margin-top: auto;
  z-index: 1;
}

.footer-container {
  display: flex;
  justify-content: space-between; /* space between columns */
  align-items: flex-start;
  gap: 60px; /* desktop spacing */
  flex-wrap: wrap; /* wrap on small screens */
  max-width: 1200px;
  margin: 0 auto;
}

.footer .contact-info,
.footer .quick-links {
  flex: 1 1 300px; /* flexible width but min 300px */
  margin-bottom: 20px;
}

.footer .contact-info h3,
.footer .quick-links h3 {
  font-size: 20px;
  margin-bottom: 15px;
  color: #ff8c42; /* Warm orange for headings */
}

.footer .contact-info p {
  margin: 8px 0;
  line-height: 1.8;
}

.footer .contact-info p i {
  margin-right: 10px;
}

.footer ul {
  list-style-type: none;
  padding: 0;
  margin: 0;
}

.footer ul li {
  margin: 5px 0;
}

.footer ul li a {
  text-decoration: none;
  color: #70a9d1;
  font-size: 14px;
  transition: color 0.3s ease;
}

.footer ul li a:hover {
  color: #ff8c42;
  text-decoration: underline;
}

.footer-bottom {
  text-align: center;
  margin-top: 30px;
  font-size: 12px;
  color: #bbb;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .footer-container {
    gap: 40px;
    padding: 0 20px;
  }
}

@media (max-width: 768px) {
  .footer-container {
    flex-direction: column; /* stack columns */
    align-items: flex-start;
    gap: 20px;
    padding: 0 15px;
  }

  .footer .contact-info,
  .footer .quick-links {
    flex: 1 1 100%;
  }

  .footer .contact-info h3,
  .footer .quick-links h3 {
    font-size: 18px;
  }

  .footer ul li a,
  .footer .contact-info p {
    font-size: 14px;
  }

  .footer-bottom {
    font-size: 12px;
  }
}

@media (max-width: 480px) {
  .footer {
    padding: 30px 15px;
    font-size: 13px;
  }

  .footer .contact-info h3,
  .footer .quick-links h3 {
    font-size: 16px;
  }

  .footer ul li a,
  .footer .contact-info p {
    font-size: 13px;
  }
}

.scroll-to-top {
  position: fixed;
  bottom: 20px;
  right: 20px;
  display: none;
  background-color: #2c64ad;
  color: white;
  border: none;
  border-radius: 50%;
  padding: 10px 15px;
  font-size: 18px;
  cursor: pointer;
  z-index: 1000;
  box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
}

.scroll-to-top:hover {
  background-color: #4c91ec;
}
