:root {
    --anaam-footer-ink: #063b28;
    --anaam-footer-deep: #052f20;
    --anaam-footer-mid: #075239;
    --anaam-footer-lime: #dbe99a;
    --anaam-footer-paper: #f4f7ec;
    --anaam-footer-white: #ffffff;
    --anaam-footer-muted: #bad0c3;
}

.anaam-footer {
    position: relative;
    overflow: hidden;
    padding: 0;
    color: var(--anaam-footer-white);
    background: var(--anaam-footer-ink) !important;
    font-family: "Tajawal", system-ui, sans-serif;
    text-align: right;
}

.anaam-footer *,
.anaam-footer *::before,
.anaam-footer *::after {
    box-sizing: border-box;
}

.anaam-footer a {
    color: inherit;
    text-decoration: none;
}

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

.anaam-footer section {
    margin: 0;
    padding: 0;
}

.anaam-footer .sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.anaam-footer__assurance {
    position: relative;
    z-index: 2;
    color: var(--anaam-footer-ink);
    background: var(--anaam-footer-lime);
}

.anaam-footer__assurance-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    min-height: 86px;
}

.anaam-footer__assurance-item {
    position: relative;
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 10px;
    padding: 22px 28px;
    text-align: center;
}

.anaam-footer__assurance-item + .anaam-footer__assurance-item::before {
    content: "";
    position: absolute;
    inset-block: 28px;
    inset-inline-start: 0;
    width: 3px;
    border-radius: 999px;
    background: rgba(6, 59, 40, 0.15);
}

.anaam-footer__assurance-item strong {
    color: var(--anaam-footer-ink);
    font-size: 17px;
    font-weight: 800;
    white-space: nowrap;
}

.anaam-footer__assurance-item span {
    color: #315c45;
    font-size: 14px;
    font-weight: 500;
}

.anaam-footer__main {
    position: relative;
    isolation: isolate;
    padding: 72px 0 52px;
    background:
        linear-gradient(128deg, var(--anaam-footer-ink) 0 66%, var(--anaam-footer-mid) 66% 100%);
}

.anaam-footer__heritage {
    position: absolute;
    z-index: -1;
    inset-inline-end: -18px;
    top: 20px;
    color: rgba(255, 255, 255, 0.045);
    font-size: clamp(150px, 20vw, 320px);
    font-weight: 800;
    line-height: 0.8;
    letter-spacing: -0.08em;
    direction: ltr;
    pointer-events: none;
    user-select: none;
}

.anaam-footer__content {
    position: relative;
    z-index: 1;
}

.anaam-footer__grid {
    display: grid;
    grid-template-columns: 1.35fr 0.72fr 1fr 1.18fr;
    gap: clamp(30px, 4vw, 64px);
    align-items: start;
}

.anaam-footer__logo-link {
    display: inline-flex;
    align-items: center;
    min-height: 92px;
}

.anaam-footer__logo {
    display: block;
    width: 180px;
    height: 90px;
    object-fit: contain;
}

.anaam-footer__summary {
    max-width: 340px;
    margin: 20px 0 10px;
    color: #e6f0ea;
    font-size: 16px;
    line-height: 1.9;
}

.anaam-footer__since {
    margin: 0;
    color: var(--anaam-footer-lime);
    font-size: 14px;
    font-weight: 700;
}

.anaam-footer__heading {
    margin: 5px 0 24px;
    color: var(--anaam-footer-white);
    font-size: 19px;
    font-weight: 800;
    line-height: 1.4;
}

.anaam-footer__nav ul {
    display: grid;
    gap: 13px;
}

.anaam-footer__nav a {
    display: inline-block;
    color: var(--anaam-footer-muted);
    font-size: 15px;
    line-height: 1.55;
    transition: color 180ms ease;
}

.anaam-footer__nav a:hover {
    color: var(--anaam-footer-white);
}

.anaam-footer__contact address {
    display: grid;
    gap: 17px;
    margin: 0;
    font-style: normal;
}

.anaam-footer__contact-row {
    display: grid;
    grid-template-columns: 20px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    color: var(--anaam-footer-muted);
    font-size: 15px;
    line-height: 1.6;
}

