@layer theme, utilities, plugins;

/* 
Wordpress breakpoints: Mobile - (0-599) / Tablet (600-767) / Desktop (768-99999)
.coast is added to body for easy override.
*/

@layer theme {
    html {
        scroll-padding-top: 200px; /* offset for anchor links */
        scroll-behavior: smooth; /* smooth scrolling for anchor links */
    }
    /* is this controlled in theme.json? */
    .wp-site-blocks {
        padding-top: 0;
        padding-bottom: 0;
    }

    header {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 9999;
        &.header-is-scrolled {
            background: rgb(255, 255, 255);
            /* background: --wp--preset--color--primary; */
            background: linear-gradient(
                0deg,
                rgba(255, 255, 255, 0) 0%,
                rgba(0, 127, 127, 1) 100%
            );
        }
    }

    /* .wp-block-navigation-submenu */

    /* submenu item text colour */
    ul.wp-block-navigation__submenu-container.wp-block-navigation-submenu {
        color: #000000 !important;
        @media screen and (width < 600px) {
            color: white !important;
        }
    }
    /* mobile background on menu dropdown  */
    .coast .wp-block-navigation__responsive-container.is-menu-open {
        background-color: var(--wp--preset--color--primary) !important;
    }

    .coast ul.wp-block-navigation__container {
        @media screen and (width < 600px) {
            gap: 15px !important;
            padding-right: 30px !important;
        }
    }
    .coast .wp-block-navigation-submenu .wp-block-navigation-submenu {
        @media screen and (width < 600px) {
            gap: 10px !important;
            border-right: 1px solid white !important;
            padding-top: 0 !important;
            margin-top: 24px !important;
            margin-bottom: 5px !important;
        }
    }

    /* slower footer link colour */
    .wp-block-columns.lower-footer a {
        color: #007f7f !important;
    }
    /* logo slider arrow styling */
    .comm-logos .kb-splide .splide__arrow {
        border: none !important;
    }
    /* Gravity forms submit button style */
    body .gform_wrapper .gform_footer input[type="submit"] {
        background-color: #007f7f !important;
        border-radius: 0 !important;
    }
}

@layer utilities {
    /* CLIP TEXT */
    /* Clip text lines with css, add .clp-txt + .c(no of lines 2,3,5 or 10)  */

    .clp-txt {
        display: -webkit-box !important;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    .c2 {
        -webkit-line-clamp: 2;
    }
    .c3 {
        -webkit-line-clamp: 3;
    }
    .c5 {
        -webkit-line-clamp: 5;
    }
    .c10 {
        -webkit-line-clamp: 10;
    }

    /* HOVE EFFECTS */

    .hover-slide-left {
        transition: all 200ms ease-in-out;
        &:hover {
            transform: translateX(-5px);
            transition: all 200ms ease-in-out;
        }
    }
    .hover-slide-right {
        transition: all 200ms ease-in-out;
        &:hover {
            transform: translateX(5px);
            transition: all 200ms ease-in-out;
        }
    }
    .hover-underline:hover {
        h1,
        h2,
        h3,
        p {
            text-decoration: underline;
        }
    }
}

/* @import "./plugin-gravity.css"; */
