/* assets/css/header.css */

/* --- CSS Variables & Global Resets --- */
:root {
    --font-family-inter: 'Inter', sans-serif;
    --color-black: #000000;
    --color-white: #ffffff;
    --color-grey-50: #f9f9f9;
    --color-grey-200: #e5e5e5;
    --color-grey-400: #a3a3a3;
    --color-grey-600: #666666;
    --header-height: 72px;
    --sidebar-width: 360px;
    --transition-smooth: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-family-inter);
    color: var(--color-black);
    background-color: var(--color-grey-50);
    overflow-x: hidden; /* Prevents the sidebar from creating a side scrollbar */
    width: 100%;

}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-smooth);
}

ul {
    list-style: none;
}

/* Utility Classes */
.desktop-visible { display: flex; }
.mobile-visible { display: none; }
.chevron-icon { transition: transform 0.3s ease; }

/* --- Header Layout --- */
.site-header {
    background-color: var(--color-white);
    height: var(--header-height);
    display: flex;
    align-items: center;
    box-shadow: 0 1px 0 var(--color-grey-200);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    width: 100%;
    /* max-width: 1440px; */
    margin: 0 auto;
    padding: 0 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* --- Logo --- */
.header-logo {
    font-weight: 900;
    font-size: 22px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-right: auto;
}

/* --- Navigation Links --- */
.nav-primary ul, .nav-secondary ul {
    display: flex;
    gap: 32px;
}

.nav-primary a {
    font-weight: 600;
    font-size: 14px;
    color: var(--color-black);
}

.nav-secondary {
    margin-right: 32px;
}

.nav-secondary a {
    font-weight: 500;
    font-size: 13px;
    color: var(--color-grey-600);
}

.nav-secondary a:hover {
    color: var(--color-black);
}

.nav-link-with-icon {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* --- Header Right Section --- */
.header-right {
    align-items: center;
}

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

/* --- Buttons --- */
.btn {
    padding: 10px 20px;
    border-radius: 100px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    white-space: nowrap;
}

.btn-outline {
    border: 1.5px solid var(--color-black);
    color: var(--color-black);
    background: transparent;
}
.btn-outline:hover {
    background-color: var(--color-grey-50);
}

.btn-solid {
    background-color: var(--color-black);
    color: var(--color-white);
    border: 1.5px solid var(--color-black);
}
.btn-solid:hover {
    opacity: 0.85;
}

/* --- Hamburger Button --- */
.hamburger-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--color-grey-200);
    border: none;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    margin-left: 12px;
    transition: var(--transition-smooth);
}
.hamburger-btn:hover {
    background-color: var(--color-grey-400);
}

.hamburger-btn span {
    width: 18px;
    height: 2px;
    background-color: var(--color-black);
    border-radius: 2px;
}

/* --- Mega Menu --- */
.has-mega-menu {
    position: static; /* For full-width drop-down */
}

.mega-menu-wrapper {
    position: absolute;
    top: var(--header-height);
    left: 0;
    width: 100%;
    background-color: var(--color-white);
    border-bottom: 1px solid var(--color-grey-200);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: var(--transition-smooth);
    z-index: 999;
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}

/* Show Mega Menu on Hover */
.has-mega-menu:hover .mega-menu-wrapper {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.has-mega-menu:hover .chevron-icon {
    transform: rotate(180deg);
}

.mega-menu-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 32px;
    display: flex;
    gap: 40px;
}

.mega-cards {
    display: flex;
    gap: 24px;
    flex: 2;
}

.mega-card {
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: 1;
}

.mega-card .img-box {
    width: 100%;
    padding-top: 60%; /* 5:3 Aspect Ratio */
    background-size: cover;
    background-position: center;
    border-radius: 12px;
    background-color: var(--color-grey-200);
}

.mega-card span {
    font-weight: 600;
    font-size: 15px;
}

.mega-links {
    flex: 1;
    padding-left: 40px;
    border-left: 1px solid var(--color-grey-200);
}

.mega-links-title {
    font-weight: 500;
    font-size: 13px;
    color: var(--color-grey-400);
    margin-bottom: 20px;
    text-transform: uppercase;
}

