/* FlyTaxi modern header overhaul */
.header {
    background: rgba(255, 255, 255, 0.82);
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

[data-theme='dark'] .header {
    background: rgba(17, 24, 39, 0.82);
    border-bottom-color: rgba(255, 255, 255, 0.08);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.28);
}

.header-content {
    min-height: 76px;
    gap: 18px;
}

.header-left {
    gap: 12px;
}

.logo-link {
    padding: 8px 12px;
    border-radius: 16px;
    transition: background 0.2s ease, transform 0.2s ease;
}

.logo-link:hover {
    background: rgba(62, 109, 38, 0.08);
    transform: translateY(-1px);
}

.logo-text {
    color: #3e6d26;
    background: none;
    -webkit-text-fill-color: initial;
}

.nav {
    flex: 1 1 auto;
    justify-content: center;
}

.nav-list.desktop-only {
    display: flex !important;
    align-items: center;
    gap: 8px;
    padding: 8px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 999px;
    background: rgba(248, 250, 252, 0.88);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
}

[data-theme='dark'] .nav-list.desktop-only {
    background: rgba(15, 23, 42, 0.78);
    border-color: rgba(255, 255, 255, 0.08);
}

.nav-list.desktop-only .nav-item {
    position: relative;
}

.nav-list.desktop-only .nav-link-wrapper {
    gap: 6px;
}

.nav-list.desktop-only .nav-link {
    padding: 11px 14px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-color);
    letter-spacing: 0.01em;
}

.nav-list.desktop-only .nav-link:hover,
.nav-list.desktop-only .nav-item:hover > .nav-link-wrapper > .nav-link {
    background: rgba(62, 109, 38, 0.1);
    color: #3e6d26;
}

.nav-list.desktop-only .nav-link::after {
    display: none;
}

.nav-list.desktop-only .mobile-dropdown-toggle {
    display: inline-flex;
    width: 30px;
    height: 30px;
    align-items: center;
    justify-content: center;
    margin-left: 0;
    padding: 0;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.05);
}

.nav-list.desktop-only .mobile-dropdown-toggle svg {
    width: 14px;
    height: 14px;
}

.dropdown-menu {
    min-width: 260px;
    padding: 10px 0;
    border-radius: 18px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 22px 50px rgba(15, 23, 42, 0.14);
}

[data-theme='dark'] .dropdown-menu {
    background: rgba(17, 24, 39, 0.98);
    border-color: rgba(255, 255, 255, 0.08);
}

.dropdown-link {
    padding: 12px 16px;
    font-size: 14px;
    border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}

.dropdown-link:hover {
    background: rgba(62, 109, 38, 0.08);
}

.header-actions {
    gap: 10px;
    margin-left: auto;
}

.header-phone {
    padding: 11px 14px;
    border-radius: 999px;
    background: rgba(62, 109, 38, 0.08);
    border: 1px solid rgba(62, 109, 38, 0.12);
}

.header-phone:hover {
    background: rgba(62, 109, 38, 0.14);
    color: #2d5a1c;
}

.order-btn {
    padding: 11px 18px;
    border-radius: 999px;
    box-shadow: 0 10px 24px rgba(62, 109, 38, 0.18);
}

.mobile-menu-toggle {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: rgba(62, 109, 38, 0.08);
    border: 1px solid rgba(62, 109, 38, 0.12);
    transition: transform 0.2s ease, background 0.2s ease;
}

.mobile-menu-toggle:hover {
    background: rgba(62, 109, 38, 0.14);
    transform: translateY(-1px);
}

.mobile-menu-toggle span {
    width: 20px;
    height: 2px;
}

.mobile-menu {
    background: rgba(15, 23, 42, 0.38);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    padding: 18px;
}

.mobile-menu.open {
    display: flex;
}

.mobile-menu::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.08), rgba(15, 23, 42, 0.26));
}

.mobile-menu-header,
.mobile-menu-list {
    position: relative;
    z-index: 1;
    width: min(100%, 760px);
    margin-left: auto;
    margin-right: auto;
}

.mobile-menu-header {
    margin-top: 12px;
    padding: 18px 18px 16px;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.16);
}

[data-theme='dark'] .mobile-menu-header {
    background: rgba(17, 24, 39, 0.92);
    border-color: rgba(255, 255, 255, 0.08);
}

.mobile-lang-theme-row {
    gap: 12px;
}

