/* Homepage Specific Layouts */

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-8);
    align-items: center;
    min-height: 70vh;
    border-bottom: var(--border-thin);
    margin-bottom: var(--space-16);
    padding-bottom: var(--space-16);
}

.hero-content h1 {
    font-size: var(--text-5xl);
    line-height: 1.1;
    margin-bottom: var(--space-6);
}

.hero-content .lead {
    font-size: var(--text-xl);
    color: var(--color-text-muted);
    max-width: 90%;
}

.hero-visual {
    position: relative;
    padding: var(--space-8);
    border: var(--border-thin);
    background: var(--color-surface);
}

.hero-visual::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image:
        linear-gradient(var(--color-surface-elevated) 1px, transparent 1px),
        linear-gradient(90deg, var(--color-surface-elevated) 1px, transparent 1px);
    background-size: 20px 20px;
    opacity: 0.5;
    z-index: 0;
}

.hero-visual img {
    position: relative;
    z-index: 1;
    border: 1px solid var(--color-accent-amber);
    box-shadow: 10px 10px 0 rgba(245, 158, 11, 0.2);
}

.home-section {
    margin-bottom: var(--space-24);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    border-bottom: 2px solid var(--color-text-main);
    padding-bottom: var(--space-2);
    margin-bottom: var(--space-8);
}

.section-header h2 {
    margin-bottom: 0;
    font-size: var(--text-3xl);
}

.section-meta {
    font-family: var(--font-display);
    font-size: var(--text-xs);
    color: var(--color-accent-amber);
    text-transform: uppercase;
}

/* Featured Content Grid */
.featured-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-8);
}

.featured-card {
    border: var(--border-thin);
    padding: var(--space-6);
    background: var(--color-surface);
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.featured-card:hover {
    transform: translateY(-4px);
    border-color: var(--color-accent-amber);
}

.card-meta {
    font-family: var(--font-display);
    font-size: var(--text-xs);
    color: var(--color-text-muted);
    margin-bottom: var(--space-4);
    display: block;
}

.featured-card h3 {
    font-size: var(--text-xl);
    margin-bottom: var(--space-4);
}

.featured-card p {
    font-size: var(--text-base);
    color: var(--color-text-muted);
    margin-bottom: var(--space-6);
}

.card-link {
    font-family: var(--font-display);
    font-size: var(--text-sm);
    text-transform: uppercase;
    color: var(--color-accent-amber);
    display: inline-block;
}

.card-link::after {
    content: " →";
}

/* Stats Row */
.stats-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-4);
    background: var(--color-surface);
    padding: var(--space-8);
    border: var(--border-thin);
}

.stat-item {
    border-right: var(--border-thin);
    padding-right: var(--space-4);
}

.stat-item:last-child {
    border-right: none;
}

.stat-value {
    font-family: var(--font-display);
    font-size: var(--text-4xl);
    color: var(--color-accent-green);
    margin-bottom: var(--space-2);
    font-weight: 700;
}

.stat-label {
    font-family: var(--font-display);
    font-size: var(--text-xs);
    color: var(--color-text-muted);
    text-transform: uppercase;
}

@media (max-width: 768px) {
    .hero-grid {
        grid-template-columns: 1fr;
    }
    .stats-row {
        grid-template-columns: 1fr 1fr;
        gap: var(--space-8);
    }
    .stat-item {
        border-right: none;
    }
}
