/* =====================================================
   MIIMD — ABOUT PAGE
   Page-local stylesheet. Linked from views/about/index.php.
   Uses the global design tokens from miimd.css.
   ===================================================== */

/* -----------------------------------------------------
   Shared primitives
   ----------------------------------------------------- */
.ab-eyebrow {
    display: inline-block;
    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .12em;
    color: var(--primary);
    margin-bottom: .85rem;
}
.ab-eyebrow--light { color: rgba(255,255,255,.65); }

.ab-accent { color: var(--primary); }

.ab-section-head { text-align: center; max-width: 720px; margin: 0 auto 3rem; }
.ab-section-head h2 {
    font-size: 2rem;
    font-weight: 800;
    color: var(--dark);
    line-height: 1.28;
    margin-bottom: .9rem;
}
.ab-section-head p {
    font-size: .93rem;
    color: var(--gray-500);
    line-height: 1.75;
    margin-bottom: 0;
}

/* Image placeholders — every photo/illustration in the design */
.ab-ph {
    background: linear-gradient(135deg, var(--gray-50) 0%, var(--gray-100) 100%);
    border: 1px dashed var(--gray-300);
    border-radius: var(--radius-lg);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .55rem;
    color: var(--gray-400);
    text-align: center;
    padding: 1rem;
}
.ab-ph i { font-size: 2rem; color: var(--gray-300); }
.ab-ph span {
    font-size: .72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .08em;
}

/* -----------------------------------------------------
   1. HERO
   ----------------------------------------------------- */
