/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scroll-behavior: smooth;
  font-family: 'Poppins', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

body {
  background-color: #fffaf3;
  color: #333;
}

/* Navbar */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  background-color: #f7e7ce;
  position: sticky;
  top: 0;
  z-index: 10;
}

.logo {
  font-size: 1.5rem;
  color: #3e2723;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 1.5rem;
}

.nav-links a {
  text-decoration: none;
  color: #3e2723;
  font-weight: 500;
  transition: color 0.3s;
}

.nav-links a:hover {
  color: #e98973;
}

/* Hero */
.hero {
  /* Note: file name contains a space; keep the escaped space or consider renaming the file to avoid issues */
  background: url("image/img 9.jpg") center/cover no-repeat;
  height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
  position: relative;
}
/* Accessibility helpers */
.sr-only {
  position: absolute !important;
  height: 1px; width: 1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
  white-space: nowrap;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
}

.hero-text {
  position: relative;
  z-index: 2;
  max-width: 600px;
}

.hero-text h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.btn {
  display: inline-block;
  background-color: #e98973;
  color: #fff;
  padding: 0.8rem 1.5rem;
  border-radius: 30px;
  text-decoration: none;
  transition: background 0.3s;
}

.btn:hover {
  background-color: #d46c5a;
}

/* About */
.about {
  padding: 4rem 2rem;
}

.about-container {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: center;
}

.about-img {
  width: 350px;
  border-radius: 15px;
}

.about-text {
  flex: 1;
}

.about-text h2 {
  color: #3e2723;
  margin-bottom: 1rem;
}

.stats {
  display: flex;
  gap: 2rem;
  margin-top: 1.5rem;
}

.stats div h3 {
  color: #e98973;
}

/* Gallery */
.gallery {
  padding: 4rem 2rem;
  background-color: #fef5ee;
  text-align: center;
}

.gallery h2 {
  margin-bottom: 2rem;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.gallery-grid .item {
  aspect-ratio: 1; /* Make items square */
  overflow: hidden;
  border-radius: 15px;
}

.gallery-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* This will maintain aspect ratio while filling the container */
  border-radius: 15px;
  transition: transform 0.3s;
}

.gallery-grid img:hover {
  transform: scale(1.05);
}

/* Testimonials */
.testimonials {
  padding: 4rem 2rem;
  background-color: #fff;
  text-align: center;
}

.testimonials-container {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: center;
}

.testimonial {
  background: #f7e7ce;
  padding: 1.5rem;
  border-radius: 15px;
  max-width: 300px;
}

/* Contact */
.contact {
  padding: 4rem 2rem;
  text-align: center;
  background-color: #fef5ee;
}

.contact form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 400px;
  margin: 1rem auto;
}

.contact input,
.contact textarea {
  padding: 0.8rem;
  border-radius: 10px;
  border: 1px solid #ccc;
}

.contact .socials {
  margin-top: 1rem;
}

.contact .socials a {
  margin: 0 1rem;
  color: #e98973;
  font-weight: bold;
  text-decoration: none;
}

/* Footer */
footer {
  background: #3e2723;
  color: #fff;
  text-align: center;
  padding: 1rem;
}

.menu-toggle {
  display: none;
}

@media (max-width: 1024px) {
  .about-container {
    flex-direction: column;
    text-align: center;
  }

  .about-img {
    width: 80%;
    margin: 0 auto;
  }

  .stats {
    justify-content: center;
  }

  .gallery-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }
}

@media (max-width: 768px) {
  /* Navbar */
  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 70px;
    right: 20px;
    background: #f7e7ce;
    padding: 1rem;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  }

  .nav-links.show {
    display: flex;
  }

  /* Mobile menu button */
  .menu-toggle {
    display: block;
    cursor: pointer;
    font-size: 1.5rem;
  }

  .navbar {
    justify-content: space-between;
  }

  /* Hero */
  .hero-text h2 {
    font-size: 1.5rem;
  }

  .hero-text p {
    font-size: 1rem;
  }

  /* Testimonials */
  .testimonials-container {
    flex-direction: column;
    align-items: center;
  }

  /* Contact */
  .contact form {
    width: 90%;
  }

  .contact .socials a {
    display: block;
    margin: 0.5rem 0;
  }
}

@media (max-width: 480px) {
  body {
    font-size: 14px;
  }

  .hero-text h2 {
    font-size: 1.3rem;
  }

  .btn {
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
  }

  .gallery h2,
  .about-text h2,
  .testimonials h2,
  .contact h2 {
    font-size: 1.4rem;
  }

  .about-img {
    width: 100%;
  }
}