/**
 * CBR Assessoria e Contabilidade
 * Stylesheet Principal
 * Design Responsivo e Moderno
 */

/* ============================================
   RESET E VARIÁVEIS
============================================ */
:root {
    --primary-color: #001F3F;      /* Azul Marinho */
    --secondary-color: #FFD700;    /* Dourado */
    --text-color: #333333;
    --text-light: #666666;
    --bg-light: #F8F9FA;
    --white: #FFFFFF;
    --border-color: #E0E0E0;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 5px 20px rgba(0, 0, 0, 0.15);
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--white);
}

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

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

/* ============================================
   HEADER E NAVEGAÇÃO
============================================ */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: var(--white);
    box-shadow: var(--shadow);
    z-index: 1000;
    transition: var(--transition);
}

.site-header.scrolled {
    background-color: rgba(255, 255, 255, 0.98);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo img {
    height: 60px;
    width: auto;
}

.main-nav {
    display: flex;
    align-items: center;
}

.nav-menu {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-menu li {
    position: relative;
}

.nav-menu a {
    color: var(--text-color);
    font-weight: 500;
    font-size: 15px;
    padding: 10px 0;
    display: inline-block;
    transition: var(--transition);
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--primary-color);
}

/* Dropdown Menu */
.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--white);
    box-shadow: var(--shadow-hover);
    min-width: 280px;
    padding: 15px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition);
    border-radius: 8px;
    margin-top: 10px;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    padding: 0;
}

.dropdown-menu a {
    padding: 12px 25px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-color);
    font-size: 14px;
}

.dropdown-menu a:hover {
    background-color: var(--bg-light);
    color: var(--primary-color);
}

.dropdown-menu i {
    color: var(--secondary-color);
    font-size: 18px;
}

/* Menu Toggle (Mobile) */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--primary-color);
    transition: var(--transition);
}

/* ============================================
   HERO SECTION
============================================ */
.hero {
    position: relative;
    height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-color) 0%, #003366 100%);
    background-image: url('../images/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    background-blend-mode: overlay;
    margin-top: 90px;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 31, 63, 0.9) 0%, rgba(0, 51, 102, 0.85) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--white);
    max-width: 800px;
}

.hero-title {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
    animation: fadeInUp 0.8s ease;
}

.hero-subtitle {
    font-size: 20px;
    margin-bottom: 30px;
    font-weight: 300;
    animation: fadeInUp 1s ease;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    animation: fadeInUp 1.2s ease;
}

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

/* ============================================
   BOTÕES
============================================ */
.btn {
    display: inline-block;
    padding: 14px 30px;
    border-radius: 5px;
    font-weight: 600;
    font-size: 16px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
}

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

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

.btn-secondary {
    background-color: transparent;
    color: var(--white);
    border-color: var(--white);
}

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

.btn-large {
    padding: 16px 40px;
    font-size: 18px;
}

.btn-block {
    width: 100%;
    display: block;
}

