/* 
Wordpress breakpoints: Mobile - (0-599) / Tablet (600-767) / Desktop (768-99999)
*/

/* 
    --wp--preset--color--custom-base: #ffffff;
    --wp--preset--color--custom-contrast: #023b58;
    --wp--preset--color--custom-primary: #00678b;
    --wp--preset--color--custom-second: #2ca6a4;
    --wp--preset--color--custom-third: #f6f6f6;
    --wp--preset--color--custom-green: #b9d768;
    --wp--preset--color--custom-yellow: #f9ed43;
    --wp--preset--color--custom-pink: #f06491;
*/

.gform_wrapper {
    /* --global-kb-font-size-sm: clamp(0.8rem, 0.73rem + 0.217vw, 0.9rem); */
    /* --global-kb-font-size-md: clamp(1.1rem, 0.995rem + 0.326vw, 1.25rem); */
    --global-kb-font-size-lg: 1.5rem;
    --gf-form-gap-y: 15px;
    /* --global-kb-font-size-xl: clamp(2.25rem, 1.728rem + 1.63vw, 3rem); */
    /* --global-kb-font-size-xxl: clamp(2.5rem, 1.456rem + 3.26vw, 4rem); */
    /* --global-kb-font-size-xxxl: clamp(2.75rem, 0.489rem + 7.065vw, 6rem); */
}

html {
    scroll-padding-top: 200px;
    /* offset for anchor links */
    scroll-behavior: smooth;
    /* smooth scrolling for anchor links */

    /* --global-kb-font-size-lg: clamp(1.65rem, 1.576rem + 0.543vw, 1.65rem); */
}

/* 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: linear-gradient(180deg,
                rgba(255, 255, 255, 1) 0%,
                rgba(255, 255, 255, 0) 100%);
    }
}

.coast p strong {
    font-weight: 500;
}

/* Dyslexic-friendly font styles */

.dyslexia-friendly-font * {
    font-family: 'OpenDyslexic', Arial, sans-serif !important;
    line-height: 1.5 !important;
    letter-spacing: 0.05em !important;
}

.coast .navigation {
    .kb-nav-link-content {
        margin-top: 3px
    }
}

.kt-inside-inner-col:has(.fixed-image-bottom-right img) {
    overflow: hidden;
}

.kt-inside-inner-col:has(.fixed-image-bottom-right img) p {
    z-index: 2;
    position: relative;
}

.fixed-image-bottom-right img {
    position: absolute;
    bottom: -10px;
    right: 0;
    width: 60%;
}

/* Kadence Overrides */

.coast .kb-button {
    font-family: var(--wp--preset--font-family--gimlet-sans-variable);

    .kt-btn-inner-text {
        margin-top: 1px;
    }

    &:hover .kb-svg-icon-wrap {
        transform: translateX(3px);
        transition: transform 0.3s;
    }


}

.coast .wp-block-kadence-navigation .kb-nav-link-content {
    transition: all .1s ease-in-out;
}

/* menu item symbol */

.coast .wp-block-kadence-navigation-link .kb-nav-arrow-svg {
    top: 1px;
}

.coast nav.kb-table-of-content-nav {
    margin-bottom: 0 !important;
}

.coast .kb-table-of-content-wrap .kb-table-of-content-list {
    list-style: none;
    padding-left: 0;
    margin-top: 0;
    margin-bottom: 0;
}

.coast .kb-google-maps-container {
    border-radius: 30px;
    overflow: hidden;
}

/* SECTION HEIGHT FIX - Inner collumn loses 100% for some reason */

@media screen and (max-width: 767px) {
    .kt-inner-column-height-full.kt-mobile-layout-row>.wp-block-kadence-column>.kt-inside-inner-col {
        height: 100%;
    }

    .kt-inner-column-height-full.kt-mobile-layout-row {
        grid-auto-rows: minmax(0, 1fr);
    }

    .kt-inner-column-height-full:not(.kt-row-layout-row)>.wp-block-kadence-column {
        align-self: center;
    }
}

