/*
 * TBR Hero Carousel Module — module.css
 *
 * Requires Font Awesome loaded globally (theme), or add it to the page header:
 *   <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.0/css/all.min.css" referrerpolicy="no-referrer">
 */

/* ===================== Fonts ===================== */
@font-face {
    font-family: 'Gotham Book';
    src: url('https://8477168.fs1.hubspotusercontent-na1.net/hubfs/8477168/font/Gotham-Book.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Gotham Black';
    src: url('https://8477168.fs1.hubspotusercontent-na1.net/hubfs/8477168/font/GOTHAM-BLACK.ttf') format('truetype');
    font-weight: 900;
    font-style: normal;
}

/* ===================== Module root ===================== */
.tbr-hero-module {
    --primary-purple: #34256B;
    --accent-pink: #F59BB8;
    --accent-yellow: #F5CE00;
    --accent-red: #DD3C27;
    --black: #000000;
    --white: #FFFFFF;
    --light-gray: #F5F5F5;
    --medium-gray: #E0E0E0;

    font-family: 'Gotham Book', sans-serif;
    font-weight: 400;
    color: var(--black);
    line-height: 1.6;

    position: relative;
    width: 100vw;
    left: 50%;
    transform: translateX(-50%);
    overflow: hidden;
}

.tbr-hero-module h1,
.tbr-hero-module h2,
.tbr-hero-module h3,
.tbr-hero-module h4,
.tbr-hero-module h5,
.tbr-hero-module h6 {
    font-family: 'Gotham Black', sans-serif;
    font-weight: 900;
    line-height: 1.2;
}

/* ===================== CTA button ===================== */
.tbr-hero-module .cta-button {
    background: var(--accent-yellow);
    color: var(--black);
    padding: 0.75rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s;
    display: inline-block;
    border: none;
    cursor: pointer;
}

.tbr-hero-module .cta-button:hover {
    background: var(--accent-pink);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(245, 155, 184, 0.4);
}

.tbr-hero-module .cta-button-secondary {
    background: var(--white);
    color: var(--primary-purple);
    border: 2px solid var(--white);
}

.tbr-hero-module .cta-button-secondary:hover {
    background: transparent;
    color: var(--white);
    border-color: var(--white);
}

/* ===================== Hero Slider ===================== */
.tbr-hero-module .hero-slider {
    position: relative;
    width: 100%;
    max-width: none;
    margin: 0;

    /* stable size: no more height:0 collapse */
    aspect-ratio: 1920 / 944;
    height: auto;
    min-height: 520px;

    overflow: hidden;
    display: block;
}

/* fallback for older browsers (optional but safe) */
@supports not (aspect-ratio: 1 / 1) {
    .tbr-hero-module .hero-slider {
        height: 0;
        padding-top: calc(944 / 1920 * 100%);
    }
}

.tbr-hero-module .hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    background-size: cover;
    background-position: right top;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding-left: 0;
}

.tbr-hero-module .hero-slide.active {
    opacity: 1;
}

.tbr-hero-module .hero-slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
}

