/* ============================================
   BRAGA CONSULTORIA - CSS PRINCIPAL
   Paleta: Verde #41B841 | Roxo #7A43B6 | Vermelho #E63B2E | Cinza #585858
   ============================================ */

/* CSS Variables */
:root {
    --green: #41B841;
    --green-dark: #35a035;
    --purple: #7A43B6;
    --purple-dark: #6535a0;
    --red: #E63B2E;
    --red-dark: #cc2e22;
    --gray-dark: #585858;
    --gray-medium: #7A7A7A;
    --gray-light: #f5f5f5;
    --white: #ffffff;
    --black: #1a1a1a;
    --shadow: 0 4px 20px rgba(0,0,0,0.10);
    --shadow-lg: 0 8px 40px rgba(0,0,0,0.15);
    --transition: all 0.3s ease;
    --radius: 12px;
    --font: 'Inter', sans-serif;
}

/* Reset & Base */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font); color: var(--black); background: var(--white); line-height: 1.7; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

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

/* ============================================
   TOP BAR
   ============================================ */
.top-bar {
    background: var(--gray-dark);
    color: var(--white);
    padding: 8px 0;
    font-size: 13px;
}
.top-bar-content { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.top-bar-left { display: flex; gap: 20px; flex-wrap: wrap; }
.top-bar-left span { display: flex; align-items: center; gap: 6px; }
.top-bar-left i { color: var(--green); }
.top-bar-right { display: flex; gap: 10px; }
.top-bar-right a { color: var(--white); width: 28px; height: 28px; border-radius: 50%; background: rgba(255,255,255,0.1); display: flex; align-items: center; justify-content: center; transition: var(--transition); }
.top-bar-right a:hover { background: var(--green); }

/* Color Bar */
.color-bar { display: flex; height: 4px; }
.color-bar-green { flex: 1; background: var(--green); }
.color-bar-purple { flex: 1; background: var(--purple); }
.color-bar-red { flex: 1; background: var(--red); }

/* ============================================
   HEADER / NAVBAR
   ============================================ */
.header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--white);
    box-shadow: var(--shadow);
    transition: var(--transition);
}
.header.scrolled { box-shadow: 0 2px 30px rgba(0,0,0,0.15); }
.navbar { display: flex; align-items: center; gap: 30px; padding: 12px 0; }
.logo { display: flex; align-items: center; }
.logo img { height: 70px; width: auto; object-fit: contain; padding: 4px 8px; background: white; border-radius: 8px; }
.nav-menu { display: flex; gap: 30px; margin-left: auto; }
.nav-link { color: var(--gray-dark); font-weight: 500; font-size: 15px; padding: 6px 2px; border-bottom: 2px solid transparent; transition: var(--transition); }
.nav-link:hover, .nav-link.active { color: var(--green); border-bottom-color: var(--green); }
.btn-header { background: var(--green); color: var(--white); padding: 10px 20px; border-radius: 8px; font-weight: 600; font-size: 14px; display: flex; align-items: center; gap: 8px; transition: var(--transition); white-space: nowrap; }
.btn-header:hover { background: var(--green-dark); transform: translateY(-2px); box-shadow: 0 4px 15px rgba(65,184,65,0.4); }
.hamburger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 5px; }
.hamburger span { width: 25px; height: 2px; background: var(--gray-dark); border-radius: 2px; transition: var(--transition); display: block; }

/* ============================================
   HERO SLIDER
   ============================================ */
