/*
=================================================================
|   ARISTOS - Template Fixes & Modern Styling
|   Version: 1.0
|   Description: Fixes for header/footer positioning and modern styling
=================================================================
*/

/* --- Header & Navigation Fixes --- */
.site-header {
    position: fixed;
    top: 36px; /* Ensure it's below the top bar */
    left: 0;
    width: 100%;
    z-index: 1001;
    background-color: transparent;
    transition: all 0.3s ease;
    /* Removed border-bottom to fix gold line issue */
}

.site-header.scrolled {
    background-color: rgba(0, 0, 0, 0.92);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    /* Removed border-bottom-color to fix gold line issue */
}

.main-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 4px 0;
    position: relative; /* Ensure proper stacking context */
}

.logo-container {
    z-index: 2; /* Keep logo above other elements */
    position: relative;
}

.nav-toggle {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    cursor: pointer;
    margin-left: auto;
    z-index: 1003; /* Ensure it's above the overlay menu */
    position: relative; /* Create stacking context */
}

.nav-toggle span {
    display: block;
    height: 3px;
    width: 100%;
    background-image: linear-gradient(170deg, #D5B65B 0%, #A27E2F 100%);
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* Hamburger to X animation */
.nav-toggle.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* --- Enhanced Footer Design --- */
.site-footer {
    position: relative;
    z-index: 1;
    margin-top: 60px;
    background-color: rgba(18, 18, 20, 0.98);
    border-top: 1px solid rgba(212, 175, 55, 0.15);
    padding-top: 70px;
    position: relative;
    overflow: hidden;
}

/* Subtle gold accent in footer background */
.site-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 15% 85%, rgba(212, 175, 55, 0.08) 0%, transparent 60%);
    pointer-events: none;
    z-index: -1;
}

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

.footer-brand {
    position: relative;
}

.footer-logo {
    font-family: 'Cinzel', serif;
    font-weight: 700;
    font-size: 28px;
    letter-spacing: 2px;
    background-image: linear-gradient(170deg, #D5B65B 0%, #A27E2F 30%, #F3E392 50%, #A98533 70%, #E3C873 100%);
    color: transparent;
    background-clip: text;
    -webkit-background-clip: text;
    margin-bottom: 20px;
    display: inline-block;
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.05rem;
    line-height: 1.6;
    max-width: 90%;
    margin-bottom: 25px;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.footer-column h4 {
    color: var(--color-gold);
    font-size: 1.1rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 12px;
}

.footer-column h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background-image: var(--gold-gradient);
    border-radius: 2px;
}

.footer-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

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

.footer-column ul li a {
    color: rgba(255, 255, 255, 0.7);
    transition: all 0.2s ease;
    position: relative;
    padding-left: 0;
    display: inline-block;
}

.footer-column ul li a:hover {
    color: var(--color-gold);
    padding-left: 5px;
}

.contact-info li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
}

.contact-info li i {
    color: var(--color-gold);
    margin-right: 12px;
    margin-top: 4px;
}

.footer-bottom {
    padding: 25px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.copyright p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.7);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.social-link::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: var(--gold-gradient);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.social-link:hover {
    color: #000;
    transform: translateY(-3px);
}

.social-link:hover::before {
    opacity: 1;
}

.social-link i {
    position: relative;
    z-index: 1;
}

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

@media (max-width: 768px) {
    .footer-links {
        grid-template-columns: 1fr 1fr;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
}

@media (max-width: 576px) {
    .footer-links {
        grid-template-columns: 1fr;
    }
}

/* --- Fullscreen Overlay Menu --- */
.nav-menu {
    position: fixed;
    inset: 0;
    padding-top: 140px;
    background: rgba(0,0,0,0.98); /* Darker background */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    flex-direction: column;
    align-items: center;
    gap: 16px;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transition: opacity 200ms ease, visibility 200ms ease;
    z-index: 1002;
}

.nav-menu.active {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
}

/* Body scroll lock when menu is open */
body.nav-open {
    overflow: hidden;
}

/* Responsive adjustments */
@media (max-width: 576px) {
    /* Fix topbar layout on mobile */
    .top-bar {
        position: relative; /* Change from fixed to relative */
    }
    
    .top-bar-inner {
        flex-direction: row; /* Keep horizontal layout */
        flex-wrap: wrap; /* Allow wrapping */
        justify-content: space-between;
        padding: 8px 0;
    }
    
    .top-left {
        font-size: 0.85rem; /* Smaller font */
        max-width: 70%; /* Limit width */
    }
    
    .top-right {
        gap: 10px; /* Reduce gap between icons */
    }
    
    .icon-link span {
        display: none; /* Hide text, show only icons */
    }
    
    /* Adjust header position for mobile */
    .site-header {
        position: relative;
        top: 0;
        margin-bottom: 20px;
    }
    
    .main-nav {
        justify-content: space-between;
        padding: 10px 0;
    }
    
    /* Adjust menu overlay padding */
    .nav-menu {
        padding-top: 80px;
    }
}
