/* ============================================================
   DESIGN SYSTEM — MAURO BRASIL ADVOCACIA
   Style: Luxury Refined Empresarial (White & Navy Blue)
============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;0,700;1,300;1,400&family=Inter:wght@300;400;500;600;700;800&family=Poppins:wght@300;400;500;600;700&display=swap');

:root {
    /* Color Palette - White and Navy Theme */
    --blue-base: #ffffff;
    --blue-soft: #f8fafd;
    --blue-mid: #eef2f9;
    --blue-border: #dbe2ed;

    --gold-glow: rgba(11, 25, 54, 0.04);
    --gold-base: #0B1936; /* Navy Blue Accent */
    --gold-light: #162f61;
    --gold-dark: #050d1d;

    --green-base: #1b8a5a;
    --green-light: #2bc083;
    --green-dark: #126b43;

    --white: #0a1120; /* Deep dark for main titles */
    --white-soft: #334155; /* Slate grey for text */
    --white-dim: rgba(10, 17, 32, 0.08);
    --grey-dark: #475569;

    /* Fonts */
    --font-serif: 'Cormorant Garamond', serif;
    --font-sans: 'Inter', sans-serif;
    --font-title: 'Poppins', sans-serif;

    /* Transitions & Borders */
    --radius: 4px;
    --transition-base: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    --transition-slow: all 0.9s cubic-bezier(0.23, 1, 0.32, 1);
}

/* 0. Luxury Ambient Orbs */
body::before,
body::after {
    content: '';
    position: fixed;
    width: 800px;
    height: 800px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(11, 25, 54, 0.03) 0%, rgba(255, 255, 255, 0.2) 50%, transparent 80%);
    z-index: -1;
    pointer-events: none;
    animation: pulseGlow 15s infinite alternate ease-in-out;
}

body::before {
    top: -15%;
    right: -10%;
    animation-delay: -2s;
}

body::after {
    bottom: -10%;
    left: -15%;
    animation-delay: -5s;
}

@keyframes pulseGlow {
    0% { transform: scale(1) translate(0, 0); opacity: 0.4; }
    50% { transform: scale(1.15) translate(30px, 30px); opacity: 0.7; }
    100% { transform: scale(0.9) translate(-15px, -20px); opacity: 0.5; }
}

/* 1. Base Setup */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; max-width: 100vw; overflow-x: hidden; }
body {
    background-color: var(--blue-base);
    color: var(--white-soft);
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    max-width: 100vw;
}

/* 2. Typography */
h1, h2, h3, h4 {
    font-family: var(--font-title);
    font-weight: 500;
    line-height: 1.15;
    color: var(--white);
    letter-spacing: -0.01em;
}

em {
    font-family: var(--font-serif);
    font-style: italic;
    font-weight: 600;
    color: var(--gold-base);
}

h1 em, h2 em, h3 em, h4 em, .section-title em, .hero-title em {
    font-size: 1.45em;
    font-weight: 400;
}

.eyebrow {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.35em;
    text-transform: uppercase;
    color: var(--gold-base);
    display: block;
    margin-bottom: 1.5rem;
}

.section-header {
    text-align: center;
    margin: 0 auto 70px;
    max-width: 800px;
}

.section-title { font-size: clamp(1.9rem, 4.2vw, 3.1rem); margin-bottom: 1rem; }
.section-subtitle { font-size: 1.1rem; color: var(--grey-dark); max-width: 650px; margin: 0 auto; }

/* 3. Layout */
.container { max-width: 1400px; margin: 0 auto; padding: 0 40px; }
@media (max-width: 768px) { .container { padding: 0 24px; } }
section { padding: 120px 0; position: relative; }

/* 4. Header Fixo */
header.main-header {
    position: fixed; top: 0; left: 0; width: 100%; z-index: 1000;
    background: rgba(11, 25, 54, 0.95);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition-base);
}

