/* ==========================================================================
   Impermeabilizante Certo — design system claro/corporativo
   Paleta: azul profissional (#1e40af) + laranja construção (#ea580c) + neutros
   ========================================================================== */

:root {
    --primary: #1e40af;
    --primary-dark: #1e3a8a;
    --primary-light: #3b82f6;
    --primary-bg: #eff6ff;
    --accent: #ea580c;
    --accent-dark: #c2410c;
    --accent-light: #fb923c;
    --accent-bg: #fff7ed;

    --text: #0f172a;
    --text-muted: #475569;
    --text-light: #64748b;

    --bg: #ffffff;
    --bg-soft: #f8fafc;
    --bg-alt: #f1f5f9;

    --border: #e2e8f0;
    --border-strong: #cbd5e1;

    --success: #16a34a;
    --warning: #f59e0b;
    --danger: #dc2626;

    --shadow-sm: 0 1px 2px rgba(0,0,0,.04);
    --shadow: 0 4px 12px rgba(15,23,42,.06);
    --shadow-lg: 0 10px 30px rgba(15,23,42,.1);

    --radius-sm: 6px;
    --radius: 10px;
    --radius-lg: 16px;

    --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    --font-heading: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

    --container: 1180px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-dark); }

h1, h2, h3, h4, h5 {
    font-family: var(--font-heading);
    color: var(--text);
    line-height: 1.25;
    margin: 0 0 .6em;
    font-weight: 700;
}
h1 { font-size: clamp(2rem, 4vw, 2.75rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1rem; }

.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 1.25rem;
}

/* ========== Header ========== */
.site-header {
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-sm);
}
.site-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: .9rem 1.25rem;
    max-width: var(--container);
    margin: 0 auto;
    gap: 1rem;
}
.logo {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.25rem;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: .5rem;
}
.logo-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    color: #fff;
    font-weight: 800;
    font-size: .95rem;
    box-shadow: var(--shadow);
}
.logo-text { letter-spacing: -.02em; }
.logo-text span { color: var(--accent); }

.main-nav {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}
.main-nav a {
    color: var(--text-muted);
    font-weight: 500;
    font-size: .95rem;
    padding: .5rem 0;
    transition: color .2s ease;
}
.main-nav a:hover { color: var(--primary); }
.nav-toggle {
    display: none;
    background: none;
    border: 0;
    font-size: 1.4rem;
    cursor: pointer;
    color: var(--text);
}

@media (max-width: 820px) {
    .main-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--bg);
        flex-direction: column;
        padding: 1rem 1.25rem;
        border-bottom: 1px solid var(--border);
        box-shadow: var(--shadow);
        gap: .5rem;
    }
    .main-nav.open { display: flex; }
    .nav-toggle { display: block; }
}

/* ========== Hero (home) ========== */
.hero {
    background: linear-gradient(135deg, var(--primary-bg) 0%, #dbeafe 100%);
    padding: 4rem 0 3.5rem;
    position: relative;
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute;
    top: -80px;
    right: -80px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, var(--accent-bg) 0%, transparent 70%);
    opacity: .6;
    pointer-events: none;
}
.hero-inner {
    position: relative;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 3rem;
    align-items: center;
}
.hero-eyebrow {
    display: inline-block;
    padding: .35rem .9rem;
    background: var(--accent-bg);
    color: var(--accent-dark);
    border-radius: 999px;
    font-size: .82rem;
    font-weight: 600;
    letter-spacing: .03em;
    margin-bottom: 1rem;
}
.hero h1 {
    font-size: clamp(2rem, 4.5vw, 3rem);
    margin-bottom: 1rem;
    color: var(--text);
}
.hero h1 span { color: var(--primary); }
.hero-sub {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 1.75rem;
    max-width: 540px;
    line-height: 1.55;
}
.hero-ctas { display: flex; gap: .75rem; flex-wrap: wrap; }
.hero-ctas .btn { min-width: 170px; justify-content: center; }

.hero-visual {
    background: var(--bg);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border);
}
.hero-visual-header { display: flex; align-items: center; gap: .75rem; margin-bottom: 1rem; }
.hero-visual-badge { width: 42px; height: 42px; border-radius: 10px; background: var(--primary-bg); color: var(--primary); display: flex; align-items: center; justify-content: center; }
.hero-visual h3 { margin: 0; font-size: 1.05rem; }
.hero-visual-list { list-style: none; padding: 0; margin: 0; }
.hero-visual-list li { padding: .6rem 0; border-top: 1px solid var(--border); display: flex; justify-content: space-between; font-size: .92rem; }
.hero-visual-list li:first-child { border-top: 0; padding-top: 0; }
.hero-visual-list span { color: var(--text-muted); }
.hero-visual-list strong { color: var(--text); font-weight: 600; }

