/* ===================================
   SEMPRE LOGADO - COMPONENTS CSS
   Header, Footer, Navigation
   ================================= */

/* ===================================
   HEADER
   ================================= */
.site-header {
    background-color: #ffffff;
    box-shadow: none;
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 0;
}

.header-wrapper {
    max-width: 100%;
    margin: 0;
    padding: 0;
    display: block;
}

/* Logo Section */
.header-logo {
    text-align: center;
    padding: 30px 0;
    background-color: #ffffff;
}

.header-logo a {
    display: inline-block;
}

.header-logo img {
    height: 140px;
    width: auto;
}

/* Navigation */
.header-nav {
    background-color: #ffffff;
    border-bottom: none;
    padding: 0;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 0;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 0;
}

.nav-list li {
    margin: 0;
}

.nav-list a {
    display: block;
    padding: 18px 30px;
    color: #333333;
    font-weight: 500;
    font-size: 1.0625rem;
    text-decoration: none;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
}

.nav-list a:hover {
    color: #007acc;
    background-color: #f5f5f5;
}

.nav-list a.btn-contact {
    background-color: transparent;
    color: #333333;
    padding: 18px 30px;
    border-radius: 0;
}

.nav-list a.btn-contact:hover {
    background-color: #f5f5f5;
    color: #007acc;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--color-text);
    transition: var(--transition);
}

/* ===================================
   FOOTER
   ================================= */
.site-footer {
    background-color: #000000;
    color: #ffffff;
    padding: var(--spacing-xl) 0 var(--spacing-md);
    margin-top: var(--spacing-xxl);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
}

.footer-column h4 {
    color: #ffffff;
    font-size: 1.125rem;
    margin-bottom: var(--spacing-sm);
}

.footer-column p {
    color: #cccccc;
    font-size: 0.9375rem;
    line-height: 1.8;
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 0.75rem;
}

.footer-column ul li a {
    color: #cccccc;
    transition: var(--transition);
}

.footer-column ul li a:hover {
    color: var(--color-primary);
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    transition: var(--transition);
}

.social-links a:hover {
    background-color: var(--color-primary);
    color: #ffffff;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: var(--spacing-md);
    text-align: center;
}

.footer-bottom p {
    color: #cccccc;
    font-size: 0.875rem;
}

.footer-bottom a {
    color: #cccccc;
    text-decoration: none;
}

.footer-bottom a:hover {
    color: var(--color-primary);
    text-decoration: underline;
}

/* ===================================
   RESPONSIVIDADE - HEADER & FOOTER
   ================================= */
@media (max-width: 992px) {
    .nav-list {
        gap: 0;
    }
    
    .nav-list a {
        font-size: 0.875rem;
        padding: 15px 20px;
    }
}

@media (max-width: 768px) {
    /* Header Mobile */
    .mobile-menu-toggle {
        display: flex;
        position: absolute;
        right: 20px;
        top: 35px;
        z-index: 1001;
    }
    
    .header-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 400px;
        height: 100vh;
        background-color: #ffffff;
        box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
        transition: right 0.3s ease;
        z-index: 999;
        border-bottom: none;
    }
    
    .header-nav.active {
        right: 0;
    }
    
    .nav-list {
        flex-direction: column;
        padding: var(--spacing-xl) var(--spacing-lg);
        gap: 0;
        align-items: flex-start;
    }
    
    .nav-list a {
        font-size: 1.125rem;
        width: 100%;
        padding: 15px 0;
        border-bottom: 1px solid #e0e0e0;
    }
    
    .nav-list a:hover {
        background-color: transparent;
    }
    
    /* Footer Mobile */
    .footer-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }
}

/* ===================================
   SCROLL ANIMATIONS
   ================================= */
.service-item,
.stat-item,
.category-card,
.servico-card {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.service-item.fade-in,
.stat-item.fade-in,
.category-card.fade-in,
.servico-card.fade-in {
    opacity: 1;
    transform: translateY(0);
}

/* Mobile Menu Hamburger Animation */
.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translateY(10px);
}

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

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

/* ===================================
   BOTÕES FLUTUANTES — WhatsApp + Topo
   =================================== */
#btn-whatsapp {
    position: fixed; bottom: 88px; right: 30px; width: 56px; height: 56px;
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    color: #fff; border: none; border-radius: 50%; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    opacity: 0; visibility: hidden; transform: translateY(20px) scale(0.8);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 998; box-shadow: 0 4px 15px rgba(37,211,102,0.4), 0 2px 8px rgba(0,0,0,0.15);
    text-decoration: none;
}
#btn-whatsapp.visivel { opacity: 1; visibility: visible; transform: translateY(0) scale(1); }
#btn-whatsapp:hover { transform: translateY(-4px) scale(1.1); box-shadow: 0 8px 25px rgba(37,211,102,0.5), 0 4px 12px rgba(0,0,0,0.2); }
#btn-whatsapp::before {
    content: ''; position: absolute; inset: 0; border-radius: 50%;
    background: rgba(37,211,102,0.45); transform: scale(1); opacity: 0; pointer-events: none;
}
#btn-whatsapp.visivel::before { animation: whatsappRipple 2s ease-out infinite; }
@keyframes whatsappRipple { 0% { transform: scale(1); opacity: 0.6; } 100% { transform: scale(1.9); opacity: 0; } }

.whatsapp-tooltip {
    position: absolute; right: calc(100% + 12px); top: 50%; transform: translateY(-50%);
    background: #ffffff; color: #128C7E; padding: 8px 14px; border-radius: 8px;
    font-size: 0.875rem; font-weight: 600; white-space: nowrap;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15); opacity: 0; visibility: hidden; transition: all 0.3s ease;
}
.whatsapp-tooltip::before {
    content: ''; position: absolute; left: 100%; top: 50%; transform: translateY(-50%);
    border: 6px solid transparent; border-left-color: #ffffff;
}
#btn-whatsapp:hover .whatsapp-tooltip { opacity: 1; visibility: visible; }
@media (max-width: 768px) { .whatsapp-tooltip { display: none; } }

#btn-topo {
    position: fixed; bottom: 30px; right: 30px; width: 42px; height: 42px;
    background-color: #007acc; color: #fff; border: none; border-radius: 8px;
    cursor: pointer; display: flex; align-items: center; justify-content: center;
    opacity: 0; visibility: hidden; transform: translateY(20px);
    transition: all 0.3s ease; z-index: 999; box-shadow: 0 2px 12px rgba(0,122,204,0.25);
}
#btn-topo.visivel { opacity: 0.9; visibility: visible; transform: translateY(0); }
#btn-topo:hover { opacity: 1; background-color: #005fa3; transform: translateY(-2px); }

@media (max-width: 768px) {
    #btn-whatsapp { bottom: 84px; right: 20px; width: 52px; height: 52px; }
    #btn-topo { bottom: 20px; right: 20px; }
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 998;
}

.mobile-menu-overlay.active {
    display: block;
}
