/*
Theme Name: MCSNeo
Author: MCS Group
Author URI: https://www.mcsgroup.pl
License: Private
Text Domain: mcsneo
Version: 1.0.0
*/

body {
    color: #212529;
    font-family: "Figtree", sans-serif;
}

:root {
    --bbd-navy: #1B253F;
    --bbd-form-navy: #1B2644;
    --bbd-cream: #FDE4CE;
}

a {
    text-underline-offset: 0.15em;
}

.home .site-header,
.home .site-footer {
    display: none;
}

.home .site-main {
    padding-bottom: 0 !important;
    padding-top: 0 !important;
}

.bbd-hero {
    background-image: url("img/bg_main_bbd.jpg");
    background-position: center;
    background-size: cover;
    color: #fff;
    min-height: 100vh;
    position: relative;
}

.bbd-hero::after {
    background: linear-gradient(90deg, rgba(27, 37, 63, 0.18), rgba(27, 37, 63, 0));
    content: "";
    inset: 0;
    position: absolute;
}

.bbd-hero__inner {
    inset: clamp(2rem, 7vw, 5rem) auto auto clamp(1.5rem, 9vw, 7rem);
    max-width: min(40.625rem, calc(100vw - 3rem));
    position: absolute;
    z-index: 1;
}

.bbd-hero__logo {
    display: block;
    height: auto;
    max-width: min(31.25rem, 72vw);
    width: 100%;
}

.bbd-hero__title {
    font-family: 'Ranade', sans-serif;
    color: var(--bbd-cream);
    font-size: clamp(2.4rem, 5vw, 4.65rem);
    font-weight: 300;
    letter-spacing: 0.12em;
    line-height: 1.18;
    margin: clamp(2.5rem, 7vw, 5.75rem) 0 0;
}

.bbd-hero__contact {
    background: var(--bbd-cream);
    border-radius: 1.25rem;
    bottom: clamp(2rem, 8vh, 5rem);
    color: var(--bbd-navy);
    display: inline-flex;
    flex-direction: column;
    gap: 0.2rem;
    left: clamp(1.5rem, 9vw, 7rem);
    line-height: 1.2;
    padding: 1.05rem 1.45rem;
    position: absolute;
    z-index: 2;
}

.bbd-hero__contact a {
    color: var(--bbd-navy);
    text-decoration: none;
}

.bbd-hero__phone {
    color: var(--bbd-navy);
    font-size: clamp(1.21rem, 1.73vw, 1.55rem);
}

.bbd-hero__email {
    color: var(--bbd-navy);
    font-size: 0.82rem;
}

.bbd-hero__arrow {
    align-items: center;
    background: var(--bbd-cream);
    border-radius: 50%;
    bottom: clamp(2rem, 8vh, 5rem);
    display: flex;
    height: 3rem;
    justify-content: center;
    position: absolute;
    right: clamp(1.5rem, 7vw, 5rem);
    width: 3rem;
    z-index: 1;
}

.bbd-hero__arrow img {
    display: block;
    height: 1.5rem;
    width: 1.5rem;
}

.bbd-contact-section {
    align-items: center;
    background: var(--bbd-form-navy);
    color: #fff;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    padding: clamp(3rem, 7vw, 5rem) 1.25rem 2rem;
}

.bbd-contact-form {
    background: var(--bbd-cream);
    border-radius: 1.25rem;
    color: var(--bbd-navy);
    max-width: 33.5rem;
    padding: clamp(1.5rem, 3vw, 2rem);
    width: 100%;
}

.bbd-contact-form p {
    margin: 0;
}

.bbd-contact-form h2,
.bbd-form-title {
    font-family: 'Ranade', sans-serif;
    color: var(--bbd-navy);
    font-size: clamp(1.5rem, 2.5vw, 2rem);
    font-weight: 400;
    letter-spacing: 0.04em;
    line-height: 1.1;
    margin: 0 0 1rem;
    text-transform: uppercase;
}

.bbd-form-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.bbd-form-field,
.bbd-form-message,
.bbd-form-consent,
.bbd-form-submit {
    grid-column: 1 / -1;
}

.bbd-form-field--half {
    grid-column: auto;
}

.bbd-contact-form input[type="text"],
.bbd-contact-form input[type="email"],
.bbd-contact-form input[type="tel"],
.bbd-contact-form textarea {
    background: #fff;
    border: 0;
    border-radius: 0;
    color: var(--bbd-navy);
    font-size: 0.88rem;
    outline: 0;
    padding: 0.9rem 1rem;
    width: 100%;
}

.bbd-contact-form textarea {
    display: block;
    min-height: 5.4rem;
    resize: vertical;
}

.bbd-contact-form input::placeholder,
.bbd-contact-form textarea::placeholder {
    color: #8f96a6;
    opacity: 1;
    text-transform: uppercase;
}

.bbd-form-consent .wpcf7-list-item {
    margin: 0;
}

.bbd-form-consent label {
    align-items: flex-start;
    display: flex;
    gap: 0.75rem;
}

.bbd-form-consent input[type="checkbox"] {
    appearance: none;
    background: transparent;
    border: 1px solid var(--bbd-navy);
    flex: 0 0 auto;
    height: 1rem;
    margin: 0.1rem 0 0;
    width: 1rem;
}

.bbd-form-consent input[type="checkbox"]:checked {
    background: var(--bbd-navy);
    box-shadow: inset 0 0 0 0.2rem var(--bbd-cream);
}

