/* ================================================================
   TRILHOS DO SABER — Design System
   Webmari.pt
   ================================================================ */

/* ── 1. CUSTOM PROPERTIES ── */
:root {
    /* Paleta C — Serra e Dourado (aprovada pelo cliente, Jun 2026) */
    --navy:     #2C3E6B;
    --navy-m:   #4A6FA5;
    --navy-lt:  #EBF0FA;

    --verde:    #8B4513;
    --verde-m:  #a85218;
    --verde-lt: #F5E8DC;

    --ouro:     #D4A030;
    --ouro-lt:  #FBF5E0;

    --creme:    #F8F3EC;
    --pedra:    #ECE4D8;
    --borda:    #D8CFC4;

    --texto:    #1C2830;
    --muted:    #6B7685;
    --branco:   #fff;

    --font-serif: 'Playfair Display', Georgia, serif;
    --font-sans:  'Lato', system-ui, sans-serif;

    --radius:   12px;
    --radius-sm: 6px;
    --shadow:   0 4px 24px rgba(12,35,64,.08);
    --shadow-md:0 8px 40px rgba(12,35,64,.13);

    --header-h: 72px;
    --max-w:    1200px;
    --max-text: 720px;

    --ease: cubic-bezier(.25,.46,.45,.94);
}

/* ── 2. RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: hidden; }
body {
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.7;
    color: var(--texto);
    background: var(--branco);
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input, textarea, select { font-family: inherit; }

/* ── 3. TYPOGRAPHY ── */
h1, h2, h3, h4, h5 { font-family: var(--font-serif); font-weight: 700; line-height: 1.2; color: var(--navy); }
h1 { font-size: clamp(32px, 5vw, 56px); }
h2 { font-size: clamp(26px, 3.5vw, 40px); }
h3 { font-size: clamp(20px, 2.5vw, 28px); }
h4 { font-size: 18px; }
h5 { font-size: 15px; font-family: var(--font-sans); font-weight: 700; letter-spacing: .5px; }

p { max-width: 68ch; }
.lead { font-size: 18px; font-weight: 300; line-height: 1.8; color: var(--muted); }
.kicker {
    font-size: 11px; font-weight: 700; letter-spacing: 2px;
    text-transform: uppercase; color: var(--ouro);
    display: block; margin-bottom: 10px;
}

/* ── 4. LAYOUT ── */
.container {
    width: 100%;
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 24px;
}
.section { padding: 88px 0; }
.section-sm { padding: 56px 0; }
.section-lg { padding: 120px 0; }

.section-header { margin-bottom: 56px; }
.section-header p { margin-top: 16px; }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

/* ── 5. BUTTONS ── */
.btn {
    display: inline-flex; align-items: center; gap: 8px;
    font-family: var(--font-sans); font-weight: 700; font-size: 14px;
    letter-spacing: .3px; border-radius: var(--radius-sm);
    padding: 13px 26px; transition: background .18s var(--ease), transform .1s, box-shadow .18s;
    white-space: nowrap; text-decoration: none; cursor: pointer;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
    background: var(--navy); color: var(--branco);
    box-shadow: 0 4px 18px rgba(12,35,64,.25);
}
.btn-primary:hover { background: var(--navy-m); box-shadow: 0 6px 24px rgba(12,35,64,.35); }
.btn-secondary {
    background: var(--verde); color: var(--branco);
    box-shadow: 0 4px 18px rgba(26,59,28,.25);
}
.btn-secondary:hover { background: var(--verde-m); }
.btn-ouro {
    background: var(--ouro); color: var(--branco);
    box-shadow: 0 4px 18px rgba(184,154,60,.3);
}
.btn-ouro:hover { background: #a5882e; }
.btn-outline {
    background: transparent; color: var(--navy);
    border: 2px solid var(--navy);
}
.btn-outline:hover { background: var(--navy); color: var(--branco); }
.btn-outline-light {
    background: transparent; color: var(--branco);
    border: 2px solid rgba(255,255,255,.5);
}
.btn-outline-light:hover { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.8); }
.btn-sm { padding: 9px 18px; font-size: 13px; }
.btn-lg { padding: 16px 34px; font-size: 15px; }
.btn-block { width: 100%; justify-content: center; }

