/* ============================================================
   HERO — koji-academy-theme/css/hero.css
   Hero section styles used across all page templates
   ============================================================ */

.hero {
    background-color: var(--color-bg-dark);
    padding-block: var(--space-xl);
    color: #fff;
}

.hero__inner {
    display: grid;
    gap: var(--space-xl);
    align-items: center;
}



@media (min-width: 768px) {
    .hero__inner {
        grid-template-columns: 1fr 1fr;
    }
}

.hero__content {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.hero__label {
    display: inline-block;
    font-size: var(--text-5xl);
    font-weight: 800;
    color: rgba(255,255,255,0.7);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-bottom: 0;
    line-height: 52px; 
}

.hero__title {
    font-size: var(--text-4xl);
    color: #fff;
    margin-bottom: 0;
    line-height: 1.15;
}

@media (min-width: 1024px) {
    .hero__title {
        font-size: var(--text-5xl);
    }
}

.hero__text {
    font-size: var(--text-lg);
    color: rgba(255,255,255,0.85);
    margin-bottom: 0;
    max-width: 52ch;
    line-height: 1.7;
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
    margin-top: var(--space-xs);
}

.hero__image-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero__image {
    border-radius: var(--radius-xl);
    width: 100%;
    height: auto;
    max-height: 520px;
    object-fit: cover;
    box-shadow: var(--shadow-lg);
}

/* Hero — page variant (smaller, for inner pages) */
.hero--page {
    padding-block: var(--space-lg);
}
.hero--page .hero__title {
    font-size: var(--text-3xl);
}
@media (min-width: 1024px) {
    .hero--page .hero__title {
        font-size: var(--text-4xl);
    }
}

/* Hero — no image variant (text only, centred) */
.hero--centred {
    text-align: center;
}
.hero--centred .hero__inner {
    grid-template-columns: 1fr;
    justify-items: center;
}
.hero--centred .hero__text {
    margin-inline: auto;
}
.hero--centred .hero__actions {
    justify-content: center;
}

@media (max-width: 900px) {

	.hero__inner {
        grid-template-columns: 1fr;
    }
    .hero__image-wrap {
        order: -1;
    }

}

@media (max-width: 767px) {

	.hero__inner {
        gap: var(--space-lg);
    }

	.hero__image {
    	aspect-ratio: 1/1;
    }
    
    .hero__label {
    	font-size: var(--text-4xl);
	}

}