/**
 * ==========================================
 * NAVBAR STYLES
 * ==========================================
 * 
 * - Transparent on homepage hero
 * - Solid blue background when scrolled OR on other pages
 * - Sticky at top
 * - Mobile responsive
 */

/* ========================================
   NAVBAR CONTAINER
   ======================================== */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1.25rem 0;
    background-color: transparent;
    transition: all var(--transition-normal);
}

/* Transparent state (full width, edge to edge) */
.navbar-transparent {
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    background-color: transparent !important;
    box-shadow: none !important;
    padding: 1.25rem 0 !important;
}

.navbar-transparent .navbar-container {
    background-color: transparent !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    padding: 0 1.5rem !important;
    max-width: 1280px !important;
}

/* Scrolled state - FLOATING EFFECT */
.navbar-scrolled {
    /* Shrink and move down for floating effect */
    top: 1rem !important;
    left: 1rem !important;
    right: 1rem !important;
    background-color: transparent !important;
    box-shadow: none !important;
    padding: 0 !important;
}

.navbar-scrolled .navbar-container {
    /* Container gets the blue background and rounded corners */
    background-color: var(--color-primary) !important;
    border-radius: 1rem !important;
    box-shadow: var(--shadow-lg) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 0.875rem 1.5rem !important;
    max-width: 1200px !important;
}

/* Increase spacing on larger screens */
@media (min-width: 768px) {
    .navbar-scrolled {
        left: 2rem !important;
        right: 2rem !important;
    }
    
    .navbar-scrolled .navbar-container {
        padding: 1rem 2rem !important;
    }
}

@media (min-width: 1024px) {
    .navbar-scrolled {
        left: 3rem !important;
        right: 3rem !important;
    }
}

/* ========================================
   NAVBAR CONTENT
   ======================================== */

.navbar-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all var(--transition-normal);
}

/* ========================================
   LOGO
   ======================================== */

.navbar-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;  /* ADJUST THIS: Space between logo and text (e.g., 0.75rem, 1rem) */
    text-decoration: none;
    font-size: 1rem;  /* ADJUST THIS: Company name text size (e.g., 1.125rem, 1.25rem) */
    font-weight: 700;
    color: white;
    transition: var(--transition-fast);
    white-space: nowrap;
}

@media (max-width: 1024px) {
    .navbar-logo span {
        display: none;  /* ADJUST THIS: Change to 'block' or 'inline' to show text on tablets */
    }
}

.navbar-logo:hover {
    opacity: 0.9;
}

.navbar-logo-icon {
    font-size: 1.75rem;
}

.navbar-logo-image {
    height: 5rem;  /* ADJUST THIS: Increase for bigger logo (e.g., 2.25rem, 2.5rem) */
    width: auto;
    object-fit: contain;
    max-width: 140px;  /* ADJUST THIS: Increase for wider logo (e.g., 160px, 180px) */
}

@media (max-width: 768px) {
    .navbar-logo-image {
        height: 1.75rem;  /* ADJUST THIS: Mobile logo size */
        max-width: 120px;  /* ADJUST THIS: Mobile logo max width */
    }
    
    .navbar-logo span {
        font-size: 0.875rem;
    }
}

/* ========================================
   NAVIGATION MENU (DESKTOP)
   ======================================== */

.navbar-menu {
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

.navbar-link {
    color: white;
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    transition: var(--transition-fast);
    position: relative;
}

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

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

.navbar-link:hover {
    opacity: 0.8;
}

/* ========================================
   CALL TO ACTION BUTTON
   ======================================== */

.navbar-cta {
    background-color: white;
    color: var(--color-primary);
    padding: 0.625rem 1.5rem;
    border-radius: 2rem;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition-normal);
    border: 2px solid white;
}

.navbar-cta:hover {
    background-color: transparent;
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* ========================================
   MOBILE MENU TOGGLE
   ======================================== */

.navbar-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
}

/* ========================================
   MOBILE MENU
   ======================================== */

.navbar-mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 400px;
    height: 100vh;
    background-color: var(--color-primary);
    box-shadow: var(--shadow-xl);
    padding: 2rem;
    transition: right var(--transition-normal);
    z-index: 1001;
}

.navbar-mobile-menu.active {
    right: 0;
}

.navbar-mobile-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.navbar-mobile-close {
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    padding: 0;
    line-height: 1;
}

.navbar-mobile-links {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.navbar-mobile-link {
    color: white;
    text-decoration: none;
    font-weight: 500;
    font-size: 1.125rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition-fast);
}

.navbar-mobile-link:hover {
    opacity: 0.8;
    padding-left: 0.5rem;
}

.navbar-mobile-cta {
    margin-top: 1.5rem;
    background-color: white;
    color: var(--color-primary);
    padding: 1rem;
    border-radius: 0.5rem;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    display: block;
}

/* Mobile menu overlay */
.navbar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
}

.navbar-overlay.active {
    display: block;
}

/* ========================================
   RESPONSIVE (MOBILE)
   ======================================== */

@media (max-width: 768px) {
    .navbar-menu {
        display: none;
    }
    
    .navbar-toggle {
        display: block;
    }
    
    .navbar-mobile-menu {
        display: block;
    }
}

/* ========================================
   PRINT STYLES
   ======================================== */

@media print {
    .navbar {
        display: none;
    }
}
