/* Layout e Estrutura */

/* Container principal */
.container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

/* Header */
header {
    background-color: var(--off-white);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
    height: var(--header-height);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo {
    height: 50px;
}

.logo img {
    height: 100%;
    width: auto;
}

/* Navegação */
nav {
    flex: 1;
    display: flex;
    justify-content: center;
}

.nav-menu {
    display: flex;
    gap: var(--spacing-md);
    align-items: center;
}

.nav-menu > li {
    position: relative;
}

.nav-menu a {
    display: block;
    padding: var(--spacing-sm);
    color: #1a1a1a;
    font-weight: 500;
    font-size: 1.1rem;
    letter-spacing: 0.03em;
    transition: color var(--transition-fast);
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--accent-color);
}

/* Submenu */
.nav-submenu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--off-white);
    min-width: 250px;
    box-shadow: var(--shadow-md);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
    padding: var(--spacing-sm) 0;
    border-radius: 4px;
    margin-top: 0;
    pointer-events: none;
    z-index: 1000;
}

.nav-menu > li:hover .nav-submenu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.nav-submenu li {
    border-bottom: 1px solid var(--light-gray);
}

.nav-submenu li:last-child {
    border-bottom: none;
}

.nav-submenu a {
    padding: var(--spacing-sm) var(--spacing-md);
    color: var(--dark-gray);
}

.nav-submenu a:hover {
    background-color: var(--light-gray);
    color: var(--accent-color);
}

/* Redes sociais no header */
.social-links {
    display: flex;
    gap: var(--spacing-xs);
}

.social-links a {
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform var(--transition-fast);
}

.social-links a:hover {
    transform: scale(1.1);
}

.social-links img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Main Content */
main {
    min-height: calc(100vh - var(--header-height) - 200px);
}

/* Footer */
footer {
    background-color: var(--primary-color);
    color: var(--white);
    padding: var(--spacing-xl) 0 var(--spacing-md);
    margin-top: var(--spacing-2xl);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
}

.footer-section h3 {
    margin-bottom: var(--spacing-sm);
    color: var(--white);
    font-size: var(--font-size-large);
}

.footer-section p,
.footer-section ul li {
    margin-bottom: var(--spacing-xs);
    line-height: 1.8;
}

.footer-bottom {
    text-align: center;
    padding-top: var(--spacing-md);
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    font-size: var(--font-size-small);
}

/* Menu mobile */
.menu-toggle {
    display: none;
    font-size: 1.5rem;
    color: var(--primary-color);
}

/* Responsividade */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }
    
    .nav-menu {
        position: absolute;
        top: var(--header-height);
        left: 0;
        right: 0;
        background-color: var(--off-white);
        flex-direction: column;
        padding: var(--spacing-md);
        box-shadow: var(--shadow-md);
        display: none;
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .nav-submenu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        margin-top: var(--spacing-xs);
        padding-left: var(--spacing-md);
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
}



/* =============================================
   WHATSAPP FLOATING BUTTON
   ============================================= */

/* grupo fixo: redes sociais + whatsapp */
.social-float-group {
    position: fixed;
    bottom: 28px;
    right: 28px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
}

.social-float-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    color: #fff !important;
    font-size: 20px;
    box-shadow: 0 4px 14px rgba(0,0,0,0.22);
    text-decoration: none !important;
    transition: transform 0.15s, box-shadow 0.15s;
}

.social-float-icon:hover,
.social-float-icon:focus {
    transform: scale(1.12);
    box-shadow: 0 6px 20px rgba(0,0,0,0.30);
    color: #fff !important;
    text-decoration: none !important;
}

.social-float-linkedin  { background: #0A66C2; }
.social-float-facebook  { background: #1877F2; }
.social-float-instagram { background: linear-gradient(135deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%); }

@media (max-width: 767px) {
    .social-float-group { bottom: 18px; right: 18px; }
}

.whatsapp-float {
    position: static;
    z-index: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    background: #25D366;
    color: #fff;
    border-radius: 50px;
    padding: 0;
    width: 52px;
    height: 52px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.22);
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    transition: background 0.2s, box-shadow 0.2s, padding 0.2s, width 0.25s;
    overflow: hidden;
    white-space: nowrap;
    transform: translateZ(0);
    will-change: transform;
}

.whatsapp-float i {
    font-size: 26px;
    flex-shrink: 0;
    line-height: 1;
}

.whatsapp-float-label {
    white-space: nowrap;
    opacity: 0;
    max-width: 0;
    overflow: hidden;
    transition: opacity 0.25s, max-width 0.25s;
}

.whatsapp-float:hover,
.whatsapp-float:focus {
    background: #1ebe5a;
    box-shadow: 0 6px 24px rgba(0,0,0,0.28);
    color: #fff;
    justify-content: flex-start;
    gap: 10px;
    width: 200px;
    padding: 12px 20px 12px 16px;
    text-decoration: none;
}

.whatsapp-float:hover .whatsapp-float-label,
.whatsapp-float:focus .whatsapp-float-label {
    opacity: 1;
    max-width: 140px;
}

@media (max-width: 767px) {
    .whatsapp-float {
        bottom: 18px;
        right: 18px;
        padding: 0;
        width: 52px;
    }

    .whatsapp-float-label {
        display: none;
    }
}
