:root {
  --accent-color: #168953;
  --heading-color: #123b2b;
  --nav-hover-color: #22a96b;
  --nav-dropdown-hover-color: #168953;
}

body {
  font-family: Inter, Arial, "Microsoft YaHei", sans-serif;
}

.logo-mark {
  width: 46px;
  height: 46px;
  display: inline-block;
  object-fit: contain;
  margin-right: 10px;
}

.header .logo h1 {
  font-size: 24px;
}

.xh-hero-carousel:before {
  background: transparent;
}

.hero h2 {
  max-width: 560px;
  font-size: clamp(38px, 3.45vw, 58px);
  line-height: 1.12;
  margin-bottom: 24px;
}

.hero p {
  max-width: 650px;
  font-size: clamp(14px, 0.9vw, 16px);
  line-height: 2;
}

.btn-watch-video {
  color: #fff;
}

.btn-watch-video i {
  color: #74d39b;
}

.xh-hero-carousel {
  position: relative;
  overflow: hidden;
  min-height: 100vh;
  height: 100vh;
  aspect-ratio: auto;
  border: 0;
  outline: 0;
}

.xh-hero-carousel > img {
  display: none;
}

.xh-hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: none;
  transition: opacity 0.8s ease;
}

.xh-hero-slide.active {
  opacity: 1;
}

.xh-hero-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(4, 29, 22, 0.22), rgba(4, 35, 24, 0.08) 34%, rgba(4, 35, 24, 0.02) 62%, rgba(4, 29, 22, 0.06)),
    radial-gradient(circle at 78% 32%, rgba(116, 211, 155, 0.035), transparent 34%);
}

.xh-hero-slide-new::after {
  background: transparent;
}

.xh-hero-slide-new {
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center center;
  background-color: #0d3439;
}

.xh-hero-slide-soft::after {
  display: none;
  background: none;
}

.xh-hero-copy {
  position: absolute;
  inset: 0;
  max-width: none !important;
  width: 100% !important;
  height: 100%;
  margin: 0 !important;
  z-index: 2;
  display: flex !important;
  flex-direction: column;
  align-items: flex-start !important;
  text-align: left !important;
  justify-content: flex-start !important;
  padding-top: clamp(270px, 35vh, 320px);
  padding-left: clamp(96px, 7.6vw, 118px);
  padding-right: 42px;
}

.xh-hero-kicker {
  margin-bottom: 14px;
  color: #87d99f;
  font-size: 13px !important;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.36);
}

.xh-hero-copy h2,
.xh-hero-copy p {
  text-shadow: 0 3px 18px rgba(0, 0, 0, 0.38);
}

.xh-hero-copy h2 {
  font-size: clamp(38px, 3.45vw, 58px) !important;
}

.xh-hero-copy p {
  font-size: clamp(14px, 0.9vw, 16px) !important;
}

.xh-hero-text-hidden .xh-hero-copy {
  opacity: 0;
  pointer-events: none;
}

.xh-hero-dots {
  position: absolute;
  z-index: 3;
  left: 50%;
  bottom: 34px;
  display: flex;
  gap: 10px;
  transform: translateX(-50%);
}

.xh-hero-dots button {
  width: 42px;
  height: 4px;
  padding: 0;
  border: 0;
  background: rgba(255, 255, 255, 0.35);
  cursor: pointer;
  transition: background 0.2s ease, width 0.2s ease;
}

.xh-hero-dots button.active {
  width: 58px;
  background: #fff;
}

.about .content ul i {
  color: #168953;
}

.xh-about-clean {
  background: #f7faf6;
}

.xh-about-clean h3 {
  color: #123b2b;
  font-size: 32px;
  line-height: 1.35;
}

.xh-about-clean img {
  width: 100%;
  height: 360px;
  object-fit: cover;
  object-position: center;
  box-shadow: 0 24px 70px rgba(18, 59, 43, 0.12);
}

.xh-about-clean .content {
  background: #fff;
  border-left: 5px solid #168953;
  padding: 34px !important;
  box-shadow: 0 20px 60px rgba(18, 59, 43, 0.08);
}

.xh-about-clean .content p {
  color: #607168;
  line-height: 1.9;
}

.xh-about-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.xh-about-metrics div {
  background: #eef7f0;
  border: 1px solid rgba(22, 137, 83, 0.14);
  padding: 18px;
}

.xh-about-metrics strong {
  display: block;
  color: #123b2b;
  font-size: 26px;
  line-height: 1;
}

.xh-about-metrics span {
  display: block;
  margin-top: 8px;
  color: #6a7a71;
  font-size: 13px;
}

.stats .stats-item i {
  color: #168953;
}

.services .service-item .details {
  min-height: 240px;
}

.services .service-item .img img {
  width: 100%;
  height: 285px;
  object-fit: cover;
}

