.home-hero {
  position: relative;
  height: 88vh;
  min-height: 590px;
  overflow: hidden;
  background: #1f2f2c;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  isolation: isolate;
  place-items: center;
  opacity: 0;
  pointer-events: none;
  background: #1f2f2c;
  transition: opacity 1.1s ease;
}

.hero-slide::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: "";
  background: rgba(0, 0, 0, 0.35);
}

.hero-slide::after {
  position: absolute;
  inset: -5%;
  z-index: -2;
  content: "";
  background-image: var(--hero-image);
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  transform: scale(1);
  will-change: transform;
}

.hero-slide.is-active {
  opacity: 1;
  pointer-events: auto;
}

.hero-slide.is-active::after {
  animation: hero-zoom 6s ease-out forwards;
}

.home-hero.is-paused .hero-slide.is-active::after {
  animation-play-state: paused;
}

@keyframes hero-zoom {
  from {
    transform: scale(1);
  }

  to {
    transform: scale(1.14);
  }
}

.hero-slide--mental {
  --hero-image: url("../images/slider1.webp");
}

.hero-slide--empatia {
  --hero-image: url("../images/empatia.webp");
}

.hero-slide--acolhimento {
  --hero-image: url("../images/slider3.webp");
}

.hero-slide__content {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  flex-direction: column;
  padding: 30px;
  color: var(--branco);
  text-align: center;
}