/* ============================================
   SEÇÕES
============================================ */
.stats-section,
.about-section,
.services-section,
.differentials-section,
.content-section,
.extra-services-section,
.contact-section {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-title {
    font-size: 36px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.section-subtitle {
    font-size: 18px;
    color: var(--text-light);
}

/* ============================================
   ESTATÍSTICAS
============================================ */
.stats-section {
    background-color: var(--bg-light);
    padding: 60px 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.stat-item {
    text-align: center;
}

.stat-item i {
    font-size: 48px;
    color: var(--secondary-color);
    margin-bottom: 15px;
}

.stat-number {
    font-size: 42px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.stat-label {
    font-size: 16px;
    color: var(--text-light);
}

/* ============================================
   SOBRE NÓS
============================================ */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-text p {
    margin-bottom: 20px;
    text-align: justify;
}

.about-text .btn {
    margin-top: 20px;
}

.about-image img {
    border-radius: 10px;
    box-shadow: var(--shadow-hover);
}

/* ============================================
   SERVIÇOS
============================================ */
.services-section {
    background-color: var(--bg-light);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background-color: var(--white);
    padding: 40px 30px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    text-align: center;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.service-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color) 0%, #003366 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
}

.service-icon i {
    font-size: 36px;
    color: var(--secondary-color);
}

.service-title {
    font-size: 22px;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.service-description {
    color: var(--text-light);
    margin-bottom: 20px;
}

.service-link {
    color: var(--primary-color);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.service-link:hover {
    color: var(--secondary-color);
}

/* ============================================
   DIFERENCIAIS
============================================ */
.differentials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.differential-item {
    text-align: center;
    padding: 30px 20px;
}

.differential-item i {
    font-size: 48px;
    color: var(--secondary-color);
    margin-bottom: 20px;
}

.differential-item h3 {
    font-size: 20px;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.differential-item p {
    color: var(--text-light);
}

/* ============================================
   CTA SECTION
============================================ */
.cta-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, #003366 100%);
    padding: 80px 0;
    text-align: center;
    color: var(--white);
}

.cta-title {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 20px;
}

.cta-text {
    font-size: 18px;
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* ============================================
   PAGE HEADER
============================================ */
.page-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, #003366 100%);
    padding: 120px 0 60px;
    text-align: center;
    color: var(--white);
    margin-top: 90px;
}

.page-header h1 {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 15px;
}

.page-header p {
    font-size: 18px;
    font-weight: 300;
}

/* ============================================
   CONTEÚDO
============================================ */
.content-wrapper {
    max-width: 900px;
    margin: 0 auto 50px;
}

.content-wrapper h2 {
    font-size: 32px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 20px;
    margin-top: 40px;
}

.content-wrapper h3 {
    font-size: 24px;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 15px;
    margin-top: 30px;
}

.content-wrapper p {
    margin-bottom: 20px;
    text-align: justify;
    line-height: 1.8;
}

.benefits-list {
    list-style: none;
    margin: 30px 0;
}

.benefits-list li {
    padding: 12px 0;
    display: flex;
    align-items: flex-start;
    gap: 15px;
    font-size: 16px;
}

.benefits-list i {
    color: var(--secondary-color);
    font-size: 20px;
    margin-top: 2px;
}

/* MVV Grid */
.mvv-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin: 50px 0;
}

.mvv-item {
    background-color: var(--bg-light);
    padding: 40px 30px;
    border-radius: 10px;
    text-align: center;
}

.mvv-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary-color) 0%, #003366 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.mvv-icon i {
    font-size: 32px;
    color: var(--secondary-color);
}

.mvv-item h3 {
    font-size: 24px;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.mvv-item p,
.mvv-item ul {
    text-align: left;
    color: var(--text-light);
}

.mvv-item ul {
    list-style: disc;
    padding-left: 20px;
}

.mvv-item li {
    margin-bottom: 8px;
}

/* Serviços Detalhados */
.services-detailed {
    max-width: 1000px;
    margin: 0 auto;
}

.service-detail-card {
    display: flex;
    gap: 40px;
    margin-bottom: 50px;
    padding: 40px;
    background-color: var(--bg-light);
    border-radius: 10px;
}

.service-detail-icon {
    flex-shrink: 0;
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, var(--primary-color) 0%, #003366 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-detail-icon i {
    font-size: 48px;
    color: var(--secondary-color);
}

.service-detail-content h2 {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.service-detail-content p {
    margin-bottom: 20px;
    text-align: justify;
}

.service-detail-content h3 {
    font-size: 20px;
    font-weight: 600;
    color: var(--primary-color);
    margin-top: 25px;
    margin-bottom: 15px;
}

.service-detail-content ul {
    list-style: disc;
    padding-left: 25px;
    margin-bottom: 20px;
}

.service-detail-content li {
    margin-bottom: 10px;
    color: var(--text-light);
}

/* Services List */
.services-list {
    max-width: 1000px;
    margin: 0 auto;
}

.service-list-item {
    display: flex;
    gap: 30px;
    padding: 30px;
    margin-bottom: 25px;
    background-color: var(--bg-light);
    border-radius: 10px;
    transition: var(--transition);
}

.service-list-item:hover {
    box-shadow: var(--shadow-hover);
    transform: translateX(5px);
}

.service-list-icon {
    flex-shrink: 0;
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary-color) 0%, #003366 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-list-icon i {
    font-size: 32px;
    color: var(--secondary-color);
}

.service-list-content h3 {
    font-size: 20px;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.service-list-content p {
    color: var(--text-light);
    text-align: justify;
}

/* Regimes Tributários */
.regime-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

.regime-card {
    background-color: var(--bg-light);
    padding: 30px;
    border-radius: 10px;
    border-top: 4px solid var(--secondary-color);
}

.regime-card h3 {
    font-size: 22px;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.regime-card p {
    color: var(--text-light);
    text-align: justify;
}

/* Extra Services */
.extra-services-section {
    background-color: var(--bg-light);
}

.extra-services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.extra-service-item {
    background-color: var(--white);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    transition: var(--transition);
}

.extra-service-item:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-5px);
}

.extra-service-item i {
    font-size: 42px;
    color: var(--secondary-color);
    margin-bottom: 20px;
}

.extra-service-item h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.extra-service-item p {
    color: var(--text-light);
    font-size: 14px;
}

/* ============================================
   CONTATO
============================================ */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.contact-info-box h2,
.contact-form-box h2 {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.contact-info-box p {
    margin-bottom: 30px;
    color: var(--text-light);
}

.contact-items {
    margin-bottom: 40px;
}

.contact-item {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.contact-item-icon {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color) 0%, #003366 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-item-icon i {
    font-size: 22px;
    color: var(--secondary-color);
}

.contact-item-content h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 8px;
}

.contact-item-content p {
    color: var(--text-light);
    margin: 0;
}

.contact-item-content a {
    color: var(--primary-color);
}

.contact-item-content a:hover {
    color: var(--secondary-color);
}

.social-links-contact {
    display: flex;
    gap: 15px;
}

.social-links-contact a {
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, var(--primary-color) 0%, #003366 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--secondary-color);
    font-size: 20px;
    transition: var(--transition);
}

.social-links-contact a:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}

/* Formulário */
.form-message {
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
    font-weight: 500;
}

.form-message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.form-message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.contact-form {
    background-color: var(--bg-light);
    padding: 40px;
    border-radius: 10px;
}

.form-group {
    margin-bottom: 25px;
}

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

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid var(--border-color);
    border-radius: 5px;
    font-size: 15px;
    font-family: 'Poppins', sans-serif;
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

/* Mapa */
.map-section {
    padding: 60px 0;
    background-color: var(--bg-light);
}

.map-container {
    margin-top: 40px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

/* ============================================
   FOOTER
============================================ */
.site-footer {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--secondary-color);
}

.footer-col p {
    margin-bottom: 20px;
    line-height: 1.8;
    opacity: 0.9;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul li a {
    color: var(--white);
    opacity: 0.9;
    transition: var(--transition);
}

.footer-col ul li a:hover {
    opacity: 1;
    color: var(--secondary-color);
    padding-left: 5px;
}

.contact-info li {
    display: flex;
    gap: 12px;
    margin-bottom: 15px;
    align-items: flex-start;
}

.contact-info i {
    color: var(--secondary-color);
    font-size: 18px;
    margin-top: 3px;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--secondary-color);
    font-size: 18px;
    transition: var(--transition);
}

.social-links a:hover {
    background-color: var(--secondary-color);
    color: var(--primary-color);
    transform: translateY(-3px);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
    text-align: center;
}

.footer-info p {
    margin-bottom: 10px;
    opacity: 0.9;
    font-size: 14px;
}

/* ============================================
   BOTÕES FLUTUANTES
============================================ */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color) 0%, #003366 100%);
    color: var(--secondary-color);
    border: none;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 999;
    box-shadow: var(--shadow-hover);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-5px);
}

