/* ========================================
   Layout - Navbar & Footer
   ======================================== */

/* --- Navigation --- */
.navbar {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    z-index: var(--z-fixed);
    padding: 16px 0;
    transition: all var(--duration) var(--ease);
    background: transparent;
}

.navbar.scrolled {
    background: rgba(var(--primary-rgb), 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 10px 0;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.15);
}

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

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

.logo-icon {
    width: 48px;
    height: 48px;
    color: var(--gold);
    transition: transform var(--duration) var(--ease);
}

.logo:hover .logo-icon {
    transform: scale(1.1);
}

.logo-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-title {
    font-size: var(--fs-md);
    font-weight: 800;
    color: var(--white);
    line-height: 1.2;
}

.logo-subtitle {
    font-size: var(--fs-xs);
    color: var(--gold);
    font-weight: 400;
    letter-spacing: 0.5px;
}

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

.nav-links a {
    color: rgba(var(--white-rgb), 0.8);
    font-size: var(--fs-sm);
    font-weight: 500;
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    transition: all var(--duration) var(--ease);
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 2px;
    right: 16px;
    left: 16px;
    height: 2px;
    background: var(--gold);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform var(--duration) var(--ease);
    border-radius: 2px;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    transform: scaleX(1);
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--gold);
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: calc(var(--z-fixed) + 10);
}

.mobile-menu-btn span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--white);
    transition: all var(--duration) var(--ease);
    border-radius: 2px;
}

.mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
    transform: translateX(-10px);
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile menu overlay */
.nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: calc(var(--z-fixed) - 1);
    opacity: 0;
    transition: opacity var(--duration) var(--ease);
}

.nav-overlay.active {
    display: block;
    opacity: 1;
}

/* --- Quick Nav Bar --- */
.quick-nav {
    background: var(--primary);
    position: relative;
    z-index: 10;
    border-bottom: 3px solid var(--gold);
    overflow: hidden;
}

.quick-nav::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(var(--gold-rgb), 0.05), transparent);
    animation: quickNavShimmer 3s var(--ease) infinite;
}

@keyframes quickNavShimmer {
    0%, 100% { transform: translateX(100%); }
    50% { transform: translateX(-100%); }
}

.quick-nav-items {
    display: flex;
    justify-content: center;
    gap: 0;
    position: relative;
}

.quick-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 20px 28px;
    color: rgba(var(--white-rgb), 0.7);
    font-size: var(--fs-xs);
    font-weight: 500;
    transition: all var(--duration) var(--ease);
    position: relative;
    text-align: center;
}

.quick-nav-item:hover,
.quick-nav-item.active-nav {
    color: var(--gold);
    background: rgba(var(--gold-rgb), 0.08);
}

.quick-nav-item.active-nav::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    left: 0;
    height: 3px;
    background: var(--gold);
}

.quick-nav-icon {
    width: 24px;
    height: 24px;
    transition: transform var(--duration) var(--ease);
}

.quick-nav-item:hover .quick-nav-icon {
    transform: scale(1.15);
}

.quick-nav-icon svg {
    width: 100%;
    height: 100%;
}

/* --- Footer --- */
.footer {
    background: var(--primary-dark);
    padding: var(--space-3xl) 0 0;
    color: rgba(var(--white-rgb), 0.7);
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(var(--gold-rgb), 0.04) 0%, transparent 60%);
    pointer-events: none;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    padding-bottom: var(--space-2xl);
    border-bottom: 1px solid rgba(var(--white-rgb), 0.08);
}

.footer-logo {
    margin-bottom: var(--space-md);
}

.footer-desc {
    font-size: var(--fs-sm);
    line-height: 1.8;
    color: rgba(var(--white-rgb), 0.5);
}

.footer-col h4 {
    color: var(--white);
    font-size: var(--fs-md);
    font-weight: 800;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 12px;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 30px;
    height: 2px;
    background: var(--gold);
    border-radius: 2px;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a {
    color: rgba(var(--white-rgb), 0.5);
    font-size: var(--fs-sm);
    transition: all var(--duration) var(--ease);
    display: inline-block;
}

.footer-col ul li a:hover {
    color: var(--gold);
    transform: translateX(-6px);
}

.work-hours li {
    font-size: var(--fs-sm);
    color: rgba(var(--white-rgb), 0.5);
}

.footer-bottom {
    padding: var(--space-lg) 0;
    text-align: center;
}

.footer-bottom p {
    font-size: var(--fs-sm);
    color: rgba(var(--white-rgb), 0.4);
}

/* --- Social Links --- */
.social-links {
    display: flex;
    gap: 12px;
}

.social-link {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(var(--white-rgb), 0.06);
    color: var(--white);
    border-radius: 12px;
    transition: all var(--duration) var(--ease-spring);
    border: 1px solid rgba(var(--white-rgb), 0.08);
}

.social-link svg {
    width: 20px;
    height: 20px;
}

.social-link:hover {
    background: var(--gold);
    color: var(--primary-dark);
    transform: translateY(-4px) rotate(5deg);
    border-color: var(--gold);
    box-shadow: 0 8px 24px rgba(var(--gold-rgb), 0.3);
}
