/* =========================================================
   Responsividade — adaptação técnica do layout desktop (1920px)
   Breakpoints: 1330 (desktop intermediário) · 1200 (tablet) · 767 (mobile)
   Obs.: acima de 1200px o site recebe zoom de 70% (--site-scale em styles.css),
   então 1201px reais já equivalem a ~1716px de layout.
   ========================================================= */

/* ---------- Desktop intermediário (1201–1330px reais ≈ 1716–1900px de layout) ---------- */
@media (min-width: 1201px) and (max-width: 1330px) {
  :root {
    --gutter: 80px;
  }

  .navbar__list {
    gap: 32px;
  }

  .btn--login {
    width: 300px;
  }

  .cert-card {
    padding-left: 32px;
    padding-right: 28px;
  }

  .cert-card__badge {
    right: 28px;
  }

  .cert-card__title {
    font-size: 21px;
    letter-spacing: 0;
  }

  .footer__contact p {
    white-space: normal;
  }
}

/* ---------- Base compartilhada com tablet (≤ 1200px, sem zoom) ---------- */
@media (max-width: 1200px) {
  :root {
    --gutter: 64px;
    --container-edge: 0px;
  }

  .topbar {
    margin-right: 0;
  }

  .navbar {
    width: 100%;
    margin-left: 0;
    padding: 0 40px;
  }

  .navbar__logo img {
    width: 180px;
  }

  .navbar__list {
    gap: 32px;
    margin-left: 56px;
  }

  .navbar__link,
  .topbar__link {
    font-size: 17px;
  }

  .btn--login {
    width: 280px;
    height: 56px;
    font-size: 17px;
  }

  .hero__content {
    padding-top: 150px;
    padding-left: 0;
  }

  .hero__title {
    font-size: 60px;
    line-height: 72px;
  }

  .hero__image {
    left: auto;
    right: 2%;
    top: 130px;
    width: 700px;
  }

  .hero__actions .btn {
    font-size: 18px;
  }

  .btn--hero-primary {
    width: 340px;
  }

  .btn--outline {
    width: 360px;
  }

  .steps {
    height: auto;
    padding: 64px 0;
  }

  .steps__list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 32px;
    padding-top: 0;
  }

  .step--3 {
    margin-right: 0;
  }

  .step__title {
    font-size: 20px;
    line-height: 28px;
  }

  .step__text {
    font-size: 18px;
    line-height: 24px;
  }

  .step--1 .step__text,
  .step--2 .step__text,
  .step--3 .step__text {
    max-width: none;
  }

  .certificates,
  .about,
  .faq,
  .footer {
    height: auto;
  }

  .certificates {
    padding-bottom: 96px;
  }

  .about {
    padding-bottom: 112px;
  }

  .faq {
    padding-bottom: 112px;
  }

  .footer {
    padding-bottom: 48px;
  }

  .certificates__grid {
    gap: 24px;
  }

  .cert-card {
    height: auto;
    min-height: 234px;
    padding: 32px 28px 32px;
  }

  .cert-card__badge {
    top: 32px;
    right: 28px;
    width: 96px;
  }

  .cert-card__title {
    font-size: 19px;
    line-height: 28px;
  }

  .cert-card__text {
    font-size: 17px;
    line-height: 26px;
  }

  .presential {
    padding-left: 56px;
    padding-right: 460px;
  }

  .presential__text {
    font-size: 21px;
    line-height: 28px;
  }

  .presential__text br,
  .br-desktop {
    display: none;
  }

  .about__image {
    width: 46%;
    height: auto;
    aspect-ratio: 699 / 755;
  }

  .about__content {
    margin-left: 64px;
    padding-top: 64px;
  }

  .about__title {
    font-size: 54px;
    line-height: 64px;
  }

  .about__text {
    font-size: 20px;
    line-height: 28px;
  }

  .testimonials {
    --marquee-gap: 28px;
  }

  .testimonial {
    width: min(440px, 82vw);
    height: auto;
    padding-bottom: 28px;
  }

  .testimonial__text {
    white-space: normal;
  }

  .testimonial__text br {
    display: none;
  }

  .faq-item__button {
    font-size: 19px;
    letter-spacing: 0.6px;
    padding: 20px 40px;
  }

  .faq-item__panel {
    padding: 0 40px 28px;
  }

  .help {
    width: 100%;
    margin-left: 0;
    gap: 32px;
  }

  .help__title {
    font-size: 32px;
    line-height: 40px;
  }

  .help__text {
    font-size: 20px;
    line-height: 28px;
  }

  .btn--whatsapp {
    flex: none;
    width: 360px;
    font-size: 18px;
  }

  .footer__brand {
    font-size: 96px;
    line-height: 110px;
  }

  .footer__grid {
    grid-template-columns: 1.5fr 1fr 1.4fr;
    gap: 48px;
    margin-top: 80px;
  }

  .footer__lgpd,
  .footer__links,
  .footer__contact,
  .footer__bottom {
    font-size: 18px;
  }

  .footer__contact p {
    white-space: normal;
  }

  .footer__bottom {
    margin-right: 0;
  }
}