.coast .gform_wrapper {

    input,
    input[type="text"],
    input[type="email"],
    input[type="tel"],
    input[type="number"],
    input[type="password"],
    input[type="url"],
    input[type="date"],
    input[type="time"],
    input[type="datetime"],
    input[type="datetime-local"],
    input[type="week"],
    input[type="month"],
    input[type="search"],
    input[type="color"],
    input[type="checkbox"],
    input[type="radio"],
    input[type="file"],
    input[type="button"],
    input[type="reset"],
    input[type="image"],
    select,
    textarea {
        border-radius: 30px;
        border: none !important;
        background-color: #00678b !important;
        color: white !important;
        padding: 26px !important;
        font-size: 1rem !important;
    }

    input[type="button"],
    input[type="submit"] {
        border-radius: 30px !important;
    }

    #gform_submit_button_4 {
        padding: 15px 40px !important;
        border-radius: 30px;
        border: none !important;
        background-color: var(--wp--preset--color--custom-contrast) !important;
        color: white !important;
        font-size: 1rem !important;
        font-family: "Gimlet Sans Variable", sans-serif !important;
        text-transform: uppercase;
        letter-spacing: 1px;

        &:hover {
            background-color: #1796d0 !important;
        }
    }

    .gform-field-label {
        display: none;
    }

    /* .gform_fields {
            column-gap: 0;
            display: flex;
        } */
    .enrolment-form {
        h2.gform_title {
            font-size: 1rem;
            margin-bottom: 20px;
        }
    }

    .signup {
        input {
            border-radius: 30px;
            border-top-right-radius: 0px;
            border-bottom-right-radius: 0px;
            background-color: white !important;

            &::placeholder {
                color: var(--wp--preset--color--custom-contrast);
            }
        }

        #gform_submit_button_2 {
            padding: 18px 30px !important;
            background-color: #1796d0 !important;
            color: var(--wp--preset--color--custom-base) !important;
            border-top-right-radius: 30px;
            border-top-left-radius: 0px !important;
            border-bottom-right-radius: 30px;
            border-bottom-left-radius: 0px !important;
            text-transform: uppercase;
            letter-spacing: 1px;

            &::placeholder {
                color: var(--wp--preset--color--custom-contrast);
            }

            &:hover {
                background-color: var(--wp--preset--color--custom-pink) !important;
            }
        }

        .gform_fields {
            column-gap: 0;
            display: flex;
        }
    }

    .gform_required_legend {
        display: none;
    }

    .gform_validation_errors {
        display: none;
    }

    .validation_message {
        color: #ff9700;
    }
}

.coast .change-font {
    position: fixed;
    right: 0;
    bottom: 50vh;
    z-index: 99999;

    img {
        padding: 5px;
        border-top-left-radius: 20px;
        border-bottom-left-radius: 20px;
        box-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
    }
}

/* .coast end */

/* Navigation Mobile Custom Breakpoint 
     * - change max-width to desired point hamburger appears 
     */

/* @media screen and (max-width: 1370px) {        
        .wp-block-navigation__responsive-container-open {
            display: block !important;
        }        
        .wp-block-navigation__responsive-container:not(
                .is-menu-open.has-modal-open
            ) {
            display: none !important;
        }
    } */

/* TEXT */

/* Clip text lines with css, add .clp-txt + .c(no of lines 2,3,5 or 10)  */

.clip-text-2 {
    display: -webkit-box !important;
    -webkit-box-orient: vertical;
    overflow: hidden;
    -webkit-line-clamp: 2;
}

.clip-text-3 {
    display: -webkit-box !important;
    -webkit-box-orient: vertical;
    overflow: hidden;
    -webkit-line-clamp: 3;
}

.clip-text-5 {
    display: -webkit-box !important;
    -webkit-box-orient: vertical;
    overflow: hidden;
    -webkit-line-clamp: 5;
}

.no-underline,
.no-underline *,
.no-underline *:hover {
    text-decoration-line: none;
}

/* 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;
    }
}

/* Animate in */

.coast-hidden {
    opacity: 0;
    transition: all 1s;
}

.coast-hidden:nth-child(2) {
    transition-delay: 200ms;
}

.coast-hidden:nth-child(3) {
    transition-delay: 400ms;
}

.coast-hidden:nth-child(4) {
    transition-delay: 600ms;
}

@media-preferes-reduced-motion {
    transition: none;
}

.coast-visible {
    opacity: 1;
}

/* @import "./plugin-gravity.css"; */