.anaam-footer__contact-row i {
    color: var(--anaam-footer-lime);
    font-size: 15px;
    text-align: center;
}

.anaam-footer__contact-row a {
    width: fit-content;
    color: var(--anaam-footer-white);
    font-weight: 500;
    transition: color 180ms ease;
}

.anaam-footer__contact-row a:hover {
    color: var(--anaam-footer-lime);
}

.anaam-footer__app p {
    max-width: 320px;
    margin: -7px 0 20px;
    color: var(--anaam-footer-muted);
    font-size: 15px;
    line-height: 1.8;
}

.anaam-footer__store-links {
    display: flex;
    align-items: center;
    gap: 10px;
    direction: ltr;
}

.anaam-footer__store-links a {
    display: flex;
    align-items: center;
    min-height: 48px;
    transition: opacity 180ms ease;
}

.anaam-footer__store-links a:hover {
    opacity: 0.82;
}

.anaam-footer__store-links img {
    display: block;
    width: auto;
    max-width: 100%;
    height: 48px;
}

.anaam-footer__social {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 22px;
    margin-top: 28px;
}

.anaam-footer__social a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    color: var(--anaam-footer-muted);
    font-size: 13px;
    font-weight: 500;
    transition: color 180ms ease;
}

.anaam-footer__social a:hover {
    color: var(--anaam-footer-white);
}

.anaam-footer__social i,
.anaam-footer__x-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    color: var(--anaam-footer-lime);
    font-size: 18px;
    line-height: 1;
}

.anaam-footer__x-mark {
    font-family: Arial, sans-serif;
    font-size: 15px;
    font-weight: 700;
}

.anaam-footer__credentials {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(300px, 0.85fr);
    gap: 32px;
    align-items: center;
    margin-top: 52px;
    padding: 28px 32px;
    color: var(--anaam-footer-ink);
    background: var(--anaam-footer-paper);
    border-radius: 18px 18px 6px 18px;
    box-shadow: 0 8px 18px rgba(2, 34, 22, 0.16);
}

.anaam-footer__payments {
    display: grid;
    grid-template-columns: minmax(210px, 0.8fr) minmax(0, 1.45fr);
    gap: 24px;
    align-items: center;
}

.anaam-footer__credential-copy h2 {
    margin: 0 0 6px;
    color: var(--anaam-footer-ink);
    font-size: 18px;
    font-weight: 800;
    line-height: 1.45;
}

.anaam-footer__credential-copy p {
    margin: 0;
    color: #547160;
    font-size: 13px;
    line-height: 1.65;
}

.anaam-footer__payment-marks {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 15px;
    direction: ltr;
}

.anaam-footer__payment-marks img {
    display: block;
    width: auto;
    max-width: 66px;
    height: 38px;
    object-fit: contain;
}

.anaam-footer__trust {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 22px;
    min-width: 0;
}

.anaam-footer__trust-link {
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    min-width: 0;
}

.anaam-footer__trust-link img {
    display: block;
    width: 64px;
    height: 48px;
    object-fit: contain;
}

.anaam-footer__trust-link span {
    display: grid;
    gap: 2px;
}

.anaam-footer__trust-link strong {
    color: var(--anaam-footer-ink);
    font-size: 14px;
    font-weight: 800;
}

.anaam-footer__trust-link small {
    color: #547160;
    font-size: 11px;
    line-height: 1.45;
}

.anaam-footer__security-link {
    display: flex;
    align-items: center;
    min-height: 44px;
    opacity: 0.85;
    transition: opacity 180ms ease;
}

.anaam-footer__security-link:hover {
    opacity: 1;
}

.anaam-footer__security-link img {
    display: block;
    width: auto;
    max-width: 108px;
    height: 42px;
    object-fit: contain;
}

.anaam-footer__bottom {
    position: relative;
    z-index: 2;
    padding: 22px 0;
    background: var(--anaam-footer-deep);
}

.anaam-footer__bottom-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
}

.anaam-footer__bottom p {
    margin: 0;
    color: #d9e5de;
    font-size: 13px;
    line-height: 1.6;
}

/* Keep footer copy readable when legacy theme rules target generic footer paragraphs. */
footer.anaam-footer .anaam-footer__summary {
    color: #e6f0ea !important;
}

footer.anaam-footer .anaam-footer__since {
    color: var(--anaam-footer-lime) !important;
}

footer.anaam-footer .anaam-footer__app p {
    color: var(--anaam-footer-muted) !important;
}

footer.anaam-footer .anaam-footer__bottom p {
    color: #d9e5de !important;
}

.anaam-footer__bottom nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 12px 24px;
}

.anaam-footer__bottom nav a {
    color: #a9c1b4;
    font-size: 12px;
    transition: color 180ms ease;
}

.anaam-footer__bottom nav a:hover {
    color: var(--anaam-footer-white);
}

.anaam-footer a:focus-visible {
    outline: 3px solid var(--anaam-footer-lime);
    outline-offset: 4px;
    border-radius: 4px;
}

@media (max-width: 1199px) {
    .anaam-footer__grid {
        grid-template-columns: 1.3fr 0.7fr 1fr;
    }

    .anaam-footer__app {
        grid-column: 1 / -1;
        display: grid;
        grid-template-columns: 1fr 1fr;
        column-gap: 30px;
        align-items: center;
    }

    .anaam-footer__app .anaam-footer__heading,
    .anaam-footer__app p {
        grid-column: 1;
    }

    .anaam-footer__app .anaam-footer__store-links {
        grid-column: 2;
        grid-row: 1 / span 2;
        justify-content: flex-start;
    }

    .anaam-footer__credentials {
        grid-template-columns: 1fr;
    }

    .anaam-footer__trust {
        justify-content: space-between;
    }
}

@media (max-width: 991px) {
    .anaam-footer__assurance-item {
        flex-direction: column;
        align-items: center;
        gap: 3px;
        padding-inline: 18px;
    }

    .anaam-footer__main {
        padding-top: 58px;
    }

    .anaam-footer__grid {
        grid-template-columns: 1.3fr 0.7fr;
    }

    .anaam-footer__contact {
        grid-column: 2;
    }

    .anaam-footer__app {
        grid-column: 1 / -1;
    }

    .anaam-footer__payments {
        grid-template-columns: 1fr;
    }

    .anaam-footer__payment-marks {
        flex-wrap: wrap;
    }
}

