/* ============================================================
   Ahlan Pet — premium footer.
   Same design language as the product/home premium systems
   (.pp tokens), namespaced under .pf. Self-contained tokens so
   it works on every page regardless of page-level stylesheets.
   Mobile-first, logical properties for RTL, reduced-motion aware.
   Loaded globally from the layout head.
   ============================================================ */

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

.pf {
    --pp-ink: #14231f;
    --pp-ink-soft: #5d6b66;
    --pp-line: #e8e6df;
    --pp-surface: #f6f5f0;
    --pp-card: #ffffff;
    --pp-primary: #0b7d67;
    --pp-primary-deep: #085e4e;
    --pp-primary-tint: #e6f4f0;
    --pp-accent: #b45309;
    --pp-r-lg: 20px;
    --pp-r-md: 14px;
    --pp-sh-1: 0 1px 2px rgb(20 35 31 / 6%), 0 1px 4px rgb(20 35 31 / 6%);
    --pp-sh-2: 0 2px 6px rgb(20 35 31 / 6%), 0 14px 34px -14px rgb(20 35 31 / 20%);
    --pp-ease: cubic-bezier(.22, .61, .21, 1);

    font-family: 'Public Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
    color: #fff;
}

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

.pf img {
    max-width: 100%;
}

.pf-container {
    width: 100%;
    max-width: 1320px;
    margin-inline: auto;
    padding-inline: 16px;
}

/* ---------- Trust bar (light band above the dark footer) ---------- */
.pf-services {
    background: var(--pp-surface);
    border-block-start: 1px solid var(--pp-line);
    padding-block: 22px 26px;
}

.pf-services-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.pf-service {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 13px 14px;
    background: var(--pp-card);
    border: 1px solid var(--pp-line);
    border-radius: var(--pp-r-md);
    box-shadow: var(--pp-sh-1);
    transition: transform .2s var(--pp-ease), border-color .2s var(--pp-ease);
}

.pf-service:hover {
    transform: translateY(-2px);
    border-color: var(--pp-primary);
}

.pf-service-icon {
    flex: 0 0 auto;
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: var(--pp-primary-tint);
}

