﻿/**
 * Header/Navigation Styles
 * Matches live site header3.css structure
 */

/* ============================================
   HEADER
   ============================================ */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.95);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
    border-bottom: 1px solid hsl(var(--border));
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 5rem;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1rem;
}

@media (min-width: 640px) {
    .nav-container {
        padding: 0 1.5rem;
    }
}

@media (min-width: 1024px) {
    .nav-container {
        padding: 0 2rem;
    }
}

/* ============================================
   LOGO
   ============================================ */
.logo-section {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-wrapper {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
}

.logo-box,
.logoBox {
    width: 3rem;
    height: 3rem;
    background-color: hsl(var(--primary));
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-text {
    color: hsl(var(--primary-foreground));
    font-size: 1.5rem;
    font-weight: 700;
}

.title-section,
.logo-title {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.title-main {
    font-size: 1.25rem;
    font-weight: 700;
    color: hsl(var(--foreground));
    line-height: 1.2;
}

.title-sub {
    font-size: 0.875rem;
    color: hsl(var(--muted-foreground));
    line-height: 1.2;
}

/* ============================================
   DESKTOP NAVIGATION
   ============================================ */
.desktop-nav {
    display: none;
    align-items: center;
    gap: 2rem;
}

@media (min-width: 1024px) {
    .desktop-nav {
        display: flex;
    }
}

.nav-link {
    font-size: 0.875rem;
    font-weight: 500;
    color: hsla(0, 0%, 13%, 0.8);
    text-decoration: none;
    transition: color 0.2s ease;
}

.nav-link:hover {
    color: hsl(var(--primary));
}

.nav-link.active {
    color: hsl(var(--primary));
}

/* ============================================
   DESKTOP BUTTONS
   ============================================ */
.desktop-buttons {
    display: none;
    align-items: center;
    gap: 1rem;
}

@media (min-width: 1024px) {
    .desktop-buttons {
        display: flex;
    }
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: 0;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    border: none;
}

.btn-outline {
    background-color: transparent;
    border: 1px solid hsl(var(--border));
    color: hsl(var(--foreground));
}

.btn-outline:hover {
    background-color: hsl(var(--secondary));
}

.btn-primary {
    background-color: hsl(var(--foreground));
    color: hsl(var(--background));
}

.btn-primary:hover {
    background-color: hsl(var(--foreground) / 0.9);
}

/* ============================================
   MOBILE MENU BUTTON
   ============================================ */
.mobile-menu-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    background: transparent;
    border: none;
    cursor: pointer;
    color: hsl(var(--foreground));
}

@media (min-width: 1024px) {
    .mobile-menu-btn {
        display: none;
    }
}

.mobile-menu-btn svg {
    width: 1.5rem;
    height: 1.5rem;
}

/* Icon visibility controlled by aria-expanded */
.menu-icon,
.close-icon {
    display: none;
}

.mobile-menu-btn[aria-expanded="false"] .menu-icon {
    display: block;
}

.mobile-menu-btn[aria-expanded="true"] .close-icon {
    display: block;
}

/* Hidden utility class for JS toggle */
.hidden {
    display: none !important;
}

/* ============================================
   MOBILE MENU
   ============================================ */
.mobile-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: hsl(var(--background));
    border-bottom: 1px solid hsl(var(--border));
    padding: 1rem;
    animation: slideDown 0.2s ease-out;
}

.mobile-menu.open {
    display: block;
}

@media (min-width: 1024px) {
    .mobile-menu {
        display: none !important;
    }
}

.mobile-menu-content {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.mobile-nav-link {
    display: block;
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: hsl(var(--foreground));
    text-decoration: none;
    border-radius: 0.375rem;
    transition: background-color 0.2s ease;
}

.mobile-nav-link:hover {
    background-color: hsl(var(--secondary));
}

.mobile-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid hsl(var(--border));
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
