/* ==========================================================================
   Hero Section
   ========================================================================== */

.hero {
    position: relative;
    width: 100%;
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.front-page-hero-stack {
    position: relative;
    overflow-x: clip;
    overflow-y: visible;
}

.hero__photos,
.front-page-hero-stack__photos {
    position: absolute;
    left: -17px;
    right: 0;
    top: -60px;
    height: calc(90vh + 120px);
    z-index: 3;
    pointer-events: none;
    overflow: visible;
}

/* ---------- Background: orange base with scattered white splashes ---------- */

.hero__background {
    position: absolute;
    inset: 0;
    z-index: 0;
    background: url('../images/main-hero-bg.webp') center center / cover no-repeat;
}

/* ---------- Scattered photos ---------- */

.hero__collage {
    position: absolute;
    inset: 0;
    transition: opacity 1s ease-in-out;
}

.hero__collage img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center center;
}

.hero__collage--set-b {
    opacity: 0;
}

.hero--alt .hero__collage--set-a,
.front-page-hero-stack--alt .hero__collage--set-a {
    opacity: 0;
}

.hero--alt .hero__collage--set-b,
.front-page-hero-stack--alt .hero__collage--set-b {
    opacity: 1;
}

.hero__photo {
    position: absolute;
    overflow: hidden;
    border-radius: 4px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.18);
}

.hero__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Photo positions — larger sizes mimicking the reference layout */

/* Top-left: person on phone */
.hero__photo--1 {
    top: 3%;
    left: -3%;
    width: 280px;
    height: 340px;
    transform: rotate(-3deg);
    border: 0.5rem solid #fff;
}

/* Top-center-left: upper scene */
.hero__photo--2 {
    top: -3%;
    left: 20%;
    width: 240px;
    height: 200px;
    transform: rotate(2deg);
    border: 0.5rem solid #fff;
}

/* Top-right: person at desk */
.hero__photo--3 {
    top: 0;
    right: 3%;
    width: 300px;
    height: 230px;
    transform: rotate(3deg);
    border: 0.5rem solid #fff;
}

/* Middle-left: person smiling */
.hero__photo--4 {
    top: 50%;
    left: -2%;
    width: 260px;
    height: 220px;
    transform: rotate(-2deg);
    border: 0.5rem solid #fff;
}

/* Bottom-left: office interior */
.hero__photo--5 {
    bottom: 0;
    left: 10%;
    width: 280px;
    height: 210px;
    transform: rotate(1.5deg);
    border: 0.5rem solid #fff;
}

/* Bottom-right: two people walking */
.hero__photo--6 {
    bottom: 2%;
    right: 2%;
    width: 290px;
    height: 320px;
    transform: rotate(-2deg);
    border: 0.5rem solid #fff;
}

/* Right-center: cherry blossom / outdoor */
.hero__photo--7 {
    top: 28%;
    right: -3%;
    width: 260px;
    height: 220px;
    transform: rotate(2.5deg);
    border: 0.5rem solid #fff;
}

/* ---------- Centered content ---------- */

.hero__content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 3rem;
    align-items: center;
}

.hero__title {
    line-height: 0;
    margin: 6rem 0 1.5rem;
}

.hero__title-image {
    display: block;
    width: 400px;
    height: auto;
    margin: 0 auto;
}

.hero__scroll {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 125px;
    padding: 0.75rem 1rem;
    font-size: 0.75rem;
    font-weight: 500;
    color: #f2b057;
    text-decoration: none;
    border: 1px solid #f7cd98;
    border-radius: 30px;
    letter-spacing: 0.1em;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.hero__scroll:hover,
.hero__scroll:focus {
    background-color: #f2b057;
    color: #fff;
}

@media (min-width: 1366px) {
    .hero__title-image {
        width: 500px;
    }

    .hero__scroll {
        width: 220px;
        padding-inline: 1.25rem;
        font-size: 0.78125rem;
    }
}

@media (min-width: 1680px) {
    .hero__title-image {
        width: 600px;
    }

    .hero__scroll {
        width: 260px;
        padding-inline: 1.5rem;
        font-size: 1rem;
    }
}

@media (min-width: 1920px) {
    .front-page-hero-stack {
        min-height: calc(90vh * 1.3);
        overflow-x: clip;
    }

    .hero {
        min-height: calc(90vh * 1.3);
    }

    .hero__title-image {
        width: 780px;
    }

    .hero__scroll {
        width: 338px;
        padding-inline: 1.75rem;
        font-size: 1.125rem;
    }

    .hero__photos,
    .front-page-hero-stack__photos {
        height: calc((90vh + 120px) * 1.3);
    }
}

/* ---------- Responsive ---------- */

@media (max-width: 1024px) {
    .hero__photo--1 { width: 200px; height: 250px; }
    .hero__photo--2 { width: 180px; height: 150px; }
    .hero__photo--3 { width: 220px; height: 170px; }
    .hero__photo--4 { width: 190px; height: 170px; }
    .hero__photo--5 { width: 200px; height: 160px; }
    .hero__photo--6 { width: 210px; height: 240px; }
    .hero__photo--7 { width: 190px; height: 170px; }
}

@media (max-width: 768px) {
    .hero {
        min-height: 108vh;
    }

    .hero__background {
        background-image: url('../images/sp-mv-bg.png');
        background-size: cover;
        background-repeat: no-repeat;
    }

    .hero__photos,
    .front-page-hero-stack__photos {
        inset: 0;
        left: -20px;
        right: 0;
        top: 0;
        height: 100%;
        opacity: 1;
    }

    .hero__collage {
        inset: 0;
    }

    .hero__collage picture {
        display: block;
        width: 100%;
        height: 100%;
    }

    .hero__collage img {
        width: calc(100% + 32px);
        max-width: none;
        height: 100%;
        display: block;
        margin-inline: -16px;
        object-fit: cover;
        object-position: center center;
    }

    .hero__title {
        margin-bottom: 1.2rem;
        margin-top: 3rem;
    }

    .hero__title-image {
        width: min(250px, 82vw);
    }

    .hero__content {
        gap: 2px;
    }
}
