/* Premium Redesigned Header CSS - Choose A Taxi */

:root {
    --primary-orange: #ff9e15;
    --primary-orange-hover: #e08408;
    --primary-green: #00a63f;
    --primary-green-hover: #008f36;
    --dark-slate: #1e2022;
    --dark-slate-hover: #111213;
    --light-gray: #f5f7fa;
    --white: #ffffff;
    --text-dark: #1e2022;
    --text-muted: #7c8087;
    --border-color: #eaecef;
    --font-family: 'Inter', system-ui, -apple-system, sans-serif;
    --transition-fast: all 0.2s ease-in-out;
    --transition-normal: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: var(--font-family);
    background-color: var(--white);
    color: var(--text-dark);
}

/* Header Outer Container */
.site-header {
    width: 100%;
    background: var(--white);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.03);
    position: relative;
    z-index: 100;
}

.header-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ==========================================================================
   1. Top Bar Styling
   ========================================================================== */
.top-bar {
    background-color: var(--dark-slate);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 13px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.8);
}

.top-bar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 42px;
}

.top-bar-left {
    display: flex;
    align-items: center;
    gap: 8px;
}

.icon-alert {
    color: var(--primary-orange);
    animation: pulse 2s infinite;
}

.top-bar-right {
    display: flex;
    align-items: center;
}

.top-link {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    padding: 0 15px;
    position: relative;
    transition: var(--transition-fast);
}

.top-link:hover {
    color: var(--primary-orange);
}

.top-link:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 12px;
    background-color: rgba(255, 255, 255, 0.15);
}

/* ==========================================================================
   2. Middle Bar Styling (Brand & Contact Info)
   ========================================================================== */
.middle-bar {
    background-color: var(--white);
    padding: 20px 0 40px 0;
    border-bottom: 1px solid var(--border-color);
}

.middle-bar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-area {
    display: flex;
    align-items: center;
}

.logo-link img {
    height: 55px;
    width: auto;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.logo-link:hover img {
    transform: scale(1.02);
}

.contact-info-cards {
    display: flex;
    align-items: center;
    gap: 30px;
}

.info-card {
    display: flex;
    align-items: center;
    gap: 15px;
    transition: transform 0.3s ease;
}

.info-card:hover {
    transform: translateY(-2px);
}

.info-card-icon {
    width: 46px;
    height: 46px;
    border: 2px solid var(--border-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: var(--primary-orange);
    background-color: var(--white);
    transition: var(--transition-normal);
}

.info-card:hover .info-card-icon {
    background-color: var(--primary-orange);
    color: var(--white);
    border-color: var(--primary-orange);
    box-shadow: 0 4px 10px rgba(255, 158, 21, 0.25);
}

.info-card-details {
    display: flex;
    flex-direction: column;
}

.info-card-label {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
}

.info-card-value {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-dark);
    text-decoration: none;
    transition: var(--transition-fast);
}

a.info-card-value:hover {
    color: var(--primary-orange);
}

/* ==========================================================================
   3. Bottom Navigation Bar Styling
   ========================================================================== */
.nav-bar {
    background-color: transparent;
    position: absolute;
    bottom: -20px;
    left: 0;
    right: 0;
    z-index: 99;
}

.nav-bar-inner {
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    height: 60px;
}

/* Slanted Orange Container */
.nav-main-wrapper {
    background-color: var(--primary-orange);
    display: flex;
    align-items: center;
    flex-grow: 1;
    position: relative;
    padding-left: 40px;
    margin-left: 20px;
    z-index: 1;
    box-shadow: 0 4px 15px rgba(255, 158, 21, 0.15);
}

/* Skewed Left Edge */
.nav-main-wrapper::before {
    content: '';
    position: absolute;
    left: -18px;
    top: 0;
    bottom: 0;
    width: 36px;
    background-color: var(--primary-orange);
    transform: skewX(-18deg);
    border-top-left-radius: 4px;
    border-bottom-left-radius: 4px;
    z-index: -1;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 5px;
    height: 100%;
}

.nav-item {
    color: var(--white);
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    padding: 0 20px;
    height: 100%;
    display: flex;
    align-items: center;
    position: relative;
    transition: var(--transition-normal);
}

.nav-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 20px;
    right: 20px;
    height: 4px;
    background-color: var(--white);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-top-left-radius: 2px;
    border-top-right-radius: 2px;
}

