/* ==========================================================================
   Laptop (header switches to the mobile topbar)
   ========================================================================== */
@media (max-width:1199px) {
    :root {
        --header-height: 73px
    }

    .mobile_header {
        display: block
    }

    .desktop_header {
        display: none
    }

    /* Service bar: 3 per row */
    .service-bar .row > * .service-bar__item {
        border-left: 0
    }

    .service-bar .row > :not(:nth-child(3n+1)) .service-bar__item {
        border-left: 1px solid var(--color-line)
    }

    .service-bar .row > :nth-child(n+4) .service-bar__item {
        border-top: 1px solid var(--color-line)
    }
}

/* ==========================================================================
   Tablet
   ========================================================================== */
@media (max-width:991px) {
    /* Hero */
    /* Hero: image on top (fading into the background), content below */
    .hero-banner {
        flex-direction: column;
        align-items: stretch;
        min-height: 0;
        padding: 0 0 56px
    }

    .hero-banner__media {
        position: relative;
        width: 100%;
        height: clamp(320px, 62vw, 540px)
    }

    .hero-banner__media::before {
        top: auto;
        right: 0;
        bottom: -1px;
        left: 0;
        width: auto;
        height: 35%;
        background: linear-gradient(0deg, var(--color-cream) 0%, rgba(247, 244, 238, 0) 100%)
    }

    .hero-banner__media img {
        object-position: 70% 25%
    }

    .hero-banner .container {
        margin-top: -24px
    }

    .hero-banner__content {
        max-width: 640px
    }

    .inner-hero::after {
        background: rgba(247, 244, 238, .88)
    }

    .inner-hero__bg {
        width: 100%
    }

    .sticky-col {
        position: static
    }

    .wide-gutter {
        --bs-gutter-y: var(--column-gap)
    }

    .wide-gutter > :first-child,
    .wide-gutter > :last-child {
        padding-right: calc(var(--bs-gutter-x) * .5);
        padding-left: calc(var(--bs-gutter-x) * .5)
    }

    /* Court / CTA */
    .split-media {
        min-height: 0;
        aspect-ratio: 4 / 3
    }

    .split-content {
        padding-inline: 0
    }

    .court-sec:not(.court-sec--bleed) .split-content {
        padding: clamp(70px, 9vw, 130px) clamp(24px, 4vw, 64px)
    }

    .court-sec--bleed .split-media {
        aspect-ratio: 4 / 3;
        margin: 0 -20px
    }

    .court-sec--bleed .split-content {
        padding-block: clamp(56px, 9vw, 130px)
    }

    .cta-sec__content {
        padding: 70px 24px 70px 0
    }

    .page-template-flexible-template .cta-sec .cta-sec__content {
        padding: clamp(56px, 9vw, 130px) 0
    }

    .cta-sec__media {
        min-height: 0;
        aspect-ratio: 4 / 3;
        margin-left: -20px
    }

    /* Apart */
    .apart-sec--grid .section-head {
        --bs-gutter-y: 32px
    }
}

/* ==========================================================================
   Mobile
   ========================================================================== */
@media (max-width:767px) {
    .section-head {
        --bs-gutter-y: 40px
    }

    .section-head__text,
    .how-sec .section-head__text {
        max-width: 640px
    }

    .section-head__text--end {
        margin-left: 0
    }

    .services-sec .section-head h2 {
        text-align: left
    }

    /* Service bar slider */
    .service-bar .owl-stage {
        display: flex
    }

    .service-bar .owl-item > * {
        width: 100%;
        height: 100%
    }

    .service-bar .owl-item img {
        width: 34px
    }

    .service-bar .owl-item + .owl-item .service-bar__item {
        border-left: 1px solid var(--color-line)
    }

    .service-bar .owl-dots {
        display: flex;
        justify-content: center;
        gap: 8px;
        padding-bottom: 18px
    }

    .service-bar .owl-dots .owl-dot {
        width: 8px;
        height: 8px;
        background-color: #C9C1AE;
        transition: background-color .2s
    }

    .service-bar .owl-dots .owl-dot.active {
        background-color: var(--color-primary)
    }

    h1,
    .h1 {
        font-size: 52px
    }

    h2,
    .why-sec__content h2 {
        font-size: 38px
    }

    .court-sec__content h2 {
        font-size: 50px
    }

    .split-content {
        padding-block: 56px
    }

    .footer-bottom-row {
        --bs-gutter-y: 8px
    }

    .footer-bottom-row::before {
        margin-bottom: 16px
    }

    .footer-top {
        text-align: left
    }
}

