/* ========================================
   LUCAYAN REVIEW — Category Subpage Styles
   ======================================== */

/* --- Category Hero --- */
.category-hero {
    padding-top: calc(var(--nav-height) + var(--space-2xl));
    padding-bottom: var(--space-2xl);
    background-size: cover;
    background-position: center;
    position: relative;
}

.category-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.45) 0%, rgba(0,0,0,0.35) 100%);
    z-index: 1;
}

.category-hero > .container {
    position: relative;
    z-index: 2;
}

.category-hero__inner {
    max-width: 720px;
}

.category-hero__number {
    display: block;
    font-family: var(--font-sans);
    font-size: 0.7rem;
    font-weight: 400;
    letter-spacing: 0.15em;
    color: rgba(255, 255, 255, 0.4);
    margin-bottom: var(--space-sm);
}

.category-hero__title {
    font-family: var(--font-serif);
    font-size: clamp(2.8rem, 7vw, 5rem);
    font-weight: 400;
    color: var(--white);
    line-height: 1;
    letter-spacing: -0.02em;
    margin-bottom: var(--space-sm);
}

.category-hero__subtitle {
    font-family: var(--font-sans);
    font-size: clamp(0.9rem, 1.5vw, 1.05rem);
    font-weight: 300;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
    margin-bottom: var(--space-md);
}

.category-hero__line {
    width: 48px;
    height: 1px;
    background-color: rgba(255, 255, 255, 0.3);
}


/* --- Category Intro --- */
.category-intro {
    padding: var(--space-xl) 0;
    background-color: var(--white);
}

.category-intro__inner {
    max-width: 760px;
}

.category-intro__text {
    font-family: var(--font-serif);
    font-size: clamp(1.1rem, 2vw, 1.35rem);
    font-weight: 400;
    line-height: 1.7;
    color: var(--text);
}


/* --- Category Articles Grid --- */
.category-articles {
    padding: var(--space-xl) 0 var(--space-2xl);
    background-color: var(--sand-light);
}

.category-articles__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-md);
}

.story-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.story-card-link:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(26, 83, 92, 0.1);
}

.category-articles__grid .story-card {
    background: var(--white);
}


/* --- Category CTA --- */
.category-cta {
    padding: var(--space-xl) 0;
    background-color: var(--sand);
}

.category-cta__inner {
    text-align: center;
    max-width: 560px;
    margin: 0 auto;
}

.category-cta__title {
    font-family: var(--font-serif);
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    font-weight: 400;
    color: var(--charcoal);
    margin-bottom: var(--space-sm);
}

.category-cta__text {
    font-size: 0.95rem;
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: var(--space-md);
}


/* --- Footer back link --- */
.footer__back {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.4);
}

.footer__back:hover {
    color: var(--white);
    opacity: 1;
}


/* --- Responsive --- */
@media (max-width: 1024px) {
    .category-articles__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .category-hero {
        padding-top: calc(var(--nav-height) + var(--space-xl));
        padding-bottom: var(--space-xl);
    }

    .category-articles__grid {
        grid-template-columns: 1fr;
    }
}
