@import url('https://fonts.googleapis.com/css2?family=Source+Sans+3:wght@300;400;500;600;700&family=Cairo:wght@400;600;700&display=swap');

/* =========================================================================
   Unified Dar Noora footer — self-contained styles for the INTERNAL (alukas)
   pages. Everything is scoped under .dn-site-footer (and its own CSS variables)
   so it never clashes with the alukas theme. The home/design2 layout already
   gets these styles from galia.css, so this file is loaded ONLY by layout.main.
   ========================================================================= */
.dn-site-footer {
    --onyx:      #2d2a26;
    --line:      #3a352d;
    --ivory:     #faf0d2;
    --cream:     #f6dfa4;
    --ivory-dim: #c9bf9b;
    --muted:     #8a8170;
    --gold:      #f6dfa4;
    --gold-soft: #faf0d2;
    --sans:  "Source Sans 3", "Cairo", system-ui, sans-serif;
    --maxw:  1440px;
    --gutter: clamp(20px, 5vw, 70px);
    font-family: var(--sans);
}
.dn-site-footer *, .dn-site-footer *::before, .dn-site-footer *::after { box-sizing: border-box; }
.dn-site-footer ul   { list-style: none; margin: 0; padding: 0; }
.dn-site-footer p,
.dn-site-footer h5   { margin: 0; }
.dn-site-footer a    { text-decoration: none; color: inherit; }
.dn-site-footer img  { max-width: 100%; display: block; }
.dn-site-footer li   { line-height: 1.5; }
.dn-site-footer .container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }

/* ---------- Brand arch strip ---------- */
.dn-site-footer .brand-pattern { position: relative; background-color: #fff; overflow: hidden; isolation: isolate; }
.dn-site-footer .brand-pattern::before {
    content: ""; position: absolute; inset: 0;
    background-image: url("../../../images/darnoora/arch-strip.png");
    background-repeat: repeat-x; background-size: auto 100%; background-position: center;
    animation: dn-arch-drift 180s linear infinite; will-change: background-position;
}
.dn-site-footer .brand-pattern::after {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background: linear-gradient(90deg, #fff 0%, transparent 8%, transparent 92%, #fff 100%);
}
@keyframes dn-arch-drift { from { background-position: 0 center; } to { background-position: -1200px center; } }
@media (prefers-reduced-motion: reduce) { .dn-site-footer .brand-pattern::before { animation: none; } }
.dn-site-footer .brand-pattern-strip { height: 100px; margin-bottom: -1px; }

/* ---------- Footer ---------- */
.dn-site-footer .footer { background: var(--onyx); border-top: 1px solid var(--line); padding-top: clamp(56px, 8vw, 100px); color: var(--ivory); font-family: var(--sans); line-height: 1.7; }
.dn-site-footer .footer__top { display: flex; flex-wrap: wrap; gap: 44px; padding-bottom: 60px; border-bottom: 1px solid var(--line); }
.dn-site-footer .footer__brand { flex: 1 1 300px; }
.dn-site-footer .footer__col   { flex: 1 1 150px; min-width: 140px; }
.dn-site-footer .footer__brand img { height: 44px; filter: brightness(0) invert(1); margin-bottom: 22px; }
.dn-site-footer .footer__brand p { font-size: .92rem; color: var(--ivory-dim); max-width: 38ch; margin-bottom: 24px; }
.dn-site-footer .footer__social { display: flex; gap: 14px; flex-wrap: wrap; }
.dn-site-footer .footer__social a { width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 50%; display: grid; place-items: center; color: var(--ivory-dim); transition: background .3s, color .3s, border-color .3s; }
.dn-site-footer .footer__social a:hover { background: var(--gold); border-color: var(--gold); color: var(--onyx); }
.dn-site-footer .footer__col h5 { font-family: var(--sans); font-size: .68rem; letter-spacing: .24em; text-transform: uppercase; color: var(--gold); margin-bottom: 20px; font-weight: 700; }
.dn-site-footer .footer__col li { margin-bottom: 12px; }
.dn-site-footer .footer__col a { font-size: .9rem; color: var(--ivory-dim); transition: color .25s, padding-left .25s; }
.dn-site-footer .footer__col a:hover { color: var(--gold-soft); padding-left: 4px; }
.dn-site-footer .footer__bottom { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding-block: 28px; flex-wrap: wrap; }
.dn-site-footer .footer__bottom p { font-size: .78rem; color: var(--muted); }
.dn-site-footer .footer__pay { display: flex; gap: 12px; align-items: center; font-size: 1.6rem; color: var(--ivory-dim); }

/* RTL — slide links the other way on hover */
[dir="rtl"] .dn-site-footer .footer__col a:hover { padding-left: 0; padding-right: 4px; }

@media (max-width: 760px) {
    .dn-site-footer .footer__brand img { height: 64px; }
    .dn-site-footer .footer__bottom { flex-direction: column; text-align: center; padding-block: 22px; }
    .dn-site-footer .brand-pattern-strip { height: 64px; }
}