.mobile-menu-close {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: rgba(15, 23, 42, 0.05);
}

.mobile-menu-list {
    display: grid;
    gap: 10px;
    margin-top: 16px;
    padding: 0 0 28px;
}

.mobile-menu-item {
    padding: 0;
}

.mobile-menu-link-row {
    padding: 16px 18px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.mobile-menu-link-row:hover {
    transform: translateY(-1px);
    box-shadow: 0 18px 36px rgba(15, 23, 42, 0.12);
}

[data-theme='dark'] .mobile-menu-link-row {
    background: rgba(17, 24, 39, 0.92);
    border-color: rgba(255, 255, 255, 0.08);
}

.mobile-menu-link {
    font-size: 18px;
    font-weight: 700;
    padding: 0;
}

.mobile-submenu-toggle {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: rgba(15, 23, 42, 0.05);
}

.mobile-submenu {
    padding: 12px 0 0 16px;
    margin: 0;
    border-left: 1px solid rgba(255, 255, 255, 0.12);
    gap: 8px;
}

.mobile-submenu-link {
    padding: 12px 14px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(15, 23, 42, 0.06);
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.06);
}

[data-theme='dark'] .mobile-submenu-link {
    background: rgba(30, 41, 59, 0.9);
    border-color: rgba(255, 255, 255, 0.06);
}

@media (max-width: 1200px) {
    .header-content {
        position: relative;
    }

    .nav {
        display: none !important;
    }

    .language-switcher,
    .theme-toggle-wrapper,
    .header-phone,
    .order-btn {
        display: none !important;
    }

    .mobile-menu-toggle {
        display: flex !important;
    }

    .mobile-order-btn {
        display: inline-flex !important;
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        align-items: center;
        justify-content: center;
        min-width: auto;
        min-height: 44px;
        margin: 0;
        padding: 10px 18px;
        border-radius: 12px;
        background: #3e6d26;
        color: #fff;
        font-size: 14px;
        font-weight: 600;
        line-height: 1;
        box-shadow: 0 4px 12px rgba(62, 109, 38, 0.24);
    }

    .mobile-order-btn:hover {
        background: #2d5a1c;
        transform: translateX(-50%) translateY(-1px);
        box-shadow: 0 6px 16px rgba(62, 109, 38, 0.3);
    }

    .mobile-order-btn:active {
        transform: translateX(-50%);
        box-shadow: 0 2px 8px rgba(62, 109, 38, 0.22);
    }

    .header-content {
        min-height: 68px;
    }
}

@media (max-width: 768px) {
    .header-content {
        min-height: 60px;
    }

    .header-left {
        gap: 8px;
    }

    .logo svg {
        width: 28px;
        height: 28px;
    }

    .logo-text {
        font-size: 15px;
    }

    .mobile-menu {
        padding: 12px;
    }

    .mobile-menu-header,
    .mobile-menu-list {
        width: 100%;
    }

    .mobile-menu-header {
        margin-top: 0;
        padding: 14px 14px 12px;
        border-radius: 20px;
    }

    .mobile-menu-list {
        margin-top: 12px;
    }

    .mobile-menu-link-row {
        padding: 14px 16px;
        border-radius: 18px;
    }

    .mobile-menu-link {
        font-size: 17px;
    }
}

@media (max-width: 480px) {
    .header-content {
        min-height: 56px;
    }

    .logo-text {
        font-size: 14px;
    }

    .mobile-menu-toggle {
        width: 44px;
        height: 44px;
        border-radius: 12px;
    }

    .mobile-menu-header {
        padding: 12px;
    }

    .mobile-menu-link-row {
        padding: 13px 14px;
    }

    .mobile-menu-link {
        font-size: 16px;
    }
}

