/*
 * Home page (front-page.php). Sizes are Elementor's: mobile is up to 767px,
 * tablet up to 1024px. Percent paddings are of the page width.
 */

.tbz-home p {
    margin: 0;
}

.tbz-bg-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
}

/* Headings and lines shared by SERVICES, PROJECTS and CONTACT */

.tbz-heading {
    font-size: 23px;
    line-height: 1.5;
    letter-spacing: 10px;
}

.tbz-home .tbz-heading {
    margin-bottom: 14.4px;
}

.tbz-text {
    font-size: 14px;
    line-height: 1.5;
}

/* Hero */

.tbz-hero {
    position: relative;
    display: flex;
    align-items: flex-end;
    min-height: 100vh;
    overflow: hidden;
    background: #fff;
}

.tbz-hero-overlay {
    position: absolute;
    inset: 0;
    background-image: linear-gradient(360deg, #fff 0%, #ffffff00 50%);
}

.tbz-hero-content {
    position: relative;
    width: 100%;
    padding: 0 0 5% 5%;
}

.tbz-hero-logo {
    display: block;
    width: 450px;
    max-width: 100%;
    height: auto;
    margin-bottom: 35px;
}

.tbz-home .tbz-hero-tagline {
    margin-bottom: calc(14.4px + 20px);
    font-size: 16px;
    line-height: 1.5;
    letter-spacing: 5px;
    text-transform: uppercase;
}

.tbz-hero-button {
    display: inline-block;
    padding: 15px 25px;
    border: 1px solid #000;
    font-size: 13px;
    line-height: 1;
    letter-spacing: 2px;
    color: #000;
    text-decoration: none;
    background-color: transparent;
    transition: all 0.3s;
}

.tbz-home .tbz-hero-button:hover,
.tbz-home .tbz-hero-button:focus {
    color: #fff;
    background-color: #000;
}

/* SERVICES */

.tbz-services {
    padding: 10% 5%;
}

.tbz-services > .tbz-intro {
    width: 25%;
    padding-bottom: 100px;
}

.tbz-services-grid {
    display: flex;
    padding-top: 25px;
}

.tbz-service {
    width: 25%;
}

.tbz-service-animation {
    min-height: 120px;
    margin-bottom: 20px;
}

/* As Elementor's: the svg sits on the text line, so on phones the box is
   a few pixels taller than the animation. */
.tbz-lottie {
    width: 100px;
    font: 16px/24px -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
}

.tbz-home .tbz-service-title {
    margin-bottom: calc(14.4px - 15px + 20px);
    font-size: 15px;
    font-weight: 500;
    line-height: 1.5;
    letter-spacing: 3px;
    text-transform: uppercase;
}

.tbz-home .tbz-service-text {
    margin-bottom: 14.4px;
    font-size: 14px;
    line-height: 1.5;
}

/* PROJECTS */

.tbz-projects {
    display: flex;
    padding: 5%;
    background: #fff;
}

.tbz-projects-side {
    width: 25%;
}

.tbz-projects-intro {
    position: sticky;
    top: 50px;
}

.tbz-projects-gallery {
    width: 75%;
    margin-top: -50px;
}

.tbz-logos {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    margin: 0 -10px;
    padding: 0;
    list-style: none;
}

.tbz-logo {
    padding: 0 10px;
}

.tbz-logo > * {
    display: block;
    margin-bottom: 20px;
}

.tbz-logo img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 1;
    object-fit: contain;
}

@media (min-width: 767px) {
    .tbz-logo > * {
        transform: translateY(0);
        transition: all 0.5s ease;
    }

    .tbz-logo > *:hover {
        transform: translateY(-5px);
    }
}

/* CONTACT */

.tbz-contact {
    position: relative;
    z-index: 99;
    padding: 0 5%;
    background: #fff;
}