.mega-links ul li {
    margin-bottom: 16px;
}

.mega-links ul a {
    font-weight: 600;
    font-size: 15px;
    color: var(--color-grey-600);
}
.mega-links ul a:hover {
    color: var(--color-black);
}

/* --- Mobile Sidebar & Overlay --- */
.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.4);
    z-index: 1001;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-smooth);
}
.sidebar-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-sidebar {
    position: fixed;
    top: 0;
    right: -var(--sidebar-width);
    width: var(--sidebar-width);
    height: 100%;
    background-color: var(--color-white);
    z-index: 1002;
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}
.mobile-sidebar.active {
    right: 0;
}

.sidebar-header {
    padding: 24px 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.country-select {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background-color: var(--color-grey-50);
    border-radius: 100px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
}

.sidebar-close-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--color-grey-50);
    border: none;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    color: var(--color-black);
}

.sidebar-content {
    padding: 0 32px 40px;
    flex-grow: 1;
}

.sidebar-menu.primary li {
    margin-bottom: 24px;
}
.sidebar-menu.primary a {
    font-weight: 700;
    font-size: 24px;
    letter-spacing: -0.02em;
}

.sidebar-menu.accordion {
    margin-top: 40px;
    border-top: 1px solid var(--color-grey-200);
}

.accordion-item {
    border-bottom: 1px solid var(--color-grey-200);
}

.accordion-header {
    padding: 20px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
}

.accordion-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}
.accordion-body ul {
    padding-bottom: 20px;
}
.accordion-body li {
    margin-bottom: 16px;
}
.accordion-body a {
    font-size: 15px;
    color: var(--color-grey-600);
    font-weight: 500;
}

.accordion-item.active .chevron-icon {
    transform: rotate(180deg);
}

.sidebar-footer {
    margin-top: 40px;
}
.sidebar-footer-title {
    font-weight: 500;
    font-size: 14px;
    color: var(--color-grey-600);
    margin-bottom: 20px;
}
.sidebar-footer li {
    margin-bottom: 16px;
}
.sidebar-footer a {
    font-weight: 600;
    font-size: 16px;
}

/* --- Responsive Breakpoints --- */
@media (max-width: 1100px) {
    /* Hide some elements on smaller laptops/tablets */
    .nav-primary, 
    .nav-secondary,
    .header-actions .btn {
        display: none;
    }
    /* Ensure hamburger is visible on tablet */
    .desktop-visible .hamburger-btn {
        display: flex;
        margin-left: 0;
    }
    /* Keep desktop hamburger visible */
    .desktop-visible { display: flex; }
}

@media (max-width: 768px) {
    /* Switch to full mobile view */
    .desktop-visible { display: none; }
    .mobile-visible { display: flex; }

    .header-container {
        padding: 0 24px;
    }

    .hamburger-btn{
        width: 40px;
    }

    .header-right-mobile {
        display: flex;
        align-items: center;
        gap: 16px;
    }

    .mobile-sidebar {
        width: 100%; /* Full width on mobile */
        right: -100%;
    }
}

/* --- FIX: Hide Mobile Sidebar on Desktop --- */
@media (min-width: 1101px) {
    .mobile-sidebar, 
    .sidebar-overlay {
        display: none !important;
    }
}

/* --- Desktop Dropdown Menu --- */
.desktop-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 15px; /* Spacing from button */
    background: #ffffff;
    min-width: 240px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08); /* Soft shadow */
    border: 1px solid #f0f0f0;
    border-radius: 16px;
    padding: 8px;
    
    /* Animation States */
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s cubic-bezier(0.165, 0.84, 0.44, 1);
    z-index: 1100;
}

/* Active State (Shown) */
.desktop-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Menu Items */
.dd-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    border-radius: 8px;
    color: #000;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: background 0.2s;
}

.dd-item:hover {
    background-color: #f5f5f5;
}

/* Divider Line */
.dd-divider {
    height: 1px;
    background-color: #eee;
    margin: 4px 0;
}

/* Contact Info Styling */
.dd-item.contact-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    cursor: default;
}

.dd-item.contact-info:hover {
    background-color: transparent; /* No hover effect for container */
}

