/* =========================================================================
   CabsOn — Modern Header + Footer
   Loaded AFTER taxi-booking.min.css so it wins the cascade.
   Design tokens come from :root in taxi-booking.css (--brand-*, --text-*).
   ========================================================================= */

/* ---------- Reset / safety ---------- */
.site-header *,
.site-footer * { box-sizing: border-box; }

/* Reserve height so hero content never jumps under the sticky header */
:root {
    --hdr-utility-h: 38px;
    --hdr-main-h: 68px;
    --hdr-total-h: calc(var(--hdr-utility-h) + var(--hdr-main-h));
}
@media (max-width: 768px) {
    :root {
        --hdr-utility-h: 34px;
        --hdr-main-h: 60px;
    }
}

/* =========================================================================
   1. UTILITY BAR (thin dark strip — phone + WhatsApp always visible)
   ========================================================================= */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1030;
    background: transparent;
    box-shadow: none;
    overflow: visible;
}

.site-header__utility {
    background: var(--brand-shell, #022b3a);
    color: #ffffff;
    height: var(--hdr-utility-h);
    display: flex;
    align-items: center;
    font-size: 0.82rem;
    line-height: 1;
}

.site-header__utility-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
}

.site-header__utility-left {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    color: rgba(255,255,255,0.82);
    font-weight: 500;
}

