/* ============================================================================
   D COSTA SERVIÇOS CONTÁBIL - ESTILOS GLOBAIS
   
   Design Philosophy: Modernismo Dinâmico com Personalidade
   - Paleta: Azul Profundo (#1e3a5f) + Verde Menta (#2d8659) + Âmbar (#d97706)
   - Tipografia: Georgia (display) + System fonts (body)
   - Layout: Grid assimétrico, seções com fundo colorido alternado
   - Animações: Fade + slide, hover com elevação, scroll reveal
   ============================================================================ */

/* ============================================================================
   RESET E VARIÁVEIS
   ============================================================================ */

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

:root {
    --primary-blue: #1e3a5f;
    --secondary-green: #2d8659;
    --accent-amber: #d97706;
    --bg-light: #f8f9fa;
    --bg-white: #ffffff;
    --text-dark: #1a1a1a;
    --text-gray: #5a6c7d;
    --border-light: #e0e0e0;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.16);
    
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 300ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 500ms cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: var(--text-dark);
    background-color: var(--bg-white);
    line-height: 1.6;
    font-size: 16px;
}

/* ============================================================================
   TIPOGRAFIA
   ============================================================================ */

h1, h2, h3, h4, h5, h6 {
    font-family: Georgia, "Times New Roman", serif;
    font-weight: 700;
    line-height: 1.3;
    color: var(--primary-blue);
}

h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

h3 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
}

h4 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

p {
    margin-bottom: 1rem;
    color: var(--text-gray);
    line-height: 1.8;
}

a {
    color: var(--primary-blue);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--secondary-green);
}

/* ============================================================================
   LAYOUT CONTAINER
   ============================================================================ */

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

@media (max-width: 768px) {
    .container {
        padding: 0 1.5rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }
}

/* ============================================================================
   HEADER / NAVEGAÇÃO
   ============================================================================ */

.header {
    background-color: var(--bg-white);
    border-bottom: 1px solid var(--border-light);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-sm);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-shrink: 0;
}

.logo {
    width: 50px;
    height: 50px;
    object-fit: contain;
}

.company-name h1 {
    font-size: 1.5rem;
    margin: 0;
    color: var(--primary-blue);
}

.company-name p {
    font-size: 0.75rem;
    margin: 0;
    color: var(--secondary-green);
    letter-spacing: 2px;
    text-transform: uppercase;
}

.nav-menu {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    font-size: 0.95rem;
    color: var(--text-gray);
    font-weight: 500;
    transition: color var(--transition-fast);
    position: relative;
}

.nav-link:hover {
    color: var(--primary-blue);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--secondary-green);
    transition: width var(--transition-fast);
}

.nav-link:hover::after {
    width: 100%;
}

.nav-link-cta {
    background-color: var(--secondary-green);
    color: var(--bg-white);
    padding: 0.5rem 1.5rem;
    border-radius: 4px;
}

.nav-link-cta:hover {
    background-color: var(--primary-blue);
    color: var(--bg-white);
}

.nav-link-cta::after {
    display: none;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--primary-blue);
}

@media (max-width: 768px) {
    .nav-menu {
        display: none;
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        flex-direction: column;
        background-color: var(--bg-white);
        padding: 1rem;
        gap: 0.5rem;
        border-bottom: 1px solid var(--border-light);
    }

    .nav-menu.active {
        display: flex;
    }

    .menu-toggle {
        display: block;
    }

    .header-container {
        padding: 1rem;
    }
}

/* ============================================================================
   HERO SECTION
   ============================================================================ */

.hero {
    background: linear-gradient(135deg, var(--primary-blue) 0%, #2c5aa0 100%);
    color: var(--bg-white);
    padding: 6rem 2rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    min-height: 600px;
}

.hero-content {
    animation: slideInLeft 0.8s ease-out;
}

.hero-title {
    color: var(--bg-white);
    font-size: 3.5rem;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--accent-amber);
    margin-bottom: 1.5rem;
    font-family: Georgia, serif;
}

.hero-text {
    color: rgba(255, 255, 255, 0.95);
    font-size: 1.1rem;
    margin-bottom: 2rem;
    line-height: 1.8;
}

.hero-visual {
    animation: slideInRight 0.8s ease-out;
}

.hero-image {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
}

@media (max-width: 1024px) {
    .hero {
        grid-template-columns: 1fr;
        padding: 4rem 2rem;
        min-height: auto;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.25rem;
    }
}

/* ============================================================================
   BOTÕES
   ============================================================================ */

.btn {
    display: inline-block;
    padding: 0.75rem 2rem;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all var(--transition-fast);
    text-align: center;
    font-size: 1rem;
}

.btn-primary {
    background-color: var(--secondary-green);
    color: var(--bg-white);
}

