/* PARAGRAPHS */

/* prevents full-bleed elements from triggering horizontal scroll */
html:has(body.page-node-type-basic-page-paragraphs),
body.page-node-type-basic-page-paragraphs {
    overflow-x: clip;
}

.page-node-type-basic-page-paragraphs .column-wrapper {
    margin-top: 25px;
}

.page-node-type-basic-page-paragraphs .container .content_layout {
    padding-bottom: 0;
    margin-top: 30px;
}

.smaller a {
    font-size: 14px;
    text-decoration: underline;
    color: black;
}

.paragraph__column h3 {
    color: #01977a !important;
    font-weight: 700;
    margin-bottom: 20px;
    font-size: 26px;
}

.paragraph--width--full .paragraph--type--bp-columns.col-sm {
    text-align: center;
}

.paragraph--type--bp-columns.col-sm {
    padding: 0 20px;
}

.paragraph--type--bp-columns.col-lg {
    padding: 0 20px;
}

.paragraph--type--bp-columns h2 {
    color: #01977a !important;
    font-weight: 700;
    font-size: 35px;
    margin: 0;
}

.field--label {
    display: none;
}

.column-wrapper.white {
    background-color: #ffffff;
}

.bg-primary {
    color: #fff;
    background-color: #019775;
    border-radius: 12px;
}


/* K4K SPECIFIC */

.k4k-font {
    font-family: "Dela Gothic One", sans-serif;
    color: #14425b;
    font-size: 36px;
    font-weight: 800;
}

.btn-residential {
    color: #fff !important;
    background-color: #019775;
    font-weight: 700;
    padding: 8px 25px;
    border-radius: 20px;
    margin-top: 15px;
    margin-bottom: 15px;
}

.px-7 {
    padding-right: 7rem !important;
}

.secondary-title {
    color: #c9e08a !important;
    font-weight: 700;
    margin-bottom: 18px;
    font-size: 30px;
}

.highlighted-teal {
    color: #01977a !important;
    font-weight: 700;
    font-size: 20px;
}

.teal {
    color: #01977a !important;
    font-weight: 700;
}

.highlighted-teal a {
    color: #01977a !important;
    font-weight: 700;
    font-size: 18px;
}

.hero-subtext {
    color: white;
    font-size: 20px;
    padding-top: 20px;
    width: 80%;
    margin: auto;
}

span.highlight {
    color: #01977a;
    font-weight: 700;
}

.column-wrapper.teal {
    background-color: #eaf3f2;
    border-radius: 12px;
    padding: 20px;
}

.column-wrapper.pattern {
    background-color: #14425b !important;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 20px;
}

.column-wrapper.k4k_custom {
    position: relative;
    z-index: 1;
}

/* full-bleed background without affecting element width */
.column-wrapper.k4k_custom::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: -25px;
    left: 50%;
    width: 100vw;
    transform: translateX(-50%);
    background-image: url("../images/Form_Background_Desktop.png");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: -1;
}

h2.white {
    color: white !important;
    font-weight: 700;
    margin-bottom: 18px;
    font-size: 30px;
}


/* DOTS */

.dots {
    position: relative;
    /* dotted line via background so both pseudo-elements are free for arrows */
    background-image: radial-gradient(circle, #c7c4c4 2px, transparent 2px);
    background-size: 12px 3px;
    background-position: 0 25%;
    background-repeat: repeat-x;
    border-radius: 20px;
}

/* .dots::before {
    content: "<";
    position: absolute;
    top: 25%;
    left: -12px;
    transform: translateY(-50%);
    font-size: 20px;
    color: #c7c4c4;
    line-height: 1;
    z-index: 1;
}

.dots::after {
    content: ">";
    position: absolute;
    top: 25%;
    right: -12px;
    transform: translateY(-50%);
    font-size: 20px;
    color: #c7c4c4;
    line-height: 1;
    z-index: 1;
} */

.dots > * {
    position: relative;
    z-index: 2;
}


/* ICON FEATURE */

.icon-feature-row {
    background: #dcdcdc;
    padding: 30px 0;
}

.icon-feature__title {
    font-weight: 600;
}

.icon-feature__icon img {
    margin-bottom: 3px;
}


/* CALL OUT */

.callout-section {
    background-color: #14425b;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 30px 0;
    border-radius: 20px;
}

section.callout-section.green {
    background: #019775;
}

.callout-body,
.callout-header {
    padding: 1rem 1rem 0;
}

.callout-section p {
    color: white;
}

.callout-title {
    color: white;
    font-size: 48px;
    line-height: 1.1;
    margin: 0;
}

.callout-item {
    text-align: center;
    color: white;
    padding: 20px;
}

.callout-item img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    margin-bottom: 15px;
}

