/* ============================================================
   responsive.css — toda a adaptação por largura de tela
   Carregado por último. Os outros arquivos descrevem o layout
   desktop; as três faixas abaixo o reescrevem.

   Os pontos de corte são os do projeto original: 991px (tablet),
   767px (celular deitado) e 479px (celular em pé). Tamanhos de
   fonte, raios e espaçamentos não aparecem aqui — mudam sozinhos
   porque os tokens são redefinidos por breakpoint em tokens.css.
   ============================================================ */

/* ============================================================
   ≤ 991px — Tablet
   ============================================================ */

@media (max-width: 991px) {
  /* ---------- Navbar: os links viram painel deslizante ------- */

  .navbar {
    padding-block: 1rem;
  }

  .navbar__right {
    display: flex;
    flex-flow: row;
    justify-content: center;
    align-items: center;
    gap: 0.75rem;
  }

  .burger {
    display: block;
    width: 2.75rem;
    height: 2.75rem;
    padding: 0.375rem;
  }

  .nav {
    position: fixed;
    inset: 0;
    min-height: 100dvh;
    overflow-y: auto;
    padding: 2rem;
    padding-top: 5.5rem;
    border-radius: 0;
    transform: translateY(-100%);
    transition: transform 0.4s ease;
  }

  .nav.is-open {
    transform: translateY(0);
  }

  .nav__list {
    flex-flow: column;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 1.25rem;
  }

  .nav__link {
    padding: 0;
  }

  /* Sem pílula de hover: o painel já é sólido. */
  .nav__link-bg {
    display: none;
  }

  .dropdown {
    width: 100%;
  }

  .dropdown__label {
    justify-content: flex-start;
    align-items: center;
  }

  /* O painel deixa de flutuar e passa a empurrar a lista. */
  .dropdown__panel {
    position: static;
    display: none;
    width: 100%;
    padding-top: 1rem;
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .dropdown.is-open .dropdown__panel {
    display: block;
  }

  /* ---------- Cabeçalhos de section -------------------------- */

  .section-head {
    margin-bottom: 2.5rem;
  }

  .section-head--left {
    text-align: center;
  }

  .section-head--about    { max-width: 45rem; margin-bottom: 2.5rem; }
  .section-head--process  { max-width: 27rem; }
  .section-head--metrics,
  .section-head--features { max-width: 30rem; }
  .section-head--pricing,
  .section-head--blog     { max-width: 25rem; }
  .section-head--reviews  { max-width: 39rem; }

  .section-head__tag-wrap   { margin-bottom: 1.25rem; }
  .section-head__title--gap { margin-bottom: 0.5rem; }

  /* ---------- Botões ----------------------------------------- */

  .btn--secondary.btn--tall {
    padding-block: 1rem;
  }

  /* ---------- Hero ------------------------------------------- */

  .hero {
    padding-top: 7.5rem;
    padding-bottom: 5rem;
  }

  .hero__content {
    max-width: 38rem;
    margin-bottom: 2.5rem;
  }

  .hero__title { margin-bottom: 0.75rem; }
  .hero__text  { margin-bottom: 1.5rem; }
  .hero__tag   { margin-bottom: 1rem; }

  .hero__overlays {
    gap: 0.75rem;
  }

  /* ---------- About ------------------------------------------ */

  .about__grid {
    grid-template-columns: 1fr 1fr;
  }

  /* ---------- Overview ---------------------------------------
     Aqui a section troca de mecanismo: sem trilho de 300vh, sem
     painel preso e sem pilha. Os três cartões passam a conviver
     numa grade e o texto sobe para cima da imagem. Por isso o
     js/overview.js também desliga abaixo de 992px — se a
     animação continuasse ativa ela empurraria cartões que agora
     têm lugar próprio.
     ---------------------------------------------------------- */

  .overview__track {
    height: auto;
  }

  .overview__sticky {
    position: static;
  }

  .overview__layout {
    flex-flow: column;
    justify-content: flex-start;
    align-items: stretch;
  }

  .overview__media {
    max-width: 100%;
  }

  .overview__panel {
    order: -9999;
    max-width: 100%;
  }

  .overview__stack {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
  }

  .overview__item[data-overview-item="2"],
  .overview__item[data-overview-item="3"] {
    position: static;
    transform: none;
  }

  .overview__title {
    max-width: 28rem;
    margin-inline: auto;
  }

  .overview__text {
    margin-inline: auto;
  }

  .overview-card {
    padding: 1.5rem;
  }

  .overview-card__icon {
    width: 3rem;
    height: 3rem;
  }

  .overview-card__icon img {
    width: 1.5rem;
    height: 1.5rem;
  }

  .overview-card__tag {
    padding-inline: 1rem;
  }

  /* ---------- Process ---------------------------------------- */

  .process__grid {
    grid-template-columns: 1fr 1fr;
  }

  .process-card {
    padding-top: 1.25rem;
  }

  /* ---------- Metrics ---------------------------------------- */

  .metrics__media {
    height: 24rem;
  }

  .metrics__tabs {
    margin-top: 1.25rem;
    gap: 1rem;
  }

  .metrics-tab {
    padding-block: 1rem;
  }

  /* Com pouca largura o rótulo e o número empilham e centralizam. */
  .metrics-tab__row {
    flex-flow: column;
  }

  .metrics-tab__info {
    text-align: center;
  }

  .metrics-tab__icon {
    width: 2rem;
    height: 2rem;
  }

  .metrics-tab__icon img {
    width: 1rem;
    height: 1rem;
  }

  .appointment__top {
    margin-bottom: 1.25rem;
  }

  .appointment__arrow {
    width: 8px;
  }

  .appointment__grid {
    margin-bottom: 1rem;
  }

  .appointment__chat {
    max-width: 1.5rem;
  }

  /* ---------- Features --------------------------------------- */

  .slider {
    padding-bottom: 5rem;
  }

  .slide__grid {
    grid-template-columns: 1fr 1.4fr;
    gap: 1.25rem;
  }

  .slide__icon {
    margin-bottom: 1.25rem;
  }

  .slider__arrow {
    width: 3rem;
    height: 3rem;
  }

  .slider__arrow::before {
    width: 1rem;
    height: 1rem;
  }

  .slider__arrow--prev { margin-left: -1.75rem; }
  .slider__arrow--next { margin-right: -1.75rem; }

  /* ---------- Reviews ---------------------------------------- */

  .reviews {
    grid-template-columns: 1fr 1fr;
  }

  .review {
    padding: 1.5rem;
  }

  .review__rating {
    margin-bottom: 1.25rem;
  }

  .review__quote {
    max-width: 2rem;
  }

  /* ---------- Pricing ---------------------------------------- */

  .plans {
    gap: 2.5rem;
  }

  .plan {
    gap: 1.25rem;
  }

  .plan__feature-list {
    gap: 1rem;
  }

  /* ---------- Blog ------------------------------------------- */

  .posts {
    grid-template-columns: 1fr 1fr;
  }

  .post {
    padding: 1.5rem;
  }

  .post__inner {
    min-height: 20rem;
  }

  .post__media {
    max-width: 11rem;
  }

  /* ---------- Rodapé ----------------------------------------- */

  .newsletter {
    margin-bottom: 2.5rem;
    padding: 1.5rem;
  }

  .newsletter__form-wrap {
    max-width: 22rem;
  }

  .newsletter__field {
    height: 3.5rem;
    padding-inline: 1.25rem;
  }

  .newsletter__submit {
    right: 0.25rem;
    padding: 0.75rem 1.5rem;
  }

  .footer__main {
    margin-bottom: 2rem;
  }

  .footer__grid {
    grid-template-columns: 1fr 1fr;
    row-gap: 2rem;
  }

  .footer__contact,
  .footer__contact--right {
    grid-column: 1 / -1;
    max-width: none;
    text-align: center;
  }

  .footer__col {
    text-align: center;
  }

  .footer__col-title {
    text-align: center;
  }

  .footer__links {
    align-items: center;
  }

  .footer__copy {
    max-width: 24rem;
  }
}

/* ============================================================
   ≤ 767px — Celular deitado
   ============================================================ */

@media (max-width: 767px) {
  /* ---------- Navbar ----------------------------------------- */

  .navbar {
    padding-block: 0.75rem;
  }

  .navbar__logo {
    max-width: 7.5rem;
  }

  .burger {
    width: 2.5rem;
    height: 2.5rem;
    padding: 0.3rem;
  }

  .nav {
    padding: 1.5rem;
    padding-top: 4.75rem;
  }

  .nav__list {
    gap: 1rem;
  }

  .dropdown__label {
    gap: 0.25rem;
  }

  .dropdown__panel {
    width: 100%;
  }

  .dropdown__card {
    padding: 1rem;
  }

  .dropdown__grid {
    grid-template-columns: 1fr 1fr;
  }

  .dropdown__col {
    gap: 0.5rem;
  }

  /* ---------- Cabeçalhos ------------------------------------- */

  .section-head {
    margin-bottom: 1.875rem;
  }

  .section-head--about    { max-width: 38rem; margin-bottom: 1.875rem; }
  .section-head--process  { max-width: 22rem; }
  .section-head--metrics,
  .section-head--features { max-width: 26rem; }
  .section-head--pricing,
  .section-head--blog     { max-width: 22rem; }

  .section-head__tag-wrap {
    margin-bottom: 1rem;
  }

  .btn--primary.btn--tall {
    padding-block: 1rem;
  }

  /* ---------- Hero ------------------------------------------- */

  .hero {
    padding-top: 7rem;
    padding-bottom: 4.25rem;
  }

  .hero__content {
    max-width: 32rem;
    margin-bottom: 1.75rem;
  }

  .hero__text {
    max-width: 26rem;
    margin-bottom: 1.25rem;
  }

  .hero__tag {
    margin-bottom: 0.75rem;
  }

  /* ---------- About ------------------------------------------ */

  .about__grid {
    gap: 1.25rem;
  }

  .about-card {
    padding: 1.25rem;
  }

  .about-card__body {
    gap: 1.5rem;
  }

  .about__lede {
    margin-bottom: 1.25rem;
  }

  /* ---------- Overview ---------------------------------------- */

  .overview__title {
    max-width: 24rem;
  }

  .overview__text {
    max-width: 22rem;
  }

  .overview-card {
    padding: 1.25rem;
  }

  .overview-card__top {
    margin-bottom: 1.25rem;
  }

  .overview-card__icon {
    width: 2.5rem;
    height: 2.5rem;
  }

  .overview-card__icon img {
    width: 1.25rem;
    height: 1.25rem;
  }

  .overview-card__tag {
    padding-inline: 0.75rem;
  }

  /* ---------- Process ---------------------------------------- */

  .process__grid {
    gap: 1.25rem;
  }

  .process-card {
    padding-top: 1rem;
  }

  .process-card__body {
    margin-bottom: 1.25rem;
    padding-inline: 0;
  }

  .process-card__icon {
    margin-bottom: 1rem;
  }

  /* ---------- Metrics ----------------------------------------
     O cartão de consulta para de flutuar sobre a foto e passa a
     vir logo abaixo dela, em fluxo normal.
     ---------------------------------------------------------- */

  .metrics__media {
    height: auto;
    margin-bottom: 0.75rem;
  }

  .appointment {
    position: static;
    max-width: 100%;
    transform: none;
  }

  .metrics-tab__row {
    gap: 0.5rem;
  }

  .appointment__top {
    margin-bottom: 1rem;
  }

  .appointment__grid {
    margin-bottom: 0.75rem;
    gap: 1rem;
  }

  .appointment__icon {
    width: 1.5rem;
    height: 1.5rem;
  }

  .appointment__doctor {
    padding: 0.75rem;
  }

  .appointment__avatar {
    width: 2.5rem;
    height: 2.5rem;
  }

  .appointment__doctor-name {
    margin-bottom: 0.375rem;
  }

  .appointment__chat {
    max-width: 1.25rem;
  }

  /* ---------- Features ---------------------------------------- */

  .slide__grid {
    display: flex;
    flex-flow: column;
    justify-content: flex-start;
    gap: 1rem;
  }

  .slider__arrow {
    width: 2.5rem;
    height: 2.5rem;
  }

  .slider__arrow::before {
    width: 0.75rem;
    height: 0.75rem;
  }

  /* ---------- Reviews ----------------------------------------- */

  .review {
    padding: 1.25rem;
  }

  .review__quote {
    max-width: 1.75rem;
  }

  /* ---------- Pricing ----------------------------------------- */

  .plan {
    display: flex;
    flex-flow: column;
    align-items: stretch;
    gap: 1rem;
  }

  .plan__summary,
  .plan__features {
    padding: 1.5rem;
  }

  .plan__feature {
    background-size: 16px 16px;
  }

  /* ---------- Blog -------------------------------------------- */

  .posts {
    grid-template-columns: 1fr;
  }

  .post__inner {
    min-height: 16rem;
  }

  /* ---------- Rodapé ------------------------------------------ */

  .newsletter {
    margin-bottom: 1.5rem;
    padding: 1.25rem;
  }

  .newsletter__inner {
    flex-flow: column;
    align-items: stretch;
    gap: 1.5rem;
  }

  .newsletter__form-wrap {
    max-width: 100%;
  }

  .newsletter__field {
    height: 3rem;
  }

  .newsletter__submit {
    padding: 0.625rem 1.25rem;
  }

  .footer__main {
    margin-bottom: 1.5rem;
  }

  .footer__grid {
    grid-template-columns: 1fr;
    row-gap: 1.5rem;
  }

  .footer__contact,
  .footer__contact--right,
  .footer__col {
    grid-column: 1 / -1;
  }

  .footer__bottom {
    padding-block: 1rem;
  }

  .footer__bottom-row {
    flex-flow: column;
    align-items: stretch;
  }

  .footer__copy {
    max-width: 100%;
    text-align: center;
  }

  .footer__social-wrap {
    justify-content: center;
    align-items: center;
  }
}

/* ============================================================
   ≤ 479px — Celular em pé
   ============================================================ */

@media (max-width: 479px) {
  /* ---------- Navbar ------------------------------------------ */

  .navbar__logo {
    max-width: 6.25rem;
  }

  /* Sem espaço para o botão ao lado do hambúrguer. */
  .navbar__cta {
    display: none;
  }

  .burger {
    width: 2.25rem;
    height: 2.25rem;
    padding: 0.25rem;
  }

  .nav {
    padding-inline: 1.25rem;
  }

  .dropdown__label {
    gap: 0.375rem;
  }

  .section-head__tag-wrap {
    margin-bottom: 0.75rem;
  }

  /* ---------- Hero -------------------------------------------- */

  .hero {
    padding-top: 6.25rem;
    padding-bottom: 3.75rem;
  }

  .hero__content {
    max-width: 25rem;
    margin-bottom: 1.5rem;
  }

  .hero__text {
    max-width: 24rem;
  }

  /* ---------- About ------------------------------------------- */

  .about__grid {
    display: flex;
    flex-flow: column;
    justify-content: flex-start;
  }

  /* ---------- Overview ---------------------------------------- */

  .overview__stack {
    grid-template-columns: 1fr;
  }

  /* ---------- Process ----------------------------------------- */

  .process__grid {
    display: flex;
    flex-flow: column;
    justify-content: flex-start;
  }

  .process-card__body {
    margin-bottom: 1rem;
  }

  .process-card__icon {
    margin-bottom: 0.75rem;
  }

  /* ---------- Metrics ------------------------------------------
     As abas viram duas colunas que quebram, em vez de três fixas.
     ------------------------------------------------------------ */

  .metrics__tabs {
    display: flex;
    flex-flow: wrap;
    justify-content: center;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .metrics-tab {
    width: 100%;
    max-width: 48%;
  }

  .metrics-tab__icon {
    width: 1.75rem;
    height: 1.75rem;
  }

  .appointment {
    padding: 1rem;
  }

  .appointment__arrow {
    width: 6px;
  }

  .appointment__grid {
    gap: 0.75rem;
  }

  .appointment__icon {
    width: 1.25rem;
    height: 1.25rem;
  }

  /* ---------- Features ----------------------------------------- */

  .slide__grid {
    gap: 0.75rem;
  }

  .slide__panel {
    padding: 1.25rem;
  }

  .slide__icon {
    width: 2.5rem;
    height: 2.5rem;
    margin-bottom: 0.75rem;
  }

  .slide__text {
    margin-bottom: 1.25rem;
  }

  /* ---------- Reviews ------------------------------------------ */

  .reviews {
    grid-template-columns: 1fr;
  }

  /* ---------- Pricing ------------------------------------------ */

  .plans {
    gap: 2rem;
  }

  .plan__summary,
  .plan__features {
    padding: 1.25rem;
  }

  .plan__summary-inner {
    gap: 1.5rem;
  }

  .plan__features-title {
    margin-bottom: 0.5rem;
  }

  .plan__feature-list {
    column-gap: 0.75rem;
    row-gap: 0.5rem;
  }

  /* ---------- Blog --------------------------------------------- */

  .post {
    padding: 1.25rem;
  }

  .post__inner {
    min-height: 15rem;
  }

  .post__media {
    max-width: 8.5rem;
  }

  .post__tag {
    padding: 0.5rem 1rem;
  }

  /* ---------- Rodapé ------------------------------------------- */

  .newsletter {
    padding-top: 1rem;
  }

  .newsletter__inner {
    gap: 1.25rem;
  }

  .newsletter__title {
    margin-bottom: 0.25rem;
  }

  .newsletter__submit {
    padding-block: 0.5rem;
  }
}

/* Ajustes de conteúdo Dentrio nos breakpoints existentes. */
@media (max-width: 991px) {
  .navbar__login {
    display: none;
  }

  .newsletter__inner,
  .newsletter__actions {
    align-items: stretch;
  }

  .newsletter__inner {
    flex-flow: column;
  }

  .newsletter__actions {
    justify-content: flex-start;
  }

  .footer__contact {
    max-width: 100%;
  }
}

@media (max-width: 767px) {
  .hero__tag-badge {
    display: none;
  }

  .newsletter__brand {
    align-items: flex-start;
  }

  .newsletter__brand > img {
    width: 3.5rem;
    height: 3.5rem;
  }
}

@media (max-width: 479px) {
  .newsletter__brand,
  .newsletter__actions {
    flex-flow: column;
  }

  .newsletter__actions .btn {
    width: 100%;
  }

  .plan__head {
    flex-flow: column-reverse;
    gap: 1rem;
  }

  .plan__amount {
    font-size: var(--fs-title-sm);
  }
}