/* ── 6. HEADER ── */
.site-header {
    position: sticky; top: 0; z-index: 100;
    height: var(--header-h);
    display: flex; align-items: center;
    transition: box-shadow .2s;
}
/* O desfoque vive num ::before (em vez de ir direto no .site-header) para não
   se tornar "containing block" do menu mobile, que é position:fixed — caso
   contrário o menu fica preso à altura do cabeçalho em vez de cobrir o ecrã. */
.site-header::before {
    content: '';
    position: absolute; inset: 0; z-index: -1;
    background: rgba(248,243,236,.97);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--borda);
}
.site-header.scrolled { box-shadow: 0 4px 32px rgba(44,62,107,.12); }
.header-inner {
    display: flex; align-items: center; justify-content: space-between; gap: 24px;
    height: 100%;
}

.logo { display: inline-flex; align-items: center; text-decoration: none; flex-shrink: 0; }
.logo-img { height: 34px; width: auto; display: block; }

.main-nav ul {
    display: flex; align-items: center; gap: 4px; list-style: none;
}
.main-nav a {
    font-size: 13.5px; font-weight: 400; color: var(--texto);
    padding: 6px 12px; border-radius: 6px; transition: color .15s, background .15s;
    white-space: nowrap;
}
.main-nav a:hover { color: var(--navy); background: rgba(44,62,107,.06); }
.main-nav a.active { color: var(--navy); font-weight: 700; }

.header-cta { flex-shrink: 0; }

.hamburger {
    display: none; flex-direction: column; gap: 5px;
    padding: 8px; border-radius: 6px;
}
.hamburger span {
    display: block; width: 22px; height: 2px;
    background: var(--navy); border-radius: 2px;
    transition: transform .2s, opacity .2s;
}
.hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── 7. FOOTER ── */
.site-footer {
    background: var(--creme);
    color: var(--texto);
    padding-top: 72px;
    border-top: 1px solid var(--borda);
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 48px;
    padding-bottom: 56px;
    border-bottom: 1px solid var(--borda);
}
.footer-tagline {
    font-size: 14px; font-weight: 300; line-height: 1.75;
    color: var(--muted); margin-top: 18px; max-width: 300px;
}
.footer-contacts { margin-top: 20px; display: flex; flex-direction: column; gap: 10px; }
.footer-contact-link {
    display: flex; align-items: center; gap: 8px;
    font-size: 14px; color: var(--texto);
    transition: color .15s;
}
.footer-contact-link:hover { color: var(--navy); }

.footer-col h4 {
    font-family: var(--font-sans); font-size: 11px; font-weight: 700;
    letter-spacing: 1.5px; text-transform: uppercase;
    color: var(--ouro); margin-bottom: 16px;
}
.footer-links { display: flex; flex-direction: column; gap: 8px; }
.footer-links a {
    font-size: 14px; color: var(--muted);
    transition: color .15s; padding: 1px 0;
}
.footer-links a:hover { color: var(--navy); }
.footer-zonas {
    font-size: 12.5px; color: var(--muted); line-height: 1.8; max-width: 100%;
}

.footer-bottom { padding: 20px 0; }
.footer-bottom-inner {
    display: flex; align-items: center; justify-content: space-between;
    font-size: 12.5px; color: var(--muted);
}
.footer-bottom a { color: var(--navy); font-weight: 700; }
.footer-bottom a:hover { text-decoration: underline; }