.btn-primary:hover {
    background-color: var(--accent-amber);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-submit {
    width: 100%;
    padding: 1rem;
    font-size: 1.1rem;
}

/* ============================================================================
   SEÇÕES
   ============================================================================ */

.section {
    padding: 5rem 2rem;
    background-color: var(--bg-white);
}

.section-alt {
    background-color: var(--bg-light);
}

.section-title {
    text-align: center;
    margin-bottom: 1rem;
    animation: fadeInUp 0.6s ease-out;
}

.section-intro {
    text-align: center;
    font-size: 1.1rem;
    color: var(--text-gray);
    max-width: 700px;
    margin: 0 auto 3rem;
    line-height: 1.8;
}

/* ============================================================================
   GRID LAYOUTS
   ============================================================================ */

.risks-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.risk-card {
    background-color: var(--bg-white);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-normal);
    border-left: 4px solid var(--secondary-green);
    animation: fadeInUp 0.6s ease-out;
}

.risk-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.risk-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.risk-card h3 {
    color: var(--primary-blue);
    margin-bottom: 1rem;
}

.risk-card p {
    font-size: 0.95rem;
    margin-bottom: 0.75rem;
}

.risk-card strong {
    color: var(--primary-blue);
}

.content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.content-block {
    animation: fadeInUp 0.6s ease-out;
}

.content-block h3 {
    color: var(--primary-blue);
    margin-bottom: 1rem;
}

.content-block p {
    margin-bottom: 1rem;
}

@media (max-width: 768px) {
    .content-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

.indicators-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.indicator-card {
    background-color: var(--bg-white);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
    border-top: 4px solid var(--accent-amber);
    animation: fadeInUp 0.6s ease-out;
}

.indicator-card h3 {
    color: var(--primary-blue);
    margin-bottom: 1rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.service-card {
    background-color: var(--bg-white);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
    text-align: center;
    transition: all var(--transition-normal);
    animation: fadeInUp 0.6s ease-out;
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-top: 4px solid var(--secondary-green);
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.service-card h3 {
    color: var(--primary-blue);
    margin-bottom: 1rem;
}

.credentials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.credential-card {
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-green));
    color: var(--bg-white);
    padding: 2rem;
    border-radius: 8px;
    animation: fadeInUp 0.6s ease-out;
}

.credential-card h3 {
    color: var(--accent-amber);
    margin-bottom: 1rem;
}

.credential-card p {
    color: rgba(255, 255, 255, 0.95);
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.value-item {
    text-align: center;
    padding: 1.5rem;
}

.value-item h4 {
    color: var(--secondary-green);
    margin-bottom: 0.5rem;
}

/* ============================================================================
   TABELAS
   ============================================================================ */

.comparison-table {
    background-color: var(--bg-white);
    padding: 2rem;
    border-radius: 8px;
    overflow-x: auto;
    margin-bottom: 3rem;
    box-shadow: var(--shadow-sm);
}

.comparison-table h3 {
    margin-bottom: 1.5rem;
}

table {
    width: 100%;
    border-collapse: collapse;
}

table th {
    background-color: var(--primary-blue);
    color: var(--bg-white);
    padding: 1rem;
    text-align: left;
    font-weight: 600;
}

table th.red {
    background-color: #dc2626;
}

table th.green {
    background-color: var(--secondary-green);
}

table td {
    padding: 1rem;
    border-bottom: 1px solid var(--border-light);
}

table tbody tr:hover {
    background-color: var(--bg-light);
}

.regime-table {
    width: 100%;
}

/* ============================================================================
   LISTAS E ELEMENTOS
   ============================================================================ */

.feature-list {
    list-style: none;
    margin-bottom: 1.5rem;
}

.feature-list li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: var(--text-gray);
}

.feature-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--secondary-green);
    font-weight: bold;
}

.numbered-list {
    list-style: none;
    margin-bottom: 1.5rem;
    counter-reset: item;
}

.numbered-list li {
    padding: 0.75rem 0;
    padding-left: 2rem;
    position: relative;
    counter-increment: item;
    color: var(--text-gray);
}

.numbered-list li::before {
    content: counter(item);
    position: absolute;
    left: 0;
    background-color: var(--secondary-green);
    color: var(--bg-white);
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.85rem;
}

/* ============================================================================
   CAIXAS ESPECIAIS
   ============================================================================ */

.formula-box {
    background-color: var(--bg-light);
    border-left: 4px solid var(--accent-amber);
    padding: 1rem;
    margin: 1rem 0;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    color: var(--primary-blue);
    font-weight: 600;
}

.comparison-box {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin: 2rem 0;
}

.comparison-box > div {
    padding: 1.5rem;
    border-radius: 8px;
}

.legal {
    background-color: #f0fdf4;
    border-left: 4px solid var(--secondary-green);
}

