/**
 * BookingFlightsFares - Header & Footer Stylesheet
 * Desktop & Mobile layouts matching Reference 1 & Reference 2
 */

/* Header Top Bar */
.bff-header-top {
    background-color: #ffffff;
    border-bottom: 1px solid var(--color-border-light);
    padding: 0.75rem 0;
}

.bff-header-top-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Brand Logo */
.bff-brand-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

.bff-logo-icon {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #ff5722, #ff9800);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(255, 87, 34, 0.3);
}

.bff-logo-text {
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: #0f172a;
}

.bff-logo-text span {
    color: #ff5722;
}

/* Top Utility Right */
.bff-top-utilities {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.top-util-item {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--color-navy);
    cursor: pointer;
}

.top-util-item:hover {
    color: var(--color-primary);
}

.top-util-select {
    border: none;
    background: transparent;
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--color-navy);
    cursor: pointer;
    outline: none;
}

/* Call 24/7 Badge Pill (Ref 1) */
.bff-phone-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background-color: #fff7ed;
    color: #ea580c;
    border: 1.5px solid #fed7aa;
    padding: 0.45rem 1rem;
    border-radius: var(--radius-full);
    font-weight: 700;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all var(--transition-fast);
}

.bff-phone-pill:hover {
    background-color: #ffedd5;
    color: #c2410c;
    transform: scale(1.02);
}

.phone-icon-svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

/* Main Navigation Bar (Desktop) */
.bff-main-nav-bar {
    background-color: #ffffff;
    border-bottom: 1px solid var(--color-border-light);
    box-shadow: var(--shadow-sm);
}

.bff-nav-list {
    display: flex;
    align-items: center;
    list-style: none;
    gap: 2rem;
    padding: 0.85rem 0;
}

.bff-nav-link {
    font-size: 0.95rem;
    font-weight: 600;
    color: #334155;
    text-decoration: none;
    position: relative;
    padding-bottom: 0.25rem;
    transition: color var(--transition-fast);
}

.bff-nav-link:hover, .bff-nav-link.active {
    color: var(--color-primary);
}

.bff-nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -0.85rem;
    left: 0;
    right: 0;
    height: 3px;
    background-color: var(--color-primary);
    border-radius: 3px 3px 0 0;
}

/* Mobile Header Bar (Ref 2) */
.bff-mobile-header {
    display: none;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    background-color: #ffffff;
    border-bottom: 1px solid var(--color-border-light);
}

.bff-mobile-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.btn-mobile-action {
    background: none;
    border: none;
    font-size: 1.25rem;
    color: #1e293b;
    cursor: pointer;
    padding: 0.35rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-mobile-menu-toggle {
    width: 38px;
    height: 38px;
    border: 1px solid var(--color-border);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.btn-mobile-menu-toggle span {
    width: 18px;
    height: 2px;
    background-color: #1e293b;
    border-radius: 2px;
}

/* Mobile Off-Canvas Drawer */
.bff-drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(2px);
    z-index: 99998;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

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

.bff-mobile-nav-drawer {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 85%;
    max-width: 360px;
    background-color: #ffffff;
    z-index: 99999;
    box-shadow: -4px 0 25px rgba(0, 0, 0, 0.2);
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.bff-mobile-nav-drawer.active {
    transform: translateX(0);
}

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

.btn-drawer-close {
    background: none;
    border: none;
    font-size: 1.75rem;
    line-height: 1;
    color: #64748b;
    cursor: pointer;
}

.drawer-body {
    padding: 1.25rem;
    flex: 1;
}

.drawer-nav-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.drawer-nav-item a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.85rem 1rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    color: #1e293b;
    transition: background var(--transition-fast);
}

.drawer-nav-item a:hover, .drawer-nav-item a.active {
    background-color: var(--color-primary-light);
    color: var(--color-primary);
}

.drawer-call-box {
    margin-top: 1.5rem;
    background-color: #fff7ed;
    border: 1px solid #fed7aa;
    border-radius: var(--radius-md);
    padding: 1rem;
    text-align: center;
}

.drawer-call-box strong {
    display: block;
    font-size: 0.85rem;
    color: #9a3412;
    margin-bottom: 0.4rem;
}

.btn-drawer-phone {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    background-color: #ea580c;
    color: #ffffff;
    padding: 0.65rem;
    border-radius: var(--radius-sm);
    font-weight: 700;
    text-decoration: none;
}

/* ==================================================
   FOOTER STYLING
================================================== */
.bff-footer {
    background-color: #0b1a30;
    color: #94a3b8;
    padding-top: 4rem;
    padding-bottom: 2rem;
    margin-top: 5rem;
    border-top: 1px solid #1e293b;
}

.footer-top-grid {
    display: grid;
    grid-template-columns: 1.7fr 1fr 1fr 1fr 1.1fr;
    gap: 2rem;
    margin-bottom: 3rem;
}

.footer-col-brand p {
    margin-top: 1rem;
    font-size: 0.9rem;
    line-height: 1.6;
    color: #94a3b8;
}

.footer-phone-highlight {
    margin-top: 1.25rem;
    background-color: rgba(255, 87, 34, 0.1);
    border: 1px solid rgba(255, 87, 34, 0.3);
    padding: 0.85rem 1rem;
    border-radius: var(--radius-md);
}

.footer-phone-highlight span {
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #fdba74;
}

.footer-phone-highlight strong {
    font-size: 1.2rem;
    color: #ffffff;
}

.footer-col-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 1.25rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-col-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background-color: var(--color-secondary);
}

.footer-links-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.footer-links-list a {
    color: #94a3b8;
    font-size: 0.9rem;
    transition: color var(--transition-fast);
}

.footer-links-list a:hover {
    color: #ffffff;
    padding-left: 4px;
}

/* Footer Disclaimer Box (Requirement 18) */
.footer-disclaimer-card {
    background-color: rgba(15, 23, 42, 0.6);
    border: 1px solid #1e293b;
    border-radius: var(--radius-md);
    padding: 1.5rem;
    margin-bottom: 2.5rem;
    font-size: 0.82rem;
    line-height: 1.6;
    color: #94a3b8;
}

.footer-disclaimer-card strong {
    color: #e2e8f0;
}

.footer-disclaimer-card a {
    color: #60a5fa;
    text-decoration: underline;
}

/* Footer Bottom Bar */
.footer-bottom-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    padding-top: 2rem;
    border-top: 1px solid #1e293b;
    font-size: 0.85rem;
}

.footer-payment-badges {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.payment-badge {
    background-color: #1e293b;
    color: #e2e8f0;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.3rem 0.6rem;
    border-radius: 4px;
    border: 1px solid #334155;
}

/* Responsive Header / Footer Breakpoints */
@media (max-width: 992px) {
    .bff-header-top, .bff-main-nav-bar {
        display: none;
    }
    .bff-mobile-header {
        display: flex;
    }
    .footer-top-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
    .footer-col-brand {
        grid-column: 1 / -1;
    }
}

@media (max-width: 600px) {
    .footer-top-grid {
        grid-template-columns: 1fr;
    }
    .footer-bottom-bar {
        flex-direction: column;
        text-align: center;
        justify-content: center;
    }
}