.bbd-form-consent .wpcf7-list-item-label {
    color: var(--bbd-navy);
    display: block;
    font-size: 0.68rem;
    line-height: 1.15;
}

.bbd-form-consent a {
    color: var(--bbd-navy);
}

.bbd-contact-form input[type="submit"] {
    font-family: 'Ranade', sans-serif;
    background: var(--bbd-form-navy);
    border: 0;
    color: #fff;
    font-size: 1.05rem;
    letter-spacing: 0.08em;
    line-height: 1;
    padding: 0.9rem 1.45rem;
    text-transform: uppercase;
}

.bbd-contact-data {
    color: var(--bbd-cream);
    display: flex;
    flex-direction: column;
    font-size: 0.95rem;
    font-style: normal;
    gap: 0.25rem;
    line-height: 1.35;
    margin: 2rem 0 0;
    text-align: center;
}

.bbd-contact-data strong {
    font-weight: 400;
    margin-bottom: 0.6rem;
}

.bbd-contact-data a {
    color: var(--bbd-cream);
    text-decoration: none;
}

.wpcf7 form .wpcf7-response-output {
    border-color: var(--bbd-form-navy);
    color: var(--bbd-navy);
    margin: 1rem 0 0;
    padding: 0.75rem;
}

.wpcf7-not-valid-tip {
    color: #a43a3a;
    font-size: 0.78rem;
    margin-top: 0.25rem;
}

@media (max-width: 767.98px) {
    .home {
        background: #fff;
    }

    .bbd-hero {
        --bbd-mobile-top: 6.5rem;
        --bbd-mobile-image-height: clamp(16rem, 44vh, 21rem);
        --bbd-mobile-content-gap: 3.4rem;

        background-color: var(--bbd-form-navy);
        background-image: linear-gradient(
                var(--bbd-form-navy) 0,
                var(--bbd-form-navy) var(--bbd-mobile-top),
                transparent var(--bbd-mobile-top),
                transparent calc(var(--bbd-mobile-top) + var(--bbd-mobile-image-height)),
                var(--bbd-form-navy) calc(var(--bbd-mobile-top) + var(--bbd-mobile-image-height))
            ),
            url("img/bg_main_bbd.jpg");
        background-position: center top, center var(--bbd-mobile-top);
        background-repeat: no-repeat;
        background-size: 100% 100%, auto var(--bbd-mobile-image-height);
        min-height: 0;
        padding-bottom: 1.5rem;
        width: 100%;
    }

    .bbd-hero::after {
        display: none;
    }

    .bbd-hero__inner {
        inset: auto;
        max-width: none;
        padding: 1.8rem 2rem 0;
        position: relative;
    }

    .bbd-hero__logo {
        max-width: 15.3rem;
    }

    .bbd-hero__title {
        color: var(--bbd-cream);
        font-size: clamp(2rem, 8.5vw, 2.5rem);
        letter-spacing: 0.08em;
        line-height: 1.28;
        margin-top: calc(var(--bbd-mobile-image-height) + var(--bbd-mobile-content-gap));
    }

    .bbd-hero__contact {
        bottom: auto;
        left: auto;
        margin: var(--bbd-mobile-content-gap) 0 0;
        max-width: calc(100% - 7rem);
        padding: 1.05rem 1.35rem;
        position: static;
        transform: translateX(2rem);
    }

    .bbd-hero__phone {
        font-size: 1.25rem;
    }

    .bbd-hero__arrow {
        bottom: var(--bbd-mobile-content-gap);
        height: 2.75rem;
        right: 1.9rem;
        width: 2.75rem;
    }

    .bbd-form-field--half {
        grid-column: 1 / -1;
    }
}

.custom-logo {
    height: auto;
    max-height: 48px;
    width: auto;
}

.entry {
    max-width: 960px;
}

.entry-content {
    --mcsneo-content-width: 760px;
    --mcsneo-wide-width: 1100px;
}

.entry-content > * {
    max-width: var(--mcsneo-content-width);
}

.entry-content > .alignwide {
    max-width: var(--mcsneo-wide-width);
}

.entry-content > .alignfull {
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    max-width: 100vw;
    width: 100vw;
}

.entry-content > .alignleft {
    float: left;
    margin: 0.35rem 1.5rem 1rem 0;
}

.entry-content > .alignright {
    float: right;
    margin: 0.35rem 0 1rem 1.5rem;
}

.entry-content > .aligncenter {
    margin-left: auto;
    margin-right: auto;
}

.entry + .entry {
    margin-top: 2rem;
}

.entry-content > *:last-child {
    margin-bottom: 0;
}

.post-thumbnail {
    display: block;
    margin-bottom: 1.5rem;
}

.post-thumbnail img,
.entry-content img {
    height: auto;
    max-width: 100%;
}

.wp-block-image,
.wp-block-gallery,
.wp-block-cover,
.wp-block-table,
.wp-block-quote,
.wp-block-pullquote,
.wp-block-buttons {
    margin-bottom: 1.5rem;
}

.wp-block-cover,
.wp-block-cover-image {
    color: #fff;
}

.wp-block-table table {
    width: 100%;
}

.wp-block-quote {
    border-left: 4px solid #dee2e6;
    padding-left: 1rem;
}

.wp-block-pullquote {
    border-bottom: 4px solid #dee2e6;
    border-top: 4px solid #dee2e6;
    padding: 2rem 0;
}

.entry-meta span + span::before {
    content: " / ";
}

.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
    word-wrap: normal;
}
