
/* LEVITRIBE_PHASE4C_V1 */

/* Temporarily suppress unverified demonstration material.
   The original Voyceo HTML remains available for later use. */
section[data-levitribe-pending="true"] {
    display: none !important;
}

.levitribe-official-socials {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 22px;
    padding: 20px 15px;
}

.levitribe-official-socials a {
    color: #C0392B;
    text-decoration: none;
    font-weight: 600;
}

.levitribe-official-socials a:hover {
    text-decoration: underline;
}


/* Levi Tribe Talent: preserve original photo, crop to card frame */
.project-card .project-cart_logo picture:has(
    img[src="img/levitribe/debby-whyte-optimized.webp"]
) {
    display: block;
    width: 100%;
    aspect-ratio: 376 / 250;
    overflow: hidden;
}

.project-card .project-cart_logo img[
    src="img/levitribe/debby-whyte-optimized.webp"
] {
    display: block;
    width: 100%;
    height: 100%;
    aspect-ratio: 376 / 250;
    object-fit: cover;
    object-position: center center;
}


/* LEVITRIBE PHASE 6 */
:root {
    --levitribe-primary-red: #C0392B;
    --levitribe-primary-black: #1C1C1C;
}

html {
    scroll-behavior: smooth;
}

[id="home"],
main section[id],
footer[id] {
    scroll-margin-top: 105px;
}

.main-nav .menu > li.active > a,
.main-nav .menu > li > a:hover {
    color: var(--levitribe-primary-red);
}

#about .text-section_video h2,
#about .text-block h2 {
    font-size: clamp(19px, 2.15vw, 31px);
    white-space: nowrap;
}

@media (max-width: 767px) {
    #about .text-section_video h2,
    #about .text-block h2 {
        font-size: clamp(17px, 4.7vw, 25px);
    }
}



/* LEVITRIBE PHASE 7 — TALENT NAVIGATION */
#talent-feature {
    scroll-margin-top: 125px;
}

.main-nav .menu > li.active > a {
    color: #C0392B;
}


/* LEVITRIBE PHASE 9 — CINEMATIC BRAND */
:root {
    --lt-black: #1C1C1C;
    --lt-white: #FFFFFF;
    --lt-red: #C0392B;
    --lt-red-hover: #A93226;
}

/* Active navigation: restrained red */
.main-nav .menu > li.active > a,
.main-nav .menu > li > a:hover,
.main-nav .menu > li > a:focus-visible {
    color: var(--lt-red);
}

/* Preserve original button shape and motion */
a.button:hover,
button.button:hover,
input.button:hover {
    background-color: var(--lt-red-hover);
    border-color: var(--lt-red-hover);
    color: var(--lt-white);
}

/* Cinematic red accent for keyboard accessibility */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid var(--lt-red);
    outline-offset: 3px;
}

/* Brand-red emphasis within content */
main a:not(.button):not(.project-cart_logo):hover {
    color: var(--lt-red);
}

/* Respect visitors who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
}



/* LEVITRIBE_PHASE10 — HEADER AND FOOTER */
:root {
    --lt-brand-red: #C0392B;
    --lt-brand-black: #1C1C1C;
    --lt-brand-white: #FFFFFF;
}

/* Header active-state colour */
.main-nav .menu > li.active > a,
.main-nav .menu > li > a:hover {
    color: var(--lt-brand-red) !important;
}

/* Replace the theme's gradient underline */
.main-nav .menu > li.active > a::after,
.main-nav .menu > li > a::after {
    background: var(--lt-brand-red) !important;
    background-image: none !important;
}

/* Footer colour foundation */
footer {
    background-color: var(--lt-brand-black) !important;
    background-image: none !important;
    color: var(--lt-brand-white);
}

footer p,
footer li,
footer address,
footer .copyright {
    color: #E8E8E8;
}

footer a {
    color: var(--lt-brand-white);
}

footer a:hover,
footer a:focus-visible {
    color: var(--lt-brand-red);
}

footer svg,
footer .theme-color {
    color: var(--lt-brand-red);
}

/* Restrained footer links */
footer a[href^="mailto:"],
footer a[href*="instagram.com"],
footer a[href*="youtube.com"],
footer a[href*="privacy-policy"],
footer a[href*="terms-of-service"] {
    color: var(--lt-brand-red);
}

footer a[href^="mailto:"]:hover,
footer a[href*="instagram.com"]:hover,
footer a[href*="youtube.com"]:hover {
    color: var(--lt-brand-white);
}



/* LEVITRIBE_PHASE12 — BRAND COLOUR FINISH */

/* Disable the original gradient menu indicator.
   Use the actual active navigation item instead. */
.main-nav[data-menu-gradient]::before,
.main-nav[data-menu-gradient]::after,
.main-nav[data-menu-gradient] .menu::before,
.main-nav[data-menu-gradient] .menu::after {
    background: transparent !important;
    background-image: none !important;
    box-shadow: none !important;
}

.main-nav .menu > li > a {
    position: relative;
}

.main-nav .menu > li > a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -18px;
    height: 3px;
    background: transparent !important;
    background-image: none !important;
    border-radius: 0;
    box-shadow: none !important;
    opacity: 0;
}

