/* ==========================================================================
   Landing page
   ========================================================================== */

/* Hero --------------------------------------------------------------------- */

.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: flex-end;
  min-height: calc(100svh - var(--header-h) - var(--bottom-nav-h) - var(--safe-bottom));
  padding-top: var(--space-6);
  padding-bottom: var(--space-5);
  overflow: hidden;
  background: var(--green-900);
  color: var(--white);
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  margin: 0;
}

.hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 35%;
}

.hero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgb(10 40 34 / 0.55) 0%, rgb(10 40 34 / 0.75) 40%, rgb(10 40 34 / 0.94) 100%);
}

.hero__grid {
  position: relative;
}

.hero .eyebrow {
  color: #bfe6d6;
}

.hero .eyebrow::before {
  background: #7fd1b3;
}

.hero__title {
  max-width: 17ch;
  color: var(--white);
  text-shadow: 0 2px 24px rgb(0 0 0 / 0.25);
}

.hero__lead {
  margin-top: var(--space-2);
  max-width: 36rem;
  font-size: var(--step-1);
  color: rgb(255 255 255 / 0.9);
}

.hero__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.1rem;
  margin-top: var(--space-2);
  font-size: var(--step--1);
  font-weight: 600;
  color: var(--white);
}

.hero__facts li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.hero__facts li::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #7fd1b3;
}

.hero__actions {
  display: grid;
  gap: 0.75rem;
  margin-top: var(--space-3);
}

@media (min-width: 960px) {
  .hero__lead,
  .hero__facts {
    margin-top: var(--space-3);
  }

  .hero__actions {
    margin-top: var(--space-4);
  }
}

.hero__note {
  margin-top: var(--space-2);
  font-size: var(--step--1);
  color: rgb(255 255 255 / 0.78);
}

.hero .btn--outline-light {
  background: rgb(255 255 255 / 0.08);
  backdrop-filter: blur(4px);
}

.hero :focus-visible {
  outline-color: var(--white);
}

.hero__badge {
  display: none;
}

.hero__badge strong {
  font-size: var(--step-0);
}

.hero__badge span {
  color: rgb(255 255 255 / 0.8);
}

@media (min-width: 560px) {
  .hero__actions {
    display: flex;
    flex-wrap: wrap;
  }

  .hero__actions .btn {
    white-space: nowrap;
  }
}

@media (min-width: 900px) {
  .hero {
    align-items: center;
    min-height: min(calc(100svh - var(--header-h)), 46rem);
    padding-block: var(--space-6);
  }

  .hero__bg img {
    object-position: 50% 40%;
  }

  .hero__bg::after {
    background:
      linear-gradient(90deg, rgb(10 40 34 / 0.92) 0%, rgb(10 40 34 / 0.78) 42%, rgb(10 40 34 / 0.25) 75%, rgb(10 40 34 / 0.1) 100%),
      linear-gradient(0deg, rgb(10 40 34 / 0.45), transparent 35%);
  }

  .hero__text {
    max-width: 44rem;
  }

  .hero__badge {
    position: absolute;
    right: max(1.25rem, (100% - 72rem) / 2);
    bottom: var(--space-4);
    display: grid;
    gap: 0.1rem;
    padding: 0.7rem 1rem;
    border-radius: var(--radius-sm);
    background: rgb(10 40 34 / 0.55);
    backdrop-filter: blur(6px);
    border: 1px solid rgb(255 255 255 / 0.18);
    color: var(--white);
    font-size: var(--step--1);
    line-height: 1.35;
  }
}

/* Família ------------------------------------------------------------------ */

.family__grid {
  display: grid;
  gap: var(--space-5);
}

.family__quote {
  font-family: var(--font-heading);
  font-size: var(--step-3);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: var(--green-900);
}

.family__quote em {
  font-style: normal;
  background: linear-gradient(transparent 62%, #cfe9df 62%);
}

.family__text {
  margin-top: var(--space-3);
}

.steps {
  counter-reset: step;
  display: grid;
  gap: var(--space-3);
  margin-top: var(--space-4);
}

.steps li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 2.75rem 1fr;
  gap: 1rem;
  align-items: start;
}