.nav-item:hover {
    background-color: rgba(255, 255, 255, 0.08);
}

.nav-item:hover::after,
.nav-item.active::after {
    transform: scaleX(1);
    transform-origin: left;
}

/* Nav Right Side Tools inside orange bar */
.nav-controls {
    display: flex;
    align-items: stretch;
    height: 100%;
    margin-left: auto;
}

.nav-control-btn {
    background: transparent;
    border: none;
    border-left: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--white);
    font-size: 18px;
    padding: 0 25px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-normal);
}

.nav-control-btn:hover {
    background-color: rgba(255, 255, 255, 0.15);
}

/* Hidden by default, showing on responsive */
.hamburger-btn {
    display: none;
}

/* Book Taxi Action Button (Dark Block on Far Right) */
.nav-actions {
    display: flex;
    align-items: stretch;
    margin-left: 0;
}

.book-btn {
    background-color: var(--dark-slate);
    color: var(--white);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 32px;
    font-size: 15px;
    font-weight: 700;
    border-radius: 0 4px 4px 0;
    transition: var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.book-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.1),
        transparent
    );
    transition: 0.5s;
}

.book-btn:hover::before {
    left: 100%;
}

.book-btn:hover {
    background-color: var(--primary-orange);
    box-shadow: 0 4px 15px rgba(255, 158, 21, 0.3);
}

.book-btn i {
    font-size: 14px;
    transition: transform 0.3s ease;
}

.book-btn:hover i {
    transform: translateX(4px);
}

/* ==========================================================================
   4. Interactive Search Dropdown Bar
   ========================================================================== */
.search-overlay-bar {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background-color: var(--white);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-top: 2px solid var(--primary-orange);
    padding: 20px 0;
    transform: translateY(-20px);
    opacity: 0;
    pointer-events: none;
    transition: var(--transition-normal);
    z-index: 5;
}

.search-overlay-bar.active {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}

.header-search-form {
    display: flex;
    align-items: center;
    gap: 15px;
    width: 100%;
}

.search-input {
    flex-grow: 1;
    padding: 14px 20px;
    font-size: 15px;
    font-weight: 500;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    outline: none;
    transition: var(--transition-fast);
    background-color: var(--light-gray);
}

.search-input:focus {
    border-color: var(--primary-orange);
    background-color: var(--white);
    box-shadow: 0 0 0 4px rgba(255, 158, 21, 0.1);
}

.search-submit-btn {
    background-color: var(--primary-orange);
    color: var(--white);
    border: none;
    border-radius: 6px;
    padding: 14px 30px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition-fast);
}

.search-submit-btn:hover {
    background-color: var(--primary-orange-hover);
}

.search-close-btn {
    background: transparent;
    border: none;
    font-size: 20px;
    color: var(--text-muted);
    cursor: pointer;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
}

.search-close-btn:hover {
    background-color: var(--light-gray);
    color: var(--text-dark);
}

/* ==========================================================================
   5. Mobile Drawer Navigation Menu
   ========================================================================== */
.drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(30, 32, 34, 0.6);
    backdrop-filter: blur(4px);
    opacity: 0;
    pointer-events: none;
    transition: var(--transition-normal);
    z-index: 998;
}

.drawer-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.drawer-menu {
    position: fixed;
    top: 0;
    right: -320px;
    width: 320px;
    height: 100vh;
    background-color: var(--white);
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.15);
    z-index: 999;
    display: flex;
    flex-direction: column;
    transition: var(--transition-normal);
}

.drawer-menu.active {
    right: 0;
}

