.hero-photo {
  overflow: hidden;
  background: #dfe9e4;
  isolation: isolate;
}

.hero-slide {
  position: absolute;
  inset: 0;
  background-position: center;
  background-size: cover;
  opacity: 0;
  transform: scale(1.06);
  animation: heroCycle 25s infinite;
}

.hero-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(165deg, rgba(7, 87, 67, 0.02), rgba(7, 87, 67, 0.45));
}

.hero-slide:nth-child(1) { animation-delay: 0s; }
.hero-slide:nth-child(2) { animation-delay: 5s; }
.hero-slide:nth-child(3) { animation-delay: 10s; }
.hero-slide:nth-child(4) { animation-delay: 15s; }
.hero-slide:nth-child(5) { animation-delay: 20s; }

.hero-slide.one {
    background-image: url('images/hero/hero-2.jpeg');
}

.hero-slide.two {
    background-image: url('images/hero/hero-1.jpeg');
}

.hero-slide.three {
    background-image: url('images/hero/hero-3.jpeg');
}

.hero-slide.four {
    background-image: url('images/hero/hero-4.png');
}

.hero-slide.five {
    background-image: url('images/hero/hero-5.jpeg');
}

.availability {
  z-index: 4;
  border-left: 4px solid var(--brown);
}

.hero-dots {
  position: absolute;
  z-index: 5;
  right: 22px;
  bottom: 22px;
  display: flex;
  gap: 8px;
}

.hero-dots i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.55);
}

.hero-dots i:first-child {
  width: 25px;
  border-radius: 10px;
  background: #fff;
}

.site-header nav > a:not(.btn):hover {
  color: var(--brown);
}

.brand-mark {
  box-shadow: inset 0 -5px 0 rgba(0, 73, 64, 0.32);
}

@keyframes heroCycle {
    0% {
        opacity: 0;
        transform: scale(1.04);
    }

    4% {
        opacity: 1;
    }

    20% {
        opacity: 1;
    }

    24%, 100% {
        opacity: 0;
        transform: scale(1);
    }
}

@media (prefers-reduced-motion: reduce) {
  .hero-slide {
    animation: none;
  }

  .hero-slide:first-child {
    opacity: 1;
    transform: none;
  }
}

.hero-full {
  min-height: calc(100vh - 118px);
  padding: 0;
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--brown-dark);
  color: #fff;
}

.hero-backdrop {
  position: absolute;
  inset: 0;
}

.hero-backdrop .hero-slide::after {
  background: linear-gradient(90deg, rgba(0, 63, 56, 0.88), rgba(0, 93, 80, 0.64) 43%, rgba(8, 122, 85, 0.18));
}

.hero-full .hero-copy {
  position: relative;
  z-index: 3;
  max-width: 760px;
  padding: 90px 0;
}

.hero-full .eyebrow {
  color: #dff0d8;
}

.hero-full h1 em {
  color: #fff;
}

.hero-full .hero-copy > p {
  color: #f5eae7;
}

.hero-full .btn {
  background: var(--green);
  color: var(--brown-dark);
}

.hero-full .btn-ghost {
  border-color: rgba(255, 255, 255, 0.65);
  color: #fff;
  background: transparent;
}

.hero-full .trust-row {
  border-color: rgba(255, 255, 255, 0.28);
}

.hero-full .trust-row span {
  color: #eadbd7;
}

.hero-full .hero-dots {
  right: 4vw;
  bottom: 35px;
}

.topbar,
footer {
  background: var(--brown-dark);
}

h2,
h3 {
  color: var(--brown-dark);
}

.topbar {
  background: #8b3f2f;
  color: #fff;
}

.topbar-inner {
  display: grid;
  grid-template-columns: 1fr 1.4fr 1.2fr;
  gap: 28px;
  padding: 7px 0;
}

.top-info {
  display: grid;
  line-height: 1.2;
}

.top-info small {
  font-size: 0.62rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  opacity: 0.74;
}

.top-info strong {
  font-size: 0.8rem;
  margin-top: 1px;
}

.gallery {
  padding: 95px 0;
  background: #f7faf8;
  overflow: hidden;
}

.gallery-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  margin-bottom: 35px;
}

.gallery-head p {
  max-width: 480px;
  color: #5d716c;
}

.gallery-viewport {
  overflow: hidden;
}

.gallery-track {
  display: flex;
  gap: 18px;
  width: max-content;
  animation: galleryLoop 32s linear infinite;
}

.gallery-track:hover {
  animation-play-state: paused;
}

.gallery-card {
  width: 360px;
  height: 270px;
  border-radius: 10px;
  overflow: hidden;
  position: relative;
  flex: none;
  margin: 0;
}

.gallery-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s;
}

.gallery-card:hover img {
  transform: scale(1.04);
}

