@media (min-width: 600px) {
  :root {
    --gutter: 32px;
  }

  .creds__grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .creds__item:nth-child(1),
  .creds__item:nth-child(2) {
    border-bottom: none;
  }

  .creds__item::before {
    content: "";
    position: absolute;
    right: 0;
    top: 22%;
    height: 56%;
    width: 1px;
    background: var(--rule);
  }

  .creds__item:last-child::before {
    display: none;
  }

  .care {
    grid-template-columns: repeat(2, 1fr);
    column-gap: 2.4rem;
  }

  .urgencias__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .urg-card {
    aspect-ratio: 1 / 1;
  }

  .quotes {
    grid-template-columns: repeat(2, 1fr);
    column-gap: 2.4rem;
  }

  .carousel__slide {
    flex-basis: 46%;
  }

  .footer__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2.4rem 3rem;
  }
}

@media (min-width: 900px) {
  :root {
    --header-h: 88px;
  }

  .nav-toggle {
    display: none;
  }

  .nav {
    position: static;
    flex-direction: row;
    align-items: center;
    gap: 0.2rem;
    padding: 0;
    background: none;
    border: none;
    box-shadow: none;
    transform: none;
    opacity: 1;
    visibility: visible;
  }

  .nav__link {
    padding: 0.5rem 0.9rem;
    font-size: 0.86rem;
    border: none;
    color: var(--ink-soft);
  }

  .nav__link:hover {
    padding-left: 0.9rem;
    color: var(--navy);
  }

  .nav__link.is-active {
    color: var(--navy);
  }

  .nav__sep {
    display: block;
    width: 1px;
    height: 20px;
    margin-inline: 0.9rem;
    background: var(--rule-strong);
  }

  .nav__phone {
    margin-top: 0;
    margin-right: 1rem;
    font-size: 0.85rem;
  }

  .nav__cta {
    margin-top: 0;
  }

  .hero {
    min-height: min(100svh, 960px);
    padding-top: calc(var(--header-h) + 56px);
    padding-bottom: 80px;
  }

  .hero__inner {
    max-width: none;
    padding-right: clamp(40px, 6vw, 96px);
    padding-left: clamp(40px, 6vw, 96px);
  }

  .hero__content {
    max-width: 560px;
  }

  .hero__bg img {
    object-position: 28% center;
  }

  .nav__link,
  .nav__phone,
  .nav__cta {
    white-space: nowrap;
  }

  .site-header .nav__link,
  .site-header .nav__phone {
    color: var(--navy);
    text-shadow: 0 2px 14px rgba(255, 255, 255, 0.9),
      0 1px 3px rgba(255, 255, 255, 0.9);
  }

  .site-header .nav__link:hover,
  .site-header .nav__link.is-active {
    color: var(--blue);
  }

  .site-header .nav__phone .ico {
    color: var(--blue);
  }

  .site-header .nav__sep {
    background: rgba(10, 37, 64, 0.22);
  }

  .site-header.is-scrolled .nav__link,
  .site-header.is-scrolled .nav__phone {
    text-shadow: none;
  }

  .site-header.is-scrolled .nav__link {
    color: var(--ink-soft);
  }

  .site-header.is-scrolled .nav__link:hover,
  .site-header.is-scrolled .nav__link.is-active {
    color: var(--navy);
  }

  .site-header.is-scrolled .nav__phone {
    color: var(--navy);
  }

  .site-header.is-scrolled .nav__phone .ico {
    color: var(--blue);
  }

  .site-header.is-scrolled .nav__sep {
    background: var(--rule-strong);
  }

  .urgencias__grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 1.2rem;
  }

  .urg-card {
    aspect-ratio: 1 / 1;
    padding: clamp(1.5rem, 2.2vw, 2rem);
  }

  .sobre__grid {
    grid-template-columns: 0.85fr 1.15fr;
    align-items: center;
  }

  .care {
    grid-template-columns: repeat(4, 1fr);
    column-gap: 2.2rem;
  }

  .care__item {
    border-bottom: none;
    padding-right: 2.2rem;
    border-right: 1px solid var(--rule);
  }

  .care__item:last-child {
    border-right: none;
    padding-right: 0;
  }

  .quotes {
    grid-template-columns: repeat(3, 1fr);
    column-gap: 2.6rem;
  }

  .quote {
    border-bottom: none;
    padding-right: 2.6rem;
    border-right: 1px solid var(--rule);
  }

  .quote:last-child {
    border-right: none;
    padding-right: 0;
  }

  .carousel__slide {
    flex-basis: 31.5%;
  }
  .carousel__btn {
    display: flex;
  }
  .carousel__viewport {
    padding-inline: 64px;
  }

  .footer__grid {
    grid-template-columns: 1.4fr 1fr 1fr 1.1fr;
    gap: 3rem;
  }

  .footer__bottom {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }

  .modal__dialog {
    max-width: 600px;
  }

  .treats {
    gap: 1.8rem;
  }

  .treat {
    grid-template-columns: 1fr 1fr;
    align-items: stretch;
  }

  .treat .card__media {
    aspect-ratio: auto;
    min-height: 360px;
    height: 100%;
    border-bottom: none;
    border-right: 1px solid rgba(255, 255, 255, 0.5);
  }

  .treat .card__body {
    padding: clamp(2rem, 4vw, 3.2rem);
  }

  .treat:nth-child(even) .card__media {
    grid-column: 2;
    grid-row: 1;
    border-right: none;
    border-left: 1px solid rgba(255, 255, 255, 0.5);
  }

  .treat:nth-child(even) .card__body {
    grid-column: 1;
    grid-row: 1;
  }
}

