/* =========================================================
   ACTIONSOFT — Design System
   Identidade visual derivada da logo oficial:
   Verde #019944 (marca) + Charcoal #1F1917 (texto) + Branco
   ========================================================= */

:root {
    /* Marca */
    --brand-primary: #019944;
    --brand-primary-dark: #017A37;
    --brand-primary-light: #4FB97E;
    --brand-primary-tint: #E6F5EC;

    --brand-secondary: #1F1917;
    --brand-secondary-dark: #14110F;
    --brand-secondary-light: #3A3737;

    --brand-accent: #65D796;

    /* Texto */
    --text-primary: #1F1917;
    --text-secondary: #5A5654;
    --text-on-brand: #FFFFFF;

    /* Fundos */
    --background: #FFFFFF;
    --background-light: #F4F7F5;
    --background-dark: #15120F;

    /* Linhas */
    --border: #E2E6E4;
    --border-dark: #2C2826;

    /* Status */
    --success: #019944;
    --danger: #C0392B;
    --warning: #B7791F;

    /* Tipografia */
    --font-head: 'Montserrat', 'Segoe UI', system-ui, sans-serif;
    --font-body: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;

    /* Layout */
    --container: 1180px;
    --radius-sm: 8px;
    --radius: 14px;
    --radius-lg: 22px;

    /* Sombra */
    --shadow-sm: 0 1px 3px rgba(31, 25, 23, .08);
    --shadow: 0 8px 30px rgba(31, 25, 23, .10);
    --shadow-lg: 0 18px 50px rgba(31, 25, 23, .16);

    /* Transição */
    --t: .25s ease;
}

/* ----------------------- Base ----------------------- */
* { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    font-family: var(--font-body);
    color: var(--text-primary);
    background: var(--background);
    line-height: 1.65;
    font-size: 17px;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--brand-primary-dark); text-decoration: none; transition: color var(--t); }
a:hover { color: var(--brand-primary); }

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-head);
    color: var(--brand-secondary);
    line-height: 1.15;
    margin: 0 0 .5em;
    font-weight: 700;
    letter-spacing: -.01em;
}

h1 { font-size: clamp(2.1rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.6rem); }
h3 { font-size: 1.3rem; }

p { margin: 0 0 1rem; color: var(--text-secondary); }

.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
}

