/* ==========================================================================
   Sajil - footer

   Loaded by templates/web/includes/footer.html itself, so no other template
   changes. Everything is scoped to .sj-footer / .sjf-*, so the old .footer
   rules in style.css cannot clash with it.

   footer-effects.js adds the reveal-on-scroll, the back-to-top ring and the
   current year; without it the footer is complete and fully visible.
   ========================================================================== */

.sj-footer {
  --f-ink: #082c2b;
  --f-ink-2: #0b3936;
  --f-teal: #2c5f5a;
  --f-mint: #4aaaa4;
  --f-cyan: #00efd2;
  --f-text: rgba(225, 245, 242, .78);
  --f-soft: rgba(225, 245, 242, .55);
  --f-line: rgba(0, 239, 210, .14);

  position: relative;
  isolation: isolate;
  display: flow-root;             /* keeps the CTA's negative margin inside */
  margin-top: 150px;
  padding: 0 24px 26px;
  color: var(--f-text);
  background:
    radial-gradient(900px 420px at 12% 0%, rgba(0, 239, 210, .16), transparent 60%),
    radial-gradient(700px 380px at 92% 85%, rgba(74, 170, 164, .18), transparent 60%),
    linear-gradient(180deg, var(--f-ink-2) 0%, var(--f-ink) 55%, #051f1e 100%);
  border-radius: 48px 48px 0 0;
  overflow-x: clip;
  text-align: start;
  direction: inherit;
  font-family: inherit;
}

/* Sadu-style pattern, very faint */
.sj-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='72' height='72' viewBox='0 0 72 72'%3E%3Cg fill='none' stroke='%2300efd2' stroke-width='1.2'%3E%3Cpath d='M36 6 L66 36 L36 66 L6 36 Z'/%3E%3Cpath d='M36 20 L52 36 L36 52 L20 36 Z'/%3E%3Cpath d='M0 0 L12 12 M72 0 L60 12 M0 72 L12 60 M72 72 L60 60'/%3E%3C/g%3E%3Cpath d='M36 31 L41 36 L36 41 L31 36 Z' fill='%2300efd2'/%3E%3C/svg%3E");
  background-size: 72px 72px;
  opacity: .045;
  -webkit-mask: linear-gradient(180deg, transparent 0, #000 30%, #000 70%, transparent 100%);
  mask: linear-gradient(180deg, transparent 0, #000 30%, #000 70%, transparent 100%);
  pointer-events: none;
}

/* the old footer forced LTR; this one follows the page */
.sj-footer * {
  box-sizing: border-box;
}

/* style.css has a global `span { color: #666 }` - spans here inherit instead */
:where(.sj-footer) span {
  color: inherit;
}

.sjf-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.sj-footer svg {
  fill: currentColor;
}

.sjf-ico {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

/* ------------------------------------------------------------------ CTA */

.sjf-cta {
  position: relative;
  overflow: hidden;
  max-width: 1180px;
  margin: -100px auto 0;          /* floats half over the top edge */
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 38px 44px;
  border-radius: 32px;
  color: var(--f-ink);
  background:
    linear-gradient(120deg, #00efd2 0%, #43d8c4 45%, #4aaaa4 100%);
  box-shadow:
    0 30px 60px -25px rgba(0, 239, 210, .55),
    0 18px 40px -20px rgba(8, 44, 43, .6),
    inset 0 1px 0 rgba(255, 255, 255, .5);
}

.sjf-cta__text {
  position: relative;
  z-index: 1;
  max-width: 620px;
}

.sjf-cta__kicker {
  display: inline-block;
  padding: 5px 12px;
  margin-bottom: 10px;
  border-radius: 999px;
  background: rgba(8, 44, 43, .12);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .02em;
}

.sjf-cta__title {
  margin: 0 0 8px;
  font-size: clamp(1.5rem, 3vw, 2.3rem) !important;
  font-weight: 800;
  line-height: 1.3;
  color: var(--f-ink) !important;
}

.sjf-cta__sub {
  margin: 0;
  font-size: 15px;
  line-height: 1.8;
  color: rgba(8, 44, 43, .78);
}

.sjf-cta__actions {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  flex-shrink: 0;
}

.sjf-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 24px;
  border-radius: 16px;
  font-size: 15px;
  font-weight: 800;
  text-decoration: none !important;
  white-space: nowrap;
  transition: transform .3s ease, box-shadow .3s ease, background .3s ease;
}

.sjf-btn--dark {
  background: var(--f-ink);
  color: var(--f-cyan) !important;
  box-shadow: 0 14px 28px -14px rgba(8, 44, 43, .9);
}

.sjf-btn--ghost {
  background: rgba(255, 255, 255, .35);
  color: var(--f-ink) !important;
  box-shadow: inset 0 0 0 1.5px rgba(8, 44, 43, .35);
}

.sjf-btn:hover {
  transform: translateY(-3px);
}

.sjf-btn--dark:hover {
  box-shadow: 0 20px 34px -14px rgba(8, 44, 43, 1);
}

.sjf-btn--ghost:hover {
  background: rgba(255, 255, 255, .6);
}

/* floating light orbs inside the card */
.sjf-cta__orb {
  position: absolute;
  z-index: 0;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  inset-inline-end: -70px;
  top: -120px;
  background: radial-gradient(circle at 35% 35%, rgba(255, 255, 255, .55), rgba(255, 255, 255, 0) 65%);
  animation: sjfFloat 9s ease-in-out infinite;
  pointer-events: none;
}

.sjf-cta__orb--2 {
  width: 180px;
  height: 180px;
  inset-inline-end: 34%;
  top: auto;
  bottom: -110px;
  background: radial-gradient(circle at 50% 50%, rgba(8, 44, 43, .18), rgba(8, 44, 43, 0) 70%);
  animation-duration: 12s;
  animation-direction: reverse;
}

/* --------------------------------------------------------------- road */

.sjf-road {
  position: relative;
  max-width: 1180px;
  height: 34px;
  margin: 46px auto 8px;
}

.sjf-road__line {
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 2px;
  margin-top: -1px;
  background: repeating-linear-gradient(90deg, rgba(0, 239, 210, .45) 0 18px, transparent 18px 34px);
  -webkit-mask: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  animation: sjfDash 1.2s linear infinite;
}

.sjf-road__car {
  position: absolute;
  top: 50%;
  left: 0;
  width: 52px;
  height: 26px;
  margin-top: -19px;
  color: var(--f-cyan);
  filter: drop-shadow(0 0 10px rgba(0, 239, 210, .8));
  animation: sjfDrive 14s cubic-bezier(.45, 0, .55, 1) infinite;
}

.sjf-road__car svg {
  width: 100%;
  height: 100%;
}

/* in Arabic the car drives right to left */
[dir="rtl"] .sjf-road__car {
  animation-name: sjfDriveRtl;
}

[dir="rtl"] .sjf-road__line {
  animation-direction: reverse;
}

/* -------------------------------------------------------------- perks */

.sjf-perks {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.sjf-perks li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, .035);
  border: 1px solid var(--f-line);
  font-size: 14px;
  font-weight: 700;
  color: #e8fbf8;
  transition: transform .3s ease, border-color .3s ease, background .3s ease;
}

.sjf-perks li:hover {
  transform: translateY(-3px);
  border-color: rgba(0, 239, 210, .4);
  background: rgba(0, 239, 210, .06);
}

.sjf-perks__ico {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  border-radius: 13px;
  color: var(--f-ink);
  background: linear-gradient(135deg, var(--f-cyan), var(--f-mint));
  box-shadow: 0 8px 18px -8px rgba(0, 239, 210, .7);
}

.sjf-perks__ico svg {
  width: 19px;
  height: 19px;
}

/* --------------------------------------------------------- main columns */

.sjf-grid {
  max-width: 1180px;
  margin: 54px auto 0;
  display: grid;
  grid-template-columns: 1.45fr 1fr 1.35fr 1.15fr;
  gap: 40px;
}

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

.sjf-h {
  position: relative;
  margin: 0 0 20px !important;
  padding-bottom: 12px;
  font-size: 16px !important;
  font-weight: 800;
  color: #fff !important;
}

.sjf-h::after {
  content: "";
  position: absolute;
  bottom: 0;
  inset-inline-start: 0;
  width: 34px;
  height: 3px;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--f-cyan), var(--f-mint));
}

