/* =========================================================
   DIVILEN FOOTER
========================================================= */

.site-footer {
    position: relative;

    width: 100%;

    padding:
        38px
        clamp(32px, 4.2vw, 76px)
        22px;

    overflow: hidden;

    color: #f1ede6;

    background:
        radial-gradient(
            circle at 14% 25%,
            rgba(255, 255, 255, 0.022),
            transparent 32%
        ),
        linear-gradient(
            135deg,
            #101116 0%,
            #0b0c10 58%,
            #090a0d 100%
        );

    border-top:
        1px solid rgba(255, 255, 255, 0.05);
}


.footer-container {
    position: relative;

    width: min(100%, 1640px);

    margin-inline: auto;
}


/* =========================================================
   MAIN DESKTOP GRID
========================================================= */

.footer-main {
    position: relative;
    z-index: 2;

    display: grid;

    grid-template-columns:
        minmax(230px, 1.05fr)
        minmax(130px, 0.52fr)
        minmax(190px, 0.72fr)
        minmax(320px, 1.35fr);

    align-items: start;

    gap: 0;

    height: 170px;

    padding:
        0
        8px
        28px;
}


/* =========================================================
   BRAND
========================================================= */

.footer-brand {
    min-width: 0;

    padding-right:
        clamp(28px, 3vw, 54px);
}


.footer-logo {
    display: inline-flex;

    width: fit-content;

    text-decoration: none;
}


.footer-logo img {
    display: block;

    width: auto;
    height: clamp(34px, 2.6vw, 47px);

    object-fit: contain;
}


.footer-brand-accent {
    display: block;

    width: 32px;
    height: 1.5px;

    margin:
        17px
        0
        18px;

    background: #819bb6;
}


.footer-tagline {
    display: flex;
    flex-direction: column;

    margin: 0;

    font-family:
        Arial,
        Helvetica,
        sans-serif;

    font-size: 13px;
    font-weight: 400;

    line-height: 1.45;

    color:
        rgba(241, 237, 230, 0.70);
}


/* =========================================================
   DESKTOP COLUMNS
========================================================= */

.footer-column {
    min-width: 0;

    min-height: 122px;

    padding:
        5px
        clamp(24px, 2.5vw, 42px);

    border-left:
        1px solid rgba(255, 255, 255, 0.09);
}


.footer-heading {
    margin:
        0
        0
        24px;

    font-family:
        Arial,
        Helvetica,
        sans-serif;

    font-size: 9px;
    font-weight: 700;

    line-height: 1;

    letter-spacing: 0.22em;
    text-transform: uppercase;

    color: #819bb6;
}


.footer-column-content {
    display: flex;
    flex-direction: column;

    align-items: flex-start;

    gap: 16px;
}

/* =========================================================
   NAVIGATION
========================================================= */

.footer-link {
    color:
        rgba(241, 237, 230, 0.92);

    text-decoration: none;

    font-family:
        Arial,
        Helvetica,
        sans-serif;

    font-size: 14px;
    font-weight: 400;

    line-height: 1.2;

    transition:
        color 180ms ease,
        transform 220ms cubic-bezier(.22, .61, .36, 1);
}


/* =========================================================
   UPDATES
========================================================= */

.footer-updates-link {
    display: inline-flex;

    align-items: center;

    gap: 14px;

    padding: 0;

    border: 0;

    background: transparent;

    color:
        rgba(241, 237, 230, 0.94);

    font-family:
        Arial,
        Helvetica,
        sans-serif;

    font-size: 14px;
    font-weight: 400;

    cursor: pointer;

    transition:
        color 180ms ease,
        transform 220ms cubic-bezier(.22, .61, .36, 1);
}

.footer-updates-text {
    max-width: 20ch;

    margin: 0;

    font-family:
        Arial,
        Helvetica,
        sans-serif;

    font-size: 12px;
    font-weight: 400;

    line-height: 1.5;

    color:
        rgba(241, 237, 230, 0.55);
}

/* =========================================================
   NEWSLETTER EXPANDED STATE
========================================================= */

.footer-newsletter {
    display: none;

    position: relative;

    grid-column: 2 / -1;

    height: 142px;

    padding:
        2px
        70px
        0
        34px;

    overflow: visible;

    border-left:
        1px solid rgba(255, 255, 255, 0.09);

    animation:
        footerNewsletterIn
        320ms
        cubic-bezier(.22, .61, .36, 1)
        both;
}


.site-footer.is-newsletter-open
.footer-navigation,

.site-footer.is-newsletter-open
.footer-updates,

.site-footer.is-newsletter-open
.footer-social-section {
    display: none;
}


