/* =========================================================
   FOAM GUYS - RESPONSIVE
========================================================= */


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 900px) {

    .site-header {
        height: 92px;
    }

    .header-container {
        width: 90%;

        grid-template-columns:
            1fr auto;
    }

    .brand-logo img {
        width: clamp(150px, 34vw, 230px);
    }

    .menu-toggle {
        display: block;

        justify-self: end;
    }


    /* =====================================================
       MOBILE NAVIGATION
    ====================================================== */

    .main-navigation {
        position: fixed;

        top: 0;
        left: 0;

        z-index: 1001;

        width: 100%;
        height: 100vh;
        height: 100dvh;

        overflow-y: auto;
        overscroll-behavior: contain;

        padding:
            130px
            25px
            50px;

        display: flex;

        flex-direction: column;

        justify-content: flex-start;
        align-items: center;

        gap: 24px;

        background-color: var(--cream);

        background-image:
            linear-gradient(
                rgba(245, 237, 170, 0.84),
                rgba(245, 237, 170, 0.84)
            ),
            url("../images/background.png");

        background-repeat:
            repeat,
            repeat;

        background-size:
            auto,
            900px auto;

        background-position:
            center,
            center top;

        opacity: 0;

        visibility: hidden;

        transform:
            translateY(-100%);

        transition:
            transform 320ms var(--cartoon-bounce),
            opacity 180ms ease,
            visibility 180ms ease;
    }

    .main-navigation.is-open {
        opacity: 1;

        visibility: visible;

        transform:
            translateY(0);
    }

    .main-navigation a {
        width:
            min(320px, 88%);

        font-size: 23px;

        text-align: center;
    }

    .main-navigation a::before {
        opacity: 1;

        background-color: var(--pink);

        transform:
            scaleX(1)
            scaleY(1)
            rotate(-1deg);
    }

    .book-now-button::before {
        background-color:
            var(--cream);
    }

}



