/* =========================
   RESET & BASE STYLES
   ========================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: #111827;
    background-color: #ffffff;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

/* =========================
   VARIABLES
   ========================= */
:root {
    --primary: #16a34a;
    --primary-dark: #15803d;
    --primary-light: #22c55e;
    --secondary: #f3f4f6;
    --text-primary: #111827;
    --text-secondary: #6b7280;
    --white: #ffffff;
    --border: #e5e7eb;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --radius: 0.75rem;
}

/* =========================
   TYPOGRAPHY
   ========================= */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-primary);
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }
h4 { font-size: clamp(1.25rem, 2.5vw, 1.5rem); }
h5 { font-size: 1.125rem; }
h6 { font-size: 1rem; }

p {
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

/* =========================
   UTILITIES
   ========================= */
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 2rem;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    border: none;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--white);
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: var(--white);
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-secondary:hover {
    background: var(--primary);
    color: var(--white);
}

.btn-white {
    background: var(--white);
    color: var(--primary);
}

.btn-white:hover {
    background: var(--secondary);
}

.btn-whatsapp {
    background: #25d366;
    color: var(--white);
}

.btn-whatsapp:hover {
    background: #128c7e;
    transform: translateY(-2px);
}

/* =========================
   HEADER
   ========================= */
.main-header {
    background: var(--white);
    box-shadow: var(--shadow-sm);
    position: static;
    top: 0;
    z-index: 100;
    transition: var(--transition);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--text-primary);
}

.logo small {
    display: block;
    font-size: 0.75rem;
    font-weight: 400;
    color: var(--text-secondary);
    margin-top: -0.25rem;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 2rem;
    list-style: none;
}

.nav-menu a {
    font-weight: 500;
    color: var(--text-secondary);
    position: relative;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -0.5rem;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--primary);
    transition: var(--transition);
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--primary);
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
    width: 100%;
}

.btn-area-cliente {
    padding: 0.5rem 1.25rem;
    background: var(--primary);
    color: var(--white) !important;
    border-radius: var(--radius);
}

.btn-area-cliente:hover {
    background: var(--primary-dark);
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 0.25rem;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: var(--transition);
}

/* Header States - ADICIONAR ISSO! */
.main-header.scrolled {
    position: fixed;
    width: 100%;
    top: 0;
    background: var(--white);
    box-shadow: var(--shadow-md);
    z-index: 1000;
}

.main-header.hide {
    transform: translateY(-100%);
}

/* Fix para compensar o header fixed */
body.has-scrolled-header {
    padding-top: 80px; /* altura do header */
}

/* Mobile menu fix - garantir que fica escondido */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 400px;
        height: 100vh;
        background: var(--white);
        flex-direction: column;
        align-items: flex-start;
        padding: 5rem 2rem 2rem;
        box-shadow: var(--shadow-xl);
        transition: var(--transition);
        z-index: 9999; /* reduzi o z-index absurdo */
        overflow-y: auto;
        display: none; /* esconde por padrão */
    }
    
    /* Só mostra quando REALMENTE ativo */
    .nav-menu.active {
        right: 0;
        display: flex; /* mostra apenas quando ativo */
    }
}

/* =========================
   FOOTER
   ========================= */