.gallery-card span {
  position: absolute;
  left: 16px;
  bottom: 14px;
  background: rgba(0, 73, 64, 0.88);
  color: #fff;
  padding: 7px 11px;
  border-radius: 5px;
  font-size: 0.8rem;
  font-weight: 700;
}

@keyframes galleryLoop {
  to {
    transform: translateX(calc(-50% - 9px));
  }
}

@media (max-width: 850px) {
  .topbar-inner {
    grid-template-columns: 1fr 1fr;
  }

  .top-info:nth-child(2) {
    display: none;
  }

  .gallery-card {
    width: 290px;
    height: 220px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .gallery-track {
    animation: none;
    overflow-x: auto;
  }
}

.hero-backdrop .hero-slide::after {
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.42), rgba(0, 0, 0, 0.06) 66%, transparent);
}

.hero-full .hero-copy {
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.32);
}

.quick {
  position: relative;
  z-index: 7;
  margin-top: -58px;
}

.quick-grid {
  box-shadow: 0 22px 50px rgba(0, 49, 42, 0.2);
}

.about-home {
  padding: 125px 0 90px;
  background: #fff;
}

.about-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 72px;
  align-items: center;
}

.about-photo {
  height: 390px;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow);
  position: relative;
}

.about-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.about-photo:after {
  position: absolute;
  left: 18px;
  bottom: 18px;
  background: rgba(0, 63, 56, 0.9);
  color: #fff;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 700;
}

.about-home p {
  font-size: 1.08rem;
  color: #58706a;
}

.service-icon {
  width: 58px;
  height: 58px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  margin-bottom: 30px;
  font-size: 1.7rem;
}

.service-card:nth-child(1) .service-icon {
  background: #e8f0ff;
  color: #2f62a6;
}

.service-card:nth-child(2) .service-icon {
  background: #fff0f2;
  color: #b44d68;
}

.service-card:nth-child(3) .service-icon {
  background: #f4ebff;
  color: #7c4db1;
}

.service-card:nth-child(4) .service-icon {
  background: #fff3df;
  color: #aa681f;
}

.service-card:nth-child(5) .service-icon {
  background: #e7f7f5;
  color: #177b74;
}

.service-card:nth-child(6) .service-icon {
  background: #f2f0e8;
  color: #766d3c;
}

.service-card {
  position: relative;
  background: #fff;
  border: 1px solid #d7e3de;
  border-radius: 20px;
  padding: 32px;
  box-shadow: 0 8px 24px rgba(19, 52, 46, 0.07);
}

.service-card .card-no {
  position: absolute;
  right: 22px;
  top: 22px;
}

.partners {
  padding: 80px 0;
  background: #fff;
  border-top: 1px solid var(--line);
}

.partner-head {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 38px;
}

.partner-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px 34px;
}

.partner-logo {
  min-height: 158px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 10px;
  overflow: visible;
}

.logo-stage {
  width: 280px;
  max-width: 100%;
  height: 108px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
}

.partner-logo img {
  display: block;
  max-width: 250px;
  max-height: 98px;
  width: auto;
  height: auto;
  object-fit: contain;
}

.partner-logo > span {
  font-size: 0.82rem;
  line-height: 1.35;
  text-align: center;
  letter-spacing: 0.03em;
  color: #52645f;
  font-weight: 650;
}

.cta {
  background: #edf6f2;
  color: var(--ink);
  border-top: 1px solid var(--line);
}

.cta h2 {
  color: var(--deep);
}

.cta .light {
  color: var(--green);
}

.cta .btn-white {
  background: var(--green);
  color: #fff;
}

.cta .btn-outline-white {
  border: 1px solid var(--green);
  color: var(--green);
}

@media (max-width: 850px) {
  .quick {
    margin-top: -35px;
  }

  .about-home {
    padding-top: 90px;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .about-photo {
    height: 320px;
  }

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

@media (max-width: 520px) {
  .partner-row {
    grid-template-columns: 1fr;
  }
}

/* One reveal system. Content remains visible when JavaScript is unavailable. */
.fade-in {
  opacity: 1;
  transform: none;
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.fade-in.reveal-pending {
  opacity: 0;
  transform: translateY(22px);
}

@media (prefers-reduced-motion: reduce) {
  .fade-in,
  .fade-in.reveal-pending {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* Hero typewriter */
.typewriter {
  display: inline-block;
  min-height: 1.15em;
  color: #087a55;
  font-style: normal;
}

.typewriter::after {
  content: "";
  display: inline-block;
  width: 3px;
  height: 0.85em;
  margin-left: 7px;
  background: #ffffff;
  vertical-align: -0.05em;
  animation: typewriterCursor 0.7s step-end infinite;
}

.typewriter.typing-complete::after {
  animation-iteration-count: 5;
}

@keyframes typewriterCursor {
  50% {
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .typewriter::after {
    display: none;
  }
}
