* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", sans-serif;
  background: #f5f7f8;
  color: #111;
  line-height: 1.6;
}

img {
  width: 100%;
  display: block;
}

ul {
  list-style: none;
}

input,
textarea,
button {
  font-family: inherit;
}

.container {
  width: min(1120px, 90%);
  margin-inline: auto;
}

.section {
  padding: 6rem 0;
}

.section-title {
  text-align: center;
  margin-bottom: 4rem;
}

.section-title span {
  color: #6a9636;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.9rem;
}

.section-title h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-top: 0.5rem;
}

/* NAVBAR */
.header {
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  z-index: 999;
  background: rgb(255, 255, 255);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.navbar {
  height: 90px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo img {
  width: 90px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-links a {
  text-decoration: none;
  color: #222;
  font-weight: 600;
  transition: 0.3s ease;
}

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

.nav-btn,
.primary-btn,
.secondary-btn,
.service-content a,
.contact-form button {
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: 0.3s ease;
}

.nav-btn,
.primary-btn,
.contact-form button,
.service-content a {
  background: #6a9636;
  color: white;
  padding: 0.95rem 1.5rem;
  border-radius: 12px;
  font-weight: 600;
}

.nav-btn:hover,
.primary-btn:hover,
.contact-form button:hover,
.service-content a:hover {
  background: #567a2d;
}

.hamburger {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
}

/* HERO */
.hero {
  min-height: 100vh;
  background:
    linear-gradient(rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.55)),
    url("https://images.unsplash.com/photo-1464295440335-ee082a75ccca?w=500&auto=format&fit=crop&q=60&ixlib=rb-4.1.0&ixid=M3wxMjA3fDB8MHxzZWFyY2h8Nnx8bGF3bnxlbnwwfDB8MHx8fDA%3D")
      center/cover no-repeat;
  position: relative;
  display: flex;
  align-items: center;
  background-attachment: fixed;
  padding: 1.2rem 0 1rem 0;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-text {
  max-width: 700px;
  color: white;
}

.hero-tag {
  display: inline-block;
  background: rgba(255, 255, 255, 0.15);
  padding: 0.65rem 1rem;
  border-radius: 999px;
  margin-bottom: 1.5rem;
  backdrop-filter: blur(10px);
}

.hero-text h1 {
  font-size: clamp(3rem, 8vw, 5.5rem);
  line-height: 1.05;
  margin-bottom: 1.5rem;
}

.hero-text h1 span {
  display: block;
  color: #b9dd8b;
}

.hero-text p {
  font-size: 1.1rem;
  max-width: 600px;
  margin-bottom: 2rem;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.secondary-btn {
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: white;
  padding: 0.95rem 1.5rem;
  border-radius: 12px;
  backdrop-filter: blur(10px);
}

.wave {
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 100%;
}

/* SERVICES */
.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.service-card {
  background: white;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease;
}

.service-card:hover {
  transform: translateY(-10px);
}

.service-card img {
  height: 260px;
  object-fit: cover;
}

.service-content {
  padding: 2rem;
}

.service-content h3 {
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

.service-content ul {
  margin-bottom: 2rem;
}

.service-content li {
  margin-bottom: 0.7rem;
  color: #555;
}

/* ABOUT */
.about {
  background: white;
}

.about-wrapper {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 4rem;
  align-items: center;
}

.about-text span {
  color: #6a9636;
  font-weight: 700;
  text-transform: uppercase;
}

.about-text h2 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.1;
  margin: 1rem 0 1.5rem;
}

.about-text p {
  color: #555;
  margin-bottom: 1.2rem;
}

.about-features {
  display: grid;
  gap: 1rem;
  margin-top: 2rem;
}

.about-features div {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-weight: 600;
}

.about-features i {
  color: #6a9636;
}

.about-image img {
  border-radius: 24px;
  height: 100%;
  object-fit: cover;
}

/* GALLERY */
.gallery {
  background: #fff;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.gallery-grid img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 16px;
  cursor: pointer;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.gallery-grid img:hover {
  transform: scale(1.03);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.gallery-actions {
  text-align: center;
  margin-top: 2rem;
}

#loadMoreBtn {
  background: #6a9636;
  color: white;
  border: none;
  padding: 0.9rem 2rem;
  border-radius: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: 0.3s ease;
}

#loadMoreBtn:hover {
  background: #567a2d;
}

/* REVIEWS */
.review-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.review-card {
  background: white;
  padding: 2.5rem;
  border-radius: 24px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
}

.stars {
  color: #f4b400;
  margin-bottom: 1rem;
}

.review-card p {
  color: #555;
  margin-bottom: 1.5rem;
}

/* REVIEWS */
.review-grid {
  display: none; /* Safely deprecated in favor of slider tracks */
}

.reviews-slider {
  overflow: hidden; /* Clips elements spilling outside container margins */
  width: 100%;
}

.review-track {
  display: flex;
  gap: 2rem;
  transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
  will-change: transform;
}

.review-card {
  background: white;
  padding: 2.5rem;
  border-radius: 24px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
  /* Dynamically allocates sizing to fit two items side by side accounting for gap spacing */
  width: calc((100% - 2rem) / 2); 
  flex-shrink: 0;
}

.stars {
  color: #f4b400;
  margin-bottom: 1rem;
}

.review-card p {
  color: #555;
  margin-bottom: 1.5rem;
}

/* Slider Controls Styling */
.slider-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
  margin-top: 3rem;
}

.control-btn {
  background: #6a9636;
  color: white;
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  cursor: pointer;
  transition: 0.3s ease;
}

.control-btn:hover {
  background: #567a2d;
}

/* RESPONSIVE RESPONSIVENESS OVERRIDES */
@media (max-width: 992px) {
  .review-card {
    width: 100%; /* Show one single full card layout at a time on portable devices */
  }
}

/* CONTACT */
.contact {
  background: linear-gradient(135deg, #6a9636 0%, #567a2d 100%);
  color: white;
}

.contact-wrapper {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 4rem;
  align-items: center;
}

.contact-info span {
  text-transform: uppercase;
  font-weight: 700;
}

.contact-info h2 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  line-height: 1.1;
  margin: 1rem 0;
}

.contact-details {
  display: grid;
  gap: 1rem;
  margin-top: 2rem;
}

.contact-details div {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.contact-form {
  background: white;
  padding: 2.5rem;
  border-radius: 24px;
}

.input-group {
  margin-bottom: 1rem;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 1rem;
  border: 1px solid #ddd;
  border-radius: 12px;
  outline: none;
}

/* FOOTER */
.footer {
  background: #1d1d1d;
  color: white;
  padding: 4rem 0;
}

.footer-wrapper {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.footer-brand img {
  width: 100px;
}

.footer h4 {
  margin-bottom: 1rem;
}

.footer p,
.footer a {
  color: #bbb;
  text-decoration: none;
  margin-bottom: 0.6rem;
  display: block;
}

/* RESPONSIVE */
@media (max-width: 992px) {
  .service-grid,
  .about-wrapper,
  .review-grid,
  .contact-wrapper,
  .footer-wrapper {
    grid-template-columns: 1fr;
  }

  .hero, .service-card, .contact, .footer  {
    text-align: center;
  }

  .footer-brand img{
    margin: 0 auto;
  }

  .hero-buttons {
    justify-content: center;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .nav-links {
    position: absolute;
    top: 90px;
    left: -100%;
    width: 100%;
    background: white;
    flex-direction: column;
    padding: 2rem;
    transition: 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  }

  .nav-links.active {
    left: 0;
  }

  .hamburger {
    display: block;
  }

  .nav-btn {
    display: none;
  }

  .hero {
    padding-top: 7rem;
  }

  .section {
    padding: 4rem 0;
  }

  .hero-text h1 {
    font-size: 3rem;
  }

  .contact-form {
    padding: 2rem 1.5rem;
  }
}

@media (max-width: 576px) {
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .gallery-grid img {
    height: 240px;
  }
}