.sub-label {
    font-size: 11px;
    color: #888;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.phone-number {
    font-size: 16px;
    font-weight: 700;
    color: #000;
}
.phone-number:hover {
    color: #666; /* Hover effect specifically for number */
}

/* --- Mobile Sidebar Support Box --- */
.sidebar-support-box {
    margin-top: 32px;
    background-color: #f5f5f5; /* Light grey background */
    border-radius: 16px;
    padding: 8px;
    border: 1px solid #e5e5e5;
}

.support-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    text-decoration: none;
    transition: background-color 0.2s ease;
    border-radius: 12px;
}

.support-item:hover {
    background-color: #ffffff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

/* Icon Styling */
.icon-circle {
    width: 40px;
    height: 40px;
    background-color: #000; /* Black circle */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff; /* White icon */
    flex-shrink: 0;
}

/* Text Styling */
.support-text {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.support-text .label {
    font-weight: 700;
    font-size: 15px;
    color: #000;
    line-height: 1.2;
}

.support-text .sub-text {
    font-size: 12px;
    color: #666;
    margin-top: 2px;
}

/* Arrow at the end */
.arrow-icon {
    margin-left: auto;
}

/* Divider between items */
.divider-line {
    height: 1px;
    background-color: #e0e0e0;
    margin: 4px 16px; /* Indented slightly */
}

/* --- Book Bike Modal Styles --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(2px);
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background-color: #fff;
    width: 90%;
    max-width: 440px;
    padding: 40px;
    border-radius: 24px;
    position: relative;
    transform: translateY(20px);
    transition: all 0.3s ease;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.modal-overlay.active .modal-content {
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: #333;
    line-height: 1;
    padding: 5px;
}

.modal-title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 12px;
    color: #1a1a1a;
    letter-spacing: -0.02em;
}

.modal-subtitle {
    font-size: 16px;
    color: #666;
    margin-bottom: 32px;
}

.form-group {
    margin-bottom: 16px;
    position: relative;
}

.form-group input[type="text"],
.form-group input[type="tel"] {
    width: 100%;
    padding: 18px 20px;
    border: none;
    background-color: #f7f7f7;
    border-radius: 12px;
    font-size: 16px;
    font-family: inherit;
    color: #333;
    outline: none;
    transition: background-color 0.2s;
}

.form-group input:focus {
    background-color: #f0f0f0;
}

.phone-input {
    display: flex;
    align-items: center;
    background-color: #f7f7f7;
    border-radius: 12px;
}

.phone-input .country-code {
    padding: 0 15px 0 20px;
    font-size: 16px;
    color: #666;
    border-right: 1px solid #ddd;
    height: 24px;
    display: flex;
    align-items: center;
}

.phone-input input {
    background: transparent !important;
}

.select-wrapper {
    position: relative;
}

.select-icon {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
}

.model-selection {
    margin-top: 24px;
}

.model-selection label {
    display: block;
    font-size: 15px;
    color: #333;
    margin-bottom: 12px;
}

.radio-group {
    display: flex;
    gap: 24px;
    margin-bottom: 24px;
}

.radio-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 15px;
    color: #333;
    font-weight: 500;
}

.radio-label input {
    display: none;
}

.radio-custom {
    width: 18px;
    height: 18px;
    border: 1.5px solid #ccc;
    border-radius: 50%;
    display: inline-block;
    position: relative;
}

.radio-label input:checked + .radio-custom {
    border-color: #000;
}

.radio-label input:checked + .radio-custom::after {
    content: "";
    width: 10px;
    height: 10px;
    background-color: #000;
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.btn-submit {
    width: 100%;
    padding: 18px;
    background-color: #e0e0e0;
    border: none;
    border-radius: 100px;
    font-size: 18px;
    font-weight: 700;
    color: #777;
    cursor: pointer;
    transition: all 0.2s;
    margin-bottom: 24px;
}

.btn-submit:hover {
    background-color: #d0d0d0;
}

.form-footer {
    font-size: 11px;
    color: #888;
    text-align: center;
    line-height: 1.5;
}

@media (max-width: 480px) {
    .modal-content {
        padding: 30px 20px;
        width: 95%;
    }
    .modal-title {
        font-size: 26px;
    }
}