.ab-hero {
    background: linear-gradient(160deg, #ffffff 0%, var(--gray-50) 55%, var(--primary-light) 100%);
    border-bottom: 1px solid var(--gray-200);
    padding: 3.5rem 0 4rem;
}
.ab-hero .breadcrumb-hero { background: transparent; padding: 0; margin: 0 0 1.5rem; font-size: .8rem; }

.ab-hero h1 {
    font-size: 2.7rem;
    font-weight: 800;
    color: var(--dark);
    line-height: 1.18;
    letter-spacing: -.02em;
    margin-bottom: 1.25rem;
}
.ab-hero__desc {
    font-size: .95rem;
    color: var(--gray-600);
    line-height: 1.8;
    max-width: 460px;
    margin-bottom: 2rem;
}
.ab-hero__actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.ab-hero__actions .btn { padding: .7rem 1.5rem; font-weight: 600; font-size: .9rem; }

/* Radial ecosystem hub */
.ab-hub {
    position: relative;
    width: 100%;
    max-width: 540px;
    margin: 0 auto;
    aspect-ratio: 1 / 1;
}
/* India map illustration sitting behind the ecosystem hub. Held back with
   opacity so the ring, spokes and node labels stay legible over it. */
.ab-hub__map {
    position: absolute;
    inset: 6%;
    border-radius: var(--radius-xl);
    background: url('../images/india-map.png') center / contain no-repeat;
    opacity: .22;
}
.ab-hub__ring {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 72%;
    height: 72%;
    transform: translate(-50%, -50%);
    border: 1px dashed var(--gray-300);
    border-radius: 50%;
}
.ab-hub__spoke {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 36%;
    height: 1px;
    background: linear-gradient(90deg, rgba(5,150,105,.35), rgba(5,150,105,.08));
    transform-origin: 0 50%;
}
.ab-hub__core {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 31%;
    height: 31%;
    border-radius: 50%;
    background: #fff;
    border: 2px solid var(--primary);
    box-shadow: 0 0 0 8px rgba(5,150,105,.07), var(--shadow-lg);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-weight: 800;
    font-size: .82rem;
    color: var(--dark);
    line-height: 1.3;
    padding: .5rem;
}
.ab-hub__core small {
    display: block;
    font-size: .68rem;
    font-weight: 600;
    color: var(--primary);
    margin-top: .2rem;
}
.ab-hub__node {
    position: absolute;
    transform: translate(-50%, -50%);
    width: 22%;
    text-align: center;
}
.ab-hub__node i {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    margin: 0 auto .4rem;
    border-radius: 50%;
    background: #fff;
    border: 1px solid var(--gray-200);
    box-shadow: var(--shadow-md);
    color: var(--primary);
    font-size: 1.05rem;
}
.ab-hub__node span {
    display: block;
    font-size: .68rem;
    font-weight: 600;
    color: var(--gray-600);
    line-height: 1.3;
}

/* Mobile fallback grid — the ring cannot survive narrow viewports */
.ab-hub-grid { display: none; }
.ab-hub-grid__core {
    text-align: center;
    font-weight: 800;
    color: var(--dark);
    border: 2px solid var(--primary);
    border-radius: var(--radius-lg);
    padding: 1rem;
    margin-bottom: 1.25rem;
    background: #fff;
}
.ab-hub-grid__core small { display: block; font-size: .7rem; color: var(--primary); font-weight: 600; }
.ab-hub-grid__item { text-align: center; margin-bottom: 1.25rem; }
.ab-hub-grid__item i {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    margin: 0 auto .4rem;
    border-radius: 50%;
    background: #fff;
    border: 1px solid var(--gray-200);
    box-shadow: var(--shadow-sm);
    color: var(--primary);
}
.ab-hub-grid__item span { font-size: .7rem; font-weight: 600; color: var(--gray-600); line-height: 1.3; }

/* -----------------------------------------------------
   2. WHY MIIMD EXISTS
   ----------------------------------------------------- */
.ab-problem { padding: 4.5rem 0; background: #fff; }

.ab-problem__media { position: relative; padding-bottom: 4.5rem; }
.ab-problem__img {
    width: 100%;
    height: 340px;
    object-fit: cover;
    border-radius: var(--radius-lg);
    display: block;
}

.ab-stat-strip {
    position: absolute;
    left: 1.25rem;
    right: 1.25rem;
    bottom: 0;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: .6rem;
}
.ab-stat-card {
    background: #fff;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    padding: .85rem .6rem;
    text-align: center;
}
.ab-stat-card i {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    margin: 0 auto .5rem;
    border-radius: var(--radius-sm);
    background: var(--primary-light);
    color: var(--primary);
    font-size: .78rem;
}
.ab-stat-card b {
    display: block;
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--dark);
    line-height: 1.1;
    margin-bottom: .3rem;
}
.ab-stat-card span {
    display: block;
    font-size: .64rem;
    color: var(--gray-500);
    line-height: 1.35;
}

.ab-problem h2 {
    font-size: 1.85rem;
    font-weight: 800;
    color: var(--dark);
    line-height: 1.3;
    margin-bottom: 1.1rem;
}
.ab-problem p { font-size: .92rem; color: var(--gray-600); line-height: 1.8; }

.ab-check-list { list-style: none; padding: 0; margin: 1.5rem 0; }
.ab-check-list li {
    display: flex;
    align-items: flex-start;
    gap: .7rem;
    font-size: .88rem;
    font-weight: 500;
    color: var(--gray-700);
    padding: .45rem 0;
}
.ab-check-list i { color: var(--primary); font-size: .95rem; margin-top: .15rem; flex-shrink: 0; }

/* -----------------------------------------------------
   3. WHAT IS MIIMD
   ----------------------------------------------------- */
/* Dark band, same treatment as .ab-values ("Our Principles"). Every text
   colour is restated because the defaults are tuned for a light background. */
.ab-what { padding: 4.5rem 0; background: var(--dark); }
.ab-what .ab-section-head h2 { color: #fff; }
.ab-what .ab-section-head p { color: rgba(255,255,255,.72); }
.ab-what .ab-section-head p strong { color: #fff; }
.ab-what .ab-eyebrow { color: rgba(255,255,255,.65); }
.ab-cap { text-align: center; margin-bottom: 1.5rem; }
.ab-cap__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    margin: 0 auto .9rem;
    border-radius: 50%;
    background: #fff;
    border: 1px solid var(--gray-200);
    box-shadow: var(--shadow-sm);
    color: var(--primary);
    font-size: 1.2rem;
    transition: var(--transition);
}
.ab-cap:hover .ab-cap__icon {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
    transform: translateY(-3px);
}
.ab-cap h6 { font-size: .88rem; font-weight: 700; color: #6ee7b7; margin-bottom: .4rem; }
.ab-cap p { font-size: .78rem; color: rgba(255,255,255,.7); line-height: 1.6; margin-bottom: 0; }

/* -----------------------------------------------------
   4. OUR ECOSYSTEM
   ----------------------------------------------------- */
.ab-eco {
    padding: 4.5rem 0;
    background: linear-gradient(180deg, var(--primary-light) 0%, #ffffff 100%);
}
.ab-chain {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: flex-start;
    gap: .25rem;
}
.ab-chain__item { width: 100px; text-align: center; position: relative; }
.ab-chain__item i {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    margin: 0 auto .55rem;
    border-radius: 50%;
    background: #fff;
    border: 1px solid var(--gray-200);
    box-shadow: var(--shadow-sm);
    color: var(--primary);
    font-size: 1.05rem;
    transition: var(--transition);
}
.ab-chain__item:hover i { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--primary); }
.ab-chain__item span { display: block; font-size: .7rem; font-weight: 600; color: var(--gray-600); line-height: 1.35; }
/* Connector rail between nodes */
.ab-chain__item:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 26px;
    left: calc(50% + 30px);
    width: calc(100% - 60px + .25rem);
    height: 1px;
    background: var(--gray-300);
}
.ab-eco__note {
    text-align: center;
    font-size: .88rem;
    color: var(--gray-500);
    margin: 2.5rem 0 0;
}

/* -----------------------------------------------------
   5. WHAT WE ARE BUILDING
   ----------------------------------------------------- */
.ab-build { padding: 4.5rem 0; background: #fff; }
.ab-build-card {
    height: 100%;
    background: #fff;
    border: 1px solid var(--gray-200);
    border-top: 3px solid var(--primary);
    border-radius: var(--radius-lg);
    padding: 1.5rem 1.4rem;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}
.ab-build-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.ab-build-card h5 {
    display: flex;
    align-items: center;
    gap: .55rem;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 1.1rem;
}
.ab-build-card h5 i { color: var(--primary); font-size: .95rem; }
.ab-build-card ul { list-style: none; padding: 0; margin: 0; }
.ab-build-card li {
    display: flex;
    align-items: flex-start;
    gap: .55rem;
    font-size: .84rem;
    color: var(--gray-600);
    line-height: 1.5;
    padding: .38rem 0;
}
.ab-build-card li i { color: var(--gray-400); font-size: .5rem; margin-top: .5rem; flex-shrink: 0; }

/* -----------------------------------------------------
   6. OUR PRINCIPLES
   ----------------------------------------------------- */
.ab-values { padding: 4.5rem 0; background: var(--dark); }
.ab-values .ab-section-head h2 { color: #fff; }
.ab-value {
    text-align: center;
    padding: 0 .5rem;
    border-left: 1px solid rgba(255,255,255,.1);
}
.ab-value:first-child { border-left: none; }
.ab-value i { font-size: 1.6rem; color: var(--success); margin-bottom: .9rem; display: block; }
.ab-value h6 {
    font-size: .82rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.4;
    margin-bottom: .55rem;
}
.ab-value p { font-size: .76rem; color: rgba(255,255,255,.55); line-height: 1.65; margin-bottom: 0; }

/* -----------------------------------------------------
   7. FOUNDER NOTE
   ----------------------------------------------------- */
.ab-founder { padding: 4.5rem 0; background: #fff; }
.ab-founder__ph { aspect-ratio: 3 / 4; }
.ab-founder h2 { font-size: 1.65rem; font-weight: 800; color: var(--dark); margin-bottom: 1.1rem; }
.ab-founder p { font-size: .88rem; color: var(--gray-600); line-height: 1.8; }
.ab-founder__sign { margin-top: 1.5rem; }
.ab-founder__sign b { display: block; font-size: .9rem; color: var(--dark); }
.ab-founder__sign span { font-size: .8rem; color: var(--gray-500); }

.ab-quote {
    position: relative;
    overflow: hidden;
    height: 100%;
    /* Journey illustration sits on top of the gradient, anchored to the bottom
       edge — the 6rem bottom padding below is the room reserved for it. */
    background:
        url('../images/founder-note-journey.png') center bottom / 100% auto no-repeat,
        linear-gradient(160deg, var(--gray-50) 0%, var(--primary-light) 100%);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    /* The artwork is 1932x685, so at 100% width its height is 35.5% of the
       box. Percentage padding resolves against that same width, so this
       reserve tracks the illustration exactly at any card width. */
    padding: 1.75rem 1.75rem calc(35.5% + 1.25rem);
}
.ab-quote > i {
    font-size: 1.6rem;
    color: var(--primary);
    opacity: .6;
    margin-bottom: .9rem;
    display: block;
}
.ab-quote p {
    position: relative;
    z-index: 1;
    font-size: 1rem;
    font-weight: 500;
    color: var(--gray-800);
    line-height: 1.75;
    margin-bottom: 0;
}
/* -----------------------------------------------------
   8. JOIN THE ECOSYSTEM
   ----------------------------------------------------- */
.ab-join { padding: 4.5rem 0; background: var(--gray-50); }
.ab-join .ab-chain { margin-bottom: 2.5rem; }
.ab-join__cta { text-align: center; }
.ab-join__cta .btn { padding: .8rem 2rem; font-weight: 600; }

/* -----------------------------------------------------
   RESPONSIVE
   ----------------------------------------------------- */
@media (max-width: 1199.98px) {
    .ab-chain__item { width: 92px; }
    .ab-chain__item:not(:last-child)::after { display: none; }
}

@media (max-width: 991.98px) {
    .ab-hero { padding: 2.5rem 0 3rem; }
    .ab-hero h1 { font-size: 2.15rem; }
    .ab-hero__desc { max-width: none; }
    .ab-hub { display: none; }
    .ab-hub-grid { display: block; margin-top: 2.5rem; }

    .ab-value { border-left: none; margin-bottom: 2rem; }
    .ab-founder__ph { aspect-ratio: 4 / 3; margin-bottom: 1.75rem; }
    .ab-quote { margin-top: 1.75rem; }
}

@media (max-width: 767.98px) {
    .ab-section-head { margin-bottom: 2.25rem; }
    .ab-section-head h2 { font-size: 1.5rem; }
    .ab-hero h1 { font-size: 1.8rem; }
    .ab-problem,
    .ab-what,
    .ab-eco,
    .ab-build,
    .ab-values,
    .ab-founder,
    .ab-join { padding: 3rem 0; }

    .ab-problem h2 { font-size: 1.4rem; }
    .ab-problem__media { padding-bottom: 0; margin-bottom: 2rem; }
    .ab-problem__img { height: 220px; }
    .ab-stat-strip {
        position: static;
        grid-template-columns: repeat(2, 1fr);
        margin-top: -1.75rem;
        padding: 0 .75rem;
    }
    .ab-chain__item { width: 30%; margin-bottom: 1.25rem; }
    .ab-build-card { margin-bottom: 1.25rem; }
}