/* ---------- Tablet (≤ 1200px) ---------- */
@media (max-width: 1200px) {
  :root {
    --gutter: 40px;
  }

  .hero {
    height: auto;
    padding-bottom: 0;
  }

  .topbar {
    gap: 24px;
    padding-top: 20px;
  }

  .topbar__link {
    font-size: 14px;
  }

  :root {
    --nav-fixed-top: 12px;
  }

  html {
    scroll-padding-top: 124px;
  }

  .navbar-slot {
    height: 96px;
    margin-top: 14px;
  }

  .navbar {
    height: 96px;
    padding: 0 24px;
    border-radius: 28px;
  }

  .navbar__logo img {
    width: 150px;
  }

  .navbar__toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    width: 48px;
    height: 48px;
    margin-left: auto;
    padding: 0 10px;
  }

  .navbar__toggle span {
    display: block;
    height: 2px;
    background: var(--color-white);
    border-radius: 2px;
    transition: transform 0.2s ease, opacity 0.2s ease;
  }

  .navbar__toggle[aria-expanded='true'] span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }

  .navbar__toggle[aria-expanded='true'] span:nth-child(2) {
    opacity: 0;
  }

  .navbar__toggle[aria-expanded='true'] span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }

  .navbar__menu {
    position: absolute;
    top: calc(100% + 12px);
    left: 0;
    right: 0;
    z-index: 10;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 24px;
    padding: 28px 24px;
    border: 1.5px solid var(--color-border);
    border-radius: 28px;
    background: var(--color-background-dark);
  }

  .navbar__menu.is-open {
    display: flex;
  }

  .navbar__list {
    flex-direction: column;
    gap: 20px;
    margin-left: 0;
  }

  .navbar__link {
    font-size: 18px;
  }

  .btn--login {
    width: 100%;
    margin-left: 0;
  }

  .hero__inner {
    display: flex;
    flex-direction: column;
  }

  .hero__content {
    padding-top: 72px;
    max-width: 640px;
  }

  .hero__title {
    font-size: 48px;
    line-height: 58px;
  }

  .hero__actions {
    flex-wrap: wrap;
    gap: 20px;
    margin-left: 0;
  }

  .hero__image {
    position: relative;
    top: auto;
    right: auto;
    width: min(560px, 80%);
    margin: 24px 0 0 auto;
    margin-right: 0;
    margin-bottom: -18%;
  }

  .steps {
    position: relative;
    z-index: 3;
  }

  .steps__list {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .certificates {
    padding-top: 88px;
  }

  .section-title {
    font-size: 40px;
    line-height: 50px;
  }

  .certificates__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 40px;
  }

  .presential {
    flex-direction: column;
    align-items: stretch;
    height: auto;
    margin-top: 48px;
    padding: 40px;
  }

  /* tablet e celular: a foto ficaria pequena e desconfigurada — só o texto, centralizado */
  .presential__image {
    display: none;
  }

  .presential__text {
    margin-top: 0;
  }

  .about {
    padding-top: 88px;
  }

  .about__grid {
    flex-direction: column;
  }

  .about__image {
    width: 100%;
    max-width: 699px;
    margin-left: 0;
  }

  .about__content {
    margin-left: 0;
    padding-top: 48px;
  }

  .about__title {
    font-size: 44px;
    line-height: 54px;
  }

  .about__text {
    max-width: none;
  }

  .testimonials {
    --marquee-fade: 10%;
    margin-top: 64px;
  }

  .faq {
    padding-top: 88px;
  }

  .faq__list {
    margin-top: 40px;
    gap: 16px;
  }

  .help {
    flex-direction: column;
    align-items: flex-start;
    height: auto;
    margin-top: 56px;
    padding: 40px;
  }

  .footer {
    padding-top: 72px;
  }

  .footer__brand {
    /* "Tabelionato de Notas" precisa caber numa linha */
    font-size: min(72px, calc((100vw - 96px) / 12.4));
    line-height: 1.17;
  }

  .footer__grid {
    grid-template-columns: 1fr 1fr;
    margin-top: 56px;
  }

  .footer__col--about {
    grid-column: 1 / -1;
  }

  .footer__bottom {
    gap: 16px;
  }
}