.hero-slide.is-active .hero-slide__content {
  animation: hero-content-in 0.8s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes hero-content-in {
  from {
    opacity: 0;
    transform: translateY(28px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-slide h1,
.hero-slide h2 {
  margin-bottom: 20px;
  color: var(--branco);
  font-size: 71px;
  font-weight: 800;
  line-height: 1.05;
}

.hero-arrow {
  position: absolute;
  top: 50%;
  z-index: 6;
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  padding: 0 0 5px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 50%;
  color: var(--branco);
  background: rgba(27, 49, 43, 0.34);
  backdrop-filter: blur(7px);
  cursor: pointer;
  font-size: 43px;
  font-weight: 300;
  line-height: 1;
  opacity: 0.88;
  transform: translateY(-50%);
  transition: color 0.25s ease, background-color 0.25s ease, border-color 0.25s ease, transform 0.25s ease, opacity 0.25s ease;
}

.hero-arrow:hover,
.hero-arrow:focus-visible {
  border-color: var(--amarelo);
  color: var(--grafite);
  background: var(--amarelo);
  opacity: 1;
}

.hero-arrow--prev {
  left: clamp(16px, 3vw, 54px);
}

.hero-arrow--next {
  right: clamp(16px, 3vw, 54px);
}

.hero-arrow--prev:hover,
.hero-arrow--prev:focus-visible {
  transform: translate(-3px, -50%);
}

.hero-arrow--next:hover,
.hero-arrow--next:focus-visible {
  transform: translate(3px, -50%);
}

.hero-controls {
  position: absolute;
  bottom: 22px;
  left: 50%;
  z-index: 7;
  display: flex;
  min-height: 34px;
  align-items: center;
  gap: 11px;
  padding: 5px 10px;
  border: 0;
  border-radius: 999px;
  color: var(--branco);
  background: rgba(24, 39, 35, 0.28);
  backdrop-filter: blur(4px);
  transform: translateX(-50%);
}

.hero-playback {
  position: relative;
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  color: var(--branco);
  background: transparent;
  cursor: pointer;
  opacity: 0.92;
  transition: color 0.2s ease, opacity 0.2s ease, transform 0.2s ease;
}

.hero-playback:hover,
.hero-playback:focus-visible {
  color: var(--amarelo);
  opacity: 1;
  transform: scale(1.05);
}

.hero-playback__icon::before,
.hero-playback__icon::after {
  position: absolute;
  top: 6px;
  width: 2px;
  height: 10px;
  border-radius: 2px;
  background: currentColor;
  content: "";
}

.hero-playback__icon {
  display: block;
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.hero-playback.is-paused .hero-playback__icon {
  transform: scale(0.94);
}

.hero-playback__icon::before {
  left: 7px;
}

.hero-playback__icon::after {
  right: 7px;
}

.hero-playback.is-paused .hero-playback__icon::before {
  top: 5px;
  left: 8px;
  width: 0;
  height: 0;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  border-left: 8px solid currentColor;
  border-radius: 0;
  background: transparent;
}

.hero-playback.is-paused .hero-playback__icon::after {
  display: none;
}

.hero-progress {
  display: flex;
  align-items: center;
  gap: 6px;
}

.hero-progress__item {
  --progress: 0;
  display: flex;
  width: 8px;
  height: 22px;
  align-items: center;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  transition: width 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}

.hero-progress__item.is-active {
  width: 64px;
}

.hero-progress__track {
  position: relative;
  display: block;
  width: 100%;
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.3);
  transition: height 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
}

.hero-progress__fill {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: rgba(255, 255, 255, 0.94);
  transform: scaleX(var(--progress));
  transform-origin: left center;
  transition: opacity 0.18s ease;
}

.hero-progress__item.is-active .hero-progress__track {
  height: 4px;
  background: rgba(255, 255, 255, 0.32);
}

.hero-progress__item:not(.is-active) .hero-progress__fill {
  opacity: 0;
}

.hero-progress__item:hover .hero-progress__track,
.hero-progress__item:focus-visible .hero-progress__track {
  background: rgba(255, 255, 255, 0.58);
  transform: scale(1.08);
}

.hero-progress__item.is-active:hover .hero-progress__track,
.hero-progress__item.is-active:focus-visible .hero-progress__track {
  transform: none;
}

.hero-counter {
  display: flex;
  min-width: 40px;
  justify-content: flex-end;
  gap: 2px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.06em;
  line-height: 1;
  opacity: 0.9;
}

.hero-counter [data-hero-current] {
  color: var(--amarelo);
}

.home-about,
.about-page {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 0;
  padding: 60px 0;
}

.home-about__text,
.about-page__text {
  padding-right: 55px;
}

.eyebrow {
  margin-bottom: 8px;
  color: var(--grafite);
  font-size: 15px;
  font-weight: 600;
}

.home-about h2,
.about-page h1 {
  margin-bottom: 6px;
  color: var(--verde);
  font-size: 44px;
  font-weight: 700;
  line-height: 1.12;
}

.home-about h3,
.about-page h2 {
  margin-bottom: 17px;
  color: var(--grafite);
  font-size: 22px;
  font-weight: 400;
  line-height: 1.3;
}

.home-about__photo,
.about-page__photo {
  display: flex;
  justify-content: flex-end;
}

.home-about__photo img {
  width: 80%;
  height: 550px;
  border-radius: 0 60px 0 0;
  object-fit: cover;
  object-position: center;
}

.about-page__photo img {
  width: 80%;
  height: auto;
  border-radius: 0 60px 0 0;
  object-fit: contain;
}

.home-treatments {
  padding: 0 0 15px;
}

.home-treatments__heading {
  margin-bottom: 25px;
  color: var(--verde);
  font-size: 44px;
  font-weight: 700;
}

.treatments-carousel {
  position: relative;
  padding: 0 48px;
  overflow: hidden;
}

.treatments-carousel__viewport {
  overflow: hidden;
}

.treatments-carousel__track {
  display: flex;
  gap: 10px;
  transition: transform 0.45s ease;
  will-change: transform;
}

.treatments-carousel .treatment-card {
  flex: 0 0 calc((100% - 20px) / 3);
}

.carousel-button {
  position: absolute;
  top: 50%;
  z-index: 4;
  display: grid;
  width: 38px;
  height: 50px;
  place-items: center;
  padding: 0;
  border: 0;
  color: var(--verde);
  background: transparent;
  cursor: pointer;
  font-size: 40px;
  font-weight: 300;
  transform: translateY(-50%);
}

.carousel-button:hover,
.carousel-button:focus-visible {
  color: var(--grafite);
}

.carousel-button--prev {
  left: 0;
}

.carousel-button--next {
  right: 0;
}

.home-treatments__button {
  margin-top: 26px;
  text-align: center;
}

.treatments-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  padding: 60px 0 20px;
}

.page-banner--tratamentos {
  --banner-image: url("../images/tratamentos.webp");
}

.page-banner--psiquiatria {
  --banner-image: url("../images/clinica.webp");
}

.page-banner--psicoterapia {
  --banner-image: url("../images/psicoterapia.webp");
}

.page-banner--contato {
  --banner-image: url("../images/contato.webp");
}

.treatments-grid .treatment-card {
  display: flex;
  min-height: 300px;
  justify-content: center;
  flex-direction: column;
  padding: 50px 30px;
}

.treatments-grid .treatment-card h3 {
  font-weight: 700;
}

.treatment-card.is-hidden {
  display: none;
}

.show-more-wrap {
  padding-bottom: 60px;
  text-align: center;
}

.service-feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin: 80px auto;
}

.service-feature__content {
  padding-right: 80px;
}

.service-feature__content h2 {
  margin: 0 0 16px;
  color: var(--verde);
  font-size: 40px;
  font-weight: 700;
  line-height: 1.15;
}

.service-feature__content h2 + .check-list {
  margin-bottom: 33px;
}

.service-feature__content .button {
  margin-top: 14px;
}

.service-feature__image {
  min-height: 535px;
  border-radius: 0 60px 0 0;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

.service-feature__image--psiquiatria {
  background-image: url("../images/consultorio.jpg");
}

.service-feature__image--psicoterapia {
  background-image: url("../images/dra-mariana.webp");
}

.contact-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  padding: 50px 0;
}

.contact-form-card,
.contact-info-card {
  padding: 44px 50px 50px;
  background: var(--branco);
}

.contact-form-card {
  border-radius: 0 50px 50px 0;
}

.contact-form-card h2 {
  margin-bottom: 22px;
  color: var(--verde);
  font-size: 44px;
  font-weight: 700;
  line-height: 1.15;
}

.contact-form {
  display: grid;
  gap: 10px;
}

.contact-form label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--verde);
  border-radius: 0;
  color: var(--grafite);
  background: var(--branco);
  outline: none;
}