.steps li::before {
  content: counter(step);
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  border: 2px solid var(--brand-green);
  font-family: var(--font-heading);
  font-size: 1.15rem;
  color: var(--green-800);
}

.steps strong {
  display: block;
  color: var(--ink);
}

.steps p {
  color: var(--muted);
}

.family__aside {
  margin-top: var(--space-4);
  padding-top: var(--space-3);
  border-top: 1px solid var(--line);
}

@media (min-width: 900px) {
  .family__grid {
    grid-template-columns: 0.9fr 1.1fr;
    gap: var(--space-6);
  }

  .family__quote {
    position: sticky;
    top: calc(var(--header-h) + 2rem);
    align-self: start;
  }
}

/* Tratamento --------------------------------------------------------------- */

.treatment {
  background: var(--green-900);
  color: rgb(255 255 255 / 0.88);
}

.treatment h2,
.treatment h3 {
  color: var(--white);
}

.treatment .eyebrow {
  color: #9fd8c3;
}

.treatment .section__head p:not(.eyebrow) {
  color: rgb(255 255 255 / 0.8);
}

.treatment__grid {
  display: grid;
  gap: var(--space-5);
}

.treatment__group h3 {
  padding-bottom: 0.75rem;
  margin-bottom: 0.5rem;
  border-bottom: 1px solid rgb(255 255 255 / 0.2);
  font-family: var(--font-sans);
  font-size: var(--step--1);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #9fd8c3;
}

.treatment__list > div {
  padding-block: 1.25rem;
  border-bottom: 1px solid rgb(255 255 255 / 0.12);
}

.treatment__list dt {
  font-family: var(--font-heading);
  font-size: var(--step-2);
  font-weight: 600;
  color: var(--white);
}

.treatment__list dd {
  margin-top: 0.35rem;
  max-width: 34rem;
}

.treatment__cta {
  margin-top: var(--space-5);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.5rem;
}

.treatment__cta p {
  max-width: 30rem;
}

@media (min-width: 900px) {
  .treatment__grid {
    grid-template-columns: 1fr 1.4fr;
    gap: var(--space-6);
  }
}

/* Estrutura ---------------------------------------------------------------- */

.structure__head {
  display: grid;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
}

.structure__head .section__head {
  margin-bottom: 0;
}

.structure__video {
  display: grid;
  grid-template-columns: 38% 1fr;
  gap: 1rem;
  align-items: center;
  margin-top: var(--space-4);
  padding: 0.75rem;
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.structure__video video {
  width: 100%;
  aspect-ratio: 464 / 832;
  border-radius: var(--radius-sm);
  background: var(--green-900);
}

.video-wrap {
  position: relative;
}

.video-wrap__play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  width: 100%;
  border: 0;
  border-radius: var(--radius-sm);
  background: rgb(18 63 54 / 0.25);
  color: var(--white);
  cursor: pointer;
}

.video-wrap__play .icon {
  width: 56px;
  height: 56px;
  padding: 14px 12px 14px 16px;
  border-radius: 50%;
  background: rgb(18 63 54 / 0.85);
  transition: transform 0.2s ease;
}

.video-wrap__play:hover .icon {
  transform: scale(1.06);
}

.video-wrap__play:focus-visible {
  outline-offset: -4px;
  outline-color: var(--white);
}

.video-wrap.is-playing .video-wrap__play {
  display: none;
}

.structure__video h3 {
  font-size: var(--step-1);
}

.structure__video p {
  margin-top: 0.5rem;
  font-size: var(--step--1);
  color: var(--muted);
}

@media (min-width: 768px) {
  .structure__video {
    grid-template-columns: 200px 1fr;
    gap: var(--space-4);
    max-width: 40rem;
    padding: var(--space-3);
  }

  .structure__video h3 {
    font-size: var(--step-2);
  }

  .structure__video p {
    font-size: var(--step-0);
  }
}

@media (min-width: 900px) {
  .structure__head {
    grid-template-columns: 1fr auto;
    align-items: end;
  }
}

/* Rio Grande do Sul ---------------------------------------------------------- */

.region__grid {
  display: grid;
  gap: var(--space-5);
}

.region__lead {
  font-size: var(--step-1);
  color: var(--muted);
}

h2 + .region__lead {
  margin-top: var(--space-3);
}

.region__lead + .region__lead {
  margin-top: var(--space-2);
}

