/* =========================================================
   taptunesmusic.com
   Homepage-specific styles
   ========================================================= */


/* =========================================================
   HERO / RELEASE SLIDER
   ========================================================= */

.hero-carousel{
    position:relative;
    min-height:clamp(520px,43.9vw,720px);
    overflow:hidden;
    background:#111;
}

.hero-slides,
.hero-slide{
    position:absolute;
    inset:0;
}

.hero-slide{
    opacity:0;
    visibility:hidden;
    pointer-events:none;
    transition:
        opacity .7s ease,
        visibility .7s ease;
}

.hero-slide.is-active{
    opacity:1;
    visibility:visible;
    pointer-events:auto;
    z-index:2;
}


/* =========================================================
   HERO IMAGE
   ========================================================= */

.hero-carousel .hero-image{
    position:absolute;
    inset:0;

    width:100%;
    height:100%;

    object-fit:cover;
    object-position:center;
}


/* =========================================================
   HERO CONTENT
   Vertically centered over each slide
   ========================================================= */

.hero-carousel .hero-content{
    position:relative;
    z-index:4;

    width:min(calc(100% - 48px), var(--max));
    min-height:inherit;
    height:100%;
    margin:0 auto;

    display:flex;
    flex-direction:column;
    justify-content:center;
    align-items:flex-start;

    padding-top:0;
    padding-bottom:0;

    color:#fff;

    /* subtle visual lift above mathematical center */
    transform:translateY(-15px);
}


/* =========================================================
   HERO TEXT
   ========================================================= */

.hero-carousel .eyebrow{
    margin:0 0 16px;
}

.hero-carousel h1{
    max-width:780px;
    margin:0;

    font-family:Georgia, 'Times New Roman', serif;
    font-size:clamp(54px, 7vw, 104px);
    font-weight:500;
    line-height:.92;
    letter-spacing:-.045em;
}

.hero-carousel .hero-copy{
    max-width:680px;
    margin:28px 0 30px;

    display:flex;
    flex-direction:column;
    gap:10px;

    font-size:18px;
    line-height:1.55;
    color:rgba(255,255,255,.88);
}

.hero-carousel .hero-copy strong{
    font-size:14px;
    font-weight:900;
    letter-spacing:.09em;
    text-transform:uppercase;
    color:#fff;
}

.hero-carousel .hero-copy span{
    display:block;
    max-width:650px;
}


/* =========================================================
   HERO BUTTON
   ========================================================= */

.hero-carousel .button{
    border-radius:12px;
}


/* =========================================================
   SLIDER ARROWS
   ========================================================= */

.hero-arrow{
    position:absolute;
    top:50%;
    z-index:10;

    width:50px;
    height:50px;

    margin-top:-25px;

    border:1px solid rgba(255,255,255,.5);
    border-radius:50%;

    background:rgba(0,0,0,.30);
    color:#fff;

    display:grid;
    place-items:center;

    font-size:34px;
    line-height:1;

    cursor:pointer;

    backdrop-filter:blur(6px);
    -webkit-backdrop-filter:blur(6px);

    transition:
        background .2s ease,
        border-color .2s ease,
        transform .2s ease;
}

.hero-arrow:hover{
    background:rgba(0,0,0,.60);
    border-color:#fff;
    transform:scale(1.05);
}

.hero-arrow-prev{
    left:22px;
}

.hero-arrow-next{
    right:22px;
}


/* =========================================================
   SLIDER DOTS
   ========================================================= */

.hero-dots{
    position:absolute;
    z-index:10;

    left:50%;
    bottom:24px;

    transform:translateX(-50%);

    display:flex;
    align-items:center;
    justify-content:center;
    gap:9px;
}

.hero-dot{
    width:9px;
    height:9px;

    padding:0;

    border:1px solid rgba(255,255,255,.9);
    border-radius:50%;

    background:transparent;

    cursor:pointer;

    transition:
        transform .2s ease,
        background .2s ease;
}

.hero-dot.is-active{
    background:#fff;
    transform:scale(1.3);
}

.why-image{
    display:flex;
    align-items:flex-end;
    justify-content:center;
    overflow:hidden;
}

.why-tapit-image{
    width:min(92%, 760px);
    height:auto;
    object-fit:contain;
    object-position:center bottom;
}

/* =========================================================
   TABLET
   ========================================================= */

@media (max-width:1000px){

    .hero-carousel{
        min-height:620px;
    }

    .hero-carousel .hero-content{
        width:min(calc(100% - 64px), var(--max));
        transform:translateY(-10px);
    }

    .hero-carousel h1{
        font-size:clamp(52px, 9vw, 84px);
    }

    .hero-carousel .hero-copy{
        max-width:600px;
        font-size:17px;
    }
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width:760px){

    .hero-carousel{
        min-height:620px;
    }

    .hero-carousel .hero-image{
        object-position:center;
    }

    .hero-carousel .hero-content{
        width:calc(100% - 40px);
        min-height:620px;

        justify-content:center;

        padding:60px 0 80px;

        transform:none;
    }

    .hero-carousel h1{
        max-width:100%;

        font-size:clamp(46px, 15vw, 72px);
        line-height:.94;
    }

    .hero-carousel .hero-copy{
        max-width:100%;
        margin:22px 0 26px;

        font-size:16px;
        line-height:1.5;
    }

    .hero-carousel .hero-copy strong{
        font-size:12px;
    }

    .hero-arrow{
        top:auto;
        bottom:18px;

        width:42px;
        height:42px;

        margin-top:0;

        font-size:28px;
    }

    .hero-arrow-prev{
        left:18px;
    }

    .hero-arrow-next{
        right:18px;
    }

    .hero-dots{
        bottom:32px;
    }
}


/* =========================================================
   SMALL MOBILE
   ========================================================= */

@media (max-width:480px){

    .hero-carousel{
        min-height:580px;
    }

    .hero-carousel .hero-content{
        min-height:580px;
        width:calc(100% - 32px);
    }

    .hero-carousel h1{
        font-size:clamp(42px, 14vw, 62px);
    }

    .hero-carousel .hero-copy{
        font-size:15px;
    }
}


/* =========================================================
   REDUCED MOTION
   ========================================================= */

@media (prefers-reduced-motion:reduce){

    .hero-slide,
    .hero-arrow,
    .hero-dot{
        transition:none;
    }
}