/* ============================================
   QALB WELFARE FOUNDATION — ABOUT PAGE STYLES
   Load this AFTER style.css, only on about.html:
     <link rel="stylesheet" href="../style.css" />
     <link rel="stylesheet" href="about.css" />
   ============================================ */

section {
    padding: var(--space-6) var(--space-3);
}

section>* {
    max-width: var(--max-width);
    margin-left: auto;
    margin-right: auto;
}

/* ---------- Hero (3-image crossfade) ---------- */

.about-hero {
    position: relative;
    overflow: hidden;
    height: min(72vh, 640px);
    min-height: 420px;
    padding: 0;
    display: flex;
    align-items: flex-end;
}

.about-hero-slides {
    position: absolute;
    inset: 0;
}

.about-hero-slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1.2s ease;
}

.about-hero-slide.is-active {
    opacity: 1;
}

.about-hero-scrim {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg,
            rgba(0, 0, 0, 0.35) 0%,
            rgba(0, 0, 0, 0.25) 35%,
            rgba(17, 17, 17, 0.85) 100%);
}

.about-hero-inner {
    position: relative;
    max-width: 46rem;
    width: 100%;
    margin: 0 auto;
    padding: var(--space-5) var(--space-3);
    text-align: center;
}

.about-hero-inner .hero-urdu {
    font-family: var(--font-urdu);
    font-size: 1.3rem;
    color: var(--marigold);
    margin-bottom: var(--space-1);
}

.about-hero-inner h1 {
    color: var(--paper);
    font-size: clamp(2rem, 4.2vw, 3.1rem);
}

.about-hero-sub {
    margin: var(--space-2) auto 0;
    max-width: 42ch;
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.85);
}

.about-hero-crumb {
    margin-top: var(--space-3);
    font-size: 0.88rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.7);
}

.about-hero-crumb a {
    color: rgba(255, 255, 255, 0.9);
}

.about-hero-crumb a:hover {
    color: var(--marigold);
}

.about-hero-crumb span {
    margin: 0 0.4rem;
    color: rgba(255, 255, 255, 0.45);
}

/* ---------- Our story (text + photo, two columns) ---------- */

.story {
    background: var(--paper);
}

.story-grid {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: var(--space-5);
    align-items: center;
}

.story-text h2 {
    font-size: clamp(1.7rem, 2.6vw, 2.2rem);
    margin-bottom: var(--space-2);
}

.story-text p {
    font-size: 1.02rem;
    margin-bottom: var(--space-2);
}

.story-text p:last-child {
    margin-bottom: 0;
}

.story-media {
    position: relative;
}

.story-media img {
    width: 100%;
    height: 360px;
    object-fit: cover;
    border-radius: var(--radius-md);
}

.story-badge {
    position: absolute;
    right: var(--space-2);
    bottom: calc(var(--space-3) * -1);
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    box-shadow: 0 16px 34px rgba(17, 17, 17, 0.18);
    padding: var(--space-2) var(--space-3);
    text-align: center;
}

.story-badge strong {
    display: block;
    font-family: var(--font-display);
    font-size: 1.7rem;
    color: var(--ink);
    line-height: 1;
}

.story-badge span {
    font-size: 0.78rem;
    color: var(--ink-soft);
}

/* ---------- Leadership ---------- */

.leader-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-3);
}

.leader-card {
    background: #fff;
    border-top: 3px solid var(--brick);
    border-radius: var(--radius-sm);
    padding: var(--space-4) var(--space-3);
    text-align: center;
}

.leader-photo {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto var(--space-2);
}

.leader-card h3 {
    font-size: 1.2rem;
    margin-bottom: 0.2rem;
}

.leader-role {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--marigold);
    text-transform: none;
    margin-bottom: var(--space-2);
}

.leader-card p:not(.leader-role) {
    font-size: 0.95rem;
}

/* ---------- Behind this website ---------- */

.credits {
    background: var(--paper-deep);
}

.credit-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-3);
    max-width: 56rem;
}

.credit-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    padding: var(--space-4) var(--space-3);
    text-align: center;
}

.credit-photo {
    width: 92px;
    height: 92px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto var(--space-2);
    border: 3px solid var(--paper);
    box-shadow: 0 0 0 3px var(--brick-tint);
}

.credit-card h3 {
    font-size: 1.15rem;
    margin-bottom: 0.2rem;
}

.credit-role {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--brick);
    margin-bottom: var(--space-2);
}

.credit-card p:not(.credit-role) {
    font-size: 0.95rem;
}

.credit-card a {
    color: var(--teal);
    font-weight: 700;
}

.credit-card a:hover {
    color: var(--brick);
}

/* ---------- Responsive ---------- */

@media (max-width: 960px) {
    .leader-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 800px) {
    .story-grid {
        grid-template-columns: 1fr;
    }

    .story-media {
        order: -1;
    }

    .story-badge {
        right: var(--space-2);
        bottom: var(--space-2);
    }
}

@media (max-width: 700px) {
    .credit-grid {
        grid-template-columns: 1fr;
    }

    .about-hero {
        height: min(80vh, 560px);
    }
}

@media (max-width: 600px) {
    .leader-grid {
        grid-template-columns: 1fr;
    }

    section {
        padding: var(--space-5) var(--space-2);
    }
}