/* Hero content */
.tbr-hero-module .hero-content {
    position: relative;
    width: 100%;
    max-width: 1400px;
    margin: 0;
    margin-left: clamp(2rem, 8vw, 8rem);
    padding: 0 2rem 0 0;
    color: var(--white);
    z-index: 2;
    text-align: left;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.tbr-hero-module .hero-content h1 {
    font-size: 4.5rem;
    margin-bottom: 1.5rem;
    animation: tbrSlideInUp 1s ease-out;
    max-width: 850px;
    line-height: 1.1;
}

.tbr-hero-module .hero-content p {
    font-size: 1.6rem;
    margin-bottom: 2.5rem;
    max-width: 850px;
    font-weight: 300;
    animation: tbrSlideInUp 1s ease-out 0.2s backwards;
}

.tbr-hero-module .hero-buttons {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    animation: tbrSlideInUp 1s ease-out 0.4s backwards;
}

.tbr-hero-module .hero-buttons .cta-button {
    font-size: 1.1rem;
}

/* ===================== GERI Slide ===================== */
.tbr-hero-module .hero-slide.geri-slide {
    background-image: none !important;
    background-color: var(--primary-purple);
    background-size: auto;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding-left: 0;
}

.tbr-hero-module .hero-slide.geri-slide.active {
    display: flex !important;
}

.tbr-hero-module .hero-slide.geri-slide::before {
    display: none;
}

.tbr-hero-module .geri-content {
    background: transparent;
    color: var(--white);
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin-left: clamp(2rem, 8vw, 8rem);
    max-width: 680px;
    padding: 0 2rem 0 0;
    position: relative;
    z-index: 2;
}

.tbr-hero-module .geri-eyebrow {
    animation: tbrSlideInUp 1s ease-out;
    color: var(--accent-pink);
    display: block;
    font-family: 'Gotham Black', sans-serif;
    font-size: clamp(1rem, 1.25vw, 1.375rem);
    font-weight: 900;
    letter-spacing: 0.3em;
    line-height: 1;
    margin-bottom: 2rem;
    text-transform: uppercase;
}

.tbr-hero-module .geri-headline {
    animation: tbrSlideInUp 1s ease-out 0.1s backwards;
    color: var(--white);
    font-size: clamp(3.5rem, 5vw, 4.5rem);
    letter-spacing: 0;
    line-height: 0.95;
    margin: 0 0 2rem;
    max-width: 680px;
}

.tbr-hero-module .geri-headline span {
    color: #F5CE00;
}

.tbr-hero-module .geri-subheadline {
    animation: tbrSlideInUp 1s ease-out 0.2s backwards;
    color: var(--white);
    font-size: clamp(1.1rem, 1.35vw, 1.25rem);
    font-weight: 300;
    line-height: 1.45;
    margin: 0 0 2.75rem;
    max-width: 500px;
}

.tbr-hero-module .geri-buttons {
    animation: tbrSlideInUp 1s ease-out 0.4s backwards;
    display: flex;
    flex-wrap: wrap;
    gap: 0.875rem;
}

.tbr-hero-module .geri-buttons .cta-button {
    border: 2px solid var(--white);
    font-size: 0.875rem;
    letter-spacing: 0.09em;
    padding: 1rem 2.375rem;
    text-transform: uppercase;
}

.tbr-hero-module .geri-buttons .geri-button-primary {
    background: var(--accent-yellow);
    border-color: var(--accent-yellow);
    color: var(--primary-purple);
}

.tbr-hero-module .geri-buttons .geri-button-primary:hover {
    background: transparent;
    border-color: var(--accent-yellow);
    box-shadow: none;
    color: var(--accent-yellow);
}

.tbr-hero-module .geri-buttons .geri-button-secondary {
    background: transparent;
    border-color: var(--white);
    color: var(--white);
}

.tbr-hero-module .geri-buttons .geri-button-secondary:hover {
    background: var(--white);
    border-color: var(--white);
    box-shadow: none;
    color: var(--primary-purple);
}

.tbr-hero-module .geri-fine-print {
    animation: tbrSlideInUp 1s ease-out 0.5s backwards;
    color: rgba(255, 255, 255, 0.68);
    font-size: 0.78rem;
    font-weight: 300;
    letter-spacing: 0.02em;
    line-height: 1.5;
    margin: 1.125rem 0 0;
}

.tbr-hero-module .geri-visual {
    align-items: flex-start;
    background: var(--accent-yellow);
    display: flex;
    height: 100%;
    justify-content: center;
    overflow: hidden;
    position: absolute;
    right: 0;
    top: 0;
    width: 44.5%;
}

.tbr-hero-module .geri-mascot {
    display: block;
    filter: drop-shadow(0 12px 24px rgba(52, 37, 107, 0.25));
    height: clamp(360px, 74%, 540px);
    margin-top: clamp(5.25rem, 7.75vw, 9rem);
    max-height: 540px;
    max-width: 100%;
    object-fit: contain;
    position: relative;
    z-index: 2;
}

@keyframes tbrSlideInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Slider dots */
.tbr-hero-module .slider-dots {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 15px;
    z-index: 10;
}

.tbr-hero-module .dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s;
}

