/* =========================================================================
   AtendePro — site de marketing
   Tema claro/escuro via [data-theme]. Mobile-first.
   ========================================================================= */

/* ---------- Tokens ---------- */
:root {
    --indigo-50:  #eef2ff;
    --indigo-100: #e0e7ff;
    --indigo-500: #6366f1;
    --indigo-600: #4f46e5;
    --indigo-700: #4338ca;
    --indigo-800: #3730a3;
    --emerald-600: #059669;
    --amber-600:  #d97706;
    --sky-600:    #0284c7;
    --violet-600: #7c3aed;
    --rose-600:   #e11d48;

    --slate-900: #0f172a;
    --slate-800: #1e293b;
    --slate-700: #334155;
    --slate-500: #64748b;
    --slate-400: #94a3b8;
    --slate-200: #e2e8f0;
    --slate-100: #f1f5f9;
    --slate-50:  #f8fafc;
    --white:     #ffffff;

    /* Semânticos — claro (padrão) */
    --bg:          var(--white);
    --bg-soft:     var(--indigo-50);
    --bg-elevated: var(--white);
    --surface:     var(--white);
    --text:        var(--slate-900);
    --text-muted:  var(--slate-500);
    --border:      var(--slate-200);
    --primary:     var(--indigo-600);
    --primary-hover: var(--indigo-700);
    --primary-soft:  var(--indigo-100);
    --on-primary:  var(--white);
    --success:     var(--emerald-600);
    --gradient:    linear-gradient(135deg, var(--indigo-600), var(--indigo-700) 55%, var(--indigo-800));
    --shadow-sm:   0 1px 2px rgba(15, 23, 42, .06), 0 1px 3px rgba(15, 23, 42, .08);
    --shadow-md:   0 4px 12px rgba(15, 23, 42, .08), 0 2px 4px rgba(15, 23, 42, .04);
    --shadow-lg:   0 20px 45px -20px rgba(79, 70, 229, .35), 0 8px 24px rgba(15, 23, 42, .08);
    --header-bg:   rgba(255, 255, 255, .85);

    --radius-sm: 10px;
    --radius:    16px;
    --radius-lg: 24px;
    --container: 1140px;
    --header-h:  68px;

    --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
}

[data-theme="dark"] {
    --bg:          var(--slate-900);
    --bg-soft:     #131c31;
    --bg-elevated: var(--slate-800);
    --surface:     #16213a;
    --text:        #f1f5f9;
    --text-muted:  var(--slate-400);
    --border:      #2a3650;
    --primary:     var(--indigo-500);
    --primary-hover: var(--indigo-600);
    --primary-soft:  rgba(99, 102, 241, .15);
    --on-primary:  var(--white);
    --header-bg:   rgba(15, 23, 42, .8);
    --shadow-sm:   0 1px 2px rgba(0, 0, 0, .4);
    --shadow-md:   0 4px 12px rgba(0, 0, 0, .35);
    --shadow-lg:   0 20px 45px -20px rgba(0, 0, 0, .6), 0 8px 24px rgba(0, 0, 0, .4);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { animation: none !important; transition: none !important; } }

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    transition: background-color .3s ease, color .3s ease;
    overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
ul { list-style: none; padding: 0; }
:focus-visible { outline: 3px solid var(--indigo-500); outline-offset: 2px; border-radius: 6px; }

.skip-link {
    position: absolute; left: -999px; top: 8px; z-index: 200;
    background: var(--primary); color: var(--on-primary);
    padding: 10px 16px; border-radius: 8px;
}
.skip-link:focus { left: 8px; }