@media (min-width: 900px) and (max-width: 1150px) {
  .brand__logo {
    height: 44px;
  }

  .nav__link {
    padding-inline: 0.55rem;
    font-size: 0.8rem;
  }

  .nav__sep {
    margin-inline: 0.55rem;
  }

  .nav__phone {
    margin-right: 0.6rem;
    font-size: 0.78rem;
    white-space: nowrap;
  }

  .nav__cta {
    padding: 0.6rem 1.05rem;
    font-size: 0.7rem;
    white-space: nowrap;
  }
}

@media (min-width: 1200px) {
  .social-float {
    right: 28px;
    bottom: 28px;
    gap: 0.8rem;
  }
  .social-float__btn {
    width: 54px;
    height: 54px;
  }
  .social-float__btn svg {
    width: 26px;
    height: 26px;
  }
  .social-float__btn--whats {
    width: 60px;
    height: 60px;
  }
  .social-float__btn--whats svg {
    width: 31px;
    height: 31px;
  }

  .treats {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

  .treat .card__media {
    min-height: 300px;
  }

  .treat .card__body {
    padding: clamp(1.6rem, 2.4vw, 2.1rem);
  }

  .treat h3 {
    font-size: 1.42rem;
  }

  .treat p {
    font-size: 0.94rem;
  }

  .treat .card__more {
    margin-top: 0.9rem;
  }
}

@media (max-width: 899px) {
  .card__num {
    font-size: 1.3rem;
  }

  /* logo com mais presença no topo */
  .brand__logo {
    height: 62px;
  }

  /* ===== HERO MOBILE =====
     Linha 1: texto ancorado na base, mergulhando no topo da foto.
     Linha 2: foto full-bleed com dissolução longa em gradiente. */
  .hero {
    display: grid;
    grid-template-rows: 1fr minmax(340px, 62svh);
    align-items: stretch;
    min-height: 100svh;
    padding-top: calc(var(--header-h) + 8px);
    padding-bottom: 0;
    background:
      radial-gradient(92% 52% at 50% 0%, var(--blue-soft) 0%, transparent 58%),
      linear-gradient(
        180deg,
        var(--white) 0%,
        var(--blue-faint) 42%,
        #f3efe9 78%,
        #f1ebe3 100%
      );
  }

  /* o véu lateral do desktop não faz sentido nesse layout */
  .hero::after {
    display: none;
  }

  /* a escrita desce até a base e mergulha na imagem */
  .hero__inner {
    grid-row: 1;
    justify-content: center;
    align-items: flex-end;
    margin-bottom: clamp(-150px, -15svh, -104px);
    padding-bottom: 0;
  }

  .hero__content {
    width: 100%;
    max-width: 460px;
    margin-inline: auto;
    justify-content: flex-start;
  }

  /* a foto sai de trás do texto e assume a linha de baixo */
  .hero__bg {
    position: relative;
    grid-row: 2;
    inset: auto;
    min-height: 0;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(
      180deg,
      transparent 0%,
      rgba(0, 0, 0, 0.2) 10%,
      rgba(0, 0, 0, 0.55) 22%,
      rgba(0, 0, 0, 0.88) 33%,
      #000 42%
    );
    mask-image: linear-gradient(
      180deg,
      transparent 0%,
      rgba(0, 0, 0, 0.2) 10%,
      rgba(0, 0, 0, 0.55) 22%,
      rgba(0, 0, 0, 0.88) 33%,
      #000 42%
    );
  }

  .hero__bg img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 31% 10%;
  }

  .hero__title {
    font-size: clamp(1.7rem, 6.8vw, 2.2rem);
    text-shadow: 0 2px 18px rgba(255, 255, 255, 0.9);
  }

  .hero__rule {
    margin-top: 1rem;
  }

  .hero__lead,
  .hero__note {
    text-shadow: 0 2px 16px rgba(255, 255, 255, 0.92);
  }

  .hero__note {
    margin-top: 0.8rem;
  }

  .hero__actions {
    flex-direction: column;
    align-items: center;
    width: 100%;
    margin-top: 1.2rem;
    gap: 0.6rem;
  }

  .hero__actions .btn {
    flex: 0 0 auto;
    width: min(100%, 300px);
    justify-content: center;
  }

  .hero .btn--ghost {
    background: rgba(255, 255, 255, 0.92);
  }
}

