@media (max-width: 1024px) {
    :root {
        --tep-site-gutter: 24px;
    }

    .tep-hero--split .tep-hero-inner,
    .tep-hero-inner {
        grid-template-columns: minmax(0, 1fr);
    }

    .tep-header-inner {
        padding: 0 var(--tep-site-gutter);
        gap: 16px;
    }

    .tep-header-actions {
        gap: 12px;
        flex-wrap: wrap;
        justify-content: flex-end;
    }

    .tep-phone {
        display: none;
    }

    .tep-nav-menu {
        gap: 20px;
    }

    .tep-nav-menu li a {
        font-size: 12px;
    }

    .tep-engagements-grid {
        gap: 32px;
    }

    .tep-services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .tep-fleet-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .tep-careers-split {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .tep-careers-jobs-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .tep-footer-inner {
        flex-wrap: wrap;
        justify-content: center;
        text-align: center;
    }

    .tep-footer-brand,
    .tep-footer-nav,
    .tep-footer-social {
        flex: 1 1 100%;
        justify-content: center;
    }

    .tep-footer-links {
        justify-content: center;
    }

    /* Match booking.css specificity to win the !important battle */
    .tep-booking-page .chbs-layout-50x50,
    .tep-booking-page .chbs-main .chbs-layout-50x50,
    .tep-booking-page .chbs-main[class*="chbs-width-"] .chbs-layout-50x50 {
        display: block !important;
        grid-template-columns: none !important;
    }

    .tep-booking-page .chbs-layout-column-left,
    .tep-booking-page .chbs-main-content-step-1 .chbs-layout-column-left {
        width: 100% !important;
        float: none !important;
    }

    .tep-booking-page .chbs-layout-column-right,
    .tep-booking-page .chbs-main-content-step-1 .chbs-layout-column-right {
        width: 100% !important;
        float: none !important;
        border-left: none !important;
        border-top: 1px solid rgba(201, 168, 76, 0.15) !important;
        position: static !important;
        height: auto !important;
        overflow: visible !important;
    }

    .tep-booking-page .chbs-google-map {
        flex: none !important;
        height: 300px !important;
        min-height: 0 !important;
    }
}

@media (max-width: 768px) {
    :root {
        --tep-header-height: 70px;
        --tep-site-gutter: 16px;
    }

    .tep-header {
        background: rgba(0, 0, 0, 0.95);
    }

    .tep-header.tep-header-scrolled {
        backdrop-filter: none;
    }

    .tep-menu-toggle {
        display: flex;
        order: 3;
        position: relative;
        z-index: 3;
    }

    .tep-header-inner {
        flex-wrap: wrap;
        padding: 0 var(--tep-site-gutter);
    }

    .tep-logo {
        order: 1;
        flex: 1;
    }

    .tep-why-grid,
    .tep-why-layout,
    .tep-services-grid,
    .tep-contact-grid,
    .tep-gallery-grid,
    .tep-info-bar-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .tep-hero,
    .tep-hero-row {
        margin-top: var(--tep-header-height) !important;
    }

    .tep-page-hero {
        margin-top: 0 !important;
    }

    .tep-page-hero-inner {
        padding: calc(var(--tep-header-height) + 16px) var(--tep-site-gutter) 40px;
    }

    .tep-hero-inner {
        grid-template-columns: 1fr;
        gap: 0;
        padding: 48px var(--tep-site-gutter) 56px;
    }

    .tep-hero-panel {
        gap: 32px;
        max-width: none;
        width: 100%;
    }

    .tep-hero-eyebrow {
        font-size: 13px;
        letter-spacing: 2px;
        line-height: 1.6;
        color: var(--tep-gold);
        text-shadow: 0 1px 4px rgba(0, 0, 0, 0.7);
    }

    .tep-hero-headline {
        line-height: 1.3;
        letter-spacing: 1.5px;
    }

    .tep-hero-cta {
        width: 100%;
        padding-top: 4px;
    }

    .tep-btn-hero-booking {
        width: 100%;
        max-width: 360px;
    }

    .tep-info-item {
        justify-content: flex-start;
    }

    .tep-why,
    .tep-services {
        padding: 60px 0 70px;
    }

    .tep-booking-page .chbs-main-navigation-default > ul {
        flex-direction: column;
        gap: 0;
    }

    .tep-booking-page .chbs-main-navigation-default > ul > li > a > span:last-child {
        font-size: 10px !important;
    }

    .tep-booking-page .chbs-layout-column-left,
    .tep-booking-page .chbs-layout-column-right {
        padding: 20px 16px 24px !important;
    }

    .tep-booking-page .chbs-form-field-pickup-date-time,
    .tep-booking-page .chbs-form-field-return-date-time {
        grid-template-columns: minmax(0, 1fr);
    }

    .tep-booking-page {
        padding-bottom: 96px;
    }

    .tep-quote {
        padding: 20px 24px;
    }

    .tep-logo-img--vertical {
        max-height: 56px;
    }

    .tep-logo-img--circular {
        max-height: 52px;
    }

    .tep-logo-img--header,
    .tep-logo-svg.tep-logo-img--header {
        max-height: 48px;
    }

    .tep-header-actions {
        order: 2;
        gap: 10px;
        flex-wrap: nowrap;
        position: relative;
        z-index: 2;
    }

    .tep-lang-switcher,
    .tep-lang-toggle {
        order: 1;
    }

    .tep-btn-header {
        order: 2;
        padding: 12px 16px;
        font-size: 11px;
        letter-spacing: 1px;
        min-height: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        white-space: nowrap;
    }

    .tep-phone {
        display: none;
    }

    .tep-nav {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 1;
        width: 100%;
        max-width: none;
        flex: none;
        background: rgba(0, 0, 0, 0.98);
        padding: calc(var(--tep-header-height) + 24px) 24px calc(32px + env(safe-area-inset-bottom, 0px));
        transform: translateX(100%);
        transition: transform var(--tep-transition), visibility 0s linear 0.3s;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        visibility: hidden;
    }

    .tep-nav.active {
        transform: translateX(0);
        visibility: visible;
        transition: transform var(--tep-transition), visibility 0s;
    }

    .tep-nav-menu {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        width: 100%;
    }

    .tep-nav-menu li {
        width: 100%;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }

    .tep-nav-menu li a {
        display: block;
        padding: 18px 0;
        font-size: 14px;
        white-space: normal;
        line-height: 1.45;
    }

    .tep-nav-menu .menu-item-has-children > a::before {
        float: right;
        margin-left: 8px;
    }

    .tep-nav-menu li.menu-item-has-children::after {
        display: none;
    }

    .tep-nav-menu .sub-menu {
        display: none;
        position: static;
        min-width: 0;
        background: transparent;
        border: none;
        padding: 0 0 8px 16px;
        box-shadow: none;
    }

    .tep-nav-menu .menu-item-has-children.is-expanded > .sub-menu {
        display: block;
    }

    .tep-nav-menu .sub-menu li {
        border-bottom: none;
    }

    .tep-nav-menu .sub-menu li a {
        padding: 10px 0;
        font-size: 13px;
        color: rgba(255, 255, 255, 0.75);
    }

    .tep-hero,
    .tep-hero-row {
        min-height: clamp(460px, 65vh, 680px);
    }

    :root {
        --tep-hero-offset: 72px;
    }

    .tep-hero-content {
        padding: calc(var(--tep-header-height) + var(--tep-hero-offset)) var(--tep-site-gutter) 56px;
    }

    .tep-hero-title {
        letter-spacing: 2px;
    }

    .tep-hero-subtitle {
        letter-spacing: 2px;
    }

    .tep-btn-hero {
        margin-top: 28px;
    }

    .tep-engagements,
    .tep-engagements-row {
        padding: 60px 0 80px;
    }

    .tep-section-title {
        margin-bottom: 48px;
        letter-spacing: 2px;
    }

    .tep-engagements-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .tep-engagement-item {
        padding: 0;
    }

    .tep-star-decoration {
        right: 20px;
        bottom: 20px;
    }

    .tep-star-decoration svg {
        width: 36px;
        height: 36px;
    }

    .tep-footer {
        padding: 40px 0 24px;
    }

    .tep-footer-inner {
        padding: 0 var(--tep-site-gutter);
        gap: 24px;
    }

    .tep-footer-links {
        flex-direction: column;
        gap: 16px;
    }

    .tep-footer-bottom {
        margin-top: 24px;
    }

    .tep-wpbakery-content .vc_row .wpb_column {
        margin-bottom: 0;
    }

    .tep-contact-top,
    .tep-vehicle-layout {
        grid-template-columns: 1fr;
    }

    .tep-vehicle-showcase__thumbs {
        grid-template-columns: repeat(2, 1fr);
    }

    .tep-vehicle-showcase__main {
        aspect-ratio: 4 / 3;
    }

    .tep-contact-main {
        gap: 24px;
    }

    .tep-contact-image {
        order: 3;
    }

    .tep-contact-form-section {
        padding: 28px 24px;
    }

    .tep-form-row input,
    .tep-form-row select,
    .tep-form-row textarea {
        width: 100%;
        box-sizing: border-box;
        font-size: 16px;
    }

    .tep-contact-image img {
        min-height: 240px;
        height: auto;
    }

    .tep-fleet-grid {
        grid-template-columns: 1fr;
    }

    .tep-values-grid--careers {
        grid-template-columns: 1fr;
    }

    .tep-careers-jobs-grid {
        grid-template-columns: 1fr;
    }

    .tep-booking-widget--chbs {
        max-width: 100%;
    }

    .tep-booking-widget--chbs .chbs-form-field-pickup-date-time,
    .tep-booking-widget--chbs .chbs-form-field-return-date-time {
        grid-template-columns: 1fr;
    }

    .tep-booking-widget--chbs .chbs-tab.ui-tabs .ui-tabs-nav > li > a {
        font-size: 10px !important;
        padding: 12px 8px !important;
    }

    .tep-services-grid {
        grid-template-columns: 1fr;
    }

    .tep-hero-content,
    .tep-hero-subtitle,
    .tep-title-band,
    .tep-quote-section,
    .tep-engagements-heading,
    .tep-section-title,
    .tep-section-lead,
    .tep-why-lead,
    .tep-engagement-item,
    .tep-contact-item,
    .tep-contact-actions,
    .tep-services-cta,
    .tep-page-prose,
    .tep-page-zone,
    .tep-page-hero-inner {
        text-align: left;
    }

    .tep-hero-subtitle,
    .tep-quote-block,
    .tep-engagements-heading,
    .tep-why-lead,
    .tep-section-lead {
        margin-left: 0;
        margin-right: 0;
    }

    .tep-why-heading {
        align-items: flex-start;
    }

    .tep-section-title {
        align-items: flex-start;
    }

    .tep-engagement-icon,
    .tep-wpbakery-content .vc_icon_element {
        text-align: left !important;
    }

    .tep-contact-actions {
        justify-content: flex-start;
    }

    .tep-footer-inner {
        justify-content: flex-start;
        text-align: left;
    }

    .tep-footer-brand,
    .tep-footer-nav,
    .tep-footer-social,
    .tep-footer-links {
        justify-content: flex-start;
        align-items: flex-start;
    }

    .tep-footer-bottom {
        text-align: left;
    }

    .tep-hero-row .wpb_text_column,
    .tep-hero-row .vc_col-has-fill > .vc_column-inner,
    .tep-hero-row .vc_btn3-container,
    .tep-hero-cta-row .vc_column-inner,
    .tep-wpbakery-content .vc_custom_heading.tep-hero-title,
    .tep-wpbakery-content .vc_custom_heading.tep-hero-subtitle,
    .tep-wpbakery-content .tep-engagements-grid-row .vc_column-inner,
    .tep-wpbakery-content .tep-dark-row .wpb_text_column,
    .tep-wpbakery-content .tep-dark-row .vc_column-inner,
    .tep-wpbakery-content .tep-why-row .vc_column-inner,
    .tep-wpbakery-content .tep-services-row .vc_column-inner,
    .tep-wpbakery-content .tep-contact-strip-row .vc_column-inner,
    .tep-wpbakery-content .wpb_text_column,
    .tep-wpbakery-content .vc_column-inner,
    .tep-wpbakery-content .vc_btn3-container {
        text-align: left !important;
    }

    .tep-wpbakery-content .tep-engagements-row > .wpb_column,
    .tep-wpbakery-content .tep-engagements-row > .wpb_column.vc_col-sm-4,
    .tep-wpbakery-content .tep-engagements-row > .wpb_column[class*="vc_col-sm-4"],
    .tep-wpbakery-content .tep-engagements-grid-row .wpb_column,
    .tep-wpbakery-content .tep-services-grid-row .wpb_column {
        width: 100% !important;
        float: none !important;
    }
}

.admin-bar .tep-hero-content,
.admin-bar .tep-hero-row .vc_column-inner,
.admin-bar .tep-hero-row .wpb_column:not(.vc_col-has-fill) > .vc_column-inner,
.admin-bar .tep-hero-inner {
    padding-top: calc(var(--tep-header-height) + var(--tep-hero-offset) + 32px) !important;
}

.admin-bar .tep-page-hero-inner {
    padding-top: calc(var(--tep-header-height) + 62px) !important;
}

@media (max-width: 782px) {
    .admin-bar .tep-hero-content,
    .admin-bar .tep-hero-row .vc_column-inner,
    .admin-bar .tep-hero-row .wpb_column:not(.vc_col-has-fill) > .vc_column-inner,
    .admin-bar .tep-hero-inner {
        padding-top: calc(var(--tep-header-height) + var(--tep-hero-offset) + 46px) !important;
    }

    .admin-bar .tep-page-hero-inner {
        padding-top: calc(var(--tep-header-height) + 62px) !important;
    }
}

.admin-bar .tep-site-header {
    top: 32px;
}

.admin-bar .tep-nav {
    top: 32px;
}

@media (max-width: 782px) {
    .admin-bar .tep-site-header {
        top: 46px;
    }

    .admin-bar .tep-nav {
        top: 46px;
    }
}

@media (max-width: 480px) {
    .tep-btn-header {
        padding: 12px 14px;
        font-size: 11px;
    }

    .tep-lang-switcher a,
    .tep-lang-switcher select,
    .tep-lang-toggle__link {
        min-height: 44px;
        font-size: 11px;
    }

    .tep-hero-title {
        font-size: 24px;
    }

    .tep-page-hero-title {
        font-size: clamp(24px, 7vw, 32px);
    }

    .tep-btn-hero {
        padding: 14px 24px;
        font-size: 10px;
    }

    .tep-engagement-title {
        font-size: 16px;
    }

    .tep-engagement-text {
        font-size: 13px;
    }

    .tep-contact-form-section {
        padding: 24px 16px;
    }

    .tep-fleet-card__title {
        font-size: 20px;
    }

    .tep-careers-job-card h3 {
        font-size: 18px;
    }
}

body.tep-nav-open .tep-site-header {
    z-index: 10050;
}

body.tep-nav-open .tep-header {
    background: transparent;
    backdrop-filter: none !important;
}

body.tep-nav-open .tep-menu-toggle,
body.tep-nav-open .tep-header-actions,
body.tep-nav-open .tep-logo {
    position: relative;
    z-index: 3;
}

body.tep-nav-open .tep-btn-header {
    visibility: hidden;
}

body.tep-nav-open .tep-nav {
    z-index: 2;
}

@media (min-width: 769px) {
    .tep-nav {
        position: static;
        transform: none !important;
        visibility: visible !important;
        background: none;
        padding: 0;
        overflow: visible;
        width: auto;
        max-width: none;
        flex: 1;
        inset: auto;
    }

    body.tep-nav-open .tep-btn-header {
        visibility: visible;
    }
}