.section { padding: clamp(56px, 8vw, 110px) 0; }
.section--light { background: var(--background-light); }
.section--dark { background: var(--brand-secondary-dark); color: #EDEAE7; }
.section--dark h2, .section--dark h3 { color: #fff; }
.section--dark p { color: #C9C4C0; }

.section__head { max-width: 760px; margin: 0 auto clamp(36px, 5vw, 60px); text-align: center; }
.section__head .eyebrow {
    display: inline-block;
    font-family: var(--font-head);
    font-weight: 700;
    font-size: .82rem;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--brand-primary-dark);
    margin-bottom: 14px;
}
.section--dark .section__head .eyebrow { color: var(--brand-accent); }

/* ----------------------- Botões ----------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-head);
    font-weight: 600;
    font-size: 1rem;
    padding: 14px 26px;
    border-radius: var(--radius-sm);
    border: 2px solid transparent;
    cursor: pointer;
    transition: all var(--t);
    text-decoration: none;
    line-height: 1;
}
.btn svg { width: 18px; height: 18px; }

.btn--primary {
    background: var(--brand-primary);
    color: #fff;
    border-color: var(--brand-primary);
    box-shadow: 0 6px 18px rgba(1, 153, 68, .28);
}
.btn--primary:hover {
    background: var(--brand-primary-dark);
    border-color: var(--brand-primary-dark);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 10px 26px rgba(1, 153, 68, .34);
}

.btn--ghost {
    background: transparent;
    color: var(--brand-secondary);
    border-color: var(--border);
}
.btn--ghost:hover { border-color: var(--brand-primary); color: var(--brand-primary-dark); }

.btn--light {
    background: #fff;
    color: var(--brand-secondary);
    border-color: #fff;
}
.btn--light:hover { background: var(--brand-primary-tint); color: var(--brand-primary-dark); }

.btn--outline-light {
    background: transparent;
    color: #fff;
    border-color: rgba(255,255,255,.4);
}
.btn--outline-light:hover { border-color: #fff; background: rgba(255,255,255,.08); }

.btn--lg { padding: 17px 34px; font-size: 1.06rem; }
.btn--block { width: 100%; justify-content: center; }

/* ----------------------- Header / Menu ----------------------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255,255,255,.92);
    backdrop-filter: saturate(160%) blur(10px);
    border-bottom: 1px solid var(--border);
}
.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    height: 78px;
}
.logo { display: flex; align-items: center; }
.logo img { height: 46px; width: auto; }

.main-nav { display: flex; align-items: center; gap: 4px; }
.main-nav a {
    font-family: var(--font-head);
    font-weight: 600;
    font-size: .96rem;
    color: var(--brand-secondary);
    padding: 10px 14px;
    border-radius: var(--radius-sm);
}
.main-nav a:hover, .main-nav a.is-active { color: var(--brand-primary-dark); background: var(--brand-primary-tint); }

.header-cta { display: flex; align-items: center; gap: 14px; }
.nav-toggle {
    display: none;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 9px 11px;
    cursor: pointer;
}
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--brand-secondary); margin: 4px 0; transition: var(--t); }

/* ----------------------- Hero ----------------------- */
.hero {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(1200px 600px at 85% -10%, rgba(1,153,68,.10), transparent 60%),
        radial-gradient(900px 500px at -10% 110%, rgba(31,25,23,.06), transparent 60%),
        var(--background);
    padding: clamp(56px, 9vw, 120px) 0 clamp(60px, 8vw, 110px);
}
.hero__grid {
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    gap: 56px;
    align-items: center;
}
.hero__eyebrow {
    display: inline-flex; align-items: center; gap: 10px;
    font-family: var(--font-head); font-weight: 700;
    font-size: .82rem; letter-spacing: .14em; text-transform: uppercase;
    color: var(--brand-primary-dark);
    background: var(--brand-primary-tint);
    padding: 8px 16px; border-radius: 999px; margin-bottom: 22px;
}
.hero h1 { margin-bottom: 20px; }
.hero h1 .accent { color: var(--brand-primary); }
.hero__sub { font-size: 1.18rem; max-width: 540px; margin-bottom: 32px; }
.hero__actions { display: flex; gap: 16px; flex-wrap: wrap; }
.hero__visual { position: relative; }
.hero__visual svg { width: 100%; height: auto; filter: drop-shadow(0 18px 40px rgba(1,153,68,.18)); }

.hero__badges { display: flex; gap: 26px; margin-top: 40px; flex-wrap: wrap; }
.hero__badge .n { font-family: var(--font-head); font-weight: 800; font-size: 1.9rem; color: var(--brand-secondary); }
.hero__badge .l { font-size: .92rem; color: var(--text-secondary); }

/* ----------------------- Cards ----------------------- */
.grid { display: grid; gap: 26px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.grid--auto { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }

.card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 30px;
    transition: transform var(--t), box-shadow var(--t), border-color var(--t);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--brand-primary-light); }
.card__icon {
    width: 54px; height: 54px;
    display: grid; place-items: center;
    border-radius: 14px;
    background: var(--brand-primary-tint);
    color: var(--brand-primary-dark);
    margin-bottom: 18px;
}
.card__icon svg { width: 28px; height: 28px; }
.card h3 { margin-bottom: 10px; }
.card p { margin: 0; font-size: .98rem; }
.card--dark { background: #201C19; border-color: var(--border-dark); }
.card--dark h3 { color: #fff; }
.card--dark p { color: #B9B3AE; }
.card--dark .card__icon { background: rgba(1,153,68,.18); color: var(--brand-accent); }

/* Lista de serviço dentro de card */
.card ul { margin: 12px 0 0; padding-left: 18px; color: var(--text-secondary); font-size: .96rem; }
.card ul li { margin-bottom: 6px; }

/* ----------------------- Experience band ----------------------- */
.exp {
    background: linear-gradient(135deg, var(--brand-primary), var(--brand-primary-dark));
    color: #fff;
    border-radius: var(--radius-lg);
    padding: clamp(40px, 6vw, 70px);
    text-align: center;
    position: relative;
    overflow: hidden;
}
.exp::after {
    content: "";
    position: absolute; inset: 0;
    background: radial-gradient(600px 300px at 90% 10%, rgba(255,255,255,.16), transparent 60%);
}
.exp h2 { color: #fff; font-size: clamp(2rem, 5vw, 3.4rem); margin-bottom: 12px; }
.exp p { color: rgba(255,255,255,.9); max-width: 620px; margin: 0 auto; font-size: 1.15rem; }
.exp .big { font-family: var(--font-head); font-weight: 800; }

/* ----------------------- Steps ----------------------- */
.steps { counter-reset: step; }
.step {
    position: relative;
    padding: 30px 28px 30px 30px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: #fff;
}
.step__num {
    font-family: var(--font-head); font-weight: 800; font-size: 1.4rem;
    color: var(--brand-primary);
    display: inline-grid; place-items: center;
    width: 52px; height: 52px; border-radius: 14px;
    background: var(--brand-primary-tint);
    margin-bottom: 16px;
}

/* ----------------------- Timeline ----------------------- */
.timeline { position: relative; max-width: 820px; margin: 0 auto; }
.timeline::before {
    content: ""; position: absolute; left: 22px; top: 6px; bottom: 6px;
    width: 3px; background: linear-gradient(var(--brand-primary), var(--brand-primary-light));
}
.tl-item { position: relative; padding: 0 0 38px 64px; }
.tl-item::before {
    content: ""; position: absolute; left: 14px; top: 4px;
    width: 20px; height: 20px; border-radius: 50%;
    background: #fff; border: 4px solid var(--brand-primary);
}
.tl-item h3 { margin-bottom: 6px; }
.tl-item .year { font-family: var(--font-head); font-weight: 800; color: var(--brand-primary-dark); }
.tl-item p { margin: 0; }

/* ----------------------- Flow (evo) ----------------------- */
.flow { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; align-items: center; }
.flow .node {
    background: #fff; border: 1px solid var(--border); border-radius: 999px;
    padding: 12px 22px; font-family: var(--font-head); font-weight: 600; color: var(--brand-secondary);
}
.flow .arrow { color: var(--brand-primary); font-weight: 800; }

/* ----------------------- CTA final ----------------------- */
.cta-final {
    background: var(--brand-secondary-dark);
    border-radius: var(--radius-lg);
    padding: clamp(46px, 7vw, 80px);
    text-align: center;
    position: relative; overflow: hidden;
}
.cta-final::before {
    content: ""; position: absolute; inset: 0;
    background: radial-gradient(700px 360px at 50% -20%, rgba(1,153,68,.35), transparent 60%);
}
.cta-final > * { position: relative; }
.cta-final h2 { color: #fff; }
.cta-final p { color: #CFCAC6; max-width: 640px; margin: 0 auto 28px; font-size: 1.12rem; }

/* ----------------------- Segment chips ----------------------- */
.chips { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.chip {
    border: 1px solid var(--border);
    background: #fff;
    border-radius: 999px;
    padding: 11px 22px;
    font-family: var(--font-head); font-weight: 600;
    color: var(--brand-secondary);
}

/* ----------------------- Forms ----------------------- */
.form { max-width: 720px; margin: 0 auto; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-family: var(--font-head); font-weight: 600; font-size: .92rem; margin-bottom: 7px; color: var(--brand-secondary); }
.field .req { color: var(--brand-primary); }
.field input, .field textarea, .field select {
    width: 100%;
    font-family: var(--font-body);
    font-size: 1rem;
    padding: 13px 15px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: #fff;
    color: var(--text-primary);
    transition: border-color var(--t), box-shadow var(--t);
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus {
    outline: none;
    border-color: var(--brand-primary);
    box-shadow: 0 0 0 3px var(--brand-primary-tint);
}
.field--error input, .field--error textarea { border-color: var(--danger); }
.field__error { color: var(--danger); font-size: .85rem; margin-top: 6px; display: none; }
.field--error .field__error { display: block; }
.check {
    display: flex; gap: 12px; align-items: flex-start;
    font-size: .95rem; color: var(--text-secondary);
}
.check input { width: 20px; height: 20px; margin-top: 3px; accent-color: var(--brand-primary); }
.alert { padding: 14px 18px; border-radius: var(--radius-sm); margin-bottom: 22px; font-size: .96rem; border: 1px solid; }
.alert--success { background: var(--brand-primary-tint); border-color: var(--brand-primary-light); color: var(--brand-primary-dark); }
.alert--error { background: #FBEAE7; border-color: #E7B7AE; color: var(--danger); }
.alert ul { margin: 6px 0 0; padding-left: 18px; }

/* ----------------------- Contato info ----------------------- */
.contact-info { display: grid; gap: 16px; }
.contact-info .item { display: flex; gap: 14px; align-items: flex-start; }
.contact-info .item svg { width: 24px; height: 24px; color: var(--brand-primary-dark); flex: none; margin-top: 3px; }
.contact-info .item h4 { font-family: var(--font-head); margin: 0 0 2px; font-size: 1rem; }
.contact-info .item p { margin: 0; color: var(--text-secondary); }
.map-wrap { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); margin-top: 8px; }
.map-wrap iframe { width: 100%; height: 320px; border: 0; display: block; }

/* ----------------------- Footer ----------------------- */
.site-footer {
    background: var(--brand-secondary-dark);
    color: #C9C4C0;
    padding: 60px 0 28px;
}
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 36px; }
.site-footer .logo img { height: 44px; filter: none; }
.footer__about p { color: #A8A29E; font-size: .96rem; max-width: 320px; }
.footer__col h4 { color: #fff; font-family: var(--font-head); font-size: 1rem; margin-bottom: 16px; }
.footer__col ul { list-style: none; margin: 0; padding: 0; }
.footer__col li { margin-bottom: 10px; }
.footer__col a { color: #C9C4C0; }
.footer__col a:hover { color: var(--brand-accent); }
.footer__bottom {
    margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--border-dark);
    display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
    font-size: .88rem; color: #8E8985;
}
.footer__bottom a { color: #A8A29E; }

/* ----------------------- Breadcrumb / page intro ----------------------- */
.page-intro {
    background: linear-gradient(135deg, var(--brand-secondary-dark), #271F1B);
    color: #fff; padding: clamp(46px, 7vw, 84px) 0;
    position: relative; overflow: hidden;
}
.page-intro::after {
    content: ""; position: absolute; inset: 0;
    background: radial-gradient(700px 360px at 90% 0%, rgba(1,153,68,.30), transparent 60%);
}
.page-intro > .container { position: relative; }
.page-intro h1 { color: #fff; }
.page-intro p { color: #CFCAC6; max-width: 640px; font-size: 1.12rem; margin: 0; }
.breadcrumb { font-size: .88rem; color: #9A948F; margin-bottom: 14px; }
.breadcrumb a { color: var(--brand-accent); }

/* ----------------------- Accordion (FAQ/privacy) ----------------------- */
.accordion { max-width: 860px; margin: 0 auto; }
.acc-item { border: 1px solid var(--border); border-radius: var(--radius-sm); margin-bottom: 14px; background: #fff; overflow: hidden; }
.acc-head { width: 100%; text-align: left; background: transparent; border: 0; padding: 18px 22px; font-family: var(--font-head); font-weight: 600; font-size: 1.05rem; color: var(--brand-secondary); cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 14px; }
.acc-head .plus { transition: transform var(--t); color: var(--brand-primary); }
.acc-item.is-open .acc-head .plus { transform: rotate(45deg); }
.acc-body { padding: 0 22px 20px; display: block; }
.js .acc-body { display: none; }
.js .acc-item.is-open .acc-body { display: block; }

/* ----------------------- Stat mini ----------------------- */
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; text-align: center; }
.stat .n { font-family: var(--font-head); font-weight: 800; font-size: 2.4rem; color: var(--brand-primary); }
.stat .l { color: var(--text-secondary); font-size: .95rem; }

/* ----------------------- Tabela (privacidade) ----------------------- */
.table { width: 100%; border-collapse: collapse; margin: 0 0 24px; }
.table th, .table td { text-align: left; padding: 14px 16px; border-bottom: 1px solid var(--border); font-size: .96rem; }
.table th { font-family: var(--font-head); color: var(--brand-secondary); background: var(--background-light); }

/* Utilities */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.lead { font-size: 1.18rem; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }

/* Foco visível (acessibilidade) */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
    outline: 3px solid var(--brand-primary); outline-offset: 2px;
}

/* ----------------------- Responsivo ----------------------- */
@media (max-width: 992px) {
    .hero__grid { grid-template-columns: 1fr; gap: 36px; }
    .hero__visual { max-width: 460px; }
    .grid--4 { grid-template-columns: repeat(2, 1fr); }
    .stat-grid { grid-template-columns: repeat(2, 1fr); }
    .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .nav-toggle { display: block; }
    .main-nav, .header-cta .btn { display: none; }
    .main-nav.is-open {
        display: flex; flex-direction: column; align-items: stretch; gap: 4px;
        position: absolute; top: 78px; left: 0; right: 0;
        background: #fff; border-bottom: 1px solid var(--border);
        padding: 14px 24px 22px; box-shadow: var(--shadow);
    }
    .main-nav.is-open a { padding: 12px 14px; }
    .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
    .form__row { grid-template-columns: 1fr; }
    .footer__grid { grid-template-columns: 1fr; }
}

/* Respeita quem prefere menos movimento */
@media (prefers-reduced-motion: reduce) {
    * { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}

/* Animação de entrada discreta (apenas com JS ativo) */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }
