/* =========================================================
   tunetaps.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;
}

.product-image-wrap {
    position: relative;
}

.product-image-wrap > img:first-child {
    width: 100%;
    display: block;
}

.legacy-icon {
    position: absolute !important;
    right: 8px;
    bottom: 8px;

    width: 90px !important;
    max-width: 28% !important;
    height: auto !important;

    object-fit: contain;
    z-index: 10;
    pointer-events: none;
}

/* =========================================================
   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%, 600px);
    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;
    }
}


/* =========================================================
   DROP CLUB HOMEPAGE FEATURE
   ========================================================= */

.home-dropclub {
    position: relative;
    overflow: hidden;
    background: #CF0000;
    color: #fff;
}

.home-dropclub-inner {
    width: min(calc(100% - 48px), 1340px);
    min-height: 560px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, .9fr) minmax(480px, 1.1fr);
    align-items: center;
    gap: clamp(36px, 6vw, 90px);
    padding: 64px 0 54px;
}

.home-dropclub-copy {
    position: relative;
    z-index: 2;
    max-width: 590px;
}

.home-dropclub .eyebrow {
    color: #000000;
}

.home-dropclub h2 {
    margin: 0;
    max-width: 650px;
    font-family: Georgia, 'Times New Roman', serif;
    font-size: clamp(48px, 5.8vw, 82px);
    font-weight: 500;
    letter-spacing: -.045em;
    line-height: .96;
    color: #fff;
}

.home-dropclub-lead {
    max-width: 560px;
    margin: 24px 0 0;
    color: rgba(255,255,255,.88);
    font-size: 18px;
    line-height: 1.65;
}

.home-dropclub-offer {
    display: flex;
    align-items: center;
    gap: 18px;
    margin: 30px 0 32px;
    padding-top: 24px;
    border-top: 1px solid rgba(255,255,255,.28);
}

.home-dropclub-offer > div {
    min-width: 0;
}

.home-dropclub-offer strong {
    display: block;
    color: #fff;
    font-size: 17px;
    line-height: 1.15;
}

.home-dropclub-offer span {
    display: block;
    margin-top: 4px;
    color: rgba(255,255,255,.72);
    font-size: 12px;
    line-height: 1.35;
}

.home-dropclub-offer b {
    flex: 0 0 auto;
    color: #000000;
    font-size: 22px;
}

.home-dropclub-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.home-dropclub-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    padding: 0 22px;
    border-radius: 12px;
    background: #000000;
    color: #fff;
    font-size: 13px;
    font-weight: 900;
    letter-spacing: .02em;
    text-decoration: none;
    transition: transform .2s ease, background .2s ease;
}

.home-dropclub-button:hover {
    transform: translateY(-2px);
    background: #1c1c1c;
}

.home-dropclub-login {
    display: inline-flex;
    align-items: center;
    min-height: 50px;
    padding: 0 10px;
    color: rgba(255,255,255,.92);
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
}

.home-dropclub-login:hover {
    color: #fff;
}

.home-dropclub-visual {
    position: relative;
    z-index: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    align-self: stretch;
}

/* No glow on red; let the card artwork carry the visual weight. */
.home-dropclub-visual::before {
    content: none;
}

.home-dropclub-cards {
    position: relative;
    z-index: 1;
    display: block;
    width: min(760px, 125%);
    max-width: none;
    height: auto;
    margin-right: -7%;
    filter: drop-shadow(0 28px 40px rgba(0,0,0,.30));
}

.home-dropclub-mark {
    position: absolute;
    right: 0;
    bottom: 28px;
    z-index: 2;
    padding: 12px 16px;
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 12px;
    background: #000000;
    color: #fff;
}

.home-dropclub-mark span {
    display: block;
    color: rgba(255,255,255,.62);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .13em;
}

.home-dropclub-mark strong {
    display: block;
    margin-top: 3px;
    color: #fff;
    font-size: 22px;
    line-height: 1;
}

@media (max-width: 980px) {
    .home-dropclub-inner {
        grid-template-columns: 1fr;
        min-height: 0;
        padding: 64px 0 34px;
    }

    .home-dropclub-copy {
        max-width: 760px;
    }

    .home-dropclub-visual {
        min-height: 380px;
    }

    .home-dropclub-cards {
        width: min(760px, 105%);
        margin-right: 0;
    }

    .home-dropclub-mark {
        right: 5%;
    }
}

@media (max-width: 620px) {
    .home-dropclub-inner {
        width: min(calc(100% - 30px), 1340px);
        padding-top: 52px;
    }

    .home-dropclub h2 {
        font-size: clamp(44px, 14vw, 62px);
    }

    .home-dropclub-lead {
        font-size: 16px;
    }

    .home-dropclub-offer {
        align-items: flex-start;
        flex-direction: column;
        gap: 12px;
    }

    .home-dropclub-offer b {
        display: none;
    }

    .home-dropclub-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .home-dropclub-button,
    .home-dropclub-login {
        width: 100%;
        justify-content: center;
    }

    .home-dropclub-visual {
        min-height: 280px;
    }

    .home-dropclub-cards {
        width: 118%;
        margin-left: -9%;
    }

    .home-dropclub-mark {
        right: 0;
        bottom: 14px;
    }
}