header.main-header.scrolled {
    padding: 10px 0;
    background: rgba(11, 25, 54, 0.98);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.header-inner {
    display: flex; align-items: center; justify-content: space-between;
    height: 90px; transition: var(--transition-base);
}

header.main-header.scrolled .header-inner { height: 70px; }

.logo-link { display: flex; align-items: center; }
.logo-header { height: 50px; width: auto; object-fit: contain; transition: var(--transition-base); }
header.main-header.scrolled .logo-header { height: 40px; }

.nav-menu { display: flex; gap: 30px; list-style: none; }
.nav-link {
    color: rgba(255, 255, 255, 0.85); text-decoration: none; font-size: 0.8rem;
    font-weight: 600; letter-spacing: 0.15em; text-transform: uppercase; transition: var(--transition-base);
}
.nav-link:hover { color: #ffffff; }
@media (max-width: 1024px) { .nav-menu { display: none; } }

/* 5. Buttons */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 12px;
    padding: 18px 44px; font-size: 0.85rem; font-weight: 500; letter-spacing: 0.12em;
    text-transform: uppercase; text-decoration: none; border-radius: 50px;
    transition: var(--transition-base); cursor: pointer; border: none; position: relative; overflow: hidden; z-index: 1;
}

.btn-text { text-align: center; line-height: 1.4; display: inline-flex; flex-direction: row; align-items: center; gap: 4px; }
.btn-text-line2 { display: inline; white-space: nowrap; }

.btn::before {
    content: ''; position: absolute; top: 0; left: -150%; width: 60%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25), transparent);
    transform: skewX(-25deg); transition: 0.7s; z-index: -1;
}

.btn:hover::before { left: 150%; }

.btn-primary {
    background: linear-gradient(135deg, var(--green-dark) 0%, var(--green-base) 50%, var(--green-dark) 100%);
    background-size: 200% auto; color: #ffffff; font-weight: 500;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 4px 15px rgba(27, 138, 90, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.01); background-position: right center;
    box-shadow: 0 8px 25px rgba(27, 138, 90, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.4);
    color: #ffffff;
}
.btn-primary iconify-icon { transition: transform 0.4s ease; }
.btn-primary:hover iconify-icon { transform: translateX(4px) rotate(-10deg); }

/* 6. Hero Section */
#hero {
    min-height: 100vh; display: flex; align-items: center; justify-content: center;
    padding-top: 160px; padding-bottom: 100px; overflow: hidden;
    background-image: url('../imagem/backg01.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}

/* Marquee Banner */
.marquee-banner {
    background-color: #f1f5f9;
    padding: 20px 0;
    overflow: hidden;
    display: flex;
    border-top: 1px solid rgba(11, 25, 54, 0.05);
    border-bottom: 1px solid rgba(11, 25, 54, 0.05);
}
.marquee-track {
    display: flex;
    width: max-content;
    animation: scrollMarquee 30s linear infinite;
}
.marquee-group {
    display: flex;
    flex-shrink: 0;
}
.marquee-item {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--gold-base);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    padding: 0 25px;
    white-space: nowrap;
}
@keyframes scrollMarquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.hero-inner-split { display: flex; flex-direction: column; align-items: center; text-align: center; width: 100%; }
.hero-content { max-width: 820px; margin: 0 auto; }
.hero-content .eyebrow { font-size: 0.9rem; letter-spacing: 0.25em; margin-bottom: 2rem; color: var(--gold-base); }
.hero-title { font-size: clamp(1.6rem, 3.5vw, 2.8rem); margin-bottom: 1.5rem; font-weight: 400; color: var(--white); }
.hero-subtitle { font-size: clamp(1.05rem, 1.8vw, 1.25rem); color: var(--grey-dark); line-height: 1.8; max-width: 780px; margin: 0 auto 2.5rem; }

