/* ==========================================================================
   M4X Marketing — responsive adjustments
   Breakpoints follow the Bootstrap grid: 1399 / 1199 / 991 / 767 / 575 / 375
   ========================================================================== */


@media (min-width: 1024px) {
    .ftr__col--brand {
        flex-grow: 2;
    }
}


/* ---------- Small desktop ---------- */
@media (max-width: 1399px) {
    .cta-sec__panel {
        padding: 48px 40px;
    }

    .cta-sec__content {
        max-width: 300px;
    }

    .cta-sec__content h2 {
        font-size: 40px;
    }

    .cta-sec__content p {
        margin-top: 18px;
        font-size: 14px;
        line-height: 1.6;
    }

    .results-sec__list .accordion-body {
        padding-left: 32px;
    }
}

/* ---------- Tablet landscape ---------- */
@media (max-width: 1199px) {
    .menubar__content {
        gap: 22px;
    }

    .menubar__actions {
        gap: 14px;
    }

    #menu > ul {
        gap: 18px;
    }

    #menu > ul > li > a {
        font-size: 14px;
    }

    .hero-banner__content h1 {
        font-size: 52px;
    }

    .hero-banner__media,
    .hero-banner__visual {
        margin-left: 28px;
    }

    .hero-banner__badge {
        left: -36px;
    }

    .float-card--rank {
        top: 16px;
        left: 16px;
    }

    .float-card--calls {
        right: 16px;
        bottom: 16px;
    }

    .need-sec__content {
        padding-right: 12px;
    }

    .need-sec__visual,
    .overview-sec__text {
        padding-left: 12px;
    }

    .industries-sec__media {
        margin-left: 16px;
    }

    .borough-list {
        padding-left: 16px;
    }

    .faq-sec__list,
    .contact-form {
        margin-left: 16px;
    }

    .case-card:not(.case-card--result)::after {
        display: none;
    }

    .cta-sec__panel {
        padding: 40px 28px calc(39.5% + 36px);
    }

    .cta-sec__bg {
        inset: auto 0 0 0;
        height: auto;
        object-fit: fill;
    }

    .cta-sec__content {
        max-width: none;
    }

    .cta-sec__content h2 {
        font-size: clamp(32px, calc(16px + 4vw), 48px);
    }

    .cta-sec__content p {
        max-width: 34em;
        margin-top: 24px;
        font-size: 15px;
        line-height: 1.65;
    }
}

/* ---------- Tablet portrait ---------- */
@media (max-width: 991px) {
    :root {
        --header-height: 70px;
    }

    .hero-banner__row,
    .trust-sec__row,
    .why-sec__grid,
    .need-sec__row,
    .industries-sec__row,
    .areas-sec__row,
    .faq-sec__row,
    .contact-sec__row {
        row-gap: 48px;
    }

    .overview-sec__row {
        row-gap: 8px;
    }

    .overview-sec__text {
        padding-left: 0;
    }

    .trust-sec__row {
        row-gap: 20px;
    }

    .heading-row {
        align-items: flex-start;
    }

    .sec-heading__aside p {
        max-width: 34em;
        padding-bottom: 0;
    }

    .hero-banner__content h1 {
        font-size: clamp(42px, 8vw, 72px);
    }

    .hero-banner__media {
        aspect-ratio: 4 / 3;
        max-width: 760px;
        margin: 0 14px 0 0;
    }

    .hero-banner__media::before,
    .industries-sec__media::before {
        inset: 14px -12px -14px 12px;
    }

    .hero-banner__img {
        object-position: center 18%;
    }

    .hero-banner__badge {
        left: 16px;
        bottom: -44px;
    }

    .trust-sec__label p {
        max-width: none;
    }

    .why-sec__media {
        height: auto;
        min-height: 0;
        aspect-ratio: 4 / 3;
    }

    .need-sec__content,
    .need-sec__visual {
        padding: 0;
    }

    .industries-sec__media {
        position: relative;
        top: 0;
        margin: 0 14px 0 0;
    }

    .industries-sec__media img {
        aspect-ratio: 4 / 3;
    }

    .process-sec__steps {
        row-gap: 40px;
    }

    .process-sec__steps::before {
        display: none;
    }

    .step {
        padding-top: 40px;
        border-top: 1px solid var(--color-line-strong);
    }

    .step__dot {
        top: -9px;
    }

    .borough-list,
    .faq-sec__list {
        padding-left: 0;
        margin-left: 0;
    }

    .hero-banner__visual,
    .contact-form {
        margin-left: 0;
    }

    .faq-sec__side {
        position: static;
    }
}