/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 700px) {


    /* =====================================================
       FULL SCREEN MOBILE HERO
    ====================================================== */

    .hero {
        position: relative;

        width: 100%;

        height: 100vh;
        height: 100svh;

        min-height: 100svh;

        overflow: hidden;

        background-color: var(--pink);
    }


    .hero-banner {
        position: absolute;

        inset: 0;

        width: 100%;
        height: auto;

        overflow: hidden;
    }


    /*
       MOBILE - OPEN OFF

       Desktop puede seguir usando su imagen original.
       En celular reemplazamos el SRC visualmente
       por la imagen final para celular.
    */

    .hero-banner-off {
        content:
            url("../images/mobile final .jpg");

        position: absolute;

        inset: 0;

        display: block;

        width: 100%;
        height: 100%;

        object-fit: cover;

        object-position: center;

        z-index: 1;
    }


    /*
    */

    .hero-banner-on {
        display: none;
    }


    /*
       .hero-banner-image
       mantenemos compatibilidad.
    */

    .hero-banner-image {
        width: 100%;
        height: 100%;

        object-fit: cover;

        object-position: center;
    }


    /* =====================================================
       OPEN SIGN HOTSPOT
    ====================================================== */

    .open-sign-trigger {
        display: none;
    }


    /* =====================================================
       OPEN SIGN - DESKTOP STYLE HOVER
       + MOBILE TAP / FOCUS
    ====================================================== */

    .mobile-menu-cta {
        position: absolute;

        left: 50%;
        bottom: 6%;

        z-index: 10;

        display: inline-flex;

        justify-content: center;
        align-items: center;

        min-width: 190px;

        padding:
            15px
            28px;

        background-color: var(--cream);

        color: var(--blue-dark);

        border:
            4px solid var(--blue-dark);

        border-radius:
            10px 14px 9px 13px /
            13px 9px 14px 10px;

        box-shadow:
            7px 8px 0 var(--pink-dark);

        font-family: var(--font-heading);

        font-size: 24px;

        line-height: 1;

        text-transform: uppercase;

        letter-spacing: .04em;

        transform:
            translateX(-50%)
            rotate(-1deg);

        transition:
            transform 180ms var(--cartoon-bounce),
            box-shadow 150ms ease;

        -webkit-tap-highlight-color:
            transparent;
    }


    .mobile-menu-cta:active {
        box-shadow:
            2px 3px 0 var(--pink-dark);

        transform:
            translateX(calc(-50% + 5px))
            translateY(5px)
            rotate(0)
            scale(.96);
    }


    .mobile-menu-cta:focus-visible {
        outline:
            4px dashed var(--white);

        outline-offset: 5px;
    }



    /* =====================================================
       MENU SECTION
    ====================================================== */

    .menu-section {
        padding:
            52px
            12px
            70px;

        background-size:
            auto,
            620px auto;
    }


    .menu-container {
        width: 100%;
    }



    /* =====================================================
       MENU HEADING
    ====================================================== */

    .menu-heading {
        width:
            min(420px, 92%);

        margin:
            0 auto
            38px;

        text-align: center;
    }


    .menu-heading .section-label {
        margin-bottom: 9px;

        font-size: 12px;

        letter-spacing: .11em;
    }


    .menu-heading h2 {
        margin-bottom: 14px;

        font-size:
            clamp(37px, 10vw, 46px);

        line-height: .95;
    }


    .menu-intro {
        max-width: 360px;

        margin:
            0 auto;

        font-size: 16px;

        line-height: 1.4;
    }


    .order-step-heading {
        width: 92%;

        margin-bottom: 26px;

        justify-content: flex-start;

        gap: 13px;
    }


    .order-step-number {
        width: 44px;
        height: 44px;

        border-width: 2px;

        box-shadow:
            3px 4px 0 var(--blue-dark);

        font-size: 24px;
    }

    .order-step-number.order-step-hand {
        width: 62px;
        height: 74px;
        border: 0;
        box-shadow: none;
    }


    .order-step-heading p {
        font-size: 9px;
    }


    .order-step-heading h3 {
        font-size:
            clamp(25px, 7vw, 33px);
    }



    /* =====================================================
       SERVICE GRID
    ====================================================== */

    .service-grid {
        grid-template-columns:
            1fr;

        gap:
            30px;

        justify-items:
            center;
    }



    /* =====================================================
       SERVICE CARDS
    ====================================================== */

    .service-card {
        width:
            min(390px, 92%);

        min-height: 0;

        margin:
            0 auto;

        padding:
            44px
            18px
            21px;

        border-width: 3px;

        border-radius:
            16px 12px 18px 13px /
            13px 18px 12px 16px;

        box-shadow:
            6px 7px 0
            var(--blue-dark);

        transform:
            rotate(-.25deg);
    }


    .service-card:nth-child(2) {
        transform:
            rotate(.2deg);
    }


    .service-card:nth-child(3) {
        transform:
            rotate(-.15deg);
    }


    /* Collapsible package cards */

    .service-card-header {
        cursor: pointer;
    }


    .service-card-header:focus-visible {
        outline:
            3px dashed var(--pink-dark);

        outline-offset: 7px;
    }


    .service-card:not([open]) .service-card-header {
        margin-bottom: 0;
    }


    .service-expand-label {
        margin:
            14px
            auto
            0;

        display: inline-flex;

        align-items: center;

        gap: 8px;

        color: var(--blue-dark);

        font-family: var(--font-heading);

        font-size: 14px;

        text-transform: uppercase;

        letter-spacing: .06em;
    }


    .service-expand-label::after {
        content: "+";

        width: 24px;
        height: 24px;

        display: inline-flex;

        justify-content: center;
        align-items: center;

        background-color: var(--pink);

        border:
            2px solid var(--blue-dark);

        border-radius: 50%;

        font-family: var(--font-body);

        font-size: 19px;

        font-weight: 900;

        line-height: 1;
    }


    .service-expand-close {
        display: none;
    }


    .service-card[open] .service-expand-open {
        display: none;
    }


    .service-card[open] .service-expand-close {
        display: inline;
    }


    .service-card[open] .service-expand-label::after {
        content: "−";
    }


    .service-card[open] .service-card-details {
        transform-origin:
            top center;

        backface-visibility:
            hidden;

        will-change:
            transform,
            opacity;

        animation:
            cartoon-menu-pop
            760ms
            var(--cartoon-bounce)
            both;
    }


    @keyframes cartoon-menu-pop {

        0% {
            opacity: 0;

            transform:
                translateY(-18px)
                rotate(-2.5deg)
                scale(.82, .55);
        }


        48% {
            opacity: 1;

            transform:
                translateY(6px)
                rotate(1.2deg)
                scale(1.035, 1.08);
        }


        72% {
            transform:
                translateY(-3px)
                rotate(-.6deg)
                scale(.985, .97);
        }


        88% {
            transform:
                translateY(1px)
                rotate(.25deg)
                scale(1.008, 1.015);
        }


        100% {
            opacity: 1;

            transform:
                translateY(0)
                rotate(0)
                scaleY(1)
                scaleX(1);
        }

    }



    /* =====================================================
       CARD CHECKERBOARD
    ====================================================== */

    .service-card::before {
        height: 23px;

        background-size:
            16px 16px;

        background-position:
            0 0,
            0 8px,
            8px -8px,
            -8px 0;

        border-bottom-width:
            3px;
    }



    /* =====================================================
       INNER FRAME
    ====================================================== */

    .service-card::after {
        inset:
            33px
            9px
            9px;

        border-width: 1px;

        border-radius: 10px;
    }



    /* =====================================================
       CARD HEADER
    ====================================================== */

    .service-card-header {
        margin-bottom: 10px;
    }



    /* =====================================================
       SERVICE ICON
    ====================================================== */

    .service-icon {
        width: 30px;

        height: 30px;

        margin-bottom: 3px;

        font-size: 18px;
    }



    /* =====================================================
       PACKAGE TITLE
    ====================================================== */

    .service-card-title {
        margin-bottom: 6px;

        font-size:
            clamp(27px, 7.8vw, 34px);

        line-height: 1;
    }



    /* =====================================================
       PRICE
    ====================================================== */

    .service-price {
        margin-top: 6px;

        font-size: 10px;

        letter-spacing: .09em;
    }


    .service-price strong {
        font-size:
            clamp(34px, 9.5vw, 41px);
    }



    /* =====================================================
       DESCRIPTION
    ====================================================== */

    .service-description {
        margin-bottom: 13px;

        padding:
            8px
            3px
            11px;

        border-bottom-width: 2px;

        font-size: 13px;

        line-height: 1.35;
    }



    /* =====================================================
       SERVICE LIST
    ====================================================== */

    .service-list {
        gap: 6px;

        margin-bottom: 18px;
    }


    .service-list li {
        padding-left: 17px;

        font-size: 13px;

        line-height: 1.28;
    }


    .service-list li::before {
        font-size: 13px;
    }


    .service-list li:not(:last-child)::after {
        left: 17px;

        bottom: -3px;
    }



    /* =====================================================
       SERVICE NOTE
    ====================================================== */

    .service-note {
        margin-bottom: 16px;

        padding:
            8px
            10px;

        font-size: 11px;

        line-height: 1.35;
    }



    /* =====================================================
       SERVICE CTA
    ====================================================== */

    .service-cta {
        padding:
            10px
            14px;

        border-width: 3px;

        box-shadow:
            4px 5px 0
            var(--blue-dark);

        font-size: 16px;
    }



    /* =====================================================
       HOUSE SPECIAL BADGE
    ====================================================== */

    .featured-badge {
        top: 38px;

        right: 13px;

        padding:
            7px
            12px;

        border-width: 2px;

        box-shadow:
            3px 3px 0
            var(--blue-dark);

        font-size: 11px;
    }



    /* =====================================================
       MOBILE CARD HOVER
    ====================================================== */

    .service-card:hover {
        transform:
            translateY(-2px)
            rotate(0);

        box-shadow:
            6px 7px 0
            var(--blue-dark);
    }


    /* =====================================================
       MOBILE PRODUCT MENU
    ====================================================== */

    .service-grid {
        grid-template-columns:
            repeat(3, minmax(0, 1fr));

        gap: 10px;

        align-items: start;

        justify-items: stretch;
    }


    .service-card:not([open]) {
        width: 100%;

        margin: 0;

        padding:
            12px
            7px
            13px;

        background-color:
            transparent;

        border: 0;

        border-radius: 18px;

        box-shadow: none;

        transform: none;
    }


    .service-card:not([open])::before,
    .service-card:not([open])::after {
        display: none;
    }


    .service-card:not([open]):hover {
        box-shadow: none;

        transform: none;
    }


    .service-card[open] {
        grid-column:
            1 / -1;

        width:
            min(390px, 96%);

        justify-self: center;
    }


    .service-card:not([open]) .service-card-header {
        display: grid;

        grid-template-columns:
            1fr auto;

        align-items: center;

        width: 100%;

        margin: 0;

        text-align: left;
    }


    .service-card:not([open]) .service-icon {
        display: none;
    }


    .service-product-image {
        display: none;
    }


    .service-card:not([open]) .service-product-image {
        grid-column:
            1 / -1;

        display: block;

        width: 100%;
        height:
            clamp(165px, 43vw, 245px);

        margin:
            0 auto
            8px;

        object-fit: contain;

        filter:
            drop-shadow(0 10px 4px rgba(52, 83, 109, .26))
            drop-shadow(0 18px 9px rgba(52, 83, 109, .38));

        transition:
            transform 220ms var(--cartoon-bounce);
    }


    .service-card:not([open]) .service-card-header:active
    .service-product-image {
        transform:
            translateY(-4px)
            rotate(-2deg)
            scale(1.025);
    }


    .service-card:not([open]) .service-card-title {
        position: absolute;

        width: 1px;
        height: 1px;

        overflow: hidden;

        clip-path:
            inset(50%);

        white-space: nowrap;
    }


    .service-card:not([open]) .service-price {
        grid-column: 1;

        margin: 0;

        display: block;

        color: transparent;

        font-size: 0;

        letter-spacing: 0;
    }


    .service-card:not([open]) .service-price strong {
        color: var(--blue-dark);

        font-size:
            clamp(22px, 6.5vw, 30px);

        white-space: nowrap;
    }


    .service-card:not([open]) .service-expand-label {
        grid-column: 2;

        margin: 0;

        font-size: 0;
    }


    .service-card:not([open]) .service-expand-label::after {
        width: 31px;
        height: 31px;

        background-color: var(--pink-dark);

        color: var(--white);

        border: 0;

        box-shadow:
            0 3px 0 var(--blue-dark);

        font-size: 23px;
    }


    .service-card:not([open]) .featured-badge {
        top: 8px;
        right: 6px;

        padding:
            5px
            6px;

        box-shadow:
            2px 2px 0 var(--blue-dark);

        font-size: 7px;
    }



    /* =====================================================
       FOAM EXTRAS
    ====================================================== */

    .extras-section {
        width: 92%;

        margin:
            65px
            auto
            0;

        padding:
            30px
            20px;

        border-width: 3px;

        box-shadow:
            7px 8px 0
            var(--pink-dark);
    }


    .extras-heading {
        margin-bottom: 24px;
    }


    .extras-heading h3 {
        font-size:
            clamp(34px, 10vw, 46px);
    }


    .extras-heading p {
        font-size: 15px;
    }


    .extras-grid {
        grid-template-columns:
            1fr;

        gap: 8px;
    }


    .extra-item {
        padding:
            12px
            4px;

        font-size: 14px;
    }


    .extra-item strong {
        font-size: 17px;
    }



    /* =====================================================
       VEHICLE SIZE
    ====================================================== */

    .vehicle-size-section {
        width: 92%;

        margin:
            65px
            auto
            0;

        padding:
            28px
            20px;

        border-width: 3px;

        box-shadow:
            6px 7px 0
            var(--blue-dark);
    }


    .vehicle-size-heading {
        margin-bottom: 20px;
    }


    .vehicle-size-heading h3 {
        font-size:
            clamp(34px, 10vw, 46px);
    }


    .vehicle-size-heading p {
        font-size: 14px;
    }


    .vehicle-size-list {
        gap: 8px;
    }


    .vehicle-size-row {
        padding:
            10px
            2px;

        font-size: 15px;
    }


    .vehicle-size-row strong {
        font-size: 20px;
    }


    .vehicle-size-disclaimer {
        margin-top: 20px;

        padding-top: 16px;

        font-size: 12px;
    }


    .order-summary {
        width: 92%;

        margin-top: 65px;

        padding:
            30px
            20px;

        border-width: 3px;

        box-shadow:
            7px 8px 0 var(--pink-dark);
    }


    .order-summary .order-step-heading {
        width: 100%;
    }


    .order-summary-line {
        gap: 14px;

        font-size: 14px;
    }


    .order-summary-line strong {
        max-width: 65%;
    }


    .order-total {
        font-size: 21px;
    }


    .order-total strong {
        font-size: 42px;
    }


    .order-checkout {
        padding:
            13px
            16px;

        border-width: 3px;

        box-shadow:
            4px 5px 0 var(--cream);

        font-size: 18px;
    }

}



