/* ==========================================================================
   1. VARIÁVEIS E CONFIGURAÇÕES BASE
   ========================================================================== */
:root {
    --primary: #818cf8;    /* Lavanda */
    --accent: #2dd4bf;     /* Verde Água */
    --dark: #1e293b;       /* Grafite */
    --text: #64748b;       /* Cinza Leve */
    --bg: #ffffff;
    --bg-alt: #f8fafc;
    --border: #e2e8f0;
    --white: #ffffff;
}

* { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
    font-family: 'Inter', sans-serif; 
    -webkit-font-smoothing: antialiased; 
}

html, body { 
    width: 100%;
    overflow-x: hidden;
}

body { 
    background: var(--bg); 
    color: var(--text); 
    line-height: 1.7; 
    transition: opacity 0.5s; 
}

.body-animate { 
    animation: fadeIn 0.8s ease-out; 
}

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

.fade-out { 
    opacity: 0; 
}

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

.section-padding { 
    padding: 120px 20px;
} 
}

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

/* ==========================================================================
   2. NAVEGAÇÃO (NAVBAR)
   ========================================================================== */
.navbar {
    position: fixed; 
    top: 15px; 
    left: 15px;
    right: 15px;
    transform: none;
    width: auto;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px); 
    border: 1.5px solid var(--border);
    border-radius: 50px; 
    padding: 14px 30px; 
    z-index: 999;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
}

.nav-content { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    gap: 30px;
}

.logo { 
    font-weight: 900; 
    font-size: 24px; 
    text-decoration: none; 
    color: var(--dark); 
    letter-spacing: -1px; 
    flex-shrink: 0;
}

.logo span { 
    color: var(--accent); 
}

.nav-links { 
    display: flex; 
    align-items: center; 
    gap: 35px;
    flex: 1;
    justify-content: center;
}

.nav-links a { 
    text-decoration: none; 
    color: var(--dark); 
    font-weight: 600; 
    font-size: 15px; 
    transition: all 0.3s ease;
    white-space: nowrap;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s ease;
}

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

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

.nav-cta { 
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    color: white !important; 
    padding: 12px 28px; 
    border-radius: 50px; 
    transition: all 0.3s ease;
    font-weight: 700;
    font-size: 15px;
    box-shadow: 0 4px 15px rgba(129, 140, 248, 0.3);
}

.nav-cta:hover { 
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(129, 140, 248, 0.4);
}

/* Menu Toggle (Hamburger) */
.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    background: transparent;
    border: none;
    gap: 5px;
    padding: 10px;
    z-index: 1002;
}

.menu-toggle .bar {
    width: 25px;
    height: 3px;
    background-color: var(--dark);
    transition: all 0.3s ease;
}

.menu-toggle.active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.menu-toggle.active .bar:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* Language Selector */
.lang-selector {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

.lang-selector button { 
    background: white; 
    border: 2px solid #2e5090;
    padding: 8px 14px; 
    border-radius: 20px; 
    cursor: pointer; 
    font-size: 12px; 
    font-weight: 800;
    transition: all 0.3s ease;
    color: #2e5090;
}

.lang-selector button#btn-pt {
    background: #2e5090;
    border-color: #2e5090;
    color: white;
}

.lang-selector button#btn-pt.active { 
    background: #2e5090;
    color: white;
    border-color: #2e5090;
}

.lang-selector button#btn-pt:hover {
    background: #1e3a5f;
    border-color: #1e3a5f;
    color: white;
}

.lang-selector button#btn-br {
    background: #27ae60;
    border-color: #27ae60;
    color: white;
}

.lang-selector button#btn-br.active { 
    background: #27ae60;
    color: white;
    border-color: #27ae60;
}

.lang-selector button#btn-br:hover {
    background: #1e8449;
    border-color: #1e8449;
    color: white;
}

/* ==========================================================================
   3. HERO E CABEÇALHOS
   ========================================================================== */
.hero { 
    padding: 180px 0 80px; 
    text-align: center; 
}