@media (max-width: 860px) {
    .hero-inner { grid-template-columns: 1fr; }
    .hero-visual { order: -1; max-width: 420px; margin: 0 auto; }
    .hero { padding: 2.5rem 0 2rem; }
}

/* ========== Buttons ========== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .8rem 1.3rem;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: .95rem;
    border: 0;
    cursor: pointer;
    transition: all .2s ease;
    text-decoration: none;
    white-space: nowrap;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); color: #fff; transform: translateY(-1px); box-shadow: var(--shadow); }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: var(--accent-dark); color: #fff; }
.btn-outline { background: transparent; color: var(--primary); border: 1.5px solid var(--primary); }
.btn-outline:hover { background: var(--primary); color: #fff; }
.btn-ghost { background: transparent; color: var(--text-muted); border: 1px solid var(--border); }
.btn-ghost:hover { background: var(--bg-soft); color: var(--text); }
.btn-sm { padding: .5rem .9rem; font-size: .85rem; }
.btn-lg { padding: 1rem 1.6rem; font-size: 1.05rem; }

/* ========== Sections ========== */
.section { padding: 4rem 0; }
.section-alt { background: var(--bg-soft); }
.section-header { text-align: center; margin-bottom: 2.5rem; max-width: 680px; margin-left: auto; margin-right: auto; }
.section-eyebrow {
    display: inline-block;
    padding: .3rem .8rem;
    background: var(--primary-bg);
    color: var(--primary);
    border-radius: 999px;
    font-size: .8rem;
    font-weight: 600;
    letter-spacing: .02em;
    margin-bottom: .8rem;
}
.section-title { font-size: clamp(1.7rem, 3.2vw, 2.25rem); margin-bottom: .5rem; }
.section-title span { color: var(--primary); }
.section-subtitle { color: var(--text-muted); font-size: 1.05rem; }

/* ========== Cards (serviços, produtos) ========== */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.25rem;
}

.card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    transition: all .25s ease;
    position: relative;
    display: flex;
    flex-direction: column;
}
.card:hover {
    border-color: var(--primary-light);
    box-shadow: var(--shadow);
    transform: translateY(-2px);
}
a.card { color: inherit; text-decoration: none; }

.card-icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    background: var(--primary-bg);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}
.card-icon svg { width: 26px; height: 26px; }
.card.card-accent .card-icon { background: var(--accent-bg); color: var(--accent); }

.card h3 { font-size: 1.15rem; margin: 0 0 .5rem; }
.card p { color: var(--text-muted); font-size: .92rem; line-height: 1.55; margin: 0 0 1rem; flex: 1; }
.card-link { color: var(--primary); font-weight: 600; font-size: .9rem; }
.card-link::after { content: ' →'; transition: transform .2s ease; display: inline-block; }
.card:hover .card-link::after { transform: translateX(3px); }

/* Produto card */
.produto-card { padding: 0; overflow: hidden; }
.produto-card-img {
    aspect-ratio: 16/10;
    background: var(--bg-alt);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    overflow: hidden;
}
.produto-card-img img { width: 100%; height: 100%; object-fit: cover; }
.produto-card-body { padding: 1.25rem 1.5rem 1.5rem; }
.produto-card-fab { font-size: .78rem; color: var(--text-light); text-transform: uppercase; letter-spacing: .05em; margin-bottom: .25rem; }
.produto-card-nota {
    display: inline-block;
    padding: .2rem .55rem;
    background: var(--success);
    color: #fff;
    border-radius: 6px;
    font-weight: 700;
    font-size: .85rem;
    margin-left: auto;
}

/* Post card */
.post-card { padding: 0; overflow: hidden; }
.post-card-img { aspect-ratio: 16/9; background: var(--bg-alt); }
.post-card-img img { width: 100%; height: 100%; object-fit: cover; }
.post-card-body { padding: 1.25rem 1.5rem 1.5rem; }
.post-card-cat {
    font-size: .75rem;
    color: var(--accent);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .05em;
    margin-bottom: .4rem;
    display: inline-block;
}
.post-card-meta { font-size: .82rem; color: var(--text-light); display: flex; gap: .75rem; align-items: center; margin-top: .75rem; }