.callout-item p {
    margin: 0;
    font-size: 16px;
}

@media (max-width: 991px) {
    .callout-title {
        text-align: center;
        font-size: 38px;
    }
}


/* PROCESS STEPS */

section.process-steps-row {
    background-color: #14425b !important;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding-top: 25px;
    border-radius: 20px;
    margin-bottom: 55px !important;
}

.process-steps {
    display: flex;
    justify-content: space-between;
    gap: 50px;
    align-items: start;
    width: 100%;
    margin-bottom: 30px;
    margin-top: 20px !important;
}

.process-step {
    text-align: center;
    padding: 0 15px;
}

.process-step__number {
    width: 42px;
    height: 42px;
    margin: 0 auto 20px;
    border-radius: 50%;
    border: 3px solid #009688;
    background: #009688;
    color: #fff;
    font-weight: 700;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 3;
}

.process-step__description {
    font-size: 16px;
    line-height: 1.6;
    color: white;
}

@media (max-width: 991px) {
    .process-step {
        margin-bottom: 50px;
    }

    .process-step::after {
        display: none;
    }

    .dots {
        background-image: none;
    }

    .dots::before,
    .dots::after {
        display: none;
    }
}


/* CARDS */

.grid-card {
    position: relative;
    overflow: hidden;
    min-height: 400px;
    background: #fff;
}

.grid-card-image {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.grid-card-image > *,
.grid-card-image :is(.field, .field__item, .media, picture, a) {
    width: 100%;
    height: 100%;
}

.grid-card-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.grid-card-content {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    padding: 20px 25px;
    background: #019775;
    min-height: 90px;
    transition: min-height 0.4s ease, padding 0.4s ease;
    justify-content: center;
    display: flex;
    flex-direction: column;
}

.grid-card-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    font-size: 25px;
    color: white;
}

.grid-card a {
    color: white;
    text-decoration: underline;
}

.grid-card-text {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    color: #fff;
    transition: max-height 0.4s ease, opacity 0.3s ease, margin-top 0.4s ease;
}

.grid-card:hover .grid-card-content {
    min-height: 60%;
    padding: 30px;
}

.grid-card:hover .grid-card-text {
    max-height: 300px;
    margin-top: 20px;
    opacity: 1;
}

.grid-card:hover .grid-card-arrow {
    transform: translateX(5px);
}


/* STATISTICS */

.bp-statistics {
    padding-bottom: 55px;
}

.bp-statistics__items {
    display: flex;
    justify-content: space-around;
    align-items: stretch;
    background: #019775;
    border-radius: 8px;
    overflow: hidden;
}

.bp-stat {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 50px;
    color: #fff;
    position: relative;
    min-width: 360px;
}

.bp-stat::after {
    content: "";
    position: absolute;
    right: -38px;
    top: 18%;
    height: 120px;
    width: 2px;
    background: rgba(255, 255, 255, 0.5);
}

.bp-stat__icon {
    margin-right: 20px;
    flex-shrink: 0;
}

.bp-stat__icon img,
.bp-stat__icon svg {
    width: 130px;
    height: 130px;
}

.bp-stat__header {
    font-size: 2rem;
    font-weight: 500;
    line-height: 1;
}

.bp-stat__item {
    font-size: 3rem;
    font-weight: 600;
}

.bp-stat__description {
    font-size: 0.9rem;
    opacity: 0.9;
}

@media (max-width: 1220px) {
    .bp-statistics__items {
        flex-direction: column;
    }

    .bp-stat {
        width: 100%;
        padding: 40px;
    }

    .bp-stat::after {
        content: "";
        position: absolute;
        bottom: 0;
        left: 10%;
        width: 80%;
        height: 2px;
        background: rgba(255, 255, 255, 0.5);
        top: auto;
        right: auto;
    }
}


/* WEBFORMS */

.webform-submission-k4k-new-interest-form-form .form-text {
    width: 100%;
}

.webform-submission-kits-for-kids-survey-form {
    background: white;
    padding: 20px 50px 70px 50px;
    margin: 30px 30px 0 30px;
}

