/* ---------- Fonts (drop your files into assets/fonts) ---------- */
@font-face {
    font-family: "SpizzaPizza Repro";
    src: url("fonts/SpizzaPizzaRepro-Regular.woff2") format("woff2");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "SpizzaPizza Repro Bold";
    src: url("fonts/SpizzaPizzaRepro-Bold.woff2") format("woff2");
    font-weight: 800;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Melt Swashes";
    src: url("fonts/Melt-Swashes.woff2") format("woff2");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

:root {
    --primary: #f5505f;
    --special: #ff96af;
    --secondary: #328269;
    --white: #ffffff;
    --border-radius: 4px;
    --font-regular: "SpizzaPizza Repro";
    --font-bold: "SpizzaPizza Repro Bold";
    --font-special: "Melt Swashes";
    --mouse-x: 0;
    --mouse-y: 0;
}

* {
    box-sizing: border-box
}

html{
    background: transparent;
}

body {
    margin: 0;
    color: var(--white);
    background: var(--secondary);
    font-family: var(--font-regular), system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.4;
    &:not(.bg-secondary):before{
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: -100px;
        z-index: -1;
        background-color: var(--primary);
    }
}

strong, b{
    font-weight: bold;
    font-family: var(--font-bold), sans-serif;
}

img, svg { max-width: 100%; height: auto; display: block; }
input, button { max-width: 100%; }

.top-logo{
    padding: 28px 0 0 28px;
    a{
        display: inline-block;
        vertical-align: middle;
        img{
            width: auto;
            height: 150px;
        }
    }
}

.page {
    width: min(1400px, 92vw);
    min-height: calc(100dvh - 80px);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 40px;
    padding: 40px 0 80px;
    &.single-col{
        grid-template-columns: 1fr;
        align-items: start;
        min-height: calc(100dvh - 264px);
        a{
            color: var(--white);
            word-break: break-word;
        }
        h2, h3, h4, h5, h6{
            font-weight: bold;
            font-family: var(--font-bold), sans-serif;
        }
        + .site-footer{
            position: relative;
            left: 0;
            width: 100%;
        }
    }
    .col-left {
        .logo {
            width: clamp(180px, 90vw, 520px);
            height: auto;
            margin-inline: auto;
            @media (min-width: 992px) {
                transform: translateY(calc(var(--mouse-y) * 100px)) translateX(calc(var(--mouse-x) * 100px));
                transition: transform .1s ease;
            }
        }
    }

    .title {
        margin: 0 0 60px 0;
        font-family: var(--font-special), sans-serif;
        font-size: clamp(42px, 6vw, 70px);
        line-height: 1.1;
        @media (min-width: 992px) {
            transform: translateX(calc(var(--mouse-x) * -50px)) translateY(calc(var(--mouse-y) * -50px));
            transition: transform .1s ease;
        }
    }

    .col-right {
        text-align: center;

        .sub {
            margin: 0 0 60px 0;
            font-size: clamp(18px, 2.5vw, 30px);
            line-height: 1.5;
            letter-spacing: .1px;
            @media (min-width: 992px) {
                transform: translateX(calc(var(--mouse-x) * -25px)) translateY(calc(var(--mouse-y) * -25px));
                transition: transform .1s ease;
            }
        }

        .cta-row {
            gap: 14px;
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-content: center;
            flex-wrap: wrap;
            @media (min-width: 992px) {
                transform: translateX(calc(var(--mouse-x) * -10px)) translateY(calc(var(--mouse-y) * -10px));
                transition: transform .1s ease;
            }
            .email-input {
                width: clamp(240px, 90vw, 520px);
                margin-inline: auto;
                box-sizing: border-box;
                max-width: 100%;
                text-align: center;
                padding: 14px 16px;
                font-family: var(--font-regular), sans-serif;
                border-radius: var(--border-radius);
                border: 3px solid var(--white);
                background: var(--white);
                color: var(--secondary);
                font-size: clamp(14px, 2.8vw, 24px);
                outline: none;
                display: block;
                &::placeholder {
                    text-transform: uppercase;
                    color: var(--secondary);
                    opacity: 0.7;
                }
            }
        }
    }
}

.site-footer{
    position:fixed;
    left:0;
    right:0;
    bottom:-10px;
    height:75px;
    z-index:100;
    display:flex;
    align-items:center;
    background-image:url("images/rect.svg");
    background-repeat:repeat-x;
    background-position: left top;
    background-size: 100px auto;
    @media (min-width: 992px) {
        width:calc(100% + 20px);
        left:-10px;
        transform: translateX(calc(var(--mouse-x) * 10px)) translateY(calc(var(--mouse-y) * 10px));
        transition: transform .1s ease;
    }
    .site-footer-content{
        margin-inline:auto;
        display:flex;
        gap: 26px;
        justify-content: flex-end;
        width: 100%;
        height: 100%;
        align-items: flex-end;
        padding: 0 20px 20px 0;
        a {
            color: var(--white);
            text-decoration: none;
            letter-spacing: .06em;
            &:hover {
                text-decoration: underline
            }
        }
    }
}

.btn-zzz{
    position: relative;
    display: inline-grid;
    place-items: center;
    width: fit-content;
    min-width: 0;
    height: 95px;
    padding: 0 35px;
    font-family: var(--font-bold), sans-serif;
    font-size: clamp(18px, 2.4vw, 24px);
    text-transform: uppercase;
    color: var(--white);
    margin: 0 auto;
    clip-path: polygon(6.9% 19.1%, 28.3% 19.1%, 28.3% 19.1%, 49.8% 19.1%, 49.8% 19.1%, 71.3% 19.1%, 71.3% 19.1%, 92.8% 19.1%, 92.8% 19.1%, 93.5% 20.9%, 93.5% 79.1%, 92.8% 80.9%, 71.3% 80.9%, 71.3% 80.9%, 49.8% 80.9%, 49.8% 80.9%, 28.3% 80.9%, 28.3% 80.9%, 6.9% 80.9%, 6.9% 80.9%, 6.2% 79.1%, 6.2% 20.9%);
    background-color: var(--secondary);
    transition: clip-path .35s ease;
    .innerbutton{
        position:absolute;
        height: calc(100% - 8px);
        width: calc(100% - 4px);
        background-color: #fff;
        transition: background-color .15s ease, clip-path .15s ease;
        top: 4px;
        left: 2px;
        clip-path: polygon(6.9% 19.1%, 28.3% 19.1%, 28.3% 19.1%, 49.8% 19.1%, 49.8% 19.1%, 71.3% 19.1%, 71.3% 19.1%, 92.8% 19.1%, 92.8% 19.1%, 93.5% 20.9%, 93.5% 79.1%, 92.8% 80.9%, 71.3% 80.9%, 71.3% 80.9%, 49.8% 80.9%, 49.8% 80.9%, 28.3% 80.9%, 28.3% 80.9%, 6.9% 80.9%, 6.9% 80.9%, 6.2% 79.1%, 6.2% 20.9%);

    }
    .btn-zzz__label{
        position: relative;
        z-index: 1;
        white-space: nowrap;
        color: var(--primary);
        transition: color .35s ease;
    }

    &:hover, &:focus{
        clip-path: polygon(6.2305% 19.0909%, 28.0374% 7.2727%, 28.0374% 19.0909%, 49.8442% 7.2727%, 49.8442% 19.0909%, 71.6511% 7.2727%, 71.6511% 19.0909%, 93.4579% 7.2727%, 93.4579% 19.0909%, 93.4579% 19.0909%, 93.4579% 80.9091%, 92.8349% 80.9091%, 71.6511% 89.0909%, 71.6511% 80.9091%, 49.8442% 89.0909%, 49.8442% 80.9091%, 28.0374% 89.0909%, 28.0374% 80.9091%, 6.2305% 89.0909%, 6.2305% 80.9091%, 6.2305% 80.9091%, 6.2305% 19.0909%);
        .btn-zzz__label{
            color: var(--white);
        }

        .innerbutton{
            background-color: var(--secondary);
            clip-path: polygon(6.2305% 19.0909%, 28.0374% 7.2727%, 28.0374% 19.0909%, 49.8442% 7.2727%, 49.8442% 19.0909%, 71.6511% 7.2727%, 71.6511% 19.0909%, 93.4579% 7.2727%, 93.4579% 19.0909%, 93.4579% 19.0909%, 93.4579% 80.9091%, 92.8349% 80.9091%, 71.6511% 89.0909%, 71.6511% 80.9091%, 49.8442% 89.0909%, 49.8442% 80.9091%, 28.0374% 89.0909%, 28.0374% 80.9091%, 6.2305% 89.0909%, 6.2305% 80.9091%, 6.2305% 80.9091%, 6.2305% 19.0909%);
        }
    }

}


@media (max-width: 991px) {
    .page {
        grid-template-columns:1fr;
        text-align: left;
        gap: 28px;
        width: 100%;
        padding: 40px 18px;
        .title{
            margin-top: 30px;
        }
        &.single-col{
            padding: 40px 28px;
            min-height: calc(100dvh - 264px);
        }
    }

    .col-left {
        order: -1;
        img{
            margin: auto;
            max-width: 100%;
        }
    }

    .byline {
        margin-bottom: 6px
    }
    .site-footer{
        position: relative;
    }
}
