/* ═══════════════════════════════════════════════════════════════
   BASIC UI KIT — Project Page
   ───────────────────────────────────────────────────────────────
    1.  Project Hero
    2.  Section Description
    3.  Image Showcase (full-width, 2-col, 3-col)
    4.  Stat Counter
    5.  Accessibility Tags
    6.  Responsive
   ═══════════════════════════════════════════════════════════════ */


/* ─── 1. PROJECT HERO ──────────────────────────────────────────── */

.project-hero {
    display: flex;
    flex-direction: column;
    gap: 24px;
    align-items: center;
    width: 100%;
    position: relative;
    z-index: 10;
    padding-top: 90px;
}

.project-hero-content {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: start;
    text-align: start;
    width: 100%;
    order: 2;
}

.project-hero-content h1 {
    font-size: 56px;
    font-weight: 600;
}

.project-hero-content p {
    font-size: 14px;
    font-weight: 400;
    color: rgba(250, 249, 246, 0.9);
    max-width: 800px;
    line-height: 1.6;
}

.hero-overview {
    width: 100%;
    display: grid;
    grid-template-columns: .7fr 1fr;
    gap: 24px;
    align-items: start;
}

.hero-overview-copy {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
}

.hero-overview-copy > p {
    max-width: none;
    margin: 0;
}

.hero-overview-metrics {
    width: 100%;
}

.hero-meta {
    display: flex;
    flex-direction: row;
    justify-content: flex-end;
    align-items: stretch;
    gap: 12px;
    padding-left: 0;
    margin: 0;
    list-style: none;
}

.hero-meta-card {
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: 8px;
    background: rgba(23, 23, 23, 0.70);
    border: 1px solid rgba(250, 249, 246, 0.08);
    border-radius: 12px;
    padding: 12px;
}

.hero-meta-number {
    font-size: 24px;
    line-height: 1;
    font-weight: 500;
    color: #FAF9F6;
}

.hero-meta-label {
    font-size: 13px;
    line-height: 1.4;
    font-weight: 500;
    color: rgba(250, 249, 246, 0.85);
}

.project-hero-image {
    order: 1;
    width: 100%;
    aspect-ratio: 3840 / 1200;
    border-radius: 12px;
    overflow: hidden;
    background: #242424;
}

.project-hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    border-radius: 12px;
}


/* ─── 2. SECTION DESCRIPTION ───────────────────────────────────── */

.section-description {
    font-size: 14px;
    color: rgba(250, 249, 246, 0.8);
    line-height: 1.6;
    max-width: none;
}

.card-description {
    font-size: 14px;
    line-height: 1.6;
}

.section {
    display: grid;
    grid-template-columns: .7fr 1fr;
    column-gap: 40px;
    row-gap: 16px;
    align-items: start;
}

.section-title {
    margin-bottom: 0;
}

.section .section-title {
    position: sticky;
    top: var(--section-sticky-top, 55px);
    z-index: 20;
    isolation: isolate;
    background: #121212;
    width: 100%;
    padding: 8px 0;
    grid-column: 1 / -1;
}

.section .section-title::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: calc(var(--section-sticky-top, 55px) * -1);
    height: var(--section-sticky-top, 55px);
    background: #121212;
    z-index: -1;
    pointer-events: none;
}

.section .section-title::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0;
    width: 100vw;
    transform: translateX(-50%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.18s ease;
}

.section .section-title.sticky-active::after {
    opacity: 1;
}

.section > :not(.section-title) {
    grid-column: 2;
}

.section-content {
    grid-column: 2;
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
}


/* ─── 3. IMAGE SHOWCASE ───────────────────────────────────────── */

/* Full-width image block */
.showcase-image {
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    background: #242424;
}

.showcase-image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
}

/* 2-column image grid */
.showcase-grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
    width: 100%;
}

/* 3-column image grid (responsive showcase) */
.showcase-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    width: 100%;
}