@media (max-width: 767px) {
    .anaam-footer__assurance-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        min-height: 86px;
        padding: 0;
    }

    .anaam-footer__assurance-item {
        min-width: 0;
        min-height: 86px;
        padding: 12px 6px;
    }

    .anaam-footer__assurance-item + .anaam-footer__assurance-item::before {
        inset-block: 20px;
        inset-inline: auto 0;
        width: 2px;
        height: auto;
    }

    .anaam-footer__assurance-item strong {
        font-size: 14px;
        white-space: normal;
    }

    .anaam-footer__assurance-item span {
        font-size: 11px;
        line-height: 1.45;
    }

    .anaam-footer__main {
        padding: 34px 0 28px;
        background:
            linear-gradient(155deg, var(--anaam-footer-ink) 0 72%, var(--anaam-footer-mid) 72% 100%);
    }

    .anaam-footer__heritage {
        display: none;
    }

    .anaam-footer__grid {
        grid-template-columns: minmax(0, 0.72fr) minmax(0, 1.28fr);
        gap: 28px 24px;
    }

    .anaam-footer__brand,
    .anaam-footer__app {
        grid-column: 1 / -1;
    }

    .anaam-footer__brand {
        display: grid;
        grid-template-columns: 126px minmax(0, 1fr);
        column-gap: 16px;
        align-items: center;
    }

    .anaam-footer__logo-link {
        grid-row: 1 / span 2;
        min-height: 70px;
    }

    .anaam-footer__logo {
        width: 126px;
        height: 70px;
    }

    .anaam-footer__summary,
    .anaam-footer__app p {
        max-width: 100%;
    }

    .anaam-footer__summary {
        margin: 0;
        font-size: 14px;
        line-height: 1.7;
    }

    .anaam-footer__since {
        display: none;
    }

    .anaam-footer__social {
        grid-column: 2;
        justify-content: flex-start;
        gap: 14px;
        margin-top: 2px;
    }

    .anaam-footer__social a > span:last-child {
        display: none;
    }

    .anaam-footer__social a {
        min-width: 30px;
        min-height: 36px;
        justify-content: center;
    }

    .anaam-footer__nav {
        grid-column: 1;
    }

    .anaam-footer__contact {
        grid-column: 2;
    }

    .anaam-footer__app {
        display: grid;
        grid-template-columns: 104px minmax(0, 1fr);
        gap: 12px;
        align-items: center;
    }

    .anaam-footer__app .anaam-footer__heading,
    .anaam-footer__app .anaam-footer__store-links {
        grid-column: auto;
        grid-row: auto;
    }

    .anaam-footer__app .anaam-footer__heading {
        margin: 0;
    }

    .anaam-footer__heading {
        margin: 0 0 14px;
        font-size: 17px;
    }

    .anaam-footer__nav ul {
        grid-template-columns: 1fr;
        gap: 9px;
    }

    .anaam-footer__nav a,
    .anaam-footer__contact-row {
        font-size: 13px;
    }

    .anaam-footer__contact address {
        gap: 11px;
    }

    .anaam-footer__contact-row {
        grid-template-columns: 17px minmax(0, 1fr);
        gap: 8px;
    }

    .anaam-footer__contact-row a {
        max-width: 100%;
        overflow-wrap: anywhere;
    }

    .anaam-footer__app p {
        display: none;
    }

    .anaam-footer__store-links {
        justify-content: flex-start;
    }

    .anaam-footer__store-links a {
        flex: 1 1 0;
        min-width: 0;
    }

    .anaam-footer__store-links img {
        width: 100%;
        height: auto;
        max-height: 44px;
    }

    .anaam-footer__credentials {
        gap: 20px;
        margin-top: 28px;
        padding: 18px;
        border-radius: 14px 14px 5px 14px;
    }

    .anaam-footer__payments {
        gap: 14px;
    }

    .anaam-footer__credential-copy h2 {
        margin: 0;
        font-size: 16px;
    }

    .anaam-footer__credential-copy p {
        display: none;
    }

    .anaam-footer__payment-marks {
        display: grid;
        grid-template-columns: repeat(6, minmax(0, 1fr));
        gap: 8px;
    }

    .anaam-footer__payment-marks img {
        width: 100%;
        max-width: 52px;
        height: 30px;
        margin: 0 auto;
    }

    .anaam-footer__trust {
        align-items: center;
        justify-content: space-between;
        gap: 14px;
    }

    .anaam-footer__trust-link {
        grid-template-columns: 54px minmax(0, 1fr);
        gap: 9px;
    }

    .anaam-footer__trust-link img {
        width: 54px;
        height: 40px;
    }

    .anaam-footer__security-link img {
        max-width: 92px;
        height: 36px;
    }

    .anaam-footer__bottom-inner {
        gap: 10px;
    }

    .anaam-footer__bottom nav {
        justify-content: flex-start;
        gap: 8px 16px;
    }

    .anaam-footer__bottom {
        padding: 16px 0;
    }
}

@media (max-width: 420px) {
    .anaam-footer__social {
        gap-inline: 16px;
    }

    .anaam-footer__social a {
        font-size: 12px;
    }

    .anaam-footer__store-links {
        gap: 8px;
    }

    .anaam-footer__store-links img {
        width: 100%;
        max-width: 120px;
        height: auto;
    }

    .anaam-footer__payment-marks img {
        width: 100%;
        max-width: 48px;
        margin: 0 auto;
    }

    .anaam-footer__trust-link small {
        display: none;
    }
}

@media (max-width: 360px) {
    .anaam-footer__brand {
        grid-template-columns: 112px minmax(0, 1fr);
        column-gap: 12px;
    }

    .anaam-footer__logo {
        width: 112px;
        height: 62px;
    }

    .anaam-footer__summary {
        font-size: 13px;
    }

    .anaam-footer__app {
        grid-template-columns: 1fr;
    }

    .anaam-footer__app .anaam-footer__heading {
        display: none;
    }

    .anaam-footer__store-links {
        width: 100%;
    }

    .anaam-footer__store-links img {
        max-width: 126px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .anaam-footer a {
        transition: none !important;
    }
}