.region__actions {
  margin-top: var(--space-4);
}

@media (min-width: 900px) {
  .region__grid {
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
    gap: var(--space-6);
  }
}

/* Unidades parceiras */

.partners {
  margin-top: var(--space-6);
  padding-top: var(--space-5);
  border-top: 1px solid rgb(18 63 54 / 0.12);
}

.partners__head {
  display: grid;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
}

.partners__title {
  font-size: var(--step-2);
}

.partners__text {
  margin-top: 0.25rem;
  color: var(--muted);
}

.partners__filter {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.chip {
  min-height: 44px;
  padding: 0.5rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  color: var(--green-900);
  font: inherit;
  font-size: var(--step--1);
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.2s, border-color 0.2s, color 0.2s;
}

.chip:hover {
  border-color: var(--green-700);
}

.chip[aria-pressed="true"] {
  border-color: var(--green-900);
  background: var(--green-900);
  color: var(--white);
}

.partners__list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 0.75rem;
}

.partner {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}

.partner:hover {
  border-color: rgb(52 154 122 / 0.5);
  box-shadow: var(--shadow-sm);
  transform: translateY(-2px);
}

.partner__media {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--surface-tint);
}

.partner__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 40%;
  transition: transform 0.4s ease;
}

.partner:hover .partner__media img {
  transform: scale(1.04);
}

.partner__media--empty {
  display: grid;
  place-items: center;
  background:
    radial-gradient(120% 90% at 100% 0%, rgb(21 131 196 / 0.14), transparent 60%),
    linear-gradient(160deg, #e6f3ee, #d6ebe3);
  color: rgb(18 63 54 / 0.35);
}

.partner__media--empty .icon {
  width: 2.5rem;
  height: 2.5rem;
}

.partner__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: space-between;
  gap: 0.65rem;
  padding: 0.9rem 1rem 1rem;
}

.partner[hidden] {
  display: none;
}

.partner__city {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--green-900);
}

.partner__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.tag--masculina {
  background: #e3f0f9;
  color: #0f5a7e;
}

.tag--feminina {
  background: #e2f3ec;
  color: #17614d;
}

.partners__empty {
  color: var(--muted);
}

@media (min-width: 768px) {
  .partners__head {
    grid-template-columns: 1fr auto;
    align-items: end;
  }

  .partners__list {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  }
}

/* Outras cidades com clínicas parceiras */

.cities {
  margin-top: var(--space-5);
  padding: var(--space-4) var(--space-3);
  border: 1px solid rgb(18 63 54 / 0.1);
  border-radius: calc(var(--radius) * 1.5);
  background:
    radial-gradient(90% 120% at 100% 0%, rgb(21 131 196 / 0.07), transparent 60%),
    var(--white);
  box-shadow: var(--shadow-sm);
}

.cities__head {
  max-width: 40rem;
  margin-bottom: var(--space-3);
}

.cities__title {
  font-size: var(--step-2);
}

.cities__text {
  margin-top: 0.5rem;
  color: var(--muted);
}

.cities__list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: var(--space-4);
}

.cities__item {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.4rem 0.35rem 0.7rem;
  border: 1px solid rgb(52 154 122 / 0.25);
  border-radius: 999px;
  background: #f1f8f5;
  color: var(--green-900);
  font-size: var(--step--1);
  font-weight: 600;
  line-height: 1.2;
}

.cities__item .icon {
  flex: none;
  width: 1rem;
  height: 1rem;
  color: var(--green-700);
}

.cities__count {
  display: inline-grid;
  place-items: center;
  min-width: 1.5rem;
  height: 1.5rem;
  margin-left: 0.15rem;
  padding: 0 0.4rem;
  border-radius: 999px;
  background: var(--green-700);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.cities__cta {
  width: 100%;
}

@media (min-width: 768px) {
  .cities {
    padding: var(--space-5);
  }

  .cities__cta {
    width: auto;
  }
}

/* Dúvidas ------------------------------------------------------------------ */

.faq-section__grid {
  display: grid;
  gap: var(--space-4);
}

@media (min-width: 900px) {
  .faq-section__grid {
    grid-template-columns: 0.8fr 1.2fr;
    gap: var(--space-6);
  }
}
