/* =========================================================
   BELAIR HILL JUNIOR SCHOOL
   IDENTITY SECTION
========================================================= */


/* =========================================================
   IDENTITY SECTION
========================================================= */

.identity {
    position: relative;
    padding: 110px 0 120px;
    background:
        linear-gradient(
            180deg,
            #f1fbfb 0%,
            #ffffff 52%,
            #fffaf6 100%
        );
    overflow: hidden;
}


/* =========================================================
   BACKGROUND DETAIL
========================================================= */

.identity::before {
    content: "";
    position: absolute;

    width: 420px;
    height: 420px;

    top: -180px;
    right: -150px;

    border-radius: 50%;

    background:
        radial-gradient(
            circle,
            rgba(7, 151, 166, 0.08),
            transparent 70%
        );

    pointer-events: none;
}


.identity::after {
    content: "";
    position: absolute;

    width: 360px;
    height: 360px;

    bottom: -180px;
    left: -140px;

    border-radius: 50%;

    background:
        radial-gradient(
            circle,
            rgba(201, 95, 67, 0.07),
            transparent 70%
        );

    pointer-events: none;
}


/* =========================================================
   CONTAINER
========================================================= */

.identity-container {
    position: relative;
    z-index: 2;
}


/* =========================================================
   SECTION HEADING
========================================================= */

.identity-heading {
    max-width: 820px;
    margin: 0 auto 55px;
    text-align: center;
}


