body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    letter-spacing: 0.2px;
}
h1, h2, h3 {
    font-weight: 600;
}
:root {
    --bg: #ffffff;
    --bg-alt: #f4f4f4;
    --text: #111111;
    --text-soft: #5e5e5e;
    --border: #d9d9d9;
    --card: #ffffff;
    --accent: #000000;
    --accent-contrast: #ffffff;
    --hero-start: #ffffff;
    --hero-end: #f7f7f7;
    --hero-card-bg: #0d0d0d;
    --hero-card-text: #ffffff;
    --shadow: 0 20px 50px rgba(0,0,0,0.08);
    --radius: 18px;
    --button-radius: 999px;
    --container: 1180px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.container { width: min(calc(100% - 40px), var(--container)); margin: 0 auto; }
.topbar {
    position: sticky; top: 0; z-index: 20;
    backdrop-filter: blur(12px);
    background: color-mix(in srgb, var(--bg) 92%, transparent);
    border-bottom: 1px solid color-mix(in srgb, var(--text) 8%, transparent);
}
.nav-wrap { display: flex; justify-content: space-between; align-items: center; min-height: 74px; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; font-size: 0.9rem; }
.brand-mark, .brand-logo { width: 32px; height: 32px; border-radius: 8px; display: inline-grid; place-items: center; }
.brand-mark { background: var(--accent); color: var(--accent-contrast); font-size: 0.95rem; }
.brand-logo { object-fit: cover; }
.nav { display: flex; gap: 22px; flex-wrap: wrap; }
.nav a { color: var(--text-soft); font-size: 0.96rem; }
.nav a:hover { color: var(--text); }
.hero {
    position: relative;
    padding: 96px 0 72px;
    background: linear-gradient(180deg, var(--hero-start) 0%, var(--hero-end) 100%);
    overflow: clip;
}
.hero.has-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(255,255,255,0.96) 0%, rgba(255,255,255,0.82) 44%, rgba(255,255,255,0.56) 100%);
    pointer-events: none;
}
.hero-media { position: absolute; inset: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 40px;
    align-items: center;
}
.eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 0.74rem;
    color: var(--text-soft);
    margin: 0 0 18px;
}
.hero h1, .section h2 {
    margin: 0 0 18px;
    line-height: 1.08;
    letter-spacing: -0.03em;
}
.hero h1 { font-size: clamp(2.5rem, 6vw, 4.9rem); max-width: 12ch; }
.lead, .section-intro, .text-block { color: var(--text-soft); font-size: 1.08rem; max-width: 66ch; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 32px; }
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    min-height: 50px; padding: 0 22px; border-radius: var(--button-radius);
    border: 1px solid var(--accent); font-weight: 600;
}
.btn-primary { background: var(--accent); color: var(--accent-contrast); }
.btn-secondary { background: transparent; color: var(--accent); }
.hero-card { justify-self: end; width: min(100%, 360px); }
.hero-card-inner {
    background: var(--hero-card-bg);
    color: var(--hero-card-text);
    padding: 34px;
    border-radius: calc(var(--radius) + 6px);
    box-shadow: var(--shadow);
}
.card-label {
    display: inline-block;
    color: color-mix(in srgb, var(--hero-card-text) 70%, transparent);
    text-transform: uppercase;
    font-size: 0.72rem;
    letter-spacing: 0.16em;
    margin-bottom: 14px;
}
.hero-card strong { display: block; font-size: 1.7rem; line-height: 1.2; margin-bottom: 14px; }
.hero-card p { margin: 0; color: color-mix(in srgb, var(--hero-card-text) 78%, transparent); }
.section { padding: 86px 0; }
.section-alt { background: var(--bg-alt); }
.section-grid, .contact-grid {
    display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 28px; align-items: start;
}
.section-side.with-image { display: grid; gap: 22px; }
.section-image { width: 100%; max-width: 560px; border-radius: calc(var(--radius) + 4px); border: 1px solid var(--border); }
.cards-grid, .team-grid {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; margin-top: 28px;
}
.cards-grid-three { grid-template-columns: repeat(3, 1fr); }
.info-card, .team-card, .contact-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 26px;
    box-shadow: var(--shadow);
}
.info-card h3, .team-card h3 { margin-top: 0; margin-bottom: 10px; font-size: 1.08rem; }
.info-card p, .team-card p, .contact-card p { color: var(--text-soft); margin: 0; }
.team-card span { display: block; margin-bottom: 12px; color: var(--text-soft); font-size: 0.94rem; }
.team-card img, .avatar-placeholder {
    width: 76px; height: 76px; border-radius: 50%; margin-bottom: 18px; object-fit: cover;
}
.avatar-placeholder {
    display: grid; place-items: center; background: var(--accent); color: var(--accent-contrast); font-weight: 700; font-size: 1.4rem;
}
.footer { border-top: 1px solid var(--border); padding: 28px 0; background: var(--bg); }
.footer-wrap { display: flex; justify-content: space-between; align-items: center; gap: 18px; flex-wrap: wrap; }
.footer p { margin: 0; color: var(--text-soft); }
.whatsapp-float {
    position: fixed; right: 22px; bottom: 22px; z-index: 40; min-height: 52px; padding: 0 18px; display: inline-flex; align-items: center;
    background: var(--accent); color: var(--accent-contrast); border-radius: var(--button-radius); border: 1px solid var(--accent); box-shadow: var(--shadow);
}
@media (max-width: 980px) {
    .hero-grid, .section-grid, .contact-grid { grid-template-columns: 1fr; }
    .hero-card { justify-self: start; }
    .cards-grid, .team-grid, .cards-grid-three { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
    .nav { display: none; }
    .hero { padding-top: 72px; }
    .cards-grid, .team-grid, .cards-grid-three { grid-template-columns: 1fr; }
    .btn { width: 100%; }
    .whatsapp-float { right: 14px; left: 14px; justify-content: center; }
}
/* ===== CORREÇÃO DO BOX ÁREAS ===== */

.cards-grid .info-card {
    background: var(--card);
    color: var(--text);
}

/* Se o fundo for escuro (preto), força texto branco */
.cards-grid .info-card[style*="background"],
.cards-grid .info-card[style*="background-color"] {
    color: #ffffff !important;
}

/* garante que todo conteúdo dentro fique visível */
.cards-grid .info-card * {
    color: inherit !important;
}
/* CORREÇÃO DEFINITIVA - TEXTO DO CARD HERO */
.hero-card,
.hero-card *,
.hero-card-inner,
.hero-card-inner *,
.hero-card strong,
.hero-card p,
.hero-card .card-label {
    color: var(--hero-card-text) !important;
}
/* LOGO PROFISSIONAL - CORREÇÃO FINAL */
.brand-logo {
    width: auto !important;
    height: 48px !important;
    max-width: 220px !important;
    max-height: 56px !important;
    object-fit: contain !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

.brand {
    text-transform: none;
    letter-spacing: 0.02em;
}
.hidden-post {
    display: none;
}