/* ── 8. HERO SECTIONS ── */
.page-hero {
    background: var(--navy);
    padding: 100px 0 88px;
    position: relative;
    overflow: hidden;
}
.page-hero::after {
    content: ''; position: absolute; inset: 0;
    background: radial-gradient(ellipse at 80% 50%, rgba(26,59,28,.35) 0%, transparent 60%);
    pointer-events: none;
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { color: var(--branco); }
.page-hero .lead { color: rgba(255,255,255,.65); max-width: 580px; }
.hero-actions { margin-top: 36px; display: flex; gap: 14px; flex-wrap: wrap; }
.hero-badges { margin-top: 40px; display: flex; gap: 12px; flex-wrap: wrap; }
.hero-badge {
    display: inline-flex; align-items: center; gap: 7px;
    font-size: 12.5px; font-weight: 700; color: rgba(255,255,255,.8);
    background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12);
    border-radius: 20px; padding: 6px 14px;
}
.hero-badge svg { flex-shrink: 0; color: var(--ouro); }

/* ── 9. CARDS ── */
.card {
    background: var(--branco);
    border-radius: var(--radius);
    border: 1px solid var(--borda);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: box-shadow .2s, transform .2s;
}
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.card-body { padding: 28px; }
.card-icon {
    width: 52px; height: 52px; border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 18px; flex-shrink: 0;
}
.card-icon.navy  { background: var(--navy-lt);  color: var(--navy); }
.card-icon.verde { background: var(--verde-lt); color: var(--verde); }
.card-icon.ouro  { background: var(--ouro-lt);  color: var(--ouro); }

/* ── 10. FEATURE LIST (checkmarks) ── */
.feature-list { display: flex; flex-direction: column; gap: 12px; }
.feature-item {
    display: flex; gap: 12px; align-items: flex-start;
    font-size: 15px; line-height: 1.5;
}
.feature-check {
    width: 22px; height: 22px; border-radius: 50%;
    background: var(--verde-lt); color: var(--verde);
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0; margin-top: 1px;
}

/* ── 11. STEP PROCESS ── */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.step {
    text-align: center; padding: 32px 20px;
    position: relative;
}
.step:not(:last-child)::after {
    content: '';
    position: absolute; top: 36px; right: -12px;
    width: 24px; height: 2px;
    background: var(--borda);
}
.step-num {
    width: 52px; height: 52px; border-radius: 50%;
    background: var(--navy); color: var(--branco);
    font-family: var(--font-serif); font-size: 22px; font-weight: 700;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 18px;
}
.step h4 { font-family: var(--font-sans); font-size: 15px; margin-bottom: 8px; }
.step p  { font-size: 14px; color: var(--muted); max-width: none; }

/* ── 12. ZONES STRIP ── */
.zones-strip {
    background: var(--pedra);
    padding: 28px 0;
    text-align: center;
}
.zones-title {
    font-size: 11px; font-weight: 700; letter-spacing: 2px;
    text-transform: uppercase; color: var(--muted); margin-bottom: 12px;
}
.zones-list {
    display: flex; flex-wrap: wrap; gap: 8px 16px;
    justify-content: center; align-items: center;
}
.zones-list li {
    font-size: 14px; font-weight: 700; color: var(--navy);
    padding: 5px 14px; border-radius: 20px;
    background: var(--branco); border: 1px solid var(--borda);
}

/* ── 13. HIGHLIGHT BOX ── */
.highlight-box {
    background: var(--navy);
    border-radius: var(--radius);
    padding: 48px 40px;
    color: var(--branco);
}
.highlight-box h2, .highlight-box h3 { color: var(--branco); }
.highlight-box p { color: rgba(255,255,255,.7); }

.cta-strip {
    background: var(--verde);
    padding: 72px 0;
    text-align: center;
}
.cta-strip h2 { color: var(--branco); }
.cta-strip p  { color: rgba(255,255,255,.7); margin: 14px auto 32px; }