/* ---------- Layout helpers ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 20px; }
.section { padding-block: clamp(56px, 9vw, 104px); }
.section--soft { background: var(--bg-soft); }
.section__head { text-align: center; max-width: 660px; margin: 0 auto clamp(36px, 6vw, 60px); }
.eyebrow {
    display: inline-flex; align-items: center; gap: 7px;
    font-size: .8rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
    color: var(--primary); background: var(--primary-soft);
    padding: 6px 14px; border-radius: 999px; margin-bottom: 18px;
}
.eyebrow .icon { width: 15px; height: 15px; }

h1, h2, h3 { line-height: 1.15; font-weight: 800; letter-spacing: -.02em; color: var(--text); }
.section__title { font-size: clamp(1.7rem, 4vw, 2.6rem); }
.section__subtitle { margin-top: 14px; font-size: clamp(1rem, 2vw, 1.15rem); color: var(--text-muted); }

.icon { width: 24px; height: 24px; flex: none; }
.icon--sm { width: 18px; height: 18px; }
.icon--check { color: var(--success); }
.icon--star { color: var(--amber-600); fill: var(--amber-600); }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    font-weight: 600; font-size: .98rem; padding: 13px 22px;
    border-radius: 12px; border: 1.5px solid transparent;
    transition: transform .15s ease, box-shadow .2s ease, background-color .2s ease, border-color .2s ease;
    white-space: nowrap; cursor: pointer;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn--primary { background: var(--primary); color: var(--on-primary); box-shadow: 0 8px 20px -8px rgba(79, 70, 229, .6); }
.btn--primary:hover { background: var(--primary-hover); }
.btn--outline { background: var(--surface); color: var(--text); border-color: var(--border); }
.btn--outline:hover { border-color: var(--primary); color: var(--primary); }
.btn--light { background: var(--white); color: var(--indigo-700); }
.btn--ghost-light { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.4); }
.btn--ghost-light:hover { background: rgba(255,255,255,.22); }
.btn--sm { padding: 9px 16px; font-size: .9rem; border-radius: 10px; }
.btn--lg { padding: 16px 28px; font-size: 1.05rem; }
.btn--block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
    position: sticky; top: 0; z-index: 100;
    background: var(--header-bg);
    backdrop-filter: saturate(180%) blur(12px);
    -webkit-backdrop-filter: saturate(180%) blur(12px);
    border-bottom: 1px solid var(--border);
}
.site-header__inner { display: flex; align-items: center; gap: 16px; height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.2rem; }
.brand__name { letter-spacing: -.02em; }
.brand--light .brand__name { color: var(--text); }

.site-nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.site-nav__link {
    padding: 9px 14px; border-radius: 9px; font-weight: 500; color: var(--text-muted);
    transition: color .15s ease, background-color .15s ease;
}
.site-nav__link:hover { color: var(--text); background: var(--bg-soft); }
.site-nav__link[aria-current="page"] { color: var(--primary); font-weight: 600; }
.site-nav__actions { display: flex; align-items: center; gap: 10px; margin-left: 10px; padding-left: 10px; border-left: 1px solid var(--border); }
.site-nav__link--login { font-weight: 600; color: var(--text); }

.site-header__controls { display: flex; align-items: center; gap: 6px; }
.theme-toggle, .nav-toggle {
    display: inline-flex; align-items: center; justify-content: center;
    width: 42px; height: 42px; border-radius: 11px; color: var(--text-muted);
    transition: background-color .15s ease, color .15s ease;
}
.theme-toggle:hover, .nav-toggle:hover { background: var(--bg-soft); color: var(--text); }
.theme-toggle__moon { display: none; }
[data-theme="dark"] .theme-toggle__sun { display: none; }
[data-theme="dark"] .theme-toggle__moon { display: block; }
.nav-toggle { display: none; }
.nav-toggle__close { display: none; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding-block: clamp(48px, 8vw, 92px); }
.hero::before {
    content: ""; position: absolute; inset: 0; z-index: -1;
    background:
        radial-gradient(60% 50% at 85% 0%, rgba(99,102,241,.16), transparent 70%),
        radial-gradient(50% 45% at 5% 20%, rgba(124,58,237,.12), transparent 70%);
}
.hero__inner { display: grid; grid-template-columns: 1fr; gap: clamp(36px, 6vw, 56px); align-items: center; }
.hero__title { font-size: clamp(2.1rem, 5.5vw, 3.6rem); font-weight: 900; }
.hero__title .grad { background: var(--gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero__subtitle { margin-top: 20px; font-size: clamp(1.05rem, 2.2vw, 1.3rem); color: var(--text-muted); max-width: 560px; }
.hero__actions { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 14px; }
.hero__badge {
    margin-top: 22px; display: inline-flex; align-items: center; gap: 8px;
    font-size: .92rem; color: var(--text-muted); font-weight: 500;
}
.hero__badge .icon { color: var(--success); }
.hero__media { position: relative; }
.hero__media img { width: 100%; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); border: 1px solid var(--border); }

/* ---------- Stats / prova social ---------- */
.stats { border-block: 1px solid var(--border); background: var(--bg-soft); }
.stats__inner { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px 16px; padding-block: 44px; text-align: center; }
.stat__value { font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 900; color: var(--primary); letter-spacing: -.03em; }
.stat__label { color: var(--text-muted); font-size: .95rem; margin-top: 4px; }