@media (min-width: 768px) and (max-width: 991px) {
    .service-card--wide .service-card__visual {
        aspect-ratio: 800 / 240;
    }
}

/* ---------- Mobile ---------- */
@media (max-width: 767px) {
    .announce-bar__muted {
        display: none;
    }

    .services-sec__grid {
        row-gap: 20px;
    }

    .hero-banner__content h1 {
        letter-spacing: -.04em;
    }

    .hero-banner__media {
        aspect-ratio: 4 / 5;
    }

    .hero-banner__badge {
        display: none;
    }

    .float-card--rank {
        top: 14px;
        left: 14px;
        right: 14px;
        padding: 10px 12px 10px 10px;
    }

    .float-card--calls {
        right: 14px;
        bottom: 14px;
        width: 170px;
        padding: 12px 12px 0;
    }

    .float-card__stat {
        font-size: 20px;
    }

    .mini-bars {
        height: 28px;
    }

    .service-card,
    .service-card__panel {
        border-radius: 22px;
    }

    .service-card__panel h3 {
        font-size: 21px;
    }

    .service-card__cta {
        padding: 16px 22px 18px;
    }

    .callout {
        flex-direction: column;
        align-items: flex-start;
        padding: 24px;
    }

    .why-card {
        min-height: 0;
        padding: 24px;
    }

    .why-card__content {
        margin-top: 28px;
    }

    .process-sec__panel {
        border-radius: 24px;
    }

    .borough {
        height: 50px;
        padding: 0 18px 0 14px;
        font-size: 15px;
    }

    .results-sec__list .accordion-item {
        border-radius: 20px;
    }

    .results-sec__list .accordion-button {
        grid-template-columns: minmax(0, 1fr) 40px;
        align-items: start;
        gap: 14px;
        padding: 22px 20px;
    }

    .results-sec__list .accordion-icon {
        width: 40px;
        height: 40px;
    }

    .result-icon {
        display: none;
    }

    .results-sec__list .accordion-body {
        padding: 0 20px 20px;
    }

    .faq-sec__list .accordion-button {
        padding: 22px 0;
        font-size: 16.5px;
    }

    .faq-sec__list .accordion-body {
        padding: 0 0 22px;
    }

    .cta-sec__panel {
        border-radius: 24px;
    }

    .footer-row {
        row-gap: 36px;
    }
}

/* ---------- Small mobile ---------- */
@media (max-width: 575px) {
    .why-sec__list,
    .card-grid {
        row-gap: 16px;
    }

    .audit-form {
        flex-direction: column;
        height: auto;
        padding: 8px;
        border-radius: 20px;
    }

    .audit-form input {
        width: 100%;
        height: 50px;
        flex: none;
        padding: 0 14px;
    }

    .audit-form .btn {
        width: 100%;
    }

    .audit-form .wpcf7-form-control-wrap {
        flex: none;
        width: 100%;
        height: auto;
    }

    .why-sec__media {
        aspect-ratio: 4 / 5;
    }

    .serp-card {
        padding: 16px;
    }

    .industries-sec__media img {
        object-position: 30% center;
    }

    .industry-item {
        grid-template-columns: 44px minmax(0, 1fr);
        column-gap: 14px;
        padding: 22px 0;
    }

    .industry-item:hover {
        padding-left: 0;
    }

    .industry-item__num {
        align-self: start;
        padding-top: 6px;
    }

    .industry-item__icon {
        display: none;
    }

    .industry-item h3,
    .industry-item p {
        grid-column: 2;
    }

    .process-sec__steps {
        row-gap: 32px;
    }

    .process-sec__steps::before {
        display: block;
        top: 0;
        bottom: 0;
        left: 20px;
        right: auto;
        width: 1px;
        height: auto;
    }

    .step,
    .process-sec__steps--grid .step {
        padding: 0 0 0 44px;
        border-top: 0;
    }

    .step__dot,
    .process-sec__steps--grid .step__dot {
        top: 0;
    }

    .process-sec__steps--grid::before {
        display: block;
    }

    .cta-sec__content .btn,
    .hero-banner__actions .btn,
    .cta-sec__actions .btn,
    .contact-form .btn {
        width: 100%;
    }

    .footer-bottom {
        flex-direction: column;
    }
}

/* ---------- Extra small mobile ---------- */
@media (max-width: 375px) {
    .hero-banner__content h1 {
        font-size: 38px;
    }

    h2 {
        font-size: 34px;
    }

    .btn {
        padding: 0 20px;
    }

    .float-card__meta {
        font-size: 10.5px;
    }

    .process-sec__panel {
        padding: 24px 20px;
    }

    .serp-card__chart-head {
        font-size: 11.5px;
    }
}
