/* =============================================
   ONZE WORTELS PAGE
   Editorial storytelling design
   ============================================= */

/* Hero Section */
.wortels-hero {
    padding: 140px 0 80px;
    background: linear-gradient(180deg, var(--sjb-blue) 0%, var(--sjb-blue-dark) 100%);
    color: var(--white);
    text-align: center;
    position: relative;
}

.hero-eyebrow {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    opacity: 0.8;
    margin-bottom: var(--space-md);
}

.wortels-hero .hero-title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 7vw, 4rem);
    font-weight: 700;
    margin-bottom: var(--space-md);
}

.hero-subtitle {
    font-size: 1.15rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Hero Timeline */
.hero-timeline {
    display: flex;
    justify-content: center;
    gap: var(--space-lg);
    margin-top: var(--space-3xl);
    padding: var(--space-lg) var(--space-md);
    overflow-x: auto;
}

.timeline-point {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-xs);
    min-width: 80px;
    position: relative;
}

.timeline-point::after {
    content: '';
    position: absolute;
    top: 12px;
    left: calc(100% + 10px);
    width: calc(var(--space-lg) - 20px);
    height: 2px;
    background: rgba(255, 255, 255, 0.3);
}

.timeline-point:last-child::after {
    display: none;
}

.timeline-point .year {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 700;
    padding: var(--space-xs) var(--space-sm);
    background: rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-sm);
}

.timeline-point .label {
    font-size: 0.7rem;
    opacity: 0.7;
    text-align: center;
}

/* Chapter Navigation */
.chapter-nav {
    background: var(--white);
    border-bottom: 1px solid var(--gray-200);
    padding: var(--space-md) 0;
    position: sticky;
    top: 70px;
    z-index: 50;
}

.chapter-nav .container {
    display: flex;
    justify-content: center;
    gap: var(--space-xs);
    overflow-x: auto;
    padding: 0 var(--space-md);
}

.chapter-link {
    padding: var(--space-sm) var(--space-md);
    font-family: var(--font-display);
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--gray-600);
    border-radius: var(--radius-full);
    white-space: nowrap;
    transition: var(--transition-fast);
}

.chapter-link:hover {
    background: var(--gray-100);
    color: var(--sjb-blue);
}

.chapter-link.active {
    background: var(--sjb-blue);
    color: var(--white);
}

/* Chapter Sections */
.chapter {
    padding: var(--space-4xl) 0;
}

.chapter-alt {
    background: var(--gray-50);
}

.chapter-header {
    text-align: center;
    margin-bottom: var(--space-3xl);
}

.chapter-number {
    display: inline-block;
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--sjb-yellow);
    margin-bottom: var(--space-md);
}

.chapter-title {
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    color: var(--gray-800);
    margin-bottom: var(--space-sm);
}

.chapter-years {
    font-size: 1rem;
    color: var(--gray-500);
}

/* Story Grid */
.story-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-3xl);
    max-width: 1100px;
    margin: 0 auto;
}

@media (min-width: 900px) {
    .story-grid {
        grid-template-columns: 2fr 1fr;
    }
    
    .story-grid-reverse {
        grid-template-columns: 1fr 2fr;
    }
    
    .story-grid-reverse .story-content {
        order: 2;
    }
    
    .story-grid-reverse .story-sidebar {
        order: 1;
    }
}

.story-content {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--gray-700);
}

.story-content-wide {
    max-width: 800px;
    margin: 0 auto;
}

.story-lead {
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--gray-800);
    margin-bottom: var(--space-xl);
}

.story-content h3 {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--gray-800);
    margin: var(--space-xl) 0 var(--space-md);
}

.story-content p {
    margin-bottom: var(--space-md);
}

/* Sidebar Elements */
.story-sidebar {
    display: flex;
    flex-direction: column;
    gap: var(--space-xl);
}

.timeline-card {
    background: var(--white);
    padding: var(--space-xl);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.chapter-alt .timeline-card {
    background: var(--white);
}

.timeline-card h4 {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 600;
    color: var(--gray-800);
    margin-bottom: var(--space-lg);
}

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

.mini-item {
    display: flex;
    gap: var(--space-md);
    align-items: flex-start;
    padding-left: var(--space-md);
    border-left: 2px solid var(--sjb-blue-light);
}

.mini-year {
    font-family: var(--font-display);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--sjb-blue);
    min-width: 40px;
}

.mini-event {
    font-size: 0.85rem;
    color: var(--gray-600);
}

.highlight-card {
    background: var(--sjb-blue);
    color: var(--white);
    padding: var(--space-xl);
    border-radius: var(--radius-lg);
}

.highlight-card h4 {
    font-family: var(--font-display);
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: var(--space-md);
}

.feature-list {
    list-style: none;
}

.feature-list li {
    padding: var(--space-xs) 0;
    padding-left: var(--space-lg);
    position: relative;
    font-size: 0.9rem;
}

.feature-list li::before {
    content: '→';
    position: absolute;
    left: 0;
    opacity: 0.7;
}

