/* Home page - custom overrides only. Shared styles in sections.css */

.home {
    overflow-x: hidden;
}


/* ═══════════════════════════════════════════════════════════════
   ART FRAMES
   ═══════════════════════════════════════════════════════════════ */

.art-frame {
    position: relative;
    aspect-ratio: 1;
    border-radius: var(--sec-radius);
    overflow: hidden;
    background: var(--sec-surface);

    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.art-frame.visible {
    opacity: 1;
    transform: translateY(0);
}

.art-frame img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--sec-radius);
    transition: opacity 1.2s ease;
}

.art-frame img.fade-out { opacity: 0; }
.art-frame img.fade-in  { opacity: 1; }


/* ═══════════════════════════════════════════════════════════════
   HERO ART - custom widget layout
   ═══════════════════════════════════════════════════════════════ */

.hp-hero__art {
    display: grid;
    grid-template-columns: 1fr 130px;
    gap: 24px;
    align-items: center;
    position: relative;
}

.hp-hero__art-main.art-frame {
    aspect-ratio: 1;
    width: 100%;
    border-radius: var(--sec-radius);
    grid-row: 1;
}

.hp-hero__art-side {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.art-frame--side {
    aspect-ratio: 1;
    border-radius: var(--sec-radius-sm);
}

/* Stagger side thumbnails */
.hp-hero__art-side .art-frame:nth-child(1) { transition-delay: 0.1s; }
.hp-hero__art-side .art-frame:nth-child(2) { transition-delay: 0.2s; }
.hp-hero__art-side .art-frame:nth-child(3) { transition-delay: 0.3s; }


/* ═══════════════════════════════════════════════════════════════
   GET STARTED - three step cards
   ═══════════════════════════════════════════════════════════════ */

.hp-getstarted {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--sec-card-gap);
    text-align: left;
    counter-reset: step;
}

.hp-getstarted__step {
    display: flex;
    flex-direction: column;
    gap: 12px;
    counter-increment: step;
}

.hp-getstarted__step h3 {
    font-size: var(--sec-type-h3);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.hp-getstarted__step h3::before {
    content: counter(step);
    flex: 0 0 auto;
    box-sizing: border-box;
    width: 32px;
    height: 32px;
    padding-bottom: 2px;
    border-radius: 50%;
    background: var(--sec-accent);
    color: #fff;
    font-size: 0.85em;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.hp-getstarted__step p {
    color: var(--sec-muted);
    line-height: 1.55;
    margin: 0;
    flex: 1;
}

.hp-getstarted__step .sec-btn {
    align-self: flex-start;
    margin-top: 4px;
}

@media (max-width: 860px) {
    .hp-getstarted {
        grid-template-columns: 1fr;
    }
}


/* ═══════════════════════════════════════════════════════════════
   REIMAGINED ART - cinematic widget layout
   ═══════════════════════════════════════════════════════════════ */

.hp-reimagined__art {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}

.art-frame--cinematic {
    aspect-ratio: 0.8;
    border-radius: var(--sec-radius-sm);
    background: rgba(255,255,255,0.06);
}

.art-frame--cinematic .art-frame {
    aspect-ratio: 0.8;
    width: 100%;
    height: 100%;
}

.hp-reimagined__art .art-frame:nth-child(2) { transition-delay: 0.1s; }
.hp-reimagined__art .art-frame:nth-child(3) { transition-delay: 0.2s; }


/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE - custom components only
   ═══════════════════════════════════════════════════════════════ */

@media (max-width: 1100px) {
    .hp-hero__art {
        grid-template-columns: 1fr 120px;
    }
}

@media (max-width: 860px) {
    .hp-hero__art {
        grid-template-columns: 1fr 110px;
        max-width: 520px;
    }
}

@media (max-width: 560px) {
    /* Hero art: stack thumbnails below on small phones */
    .hp-hero__art {
        grid-template-columns: 1fr;
        max-width: none;
    }

    .hp-hero__art-side {
        flex-direction: row;
    }
}