/* ========== Detail pages ========== */
.detail-hero {
    background: linear-gradient(135deg, var(--primary-bg) 0%, var(--bg-soft) 100%);
    padding: 2.5rem 0 3rem;
    border-bottom: 1px solid var(--border);
}
.breadcrumb {
    font-size: .85rem;
    color: var(--text-light);
    margin-bottom: 1rem;
}
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb span { color: var(--text); font-weight: 500; }

.detail-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 2.5rem;
    padding: 3rem 0;
}
.detail-main > .card { margin-bottom: 1.5rem; }
.detail-main h2 { font-size: 1.5rem; margin-top: 0; }
.detail-main h3 { font-size: 1.2rem; margin-top: 1.5rem; }
.detail-main .card h2 { margin-top: 0; }
.detail-main p, .detail-main li { line-height: 1.7; color: var(--text); }
.detail-main ul, .detail-main ol { padding-left: 1.2rem; margin-bottom: 1rem; }
.detail-main table { width: 100%; border-collapse: collapse; margin: 1rem 0; }
.detail-main th, .detail-main td { padding: .7rem .9rem; border-bottom: 1px solid var(--border); text-align: left; }
.detail-main th { background: var(--bg-soft); font-weight: 600; color: var(--text); }
.detail-main blockquote { border-left: 3px solid var(--accent); padding: .5rem 1rem; color: var(--text-muted); margin: 1rem 0; background: var(--accent-bg); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }

.sidebar > .card { margin-bottom: 1.25rem; }
.sidebar h3 { font-size: 1rem; margin-bottom: .75rem; text-transform: uppercase; letter-spacing: .03em; color: var(--text-muted); font-weight: 600; }
.sidebar-list { list-style: none; padding: 0; margin: 0; }
.sidebar-list li { padding: .6rem 0; border-bottom: 1px solid var(--border); }
.sidebar-list li:last-child { border-bottom: 0; }
.sidebar-list a { color: var(--text); font-size: .93rem; }
.sidebar-list a:hover { color: var(--primary); }

@media (max-width: 860px) {
    .detail-layout { grid-template-columns: 1fr; gap: 1.5rem; padding: 2rem 0; }
}

/* FAQ */
.faq-list { border-top: 1px solid var(--border); }
.faq-item {
    border-bottom: 1px solid var(--border);
    padding: 1rem 0;
}
.faq-item summary {
    cursor: pointer;
    font-weight: 600;
    color: var(--text);
    list-style: none;
    padding-right: 2rem;
    position: relative;
    font-size: 1rem;
}
.faq-item summary::after {
    content: '+';
    position: absolute;
    right: .5rem;
    color: var(--primary);
    font-weight: 700;
    font-size: 1.3rem;
    line-height: 1;
    transition: transform .2s ease;
}
.faq-item[open] summary::after { content: '−'; }
.faq-answer {
    margin-top: .75rem;
    color: var(--text-muted);
    line-height: 1.7;
}


/* Partner badge sidebar */
.partner-card {
    background: linear-gradient(135deg, var(--primary-bg), var(--accent-bg));
    border: 1px solid var(--primary-light);
}
.partner-card h3 { color: var(--primary); margin-bottom: .4rem; text-transform: none; letter-spacing: 0; font-size: 1.05rem; }
.partner-card p { font-size: .88rem; color: var(--text-muted); margin-bottom: .85rem; }
.partner-card .btn { width: 100%; justify-content: center; }

