/* Full-width photo slider. Text, photographs and buttons use the existing CMS fields. */
.hero-fullwidth {
  width: 100%;
  background: #173e38;
}

.hero-fullwidth .hero-slide {
  position: relative;
  isolation: isolate;
  transition: opacity .9s ease, visibility 0s linear .9s;
}

.hero-fullwidth .hero-slide.is-active {
  transition-delay: 0s;
}

.hero-fullwidth .is-active .hero-slide-image {
  animation: hero-photo-drift 5.8s ease-out both;
}

.hero-fullwidth .is-active .hero-copy > .eyebrow,
.hero-fullwidth .is-active .hero-copy > h1,
.hero-fullwidth .is-active .hero-copy > p,
.hero-fullwidth .is-active .hero-actions,
.hero-fullwidth .is-active .hero-note {
  animation: hero-text-enter .8s cubic-bezier(.22, 1, .36, 1) both;
}

.hero-fullwidth .is-active .hero-copy > .eyebrow { animation-delay: .12s; }
.hero-fullwidth .is-active .hero-copy > h1 { animation-delay: .26s; }
.hero-fullwidth .is-active .hero-copy > p { animation-delay: .4s; }
.hero-fullwidth .is-active .hero-actions { animation-delay: .54s; }
.hero-fullwidth .is-active .hero-note { animation-delay: .68s; }

@keyframes hero-photo-drift {
  from { transform: scale(1.065); }
  to { transform: scale(1.005); }
}

@keyframes hero-text-enter {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-fullwidth .hero-slide::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgba(8, 36, 31, .91) 0%, rgba(8, 36, 31, .78) 35%, rgba(8, 36, 31, .28) 68%, rgba(8, 36, 31, .08) 100%);
}

.hero-slide-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: -2;
}

.hero-fullwidth .hero-grid {
  display: flex;
  align-items: center;
  min-height: 650px;
  padding-top: 75px;
  padding-bottom: 115px;
}

.hero-fullwidth .hero-copy {
  width: 620px;
  max-width: 65%;
  padding: 0;
  color: #fff;
}

.hero-fullwidth .hero-copy h1 {
  max-width: 620px;
  font-size: clamp(55px, 5.8vw, 82px);
  margin-bottom: 26px;
}

.hero-fullwidth .hero-copy .eyebrow {
  color: #f1cfb2;
}

.hero-fullwidth .status-dot {
  background: #edc3a2;
}

.hero-fullwidth .hero-copy > p {
  color: #e0e9e2;
  max-width: 440px;
  font-size: 14px;
}

.hero-fullwidth .hero-actions .button {
  background: var(--peach);
  border-color: var(--peach);
  color: #163e39;
}

.hero-fullwidth .hero-actions .button:hover {
  background: #f2ceb1;
  border-color: #f2ceb1;
}

.hero-fullwidth .hero-call small,
.hero-fullwidth .hero-note {
  color: #d1dfd6;
}

.hero-fullwidth .call-circle {
  border-color: #ffffff60;
}

.hero-fullwidth .slider-bottom {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 25px;
  margin-top: 0;
  padding-bottom: 0;
}

.hero-fullwidth .slider-progress,
.hero-fullwidth .slider-progress > span:first-child {
  color: #fff;
}

.hero-fullwidth .progress-rule {
  background: #ffffff75;
}

.hero-fullwidth .slider-controls .icon-button {
  width: 40px;
  height: 40px;
  color: #fff;
  border-color: #ffffff60;
  background: #173e3933;
  font-size: 17px;
}

.hero-fullwidth .slider-controls .icon-button:hover {
  background: #ffffff25;
}

/* Image cards are shared by the homepage and the treatments listing. */
.services-grid {
  border: 0;
  gap: 24px;
}

.service-card {
  padding: 0;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 5px;
  overflow: hidden;
  background: #fff;
}

.service-image-wrap {
  position: relative;
  aspect-ratio: 11 / 7;
  overflow: hidden;
  background: var(--mint);
}

.service-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}

.service-card:hover .service-image {
  transform: scale(1.035);
}

.service-image-wrap .card-number {
  position: absolute;
  left: 18px;
  top: 18px;
  display: grid;
  place-items: center;
  width: 31px;
  height: 31px;
  border-radius: 50%;
  background: #fff;
  color: var(--green);
  font-size: 10px;
}

.service-card-content {
  padding: 29px 27px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.service-card h3 {
  min-height: 0;
  margin-bottom: 13px;
}

.service-card p {
  max-width: none;
}

.service-link {
  margin-top: auto;
  padding-top: 2px;
}

@media (min-width: 1600px) {
  .hero-fullwidth .hero-grid { min-height: 720px; }
}

@media (max-width: 1000px) {
  .hero-fullwidth .hero-grid { min-height: 600px; }
  .hero-fullwidth .hero-copy { max-width: 73%; }
  .hero-fullwidth .hero-copy h1 { font-size: 64px; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 650px) {
  .hero-fullwidth .hero-grid {
    min-height: 570px;
    padding-top: 55px;
    padding-bottom: 105px;
  }
  .hero-fullwidth .hero-copy { width: 100%; max-width: 100%; }
  .hero-fullwidth .hero-copy h1 { font-size: clamp(45px, 11.7vw, 65px); max-width: 420px; }
  .hero-fullwidth .hero-copy > p { font-size: 12px; max-width: 345px; }
  .hero-fullwidth .hero-slide::after {
    background: linear-gradient(90deg, rgba(8, 36, 31, .87), rgba(8, 36, 31, .6)), linear-gradient(0deg, rgba(8, 36, 31, .4), transparent 70%);
  }
  .hero-slide-image { object-position: 65% center; }
  .hero-fullwidth .slider-bottom { bottom: 22px; }
  .hero-fullwidth .slider-controls .icon-button { width: 34px; height: 34px; font-size: 14px; }
  .services-grid { grid-template-columns: 1fr; gap: 24px; }
  .service-card-content { padding: 26px; }
  .service-card h3 { font-size: 24px; min-height: 0; }
  .service-card p { font-size: 13px; min-height: 0; line-height: 1.8; margin-bottom: 24px; }
  .service-link { font-size: 11px; }
  .service-link .icon { width: 18px; height: 18px; }
}

@media (max-width: 380px) {
  .hero-fullwidth .hero-grid { min-height: 540px; }
  .hero-fullwidth .hero-copy h1 { font-size: 44px; }
}

@media (prefers-reduced-motion: reduce) {
  .service-image { transition: none; }
  .hero-fullwidth .hero-slide { transition: none; }
  .hero-fullwidth .is-active .hero-slide-image,
  .hero-fullwidth .is-active .hero-copy > .eyebrow,
  .hero-fullwidth .is-active .hero-copy > h1,
  .hero-fullwidth .is-active .hero-copy > p,
  .hero-fullwidth .is-active .hero-actions,
  .hero-fullwidth .is-active .hero-note { animation: none; }
}
