/* ==========================================================================
   Site footer  (views/partials/footer.hbs, shared by every page)

   Deep navy with the site's faint lattice. A pointed arch rises at the top
   centre into the section above (the same arch as under the home slider) and
   the back-to-top button crowns it. Four columns: brand + social, quick links,
   courses, contact. Then a slim bar with copyright, legal links and credit.
   ========================================================================== */

.site-footer {
    --navy: #111d42;
    --navy-deep: #0b1332;
    --gold: #d1a24f;
    --gold-soft: #e6c98f;       /* light gold: readable as small text on navy */

    --ledge: 56px;              /* cream strip the arch rises into, at the very top of the footer */

    position: relative;
    clear: both;                /* a floated element above (e.g. the Contact page map) must not squeeze the footer grid */
    padding-top: var(--ledge);
    color: rgba(255, 255, 255, .78);
    background:
        linear-gradient(#f6f1e6, #f6f1e6) top / 100% var(--ledge) no-repeat,
        radial-gradient(800px 380px at 8% var(--ledge), rgba(209, 162, 79, .13), transparent 62%),
        linear-gradient(180deg, var(--navy-deep) 0%, #080e26 100%);
    font-family: 'Raleway', 'PT Sans', Arial, sans-serif;
}

/* faint lattice, fading toward the bottom (starts below the cream strip) */
.site-footer::before {
    content: "";
    position: absolute;
    top: var(--ledge);
    right: 0;
    bottom: 0;
    left: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='72' height='72' viewBox='0 0 72 72'%3E%3Cg fill='none' stroke='%23d1a24f' stroke-opacity='.16' stroke-width='1'%3E%3Crect x='18' y='18' width='36' height='36'/%3E%3Crect x='18' y='18' width='36' height='36' transform='rotate(45 36 36)'/%3E%3Cpath d='M0 0l18 18M72 0L54 18M0 72l18-18M72 72L54 54'/%3E%3C/g%3E%3C/svg%3E");
    -webkit-mask-image: linear-gradient(to bottom, #000, transparent 75%);
    mask-image: linear-gradient(to bottom, #000, transparent 75%);
    pointer-events: none;
}

.site-footer > * {
    position: relative;
}

.site-footer h3,
.site-footer p,
.site-footer ul {
    margin: 0;
    padding: 0;
}

.site-footer ul {
    list-style: none;
}

.site-footer a {
    text-decoration: none;
}

.site-footer a:focus-visible,
.site-footer button:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 3px;
}


/* --------------------------------------------------------------------------
   Arch + back-to-top
   -------------------------------------------------------------------------- */

.site-footer__arch {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: calc(var(--ledge) + 1px);   /* +1px so no hairline shows between arch and footer */
    pointer-events: none;
}

.site-footer__arch path {
    fill: var(--navy-deep);
}

.site-footer__top {
    position: absolute;
    top: 4px;
    left: 50%;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    padding: 0;
    border: 4px solid var(--navy-deep);
    border-radius: 50%;
    background: var(--gold);
    color: var(--navy-deep);
    font-size: 18px;
    cursor: pointer;
    transform: translateX(-50%);
    transition: background-color .2s ease, transform .25s ease;
}

.site-footer__top:hover,
.site-footer__top:focus {
    background: #fff;
    transform: translateX(-50%) translateY(-3px);
}


/* --------------------------------------------------------------------------
   Columns
   -------------------------------------------------------------------------- */

.site-footer__grid {
    display: grid;
    grid-template-columns: minmax(0, 4fr) minmax(0, 3fr) minmax(0, 4fr);
    gap: 56px;
    padding: 56px 0 72px;
}

/* ".site-footer" in the selector so this beats the generic h3 reset above */
.site-footer .fcol__title {
    position: relative;
    margin-bottom: 26px;
    padding-bottom: 16px;
    font-family: 'Playfair Display', Georgia, 'Times New Roman', serif;
    font-size: 21px;
    font-weight: 700;
    line-height: 1.2;
    color: #fff;
    text-transform: none;
}

/* short gold rule under each title */
.fcol__title::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 3px;
    background: var(--gold);
}

/* Brand */

.fbrand {
    display: flex;
    align-items: center;
    gap: 16px;
    color: #fff;
}

.fbrand:hover,
.fbrand:focus {
    color: #fff;
}

/* the logo is made for light backgrounds, so it sits on a white seal */
.fbrand__crest {
    display: flex;
    flex: none;
    align-items: center;
    justify-content: center;
    width: 84px;
    height: 84px;
    border: 3px solid var(--gold);
    border-radius: 50%;
    background: #fff;
}

.fbrand__crest img {
    display: block;
    width: 70%;
    height: auto;
}

.fbrand__text {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}

.fbrand__text strong {
    font-family: 'Playfair Display', Georgia, 'Times New Roman', serif;
    font-size: 23px;
    font-weight: 700;
    color: #fff;
}

.fbrand__text small {
    margin-top: 4px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--gold-soft);
}

.fbrand__est {
    margin-top: 22px !important;
    font-size: 14px;
    letter-spacing: .04em;
    color: rgba(255, 255, 255, .7);
}

.fsocial {
    margin-top: 28px;
}

.fsocial__label {
    display: block;
    margin-bottom: 12px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: var(--gold-soft);
}

.fsocial__list {
    display: flex;
    gap: 10px;
}

.fsocial__list a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(209, 162, 79, .55);
    border-radius: 50%;
    color: var(--gold);
    font-size: 17px;
    transition: background-color .2s ease, color .2s ease;
}

