/*
Theme Name: Twenty Twenty-Two Child
Template: twentytwentytwo
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
*/

/* Imports */
@import "./assets/css/flexboxgrid.min.css";
@import "./assets/css/vanilla-js-dropdown.css";

/* Hero Header */
.hero-header .wp-block-cover__background {
    box-shadow: inset 0 -90px 50px -40px #ffffff;
    opacity: 1 !important;
    background-color: transparent !important;
}

/* Header */
header.wp-block-template-part > div {
    position: relative;
}

header.wp-block-group.has-background {
    position: fixed;
    left: 0;
    right: 0;
    width: auto;
    box-shadow: 0px 2px 5px 0px rgba(0, 0, 0, 0.3);
    transition: transform .4s ease, height .4s ease, background-color .4s ease;
    z-index: 1000;
}

.scroll-up header.wp-block-group.has-background {
    transform: translateY(0);
}

.scroll-down header.wp-block-group.has-background {
    transform: translateY(-200%);
}

@media only screen and (max-width: 1320px) {
    header.wp-block-group.has-background {
        margin-left: 5% !important;
        margin-right: 5% !important;
    }
}

/* Typography */
h2 {
    padding-left: 25px;
    border-left: 5px solid #23B24B;
}

h3 {
    padding-bottom: 20px;
    border-bottom: 2px solid #23B24B;
}

/* Footer */
footer {
    margin-block-start: 0;
}

/* Links */
.green_link a {
    border-bottom: 2px solid transparent;
    transition: color 0.5s ease, border 0.5s ease;
}

.wp-block-navigation .wp-block-navigation-item.green_link a:hover,
.wp-block-navigation .wp-block-navigation-item.green_link a:focus {
    text-decoration: none;
    color: #23B24B;
    border-bottom: 2px solid #23B24B;
}

/* Forms */
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"] {
    height: 45px;
    width: 100%;
    border: none;
    border-bottom: 2px solid rgba(0, 0, 0, 1);
}

input:focus {
    outline: none;
    border-color: #23B24B;
}

textarea {
    width: calc(100% - 30px);
    border: 2px solid rgba(0, 0, 0, 1);
    border-radius: 15px;
    padding: 15px;
}

textarea:focus {
    outline: none;
    border-color: #23B24B;
}

input::placeholder,
textarea {
    color: rgb(118, 118, 118);
    font-family: "Raleway", serif;
    font-size: 16px;
}

.wpcf7-form-control-wrap {
    display: block;
}

.form-control {
    margin-bottom: 10px;
}

.wpcf7-not-valid-tip {
    font-size: 14px;
}

/* Buttons */
.green-button {
    text-align: center;
}

.green-button.with-preloader {
    margin-right: -72px;
}

.green-button input {
    color: #fff;
    border: none;
    border-radius: 100px;
    padding: 1rem;
    background-color: #C5C5C5;
    font-size: 1.125rem;
    font-family: inherit;
    width: 290px;
    height: 60px;
}

.green-button a,
.green-button input {
    transition: background-color 0.5s ease;
}

.green-button a.has-background-background-color:hover,
.green-button input:hover {
    background-color: #23B24B !important;
    color: white !important;
}

/* Checkbox Styling */
.checkbox input[type="checkbox"] {
    opacity: 0;
    width: 0;
}

.checkbox span.wpcf7-list-item span {
    display: flex;
    align-items: center;
    position: relative;
    font-weight: normal;
    font-family: "Raleway", serif;
}

.checkbox span.wpcf7-list-item span::before {
    content: "";
    display: inline-block;
    height: 16px;
    width: 16px;
    border: 2px solid;
    border-radius: 100px;
    margin-right: 10px;
}

.checkbox span.wpcf7-list-item span::after {
    content: "";
    display: inline-block;
    height: 10px;
    width: 10px;
    border-radius: 100px;
    background-color: black;
    position: absolute;
    left: 5px;
    top: 5px;
}

.checkbox span.wpcf7-list-item span::after {
    content: none;
}

.checkbox span.wpcf7-list-item input[type="checkbox"]:checked + span::after {
    content: "";
}

.checkbox span.wpcf7-list-item input[type="checkbox"]:focus + span::before {
    outline: #23B24B auto 5px;
}

/* Misc */
.hidden {
    visibility: hidden;
    opacity: 0;
}

.stack {
    display: flex;
    flex-direction: row;
}

.round-image {
    position: absolute;
    top: -133px;
    left: 0;
    right: 0;
    margin: 0 auto;
    background-color: white;
}

.round-image__smaller {
    top: -100px;
}

.round-image-container {
    position: relative;
    margin-top: 150px !important;
}

/* Responsive Styles */
@media (max-width: 767.98px) {
    h1 { font-size: 36px; }
    h2 { font-size: 30px; }
    .tel-number { display: none; }

    header.wp-block-group.has-background {
        right: inherit;
        padding-right: 1rem !important;
        padding-left: 1rem !important;
    }

    .hero-header p { font-size: 18px !important; }
    .hero-header p, .hero-header h1 { text-align: left !important; }
    .wp-block-buttons.is-content-justification-center { justify-content: left; }

}

@media (max-width: 991.98px) {
    .slider-about { display: none; }
}