.main-footer {
    background: linear-gradient(135deg, #1f2937 0%, #111827 100%);
    color: var(--white);
    padding: 4rem 0 1.5rem;
    margin-top: 5rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.footer-logo span {
    font-weight: 700;
    font-size: 1.25rem;
}

.footer-logo small {
    display: block;
    font-size: 0.75rem;
    opacity: 0.8;
}

.footer-section h4 {
    color: var(--white);
    margin-bottom: 1.5rem;
    font-size: 1.125rem;
}

.footer-section p {
    color: #9ca3af;
    line-height: 1.7;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.75rem;
}

.footer-section ul a {
    color: #9ca3af;
    transition: var(--transition);
}

.footer-section ul a:hover {
    color: var(--primary-light);
    transform: translateX(5px);
    display: inline-block;
}

.contact-info li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    color: #9ca3af;
}

.contact-info i {
    color: var(--primary-light);
    margin-top: 0.25rem;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--primary);
    transform: translateY(-3px);
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-legal p {
    color: #9ca3af;
    font-size: 0.875rem;
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    color: #9ca3af;
    font-size: 0.875rem;
}

.footer-links a:hover {
    color: var(--primary-light);
}

/* =========================
   WHATSAPP FLOAT BUTTON
   ========================= */
.whatsapp-float {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 60px;
    height: 60px;
    background: #25d366;
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: var(--shadow-xl);
    z-index: 99;
    transition: var(--transition);
    animation: pulse 2s infinite;
}

.whatsapp-float:hover {
    background: #128c7e;
    transform: scale(1.1);
    animation: none;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }
    70% {
        box-shadow: 0 0 0 20px rgba(37, 211, 102, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

/* =========================
   ANIMATIONS
   ========================= */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.fade-in {
    animation: fadeIn 0.6s ease-out;
}

/* =========================
   LANGUAGE SELECTOR
   ========================= */
.language-selector {
    margin-left: auto;
}

.lang-dropdown {
    position: relative;
}

.lang-current {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--secondary);
    border: 2px solid var(--border);
    border-radius: var(--radius);
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.lang-current:hover {
    border-color: var(--primary);
    background: var(--white);
}

.lang-current .flag-emoji {
    font-size: 1.25rem;
    line-height: 1;
}

.lang-current i {
    font-size: 0.75rem;
    transition: transform 0.3s ease;
}

.lang-dropdown:hover .lang-current i {
    transform: rotate(180deg);
}

.lang-options {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 0.5rem;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-xl);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
    min-width: 100px;
}

.lang-dropdown:hover .lang-options {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    
}

.lang-option {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1.25rem;
    transition: all 0.2s ease;
    color: var(--text-primary);
}

.lang-option:hover {
    background: var(--secondary);
}

/* ===============================
   LANGUAGE SUGGESTION NOTIFICATION
   =============================== */

.lang-suggestion {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: linear-gradient(135deg, #16a34a, #14532d);
    color: white;
    padding: 15px 20px;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    gap: 15px;
    z-index: 10000;
    animation: slideInRight 0.3s ease-out;
    max-width: 350px;
}

.lang-suggestion p {
    margin: 0;
    flex: 1;
    font-size: 14px;
}

.lang-suggestion button {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 5px 12px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
}

.lang-suggestion button:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-1px);
}

.lang-suggestion button:last-child {
    background: transparent;
    border: none;
    font-size: 20px;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .lang-suggestion {
        bottom: 10px;
        right: 10px;
        left: 10px;
        max-width: none;
    }
}

/* ===============================
   LANGUAGE SELECTOR FIX
   =============================== */

/* Garantir que o idioma ativo fique destacado */
.lang-option.active {
    background: linear-gradient(135deg, #16a34a, #14532d) !important;
    color: white !important;
    pointer-events: none; /* Previne clicar no idioma já ativo */
}

.lang-option.active:hover {
    transform: none !important; /* Remove o efeito hover do idioma ativo */
}

/* Visual feedback para o dropdown */
.lang-dropdown.active .lang-options {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Melhora a transição do dropdown */
.lang-options {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Indicador visual do idioma atual no botão */
.lang-current {
    position: relative;
}

.lang-current::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: #16a34a;
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.lang-dropdown:hover .lang-current::after {
    transform: scaleX(1);
}

.lang-option .flag-emoji {
    font-size: 1.25rem;
    line-height: 1;
}

.logo img {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--text-primary);
}

.logo div {
    display: flex;
    flex-direction: column;
}

.logo small {
    font-size: 0.75rem;
    font-weight: 400;
    color: var(--text-secondary);
    margin-top: -0.25rem;
}

/* =========================
   DROPDOWN MENU
   ========================= */
.dropdown {
    position: relative;
}

.dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.dropdown-toggle i {
    font-size: 0.75rem;
    transition: transform 0.3s ease;
}

.dropdown:hover .dropdown-toggle i {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 280px;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-xl);
    padding: 0.5rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
    margin-top: 0.5rem;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    list-style: none;
}

.dropdown-menu li a {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.875rem 1rem;
    border-radius: calc(var(--radius) - 4px);
    transition: all 0.2s ease;
    color: var(--text-primary) !important;
}

.dropdown-menu li a:hover {
    background: var(--secondary);
    transform: translateX(5px);
}

.dropdown-menu li a::after {
    display: none !important;
}

.dropdown-menu li a i {
    font-size: 1.25rem;
    color: var(--primary);
    width: 30px;
    text-align: center;
}

.dropdown-menu li a div {
    flex: 1;
}

.dropdown-menu li a strong {
    display: block;
    font-weight: 600;
    font-size: 0.9375rem;
    margin-bottom: 0.125rem;
}

.dropdown-menu li a small {
    display: block;
    font-size: 0.8125rem;
    color: var(--text-secondary);
    font-weight: 400;
}

/* =========================
   RESPONSIVE
   ========================= */
@media (max-width: 1024px) {
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    /* ========================= */
    /* MOBILE MENU TOGGLE BUTTON */
    /* ========================= */
    .mobile-menu-toggle {
        display: flex;
        z-index: 1001; /* z-index mais sensato */
    }
    
    .mobile-menu-toggle span {
        transition: all 0.3s ease;
        transform-origin: center;
    }
    
    .mobile-menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .mobile-menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }
    
    /* ========================= */
    /* NAVIGATION MENU CONTAINER */
    /* ========================= */
    .nav-menu {
        display: flex;
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 400px;
        height: 100vh;
        background: var(--white);
        flex-direction: column;
        align-items: flex-start;
        padding: 5rem 2rem 2rem;
        box-shadow: var(--shadow-xl);
        transform: translateX(100%); /* Animação suave */
        z-index: 1000;
        overflow-y: auto;
    }
    
    .nav-menu.active {
        transform: translateX(0);
    }
    
    .nav-menu a::after {
        display: none;
    }
    
    /* ========================= */
    /* DROPDOWN CONTAINER        */
    /* ========================= */
    .dropdown {
        width: 100%;
    }
    
    .dropdown-toggle {
        width: 100%;
        justify-content: space-between;
        cursor: pointer;
    }
    
    /* Animação da seta do dropdown */
    .dropdown-toggle i {
        transition: transform 0.3s ease;
    }
    
    .dropdown.active .dropdown-toggle i {
        transform: rotate(180deg);
    }
    
    /* ========================= */
    /* DROPDOWN MENU ITEMS       */
    /* ========================= */
    .dropdown-menu {
        position: static;
        width: 100%;
        max-height: 0; /* Começa fechado */
        overflow: hidden;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background: transparent;
        margin-top: 0;
        padding: 0;
        border-radius: 0;
        transition: max-height 0.4s ease-in-out, padding 0.3s ease; /* Animação smooth */
    }
    
    .dropdown.active .dropdown-menu {
        max-height: 500px; /* Altura suficiente para todos os items */
        padding: 0.5rem 0;
    }
    
    /* ========================= */
    /* DROPDOWN LINK STYLES      */
    /* ========================= */
    .dropdown-menu li a {
        padding: 0.75rem 0;
        font-size: 0.875rem;
        display: flex;
        align-items: flex-start;
        gap: 1rem;
        background: transparent;
        margin-bottom: 0.5rem;
        border-radius: 0;
        opacity: 0;
        transform: translateX(-20px);
        animation: slideIn 0.3s ease forwards;
    }
    
    /* Animação stagger para cada item */
    .dropdown.active .dropdown-menu li:nth-child(1) a { animation-delay: 0.1s; }
    .dropdown.active .dropdown-menu li:nth-child(2) a { animation-delay: 0.15s; }
    .dropdown.active .dropdown-menu li:nth-child(3) a { animation-delay: 0.2s; }
    .dropdown.active .dropdown-menu li:nth-child(4) a { animation-delay: 0.25s; }
    
    /* ========================= */
    /* DROPDOWN CONTENT STYLES   */
    /* ========================= */
    .dropdown-menu li a i {
        flex-shrink: 0;
        width: 30px;
        font-size: 1.25rem;
        color: var(--primary);
    }
    
    .dropdown-menu li a div {
        flex: 1;
        min-width: 0;
    }
    
    .dropdown-menu li a strong {
        display: block;
        font-size: 0.9375rem;
        margin-bottom: 0.125rem;
        color: var(--text-primary); /* Mudei pra text-primary pra ficar visível */
    }
    
    .dropdown-menu li a small {
        display: block;
        font-size: 0.8125rem;
        line-height: 1.4;
        color: var(--text-secondary);
        white-space: normal;
    }
}

/* ========================= */
/* KEYFRAME ANIMATIONS       */
/* ========================= */
@keyframes slideIn {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}
    
    .whatsapp-float {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }

/* Centralizar seção de Contato no footer em mobile */
@media (max-width: 768px) {
    /* Todas as seções do footer centralizadas */
    .footer-section {
        text-align: center;
    }
    
    .footer-section h4 {
        text-align: center;
        margin-bottom: 1.5rem;
    }
    
    /* Links e listas centralizadas */
    .footer-section ul {
        list-style: none;
        padding: 0;
    }
    
    .footer-section ul li {
        text-align: center;
        margin-bottom: 0.75rem;
    }
    
    /* Específico para a seção de Contato */
    .contact-info {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .contact-info li {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 0.5rem;
        width: 100%;
    }
    
    .contact-info li i {
        color: var(--primary);
        width: 20px;
        text-align: center;
        flex-shrink: 0;
    }
    
    .contact-info li a,
    .contact-info li span,
    .contact-info li address {
        text-align: left;
        font-style: normal;
    }
}

/* Footer logo centralizado em mobile */
@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    /* Centralizar primeira seção do footer */
    .footer-section:first-child {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;
    }
    
    /* Logo do footer centralizado */
    .footer-logo {
        display: flex;
        align-items: center;
        gap: 0.75rem;
        justify-content: center;
        margin: 0 auto 1rem auto;
    }
    
    .footer-logo img {
        width: 40px;
        height: 40px;
    }
    
    .footer-logo div {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
    }
    
    .footer-logo span {
        font-weight: 700;
        font-size: 1.25rem;
        color: var(--white);
    }
    
    .footer-logo small {
        font-size: 0.75rem;
        font-weight: 400;
        color: rgba(255, 255, 255, 0.7);
    }
    
    /* Centralizar descrição e links sociais */
    .footer-section:first-child p {
        text-align: center;
        max-width: 300px;
        margin: 0 auto 1rem auto;
    }
    
    .footer-section:first-child .social-links {
        justify-content: center;
    }
}
