/* ==========================================================================
   ALTHA ASSESSORIA - SISTEMA DE ESTILOS GLOBAL (PREMIUM)
   ========================================================================== */

/* Importação do Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&display=swap');

/* Variáveis do Tema */
:root {
    --primary: #123c24;          /* Verde Floresta Escuro (Seriedade e Medicina) */
    --primary-light: #1e5c38;    /* Verde Floresta Intermediário */
    --primary-rgb: 18, 60, 36;
    
    --accent: #2bb673;           /* Verde Menta Vibrante (Destaque, Saúde, Segurança) */
    --accent-hover: #22965e;
    --accent-light: #e8f7f0;
    
    --neutral-dark: #1e2522;     /* Grafite Escuro para Textos */
    --neutral-light: #f4f7f5;    /* Off-White para fundos secundários */
    --white: #ffffff;
    --gray-100: #eef2ef;
    --gray-200: #dce3dd;
    --gray-400: #a3b1a7;
    --gray-600: #627267;
    
    /* Tipografia */
    --font-sans: 'Outfit', sans-serif;
    
    /* Efeitos e Transições */
    --shadow-sm: 0 2px 8px rgba(18, 60, 36, 0.04);
    --shadow-md: 0 10px 30px rgba(18, 60, 36, 0.08);
    --shadow-lg: 0 20px 40px rgba(18, 60, 36, 0.12);
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-full: 9999px;
    
    /* Limites de Layout */
    --container-max: 1200px;
    --header-height: 80px;
}

/* Reset Geral */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-sans);
    background-color: var(--white);
    color: var(--neutral-dark);
    line-height: 1.6;
    font-weight: 400;
    overflow-x: hidden;
}

/* Tipografia */
h1, h2, h3, h4, h5, h6 {
    color: var(--primary);
    font-weight: 700;
    line-height: 1.25;
}

h1 { font-size: clamp(2.5rem, 5vw, 3.75rem); font-weight: 800; }
h2 { font-size: clamp(1.8rem, 4vw, 2.5rem); position: relative; margin-bottom: 1.5rem; }
h3 { font-size: clamp(1.4rem, 3vw, 1.75rem); }
h4 { font-size: 1.25rem; }

p {
    font-size: 1rem;
    color: var(--gray-600);
}

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

ul, ol {
    list-style: none;
}

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

/* Elementos Utilitários de Layout */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin-left: auto;
    margin-right: auto;
    padding-left: 20px;
    padding-right: 20px;
}

.section {
    padding: 80px 0;
    position: relative;
}

.section-bg {
    background-color: var(--neutral-light);
}

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

.section-header h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background-color: var(--accent);
    margin: 12px auto 0 auto;
    border-radius: var(--radius-full);
}

.section-header p {
    font-size: 1.125rem;
    margin-top: 15px;
}

/* Botões */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--radius-sm);
    transition: var(--transition-normal);
    cursor: pointer;
    border: 2px solid transparent;
}

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

.btn-primary:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(43, 182, 115, 0.3);
}

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

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

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

.btn-outline-white:hover {
    background-color: var(--white);
    color: var(--primary);
    transform: translateY(-2px);
}

/* WhatsApp Fixo */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #25d366;
    color: white;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    z-index: 999;
    font-size: 30px;
    transition: var(--transition-normal);
}

.whatsapp-float:hover {
    transform: scale(1.1) rotate(10deg);
}

/* ==========================================================================
   CABEÇALHO (HEADER & NAVIGATION)
   ========================================================================== */
.header {
    height: var(--header-height);
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    border-bottom: 1px solid var(--gray-100);
    box-shadow: var(--shadow-sm);
    transition: var(--transition-normal);
}

.header.scrolled {
    height: 70px;
    background-color: rgba(255, 255, 255, 0.98);
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.logo-link {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 48px;
    width: auto;
    transition: var(--transition-normal);
}

.header.scrolled .logo-img {
    height: 40px;
}

/* Menu de Navegação Desktop */
.nav-menu {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-link {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--primary);
    position: relative;
    padding: 8px 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent);
    transition: var(--transition-normal);
}

.nav-link:hover {
    color: var(--accent);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link.active {
    color: var(--accent);
}

/* Menu Hambúrguer (Mobile) */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 20px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1100;
}

.menu-toggle span {
    width: 100%;
    height: 3px;
    background-color: var(--primary);
    border-radius: var(--radius-full);
    transition: var(--transition-normal);
}

