/*
 Theme Name:   OhSo Child Theme
 Theme URI:    https://ohsocreative.co.uk
 Description:  
 Author:       OhSo Creative
 Author URI:   https://ohsocreative.co.uk
 Template:     bricks
 Version:      1.2
 Text Domain:  ohso-child
*/

html {
    font-size: 62.5%;
}

/* VARIABLES */
:root {
    --os-space-xxl: clamp(8rem, 3.824vw + 6.776rem, 12rem);
    --os-space-xl: clamp(3.6rem, 4.207vw + 2.254rem, 8rem);
    --os-space-l: clamp(2.4rem, 2.294vw + 1.666rem, 4.8rem);
    --os-space-m: clamp(1.6rem, 1.53vw + 1.111rem, 3.2rem);
    --os-space-s: clamp(0.8rem, 0.765vw + 0.555rem, 1.6rem);
    --os-section-gutter: clamp(2.8rem, 3.442vw + 1.699rem, 6.4rem);
    --os-section-padding: clamp(8rem, 3.824vw + 6.776rem, 12rem);
}

:root {
    --os-radius-xl: clamp(4.8rem, 3.059vw + 3.821rem, 8rem);
}

/* COLOURS */
:root {
    --os-primary: hsl(250deg, 57%, 24%);
    --os-primary-dark: hsl(250deg, 57%, 10%);
    --os-secondary: hsl(340deg, 75%, 29%);
    --os-base: hsl(358deg, 5%, 19%);
    --os-base-trans-50: hsla(358deg, 5%, 19%, 0.5);
    --os-base-trans-80: hsla(358deg, 5%, 19%, 0.8);
    --os-text: hsl(358deg, 5%, 19%);
    --os-overlay__blue: hsla(250deg, 57%, 24%, 0.8);
}

/* EFFECTS */
:root {
    --os-box-shadow-l: 0.5rem 0.5rem 3rem rgba(0, 0, 0, 0.2);
}

/* ANIMATION */
:root {
    --os-transition: 0.3s;
}

/* LAYOUT */
:root {
    --os-col-gap: clamp(4rem, 3.824vw + 2.776rem, 8rem);
}

:where(.wp-block-columns.is-layout-flex),
:where(.editor-styles-wrapper) :where(.wp-block-columns.is-layout-flex) {
    gap: var(--os-col-gap) !important;
}

/* correct Bricks full width block style */
.alignwide {
    width: 100%;
    margin-left: 0;
}

.alignfull,
.wp-block-categories-list.alignfull {
    max-width: 100vw;
    left: 0;
    right: 0;
    margin-left: 0;
    margin-right: 0;
}

/* remove default margin-bottom from WP Columns block */
.wp-block-columns {
    margin-bottom: 0;
}

/* remove margins from WP first-child elements */
.wp-block-image:first-child {
    margin-top: 0;
}

.wp-block-image:last-child {
    margin-bottom: 0;
}

.os-container {
    width: 100%;
    max-width: var(--wp--style--global--content-size);
    margin: 0 auto;
}

/* correct styles in editor */
a.os-button {
    text-decoration: none !important;
}

/* TYPOGRAPHY */
h1 {
    font-family: "Inter", Arial, sans-serif;
    font-weight: 700;
}

h2,
h3,
h4,
h5,
h6 {
    font-family: "Montserrat", Arial, sans-serif;
    font-weight: 400;
    color: var(--wp--preset--color--brand-red);
}

h1.wp-block-heading {
    margin-top: 4rem;
    margin-bottom: 3rem;
}

h2.wp-block-heading {
    margin-top: 3rem;
    margin-bottom: 2rem;
    font-size: var(--wp--preset--font-size--extra-large);
}

h3.wp-block-heading {
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-size: var(--wp--preset--font-size--large);
}

h1.wp-block-heading:first-child,
h2.wp-block-heading:first-child,
h3.wp-block-heading:first-child {
    margin-top: 0;
}

p {
    margin-bottom: 1.2rem;
    font-size: var(--wp--preset--font-size--medium);
    font-family: "Montserrat", Arial, sans-serif;
}

a,
.editor-styles-wrapper a {
    transition: 0.3s;
    text-decoration: none;
    color: var(--wp--preset--color--brand-red-hover);
}

a:hover {
    color: var(--wp--preset--color--brand-red);
    text-decoration: underline;
}

/* CLICKABLE PARENT */
.os-clickable-parent:not(a) {
    position: static;
}

.os-clickable-parent:not(a) a {
    position: static;
}

.os-clickable-parent:not(a)>a::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    cursor: pointer !important;
    display: flex;
    z-index: 2;
}

a.os-clickable-parent {
    position: static;
}

a.os-clickable-parent::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    cursor: pointer !important;
    display: flex;
}

/* HEADER NAV */
.bricks-nav-menu-wrapper li.os-nav__button a {}

