
/* =========================================================
   BELAIR HILL JUNIOR SCHOOL
   WELCOME SECTION
   ========================================================= */

.welcome-section {
    width: 100%;
    padding: 100px 0;
    background: var(--cream, #fffaf6);
    overflow: hidden;
}


/* =========================================================
   CONTAINER
   ========================================================= */

.welcome-section .container {
    width: min(1220px, calc(100% - 40px));
    margin: 0 auto;
}


/* =========================================================
   WELCOME HEADING
   ========================================================= */

.welcome-heading {
    max-width: 850px;
    margin: 0 auto 55px;
    text-align: center;
}

.welcome-heading .section-eyebrow {
    display: inline-block;
    margin-bottom: 14px;
    color: var(--terracotta, #c95f43);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    line-height: 1.2;
    text-transform: uppercase;
}

.welcome-heading h2 {
    margin: 0 0 22px;
    color: var(--dark, #243238);
    font-family: "Playfair Display", Georgia, serif;
    font-size: clamp(2.2rem, 4vw, 4rem);
    font-weight: 600;
    line-height: 1.08;
}

.welcome-heading .brand-name {
    color: var(--teal, #0797a6);
}

.welcome-heading p {
    max-width: 760px;
    margin: 0 auto;
    color: var(--text, #39484d);
    font-size: 1.05rem;
    line-height: 1.85;
}


/* =========================================================
   WELCOME 1 — MAIN INTRODUCTION
   ========================================================= */

#welcome-introduction {
    position: relative;
    max-width: 820px;
    margin: 0 auto;
    padding: 24px 30px 24px 34px;
    color: var(--text, #39484d);
    font-size: 1.08rem;
    line-height: 1.9;
    text-align: center;
}

#welcome-introduction::before {
    content: "";
    position: absolute;
    top: 8px;
    left: 50%;
    width: 55px;
    height: 3px;
    background: var(--terracotta, #c95f43);
    transform: translateX(-50%);
}

#welcome-introduction::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 1px;
    background: linear-gradient(
        to right,
        transparent,
        rgba(7, 151, 166, 0.25),
        transparent
    );
}


/* =========================================================
   THREE EQUAL SQUARES
   ========================================================= */

.welcome-visual-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
    width: 100%;
    margin-bottom: 85px;
}


/* =========================================================
   PHOTO CARDS
   ========================================================= */

.welcome-photo-card,
.welcome-brand-card {
    position: relative;
    aspect-ratio: 1 / 1;
    min-width: 0;
    overflow: hidden;
    border-radius: 4px;
}


/* =========================================================
   PHOTO
   ========================================================= */

.welcome-photo-card {
    background: var(--teal-light, #e8f7f8);
}

.welcome-photo-card img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition:
        transform 0.7s ease,
        filter 0.7s ease;
}

.welcome-photo-card:hover img {
    transform: scale(1.05);
    filter: saturate(1.05);
}


/* =========================================================
   PHOTO OVERLAY
   ========================================================= */

.welcome-photo-overlay {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    padding: 45px 24px 22px;
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.74),
        rgba(0, 0, 0, 0.28),
        rgba(0, 0, 0, 0)
    );
}

.welcome-photo-overlay span {
    color: #ffffff;
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}


/* =========================================================
   WELCOME 2 — BRAND / SUPPORTING MESSAGE CARD
   ========================================================= */

.welcome-brand-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 45px;
    background:
        linear-gradient(
            145deg,
            var(--teal-deep, #045661),
            var(--teal-dark, #05727e)
        );
    color: #ffffff;
    box-shadow: 0 18px 45px rgba(4, 86, 97, 0.14);
}

.welcome-brand-card::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 120px;
    height: 120px;
    border-radius: 0 0 0 100%;
    background: rgba(255, 255, 255, 0.06);
}

.welcome-brand-card::after {
    content: "";
    position: absolute;
    right: -55px;
    bottom: -55px;
    width: 170px;
    height: 170px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

.welcome-brand-mark {
    position: relative;
    z-index: 1;
    margin-bottom: 25px;
}

.welcome-brand-mark .brand-initials {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 95px;
    min-height: 95px;
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 50%;
    color: #ffffff;
    font-family: "Playfair Display", Georgia, serif;
    font-size: 1.7rem;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.welcome-brand-label {
    position: relative;
    z-index: 1;
    margin-bottom: 12px;
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.welcome-brand-card h3 {
    position: relative;
    z-index: 1;
    max-width: 330px;
    margin: 0;
    color: #ffffff;
    font-family: "Playfair Display", Georgia, serif;
    font-size: clamp(1.3rem, 2vw, 1.9rem);
    font-weight: 600;
    line-height: 1.35;
}

.welcome-brand-card h3 span {
    display: block;
}

.welcome-brand-card p {
    position: relative;
    z-index: 1;
    max-width: 340px;
    margin: 18px 0 0;
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.96rem;
    line-height: 1.75;
}


/* =========================================================
   PRINCIPAL MESSAGE
   ========================================================= */

.principal-message {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    max-width: 980px;
    margin: 0 auto;
    padding: 65px 70px;
    background: #ffffff;
    border-left: 5px solid var(--terracotta, #c95f43);
    box-shadow: 0 18px 55px rgba(36, 50, 56, 0.08);
    overflow: hidden;
}


/* =========================================================
   PRINCIPAL DECORATIVE QUOTE
   ========================================================= */

.principal-message::before {
    content: "“";
    position: absolute;
    top: 10px;
    right: 38px;
    color: rgba(201, 95, 67, 0.1);
    font-family: "Playfair Display", Georgia, serif;
    font-size: 9rem;
    font-weight: 600;
    line-height: 1;
    pointer-events: none;
}

.principal-message::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 0;
    width: 160px;
    height: 4px;
    background: var(--teal, #0797a6);
}


/* =========================================================
   PRINCIPAL CONTENT
   ========================================================= */

.principal-message-content {
    position: relative;
    z-index: 1;
}

.principal-message-content .section-eyebrow {
    display: block;
    margin-bottom: 12px;
    color: var(--terracotta, #c95f43);
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.principal-message-content h2 {
    margin: 0 0 28px;
    color: var(--dark, #243238);
    font-family: "Playfair Display", Georgia, serif;
    font-size: clamp(2rem, 3.5vw, 3rem);
    font-weight: 600;
    line-height: 1.12;
}


/* =========================================================
   PRINCIPAL MESSAGE BODY
   ========================================================= */

.principal-message-body {
    max-width: 820px;
    color: var(--text, #39484d);
}

.principal-message-body p {
    margin: 0 0 18px;
    font-size: 1rem;
    line-height: 1.9;
}

.principal-message-body p:last-child {
    margin-bottom: 0;
}


/* =========================================================
   PRINCIPAL SIGNATURE
   ========================================================= */

.principal-signature {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-top: 35px;
    padding-top: 25px;
    border-top: 1px solid #e7e7e7;
}

.principal-signature strong {
    color: var(--dark, #243238);
    font-family: "Playfair Display", Georgia, serif;
    font-size: 1.2rem;
    font-weight: 600;
}

.principal-signature span {
    color: var(--teal-dark, #05727e);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.04em;
}


/* =========================================================
   LOADING STATE
   ========================================================= */

.welcome-photo-card.is-loading {
    background:
        linear-gradient(
            110deg,
            #edf5f5 8%,
            #f8fbfb 18%,
            #edf5f5 33%
        );
    background-size: 200% 100%;
    animation: welcomeLoading 1.4s linear infinite;
}

@keyframes welcomeLoading {
    to {
        background-position: -200% 0;
    }
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 900px) {

    .welcome-section {
        padding: 75px 0;
    }

    .welcome-visual-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .welcome-brand-card {
        grid-column: span 2;
        aspect-ratio: auto;
        min-height: 330px;
    }

    .principal-message {
        padding: 50px 45px;
    }

    .principal-message::before {
        right: 25px;
        font-size: 7rem;
    }

}


/* =========================================================
   SMALL MOBILE
   ========================================================= */

@media (max-width: 620px) {

    .welcome-section .container {
        width: min(100% - 28px, 1220px);
    }

    .welcome-heading {
        margin-bottom: 40px;
    }

    .welcome-heading h2 {
        font-size: 2.15rem;
    }

    .welcome-heading p {
        font-size: 0.96rem;
    }

    /* ---------------------------------------------
       WELCOME 1
    --------------------------------------------- */

    #welcome-introduction {
        padding: 22px 10px 24px;
        font-size: 0.98rem;
        line-height: 1.8;
    }

    /* ---------------------------------------------
       VISUAL GRID
    --------------------------------------------- */

    .welcome-visual-grid {
        grid-template-columns: 1fr;
        gap: 15px;
        margin-bottom: 60px;
    }

    .welcome-photo-card,
    .welcome-brand-card {
        grid-column: auto;
        aspect-ratio: 1 / 1;
    }

    .welcome-brand-card {
        min-height: 0;
        padding: 35px;
    }

    .welcome-brand-card h3 {
        font-size: 1.55rem;
    }

    /* ---------------------------------------------
       PRINCIPAL MESSAGE
    --------------------------------------------- */

    .principal-message {
        padding: 40px 28px;
        border-left-width: 4px;
    }

    .principal-message::before {
        top: 8px;
        right: 15px;
        font-size: 6rem;
    }

    .principal-message-content h2 {
        font-size: 2rem;
    }

    .principal-message-body p {
        font-size: 0.96rem;
        line-height: 1.82;
    }

    .principal-signature {
        margin-top: 28px;
        padding-top: 20px;
    }

}