/* brand */
.sjf-logo img {
  display: block;
  width: 150px;
  height: auto;
  margin-bottom: 18px;
  filter: drop-shadow(0 6px 18px rgba(0, 239, 210, .25));
}

.sjf-brand__text {
  margin: 0 0 26px;
  font-size: 14.5px;
  line-height: 1.95;
  color: var(--f-text);
  max-width: 360px;
}

.sjf-brand .sjf-h {
  margin-bottom: 16px !important;
}

.sjf-social {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.sjf-social a {
  --brand: var(--f-cyan);
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 13px;
  color: #dff8f4;
  background: rgba(255, 255, 255, .05);
  border: 1px solid var(--f-line);
  transition: transform .35s cubic-bezier(.3, 1.5, .5, 1), background .3s ease, color .3s ease, box-shadow .3s ease, border-color .3s ease;
}

.sjf-social a svg {
  width: 18px;
  height: 18px;
}

.sjf-social a.is-x  { --brand: #000; }
.sjf-social a.is-ig { --brand: linear-gradient(45deg, #f9ce34, #ee2a7b 50%, #6228d7); }
.sjf-social a.is-fb { --brand: #1877f2; }
.sjf-social a.is-in { --brand: #0a66c2; }
.sjf-social a.is-sc { --brand: #fffc00; }
.sjf-social a.is-tt { --brand: #010101; }

.sjf-social a:hover {
  transform: translateY(-5px) rotate(-6deg);
  color: #fff;
  background: var(--brand);
  border-color: transparent;
  box-shadow: 0 14px 24px -12px rgba(0, 0, 0, .7);
}

.sjf-social a.is-sc:hover {
  color: #111;
}

.sjf-social a.is-x:hover,
.sjf-social a.is-tt:hover {
  box-shadow: 0 14px 24px -12px rgba(0, 0, 0, .7), inset 0 0 0 1px rgba(255, 255, 255, .25);
}

/* quick links */
.sjf-links {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 4px;
}

.sjf-links a {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 0;
  color: var(--f-text) !important;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none !important;
  transition: color .3s ease, transform .3s ease;
}

.sjf-links a::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--f-mint);
  opacity: .5;
  transition: width .3s ease, border-radius .3s ease, background .3s ease, opacity .3s ease;
}

.sjf-links a:hover {
  color: #fff !important;
  transform: translateX(4px);
}

[dir="rtl"] .sjf-links a:hover {
  transform: translateX(-4px);
}

.sjf-links a:hover::before {
  width: 16px;
  border-radius: 3px;
  background: var(--f-cyan);
  opacity: 1;
}

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

.sjf-contact a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px;
  margin-inline-start: -8px;
  border-radius: 16px;
  text-decoration: none !important;
  transition: background .3s ease;
}

.sjf-contact a:hover {
  background: rgba(0, 239, 210, .06);
}

.sjf-contact__ico {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  color: var(--f-cyan);
  background: rgba(0, 239, 210, .09);
  border: 1px solid var(--f-line);
  transition: transform .35s cubic-bezier(.3, 1.5, .5, 1), background .3s ease, color .3s ease;
}

.sjf-contact__ico svg {
  width: 16px;
  height: 16px;
}

.sjf-contact a:hover .sjf-contact__ico {
  transform: scale(1.1) rotate(-8deg);
  color: var(--f-ink);
  background: var(--f-cyan);
}

.sjf-contact__txt {
  display: grid;
  min-width: 0;
}

.sjf-contact__txt small {
  font-size: 12px;
  color: var(--f-soft);
}

.sjf-contact__txt b {
  font-size: 14.5px;
  font-weight: 700;
  color: #fff;
  overflow-wrap: anywhere;
}

[dir="rtl"] .sjf-contact__txt b[dir="ltr"] {
  text-align: right;
}

/* apps */
.sjf-apps__text {
  margin: 0 0 16px;
  font-size: 14px;
  line-height: 1.8;
  color: var(--f-text);
}

.sjf-stores {
  display: grid;
  gap: 10px;
  max-width: 220px;
}

.sjf-store {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  border-radius: 14px;
  color: #fff !important;
  background: rgba(0, 0, 0, .35);
  border: 1px solid rgba(255, 255, 255, .16);
  text-decoration: none !important;
  transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease;
}

.sjf-store svg {
  width: 24px;
  height: 24px;
  flex: 0 0 auto;
}

.sjf-store span {
  display: grid;
  line-height: 1.15;
  text-align: left;
}

.sjf-store small {
  font-size: 10.5px;
  opacity: .75;
  font-family: 'Montserrat', sans-serif;
}

.sjf-store b {
  font-size: 16px;
  font-weight: 700;
  font-family: 'Montserrat', sans-serif;
}

.sjf-store::after {
  content: "";
  position: absolute;
  top: 0;
  left: -70%;
  width: 50%;
  height: 100%;
  background: linear-gradient(100deg, transparent, rgba(0, 239, 210, .25), transparent);
  transform: skewX(-20deg);
  transition: left .7s ease;
}

.sjf-store:hover {
  transform: translateY(-3px);
  border-color: rgba(0, 239, 210, .55);
  box-shadow: 0 14px 26px -14px rgba(0, 239, 210, .55);
}

.sjf-store:hover::after {
  left: 130%;
}

/* ------------------------------------------------------- giant wordmark */

.sjf-word {
  max-width: 1180px;
  margin: 46px auto -0.18em;
  direction: ltr;
  text-align: center;
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: clamp(84px, 19vw, 250px);
  line-height: 1;
  letter-spacing: .06em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(0, 239, 210, .22);
  background: linear-gradient(100deg,
      rgba(0, 239, 210, 0) 30%, rgba(0, 239, 210, .35) 50%, rgba(0, 239, 210, 0) 70%);
  background-size: 250% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  animation: sjfShine 7s linear infinite;
  user-select: none;
  pointer-events: none;
}

/* ---------------------------------------------------------- bottom bar */

.sjf-bottom {
  position: relative;
  max-width: 1180px;
  margin: 0 auto;
  padding-top: 20px;
  border-top: 1px solid var(--f-line);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 20px;
  font-size: 13.5px;
}

.sjf-bottom p {
  margin: 0;
  color: var(--f-soft);
}

.sjf-made::after {
  content: "";
  display: inline-block;
  width: 18px;
  height: 12px;
  margin-inline-start: 8px;
  vertical-align: -1px;
  border-radius: 2px;
  background: #006c35;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .15);
}

/* ---------------------------------------------------------- back to top */

.sjf-top {
  --f-cyan: #00efd2;              /* set here too: the script moves this button to <body> */
  position: fixed;
  z-index: 900;
  bottom: 22px;
  inset-inline-end: 22px;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  color: var(--f-cyan) !important;
  background: rgba(8, 44, 43, .9);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: 0 14px 30px -12px rgba(8, 44, 43, .9);
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px) scale(.9);
  transition: opacity .35s ease, transform .35s ease, visibility .35s;
  text-decoration: none !important;
}

.sjf-top.is-on {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.sjf-top:hover {
  transform: translateY(-3px);
}

.sjf-top__ring {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.sjf-top__ring circle {
  fill: none;
  stroke: var(--f-cyan);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-dasharray: 132;
  stroke-dashoffset: calc(132 - 132 * var(--p, 0));
  filter: drop-shadow(0 0 4px rgba(0, 239, 210, .8));
}

.sjf-top__arrow {
  width: 16px;
  height: 16px;
  transition: transform .3s ease;
  fill: #00f1d4
}

.sjf-top:hover .sjf-top__arrow {
  transform: translateY(-3px);
}

/* ------------------------------------------------------ reveal on scroll
   footer-effects.js adds .sjf-anim to the footer first, so without the
   script nothing is hidden. */

.sj-footer.sjf-anim .sjf-reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .8s ease, transform .8s cubic-bezier(.2, .9, .25, 1);
}

.sj-footer.sjf-anim .sjf-reveal.is-in {
  opacity: 1;
  transform: none;
}

.sj-footer.sjf-anim .sjf-perks li:nth-child(2) { transition-delay: .08s; }
.sj-footer.sjf-anim .sjf-perks li:nth-child(3) { transition-delay: .16s; }
.sj-footer.sjf-anim .sjf-perks li:nth-child(4) { transition-delay: .24s; }
.sj-footer.sjf-anim .sjf-grid .sjf-col:nth-child(2) { transition-delay: .08s; }
.sj-footer.sjf-anim .sjf-grid .sjf-col:nth-child(3) { transition-delay: .16s; }
.sj-footer.sjf-anim .sjf-grid .sjf-col:nth-child(4) { transition-delay: .24s; }

/* ----------------------------------------------------------- responsive */

@media (max-width: 1100px) {
  .sjf-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 38px 32px;
  }

  .sjf-perks {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .sjf-cta {
    flex-direction: column;
    align-items: flex-start;
    padding: 30px 26px;
  }
}

@media (max-width: 768px) {
  .sj-footer {
    margin-top: 130px;
    padding: 0 16px 96px;          /* room for the back-to-top button */
    border-radius: 32px 32px 0 0;
  }

  .sjf-cta {
    margin-top: -90px;
    border-radius: 24px;
    padding: 26px 20px;
    gap: 20px;
  }

  .sjf-cta__sub {
    font-size: 14px;
  }

  .sjf-cta__actions {
    width: 100%;
  }

  .sjf-btn {
    flex: 1 1 auto;
  }

  .sjf-road {
    margin-top: 30px;
  }

  .sjf-perks li {
    padding: 12px;
    font-size: 13px;
    gap: 10px;
  }

  .sjf-perks__ico {
    width: 36px;
    height: 36px;
    border-radius: 11px;
  }

  .sjf-grid {
    margin-top: 40px;
  }

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

  .sjf-bottom {
    flex-direction: column;
    text-align: center;
  }

  .sjf-top {
    bottom: 16px;
    inset-inline-end: 16px;
    width: 48px;
    height: 48px;
  }
}

@media (max-width: 520px) {
  .sjf-perks {
    grid-template-columns: minmax(0, 1fr);
  }

  .sjf-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }

  .sjf-links {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 16px;
  }

  .sjf-stores {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: none;
  }

  .sjf-store {
    padding: 10px 12px;
    gap: 8px;
  }

  .sjf-store b {
    font-size: 14px;
  }
}

/* ------------------------------------------------------------ keyframes */

@keyframes sjfFloat {
  0%, 100% { transform: translate(0, 0); }
  50%      { transform: translate(-30px, 24px); }
}

@keyframes sjfDash {
  to { background-position: 34px 0; }
}

@keyframes sjfDrive {
  0%   { left: 0;                  transform: none; }
  48%  { left: calc(100% - 52px);  transform: none; }
  50%  { left: calc(100% - 52px);  transform: scaleX(-1); }
  98%  { left: 0;                  transform: scaleX(-1); }
  100% { left: 0;                  transform: none; }
}

@keyframes sjfDriveRtl {
  0%   { left: calc(100% - 52px);  transform: scaleX(-1); }
  48%  { left: 0;                  transform: scaleX(-1); }
  50%  { left: 0;                  transform: none; }
  98%  { left: calc(100% - 52px);  transform: none; }
  100% { left: calc(100% - 52px);  transform: scaleX(-1); }
}

@keyframes sjfShine {
  from { background-position: 150% 0; }
  to   { background-position: -100% 0; }
}

@media (prefers-reduced-motion: reduce) {
  .sjf-road__car,
  .sjf-road__line,
  .sjf-cta__orb,
  .sjf-word {
    animation: none !important;
  }

  .sj-footer.sjf-anim .sjf-reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