/* ==========================================================================
   Small mobile
   ========================================================================== */
@media (max-width:575px) {
    :root {
        --header-height: 69px
    }

    /* Blog */
    .blog-meta {
        font-size: 15px;
        letter-spacing: .14em
    }

    .blog-sec .page-numbers {
        min-width: 42px;
        height: 42px;
        padding: 4px 10px 0;
        font-size: 16px
    }

    .entry-content {
        font-size: 16px;
        line-height: 1.75
    }

    .entry-content blockquote {
        padding-left: 20px;
        font-size: 18px
    }

    .entry-content .alignleft,
    .entry-content .alignright {
        float: none;
        margin: 0 0 16px
    }

    .topbar .logo a img {
        height: 44px
    }

    .top_right_contents .btn {
        display: none
    }

    h1,
    .h1 {
        font-size: 44px
    }

    h2,
    .why-sec__content h2 {
        font-size: 32px
    }

    .court-sec__content h2 {
        font-size: 44px
    }

    .eyebrow p {
        letter-spacing: .2em
    }

    .btn {
        max-width: 100%;
        white-space: normal;
        text-align: center
    }

    /* Hero */
    .hero-banner {
        padding-bottom: 44px
    }

    .hero-banner__media {
        height: clamp(280px, 82vw, 400px)
    }

    .hero-banner__title {
        font-size: clamp(56px, 19vw, 80px)
    }

    .hero-banner__subheading {
        font-size: clamp(21px, 6vw, 26px)
    }

    .hero-banner__actions {
        flex-direction: column;
        align-items: stretch;
        gap: 12px
    }

    .hero-banner__actions .btn {
        width: 100%;
        min-width: 0
    }

    .reviews-sec--plain .btn {
        margin: 8px 0 0
    }

    /* Service bar slider */
    .service-bar__item {
        flex-direction: column;
        justify-content: center;
        gap: 10px;
        padding: 22px 12px;
        text-align: center
    }

    .service-bar__label {
        flex: none
    }

    .service-bar__arrow {
        margin-left: 0
    }

    /* Why */
    .why-sec__badge {
        padding: 16px 18px 12px
    }

    .why-sec__badge-num {
        font-size: 36px
    }

    /* Cards */
    .service-card__content {
        padding: 26px 22px 28px
    }

    .service-card--text .service-card__media {
        padding: 28px 22px 0
    }

    .service-card--text .service-card__content {
        padding: 26px 22px 30px
    }

    /* Apart list */
    .apart-list li {
        grid-template-columns: 44px minmax(0, 1fr);
        gap: 14px;
        padding-inline: 8px
    }

    .step-card {
        padding: 32px 22px 36px
    }

    .step-card__num,
    .how-sec--compact .step-card__num {
        margin-bottom: 36px
    }

    /* FAQ */
    .accordion-button {
        gap: 16px;
        padding: 20px 18px;
        font-size: 16px
    }

    .accordion-body {
        padding: 0 18px 22px
    }

    /* Court / CTA */
    .split-content {
        padding-block: 48px
    }

    .page-template-flexible-template .cta-sec .container {
        padding-right: 20px;
        padding-left: 20px
    }

    .page-template-flexible-template .cta-sec__media {
        margin-right: -20px
    }

    .court-list__item {
        padding: 16px 0
    }
}

@media (max-width:375px) {
    h1,
    .h1 {
        font-size: 38px
    }

    h2,
    .why-sec__content h2 {
        font-size: 28px
    }

    .court-sec__content h2 {
        font-size: 38px
    }
}
