*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    margin: 0;
    padding: 0;
}

body {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    background: #ffffff;
    color: #111111;
}

img {
    display: block;
    max-width: 100%;
}

button,
input,
textarea,
select {
    font: inherit;
}

a {
    color: inherit;
}


.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

/* -------------------------------------------------
   Mobile header
------------------------------------------------- */

.mobile-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 64px;
    padding: 8px 12px;
    background: #0d2248;
    color: #ffffff;
}

.mobile-header__logo {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    font-size: 12px;
    text-transform: uppercase;
}

.mobile-header__actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.mobile-header__icon {
    border: 0;
    background: transparent;
    color: #ffffff;
    cursor: pointer;
    padding: 6px;
}

.menu-button {
    width: 44px;
    height: 44px;
    border: 0;
    background: #c1272d;
    cursor: pointer;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.menu-button span {
    display: block;
    width: 22px;
    height: 2px;
    background: #ffffff;
}


/* -------------------------------------------------
   Desktop side navigation
------------------------------------------------- */

.side-nav {
    display: none;
}


/* -------------------------------------------------
   Desktop
------------------------------------------------- */

@media (min-width: 900px) {

    .mobile-header {
        display: none;
    }

    .side-nav {
        position: fixed;
        inset: 0 auto 0 0;
        z-index: 100;

        display: flex;
        flex-direction: column;
        justify-content: space-between;

        width: 96px;
        height: 100vh;

        background: #0d2248;
        color: #ffffff;
    }

    .side-nav__top {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .side-nav__menu {
        width: 96px;
        height: 96px;
    }

    .side-nav__item {
        display: flex;
        align-items: center;
        justify-content: center;

        width: 96px;
        height: 72px;

        color: #ffffff;
        text-decoration: none;
        font-size: 24px;
    }

    .side-nav__social {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 20px;

        padding-bottom: 30px;
    }

    .side-nav__social a {
        color: #ffffff;
        text-decoration: none;
        font-size: 24px;
    }

    #main-content,
    .site > footer {
        margin-left: 96px;
    }
}

/* -------------------------------------------------
   Hero
------------------------------------------------- */

.hero {
    position: relative;
    width: 100%;
    height: 78vh;
    min-height: 500px;
    overflow: hidden;
    background: #0d2248;
}

.hero__image {
    position: absolute;
    inset: 0;

    width: 100%;
    height: 100%;

    object-fit: cover;
    object-position: center;
}

.hero__overlay {
    position: absolute;
    inset: 0;

    background:
        linear-gradient(
            to bottom,
            rgba(0, 0, 0, 0.05),
            rgba(0, 0, 0, 0.35)
        );
}

.hero__content {
    position: absolute;
    inset: 0;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    padding: 30px;
    text-align: center;
    color: #ffffff;
}

.hero__logo {
    width: min(70%, 480px);
    height: auto;
}

.hero__tagline {
    margin: 24px 0 0;

    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.18em;

    color: #ffffff;
}

.hero__tagline span {
    margin: 0 8px;
}


/* -------------------------------------------------
   Hero - desktop
------------------------------------------------- */

@media (min-width: 900px) {

    .hero {
        min-height: 700px;
        height: 100vh;
    }

    .hero__logo {
        width: min(45%, 560px);
    }

    .hero__tagline {
        margin-top: 30px;
        font-size: 17px;
        letter-spacing: 0.22em;
    }
}

/* -------------------------------------------------
   Shared section elements
------------------------------------------------- */

.section-accent {
    display: flex;
    justify-content: center;

    width: 92px;
    height: 3px;

    margin: 0 auto 24px;
}

.section-accent span {
    flex: 1;
}

.section-accent span:nth-child(1) {
    background: #f5aa00;
}

.section-accent span:nth-child(2) {
    background: #c1272d;
}

.section-accent span:nth-child(3) {
    background: #1f55b5;
}


.outline-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-width: 120px;
    min-height: 42px;

    padding: 10px 20px;

    border: 1px solid #f5aa00;

    color: #ffffff;

    font-size: 11px;
    line-height: 1;
    text-decoration: none;
    text-transform: uppercase;

    transition:
        background-color 0.2s ease,
        color 0.2s ease;
}

.outline-button:hover,
.outline-button:focus-visible {
    background: #f5aa00;
    color: #0d2248;
}


/* -------------------------------------------------
   School introduction
------------------------------------------------- */

.school-intro {
    position: relative;

    display: flex;
    align-items: center;
    justify-content: center;

    min-height: 560px;

    padding: 80px 24px;

    overflow: hidden;

    background: #0d2248;
    color: #ffffff;
}

.school-intro__content {
    position: relative;
    z-index: 2;

    width: 100%;
    max-width: 620px;

    margin: 0 auto;

    text-align: center;
}

.school-intro__title {
    margin: 0 0 24px;

    font-family: Georgia, "Times New Roman", serif;
    font-size: 38px;
    font-weight: 400;
    line-height: 1.08;

    text-transform: uppercase;
}

.school-intro__text {
    max-width: 600px;

    margin: 0 auto 30px;

    font-size: 14px;
    line-height: 1.65;
}

.school-intro__tree {
    position: absolute;
    z-index: 1;

    bottom: -20px;

    width: 190px;
    height: auto;

    opacity: 0.13;

    pointer-events: none;
}

.school-intro__tree--left {
    left: -55px;
}

.school-intro__tree--right {
    right: -55px;
    transform: scaleX(-1);
}


/* -------------------------------------------------
   School introduction - desktop
------------------------------------------------- */

@media (min-width: 900px) {

    .school-intro {
        min-height: 610px;
        padding: 100px 60px;
    }

    .school-intro__title {
        font-size: 52px;
    }

    .school-intro__text {
        font-size: 14px;
        line-height: 1.6;
    }

    .school-intro__tree {
        width: 330px;
        bottom: -40px;
    }

    .school-intro__tree--left {
        left: 70px;
    }

    .school-intro__tree--right {
        right: 70px;
    }
}

/* -------------------------------------------------
   Principal
------------------------------------------------- */

.principal-section {
    background: #f4f5f6;
    color: #0d2248;
    padding: 70px 24px;
}

.principal-section__inner {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;

    display: grid;
    grid-template-columns: 1fr;
    grid-template-areas:
        "heading"
        "media"
        "body";

    gap: 30px;
}

.principal-section__heading {
    grid-area: heading;
}

.principal-section__heading h2 {
    margin: 0;

    font-family: Georgia, "Times New Roman", serif;
    font-size: 32px;
    font-weight: 400;
    line-height: 1.1;

    text-transform: uppercase;
}

.section-accent--left {
    justify-content: flex-start;
    margin: 0 0 20px;
}

.principal-section__media {
    grid-area: media;

    display: flex;
    justify-content: center;

    padding: 25px 20px 10px;
}

.principal-section__image-frame {
    position: relative;

    width: min(100%, 330px);
}


.principal-section__image-frame img {
    position: relative;
    z-index: 1;

    width: 100%;
    height: auto;

    object-fit: cover;
}

.principal-section__body {
    grid-area: body;
}

.principal-section__body p {
    margin: 0 0 20px;

    color: #535861;

    font-size: 14px;
    line-height: 1.65;
}

.outline-button--dark {
    color: #0d2248;
}


/* -------------------------------------------------
   Principal - desktop
------------------------------------------------- */

@media (min-width: 900px) {

    .principal-section {
        padding: 110px 70px;
    }

    .principal-section__inner {
        grid-template-columns:
            minmax(360px, 0.9fr)
            minmax(420px, 1.1fr);

        grid-template-areas:
            "media heading"
            "media body";

        column-gap: 90px;
        row-gap: 20px;

        align-items: center;
    }

    .principal-section__media {
        padding: 30px;
    }

    .principal-section__image-frame {
        width: 100%;
        max-width: 430px;
    }

    .principal-section__heading {
        align-self: end;
    }

    .principal-section__heading h2 {
        font-size: 46px;
    }

    .principal-section__body {
        align-self: start;
    }

    .principal-section__body p {
        font-size: 14px;
        line-height: 1.65;
    }
}

/* -------------------------------------------------
   Community
------------------------------------------------- */

.community-section {
    position: relative;

    min-height: 650px;

    overflow: hidden;

    background: #0d2248;
}

.community-section__image {
    position: absolute;
    inset: 0;

    width: 100%;
    height: 100%;

    object-fit: cover;
    object-position: center;
}

.community-section__overlay {
    position: absolute;
    inset: 0;

    background: rgba(0, 0, 0, 0.08);
}

.community-section__content {
    position: relative;
    z-index: 2;

    display: flex;
    flex-direction: column;
    justify-content: flex-end;

    min-height: 650px;

    padding: 40px 20px;
}


/* Red content panel */

.community-card {
    width: 100%;
    max-width: 330px;

    padding: 36px 28px;

    background: #c5282d;
    color: #ffffff;
}

.community-card__title {
    margin: 0 0 20px;

    font-family: Georgia, "Times New Roman", serif;
    font-size: 34px;
    font-weight: 400;
    line-height: 1.1;

    text-transform: uppercase;
}

.community-card__text {
    margin: 0 0 28px;

    font-size: 14px;
    line-height: 1.6;
}


/* White button version */

.outline-button--light {
    border-color: rgba(255, 255, 255, 0.8);
    color: #ffffff;
}

.outline-button--light:hover,
.outline-button--light:focus-visible {
    background: #ffffff;
    color: #c5282d;
}


/* Slider arrows */

.community-slider-controls {
    display: flex;
    gap: 10px;

    margin-top: 16px;
}

.community-slider-controls__button {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 42px;
    height: 42px;

    padding: 0;

    border: 1px solid rgba(255, 255, 255, 0.85);

    background: transparent;
    color: #ffffff;

    font-size: 18px;

    cursor: pointer;
}

.community-slider-controls__button:hover,
.community-slider-controls__button:focus-visible {
    background: #ffffff;
    color: #0d2248;
}


/* -------------------------------------------------
   Community - desktop
------------------------------------------------- */

@media (min-width: 900px) {

    .community-section {
        min-height: 760px;
    }

    .community-section__content {
        justify-content: center;

        min-height: 760px;

        padding: 70px 90px;
    }

    .community-card {
        max-width: 460px;

        padding: 55px 50px;
    }

    .community-card__title {
        font-size: 48px;
    }

    .community-card__text {
        font-size: 14px;
        line-height: 1.65;
    }

    .community-slider-controls {
        margin-top: 24px;
    }
}

/* -------------------------------------------------
   School News
------------------------------------------------- */

.school-news {
    position: relative;

    padding: 80px 24px;

    background: #ffffff;
    color: #0d2248;
}

.school-news__inner {
    width: 100%;
    max-width: 1180px;

    margin: 0 auto;
}

.school-news__title {
    margin: 0 0 45px;

    text-align: center;

    font-family: Georgia, "Times New Roman", serif;
    font-size: 36px;
    font-weight: 400;
    line-height: 1.1;

    text-transform: uppercase;
}

.school-news__grid {
    display: grid;
    grid-template-columns: 1fr;

    gap: 28px;

    max-width: 390px;
    margin: 0 auto;
}


/* -------------------------------------------------
   News card
------------------------------------------------- */

.news-card {
    position: relative;

    min-height: 420px;

    overflow: hidden;

    color: #ffffff;
}

.news-card__image {
    position: absolute;
    inset: 0;

    width: 100%;
    height: 100%;

    object-fit: cover;
}

.news-card__overlay {
    position: absolute;
    inset: 0;

    opacity: 0.78;
}

.news-card--yellow .news-card__overlay {
    background:
        linear-gradient(
            to top,
            #f5a900 0%,
            rgba(245, 169, 0, 0.92) 35%,
            rgba(245, 169, 0, 0.05) 75%
        );
}

.news-card--red .news-card__overlay {
    background:
        linear-gradient(
            to top,
            #c5282d 0%,
            rgba(197, 40, 45, 0.92) 35%,
            rgba(197, 40, 45, 0.05) 75%
        );
}

.news-card--blue .news-card__overlay {
    background:
        linear-gradient(
            to top,
            #0046b8 0%,
            rgba(0, 70, 184, 0.92) 35%,
            rgba(0, 70, 184, 0.05) 75%
        );
}

.news-card__content {
    position: absolute;
    z-index: 2;

    left: 0;
    right: 0;
    bottom: 0;

    padding: 30px 24px;
}

.news-card__content h3 {
    margin: 0 0 12px;

    font-family: Georgia, "Times New Roman", serif;
    font-size: 27px;
    font-weight: 400;
}

.news-card__content p {
    margin: 0;

    font-size: 13px;
    line-height: 1.55;
}

.school-news__actions {
    display: flex;
    justify-content: center;

    margin-top: 40px;
}


/* -------------------------------------------------
   School News - desktop
------------------------------------------------- */

@media (min-width: 900px) {

    .school-news {
        padding: 110px 70px 120px;
    }

    .school-news__title {
        margin-bottom: 60px;

        font-size: 50px;
    }

    .school-news__grid {
        grid-template-columns: repeat(3, 1fr);

        max-width: none;

        gap: 35px;
    }

    .news-card {
        min-height: 470px;
    }

    .news-card__content {
        padding: 35px 30px;
    }

    .news-card__content h3 {
        font-size: 28px;
    }
}

/* -------------------------------------------------
   Footer
------------------------------------------------- */

.site-footer {
    position: relative;

    background: #0d2248;
    color: #ffffff;
}


/* Coloured top line */

.site-footer__stripe {
    display: grid;
    grid-template-columns: repeat(3, 1fr);

    height: 10px;
}

.site-footer__stripe span:nth-child(1) {
    background: #f5a900;
}

.site-footer__stripe span:nth-child(2) {
    background: #c5282d;
}

.site-footer__stripe span:nth-child(3) {
    background: #0046b8;
}


/* Main footer content */

.site-footer__inner {
    width: 100%;
    max-width: 1180px;

    margin: 0 auto;

    padding: 60px 24px;

    display: grid;
    grid-template-columns: 1fr;

    gap: 50px;
}


/* Headings */

.site-footer h2 {
    margin: 0 0 20px;

    font-family: Georgia, "Times New Roman", serif;
    font-size: 24px;
    font-weight: 400;
}


/* School details */

.site-footer__logo {
    width: 150px;
    height: auto;

    margin-bottom: 28px;
}

.site-footer__school p {
    max-width: 320px;

    margin: 0;

    font-size: 13px;
    line-height: 1.6;

    color: rgba(255, 255, 255, 0.85);
}


/* Contact */

.footer-contact-list {
    margin: 0;
    padding: 0;

    list-style: none;
}

.footer-contact-list li {
    display: flex;
    align-items: flex-start;

    gap: 12px;

    margin-bottom: 14px;

    font-size: 13px;
    line-height: 1.5;
}

.footer-contact-list a {
    color: #ffffff;
    text-decoration: none;
}

.footer-contact-list a:hover,
.footer-contact-list a:focus-visible {
    text-decoration: underline;
}


/* Social */

.site-footer__social {
    margin-top: 32px;
}

.site-footer__social-links {
    display: flex;
    align-items: center;

    gap: 18px;
}

.site-footer__social-links a {
    color: #ffffff;

    font-size: 22px;
    font-weight: 700;

    text-decoration: none;
}


/* -------------------------------------------------
   Inquiry form
------------------------------------------------- */

.footer-form {
    display: flex;
    flex-direction: column;

    gap: 10px;
}

.footer-form__field label {
    position: absolute;

    width: 1px;
    height: 1px;

    padding: 0;
    margin: -1px;

    overflow: hidden;

    clip: rect(0, 0, 0, 0);

    white-space: nowrap;

    border: 0;
}

.footer-form input,
.footer-form textarea {
    width: 100%;

    border: 0;

    padding: 10px 12px;

    background: #ffffff;
    color: #111111;

    font-size: 13px;
}

.footer-form textarea {
    resize: vertical;
}

.footer-form__submit {
    align-self: flex-start;

    min-width: 120px;

    margin-top: 10px;
    padding: 11px 24px;

    border: 1px solid #f5a900;

    background: transparent;
    color: #ffffff;

    font-size: 11px;
    text-transform: uppercase;

    cursor: pointer;
}

.footer-form__submit:hover,
.footer-form__submit:focus-visible {
    background: #f5a900;
    color: #0d2248;
}


/* -------------------------------------------------
   Footer bottom
------------------------------------------------- */

.site-footer__bottom {
    width: calc(100% - 48px);
    max-width: 1180px;

    margin: 0 auto;

    padding: 24px 0;

    border-top: 1px solid rgba(255, 255, 255, 0.35);

    display: flex;
    flex-direction: column;

    gap: 8px;

    text-align: center;
}

.site-footer__bottom p {
    margin: 0;

    font-size: 11px;
    color: rgba(255, 255, 255, 0.8);
}


/* -------------------------------------------------
   Footer - desktop
------------------------------------------------- */

@media (min-width: 900px) {

    .site-footer__inner {
        grid-template-columns:
            minmax(230px, 1fr)
            minmax(280px, 1fr)
            minmax(320px, 1fr);

        gap: 70px;

        padding: 80px 60px;
    }

    .site-footer__logo {
        width: 180px;
    }

    .site-footer__bottom {
        flex-direction: row;
        justify-content: space-between;

        width: calc(100% - 120px);

        text-align: left;
    }
}




/* -------------------------------------------------
   Main menu container
------------------------------------------------- */

.main-menu-overlay {
    position: fixed;

    top: 0;
    right: 0;
    bottom: 0;
    left: 96px;

    z-index: 90;

    display: grid;

    grid-template-columns:
        minmax(0, 3fr)
        minmax(340px, 1fr);

    width: calc(100vw - 96px);
    height: 100vh;

    overflow: hidden;

    transform: translateX(-100%);

    transition:
        transform 1.25s cubic-bezier(0.77, 0, 0.18, 1);

    pointer-events: none;

    will-change: transform;
}

.main-menu-overlay.is-open {
    transform: translateX(0);
    pointer-events: auto;
}


/* Menu open */

.main-menu-overlay.is-open {
    transform: translateX(0);

    pointer-events: auto;
}


/* Stop homepage scrolling */

body.menu-open {
    overflow: hidden;
}


/* -------------------------------------------------
   Shared background image
------------------------------------------------- */

.main-menu-overlay__background {
    position: absolute;
    inset: 0;
    z-index: 0;

    width: 100%;
    height: 100%;

    object-fit: cover;
    object-position: center;

    pointer-events: none;
}


/* -------------------------------------------------
   Left navigation panel
------------------------------------------------- */

.main-menu-overlay__navigation {
    position: relative;
    z-index: 1;

    min-width: 0;
    min-height: 100vh;

    overflow: hidden;
}


/* Navy transparent layer */

.main-menu-overlay__shade {
    position: absolute;
    inset: 0;
    z-index: 1;

    background: rgba(7, 27, 61, 0.88);

    pointer-events: none;
}


/* -------------------------------------------------
   Main menu links
------------------------------------------------- */

.main-menu-overlay__nav {
    position: relative;
    z-index: 2;

    display: flex;
    flex-direction: column;
    justify-content: center;

    height: 100%;

    gap: 16px;

    padding:
        60px
        60px
        60px
        115px;
}


.main-menu-overlay__nav a {
    display: block;

    width: fit-content;

    color: #ffffff;

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size: 34px;
    font-weight: 400;
    line-height: 1.15;

    text-decoration: none;

    transition:
        color 0.2s ease,
        transform 0.2s ease;
}


.main-menu-overlay__nav a:hover,
.main-menu-overlay__nav a:focus-visible {
    color: #f5a900;

    transform: translateX(5px);
}


/* -------------------------------------------------
   Quick Links panel
------------------------------------------------- */

.main-menu-overlay__quick {
    position: relative;
    z-index: 1;

    min-height: 100vh;

    overflow: hidden;

    padding:
        75px
        40px
        45px;
}


/* White transparent layer over same background */

.main-menu-overlay__quick-shade {
    position: absolute;
    inset: 0;
    z-index: 0;

    background: rgba(255, 255, 255, 0.9);

    pointer-events: none;
}


/* Actual Quick Links content */

.main-menu-overlay__quick-inner {
    position: relative;
    z-index: 2;

    display: flex;
    flex-direction: column;
    align-items: center;

    width: 100%;
    height: 100%;
}


/* -------------------------------------------------
   Close button
------------------------------------------------- */

.main-menu-overlay__close {
    position: absolute;

    top: 20px;
    right: 20px;

    z-index: 10;

    display: flex;
    align-items: center;
    justify-content: center;

    width: 46px;
    height: 46px;

    padding: 0;

    border: 0;

    background: transparent;
    color: #c5282d;

    font-size: 44px;
    font-weight: 300;
    line-height: 1;

    cursor: pointer;

    transition:
        color 0.2s ease,
        transform 0.2s ease;
}


.main-menu-overlay__close:hover,
.main-menu-overlay__close:focus-visible {
    color: #961b20;

    transform: rotate(90deg);
}


/* -------------------------------------------------
   Menu logo
------------------------------------------------- */

.main-menu-overlay__logo {
    display: block;

    width: 190px;
    max-width: 70%;
    height: auto;

    margin:
        0
        auto
        58px;
}


/* -------------------------------------------------
   Quick Links heading
------------------------------------------------- */

.main-menu-overlay__quick-content {
    width: 100%;
}


.main-menu-overlay__quick-content h2 {
    margin:
        0
        0
        42px;

    color: #0d2248;

    text-align: center;

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size: 32px;
    font-weight: 400;
    line-height: 1.1;
}


/* -------------------------------------------------
   Quick Links grid
------------------------------------------------- */

.quick-links {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    column-gap: 30px;
    row-gap: 38px;

    width: 100%;
}


.quick-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;

    gap: 10px;

    color: #0d2248;

    text-align: center;
    text-decoration: none;

    transition:
        color 0.2s ease,
        transform 0.2s ease;
}