.badge { 
    background: #eef2ff; 
    color: var(--primary); 
    padding: 8px 16px; 
    border-radius: 50px; 
    font-size: 11px; 
    font-weight: 800; 
    text-transform: uppercase; 
    margin-bottom: 25px; 
    display: inline-block; 
}

h1 { 
    font-size: clamp(2.5rem, 7vw, 4.2rem); 
    font-weight: 900; 
    color: var(--dark); 
    line-height: 1.1; 
    margin-bottom: 25px; 
    letter-spacing: -2px; 
}

h1 strong { 
    color: var(--primary); 
}

.hero p { 
    max-width: 700px; 
    margin: 0 auto 40px; 
    font-size: 18px; 
    color: var(--text); 
}

.hero-btns {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.section-header { 
    margin-bottom: 60px; 
    text-align: left; 
}

.subtitle { 
    color: var(--accent); 
    font-weight: 800; 
    font-size: 13px; 
    letter-spacing: 2px; 
    display: block; 
    margin-bottom: 10px; 
}

/* ==========================================================================
   4. SISTEMA DE GRIDS (LADO A LADO)
   ========================================================================== */
.services-grid, 
.process-grid, 
.packages-grid, 
.about-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); 
    gap: 30px; 
    margin-top: 40px;
    align-items: stretch; /* Garante que todos os cards tenham a mesma altura */
}

/* ==========================================================================
   5. CARDS (SERVIÇOS, MÉTODO, QUEM SOMOS, ORÇAMENTO)
   ========================================================================== */
.service-item, 
.package-card { 
    padding: 40px; 
    background: white; 
    border-radius: 30px; 
    border: 1px solid var(--border); 
    transition: 0.4s; 
    display: flex; 
    flex-direction: column;
    height: 100%;
}

.service-item:hover, .package-card:hover { 
    border-color: var(--accent); 
    transform: translateY(-5px); 
    box-shadow: 0 20px 40px rgba(0,0,0,0.02); 
}

.service-num { color: var(--primary); font-weight: 900; font-size: 12px; margin-bottom: 20px; display: block; }

/* Estilo específico para Listas do Orçamento */
.package-card ul {
    list-style: none;
    margin: 25px 0;
    flex-grow: 1; /* Faz a lista crescer para alinhar os botões no fundo */
}

.package-card ul li {
    font-size: 14px;
    padding: 10px 0;
    border-bottom: 1px dashed var(--border);
    color: var(--text);
}

.package-card.featured {
    border: 2px solid var(--primary);
    transform: scale(1.02);
    box-shadow: 0 20px 40px rgba(129, 140, 248, 0.1);
}

/* ==========================================================================
   6. COMPONENTES (BOTÕES)
   ========================================================================== */