.services .service-item .icon {
  background: #168953;
}

.services .service-item:hover .details h3 {
  color: #168953;
}

.features .nav-link.active {
  background: #168953;
  border-color: #168953;
}

.features .nav-link:hover {
  border-color: #168953;
}

.xh-features-compact {
  background: #f7faf6;
}

.xh-features-compact .nav-tabs {
  border: 0;
  gap: 14px 0;
}

.xh-features-compact .nav-link {
  min-height: 118px;
  border-color: rgba(22, 137, 83, 0.14);
  background: #fff;
  box-shadow: 0 12px 34px rgba(18, 59, 43, 0.06);
}

.xh-features-compact .nav-link i {
  color: #168953;
}

.xh-features-compact .nav-link.active i,
.xh-features-compact .nav-link.active h4 {
  color: #fff;
}

.xh-feature-card {
  margin-top: 28px;
  overflow: hidden;
  border: 1px solid rgba(22, 137, 83, 0.12);
  background: #fff;
  box-shadow: 0 24px 70px rgba(18, 59, 43, 0.1);
}

.xh-feature-copy {
  min-height: 420px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 42px 46px;
}

.xh-feature-copy h3 {
  margin-bottom: 16px;
  color: #123b2b;
  font-size: 30px;
  line-height: 1.35;
}

.xh-feature-copy p {
  color: #607168;
  line-height: 1.85;
}

.xh-feature-img {
  width: 100%;
  height: 420px;
  display: block;
  object-fit: cover;
  object-position: center;
}

.xh-feature-points {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 22px;
}

.xh-feature-points span {
  padding: 13px 14px;
  border: 1px solid rgba(22, 137, 83, 0.14);
  background: #eef7f0;
  color: #123b2b;
  font-weight: 700;
}

.call-to-action {
  padding: 68px 0;
  min-height: 0;
  background:
    linear-gradient(135deg, rgba(5, 45, 33, 0.96), rgba(20, 111, 78, 0.94)),
    radial-gradient(circle at 80% 20%, rgba(116, 211, 155, 0.28), transparent 34%);
}

.call-to-action:before {
  display: none;
}

.call-to-action:after {
  content: "";
  position: absolute;
  inset: 18px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  pointer-events: none;
}

.call-to-action .container {
  max-width: 960px;
}

.call-to-action h3 {
  font-size: 32px;
  line-height: 1.28;
  margin-bottom: 14px;
}

.call-to-action p {
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
  font-size: 16px;
  line-height: 1.8;
}

.call-to-action .cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  min-width: 148px;
  margin-top: 12px;
  padding: 13px 30px;
  border: 2px solid #fff;
  border-radius: 0;
  color: #fff;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}

.call-to-action .cta-btn:hover {
  border-color: #74d39b;
  background: #74d39b;
  color: #123b2b;
}

.portfolio .portfolio-item img {
  width: 100%;
  height: 300px;
  object-fit: cover;
}

.portfolio .portfolio-filters li:hover,
.portfolio .portfolio-filters li.filter-active {
  color: #168953;
}

.contact .info-item i {
  color: #168953;
}

.contact .php-email-form button[type=submit] {
  background: #168953;
}

.contact .php-email-form button[type=submit]:hover {
  background: #126f44;
}

.footer a:hover {
  color: #74d39b;
}

.footer .credits {
  display: none;
}

@media (max-width: 768px) {
  .header .logo h1 {
    font-size: 18px;
  }

  .logo-mark {
    width: 38px;
    height: 38px;
  }

  .hero h2 {
    font-size: 38px;
  }

  .hero p {
    font-size: 16px;
  }

  .xh-hero-dots {
    bottom: 22px;
  }

  .xh-hero-carousel {
    min-height: 100vh;
    height: 100vh;
    aspect-ratio: auto;
  }

  .xh-hero-slide-new {
    background-size: cover;
    background-position: center center;
  }

  .xh-hero-dots button {
    width: 30px;
  }

  .xh-hero-dots button.active {
    width: 42px;
  }

  .xh-about-clean h3 {
    font-size: 26px;
  }

  .xh-about-clean img {
    height: auto;
    aspect-ratio: 1.25 / 1;
  }

  .xh-about-metrics {
    grid-template-columns: 1fr;
  }

  .xh-features-compact .nav-link {
    min-height: 88px;
  }

  .xh-feature-copy {
    min-height: 0;
    padding: 28px;
  }

  .xh-feature-copy h3 {
    font-size: 24px;
  }

  .xh-feature-img {
    height: auto;
    aspect-ratio: 1.25 / 1;
  }

  .xh-feature-points {
    grid-template-columns: 1fr;
  }

  .call-to-action {
    padding: 54px 0;
  }

  .call-to-action h3 {
    font-size: 26px;
  }
}