.hero-actions { display: flex; justify-content: center; align-items: center; gap: 30px; }
.hero-side-logo { height: 52px; width: auto; object-fit: contain; }

@media (max-width: 900px) {
    #hero { 
        padding-top: 180px; 
        margin-top: 0; 
        background-image: url('../imagem/backg01mobile.webp'); 
        background-position: top center; 
    }
    .hero-content {
        display: flex;
        flex-direction: column;
    }
    .hero-content .eyebrow {
        order: 4;
        margin-top: 2rem;
        margin-bottom: 0;
    }
    .hero-title { order: 1; }
    .hero-subtitle { order: 2; }
    .hero-actions { 
        order: 3;
        flex-direction: column; gap: 20px; width: 100%; 
    }
    .hero-actions .btn { width: 100%; padding: 16px 15px; font-size: 0.8rem; }
    
    /* Revert button text to stack vertically on mobile to prevent squishing */
    .btn-text { flex-direction: column; gap: 2px; width: 100%; }
    .btn-text-line2 { display: block; font-size: 0.95em; white-space: normal; }
}

/* Hero Trust Stats Grid */
.hero-stats {
    display: grid; grid-template-columns: repeat(3, 1fr);
    border: 1px solid var(--blue-border); background: var(--blue-base);
    box-shadow: 0 10px 30px rgba(11, 25, 54, 0.05);
    margin-top: 70px; border-radius: var(--radius); width: 100%;
}
.hero-stat { padding: 24px; text-align: center; border-right: 1px solid var(--blue-border); }
.hero-stat:last-child { border-right: none; }
.stat-val { font-family: var(--font-serif); font-size: 2.8rem; color: var(--gold-base); display: block; line-height: 1.1; font-weight: 600; }
.stat-label { font-size: 0.65rem; font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase; color: var(--grey-dark); margin-top: 8px; }
@media (max-width: 768px) {
    .hero-stats { grid-template-columns: 1fr; margin-top: 50px; }
    .hero-stat { border-right: none; border-bottom: 1px solid var(--blue-border); }
    .hero-stat:last-child { border-bottom: none; }
}

/* 7. Services Section */
#servicos { background-color: var(--blue-base); }
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(380px, 1fr)); gap: 24px; }
.service-card {
    background: var(--blue-soft);
    padding: 65px 55px; position: relative; transition: var(--transition-base);
    border: 1px solid var(--blue-border); border-radius: var(--radius); overflow: hidden; z-index: 1;
}

.service-card::after {
    content: ''; position: absolute; bottom: 0; left: 0; width: 100%; height: 3px;
    background: linear-gradient(90deg, transparent, var(--gold-base), transparent);
    opacity: 0; transition: transform 0.6s ease, opacity 0.5s ease; transform: scaleX(0);
}

.service-card:hover {
    transform: translateY(-10px); background: #ffffff;
    box-shadow: 0 20px 40px rgba(11, 25, 54, 0.08); border-color: rgba(11, 25, 54, 0.2);
}
.service-card:hover::after { opacity: 1; transform: scaleX(1); }

.service-icon-wrapper {
    width: 76px; height: 76px; background: #ffffff; border: 1px solid var(--blue-border);
    border-radius: var(--radius); display: flex; align-items: center; justify-content: center;
    margin-bottom: 30px; transition: var(--transition-base);
}