/* ── 14. FORMS ── */
.form-card {
    background: var(--branco);
    border-radius: var(--radius);
    border: 1px solid var(--borda);
    box-shadow: var(--shadow);
    padding: 40px;
}
.form-title {
    font-family: var(--font-serif); font-size: 24px;
    color: var(--navy); margin-bottom: 6px;
}
.form-sub { font-size: 14px; color: var(--muted); margin-bottom: 28px; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.form-group label { font-size: 13px; font-weight: 700; color: var(--texto); }
.form-group input,
.form-group select,
.form-group textarea {
    padding: 12px 14px; border-radius: var(--radius-sm);
    border: 1.5px solid var(--borda);
    font-size: 14px; color: var(--texto);
    background: var(--branco);
    transition: border-color .15s, box-shadow .15s;
    width: 100%;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--navy-m);
    box-shadow: 0 0 0 3px rgba(22,54,106,.12);
}
.form-group textarea { resize: vertical; min-height: 110px; }
.form-note { font-size: 12px; color: var(--muted); margin-top: 8px; }
.form-rgpd {
    display: flex; gap: 9px; align-items: flex-start;
    font-size: 12.5px; color: var(--muted); line-height: 1.55;
    margin-bottom: 18px;
}
.form-rgpd input { margin-top: 3px; flex-shrink: 0; accent-color: var(--navy); width: auto; }
.form-rgpd a { color: var(--navy); font-weight: 700; text-decoration: underline; }

/* Honeypot anti-spam: campo invisível para pessoas, "visível" para robôs */
.hp-field {
    position: absolute !important;
    left: -9999px !important;
    width: 1px; height: 1px;
    overflow: hidden;
}

/* ── 15. FAQ ── */
.faq-tabs {
    display: flex; flex-wrap: wrap; justify-content: center; gap: 10px;
    max-width: 760px; margin: 0 auto 32px;
}
.faq-tab {
    padding: 12px 22px; border-radius: var(--radius-sm);
    border: 1.5px solid var(--borda); background: var(--branco);
    font-family: var(--font-sans); font-size: 14px; font-weight: 700;
    color: var(--navy); cursor: pointer; transition: background .15s, border-color .15s, color .15s;
    white-space: nowrap;
}
.faq-tab:hover { border-color: var(--navy-m); }
.faq-tab.active { background: var(--ouro); border-color: var(--ouro); color: var(--branco); }
.faq-list { max-width: 760px; }
.faq-item[hidden] { display: none; }
.faq-item {
    border-bottom: 1px solid var(--borda);
    overflow: hidden;
}
.faq-q {
    width: 100%; text-align: left;
    padding: 20px 0; font-size: 16px; font-weight: 700;
    color: var(--navy); display: flex; justify-content: space-between; align-items: center;
    gap: 16px; cursor: pointer;
    background: none; border: none; font-family: var(--font-sans);
}
.faq-q svg { flex-shrink: 0; transition: transform .2s; color: var(--ouro); }
.faq-q[aria-expanded="true"] svg { transform: rotate(45deg); }
.faq-a {
    font-size: 15px; color: var(--muted); line-height: 1.75;
    padding-bottom: 20px; display: none; max-width: 100%;
}
.faq-a.open { display: block; }

