/* Layout CSS - Premium Edition */

/* Header & Navbar */
.header {
    background: transparent;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: var(--spacing-md) 0;
    transition: var(--transition);
}

.header.scrolled {
    background: rgba(10, 25, 47, 0.95);
    backdrop-filter: blur(10px);
    padding: 10px 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--color-white);
    letter-spacing: 1px;
    z-index: 1001;
}

.logo span {
    color: var(--color-accent);
}

.nav-links {
    display: flex;
    gap: var(--spacing-lg);
    align-items: center;
}

.nav-link {
    font-weight: 500;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.85);
    /* Slightly muted white */
    position: relative;
    padding: 5px 0;
    transition: color 0.3s ease;
}

/* Header is dark, so text is white. Exception handled in JS if non-hero pags */

.nav-link:hover,
.nav-link.active {
    color: var(--color-accent);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-accent);
    transition: var(--transition);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* Footer - Dark & Luxurious */
.footer {
    background-color: var(--color-primary-dark);
    color: var(--color-white);
    padding: var(--spacing-xl) 0 20px;
    margin-top: auto;
    position: relative;
}

/* Top accent line on footer */
.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--color-primary-dark) 0%, var(--color-accent) 50%, var(--color-primary-dark) 100%);
}

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

.footer-col h3 {
    color: var(--color-accent);
    margin-bottom: var(--spacing-md);
    font-size: 1.4rem;
    font-weight: 400;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--color-accent);
    padding-left: 5px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: var(--spacing-lg);
    text-align: center;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.4);
}

/* Mobile Menu Toggle */
.mobile-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--color-white);
    z-index: 11001;
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: fixed;
        top: 0;
        right: 0;
        height: 100vh;
        width: 75%;
        max-width: 300px;
        background: var(--color-primary-dark);
        /* Dark slide-out menu */
        flex-direction: column;
        justify-content: center;
        gap: 2rem;
        box-shadow: -5px 0 20px rgba(0, 0, 0, 0.5);
        padding: 2rem;
        z-index: 11000;
    }

    .nav-links.active {
        display: flex;
        animation: slideInRight 0.3s ease-out;
    }

    .mobile-toggle {
        display: block;
    }

    .desktop-cta {
        display: none;
    }
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Top Bar */
.top-bar {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 8px 0;
    display: none;
}

@media (min-width: 992px) {
    .top-bar {
        display: block;
    }
}

.top-bar-content {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 20px;
}

.top-bar-link {
    color: white;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: color 0.3s;
    font-weight: 500;
}

.top-bar-link:hover {
    color: var(--color-accent);
}

.icon-whatsapp {
    color: #25D366;
    font-size: 1.2rem;
}

.icon-telegram {
    color: #0088cc;
    font-size: 1.2rem;
}

/* Dropdown Menu */
/* Ensure all nav items (li) are consistent */
.nav-links li {
    display: flex;
    align-items: center;
    height: 100%;
    position: relative;
}



.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    min-width: 220px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    border-radius: 5px;
    padding: 10px 0;
    display: none !important;
    /* Force hide initially */
    z-index: 1100;
    border-top: 3px solid var(--color-accent);
}

.dropdown:hover .dropdown-menu {
    display: block !important;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dropdown-menu li {
    display: block;
    margin-bottom: 0;
}

.dropdown-menu a {
    display: block;
    padding: 10px 20px;
    color: var(--color-primary);
    /* Navy text */
    font-size: 0.9rem;
    font-weight: 500;
    transition: background 0.2s, color 0.2s;
}

.dropdown-menu a:hover {
    background: #f9f9f9;
    color: var(--color-accent);
    padding-left: 25px;
    /* Slight nudge */
}

.dropdown-menu a::after {
    display: none;
    /* Remove underline from default nav links */
}

/* Caret Icon */
.nav-link i {
    font-size: 0.75rem;
    margin-left: 4px;
    transition: transform 0.3s;
}

.dropdown:hover .nav-link i {
    transform: rotate(180deg);
}