/* ---------- Features grid ---------- */
.features-grid { display: grid; grid-template-columns: 1fr; gap: 20px; }
.feature-card {
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
    padding: 26px 24px; box-shadow: var(--shadow-sm);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--primary-soft); }
.feature-card__icon {
    display: inline-flex; align-items: center; justify-content: center;
    width: 52px; height: 52px; border-radius: 14px; margin-bottom: 18px;
}
.feature-card__icon .icon { width: 26px; height: 26px; }
.feature-card__icon--indigo  { background: rgba(79,70,229,.12);  color: var(--indigo-600); }
.feature-card__icon--emerald { background: rgba(5,150,105,.12);  color: var(--emerald-600); }
.feature-card__icon--amber   { background: rgba(217,119,6,.12);  color: var(--amber-600); }
.feature-card__icon--sky     { background: rgba(2,132,199,.12);  color: var(--sky-600); }
.feature-card__icon--violet  { background: rgba(124,58,237,.12); color: var(--violet-600); }
.feature-card__icon--rose    { background: rgba(225,29,72,.12);  color: var(--rose-600); }
.feature-card__title { font-size: 1.15rem; margin-bottom: 8px; }
.feature-card__desc { color: var(--text-muted); font-size: .97rem; }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: 1fr; gap: 24px; counter-reset: step; }
.step { position: relative; text-align: center; padding: 8px; }
.step__num {
    display: inline-flex; align-items: center; justify-content: center;
    width: 56px; height: 56px; border-radius: 50%; font-size: 1.4rem; font-weight: 800;
    background: var(--gradient); color: #fff; margin-bottom: 16px; box-shadow: var(--shadow-md);
}
.step__title { font-size: 1.2rem; margin-bottom: 6px; }
.step__desc { color: var(--text-muted); }

/* ---------- Highlights (alternados) ---------- */
.highlight { display: grid; grid-template-columns: 1fr; gap: clamp(28px, 5vw, 56px); align-items: center; }
.highlight + .highlight { margin-top: clamp(56px, 9vw, 96px); }
.highlight__img img { border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); border: 1px solid var(--border); }
.highlight__tag { color: var(--primary); font-weight: 700; font-size: .9rem; text-transform: uppercase; letter-spacing: .04em; }
.highlight__title { font-size: clamp(1.5rem, 3.4vw, 2.1rem); margin: 10px 0 14px; }
.highlight__desc { color: var(--text-muted); font-size: 1.05rem; }
.highlight__bullets { margin-top: 20px; display: grid; gap: 12px; }
.highlight__bullets li { display: flex; align-items: center; gap: 10px; font-weight: 500; }

