@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap");

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Hero Section */
.hero-section {
  padding: 8rem 0 4rem;
  text-align: center;
  background-color: var(--official-green);
}

.hero-section > .hero__title,
.hero__subtitle {
  color: var(--secondary-font-color);
}

.hero__title {
  font-size: 3rem;
  font-weight: 700;
  color: var(--foreground);
  margin-bottom: 1.5rem;
}

.hero__subtitle {
  font-size: 1.25rem;
  max-width: 48rem;
  margin: 0 auto;
}

/* Services Grid */
.services-section {
  padding: 5rem 0;
}

.services-grid {
  display: grid;
  gap: 8rem;
}

.service-block {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}
@media (min-width: 1024px) {
  .service-block {
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
    padding: 1.75rem;
    background: #fff;
    border-radius: 1.25rem;
    box-shadow: 0 20px 40px -18px rgba(0, 0, 0, 0.25);
    align-items: stretch;
  }

  .service-block--reverse .service-block__image {
    order: 2;
  }

  .service-card {
    height: 100%;
    display: flex;
    flex-direction: column;
    background: transparent;
    box-shadow: none;
  }

  .service-card .btn--hero {
    margin-top: auto;
    align-self: flex-end;
  }
}
/* Base animation style */
.service-block {
  opacity: 0;
  transform: translateX(-60px);
  animation: slideInLeft 0.8s ease-out forwards;
}

/* Reverse animation */
.service-block--reverse {
  transform: translateX(60px);
  animation: slideInRight 0.8s ease-out forwards;
}

/* Keyframes */
@keyframes slideInLeft {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.service-block__image {
  position: relative;
  height: 500px;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 20px 25px -5px var(--shadow);
}

.service-block__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s;
}

.service-block__image:hover img {
  transform: scale(1.1);
}

.service-block__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.6), transparent);
}

/* Service Card */
.service-card {
  background: white;
  border-radius: 1rem;
  padding: 2.5rem;
  box-shadow: 0 10px 30px -12px rgba(0, 0, 0, 0.15);
  transition:
    transform 0.35s ease,
    box-shadow 0.3s ease;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.2);
}

.service-card__header {
  margin-bottom: 1.5rem;
}

.service-card__icon-wrap {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.service-card__icon {
  padding: 0.75rem;
  background: var(--muted-foreground);
  border-radius: 0.5rem;
  color: var(--official-green);
}

.service-card__title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--official-brown);
  margin-bottom: 1rem;
}

.service-card__desc {
  font-size: 1.125rem;
  line-height: 1.7;
  color: #555;
  margin-bottom: 2rem;
}

.service-card__features {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem;
}

.service-card__feature {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.service-card__feature-icon {
  color: var(--official-green);
  flex-shrink: 0;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s;
}

.btn--hero {
  background: var(--background);
  color: var(--foreground);
  font-size: 1.125rem;
  padding: 0.875rem 1.75rem;
}

.btn--hero:hover {
  background: rgba(255, 255, 255, 0.9);
}

.btn__icon {
  margin-left: 0.5rem;
  transition: transform 0.2s;
}

.btn:hover .btn__icon {
  transform: translateX(4px);
}

/* CTA Section */
.cta-section {
  padding: 5rem 0;
  background: linear-gradient(90deg, var(--official-green), rgb(14, 76, 92));
  color: var(--secondary-font-color);
  text-align: center;
}

.cta__title {
  font-size: 2.25rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.cta__subtitle {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  max-width: 42rem;
  margin-left: auto;
  margin-right: auto;
  opacity: 0.95;
}

/* Animations */
.animate-fade-in-up {
  animation: fadeInUp 0.8s forwards;
}

.animate-fade-in {
  animation: fadeIn 0.6s forwards;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@media (max-width: 425px) {
  .service-card__title {
    font-size: 1.4rem;
  }

  .service-card__desc {
    font-size: 1rem;
  }

  .cta__title {
    font-size: 2rem;
  }

  .cta__subtitle {
    font-size: 1rem;
  }
}