.site-footer.is-newsletter-open
.footer-newsletter {
    display: block;
}


/* ---------------------------------------------------------
   CONTENT
--------------------------------------------------------- */

.footer-newsletter-eyebrow {
    margin: 0 0 8px;

    font-family:
        Arial,
        Helvetica,
        sans-serif;

    font-size: 9px;
    font-weight: 700;

    line-height: 1;

    letter-spacing: 0.22em;

    text-transform: uppercase;

    color: #819bb6;
}


.footer-newsletter-title {
    margin: 0 0 5px;

    font-family:
        Arial,
        Helvetica,
        sans-serif;

    font-size: 23px;
    font-weight: 400;

    line-height: 1.05;

    letter-spacing: -0.025em;

    color: #f1ede6;
}


.footer-newsletter-description {
    max-width: 48ch;

    margin: 0 0 11px;

    font-family:
        Arial,
        Helvetica,
        sans-serif;

    font-size: 11px;
    font-weight: 400;

    line-height: 1.4;

    color:
        rgba(241, 237, 230, 0.60);
}


/* ---------------------------------------------------------
   FORM
--------------------------------------------------------- */

.footer-newsletter-form {
    width: min(100%, 560px);
}


.footer-newsletter-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-newsletter-fields {
    display: grid;

    grid-template-columns:
        minmax(220px, 340px)
        125px;

    gap: 8px;

    width: fit-content;
}


.footer-newsletter-input {
    width: 100%;
    height: 35px;

    padding:
        0
        14px;

    border:
        1px solid rgba(241, 237, 230, 0.20);

    border-radius: 0;

    outline: none;

    background:
        rgba(255, 255, 255, 0.025);

    color: #f1ede6;

    font-family:
        Arial,
        Helvetica,
        sans-serif;

    font-size: 12px;

    transition:
        border-color 180ms ease,
        background 180ms ease;
}


.footer-newsletter-input::placeholder {
    color:
        rgba(241, 237, 230, 0.38);
}


.footer-newsletter-input:focus {
    border-color:
        rgba(129, 155, 182, 0.90);

    background:
        rgba(255, 255, 255, 0.045);
}


.footer-newsletter-submit {
    min-width: 125px;
    height: 35px;

    padding:
        0
        18px;

    border:
        1px solid rgba(129, 155, 182, 0.78);

    border-radius: 0;

    background: transparent;

    color: #a1b6ca;

    font-family:
        Arial,
        Helvetica,
        sans-serif;

    font-size: 10px;
    font-weight: 700;

    letter-spacing: 0.12em;

    text-transform: uppercase;

    cursor: pointer;

    transition:
        color 180ms ease,
        border-color 180ms ease,
        background 180ms ease;
}


.footer-newsletter-note {
    margin:
        6px
        0
        0;

    font-family:
        Arial,
        Helvetica,
        sans-serif;

    font-size: 9px;
    font-weight: 400;

    line-height: 1.4;

    color:
        rgba(241, 237, 230, 0.42);
}

.footer-newsletter-status {
    margin: 6px 0 0;

    font-family:
        Arial,
        Helvetica,
        sans-serif;

    font-size: 10px;
    font-weight: 400;

    line-height: 1.35;
}


.footer-newsletter-status.is-success {
    color: #9fb9a8;
}


.footer-newsletter-status.is-info {
    color: #a1b6ca;
}


.footer-newsletter-status.is-error {
    color: #d7a0a0;
}

/* ---------------------------------------------------------
   CLOSE
--------------------------------------------------------- */

.footer-newsletter-close {
    position: absolute;

    top: 0;
    right: 72px;

    width: 30px;
    height: 30px;

    padding: 0;

    border: 0;

    background: transparent;

    cursor: pointer;
}


.footer-newsletter-close span {
    position: absolute;

    top: 50%;
    left: 50%;

    width: 18px;
    height: 1px;

    background: #819bb6;
}


.footer-newsletter-close span:first-child {
    transform:
        translate(-50%, -50%)
        rotate(45deg);
}


.footer-newsletter-close span:last-child {
    transform:
        translate(-50%, -50%)
        rotate(-45deg);
}


@media (hover: hover) {

    .footer-newsletter-submit:hover {
        color: #0b0c10;

        background: #a1b6ca;

        border-color: #a1b6ca;
    }


    .footer-newsletter-close:hover span {
        background: #f1ede6;
    }
}


@keyframes footerNewsletterIn {

    from {
        opacity: 0;

        transform:
            translateX(18px);
    }

    to {
        opacity: 1;

        transform:
            translateX(0);
    }
}