.whatsapp-float {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    box-shadow: var(--shadow-hover);
    z-index: 999;
    transition: var(--transition);
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 5px 25px rgba(37, 211, 102, 0.5);
}

/* ============================================
   RESPONSIVIDADE
============================================ */
@media (max-width: 992px) {
    .menu-toggle {
        display: flex;
    }
    
    .main-nav {
        position: fixed;
        top: 90px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 90px);
        background-color: var(--white);
        transition: var(--transition);
        overflow-y: auto;
    }
    
    .main-nav.active {
        left: 0;
    }
    
    .nav-menu {
        flex-direction: column;
        padding: 30px 20px;
        gap: 0;
    }
    
    .nav-menu li {
        width: 100%;
        border-bottom: 1px solid var(--border-color);
    }
    
    .nav-menu a {
        display: block;
        padding: 15px 0;
    }
    
    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background-color: var(--bg-light);
        margin-top: 10px;
        display: none;
    }
    
    .dropdown.active .dropdown-menu {
        display: block;
    }
    
    .hero-title {
        font-size: 36px;
    }
    
    .hero-subtitle {
        font-size: 18px;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .about-content {
        grid-template-columns: 1fr;
    }
    
    .service-detail-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .hero {
        height: 500px;
    }
    
    .hero-title {
        font-size: 32px;
    }
    
    .hero-subtitle {
        font-size: 16px;
    }
    
    .section-title {
        font-size: 28px;
    }
    
    .page-header h1 {
        font-size: 32px;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
    
    .services-grid,
    .differentials-grid,
    .extra-services-grid {
        grid-template-columns: 1fr;
    }
    
    .service-list-item {
        flex-direction: column;
        text-align: center;
    }
    
    .contact-form {
        padding: 30px 20px;
    }
    
    .back-to-top,
    .whatsapp-float {
        right: 20px;
    }
    
    .whatsapp-float {
        bottom: 90px;
        width: 55px;
        height: 55px;
        font-size: 28px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero {
        height: 450px;
    }
    
    .hero-title {
        font-size: 28px;
    }
    
    .hero-subtitle {
        font-size: 15px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .btn {
        padding: 12px 25px;
        font-size: 15px;
    }
    
    .section-title {
        font-size: 24px;
    }
    
    .page-header {
        padding: 100px 0 40px;
    }
    
    .page-header h1 {
        font-size: 28px;
    }
}