/* ---------- Mobile (≤ 767px) ---------- */
@media (max-width: 767px) {
  :root {
    --gutter: 16px;
  }

  .topbar {
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px 18px;
    padding-top: 14px;
  }

  .topbar__link {
    font-size: 12px;
    letter-spacing: 0.5px;
  }

  html {
    scroll-padding-top: 104px;
  }

  .navbar-slot {
    height: 80px;
  }

  .navbar {
    height: 80px;
    padding: 0 16px;
    border-radius: 22px;
  }

  .navbar__logo img {
    width: 128px;
  }

  .hero__content {
    padding-top: 48px;
  }

  .hero__title {
    /* maior, mas "SEM SAIR DE CASA." ainda cabe numa linha em telas de 320px */
    font-size: min(38px, calc((100vw - 32px) / 9.6));
    line-height: 1.22;
  }

  .hero__actions {
    flex-direction: column;
    margin-top: 28px;
  }

  .hero__actions .btn {
    width: 100%;
    height: 56px;
    padding-left: 0;
    justify-content: center;
    font-size: 15px;
  }

  /* imagem maior e centralizada; as sobras transparentes do PNG ficam fora da tela */
  .hero__image {
    width: 140%;
    max-width: none;
    /* a figura fica um pouco à direita dentro do PNG: desloca para centralizar */
    margin-left: -24%;
    margin-right: -16%;
  }

  .steps {
    padding: 48px 0;
  }

  .step__icon {
    width: 56px;
    height: 54px;
    margin-top: 4px;
  }

  .step__icon .icon {
    width: 28px;
    height: 28px;
  }

  .step__title {
    font-size: 16px;
    line-height: 24px;
  }

  .step__text {
    font-size: 15px;
    line-height: 22px;
  }

  .certificates,
  .about,
  .faq {
    padding-top: 64px;
    padding-bottom: 72px;
  }

  .section-title {
    font-size: 26px;
    line-height: 34px;
  }

  .section-title br {
    display: none;
  }

  .certificates__grid {
    grid-template-columns: 1fr;
    gap: 16px;
    margin-left: 0;
  }

  .cert-card {
    min-height: 0;
    padding: 24px;
  }

  .cert-card__badge {
    top: 24px;
    right: 24px;
  }

  .cert-card__title {
    margin-top: 18px;
    font-size: 17px;
  }

  .cert-card__text {
    font-size: 15px;
  }

  .presential {
    padding: 28px 24px;
  }

  .presential__text {
    font-size: 17px;
    line-height: 26px;
  }

  .about__image {
    border-radius: 20px;
  }

  .about__title {
    font-size: 30px;
    line-height: 38px;
  }

  .about__title br {
    display: none;
  }

  .about__text {
    margin-top: 20px;
    font-size: 16px;
    line-height: 24px;
  }

  .btn--about,
  .btn--faq {
    width: 100%;
    height: 56px;
    margin-left: 0;
    font-size: 15px;
  }

  .testimonials {
    margin-top: 48px;
  }

  .testimonial {
    padding: 20px 20px 24px;
    border-radius: 22px;
  }

  .faq-item {
    border-radius: 14px;
  }

  .faq-item__button {
    min-height: 72px;
    padding: 16px 20px;
    font-size: 14px;
    line-height: 20px;
    letter-spacing: 0.3px;
  }

  .faq-item__panel {
    padding: 0 20px 20px;
    font-size: 15px;
    line-height: 24px;
  }

  .btn--faq {
    margin-top: 32px;
  }

  .help {
    margin-top: 40px;
    padding: 28px 20px;
  }

  .help__title {
    font-size: 22px;
    line-height: 30px;
  }

  .help__text {
    font-size: 15px;
    line-height: 23px;
  }

  .btn--whatsapp {
    width: 100%;
    height: 56px;
    font-size: 14px;
  }

  .footer {
    padding-top: 56px;
  }

  .footer__container {
    padding-left: 0;
  }

  .footer__brand {
    font-size: min(40px, calc((100vw - 32px) / 12.4));
    line-height: 1.2;
  }

  .footer__grid {
    grid-template-columns: 1fr;
    gap: 36px;
    margin-top: 40px;
  }

  .footer__logo {
    width: 170px;
  }

  .footer__lgpd {
    margin-top: 24px;
  }

  .footer__lgpd,
  .footer__links,
  .footer__contact,
  .footer__bottom {
    font-size: 15px;
  }

  .footer__links {
    line-height: 32px;
  }

  .footer__contact {
    line-height: 26px;
  }

  .footer__contact p + p {
    margin-top: 8px;
  }

  .footer__heading {
    font-size: 18px;
  }

  .footer__bottom {
    flex-direction: column;
    margin-top: 40px;
    padding-top: 24px;
  }
}

/* ---------- Movimento reduzido: depoimentos sem animação, com rolagem manual ---------- */
@media (prefers-reduced-motion: reduce) {
  .testimonials {
    overflow-x: auto;
    -webkit-mask-image: none;
            mask-image: none;
  }
}
