/* ==========================================================================
   RESPONSIVO — mesmos breakpoints do original:
   tablet: 810px–1365.98px | mobile: ≤809.98px
   Layouts fluidos (max-width) para nunca gerar rolagem horizontal,
   inclusive com barra de rolagem visível.
   ========================================================================== */

/* ============================== TABLET ============================== */
@media (min-width: 810px) and (max-width: 1365.98px) {
  .page { gap: var(--space-10); }
  .top-anchor,
  .hero-spacer { display: none; }

  /* Header */
  .header {
    height: 101px;
    padding: 10px 24px;
  }
  .header__inner { gap: var(--space-2); max-width: 960px; margin: 0 auto; }
  .header__brand { padding: var(--space-2); }
  .header__logo { width: 142px; height: 47px; }
  .header__spacer { flex: 1 0 24px; height: 20px; }
  .header__nav { gap: var(--space-2); }
  .nav-link { padding: 12px 14px; }
  .header__gap { width: 16px; }

  /* Hero (deck) */
  .hero { padding: 16px 24px 24px; }
  .hero__stage {
    height: calc(100vh - 101px - 40px);
    height: calc(100svh - 101px - 40px);
    min-height: 560px;
  }
  .slide { width: var(--deck-width-tablet); }
  .slide__title { font-size: 45px; }
  .slide__text { font-size: 17px; white-space: normal; max-width: 440px; }
  .slide--1 { --slide-w: 568px; --slide-left: 52px; --slide-gap: 25px; }
  .slide--2 { --slide-w: 556px; --slide-left: 67px; --slide-gap: 39px; }
  .slide--3 { --slide-w: 571px; --slide-left: 75px; --slide-gap: 35px; }
  .slide--4 { --slide-w: 462px; --slide-left: min(274px, calc(100% - 510px)); --slide-gap: 24px; }
  .slide--5 { --slide-w: 482px; --slide-left: 43px; --slide-gap: 23px; }
  .slide--4 .slide__img { object-position: 88% 9.6%; }

  /* Destaques */
  .features { width: 100%; margin-top: 0; padding: 57px 24px 72px; }
  .features__grid { width: 100%; flex-direction: column; align-items: center; gap: 41px; }
  .feature { width: 100%; max-width: 680px; height: 239px; padding-left: 0; align-items: center; }
  .feature__title { font-size: 55px; }
  .feature--sku { --feature-body-w: 298px; }
  .feature--orders { --feature-body-w: 355px; }
  .feature--service { --feature-body-w: 413px; }

  /* Partners */
  .partners { padding: 11px 24px; }
  .partners__panel {
    width: 100%;
    max-width: 700px;
    height: auto;
    padding: 24px 36px 64px;
    flex-direction: column;
    align-items: flex-start;
    gap: 64px;
  }
  .partners__img { width: 100%; max-width: 525px; height: auto; aspect-ratio: 525 / 389; align-self: center; }
  .partners__body { gap: 30px; padding-top: 0; }
  .partners__text { white-space: normal; font-size: 22px; line-height: 1.5; }

  /* Stats */
  .stats { padding: 43px 0; }
  .stats__band { height: auto; flex-direction: column; gap: 79px; padding: 58px 24px; }
  .stat__value { font-size: 85px; }
  .stat__divider { display: none; }

  /* Service */
  .service { padding: 55px 24px; }
  .service__panel {
    width: 100%;
    max-width: 700px;
    height: auto;
    padding: 42px 31px 40px;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 37px;
  }
  .service__img { width: 100%; height: auto; aspect-ratio: 638 / 459; order: 0; }
  .service__body { order: 1; width: 100%; padding-left: 5px; gap: 25px; }
  .service__title { line-height: 1; }
  .service__cta-wrap { gap: 5px; }
  .service__cta-wrap .section-text { font-size: 22px; line-height: 1.5; white-space: normal; }

  /* Eco */
  .eco { padding: 104px 0; }
  .eco__band { height: auto; flex-direction: column; align-items: center; padding: 43px 24px 64px; gap: 43px; }
  .eco__img { width: 100%; max-width: 655px; height: auto; aspect-ratio: 655 / 442; }
  .eco__body { padding: 0 0 0 4px; width: 100%; max-width: 655px; gap: 25px; }
  .eco__text { white-space: normal; font-size: 22px; line-height: 1.5; max-width: 604px; }
  .eco__cta-wrap { gap: 5px; }

  /* Contato */
  .contact-anchor { width: min(733px, calc(100% - 48px)); height: 5px; }
  .contact { padding: 32px 24px 31px; }
  .contact__inner {
    width: 100%;
    max-width: 806px;
    height: auto;
    flex-direction: column;
    align-items: center;
    gap: 40px;
    padding: 8px 0 48px;
  }
  .contact__copy { width: 100%; max-width: 656px; height: auto; }
  .contact__info { font-size: 22px; line-height: 1.5; }
  .contact__form-wrap { width: 100%; max-width: 654px; padding: 0; }
  .form { width: 100%; max-width: 576px; margin: 0 auto; }

  /* Sobre */
  .about { padding: 82px 0 81px; }
  .about__band { height: auto; flex-direction: column; align-items: flex-start; padding: 69px 24px 64px max(24px, calc(50% - 422px)); gap: 0; }
  .about__body { width: 100%; max-width: 568px; padding-top: 0; }
  .about__text { font-size: 22px; line-height: 1.5; white-space: normal; }
  .about__logo { display: none; }
  .about__logo--small { display: block; width: 100%; max-width: 470px; height: auto; aspect-ratio: 378 / 185; margin-top: 19px; }

  .divider { width: 769px; height: 3px; }

  .footer { height: auto; padding: 40px 20px; }
  .footer__inner { width: 100%; height: auto; padding: 10px; gap: clamp(40px, 14vw, 143px); }
  .footer__brand { font-size: 48px; }
}