/* ========== Footer ========== */
.site-footer {
    background: #0f172a;
    color: #94a3b8;
    padding: 3rem 0 1.5rem;
    margin-top: 4rem;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2.5rem;
}
.footer-brand h4 { color: #fff; font-size: 1.1rem; margin-bottom: .6rem; }
.footer-brand p { font-size: .92rem; line-height: 1.55; max-width: 340px; }
.footer-col h5 { color: #fff; font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; margin-bottom: .75rem; font-weight: 600; }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: .5rem; }
.footer-col a { color: #94a3b8; font-size: .92rem; }
.footer-col a:hover { color: #fff; }
.footer-bottom {
    border-top: 1px solid #1e293b;
    padding-top: 1.5rem;
    font-size: .85rem;
    color: #64748b;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

@media (max-width: 760px) {
    .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
    .footer-grid { grid-template-columns: 1fr; }
}

/* Utilities */
.text-center { text-align: center; }
.mt-2 { margin-top: 1rem; }
.mt-4 { margin-top: 2rem; }
.mb-2 { margin-bottom: 1rem; }
.tags-row { display: flex; flex-wrap: wrap; gap: .4rem; margin: .5rem 0; }
.tag {
    display: inline-block;
    padding: .2rem .6rem;
    background: var(--bg-alt);
    color: var(--text-muted);
    border-radius: 999px;
    font-size: .78rem;
    font-weight: 500;
}


/* ==========================================================================
   Glossario + componentes de imagem
   ========================================================================== */
.hero-compact {
    padding: 2.5rem 0 2rem;
    background: linear-gradient(180deg, var(--primary-bg) 0%, #fff 100%);
}
.hero-compact h1 { font-size: 2.25rem; margin-bottom: .5rem; }
.hero-compact .hero-subtitle { font-size: 1.1rem; color: var(--text-muted); }

.container-narrow { max-width: 820px; margin: 0 auto; }

.glossario-indice {
    display: flex;
    flex-wrap: wrap;
    gap: .4rem;
    padding: 1rem 1.25rem;
    background: var(--bg-soft);
    border-radius: var(--radius);
    margin-bottom: 2.5rem;
    position: sticky;
    top: 0;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(0,0,0,.04);
}
.glossario-indice a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.2rem;
    height: 2.2rem;
    padding: 0 .6rem;
    background: #fff;
    color: var(--primary);
    border: 1px solid var(--border);
    border-radius: .45rem;
    font-weight: 600;
    font-size: .92rem;
    text-decoration: none;
    transition: all .15s;
}
.glossario-indice a:hover {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

.glossario-letra {
    margin-bottom: 3rem;
    scroll-margin-top: 4.5rem;
}
.glossario-letra h2 {
    font-size: 2rem;
    color: var(--primary);
    border-bottom: 3px solid var(--primary-bg);
    padding-bottom: .4rem;
    margin-bottom: 1.2rem;
}

.glossario-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
    gap: 1rem;
}
.glossario-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: transform .2s, box-shadow .2s, border-color .2s;
}
.glossario-card:hover {
    transform: translateY(-3px);
    border-color: var(--primary-light);
    box-shadow: 0 10px 22px rgba(30,64,175,.10);
}
.glossario-card-img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    display: block;
    background: var(--bg-soft);
}
.glossario-card-body { padding: 1rem 1.1rem; }
.glossario-card-body strong {
    display: block;
    color: var(--primary);
    font-size: 1.05rem;
    margin-bottom: .3rem;
}
.glossario-card-body p {
    font-size: .88rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin: 0;
}

/* Detalhe de termo */
.termo-detail { padding: 1.25rem 0; }
.termo-detail h1 {
    font-size: 2.4rem;
    color: var(--primary-dark);
    margin-bottom: 1rem;
}
.termo-figure {
    margin: 0 0 1.5rem;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--bg-soft);
}
.termo-figure img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    display: block;
}
.termo-figure figcaption {
    font-size: .68rem;
    color: var(--text-light);
    padding: .25rem .85rem;
    text-align: right;
    font-style: italic;
    opacity: .55;
}
.termo-figure figcaption a { color: var(--text-light); }
.termo-sinonimos {
    background: var(--bg-soft);
    padding: .7rem 1rem;
    border-radius: var(--radius);
    font-size: .95rem;
    color: var(--text-muted);
    margin-bottom: 1.25rem;
}
.termo-curta {
    background: var(--primary-bg);
    border-left: 4px solid var(--primary);
    padding: 1rem 1.25rem;
    border-radius: var(--radius);
    font-size: 1.05rem;
    line-height: 1.6;
    margin-bottom: 1.75rem;
}
.termo-curta strong { color: var(--primary-dark); }
.termo-longa { font-size: 1.03rem; line-height: 1.75; color: var(--text); }
.termo-longa h3 { color: var(--primary); margin-top: 1.5rem; }
.termos-relacionados {
    margin-top: 2.5rem;
    padding: 1.25rem 1.5rem;
    background: var(--bg-soft);
    border-radius: var(--radius);
}
.termos-relacionados h3 { margin-bottom: .7rem; color: var(--primary); }
.termos-relacionados ul {
    list-style: none;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
}
.termos-relacionados li { margin: 0; }
.termos-relacionados a {
    display: inline-block;
    padding: .35rem .75rem;
    background: #fff;
    color: var(--primary);
    border: 1px solid var(--primary-light);
    border-radius: 2rem;
    text-decoration: none;
    font-size: .87rem;
    transition: all .15s;
}
.termos-relacionados a:hover {
    background: var(--primary);
    color: #fff;
}
.back-to-list { margin-top: 2rem; font-size: .95rem; }
.back-to-list a { color: var(--primary); text-decoration: none; }
.back-to-list a:hover { text-decoration: underline; }

/* Detail figure usado em servicos/produtos/blog */
.detail-figure {
    margin: 0 0 1.5rem;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--bg-soft);
    box-shadow: 0 2px 10px rgba(0,0,0,.06);
}
.detail-figure img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    display: block;
}
.detail-figure figcaption {
    font-size: .68rem;
    color: var(--text-light);
    padding: .25rem .85rem;
    text-align: right;
    background: transparent;
    font-style: italic;
    opacity: .55;
    line-height: 1.4;
}
.detail-figure figcaption a { color: var(--text-light); }
.detail-figure figcaption a:hover { opacity: .8; }

