/* General Styles for All Pages */
body {
  font-family: 'Poppins', sans-serif;
  margin: 0;
  padding: 0;
  background: #f4f4f4;
  color: #333;
  display: flex;
  flex-direction: column;
  min-height: 100vh; /* Ensure body takes full viewport height for sticky footer */
}

main {
  flex: 1; /* Main content grows to push footer to bottom */
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #2c3e50;
  padding: 10px 20px;
  position: relative;
}

nav .logo img {
  height: 50px;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 20px;
}

.nav-links a {
  color: #fff;
  text-decoration: none;
  font-size: 1rem;
}

/* Hamburger Menu */
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  width: 30px;
  height: 25px;
  justify-content: space-between;
  z-index: 1000; /* Ensures it stays above content */
}

.hamburger div {
  width: 30px;
  height: 3px;
  background: #fff;
  transition: all 0.3s ease;
}

/* Hamburger Transforms into "X" */
.hamburger.active div:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.hamburger.active div:nth-child(2) {
  opacity: 0;
}

.hamburger.active div:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
  .nav-links {
    display: none;
    flex-direction: column;
    background: #2c3e50;
    position: absolute;
    top: 60px;
    right: 0;
    width: 100%;
    text-align: center;
    padding: 10px 0;
    z-index: 1000; /* Ensure menu appears above other elements */
  }

  nav .nav-links.active {
    display: flex;
  }

  .hamburger {
    display: flex;
  }
}

/* Styles for Remaining Pages (Home, About, Services, etc.) */
.hero {
  text-align: center;
  padding: 100px 20px;
  background: url('assets/hero.jpg') no-repeat center center/cover;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 80vh; /* Fill most of the viewport */
}

.hero h1 {
  font-size: 2.5rem;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 20px;
}

.btn {
  padding: 10px 20px;
  background: #3498db;
  color: #fff;
  text-decoration: none;
  border-radius: 5px;
  transition: background 0.3s ease;
}

.btn:hover {
  background: #2980b9;
}

/* Services Page */
.services {
  padding: 20px;
}

.service-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.card {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  width: calc(33.333% - 20px);
  overflow: hidden;
  transition: transform 0.3s ease;
  cursor: pointer;
}

.card:hover {
  transform: translateY(-10px);
}

.card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.card h3 {
  text-align: center;
  padding: 15px;
  margin: 0;
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  justify-content: center;
  align-items: center;
}

.modal-content {
  background: #fff;
  padding: 20px;
  border-radius: 10px;
  text-align: center;
}

.close {
  cursor: pointer;
  float: right;
  font-size: 1.5rem;
}

/* Mobile Responsiveness for Remaining Pages */
@media (max-width: 768px) {
  .card {
    width: 100%;
  }

  .contact-buttons {
    flex-direction: column;
  }
}

/* Branches Page */
.branches-page {
  padding: 20px;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  min-height: 80vh;
  flex: 1;
  box-sizing: border-box;
}

.branches-page-card {
  margin-bottom: 20px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Reduced from 10px to 6px */
  padding: 20px;
  text-align: center;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.branches-page-card h2 {
  font-size: 1.8rem;
  color: #2c3e50;
  margin-bottom: 10px;
}

.branches-page-card p {
  font-size: 1rem;
  color: #666;
  margin-bottom: 20px;
  word-break: break-word; /* Wrap long text */
  overflow-wrap: break-word;
  max-width: 100%;
}

.branches-page-map {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  margin-top: 20px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.branches-page-map iframe {
  width: 100%;
  max-width: 100%;
  height: 300px;
  border: 0;
}

.branches-page-button-container {
  text-align: center;
  margin-top: 20px;
  width: 100%;
}

.branches-page-btn {
  display: inline-block;
  padding: 10px 20px;
  background: #3498db;
  color: #fff;
  text-decoration: none;
  border-radius: 5px;
  transition: background 0.3s ease;
  max-width: 100%;
  box-sizing: border-box;
}

.branches-page-btn:hover {
  background: #2980b9;
}

@media (max-width: 768px) {
  .branches-page {
    padding: 20px 10px; /* Reduced from 20px to match about.html */
  }

  .branches-page-card {
    width: 100%;
    max-width: 100%;
    padding: 15px; /* Reduced from 20px */
  }

  .branches-page-map {
    width: 100%;
    max-width: 100%;
  }

  .branches-page-map iframe {
    height: 200px;
    width: 100%;
    max-width: 100%;
  }

  .branches-page-button-container {
    width: 100%;
  }

  .branches-page-btn {
    width: 100%;
    max-width: 300px; /* Constrain button width */
  }
}

/* Contact Page */
.contact-page {
  text-align: center;
  padding: 50px 20px;
  display: flex;
  flex-direction: column;
  min-height: 80vh;
  flex: 1;
}

.contact-page h1 {
  font-size: 2.5rem;
  color: #2c3e50;
  margin-bottom: 30px;
}

.contact-page-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 20px;
  margin-bottom: 40px;
}

.contact-page-btn {
  display: inline-block;
  padding: 10px 20px;
  color: #fff;
  text-decoration: none;
  border-radius: 5px;
  transition: opacity 0.3s ease;
}

.contact-page-btn.whatsapp-btn {
  background: #25d366;
}

.contact-page-btn.call-btn {
  background: #3498db;
}

.contact-page-btn:hover {
  opacity: 0.9;
}

/* Mobile Responsiveness for Contact and Branches Pages */
@media (max-width: 768px) {
  .contact-page-buttons {
    flex-direction: column;
    align-items: center;
  }

  .contact-page-btn {
    width: 100%;
    max-width: 300px;
    margin-bottom: 10px;
  }

  .contact-page-buttons {
    margin-bottom: 20px;
  }
}

/* Social Media Links */
.social-media-links {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.social-media-link {
  font-family: 'Poppins', sans-serif;
  font-size: 1rem;
  color: #333;
  text-decoration: none;
  display: flex;
  align-items: center;
  transition: color 0.3s ease;
}

.social-media-link i {
  margin-right: 5px;
}

.social-media-link:hover {
  color: #3498db;
}

@media (max-width: 768px) {
  .social-media-links {
    flex-direction: column;
    gap: 10px;
    align-items: center;
  }
}

/* Footer */
footer {
  background: #2c3e50;
  color: #fff;
  padding: 20px 0;
  border-top: 1px solid #34495e;
  margin-top: auto;
}

footer .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  text-align: center;
}

footer p {
  font-family: 'Poppins', sans-serif;
  font-size: 1rem;
  margin: 0;
}

/* Mobile Responsiveness for Footer */
@media (max-width: 768px) {
  footer {
    padding: 10px 0;
  }

  footer .container {
    padding: 0 10px;
  }

  footer p {
    font-size: 0.9rem;
  }
}