/* =========================================
   STORY SECTION ENHANCEMENTS
   ========================================= */

/* --- shared variables --- */
:root {
    --gold-accent: #D4A373;
    --wood-dark: #2C1E1A;
    --sand-bg: #F9F5F0;
}

/* --- Index Page: Enhanced Story Section --- */
.story-wrapper {
    position: relative;
    padding: 8rem 0;
    background: var(--sand-bg);
    overflow: hidden;
}

.story-wrapper::before {
    /* Subtle Grain/Pattern Overlay */
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('assets/images/seamless_light_wood_bg.png');
    background-size: 400px;
    opacity: 0.05;
    z-index: 0;
    pointer-events: none;
}

.story-container {
    position: relative;
    z-index: 2;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 5%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
    align-items: center;
}

/* Left: Image Composition */
.story-visuals {
    position: relative;
}

.story-main-img {
    position: relative;
    z-index: 2;
    border-radius: 8px 80px 8px 8px; /* Unique shape */
    box-shadow: 0 30px 60px rgba(0,0,0,0.15);
    transition: transform 0.5s ease;
    width: 90%;
}

.story-visuals:hover .story-main-img {
    transform: translateY(-10px);
}

.story-decoration {
    position: absolute;
    top: -30px;
    left: -30px;
    width: 60%;
    height: 60%;
    border: 3px solid var(--gold-accent);
    z-index: 1;
    opacity: 0.6;
    border-radius: 8px 80px 8px 8px;
}

.story-badge {
    position: absolute;
    bottom: 40px;
    right: 0;
    background: white;
    padding: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border-left: 4px solid var(--gold-accent);
    z-index: 3;
    max-width: 200px;
}

.story-badge p {
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
    font-style: italic;
    color: var(--wood-dark);
    margin: 0;
    line-height: 1.4;
}

/* Right: Text Content */
.story-content h2 {
    font-size: 3.5rem;
    color: var(--wood-dark);
    margin-bottom: 2rem;
}

.story-content h2 span {
    display: block;
    font-size: 1.2rem;
    color: var(--gold-accent);
    font-family: 'Outfit', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    margin-bottom: 10px;
}

.story-content p {
    font-size: 1.15rem;
    color: #666;
    line-height: 1.8;
    margin-bottom: 2rem;
}

.signature-img {
    height: 60px;
    opacity: 0.8;
    margin-top: 2rem;
}

/* --- About Page: Timeline & Enhanced Layout --- */

.about-hero-enhanced {
    height: 60vh;
    min-height: 400px;
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.about-hero-enhanced::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5); /* Dark overlay */
}

.about-hero-text {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
}

.about-hero-text h1 {
    font-size: 4.5rem;
    margin-bottom: 1rem;
    color: white;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

/* Timeline Section */
.timeline-section {
    padding: 6rem 0;
    background: white;
}

.timeline {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem 0;
}

.timeline::before {
    /* Vertical Line */
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 2px;
    background: var(--gold-accent);
    transform: translateX(-50%);
    opacity: 0.3;
}

.timeline-item {
    padding: 2rem 0;
    position: relative;
    width: 50%;
}

.timeline-item:nth-child(odd) {
    left: 0;
    padding-right: 3rem;
    text-align: right;
}

.timeline-item:nth-child(even) {
    left: 50%;
    padding-left: 3rem;
}

.timeline-dot {
    position: absolute;
    top: 2.5rem;
    width: 16px;
    height: 16px;
    background: var(--gold-accent);
    border-radius: 50%;
    z-index: 2;
}

.timeline-item:nth-child(odd) .timeline-dot {
    right: -8px;
}

.timeline-item:nth-child(even) .timeline-dot {
    left: -8px;
}

.timeline-content {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    border-top: 3px solid var(--gold-accent);
    transition: transform 0.3s;
}

.timeline-content:hover {
    transform: translateY(-5px);
}

.timeline-year {
    display: block;
    font-size: 1.5rem;
    font-family: 'Playfair Display', serif;
    color: var(--wood-dark);
    font-weight: 700;
    margin-bottom: 0.5rem;
}

/* Stats Cards Enhanced */
.stats-grid-enhanced {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-top: 4rem;
}

.stat-card-glass {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.5);
    padding: 2.5rem 1.5rem;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: transform 0.3s;
}

.stat-card-glass:hover {
    transform: translateY(-10px);
    background: white;
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
}

.stat-icon {
    font-size: 2.5rem;
    color: var(--gold-accent);
    margin-bottom: 1rem;
}

/* Mobile Responsiveness */
@media (max-width: 900px) {
    .story-container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .story-visuals {
        order: -1; /* Image on top on mobile */
        margin-bottom: 2rem;
    }

    .story-main-img {
        width: 100%;
    }

    .story-badge {
        right: 10px;
        bottom: 10px;
        padding: 15px;
    }
    
    .timeline::before {
        left: 20px;
    }

    .timeline-item {
        width: 100%;
        left: 0 !important;
        padding-left: 50px !important;
        padding-right: 0 !important;
        text-align: left !important;
    }

    .timeline-item:nth-child(odd) .timeline-dot,
    .timeline-item:nth-child(even) .timeline-dot {
        left: 12px;
        right: auto;
    }

    .stats-grid-enhanced {
        grid-template-columns: 1fr 1fr; /* 2x2 on mobile */
    }
}
