/* Services Section */
.services {
  background: #fff;
  padding: 4rem 2rem;
  border-radius: 24px;
  margin: 4rem auto;
  max-width: 1200px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}
.services h2 {
  text-align: center;
}
.services .highlight {
  color: #3498db;
}
.services-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}
.service {
  flex: 1 1 calc(20% - 1rem);
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0,0,0,.05);
  cursor: pointer;
  transition: transform .3s;
}
.service:hover {
  transform: translateY(-5px);
}
.service img {
  width: 100%;
  height: 150px;
  object-fit: cover;
}
.service p {
  padding: 1rem;
  font-weight: 500;
  text-align: center;
}

/* Responsive */
@media (max-width: 768px) {
  .service {
    flex: 1 1 calc(50% - 1rem);
  }
}
@media (max-width: 480px) {
  .service {
    flex: 1 1 100%;
  }
}
/* Viewer Modal */
.viewer {
  display: none;
  position: fixed;
  z-index: 20000;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: #000000cb;
  overflow: hidden;
  padding: 1rem;
  box-sizing: border-box;
}

/* Close Button */
.close {
  position: fixed;
  top: 70px; /* adjust if your navbar is taller */
  right: 20px;
  color: #fcfcfc;
  font-size: 35px;
  font-weight: bold;
  cursor: pointer;
  z-index: 30000;
  transition: color .3s;
}
.close:hover { color: #3498db; }

/* Image */
.viewer-img {
  margin: auto;
  display: block;
  max-width: 95%;
  max-height: 80%;
  object-fit: contain;
  position: relative;
  top: 50%;
  transform: translateY(-50%);
}
/* Navigation Arrows - Fixed Circle */
.prev, .next {
  cursor: pointer;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 45px;
  height: 45px;
  display: flex;
  align-items: center;   /* vertical center */
  justify-content: center; /* horizontal center */
  color: #333;
  font-size: 24px;
  font-weight: bold;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
  transition: all .3s ease;
  z-index: 20001;
  border: none;
}

.prev { left: 25px; }
.next { right: 25px; }

.prev:hover, .next:hover {
  background: #3498db;
  color: #fff;
  transform: translateY(-50%) scale(1.1);
}


/* Dots */
.dots {
  text-align: center;
  position: absolute;
  bottom: 15px;
  width: 100%;
}
.dot {
  display: inline-block;
  width: 10px; height: 10px;
  background: #bbb;
  border-radius: 50%;
  margin: 0 4px;
  cursor: pointer;
  transition: background .3s;
}
.dot:hover { background: #3498db;}
.dot.active { background: #3498db;}

/* Disable background scroll when viewer is open */
html.no-scroll, body.no-scroll { overflow: hidden !important; }

/* ================= Responsive ================= */

/* Tablets */
@media (max-width: 768px) {
  .viewer-img {
    max-width: 90%;
    max-height: 70%;
  }
  .close {
    top: 60px;
    font-size: 30px;
  }
   .prev { left: 15px; }
  .next { right: 15px; }
  .prev, .next {
    width: 40px;
    height: 40px;
    font-size: 20px;
  }
}

/* Phones */
@media (max-width: 480px) {
  .viewer-img {
    max-width: 100%;
    max-height: 65%;
  }
  .close {
    top: 55px;
    right: 15px;
    font-size: 26px;
  }
   .prev { left: 10px; }
  .next { right: 10px; }
  .prev, .next {
    width: 35px;
    height: 35px;
    font-size: 18px;
  }
  .dots {
    bottom: 10px;
  }
}

.footer-area {
  background: #0d1b2a;
  color: #fff;
  padding: 20px 10px 10px 10px;
  font-size: 14px;
}

.footer-logo img {
  max-width: 250px;
}

.footer-title {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 10px;
  color: #fff;
}

.footer-contact li,
.footer-links li {
  list-style: none;
  margin-bottom: 2px;
  padding-bottom: 5px;
}

.footer-contact li i {
  margin-right: 10px;
  color: #007bff;
}

.footer-links li a {
  color: #bbb;
  text-decoration: none;
  transition: color 0.3s ease, transform 0.3s ease;
  display: inline-block;
}

.footer-links li a:hover {
  color: #007bff;
  transform: scale(1.1);
}

.footer-map iframe {
  margin-top: 10px;
  border-radius: 8px;
}

.footer-bottom {
  margin-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 15px;
  font-size: 13px;
  color: #aaa;
}

/* Ensure Quick Links + Businesses align nicely */
.footer-links-group {
  align-items: flex-start;   /* Align headings at the top */
}

/* Keep both sub-columns tidy */
.footer-subcol {
  min-width: 200px;          /* Prevent too narrow on smaller screens */
}

#copyright {
  background: #34363a;
  border-top: 2px dotted #3b3d42;
  padding: 10px;
}

#copyright p {
  line-height: 42px;
  color: #fff;
  text-align: center;
  margin: 0;
}

#copyright p a {
  color: #fff;
}

#copyright p a:hover {
  color: #137ED9;
}

    #preloader {
      position: fixed;
      top: 0;
      left: 0;
      right: 0;
      bottom: 0;
      background-color: #fff;
      z-index: 9999999;
      display: flex;
      justify-content: center;
      align-items: center;
      transition: opacity 0.5s ease, visibility 0.5s ease;
    }
    #preloader.hidden {
      opacity: 0;
      visibility: hidden;
    }

    /* Loader wrapper */
    .loader {
      width: 80px;
      height: 80px;
      position: relative;
      display: flex;
      justify-content: center;
      align-items: center;
    }

    /* Blue spinner */
    .loader::before {
      content: "";
      position: absolute;
      width: 100%;
      height: 100%;
      border-radius: 50%;
      border: 6px solid #137ED9; /* blue ring */
      border-top-color: transparent; /* makes it look like a spinner */
      animation: spin 1s linear infinite;
    }

    /* Logo */
    .loader-logo {
      width: 70px;
      height: auto;
      z-index: 2;
      user-select: none;
      -webkit-user-drag: none;
    }

    /* Spin animation */
    @keyframes spin {
      0% { transform: rotate(0deg); }
      100% { transform: rotate(360deg); }
    }