/* ── 16. BADGE / CHIP ── */
.badge {
    display: inline-block; font-size: 11px; font-weight: 700;
    letter-spacing: .5px; text-transform: uppercase;
    padding: 4px 10px; border-radius: 4px;
}
.badge-navy  { background: var(--navy-lt);  color: var(--navy); }
.badge-verde { background: var(--verde-lt); color: var(--verde); }
.badge-ouro  { background: var(--ouro-lt);  color: #8A6E20; }

/* ── 17. STAT NUMBERS ── */
.stats-row { display: flex; gap: 48px; flex-wrap: wrap; }
.stat-item {}
.stat-num {
    font-family: var(--font-serif); font-size: 40px; font-weight: 700;
    color: var(--navy); line-height: 1;
}
.stat-num span { color: var(--ouro); }
.stat-label { font-size: 13px; color: var(--muted); margin-top: 4px; }

/* ── 18. IMAGE PLACEHOLDER ── */
.img-placeholder {
    background: linear-gradient(145deg, #071828 0%, var(--navy) 100%);
    border-radius: var(--radius);
    display: flex; align-items: center; justify-content: center;
    color: rgba(255,255,255,.2); font-size: 13px;
    text-align: center; gap: 8px; flex-direction: column;
}
.img-placeholder svg { opacity: .3; }

/* ── 19. SECTION BG VARIANTS ── */
.bg-creme  { background: var(--creme); }
.bg-pedra  { background: var(--pedra); }
.bg-navy   { background: var(--navy); }
.bg-verde  { background: var(--verde); }
.bg-navy h2, .bg-navy h3 { color: var(--branco); }
.bg-navy p  { color: rgba(255,255,255,.65); }
.bg-verde h2, .bg-verde h3 { color: var(--branco); }
.bg-verde p { color: rgba(255,255,255,.65); }

/* ── 20. POPUP DE SAÍDA ── */
.exit-popup-overlay {
    display: none;
    position: fixed; inset: 0;
    background: rgba(28,40,48,.6);
    z-index: 999;
    align-items: center; justify-content: center;
    padding: 20px;
    opacity: 0;
    transition: opacity .25s var(--ease);
}
.exit-popup-overlay.aberto { display: flex; }
.exit-popup-overlay.mostrar { opacity: 1; }
.exit-popup {
    position: relative;
    background: var(--branco);
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    max-width: 440px;
    width: 100%;
    padding: 44px 36px 36px;
    text-align: center;
    transform: scale(.94) translateY(10px);
    transition: transform .25s var(--ease);
}
.exit-popup-overlay.mostrar .exit-popup { transform: scale(1) translateY(0); }
.exit-popup-close {
    position: absolute; top: 14px; right: 14px;
    width: 32px; height: 32px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    background: var(--pedra); color: var(--muted);
    border: none; cursor: pointer; transition: background .15s;
}
.exit-popup-close:hover { background: var(--borda); }
.exit-popup h2 { font-size: 24px; margin-bottom: 12px; }
.exit-popup p { color: var(--muted); max-width: none; margin-bottom: 24px; }
.exit-popup-actions { display: flex; flex-direction: column; gap: 12px; }
.exit-popup-dismiss {
    display: inline-block; margin-top: 18px;
    font-size: 13px; color: var(--muted); text-decoration: underline;
    background: none; border: none; cursor: pointer;
}

/* ── 20b. COOKIE BANNER ── */
.cookie-banner {
    display: none;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 998;
    background: var(--navy); color: var(--branco);
    padding: 18px 28px;
    align-items: center; justify-content: center; gap: 24px; flex-wrap: wrap;
    box-shadow: 0 -6px 28px rgba(12,35,64,.2);
}
.cookie-banner.aberto { display: flex; }
.cookie-banner p { margin: 0; font-size: 13.5px; line-height: 1.6; color: rgba(255,255,255,.82); max-width: 620px; }
.cookie-banner a { color: var(--ouro); text-decoration: underline; }
.cookie-banner-actions { display: flex; gap: 10px; flex-shrink: 0; }
@media (max-width: 640px) {
    .cookie-banner { flex-direction: column; text-align: center; padding: 18px 20px calc(18px + env(safe-area-inset-bottom, 0px)); }
    .cookie-banner-actions { width: 100%; }
    .cookie-banner-actions .btn { flex: 1; justify-content: center; }
}

/* ── 21. CHATBOT ── */
.chatbot-toggle {
    position: fixed; right: 24px; bottom: 24px; z-index: 900;
    width: 60px; height: 60px; border-radius: 50%;
    background: var(--navy); color: var(--branco);
    border: none; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    box-shadow: var(--shadow-md);
    transition: transform .2s, background .2s;
    /* Estabiliza a camada no Safari/Chrome mobile — sem isto o botão fixo
       pode "piscar"/desaparecer momentaneamente durante o scroll. */
    transform: translateZ(0);
    will-change: transform;
    backface-visibility: hidden;
}
.chatbot-toggle:hover { transform: translateZ(0) scale(1.06); background: var(--navy-m); }
.chatbot-toggle .icone-fechar { display: none; }
.chatbot-toggle.aberto .icone-chat { display: none; }
.chatbot-toggle.aberto .icone-fechar { display: block; }
.chatbot-toggle-badge {
    position: absolute; top: -2px; right: -2px;
    width: 18px; height: 18px; border-radius: 50%;
    background: var(--ouro); border: 2px solid var(--branco);
    animation: chatbot-pulso 1.8s ease-in-out infinite;
}
.chatbot-toggle.aberto .chatbot-toggle-badge { display: none; }
@keyframes chatbot-pulso {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.25); }
}