.main-nav .menu > li.active > a::after {
    background: #C0392B !important;
    opacity: 1;
}

.main-nav .menu > li.active > a {
    color: #C0392B !important;
}

/* Footer contact icon colour */
footer .theme-color,
footer .contact-icon,
footer .contact-info i,
footer .contact-info svg,
footer .footer-contacts i {
    color: #C0392B !important;
}

/* Original legacy social icons remain non-clickable */
footer .social-icons i,
footer .social-icons svg,
footer .social-list i,
footer .social-list svg {
    color: #D9D9D9 !important;
    fill: currentColor;
}

/* Back-to-top control */
.to-top,
.to-top:hover,
.to-top:focus {
    background: #C0392B !important;
    background-image: none !important;
    box-shadow: none !important;
}

.to-top i,
.to-top svg {
    color: #FFFFFF !important;
}


/* LEVITRIBE_PHASE13 — PRECISE VOYCEO FIX */

/* The original gradient span has been removed from HTML. */
.main-nav .menu-gradient {
    display: none !important;
}

/* Disable the earlier artificial underline. */
.main-nav .menu > li > a::after,
.main-nav .menu > li.active > a::after {
    content: none !important;
    display: none !important;
}

/* Apply one clean underline to the active item. */
.main-nav .menu > li.active > a {
    color: #C0392B !important;
    text-decoration: underline !important;
    text-decoration-color: #C0392B !important;
    text-decoration-thickness: 3px !important;
    text-underline-offset: 17px !important;
}

/* Match the actual inline SVG path selector. */
footer .contact-list .contact-icon svg path {
    fill: #C0392B !important;
}

/* Keep the remaining back-to-top button red. */
.to-top,
.to-top:hover,
.to-top:focus {
    background-color: #C0392B !important;
    background-image: none !important;
}


/* LEVITRIBE_PHASE14_MOBILE
   Responsive refinement without altering Voyceo functionality.
*/

@media (max-width: 991px) {

    /* Keep the original mobile navigation control accessible. */
    header .hamburger {
        position: relative;
        z-index: 20;
        cursor: pointer;
        touch-action: manipulation;
    }

    /* Avoid horizontal overflow in content sections. */
    #about,
    #our-world,
    #projects,
    #stories,
    #partner,
    #contact {
        max-width: 100%;
    }

    /* Ensure slider contents can shrink within their columns. */
    #projects .slick-slide,
    #stories .slick-slide {
        min-width: 0;
    }

    #projects .slick-slide img,
    #stories .slick-slide img {
        max-width: 100%;
        height: auto;
    }

    /* Prevent long titles from overflowing their cards. */
    #projects h2,
    #projects h3,
    #stories h2,
    #stories h3 {
        overflow-wrap: break-word;
    }

    /* Allow footer contact information to wrap. */
    footer .contact-list_text,
    footer .contact-list_text a {
        overflow-wrap: anywhere;
    }
}

@media (max-width: 767px) {

    /* Keep headings readable without oversized line breaks. */
    #about .text-section_video h2,
    #about .text-block h2 {
        font-size: clamp(17px, 4.7vw, 25px);
        line-height: 1.3;
    }

    #projects .section-header h2,
    #stories .section-header h2 {
        font-size: clamp(28px, 7vw, 42px);
        line-height: 1.15;
    }

    #projects .section-header p,
    #stories .section-header p {
        font-size: 15px;
        line-height: 1.7;
    }

    /* Comfortable spacing around slider sections. */
    #projects .section-header,
    #stories .section-header {
        margin-bottom: 25px;
    }

    #projects .slick-slide,
    #stories .slick-slide {
        box-sizing: border-box;
    }

    /* Footer text and official social links. */
    footer .contact-list_text {
        line-height: 1.6;
    }

    footer .levitribe-official-socials {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        align-items: center;
        gap: 12px 22px;
        padding: 12px 15px;
    }

    footer .levitribe-official-socials a {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        min-height: 44px;
    }

    /* Back-to-top remains usable on small screens. */
    .to-top {
        right: 16px;
        bottom: 20px;
    }
}

@media (max-width: 575px) {

    #projects .section-header,
    #stories .section-header {
        padding-left: 8px;
        padding-right: 8px;
    }

    #projects .slick-slide img,
    #stories .slick-slide img {
        max-width: 100%;
    }

    footer .contact-list_text a {
        overflow-wrap: anywhere;
    }
}


/* LEVITRIBE_PHASE16_POPUP
   Booking popup branding.
   Preserve original Voyceo layout and interactions.
*/

/* Replace gradient top border with solid Levi Tribe red */
.popup-wrap .form-popup::before,
.popup-wrap .form-popup:before {
    background: #C0392B !important;
    background-image: none !important;
}

/* Popup headings */
.popup-wrap .form-popup h2,
.popup-wrap .form-popup h3 {
    color: #1C1C1C;
}

/* Submit button: flat Levi Tribe treatment */
#bookingPopup-form button[type="submit"] {
    background: #C0392B !important;
    background-image: none !important;
    border: 2px solid #C0392B !important;
    color: #FFFFFF !important;
    box-shadow: none !important;
    transition: background-color .2s ease,
                border-color .2s ease;
}

