/* ========== NAVBAR ========== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(245, 240, 235, 0.95);
    backdrop-filter: blur(10px);
    transition: all var(--transition);
}

.navbar.scrolled {
    background-color: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow-sm);
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.navbar-logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.navbar-logo img {
    height: 42px;
    width: auto;
}

.navbar-logo span {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--dark);
    letter-spacing: 1px;
}

.navbar-menu {
    display: flex;
    align-items: center;
    gap: 32px;
}

.navbar-menu a {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-light);
    position: relative;
    padding: 4px 0;
}

.navbar-menu a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary);
    transition: width var(--transition);
}

.navbar-menu a:hover,
.navbar-menu a.active {
    color: var(--dark);
}

.navbar-menu a:hover::after,
.navbar-menu a.active::after {
    width: 100%;
}

/* Language Switcher */
.lang-switcher {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-left: 16px;
    background-color: rgba(0, 0, 0, 0.05);
    border-radius: 20px;
    padding: 4px;
}

.lang-switcher button {
    padding: 4px 12px;
    border-radius: 16px;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-light);
    background: transparent;
    cursor: pointer;
    transition: all var(--transition);
}

.lang-switcher button.active {
    background-color: var(--primary);
    color: var(--white);
}

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

.navbar-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--dark);
    transition: all var(--transition);
}

.navbar-toggle.open span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.navbar-toggle.open span:nth-child(2) {
    opacity: 0;
}

.navbar-toggle.open span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .navbar-toggle {
        display: flex;
    }

    .navbar-menu {
        position: fixed;
        top: 72px;
        left: 0;
        width: 100%;
        flex-direction: column;
        background-color: var(--white);
        padding: 24px;
        gap: 20px;
        box-shadow: var(--shadow-md);
        transform: translateY(-120%);
        transition: transform var(--transition);
    }

    .navbar-menu.open {
        transform: translateY(0);
    }

    .lang-switcher {
        margin-left: 0;
    }
}

/* ========== FOOTER ========== */
.footer {
    background-color: var(--dark);
    color: rgba(255, 255, 255, 0.8);
    padding: 60px 0 24px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 48px;
}

.footer-brand p {
    font-size: 0.9rem;
    line-height: 1.7;
    margin-top: 16px;
    color: rgba(255, 255, 255, 0.6);
}

.footer-brand img {
    height: 36px;
}

.footer-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 20px;
}

.footer-links a {
    display: block;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
    padding: 6px 0;
    transition: color var(--transition);
}

.footer-links a:hover {
    color: var(--primary-light);
}

.footer-social {
    display: flex;
    gap: 12px;
    margin-top: 16px;
}

.footer-social a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition);
    font-size: 1.1rem;
}

.footer-social a:hover {
    background-color: var(--primary);
    color: var(--white);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.4);
}

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

    .footer-bottom {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }
}


/* ========== SCROLL TO TOP ========== */
.scroll-top {
    position: fixed;
    bottom: 28px;
    right: 28px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: var(--primary);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    cursor: pointer;
    border: none;
    box-shadow: var(--shadow-md);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all var(--transition);
    z-index: 900;
}

.scroll-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-top:hover {
    background-color: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}


/* ========== COOKIE BANNER ========== */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: var(--dark);
    color: rgba(255, 255, 255, 0.85);
    z-index: 950;
    transform: translateY(100%);
    transition: transform 0.5s ease;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
}

.cookie-banner.visible {
    transform: translateY(0);
}

.cookie-content {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 20px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.cookie-text {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    flex: 1;
}

.cookie-text i {
    color: var(--primary-light);
    font-size: 1.3rem;
    margin-top: 2px;
    min-width: 20px;
}

.cookie-text p {
    font-size: 0.85rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.7);
}

.cookie-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-shrink: 0;
}

.cookie-link {
    font-size: 0.82rem;
    color: var(--primary-light);
    text-decoration: underline;
    white-space: nowrap;
}

.cookie-link:hover {
    color: var(--white);
}

.cookie-accept {
    padding: 10px 24px;
    font-size: 0.85rem;
    white-space: nowrap;
}

@media (max-width: 768px) {
    .cookie-content {
        flex-direction: column;
        align-items: stretch;
        gap: 16px;
        padding: 16px;
    }

    .cookie-actions {
        justify-content: space-between;
    }
}


/* ========== PAGE TRANSITION ========== */
.page-transition {
    position: fixed;
    inset: 0;
    background-color: var(--cream);
    z-index: 9999;
    pointer-events: none;
    opacity: 1;
    transition: opacity 0.4s ease;
}

.page-transition.loaded {
    opacity: 0;
}

.page-transition.navigating {
    opacity: 1;
    pointer-events: all;
}


/* ========== LAZY LOAD PLACEHOLDER ========== */
.lazy-wrapper {
    position: relative;
    overflow: hidden;
    background-color: #e8e0d8;
}

.lazy-wrapper::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg,
            transparent 0%,
            rgba(255, 255, 255, 0.4) 50%,
            transparent 100%);
    animation: shimmer 1.5s infinite;
    z-index: 1;
}

.lazy-wrapper.loaded::before {
    display: none;
}

.lazy-wrapper img {
    opacity: 0;
    transition: opacity 0.5s ease;
}

.lazy-wrapper.loaded img {
    opacity: 1;
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(100%);
    }
}