.chatbot-window {
    position: fixed; right: 24px; bottom: 96px; z-index: 900;
    width: 370px; max-width: calc(100vw - 32px);
    height: 520px; max-height: calc(100vh - 140px);
    background: var(--branco);
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    display: flex; flex-direction: column;
    overflow: hidden;
    opacity: 0; transform: translateY(16px) scale(.97);
    pointer-events: none;
    transition: opacity .2s var(--ease), transform .2s var(--ease);
    will-change: transform, opacity;
    backface-visibility: hidden;
}
.chatbot-window.aberto { opacity: 1; transform: translateY(0) scale(1); pointer-events: auto; }

.chatbot-header {
    background: var(--navy); color: var(--branco);
    padding: 16px 18px; display: flex; align-items: center; gap: 12px;
    flex-shrink: 0;
}
.chatbot-avatar {
    width: 38px; height: 38px; border-radius: 50%; flex-shrink: 0;
    background: var(--ouro); color: var(--navy);
    display: flex; align-items: center; justify-content: center;
    font-family: var(--font-serif); font-weight: 700; font-size: 16px;
}
.chatbot-header-titulo { font-family: var(--font-serif); font-size: 15px; font-weight: 700; }
.chatbot-header-sub { font-size: 12px; color: rgba(255,255,255,.65); display: flex; align-items: center; gap: 5px; margin-top: 1px; }
.chatbot-header-sub::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: #4CAF50; display: inline-block; }

.chatbot-body {
    flex: 1; overflow-y: auto; padding: 18px;
    background: var(--creme);
    display: flex; flex-direction: column; gap: 10px;
}
.chatbot-msg {
    max-width: 85%; padding: 11px 14px; border-radius: 14px;
    font-size: 13.5px; line-height: 1.55;
    white-space: pre-line;
}
.chatbot-msg.bot {
    align-self: flex-start; background: var(--branco); color: var(--texto);
    border: 1px solid var(--borda); border-bottom-left-radius: 4px;
}
.chatbot-msg.user {
    align-self: flex-end; background: var(--navy); color: var(--branco);
    border-bottom-right-radius: 4px;
}
.chatbot-opcoes { display: flex; flex-direction: column; gap: 8px; margin-top: 2px; }
.chatbot-opcao {
    align-self: flex-start; max-width: 100%;
    background: var(--branco); border: 1px solid var(--navy-m);
    color: var(--navy); font-weight: 700; font-size: 13px;
    padding: 9px 14px; border-radius: 20px; cursor: pointer;
    text-align: left; transition: background .15s, color .15s;
}
.chatbot-opcao:hover { background: var(--navy); color: var(--branco); }

.chatbot-cta { display: flex; flex-direction: column; gap: 8px; margin-top: 4px; }
.chatbot-cta a.btn { width: 100%; justify-content: center; padding: 10px 16px; font-size: 13.5px; }