.quick-link img {
    display: block;

    width: 52px;
    height: 52px;

    object-fit: contain;
}


.quick-link span {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.2;
}


.quick-link:hover,
.quick-link:focus-visible {
    color: #c5282d;

    transform: translateY(-3px);
}


/* =================================================
   MOBILE
================================================= */

@media (max-width: 899px) {

    .main-menu-overlay {
        /*
         * Mobile header stays visible.
         * Current header is approximately 64px tall.
         */
        top: 64px;
        left: 0;

        width: 100%;
        height: calc(100dvh - 64px);

        /*
         * Until your mobile menu is designed,
         * only show the main navigation.
         */
        grid-template-columns: 1fr;
    }


    .main-menu-overlay__navigation {
        min-height: calc(100dvh - 64px);
    }


    .main-menu-overlay__nav {
        justify-content: flex-start;

        height: auto;
        min-height: calc(100dvh - 64px);

        padding:
            60px
            32px;

        gap: 17px;
    }


    .main-menu-overlay__nav a {
        font-size: 28px;
    }


    /*
     * Hide desktop Quick Links panel until
     * mobile menu design exists.
     */
    .main-menu-overlay__quick {
        display: none;
    }
}


/* =================================================
   ACCESSIBILITY
   Reduce motion when requested by the user
================================================= */