/* =========================================================
   SOCIAL
========================================================= */

.footer-social {
    display: flex;

    align-items: center;

    gap:
        clamp(17px, 1.7vw, 27px);
}


.footer-social-link {
    display: grid;

    place-items: center;

    width: 26px;
    height: 26px;

    flex: 0 0 26px;

    color:
        rgba(241, 237, 230, 0.92);

    text-decoration: none;

    transition:
        color 180ms ease,
        transform 220ms cubic-bezier(.22, .61, .36, 1);
}


.footer-social-link svg {
    display: block;

    width: 18px;
    height: 18px;
}


/* =========================================================
   DECORATION
========================================================= */

.footer-decoration {
    position: absolute;

    z-index: 1;

    top: -10px;
    right: -8px;

    width: 180px;
    height: 190px;

    pointer-events: none;
}


.footer-decoration::after {
    content: "";

    position: absolute;

    top: 0;
    right: 26px;

    width: 1px;
    height: 100%;

    background:
        rgba(129, 155, 182, 0.58);
}


.footer-decoration span {
    position: absolute;

    right: 26px;
    bottom: 0;

    border-right:
        1px solid rgba(129, 155, 182, 0.46);

    border-bottom:
        1px solid rgba(129, 155, 182, 0.46);

    border-radius:
        0 0 100% 0;
}


.footer-decoration span:nth-child(1) {
    width: 86px;
    height: 86px;
}


.footer-decoration span:nth-child(2) {
    width: 118px;
    height: 118px;

    opacity: 0.7;
}


.footer-decoration span:nth-child(3) {
    width: 150px;
    height: 150px;

    opacity: 0.38;
}


/* =========================================================
   BOTTOM
========================================================= */

.footer-bottom {
    position: relative;
    z-index: 2;

    width: 100%;
}


.footer-bottom-line {
    width: 100%;
    height: 1px;

    background:
        linear-gradient(
            90deg,
            rgba(129, 155, 182, 0.78),
            rgba(129, 155, 182, 0.18)
        );
}


.footer-bottom-row {
    display: flex;

    justify-content: space-between;
    align-items: center;

    gap: 32px;

    padding-top: 18px;
}


.footer-copyright {
    margin: 0;

    font-family:
        Arial,
        Helvetica,
        sans-serif;

    font-size: 11px;
    font-weight: 400;

    line-height: 1.4;

    color:
        rgba(241, 237, 230, 0.56);
}


.footer-legal {
    display: flex;

    align-items: center;

    gap: 20px;
}


.footer-legal-link {
    color:
        rgba(241, 237, 230, 0.62);

    text-decoration: none;

    font-family:
        Arial,
        Helvetica,
        sans-serif;

    font-size: 11px;
    font-weight: 400;

    transition:
        color 180ms ease;
}


.footer-legal-separator {
    width: 1px;
    height: 12px;

    background:
        rgba(129, 155, 182, 0.70);
}


/* =========================================================
   MOBILE HEADINGS
========================================================= */

.footer-mobile-heading {
    display: none;
}


/* =========================================================
   DESKTOP HOVER
========================================================= */

@media (hover: hover) {

    .footer-link:hover,
    .footer-updates-link:hover {
        color: #a1b6ca;

        transform:
            translateX(4px);
    }


    .footer-social-link:hover {
        color: #a1b6ca;

        transform:
            translateY(-2px);
    }


    .footer-legal-link:hover {
        color: #ffffff;
    }
}

@media (min-width: 769px) {

    .footer-navigation,
    .footer-updates,
    .footer-social-section {
        transform: translateX(80px);
    }

}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 1050px) {

    .site-footer {
        padding:
            38px
            5vw
            22px;
    }


    .footer-main {
        grid-template-columns:
            minmax(210px, 0.95fr)
            minmax(125px, 0.55fr)
            minmax(180px, 0.75fr)
            minmax(250px, 1.2fr);
    }


    .footer-column {
        padding-inline:
            clamp(18px, 2vw, 28px);
    }


    .footer-social {
        gap: 14px;
    }
}


