/* ============================================================
   ABOUT PAGE — about.css
   Loaded on the About Us page template.
   Contains BOTH layout (about-grid, about-text, etc. — copied
   from home.css which doesn't load on this page) AND the new
   team/stats/features component styles.
   ============================================================ */

/* ── 1. OUR STORY LAYOUT (mirrors home.css — not loaded here) ─ */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.about-text { min-width: 0; }

.about-img-stack { position: relative; }

.about-img-main {
    width: 100%;
    height: 420px;
    object-fit: cover;
    border-radius: var(--radius);
}

.about-img-inset {
    position: absolute;
    bottom: -24px;
    right: -24px;
    width: 200px;
    height: 160px;
    object-fit: cover;
    border-radius: var(--radius);
    border: 5px solid #fff;
    box-shadow: 0 8px 30px rgba(0,0,0,.15);
}

.about-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--hih-green-light);
    color: var(--hih-green-mid);
    font-size: 12px;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: var(--radius-full);
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-family: var(--font-body);
}

.about-text h2 {
    font-family: var(--font-heading);
    font-size: 34px;
    line-height: 1.2;
    color: var(--hih-dark);
    margin-bottom: 16px;
}

.about-text p {
    color: var(--hih-mid);
    font-size: 15px;
    line-height: 1.8;
    margin-bottom: 20px;
}

/* ── 2. STATS GRID ────────────────────────────────────────── */
.about-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border: 1px solid var(--hih-border);
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--hih-surface);
}

.about-stat-item {
    text-align: center;
    padding: 40px 24px;
    border-right: 1px solid var(--hih-border);
}

.about-stat-item:last-child { border-right: none; }

.about-stat-num {
    font-size: 42px;
    font-weight: 700;
    color: var(--hih-green);
    line-height: 1;
    font-family: var(--font-body);
    display: block;
}

.about-stat-label {
    font-size: 14px;
    color: var(--hih-mid);
    margin-top: 6px;
    font-weight: 500;
    display: block;
}

/* ── 3. FEATURES GRID (3-col on about page) ───────────────── */
.about-features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.about-features-grid .feature-item {
    text-align: center;
    padding: 32px 20px;
    background: var(--hih-surface);
    border: 1px solid var(--hih-border);
    border-radius: var(--radius);
    transition: all .25s;
}

.about-features-grid .feature-item:hover {
    box-shadow: var(--shadow);
    border-color: var(--hih-green-light);
    transform: translateY(-4px);
}

.about-features-grid .feature-icon {
    width: 60px;
    height: 60px;
    background: var(--hih-green-light);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    font-size: 28px;
}

.about-features-grid .feature-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--hih-dark);
    margin-bottom: 8px;
    font-family: var(--font-body);
}

.about-features-grid .feature-desc {
    font-size: 13.5px;
    color: var(--hih-mid);
    line-height: 1.6;
}

/* ── 4. TEAM GRID ─────────────────────────────────────────── */
.team-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.team-card {
    background: var(--hih-surface);
    border: 1px solid var(--hih-border);
    border-radius: var(--radius);
    padding: 32px 28px 28px;
    text-align: center;
    transition: transform .25s, box-shadow .25s, border-color .25s;
    position: relative;
    overflow: hidden;
}

.team-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--hih-green) 0%, var(--hih-green-mid) 100%);
    opacity: 0;
    transition: opacity .25s;
}

.team-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.team-card:hover::before { opacity: 1; }

.team-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, var(--hih-green) 0%, var(--hih-green-mid) 100%);
    margin: 0 auto 18px;
    overflow: hidden;
    flex-shrink: 0;
    border: 3px solid var(--hih-green-light);
}

.team-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    display: block;
}

.team-name {
    font-family: var(--font-body);
    font-size: 17px;
    font-weight: 700;
    color: var(--hih-dark);
    margin-bottom: 4px;
}

.team-role {
    font-size: 11px;
    font-weight: 700;
    color: var(--hih-green-mid);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 14px;
    display: block;
}