.webform-submission-kits-for-kids-survey-form .webform-type-processed-text p {
    font-size: 18px;
}

.webform-submission-kits-for-kids-survey-form span.fieldset-legend {
    font-size: 20px;
}

.webform-submission-kits-for-kids-survey-form label {
    display: block;
    font-size: 20px;
}

.webform-submission-kits-for-kids-survey-form input#edit-email {
    visibility: visible;
    width: 100%;
}

.webform-submission-kits-for-kids-survey-form
    .form-actions.form-wrapper
    .form-submit {
    border: none;
    background: #01977a !important;
    border-radius: 20px !important;
}

.webform-submission-form select {
    padding: 10px;
    margin: 10px 0;
    width: 100%;
    height: 52px;
}

.webform-submission-kits-for-kids-survey-form .webform-submission-form input,
.webform-submission-form textarea {
    border: 1px solid #ccc;
    padding-left: 10px;
    margin: 10px 0;
    width: 49.5%;
    padding-top: 12px;
}

.webform-submission-k4k-new-interest-form-form {
    background-color: white;
    margin-left: 5rem;
    margin-right: 5rem;
    padding: 38px 38px 72px;
}

.webform-submission-k4k-new-interest-form-form input#edit-actions-submit {
    color: #fff !important;
    background-color: #019775;
    font-weight: 700;
    border-radius: 20px !important;
    margin-top: 15px;
    margin-bottom: 15px;
}

summary {
    padding-bottom: 30px;
}


/* ANIMATIONS */

.column-wrapper[class*="animate-"] {
    opacity: 0;
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.animate-slide_left {
    transform: translateX(-80px);
}

.animate-slide_right {
    transform: translateX(80px);
}

.animate-fade_up {
    transform: translateY(50px);
}

.animate-zoom_in {
    transform: scale(0.95);
}

.column-wrapper.is-visible {
    opacity: 1;
    transform: translate(0) scale(1);
}


/* K4K HERO */

.hero-k4k {
    position: relative;
    width: 100%;
    height: 600px;
    overflow: hidden;
}

.hero-video-k4k {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay-k4k {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
}

.hero-blob {
    position: absolute;
    width: 770px;
}

.hero-blob img {
    width: 100%;
    display: block;
}

.hero-content-k4k {
    position: absolute;
    top: 150px;
    left: 201px;
    max-width: 420px;
    color: white;
}

.hero-content-k4k h1 {
    font-size: 45px;
    line-height: 1;
    margin-bottom: 20px;
    font-family: "Dela Gothic One", sans-serif !important;
}

.hero-content-k4k p {
    font-size: 32px;
    margin-bottom: 0;
}

@media (max-width: 768px) {
    .hero-k4k {
        height: 500px;
    }

    .hero-blob {
        top: 115px;
        left: 50%;
        width: 70%;
        transform: translateX(-50%);
    }

    .hero-content-k4k {
        left: 50%;
        transform: translateX(-50%);
        top: 40%;
    }

    .hero-content-k4k h1 {
        font-size: 36px;
        margin-top: 0;
    }

    .hero-content-k4k p {
        font-size: 32px !important;
    }

    .secondary-title {
        text-align: center;
    }

    .paragraph > .paragraph__column {
        padding-right: 25px !important;
        padding-left: 25px !important;
    }
}


/* CAROUSEL */

.paragraph--type--bp-carousel .secondary-title {
    text-align: center;
}

.carousel {
    background-color: #14425b !important;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 60px 20px;
    position: relative;
    margin-bottom: 45px;
    margin-top: 45px;
    border-radius: 20px;
}

.carousel-inner p {
    color: white !important;
    font-size: 22px;
}

.carousel-content {
    display: flex;
    align-items: center;
    flex-direction: column;
    padding-right: 20rem !important;
    padding-left: 20rem !important;
    height: auto;
}

.carousel-indicators {
    display: none;
}

.carousel-control-prev,
.carousel-control-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: auto;
    opacity: 1;
    z-index: 10;
}

.carousel-control-prev {
    left: 25px;
}

.carousel-control-next {
    right: 25px;
}

.custom-arrow {
    background: none;
    border: 0;
    color: #fff;
    font-size: 3rem;
    text-shadow: none;
    z-index: 9999;
}

.custom-arrow:hover {
    color: #ccc;
}

.carousel-item {
    transition: transform 0.6s ease-in-out;
}