.identity-heading .section-label {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    margin-bottom: 14px;

    color: var(--terracotta, #c95f43);

    font-size: 13px;
    font-weight: 800;

    letter-spacing: 0.16em;
    text-transform: uppercase;
}


.identity-heading h2 {
    margin: 0 0 18px;

    color: var(--teal-dark, #05727e);

    font-family: var(
        --font-heading,
        "Playfair Display",
        Georgia,
        serif
    );

    font-size: clamp(34px, 4vw, 52px);
    line-height: 1.1;
    font-weight: 700;
}


.identity-heading p {
    max-width: 720px;
    margin: 0 auto;

    color: var(--muted, #718087);

    font-size: 16px;
    line-height: 1.8;
}


/* =========================================================
   THREE-CARD GRID
========================================================= */

.identity-grid {
    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 24px;

    margin-bottom: 28px;
}


/* =========================================================
   STANDARD IDENTITY CARD
========================================================= */

.identity-card {
    position: relative;

    min-height: 300px;

    padding: 38px 34px 40px;

    display: flex;
    flex-direction: column;
    justify-content: flex-start;

    overflow: hidden;

    border: 1px solid rgba(7, 151, 166, 0.13);

    border-radius: 12px;

    background: #ffffff;

    box-shadow:
        0 16px 40px rgba(36, 50, 56, 0.07);

    transition:
        transform 0.35s ease,
        box-shadow 0.35s ease,
        border-color 0.35s ease;
}


.identity-card::before {
    content: "";

    position: absolute;

    top: 0;
    left: 0;
    right: 0;

    height: 5px;

    background:
        linear-gradient(
            90deg,
            var(--terracotta, #c95f43),
            #e18a68,
            var(--terracotta, #c95f43)
        );

    background-size: 200% 100%;

    animation: identityAccentShimmer 5s linear infinite;
}


@keyframes identityAccentShimmer {

    0% {
        background-position: 0% 50%;
    }

    100% {
        background-position: 200% 50%;
    }

}


.identity-card:hover {
    transform: translateY(-6px);

    border-color:
        rgba(7, 151, 166, 0.24);

    box-shadow:
        0 22px 48px rgba(36, 50, 56, 0.11);
}


/* =========================================================
   CARD LABEL
========================================================= */

.identity-label {
    display: inline-flex;
    align-items: center;

    width: fit-content;

    margin-bottom: 24px;

    padding: 8px 14px;

    border-radius: 5px;

    background:
        linear-gradient(
            135deg,
            var(--terracotta, #c95f43),
            var(--terracotta-dark, #a94a34)
        );

    color: #ffffff;

    font-size: 11px;
    font-weight: 800;

    line-height: 1.2;

    letter-spacing: 0.12em;
    text-transform: uppercase;

    box-shadow:
        0 6px 16px rgba(201, 95, 67, 0.18);
}


/* =========================================================
   MOTTO
========================================================= */

.motto-card {
    background:
        linear-gradient(
            145deg,
            #fff1e8 0%,
            #ffffff 80%
        );
}


.motto-text {
    max-width: 430px;

    color: #35634A;

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size: 27px;
    font-weight: 600;

    font-style: italic;

    line-height: 1.45;

    letter-spacing: 0.2px;
}


/* =========================================================
   MISSION / VISION TEXT
========================================================= */

.identity-card p {
    margin: 0;

    color: #35634A;

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size: 16px;

    font-weight: 500;

    line-height: 1.75;

    letter-spacing: 0.15px;
}


/* =========================================================
   MISSION CARD
========================================================= */

.mission-card {
    background:
        linear-gradient(
            145deg,
            #ffffff 0%,
            #f8fcfc 100%
        );
}


/* =========================================================
   VISION CARD
========================================================= */

.vision-card {
    background:
        linear-gradient(
            145deg,
            #ffffff 0%,
            #fffaf6 100%
        );
}


/* =========================================================
   CORE VALUES CARD
========================================================= */

.core-values-card {
    position: relative;

    padding: 42px 44px 48px;

    overflow: hidden;

    border:
        1px solid rgba(7, 151, 166, 0.14);

    border-radius: 12px;

    background:
        linear-gradient(
            145deg,
            #ffffff 0%,
            #f8fcfc 55%,
            #fffaf6 100%
        );

    box-shadow:
        0 18px 46px rgba(36, 50, 56, 0.08);

    transition:
        box-shadow 0.35s ease,
        transform 0.35s ease;
}


.core-values-card::before {
    content: "";

    position: absolute;

    top: 0;
    left: 0;
    right: 0;

    height: 5px;

    background:
        linear-gradient(
            90deg,
            var(--teal, #0797a6),
            var(--terracotta, #c95f43),
            var(--teal, #0797a6)
        );

    background-size: 200% 100%;

    animation: coreValuesAccent 6s linear infinite;
}


@keyframes coreValuesAccent {

    0% {
        background-position: 0% 50%;
    }

    100% {
        background-position: 200% 50%;
    }

}


.core-values-card:hover {
    transform: translateY(-3px);

    box-shadow:
        0 24px 55px rgba(36, 50, 56, 0.11);
}


/* =========================================================
   CORE VALUES HEADING
========================================================= */

.core-values-heading {
    text-align: center;

    margin-bottom: 34px;
}


.core-values-heading .identity-label {
    margin-left: auto;
    margin-right: auto;

    margin-bottom: 18px;
}


.core-values-heading h3 {
    margin: 0;

    color: var(--teal-dark, #05727e);

    font-family:
        var(
            --font-heading,
            "Playfair Display",
            Georgia,
            serif
        );

    font-size: clamp(24px, 3vw, 34px);

    line-height: 1.2;

    font-weight: 700;
}


/* =========================================================
   CORE VALUES GRID
========================================================= */

.core-values-grid {
    display: grid;

    grid-template-columns:
        repeat(4, minmax(0, 1fr));

    gap: 18px;
}


/* =========================================================
   INDIVIDUAL CORE VALUE
========================================================= */

.core-value-item {
    position: relative;

    min-height: 170px;

    padding: 26px 23px 25px;

    border:
        1px solid rgba(7, 151, 166, 0.12);

    border-radius: 8px;

    background: rgba(255, 255, 255, 0.82);

    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease,
        border-color 0.3s ease;
}


.core-value-item::after {
    content: "";

    position: absolute;

    top: 18px;
    left: 0;

    width: 3px;
    height: 44px;

    border-radius: 0 4px 4px 0;

    background:
        var(--terracotta, #c95f43);
}


.core-value-item:hover {
    transform: translateY(-4px);

    border-color:
        rgba(7, 151, 166, 0.24);

    box-shadow:
        0 14px 28px rgba(36, 50, 56, 0.08);
}


.core-value-number {
    display: block;

    margin-bottom: 11px;

    color:
        var(--terracotta, #c95f43);

    font-size: 11px;

    font-weight: 800;

    letter-spacing: 0.13em;

    text-transform: uppercase;
}


.core-value-item h4 {
    margin: 0 0 10px;

    color:
        var(--teal-dark, #05727e);

    font-family:
        var(
            --font-heading,
            "Playfair Display",
            Georgia,
            serif
        );

    font-size: 20px;

    line-height: 1.25;

    font-weight: 700;
}


.core-value-item p {
    margin: 0;

    color: #35634A;

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size: 14px;

    line-height: 1.65;
}


/* =========================================================
   EMPTY CORE VALUES MESSAGE
========================================================= */

.core-values-empty {
    padding: 25px;

    text-align: center;

    border-radius: 8px;

    background: var(--teal-light, #e8f7f8);
}


.core-values-empty p {
    margin: 0;

    color: var(--muted, #718087);

    font-size: 14px;
}


/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 1050px) {

    .identity-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }


    .vision-card {
        grid-column: 1 / -1;
    }


    .core-values-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

}


@media (max-width: 760px) {

    .identity {
        padding: 80px 0 90px;
    }


    .identity-heading {
        margin-bottom: 38px;
    }


    .identity-grid {
        grid-template-columns: 1fr;

        gap: 18px;

        margin-bottom: 18px;
    }


    .vision-card {
        grid-column: auto;
    }


    .identity-card {
        min-height: auto;

        padding: 31px 27px 34px;
    }


    .motto-text {
        font-size: 24px;
    }


    .core-values-card {
        padding: 34px 24px 38px;
    }


    .core-values-grid {
        grid-template-columns: 1fr;

        gap: 14px;
    }


    .core-value-item {
        min-height: auto;
    }

}


@media (prefers-reduced-motion: reduce) {

    .identity-card,
    .core-values-card,
    .core-value-item {
        transition: none;
    }


    .identity-card::before,
    .core-values-card::before {
        animation: none;
    }

}