.site-header__utility-left .fa-solid,
.site-header__utility-left .fas,
.site-header__utility-left .fa-clock,
.site-header__utility-left .fa-shield-halved { color: #7fd7c4; }

.site-header__utility-phones {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.site-header__utility-phones li {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.site-header__utility-phones .u-phone {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.85rem;
    padding: 4px 6px;
    border-radius: 6px;
    transition: background-color 0.15s ease, color 0.15s ease;
}
.site-header__utility-phones .u-phone:hover,
.site-header__utility-phones .u-phone:focus-visible {
    background: rgba(255,255,255,0.12);
    color: #ffffff;
}

.site-header__utility-phones .u-phone i { font-size: 0.85rem; color: #7fd7c4; }

.site-header__utility-phones .u-wa {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 999px;
    background: #25D366;
    color: #ffffff;
    text-decoration: none;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.site-header__utility-phones .u-wa:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(37,211,102,0.35);
}
.site-header__utility-phones .u-wa i { font-size: 0.95rem; }

/* Hide the "open 24/7" tagline on small screens to keep phones visible */
@media (max-width: 640px) {
    .site-header__utility-left .u-tagline { display: none; }
    .site-header__utility-left { gap: 8px; }
    .site-header__utility-phones { gap: 6px; }
    .site-header__utility-phones .u-phone { padding: 4px 6px; }
    .site-header__utility-phones .u-phone .u-phone-label { font-size: 0.78rem; }
}
@media (max-width: 360px) {
    /* At 360px keep only up to TWO phones visible + WA chips */
    .site-header__utility-phones li:nth-child(n+3) { display: none; }
    .site-header__utility-phones .u-phone .u-phone-label { font-size: 0.74rem; }
}

/* =========================================================================
   2. MAIN HEADER (logo + nav + CTA / hamburger)
   ========================================================================= */
.site-header__main {
    background: #ffffff;
    border-bottom: 1px solid rgba(15,23,42,0.06);
    transition: box-shadow 0.2s ease;
}

.site-header.is-scrolled .site-header__main {
    box-shadow: 0 6px 20px rgba(15,23,42,0.08);
}

.site-header__main-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: var(--hdr-main-h);
    padding: 10px 0;
}

.site-header__brand {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    flex-shrink: 0;
}
.site-header__brand img {
    display: block;
    height: 40px;
    width: auto;
    max-width: 180px;
    object-fit: contain;
}
@media (max-width: 768px) {
    .site-header__brand img { height: 34px; max-width: 150px; }
}

.site-header__nav {
    display: flex;
    align-items: center;
    gap: 6px;
    list-style: none;
    margin: 0;
    padding: 0;
    flex: 1;
    justify-content: center;
    flex-wrap: nowrap;
}
.site-header__nav > li { position: relative; }

.site-header__nav-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 14px;
    color: var(--text-main, #0f2430);
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    border-radius: 10px;
    white-space: nowrap;
    transition: color 0.15s ease, background-color 0.15s ease;
    position: relative;
}
.site-header__nav-link:hover,
.site-header__nav-link:focus-visible {
    color: var(--brand-primary, #1f7a8c);
    background: transparent;
}

/* Active-page underline indicator */
.site-header__nav-link.is-active {
    color: var(--brand-primary, #1f7a8c);
}
.site-header__nav-link.is-active::after {
    content: "";
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: 2px;
    height: 2px;
    background: var(--brand-primary, #1f7a8c);
    border-radius: 2px;
}

/* Dropdown */
.site-header__nav .has-dropdown { position: relative; }
.site-header__nav .has-dropdown > .site-header__dropdown {
    position: absolute;
    top: calc(100% + 4px);
    left: 50%;
    transform: translateX(-50%) translateY(6px);
    min-width: 240px;
    background: #ffffff;
    border: 1px solid rgba(15,23,42,0.08);
    border-radius: 14px;
    box-shadow: 0 24px 48px rgba(15,23,42,0.14);
    padding: 8px;
    list-style: none;
    margin: 0;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
    z-index: 200;
}
.site-header__nav .has-dropdown:hover > .site-header__dropdown,
.site-header__nav .has-dropdown:focus-within > .site-header__dropdown,
.site-header__nav .has-dropdown.is-open > .site-header__dropdown {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
}
.site-header__dropdown li { list-style: none; }
.site-header__dropdown a {
    display: block;
    padding: 10px 12px;
    border-radius: 8px;
    color: var(--text-main, #0f2430);
    font-weight: 500;
    font-size: 0.92rem;
    text-decoration: none;
}
.site-header__dropdown a:hover,
.site-header__dropdown a:focus-visible {
    background: var(--brand-surface-muted, #e1e5f2);
    color: var(--brand-primary, #1f7a8c);
}

/* Header CTA cluster (Get Quote + login/user) */
.site-header__cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.site-header__quote-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: var(--brand-primary, #1f7a8c);
    color: #ffffff !important;
    font-weight: 700;
    font-size: 0.92rem;
    text-decoration: none;
    border-radius: 10px;
    border: 1px solid var(--brand-primary, #1f7a8c);
    box-shadow: 0 8px 20px rgba(31,122,140,0.22);
    transition: background-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
    white-space: nowrap;
}
.site-header__quote-btn:hover,
.site-header__quote-btn:focus-visible {
    background: var(--brand-primary-hover, #166678);
    border-color: var(--brand-primary-hover, #166678);
    transform: translateY(-1px);
    box-shadow: 0 12px 24px rgba(31,122,140,0.28);
    color: #ffffff !important;
}

.site-header__login-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 14px;
    color: var(--text-main, #0f2430);
    font-weight: 600;
    font-size: 0.92rem;
    text-decoration: none;
    border-radius: 10px;
    border: 1px solid rgba(15,23,42,0.12);
    background: #ffffff;
    transition: color 0.15s ease, border-color 0.15s ease;
}
.site-header__login-link:hover,
.site-header__login-link:focus-visible {
    color: var(--brand-primary, #1f7a8c);
    border-color: var(--brand-primary, #1f7a8c);
}

.site-header__user {
    position: relative;
}
.site-header__user-trigger {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: var(--brand-surface-muted, #e1e5f2);
    color: var(--text-main, #0f2430);
    border-radius: 10px;
    border: 0;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
}
.site-header__user-trigger:hover { background: #d5dce9; }
.site-header__user-menu {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    min-width: 220px;
    background: #ffffff;
    border: 1px solid rgba(15,23,42,0.08);
    border-radius: 14px;
    box-shadow: 0 24px 48px rgba(15,23,42,0.14);
    padding: 6px;
    list-style: none;
    margin: 0;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(6px);
    transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
    z-index: 200;
}
.site-header__user.is-open .site-header__user-menu,
.site-header__user:hover .site-header__user-menu,
.site-header__user:focus-within .site-header__user-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
}
.site-header__user-menu li { list-style: none; }
.site-header__user-menu a,
.site-header__user-menu button {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 10px 12px;
    background: none;
    border: 0;
    border-radius: 8px;
    color: var(--text-main, #0f2430);
    font-weight: 500;
    font-size: 0.9rem;
    text-decoration: none;
    text-align: left;
    cursor: pointer;
}
.site-header__user-menu a:hover,
.site-header__user-menu button:hover {
    background: var(--brand-surface-muted, #e1e5f2);
    color: var(--brand-primary, #1f7a8c);
}
.site-header__user-menu .menu-divider {
    height: 1px;
    background: rgba(15,23,42,0.08);
    margin: 6px 4px;
}

/* Hamburger */
.site-header__hamburger {
    display: none;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    background: transparent;
    border: 1px solid rgba(15,23,42,0.12);
    border-radius: 10px;
    color: var(--text-main, #0f2430);
    cursor: pointer;
    flex-shrink: 0;
}
.site-header__hamburger:hover { border-color: var(--brand-primary, #1f7a8c); color: var(--brand-primary, #1f7a8c); }
.site-header__hamburger i { font-size: 1.15rem; line-height: 1; }

/* =========================================================================
   3. RESPONSIVE — collapse desktop nav below 1024px, off-canvas from right
   ========================================================================= */
@media (max-width: 1024px) {
    .site-header__nav,
    .site-header__desktop-cta { display: none; }
    .site-header__hamburger { display: inline-flex; }
    .site-header__cta { gap: 8px; }
    /* Keep the CTA visible above the hamburger on wide-tablet if you want,
       but on this design we collapse everything except a compact quote btn */
    .site-header__cta .site-header__quote-btn { display: none; }
}
@media (min-width: 1025px) {
    .site-header__mobile-only { display: none !important; }
}

/* Off-canvas panel */
.site-mobile-menu {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(360px, 88vw);
    background: #ffffff;
    box-shadow: -20px 0 40px rgba(15,23,42,0.16);
    transform: translateX(100%);
    transition: transform 0.28s ease;
    z-index: 1100;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    visibility: hidden;
}
.site-mobile-menu.is-open {
    transform: translateX(0);
    visibility: visible;
}

.site-mobile-menu__backdrop {
    position: fixed;
    inset: 0;
    background: rgba(2,43,58,0.42);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.28s ease, visibility 0.28s ease;
    z-index: 1090;
}
.site-mobile-menu__backdrop.is-open {
    opacity: 1;
    visibility: visible;
}

.site-mobile-menu__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid rgba(15,23,42,0.08);
    background: var(--brand-shell, #022b3a);
    color: #ffffff;
}
.site-mobile-menu__title {
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: 0.02em;
}
.site-mobile-menu__close {
    background: transparent;
    border: 0;
    color: #ffffff;
    font-size: 1.5rem;
    line-height: 1;
    padding: 4px 10px;
    cursor: pointer;
    border-radius: 8px;
}
.site-mobile-menu__close:hover { background: rgba(255,255,255,0.12); }

.site-mobile-menu__body {
    padding: 12px 12px 20px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.site-mobile-menu__link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 14px;
    color: var(--text-main, #0f2430);
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    border-radius: 10px;
    transition: background-color 0.15s ease, color 0.15s ease;
}
.site-mobile-menu__link:hover,
.site-mobile-menu__link.is-active {
    background: var(--brand-surface-muted, #e1e5f2);
    color: var(--brand-primary, #1f7a8c);
}
.site-mobile-menu__link i { font-size: 0.85rem; color: var(--text-muted, #51697a); }

.site-mobile-menu__group {
    border-radius: 10px;
    overflow: hidden;
}
.site-mobile-menu__group-toggle {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 14px;
    background: transparent;
    border: 0;
    color: var(--text-main, #0f2430);
    font-weight: 600;
    font-size: 1rem;
    text-align: left;
    cursor: pointer;
    border-radius: 10px;
}
.site-mobile-menu__group-toggle:hover { background: var(--brand-surface-muted, #e1e5f2); }
.site-mobile-menu__group-toggle i {
    transition: transform 0.2s ease;
    font-size: 0.75rem;
    color: var(--text-muted, #51697a);
}
.site-mobile-menu__group.is-open .site-mobile-menu__group-toggle i { transform: rotate(180deg); }

.site-mobile-menu__sublist {
    list-style: none;
    padding: 0 0 4px 8px;
    margin: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
}
.site-mobile-menu__group.is-open .site-mobile-menu__sublist { max-height: 400px; }
.site-mobile-menu__sublist a {
    display: block;
    padding: 10px 14px;
    color: var(--text-muted, #51697a);
    font-weight: 500;
    font-size: 0.92rem;
    text-decoration: none;
    border-radius: 8px;
}
.site-mobile-menu__sublist a:hover { color: var(--brand-primary, #1f7a8c); background: var(--brand-surface-muted, #e1e5f2); }

.site-mobile-menu__cta {
    margin: 16px 8px 6px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.site-mobile-menu__cta .site-header__quote-btn { width: 100%; justify-content: center; padding: 14px; font-size: 1rem; }
.site-mobile-menu__cta .site-header__login-link { width: 100%; justify-content: center; padding: 12px; }

.site-mobile-menu__contact {
    margin: 14px 8px 0;
    padding: 14px;
    background: var(--brand-surface-muted, #e1e5f2);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.site-mobile-menu__contact-title {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted, #51697a);
    font-weight: 700;
}
.site-mobile-menu__contact-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}
.site-mobile-menu__contact-row a.tel {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--brand-primary, #1f7a8c);
    font-weight: 700;
    text-decoration: none;
    font-size: 0.95rem;
}
.site-mobile-menu__contact-row a.wa {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 999px;
    background: #25D366;
    color: #ffffff;
    text-decoration: none;
}

/* Lock body scroll while off-canvas is open */
body.has-mobile-menu-open { overflow: hidden; }

/* =========================================================================
   4. FOOTER — modern 4-column grid
   ========================================================================= */
footer.site-footer {
    background: var(--brand-shell, #022b3a);
    color: rgba(255,255,255,0.82);
    padding: 60px 0 24px;
    margin-top: 60px;
}

.site-footer__grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
    align-items: start;
}

@media (max-width: 1024px) {
    .site-footer__grid {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }
}
@media (max-width: 640px) {
    .site-footer__grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }
    footer.site-footer { padding: 44px 0 20px; margin-top: 40px; }
}

.site-footer__brand-logo {
    display: inline-flex;
    margin-bottom: 16px;
}
.site-footer__brand-logo img {
    display: block;
    height: 40px;
    width: auto;
    max-width: 300px;
}

.site-footer__tagline {
    color: rgba(255,255,255,0.78);
    font-size: 0.95rem;
    line-height: 1.65;
    margin: 0 0 20px;
    max-width: 340px;
}

.site-footer__contact-list {
    list-style: none;
    padding: 0;
    margin: 0 0 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.site-footer__contact-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.92rem;
}
.site-footer__contact-list .icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: rgba(255,255,255,0.08);
    border-radius: 8px;
    color: #7fd7c4;
    flex-shrink: 0;
    font-size: 0.85rem;
}
.site-footer__contact-list a {
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.15s ease;
}
.site-footer__contact-list a:hover { color: #7fd7c4; }
.site-footer__contact-list .wa-mini {
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    background: #25D366;
    color: #ffffff;
    border-radius: 999px;
    text-decoration: none;
    transition: transform 0.15s ease;
}
.site-footer__contact-list .wa-mini:hover { transform: translateY(-1px); }

.site-footer__social {
    display: flex;
    gap: 10px;
    margin-top: 8px;
}
.site-footer__social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.08);
    border-radius: 999px;
    color: #ffffff;
    text-decoration: none;
    transition: background-color 0.15s ease, transform 0.15s ease;
}
.site-footer__social a:hover {
    background: var(--brand-primary, #1f7a8c);
    transform: translateY(-2px);
}

.site-footer__col-title {
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin: 0 0 16px;
}

.site-footer__list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.site-footer__list a {
    color: rgba(255,255,255,0.72);
    font-size: 0.92rem;
    text-decoration: none;
    transition: color 0.15s ease;
    line-height: 1.5;
}
.site-footer__list a:hover { color: #ffffff; }

/* Secondary strip: coverage + specialist services */
.site-footer__secondary {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    padding: 28px 0;
    border-top: 1px solid rgba(255,255,255,0.10);
    border-bottom: 1px solid rgba(255,255,255,0.10);
    margin-bottom: 20px;
}
@media (max-width: 768px) {
    .site-footer__secondary { grid-template-columns: 1fr; gap: 24px; }
}

.site-footer__secondary h5 {
    color: #ffffff;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin: 0 0 10px;
    font-weight: 700;
}
.site-footer__secondary p,
.site-footer__secondary .site-footer__inline-list {
    color: rgba(255,255,255,0.66);
    font-size: 0.88rem;
    line-height: 1.65;
    margin: 0;
}
.site-footer__inline-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px 12px;
}
.site-footer__inline-list a {
    color: rgba(255,255,255,0.72);
    text-decoration: none;
    font-size: 0.86rem;
    transition: color 0.15s ease;
}
.site-footer__inline-list a::after { content: "\00b7"; margin-left: 12px; color: rgba(255,255,255,0.24); }
.site-footer__inline-list li:last-child a::after { content: ""; }
.site-footer__inline-list a:hover { color: #ffffff; }

/* Trust / bottom row */
.site-footer__bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.10);
    color: rgba(255,255,255,0.6);
    font-size: 0.84rem;
    flex-wrap: wrap;
}
.site-footer__bottom p { margin: 0; }
.site-footer__bottom-trust {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: rgba(255,255,255,0.82);
    font-size: 0.84rem;
    font-weight: 500;
}
.site-footer__bottom-trust .badge-star {
    color: #ffbf00;
}
.site-footer__bottom-legal {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    color: rgba(255,255,255,0.6);
}
.site-footer__bottom-legal a { color: rgba(255,255,255,0.66); text-decoration: none; }
.site-footer__bottom-legal a:hover { color: #ffffff; }

/* =========================================================================
   5. Neutralise legacy overrides from taxi-booking.css so the new markup
      renders cleanly (the old `.combined-nav`, `.main-links`, `.contact-phones`
      styles targeted the previous markup; we still keep them scoped in the CSS
      for other pages that render the old layout, but the new .site-header /
      .site-footer components use isolated class names above).
   ========================================================================= */
