/*
Theme Name: Brand Guide Base Theme
Theme URI: https://www.wpbeaverbuilder.com
Version: 1.0
Description: An example child theme that can be used as a starting point for custom development.
Author: The Beaver Builder Team
Author URI: https://www.fastlinemedia.com
template: bb-theme
*/

/* Add your custom styles here...Remember to change the Version number above! */ 

:root {
/* 	//Colors */
--white: #FFFFFF;
--black: #58595b;
--gray: #a7a9ac;
--lightgray: #f1f2f2;

--text: --black;

--accent: orange;

/* // Type */
--sans: 'Arial', sans-serif;
--serif: 'Cardo', serif;
--icon: 'Font Awesome 5 Pro';

--primary: $sans;

/* // Other vars */
--transition: all 0.2s;
--box-shadow: 0px 0px 8px rgba(0,0,0,0.25);
--ease-out: cubic-bezier(0.19, 1, 0.12, 1);
--ease-out-extreme: cubic-bezier(0.15,0.9,0.15,1);
--ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
--radius: 0.25rem;

/* // selectors  */
--headers: "h1, h2, h3, h4, h5, h6";

}

@use "../base/mixins";
@use "../components/buttons";


@keyframes parallax {
    0% {
        background-position: 0 center;
    }

    100% {
        background-position: 0 -70%;
    }
}

.icon-nav {
    .fl-module-photo {
        max-width: 70px;
        margin-bottom: 0;
    }

    .fl-rich-text {
        font-size: clamp(1rem, 2vw, 1.5rem);
        line-height: 1em;

        a {
            border-bottom: none;
        }
    }

}

.logo-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    grid-gap: 30px;

    &.primary {
        grid-template-columns: 1fr 1fr 1fr 1fr;

        .logo-card:first-child {
            grid-row: 1/3;
            grid-column: 1/3;
        }
    }

    .logo-card {
        display: flex;
        flex-direction: column;
        position: relative;
        grid-column: span 1;
        grid-row: span 1;



        &--name {
            text-transform: uppercase;
            display: block;
            width: 100%;
            height: auto;
            color: var(--gray);
            font-weight: 600;
            font-size: 1.1rem;
            line-height: 1em;
            margin-bottom: .5em;
        }

        &--image {
            margin: 0;
            width: 100%;
            height: 100%;
            display: inline-block;
            background-color: var(--lightgray);
            border-radius: 18px;
            border: 1px solid var(--lightgray);
            overflow: hidden;

            img {
                width: 100%;
                height: 100%;
                object-fit: contain;
                object-position: center;
                pointer-events: none;

            }
        }

        &--downloads {
            color: var(--white);
            font-weight: 600;
            font-size: 14px;
            display: flex;
            justify-content: flex-end;
            gap: 1ch;
            position: absolute;
            bottom: 10px;
            right: 10px;

            .button {
                background-color: var(--gray);
                border-radius: .8em;
                padding: 3px 8px;
                display: inline-flex;
                gap: .5ch;

                &:after {
                    content: '';
                    width: 14px;
                    height: 100%;
                    background-image: url('/wp-content/themes/brand-musgrovemill2026/src/images/download.svg');
                    background-repeat: no-repeat;
                    background-size: 80%;
                    background-position: center;
                    transition: .3s ease-in-out;
                }

                &:hover {
                    color: inherit;

                    &:after {
                        background-position: center 80%;
                    }
                }
            }
        }
    }
}

.pattern-card {
    position: relative;

    &--name {
        text-transform: uppercase;
        display: block;
        width: 100%;
        height: auto;
        color: var(--gray);
        font-weight: 600;
        font-size: 1.1rem;
        line-height: 1em;
        margin-bottom: .5em;
    }

    &--pattern {
        width: 100%;
        height: 350px;
        border-radius: 18px;
        border: 1px solid var(--lightgray);
        // background-attachment: fixed;
        background-position: center;
        animation: parallax linear;
        animation-timeline: scroll();
    }

    &--downloads {
        color: var(--white);
        font-weight: 600;
        font-size: 14px;
        display: flex;
        justify-content: flex-end;
        gap: 1ch;
        position: absolute;
        bottom: 10px;
        right: 10px;

        .button {
            background-color: var(--gray);
            border-radius: .8em;
            padding: 3px 8px;
            display: inline-flex;
            gap: .5ch;

            &:after {
                content: '';
                width: 14px;
                height: 100%;
                background-image: url('/wp-content/themes/brand-musgrovemill2026/src/images/download.svg');
                background-repeat: no-repeat;
                background-size: 80%;
                background-position: center;
                transition: .3s ease-in-out;
            }

            &:hover {
                color: inherit;

                &:after {
                    background-position: center 80%;
                }
            }
        }
    }
}

.color-grid {

    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    grid-gap: 30px;

    .color-card {
        border-radius: 12px;
        background-color: var(--lightgray);
        overflow: hidden;

        &--swatch {
            padding: 20px 30px;
            color: var(--white);
            aspect-ratio: 5/4;
            display: flex;
            flex-direction: column;
            justify-content: center;
        }

        &--name {
            font-size: 1.2rem;
            font-weight: 600;
            text-transform: none;
            color: var(--white);
        }

        &--info {
            padding: 20px 30px;
            text-transform: uppercase;
            font-size: 16px;
            line-height: 1em;

            p {
                margin-bottom: 8px;

                &:last-child {
                    margin-bottom: 0;
                }
            }
        }
    }
}

.hero-eyebrow {
    text-transform: uppercase;
    font-weight: 600;
    font-size: 1.1em;
    margin-bottom: 10px;
    line-height: 1em;
    mix-blend-mode: multiply;
    filter: contrast(0);
}

.fl-module-photo {
    a {
        display: block;
    }
}

.hero-nav {
    margin-top: 40px;

    .fl-col-content.fl-node-content {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(100px, 260px));

        @include mixins.lg {
            grid-template-columns: repeat(auto-fill, minmax(100px, 210px));
        }

        @include mixins.md {
            grid-template-columns: repeat(auto-fill, minmax(100px, 170px));
        }

        @include mixins.sm {
            grid-template-columns: 1fr 1fr;
        }

        .fl-photo-content {
            img {
                max-width: 80px;
                margin-bottom: 10px;
            }

        }

        figcaption.fl-photo-caption.fl-photo-caption-below {
            color: inherit;
            font-size: clamp(1rem, 2vw, 1.4rem);
            line-height: 1em;
            font-weight: 600;
        }
    }
}

.typography-card {
    position: relative;
    margin-bottom: 40px;

    &:last-child {
        margin-bottom: 0;
    }

    &--image {
        margin: 0;

        a {
            display: block;
            pointer-events: none;
        }

        img {
            width: 100%;
            height: auto;
            object-fit: contain;
        }
    }

    &--download {
        display: inline-flex;
        position: absolute;
        bottom: 10px;
        left: 10px;
        gap: 1ch;
        font-size: 12px;
        color: var(--white);

        a {
            background-color: var(--gray);
            border-radius: .8em;
            padding: 3px 8px;
            display: inline-flex;
            gap: .5ch;
            text-transform: uppercase;
            font-weight: 600;


            &:hover {
                color: inherit;
            }
        }

        &-download {
            &:after {
                content: '';
                width: 14px;
                height: 100%;
                background-image: url('/wp-content/themes/brand-musgrovemill2026/src/images/download.svg');
                background-repeat: no-repeat;
                background-size: 80%;
                background-position: center;
                transition: .3s ease-in-out;
            }

            &:hover {
                &:after {
                    background-position: center 80%;
                }
            }
        }
    }
}