.tbz-contact-overlay {
    position: absolute;
    inset: 0;
    background-image: linear-gradient(180deg, #fff 0%, #00000000 100%);
}

.tbz-contact-inner {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 100vh;
}

.tbz-contact-box {
    width: 30%;
    flex-shrink: 0;
    padding: 50px;
    background: #fff;
}

.tbz-contact-rest {
    width: 70%;
    min-height: 1px;
}

.tbz-home .tbz-contact-details {
    margin-bottom: calc(14.4px + 20px);
    font-size: 14px;
    line-height: 25px;
}

.tbz-contact-details a {
    text-decoration: none;
}

.tbz-form-fields {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -5px -10px;
}

.tbz-field {
    position: relative;
    width: 100%;
    margin-bottom: 10px;
    padding: 0 5px;
}

.tbz-field-half {
    width: 50%;
}

.tbz-field-trap {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: 0;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
}

.tbz-form input,
.tbz-form textarea {
    display: block;
    width: 100%;
    min-height: 40px;
    margin: 0;
    padding: 8px 16px;
    border: 0;
    border-bottom: 1px solid #bcbcbc;
    border-radius: 0;
    font-family: "DM Sans", sans-serif;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.4;
    color: #000;
    background: transparent;
    box-shadow: none;
    outline: 0;
}

.tbz-form textarea {
    padding: 5px 14px;
}

.tbz-form input:focus,
.tbz-form textarea:focus {
    border-bottom: 1px solid #000;
    box-shadow: none;
    outline: 0;
}

.tbz-form ::placeholder {
    color: inherit;
    font-family: inherit;
    opacity: 0.6;
}

.tbz-form-submit {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 0;
    border: 0;
    border-radius: 0;
    font-family: "DM Sans", sans-serif;
    font-size: 14px;
    font-weight: 500;
    line-height: 1;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #000;
    background: transparent;
    cursor: pointer;
}

.tbz-form-submit:hover,
.tbz-form-submit:focus {
    color: #000;
    background: transparent;
    outline: 0;
}

.tbz-form-submit[disabled] {
    opacity: 0.5;
}

.tbz-form-message {
    margin: 10px 0;
    font-size: 13px;
    line-height: 1;
}

.tbz-form-message.is-success {
    color: #000;
}

.tbz-form-message.is-error {
    color: #d9534f;
}

/* reCAPTCHA's badge stays hidden, as before. */
.grecaptcha-badge {
    visibility: hidden;
}

/* Copyright */

.tbz-copyright {
    padding: 15px 0;
    background: #fff;
}

.tbz-copyright p {
    max-width: 1400px;
    margin: 0 auto;
    font-size: 12px;
    line-height: 1.5;
    letter-spacing: 5px;
    text-align: center;
    text-transform: uppercase;
}

/* Tablet */

@media (max-width: 1024px) {
    .tbz-logos {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Mobile */

@media (max-width: 767px) {
    .tbz-hero-content {
        padding: 0 5% 45%;
        text-align: center;
    }

    .tbz-hero-logo {
        width: 250px;
        margin: 0 auto 20px;
    }

    .tbz-home .tbz-hero-tagline {
        font-size: 15px;
    }

    .tbz-services {
        padding: 15% 10%;
    }

    /* 1px: Elementor's empty column beside the intro, stacked under it. */
    .tbz-services > .tbz-intro {
        width: 100%;
        padding-bottom: 1px;
    }

    .tbz-text {
        font-size: 15px;
    }

    .tbz-services-grid {
        flex-direction: column;
        padding-top: 50px;
    }

    .tbz-service {
        width: 100%;
        padding: 25px 0;
    }

    .tbz-service:first-child {
        padding-top: 0;
    }

    .tbz-service:last-child {
        padding-bottom: 0;
    }

    .tbz-service-animation {
        min-height: 0;
    }

    .tbz-lottie {
        width: 80px;
    }

    .tbz-projects {
        flex-direction: column;
        padding: 15% 10%;
    }

    .tbz-projects-side,
    .tbz-projects-gallery {
        width: 100%;
    }

    .tbz-projects-intro {
        position: static;
    }

    .tbz-projects-gallery {
        margin-top: 20px;
    }

    /* Wider than the text: the logos have white space of their own, so the
       grid would look pushed in. */
    .tbz-logos {
        margin: 0 -24px;
    }

    .tbz-logo {
        padding: 0;
    }

    .tbz-logo > * {
        margin-bottom: 0;
    }

    /* The space under the box is the same as at the sides. */
    .tbz-contact {
        padding: 15% 10% 10%;
    }

    .tbz-contact-inner {
        min-height: 0;
    }

    .tbz-contact-rest {
        display: none;
    }

    .tbz-contact-box {
        width: 100%;
    }

    .tbz-contact-box {
        padding: 35px;
    }

    .tbz-home .tbz-contact-details {
        font-size: 15px;
    }

    .tbz-field-half {
        width: 100%;
    }

    .tbz-copyright {
        padding: 22px 0;
    }

    .tbz-copyright p {
        font-size: 10px;
        letter-spacing: 1px;
    }
}