@media (max-width: 600px) {
  .section {
    padding-block: clamp(52px, 13vw, 76px);
  }

  .sobre__frame::before {
    inset: -14px -14px 14px 14px;
  }

  .sobre__stamp {
    position: relative;
    bottom: auto;
    left: auto;
    margin-top: 2rem;
    max-width: none;
  }

  .modal {
    padding: 14px;
    align-items: flex-end;
  }
  .modal__dialog {
    max-height: 92vh;
    border-radius: var(--r-lg);
  }

  .social-float {
    right: 14px;
    bottom: 14px;
    gap: 0.6rem;
  }
  .social-float__btn {
    width: 46px;
    height: 46px;
  }
  .social-float__btn svg {
    width: 22px;
    height: 22px;
  }
  .social-float__btn--whats {
    width: 52px;
    height: 52px;
  }
  .social-float__btn--whats svg {
    width: 27px;
    height: 27px;
  }

  .brand__logo {
    height: 56px;
  }

  .footer__logo {
    height: 56px;
  }

  .carousel__slide {
    flex-basis: 84%;
  }
}

@media (max-width: 420px) {
  .hero__title {
    font-size: clamp(1.6rem, 7.6vw, 2rem);
  }

  .brand__logo {
    height: 50px;
  }

  .card__body {
    padding: 1.3rem 1.2rem 1.5rem;
  }

  .modal__content {
    padding: 2.4rem 1.2rem 1.5rem;
  }
  .modal__head {
    gap: 0.7rem;
  }
  .modal__ico {
    width: 48px;
    height: 48px;
  }

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

@media (max-width: 360px) {
  .hero__actions .btn {
    width: 100%;
  }
}

@media (max-height: 560px) and (max-width: 900px) {
  .hero {
    min-height: 0;
    grid-template-rows: auto minmax(220px, 50svh);
  }
  .hero__inner {
    margin-bottom: -56px;
  }
  .modal__dialog {
    max-height: 94vh;
  }
}