/* ============================================================
   UNEECO UGANDA — ABOUT PAGE SPECIFIC STYLES
   Extends: styles.css + responsive.css
   Scope: about.html only
   ============================================================ */


/* ══════════════════════════════════════════════
   ABOUT HERO
   ══════════════════════════════════════════════ */
.about-hero {
    position: relative;
    min-height: 62vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background:
        radial-gradient(circle at 15% 60%, rgba(11, 26, 86, 0.96) 0%, rgba(11, 26, 86, 0.7) 35%, rgba(11, 26, 86, 0.1) 65%, transparent 80%),
        linear-gradient(120deg, rgba(11, 26, 86, 0.4) 0%, rgba(11, 26, 86, 0.05) 50%, transparent 100%),
        url('../images/about.webp') center center / cover no-repeat;

    /* Fallback gradient when no bg image */
    background-color: var(--primary-dark);
}

/* Dark overlay for text legibility */
.about-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.22) 0%, rgba(0,0,0,0.06) 40%, transparent 100%);
    pointer-events: none;
    z-index: 1;
}

/* Subtle grid texture */
.about-hero-grid {
    position: absolute;
    inset: 0;
    background-image:
        repeating-linear-gradient(0deg, transparent, transparent 60px, rgba(255,255,255,0.015) 60px, rgba(255,255,255,0.015) 61px),
        repeating-linear-gradient(90deg, transparent, transparent 60px, rgba(255,255,255,0.015) 60px, rgba(255,255,255,0.015) 61px);
    z-index: 1;
}

/* Floating year badge — desktop decoration */
.about-hero-badge {
    width: 220px;
    height: 220px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.18);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
    animation: heroRotate 18s linear infinite;
}

.about-hero-badge::before {
    content: '';
    position: absolute;
    inset: 12px;
    border-radius: 50%;
    border: 1.5px dashed rgba(255, 255, 255, 0.14);
}

.about-hero-badge-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    animation: heroRotate 18s linear infinite reverse; /* counter-rotate text */
}

.badge-year {
    font-family: poppins, sans-serif;
    font-size: 3rem;
    font-weight: 700;
    color: #fff;
    line-height: 1;
}

.badge-divider {
    display: block;
    width: 40px;
    height: 1.5px;
    background: rgba(255, 255, 255, 0.35);
    margin: 4px 0;
}

.badge-label {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.7);
}

@keyframes heroRotate {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}


/* ══════════════════════════════════════════════
   STAT STRIP
   ══════════════════════════════════════════════ */
.about-stat-strip {
    background: var(--accent-pale);
    padding: 60px 0;
    border-bottom: 1px solid var(--border);
}

/* Inherits .stat-item, .stat-num, .stat-label, .stat-divider from styles.css */


/* ══════════════════════════════════════════════
   OUR STORY SECTION
   ══════════════════════════════════════════════ */
.about-story-section {
    padding: 90px 0 70px;
    background: var(--warm-white);
}

.story-block {
    padding: 0;
}

.story-text {
    font-size: 1rem;
    color: var(--text-muted);
    line-height: 1.85;
    margin-bottom: 1.5rem;
}

.story-text:last-child {
    margin-bottom: 0;
}

/* Pull quote */
.about-pullquote {
    position: relative;
    background: linear-gradient(135deg, var(--accent-pale) 0%, rgba(232, 238, 245, 0.5) 100%);
    border-left: 4px solid var(--primary-mid);
    border-radius: 0 16px 16px 0;
    padding: 36px 48px 36px 56px;
    margin: 0;
    overflow: hidden;
}

.about-pullquote::after {
    content: '';
    position: absolute;
    right: -20px;
    top: -20px;
    width: 120px;
    height: 120px;
    background: rgba(93, 97, 158, 0.06);
    border-radius: 50%;
}

.about-pullquote p {
    font-family: poppins, sans-serif;
    font-size: 1.25rem;
    font-style: italic;
    color: var(--primary-dark);
    line-height: 1.65;
    margin: 0;
}

.about-quote-icon {
    position: absolute;
    left: 20px;
    top: 28px;
    color: var(--primary-mid);
    opacity: 0.25;
    font-size: 1.6rem;
}


/* ══════════════════════════════════════════════
   WHO WE ARE — PILLAR CARDS
   ══════════════════════════════════════════════ */
.who-we-are-section {
    padding: 90px 0;
    background: linear-gradient(180deg, var(--cream) 0%, var(--warm-white) 100%);
}

.pillar-card {
    border-radius: 20px;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: transform 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                box-shadow 0.35s ease;
    border: 1px solid var(--border);
}

.pillar-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 28px 60px rgba(11, 26, 86, 0.12);
}

