/* =========================================================
   NEW AFRICA INTERNATIONAL SCHOOL
   ABOUT PAGE
========================================================= */


/* =========================================================
   GLOBAL ABOUT
========================================================= */

.about-section {
    padding: 120px 0;
}

.about-section-label {
    margin-bottom: 16px;

    color: var(--blue);

    font-size: .75rem;
    font-weight: 800;

    text-transform: uppercase;

    letter-spacing: 2px;
}

.about-section-label.light {
    color: var(--gold);
}



/* =========================================================
   HERO
========================================================= */

.about-page-hero {
    position: relative;

    min-height: 690px;

    display: flex;
    align-items: flex-end;

    overflow: hidden;

    background: var(--navy-dark);

    color: white;
}


.about-page-hero-image {
    position: absolute;
    inset: 0;

    background:
        url("../assets/images/hero-school.jpg")
        center / cover
        no-repeat;

    transform: scale(1.02);
}


.about-page-hero-overlay {
    position: absolute;
    inset: 0;

    background:
        linear-gradient(
            90deg,
            rgba(4, 24, 42, .96) 0%,
            rgba(4, 24, 42, .83) 42%,
            rgba(4, 24, 42, .26) 100%
        );
}


.about-page-hero::after {
    content: "";

    position: absolute;

    width: 480px;
    height: 480px;

    right: -170px;
    top: -210px;

    border: 1px solid rgba(255,255,255,.16);

    border-radius: 50%;
}


.about-page-hero-inner {
    position: relative;
    z-index: 3;

    min-height: 690px;

    display: flex;
    align-items: flex-end;
    justify-content: space-between;

    gap: 70px;

    padding-bottom: 70px;
}


.about-hero-copy {
    max-width: 850px;
}


.about-breadcrumb {
    display: flex;
    align-items: center;

    gap: 11px;

    margin-bottom: 50px;

    color: rgba(255,255,255,.48);

    font-size: .7rem;

    font-weight: 600;
}


.about-breadcrumb a {
    color: rgba(255,255,255,.85);
}


.about-eyebrow {
    margin-bottom: 15px;

    color: var(--gold);

    font-size: .75rem;

    font-weight: 800;

    text-transform: uppercase;

    letter-spacing: 2.2px;
}


.about-page-hero h1 {
    max-width: 920px;

    margin-bottom: 27px;

    font-size: clamp(4.6rem, 7vw, 7.4rem);

    line-height: .93;

    letter-spacing: -6px;
}


.about-page-hero h1 span {
    display: block;

    color: var(--gold);
}


.about-hero-description {
    max-width: 620px;

    color: rgba(255,255,255,.7);

    font-size: 1rem;

    line-height: 1.8;
}


.about-hero-panel {
    width: 300px;

    flex: 0 0 300px;

    padding: 30px;

    border: 1px solid rgba(255,255,255,.15);

    border-radius: 16px;

    background: rgba(255,255,255,.08);

    backdrop-filter: blur(12px);
}


.about-hero-panel > span {
    display: block;

    margin-bottom: 18px;

    color: var(--gold);

    font-size: .64rem;

    font-weight: 800;

    text-transform: uppercase;

    letter-spacing: 1.5px;
}


.about-hero-panel strong {
    display: block;

    margin-bottom: 26px;

    font-size: 1.15rem;

    line-height: 1.5;
}


.about-hero-panel a {
    color: rgba(255,255,255,.72);

    font-size: .73rem;

    font-weight: 700;
}



/* =========================================================
   INTRO STRIP
========================================================= */

.about-intro-strip {
    background: white;

    border-bottom: 1px solid var(--border);
}


.about-intro-strip-grid {
    display: grid;

    grid-template-columns: 1fr 1fr 1fr 2fr;
}


.about-intro-strip-grid > div {
    min-height: 110px;

    padding: 28px 30px;

    border-right: 1px solid var(--border);

    display: flex;
    flex-direction: column;
    justify-content: center;
}


.about-intro-strip-grid > div:first-child {
    border-left: 1px solid var(--border);
}


.about-intro-strip-grid span {
    color: var(--blue);

    font-size: .66rem;

    font-weight: 800;
}


.about-intro-strip-grid p {
    margin-top: 4px;

    color: var(--navy);

    font-size: .95rem;

    font-weight: 700;
}


.intro-strip-location {
    align-items: flex-end;

    text-align: right;
}


.intro-strip-location small {
    color: var(--muted);

    font-size: .67rem;

    text-transform: uppercase;

    letter-spacing: 1.3px;
}


.intro-strip-location strong {
    margin-top: 3px;

    color: var(--navy);

    font-size: 1rem;
}



/* =========================================================
   OUR STORY
========================================================= */

.about-story {
    background: white;
}


.about-story-grid {
    display: grid;

    grid-template-columns: 1.05fr .95fr;

    gap: 110px;

    align-items: center;
}


.story-images {
    position: relative;

    min-height: 690px;
}


.story-image-main {
    position: absolute;

    left: 0;
    top: 0;

    width: 78%;
}


.story-image-main img {
    height: 600px;

    object-fit: cover;

    border-radius: 18px;
}


.story-image-small {
    position: absolute;

    right: 0;
    bottom: 0;

    width: 46%;

    padding: 9px;

    background: white;

    border-radius: 15px;

    box-shadow:
        0 24px 60px rgba(9, 40, 66, .16);
}


.story-image-small img {
    height: 285px;

    border-radius: 10px;

    object-fit: cover;
}


.story-motto {
    position: absolute;

    left: -25px;
    bottom: 65px;

    z-index: 4;

    width: 170px;
    height: 170px;

    padding: 30px;

    border-radius: 50%;

    display: flex;
    flex-direction: column;
    justify-content: center;

    background: var(--gold);

    color: var(--navy);

    box-shadow:
        0 20px 45px rgba(20, 45, 70, .18);
}


.story-motto span {
    margin-bottom: 6px;

    font-size: .62rem;

    font-weight: 800;

    text-transform: uppercase;

    letter-spacing: 1px;
}


.story-motto strong {
    font-size: 1.25rem;

    line-height: 1.15;
}


.story-content h2 {
    max-width: 610px;

    margin-bottom: 28px;

    color: var(--navy);

    font-size: clamp(3rem, 4.7vw, 4.6rem);

    line-height: 1.02;

    letter-spacing: -3.5px;
}


.story-content > p {
    margin-bottom: 18px;

    color: var(--muted);

    font-size: .92rem;

    line-height: 1.85;
}


.story-content .story-lead {
    color: #334c64;

    font-size: 1.08rem;

    font-weight: 600;
}


.story-signature {
    margin-top: 38px;

    display: flex;
    align-items: center;

    gap: 18px;
}


.story-signature > span {
    width: 50px;
    height: 2px;

    background: var(--blue);
}


.story-signature p {
    color: var(--navy);

    font-size: .82rem;

    font-weight: 700;

    line-height: 1.55;
}



/* =========================================================
   PURPOSE
========================================================= */

.about-purpose {
    background: var(--navy-dark);

    color: white;
}


.purpose-top {
    display: grid;

    grid-template-columns: 1.1fr .6fr;

    gap: 100px;

    align-items: flex-end;

    margin-bottom: 65px;
}


.purpose-top h2 {
    max-width: 700px;

    color: white;

    font-size: clamp(3rem, 5vw, 5rem);

    line-height: 1;

    letter-spacing: -4px;
}


.purpose-top > p {
    color: rgba(255,255,255,.55);

    font-size: .9rem;

    line-height: 1.8;
}


.purpose-layout {
    display: grid;

    grid-template-columns: 1.05fr .95fr;

    gap: 16px;
}


.purpose-main {
    position: relative;

    min-height: 500px;

    padding: 48px;

    overflow: hidden;

    border-radius: 18px;

    display: flex;
    flex-direction: column;
    justify-content: space-between;
}


.purpose-vision {
    background:
        linear-gradient(
            140deg,
            var(--blue-dark),
            var(--blue)
        );
}


.purpose-mission {
    background:
        linear-gradient(
            140deg,
            #143c61,
            #0c2943
        );

    border: 1px solid rgba(255,255,255,.09);
}


