/* =========================================================
   GODMED · mobile (v4)
   Carregado depois de styles.css e pages.css. Só vale até 860px:
   layout centralizado, menos caixas dentro de caixas e carrosséis
   com arraste (a classe .m-carousel é ligada pelo script.js).
   ========================================================= */

.m-dots { display: none; }

@media (max-width: 860px) {
  :root { --gutter: 10px; --sec-pad: 18px; }
  body { font-size: 16px; }

  /* ---------- carrossel genérico ---------- */
  .m-carousel {
    position: relative;
    display: flex !important; grid-template-columns: none !important; flex-wrap: nowrap !important;
    gap: 12px; height: auto !important;
    margin-inline: calc(var(--sec-pad) * -1) !important; padding: 6px var(--sec-pad) 4px !important;
    overflow-x: auto; overflow-y: hidden; overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory; scroll-padding-inline: var(--sec-pad);
    scrollbar-width: none; -webkit-overflow-scrolling: touch;
  }
  .m-carousel::-webkit-scrollbar { display: none; }
  .m-carousel::before, .m-carousel::after { display: none !important; }
  .m-carousel > * { flex: 0 0 86%; min-width: 0; scroll-snap-align: center; }
  .m-carousel > .reveal { opacity: 1; transform: none; }
  .m-carousel > *:hover { transform: none; }

  .m-dots { display: flex; justify-content: center; align-items: center; gap: 6px; margin-top: 18px; }
  .m-dots button { width: 7px; height: 7px; padding: 0; border-radius: 99px; background: rgba(31,78,95,.22); transition: width .35s var(--ease), background .35s; }
  .m-dots button[aria-current="true"] { width: 24px; background: var(--azul); }
  .m-dots button::after { content: ""; position: absolute; inset: -10px -4px; } /* área de toque maior */
  .m-dots button { position: relative; }
  .m-dots--light button { background: rgba(255,255,255,.35); }
  .m-dots--light button[aria-current="true"] { background: var(--champagne); }

  /* ---------- base ---------- */
  .page { padding: var(--gutter) var(--gutter) 0; }
  .sec-title { font-size: clamp(36px, 10.4vw, 44px); line-height: .94; text-align: center; }
  .sec-title small { display: block; margin: 12px 0 0; font-size: 13px; }
  .sec-head { align-items: center; text-align: center; gap: 16px; }
  .sec-head__aside { font-size: 16px; padding-top: 0; justify-items: center; text-align: center; }
  .btn { min-width: 0; width: min(100%, 320px); }
  .btn--sm { width: auto; min-width: 210px; }
  .lead { font-size: 17px; }
  .check-list li { font-size: 16px; }
  .braces { display: block; text-align: center; }

  /* ---------- header ---------- */
  .nav__loc { display: none; }
  .brand span { display: inline; font-size: 15px; }
  .nav__right { gap: 8px; }
  .round { width: 40px; height: 40px; }
  .round svg { width: 16px; }
  .pill--icon { width: 40px; height: 40px; border-radius: 50%; background: rgba(31,78,95,.07); }
  .nav__menu { margin-left: 8px; }
  .mobile-menu { left: 0; right: 0; top: 64px; padding: 8px; border-radius: 22px; }
  .topbar .mobile-menu { top: 66px; }
  .mobile-menu a { padding: 14px 16px; font-size: 16px; }
  .mobile-menu a::after { opacity: .7; transform: none; }
  .mobile-menu .mobile-menu__cta { padding: 15px; background: #25D366; font-weight: 500; }
  .topbar { padding: 12px 12px 12px 16px; border-radius: 26px; }

  /* =========================================================
     HOME
     ========================================================= */
  .hero { padding: 12px 12px 0 16px; border-radius: 28px; }
  .hero .nav { padding-right: 0; }
  .hero__panel { left: 12px; right: 12px; height: 320px; border-radius: 26px 26px 22px 22px; }
  .hero__title { order: 1; padding-top: 38px; font-size: clamp(60px, 18.5vw, 84px); }
  .hero__note--mobile {
    order: 2; position: static; max-width: 290px; margin: 16px auto 0;
    font-size: 17px; line-height: 1.4; text-align: center; padding: 0;
  }
  .hero__left .btn { order: 3; position: static; translate: none; margin: 24px auto 0; width: min(100%, 320px); }
  .stats-card { order: 4; margin: 28px auto 0; }
  .stats-card__nums { justify-content: center; gap: 0; }
  .stats-card__nums li { flex: 1; position: relative; }
  .stats-card__nums li + li::before { content: ""; position: absolute; left: 0; top: 8px; bottom: 8px; width: 1px; background: rgba(31,78,95,.12); }
  .stats-card__nums b { font-size: 32px; }
  .stats-card__nums span { font-size: 12px; }
  .hero__figure { order: 5; height: 400px; margin-top: 10px; }
  .hero__doctor { left: 50%; height: 100%; }

  .manifesto { margin-top: 12px; padding: 44px 20px; border-radius: 28px; }
  .manifesto__title { font-size: 26px; line-height: 1.14; }
  .manifesto__text { font-size: 16px; }

  /* serviços */
  .services, .why, .people, .reviews, .inside { margin-top: 12px; border-radius: 28px; }
  .services { padding: 44px var(--sec-pad) 30px; }
  .services__grid { margin-top: 28px; }
  .svc { min-height: 0; padding: 26px 22px 22px; text-align: center; align-items: center; }
  .svc__vert { display: none; }
  .svc__num { height: 50px; font-size: 70px; }
  .svc h3 { margin-top: 18px; flex-direction: column; justify-content: center; gap: 12px; font-size: 20px; }
  .svc__ic { width: 26px; height: 26px; padding: 0; }
  .svc > p:not([class]) { margin: 12px 0 0; font-size: 16px; }
  .svc__foot { width: 100%; justify-content: center; gap: 22px; }
  .svc--brand { order: 9; min-height: 290px; justify-content: center; }
  .svc__brand-text { margin-inline: auto; }
  .svc--photo { display: none; }
  .services__grid.m-carousel > .svc { min-height: 330px; }
  .fineprint { margin-top: 20px; text-align: center; font-size: 12px; }

  /* por que a Godmed */
  .why { padding: 12px 12px 48px; }
  .why__card { min-height: 0; border-radius: 24px; }
  .why__visual { min-height: 430px; padding: 38px 22px; text-align: center; border-radius: 24px; }
  .why__visual::before { border-radius: 24px; }
  .why__title { font-size: 46px; }
  .why__visual .kv { display: block; margin-top: 14px; }
  .why__visual img { left: 50%; translate: -50% 0; width: 108%; height: 76%; object-position: bottom center; }
  .why__visual .tag { height: 32px; padding: 0 14px; font-size: 12.5px; }
  .why__visual span.tag:nth-of-type(1) { --x: 4% !important; --y: 44% !important; }
  .why__visual span.tag:nth-of-type(2) { left: auto; right: 4%; --y: 58% !important; }
  .why__visual span.tag:nth-of-type(3) { --x: 18% !important; --y: 82% !important; }
  .why__feels { display: none !important; }
  .why__data { padding: 34px 10px 6px; text-align: center; }
  .why__meta { justify-content: center; }
  .why__stats { margin-top: 26px; gap: 30px 14px; }
  .why__stats li { display: grid; justify-items: center; }
  .cut { font-size: 58px; }
  .why__stats h3 { margin-top: 8px; font-size: 16px; font-weight: 500; }
  .why__stats p { margin-top: 6px; font-size: 14.5px; max-width: 160px; }
  .why__fact { align-self: center; padding-top: 30px; }
  .quote { margin-top: 52px; padding: 0 8px; }
  .quote__text { font-size: 30px; line-height: 1.08; }
  .quote__row { margin-top: 26px; }

  /* para quem é */
  .people { padding: 44px var(--sec-pad) 34px; gap: 28px; }
  .people::after { font-size: 120px; bottom: -14px; }
  .people__intro { gap: 16px; }
  .people__intro > p { font-size: 16px; }
  .people__intro .arrows { display: none; }
  .people__track.m-carousel { gap: 10px; }
  .people__track.m-carousel .person { display: block !important; height: 430px; border-radius: 22px; }
  .people__track.m-carousel .person {
    background: var(--hex-light), radial-gradient(90% 70% at 70% 15%, var(--azul-3), transparent 60%), linear-gradient(160deg, var(--azul-2), var(--azul));
    background-size: 120px 69px, auto, auto; box-shadow: none;
  }
  .people__track.m-carousel .person__card, .people__track.m-carousel .person__badge, .people__track.m-carousel .person__vert { opacity: 1; translate: 0 0; }
  .person__card { left: 8px; right: 8px; bottom: 8px; padding: 14px 46px 14px 16px; text-align: left; border-radius: 16px; }
  .person__card .play { width: 34px; height: 34px; right: 12px; bottom: 50%; translate: 0 50%; }

  /* vídeo */
  .inside { padding: 10px; }
  .inside__media { aspect-ratio: 4/4.4; border-radius: 22px; }

  /* depoimentos */
  .reviews { min-height: 0; padding: 46px var(--sec-pad) 34px; }
  .reviews .marquee, .reviews .glass-layer, .reviews__braces { display: none; }
  .stack.m-carousel { margin-top: 28px; width: auto; }
  .stack.m-carousel .review {
    opacity: 1; visibility: visible; transform: none; filter: none; grid-area: auto;
    padding: 20px; box-shadow: 0 24px 44px -30px rgba(14,27,32,.4); border: 1px solid rgba(31,78,95,.06);
  }
  .review header { text-align: left; }
  .review > p { font-size: 16.5px; text-align: center; }
  .review footer { justify-content: center; }
  .review footer .dots, .review footer .arrow { display: none; }
  .review footer .eyebrow-line { margin: 0; }

  /* bloco azul */
  .blue-zone { margin-top: 44px; padding: 34px 10px 40px; border-radius: 32px 32px 0 0; }
  .frame { padding: 8px; border-radius: 30px; box-shadow: 0 0 0 6px rgba(255,255,255,.12), 0 40px 80px -40px rgba(0,0,0,.4); }
  .book { border-radius: 24px; }
  .book__form { padding: 38px 18px 26px; border-radius: 24px; }
  .book__head .sec-title small { display: none; }
  .form { margin-top: 26px; gap: 10px; }
  .field input, .field textarea, .select__btn { height: 52px; font-size: 16px; }
  .field textarea { min-height: 96px; }
  .select__list { right: 0; }
  .btn--form { height: 54px; font-size: 15px; justify-content: space-between; }
  .form__hint { font-size: 14.5px; }

  .faq { padding: 46px 10px 34px; min-height: 0; }
  .faq .marquee, .faq .glass-layer { display: none; }
  .faq__stack { width: 100%; margin-top: 28px; --sec-pad: 10px; grid-template-columns: minmax(0, 1fr); }
  .faq__card { min-width: 0; width: 100%; min-height: 0; padding: 0; background: none; border: 0; box-shadow: none; overflow: visible; backdrop-filter: none; -webkit-backdrop-filter: none; transform: none !important; }
  .faq__bar, .faq__progress { display: none; }
  .faq__qas.m-carousel .qa {
    opacity: 1; visibility: visible; transform: none; filter: none; grid-area: auto;
    padding: 26px 22px; border-radius: 22px; background: #fff; text-align: center;
    box-shadow: 0 24px 44px -30px rgba(14,27,32,.4); border: 1px solid rgba(31,78,95,.06);
  }
  .qa h3 { font-size: 20px; }
  .qa p { font-size: 16px; }

  /* rodapé */
  .footer { margin-top: 8px; padding: 34px 20px 28px; border-radius: 24px; text-align: center; }
  .footer__contacts { grid-template-columns: 1fr 1fr !important; gap: 22px 12px; padding-bottom: 28px; }
  .footer__logo { grid-column: 1 / -1 !important; justify-self: center; margin-bottom: 6px; }
  .footer__contacts li { flex-direction: column; align-items: center; gap: 8px; font-size: 14px; }
  .footer__contacts li svg { width: 20px; height: 20px; color: var(--champagne); }
  .footer__cols { grid-template-columns: 1fr 1fr !important; gap: 30px 14px; padding: 30px 0; }
  .footer__about { grid-column: 1 / -1; max-width: 300px; margin: 0 auto; font-size: 16px; }
  .footer__cols nav, .footer__cols nav:nth-of-type(1) { justify-self: center; justify-items: center; gap: 12px; font-size: 14.5px; }
  .footer__bottom { align-items: center; text-align: center; gap: 12px; }

  /* WhatsApp flutuante */
  .wa-dock { right: 12px; bottom: 12px; }

  /* =========================================================
     PÁGINAS INTERNAS
     ========================================================= */
  .block { margin-top: 12px; padding: 44px var(--sec-pad); border-radius: 28px; }
  .crumbs { justify-content: center; }
  .cta { padding: 40px 20px; text-align: center; border-radius: 24px; }
  .cta__title { font-size: 40px; }
  .cta__aside { justify-items: center; }
  .cta__aside p { font-size: 17px; }
  .cta__row { justify-content: center; }

  /* sobre */
  .cover { margin-top: 12px; padding: 30px 18px 0; text-align: center; border-radius: 28px; }
  .cover__label--l { font-size: 15px; letter-spacing: .02em; color: var(--cinza); }
  .cover__title { margin-top: 12px; font-size: clamp(44px, 13vw, 60px); line-height: .9; }
  .cover__text { margin: 18px auto 0; max-width: 330px; font-size: 17px; }
  .cover__panel { left: 0; right: 0; height: 250px; border-radius: 34px 34px 0 0; }
  .cover__team { height: 290px; margin-top: 22px; object-position: bottom center; }

  .story { gap: 26px; text-align: center; }
  .story__title { font-size: 56px; }
  .story__title small { display: block; margin: 10px 0 0; font-size: 18px; }
  .story__meta { justify-content: center; margin-top: 18px; }
  .story__meta .eyebrow-line { display: none; }
  .gcard { padding: 28px 22px; border-radius: 24px; }
  .gcard p { font-size: 17px; }
  .gcard__head { justify-content: center; }
  .gcard__head .eyebrow-line, .gcard__bulb { display: none; }
  .story__media { min-height: 320px; border-radius: 24px; }

  .values-head { flex-direction: column; align-items: center; text-align: center; gap: 14px; }
  .values-title { font-size: 56px; }
  .values-head p { font-size: 16px; }
  .values { margin-top: 30px; }
  .values.m-carousel { padding-bottom: 18px !important; }
  .value { min-height: 300px; padding: 28px 24px; text-align: center; align-items: center; }
  .value::before { display: none; }
  .value h3 { font-size: 22px; }

  .journey { margin-top: 30px; }
  .journey.m-carousel .step-node { padding: 28px 22px; border-radius: 24px; background: #fff; box-shadow: 0 24px 44px -32px rgba(31,78,95,.45); justify-items: center; text-align: center; }
  .step-node__dot { box-shadow: 0 0 0 6px rgba(216,181,106,.2); }
  .step-node h3 { font-size: 22px; }
  .step-node p { font-size: 16px; }

  .statement { padding: 54px 22px 50px; text-align: center; }
  .statement__text { font-size: 34px; text-align: center; text-align-last: center; }
  .statement__brand { justify-content: center; }

  /* serviços */
  .phead { gap: 22px; text-align: center; justify-items: center; }
  .phead__title { font-size: clamp(60px, 18vw, 84px); }
  .phead .braces { margin-top: 12px !important; }
  .phead__aside { justify-items: center; padding-bottom: 0; }
  .chips {
    margin: 28px calc(var(--sec-pad) * -1) 0; padding: 4px var(--sec-pad) 10px; gap: 8px;
    flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; scroll-snap-type: x proximity;
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 var(--sec-pad), #000 calc(100% - var(--sec-pad)), transparent 100%);
            mask-image: linear-gradient(90deg, transparent 0, #000 var(--sec-pad), #000 calc(100% - var(--sec-pad)), transparent 100%);
  }
  .chips::-webkit-scrollbar { display: none; }
  .chips li { flex: none; scroll-snap-align: start; }
  .chip { height: 42px; padding: 0 16px 0 6px; font-size: 14px; gap: 8px; }
  .chip i { width: 30px; height: 30px; }
  .banner { height: 460px; border-radius: 24px; }
  .banner__card { text-align: center; padding: 22px 18px; }
  .banner__nums { justify-content: center; }

  .frows { margin-top: 28px !important; }
  .frows.m-carousel { align-items: stretch; }
  .frow { padding: 14px 14px 26px; gap: 0; border-radius: 26px; background: #fff; box-shadow: 0 24px 44px -32px rgba(31,78,95,.45); align-content: start; align-items: start; }
  .frow__media { order: -1; height: 220px; border-radius: 18px; }
  .frow__media--panel > img { height: 106%; }
  .frow__media .kv { left: 14px; top: 14px; }
  .frow__text { padding: 0 8px; display: grid; justify-items: center; text-align: center; }
  .frow__num { margin-top: 20px; height: 54px; font-size: 76px; }
  .frow h3 { margin-top: 12px; flex-direction: column; gap: 10px; font-size: 28px; }
  .frow h3 svg { width: 26px; height: 26px; }
  .frow__text > p { margin-top: 14px; font-size: 16px; }
  .frow .check-list { margin-top: 18px; text-align: left; justify-self: stretch; }
  .frow__foot { margin-top: 24px; justify-content: center; }

  .steps-head { flex-direction: column; align-items: center; text-align: center; gap: 14px; }
  .steps-head .lead { max-width: 340px !important; }
  .steps { margin-top: 28px; }
  .stepc { padding: 28px 22px; text-align: center; display: grid; justify-items: center; }
  .stepc h3 { margin-top: 20px; }

  /* comparativo vira cartões */
  .compare { display: block; margin-top: 28px; overflow: visible; font-size: 16px; }
  .compare thead { display: none; }
  .compare tbody { display: grid; gap: 12px; }
  .compare tr { display: grid; gap: 0; border-radius: 22px; overflow: hidden; background: #fff; box-shadow: 0 24px 44px -32px rgba(31,78,95,.45); }
  .compare th, .compare td { display: block; min-width: 0; padding: 14px 18px; text-align: center; border: 0 !important; }
  .compare tbody th { width: auto; padding-top: 22px; font-size: 19px; font-weight: 500; }
  .compare td::before { display: block; margin-bottom: 4px; font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; }
  .compare td:not(.is-us)::before { content: "Contabilidade tradicional"; color: var(--cinza); }
  .compare td.is-us { padding-bottom: 22px; border-radius: 0 !important; }
  .compare td.is-us::before { content: "Godmed"; color: var(--champagne); }

  .appsec { gap: 34px; text-align: center; }
  .appsec .lead { margin-inline: auto; }
  .app-feats { justify-content: center; gap: 8px; }
  .app-feats span { padding: 8px 14px; font-size: 14px; }
  .appsec__media { width: min(300px, 86%); }
  .appsec__media .tag { --x: 50%; --y: 88%; translate: -50% 0; }

  /* equiparação */
  .eqhero { margin-top: 12px; padding: 34px 20px 30px; text-align: center; border-radius: 28px; gap: 34px; }
  .eqhero h1 { margin-top: 18px; font-size: clamp(34px, 9.6vw, 42px); }
  .eqhero .lead { margin-inline: auto; }
  .eqhero__row { justify-content: center; flex-direction: column; gap: 16px; }
  .rate { justify-items: center; }
  .rate__arrow { margin: 4px 0 0 30%; width: 90px; }
  .rate__label { font-size: 13px; }
  .rate__note { text-align: left; }

  .who { margin-top: 28px; }
  .who__card, .path { padding: 28px 22px; text-align: center; }
  .who__card .check-list, .path dl { text-align: left; }
  .who__card h3, .path h3 { font-size: 26px; }
  .path__tag { position: static; display: inline-block; margin-bottom: 14px; }
  .paths { margin-top: 28px; }
  .paths.m-carousel { align-items: stretch; }

  .protocol { gap: 28px; }
  .protocol__intro { justify-items: center; text-align: center; }
  .protocol__list.m-carousel .pstep { display: grid; grid-template-columns: 1fr; justify-items: center; gap: 0; }
  .pstep__n { margin-bottom: -28px; box-shadow: 0 0 0 6px #fff; }
  .pstep__card { width: 100%; height: 100%; padding: 44px 22px 26px; text-align: center; }

  .notice { min-height: 0; padding: 30px 14px; }
  .notice .marquee { display: none; }
  .notice__card { width: 100%; grid-template-columns: 1fr; justify-items: center; text-align: center; padding: 30px 22px; }

  .acc-wrap { gap: 26px; }
  .acc-wrap__intro { justify-items: center; text-align: center; }
  .acc { margin-top: 0; }
  .acc summary { padding: 18px 18px 18px 20px; font-size: 17px; }
  .acc details > div { padding: 0 20px 20px; }
  .acc details p { font-size: 16px; }

  /* contato */
  .chead { gap: 28px; text-align: center; }
  .chead__left { align-items: center; }
  .chead__title { font-size: clamp(56px, 16vw, 74px); }
  .chead .lead { margin-inline: auto; }
  .chead__hours { justify-content: center; text-align: left; padding-top: 26px; }
  .ccards { gap: 10px; grid-template-columns: 1fr 1fr !important; }
  .ccard { padding: 22px 16px; justify-items: center; text-align: center; border-radius: 22px; }
  .ccard__ic { margin-bottom: 8px; }
  .ccard small { font-size: 11px; }
  .ccard b { font-size: 16px; word-break: break-word; }
  .ccard span { font-size: 13.5px; }
  .ccard--wa { grid-column: 1 / -1; padding: 30px 20px; }
  .ccard--wa b { font-size: 34px; }
  .ccard--wa .ccard__cta { justify-self: center; margin-top: 18px; }
  .ccards > :nth-child(2) { grid-column: 1 / -1; }

  /* privacidade */
  .block--solid > .crumbs, .block--solid > .phead__title, .doc__updated { text-align: center; justify-content: center; }
  .doc__updated { max-width: 320px; margin-inline: auto; }
  .doc { gap: 22px; }
  .doc__toc { grid-template-columns: 1fr 1fr; padding: 14px; }
  .doc__toc b { grid-column: 1 / -1; text-align: center; }
  .doc__toc a { font-size: 14px; text-align: center; background: rgba(31,78,95,.04); }
}

@media (max-width: 380px) {
  :root { --sec-pad: 14px; }
  .hero__title { font-size: 58px; }
  .hero__figure { height: 360px; }
  .hero__panel { height: 290px; }
  .why__stats p { font-size: 13.5px; }
  .ccards { grid-template-columns: 1fr !important; }
}