/* =========================================================
   SMALL PHONE
========================================================= */

@media (max-width: 430px) {

    .site-header {
        height: 80px;
    }


    .brand-logo img {
        width: 145px;
    }


    .main-navigation {
        padding-top: 115px;
    }



    /* =====================================================
       HERO
    ====================================================== */

    .hero {
        height: 100vh;
        height: 100svh;

        min-height: 100svh;
    }


    .hero-banner-off,
    .hero-banner-on {
        object-fit: cover;

        object-position: center;
    }


    /*
       OPEN HOTSPOT

       Este ya NO usa las coordenadas
       del banner horizontal anterior.
    */

    .open-sign-trigger {
        left: 20%;

        top: 76%;

        width: 30%;

        height: 12%;
    }



    /* =====================================================
       MENU SECTION
    ====================================================== */

    .menu-section {
        padding:
            48px
            8px
            65px;
    }



    /* =====================================================
       MENU HEADING
    ====================================================== */

    .menu-heading {
        width: 92%;

        margin-bottom: 32px;
    }


    .menu-heading .section-label {
        font-size: 11px;
    }


    .menu-heading h2 {
        font-size:
            clamp(33px, 10.5vw, 41px);
    }


    .menu-intro {
        max-width: 330px;

        font-size: 14px;

        line-height: 1.4;
    }



    /* =====================================================
       SERVICE CARD
    ====================================================== */

    .service-grid {
        gap: 27px;
    }


    .service-card {
        width: 92%;

        padding:
            42px
            15px
            19px;
    }


    .service-card-title {
        font-size:
            clamp(25px, 8vw, 31px);
    }


    .service-price strong {
        font-size:
            clamp(31px, 10vw, 38px);
    }


    .service-description {
        font-size: 12.5px;
    }


    .service-list li {
        font-size: 12.5px;
    }


    .service-cta {
        font-size: 15px;
    }



    /* =====================================================
       EXTRAS
    ====================================================== */

    .extras-section {
        padding:
            27px
            17px;
    }


    .extra-item {
        gap: 12px;

        font-size: 13px;
    }


    .extra-item strong {
        font-size: 16px;
    }



    /* =====================================================
       VEHICLE SIZE
    ====================================================== */

    .vehicle-size-section {
        width: 92%;

        padding:
            26px
            17px;
    }


    .vehicle-size-row {
        font-size: 14px;
    }


    .vehicle-size-row strong {
        font-size: 18px;
    }

}



/* =========================================================
   VERY SMALL PHONE
========================================================= */

@media (max-width: 375px) {

    .brand-logo img {
        width: 135px;
    }


    .menu-heading h2 {
        font-size: 34px;
    }


    .menu-intro {
        font-size: 13.5px;
    }


    .service-card {
        width: 93%;

        padding-left: 14px;
        padding-right: 14px;
    }


    .service-card-title {
        font-size: 27px;
    }


    .service-price strong {
        font-size: 35px;
    }


    .service-list li {
        font-size: 12px;
    }

}



/* =========================================================
   REDUCED MOTION
========================================================= */

@media (prefers-reduced-motion: reduce) {

    html {
        scroll-behavior: auto;
    }


    *,
    *::before,
    *::after {
        animation-duration:
            0.01ms !important;

        animation-iteration-count:
            1 !important;

        transition-duration:
            0.01ms !important;
    }

}