.service-icon { font-size: 34px; color: var(--gold-base); transition: var(--transition-base); }
.service-card:hover .service-icon-wrapper {
    transform: translateY(-4px); border-color: var(--gold-base); background: var(--gold-base);
}
.service-card:hover .service-icon { transform: scale(1.1); color: #ffffff; }

.service-card h3 { font-size: 1.35rem; margin-bottom: 1.25rem; color: var(--white); font-weight: 600; }
.service-card p { color: var(--grey-dark); font-size: 0.95rem; line-height: 1.65; }

@media (max-width: 768px) { .services-grid { grid-template-columns: 1fr; } .service-card { padding: 40px; } }

/* 7.5 Regional Section */
.regional-layout { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 60px; align-items: center; }
.regional-content { max-width: 600px; }
.regional-content .section-title { text-align: left; }
.regional-list { list-style: none; margin-top: 30px; display: flex; flex-direction: column; gap: 15px; }
.regional-list li { display: flex; align-items: center; gap: 12px; font-size: 1.05rem; color: var(--grey-dark); font-weight: 500; }
.check-icon { color: var(--green-base); font-size: 24px; flex-shrink: 0; }

.regional-visual { display: flex; justify-content: center; align-items: center; }
.regional-map-image {
    width: 100%;
    max-width: 480px;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 20px 40px rgba(11, 25, 54, 0.12));
    transition: transform 0.8s cubic-bezier(0.23, 1, 0.32, 1);
}
.regional-map-image:hover {
    transform: translateY(-8px) scale(1.02);
}
@media (max-width: 900px) {
    .regional-layout { grid-template-columns: 1fr; gap: 40px; }
    .regional-content { text-align: center; margin: 0 auto; }
    .regional-content .section-title { text-align: center; }
    .regional-content .section-subtitle { text-align: center !important; }
    .regional-list { align-items: center; }
}

/* 7.6 Polo Passivo Section */
.passivo-layout { grid-template-columns: 0.9fr 1.1fr; }
.passivo-box {
    background: var(--blue-soft); border: 1px solid var(--blue-border); border-radius: var(--radius); 
    padding: 60px 40px; text-align: center; box-shadow: 0 15px 40px rgba(11,25,54,0.05);
    transition: transform 0.5s ease;
}
.passivo-box:hover { transform: translateY(-5px); border-color: var(--gold-base); }
.passivo-icon { font-size: 100px; color: var(--gold-base); margin-bottom: 25px; }
.passivo-box h3 { color: var(--white); font-size: 1.5rem; font-family: var(--font-title); font-weight: 600; margin-bottom: 10px; }
.passivo-box p { color: var(--grey-dark); font-size: 0.95rem; line-height: 1.6; margin: 0; }
#polo-passivo .split-p { color: var(--grey-dark); }
@media (max-width: 900px) {
    .passivo-layout { display: flex; flex-direction: column-reverse; gap: 50px; }
}

/* 8. Sobre Section */
#sobre { background: var(--gold-base); position: relative; }
#sobre .section-title { color: #ffffff; }
#sobre .eyebrow { color: rgba(255, 255, 255, 0.7); }
.split-layout { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 80px; align-items: center; }
.split-text { max-width: 600px; }
.split-image {
    position: relative; aspect-ratio: 4/5; max-width: 440px; justify-self: center;
    background: rgba(255, 255, 255, 0.05); padding: 15px; border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius); box-shadow: 0 25px 60px rgba(0, 0, 0, 0.3); overflow: hidden;
}
.split-image img { width: 100%; height: 100%; object-fit: cover; transition: 1.2s ease; border-radius: var(--radius); }
.split-image:hover img { transform: scale(1.04); }
.split-p { margin-bottom: 1.8rem; font-size: 1.05rem; line-height: 1.75; color: rgba(255, 255, 255, 0.8); }
@media (max-width: 900px) {
    .split-layout { grid-template-columns: 1fr; gap: 60px; }
    .split-image { padding: 10px; max-width: 380px; }
}