.showcase-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.showcase-item img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    display: block;
    background: #242424;
}

#multi-brand .cards-grid {
    grid-template-columns: repeat(2, 1fr);
}

#multi-brand .card-title h3 {
    font-size: 18px;
}

.card-title h3 {
    font-size: 18px;
}

.card,
.stat-hero {
    border-radius: 12px;
}

.card-image {
    border-radius: 12px 12px 0 0;
}

.card-image > img {
    border-radius: 12px 12px 0 0;
}

.showcase-item .caption {
    font-size: 14px;
    font-weight: 500;
    color: rgba(250, 249, 246, 0.8);
    text-align: center;
}


/* ─── 4. STAT COUNTER ──────────────────────────────────────────── */

.stat-hero {
    display: flex;
    flex-direction: column;
    gap: 4px;
    align-items: flex-start;
    background: rgba(23, 23, 23, 0.70);
    border: 1px solid rgba(250, 249, 246, 0.08);
    border-radius: 12px;
    padding: 12px;
    width: fit-content;
}

.stat-hero h4 {
    font-size: 24px;
    font-weight: 500;
    line-height: 1;
}

.stat-hero .stat-label {
    font-size: 14px;
    line-height: 1.4;
    font-weight: 500;
    color: rgba(250, 249, 246, 0.85);
}

#components .stat-hero {
    width: 100%;
    max-width: 100%;
    gap: 0;
    padding: 0;
    overflow: hidden;
}

.stat-hero-image {
    width: 100%;
    overflow: hidden;
    border-radius: 12px 12px 0 0;
}

.stat-hero-image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px 12px 0 0;
}

.stat-hero-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 12px;
}

#components .stat-hero-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 12px;
}

#components .stat-hero-image,
#components .stat-hero-image img {
    border-radius: 12px 12px 0 0;
}

#user-flows .cards-grid {
    grid-template-columns: 1fr;
}

#responsive-grid .showcase-grid-3 {
    align-items: start;
}

#responsive-grid .card {
    background: rgba(23, 23, 23, 0.7);
    border: 1px solid rgba(250, 249, 246, 0.08);
    border-radius: 12px;
    overflow: hidden;
}

#responsive-grid .card-image {
    aspect-ratio: auto;
    border-radius: 12px 12px 0 0;
}

#responsive-grid .card-image > img {
    height: auto;
    object-fit: contain;
    object-position: center top;
}

#responsive-grid .card-content {
    align-items: flex-start;
    padding: 12px;
}

#responsive-grid .card-title {
    justify-content: flex-start;
}

#responsive-grid .card-title h3 {
    font-size: 18px;
    text-align: left;
}


/* ─── 5. ACCESSIBILITY TAGS ───────────────────────────────────── */

.tags-row {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}


/* ─── 6. RESPONSIVE ───────────────────────────────────────────── */
@media (max-width: 768px) {
    .project-hero-image {
        aspect-ratio: auto;
        min-height: 220px;
    }

    .project-hero-image img {
        height: 220px;
        object-fit: cover;
        object-position: left center;
    }

    .section {
        display: flex;
        flex-direction: column;
        gap: 24px;
    }

    .section > :not(.section-title) {
        grid-column: auto;
    }

    .section-content {
        grid-column: auto;
        gap: 24px;
    }

    .project-hero-content h1 { font-size: 36px; }
    .project-hero-content p  { font-size: 14px; }

    .hero-overview {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .hero-overview-copy {
        width: 100%;
    }

    .hero-meta {
        width: 100%;
        justify-content: flex-start;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .hero-meta-card {
        width: 100%;
    }

    .hero-meta-card:first-child {
        grid-column: 1 / -1;
    }

    #multi-brand .cards-grid {
        grid-template-columns: 1fr;
    }

    .showcase-grid-3 { grid-template-columns: 1fr; }
    .showcase-grid-2 { grid-template-columns: 1fr; }

    .stat-hero h4 { font-size: 24px; }
}
