/* assets/css/layouts.css */

/* --- Header & Navigation --- */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background-color: var(--color-primary-dark);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    z-index: 1000;
    display: flex;
    align-items: center;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo a {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    text-decoration: none;
}

.logo-img {
    height: 30px;
    width: auto;
}

.header-contacts {
    display: flex;
    gap: 1rem;
    align-items: center;
    margin: 0 1.5rem;
}

.main-nav ul {
    display: flex;
    gap: var(--spacing-md);
}

.main-nav a {
    font-weight: 500;
    font-size: 1.2rem;
    color: var(--color-text-white);
    position: relative;
    padding: 0.5rem 0;
}

.main-nav a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-secondary);
    transition: width var(--transition-base);
}

.main-nav a:hover::before,
.main-nav a.active::before {
    width: 100%;
}

.main-nav a:hover {
    color: var(--color-secondary);
}

/* Header Contextual Buttons */
.btn-sm {
    display: inline-flex;
    align-items: center;
    padding: 0.4rem 1rem;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    text-decoration: none;
    font-family: var(--font-heading);
    color: white !important;
    border: 1px solid rgba(255, 255, 255, 0.3);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-call-header {
    background-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
}

.btn-whatsapp-header {
    background-color: rgba(255, 255, 255, 0.05);
    border-color: rgba(18, 140, 126, 0.4);
    color: #25D366 !important;
    box-shadow: 0 0 12px rgba(37, 211, 102, 0.3);
}

/* Contact Icons */
.contact-icon {
    width: 18px;
    height: 18px;
    margin-right: 8px;
}

.contact-icon-invert {
    filter: invert(1);
}

.contact-icon-lg {
    width: 24px;
    height: 24px;
}

.btn-call-header::after,
.btn-whatsapp-header::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 150%;
    height: 300%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.5) 0%, rgba(255, 255, 255, 0) 70%);
    transform: translate(-50%, -50%) scale(0);
    animation: shine 1.7s infinite;
    z-index: -1;
}

.btn-sm:hover {
    transform: translateY(-1px);
    background-color: white;
    color: var(--color-primary-dark) !important;
}


/* --- Footer --- */
.site-footer {
    background-color: var(--color-primary-dark);
    color: var(--color-text-white);
    padding-top: var(--spacing-lg);
    padding-bottom: 60px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
}

.footer-brand img {
    height: 45px;
    width: auto;
}

.footer-col p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.1rem;
    line-height: 1.6;
    margin-top: 1rem;
}

.footer-col h3 {
    color: var(--color-text-white);
    font-size: 1.15rem;
    margin-bottom: 1.5rem;
    position: relative;
    display: inline-block;
    font-family: var(--font-heading);
}

.footer-col h3::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 40px;
    height: 3px;
    background-color: var(--color-secondary);
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.1rem;
    transition: var(--transition-base);
}

.footer-links a:hover {
    color: var(--color-secondary);
    padding-left: 5px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: var(--spacing-md);
    text-align: center;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
}

/* --- Floating Actions (Mobile Only) --- */
.floating-actions {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 2000;
    display: none;
}

/* --- Media Queries --- */

@media (min-width: 600px) and (max-width: 1200px) {
    .site-header {
        height: auto;
        padding: 15px 0;
    }

    .nav-container {
        flex-wrap: wrap;
        justify-content: space-between;
    }

    .header-contacts {
        margin: 0;
    }

    .main-nav {
        width: 100%;
        margin-top: 15px;
        padding-top: 10px;
    }

    .main-nav ul {
        justify-content: center;
        gap: 1.5rem;
    }
}

@media (max-width: 600px) {
    .site-header {
        height: auto;
        min-height: 50px;
        padding-bottom: 5px;
    }

    .desktop-only {
        display: none !important;
    }

    .nav-container {
        flex-direction: column;
        padding-top: 5px;
    }

    .logo {
        margin-bottom: 5px;
    }

    .main-nav {
        width: 100%;
        padding-top: 5px;
    }

    .main-nav ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px;
    }

    .main-nav a {
        font-size: 0.85rem;
        padding: 6px 10px;
        background-color: rgba(255, 255, 255, 0.1);
        color: var(--color-text-white);
        border: 1px solid rgba(255, 255, 255, 0.2);
        border-radius: var(--radius-sm);
        display: inline-block;
        box-shadow: 0 0 8px rgba(0, 229, 255, 0.15);
    }

    .main-nav a:hover,
    .main-nav a.active {
        background-color: var(--color-primary);
        color: white;
    }

    .main-nav a::before {
        display: none;
    }

    .logo a {
        font-size: 1.2rem;
    }

    /* Floating Actions Mobile Show */
    .floating-actions {
        display: flex;
        gap: 12px;
        padding: 10px 15px;
    }

    .btn-float-whatsapp,
    .btn-float-call {
        flex: 1;
        text-align: center;
        padding: 10px 15px;
        font-weight: 800;
        font-size: 1rem;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
        position: relative;
        overflow: hidden;
        border-radius: 50px;
        border: 1px solid transparent;
        transition: all 0.3s ease;
    }

    .btn-float-whatsapp::after,
    .btn-float-call::after {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        width: 150%;
        height: 300%;
        background: radial-gradient(circle, rgba(255, 255, 255, 0.8) 0%, rgba(255, 255, 255, 0) 70%);
        transform: translate(-50%, -50%) scale(0);
        animation: shine 1.7s infinite;
        z-index: 0;
    }

    .btn-float-whatsapp {
        background-color: #0d1a15;
        border-color: #128c7e;
        color: #25D366;
    }

    .btn-float-call {
        background-color: #1a1a1a;
        border-color: #ffffff33;
        color: #ffffff;
    }

    .btn-float-whatsapp img,
    .btn-float-call img {
        width: 20px;
        height: 20px;
    }

    .btn-float-call img {
        filter: brightness(1) invert(1) !important;
    }

    .site-footer {
        padding-bottom: 90px;
    }
}