/*
===============================================================================
BIG TEXAN D2C - HERITAGE PAGE STYLES
===============================================================================
Styles specific to the heritage/our story page (pages/heritage.html)
Uses global tokens from globals.css
===============================================================================
*/

/* --- HERITAGE PAGE (Neon dialect) ---
   Hero, eyebrow, and CTA shells are handled by globals.css canonical
   shell + .page-hero--neon / .page-eyebrow--neon / .page-cta--neon
   modifiers. Keep only page-specific overrides below. --- */

/* Subtitle in italic per heritage hero voice (page-specific only) */
.heritage-hero {
    min-height: clamp(520px, 72vh, 680px);
}

.heritage-hero-bg img {
    object-position: center 42%;
    opacity: 0.72;
    filter: sepia(0.28) brightness(0.72) contrast(1.18) saturate(0.88);
}

.heritage-hero-overlay {
    background:
        radial-gradient(circle at 50% 48%, rgba(10, 0, 3, 0.54) 0%, rgba(10, 0, 3, 0.8) 58%, rgba(10, 0, 3, 0.96) 100%),
        linear-gradient(180deg, rgba(26, 0, 5, 0.7) 0%, rgba(26, 0, 5, 0.4) 42%, rgba(26, 0, 5, 0.96) 100%);
}

.heritage-hero-content {
    position: relative;
    z-index: 3;
    padding-inline: var(--content-padding);
}

.heritage-hero-title {
    text-shadow:
        0 3px 18px rgba(0, 0, 0, 0.96),
        0 0 34px rgba(0, 0, 0, 0.78);
}

.heritage-hero-subtitle {
    font-style: italic;
    text-shadow:
        0 2px 12px rgba(0, 0, 0, 0.9),
        0 0 26px rgba(0, 0, 0, 0.72);
}

/* --- FOUNDER SECTION (dark neon) --- */
.founder-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.founder-title {
    font-size: var(--text-4xl);
    color: var(--brand-cream);
    margin-bottom: 1.5rem;
}

.founder-text {
    font-size: var(--text-lg);
    line-height: 1.8;
    color: var(--brand-cream);
    opacity: 0.88;
    margin-bottom: 1.5rem;
}

.founder-quote {
    font-style: italic;
    font-size: var(--text-xl);
    color: var(--brand-cream);
    border-left: 4px solid var(--texan-yellow);
    padding-left: 1.5rem;
    margin: 2rem 0;
    line-height: 1.6;
    box-shadow: -1px 0 12px rgba(255, 210, 0, 0.15);
}

.founder-quote cite {
    display: block;
    font-style: normal;
    font-size: var(--text-sm);
    font-weight: 700;
    margin-top: 0.75rem;
    color: var(--texan-yellow);
    opacity: 0.9;
}

.founder-image {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 0 30px rgba(255, 210, 0, 0.15), var(--shadow-xl);
}

.founder-image img {
    width: 100%;
    height: auto;
}

/* --- TIMELINE SECTION (slightly lighter dark variant) --- */
.timeline {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem 0;
}

/* Timeline center line - neon-glow yellow */
.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, transparent 0%, var(--texan-yellow) 15%, var(--texan-yellow) 85%, transparent 100%);
    box-shadow: 0 0 10px rgba(255, 210, 0, 0.4);
    opacity: 0.6;
    transform: translateX(-50%);
}

.timeline-item {
    position: relative;
    display: flex;
    margin-bottom: 3rem;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

/* Alternate left and right */
.timeline-item:nth-child(odd) {
    flex-direction: row;
    padding-right: calc(50% + 2rem);
}

.timeline-item:nth-child(even) {
    flex-direction: row-reverse;
    padding-left: calc(50% + 2rem);
}

.timeline-item:nth-child(odd) .timeline-content {
    text-align: right;
}

.timeline-item:nth-child(even) .timeline-content {
    text-align: left;
}

.timeline-marker {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
}

.timeline-year {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    background: var(--bg-neon-night);
    color: var(--texan-yellow);
    font-family: var(--font-heading);
    font-size: var(--text-lg);
    border: 2px solid var(--texan-yellow);
    border-radius: 50%;
    box-shadow: 0 0 12px rgba(255, 210, 0, 0.4), inset 0 0 8px rgba(255, 210, 0, 0.1);
    text-shadow: 0 0 8px rgba(255, 210, 0, 0.5);
}

.timeline-content {
    flex: 1;
    background: rgba(31, 10, 13, 0.6);
    border: 1px solid rgba(255, 210, 0, 0.15);
    padding: 1.5rem 2rem;
    border-radius: var(--radius-md);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.timeline-title {
    font-size: var(--text-xl);
    color: var(--brand-cream);
    margin-bottom: 0.5rem;
}

.timeline-text {
    font-size: var(--text-base);
    color: var(--brand-cream);
    opacity: 0.85;
    line-height: 1.7;
    margin: 0;
}

/* --- CHALLENGE ORIGIN SECTION --- */
.challenge-origin-section {
    position: relative;
    min-height: 70vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.challenge-origin-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.challenge-origin-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.challenge-origin-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to right,
        rgba(10, 0, 3, 0.96) 0%,
        rgba(10, 0, 3, 0.88) 50%,
        rgba(10, 0, 3, 0.55) 100%
    );
    z-index: 2;
}

.challenge-origin-content {
    position: relative;
    z-index: 3;
    width: 100%;
    padding: var(--section-spacing) 0;
}

.challenge-origin-grid {
    max-width: 650px;
}

.challenge-origin-title {
    font-size: var(--text-4xl);
    color: var(--texan-yellow);
    margin-bottom: 1.5rem;
}

.challenge-origin-intro {
    font-size: var(--text-2xl);
    font-style: italic;
    color: var(--brand-cream);
    margin-bottom: 1.5rem;
}

.challenge-origin-body {
    font-size: var(--text-lg);
    color: var(--brand-cream);
    opacity: 0.9;
    line-height: 1.8;
    margin-bottom: 1rem;
}

.challenge-stats {
    display: flex;
    gap: 3rem;
    margin: 2.5rem 0;
}

.challenge-stat {
    display: flex;
    flex-direction: column;
}

.challenge-stat-number {
    font-family: var(--font-heading);
    font-size: var(--text-4xl);
    color: var(--texan-yellow);
}

.challenge-stat-label {
    font-size: var(--text-sm);
    color: var(--brand-cream);
    opacity: 0.8;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.challenge-origin-cta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 2rem;
}

/* --- COMMITMENT SECTION (lit cream panel - high-contrast moment) --- */
.commitment-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.commitment-card {
    background: var(--bg-surface);
    padding: 2.5rem 2rem;
    border-radius: var(--radius-md);
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-base);
    border: 1px solid rgba(81, 0, 11, 0.08);
}