/* Responsividade do Menu */
@media (max-width: 991px) {
    .menu-toggle {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 300px;
        height: 100vh;
        background-color: var(--white);
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
        flex-direction: column;
        align-items: flex-start;
        padding: 100px 40px 40px 40px;
        gap: 20px;
        transition: var(--transition-normal);
        z-index: 1050;
    }
    
    .nav-menu.open {
        right: 0;
    }
    
    .nav-link {
        font-size: 1.15rem;
        width: 100%;
        display: block;
    }
    
    .menu-toggle.open span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    .menu-toggle.open span:nth-child(2) {
        opacity: 0;
    }
    .menu-toggle.open span:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }
}

/* ==========================================================================
   RODAPÉ (FOOTER)
   ========================================================================== */
.footer {
    background-color: var(--primary);
    color: var(--white);
    padding: 70px 0 30px 0;
    font-size: 0.95rem;
}

.footer-top {
    display: grid;
    grid-template-columns: 2fr 1.5fr 1.5fr 2fr;
    gap: 40px;
    margin-bottom: 50px;
}

.footer-logo-desc img {
    height: 55px;
    margin-bottom: 20px;
    filter: brightness(0) invert(1);
}

.footer-logo-desc p {
    color: var(--gray-400);
    margin-bottom: 20px;
    font-size: 0.9rem;
}

.footer-socials {
    display: flex;
    gap: 15px;
}

.social-icon {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-full);
    background-color: rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-normal);
}

.social-icon:hover {
    background-color: var(--accent);
    transform: translateY(-3px);
}

.footer-title {
    color: var(--white);
    font-size: 1.15rem;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 35px;
    height: 3px;
    background-color: var(--accent);
    border-radius: var(--radius-full);
}

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

.footer-links a {
    color: var(--gray-400);
}

.footer-links a:hover {
    color: var(--accent);
    padding-left: 5px;
}

.footer-info li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 15px;
    color: var(--gray-400);
}

.footer-info svg {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    fill: var(--accent);
    margin-top: 3px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 30px;
    text-align: center;
    color: var(--gray-400);
    font-size: 0.85rem;
}

@media (max-width: 991px) {
    .footer-top {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }
}

@media (max-width: 575px) {
    .footer-top {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

/* ==========================================================================
   ANIMAÇÕES E EFEITOS
   ========================================================================== */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.appear {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================================================
   CARDS E COMPONENTES COMUNS
   ========================================================================== */
.card {
    background-color: var(--white);
    border-radius: var(--radius-md);
    padding: 30px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-100);
    transition: var(--transition-normal);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--gray-200);
}

.icon-box {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-sm);
    background-color: var(--accent-light);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    font-size: 24px;
}

.icon-box svg {
    width: 32px;
    height: 32px;
    fill: currentColor;
}

/* ==========================================================================
   WHATSAPP POP-OVER DE MULTI-UNIDADES (PREMIUM)
   ========================================================================== */
.whatsapp-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.whatsapp-float {
    width: 60px;
    height: 60px;
    background-color: #25d366;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
    border: none;
    cursor: pointer;
    transition: var(--transition-normal);
}

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

.whatsapp-menu {
    position: absolute;
    bottom: 75px;
    right: 0;
    width: 290px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(18, 60, 36, 0.08);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    opacity: 0;
    transform: translateY(15px) scale(0.95);
    pointer-events: none;
    transition: opacity 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.whatsapp-menu.active {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.whatsapp-menu-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: var(--white);
    padding: 16px 20px;
    display: flex;
    flex-direction: column;
}

.whatsapp-menu-header strong {
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.whatsapp-menu-header span {
    font-size: 0.8rem;
    color: var(--accent);
    margin-top: 2px;
    font-weight: 500;
}

.whatsapp-menu-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 20px;
    border-bottom: 1px solid var(--gray-100);
    transition: var(--transition-fast);
}

.whatsapp-menu-item:last-child {
    border-bottom: none;
}

.whatsapp-menu-item:hover {
    background-color: var(--accent-light);
}

.whatsapp-item-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: var(--primary-light);
    color: var(--white);
    font-size: 0.7rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 2px 6px rgba(18, 60, 36, 0.15);
    transition: var(--transition-fast);
}

.whatsapp-menu-item:hover .whatsapp-item-icon {
    background-color: var(--accent);
    box-shadow: 0 4px 10px rgba(43, 182, 115, 0.3);
}

.whatsapp-item-info {
    display: flex;
    flex-direction: column;
}

.whatsapp-item-info .unit-name {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--primary);
}

.whatsapp-item-info .unit-phone {
    font-size: 0.8rem;
    color: var(--gray-600);
    margin-top: 1px;
}