.hero { position: relative; height: 90vh; min-height: 500px; max-height: 750px; overflow: hidden; }
.slider { height: 100%; }
.slide { position: absolute; inset: 0; opacity: 0; transition: opacity 0.8s ease; }
.slide.active { opacity: 1; z-index: 1; }
.slide-1 { background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%); }
.slide-2 { background: linear-gradient(135deg, #1a0a2e 0%, #2d1b69 50%, #4a1f8f 100%); }
.slide-3 { background: linear-gradient(135deg, #2e0a0a 0%, #8b1a1a 50%, #c0392b 100%); }
.slide-overlay { position: absolute; inset: 0; background: rgba(0,0,0,0.45); }
.slide-content { position: absolute; inset: 0; z-index: 2; display: flex; align-items: center; }
.slide-content .container { padding-top: 20px; }
.slide-badge { background: var(--green); color: white; padding: 6px 16px; border-radius: 20px; font-size: 13px; font-weight: 600; display: inline-block; margin-bottom: 20px; text-transform: uppercase; letter-spacing: 1px; }
.slide h1 { font-size: clamp(28px, 5vw, 56px); font-weight: 800; color: var(--white); line-height: 1.15; margin-bottom: 20px; max-width: 700px; }
.highlight-green { color: var(--green); }
.highlight-purple { color: #b07aff; }
.highlight-red { color: #ff8070; }
.slide p { font-size: clamp(14px, 2vw, 18px); color: rgba(255,255,255,0.85); max-width: 560px; margin-bottom: 32px; }
.slide-buttons { display: flex; gap: 15px; flex-wrap: wrap; }
.btn-primary { background: var(--green); color: white; padding: 14px 28px; border-radius: 8px; font-weight: 700; display: flex; align-items: center; gap: 8px; transition: var(--transition); font-size: 15px; }
.btn-primary:hover { background: var(--green-dark); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(65,184,65,0.5); }
.btn-secondary { background: transparent; color: white; padding: 14px 28px; border-radius: 8px; font-weight: 700; border: 2px solid rgba(255,255,255,0.6); transition: var(--transition); font-size: 15px; }
.btn-secondary:hover { background: rgba(255,255,255,0.15); border-color: white; }
.slider-prev, .slider-next { position: absolute; top: 50%; transform: translateY(-50%); z-index: 10; background: rgba(255,255,255,0.15); color: white; border: 1px solid rgba(255,255,255,0.3); width: 50px; height: 50px; border-radius: 50%; cursor: pointer; font-size: 16px; transition: var(--transition); display: flex; align-items: center; justify-content: center; }
.slider-prev { left: 20px; }
.slider-next { right: 20px; }
.slider-prev:hover, .slider-next:hover { background: var(--green); border-color: var(--green); }
.slider-dots { position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%); display: flex; gap: 8px; z-index: 10; }
.dot { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,0.4); cursor: pointer; transition: var(--transition); }
.dot.active { background: var(--green); transform: scale(1.3); }

/* ============================================
   STATS BAR
   ============================================ */
.stats-bar {
    background: linear-gradient(135deg, var(--gray-dark) 0%, #3a3a3a 100%);
    padding: 40px 0;
}
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.stat-item { display: flex; align-items: center; gap: 16px; padding: 16px; border-radius: var(--radius); background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.08); transition: var(--transition); }
.stat-item:hover { background: rgba(255,255,255,0.1); transform: translateY(-3px); }
.stat-icon { width: 52px; height: 52px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 22px; flex-shrink: 0; }
.stat-icon.green { background: rgba(65,184,65,0.2); color: var(--green); }
.stat-icon.purple { background: rgba(122,67,182,0.2); color: #b07aff; }
.stat-icon.red { background: rgba(230,59,46,0.2); color: #ff8070; }
.stat-info { color: white; }
.stat-info .stat-number { font-size: 36px; font-weight: 800; line-height: 1; }
.stat-plus { font-size: 24px; font-weight: 700; color: var(--green); }
.stat-info p { font-size: 13px; color: rgba(255,255,255,0.7); margin-top: 2px; }

/* ============================================
   FEATURED SERVICES
   ============================================ */
.featured-services { padding: 80px 0; background: var(--gray-light); }
.featured-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.featured-card { background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: var(--transition); }
.featured-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.featured-img { height: 200px; display: flex; align-items: center; justify-content: center; position: relative; }
.contabilidade-bg { background: linear-gradient(135deg, #1a3a1a, #2d7a2d); }
.departamento-bg { background: linear-gradient(135deg, #1a1030, #4a2080); }
.fiscal-bg { background: linear-gradient(135deg, #3a0a0a, #8b2020); }
.featured-overlay { position: absolute; inset: 0; background: rgba(0,0,0,0.3); display: flex; align-items: center; justify-content: center; }
.featured-icon { font-size: 60px; color: rgba(255,255,255,0.9); }
.featured-body { padding: 25px; }
.featured-body h3 { font-size: 20px; font-weight: 700; color: var(--gray-dark); margin-bottom: 12px; }
.featured-body p { color: var(--gray-medium); font-size: 14px; line-height: 1.7; margin-bottom: 20px; }
.featured-link { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 14px; padding: 8px 16px; border-radius: 6px; transition: var(--transition); }
.featured-link.green { color: var(--green); background: rgba(65,184,65,0.1); }
.featured-link.green:hover { background: var(--green); color: white; }
.featured-link.purple { color: var(--purple); background: rgba(122,67,182,0.1); }
.featured-link.purple:hover { background: var(--purple); color: white; }
.featured-link.red { color: var(--red); background: rgba(230,59,46,0.1); }
.featured-link.red:hover { background: var(--red); color: white; }

/* ============================================
   ABOUT
   ============================================ */
.about { padding: 100px 0; background: var(--white); }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.section-tag { display: inline-block; background: var(--green); color: white; padding: 5px 15px; border-radius: 20px; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 16px; }
.about h2 { font-size: clamp(24px, 3.5vw, 36px); font-weight: 800; color: var(--gray-dark); margin-bottom: 8px; line-height: 1.3; }
.text-purple { color: var(--purple); }
.about-subtitle { font-size: 18px; font-weight: 600; color: var(--gray-medium); margin-bottom: 16px; }
.about h3 { font-size: 18px; font-weight: 600; color: var(--gray-dark); margin-bottom: 16px; }
.about > .about-grid > .about-content > p { color: var(--gray-medium); margin-bottom: 24px; }
.about-list { display: flex; flex-direction: column; gap: 12px; margin-bottom: 32px; }
.about-list li { display: flex; align-items: flex-start; gap: 10px; color: var(--gray-dark); font-size: 15px; }
.about-list li i { color: var(--green); margin-top: 3px; flex-shrink: 0; }
.btn-green { background: var(--green); color: white; padding: 14px 28px; border-radius: 8px; font-weight: 700; display: inline-flex; align-items: center; gap: 8px; transition: var(--transition); }
.btn-green:hover { background: var(--green-dark); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(65,184,65,0.4); }
.about-images { position: relative; }
.about-img-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.about-img-main { grid-column: 1 / -1; }
.about-img-placeholder { border-radius: var(--radius); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 40px 20px; font-size: 40px; color: white; font-weight: 600; font-size: 14px; }
.img-1 { background: linear-gradient(135deg, var(--green) 0%, var(--green-dark) 100%); height: 200px; font-size: 40px; }
.img-2 { background: linear-gradient(135deg, var(--purple) 0%, var(--purple-dark) 100%); height: 140px; }
.img-3 { background: linear-gradient(135deg, var(--red) 0%, var(--red-dark) 100%); height: 140px; }
.img-1 i, .img-2 i, .img-3 i { font-size: 40px; }
.experience-badge { position: absolute; bottom: -20px; right: -20px; background: var(--gray-dark); color: white; border-radius: 16px; padding: 20px 24px; text-align: center; box-shadow: var(--shadow-lg); }
.exp-number { display: block; font-size: 40px; font-weight: 800; color: var(--green); line-height: 1; }
.exp-text { display: block; font-size: 13px; color: rgba(255,255,255,0.8); margin-top: 5px; }

/* ============================================
   SERVICES
   ============================================ */
.services { padding: 100px 0; background: var(--gray-light); }
.section-header { text-align: center; margin-bottom: 60px; }
.section-header h2 { font-size: clamp(22px, 3.5vw, 34px); font-weight: 800; color: var(--gray-dark); margin-bottom: 16px; }
.section-header p { color: var(--gray-medium); font-size: 16px; max-width: 700px; margin: 0 auto; }
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.service-card { background: var(--white); border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow); transition: var(--transition); border-top: 4px solid transparent; position: relative; overflow: hidden; }
.service-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px; }
.green-card::before { background: var(--green); }
.green-card { border-top-color: var(--green); }
.purple-card::before { background: var(--purple); }
.purple-card { border-top-color: var(--purple); }
.red-card::before { background: var(--red); }
.red-card { border-top-color: var(--red); }
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.service-icon { width: 60px; height: 60px; border-radius: 14px; display: flex; align-items: center; justify-content: center; font-size: 26px; margin-bottom: 20px; }
.green-card .service-icon { background: rgba(65,184,65,0.1); color: var(--green); }
.purple-card .service-icon { background: rgba(122,67,182,0.1); color: var(--purple); }
.red-card .service-icon { background: rgba(230,59,46,0.1); color: var(--red); }
.service-card h3 { font-size: 18px; font-weight: 700; margin-bottom: 12px; }
.service-card h3 a { color: var(--gray-dark); transition: var(--transition); }
.green-card h3 a:hover { color: var(--green); }
.purple-card h3 a:hover { color: var(--purple); }
.red-card h3 a:hover { color: var(--red); }
.service-card p { color: var(--gray-medium); font-size: 14px; line-height: 1.7; margin-bottom: 20px; }
.service-link { font-weight: 600; font-size: 14px; display: inline-flex; align-items: center; gap: 6px; transition: var(--transition); }
.green-card .service-link { color: var(--green); }
.purple-card .service-link { color: var(--purple); }
.red-card .service-link { color: var(--red); }
.service-link:hover { gap: 10px; }

/* ============================================
   DIFFERENTIALS
   ============================================ */
.differentials {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--gray-dark) 0%, #3a3a3a 100%);
}
.section-header.light h2 { color: var(--white); }
.light-tag { background: var(--green); }
.diff-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.diff-card { background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1); border-radius: var(--radius); padding: 32px 24px; text-align: center; transition: var(--transition); }
.diff-card:hover { background: rgba(255,255,255,0.12); transform: translateY(-5px); }
.diff-card i { font-size: 40px; color: var(--green); margin-bottom: 16px; display: block; }
.diff-card h4 { font-size: 17px; font-weight: 700; color: white; margin-bottom: 10px; }
.diff-card p { font-size: 14px; color: rgba(255,255,255,0.7); }

/* ============================================
   CONTACT
   ============================================ */
.contact { padding: 100px 0; background: var(--white); }
.contact-grid { display: grid; grid-template-columns: 1fr 1.5fr; gap: 40px; align-items: start; }
.contact-card { background: var(--gray-light); border-radius: var(--radius); padding: 36px; box-shadow: var(--shadow); }
.contact-circles { display: flex; gap: 8px; margin-bottom: 20px; }
.cc { width: 14px; height: 14px; border-radius: 50%; display: inline-block; }
.cc.green { background: var(--green); }
.cc.purple { background: var(--purple); }
.cc.red { background: var(--red); }
.contact-card h3 { font-size: 20px; font-weight: 800; color: var(--gray-dark); margin-bottom: 5px; }
.cnpj { font-size: 13px; color: var(--gray-medium); margin-bottom: 24px; }
.contact-item { display: flex; gap: 14px; margin-bottom: 18px; align-items: flex-start; }
.ci-icon { width: 40px; height: 40px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 16px; flex-shrink: 0; }
.ci-icon.green { background: rgba(65,184,65,0.1); color: var(--green); }
.ci-icon.purple { background: rgba(122,67,182,0.1); color: var(--purple); }
.ci-icon.red { background: rgba(230,59,46,0.1); color: var(--red); }
.ci-text { display: flex; flex-direction: column; }
.ci-text strong { font-size: 13px; text-transform: uppercase; letter-spacing: 0.5px; color: var(--gray-medium); margin-bottom: 2px; }
.ci-text span { color: var(--gray-dark); font-size: 15px; }
.btn-whatsapp { display: flex; align-items: center; justify-content: center; gap: 10px; background: #25D366; color: white; padding: 14px 24px; border-radius: 8px; font-weight: 700; margin-top: 24px; transition: var(--transition); font-size: 15px; }
.btn-whatsapp:hover { background: #20b858; transform: translateY(-2px); box-shadow: 0 6px 20px rgba(37,211,102,0.4); }
.contact-map iframe { width: 100%; height: 450px; border-radius: var(--radius); box-shadow: var(--shadow); }

/* ============================================
   FOOTER
   ============================================ */
.footer { background: #2a2a2a; color: rgba(255,255,255,0.8); }
.footer-top { padding: 60px 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1.5fr 1.5fr; gap: 40px; }
.footer-logo { background: white; display: inline-block; padding: 12px 18px; border-radius: 10px; margin-bottom: 16px; box-shadow: 0 2px 10px rgba(0,0,0,0.15); }
.footer-logo img { height: 60px; width: auto; object-fit: contain; }
.footer-brand p { font-size: 14px; line-height: 1.7; margin-bottom: 20px; }
.footer-circles { display: flex; gap: 8px; margin-top: 10px; }
.fc { width: 14px; height: 14px; border-radius: 50%; display: inline-block; }
.fc.green { background: var(--green); }
.fc.purple { background: var(--purple); }
.fc.red { background: var(--red); }
.footer h4 { color: white; font-size: 16px; font-weight: 700; margin-bottom: 20px; padding-bottom: 10px; border-bottom: 2px solid var(--green); display: inline-block; }
.footer ul { display: flex; flex-direction: column; gap: 10px; }
.footer ul li a { color: rgba(255,255,255,0.7); font-size: 14px; transition: var(--transition); display: flex; align-items: center; gap: 8px; }
.footer ul li a:hover { color: var(--green); padding-left: 5px; }
.footer ul li a i { font-size: 11px; color: var(--green); }
.footer-contact p { font-size: 14px; margin-bottom: 10px; display: flex; align-items: flex-start; gap: 10px; }
.footer-contact i { color: var(--green); flex-shrink: 0; margin-top: 2px; }
.footer-social { display: flex; gap: 10px; margin-top: 16px; }
.social-btn { width: 38px; height: 38px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 16px; transition: var(--transition); }
.whatsapp-btn { background: #25D366; color: white; }
.whatsapp-btn:hover { transform: scale(1.15); box-shadow: 0 4px 15px rgba(37,211,102,0.5); }
.email-btn { background: var(--red); color: white; }
.email-btn:hover { transform: scale(1.15); box-shadow: 0 4px 15px rgba(230,59,46,0.5); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding: 20px 0; }
.footer-bottom-content { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; font-size: 13px; color: rgba(255,255,255,0.5); }

/* ============================================
   WHATSAPP FLOAT
   ============================================ */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: #25D366;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    box-shadow: 0 4px 20px rgba(37,211,102,0.6);
    z-index: 9999;
    transition: var(--transition);
    animation: pulse-whatsapp 2.5s infinite;
}
.whatsapp-float:hover { transform: scale(1.1); animation: none; box-shadow: 0 6px 30px rgba(37,211,102,0.8); }
@keyframes pulse-whatsapp {
    0% { box-shadow: 0 0 0 0 rgba(37,211,102,0.7); }
    70% { box-shadow: 0 0 0 15px rgba(37,211,102,0); }
    100% { box-shadow: 0 0 0 0 rgba(37,211,102,0); }
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .featured-grid { grid-template-columns: 1fr; max-width: 600px; margin: 0 auto; }
    .about-grid { grid-template-columns: 1fr; }
    .about-images { margin-top: 40px; }
    .services-grid { grid-template-columns: repeat(2, 1fr); }
    .diff-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .top-bar-left span:nth-child(3) { display: none; }
    .nav-menu { position: fixed; top: 0; right: -100%; height: 100vh; width: 280px; background: white; flex-direction: column; padding: 80px 30px 30px; box-shadow: -5px 0 20px rgba(0,0,0,0.1); transition: right 0.3s ease; gap: 10px; }
    .nav-menu.open { right: 0; }
    .nav-link { font-size: 17px; padding: 10px 0; border-bottom: 1px solid #eee; display: block; }
    .btn-header { display: none; }
    .hamburger { display: flex; margin-left: auto; }
    .hero { height: 80vh; }
    .contact-grid { grid-template-columns: 1fr; }
    .services-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .experience-badge { right: 0; bottom: -30px; }
}

@media (max-width: 480px) {
    .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .stat-info .stat-number { font-size: 28px; }
    .diff-grid { grid-template-columns: 1fr; }
    .featured-grid { grid-template-columns: 1fr; }
    .top-bar-left { gap: 12px; font-size: 11px; }
    .top-bar-left span:nth-child(2) { display: none; }
}