.commitment-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

.commitment-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 1.5rem;
    color: var(--brand-maroon-soft);
}

.commitment-icon svg {
    width: 100%;
    height: 100%;
}

.commitment-title {
    font-size: var(--text-xl);
    color: var(--brand-maroon);
    margin-bottom: 1rem;
}

.commitment-text {
    font-size: var(--text-base);
    color: var(--text-secondary);
    line-height: 1.7;
    margin: 0;
}

/* --- VISIT SECTION (dark neon) --- */
.visit-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.visit-image {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 0 30px rgba(255, 210, 0, 0.15), var(--shadow-xl);
}

.visit-image img {
    width: 100%;
    height: auto;
}

.visit-title {
    font-size: var(--text-4xl);
    color: var(--brand-cream);
    margin-bottom: 1rem;
}

.visit-text {
    font-size: var(--text-lg);
    color: var(--brand-cream);
    opacity: 0.88;
    line-height: 1.7;
    margin-bottom: 2rem;
}

.visit-info {
    margin-bottom: 2rem;
}

.visit-info-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.visit-info-item svg {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    color: var(--texan-yellow);
    filter: drop-shadow(0 0 4px rgba(255, 210, 0, 0.5));
    margin-top: 0.25rem;
}

.visit-info-item div {
    font-size: var(--text-base);
    color: var(--brand-cream);
    opacity: 0.85;
    line-height: 1.6;
}

.visit-info-item strong {
    color: var(--brand-cream);
    opacity: 1;
}

.visit-cta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* --- SHOP CTA SECTION --- */
.shop-cta-section {
    position: relative;
    min-height: 40vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.shop-cta-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.shop-cta-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.shop-cta-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(10, 0, 3, 0.88) 0%, rgba(26, 0, 5, 0.95) 100%);
    z-index: 2;
}

.shop-cta-content {
    position: relative;
    z-index: 3;
    text-align: center;
    padding: 3rem var(--content-padding);
}

.shop-cta-title {
    font-size: var(--text-4xl);
    color: var(--brand-cream);
    margin-bottom: 0.75rem;
}

.shop-cta-text {
    font-size: var(--text-xl);
    color: var(--brand-cream);
    opacity: 0.9;
    margin-bottom: 2rem;
}

/* --- RESPONSIVE --- */
@media (max-width: 1024px) {
    .timeline-item:nth-child(odd),
    .timeline-item:nth-child(even) {
        flex-direction: column;
        padding-left: 3rem;
        padding-right: 0;
    }

    .timeline::before {
        left: 0;
    }

    .timeline-marker {
        left: 0;
        top: 0;
        transform: translateX(0);
    }

    .timeline-year {
        width: 60px;
        height: 60px;
        font-size: var(--text-base);
    }

    .timeline-item:nth-child(odd) .timeline-content,
    .timeline-item:nth-child(even) .timeline-content {
        text-align: left;
        margin-top: 1rem;
    }
}

@media (max-width: 768px) {
    .heritage-hero {
        min-height: 460px;
    }

    .heritage-hero-bg img {
        object-position: center 38%;
    }

    .heritage-hero-content {
        padding-block: 3.25rem;
    }

    .founder-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .founder-image {
        order: -1;
    }

    .commitment-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .visit-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .visit-image {
        order: -1;
    }

    .challenge-stats {
        flex-direction: column;
        gap: 1.5rem;
    }

    .challenge-origin-cta {
        flex-direction: column;
    }

    .challenge-origin-cta .btn {
        width: 100%;
        text-align: center;
    }

    .visit-cta {
        flex-direction: column;
    }

    .visit-cta .btn {
        width: 100%;
        text-align: center;
    }

    .shop-cta-section {
        min-height: 35vh;
    }

    .timeline-item {
        padding-left: 2.5rem;
    }

    .timeline-year {
        width: 50px;
        height: 50px;
        font-size: var(--text-sm);
    }
}