@media (prefers-reduced-motion: reduce) {

    .main-menu-overlay {
        transition: none;
    }

    .main-menu-overlay__nav a,
    .quick-link,
    .main-menu-overlay__close {
        transition: none;
    }
}

/* -------------------------------------------------
   Hamburger / Close animation
------------------------------------------------- */

.menu-button {
    position: relative;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    gap: 5px;

    width: 44px;
    height: 44px;

    padding: 0;

    border: 0;

    background: #c5282d;
    color: #ffffff;

    cursor: pointer;
}

.menu-button span {
    display: block;

    width: 24px;
    height: 2px;

    background: #ffffff;

    transform-origin: center;

    transition:
        transform 0.35s ease,
        opacity 0.2s ease;
}


/* Top line becomes first half of X */

.menu-button[aria-expanded="true"] span:nth-child(1) {
    transform:
        translateY(7px)
        rotate(45deg);
}


/* Middle line disappears */

.menu-button[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;

    transform: scaleX(0);
}


/* Bottom line becomes second half of X */

.menu-button[aria-expanded="true"] span:nth-child(3) {
    transform:
        translateY(-7px)
        rotate(-45deg);
}


/* Optional keyboard focus */

.menu-button:focus-visible {
    outline: 2px solid #ffffff;
    outline-offset: -5px;
}


