/* Design system: baseado em site-escritorio-tributario (Vilas Boas) */
/* Ver DESIGN.md para tokens e uso. */

:root {
    --gold-main: #FFEA00;
    --gold-light: #FFF566;
    --dark-bg: #0a0a0a;
    --dark-surface: #171717;
}

body {
    font-family: 'Lato', sans-serif;
    background-color: var(--dark-bg);
    color: #e5e5e5;
}

h1, h2, h3, .brand-font {
    font-family: 'Montserrat', sans-serif;
    letter-spacing: -0.02em;
}

.text-gold { color: var(--gold-main); }
.bg-gold { background-color: var(--gold-main); }
.border-gold { border-color: var(--gold-main); }

.hover-text-gold:hover {
    color: var(--gold-light);
    text-shadow: 0 0 10px rgba(255, 234, 0, 0.4);
}

.btn-primary {
    background-color: transparent;
    border: 1px solid var(--gold-main);
    color: var(--gold-main);
    transition: all 0.3s ease;
}
.btn-primary:hover {
    background-color: var(--gold-main);
    color: #000;
    box-shadow: 0 0 20px rgba(255, 234, 0, 0.6);
}

.btn-solid {
    background-color: var(--gold-main);
    color: #000;
    font-weight: bold;
    transition: all 0.3s ease;
}
.btn-solid:hover {
    background-color: var(--gold-light);
    transform: translateY(-2px);
    box-shadow: 0 0 25px rgba(255, 234, 0, 0.7);
}

html { scroll-behavior: smooth; }

.service-card { transition: all 0.3s ease; }
.service-card:hover {
    transform: translateY(-3px);
    border-color: rgba(255, 234, 0, 0.4);
    box-shadow: 0 0 25px rgba(255, 234, 0, 0.12);
}

.card-icon-gold {
    background: rgba(255, 234, 0, 0.1);
    border: 1px solid rgba(255, 234, 0, 0.2);
}
.group:hover .card-icon-gold {
    background: rgba(255, 234, 0, 0.18);
}

.simulador-card:hover {
    border-color: rgba(255, 234, 0, 0.5);
}

button, .btn-primary, .btn-solid {
    -webkit-user-select: none;
    user-select: none;
    -webkit-tap-highlight-color: rgba(255, 234, 0, 0.2);
}

/* Focus visível para acessibilidade (teclado, leitores de tela) */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
    outline: 2px solid var(--gold-main);
    outline-offset: 2px;
}

/* Botão WhatsApp: safe area para dispositivos com notch/home indicator */
.whatsapp-fab {
    bottom: max(1.5rem, env(safe-area-inset-bottom, 1.5rem));
    right: max(1.5rem, env(safe-area-inset-right, 1.5rem));
}

/* Header: respeitar safe area em dispositivos com notch */
nav[role="navigation"] {
    padding-top: env(safe-area-inset-top, 0);
}

@media (max-width: 640px) {
    html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
    a, button { min-height: 44px; min-width: 44px; }
    input[type="text"], input[type="email"], input[type="tel"], textarea, select { font-size: 16px !important; }
    .service-card:hover { transform: none; }
}

/* Tabelas responsivas: scroll suave no iOS + layout em cards no mobile */
.table-scroll-mobile {
    -webkit-overflow-scrolling: touch;
}

@media (max-width: 640px) {
    .table-responsive-cards thead { display: none; }
    .table-responsive-cards tbody tr {
        display: block;
        border-bottom: 1px solid rgb(64 64 64);
        padding: 0.75rem 0;
    }
    .table-responsive-cards tbody tr:last-child { border-bottom: none; }
    .table-responsive-cards tbody td {
        display: block;
        text-align: right;
        padding: 0.25rem 0;
        border: none;
    }
    .table-responsive-cards tbody td::before {
        content: attr(data-label);
        float: left;
        font-weight: 600;
        color: rgb(163 163 163);
    }
    .table-responsive-cards tbody td:first-child::before {
        font-weight: 700;
        color: rgb(229 229 229);
    }
}

.touch-manipulation {
    touch-action: manipulation;
    -webkit-tap-highlight-color: rgba(255, 234, 0, 0.2);
}

/* Textos explicativos justificados */
.texto-justificado,
.texto-justificado p,
.texto-justificado li {
    text-align: justify;
}