/* 9. Diferenciais Section */
#diferenciais { background: var(--blue-base); }
.diferenciais-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; margin-top: 50px; }
.diferencial-card {
    background: var(--blue-soft); border: 1px solid var(--blue-border);
    padding: 50px 40px; border-radius: var(--radius); text-align: center; transition: var(--transition-base);
}
.diferencial-card:hover { transform: translateY(-5px); border-color: var(--gold-base); box-shadow: 0 15px 40px rgba(11, 25, 54, 0.08); }
.diferencial-icon-wrap {
    width: 60px; height: 60px; margin: 0 auto 25px; border-radius: 50%;
    background: rgba(11, 25, 54, 0.05); border: 1px solid var(--gold-base);
    display: flex; align-items: center; justify-content: center; color: var(--gold-base); font-size: 26px; transition: var(--transition-base);
}
.diferencial-card:hover .diferencial-icon-wrap { background: var(--gold-base); color: #ffffff; transform: scale(1.05); }
.diferencial-card h3 { font-size: 1.25rem; margin-bottom: 15px; color: var(--white); font-weight: 600; }
.diferencial-card p { color: var(--grey-dark); font-size: 0.95rem; line-height: 1.6; }
@media (max-width: 900px) { .diferenciais-grid { grid-template-columns: 1fr; gap: 20px; } }

/* 10. FAQ */
#faq { background: var(--blue-soft); }
.faq-grid { max-width: 900px; margin: 0 auto; }
.faq-item {
    margin-bottom: 15px; border: 1px solid var(--blue-border); background: #ffffff;
    border-radius: var(--radius); transition: var(--transition-base); overflow: hidden;
}
.faq-item:hover { border-color: var(--gold-base); box-shadow: 0 10px 30px rgba(11, 25, 54, 0.05); }
.faq-trigger {
    width: 100%; padding: 30px 35px; display: flex; justify-content: space-between; align-items: center;
    background: none; border: none; cursor: pointer; color: var(--white); font-family: var(--font-title);
    font-size: 1.15rem; font-weight: 500; text-align: left; transition: all 0.3s ease;
}
.faq-icon { width: 24px; height: 24px; color: var(--gold-base); transition: var(--transition-base); flex-shrink: 0; margin-left: 20px; }
.faq-content { max-height: 0; overflow: hidden; transition: var(--transition-base); padding: 0 35px; }
.faq-content p { color: var(--grey-dark); font-size: 1rem; line-height: 1.75; padding-bottom: 35px; margin: 0; }
.faq-item.open { border-color: var(--gold-base); box-shadow: 0 15px 40px rgba(11, 25, 54, 0.08); }
.faq-item.open .faq-icon { transform: rotate(45deg); color: var(--gold-base); }
.faq-item.open .faq-content { max-height: 500px; }

/* 11. Final CTA */
.cta-full { background: var(--blue-base); position: relative; padding: 120px 0; text-align: center; border-top: 1px solid var(--blue-border); }
.cta-inner { max-width: 800px; margin: 0 auto; }

/* 12. Footer */
footer { padding: 80px 0 40px; border-top: 1px solid var(--blue-border); background: var(--blue-soft); }
.footer-inner { display: flex; flex-direction: column; align-items: center; gap: 40px; text-align: center; }
.footer-logo { height: 50px; width: auto; }
.footer-nav { display: flex; gap: 40px; }
.footer-nav a { color: var(--grey-dark); text-decoration: none; text-transform: uppercase; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.15em; transition: color 0.3s ease; }
.footer-nav a:hover { color: var(--gold-base); }
.footer-legal { font-size: 0.75rem; color: var(--grey-dark); max-width: 600px; line-height: 1.6; }
.footer-dev { margin-top: 30px; display: flex; align-items: center; justify-content: center; gap: 8px; }
@media (max-width: 768px) { .footer-nav { flex-direction: column; gap: 20px; } }

/* 13. Info & Map Section */
.info-layout { display: grid; grid-template-columns: 1fr 1.2fr; gap: 40px; align-items: stretch; }
.info-cards { display: flex; flex-direction: column; gap: 30px; }
.info-card { background: #ffffff; padding: 40px; border: 1px solid var(--blue-border); border-radius: var(--radius); height: 100%; transition: 0.4s ease; }
.info-card:hover { transform: translateY(-5px); border-color: var(--gold-base); box-shadow: 0 15px 30px rgba(11, 25, 54, 0.05); }
.info-map-wrap { border: 1px solid var(--blue-border); border-radius: var(--radius); position: relative; min-height: 440px; width: 100%; overflow: hidden; }
@media (max-width: 900px) { .info-layout { grid-template-columns: 1fr; } .info-map-wrap { min-height: 350px; } }

/* 14. WhatsApp Widget */
#wa-widget { position: fixed; bottom: 30px; right: 30px; z-index: 9999; }
.wa-btn-circle {
    width: 60px; height: 60px; background: #25D366; border-radius: 50%;
    display: flex; align-items: center; justify-content: center; color: white;
    box-shadow: 0 10px 30px rgba(37, 211, 102, 0.4); transition: var(--transition-base); text-decoration: none;
}
.wa-btn-circle:hover { transform: scale(1.1) rotate(10deg); }

#wa-balloon {
    position: absolute; bottom: 75px; right: 0; width: 320px; background: #ffffff;
    border-radius: 12px; box-shadow: 0 15px 45px rgba(0, 0, 0, 0.15); overflow: hidden;
    transform: translateY(20px); opacity: 0; pointer-events: none; transition: all 0.5s ease;
    border: 1px solid var(--blue-border);
}
#wa-balloon.wa-balloon-show { transform: translateY(0); opacity: 1; pointer-events: auto; }
.wa-balloon-header { background: var(--gold-base); padding: 16px; display: flex; align-items: center; gap: 12px; color: #ffffff; position: relative; }
.wa-balloon-avatar { width: 42px; height: 42px; border-radius: 50%; background: #ffffff; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.wa-balloon-avatar img { width: 100%; height: 100%; object-fit: contain; }
.wa-balloon-info { display: flex; flex-direction: column; }
.wa-balloon-name { font-size: 0.85rem; font-weight: 600; }
.wa-balloon-status { font-size: 0.75rem; color: #4FCE5D; font-weight: 500; }
#wa-balloon-close { position: absolute; top: 14px; right: 14px; background: none; border: none; color: rgba(255, 255, 255, 0.8); font-size: 1.5rem; cursor: pointer; }
.wa-balloon-body { padding: 20px; background: #f9f9f9; color: #333; font-size: 0.85rem; line-height: 1.5; }
.wa-balloon-footer { padding: 12px 20px; background: #ffffff; display: flex; justify-content: center; }
.wa-balloon-btn {
    display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%;
    background: #25D366; color: #ffffff; padding: 10px; border-radius: 50px;
    font-size: 0.85rem; font-weight: 600; text-decoration: none; transition: 0.3s ease;
}
.wa-balloon-btn:hover { background: #20BA5A; }

/* 15. Reveal */
.reveal { opacity: 0; transform: translateY(30px); transition: var(--transition-slow); }
.reveal.active { opacity: 1; transform: translateY(0); }

/* 16. Comprehensive Mobile Optimizations */
@media (max-width: 768px) {
    body, html { width: 100%; position: relative; }
    .section-header { margin-bottom: 40px; }
    .section-title { font-size: 2rem !important; }
    h1 em, h2 em, h3 em, h4 em, .section-title em, .hero-title em { font-size: 1.15em; }
    .faq-trigger { padding: 20px; font-size: 1.05rem; }
    .faq-icon { margin-left: 15px; }
    .faq-content { padding: 0 20px; }
    .faq-content p { padding-bottom: 25px; font-size: 0.95rem; }
    .service-card { padding: 35px 25px; }
    .diferencial-card { padding: 35px 25px; }
    .hero-stat { padding: 20px 15px; }
    .stat-val { font-size: 2.2rem; }
    .info-card { padding: 30px 20px; }
    #wa-widget { right: 20px; bottom: 20px; }
    #wa-balloon { display: none !important; }
    section { padding: 80px 0; }
}