.team-bio {
    font-size: 14px;
    color: var(--hih-mid);
    line-height: 1.75;
    margin-bottom: 18px;
}

.team-social {
    display: flex;
    gap: 8px;
    justify-content: center;
}

.team-social a {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    border: 1px solid var(--hih-border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    color: var(--hih-mid);
    transition: all .2s;
}

.team-social a:hover {
    background: var(--hih-green);
    border-color: var(--hih-green);
    color: #fff;
    transform: translateY(-2px);
}

/* ── 5. RESPONSIVE ────────────────────────────────────────── */
@media (max-width: 1024px) {
    .about-grid { gap: 40px; }
    .team-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
    .about-features-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .about-grid { grid-template-columns: 1fr; gap: 28px; }
    .about-text { min-width: 0; width: 100%; }
    .about-text h2 { font-size: 26px; word-break: break-word; }
    .about-text p { word-break: break-word; overflow-wrap: break-word; }
    .about-img-stack { overflow: hidden; }
    .about-img-main { height: 240px; }
    .about-img-inset { display: none !important; }

    .about-stats-grid {
        grid-template-columns: 1fr;
        border: none;
        background: transparent;
        gap: 12px;
    }
    .about-stat-item {
        border: 1px solid var(--hih-border) !important;
        border-radius: var(--radius);
        padding: 28px 16px;
        background: var(--hih-surface);
    }
    .about-stat-num { font-size: 34px; }

    .team-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
    .team-card { padding: 24px 18px 20px; }
    .team-avatar { width: 68px; height: 68px; font-size: 18px; }

    .about-features-grid { grid-template-columns: 1fr 1fr; gap: 14px; }
    .about-features-grid .feature-item { padding: 24px 14px; }
}

@media (max-width: 600px) {
    .about-stats-grid { grid-template-columns: 1fr 1fr; }
    .about-stat-item { padding: 24px 12px; }
    .about-stat-num { font-size: 30px; }
}

@media (max-width: 480px) {
    .team-grid { grid-template-columns: 1fr; gap: 14px; }
    .about-stats-grid { grid-template-columns: 1fr; }
    .about-features-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
    .about-features-grid .feature-item { padding: 18px 10px; }
    .about-features-grid .feature-icon { width: 48px; height: 48px; font-size: 20px; margin-bottom: 10px; }
    .about-features-grid .feature-title { font-size: 13px; }
    .about-features-grid .feature-desc { font-size: 12px; }
}

/* ── 6. LEGACY ALIASES (keep .testi-* working elsewhere) ──── */
.testi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.testi-card { background: var(--hih-surface); border: 1px solid var(--hih-border); border-radius: var(--radius); padding: 28px 24px; transition: transform .25s, box-shadow .25s, border-color .25s; }
.testi-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.testi-author { display: flex; align-items: center; gap: 14px; }
.testi-avatar { width: 56px; height: 56px; min-width: 56px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 16px; font-weight: 700; color: #fff; background: linear-gradient(135deg, var(--hih-green) 0%, var(--hih-green-mid) 100%); flex-shrink: 0; overflow: hidden; }
.testi-avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; display: block; }
.testi-text { font-size: 14px; color: var(--hih-mid); line-height: 1.75; margin-top: 16px; }
.testi-social { display: flex; gap: 8px; margin-top: 16px; }
.testi-social a { width: 30px; height: 30px; border-radius: 8px; border: 1px solid var(--hih-border); display: flex; align-items: center; justify-content: center; font-size: 12px; color: var(--hih-mid); transition: all .2s; }
.testi-social a:hover { background: var(--hih-green); border-color: var(--hih-green); color: #fff; }
@media (max-width: 1024px) { .testi-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; } }
@media (max-width: 768px) { .testi-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; } .testi-card { padding: 22px 18px; } }
@media (max-width: 560px) { .testi-grid { grid-template-columns: 1fr; gap: 14px; } }