/* FlyTaxi modern footer overhaul */
.footer-main {
    position: relative;
    overflow: hidden;
    padding: 72px 0 30px !important;
    border-top: 1px solid rgba(62, 109, 38, 0.12) !important;
    background:
        radial-gradient(circle at 12% 10%, rgba(62, 109, 38, 0.16), transparent 32%),
        radial-gradient(circle at 86% 18%, rgba(255, 214, 0, 0.16), transparent 28%),
        linear-gradient(180deg, #f7faf6 0%, #eef5eb 100%) !important;
    color: #172033 !important;
}

.footer-main::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.74), rgba(255, 255, 255, 0.35)),
        url("data:image/svg+xml,%3Csvg width='120' height='120' viewBox='0 0 120 120' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='%233e6d26' stroke-opacity='.08'%3E%3Cpath d='M0 60h120M60 0v120'/%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}

.footer-shell {
    position: relative;
    z-index: 1;
    width: min(100% - 32px, 1480px);
    margin: 0 auto;
}

.footer-top {
    display: grid !important;
    grid-template-columns: minmax(260px, 1.28fr) repeat(3, minmax(190px, 0.72fr));
    gap: 18px !important;
    align-items: stretch !important;
    margin: 0 0 22px !important;
    padding: 0 !important;
}

.footer-brand-card,
.footer-card {
    min-width: 0;
    border: 1px solid rgba(62, 109, 38, 0.12);
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.76);
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.08);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.footer-brand-card {
    padding: 30px;
}

.footer-card {
    padding: 26px 24px;
}

.footer-logo-row {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
}

.footer-logo-row svg {
    width: 42px;
    height: 42px;
    filter: drop-shadow(0 10px 18px rgba(62, 109, 38, 0.2));
}

.footer-logo-text {
    font-size: 28px !important;
    font-weight: 800 !important;
    letter-spacing: -0.03em;
    color: #2f5f1f !important;
}

.footer-description {
    max-width: 370px !important;
    margin: 0 0 22px !important;
    color: rgba(23, 32, 51, 0.72) !important;
    font-size: 16px !important;
    line-height: 1.65 !important;
}

.footer-main-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 20px;
    border-radius: 999px;
    background: #2f6f22;
    color: #fff !important;
    font-weight: 800;
    text-decoration: none;
    box-shadow: 0 14px 26px rgba(62, 109, 38, 0.22);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.footer-main-cta:hover {
    background: #255a1a;
    transform: translateY(-1px);
    box-shadow: 0 18px 34px rgba(62, 109, 38, 0.28);
}

.footer-heading {
    margin: 0 0 18px !important;
    padding: 0 0 12px !important;
    color: #172033 !important;
    font-size: 18px !important;
    font-weight: 800 !important;
}