.pillar-card-top {
    padding: 40px 36px 32px;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

/* Dark navy header for all cards (brand colour) */
.pillar-card--mission .pillar-card-top { background: var(--primary-dark); }
.pillar-card--promise .pillar-card-top { background: var(--primary-mid); }
.pillar-card--deliver .pillar-card-top { background: var(--logo-dark-blue); }

.pillar-icon {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: #fff;
}

.pillar-title {
    font-family: poppins, sans-serif;
    font-size: 1.3rem;
    font-weight: 600;
    color: #fff;
    margin: 0;
    line-height: 1.3;
}

.pillar-body {
    background: #fff;
    padding: 28px 36px;
    flex: 1;
}

.pillar-body p {
    font-size: 0.92rem;
    color: var(--text-muted);
    line-height: 1.75;
    margin: 0;
}


/* ══════════════════════════════════════════════
   WHY VISUAL CARD — badge additions
   ══════════════════════════════════════════════ */
.why-card-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}

.why-badge {
    background: var(--accent-pale);
    color: var(--primary-mid);
    border: 1px solid var(--border);
    border-radius: 100px;
    padding: 5px 14px;
    font-size: 0.78rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}


/* ══════════════════════════════════════════════
   VALUES — FOUR CARDS
   ══════════════════════════════════════════════ */
.values-section {
    padding: 90px 0;
    background: var(--warm-white);
}

.value-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 36px 28px;
    text-align: center;
    height: 100%;
    transition: all 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
}

.value-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-mid), var(--primary-light));
    transform: scaleX(0);
    transition: transform 0.35s ease;
}

.value-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 50px rgba(11, 26, 86, 0.09);
    border-color: rgba(61, 82, 120, 0.3);
}

.value-card:hover::before {
    transform: scaleX(1);
}

.value-icon {
    width: 60px;
    height: 60px;
    background: var(--accent-pale);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: var(--primary-mid);
    margin: 0 auto 1.25rem;
    transition: background 0.3s, color 0.3s;
}

.value-card:hover .value-icon {
    background: var(--primary-mid);
    color: #fff;
}

.value-card h5 {
    font-weight: 600;
    color: var(--primary-dark);
    margin-bottom: 0.65rem;
    font-size: 1.05rem;
}

.value-card p {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin: 0;
}


/* ══════════════════════════════════════════════
   CTA SECTION (reused from main; kept consistent)
   ══════════════════════════════════════════════ */
.cta-section {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-mid) 100%);
    padding: 90px 0;
    color: #fff;
}

.cta-section .section-tag {
    color: rgba(255, 255, 255, 0.6);
    border-color: rgba(255, 255, 255, 0.2);
}

.cta-section .section-title {
    color: #fff;
}

.cta-section .section-lead {
    color: rgba(255, 255, 255, 0.75);
}

/* Override button colours on dark background */
.cta-section .btn-primary-green {
    background: #fff;
    color: var(--primary-dark);
}

.cta-section .btn-primary-green:hover {
    background: var(--cream);
    color: var(--primary-dark);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

.cta-section .btn-outline-green {
    border-color: rgba(255, 255, 255, 0.5);
    color: #fff;
    background: transparent;
}

.cta-section .btn-outline-green:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.8);
    color: #fff;
}


/* ══════════════════════════════════════════════
   ABOUT PAGE — RESPONSIVE OVERRIDES
   ══════════════════════════════════════════════ */
@media (max-width: 991.98px) {
    .about-hero {
        min-height: 52vh;
        padding: 30px 0 40px;
    }

    .about-pullquote {
        padding: 28px 32px 28px 44px;
    }

    .about-pullquote p {
        font-size: 1.1rem;
    }

    .pillar-card-top {
        padding: 32px 28px 24px;
    }

    .pillar-body {
        padding: 24px 28px;
    }
}

@media (max-width: 767.98px) {
    .about-story-section,
    .who-we-are-section,
    .values-section {
        padding: 70px 0;
    }

    .about-pullquote {
        padding: 24px 24px 24px 40px;
    }

    .about-pullquote p {
        font-size: 1rem;
    }

    .cta-section {
        padding: 70px 0;
    }
}

@media (max-width: 575.98px) {
    .about-hero {
        min-height: 48vh;
    }

    .about-stat-strip {
        padding: 40px 0;
    }

    .about-story-section,
    .who-we-are-section,
    .values-section {
        padding: 55px 0;
    }

    .story-text {
        font-size: 0.92rem;
    }

    .about-pullquote {
        padding: 20px 20px 20px 36px;
    }

    .about-pullquote p {
        font-size: 0.95rem;
    }

    .pillar-card-top {
        padding: 28px 24px 20px;
    }

    .pillar-body {
        padding: 20px 24px;
    }

    .value-card {
        padding: 28px 22px;
    }

    .cta-section {
        padding: 55px 0;
    }
}