/* Respect reduced-motion accessibility setting */

@media (prefers-reduced-motion: reduce) {

    .menu-button span {
        transition: none;
    }
}

/* -------------------------------------------------
   Desktop side-nav hamburger fix
------------------------------------------------- */

@media (min-width: 900px) {

    .side-nav .side-nav__menu {
        width: 96px;
        height: 96px;

        min-width: 96px;
        min-height: 96px;

        flex: 0 0 96px;

        margin: 0;
        padding: 0;

        background: #c5282d;
    }

    .side-nav .side-nav__menu span {
        width: 28px;
        height: 2px;
    }
}

/* =================================================
   SIDE NAV - SCROLLING BRAND BEHAVIOUR
================================================= */

@media (min-width: 900px) {

    /*
     * White Ashwood logo.
     * Hidden while visitor is at top of page.
     */
    .side-nav__brand {
        display: flex;
        align-items: center;
        justify-content: center;

        width: 96px;

        max-height: 0;

        padding: 0 14px;

        overflow: hidden;

        opacity: 0;

        transform: translateY(-15px);

        pointer-events: none;

        transition:
            max-height 0.4s ease,
            padding 0.4s ease,
            opacity 0.3s ease,
            transform 0.4s ease;
    }


    .side-nav__brand img {
        display: block;

        width: 58px;
        height: auto;
    }


    /*
     * Once page has been scrolled,
     * JavaScript adds .is-scrolled to body.
     */
    body.is-scrolled .side-nav__brand {
        max-height: 100px;

        padding-top: 16px;
        padding-bottom: 16px;

        opacity: 1;

        transform: translateY(0);

        pointer-events: auto;
    }


    /*
     * Existing hamburger.
     * It automatically moves down because
     * the logo takes up space above it.
     */
    .side-nav .side-nav__menu {
        width: 96px;
        height: 96px;

        min-width: 96px;
        min-height: 96px;

        margin: 0;
        padding: 0;

        flex: 0 0 96px;

        background: #c5282d;

        transition:
            background-color 0.3s ease;
    }


    .side-nav .side-nav__menu span {
        width: 28px;
        height: 2px;
    }
}