.legal h4 {
    color: var(--secondary-green);
}

.illegal {
    background-color: #fef2f2;
    border-left: 4px solid #dc2626;
}

.illegal h4 {
    color: #dc2626;
}

.warning-box {
    background-color: #fef3c7;
    border-left: 4px solid var(--accent-amber);
    padding: 2rem;
    border-radius: 8px;
    margin: 2rem 0;
}

.warning-box h3 {
    color: var(--accent-amber);
    margin-bottom: 1rem;
}

.warning-box p {
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.cta-box {
    background: linear-gradient(135deg, var(--secondary-green), var(--primary-blue));
    color: var(--bg-white);
    padding: 1.5rem;
    border-radius: 8px;
    margin-top: 2rem;
}

.cta-box p {
    color: var(--bg-white);
    margin: 0;
}

/* ============================================================================
   FAQ
   ============================================================================ */

.faq-section {
    margin: 3rem 0;
}

.faq-item {
    margin-bottom: 1rem;
    border: 1px solid var(--border-light);
    border-radius: 8px;
    overflow: hidden;
}

.faq-toggle {
    width: 100%;
    padding: 1.5rem;
    background-color: var(--bg-light);
    border: none;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary-blue);
    transition: background-color var(--transition-fast);
}

.faq-toggle:hover {
    background-color: var(--border-light);
}

.faq-question {
    text-align: left;
}

.faq-icon {
    font-size: 1.5rem;
    transition: transform var(--transition-normal);
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    padding: 1.5rem;
    background-color: var(--bg-white);
    border-top: 1px solid var(--border-light);
}

.faq-answer p {
    margin: 0;
    color: var(--text-gray);
}

/* ============================================================================
   FORMULÁRIO DE CONTATO
   ============================================================================ */

.contact-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.contact-form-wrapper {
    animation: fadeInUp 0.6s ease-out;
}

.contact-form {
    background-color: var(--bg-light);
    padding: 2rem;
    border-radius: 8px;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--primary-blue);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-light);
    border-radius: 4px;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color var(--transition-fast);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--secondary-green);
    box-shadow: 0 0 0 3px rgba(45, 134, 89, 0.1);
}

.form-group textarea {
    resize: vertical;
}

.error-message {
    display: block;
    color: #dc2626;
    font-size: 0.85rem;
    margin-top: 0.25rem;
    min-height: 1.2rem;
}

.form-message {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 4px;
    text-align: center;
    font-weight: 600;
    min-height: 1.5rem;
}

.form-message.success {
    background-color: #d1fae5;
    color: var(--secondary-green);
}

.form-message.error {
    background-color: #fee2e2;
    color: #dc2626;
}

.contact-info {
    animation: fadeInUp 0.6s ease-out 0.1s both;
}

.contact-info h3 {
    margin-bottom: 1.5rem;
}

.info-block {
    margin-bottom: 1.5rem;
}

.info-block h4 {
    color: var(--secondary-green);
    margin-bottom: 0.5rem;
}

.info-block p {
    color: var(--text-gray);
    font-size: 0.95rem;
    margin: 0;
}

@media (max-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .comparison-box {
        grid-template-columns: 1fr;
    }
}

/* ============================================================================
   FOOTER
   ============================================================================ */

.footer {
    background-color: var(--primary-blue);
    color: var(--bg-white);
    padding: 3rem 2rem 1rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    color: var(--accent-amber);
    margin-bottom: 1rem;
}

.footer-section p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: rgba(255, 255, 255, 0.8);
    transition: color var(--transition-fast);
}

.footer-section a:hover {
    color: var(--accent-amber);
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    text-align: center;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
}

/* ============================================================================
   ANIMAÇÕES
   ============================================================================ */

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* ============================================================================
   RESPONSIVIDADE
   ============================================================================ */

@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 1.75rem;
    }

    h3 {
        font-size: 1.25rem;
    }

    .hero {
        padding: 3rem 1rem;
        min-height: auto;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .section {
        padding: 3rem 1rem;
    }

    .risks-grid,
    .indicators-grid,
    .services-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    body {
        font-size: 14px;
    }

    h1 {
        font-size: 1.75rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    h3 {
        font-size: 1.1rem;
    }

    .hero {
        padding: 2rem 1rem;
    }

    .hero-title {
        font-size: 1.5rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .section {
        padding: 2rem 1rem;
    }

    .container {
        padding: 0 1rem;
    }

    .nav-menu {
        gap: 1rem;
    }

    .nav-link {
        font-size: 0.85rem;
    }
}

/* ============================================================================
   ACESSIBILIDADE
   ============================================================================ */

@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus visible para navegação por teclado */
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid var(--secondary-green);
    outline-offset: 2px;
}
