@charset "utf-8";
/* ============================================================
   CAROUSEL MODULE — STRUCTURE, LAYOUT, BUTTONS, RESPONSIVE
   ============================================================ */


/* ============================================================
   1. CAROUSEL CONTAINER (PARENT)
   ============================================================ */
.carousel {
    position: relative;
    width: 100%;
    height: auto;
}


/* ============================================================
   2. VIEWPORT (CHILD)
   ============================================================ */
.carousel-viewport {
    overflow: hidden;
    width: 100%;
}


/* ============================================================
   3. TRACK (CHILD OF VIEWPORT)
   ============================================================ */
.carousel-track {
    display: flex;
    transition: transform 0.4s ease;
}


/* ============================================================
   4. SLIDES (CHILD OF TRACK)
   ============================================================ */
.slide {
    flex: 0 0 40%; /* 2.5 slides visible */
    padding-right: 0;
    margin: 0;
}


/* ============================================================
   5. SLIDE IMAGES (GRANDCHILD)
   ============================================================ */
.slide img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}


/* ============================================================
   6. CAROUSEL - HERO TEXT
   ============================================================ */
.carousel-heading {
    position: absolute;
    z-index: 2;
    top: 50%;
    left: clamp(12px, 8vw, 180px);
    transform: translateY(-50%);
    text-align: left;
    max-width: 70vw;
    color: white;
    text-shadow: 0 2px 6px rgba(0,0,0,0.6);
    pointer-events: none; /* so buttons still work */
}

.carousel-heading h1 {
    font-family: 'Lato', sans-serif;
    font-weight: 900;
    font-size: clamp(1.8rem, 4vw, 3.5rem);
    margin: 0;
}

/* ============================================================
   6B. CAROUSEL H2 — SLIDE-UP ANIMATION
   ============================================================ */
.carousel-heading h2 {
    font-family: 'Lato', sans-serif;
    font-weight: 700;
    font-size: clamp(1rem, 2.2vw, 1.6rem);
    margin: 10px 0 0;

    /* animation */
    opacity: 0;
    animation: heroH2SlideUp 0.6s ease-out 0.15s forwards;
}


/* ============================================================
   7. NAVIGATION BUTTONS — THIN + EDGE-ALIGNED + TOUCH-SAFE
   ============================================================ */
.carousel button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);

    /* Visible shape (thin) */
    width: 22px;
    height: 58px;
    border-radius: 6px;
    border: 2px solid rgba(255, 255, 255, 0.6);
    background: rgba(0, 0, 0, 0.25);

    /* Invisible touch padding (keeps 44px minimum) */
    padding: 12px;

    display: flex;
    align-items: center;
    justify-content: center;

    color: #ffffff;
    font-size: 20px;
    backdrop-filter: blur(4px);
    cursor: pointer;

    z-index: 3; /* BELOW heading */
    transition: background 0.3s ease, opacity 0.3s ease;
}

.carousel button:hover {
    background: rgba(0, 0, 0, 0.4);
}


/* ============================================================
   8. BUTTON POSITIONING (LEFT / RIGHT)
   ============================================================ */
.carousel .prev {
    left: 12px;
}

.carousel .next {
    right: 12px;
}


/* ============================================================
   9. RESPONSIVE — MOBILE (1 SLIDE)
   ============================================================ */
@media (max-width: 768px) {
    .slide {
        flex: 0 0 100%;
    }
}

@media (max-width: 520px) {

    .carousel button {
        /* Only a slight downward shift */
        top: 52%; /* keeps hero text visually centered */
        transform: translateY(-50%);

        /* Thinner visible button */
        width: 18px;
        height: 46px;

        /* Invisible padding = touch-safe */
        padding: 12px;

        border-radius: 6px;
        border: 2px solid rgba(255,255,255,0.6);
        background: rgba(0,0,0,0.25);
    }

    /* Push arrows closer to edges */
    .carousel .prev {
        left: 4px;
    }

    .carousel .next {
        right: 4px;
    }
}


/* ============================================================
   10. SHARED KEYFRAMES (HERO + CAROUSEL)
   ============================================================ */
@keyframes heroH2SlideUp {
    0% {
        transform: translateY(40px);
        opacity: 0;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}