.btn-primary, .btn-select { 
    background: linear-gradient(135deg, #10b981 0%, #059669 100%); 
    color: white; 
    padding: 18px 35px; 
    border-radius: 100px; 
    text-decoration: none; 
    font-weight: 800; 
    transition: all 0.3s ease; 
    border: none; 
    cursor: pointer; 
    display: inline-block;
    text-align: center;
    box-shadow: 0 8px 20px rgba(16, 185, 129, 0.3);
}

.btn-primary:hover, .btn-select:hover { 
    transform: translateY(-4px); 
    box-shadow: 0 15px 40px rgba(16, 185, 129, 0.5);
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
}

.btn-secondary { 
    background: linear-gradient(135deg, #818cf8 0%, #6366f1 100%); 
    color: white; 
    padding: 18px 35px; 
    border-radius: 100px; 
    text-decoration: none; 
    font-weight: 800; 
    transition: all 0.3s ease; 
    display: inline-block; 
    border: none;
    box-shadow: 0 8px 20px rgba(129, 140, 248, 0.3);
}

.btn-secondary:hover { 
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
    transform: translateY(-4px);
    box-shadow: 0 15px 40px rgba(129, 140, 248, 0.5);
}

.btn-secondary.green {
    background: linear-gradient(135deg, #25d366 0%, #20ba5a 100%);
    color: white;
    box-shadow: 0 8px 20px rgba(37, 211, 102, 0.3);
}

.btn-secondary.green:hover {
    background: linear-gradient(135deg, #20ba5a 0%, #1a9d4a 100%);
    transform: translateY(-4px);
    box-shadow: 0 15px 40px rgba(37, 211, 102, 0.5);
}

/* Botão WhatsApp - Verde e Destaque */
a[href*="wa.me"]:not(.whatsapp-float) {
    background: linear-gradient(135deg, #25d366 0%, #20ba5a 100%);
    color: white;
    padding: 18px 35px;
    border-radius: 100px;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s ease;
    display: inline-block;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
    position: relative;
}

a[href*="wa.me"]:not(.whatsapp-float):hover {
    background: #20ba5a;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.5);
}

/* Animação de destaque */
@keyframes pulse-whats {
    0%, 100% {
        box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
    }
    50% {
        box-shadow: 0 4px 25px rgba(37, 211, 102, 0.5);
    }
}

/* Botão WhatsApp Flutuante */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #25d366 0%, #20ba5a 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    z-index: 9999 !important;
    box-shadow: 0 8px 30px rgba(37, 211, 102, 0.5);
    animation: float-whats 3s ease-in-out infinite, pulse-float 2s ease-in-out infinite;
    transition: all 0.3s ease;
    padding: 0 !important;
    border: none !important;
    font-weight: normal !important;
}

.whatsapp-float:hover {
    background: linear-gradient(135deg, #20ba5a 0%, #1a9d4a 100%);
    transform: scale(1.2);
    box-shadow: 0 12px 40px rgba(37, 211, 102, 0.7);
}

.whatsapp-float svg {
    width: 40px;
    height: 40px;
    stroke-width: 2.5;
}

/* Animação flutuante */
@keyframes float-whats {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* Animação de pulso suave */
@keyframes pulse-float {
    0%, 100% {
        box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    }
    50% {
        box-shadow: 0 4px 30px rgba(37, 211, 102, 0.7);
    }
}

/* Responsivo - Mobile */
@media (max-width: 1024px) {
    .container {
        padding: 0 20px;
    }
    
    .section-padding {
        padding: 60px 20px;
    }
    
    .navbar {
        padding: 12px 25px;
    }
    
    .nav-links {
        gap: 25px;
    }
    
    .logo {
        font-size: 22px;
    }
    
    h1 {
        font-size: clamp(1.8rem, 5vw, 3.5rem);
    }
    
    .services-grid,
    .packages-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

@media (max-width: 768px) {
    .whatsapp-float {
        bottom: 20px;
        right: 20px;
        width: 55px;
        height: 55px;
    }
    
    .whatsapp-float svg {
        width: 26px;
        height: 26px;
    }
    
    .navbar {
        padding: 12px 15px;
        top: 10px;
        left: 10px;
        right: 10px;
    }
    
    .nav-content {
        gap: 15px;
    }
    
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        background: rgba(255, 255, 255, 0.98);
        padding: 20px;
        border-radius: 0 0 30px 30px;
        gap: 15px;
        margin-top: 10px;
    }
    
    .nav-links.active {
        display: flex;
    }
    
    .nav-links a {
        font-size: 14px;
    }
    
    .menu-toggle {
        display: flex !important;
    }
    
    .logo {
        font-size: 20px;
    }
    
    .lang-selector {
        gap: 6px;
    }
    
    .lang-selector button {
        padding: 6px 10px;
        font-size: 11px;
    }
    
    h1 {
        font-size: clamp(1.5rem, 5vw, 2.5rem);
    }
    
    h2 {
        font-size: clamp(1.3rem, 4vw, 2rem);
    }
    
    .hero {
        padding: 140px 0 60px;
    }
    
    .services-grid,
    .packages-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .package-card.featured {
        transform: scale(1) !important;
        border: 2px solid var(--primary) !important;
    }
    
    .section-padding {
        padding: 100px 20px;
    }
    
    .container {
        padding: 0 15px;
    }
    
    .cta-box {
        padding: 40px 20px;
    }
    
    .service-item,
    .package-card {
        padding: 25px 20px;
    }
}

@media (max-width: 480px) {
    .navbar {
        padding: 10px 12px;
    }
    
    .nav-content {
        gap: 10px;
    }
    
    .logo {
        font-size: 18px;
    }
    
    .menu-toggle {
        padding: 8px;
    }
    
    .menu-toggle .bar {
        width: 20px;
        height: 2.5px;
    }
    
    .lang-selector {
        gap: 5px;
    }
    
    .lang-selector button {
        padding: 5px 8px;
        font-size: 10px;
    }
    
    .nav-cta {
        padding: 10px 20px;
        font-size: 13px;
    }
    
    h1 {
        font-size: clamp(1.3rem, 6vw, 2rem);
        line-height: 1.2;
    }
    
    h2 {
        font-size: clamp(1.1rem, 4vw, 1.6rem);
    }
    
    .hero {
        padding: 120px 0 40px;
    }
    
    .hero p {
        font-size: 16px;
    }
    
    .section-padding {
        padding: 60px 15px;
    }
    
    .container {
        padding: 0 15px;
    }
    
    .hero-btns {
        flex-direction: column;
        gap: 10px;
    }
    
    .btn-primary,
    .btn-secondary {
        width: 100%;
        padding: 12px 20px;
        font-size: 13px;
    }
    
    .cta-box {
        padding: 30px 15px;
        border-radius: 20px;
    }
    
    .service-item,
    .package-card {
        padding: 20px 15px;
    }
    
    .services-grid,
    .packages-grid {
        gap: 15px;
    }
    
    .service-num {
        font-size: 11px;
    }
    
    .package-features li {
        font-size: 14px !important;
    }
}

/* ==========================================================================
   7. SEÇÕES ESPECIAIS E LOGIN
   ========================================================================== */
.bg-alt { 
    background: var(--bg-alt); 
    border-radius: 60px; 
    margin: 0 15px; 
}

.cta-box { 
    background: var(--dark); 
    padding: 80px 40px; 
    border-radius: 50px; 
    text-align: center; 
    color: white; 
}

.login-card { 
    max-width: 450px; 
    margin: 150px auto; 
    padding: 50px; 
    background: white; 
    border-radius: 40px; 
    border: 1px solid var(--border); 
    text-align: center;
    box-shadow: 0 30px 60px rgba(0,0,0,0.05);
}

.input-group { 
    text-align: left; 
    margin-bottom: 20px; 
}

.input-group label { 
    display: block; 
    font-size: 13px; 
    font-weight: 700; 
    color: var(--dark); 
    margin-bottom: 8px; 
}

.input-group input { 
    width: 100%; 
    padding: 15px; 
    border-radius: 12px; 
    border: 1px solid var(--border); 
    background: var(--bg-alt); 
    outline: none; 
    transition: 0.3s;
}

/* ==========================================================================
   8. TEAM AND MISC
   ========================================================================== */
.team-image-container {
    max-width: 450px;
    margin: 0 auto;
}

.faq-container {
    margin-top: 100px;
    border-top: 1px solid var(--border);
    padding-top: 60px;
}

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

.faq-item {
    background: var(--bg-alt);
    padding: 25px;
    border-radius: 20px;
}

.faq-item h4 {
    color: var(--dark);
    margin-bottom: 10px;
    font-weight: 700;
}

/* ==========================================================================
   9. FOOTER
   ========================================================================== */
.footer { 
    padding: 60px 0; 
    text-align: center; 
    border-top: 1px solid var(--border); 
}

/* ==========================================================================
   9. RESPONSIVIDADE - TABLET (992px - 768px)
   ========================================================================== */
@media (max-width: 992px) {
    .nav-links { 
        gap: 10px; 
    }
    
    .nav-links a { 
        font-size: 12px; 
    }
}

/* ==========================================================================
   10. RESPONSIVIDADE - MOBILE (768px E ABAIXO)
   ========================================================================== */
@media (max-width: 768px) {
    /* Navbar Mobile */
    .navbar {
        top: 0;
        left: 0;
        transform: none;
        width: 100%;
        max-width: 100%;
        border-radius: 0;
        border: none;
        padding: 12px 15px;
        background: white;
        z-index: 998;
    }

    .nav-content {
        gap: 10px;
    }

    .logo {
        font-size: 18px;
    }

    /* Hide desktop nav-links */
    .nav-links {
        position: fixed;
        left: -100vw;
        top: 0;
        width: 100vw;
        height: 100vh;
        background: rgba(30, 41, 59, 0.98);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        z-index: 1000;
        padding: 40px 20px;
        transition: left 0.3s ease-in-out;
    }

    .nav-links a {
        color: white !important;
        font-size: 18px;
        text-decoration: none;
        padding: 15px 0;
    }

    .nav-links a:hover {
        color: var(--primary) !important;
    }

    .nav-links .nav-cta {
        background: var(--primary);
        color: white !important;
        padding: 12px 30px;
        border-radius: 50px;
        margin-top: 20px;
    }

    .nav-links.active {
        left: 0;
    }

    /* Show hamburger menu */
    .menu-toggle {
        display: flex;
    }

    .menu-toggle.active .bar:nth-child(1) {
        background-color: white;
    }

    .menu-toggle.active .bar:nth-child(3) {
        background-color: white;
    }

    /* Hide language selector */
    .lang-selector {
        display: none;
    }

    /* Adjust hero section */
    .hero {
        padding: 120px 0 60px;
    }

    .badge {
        font-size: 10px;
        padding: 6px 12px;
    }

    h1 {
        font-size: clamp(1.8rem, 5vw, 3rem);
        margin-bottom: 20px;
    }

    .hero p {
        font-size: 16px;
        margin: 0 auto 30px;
    }

    .hero-btns {
        display: flex;
        flex-direction: column;
        gap: 12px;
    }

    .btn-primary, .btn-secondary {
        width: 100%;
        padding: 15px 20px;
    }

    /* Grid layouts */
    .services-grid,
    .process-grid,
    .packages-grid,
    .about-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .service-item,
    .package-card {
        padding: 25px;
    }

    .package-card.featured {
        transform: scale(1);
    }

    /* Section spacing */
    .section-padding {
        padding: 60px 0;
    }

    .section-header {
        margin-bottom: 40px;
    }

    .subtitle {
        font-size: 11px;
        margin-bottom: 8px;
    }

    /* FAQ */
    .faq-container {
        margin-top: 60px;
        padding-top: 40px;
    }

    .faq-grid {
        display: grid;
        grid-template-columns: 1fr;
        gap: 20px;
    }

    /* Team section */
    .team-image-container {
        margin-bottom: 40px;
    }

    #equipe .subtitle {
        text-align: left;
    }

    /* BG Alt */
    .bg-alt {
        border-radius: 30px;
        margin: 0 5px;
    }

    /* CTA Box */
    .cta-box {
        padding: 50px 25px;
    }

    /* Login card */
    .login-card {
        margin: 100px 20px;
        padding: 30px 20px;
    }

    /* Buttons */
    .btn-primary,
    .btn-select,
    .btn-secondary {
        padding: 14px 28px;
        font-size: 14px;
    }

    /* Footer */
    .footer {
        padding: 40px 0;
    }
}

/* ==========================================================================
   11. RESPONSIVIDADE - SMALL MOBILE (480px E ABAIXO)
   ========================================================================== */
@media (max-width: 480px) {
    .navbar {
        padding: 10px 12px;
    }

    .logo {
        font-size: 16px;
    }

    h1 {
        font-size: clamp(1.5rem, 4vw, 2.5rem);
    }

    .section-padding {
        padding: 40px 0;
    }

    .container {
        padding: 0 16px;
    }

    .service-item,
    .package-card {
        padding: 20px;
    }

    .badge {
        font-size: 9px;
    }

    .hero-btns {
        gap: 10px;
    }

    .btn-primary,
    .btn-select,
    .btn-secondary {
        padding: 12px 20px;
        font-size: 13px;
    }
}