.drawer-header {
    padding: 25px 24px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.drawer-logo {
    height: 44px;
    width: auto;
    object-fit: contain;
}

.drawer-close-btn {
    background: transparent;
    border: none;
    font-size: 20px;
    color: var(--text-dark);
    cursor: pointer;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
}

.drawer-close-btn:hover {
    background-color: var(--light-gray);
}

.drawer-body {
    flex-grow: 1;
    overflow-y: auto;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.drawer-nav {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.drawer-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 14px 18px;
    color: var(--text-dark);
    text-decoration: none;
    font-size: 15px;
    font-weight: 700;
    border-radius: 8px;
    transition: var(--transition-fast);
}

.drawer-item i {
    font-size: 16px;
    color: var(--text-muted);
    width: 20px;
    transition: var(--transition-fast);
}

.drawer-item:hover {
    background-color: var(--light-gray);
    color: var(--primary-orange);
}

.drawer-item:hover i {
    color: var(--primary-orange);
}

.drawer-item.active {
    background-color: rgba(255, 158, 21, 0.1);
    color: var(--primary-orange);
}

.drawer-item.active i {
    color: var(--primary-orange);
}

.drawer-divider {
    height: 1px;
    background-color: var(--border-color);
    width: 100%;
}

.drawer-contact-info {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.drawer-contact-item {
    display: flex;
    align-items: center;
    gap: 15px;
    color: var(--text-dark);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
}

.drawer-contact-item i {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: var(--light-gray);
    color: var(--primary-orange);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

.drawer-footer {
    padding: 24px;
    border-top: 1px solid var(--border-color);
}

.drawer-book-btn {
    display: block;
    width: 100%;
    text-align: center;
    background-color: var(--dark-slate);
    color: var(--white);
    text-decoration: none;
    padding: 15px 0;
    font-size: 15px;
    font-weight: 700;
    border-radius: 8px;
    transition: var(--transition-fast);
}

.drawer-book-btn:hover {
    background-color: var(--primary-orange);
    box-shadow: 0 4px 15px rgba(255, 158, 21, 0.25);
}

/* ==========================================================================
   6. Keyframe Animations & Breakpoints
   ========================================================================== */
@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Responsive Breakpoints */
@media (max-width: 1024px) {
    .contact-info-cards {
        gap: 15px;
    }
    .info-card-icon {
        width: 38px;
        height: 38px;
        font-size: 14px;
    }
    .info-card-value {
        font-size: 13px;
    }
}

@media (max-width: 900px) {
    .contact-info-cards {
        display: none; /* Hide middle contacts on tablets/mobiles */
    }
    .top-bar-left span {
        font-size: 12px;
    }
}

@media (max-width: 768px) {
    .top-bar {
        display: none; /* Hide top bar on mobile */
    }
    
    .middle-bar {
        padding: 15px 0 31px 0;
    }
    .nav-bar {
        bottom: -16px;
    }
    
    .logo-link img {
        height: 44px;
    }

    .nav-bar-inner {
        height: 52px;
    }

    .nav-main-wrapper {
        padding-left: 20px;
        margin-left: 10px;
    }
    
    .nav-main-wrapper::before {
        left: -10px;
        width: 20px;
        transform: skewX(-12deg);
    }

    .nav-menu {
        display: none; /* Hide desktop nav menu */
    }

    .hamburger-btn {
        display: flex; /* Show mobile menu toggler */
    }
    
    .nav-control-btn {
        padding: 0 18px;
    }

    .book-btn {
        padding: 0 20px;
        font-size: 13px;
        border-radius: 0 4px 4px 0;
    }
    
    .book-btn .btn-text {
        display: none; /* Hide text, just show icon or shorten it */
    }
    .book-btn::after {
        content: 'Book';
    }
    
    .search-overlay-bar {
        padding: 15px 0;
    }
    
    .search-input {
        padding: 10px 15px;
        font-size: 14px;
    }
    
    .search-submit-btn {
        padding: 10px 20px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .book-btn::after {
        content: 'Book';
    }
    .nav-main-wrapper {
        padding-left: 10px;
        margin-left: 5px;
    }
    .nav-main-wrapper::before {
        display: none; /* Flat edge on very small devices */
    }
    .nav-control-btn {
        padding: 0 12px;
        font-size: 16px;
    }
    .book-btn {
        padding: 0 15px;
        gap: 5px;
    }
}