/* ---------- Pricing ---------- */
.pricing-grid { display: grid; grid-template-columns: 1fr; gap: 24px; align-items: stretch; }
.pricing-card {
    position: relative; display: flex; flex-direction: column;
    background: var(--surface); border: 1.5px solid var(--border); border-radius: var(--radius-lg);
    padding: 30px 26px; box-shadow: var(--shadow-sm);
    transition: transform .2s ease, box-shadow .2s ease;
}
.pricing-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.pricing-card--popular { border-color: var(--primary); box-shadow: var(--shadow-lg); }
.pricing-card__badge {
    position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
    display: inline-flex; align-items: center; gap: 6px;
    background: var(--gradient); color: #fff; font-size: .8rem; font-weight: 700;
    padding: 6px 14px; border-radius: 999px; white-space: nowrap;
}
.pricing-card__badge .icon { fill: #fff; }
.pricing-card__name { font-size: 1.35rem; }
.pricing-card__tagline { color: var(--text-muted); font-size: .95rem; margin-top: 6px; min-height: 2.7em; }
.pricing-card__price { margin: 18px 0; display: flex; align-items: baseline; gap: 6px; }
.pricing-card__amount { font-size: 2.6rem; font-weight: 900; letter-spacing: -.03em; }
.pricing-card__period { color: var(--text-muted); font-weight: 500; }
.pricing-card__limits { display: grid; gap: 12px; margin-bottom: 26px; }
.pricing-card__limits li { display: flex; align-items: flex-start; gap: 10px; }
.pricing-card__cta { margin-top: auto; }

.pricing-included {
    margin-top: 36px; background: var(--bg-soft); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 28px;
}
.pricing-included h3 { font-size: 1.1rem; margin-bottom: 16px; text-align: center; }
.pricing-included__list { display: grid; grid-template-columns: 1fr; gap: 12px; }
.pricing-included__list li { display: flex; align-items: center; gap: 10px; }

.plan-custom {
    margin-top: 28px; text-align: center; padding: 32px;
    border: 1.5px dashed var(--border); border-radius: var(--radius-lg);
}
.plan-custom h3 { font-size: 1.3rem; margin-bottom: 8px; }
.plan-custom p { color: var(--text-muted); margin-bottom: 18px; }

/* ---------- Testimonials ---------- */
.testimonials-grid { display: grid; grid-template-columns: 1fr; gap: 22px; }
.testimonial { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow-sm); }
.testimonial__stars { display: flex; gap: 2px; margin-bottom: 14px; }
.testimonial__quote { font-size: 1.05rem; color: var(--text); margin-bottom: 20px; }
.testimonial__author { display: flex; align-items: center; gap: 12px; }
.testimonial__avatar {
    display: inline-flex; align-items: center; justify-content: center;
    width: 46px; height: 46px; border-radius: 50%; font-weight: 700;
    background: var(--gradient); color: #fff;
}
.testimonial__meta { display: flex; flex-direction: column; line-height: 1.3; }
.testimonial__meta small { color: var(--text-muted); }

/* ---------- FAQ ---------- */
.faq { max-width: 760px; margin-inline: auto; display: grid; gap: 14px; }
.faq-item { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); overflow: hidden; }
.faq-item__q {
    display: flex; align-items: center; justify-content: space-between; gap: 16px;
    padding: 20px 22px; font-weight: 600; font-size: 1.05rem; cursor: pointer; list-style: none;
}
.faq-item__q::-webkit-details-marker { display: none; }
.faq-item__icon { display: inline-flex; transition: transform .25s ease; color: var(--primary); }
.faq-item[open] .faq-item__icon { transform: rotate(45deg); }
.faq-item__a { padding: 0 22px 22px; color: var(--text-muted); }

/* ---------- CTA banner ---------- */
.cta-banner { background: var(--gradient); color: #fff; }
.cta-banner__inner { text-align: center; padding-block: clamp(48px, 8vw, 80px); }
.cta-banner__title { color: #fff; font-size: clamp(1.7rem, 4vw, 2.6rem); }
.cta-banner__desc { color: rgba(255,255,255,.88); margin: 14px auto 28px; max-width: 540px; font-size: 1.1rem; }
.cta-banner__actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }

/* ---------- Page hero (sub-páginas) ---------- */
.page-hero { padding-block: clamp(48px, 7vw, 80px); text-align: center; background: var(--bg-soft); border-bottom: 1px solid var(--border); }
.page-hero h1 { font-size: clamp(2rem, 5vw, 3rem); }
.page-hero p { color: var(--text-muted); font-size: 1.15rem; max-width: 620px; margin: 16px auto 0; }

/* ---------- Comparativo (tabela de planos) ---------- */
.compare-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); }
.compare { width: 100%; border-collapse: collapse; min-width: 560px; }
.compare th, .compare td { padding: 16px 18px; text-align: left; border-bottom: 1px solid var(--border); }
.compare thead th { background: var(--bg-soft); font-weight: 700; }
.compare tbody th { font-weight: 500; color: var(--text-muted); }
.compare td { text-align: center; font-weight: 600; }
.compare td .icon { margin-inline: auto; }
.compare__pop { color: var(--primary); }