/* Servico card image */
.servico-card-img {
    width: calc(100% + 3rem);
    margin: -2rem -1.5rem 1rem;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: var(--bg-soft);
}
.servico-card-img img { width: 100%; height: 100%; object-fit: cover; display: block; }

@media (max-width: 640px) {
    .glossario-grid { grid-template-columns: 1fr; }
    .hero-compact h1 { font-size: 1.75rem; }
    .termo-detail h1 { font-size: 1.8rem; }
}


/* Logo SVG substituindo texto IC */
.site-header .logo {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}
.logo-svg {
    height: 70px;
    width: auto;
    max-width: 400px;
    display: block;
}
@media (max-width: 640px) {
    .logo-svg { height: 55px; max-width: 310px; }
}


/* ==========================================================================
   Paginas institucionais + autor
   ========================================================================== */
.institucional {
    padding: 1rem 0 3rem;
    line-height: 1.7;
}
.institucional h1 { font-size: 2.4rem; color: var(--primary-dark); margin: 0 0 1rem; }
.institucional h2 { font-size: 1.5rem; color: var(--primary); margin: 2rem 0 .75rem; }
.institucional p.lead { font-size: 1.1rem; color: var(--text); margin-bottom: 1.5rem; }
.institucional ul, .institucional ol { margin-bottom: 1.25rem; padding-left: 1.5rem; }
.institucional ul li, .institucional ol li { margin-bottom: .4rem; }

.autor-card {
    display: flex;
    gap: 1.5rem;
    padding: 1.5rem;
    background: var(--bg-soft);
    border-radius: var(--radius-lg);
    border-left: 4px solid var(--primary);
    margin: 1rem 0 2rem;
    align-items: flex-start;
}
.autor-avatar {
    flex-shrink: 0;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    font-weight: 800;
    overflow: hidden;
}
.autor-avatar img { width: 100%; height: 100%; object-fit: cover; }
.autor-iniciais { line-height: 1; }
.autor-info { flex: 1; min-width: 0; }
.autor-info h3 { margin: 0 0 .25rem; color: var(--primary); }
.autor-cargo { font-size: .88rem; color: var(--text-light); text-transform: uppercase; letter-spacing: .5px; margin-bottom: .75rem; }
.autor-credenciais { margin: .75rem 0; padding-left: 1.2rem; font-size: .95rem; color: var(--text-muted); }
.autor-contato { font-size: .92rem; color: var(--text-muted); margin-top: 1rem; }
.autor-contato a { color: var(--primary); text-decoration: none; }

