/* Reset and Font Styling */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Bricolage Grotesque", sans-serif;
    background: #062328;
    margin: 0;
    padding: 0;
}

/* Desktop Scroll Prevention */
@media (min-width: 769px) {
    body {
        overflow: hidden;
        width: 100%;
        height: 100%;
    }
}

/* Banner Layout */
.banner {
    position: relative;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    background: #062328;
}

.banner-aspect-wrapper {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    /* Default: Desktop wide aspect ratio container (15:8 or 1.875) */
    width: 100vw;
    height: calc(100vw * 2304 / 4320);
    overflow: hidden;
}

@media (min-width: 769px) and (max-aspect-ratio: 4320/2304) {
    .banner-aspect-wrapper {
        height: 100vh;
        width: calc(100vh * 4320 / 2304);
    }
}

/* Background Picture and Image Styling */
.banner-bg-picture,
.banner-bg-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: fill; /* Stretch to wrapper bounds, which always match the image aspect ratio */
    pointer-events: none; /* Make clicks pass through to the wrapper/button */
}

/* Button & Link Styles */
a {
    text-decoration: none;
}

.primarybtn,
.whitebtn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: 18px 28px;
    border-radius: 40px;
    font-size: 18px;
    font-weight: 700;
    transition: 0.3s ease;
}

.primarybtn {
    background: #062328;
    color: #fff;
}

.primarybtn:hover {
    background: #1f393e;
}

.whitebtn {
    background: #fff;
    color: #062328;
    position: relative;
    z-index: 10; /* Make sure CTA sits on top of background image */
}

.whitebtn:hover {
    background: #e8e8e8;
}

/* CTA Placement (Desktop Default / Custom via CSS variables) */
.banner-cta {
    position: absolute;
    left: var(--cta-desktop-left, 17.5%);
    top: var(--cta-desktop-top, 60.5%);
    transform: var(--cta-desktop-transform, translateY(-50%));
    white-space: nowrap;
}

/* Mobile Layout Styling */
@media (max-width: 768px) {
    .banner {
        width: 100%;
        height: auto;
        overflow: hidden;
    }

    .banner-aspect-wrapper {
        position: relative;
        top: 0;
        left: 0;
        transform: none;
        width: 100%;
        height: calc(100vw * 2532 / 1170);
    }

    .banner-cta {
        left: 40%;
        top: var(--cta-mobile-top, 79.5%);
        transform: var(--cta-mobile-transform, translate(-50%, -50%));
        width: 60%;
        max-width: 280px;
    }
}