body {
  margin: 0;
  padding: 0;
  background-image: url('white_bg1.svg'); /* Replace with your path */
  background-size: cover;              /* Fills the screen, maintains aspect ratio */
  background-repeat: no-repeat;        /* Prevents tiling */
  
  background-attachment: fixed;        /* Optional: fixed background on scroll */
}


/* Mobile-friendly adjustment (optional but recommended) */
@media (max-width: 400px) {
  body {
    background-attachment: scroll;     /* Fixes potential mobile issues with fixed backgrounds */
  }
}
.hero {
  position: relative;
  min-height: 100vh; /* full screen height */
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px;
  color: #3b3d42;
}

.hero-overlay {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.hero-text {
  flex: 1;
  max-width: 600px;
}

.hero-img img {
  max-width: 450px;
  border-radius: 16px;
}

.hero h1 {
  font-size: 3rem;
  font-weight: bold;
  line-height: 1.2;
}

.hero h1 span {
  color: #3498db;
}

.hero p {
  font-size: 1.1rem;
  margin: 20px 0;
}

.hero-buttons {
  margin-top: 20px;
}

.btn-primary, .btn-secondary {
  padding: 12px 24px;
  font-size: 1rem;
  border-radius: 8px;
  cursor: pointer;
  transition: 0.3s;
}

.btn-primary {
  background: #3498db;
  color: #fff;
  border: none;
  margin-right: 10px;
}

.btn-primary:hover {
  background: #217dbb;
}

.btn-secondary {
  background: transparent;
  color: #fff;
  border: 2px solid #fff;
}

.btn-secondary:hover {
  background: #fff;
  color: #000;
}

/* Primary button */
.btn-primary {
  background: #3498db;
  color: #fff;
  border: 2px solid #3498db;
}
.btn-primary:hover { background: #2573b8; }

/* Secondary button */
.btn-secondary:hover {
  background: #2573b8;
  color: #fff;
 
}
.btn-secondary {
  border-color: #3498db;
  color: #3498db;
  background: #fff;
}

#contact {
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

#contact.animate {
  opacity: 1;
  transform: translateY(0);
}

.contact-wrapper {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 40px;
  margin-top: 20px;
  flex-wrap: wrap;
}

.contact-form {
  flex: 1;
  min-width: 320px;
}

.contact-info {
  flex: 0.6; /* makes it narrower than the form */
  min-width: 220px;
  max-width: 350px; /* reduce wrapper size */
  padding: 10px 15px; /* less padding */
}

.contact-info ul {
  list-style: none;
  padding: 0;
  margin-top: 15px;
}

.contact-info li {
  margin: 8px 0;
  font-size: 16px;
  text-align: justify;

}

.contact-info i {
  margin-right: 6px;
  color: #007bff;
}

.contact-info .contact-logo {
  max-width: 250px;
  display: block;
  margin-bottom: 1rem;
}


@media (max-width: 768px) {
  .contact-wrapper {
    flex-direction: column;
    align-items: center;
    text-align: justify;
  }

  .contact-info {
    text-align: justify;
  }

  .contact-info .contact-logo {
    margin: 0 auto 1rem;
  }
}
/* ---------- LARGE TABLET (1024px and below) ---------- */
@media (max-width: 1024px) {
  .hero {
    background-attachment: scroll; /* better performance on tablets */
    padding: 60px 6%;
  }

  .hero-content {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 1.5rem;
  }

  .hero-text {
    width: 100%;
    max-width: 700px;
    text-align: justify;
    text-justify: inter-word;
  }

  .hero-buttons {
    justify-content: center;
    flex-wrap: wrap;
  }

  .hero-img {
    order: 3;
    width: 80%;
    max-width: 400px;
    margin-top: 1.5rem;
  }

  .hero-img img {
    width: 100%;
    height: auto;
  }
}

/* ---------- MOBILE (600px and below) ---------- */
@media (max-width: 600px) {
  .hero {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 40px 5%;
    margin-top: 60px;
    background-attachment: scroll; /* mobile-safe */
  }

  .hero-content {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.2rem;
  }

  .hero-text {
    width: 100%;
    max-width: 480px;
    text-align: center;
    font-size: 1rem;
    line-height: 1.55;
  }

  .hero-text h1 {
    font-size: 1.9rem;
    line-height: 1.3;
  }

  .hero-text p {
    font-size: 1rem;
  }

  .hero-buttons {
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 12px;
  }

  .btn-primary, .btn-secondary {
    padding: 10px 18px;
    font-size: 0.95rem;
  }

  .hero-img {
    width: 85%;
    max-width: 320px;
    margin: 1rem auto 0;
  }

  .hero-img img {
    width: 100%;
    height: auto;
  }
}

/* ---------- EXTRA SMALL PHONES (400px and below) ---------- */
@media (max-width: 400px) {
  .hero-text h1 {
    font-size: 1.6rem;
  }

  .hero-text p {
    font-size: 0.9rem;
  }

  .btn-primary, .btn-secondary {
    font-size: 0.9rem;
    padding: 9px 16px;
  }

  .hero-img {
    max-width: 280px;
  }
}