/* ============================== MOBILE ============================== */
@media (max-width: 809.98px) {
  .page { gap: 0; }
  .top-anchor { height: 0; }
  .hero-spacer { display: none; }

  #dragohome,
  #about,
  #contact,
  #contact-us-headline { scroll-margin-top: calc(var(--header-h-mobile) + 8px); }

  /* ---------- Header + menu ---------- */
  .header {
    height: var(--header-h-mobile);
    padding: 0 var(--gutter-mobile);
    background: var(--color-header-bg-mobile);
    -webkit-backdrop-filter: blur(var(--blur-header-mobile));
    backdrop-filter: blur(var(--blur-header-mobile));
    overflow: visible;
  }
  .header.is-open { background: var(--color-white); }
  .header__inner { width: 100%; gap: 0; }
  .header__brand { padding: 0; }
  .header__logo { width: 104px; height: 32px; }
  .header__spacer { flex: 1; height: auto; }

  .menu-toggle { display: inline-flex; }

  .header__menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: var(--space-16);
    padding: var(--space-8) var(--gutter-mobile) var(--space-24);
    background: var(--color-white);
    border-top: 1px solid var(--color-input-border);
    box-shadow: var(--shadow-menu);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    pointer-events: none;
    transition:
      opacity var(--duration-hover) var(--ease-out),
      transform var(--duration-hover) var(--ease-out),
      visibility 0s linear var(--duration-hover);
  }
  .header.is-open .header__menu {
    opacity: 1;
    visibility: visible;
    transform: none;
    pointer-events: auto;
    transition:
      opacity var(--duration-hover) var(--ease-out),
      transform var(--duration-hover) var(--ease-out);
  }
  .header__nav { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-link {
    justify-content: flex-start;
    min-height: var(--tap-min);
    padding: 12px 4px;
    font-size: var(--fs-m-nav);
    line-height: 1.2;
    border-bottom: 1px solid var(--color-input-border);
  }
  .lang {
    align-self: flex-start;
    min-height: var(--tap-min);
    margin-top: var(--space-16);
    padding: 10px 14px;
    font-size: var(--fs-m-btn);
  }
  .header__gap { display: none; }
  .header__cta { width: 100%; }

  /* ---------- Botões (todas as seções) ---------- */
  .btn {
    min-height: var(--tap-min);
    padding: 12px 20px;
    border-radius: var(--radius-btn-mobile);
    font-size: var(--fs-m-btn);
    line-height: 1.2;
  }

  /* ---------- Hero (deck) ---------- */
  .hero { padding: 12px var(--deck-gap-mobile) var(--deck-gap-mobile); }
  .hero__stage {
    height: calc(100vh - var(--header-h-mobile) - 12px - var(--deck-gap-mobile));
    height: calc(100svh - var(--header-h-mobile) - 12px - var(--deck-gap-mobile));
    min-height: var(--deck-min-h-mobile);
    max-height: 760px;
  }
  .slide { width: var(--deck-width-mobile); border-radius: var(--deck-radius-mobile); }
  /* pilha mais sutil no mobile */
  .slide.pos-1 { transform: translateX(7%)  scale(0.95); opacity: 0.95; }
  .slide.pos-2 { transform: translateX(11%) scale(0.90); }
  .slide.pos-3,
  .slide.pos-4 { transform: translateX(14%) scale(0.85); }
  .slide__content {
    top: 32px;
    right: 20px;
    left: 20px;
    width: auto;
    max-width: 440px;
    gap: var(--space-16);
    transform: none;
  }
  .slide__title {
    font-size: var(--fs-m-hero-h1);
    line-height: 1.1;
    white-space: normal;
    text-wrap: balance;
  }
  .slide__text {
    font-size: var(--fs-m-hero-p);
    line-height: 1.45;
    white-space: normal;
  }
  .slide .btn { margin-top: var(--space-4); }
  .slide--1 { --slide-h1-color: var(--color-black); --slide-p-color: var(--color-black); }
  .slide--3 { --slide-h1-color: var(--color-white); }
  .slide--4 .slide__img { object-position: 36.5% 2%; }

  /* ---------- Destaques ---------- */
  .features { width: 100%; margin-top: 0; padding: var(--space-16) var(--gutter-mobile) var(--space-32); }
  .features__grid { width: 100%; max-width: var(--content-max-mobile); flex-direction: column; gap: var(--space-16); }
  .feature { width: 100%; height: 140px; padding: 0 var(--space-24); align-items: flex-start; }
  .feature__body { gap: var(--space-4); }
  .feature__title { font-size: var(--fs-m-card-h1); line-height: 1.1; }
  .feature__sub { font-size: var(--fs-m-card-sub); line-height: 1.25; }

  /* ---------- Painéis (Partners / Service) ---------- */
  .partners,
  .service { padding: var(--space-32) var(--gutter-mobile); }
  .partners__panel,
  .service__panel {
    width: 100%;
    max-width: var(--content-max-mobile);
    height: auto;
    padding: var(--space-12) var(--space-12) var(--space-32);
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: var(--space-24);
  }
  .partners__img,
  .service__img,
  .eco__img {
    width: 100%;
    height: auto;
    border-radius: var(--radius-input);
  }
  .partners__img { aspect-ratio: 342 / 252; }
  .service__img { order: 0; aspect-ratio: 338 / 399; max-height: 480px; }
  .partners__body,
  .service__body { order: 1; width: auto; padding: 0 var(--space-8); gap: var(--space-16); }
  .partners__title,
  .service__title,
  .eco__title {
    font-size: var(--fs-m-h2);
    line-height: 1.15;
  }
  .partners__text,
  .service__cta-wrap .section-text,
  .eco__text {
    width: auto;
    font-size: var(--fs-m-body);
    line-height: 1.5;
    white-space: normal;
  }
  .service__cta-wrap,
  .eco__cta-wrap { gap: var(--space-20); }

  /* ---------- Números ---------- */
  .stats { padding: var(--space-16) 0; }
  .stats__band { height: auto; flex-direction: column; gap: var(--space-40); padding: var(--space-48) var(--gutter-mobile); }
  .stat { width: auto; gap: var(--space-4); }
  .stat__value { font-size: var(--fs-m-stat); line-height: 1.1; }
  .stat__label { font-size: var(--fs-m-body); line-height: 1.3; }
  .stat__divider { display: none; }

  /* ---------- Eco ---------- */
  .eco { padding: var(--space-32) 0; }
  .eco__band {
    height: auto;
    flex-direction: column;
    align-items: center;
    gap: var(--space-24);
    padding: var(--space-32) var(--gutter-mobile) var(--space-48);
  }
  .eco__img { max-width: var(--content-max-mobile); aspect-ratio: 336 / 361; max-height: 480px; }
  .eco__body { width: 100%; max-width: var(--content-max-mobile); padding: 0 var(--space-4); gap: var(--space-16); }

  /* ---------- Contato ---------- */
  .contact-anchor { width: 100%; height: 0; }
  .contact { padding: var(--space-40) var(--gutter-mobile); }
  .contact__inner {
    width: 100%;
    max-width: var(--content-max-mobile);
    height: auto;
    flex-direction: column;
    align-items: stretch;
    gap: var(--space-32);
    padding: 0;
  }
  .contact__copy { width: 100%; height: auto; gap: var(--space-12); }
  .contact__title { font-size: var(--fs-m-contact-h1); line-height: 1; }
  .contact__sub { font-size: var(--fs-m-sub); line-height: 1.3; white-space: normal; }
  .contact__info--desktop { display: none; }
  .contact__info--mobile {
    display: block;
    margin-top: var(--space-8);
    font-size: var(--fs-m-body);
    line-height: 1.5;
    white-space: pre-line;
  }
  .contact__info--mobile strong { color: var(--color-ink-strong); }
  .contact__form-wrap { width: 100%; padding: 0; }
  .form { width: 100%; }
  .field__label { font-size: var(--fs-m-btn); }
  .field__input { height: var(--tap-min); font-size: var(--fs-select); } /* 16px evita zoom no iOS */
  .field__input--textarea { height: auto; }
  .btn-submit { width: 100%; }

  /* ---------- Sobre ---------- */
  .about { padding: var(--space-32) 0; }
  .about__band {
    height: auto;
    flex-direction: column;
    align-items: center;
    gap: 0;
    padding: var(--space-48) var(--gutter-mobile);
  }
  .about__body { width: 100%; max-width: var(--content-max-mobile); padding-top: 0; }
  .about__title { font-size: var(--fs-m-contact-h1); line-height: 1; }
  .about__sub { margin-top: var(--space-12); font-size: var(--fs-m-sub); line-height: 1.3; white-space: normal; }
  .about__text { margin-top: var(--space-20); font-size: var(--fs-m-body); line-height: 1.5; white-space: normal; }
  .about__logo { display: none; }
  .about__logo--small { display: block; width: 100%; max-width: 320px; height: auto; aspect-ratio: 378 / 185; margin-top: var(--space-32); }

  .divider { width: calc(100% - 32px); height: 2px; margin-top: 0; }

  /* ---------- Footer ---------- */
  .footer { height: auto; padding: var(--space-32) var(--gutter-mobile) var(--space-40); }
  .footer__inner { width: 100%; height: auto; padding: 0; flex-direction: column; gap: var(--space-20); }
  .footer__brand { font-size: var(--fs-m-footer); line-height: 1.1; }
  .footer__social { gap: var(--space-8); }
  .footer__social > * {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: var(--tap-min);
    min-height: var(--tap-min);
  }
  .footer__icon { width: 32px; height: 28px; }
}

/* Movimento reduzido: menu sem animação */
@media (prefers-reduced-motion: reduce) {
  .header__menu { transition: none !important; }
}