.fsocial__list a:hover,
.fsocial__list a:focus {
    background: var(--gold);
    color: var(--navy-deep);
}

/* Link lists */

.flinks li + li {
    margin-top: 12px;
}

.flinks a {
    position: relative;
    display: inline-block;
    padding-left: 18px;
    color: rgba(255, 255, 255, .78);
    font-size: 15px;
    line-height: 1.5;
    transition: color .2s ease, transform .2s ease;
}

/* diamond bullet, as on the ticker and hero */
.flinks a::before {
    content: "";
    position: absolute;
    left: 0;
    top: .62em;
    width: 6px;
    height: 6px;
    background: var(--gold);
    transform: rotate(45deg);
}

.flinks a:hover,
.flinks a:focus {
    color: var(--gold-soft);
    transform: translateX(4px);
}

/* Contact */

.fcontact li {
    display: flex;
    gap: 16px;
}

.fcontact li + li {
    margin-top: 22px;
}

.fcontact__icon {
    display: flex;
    flex: none;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid rgba(209, 162, 79, .55);
    border-radius: 50%;
    color: var(--gold);
    font-size: 16px;
}

.fcontact div {
    min-width: 0;
}

.fcontact__label {
    display: block;
    margin-bottom: 4px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--gold-soft);
}

.fcontact a,
.fcontact address {
    display: block;
    margin: 0;
    color: rgba(255, 255, 255, .88);
    font-size: 14.5px;
    font-style: normal;
    line-height: 1.6;
    overflow-wrap: break-word;
    transition: color .2s ease;
}

.fcontact a:hover,
.fcontact a:focus {
    color: var(--gold-soft);
}

/* keeps "Kashmir-192124" on one line instead of breaking at the hyphen */
.fcontact__nb {
    white-space: nowrap;
}


/* --------------------------------------------------------------------------
   Bottom bar
   -------------------------------------------------------------------------- */

.site-footer__bottom {
    border-top: 1px solid rgba(209, 162, 79, .28);
    background: rgba(0, 0, 0, .22);
}

.site-footer__bottom-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px 28px;
    padding-top: 20px;
    padding-bottom: 20px;
}

.site-footer__copy {
    font-size: 14px;
    color: rgba(255, 255, 255, .72);
}

.site-footer__legal {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 0;
}

.site-footer__legal li + li::before {
    content: "";
    display: inline-block;
    width: 1px;
    height: 12px;
    margin: 0 16px;
    background: rgba(209, 162, 79, .5);
    vertical-align: -1px;
}

.site-footer__legal a {
    font-size: 14px;
    color: rgba(255, 255, 255, .72);
    transition: color .2s ease;
}

.site-footer__legal a:hover,
.site-footer__legal a:focus {
    color: var(--gold-soft);
}


/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

/* Tablet: the brand block spans the top, quick links and contact sit side by side below. */
@media (max-width: 991px) {
    .site-footer__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 52px 48px;
    }

    .fcol--brand {
        grid-column: 1 / -1;
    }
}

@media (max-width: 767px) {
    .site-footer__grid {
        padding: 84px 0 56px;
    }

    .site-footer__bottom-inner {
        flex-direction: column;
        text-align: center;
    }

    .site-footer__legal {
        justify-content: center;
    }
}

@media (max-width: 575px) {
    .site-footer__grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 44px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .site-footer__top,
    .flinks a,
    .fsocial__list a {
        transition: none;
    }

    /* no lift / slide on hover (the button keeps its centring transform) */
    .site-footer__top:hover,
    .site-footer__top:focus {
        transform: translateX(-50%);
    }

    .flinks a:hover,
    .flinks a:focus {
        transform: none;
    }
}
