/* ==========================================================================
   ANAZ — Site footer
   Depends on css/base.css for brand tokens. Everything is scoped to
   .site-footer.
   ========================================================================== */

.site-footer {
    /* Section-local tokens (fall back to base.css brand colours) */
    --footer-container: 1500px;
    --footer-text: #465570;
    --footer-muted: #687891;
    --footer-separator: #E6EAF0;
    --footer-divider: #F6E3D6;
    --footer-peach: #FFF0E5;
    --footer-peach-hover: #FFE0CA;

    --footer-col-pad: clamp(24px, 3.2vw, 68px);
    --footer-body: 20px;
    --footer-title: 27px;
    --footer-icon: 54px;
    --footer-logo: 320px;

    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding: clamp(64px, 7vw, 120px) 0 0;
    background:
        radial-gradient(40% 70% at 0% 100%, rgba(255, 222, 198, 0.35), transparent 70%),
        radial-gradient(40% 70% at 100% 100%, rgba(255, 222, 198, 0.35), transparent 70%),
        linear-gradient(180deg, #FFFFFF 0%, #FFFCFA 100%);
    color: var(--footer-text);
    font-family: var(--anaz-font);
}

/* --------------------------------------------------------------------------
   Decorative angular corner shapes
   -------------------------------------------------------------------------- */
.site-footer__decor {
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
}

.site-footer__shape {
    position: absolute;
    bottom: 0;
    width: clamp(150px, 14vw, 270px);
    height: auto;
    overflow: visible;
}

.site-footer__shape--left {
    left: 0;
}

.site-footer__shape--right {
    right: 0;
}

/* --------------------------------------------------------------------------
   Layout
   -------------------------------------------------------------------------- */
.site-footer__inner {
    width: 100%;
    max-width: var(--footer-container);
    margin: 0 auto;
    padding: 0 var(--anaz-gutter);
}

.site-footer__grid {
    display: grid;
    grid-template-columns: minmax(0, 30fr) minmax(0, 18fr) minmax(0, 25fr) minmax(0, 27fr);
    align-items: stretch;
}

.site-footer__col {
    min-width: 0;
    padding-left: var(--footer-col-pad);
    border-left: 1px solid var(--footer-separator);
}

.site-footer__brand {
    padding-left: 0;
    padding-right: var(--footer-col-pad);
    border-left: 0;
}

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

/* --------------------------------------------------------------------------
   Brand column
   -------------------------------------------------------------------------- */
.site-footer__logo {
    display: block;
    width: 100%;
    max-width: var(--footer-logo);
    border-radius: 6px;
}

.site-footer__logo img {
    width: 100%;
    height: auto;
}

.site-footer__desc {
    max-width: 430px;
    margin: clamp(22px, 2vw, 32px) 0 clamp(28px, 2.6vw, 40px);
    font-size: var(--footer-body);
    line-height: 1.5;
}

.site-footer__social {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.site-footer__social-link {
    display: grid;
    place-items: center;
    width: var(--footer-icon);
    height: var(--footer-icon);
    border-radius: 50%;
    background: var(--footer-peach);
    color: var(--anaz-navy);
    transition: background-color 0.25s var(--anaz-ease), color 0.25s var(--anaz-ease), transform 0.25s var(--anaz-ease);
}

.site-footer__social-link:hover {
    background: var(--anaz-orange);
    color: var(--anaz-white);
    transform: translateY(-2px);
}

/* --------------------------------------------------------------------------
   Column titles + link lists
   -------------------------------------------------------------------------- */
.site-footer__title {
    position: relative;
    margin: 0 0 clamp(34px, 3vw, 44px);
    padding-bottom: 18px;
    color: var(--anaz-navy);
    font-size: var(--footer-title);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.01em;
}

.site-footer__title::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 3px;
    border-radius: 2px;
    background: var(--anaz-orange);
}

.site-footer__links {
    display: grid;
    gap: 14px;
}

.site-footer__link,
.site-footer__contact-link,
.site-footer__legal-link {
    color: var(--footer-text);
    text-decoration: none;
    border-radius: 4px;
    transition: color 0.2s ease, transform 0.25s var(--anaz-ease);
}

.site-footer__link {
    display: inline-block;
    font-size: var(--footer-body);
    font-weight: 500;
    line-height: 1.35;
}

.site-footer__link:hover {
    color: var(--anaz-orange);
    transform: translateX(4px);
}

/* --------------------------------------------------------------------------
   Contact column
   -------------------------------------------------------------------------- */
.site-footer__address {
    font-style: normal;
}

.site-footer__contact-list {
    display: grid;
    gap: 20px;
}

.site-footer__contact-item {
    display: flex;
    align-items: center;
    gap: clamp(14px, 1.5vw, 28px);
}

.site-footer__contact-icon {
    flex: none;
    display: grid;
    place-items: center;
    width: var(--footer-icon);
    height: var(--footer-icon);
    border-radius: 50%;
    background: var(--footer-peach);
    color: var(--anaz-navy);
}

.site-footer__contact-text {
    min-width: 0;
    font-size: var(--footer-body);
    font-weight: 500;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

.site-footer__contact-link:hover {
    color: var(--anaz-orange);
}

/* --------------------------------------------------------------------------
   Bottom legal bar
   -------------------------------------------------------------------------- */
.site-footer__bottom {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px 40px;
    margin-top: clamp(56px, 5.5vw, 80px);
    padding: clamp(28px, 2.6vw, 40px) clamp(0px, 4vw, 70px) clamp(40px, 4vw, 64px);
    border-top: 1px solid var(--footer-divider);
}

.site-footer__copy {
    margin: 0;
    font-size: 18px;
    font-weight: 500;
}

.site-footer__legal {
    padding-left: 40px;
    border-left: 1px solid var(--footer-separator);
}

.site-footer__legal-list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    row-gap: 8px;
}

.site-footer__legal-list li + li {
    margin-left: 26px;
    padding-left: 26px;
    border-left: 1px solid var(--footer-separator);
}

.site-footer__legal-link {
    font-size: 18px;
    font-weight: 500;
}

.site-footer__legal-link:hover {
    color: var(--anaz-orange);
}

/* --------------------------------------------------------------------------
   Keyboard focus
   -------------------------------------------------------------------------- */
.site-footer a:focus-visible {
    outline: none;
    box-shadow: var(--anaz-focus);
}

.site-footer__link:focus-visible {
    color: var(--anaz-orange);
}

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

/* Standard desktop / iPad landscape */
@media (max-width: 1439px) {
    .site-footer {
        --footer-body: 18px;
        --footer-title: 25px;
        --footer-icon: 50px;
        --footer-logo: 280px;
    }
}

@media (max-width: 1199px) {
    .site-footer {
        --footer-body: 16px;
        --footer-title: 22px;
        --footer-icon: 46px;
        --footer-logo: 230px;
        --footer-col-pad: 26px;
    }

    .site-footer__links {
        gap: 12px;
    }

    .site-footer__contact-list {
        gap: 16px;
    }

    .site-footer__social {
        gap: 12px;
    }

    .site-footer__copy,
    .site-footer__legal-link {
        font-size: 16px;
    }

    .site-footer__shape {
        width: 110px;
    }

    /* Legal text clears the smaller corner shapes */
    .site-footer__bottom {
        padding-inline: 72px;
    }
}

/* iPad portrait: 2 × 2 grid, dividers off */
@media (max-width: 1023px) {
    .site-footer {
        --footer-body: 17px;
        --footer-logo: 250px;
    }

    .site-footer__grid {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        gap: 56px 48px;
    }

    .site-footer__col,
    .site-footer__brand {
        padding: 0;
        border-left: 0;
    }

    .site-footer__shape {
        width: 84px;
    }

    .site-footer__bottom {
        padding-inline: 56px;
    }
}

/* Mobile: single column */
@media (max-width: 767px) {
    .site-footer {
        --footer-body: 16px;
        --footer-title: 21px;
        --footer-icon: 46px;
        --footer-logo: 210px;
        padding-top: 56px;
    }

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

    .site-footer__title {
        margin-bottom: 24px;
        padding-bottom: 14px;
    }

    /* Links keep a comfortable tap target */
    .site-footer__links {
        gap: 4px;
    }

    .site-footer__link {
        padding: 6px 0;
    }

    .site-footer__bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
        margin-top: 48px;
        padding: 24px 0 48px;
    }

    .site-footer__legal {
        padding-left: 0;
        border-left: 0;
    }

    /* Wrapping links: spacing instead of dividers so no orphan line appears */
    .site-footer__legal-list {
        gap: 8px 24px;
    }

    .site-footer__legal-list li + li {
        margin-left: 0;
        padding-left: 0;
        border-left: 0;
    }

    .site-footer__copy,
    .site-footer__legal-link {
        font-size: 15px;
    }

    /* Keep the corners as a quiet accent that never sits on text */
    .site-footer__shape {
        width: 64px;
        opacity: 0.5;
    }

    .site-footer__shape--left {
        display: none;
    }
}

@media (max-width: 359px) {
    .site-footer__legal-list {
        flex-direction: column;
        align-items: flex-start;
    }
}