/* ---------- Contato / formulário ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr; gap: 40px; align-items: start; }
.contact-info h2 { font-size: 1.6rem; margin-bottom: 12px; }
.contact-info p { color: var(--text-muted); margin-bottom: 24px; }
.contact-info__list { display: grid; gap: 18px; }
.contact-info__item { display: flex; align-items: center; gap: 14px; }
.contact-info__item .icon { color: var(--primary); }
.contact-info__item strong { display: block; }
.contact-info__item span { color: var(--text-muted); font-size: .95rem; }

.form { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 30px; box-shadow: var(--shadow-sm); }
.form__row { display: grid; grid-template-columns: 1fr; gap: 18px; margin-bottom: 18px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-weight: 600; font-size: .92rem; }
.field label .req { color: var(--rose-600); }
.field input, .field select, .field textarea {
    font: inherit; padding: 12px 14px; border-radius: 10px;
    border: 1.5px solid var(--border); background: var(--bg); color: var(--text);
    transition: border-color .15s ease, box-shadow .15s ease;
}
.field input:focus, .field select:focus, .field textarea:focus {
    outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft);
}
.field textarea { resize: vertical; min-height: 120px; }
.form__note { font-size: .85rem; color: var(--text-muted); margin-top: 14px; }
.form__alert { padding: 14px 16px; border-radius: 10px; margin-bottom: 20px; font-weight: 500; }
.form__alert--ok { background: rgba(5,150,105,.12); color: var(--success); border: 1px solid rgba(5,150,105,.3); }
.form__alert--err { background: rgba(225,29,72,.1); color: var(--rose-600); border: 1px solid rgba(225,29,72,.3); }

/* ---------- Conteúdo legal ---------- */
.legal { max-width: 800px; margin-inline: auto; }
.legal h2 { font-size: 1.4rem; margin: 36px 0 12px; }
.legal h3 { font-size: 1.1rem; margin: 24px 0 8px; }
.legal p, .legal li { color: var(--text-muted); margin-bottom: 12px; }
.legal ul { list-style: disc; padding-left: 22px; }
.legal ul li { margin-bottom: 8px; }
.legal__updated { color: var(--text-muted); font-style: italic; margin-bottom: 8px; }

/* ---------- WhatsApp FAB ---------- */
.whatsapp-fab {
    position: fixed; right: 20px; bottom: 20px; z-index: 90;
    width: 56px; height: 56px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    background: #25d366; color: #fff; box-shadow: 0 8px 24px rgba(37,211,102,.45);
    transition: transform .2s ease;
}
.whatsapp-fab:hover { transform: scale(1.08); }
.whatsapp-fab .icon { width: 28px; height: 28px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--bg-soft); border-top: 1px solid var(--border); padding-block: 56px 28px; }
.site-footer__grid { display: grid; grid-template-columns: 1fr; gap: 36px; }
.site-footer__tagline { color: var(--text-muted); margin: 16px 0; max-width: 320px; }
.site-footer__social { display: flex; gap: 10px; }
.site-footer__social a {
    width: 40px; height: 40px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center;
    background: var(--surface); border: 1px solid var(--border); color: var(--text-muted); transition: color .15s, border-color .15s;
}
.site-footer__social a:hover { color: var(--primary); border-color: var(--primary); }
.site-footer__col h3 { font-size: .85rem; text-transform: uppercase; letter-spacing: .05em; color: var(--text-muted); margin-bottom: 14px; }
.site-footer__col a { display: block; padding: 5px 0; color: var(--text); font-weight: 500; transition: color .15s; }
.site-footer__col a:hover { color: var(--primary); }
.site-footer__bottom {
    margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--border);
    display: flex; flex-direction: column; gap: 12px; align-items: center; text-align: center;
    color: var(--text-muted); font-size: .9rem;
}
.site-footer__legal a { color: var(--text-muted); }
.site-footer__legal a:hover { color: var(--primary); }

