/* Header */
.header {
    background-color: rgba(var(--primary-rgb), 0.95);
    backdrop-filter: blur(10px);
    padding: 15px 0;
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    transition: var(--transition-normal);
    box-shadow: var(--shadow-sm);
}

.header.sticky {
    background-color: rgba(var(--primary-rgb), 0.85);
    box-shadow: var(--shadow-md);
    padding: 10px 0;
    backdrop-filter: blur(15px);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

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

.logo img {
    height: 40px;
    width: auto;
}

.nav-desktop {
    display: flex;
}

.nav-desktop ul {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-desktop a {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition-normal);
}

.nav-desktop a:hover {
    color: var(--secondary);
    opacity: 0.9;
}

/* Mobile Navigation */
.nav-mobile {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--primary);
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    padding: 8px 0;
}

.nav-mobile-list {
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    align-items: center;
    margin: 0;
    padding: 0;
    list-style: none;
    max-width: var(--container-width);
    margin: 0 auto;
}

.nav-mobile-item {
    flex: 1;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
}

.nav-mobile-link {
    display: inline-block;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    padding: 8px 12px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.2s ease;
    text-align: center;
    line-height: 1.2;
    width: 100%;
}

.nav-mobile-link:hover,
.nav-mobile-link.active {
    color: white;
}

/* Layout */
.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

section {
    padding: var(--spacing-xl) 0;
}

/* Section Titles */
section h2 {
    text-align: center;
    margin-bottom: var(--spacing-md);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.2;
}

section h3 {
    text-align: center;
    margin-bottom: var(--spacing-md);
    font-size: 2rem;
    font-weight: 600;
    color: var(--text-primary);
}

.section-subtitle {
    text-align: center;
    max-width: 800px;
    margin: 0 auto var(--spacing-md);
    font-size: 1.2rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* Footer */
.footer {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    color: white;
    padding: var(--spacing-2xl) 0 var(--spacing-lg);
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../images/pattern-bg.svg') center/cover;
    opacity: 0.05;
    pointer-events: none;
}

.footer-content {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: var(--spacing-2xl);
    margin-bottom: var(--spacing-xl);
}

.footer-logo {
    flex-shrink: 0;
}

.footer-logo-img {
    height: 45px;
    width: auto;
    filter: brightness(0) invert(1);
    opacity: 0.9;
    transition: opacity 0.3s ease;
}

.footer-logo-img:hover {
    opacity: 1;
}

.footer-nav {
    display: flex;
    gap: var(--spacing-2xl);
    align-items: flex-start;
}

.footer-links {
    display: flex;
    gap: var(--spacing-lg);
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.footer-links a:hover {
    color: white;
    transform: translateY(-2px);
}

.footer-social {
    display: flex;
    gap: var(--spacing-md);
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: all 0.3s ease;
    color: rgba(255, 255, 255, 0.9);
}

.social-icon:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    color: white;
}

.social-icon svg {
    width: 18px;
    height: 18px;
}

.footer-legal {
    position: relative;
    text-align: center;
    padding-top: var(--spacing-lg);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-legal p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

/* WhatsApp Button */
.whatsapp-button {
    position: fixed;
    bottom: var(--spacing-lg);
    right: var(--spacing-lg);
    background-color: var(--accent-green);
    color: var(--text-primary);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: var(--shadow-lg);
    transition: var(--transition-normal);
    z-index: 1000;
}

.whatsapp-button:hover {
    background-color: #128C7E;
    transform: scale(1.1);
}

/* Responsive */
@media (max-width: 992px) {
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-lg);
    }
}

@media (max-width: 768px) {
    .nav-mobile {
        display: block;
    }

    .nav-desktop {
        display: none;
    }

    /* Add padding to main content to account for fixed mobile nav */
    main {
        padding-bottom: 60px;
    }

    .header .container {
        padding: var(--container-padding);
    }

    .footer-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: var(--spacing-xl);
    }

    .footer-nav {
        flex-direction: column;
        align-items: center;
        gap: var(--spacing-lg);
    }

    .footer-links {
        flex-direction: column;
        gap: var(--spacing-md);
    }

    .footer-social {
        justify-content: center;
    }

    .footer-logo-img {
        height: 40px;
    }
}

@media (max-width: 576px) {
    .whatsapp-button {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
        bottom: var(--spacing-md);
    }
}

@media (max-width: 480px) {
    .footer {
        padding: var(--spacing-xl) 0 var(--spacing-md);
    }

    .footer-logo-img {
        height: 35px;
    }

    .social-icon {
        width: 32px;
        height: 32px;
    }

    .social-icon svg {
        width: 16px;
        height: 16px;
    }
}

@media (max-width: 360px) {
    .nav-mobile-link {
        font-size: 0.8rem;
        padding: 8px 6px;
    }
}

/* Hide desktop menu and show mobile menu on small screens */
@media (max-width: 768px) {
    .nav-mobile {
        display: block;
    }

    .nav-desktop {
        display: none;
    }

    .header .container {
        padding: 0;
    }

    .logo {
        padding: 0 var(--container-padding);
    }

    /* Remove the bottom padding since menu is not fixed anymore */
    main {
        padding-top: 0;
    }

    /* Return WhatsApp button to original position */
    .whatsapp-button {
        bottom: var(--spacing-lg);
    }
} 