#bookingPopup-form button[type="submit"]:hover,
#bookingPopup-form button[type="submit"]:focus-visible {
    background: #1C1C1C !important;
    border-color: #1C1C1C !important;
    color: #FFFFFF !important;
}

/* Remove decorative gradient layers */
#bookingPopup-form button[type="submit"]::before,
#bookingPopup-form button[type="submit"]::after {
    background-image: none !important;
    box-shadow: none !important;
}

/* Button icon */
#bookingPopup-form button[type="submit"] svg,
#bookingPopup-form button[type="submit"] svg path {
    fill: #FFFFFF !important;
}

/* Date picker icon */
#bookingPopup-form .date-input svg,
#bookingPopup-form .date-input svg path {
    fill: #C0392B !important;
}

/* Input focus */
#bookingPopup-form input:focus,
#bookingPopup-form select:focus,
#bookingPopup-form textarea:focus {
    border-color: #C0392B !important;
    outline-color: #C0392B;
}

/* Form feedback */
#bookingPopup-form .lt-form-feedback {
    display: block;
    margin-top: 16px;
    font-size: 14px;
    line-height: 1.5;
}

#bookingPopup-form .lt-form-feedback.lt-success {
    color: #267346 !important;
}

#bookingPopup-form .lt-form-feedback.lt-error {
    color: #B42318 !important;
}

/* Keep button and fields usable on smaller screens */
@media (max-width: 575px) {
    #bookingPopup-form button[type="submit"] {
        max-width: 100%;
    }
}


/* LEVITRIBE_PHASE16B_POPUP_BORDER
   Override the actual Voyceo popup gradient pseudo-element.
*/
#bookingPopup .form-popup::after {
    background: #C0392B !important;
    background-image: none !important;
    filter: none !important;
}



/* LEVITRIBE_PHASE19B_ACCESSIBILITY */

button.hamburger {
    appearance: none;
    -webkit-appearance: none;
    border: 0;
    background: transparent;
    padding: 0;
    cursor: pointer;
    font: inherit;
    color: inherit;
}

button.hamburger:focus-visible {
    outline: 2px solid #C0392B;
    outline-offset: 5px;
}

.levitribe-skip-link {
    position: fixed;
    top: -100px;
    left: 16px;
    z-index: 99999;
    padding: 12px 18px;
    background: #1C1C1C;
    color: #FFFFFF;
    text-decoration: none;
}

.levitribe-skip-link:focus {
    top: 12px;
    color: #FFFFFF;
}


/* LEVITRIBE_PHASE22D_ACADEMY_ALIGNMENT */
/* Match Academy image height to neighbouring project cards. */
#projects .project-cart_logo img[src*="levitribe-academy-placeholder.webp"] {
    width: 100%;
    aspect-ratio: 3 / 2;
    object-fit: cover;
    display: block;
}


/* LEVITRIBE_PHASE22E_PROJECT_IMAGE_ALIGNMENT */
/* Consistent image frames across Our Projects. */
#projects .project-card .project-cart_logo {
    display: block;
    width: 100%;
    aspect-ratio: 3 / 2;
    overflow: hidden;
}

#projects .project-card .project-cart_logo picture {
    display: block;
    width: 100%;
    height: 100%;
}

#projects .project-card .project-cart_logo img {
    display: block;
    width: 100%;
    height: 100%;
    aspect-ratio: 3 / 2;
    object-fit: cover;
    object-position: center;
}


/* LEVITRIBE_PHASE22H_MOBILE_LOGO */
@media screen and (max-width: 767px) {

    .header-wrap {
        height: 110px;
    }

    .header-wrap.is-scroll {
        height: 110px;
    }

    .header-wrap header {
        position: relative;
        height: 110px;
        padding: 0;
        display: flex;
        align-items: center;
        justify-content: flex-end;
    }

    .header-wrap header > a.logo {
        position: absolute;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
        display: flex;
        align-items: center;
        justify-content: center;
        margin: 0;
        z-index: 2;
    }

    .header-wrap .logo .logo-text {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .header-wrap .logo img.levitribe-logo {
        display: block;
        width: auto;
        height: 90px;
        max-width: 110px;
        object-fit: contain;
        margin: 0;
    }

    .header-wrap header .header-right {
        position: relative;
        z-index: 3;
        margin-left: auto;
    }
}


/* LEVITRIBE_PHASE22H2_HERO_CLEARANCE */
@media screen and (max-width: 767px) {

    /* Reserve room for the enlarged centred logo. */
    .main-slider .tt-slide {
        box-sizing: border-box;
        padding-top: 155px;
        padding-bottom: 85px;
        min-height: max(100vh, 700px);
    }

    /* Keep the tagline comfortably below the logo. */
    .main-slider .tt-slide .tt-slide_description {
        margin-bottom: 22px;
        line-height: 1.5;
    }

    /* Preserve the headline's original animations. */
    .main-slider .tt-slide .tt-slide_header {
        margin-bottom: 30px;
    }
}