/* =========================================================
   MOBILE
========================================================= */
@media (max-width: 768px) {

    .site-footer {
        padding: 36px 28px 24px;
    }

    .footer-container {
        width: 100%;
    }

    .footer-main {
        display: block;
        height: auto;
        padding: 0 0 28px;
    }


    /* BRAND */

    .footer-brand {
        padding: 0 8px 30px;
    }

    .footer-logo img {
        height: 32px;
    }

    .footer-brand-accent {
        width: 28px;
        margin: 14px 0 14px;
    }

    .footer-tagline {
        font-family:
            "Bodoni MT",
            Didot,
            "Times New Roman",
            serif;

        font-size: 14px;
        line-height: 1.3;

        color: rgba(241, 237, 230, 0.92);
    }


    /* ACCORDION ROWS */

    .footer-column {
        min-height: 0;
        padding: 0;

        border-left: 0;
        border-top: 1px solid rgba(255, 255, 255, 0.11);
    }

    .footer-heading {
        display: none;
    }

    .footer-mobile-heading {
        display: grid;

        width: 100%;

        grid-template-columns: 28px 1fr auto;
        align-items: center;

        gap: 14px;

        padding: 19px 8px;

        border: 0;
        background: transparent;

        color: #f1ede6;

        text-align: left;

        font-family: Arial, Helvetica, sans-serif;
        font-size: 11px;
        font-weight: 500;

        letter-spacing: 0.04em;
        text-transform: uppercase;

        cursor: pointer;
    }

    .footer-mobile-icon {
        display: grid;
        place-items: center;

        width: 22px;
        height: 22px;

        color: #819bb6;
    }

    .footer-mobile-icon svg {
        display: block;
        width: 21px;
        height: 21px;
    }

    .footer-mobile-plus {
        color: #819bb6;

        font-size: 21px;
        font-weight: 300;
        line-height: 1;

        transition: transform 200ms ease;
    }

    .footer-mobile-heading[aria-expanded="true"]
    .footer-mobile-plus {
        transform: rotate(45deg);
    }

    .footer-column-content {
        display: none;

        padding: 0 50px 22px;
    }

    .footer-column.is-open
    .footer-column-content {
        display: flex;
    }

    .footer-updates-text {
        max-width: 30ch;
    }

    .footer-social {
        flex-wrap: wrap;
        gap: 20px;
    }


    /* NEWSLETTER */

    .site-footer.is-newsletter-open
    .footer-navigation,

    .site-footer.is-newsletter-open
    .footer-updates,

    .site-footer.is-newsletter-open
    .footer-social-section {
        display: none;
    }

    .site-footer.is-newsletter-open
    .footer-brand {
        padding-bottom: 26px;
    }

    .footer-newsletter {
        width: 100%;
        height: auto;
        min-height: 0;

        padding: 24px 8px 28px;

        border-top: 1px solid rgba(255, 255, 255, 0.11);
        border-left: 0;
    }

    .footer-newsletter-eyebrow {
        margin-bottom: 16px;
    }

    .footer-newsletter-title {
        margin-bottom: 10px;
        font-size: 27px;
    }

    .footer-newsletter-description {
        max-width: 38ch;
        margin-bottom: 22px;
        font-size: 12px;
    }

    .footer-newsletter-form {
        width: 100%;
    }

    .footer-newsletter-fields {
        width: 100%;
        grid-template-columns: minmax(0, 1fr) 130px;
        gap: 9px;
    }

    .footer-newsletter-input,
    .footer-newsletter-submit {
        height: 44px;
    }

    .footer-newsletter-close {
        top: 18px;
        right: 6px;
    }


    /* DECORATION */

    .footer-decoration {
        top: -12px;
        right: -4px;

        width: 100px;
        height: 112px;

        opacity: 0.55;
    }

    .footer-decoration::after,
    .footer-decoration span {
        right: 16px;
    }

    .footer-decoration span:nth-child(1) {
        width: 48px;
        height: 48px;
    }

    .footer-decoration span:nth-child(2) {
        width: 68px;
        height: 68px;
    }

    .footer-decoration span:nth-child(3) {
        width: 88px;
        height: 88px;
    }


    /* BOTTOM */

    .footer-bottom-row {
        display: flex;

        justify-content: space-between;
        align-items: center;

        gap: 24px;

        padding: 20px 8px 0;
    }

    .footer-copyright {
        flex: 1;
        max-width: none;
    }

    .footer-copyright,
    .footer-legal-link {
        font-size: 10px;
    }

    .footer-legal {
        flex: 0 0 auto;
        gap: 14px;
    }
}

/* =========================================================
   VERY SMALL MOBILE
========================================================= */

@media (max-width: 430px) {

    .footer-bottom-row {
        align-items: center;
    }


    .footer-copyright {
        max-width: 52%;
    }


    .footer-legal {
        margin-left: auto;
    }
}


/* =========================================================
   REDUCED MOTION
========================================================= */

@media (prefers-reduced-motion: reduce) {

    .footer-link,
    .footer-updates-link,
    .footer-social-link,
    .footer-legal-link,
    .footer-mobile-plus {
        transition: none;
    }
}