/* ---------- Animação de entrada ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

/* =========================================================================
   Responsivo
   ========================================================================= */
@media (min-width: 600px) {
    .stats__inner { grid-template-columns: repeat(4, 1fr); }
    .form__row--2 { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 768px) {
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .steps { grid-template-columns: repeat(3, 1fr); }
    .pricing-grid { grid-template-columns: repeat(3, 1fr); }
    .testimonials-grid { grid-template-columns: repeat(3, 1fr); }
    .pricing-included__list { grid-template-columns: repeat(2, 1fr); }
    .contact-grid { grid-template-columns: 1fr 1.1fr; }
    .site-footer__grid { grid-template-columns: 2fr 1fr 1fr 1fr; }
    .site-footer__bottom { flex-direction: row; justify-content: space-between; }
}

@media (min-width: 960px) {
    .features-grid { grid-template-columns: repeat(3, 1fr); }
    .hero__inner { grid-template-columns: 1.05fr 1fr; }
    .highlight { grid-template-columns: 1fr 1fr; }
    .highlight--reverse .highlight__img { order: 2; }
}

/* ---------- Mobile nav ---------- */
@media (max-width: 880px) {
    .nav-toggle { display: inline-flex; }
    .site-nav {
        position: fixed; inset: var(--header-h) 0 auto 0;
        flex-direction: column; align-items: stretch; gap: 4px;
        background: var(--bg); border-bottom: 1px solid var(--border);
        padding: 16px 20px 24px; margin: 0;
        transform: translateY(-130%); transition: transform .3s ease;
        box-shadow: var(--shadow-md); max-height: calc(100vh - var(--header-h)); overflow-y: auto;
    }
    .site-nav.is-open { transform: translateY(0); }
    .site-nav__link { padding: 14px 12px; font-size: 1.05rem; border-radius: 10px; }
    .site-nav__actions { margin: 8px 0 0; padding: 16px 0 0; border-left: none; border-top: 1px solid var(--border); flex-direction: column; align-items: stretch; }
    .site-nav__actions .btn { width: 100%; }
    .site-nav__link--login { text-align: center; }
    body.nav-open { overflow: hidden; }
    .nav-backdrop { position: fixed; inset: var(--header-h) 0 0 0; background: rgba(15,23,42,.4); z-index: 99; }
    .nav-toggle[aria-expanded="true"] .nav-toggle__open { display: none; }
    .nav-toggle[aria-expanded="true"] .nav-toggle__close { display: block; }
}

/* =========================================================================
   Acessibilidade / mobile — alvos de toque mínimos de 44x44 e tipografia
   ========================================================================= */
@media (max-width: 768px) {
    /* Garante 44px mínimo em botões e links interativos (WCAG 2.5.5) */
    .btn,
    .btn--sm {
        min-height: 44px;
        padding-block: 12px;
    }
    .site-footer__col a,
    .site-footer__legal a {
        min-height: 44px;
        display: flex;
        align-items: center;
    }
    .site-footer__social a {
        width: 44px;
        height: 44px;
    }
    .theme-toggle,
    .nav-toggle {
        width: 44px;
        height: 44px;
    }
    /* Evita zoom involuntário ao focar inputs no iOS (precisa ser >=16px) */
    .field input,
    .field select,
    .field textarea {
        font-size: 16px;
    }
    /* Hero e títulos ficam legíveis em telas pequenas */
    .hero__title { font-size: clamp(1.8rem, 7vw, 2.4rem); }
    .section__title { font-size: clamp(1.5rem, 5.5vw, 2rem); }
    /* WhatsApp FAB respeita a safe-area do iOS */
    .whatsapp-fab {
        right: max(16px, env(safe-area-inset-right));
        bottom: max(16px, env(safe-area-inset-bottom));
    }
}

/* Reduz animações para quem prefere */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
    .reveal { opacity: 1; transform: none; }
}