/* Contato grid (3 cards) */
.contato-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1rem;
    margin: 1.5rem 0 2.5rem;
}
.contato-card {
    padding: 1.5rem;
    background: var(--bg-soft);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    text-align: center;
    transition: all .2s;
}
.contato-card:hover { transform: translateY(-2px); box-shadow: 0 8px 18px rgba(0,0,0,.06); }
.contato-card h3 { margin: .5rem 0 .4rem; color: var(--primary-dark); }
.contato-card p { font-size: .9rem; color: var(--text-muted); margin-bottom: 1rem; }
.contato-icon { display: flex; justify-content: center; margin-bottom: .5rem; color: var(--primary); }
.btn-whatsapp {
    background: #25D366;
    color: #fff;
    padding: .6rem 1.2rem;
    border-radius: var(--radius-sm);
    text-decoration: none;
    display: inline-block;
    font-weight: 600;
    transition: background .15s;
}
.btn-whatsapp:hover { background: #128C7E; color: #fff; }

/* Footer */
.site-footer {
    background: #0F172A;
    color: #cbd5e1;
    padding: 3rem 0 1.5rem;
    margin-top: 4rem;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 2.5rem;
    margin-bottom: 2rem;
}
.footer-brand p { font-size: .92rem; color: #94a3b8; margin: 1rem 0; line-height: 1.6; }
.footer-logo { filter: brightness(0) invert(1); opacity: .95; }
.footer-social { display: flex; gap: .75rem; margin-top: 1rem; }
.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: #1e293b;
    border-radius: 50%;
    color: #cbd5e1;
    transition: all .15s;
}
.footer-social a:hover { background: var(--primary); color: #fff; transform: translateY(-2px); }
.footer-col h4 { color: #fff; font-size: 1rem; margin: 0 0 1rem; font-weight: 700; }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: .5rem; font-size: .92rem; }
.footer-col a { color: #94a3b8; text-decoration: none; transition: color .15s; }
.footer-col a:hover { color: #fff; }
.footer-bottom {
    border-top: 1px solid #1e293b;
    padding-top: 1.25rem;
    font-size: .85rem;
    color: #64748b;
    text-align: center;
}
.footer-bottom p { margin: .25rem 0; }
.footer-fine { font-size: .78rem; max-width: 720px; margin: .5rem auto 0; opacity: .8; }

@media (max-width: 820px) {
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .contato-grid { grid-template-columns: 1fr; }
    .autor-card { flex-direction: column; align-items: center; text-align: center; }
    .autor-credenciais { text-align: left; }
}
@media (max-width: 480px) {
    .footer-grid { grid-template-columns: 1fr; }
}


/* ==========================================================================
   Calculadoras
   ========================================================================== */
.calc-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.25rem;
    margin-bottom: 3rem;
}
.calc-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    text-decoration: none;
    color: inherit;
    transition: all .2s;
}
.calc-card:hover {
    transform: translateY(-4px);
    border-color: var(--primary-light);
    box-shadow: 0 12px 28px rgba(30,64,175,.12);
}
.calc-card-icon {
    width: 64px;
    height: 64px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    color: #fff;
}
.calc-icon-money   { background: linear-gradient(135deg, #10b981, #059669); }
.calc-icon-roll    { background: linear-gradient(135deg, #1e40af, #1e3a8a); }
.calc-icon-bucket  { background: linear-gradient(135deg, #ea580c, #c2410c); }
.calc-icon-slope   { background: linear-gradient(135deg, #8b5cf6, #6d28d9); }
.calc-icon-calendar { background: linear-gradient(135deg, #0891b2, #0e7490); }
.calc-icon-roller  { background: linear-gradient(135deg, #db2777, #be185d); }

.calc-card h3 { margin: 0 0 .5rem; color: var(--primary-dark); font-size: 1.2rem; }
.calc-card p { font-size: .92rem; color: var(--text-muted); line-height: 1.55; flex-grow: 1; margin-bottom: 1rem; }
.calc-card-link { color: var(--primary); font-weight: 600; font-size: .9rem; }

.calc-about {
    margin-top: 3rem;
    padding: 2rem;
    background: var(--bg-soft);
    border-radius: var(--radius-lg);
}
.calc-about h2 { color: var(--primary); margin-bottom: .75rem; }
.calc-about p { line-height: 1.7; margin-bottom: .75rem; }

/* Páginas de calculadora */
.calc-page { padding: .5rem 0 2.5rem; }
.calc-page h1 { color: var(--primary-dark); margin: 1rem 0; }
.calc-page p.lead { font-size: 1.08rem; color: var(--text); line-height: 1.6; margin-bottom: 1.5rem; }
.calc-page h2 { color: var(--primary); margin: 2rem 0 .75rem; font-size: 1.35rem; }
.calc-page ul, .calc-page ol { line-height: 1.75; margin-bottom: 1rem; padding-left: 1.5rem; }

.calc-form {
    background: var(--bg-soft);
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    margin: 1rem 0;
}
.calc-input-row { margin-bottom: 1.1rem; }
.calc-input-row:last-child { margin-bottom: 0; }
.calc-input-row label {
    display: block;
    font-size: .92rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: .35rem;
}
.calc-input-row input[type="number"],
.calc-input-row input[type="text"],
.calc-input-row select {
    width: 100%;
    padding: .65rem .85rem;
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 1rem;
    font-family: inherit;
    background: #fff;
    transition: border-color .15s;
}
.calc-input-row input:focus,
.calc-input-row select:focus {
    outline: none;
    border-color: var(--primary);
}
.calc-input-row small {
    display: block;
    color: var(--text-light);
    font-size: .82rem;
    margin-top: .25rem;
}
.calc-input-row input[type="checkbox"] { margin-right: .5rem; }
.calc-input-row input[type="checkbox"] + * { font-weight: 500; }

.calc-radio-group { display: flex; flex-direction: column; gap: .4rem; }
.calc-radio-group label { font-weight: 500; font-size: .92rem; cursor: pointer; }

.calc-result {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    padding: 2rem 1.75rem;
    border-radius: var(--radius-lg);
    margin: 1.5rem 0 2rem;
    box-shadow: 0 10px 30px rgba(30,64,175,.25);
}
.calc-result-main { text-align: center; margin-bottom: 1rem; }
.calc-result-label {
    display: block;
    font-size: .88rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: .88;
    margin-bottom: .5rem;
}
.calc-result-value {
    font-size: 2.4rem;
    font-weight: 800;
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: .5rem;
    flex-wrap: wrap;
}
.calc-result-value .calc-result-sep { font-size: 1rem; font-weight: 400; opacity: .7; }
.calc-result-unit { font-size: 1.1rem; font-weight: 500; opacity: .85; }
.calc-result-detail {
    margin-top: 1.25rem;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(255,255,255,.2);
    font-size: .92rem;
    line-height: 1.7;
}
.calc-result-detail ul { list-style: none; padding: 0; margin: 0; }
.calc-result-detail li { padding: .2rem 0; }
.calc-result-detail strong { font-weight: 700; }
.calc-result-note {
    font-size: .82rem;
    opacity: .82;
    margin: 1rem 0 0;
    line-height: 1.55;
}

/* Status badges */
.calc-status {
    display: block;
    padding: .75rem 1rem;
    border-radius: var(--radius-sm);
    margin-top: 1rem;
    font-size: .92rem;
    line-height: 1.5;
}
.calc-status-good { background: #065f46; color: #d1fae5; }
.calc-status-warn { background: #78350f; color: #fef3c7; }
.calc-status-bad  { background: #7f1d1d; color: #fee2e2; }

/* Tabelas internas */
.calc-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0 1.5rem;
    font-size: .92rem;
}
.calc-table th, .calc-table td {
    padding: .6rem .85rem;
    border: 1px solid var(--border);
    text-align: left;
}
.calc-table th {
    background: var(--primary-bg);
    color: var(--primary-dark);
    font-weight: 700;
}
.calc-table tbody tr:nth-child(even) { background: var(--bg-soft); }
.calc-row-good td { background: #d1fae5 !important; color: #065f46; }
.calc-row-warn td { background: #fef3c7 !important; color: #78350f; }
.calc-row-bad  td { background: #fee2e2 !important; color: #7f1d1d; }

.calc-cta {
    margin: 2rem 0 1rem;
    padding: 1.25rem 1.5rem;
    background: var(--primary-bg);
    border-left: 4px solid var(--primary);
    border-radius: var(--radius-sm);
}
.calc-cta p { margin: 0; line-height: 1.7; }

@media (max-width: 640px) {
    .calc-result-value { font-size: 1.8rem; }
    .calc-table { font-size: .82rem; }
    .calc-table th, .calc-table td { padding: .45rem .55rem; }
}


/* Icones adicionais das novas calculadoras */
.calc-icon-trowel  { background: linear-gradient(135deg, #78716c, #57534e); }
.calc-icon-shield  { background: linear-gradient(135deg, #0ea5e9, #0369a1); }
.calc-icon-tube    { background: linear-gradient(135deg, #f59e0b, #b45309); }
.calc-icon-convert { background: linear-gradient(135deg, #14b8a6, #0f766e); }