.chatbot-input-row {
    display: none; align-items: center; gap: 8px;
    padding: 12px 14px; border-top: 1px solid var(--borda);
    background: var(--branco); flex-shrink: 0;
}
.chatbot-input-row.aberto { display: flex; }
.chatbot-input {
    flex: 1; border: 1px solid var(--borda); border-radius: 20px;
    padding: 9px 15px; font-size: 13.5px; font-family: var(--font-sans);
    outline: none; color: var(--texto); transition: border-color .15s;
}
.chatbot-input:focus { border-color: var(--navy-m); }
.chatbot-input.erro { border-color: #C0392B; }
.chatbot-enviar {
    width: 38px; height: 38px; border-radius: 50%; flex-shrink: 0;
    background: var(--navy); color: var(--branco); border: none;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; transition: background .15s;
}
.chatbot-enviar:hover { background: var(--navy-m); }

.chatbot-typing { align-self: flex-start; display: flex; gap: 4px; padding: 12px 16px; background: var(--branco); border: 1px solid var(--borda); border-radius: 14px; border-bottom-left-radius: 4px; }
.chatbot-typing span { width: 6px; height: 6px; border-radius: 50%; background: var(--muted); opacity: .5; animation: chatbot-typing 1s infinite; }
.chatbot-typing span:nth-child(2) { animation-delay: .15s; }
.chatbot-typing span:nth-child(3) { animation-delay: .3s; }
@keyframes chatbot-typing { 0%, 60%, 100% { opacity: .3; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-3px); } }

/* ── 22. RESPONSIVE ── */
@media (max-width: 1024px) {
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .steps  { grid-template-columns: repeat(2, 1fr); }
    .step:nth-child(2)::after { display: none; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .footer-col:first-child { grid-column: 1 / -1; }
}

@media (max-width: 768px) {
    :root { --header-h: 64px; }

    .hamburger { display: flex; }
    .header-cta { display: none; }

    .main-nav {
        position: fixed; inset: var(--header-h) 0 0 0;
        background: var(--navy); z-index: 99;
        display: none; flex-direction: column;
        padding: 24px 24px calc(24px + env(safe-area-inset-bottom, 0px));
        overflow-y: auto; -webkit-overflow-scrolling: touch;
    }
    .main-nav.open { display: flex; }
    .main-nav ul { flex-direction: column; gap: 4px; width: 100%; }
    .main-nav a { display: block; font-size: 18px; padding: 14px 16px; border-radius: 8px; color: rgba(255,255,255,.9); }
    .main-nav a:hover, .main-nav a:active { background: rgba(255,255,255,.08); color: #fff; }
    .main-nav a.active { color: var(--ouro); }

    body.menu-aberto { position: fixed; width: 100%; }

    .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
    .steps { grid-template-columns: 1fr; }
    .step::after { display: none !important; }

    .form-row { grid-template-columns: 1fr; }

    .footer-grid { grid-template-columns: 1fr; gap: 32px; }
    .footer-bottom-inner { flex-direction: column; gap: 6px; text-align: center; }

    .section { padding: 64px 0; }
    .section-lg { padding: 80px 0; }
    .page-hero { padding: 72px 0 64px; }
    .hero-actions { flex-direction: column; }

    .stats-row { gap: 28px; }
    .stat-num { font-size: 32px; }

    .highlight-box { padding: 32px 24px; }
    .form-card { padding: 28px 20px; }

    .exit-popup { padding: 36px 24px 28px; }

    .chatbot-toggle { right: 16px; bottom: 16px; width: 54px; height: 54px; }
    .chatbot-window {
        right: 8px; left: 8px; bottom: 80px;
        top: calc(var(--header-h) + 12px);
        width: auto; max-width: none;
        height: auto; max-height: none;
    }

    /* Impede o iOS Safari de dar zoom automático ao focar em campos com
       font-size inferior a 16px */
    .chatbot-input,
    .form-group input,
    .form-group select,
    .form-group textarea {
        font-size: 16px;
    }
}