.contact-form input:focus,
.contact-form textarea:focus {
  box-shadow: 0 0 0 2px rgba(105, 183, 157, 0.22);
}

.contact-form textarea {
  min-height: 140px;
  resize: vertical;
}

.contact-form__trap {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.contact-form > input[type="hidden"] {
  display: none;
}

.contact-captcha {
  position: relative;
  display: grid;
  gap: 12px;
  padding: 14px 15px 15px 18px;
  overflow: hidden;
  border: 1px solid rgba(105, 183, 157, 0.34);
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(105, 183, 157, 0.12), rgba(255, 255, 255, 0.96));
  box-shadow: 0 8px 24px rgba(56, 51, 54, 0.06), inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.contact-captcha::before {
  position: absolute;
  top: 14px;
  bottom: 14px;
  left: 0;
  width: 3px;
  border-radius: 0 4px 4px 0;
  content: "";
  background: var(--verde);
}

.contact-form .contact-captcha__label {
  position: static;
  width: auto;
  height: auto;
  overflow: visible;
  clip: auto;
  color: var(--grafite);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.45;
}

.contact-captcha__label strong {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  margin-left: 3px;
  padding: 3px 10px;
  border: 1px solid rgba(105, 183, 157, 0.38);
  border-radius: 999px;
  color: var(--verde-escuro);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 3px 10px rgba(71, 166, 135, 0.08);
  font-size: 15px;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.contact-captcha__row {
  display: flex;
  align-items: stretch;
  gap: 10px;
}

.contact-form .contact-captcha__row input {
  min-width: 0;
  height: 48px;
  flex: 1;
  padding-inline: 18px;
  border-color: rgba(105, 183, 157, 0.56);
  border-radius: 8px;
  background: var(--branco);
  box-shadow: 0 4px 12px rgba(56, 51, 54, 0.04);
  font-size: 17px;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  text-align: center;
}

.contact-form .contact-captcha__row input::placeholder {
  color: #8d898b;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0;
}

.contact-form .contact-captcha__row input:focus {
  border-color: var(--verde-escuro);
  box-shadow: 0 0 0 3px rgba(105, 183, 157, 0.18), 0 4px 12px rgba(56, 51, 54, 0.04);
}

.contact-captcha__refresh {
  display: inline-grid;
  width: 48px;
  flex: 0 0 48px;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(105, 183, 157, 0.42);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 4px 12px rgba(56, 51, 54, 0.05);
  cursor: pointer;
  transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.contact-captcha__refresh img {
  width: 23px;
  height: 23px;
  transition: filter 0.2s ease, transform 0.35s ease;
}

.contact-captcha__refresh:hover,
.contact-captcha__refresh:focus-visible {
  border-color: var(--verde);
  background: var(--verde);
  box-shadow: 0 6px 16px rgba(71, 166, 135, 0.2);
  transform: translateY(-1px);
}

.contact-captcha__refresh:hover img,
.contact-captcha__refresh:focus-visible img {
  filter: brightness(0) invert(1);
}

.contact-captcha__refresh:active {
  transform: translateY(0);
}

.contact-captcha__refresh:active img {
  transform: rotate(90deg);
}

.contact-form .button {
  width: 100%;
  min-height: 52px;
  border-radius: 7px;
  font-size: 18px;
}

.form-status {
  min-height: 24px;
  margin: 0;
  font-size: 14px;
  font-weight: 600;
}

.form-status.is-success {
  color: #287a5f;
}

.form-status.is-error {
  color: #a52d2d;
}

.contact-form .button:disabled {
  cursor: wait;
  opacity: 0.65;
}

.contact-info-card {
  display: flex;
  justify-content: center;
  flex-direction: column;
  gap: 32px;
  padding-left: 40px;
  border-radius: 0 50px 50px 0;
}

.contact-info-item {
  display: grid;
  grid-template-columns: 45px 1fr;
  align-items: center;
  gap: 17px;
}

.contact-info-item__icon {
  width: 24px;
  height: 32px;
  justify-self: center;
  object-fit: contain;
}

.contact-info-item__icon--phone {
  width: 31px;
  height: 31px;
}

.contact-info-item h2 {
  margin: 0;
  color: var(--verde);
  font-size: 20px;
  font-weight: 800;
}

.contact-info-item p {
  margin: 3px 0 0;
}

.redirect-page {
  padding: 60px 0;
  text-align: center;
}