.pf-service-icon img {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.pf-service h3 {
    margin: 0;
    font-size: .84rem;
    font-weight: 700;
    line-height: 1.3;
    color: var(--pp-ink);
}

/* ---------- Main footer (deep green) ---------- */
.pf-main {
    background:
        radial-gradient(120% 150% at 92% -20%, rgb(11 125 103 / 38%), transparent 55%),
        linear-gradient(120deg, #0f2c26, #123a31 55%, #0e4d40);
    padding-block: 40px 30px;
}

[dir="rtl"] .pf-main {
    background:
        radial-gradient(120% 150% at 8% -20%, rgb(11 125 103 / 38%), transparent 55%),
        linear-gradient(-120deg, #0f2c26, #123a31 55%, #0e4d40);
}

.pf-grid {
    display: grid;
    gap: 30px;
}

.pf-brand {
    display: flex;
    flex-direction: column;
    gap: 14px;
    min-width: 0;
}

.pf-logo {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    padding: 10px 16px;
    background: #fff;
    border-radius: var(--pp-r-md);
    box-shadow: var(--pp-sh-1);
    transition: transform .2s var(--pp-ease);
}

.pf-logo:hover {
    transform: translateY(-2px);
}

.pf-logo img {
    height: 44px;
    width: auto;
    max-width: 180px;
}

.pf-desc {
    margin: 0;
    max-width: 38ch;
    font-size: .88rem;
    line-height: 1.75;
    color: rgb(255 255 255 / 72%);
}

.pf-address {
    display: inline-flex;
    align-items: flex-start;
    gap: 9px;
    margin: 0;
    padding: 0;
    list-style: none;
    font-size: .85rem;
    line-height: 1.55;
    color: rgb(255 255 255 / 82%);
}

.pf-address i {
    flex: 0 0 auto;
    margin-top: .15em;
    color: #7fd4c1;
    font-size: .88rem;
}

.pf-address a:hover {
    color: #fff;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.pf-col {
    min-width: 0;
}

.pf-h {
    position: relative;
    margin: 0 0 14px;
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: #9fdccb;
}

.pf-links {
    display: grid;
    gap: 3px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.pf-links a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 5px 0;
    min-height: 34px;
    font-size: .87rem;
    line-height: 1.45;
    color: rgb(255 255 255 / 78%);
    transition: color .2s var(--pp-ease), translate .2s var(--pp-ease);
}

.pf-links a::before {
    content: "";
    flex: 0 0 auto;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: rgb(255 255 255 / 28%);
    transition: background .2s var(--pp-ease), scale .2s var(--pp-ease);
}

.pf-links a:hover {
    color: #fff;
    translate: 4px 0;
}

[dir="rtl"] .pf-links a:hover {
    translate: -4px 0;
}

.pf-links a:hover::before {
    background: var(--pp-accent);
    scale: 1.4;
}

/* Contact rows */
.pf-contact {
    display: grid;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.pf-contact-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 13px;
    background: rgb(255 255 255 / 7%);
    border: 1px solid rgb(255 255 255 / 12%);
    border-radius: var(--pp-r-md);
    transition: background .2s var(--pp-ease), border-color .2s var(--pp-ease), transform .2s var(--pp-ease);
}

.pf-contact-row:hover {
    background: rgb(255 255 255 / 12%);
    border-color: rgb(127 212 193 / 55%);
    transform: translateY(-2px);
}

.pf-contact-icon {
    flex: 0 0 auto;
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 11px;
    background: rgb(127 212 193 / 16%);
    color: #7fd4c1;
    font-size: .92rem;
}

.pf-contact-label {
    display: block;
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: rgb(255 255 255 / 55%);
}

.pf-contact-value {
    display: block;
    font-size: .92rem;
    font-weight: 700;
    color: #fff;
    overflow-wrap: anywhere;
}

/* ---------- Sub footer ---------- */
.pf-sub {
    background: #0a211c;
    border-block-start: 1px solid rgb(255 255 255 / 8%);
    padding-block: 18px;
}

.pf-sub-row {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    text-align: center;
}

.pf-copy {
    margin: 0;
    font-size: .8rem;
    color: rgb(255 255 255 / 58%);
}

.pf-payments {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 12px;
    background: #fff;
    border-radius: 10px;
    box-shadow: var(--pp-sh-1);
}

.pf-payments img {
    height: 22px;
    width: auto;
}

.pf-social {
    display: flex;
    align-items: center;
    gap: 10px;
}

.pf-social-label {
    margin: 0;
    font-size: .78rem;
    font-weight: 700;
    color: rgb(255 255 255 / 62%);
}

.pf-social ul {
    display: flex;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.pf-social a {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border: 1px solid rgb(255 255 255 / 16%);
    border-radius: 50%;
    background: rgb(255 255 255 / 7%);
    color: #fff;
    font-size: .95rem;
    transition: background .2s var(--pp-ease), border-color .2s var(--pp-ease), transform .2s var(--pp-ease);
}

.pf-social a:hover {
    background: var(--pp-primary);
    border-color: var(--pp-primary);
    transform: translateY(-3px);
}

/* ---------- ≥ 640: link pairs ---------- */
@media (min-width: 640px) {
    .pf-container {
        padding-inline: 24px;
    }

    .pf-grid {
        grid-template-columns: 1fr 1fr;
    }

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

    .pf-sub-row {
        flex-direction: row;
        text-align: start;
        flex-wrap: wrap;
    }
}

/* ---------- ≥ 1024: full five-column footer ---------- */
@media (min-width: 1024px) {
    .pf-services-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 14px;
    }

    .pf-main {
        padding-block: 54px 38px;
    }

    .pf-grid {
        grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) minmax(0, .9fr) minmax(0, .9fr) minmax(0, 1.3fr);
        gap: 34px;
    }

    .pf-brand {
        grid-column: auto;
    }

    .pf-service h3 {
        font-size: .88rem;
    }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
    .pf *,
    .pf *::before,
    .pf *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
}
