/* =========================================================
   A. Piegel Soluções Corporativas — Folha de estilo
   Paleta corporativa: azul-marinho + dourado
   ========================================================= */

:root {
    --navy-900: #0b1f38;
    --navy-800: #0f2942;
    --navy-700: #143354;
    --navy-600: #1b4272;
    --gold-500: #c9a24b;
    --gold-400: #d8b662;
    --gold-600: #ab8535;
    --ink: #16202e;
    --slate-700: #33445c;
    --slate-500: #64748b;
    --slate-300: #cbd5e1;
    --mist: #f5f7fa;
    --mist-2: #eef2f7;
    --white: #ffffff;
    --shadow-sm: 0 2px 8px rgba(11, 31, 56, .06);
    --shadow-md: 0 12px 30px rgba(11, 31, 56, .10);
    --shadow-lg: 0 24px 60px rgba(11, 31, 56, .16);
    --radius: 14px;
    --radius-sm: 10px;
    --container: 1180px;
    --ease: cubic-bezier(.16, .84, .44, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--ink);
    background: var(--white);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

h1, h2, h3, h4 { font-family: 'Playfair Display', Georgia, serif; line-height: 1.15; font-weight: 700; color: var(--navy-800); }

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

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

/* ---------- Botões ---------- */
.btn {
    display: inline-flex; align-items: center; gap: .55rem;
    padding: 14px 30px; border-radius: 50px; font-weight: 600; font-size: .95rem;
    letter-spacing: .2px; cursor: pointer; border: 2px solid transparent;
    transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s, color .25s;
    font-family: 'Inter', sans-serif;
}
.btn-gold { background: linear-gradient(135deg, var(--gold-400), var(--gold-600)); color: #23180a; box-shadow: 0 10px 24px rgba(201,162,75,.32); }
.btn-gold:hover { transform: translateY(-3px); box-shadow: 0 16px 32px rgba(201,162,75,.42); }
.btn-outline { border-color: rgba(255,255,255,.55); color: #fff; }
.btn-outline:hover { background: #fff; color: var(--navy-800); transform: translateY(-3px); }
.btn-navy { background: var(--navy-800); color: #fff; }
.btn-navy:hover { background: var(--navy-700); transform: translateY(-3px); box-shadow: var(--shadow-md); }
.btn-whats { background: #25d366; color: #06371c; box-shadow: 0 10px 24px rgba(37,211,102,.30); }
.btn-whats:hover { background: #20bd5a; transform: translateY(-3px); box-shadow: 0 16px 32px rgba(37,211,102,.42); }
.btn-whats svg { width: 20px; height: 20px; }

/* ---------- Cabeçalho ---------- */
.site-header {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    padding: 18px 0; transition: background .35s, box-shadow .35s, padding .35s;
}
.site-header.scrolled { background: rgba(11,31,56,.96); backdrop-filter: blur(10px); box-shadow: 0 4px 24px rgba(0,0,0,.18); padding: 12px 0; }
.header-inner { display: flex; align-items: center; justify-content: space-between; }

.brand { display: flex; align-items: center; }
/* A logo tem texto escuro sobre fundo claro, então vai sobre uma placa branca
   para permanecer legível no cabeçalho/rodapé escuros. */
.brand-mark {
    flex-shrink: 0; border-radius: 8px; background: #fff; padding: 7px 12px;
    display: flex; align-items: center; box-shadow: 0 2px 8px rgba(0,0,0,.18);
}
.brand-mark img { height: 34px; width: auto; display: block; }

.nav { display: flex; align-items: center; gap: 4px; }
.nav a { color: rgba(255,255,255,.86); font-size: .92rem; font-weight: 500; padding: 8px 16px; border-radius: 8px; transition: color .2s, background .2s; }
.nav a:hover { color: #fff; background: rgba(255,255,255,.08); }
.nav .nav-cta { margin-left: 10px; }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle span { width: 26px; height: 2px; background: #fff; border-radius: 2px; transition: .3s; }

/* ---------- Hero ---------- */
.hero {
    position: relative; min-height: 100vh; display: flex; align-items: center;
    background: radial-gradient(1200px 600px at 75% -10%, #1d4c80 0%, transparent 55%),
                linear-gradient(160deg, var(--navy-900) 0%, var(--navy-800) 45%, var(--navy-700) 100%);
    color: #fff; overflow: hidden; padding: 140px 0 90px;
}
.hero::after {
    content: ''; position: absolute; inset: 0; opacity: .5;
    background-image:
        linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
    background-size: 60px 60px; mask-image: radial-gradient(1000px 500px at 70% 30%, #000 0%, transparent 70%);
}
.hero-glow { position: absolute; width: 520px; height: 520px; border-radius: 50%; filter: blur(90px); opacity: .35; }
.hero-glow.g1 { background: var(--gold-500); top: -120px; right: -80px; }
.hero-glow.g2 { background: #1f5f9e; bottom: -160px; left: -120px; opacity: .4; }

.hero-inner { position: relative; z-index: 2; max-width: 780px; }
.eyebrow {
    display: inline-flex; align-items: center; gap: 10px; padding: 8px 18px; margin-bottom: 26px;
    border: 1px solid rgba(201,162,75,.5); border-radius: 50px; color: var(--gold-400);
    font-size: .78rem; letter-spacing: 2.5px; text-transform: uppercase; font-weight: 600;
    background: rgba(201,162,75,.08);
}
.eyebrow::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--gold-400); }
.hero h1 { font-size: clamp(2.5rem, 6vw, 3.9rem); color: #fff; margin-bottom: 26px; letter-spacing: -.5px; text-align: justify; text-align-last: left; }
.hero h1 em { font-style: italic; color: var(--gold-400); }
.hero p.lead { font-size: clamp(1.05rem, 2vw, 1.28rem); color: rgba(255,255,255,.82); max-width: 780px; margin-bottom: 40px; font-weight: 300; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }


/* ---------- Seções ---------- */
.section { padding: 24px 0; }
.section.alt { background: var(--mist); }
.section-head { max-width: 720px; margin: 0 auto 64px; text-align: center; }
.section-head .kicker {
    display: inline-block; color: var(--gold-600); font-weight: 700; font-size: .8rem;
    letter-spacing: 3px; text-transform: uppercase; margin-bottom: 16px;
}
.section-head h2 { font-size: clamp(2rem, 4vw, 2.9rem); margin-bottom: 18px; }
.section-head p { color: var(--slate-500); font-size: 1.08rem; }
.divider { width: 64px; height: 3px; background: linear-gradient(90deg, var(--gold-400), var(--gold-600)); border-radius: 3px; margin: 0 auto 24px; }

/* ---------- Empresa ---------- */
.empresa-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 64px; align-items: center; }
/* Impede que o min-content dos filhos estoure a trilha do grid (causava scroll lateral no mobile) */
.empresa-grid > *, .contato-grid > *, .mvv-card > div { min-width: 0; }
.empresa-copy h2 { font-size: 1.9rem; margin-bottom: 20px; }
.empresa-copy p { color: var(--slate-700); margin-bottom: 18px; }
.empresa-visual { position: relative; }
.mvv { display: grid; gap: 20px; }
.mvv-card {
    background: #fff; border: 1px solid var(--mist-2); border-radius: var(--radius);
    padding: 28px; box-shadow: var(--shadow-sm); display: flex; gap: 20px; align-items: flex-start;
    transition: transform .3s var(--ease), box-shadow .3s;
}
.mvv-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.mvv-icon {
    width: 52px; height: 52px; border-radius: 12px; flex-shrink: 0; display: grid; place-items: center;
    background: linear-gradient(135deg, var(--navy-700), var(--navy-600)); color: var(--gold-400);
}
.mvv-icon svg { width: 26px; height: 26px; }
.mvv-card h3 { font-size: 1.15rem; margin-bottom: 6px; }
.mvv-card p { color: var(--slate-500); font-size: .96rem; margin: 0; }

.valores-list { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 18px; margin-top: 12px; }
.valores-list li { position: relative; padding-left: 20px; font-size: .92rem; font-weight: 500; color: var(--slate-700); }
.valores-list li::before {
    content: ''; position: absolute; left: 0; top: .55em; width: 8px; height: 8px; border-radius: 50%;
    background: linear-gradient(135deg, var(--gold-400), var(--gold-600));
}

/* Textos justificados (parágrafos descritivos) */
.hero p.lead,
.empresa-copy p, .mvv-card p, .service-card p,
.testimonial p { text-align: justify; }
.empresa-copy p, .mvv-card p, .service-card p, .testimonial p { hyphens: auto; }
.hero p.lead { hyphens: none; }

.badges { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.badge {
    display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 50px;
    background: #fff; border: 1px solid var(--mist-2); font-size: .86rem; font-weight: 500; color: var(--slate-700);
    box-shadow: var(--shadow-sm);
}
.badge svg { width: 16px; height: 16px; color: var(--gold-600); }

/* ---------- Serviços ---------- */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.service-card {
    position: relative; display: flex; flex-direction: column;
    background: #fff; border: 1px solid var(--mist-2); border-radius: var(--radius);
    padding: 38px 32px; box-shadow: var(--shadow-sm); overflow: hidden;
    transition: transform .35s var(--ease), box-shadow .35s, border-color .35s;
}
/* Ancora o botão na base para alinhar entre cards de textos de tamanhos diferentes */
.service-card > p { margin-bottom: 22px; }
.service-card::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px;
    background: linear-gradient(90deg, var(--gold-400), var(--gold-600)); transform: scaleX(0);
    transform-origin: left; transition: transform .4s var(--ease);
}
.service-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); border-color: transparent; }
.service-card:hover::before { transform: scaleX(1); }
.service-icon {
    width: 64px; height: 64px; border-radius: 16px; display: grid; place-items: center; margin-bottom: 24px;
    background: linear-gradient(135deg, var(--navy-800), var(--navy-600)); color: var(--gold-400);
    transition: transform .35s var(--ease);
}
.service-card:hover .service-icon { transform: rotate(-6deg) scale(1.05); }
.service-icon svg { width: 30px; height: 30px; }
.service-card h3 { font-size: 1.3rem; margin-bottom: 12px; }
.service-card p { color: var(--slate-500); font-size: .96rem; }
.service-num { position: absolute; top: 24px; right: 28px; font-family: 'Playfair Display', serif; font-size: 2.4rem; color: var(--mist-2); font-weight: 700; }
.btn-saiba {
    display: inline-flex; align-items: center; gap: 7px; margin-top: auto; align-self: flex-start; padding: 9px 18px;
    border: 1.5px solid var(--mist-2); border-radius: 50px; background: transparent;
    font-family: inherit; font-size: .87rem; font-weight: 600; color: var(--navy-700); cursor: pointer;
    transition: background .25s, border-color .25s, color .25s, transform .25s;
}
.btn-saiba svg { width: 15px; height: 15px; transition: transform .25s var(--ease); }
.btn-saiba:hover { background: var(--navy-800); border-color: var(--navy-800); color: #fff; }
.btn-saiba:hover svg { transform: translateX(3px); }
.btn-saiba:focus-visible { outline: 3px solid var(--gold-500); outline-offset: 2px; }

/* ---------- Modal ---------- */
.modal { position: fixed; inset: 0; z-index: 1200; display: grid; place-items: center; padding: 24px; }
/* Obrigatório: sem isto, o `display: grid` acima sobrepõe o [hidden] do navegador
   e as modais ficam visíveis já no carregamento da página. */
.modal[hidden] { display: none; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(8, 20, 36, .72); backdrop-filter: blur(3px); animation: modalFade .25s ease; }
.modal-dialog {
    position: relative; width: min(680px, 100%); max-height: min(84vh, 760px); overflow-y: auto;
    background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-lg);
    padding: 40px; animation: modalUp .3s var(--ease);
}
@keyframes modalFade { from { opacity: 0; } }
@keyframes modalUp { from { opacity: 0; transform: translateY(24px) scale(.98); } }

.modal-close {
    position: absolute; top: 16px; right: 16px; width: 38px; height: 38px; border-radius: 50%;
    border: none; background: var(--mist); color: var(--slate-700); cursor: pointer;
    display: grid; place-items: center; transition: background .2s, color .2s;
}
.modal-close svg { width: 18px; height: 18px; }
.modal-close:hover { background: var(--navy-800); color: #fff; }
.modal-close:focus-visible { outline: 3px solid var(--gold-500); outline-offset: 2px; }

.modal-head { display: flex; gap: 18px; align-items: center; padding-right: 44px; margin-bottom: 26px; }
.modal-icon {
    width: 58px; height: 58px; border-radius: 14px; flex-shrink: 0; display: grid; place-items: center;
    background: linear-gradient(135deg, var(--navy-800), var(--navy-600)); color: var(--gold-400);
}
.modal-icon svg { width: 28px; height: 28px; }
.modal-head h3 { font-size: 1.5rem; margin-bottom: 5px; }
.modal-exp {
    display: inline-block; padding: 4px 12px; border-radius: 50px; font-size: .76rem; font-weight: 600;
    letter-spacing: .6px; text-transform: uppercase; color: var(--gold-600);
    background: rgba(201,162,75,.12); border: 1px solid rgba(201,162,75,.32);
}

.detalhes { display: grid; gap: 18px; }
.detalhes li { position: relative; padding-left: 26px; }
.detalhes li::before {
    content: ''; position: absolute; left: 0; top: .45em; width: 9px; height: 9px; border-radius: 50%;
    background: linear-gradient(135deg, var(--gold-400), var(--gold-600));
}
.detalhes strong { display: block; color: var(--navy-800); font-size: 1rem; margin-bottom: 3px; }
.detalhes p { color: var(--slate-500); font-size: .94rem; text-align: justify; hyphens: auto; }

/* Modal em grupos: usada quando o servico organiza o conteudo em secoes
   (ex.: "Subsistemas Avaliados", "Etapas do Programa"), em vez de uma
   lista simples de titulo+descricao. */
.detalhes-grupo { margin-bottom: 26px; }
.detalhes-grupo:last-child { margin-bottom: 0; }
.detalhes-grupo-titulo {
    display: flex; align-items: center; gap: 10px;
    font-size: 1.05rem; color: var(--navy-800); margin-bottom: 14px; padding-bottom: 10px;
    border-bottom: 1px solid var(--mist-2);
}
.detalhes-itens { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 20px; }
.detalhes-itens li { display: flex; align-items: flex-start; gap: 9px; font-size: .93rem; color: var(--slate-700); }
.detalhes-itens svg { width: 15px; height: 15px; flex-shrink: 0; margin-top: .2em; color: var(--gold-600); }

/* Botao de download somente com icone, ao lado do titulo do 1o grupo */
.btn-anexo-icone {
    display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
    width: 30px; height: 30px; border-radius: 50%;
    background: var(--navy-800); color: var(--gold-400);
    transition: background .2s, transform .2s;
}
.btn-anexo-icone:hover { background: var(--navy-700); transform: translateY(-2px); }
.btn-anexo-icone:focus-visible { outline: 3px solid var(--gold-500); outline-offset: 2px; }

.modal-foot { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 30px; padding-top: 24px; border-top: 1px solid var(--mist-2); }
body.modal-aberta { overflow: hidden; }

/* ---------- Livro / e-book ---------- */
.livro {
    display: grid; grid-template-columns: auto 1fr; gap: 44px; align-items: center; margin-top: 56px;
    background: linear-gradient(150deg, var(--navy-900), var(--navy-700)); color: #fff;
    border-radius: var(--radius); padding: 44px; box-shadow: var(--shadow-lg); overflow: hidden; position: relative;
}
.livro::after {
    content: ''; position: absolute; width: 360px; height: 360px; border-radius: 50%; right: -120px; top: -140px;
    background: radial-gradient(circle, rgba(201,162,75,.22), transparent 70%);
}
.livro-capa {
    width: 190px; height: 264px; flex-shrink: 0; border-radius: 6px 12px 12px 6px; position: relative; z-index: 1;
    background: linear-gradient(135deg, #14335a, #0b1f38);
    box-shadow: 0 20px 40px rgba(0,0,0,.4), inset 0 0 0 1px rgba(255,255,255,.06);
    border-left: 6px solid var(--gold-600);
}
.livro-capa-inner { padding: 30px 22px; display: flex; flex-direction: column; height: 100%; }
.livro-capa-kicker { font-size: .68rem; letter-spacing: 1.5px; text-transform: uppercase; color: var(--gold-400); margin-bottom: auto; }
.livro-capa-inner strong { font-family: 'Playfair Display', serif; font-size: 1.5rem; line-height: 1.15; color: #fff; margin-bottom: 10px; }
.livro-capa-sub { font-size: .74rem; color: rgba(255,255,255,.7); line-height: 1.4; }

.livro-info { position: relative; z-index: 1; }
.livro-selo {
    display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 50px; margin-bottom: 16px;
    background: rgba(201,162,75,.14); border: 1px solid rgba(201,162,75,.35); color: var(--gold-400);
    font-size: .76rem; font-weight: 600; letter-spacing: .5px; text-transform: uppercase;
}
.livro-selo svg { width: 15px; height: 15px; }
.livro-info h3 { color: #fff; font-size: 1.9rem; margin-bottom: 6px; }
.livro-sub { color: var(--gold-400); font-size: 1.02rem; font-weight: 500; margin-bottom: 16px; }
.livro-desc { color: rgba(255,255,255,.8); font-size: .98rem; margin-bottom: 16px; max-width: 620px; text-align: justify; hyphens: auto; }
.livro-meta { color: rgba(255,255,255,.6); font-size: .9rem; margin-bottom: 26px; }
.livro-meta strong { color: #fff; }
.livro-acoes { display: flex; gap: 14px; flex-wrap: wrap; }
.livro-acoes .btn-navy { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.2); }
.livro-acoes .btn-navy:hover { background: rgba(255,255,255,.16); }

/* ---------- Clientes ---------- */
/* Flex centralizado: acomoda qualquer quantidade de logos sem deixar
   um item órfão desalinhado na última linha. */
.clients-strip { display: flex; flex-wrap: wrap; justify-content: center; gap: 22px; }
.client-logo {
    flex: 0 0 190px; /* largura fixa: mantém todos os cards iguais entre as linhas */
    height: 118px; border-radius: var(--radius-sm); background: #fff; border: 1px solid var(--mist-2);
    display: flex; align-items: center; justify-content: center; padding: 20px 26px;
    overflow: hidden; box-shadow: var(--shadow-sm); transition: transform .3s, box-shadow .3s;
}
.client-logo img {
    max-width: 100%; max-height: 76px; width: auto; height: auto; object-fit: contain;
    filter: grayscale(1); opacity: .68; transition: filter .35s, opacity .35s;
}
.client-logo:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.client-logo:hover img { filter: grayscale(0); opacity: 1; }

/* ---------- Casos de Sucesso ---------- */
.casos-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.caso-card {
    display: flex; flex-direction: column; background: #fff; border: 1px solid var(--mist-2);
    border-radius: var(--radius); padding: 36px 32px; box-shadow: var(--shadow-sm);
    transition: transform .35s var(--ease), box-shadow .35s;
}
.caso-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.caso-num {
    display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; margin-bottom: 18px;
    background: linear-gradient(135deg, var(--navy-800), var(--navy-600)); color: var(--gold-400);
    font-family: 'Playfair Display', serif; font-weight: 700; font-size: 1.1rem;
}
.caso-card h3 { font-size: 1.18rem; margin-bottom: 12px; }
.caso-card > p { color: var(--slate-500); font-size: .94rem; margin-bottom: 20px; text-align: justify; hyphens: auto; }
/* margin-top:auto alinha a lista de resultados na base, mesmo com textos de alturas diferentes */
.caso-resultados { display: grid; gap: 10px; margin-top: auto; padding-top: 18px; border-top: 1px solid var(--mist-2); }
.caso-resultados li { display: flex; align-items: flex-start; gap: 9px; font-size: .92rem; font-weight: 500; color: var(--slate-700); }
.caso-resultados svg { width: 15px; height: 15px; flex-shrink: 0; margin-top: .3em; color: var(--gold-600); }

/* ---------- Depoimentos ---------- */
.testimonials-grid { column-count: 3; column-gap: 26px; }
.testimonial {
    background: #fff; border-radius: var(--radius); padding: 36px 32px; box-shadow: var(--shadow-sm);
    border: 1px solid var(--mist-2); position: relative; transition: transform .3s, box-shadow .3s;
    break-inside: avoid; -webkit-column-break-inside: avoid; margin-bottom: 26px;
}
.testimonial:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.testimonial .quote-mark { font-family: 'Playfair Display', serif; font-size: 4rem; line-height: 1; color: var(--gold-400); height: 34px; }
.testimonial p { color: var(--slate-700); font-style: italic; margin-bottom: 24px; }
.testimonial .author { display: flex; align-items: center; gap: 14px; }
.testimonial .avatar {
    width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; flex-shrink: 0;
    background: linear-gradient(135deg, var(--navy-700), var(--navy-600)); color: var(--gold-400);
    font-family: 'Playfair Display', serif; font-weight: 700;
}
.avatar--anon svg { width: 21px; height: 21px; }
.testimonial .author strong { display: block; color: var(--navy-800); font-size: .98rem; }
.testimonial .author span { color: var(--slate-500); font-size: .84rem; }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; margin: 0 auto; display: grid; gap: 14px; }
.faq-item {
    background: #fff; border: 1px solid var(--mist-2); border-radius: var(--radius-sm);
    box-shadow: var(--shadow-sm); transition: box-shadow .25s, border-color .25s;
}
.faq-item[open] { border-color: rgba(201,162,75,.55); box-shadow: var(--shadow-md); }
.faq-item summary {
    display: flex; align-items: center; justify-content: space-between; gap: 16px;
    padding: 20px 24px; cursor: pointer; list-style: none;
    font-weight: 600; font-size: 1.02rem; color: var(--navy-800); transition: color .2s;
}
/* Remove o triângulo padrão do <details> nos diferentes navegadores */
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::marker { content: ''; }
.faq-item summary:hover { color: var(--gold-600); }
.faq-item summary:focus-visible { outline: 3px solid var(--gold-500); outline-offset: -3px; border-radius: var(--radius-sm); }
.faq-icon {
    width: 30px; height: 30px; border-radius: 50%; flex-shrink: 0; display: grid; place-items: center;
    background: var(--mist); color: var(--navy-700);
    transition: transform .3s var(--ease), background .25s, color .25s;
}
.faq-icon svg { width: 15px; height: 15px; }
.faq-item[open] .faq-icon { transform: rotate(180deg); background: var(--navy-800); color: var(--gold-400); }
.faq-resposta { padding: 0 24px 22px; }
.faq-resposta p { color: var(--slate-500); font-size: .96rem; text-align: justify; hyphens: auto; }

/* ---------- Contato ---------- */
.contato { background: linear-gradient(160deg, var(--navy-900), var(--navy-700)); color: #fff; }
.contato .section-head h2 { color: #fff; }
.contato .section-head p { color: rgba(255,255,255,.75); }
.contato-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: start; }
.contato-info h3 { color: #fff; font-size: 1.5rem; margin-bottom: 18px; }
.contato-info > p { color: rgba(255,255,255,.75); margin-bottom: 32px; }
.info-item { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 22px; }
.info-item .ii-icon {
    width: 46px; height: 46px; border-radius: 12px; flex-shrink: 0; display: grid; place-items: center;
    background: rgba(201,162,75,.14); color: var(--gold-400); border: 1px solid rgba(201,162,75,.3);
}
.info-item .ii-icon svg { width: 22px; height: 22px; }
.info-item strong { display: block; font-size: .78rem; letter-spacing: 1.5px; text-transform: uppercase; color: var(--gold-400); margin-bottom: 2px; }
.info-item span { color: rgba(255,255,255,.9); }

.contato-form { background: #fff; border-radius: var(--radius); padding: 40px; box-shadow: var(--shadow-lg); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: .82rem; font-weight: 600; color: var(--slate-700); margin-bottom: 7px; }
.field input, .field textarea {
    width: 100%; padding: 13px 16px; border: 1.5px solid var(--mist-2); border-radius: var(--radius-sm);
    font-family: inherit; font-size: .95rem; color: var(--ink); background: var(--mist);
    transition: border-color .2s, background .2s, box-shadow .2s;
}
.field input:focus, .field textarea:focus {
    outline: none; border-color: var(--gold-500); background: #fff; box-shadow: 0 0 0 4px rgba(201,162,75,.12);
}
.field textarea { resize: vertical; min-height: 130px; }
.field .error { color: #d64550; font-size: .8rem; margin-top: 6px; display: block; }
.contato-form .btn { width: 100%; justify-content: center; margin-top: 6px; }

.alert-success {
    display: flex; align-items: center; gap: 12px; padding: 16px 20px; border-radius: var(--radius-sm);
    background: #e8f7ee; border: 1px solid #b6e3c6; color: #1e7a42; font-size: .95rem; margin-bottom: 24px;
}
.alert-success svg { width: 22px; height: 22px; flex-shrink: 0; }

/* ---------- Rodapé ---------- */
.site-footer { background: var(--navy-900); color: rgba(255,255,255,.6); padding: 50px 0 30px; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-links { display: flex; gap: 24px; flex-wrap: wrap; }
.footer-links a { font-size: .9rem; transition: color .2s; }
.footer-links a:hover { color: var(--gold-400); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); margin-top: 32px; padding-top: 24px; text-align: center; font-size: .85rem; }
.footer-cnpj { display: block; margin-top: 6px; font-size: .78rem; color: rgba(255,255,255,.45); letter-spacing: .3px; }

/* ---------- Animações de entrada ---------- */
.reveal { opacity: 0; transform: translateY(34px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.visible { opacity: 1; transform: none; }

/* ---------- Botão voltar ao topo ---------- */
.to-top {
    position: fixed; bottom: 96px; right: 30px; width: 46px; height: 46px; border-radius: 50%;
    background: var(--gold-500); color: #23180a; border: none; cursor: pointer; display: grid; place-items: center;
    box-shadow: var(--shadow-md); opacity: 0; visibility: hidden; transform: translateY(20px);
    transition: opacity .3s, visibility .3s, transform .3s, background .25s; z-index: 900;
}
.to-top.show { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--gold-600); }
.to-top svg { width: 20px; height: 20px; }

/* ---------- WhatsApp ---------- */
.wa-float {
    position: fixed; bottom: 26px; right: 26px; z-index: 940;
    width: 58px; height: 58px; border-radius: 50%; background: #25d366; color: #fff;
    display: grid; place-items: center; box-shadow: 0 10px 26px rgba(37,211,102,.45);
    transition: transform .25s var(--ease), box-shadow .25s;
}
.wa-float svg { width: 30px; height: 30px; }
.wa-float:hover { transform: scale(1.08); box-shadow: 0 14px 34px rgba(37,211,102,.55); }
.wa-float::before {
    content: ''; position: absolute; inset: 0; border-radius: 50%; background: #25d366; z-index: -1;
    animation: waPulse 2.4s ease-out infinite;
}
@keyframes waPulse { 0% { transform: scale(1); opacity: .5; } 70%, 100% { transform: scale(1.85); opacity: 0; } }
.wa-tip {
    position: absolute; right: 72px; top: 50%; transform: translateY(-50%) translateX(6px);
    background: var(--navy-800); color: #fff; padding: 8px 14px; border-radius: 8px; font-size: .84rem;
    font-weight: 500; white-space: nowrap; opacity: 0; pointer-events: none;
    transition: opacity .25s, transform .25s; box-shadow: var(--shadow-md);
}
.wa-tip::after {
    content: ''; position: absolute; right: -5px; top: 50%; transform: translateY(-50%);
    border-left: 6px solid var(--navy-800); border-top: 5px solid transparent; border-bottom: 5px solid transparent;
}
.wa-float:hover .wa-tip { opacity: 1; transform: translateY(-50%) translateX(0); }

.ii-whats svg { width: 22px; height: 22px; }
.contato-whats { width: 100%; justify-content: center; margin: 26px 0 4px; }

.footer-whats {
    display: inline-flex; align-items: center; gap: 8px; padding: 10px 20px; border-radius: 50px;
    background: #25d366; color: #06371c; font-size: .9rem; font-weight: 600;
    transition: background .25s, transform .25s;
}
.footer-whats svg { width: 18px; height: 18px; }
.footer-whats:hover { background: #20bd5a; transform: translateY(-2px); }

@media (prefers-reduced-motion: reduce) { .wa-float::before { animation: none; } }

/* ---------- Responsivo ---------- */
@media (max-width: 980px) {
    .empresa-grid, .contato-grid { grid-template-columns: 1fr; gap: 40px; }
    .services-grid, .casos-grid { grid-template-columns: repeat(2, 1fr); }
    .testimonials-grid { column-count: 2; }
    .clients-strip { gap: 16px; }
}
/* Menu off-canvas: entra em 1040px porque abaixo disso a marca (190px) + os
   links (780px) + o padding não cabem lado a lado no cabeçalho (~1018px).
   Ao adicionar/remover itens do menu, remeça e ajuste este valor. */
@media (max-width: 1040px) {
    .nav { position: fixed; inset: 0 0 0 auto; width: min(78vw, 320px); flex-direction: column;
        align-items: stretch; justify-content: flex-start; gap: 6px; padding: 100px 24px 40px;
        background: var(--navy-900); box-shadow: -20px 0 60px rgba(0,0,0,.4);
        transform: translateX(100%); transition: transform .35s var(--ease); }
    .nav.open { transform: none; }
    .nav a { padding: 14px 16px; font-size: 1rem; }
    .nav .nav-cta { margin: 12px 0 0; text-align: center; }
    .nav-toggle { display: flex; z-index: 1001; width: 44px; height: 44px; align-items: center; justify-content: center; }
    .nav-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
    .nav-toggle.active span:nth-child(2) { opacity: 0; }
    .nav-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}
@media (max-width: 760px) {
    .section { padding: 18px 0; }
    .hero { padding: 120px 0 70px; }
    .form-row { grid-template-columns: 1fr; }
    .services-grid, .casos-grid { grid-template-columns: 1fr; }
    .client-logo { flex-basis: calc(50% - 8px); }
    .testimonials-grid { column-count: 1; }
    .valores-list { grid-template-columns: 1fr; }
    .footer-inner { flex-direction: column; text-align: center; }
}
@media (max-width: 520px) {
    .clients-strip { gap: 12px; }
    .contato-form { padding: 28px 22px; }

    /* Botões do hero ocupam a largura toda, empilhados de forma uniforme */
    .hero-actions { flex-direction: column; align-items: stretch; gap: 12px; }
    .hero-actions .btn { width: 100%; justify-content: center; }

    /* Menos padding nos cards = mais largura útil para o conteúdo */
    .service-card, .caso-card { padding: 30px 24px; }
    .testimonial { padding: 30px 24px; }
    .livro { grid-template-columns: 1fr; gap: 28px; padding: 30px 24px; justify-items: center; text-align: center; }
    .livro-desc { text-align: left; }
    .livro-acoes { justify-content: center; }
    .livro-info h3 { font-size: 1.6rem; }
    .mvv-card { padding: 24px 20px; gap: 16px; }
    .client-logo { flex-basis: calc(50% - 6px); height: 104px; padding: 16px 14px; }
    .contato-info h3 { font-size: 1.3rem; }

    .modal { padding: 14px; }
    .modal-dialog { padding: 28px 22px; }
    .modal-head { gap: 14px; margin-bottom: 22px; }
    .modal-head h3 { font-size: 1.25rem; }
    .modal-icon { width: 48px; height: 48px; }
    .modal-foot { flex-direction: column; }
    .modal-foot .btn { width: 100%; justify-content: center; }
    .detalhes-itens { grid-template-columns: 1fr; }
}
