/* --- Global mobile-safe overflow guard --- */
html, body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;        /* kill horizontal scroll without touching vertical */
}

img, iframe, video {
  max-width: 100%;
  height: auto;
  display: block;            /* prevents inline gaps pushing width */
}

/* Global Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', sans-serif;
  background: #f9f9f9;
  color: #333;
  line-height: 1.6;
}

a {
  text-decoration: none;
  color: inherit;
}

/* ===== Collapsible Right Menu ===== */
.side-menu {
  position: fixed;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 12px 0 0 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  overflow: hidden;
  z-index: 1000;
}

.side-menu a {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  width: 50px;              /* collapsed width */
  padding: 12px;
  font-size: 1rem;
  font-weight: 500;
  color: #333;
  transition: all 0.3s ease;
  overflow: hidden;
}

.side-menu a .icon {
  margin-right: 10px;
}

.side-menu a .label {
  opacity: 0;
  white-space: nowrap;
  transition: opacity 0.3s ease;
}

/* Expand on hover */
.side-menu a:hover {
  width: 160px;             /* expanded width */
  background: #3498db;
  color: #fff;
}

.side-menu a:hover .label {
  opacity: 1;
}

/* ===== Hero Section ===== */
.hero {
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: url('images/banner.png') no-repeat center/cover;
  text-align: center;
  padding: 20px;
}

.hero h1 {
  font-size: 2.5rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: #fff;
  text-shadow: 0 2px 6px rgba(0,0,0,0.4);
}

.hero p {
  font-size: 1.2rem;
  font-weight: bold;
  margin-bottom: 1.5rem;
  color: #f1f1f1;
  text-shadow: 0 2px 6px rgba(0,0,0,0.3);
}

.btn-primary {
  padding: 12px 24px;
  background: #3498db;
  color: #fff;
  border-radius: 6px;
  font-weight: 500;
  transition: background 0.3s ease;
}

.btn-primary:hover {
  background: black;
}

/* ===== Categories ===== */
.categories {
  padding: 60px 20px;
  text-align: center;
}

.categories h2 {
  font-size: 2rem;
  margin-bottom: 40px;
  color: #3498db;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  max-width: 1000px;
  margin: 0 auto;
}

.category {
  background: #fff;
  border-radius: 12px;
  padding: 30px 20px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  transition: transform 0.3s ease;
}

.category:hover {
  transform: translateY(-5px);
}


.category h3 {
  font-size: 1.2rem;
  font-weight: 600;
  color: #333;
}

/* ===== Testimonials ===== */
.testimonials {
  background: #fff;
  padding: 60px 20px;
  text-align: center;
}

.testimonials h2 {
  font-size: 2rem;
  margin-bottom: 40px;
  color: #3498db;
}

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  max-width: 1000px;
  margin: 0 auto;
}

.testimonial {
  background: #f9f9f9;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.testimonial p {
  font-size: 1rem;
  margin-bottom: 15px;
  font-style: italic;
}

.testimonial .author {
  font-weight: 600;
  color: #333;
}

/* ===== Footer ===== */
footer {
  background: #3498db;
  color: #fff;
  text-align: center;
  padding: 20px;
  font-size: 0.9rem;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  /* Bottom nav (side-menu becomes bottom bar) */
  .side-menu {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    top: auto;
    transform: none;                 /* no shifting */
    flex-direction: row;
    justify-content: space-around;
    border-radius: 12px 12px 0 0;
    width: 100%;
    max-width: 100%;                 /* <-- was 100vw, this causes overflow on mobile */
    overflow-x: hidden;              /* local guard (just in case) */
    z-index: 9999;
  }

  .side-menu a {
    flex: 1 1 0;                     /* allow shrink to avoid overflow */
    min-width: 0;                    /* critical: prevents flex children from forcing width */
    width: auto;
    justify-content: center;
    padding: 15px;
  }

  .side-menu a:hover {
    width: auto;                     /* no expansion on hover for mobile */
    background: #3498db;
    color: #fff;
  }

  .side-menu a .label {
    display: none;                   /* icons only on mobile */
  }

  /* Hero text: keep within screen */
  .hero {
    padding: 2rem 1rem;
    text-align: center;
  }
  .hero h1 {
    font-size: 2rem;
    word-break: break-word;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
  }
  
  .hero p {
    font-size: 1rem;
    max-width: 90%;
    margin: 0.5rem auto 1rem;
  }

  /* No layout change for the rest since you said they’re fine */
  body {
    overflow-x: hidden;              /* reinforce the guard */
    padding-bottom: 70px;            /* space so bottom nav doesn’t overlap footer/content */
  }
}
/* ===== Categories Page ===== */
.categories {
  padding: 100px 20px 50px; /* push below fixed menu */
  text-align: center;
  max-width: 1200px;
  margin: 0 auto;
}

.categories h1 {
  font-size: 2.5rem;
  color: #2c3e50;
  margin-bottom: 10px;
}

.categories p {
  color: #555;
  margin-bottom: 40px;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
}

.category-card {
  background: #fff;
  border-radius: 15px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: center;
}

.category-card img {
  width: 100%;
  height: auto;       /* maintain natural proportions */
  object-fit: contain;  /* avoids cropping */
}


.category-card h3 {
  margin: 15px 0 5px;
  color: #3498db;
  font-size: 1.3rem;
}

.category-card p {
  font-size: 0.95rem;
  color: #666;
  padding: 0 15px 20px;
}

.category-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.12);
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .category-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .categories {
    padding: 80px 15px 90px; /* add bottom padding for mobile nav */
  }

  .category-grid {
    grid-template-columns: 1fr; /* stack cards */
    gap: 20px;
  }

  .categories h1 {
    font-size: 2rem;
  }

  .categories p {
    font-size: 1rem;
  }

  .category-card img {
    height: 160px;
  }
}
/* ===== Contact Page ===== */
.contact {
  padding: 100px 20px 50px;
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.contact h1 {
  font-size: 2.5rem;
  color: #2c3e50;
  margin-bottom: 10px;
}

.contact p {
  color: #555;
  margin-bottom: 40px;
}

/* Contact Form */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-bottom: 40px;
  text-align: left; /* align labels properly */
}

.contact-form input,
.contact-form textarea,
.contact-form select {
  width: 100%;
  padding: 12px 15px;
  border-radius: 8px;
  border: 1px solid #ccc;
  font-family: 'Poppins', sans-serif;
  font-size: 1rem;
}

.contact-form label {
  font-weight: 600;
  color: #2c3e50;
  margin-top: 5px;
}

.contact-form button {
  padding: 12px;
  background: #3498db;
  border: none;
  border-radius: 8px;
  color: #fff;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.3s ease;
}

.contact-form button:hover {
  background: #2980b9;
}

/* Map */
.map-container {
  width: 100%;
  max-width: 800px;
  height: 350px;
  margin: 0 auto 50px;
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 10px;
}

/* Social Links */
.social-heading {
  font-size: 1.5rem;
  color: #2c3e50;
  margin-bottom: 20px;
  text-align: center;
}

.social-links {
  margin-bottom: 40px;
  text-align: center;
}

.social-links a {
  font-size: 2rem;
  margin: 0 15px;
  color: #2c3e50;
  transition: color 0.3s ease;
}

.social-links a:hover {
  color: #3498db;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .contact {
    padding: 80px 15px 90px; /* extra bottom space for nav */
  }

  .contact h1 {
    font-size: 2rem;
    text-align: center;
  }

  .contact p {
    font-size: 1rem;
    text-align: center;
  }

  .map-container {
    height: 250px;
  }

  .social-heading {
    font-size: 1.3rem;
  }
}