.tbr-hero-module .dot.active {
    background: var(--accent-yellow);
    width: 40px;
    border-radius: 6px;
}

/* ===================== Animated Banner ===================== */
.tbr-hero-module .slide-banner {
    background: var(--accent-yellow);
    padding: 1.5rem 0;
    overflow: hidden;
    position: relative;
}

.tbr-hero-module .banner-content {
    display: flex;
    animation: tbrSlideLeft 30s linear infinite;
    white-space: nowrap;
}

.tbr-hero-module .banner-item {
    display: inline-flex;
    align-items: center;
    padding: 0 3rem;
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--primary-purple);
}

.tbr-hero-module .banner-item i {
    margin-right: 1rem;
    color: var(--accent-red);
    display: inline-block;
    font-family: "Font Awesome 6 Free", "Font Awesome 5 Free" !important;
    font-weight: 900;
}

@keyframes tbrSlideLeft {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* ===================== Responsive ===================== */

/* --- Desktop: >=1200px — collage backgrounds, cover, absolute slides --- */
@media (min-width: 1200px) {
    .tbr-hero-module .hero-slide {
        background-size: contain;
        /* key fix: no cropping */
        background-position: center center;
        background-repeat: no-repeat;
        background-color: #ffffff;
        /* matches page bg; adjust if needed */
    }
}

/* --- Small laptop: 992–1199px — image visible, scaled text --- */
@media (max-width: 1199px) and (min-width: 992px) {
    .tbr-hero-module .hero-content {
        margin-left: clamp(1.5rem, 5vw, 4rem);
        padding-right: clamp(2rem, 10vw, 10rem);
        max-width: 1100px;
    }

    .tbr-hero-module .hero-content h1 {
        font-size: clamp(2.6rem, 4vw, 3.6rem);
        max-width: 720px;
        line-height: 1.05;
    }

    .tbr-hero-module .hero-content p {
        font-size: clamp(1.1rem, 1.6vw, 1.35rem);
        max-width: 680px;
    }

    .tbr-hero-module .banner-item {
        font-size: 1rem;
        padding: 0 1.6rem;
    }

    .tbr-hero-module .hero-slide:nth-child(6) .hero-content h1 {
        font-size: clamp(2.3rem, 3.4vw, 3.2rem);
        max-width: 640px;
    }

    .tbr-hero-module .hero-slide:nth-child(6) .hero-content p {
        font-size: clamp(1.05rem, 1.45vw, 1.25rem);
        max-width: 620px;
    }
}

/* --- Small laptop narrow: 992–1090px — Slide 2 button fix --- */
@media (max-width: 1090px) and (min-width: 992px) {
    .tbr-hero-module .hero-slide:nth-child(2) .hero-buttons {
        flex-wrap: wrap;
        gap: 0.75rem;
    }

    .tbr-hero-module .hero-slide:nth-child(2) .cta-button {
        padding: 0.7rem 1.3rem;
        font-size: 1rem;
        white-space: nowrap;
    }
}

/* --- Tablet + Phone: <=991px — purple bg, no photo, centered --- */
@media (max-width: 991px) {
    .tbr-hero-module .hero-slider {
        aspect-ratio: auto;
        height: auto;
        padding-top: 0;
        min-height: 520px;
        overflow: hidden;
    }

    .tbr-hero-module .hero-slide {
        position: relative;
        width: 100%;
        height: auto;
        min-height: 380px;
        display: none;
        opacity: 1;
        background-image: none !important;
        background-color: #34256B !important;
        justify-content: center;
    }

    .tbr-hero-module .hero-slide.active {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .tbr-hero-module .hero-slide::before {
        display: none;
    }

    .tbr-hero-module .hero-content {
        text-align: center;
        align-items: center;
        margin: 0 auto;
        padding: 3rem 1.5rem 2rem;
        max-width: 640px;
    }

    .tbr-hero-module .hero-content h1,
    .tbr-hero-module .hero-content p {
        color: var(--white) !important;
    }

    .tbr-hero-module .hero-content h1 {
        font-size: clamp(2rem, 5.5vw, 3rem);
    }

    .tbr-hero-module .hero-content p {
        font-size: clamp(1rem, 2.8vw, 1.25rem);
        margin-bottom: 1.75rem;
    }

    .tbr-hero-module .hero-buttons {
        justify-content: center;
        flex-wrap: wrap;
        gap: 0.75rem;
    }

    .tbr-hero-module .slider-dots {
        position: static;
        transform: none;
        justify-content: center;
        padding: 1.25rem 0 0.75rem;
        gap: 10px;
        background-color: #34256B;
    }

    .tbr-hero-module .banner-item {
        font-size: 1rem;
        padding: 0 1.6rem;
    }
}

/* --- Slide 6 overlap fix: 992–1050px --- */
@media (max-width: 1050px) and (min-width: 992px) {
    .tbr-hero-module .hero-slide:nth-child(6) .hero-content h1 {
        font-size: clamp(2.05rem, 3.05vw, 2.85rem);
        max-width: 600px;
    }

    .tbr-hero-module .hero-slide:nth-child(6) .hero-content p {
        font-size: clamp(1rem, 1.35vw, 1.15rem);
        max-width: 560px;
    }
}

/* --- Slide 6 content + button fix: 992–1060px --- */
@media (max-width: 1060px) and (min-width: 992px) {
    .tbr-hero-module .hero-slide:nth-child(6) .hero-content {
        max-width: 46%;
        padding-right: 0;
    }

    .tbr-hero-module .hero-slide:nth-child(6) .hero-content h1 {
        font-size: clamp(2.0rem, 2.9vw, 2.7rem);
        line-height: 1.05;
    }

    .tbr-hero-module .hero-slide:nth-child(6) .hero-content p {
        font-size: clamp(1.0rem, 1.3vw, 1.15rem);
        margin-bottom: 1.25rem;
    }

    .tbr-hero-module .hero-slide:nth-child(6) .hero-buttons {
        flex-wrap: wrap;
        gap: 0.75rem;
    }

    .tbr-hero-module .hero-slide:nth-child(6) .hero-buttons .cta-button {
        padding: 0.65rem 1.2rem;
        font-size: 1rem;
        white-space: nowrap;
    }
}

/* --- Tablet height fix: 768–991px --- */
@media (max-width: 991px) and (min-width: 768px) {
    .tbr-hero-module .hero-slider {
        height: clamp(520px, 60vh, 620px);
        min-height: clamp(520px, 60vh, 620px);
        position: relative;
    }

    .tbr-hero-module .hero-slide {
        height: 100%;
        min-height: 100%;
    }

    .tbr-hero-module .slider-dots {
        position: absolute !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        bottom: 18px !important;
        padding: 0 !important;
        background: transparent !important;
        z-index: 20 !important;
    }
}

/* --- Small mobile: <=480px --- */
@media (max-width: 480px) {
    .tbr-hero-module .hero-slide {
        min-height: 320px;
    }

    .tbr-hero-module .hero-content {
        padding: 2rem 1rem 1.5rem;
    }

    .tbr-hero-module .hero-content h1 {
        font-size: 1.85rem;
    }

    .tbr-hero-module .hero-content p {
        font-size: 0.95rem;
        margin-bottom: 1.25rem;
    }

    .tbr-hero-module .hero-buttons .cta-button {
        padding: 0.6rem 1.2rem;
        font-size: 0.95rem;
    }
}

/* ===== Focal Helpers ===== */
.tbr-hero-module .focal-center {
    background-position: center center;
}

.tbr-hero-module .focal-top {
    background-position: center top;
}

.tbr-hero-module .focal-bottom {
    background-position: center bottom;
}

.tbr-hero-module .focal-left {
    background-position: left center;
}

.tbr-hero-module .focal-right {
    background-position: right center;
}

.tbr-hero-module .focal-tl {
    background-position: left top;
}

.tbr-hero-module .focal-tr {
    background-position: right top;
}

.tbr-hero-module .focal-bl {
    background-position: left bottom;
}

.tbr-hero-module .focal-br {
    background-position: right bottom;
}

@media (max-width: 767px) {
    .tbr-hero-module {
        overflow: hidden;
    }

    /* prevent collapse */
    .tbr-hero-module .hero-slider {
        aspect-ratio: auto !important;
        min-height: 520px !important;
        height: auto !important;
        overflow: hidden !important;
        position: relative;
    }

    /* mobile = no stock photos */
    .tbr-hero-module .hero-slide {
        position: relative !important;
        height: auto !important;
        min-height: 520px !important;
        background-image: none !important;
        background-color: #34256B !important;
        opacity: 1 !important;
        display: block !important;
        align-items: center !important;
        justify-content: center !important;
    }

    /* only show active slide */
    .tbr-hero-module .hero-slide:not(.active) {
        display: none !important;
    }

    /* center content */
    .tbr-hero-module .hero-content {
        margin: 0 auto !important;
        padding: 3rem 1.25rem 3.25rem !important;
        max-width: 560px !important;
        text-align: center !important;
        align-items: center !important;
    }

    .tbr-hero-module .hero-content h1 {
        font-size: clamp(2rem, 7vw, 2.6rem) !important;
        line-height: 1.1 !important;
    }

    .tbr-hero-module .hero-content p {
        font-size: clamp(1rem, 3.5vw, 1.2rem) !important;
        margin-bottom: 1.25rem !important;
    }

    .tbr-hero-module .hero-buttons {
        justify-content: center !important;
        gap: 0.75rem !important;
        width: 100%;
    }

    .tbr-hero-module .cta-button {
        width: 100%;
        max-width: 320px;
        text-align: center;
    }

    /* dots overlaid on slide */
    .tbr-hero-module .slider-dots {
        position: absolute !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        bottom: 14px !important;
        padding: 0 !important;
        margin: 0 !important;
        background: transparent !important;
        z-index: 30 !important;
    }

    /* HubSpot wrapper unhide — specific selectors only */
    .widget_1771211493661-hidden.dnd-module,
    .cell_17712073131514-hidden.dnd-column {
        display: block !important;
    }

    #hs_cos_wrapper_widget_1771211493661 {
        display: block !important;
    }
}

@media (max-width: 991px) {
    .tbr-hero-module .hero-slide.geri-slide.active {
        display: flex !important;
        align-items: stretch;
        justify-content: center;
    }

    .tbr-hero-module .geri-content {
        align-items: center;
        margin: 0 auto;
        max-width: 640px;
        padding: 3.125rem 1.75rem 2.5rem;
        text-align: center;
    }

    .tbr-hero-module .geri-headline {
        font-size: clamp(2.625rem, 8vw, 4rem);
    }

    .tbr-hero-module .geri-subheadline {
        margin-left: auto;
        margin-right: auto;
    }

    .tbr-hero-module .geri-buttons {
        justify-content: center;
    }

    .tbr-hero-module .geri-visual {
        height: auto;
        min-height: 300px;
        order: -1;
        padding-top: 1.875rem;
        position: relative;
        right: auto;
        top: auto;
        width: 100%;
    }

    .tbr-hero-module .geri-mascot {
        height: auto;
        margin-top: 0;
        max-height: none;
        max-width: 280px;
        width: 100%;
    }
}

@media (max-width: 768px) {
    .tbr-hero-module .hero-slide.geri-slide {
        flex-direction: column;
        min-height: auto !important;
    }
}

@media (max-width: 480px) {
    .tbr-hero-module .geri-content {
        padding: 2.5rem 1.25rem 2rem;
    }

    .tbr-hero-module .geri-eyebrow {
        font-size: 1rem;
        letter-spacing: 0.25em;
        margin-bottom: 1.5rem;
    }

    .tbr-hero-module .geri-headline {
        font-size: 2.25rem;
    }

    .tbr-hero-module .geri-buttons {
        flex-direction: column;
        width: 100%;
    }

    .tbr-hero-module .geri-buttons .cta-button {
        max-width: none;
        width: 100%;
    }
}
