/*!
Theme Name: CBD
Theme URI: https://www.cbwebsitedesign.co.uk/
Author: Creative Brand Design
Author URI: https://www.cbwebsitedesign.co.uk/
Description: Creative Brand Design
Version: 28.06.24
Text Domain: cbd
*/

/* Private Pages */
.post-password-form {
    height: 70vh;
    height: 70svh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.post-password-form>p {
    width: 100%;
    text-align: center;
    font-size: 115%;
}

.post-password-form label {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.post-password-form input[type=password] {
    padding: 0.75rem 1.5rem;
    background: none;
    border: 1px solid #fff;
    border-radius: 0.3rem;
}

.post-password-form input[type=submit] {
    padding: 0.75rem 1.5rem;
    background: #fff;
    border: 1px solid #fff;
    border-radius: 0.3rem;
    color: #000;
    cursor: pointer;
    font-weight: 600;
    transition: 0.3s opacity;
    margin-top: 1.5rem;
}

.post-password-form input[type=submit]:hover {
    opacity: 0.7;
}

/* Admin Bar */
.admin-bar>main {
    margin-top: 32px;
}

@media (min-width: 782px) {
    .admin-bar>.header {
        top: calc(1rem + 32px);
    }
}

@media (max-width: 782px) and (min-width: 768px) {
    .admin-bar>.header {
        top: calc(1rem + 46px);
    }
}

@media (min-width: 1280px) {
    .admin-bar>.header {
        top: calc(2rem + 32px);
    }
}

@media (max-width: 1024px) {
    .admin-bar .header__nav {
        top: 32px;
        height: calc(100% - 32px);
    }
}

@media (max-width: 782px) {
    .admin-bar>main {
        margin-top: 46px;
    }

    .admin-bar .header__nav {
        top: 46px;
        height: calc(100% - 46px);
    }
}

@media (max-width: 768px) {
    .admin-bar>.header {
        top: calc(0.5rem + 46px);
    }
}

@media (max-width: 600px) {
    #wpadminbar {
        position: fixed;
    }
}

/* Base */
.h-\[100px\] {
    height: 100px;
}

@media (min-width: 768px) {
    .md\:w-2\/5 {
        width: 40%;
    }

    .md\:h-\[150px\] {
        height: 150px;
    }

    .md\:mt-8 {
        margin-top: 2rem;
    }
}

@media (min-width: 1024px) {
    .lg\:max-w-\[500px\] {
        max-width: 500px;
    }

    .lg\:h-\[480px\] {
        height: 480px;
    }

    .lg\:h-\[240px\] {
        height: 240px;
    }
}

/* Content */
.content>*:not(h1, h2, h3, h4, h5, h6, figure, :last-child) {
    margin-bottom: 1rem;
}

@media (min-width: 1024px) {
    .content>*:not(h1, h2, h3, h4, h5, h6, figure, :last-child) {
        margin-bottom: 1.5rem;
    }
}

.content>h1,
.content>h2,
.content>h3,
.content>h4,
.content>h5,
.content>h6 {
    font-weight: 500;
    margin-bottom: 1.75rem;
}

.content>h2 {
    font-size: 1.25rem;
    line-height: 1.75rem;
}

@media (min-width: 1024px) {
    .content>h2 {
        font-size: 1.5rem;
        line-height: 2rem;
    }
}

@media (min-width: 1280px) {
    .content>h2 {
        font-size: 1.875rem;
        line-height: 2.25rem;
    }
}

@media (min-width: 1536px) {
    .content>h2 {
        font-size: 48px;
        line-height: 1.35;
        letter-spacing: 0;
    }
}

.content>p {
    font-weight: 300;
    font-size: 1rem;
    line-height: 1.5rem;
}

@media (min-width: 1280px) {
    .content>p {
        font-size: 1.25rem;
        line-height: 1.75rem;
    }
}

.content>figure {
    margin-top: 2.5rem;
    margin-bottom: 2.5rem;
}

@media (min-width: 768px) {
    .content>figure {
        margin-top: 3.5rem;
        margin-bottom: 3.5rem;
    }
}

@media (min-width: 1280px) {
    .content>figure {
        margin-top: 4rem;
        margin-bottom: 4rem;
    }
}

/* Post */
.toc__content>h2 {
    font-size: 1.5rem;
    line-height: 2rem;
    margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
    .toc__content>h2 {
        font-size: 1.875rem;
        line-height: 2.25rem;
    }
}

@media (min-width: 1024px) {
    .toc__content>h2 {
        font-size: 2rem;
        line-height: 2.5rem;
    }
}

@media (min-width: 1280px) {
    .toc__content>h2 {
        line-height: 1.375;
        margin-bottom: 2.5rem;
    }
}

@media (min-width: 1536px) {
    .toc__content>h2 {
        font-size: 2rem;
        line-height: 1.25;
        letter-spacing: 0;
    }
}

/* Gravity Form */
.form .gform_wrapper.gravity-theme .gform_fields {
    grid-row-gap: 1rem;
}

@media (min-width: 641px) {
    .form .gform_wrapper.gravity-theme .gform_fields {
        grid-column-gap: 1rem;
    }
}

@media (min-width: 1536px) {
    .form .gform_wrapper.gravity-theme .gform_fields {
        grid-row-gap: 1.75rem;
        grid-column-gap: 1.5rem;
    }
}

.form .gform_wrapper.gravity-theme .gform_required_legend {
    display: none;
}

.form .gform_wrapper.gravity-theme .gfield_required_text {
    display: none;
}

.form .gform_wrapper.gravity-theme .gfield_label {
    font-weight: 300;
    font-size: 0.75rem;
    line-height: 1rem;
    margin-bottom: 0.25rem;
    cursor: pointer;
}

@media (min-width: 1024px) {
    .form .gform_wrapper.gravity-theme .gfield_label {
        font-size: 0.875rem;
        line-height: 1.25rem;
        margin-bottom: 0.5rem;
    }
}

.form .gform_wrapper.gravity-theme .gfield input,
.form .gform_wrapper.gravity-theme .gfield select,
.form .gform_wrapper.gravity-theme .gfield textarea {
    background: transparent;
    border: 1px solid rgba(32, 32, 32, 0.4);
    box-shadow: inset 0 0 0 0 rgba(0, 0, 0, 0);
    border-radius: 8px;
    font: 400 18px / 20px "Inter", "Arial", sans-serif;
    outline: none;
    padding: 15px 24px;
    transition: 0.3s;
    width: 100%;
}

@media only screen and (max-width: 641px) {
    .form .gform_wrapper.gravity-theme input:not([type=radio]):not([type=checkbox]):not([type=image]):not([type=file]) {
        line-height: 20px;
        min-height: auto;
    }
}

.form .gform_wrapper.gravity-theme .gfield input::placeholder,
.form .gform_wrapper.gravity-theme .gfield select::placeholder,
.form .gform_wrapper.gravity-theme .gfield textarea::placeholder {
    color: #787878;
}

.form .gform_wrapper.gravity-theme .gfield input:hover,
.form .gform_wrapper.gravity-theme .gfield select:hover,
.form .gform_wrapper.gravity-theme .gfield textarea:hover {
    box-shadow: inset 0 0 0 1px rgba(32, 32, 32, 0.1);
}

.form .gform_wrapper.gravity-theme .gfield input:focus,
.form .gform_wrapper.gravity-theme .gfield select:focus,
.form .gform_wrapper.gravity-theme .gfield textarea:focus {
    border-color: rgba(32, 32, 32, 0.8);
    box-shadow: inset 0 0 0 0 rgba(32, 32, 32, 0);
}

.form .gform_wrapper.gravity-theme .gfield textarea {
    resize: vertical;
    min-height: 80px;
}

.form .gform_wrapper.gravity-theme .gfield textarea.medium {
    height: 150px;
}

@media (min-width: 1024px) {
    .form .gform_wrapper.gravity-theme .gfield textarea.medium {
        height: 160px;
    }
}

.form .gform_wrapper.gravity-theme .gchoice input {
    display: none;
}

.form .gform_wrapper.gravity-theme .gchoice label {
    position: relative;
    max-width: 100%;
    cursor: pointer;
    padding-left: 1.75rem;
    font-size: 0.75rem;
    line-height: 1.25rem;
    font-weight: 300;
}

@media (min-width: 1024px) {
    .form .gform_wrapper.gravity-theme .gchoice label {
        font-size: 0.875rem;
    }
}

.form .gform_wrapper.gravity-theme .gchoice label:before {
    content: '';
    display: inline-block;
    width: 1.25rem;
    height: 1.25rem;
    border-width: 1px;
    border-color: rgba(32, 32, 32, 0.4);
    position: absolute;
    top: 0;
    left: 0;
    transition: 0.3s;
}

.form .gform_wrapper.gravity-theme .gfield_radio label:before {
    border-radius: 50%;
}

.form .gform_wrapper.gravity-theme .gchoice label:after {
    content: '';
    display: inline-block;
    width: 0.75rem;
    height: 0.75rem;
    background-color: #000;
    position: absolute;
    top: 0.25rem;
    left: 0.25rem;
    opacity: 0;
    transition: 0.3s;
}

.form .gform_wrapper.gravity-theme .gfield_radio label:after {
    border-radius: 50%;
}

.form .gform_wrapper.gravity-theme .gchoice input:checked+label:after {
    opacity: 1;
}

.form .gform_wrapper.gravity-theme .gform_footer {
    justify-content: flex-end;
    margin: 1.75rem 0 0;
    padding: 0;
}

@media (min-width: 1536px) {
    .form .gform_wrapper.gravity-theme .gform_footer {
        margin: 1.25rem 0 0;
    }
}

.form .gform_wrapper.gravity-theme .gform_footer button {
    margin-bottom: 0;
}

/* Ajax Loader */
.ajax_loader {
    width: 100%;
    height: 5rem;
    margin: 1.5rem auto 0;
    background: url(img/loader.gif) center/contain no-repeat;
}

/* Ajax Loading */
.ajax_loading {
    position: relative;
}

.ajax_loading>* {
    pointer-events: none;
    opacity: 0.5;
}

.ajax_loading:after {
    content: '';
    width: 100%;
    height: 100%;
    margin: auto;
    background: url(img/loader.gif) center/5rem no-repeat;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
}

.second-image {
    margin-top: 4rem;
}

.hero-decor__line img {
    z-index: 100000;
    top: 18rem;
}

.flex-section {
    display: flex;
}

.small-margin {
    margin-top: 5rem;
}

.small-margin p {
    font-size: 1rem;
}

@media(max-width: 768px) {
    .flex-section {
        display: block;
    }

    .second-image {
        margin-top: 13rem;
    }

    .hero-decor__line img {
        z-index: unset;
        top: 15rem;
    }
}

@media(min-width: 1536px) {
    .blog-content__section .top-32 {
        top: 10rem;
    }
    
    .\32xl\:text-96px {
        font-size: 90px;
    }
}

.rio-optimisation__section .btn-m:hover {
    color: #fff;
}

@media(max-width: 998px) {
    .ml-auto {
        margin-left: unset;
    }
}