.purpose-main::after {
    content: "";

    position: absolute;

    width: 300px;
    height: 300px;

    border-radius: 50%;

    right: -100px;
    top: -130px;

    border: 55px solid rgba(255,255,255,.04);
}


.purpose-index {
    position: relative;

    z-index: 2;

    color: var(--gold);

    font-size: .72rem;

    font-weight: 800;
}


.purpose-title {
    margin-bottom: 17px;

    color: var(--gold);

    font-size: .67rem;

    font-weight: 800;

    text-transform: uppercase;

    letter-spacing: 1.6px;
}


.purpose-main h3 {
    max-width: 530px;

    margin-bottom: 22px;

    font-size: clamp(2rem, 3vw, 3rem);

    line-height: 1.15;

    letter-spacing: -1.7px;
}


.purpose-main div > p:last-child {
    max-width: 520px;

    color: rgba(255,255,255,.62);

    font-size: .86rem;

    line-height: 1.8;
}



/* =========================================================
   VALUES
========================================================= */

.about-values {
    background: #f6f9fc;
}


.values-intro {
    max-width: 850px;

    margin-bottom: 65px;
}


.values-intro h2 {
    color: var(--navy);

    font-size: clamp(3rem, 5vw, 5rem);

    line-height: 1.02;

    letter-spacing: -4px;
}


.values-list {
    border-top: 1px solid #dbe4eb;
}


.about-value {
    display: grid;

    grid-template-columns: 80px .8fr 1.2fr;

    gap: 40px;

    align-items: center;

    min-height: 150px;

    padding: 35px 5px;

    border-bottom: 1px solid #dbe4eb;

    transition:
        padding .3s,
        background .3s;
}


.about-value:hover {
    padding-left: 20px;
    padding-right: 20px;

    background: white;
}


.about-value > span {
    color: var(--blue);

    font-size: .7rem;

    font-weight: 800;
}


.about-value h3 {
    color: var(--navy);

    font-size: 1.55rem;

    letter-spacing: -.7px;
}


.about-value p {
    max-width: 520px;

    color: var(--muted);

    font-size: .87rem;

    line-height: 1.75;
}



/* =========================================================
   EXPERIENCE
========================================================= */

.about-experience {
    background: white;
}


.experience-heading {
    display: grid;

    grid-template-columns: 1.1fr .6fr;

    gap: 90px;

    align-items: flex-end;

    margin-bottom: 55px;
}


.experience-heading h2 {
    max-width: 750px;

    color: var(--navy);

    font-size: clamp(3rem, 5vw, 5rem);

    line-height: 1;

    letter-spacing: -4px;
}


.experience-heading > p {
    color: var(--muted);

    font-size: .9rem;

    line-height: 1.8;
}


.experience-gallery {
    display: grid;

    grid-template-columns: 1.35fr 1fr;

    grid-template-rows: 300px 300px;

    gap: 14px;
}


.experience-card {
    position: relative;

    overflow: hidden;

    border-radius: 15px;
}


.experience-large {
    grid-row: 1 / 3;
}


.experience-card img {
    width: 100%;
    height: 100%;

    object-fit: cover;

    transition: transform .65s ease;
}


.experience-card::after {
    content: "";

    position: absolute;
    inset: 0;

    background:
        linear-gradient(
            to top,
            rgba(4, 27, 47, .88),
            rgba(4, 27, 47, .05) 62%
        );
}


.experience-card:hover img {
    transform: scale(1.055);
}


.experience-overlay {
    position: absolute;

    z-index: 3;

    left: 30px;
    right: 30px;
    bottom: 28px;

    color: white;
}


.experience-overlay > span {
    color: var(--gold);

    font-size: .65rem;

    font-weight: 800;
}


.experience-overlay h3 {
    margin-top: 5px;

    font-size: 1.7rem;
}


.experience-overlay p {
    margin-top: 3px;

    color: rgba(255,255,255,.68);

    font-size: .78rem;
}



/* =========================================================
   HEADTEACHER
========================================================= */

.about-headteacher {
    background: #f6f9fc;
}


.about-headteacher-grid {
    display: grid;

    grid-template-columns: .95fr 1.05fr;

    gap: 110px;

    align-items: center;
}


.about-headteacher-photo {
    position: relative;

    padding: 35px 0 0 35px;
}


