/* Page builder blocks */
.block {
  padding: 56px 0;
}

.block__narrow {
  max-width: 820px;
}

.block__heading {
  margin: 0 0 32px;
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 300;
  color: var(--dark-green);
}

.block .btn--green {
  display: inline-block;
  margin-top: 8px;
  padding: 12px 24px;
  border-radius: 999px;
  background: var(--dark-green);
  color: var(--white);
  text-decoration: none;
}

.block .btn--green:hover {
  background: var(--light-green);
}

/* Image + Text */
.block__split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.block--image-text.is-reversed .block__media {
  order: 2;
}

.block__media img {
  width: 100%;
  border-radius: 24px;
  display: block;
}

.block__content h2 {
  margin: 0 0 16px;
  font-size: clamp(26px, 3.5vw, 36px);
  font-weight: 300;
  color: var(--dark-green);
}

.block__content p {
  line-height: 1.7;
  margin: 0 0 18px;
}

/* Carousel */
.carousel {
  position: relative;
}

.carousel__track {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-bottom: 8px;
}

.carousel__track::-webkit-scrollbar {
  display: none;
}

.carousel__slide {
  flex: 0 0 min(72%, 560px);
  scroll-snap-align: center;
  margin: 0;
}

.carousel__slide img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 24px;
  display: block;
}

.carousel__slide figcaption {
  margin-top: 12px;
  color: var(--beige);
  font-size: 14px;
}

.carousel__btn {
  position: absolute;
  top: calc(50% - 24px);
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: none;
  background: var(--white);
  box-shadow: 0 4px 16px rgba(8, 7, 11, 0.15);
  font-size: 28px;
  line-height: 1;
  color: var(--dark-green);
  cursor: pointer;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
}

.carousel__btn--prev { left: -8px; }
.carousel__btn--next { right: -8px; }
.carousel__btn:hover { background: var(--sand); }

/* Testimonials */
.testimonials {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
}

.testimonial {
  margin: 0;
  padding: 32px;
  border-radius: 24px;
  background: var(--white);
  box-shadow: 0 2px 24px rgba(8, 7, 11, 0.06);
}

.testimonial p {
  margin: 0 0 20px;
  font-size: 19px;
  line-height: 1.6;
  color: var(--dark-green);
}

.testimonial footer {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.testimonial footer strong { color: var(--black); }
.testimonial footer span { color: var(--beige); font-size: 14px; }

/* Feature columns */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 40px;
}

.feature__icon {
  width: 56px;
  height: 56px;
  object-fit: contain;
  margin-bottom: 16px;
}

.feature h3 {
  margin: 0 0 8px;
  font-size: 20px;
  font-weight: 400;
  color: var(--dark-green);
}

.feature p {
  margin: 0;
  line-height: 1.6;
}

/* CTA banner */
.cta-banner {
  background: var(--cards-bg);
  color: var(--white);
  border-radius: 24px;
  padding: 64px 48px;
  text-align: center;
}

.cta-banner h2 {
  margin: 0 0 12px;
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 300;
}

.cta-banner p {
  margin: 0 0 28px;
  opacity: 0.85;
  font-size: 18px;
}

/* Stats */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 32px;
  text-align: center;
}

.stat__value {
  display: block;
  font-size: clamp(40px, 6vw, 64px);
  font-weight: 300;
  line-height: 1;
  color: var(--clay);
}

.stat__label {
  display: block;
  margin-top: 8px;
  color: var(--beige);
}

/* FAQ / accordion */
.faq__item {
  border-bottom: 1px solid rgba(8, 7, 11, 0.12);
}

.faq__item summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 32px 20px 0;
  position: relative;
  font-size: 18px;
  color: var(--dark-green);
}

.faq__item summary::-webkit-details-marker {
  display: none;
}

.faq__item summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 18px;
  font-size: 24px;
  color: var(--clay);
}

.faq__item[open] summary::after {
  content: "\2013";
}

.faq__answer {
  padding: 0 0 20px;
  line-height: 1.7;
}

/* Video */
.video {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 24px;
  overflow: hidden;
}

.video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.video__caption {
  margin-top: 12px;
  color: var(--beige);
  font-size: 14px;
  text-align: center;
}

/* Gallery */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}

.gallery__item {
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  border-radius: 16px;
  overflow: hidden;
}

.gallery__item img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
  transition: transform 0.4s;
}

.gallery__item:hover img {
  transform: scale(1.05);
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(8, 7, 11, 0.9);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 32px;
  z-index: 1000;
}

.lightbox[hidden] {
  display: none;
}

.lightbox img {
  max-width: 90vw;
  max-height: 80vh;
  border-radius: 8px;
}

.lightbox__caption {
  color: #fff;
  font-size: 14px;
}

.lightbox__close {
  position: absolute;
  top: 24px;
  right: 32px;
  background: none;
  border: 0;
  color: #fff;
  font-size: 40px;
  line-height: 1;
  cursor: pointer;
}

/* Downloads */
.downloads {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.download__link {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 24px;
  border-radius: 16px;
  background: var(--white);
  box-shadow: 0 2px 16px rgba(8, 7, 11, 0.06);
  text-decoration: none;
  color: var(--black);
  transition: box-shadow 0.3s;
}

.download__link:hover {
  box-shadow: 0 6px 24px rgba(8, 7, 11, 0.12);
}

.download__icon {
  flex: 0 0 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--dark-green);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.download__text {
  display: flex;
  flex-direction: column;
}

.download__text span {
  color: var(--beige);
  font-size: 14px;
}

/* Logo strip */
.logos {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 48px;
}

.logos .logo img {
  max-height: 48px;
  width: auto;
  opacity: 0.7;
  transition: opacity 0.3s;
}

.logos .logo:hover img {
  opacity: 1;
}

@media (max-width: 767px) {
  .block { padding: 40px 0; }

  .block__split {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .block--image-text.is-reversed .block__media {
    order: 0;
  }

  .carousel__btn { display: none; }
  .carousel__slide { flex-basis: 88%; }

  .cta-banner { padding: 44px 24px; }
}