.bricks-nav-menu-wrapper li.os-nav__button a {
    border: 2px solid var(--wp--preset--color--brand-red);
    color: var(--wp--preset--color--base) !important;
    border-radius: 9999px;
    padding: 12px 24px;
    font-size: 14px !important;
}

@media screen and (max-width: 991px) {
    .bricks-mobile-menu-wrapper li.os-nav__button a {
        border: 2px solid var(--wp--preset--color--brand-red);
        color: var(--wp--preset--color--base) !important;
        border-radius: 9999px;
        font-size: 18px !important;
        padding: 16px 36px !important;
        width: auto !important;
        display: inline-block;
        text-align: center;
    }
}

.menu-level-3-title a,
.menu-level-3-title:hover a {
    background-color: #ccc !important;
    color: var(--wp--preset--color--base) !important;
    cursor: default;
    position: relative;
}

@media screen and (max-width: 991px) {
    .menu-level-3-title a {
        padding-top: 24px !important;
    }
}

.menu-level-3-title a::after {
    content: "";
    width: 1.6rem;
    height: 1.6rem;
    background-image: url("img/slider-arrow.svg");
    background-repeat: no-repeat;
    background-size: contain;
    position: absolute;
    right: 2.4rem;
    top: calc(50% + 3px);
    transform: translateY(-50%) rotate(90deg);
}

@media screen and (max-width: 480px) {
    .os-header__nav.brxe-nav-menu .bricks-mobile-menu-wrapper {
        padding-left: 16px;
        padding-right: 16px;
        width: 90% !important;
    }
}

li.os-nav__button a:hover {
    background-color: var(--wp--preset--color--brand-red-hover);
    color: white !important;
    transform: translate(0, -0.2rem);
}

.os-header__nav .bricks-mobile-menu-wrapper {
    padding: 64px 64px 32px 32px;
    max-width: 480px;
}

.os-header__nav .bricks-mobile-menu>li.menu-item {
    border-bottom: 1px solid var(--wp--preset--color--light-grey);
    padding: 24px 16px;
}

.os-header__nav .bricks-mobile-menu>li.menu-item a {
    line-height: 1.3;
}

.os-header__nav .bricks-mobile-menu>li.menu-item>ul>li.menu-item {
    padding-top: 24px;
}

.os-header__nav .bricks-mobile-menu ul.sub-menu {
    box-shadow: none;
}


/* MODALS */
.os-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--os-base-trans-80);
    z-index: 9999;
    display: none;
    justify-content: center;
    align-items: center;
    padding: var(--os-section-padding);
}

.os-modal__inner {
    position: relative;
    background-color: white;
    border-radius: var(--os-space-xl) 0 var(--os-space-xl) 0;
    width: 100%;
    max-width: 960px;
    max-height: 100%;
    padding: var(--os-space-xl);
}

.os-modal__close {
    position: absolute;
    top: 24px;
    right: 24px;
    color: var(--wp--preset--color--brand-red);
    background: none;
    font-size: 36px;
    transition: var(--os-transition);
}

.os-modal__close:hover {
    color: var(--wp--preset--color--brand-red-hover);
}


/* GRAVITY FORMS */
.gform_wrapper .os-form input {
    color: black;
}

.gform-body {
    color: black;
}

.gform_wrapper.gravity-theme .os-form input[type=text],
.gform_wrapper.gravity-theme .os-form textarea,
.gform_wrapper.gravity-theme .os-form input[type=email],
.gform_wrapper.gravity-theme .os-form input[type=tel] {
    border-radius: 2rem;
    padding-left: 2rem;
}

.gform_wrapper.gravity-theme .os-form textarea {
    padding-top: 2rem;
}

.gform_wrapper.gravity-theme .os-form ::placeholder {
    color: grey;
    text-transform: uppercase;
}

.gform_wrapper.gravity-theme .os-form input[type=submit] {
    font-size: var(--wp--preset--font-size--small);
    font-family: "Inter", Arial, sans-serif;
    background-color: var(--wp--preset--color--brand-red);
    padding: 1.6rem 3rem;
    color: white;
    transition: var(--os-transition);
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 99999px;
    border-style: none;
}

.gform_wrapper.gravity-theme .os-form input[type=submit]:hover {
    background-color: var(--wp--preset--color--brand-red-hover);
    transform: translate(0, -0.2rem);
}

.gform_confirmation_message {
    color: black;
}

/* SCRIPTLESS SOCIAL SHARING */
.scriptlesssocialsharing {
    margin-top: 12px !important;
}

.scriptlesssocialsharing .button {
    border-radius: 1.6rem 0 1.6rem 0 !important;
    margin-right: 1rem !important;
    transition: 0.3s;
}

.scriptlesssocialsharing .button:hover {
    transform: translateY(-5px);
}

/*Gridbuilder */
@media (max-width: 576px) {
    .wpgb-facet.wpgb-facet-1 {
        width: 100% !important;
        box-sizing: border-box;
    }

    .full-width-mobile-facet {
        width: 100% !important;
        height: 56px !important;
    }
}

.wp-block-cover img {
    height: 100%;
}