.headteacher-shape {
    position: absolute;

    left: 0;
    top: 0;

    width: 70%;
    height: 70%;

    border-radius: 18px;

    background: #e3f2fb;
}


.about-headteacher-photo img {
    position: relative;

    z-index: 2;

    height: 620px;

    border-radius: 18px;

    object-fit: cover;
}


.headteacher-photo-caption {
    position: absolute;

    z-index: 4;

    right: -30px;
    bottom: 40px;

    width: 240px;

    padding: 26px;

    border-radius: 13px;

    background: var(--navy);

    color: white;

    box-shadow:
        0 20px 45px rgba(7, 32, 55, .2);
}


.headteacher-photo-caption span {
    display: block;

    margin-bottom: 6px;

    color: var(--gold);

    font-size: .62rem;

    font-weight: 800;

    text-transform: uppercase;

    letter-spacing: 1.4px;
}


.headteacher-photo-caption strong {
    font-size: 1rem;

    line-height: 1.5;
}


.about-headteacher-content h2 {
    margin-bottom: 30px;

    color: var(--navy);

    font-size: clamp(3rem, 4.8vw, 4.6rem);

    line-height: 1.02;

    letter-spacing: -3.5px;
}


.about-headteacher-content blockquote {
    margin-bottom: 25px;

    padding-left: 24px;

    border-left: 3px solid var(--gold);

    color: #334d65;

    font-size: 1.05rem;

    font-weight: 600;

    line-height: 1.8;
}


.about-headteacher-content > p {
    color: var(--muted);

    font-size: .9rem;

    line-height: 1.85;
}


.headteacher-details {
    display: flex;
    align-items: center;

    gap: 18px;

    margin-top: 35px;
}


.headteacher-details > span {
    width: 48px;
    height: 2px;

    background: var(--blue);
}


.headteacher-details div {
    display: flex;

    flex-direction: column;
}


.headteacher-details strong {
    color: var(--navy);

    font-size: .9rem;
}


.headteacher-details small {
    color: var(--muted);

    font-size: .68rem;
}



/* =========================================================
   PHILOSOPHY
========================================================= */

.about-philosophy {
    position: relative;

    min-height: 640px;

    display: flex;
    align-items: center;

    overflow: hidden;

    color: white;
}


.philosophy-image {
    position: absolute;
    inset: 0;

    background:
        url("../assets/images/trip.jpg")
        center / cover
        no-repeat;
}


.philosophy-overlay {
    position: absolute;
    inset: 0;

    background:
        linear-gradient(
            90deg,
            rgba(5, 28, 48, .93),
            rgba(5, 28, 48, .68),
            rgba(5, 28, 48, .25)
        );
}


.philosophy-content {
    position: relative;

    z-index: 3;
}


.philosophy-content > p:first-child {
    margin-bottom: 18px;

    color: var(--gold);

    font-size: .72rem;

    font-weight: 800;

    text-transform: uppercase;

    letter-spacing: 2px;
}


.philosophy-content h2 {
    max-width: 850px;

    margin-bottom: 30px;

    font-size: clamp(3.5rem, 6vw, 6rem);

    line-height: .98;

    letter-spacing: -4.5px;
}


.philosophy-description {
    max-width: 570px;

    color: rgba(255,255,255,.68);

    font-size: 1rem;

    line-height: 1.8;
}



/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 1050px) {

    .about-page-hero-inner {
        align-items: center;
    }


    .about-hero-panel {
        display: none;
    }


    .about-story-grid,
    .about-headteacher-grid {
        gap: 65px;
    }


    .purpose-top,
    .experience-heading {
        grid-template-columns: 1fr .7fr;

        gap: 50px;
    }

}



