/* Factory heritage story — factory-heritage.php (navy + gold, Fraunces chapters) */
.mph-heritage {
    padding: 0 0 clamp(48px, 8vw, 96px);
    background:
        radial-gradient(ellipse 80% 50% at 10% 0%, rgba(201, 162, 78, 0.08), transparent 55%),
        radial-gradient(ellipse 60% 40% at 90% 20%, rgba(19, 42, 69, 0.9), transparent 50%),
        linear-gradient(180deg, #0a1628 0%, #0d2137 40%, #0a1628 100%);
}

.mph-heritage__lead {
    padding: clamp(28px, 5vw, 48px) 0 clamp(20px, 3vw, 32px);
    max-width: 40rem;
}

.mph-heritage__lead-title {
    margin: 0 0 14px;
    font-family: Fraunces, "Times New Roman", serif;
    font-weight: 600;
    font-size: clamp(1.75rem, 3.6vw, 2.65rem);
    line-height: 1.18;
    letter-spacing: -0.02em;
    color: #f5f0e6;
}

.mph-heritage__lead-text {
    margin: 0;
    font-size: 1.05rem;
    line-height: 1.7;
    color: rgba(232, 237, 244, 0.78);
}

.mph-heritage__timeline {
    list-style: none;
    margin: 0 0 clamp(36px, 6vw, 64px);
    padding: 0;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.mph-heritage__timeline li {
    position: relative;
    padding: 18px 18px 18px 20px;
    border-radius: 12px;
    border: 1px solid rgba(201, 162, 78, 0.28);
    background: linear-gradient(145deg, rgba(19, 42, 69, 0.95), rgba(10, 22, 40, 0.88));
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.28);
}

.mph-heritage__timeline li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 14px;
    bottom: 14px;
    width: 3px;
    border-radius: 2px;
    background: linear-gradient(180deg, #d4b76a, #8a6a28);
}

.mph-heritage__tl-era {
    display: block;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--mph-gold-soft, #d4b76a);
    margin-bottom: 8px;
}

.mph-heritage__tl-text {
    display: block;
    font-size: 0.92rem;
    line-height: 1.45;
    color: rgba(232, 237, 244, 0.88);
}

.mph-heritage-chapter {
    padding: clamp(28px, 5vw, 56px) 0;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.mph-heritage-chapter:nth-child(even) {
    background: rgba(0, 0, 0, 0.18);
}

.mph-heritage-chapter__grid {
    display: grid;
    grid-template-columns: 1fr 1.05fr;
    gap: clamp(24px, 4vw, 48px);
    align-items: center;
}

.mph-heritage-chapter--image-left .mph-heritage-chapter__grid {
    grid-template-columns: 1.05fr 1fr;
}

.mph-heritage-chapter--image-left .mph-heritage-chapter__figure {
    order: -1;
}

.mph-heritage-chapter__era {
    margin: 0 0 10px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(212, 183, 106, 0.95);
}

.mph-heritage-chapter__era span {
    display: inline-block;
    margin-right: 8px;
    opacity: 0.55;
    font-variant-numeric: tabular-nums;
}

.mph-heritage-chapter__title {
    margin: 0 0 16px;
    font-family: Fraunces, "Times New Roman", serif;
    font-weight: 600;
    font-size: clamp(1.45rem, 2.6vw, 2rem);
    line-height: 1.22;
    color: #f8f4ea;
}

.mph-heritage-chapter__body p {
    margin: 0 0 14px;
    font-size: 1rem;
    line-height: 1.75;
    color: rgba(232, 237, 244, 0.8);
}

.mph-heritage-chapter__body p:last-child {
    margin-bottom: 0;
}

.mph-heritage-chapter__figure {
    margin: 0;
}

.mph-heritage-chapter__photo {
    display: block;
    width: 100%;
    padding: 0;
    border: 0;
    border-radius: 14px;
    overflow: hidden;
    cursor: zoom-in;
    background: #0b1220;
    box-shadow:
        0 0 0 1px rgba(201, 162, 78, 0.22),
        0 22px 48px rgba(0, 0, 0, 0.45);
    transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.35s ease;
}

.mph-heritage-chapter__photo:hover,
.mph-heritage-chapter__photo:focus-visible {
    transform: translateY(-4px) scale(1.01);
    box-shadow:
        0 0 0 1px rgba(212, 183, 106, 0.45),
        0 28px 56px rgba(0, 0, 0, 0.5);
    outline: none;
}

.mph-heritage-chapter__photo img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    vertical-align: middle;
}

.mph-heritage-chapter__figure figcaption {
    margin-top: 10px;
    font-size: 0.82rem;
    line-height: 1.4;
    color: rgba(232, 237, 244, 0.55);
}

.mph-heritage__strip {
    margin-top: clamp(20px, 4vw, 40px);
    padding: clamp(22px, 4vw, 36px);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: linear-gradient(160deg, rgba(19, 42, 69, 0.75), rgba(10, 22, 40, 0.92));
}

.mph-heritage__strip-title {
    margin: 0 0 8px;
    font-family: Fraunces, "Times New Roman", serif;
    font-size: 1.35rem;
    color: #f5f0e6;
}

.mph-heritage__strip-intro {
    margin: 0 0 18px;
    font-size: 0.95rem;
    color: rgba(232, 237, 244, 0.68);
}

.mph-heritage__strip-row {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 10px;
}

.mph-heritage__thumb {
    display: block;
    padding: 0;
    border: 1px solid rgba(201, 162, 78, 0.25);
    border-radius: 10px;
    overflow: hidden;
    cursor: zoom-in;
    background: #0b1220;
    transition: border-color 0.18s ease, transform 0.18s ease;
}

.mph-heritage__thumb:hover,
.mph-heritage__thumb:focus-visible {
    border-color: rgba(212, 183, 106, 0.7);
    transform: translateY(-2px);
    outline: none;
}

.mph-heritage__thumb img {
    display: block;
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
}

.mph-heritage__closing {
    margin-top: clamp(28px, 5vw, 48px);
    padding: clamp(24px, 4vw, 40px);
    border-radius: 16px;
    border: 1px solid rgba(201, 162, 78, 0.35);
    background:
        linear-gradient(135deg, rgba(201, 162, 78, 0.12), transparent 45%),
        linear-gradient(180deg, #132a45, #0a1628);
}

.mph-heritage__closing-title {
    margin: 0 0 12px;
    font-family: Fraunces, "Times New Roman", serif;
    font-size: clamp(1.35rem, 2.4vw, 1.75rem);
    color: #f8f4ea;
}

.mph-heritage__closing p {
    margin: 0 0 20px;
    max-width: 40rem;
    line-height: 1.7;
    color: rgba(232, 237, 244, 0.78);
}

.mph-heritage__closing-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.mph-heritage .mph-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 18px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.92rem;
    text-decoration: none;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.mph-heritage .mph-btn--gold {
    background: linear-gradient(180deg, #d4b76a, #b8923a);
    color: #1a1408;
    border: 1px solid #c9a24e;
}

.mph-heritage .mph-btn--gold:hover {
    background: linear-gradient(180deg, #e0c57a, #c9a24e);
}

.mph-heritage .mph-btn--ghost {
    background: transparent;
    color: #e8edf4;
    border: 1px solid rgba(232, 237, 244, 0.35);
}

.mph-heritage .mph-btn--ghost:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(212, 183, 106, 0.55);
}

.mph-about-heritage-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 18px;
    padding: 10px 14px;
    border-radius: 10px;
    border: 1px solid rgba(201, 162, 78, 0.4);
    background: rgba(201, 162, 78, 0.1);
    color: #f0e6c8;
    font-weight: 700;
    font-size: 0.9rem;
    text-decoration: none;
    transition: background 0.15s ease, border-color 0.15s ease;
}

.mph-about-heritage-link:hover {
    background: rgba(201, 162, 78, 0.18);
    border-color: rgba(212, 183, 106, 0.7);
    color: #fff;
}

@media (max-width: 900px) {
    .mph-heritage__timeline {
        grid-template-columns: 1fr;
    }
    .mph-heritage-chapter__grid,
    .mph-heritage-chapter--image-left .mph-heritage-chapter__grid {
        grid-template-columns: 1fr;
    }
    .mph-heritage-chapter--image-left .mph-heritage-chapter__figure {
        order: 0;
    }
    .mph-heritage__strip-row {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 560px) {
    .mph-heritage__strip-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (prefers-reduced-motion: reduce) {
    .mph-heritage-chapter__photo,
    .mph-heritage__thumb {
        transition: none;
    }
    .mph-heritage-chapter__photo:hover,
    .mph-heritage__thumb:hover {
        transform: none;
    }
}


/* About page link into heritage story */
.mph-about-heritage-cta {
    margin: 28px 0 0;
    text-align: left;
}
.mph-about-heritage-cta .mph-btn {
    display: inline-flex;
}