.footer-heading::after {
    width: 42px !important;
    height: 3px !important;
    background: linear-gradient(90deg, #3e6d26, #ffd600) !important;
}

.footer-phone-list,
.footer-links {
    display: grid !important;
    gap: 10px !important;
}

.footer-phone {
    margin: 0 !important;
}

.footer-phone-link,
.footer-link {
    display: flex !important;
    align-items: center;
    min-height: 42px;
    padding: 10px 12px;
    border-radius: 14px;
    background: rgba(62, 109, 38, 0.06);
    color: rgba(23, 32, 51, 0.82) !important;
    font-size: 15px !important;
    font-weight: 650 !important;
    line-height: 1.25;
    text-decoration: none !important;
    transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.footer-phone-link span {
    margin-left: 6px;
    color: rgba(23, 32, 51, 0.55);
    font-size: 12px;
    font-weight: 700;
    text-transform: none;
}

.footer-phone-link:hover,
.footer-link:hover {
    background: rgba(62, 109, 38, 0.12) !important;
    color: #2f5f1f !important;
    transform: translateX(3px) !important;
    box-shadow: none !important;
}

.footer-link-primary {
    justify-content: center;
    margin-top: 4px;
    background: #ffd600 !important;
    color: #172033 !important;
}

.footer-link-primary:hover {
    background: #f2c900 !important;
    color: #172033 !important;
}

.footer-social {
    display: flex !important;
    gap: 12px !important;
    margin-top: 22px !important;
}

.footer-social-link {
    width: 48px !important;
    height: 48px !important;
    border: 1px solid rgba(62, 109, 38, 0.12) !important;
    border-radius: 16px !important;
    background: rgba(255, 255, 255, 0.9) !important;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

.footer-social-link:hover {
    background: #2f6f22 !important;
    transform: translateY(-2px) !important;
}

.footer-social-icon {
    width: 22px !important;
    height: 22px !important;
}

.footer-social-link:hover .footer-social-icon {
    transform: scale(1.08) !important;
    filter: brightness(0) invert(1);
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 20px !important;
    padding: 18px 4px 0 !important;
    border-top: 1px solid rgba(62, 109, 38, 0.12) !important;
    color: rgba(23, 32, 51, 0.64) !important;
    text-align: left !important;
}

.footer-bottom p {
    margin: 0;
}

.footer-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
}

.footer-badges span {
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.72);
    color: #2f5f1f;
    font-size: 13px;
    font-weight: 800;
}

[data-theme='dark'] .footer-main {
    background:
        radial-gradient(circle at 12% 10%, rgba(91, 161, 58, 0.18), transparent 32%),
        radial-gradient(circle at 86% 18%, rgba(255, 214, 0, 0.08), transparent 28%),
        linear-gradient(180deg, #111827 0%, #0f172a 100%) !important;
    color: #f8fafc !important;
}

[data-theme='dark'] .footer-main::before {
    background:
        linear-gradient(135deg, rgba(15, 23, 42, 0.76), rgba(15, 23, 42, 0.42)),
        url("data:image/svg+xml,%3Csvg width='120' height='120' viewBox='0 0 120 120' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='%23ffffff' stroke-opacity='.06'%3E%3Cpath d='M0 60h120M60 0v120'/%3E%3C/g%3E%3C/svg%3E");
}

[data-theme='dark'] .footer-brand-card,
[data-theme='dark'] .footer-card,
[data-theme='dark'] .footer-social-link,
[data-theme='dark'] .footer-badges span {
    background: rgba(15, 23, 42, 0.74) !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
}

[data-theme='dark'] .footer-logo-text,
[data-theme='dark'] .footer-heading,
[data-theme='dark'] .footer-link-primary {
    color: #f8fafc !important;
}

[data-theme='dark'] .footer-description,
[data-theme='dark'] .footer-bottom {
    color: rgba(248, 250, 252, 0.68) !important;
}

[data-theme='dark'] .footer-phone-link,
[data-theme='dark'] .footer-link {
    background: rgba(255, 255, 255, 0.06);
    color: rgba(248, 250, 252, 0.82) !important;
}

[data-theme='dark'] .footer-phone-link:hover,
[data-theme='dark'] .footer-link:hover {
    background: rgba(255, 214, 0, 0.12) !important;
    color: #ffd600 !important;
}

@media (max-width: 1100px) {
    .footer-top {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .footer-brand-card {
        grid-column: 1 / -1;
    }
}

@media (max-width: 700px) {
    .footer-main {
        padding: 48px 0 24px !important;
    }

    .footer-shell {
        width: min(100% - 24px, 1480px);
    }

    .footer-top {
        grid-template-columns: 1fr;
        gap: 12px !important;
    }

    .footer-brand-card,
    .footer-card {
        padding: 22px;
        border-radius: 22px;
    }

    .footer-logo-text {
        font-size: 24px !important;
    }

    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
    }

    .footer-badges {
        justify-content: flex-start;
    }
}

/* Late overrides for legacy bundled header rules */
@media (min-width: 992px) {
    .nav-list.desktop-only .nav-item.group > .nav-link-wrapper > .nav-link::after {
        content: none !important;
        display: none !important;
        border: 0 !important;
        width: 0 !important;
        height: 0 !important;
        margin: 0 !important;
    }

    .nav-list.desktop-only .mobile-dropdown-toggle {
        min-width: 34px !important;
        min-height: 34px !important;
        width: 34px !important;
        height: 34px !important;
        padding: 0 !important;
        margin-left: 0 !important;
        background: rgba(62, 109, 38, 0.08) !important;
        color: #2f5f1f !important;
    }

    .nav-list.desktop-only .mobile-dropdown-toggle:hover {
        background: rgba(62, 109, 38, 0.14) !important;
    }
}

@media (max-width: 991px) {
    .mobile-menu {
        background:
            radial-gradient(circle at 12% 4%, rgba(62, 109, 38, 0.28), transparent 34%),
            linear-gradient(180deg, rgba(15, 23, 42, 0.5), rgba(15, 23, 42, 0.42)) !important;
    }

    .mobile-menu::before {
        background:
            linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0)),
            radial-gradient(circle at 100% 100%, rgba(255, 214, 0, 0.14), transparent 34%) !important;
    }

    .mobile-menu-link-row {
        border-color: rgba(62, 109, 38, 0.1) !important;
    }

    .mobile-menu-link-row::before {
        content: "";
        width: 4px;
        align-self: stretch;
        margin: 2px 2px 2px 0;
        border-radius: 999px;
        background: linear-gradient(180deg, #3e6d26, #ffd600);
        opacity: 0.72;
    }
}