@media (max-width: 850px) {

    .about-section {
        padding: 90px 0;
    }


    .about-page-hero,
    .about-page-hero-inner {
        min-height: 620px;
    }


    .about-intro-strip-grid {
        grid-template-columns:
            repeat(3, 1fr);
    }


    .intro-strip-location {
        grid-column: 1 / 4;

        align-items: flex-start;

        text-align: left;
    }


    .about-story-grid,
    .about-headteacher-grid {
        grid-template-columns: 1fr;

        gap: 70px;
    }


    .story-images {
        max-width: 680px;
    }


    .purpose-top,
    .experience-heading {
        grid-template-columns: 1fr;

        gap: 25px;
    }


    .purpose-layout {
        grid-template-columns: 1fr;
    }


    .about-value {
        grid-template-columns: 55px 1fr;

        gap: 25px;
    }


    .about-value p {
        grid-column: 2;
    }


    .experience-gallery {
        grid-template-columns: 1fr 1fr;

        grid-template-rows: 480px 300px;
    }


    .experience-large {
        grid-column: 1 / 3;

        grid-row: auto;
    }


    .about-headteacher-photo {
        max-width: 650px;
    }

}



@media (max-width: 650px) {

    .about-page-hero {
        min-height: 590px;
    }


    .about-page-hero-inner {
        min-height: 590px;

        padding-bottom: 55px;
    }


    .about-page-hero-overlay {
        background:
            linear-gradient(
                rgba(4,24,42,.84),
                rgba(4,24,42,.86)
            );
    }


    .about-page-hero-image {
        background-position: 60% center;
    }


    .about-breadcrumb {
        margin-bottom: 38px;
    }


    .about-page-hero h1 {
        font-size: 3.6rem;

        line-height: .96;

        letter-spacing: -3.5px;
    }


    .about-hero-description {
        font-size: .9rem;
    }


    .about-intro-strip-grid {
        grid-template-columns: 1fr 1fr;
    }


    .about-intro-strip-grid > div {
        min-height: 90px;

        padding: 22px;
    }


    .about-intro-strip-grid > div:nth-child(3) {
        grid-column: 1 / 2;
    }


    .intro-strip-location {
        grid-column: 2 / 3;

        align-items: flex-start;

        text-align: left;
    }


    .story-images {
        min-height: 520px;
    }


    .story-image-main {
        width: 90%;
    }


    .story-image-main img {
        height: 470px;
    }


    .story-image-small {
        width: 47%;
    }


    .story-image-small img {
        height: 195px;
    }


    .story-motto {
        left: -8px;
        bottom: 20px;

        width: 125px;
        height: 125px;

        padding: 22px;
    }


    .story-motto strong {
        font-size: .94rem;
    }


    .story-content h2,
    .purpose-top h2,
    .values-intro h2,
    .experience-heading h2,
    .about-headteacher-content h2 {
        font-size: 2.65rem;

        letter-spacing: -2.5px;
    }


    .purpose-main {
        min-height: 430px;

        padding: 32px 27px;
    }


    .purpose-main h3 {
        font-size: 2rem;
    }


    .values-intro {
        margin-bottom: 40px;
    }


    .about-value {
        grid-template-columns: 40px 1fr;

        padding: 28px 0;
    }


    .about-value:hover {
        padding-left: 0;
        padding-right: 0;
    }


    .about-value h3 {
        font-size: 1.25rem;
    }


    .experience-gallery {
        display: flex;

        flex-direction: column;
    }


    .experience-card,
    .experience-large {
        height: 390px;
    }


    .about-headteacher-photo {
        padding: 20px 0 0 20px;
    }


    .about-headteacher-photo img {
        height: 480px;
    }


    .headteacher-photo-caption {
        right: -5px;
        bottom: 25px;

        width: 200px;
    }


    .about-philosophy {
        min-height: 550px;
    }


    .philosophy-overlay {
        background: rgba(5,28,48,.78);
    }


    .philosophy-content h2 {
        font-size: 3rem;

        letter-spacing: -3px;
    }

}



@media (max-width: 430px) {

    .about-page-hero h1 {
        font-size: 3.1rem;
    }


    .about-intro-strip-grid {
        grid-template-columns: 1fr 1fr;
    }


    .about-intro-strip-grid > div {
        border-left: 0;
    }


    .story-content h2,
    .purpose-top h2,
    .values-intro h2,
    .experience-heading h2,
    .about-headteacher-content h2 {
        font-size: 2.35rem;
    }


    .story-image-small {
        width: 55%;
    }


    .headteacher-photo-caption {
        width: 180px;

        padding: 20px;
    }


    .philosophy-content h2 {
        font-size: 2.65rem;
    }

}