.sidebar-quote {
    font-size: 0.95rem;
    font-style: italic;
    color: var(--gray-600);
    padding: var(--space-lg);
    background: var(--white);
    border-left: 3px solid var(--sjb-yellow);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    line-height: 1.7;
}

/* Poem Block */
.poem-block {
    max-width: 800px;
    margin: var(--space-3xl) auto 0;
    padding: var(--space-2xl);
    background: linear-gradient(135deg, var(--sjb-yellow-light) 0%, #FEF3C7 100%);
    border-radius: var(--radius-xl);
}

.poem-block h4 {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--gray-800);
    text-align: center;
    margin-bottom: var(--space-xl);
}

.poem-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-xl);
}

@media (min-width: 640px) {
    .poem-content {
        grid-template-columns: 1fr 1fr;
    }
}

.poem-content-single {
    grid-template-columns: 1fr;
    text-align: center;
}

.poem-column p {
    font-size: 0.95rem;
    line-height: 1.8;
    color: var(--gray-700);
    margin-bottom: var(--space-md);
}

.poem-block cite {
    display: block;
    text-align: right;
    font-size: 0.85rem;
    color: var(--gray-500);
    margin-top: var(--space-lg);
}

.poem-block-alt {
    background: linear-gradient(135deg, var(--sjb-green-light) 0%, #E8F5E9 100%);
}

/* Jan Berchmans Section */
.jan-intro {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-xl);
    margin-bottom: var(--space-3xl);
    text-align: center;
}

@media (min-width: 640px) {
    .jan-intro {
        flex-direction: row;
        justify-content: center;
        text-align: left;
    }
}

.jan-portrait {
    flex-shrink: 0;
}

.portrait-frame {
    width: 120px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--sjb-blue);
    border-radius: var(--radius-full);
    border: 4px solid var(--sjb-yellow);
}


.portrait-initial {
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 700;
    color: var(--white);
}
.portrait-frame {
    overflow: hidden; /* nodig voor afbeelding */
}

.portrait-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}


.jan-question {
    max-width: 400px;
}

.question-text {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 600;
    font-style: italic;
    color: var(--sjb-blue);
    line-height: 1.4;
}

/* Feestdag Card */
.feestdag-card {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
    max-width: 600px;
    margin: var(--space-3xl) auto 0;
    padding: var(--space-xl);
    background: var(--white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    border-top: 4px solid var(--sjb-blue);
}

@media (min-width: 480px) {
    .feestdag-card {
        flex-direction: row;
        align-items: center;
    }
}

.feestdag-date {
    text-align: center;
    flex-shrink: 0;
}

.feestdag-date .dag {
    display: block;
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--sjb-blue);
    line-height: 1;
}

.feestdag-date .maand {
    display: block;
    font-size: 0.85rem;
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.feestdag-info h4 {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--gray-800);
    margin-bottom: var(--space-xs);
}

.feestdag-info p {
    font-size: 0.9rem;
    color: var(--gray-600);
    line-height: 1.5;
}

/* Eigenheid Block */
.eigenheid-block {
    max-width: 700px;
    margin: var(--space-2xl) auto;
    padding: var(--space-xl);
    background: var(--white);
    border-radius: var(--radius-lg);
    border-left: 4px solid var(--sjb-green);
}

.eigenheid-block h3 {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--sjb-green-dark);
    margin-bottom: var(--space-md);
}

.eigenheid-block p {
    font-size: 0.95rem;
    color: var(--gray-700);
    line-height: 1.7;
    margin-bottom: var(--space-sm);
}

/* Schools Overview */
.schools-overview {
    max-width: 900px;
    margin: var(--space-3xl) auto 0;
}

.schools-overview h3 {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--gray-800);
    text-align: center;
    margin-bottom: var(--space-xl);
}

.schools-columns {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-xl);
}

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

.schools-column h4 {
    font-family: var(--font-display);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--sjb-blue);
    margin-bottom: var(--space-md);
    padding-bottom: var(--space-sm);
    border-bottom: 2px solid var(--sjb-blue-light);
}

.schools-list {
    list-style: none;
}

.schools-list li {
    padding: var(--space-sm) 0;
    font-size: 0.9rem;
    color: var(--gray-700);
    border-bottom: 1px solid var(--gray-200);
}

.schools-list li:last-child {
    border-bottom: none;
}

.schools-list .current-school {
    font-weight: 600;
    color: var(--sjb-blue);
}

/* Closing Section */
.closing-section {
    padding: var(--space-4xl) 0;
    background: var(--sjb-blue);
    text-align: center;
    color: var(--white);
}

.closing-text {
    font-size: 1.2rem;
    line-height: 1.7;
    max-width: 700px;
    margin: 0 auto var(--space-xl);
    opacity: 0.95;
}

.closing-link {
    display: inline-flex;
    padding: var(--space-md) var(--space-xl);
    background: var(--white);
    color: var(--sjb-blue);
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--radius-lg);
    transition: var(--transition-fast);
}

.closing-link:hover {
    background: var(--sjb-yellow);
    color: var(--gray-800);
}
