:root {
    --header-height: 2rem;
}

@media screen and (max-width: 749px) {
    :root {
        --header-height: 3rem;
    }
}

/* –––––––––––––––––––––––––––––– HERO ––––––––––––––––––––––––––––––––– */

#hero {
    position: relative;
    z-index: 1;
    overflow: hidden;
    padding-bottom: var(--spacing-xl);
}

#hero .bg-custom {
    position: absolute;
    top: 0%;
    left: 0%;
    width: 100%;
    height: 100%;
    background-image: url('/wp-content/themes/trixie/assets/vector/misc/pattern-squircle-red.svg');
    background-position: center;
    background-size: 175%;
    z-index: -1;
}

#hero h1 > div:last-child {
    margin-top: -0.05em;
}

@media screen and (min-width: 750px) {
    #hero .container {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        align-content: flex-start
    }

    #hero .logo-grid {
        grid-template-columns: auto 1fr;
        row-gap: var(--spacing-m);
        column-gap: var(--spacing-l);
    }

    #hero .hero-dog {
        position: absolute;
        bottom: 0;
        right: 0;
        width: auto;
        height: auto;
        max-height: calc(100% - var(--spacing-l));
        display: flex;
        align-items: flex-end;
        justify-content: flex-end;
    }
    
    #hero .hero-dog img {
        width: 100%;
        height: calc(var(--e-height, 660px) * 0.95);
        object-fit: contain;
        object-position: bottom right;
    }

    #hero .hero-dog .trixie-shape {
        top: var(--spacing-l);
        right: 70%;
    }
}

@media screen and (min-width: 1300px) {
    #hero .logo-grid {
        grid-template-columns: repeat(4, auto);
        row-gap: var(--spacing-l);
        column-gap: var(--spacing-2xl);
    }
}

@media screen and (max-width: 949px) {
    #hero .hero-dog img {
        height: calc(var(--e-height, 660px) * 0.7);
    }
}

@media screen and (max-width: 749px) {
    #hero .hero-dog img {
        width: 100%;
        height: 350px;
        max-height: unset;
        object-fit: contain;
        object-position: center bottom;
    }

    #hero .hero-dog .trixie-shape {
        top: -5%;
        right: 65%;
    }

    #hero .logo-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        row-gap: var(--spacing-m);
        column-gap: var(--spacing-xl);
    }
}

/* –––––––––––––––––––––––––––––– LOGOS MARQUEE ––––––––––––––––––––––––– */

#logos {
    overflow: hidden;
}

#logos .marquee {
    width: 100%;
    overflow: hidden;
}

#logos .marquee-track {
    display: flex;
    align-items: center;
    gap: var(--spacing-3xl);
    width: max-content;
    animation: marquee 20s linear infinite;
}

#logos .marquee-track img {
    flex-shrink: 0;
    max-height: 40px;
}

@keyframes marquee {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* –––––––––––––––––––––––––––––– BLOGG ––––––––––––––––––––––––––––––––– */
#blogg img.blogg-title {
    --t: calc(1 - var(--p-ratio));
    --p-eased: calc(1 - var(--t) * var(--t) * var(--t));
    transform: scale(min(calc(var(--p-eased) * 0.25 + 0.75), 1));
}

/* –––––––––––––––––––––––––––––– SOCIALS ––––––––––––––––––––––––––––––––– */
#socials .masked-image-wrapper .background-shape .object {
    fill: var(--trixie-red);
}

#socials .socials-icons .object {
    fill: var(--trixie-red);
}

#socials .masked-image {
    --t: calc(1 - var(--p-ratio));
    --p-eased: calc(1 - var(--t) * var(--t) * var(--t));
    transform: translateY(max(calc(100% - var(--p-eased) * 25% - 75%), 0%));
}

@media screen and (min-width: 750px) {
    #socials .masked-image-wrapper {
        transform: scale(1.1);
        transform-origin: bottom center;
    }
}

@media screen and (max-width: 749px) {
    #socials {
        padding-top: var(--spacing-m);
    }

    #socials .container {
        justify-content: center;
        justify-items: center;
        text-align: center;
    }

    #socials .masked-image-wrapper {
        width: max(75%, 200px);
        height: 250px;
    }

    #socials .f-heading {
        justify-content: center;
    }

    #socials .socials-icons {
        justify-content: center;
        justify-items: center;
    }
}