/* ═══════════════════════════════════════════════════════════════
   KILL LEGACY LOGO ANIMATIONS
   Neutralizes older animation rules so the final one wins.
   ═══════════════════════════════════════════════════════════════ */
.if-footer__logo--image img,
.if-footer__logo--image .custom-logo {
  
  
}
.if-footer__logo--image {
  
}

/* ═══════════════════════════════════════════════════════════════ */

/* ═══════════════════════════════════════════════════════════════
   IBRAHIM FASHION — Footer
   Trust strip, newsletter, main footer, bottom bar.
   Loaded after header.css.
   ═══════════════════════════════════════════════════════════════ */


/* ─────────────────────────────────────────────────────────────
   1. TRUST STRIP
   Sits above the footer. Small, elegant, informative.
   ───────────────────────────────────────────────────────────── */
.if-trust-strip {
  background: var(--if-ivory);
  border-top: 1px solid var(--if-line);
  border-bottom: 1px solid var(--if-line);
  padding-block: var(--if-s6);
}

.if-trust-strip__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--if-s5);
}

.if-trust-strip__item {
  display: flex;
  align-items: center;
  gap: var(--if-s4);
}

.if-trust-strip__icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border: 1px solid var(--if-gold);
  border-radius: var(--if-r-pill);
  display: grid;
  place-items: center;
  color: var(--if-gold-deep);
}

.if-trust-strip__icon svg {
  width: 18px;
  height: 18px;
}

.if-trust-strip__text strong {
  display: block;
  font-family: var(--if-font-body);
  font-size: var(--if-fs-sm);
  font-weight: var(--if-fw-semi);
  color: var(--if-charcoal);
  letter-spacing: 0.02em;
  margin-bottom: 2px;
}

.if-trust-strip__text span {
  font-size: var(--if-fs-xs);
  color: var(--if-muted);
}

@media (max-width: 1023px) {
  .if-trust-strip__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--if-s4);
  }
}

@media (max-width: 479px) {
  .if-trust-strip__grid {
    grid-template-columns: 1fr;
  }
}


/* ─────────────────────────────────────────────────────────────
   2. NEWSLETTER
   Premium newsletter block, dark background, gold accents.
   ───────────────────────────────────────────────────────────── */
.if-newsletter {
  background: var(--if-charcoal-bg);
  color: var(--if-champagne);
  padding-block: clamp(56px, 7vw, 88px);
  position: relative;
  overflow: hidden;
}

/* Subtle gold pattern */
.if-newsletter::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 15% 30%, rgba(198, 161, 91, 0.12), transparent 45%),
    radial-gradient(circle at 85% 70%, rgba(198, 161, 91, 0.08), transparent 45%);
  pointer-events: none;
}

.if-newsletter__inner {
  position: relative;
  z-index: 1;
  max-width: 640px;
  margin-inline: auto;
  text-align: center;
}

.if-newsletter__eyebrow {
  display: inline-block;
  font-size: var(--if-fs-xs);
  font-weight: var(--if-fw-medium);
  letter-spacing: var(--if-track-widest);
  text-transform: uppercase;
  color: var(--if-gold-soft);
  margin-bottom: var(--if-s3);
}

.if-newsletter h2 {
  color: var(--if-white);
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  margin-bottom: var(--if-s3);
}

.if-newsletter p {
  color: #B9B2A6;
  margin-bottom: var(--if-s6);
  font-size: var(--if-fs-body-lg);
}

.if-newsletter__form {
  display: flex;
  gap: 0;
  max-width: 520px;
  margin-inline: auto;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--if-r-sm);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.04);
  transition: border-color var(--if-dur-fast) var(--if-ease);
}

.if-newsletter__form:focus-within {
  border-color: var(--if-gold);
}

.if-newsletter__form input {
  flex: 1;
  padding: 16px 20px;
  background: transparent;
  border: 0;
  color: var(--if-white);
  font-size: var(--if-fs-sm);
  letter-spacing: 0.02em;
}

.if-newsletter__form input::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.if-newsletter__form input:focus {
  outline: none;
  box-shadow: none;
}

.if-newsletter__form button {
  padding: 16px 28px;
  background: var(--if-gold);
  color: var(--if-charcoal);
  font-size: var(--if-fs-xs);
  font-weight: var(--if-fw-semi);
  letter-spacing: var(--if-track-wide);
  text-transform: uppercase;
  transition: background var(--if-dur-fast) var(--if-ease);
  border-left: 1px solid rgba(255, 255, 255, 0.1);
}

.if-newsletter__form button:hover {
  background: var(--if-gold-soft);
}

.if-newsletter__note {
  margin-top: var(--if-s3);
  font-size: var(--if-fs-xs);
  color: rgba(255, 255, 255, 0.45);
}

@media (max-width: 599px) {
  .if-newsletter__form {
    flex-direction: column;
  }

  .if-newsletter__form button {
    border-left: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 16px;
  }
}


/* ─────────────────────────────────────────────────────────────
   3. MAIN FOOTER
   ───────────────────────────────────────────────────────────── */
.if-footer {
  background: var(--if-charcoal-bg);
  color: #B9B2A6;
  padding-block: clamp(64px, 7vw, 96px) var(--if-s6);
  font-size: var(--if-fs-sm);
}

.if-footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: clamp(32px, 5vw, 80px);
  margin-bottom: var(--if-s8);
}

/* Brand column */
.if-footer__brand {
  max-width: 380px;
}

.if-footer__logo {
  font-family: var(--if-font-display);
  font-size: 1.5rem;
  font-weight: var(--if-fw-medium);
  letter-spacing: var(--if-track-widest);
  text-transform: uppercase;
  color: var(--if-white);
  margin-bottom: var(--if-s4);
  display: inline-block;
}

.if-footer__logo b,
.if-footer__logo strong {
  color: var(--if-gold);
  font-weight: var(--if-fw-semi);
}

.if-footer__tagline {
  color: #B9B2A6;
  line-height: var(--if-lh-relaxed);
  margin-bottom: var(--if-s5);
  max-width: 40ch;
}

/* Footer column headings */
.if-footer__col h3,
.if-footer__title {
  font-family: var(--if-font-body);
  font-size: var(--if-fs-xs);
  font-weight: var(--if-fw-semi);
  letter-spacing: var(--if-track-widest);
  text-transform: uppercase;
  color: var(--if-white);
  margin-bottom: var(--if-s5);
  padding-bottom: var(--if-s3);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Footer lists */
.if-footer__list {
  display: grid;
  gap: var(--if-s3);
  list-style: none;
}

.if-footer__list a {
  color: #B9B2A6;
  font-size: var(--if-fs-sm);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color var(--if-dur-fast) var(--if-ease),
              padding-left var(--if-dur-fast) var(--if-ease);
  position: relative;
}

.if-footer__list a:hover {
  color: var(--if-gold-soft);
  padding-left: var(--if-s4);
}

.if-footer__list a::before {
  content: "→";
  position: absolute;
  left: 0;
  opacity: 0;
  transition: opacity var(--if-dur-fast) var(--if-ease);
  color: var(--if-gold);
}

.if-footer__list a:hover::before {
  opacity: 1;
}

/* Contact list — different style */
.if-footer__contact {
  display: grid;
  gap: var(--if-s4);
  margin-top: var(--if-s5);
}

.if-footer__contact-item {
  display: flex;
  gap: var(--if-s3);
  align-items: flex-start;
  font-size: var(--if-fs-sm);
  color: #B9B2A6;
}

.if-footer__contact-item a {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
}

.if-footer__contact-item svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 3px;
  color: var(--if-gold);
}

.if-footer__contact-item a {
  color: #B9B2A6;
  transition: color var(--if-dur-fast) var(--if-ease);
}

.if-footer__contact-item a:hover {
  color: var(--if-gold-soft);
}


/* ─────────────────────────────────────────────────────────────
   4. SOCIAL ICONS
   ───────────────────────────────────────────────────────────── */
.if-social {
  display: flex;
  gap: var(--if-s3);
  flex-wrap: wrap;
}

.if-social__link {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--if-r-pill);
  color: #B9B2A6;
  transition: all var(--if-dur-fast) var(--if-ease);
}

.if-social__link:hover {
  border-color: var(--if-gold);
  color: var(--if-gold);
  background: rgba(198, 161, 91, 0.08);
  transform: translateY(-2px);
}

.if-social__link svg {
  width: 16px;
  height: 16px;
}


/* ─────────────────────────────────────────────────────────────
   5. PAYMENT ICONS
   ───────────────────────────────────────────────────────────── */
.if-payments {
  display: flex;
  gap: var(--if-s3);
  flex-wrap: wrap;
  align-items: center;
}

.if-payments__item {
  height: 28px;
  padding: 0 10px;
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--if-r-xs);
  font-size: 0.65rem;
  font-weight: var(--if-fw-semi);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #B9B2A6;
}

.if-payments__item svg,
.if-payments__item img {
  height: 16px;
  width: auto;
}


/* ─────────────────────────────────────────────────────────────
   6. FOOTER BOTTOM BAR
   ───────────────────────────────────────────────────────────── */
.if-footer__bottom {
  padding-top: var(--if-s5);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--if-s5);
  flex-wrap: wrap;
  font-size: var(--if-fs-xs);
  color: rgba(255, 255, 255, 0.55);
}

.if-footer__bottom-links {
  display: flex;
  gap: var(--if-s4);
  flex-wrap: wrap;
}

.if-footer__bottom-links a {
  color: rgba(255, 255, 255, 0.55);
  transition: color var(--if-dur-fast) var(--if-ease);
}

.if-footer__bottom-links a:hover {
  color: var(--if-gold-soft);
}

.if-footer__bottom-links li + li::before {
  content: "·";
  margin-right: var(--if-s4);
  color: rgba(255, 255, 255, 0.2);
}


/* ─────────────────────────────────────────────────────────────
   7. COPYRIGHT
   ───────────────────────────────────────────────────────────── */
.if-footer__copy {
  font-size: var(--if-fs-xs);
  color: rgba(255, 255, 255, 0.5);
  letter-spacing: 0.02em;
}

.if-footer__copy strong {
  color: var(--if-gold-soft);
  font-weight: var(--if-fw-medium);
}


/* ─────────────────────────────────────────────────────────────
   8. PRE-FOOTER CTA
   Large dark section with dramatic headline above footer.
   ───────────────────────────────────────────────────────────── */
.if-pre-footer {
  background: var(--if-charcoal-bg);
  color: var(--if-white);
  padding-block: clamp(64px, 8vw, 120px);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.if-pre-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at center, rgba(198, 161, 91, 0.1), transparent 60%);
  pointer-events: none;
}

.if-pre-footer__inner {
  position: relative;
  z-index: 1;
  max-width: 720px;
  margin-inline: auto;
}

.if-pre-footer h2 {
  font-family: var(--if-font-display);
  font-size: clamp(1.8rem, 4vw, 3rem);
  color: var(--if-white);
  margin-bottom: var(--if-s4);
  line-height: var(--if-lh-tight);
}

.if-pre-footer p {
  color: #B9B2A6;
  font-size: var(--if-fs-body-lg);
  margin-bottom: var(--if-s6);
  max-width: 48ch;
  margin-inline: auto;
}

.if-pre-footer__actions {
  display: flex;
  justify-content: center;
  gap: var(--if-s3);
  flex-wrap: wrap;
}


/* ─────────────────────────────────────────────────────────────
   9. WHATSAPP FLOATING BUTTON
   ───────────────────────────────────────────────────────────── */
.if-whatsapp {
  position: fixed;
  bottom: calc(var(--if-s5) + env(safe-area-inset-bottom, 0));
  right: var(--if-s5);
  z-index: var(--if-z-sticky);
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: var(--if-r-pill);
  background: #25D366;
  color: #fff;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.35);
  transition: transform var(--if-dur) var(--if-ease-spring),
              box-shadow var(--if-dur) var(--if-ease);
}

.if-whatsapp:hover {
  transform: scale(1.08);
  color: #fff;
  box-shadow: 0 8px 28px rgba(37, 211, 102, 0.45);
}

.if-whatsapp svg {
  width: 26px;
  height: 26px;
  fill: currentColor;
}

@media (max-width: 1023px) {
  /* Move up so it doesn't overlap bottom nav */
  .if-whatsapp {
    bottom: calc(72px + var(--if-s4) + env(safe-area-inset-bottom, 0));
    right: var(--if-s4);
    width: 48px;
    height: 48px;
  }
}


/* ─────────────────────────────────────────────────────────────
   10. BACK TO TOP
   ───────────────────────────────────────────────────────────── */
.if-back-top {
  position: fixed;
  bottom: calc(var(--if-s5) + env(safe-area-inset-bottom, 0));
  right: calc(var(--if-s5) + 60px);
  z-index: var(--if-z-sticky);
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: var(--if-r-pill);
  background: var(--if-white);
  color: var(--if-charcoal);
  border: 1px solid var(--if-line);
  box-shadow: var(--if-shadow-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all var(--if-dur) var(--if-ease);
  cursor: pointer;
}

.if-back-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.if-back-top:hover {
  background: var(--if-charcoal);
  color: var(--if-white);
  border-color: var(--if-charcoal);
}

.if-back-top svg {
  width: 18px;
  height: 18px;
}

@media (max-width: 1023px) {
  .if-back-top {
    bottom: calc(72px + var(--if-s4) + env(safe-area-inset-bottom, 0));
    right: calc(var(--if-s4) + 56px);
  }
}

@media (max-width: 767px) {
  .if-back-top {
    display: none;
  }
}


/* ─────────────────────────────────────────────────────────────
   11. RESPONSIVE
   ───────────────────────────────────────────────────────────── */
@media (max-width: 1023px) {
  .if-footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--if-s7) var(--if-s5);
  }

  .if-footer__brand {
    grid-column: 1 / -1;
    max-width: 100%;
  }
}

@media (max-width: 599px) {
  .if-footer__grid {
    grid-template-columns: 1fr;
    gap: var(--if-s6);
  }

  .if-footer__bottom {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    gap: var(--if-s3);
  }

  .if-footer__bottom-links {
    gap: var(--if-s3);
  }

  .if-footer__bottom-links li + li::before {
    margin-right: var(--if-s3);
  }

  .if-pre-footer__actions .if-btn {
    width: 100%;
  }
}


/* ─────────────────────────────────────────────────────────────
   12. SAFETY
   ───────────────────────────────────────────────────────────── */
.if-footer,
.if-newsletter,
.if-pre-footer {
  max-width: 100vw;
  overflow-x: clip;
}







/* ═══════════════════════════════════════════════════════════════
   FOOTER LOGO - CINEMATIC REVEAL (Netflix/Apple keynote style)
   8 stages loop, 8 second cycle. PNG logo, highest possible effect.
   ═══════════════════════════════════════════════════════════════ */

/* ── BRAND COLUMN BASE ── */
.if-footer__brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  max-width: 420px;
}

/* ── STAGE: The reveal stage — everything happens here ── */
.if-footer .if-footer__logo--image {
  position: relative !important;
  display: inline-block !important;
  overflow: visible !important;
  line-height: 0 !important;
  padding: 20px 40px 20px 0 !important;
  isolation: isolate !important;
  perspective: 800px !important;
}

/* ── STAGE 1: Dark vignette backdrop ── */
.if-footer .if-footer__logo--image::before {
  content: "" !important;
  position: absolute !important;
  inset: -20px -30px -20px -30px !important;
  background: radial-gradient(
    ellipse at 30% 50%,
    rgba(10, 10, 10, 0.95) 0%,
    rgba(10, 10, 10, 0.85) 40%,
    rgba(10, 10, 10, 0) 75%
  ) !important;
  opacity: 0 !important;
  pointer-events: none !important;
  z-index: 1 !important;
  animation: ifCineVignette 8s ease-in-out infinite !important;
}

@keyframes ifCineVignette {
  /* Fade in the dark background */
  0%   { opacity: 0; }
  3%   { opacity: 1; }
  85%  { opacity: 1; }
  95%  { opacity: 0; }
  100% { opacity: 0; }
}

/* ── STAGE 2: Gold horizontal scan line ── */
.if-footer .if-footer__logo--image::after {
  content: "" !important;
  position: absolute !important;
  left: 0 !important;
  right: 0 !important;
  height: 2px !important;
  top: 50% !important;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(198, 161, 91, 0.2) 15%,
    rgba(255, 240, 200, 1) 50%,
    rgba(198, 161, 91, 0.2) 85%,
    transparent 100%
  ) !important;
  box-shadow:
    0 0 20px rgba(255, 240, 200, 0.9),
    0 0 40px rgba(198, 161, 91, 0.6) !important;
  opacity: 0 !important;
  pointer-events: none !important;
  z-index: 20 !important;
  transform: translateY(-50%) scaleX(0) !important;
  animation: ifCineScan 8s cubic-bezier(0.45, 0, 0.15, 1) infinite !important;
}

@keyframes ifCineScan {
  /* Scan appears fast, expands horizontally */
  0%, 3% {
    opacity: 0;
    transform: translateY(-50%) scaleX(0);
  }
  8% {
    opacity: 1;
    transform: translateY(-50%) scaleX(1);
  }
  /* Scan slides up as the logo appears */
  18% {
    opacity: 0.7;
    transform: translateY(-150%) scaleX(1);
  }
  25%, 100% {
    opacity: 0;
    transform: translateY(-250%) scaleX(0.5);
  }
}

/* ── STAGE 3: Logo itself — multi-layer reveal ── */
.if-footer .if-footer__logo--image .custom-logo-link {
  position: relative !important;
  display: inline-block !important;
  transform-origin: center center !important;
  animation: ifCineLogo 8s cubic-bezier(0.22, 0.61, 0.36, 1) infinite !important;
  will-change: opacity, filter, transform !important;
  z-index: 10 !important;
}

@keyframes ifCineLogo {
  /* STAGE 1: Fully hidden — deep blur + shrink + dark */
  0%, 4% {
    opacity: 0;
    filter: blur(40px) brightness(0.3) contrast(0.5);
    transform: scale(0.7) translateY(8px);
  }

  /* STAGE 2: Emerging from blur — chromatic ghost */
  10% {
    opacity: 0.4;
    filter: blur(20px) brightness(0.9) contrast(1) drop-shadow(4px 0 0 rgba(255, 100, 100, 0.5)) drop-shadow(-4px 0 0 rgba(100, 150, 255, 0.5));
    transform: scale(0.85) translateY(4px);
  }

  /* STAGE 3: Chromatic aberration peak — RGB split */
  16% {
    opacity: 0.9;
    filter: blur(6px) brightness(1.3) contrast(1.2) drop-shadow(6px 0 0 rgba(255, 100, 100, 0.7)) drop-shadow(-6px 0 0 rgba(100, 150, 255, 0.7));
    transform: scale(0.98) translateY(0);
  }

  /* STAGE 4: Snap to sharp — gold flash */
  22% {
    opacity: 1;
    filter: blur(0) brightness(1.8) contrast(1.1) drop-shadow(0 0 30px rgba(198, 161, 91, 1)) drop-shadow(0 0 12px rgba(255, 240, 200, 0.9));
    transform: scale(1.05);
  }

  /* STAGE 5: Settle — soft glow */
  30% {
    opacity: 1;
    filter: blur(0) brightness(1.15) contrast(1) drop-shadow(0 0 12px rgba(198, 161, 91, 0.6));
    transform: scale(1.01);
  }

  /* STAGE 6: Perfect — hold */
  38% {
    opacity: 1;
    filter: blur(0) brightness(1) contrast(1) drop-shadow(0 0 4px rgba(198, 161, 91, 0.25));
    transform: scale(1);
  }

  /* STAGE 7: Hold (long) */
  82% {
    opacity: 1;
    filter: blur(0) brightness(1) contrast(1) drop-shadow(0 0 0 rgba(198, 161, 91, 0));
    transform: scale(1);
  }

  /* STAGE 8: Fade out — back to blur */
  92% {
    opacity: 0.3;
    filter: blur(16px) brightness(0.6) contrast(0.8);
    transform: scale(0.9) translateY(4px);
  }
  100% {
    opacity: 0;
    filter: blur(30px) brightness(0.4);
    transform: scale(0.8) translateY(8px);
  }
}

/* ── LAYER: Gold sweep across (parallel with reveal) ── */
.if-footer .if-footer__logo--image .custom-logo-link::after {
  content: "" !important;
  position: absolute !important;
  top: -25% !important;
  left: -180% !important;
  width: 55% !important;
  height: 150% !important;
  background: linear-gradient(
    100deg,
    transparent 0%,
    rgba(255, 240, 200, 0.4) 35%,
    rgba(255, 255, 255, 1) 50%,
    rgba(255, 240, 200, 0.4) 65%,
    transparent 100%
  ) !important;
  transform: skewX(-25deg) !important;
  pointer-events: none !important;
  z-index: 15 !important;
  mix-blend-mode: screen !important;
  animation: ifCineSweep 8s cubic-bezier(0.4, 0, 0.2, 1) infinite !important;
}

@keyframes ifCineSweep {
  0%, 12% {
    left: -180%;
    opacity: 0;
  }
  14% {
    left: -180%;
    opacity: 1;
  }
  28% {
    left: 180%;
    opacity: 1;
  }
  29%, 100% {
    left: 180%;
    opacity: 0;
  }
}

/* ── LAYER: Sparkle particles ── */
.if-footer .if-footer__logo--image .custom-logo-link::before {
  content: "" !important;
  position: absolute !important;
  inset: -20% !important;
  background-image:
    radial-gradient(2px 2px at 15% 25%, rgba(255, 240, 200, 1), transparent),
    radial-gradient(1.5px 1.5px at 45% 65%, rgba(255, 220, 150, 0.9), transparent),
    radial-gradient(2.5px 2.5px at 75% 15%, rgba(198, 161, 91, 1), transparent),
    radial-gradient(1.5px 1.5px at 25% 85%, rgba(255, 255, 255, 0.9), transparent),
    radial-gradient(2px 2px at 85% 75%, rgba(255, 220, 150, 1), transparent);
  opacity: 0 !important;
  pointer-events: none !important;
  z-index: 12 !important;
  animation: ifCineSparkle 8s ease-out infinite !important;
}

@keyframes ifCineSparkle {
  0%, 14% {
    opacity: 0;
    transform: scale(0.6) rotate(0deg);
  }
  22% {
    opacity: 1;
    transform: scale(1.1) rotate(15deg);
  }
  32% {
    opacity: 0.7;
    transform: scale(1.2) rotate(30deg);
  }
  42%, 100% {
    opacity: 0;
    transform: scale(1.3) rotate(45deg);
  }
}

/* ── IMAGE SIZING (fixed, no animation) ── */
.if-footer .if-footer__logo--image img,
.if-footer .if-footer__logo--image .custom-logo {
  display: block !important;
  height: 240px !important;
  max-height: 240px !important;
  min-height: 240px !important;
  width: auto !important;
  max-width: 700px !important;
  object-fit: contain !important;
  object-position: center left !important;
  margin: 0 !important;
  padding: 0 !important;
  animation: none !important;
  filter: none !important;
  transform: none !important;
}

/* ── TAGLINE + SOCIAL (unaffected) ── */
.if-footer__brand .if-footer__tagline {
  font-size: 0.8rem;
  line-height: 1.55;
  max-width: 44ch;
  color: #B9B2A6;
  margin: 20px 0 20px 0;
  padding: 0;
}

.if-footer__brand .if-social {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
  padding: 0;
}

.if-footer__brand .if-social__link {
  width: 40px;
  height: 40px;
  min-width: 40px;
  min-height: 40px;
}

.if-footer__brand .if-footer__contact {
  display: none;
}

/* ── CONTACT STRIP ── */
.if-footer__contact-strip {
  padding-block: 28px 24px;
  margin-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.if-footer__contact-strip .if-footer__contact {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 16px 48px;
  margin: 0;
}

.if-footer__contact-strip .if-footer__contact-item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  color: #B9B2A6;
  margin: 0;
}

.if-footer__contact-strip .if-footer__contact-item svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  color: #C6A15B;
}

.if-footer__contact-strip .if-footer__contact-item br {
  display: none;
}

.if-footer__contact-strip + .if-footer__bottom {
  border-top: 0;
  padding-top: 20px;
}

/* ── REDUCED MOTION ── */
@media (prefers-reduced-motion: reduce) {
  .if-footer .if-footer__logo--image,
  .if-footer .if-footer__logo--image::before,
  .if-footer .if-footer__logo--image::after,
  .if-footer .if-footer__logo--image .custom-logo-link,
  .if-footer .if-footer__logo--image .custom-logo-link::before,
  .if-footer .if-footer__logo--image .custom-logo-link::after {
    animation: none !important;
    opacity: 1 !important;
    filter: none !important;
    transform: none !important;
  }
  .if-footer .if-footer__logo--image::before,
  .if-footer .if-footer__logo--image::after,
  .if-footer .if-footer__logo--image .custom-logo-link::before,
  .if-footer .if-footer__logo--image .custom-logo-link::after {
    display: none !important;
  }
}

/* ── MOBILE ── */
@media (max-width: 767px) {
  .if-footer .if-footer__logo--image {
    padding: 10px 20px 10px 0 !important;
  }
  .if-footer .if-footer__logo--image img,
  .if-footer .if-footer__logo--image .custom-logo {
    height: 140px !important;
    max-height: 140px !important;
    min-height: 140px !important;
  }
}


/* ═══════════════════════════════════════════════════════════════
   FOOTER LOGO - EDGE SPARKS REVEAL (no blur, 50% faster)
   5s loop. Spark particles at edges. Sharp appearance.
   ═══════════════════════════════════════════════════════════════ */

/* Kill previous */
.if-footer .if-footer__logo--image,
.if-footer .if-footer__logo--image *,
.if-footer .if-footer__logo--image::before,
.if-footer .if-footer__logo--image::after,
.if-footer .if-footer__logo--image .custom-logo-link::before,
.if-footer .if-footer__logo--image .custom-logo-link::after {
  animation: none !important;
}

/* Force new animation — override with maximum specificity */
.if-footer .if-footer__logo--image .custom-logo-link {
  position: relative !important;
  display: inline-block !important;
  animation: ifSparkReveal 5s cubic-bezier(0.22, 0.61, 0.36, 1) infinite !important;
  transform-origin: center center !important;
  will-change: opacity, filter, transform !important;
}

@keyframes ifSparkReveal {
  /* Hidden */
  0%, 3% {
    opacity: 0;
    filter: brightness(0.4);
    transform: scale(0.94);
  }
  /* Sharp snap in — no blur */
  8% {
    opacity: 1;
    filter: brightness(2) drop-shadow(0 0 20px rgba(198, 161, 91, 1));
    transform: scale(1.04);
  }
  /* Peak flash */
  14% {
    opacity: 1;
    filter: brightness(1.6) drop-shadow(0 0 26px rgba(198, 161, 91, 0.9));
    transform: scale(1.02);
  }
  /* Settle */
  22% {
    opacity: 1;
    filter: brightness(1) drop-shadow(0 0 6px rgba(198, 161, 91, 0.35));
    transform: scale(1);
  }
  /* Hold */
  78% {
    opacity: 1;
    filter: brightness(1) drop-shadow(0 0 0 rgba(198, 161, 91, 0));
    transform: scale(1);
  }
  /* Exit — fade, no blur */
  92% {
    opacity: 0;
    filter: brightness(1.2) drop-shadow(0 0 14px rgba(198, 161, 91, 0.4));
    transform: scale(0.98);
  }
  100% {
    opacity: 0;
    filter: brightness(0.4);
    transform: scale(0.94);
  }
}

/* ── EDGE SPARKS — spark particles around logo border ── */
.if-footer .if-footer__logo--image .custom-logo-link::before {
  content: "" !important;
  position: absolute !important;
  inset: -8px !important;
  background-image:
    /* Corners */
    radial-gradient(3px 3px at 0% 0%,    rgba(255, 245, 220, 1), transparent 70%),
    radial-gradient(3px 3px at 100% 0%,  rgba(255, 240, 200, 1), transparent 70%),
    radial-gradient(3px 3px at 0% 100%,  rgba(198, 161, 91, 1),  transparent 70%),
    radial-gradient(3px 3px at 100% 100%,rgba(255, 240, 200, 1), transparent 70%),
    /* Top edge */
    radial-gradient(2px 2px at 25% 0%,   rgba(255, 255, 255, 0.9), transparent 70%),
    radial-gradient(2px 2px at 50% 0%,   rgba(255, 240, 200, 1),   transparent 70%),
    radial-gradient(2px 2px at 75% 0%,   rgba(198, 161, 91, 0.9),  transparent 70%),
    /* Bottom edge */
    radial-gradient(2px 2px at 25% 100%, rgba(255, 240, 200, 0.9), transparent 70%),
    radial-gradient(2px 2px at 50% 100%, rgba(255, 255, 255, 0.9), transparent 70%),
    radial-gradient(2px 2px at 75% 100%, rgba(198, 161, 91, 1),     transparent 70%),
    /* Left edge */
    radial-gradient(2px 2px at 0% 30%,   rgba(255, 240, 200, 1),   transparent 70%),
    radial-gradient(2px 2px at 0% 65%,   rgba(255, 255, 255, 0.9), transparent 70%),
    /* Right edge */
    radial-gradient(2px 2px at 100% 35%, rgba(255, 240, 200, 1),   transparent 70%),
    radial-gradient(2px 2px at 100% 70%, rgba(255, 255, 255, 0.9), transparent 70%);
  background-size: 100% 100%;
  opacity: 0 !important;
  pointer-events: none !important;
  z-index: 15 !important;
  animation: ifEdgeSparks 5s ease-out infinite !important;
}

@keyframes ifEdgeSparks {
  /* Wait for logo reveal */
  0%, 5% {
    opacity: 0;
    transform: scale(0.9);
  }
  /* Sparks burst as logo appears */
  8% {
    opacity: 1;
    transform: scale(1.05);
  }
  /* Sparks peak */
  14% {
    opacity: 1;
    transform: scale(1.12);
  }
  /* Sparks fade out */
  24% {
    opacity: 0.5;
    transform: scale(1.2);
  }
  32%, 100% {
    opacity: 0;
    transform: scale(1.3);
  }
}

/* ── Gold sweep across (parallel) ── */
.if-footer .if-footer__logo--image .custom-logo-link::after {
  content: "" !important;
  position: absolute !important;
  top: -20% !important;
  left: -180% !important;
  width: 55% !important;
  height: 140% !important;
  background: linear-gradient(
    100deg,
    transparent 0%,
    rgba(255, 240, 200, 0.3) 35%,
    rgba(255, 255, 255, 1) 50%,
    rgba(255, 240, 200, 0.3) 65%,
    transparent 100%
  ) !important;
  transform: skewX(-25deg) !important;
  pointer-events: none !important;
  z-index: 14 !important;
  mix-blend-mode: screen !important;
  animation: ifSweep 5s cubic-bezier(0.4, 0, 0.2, 1) infinite !important;
}

@keyframes ifSweep {
  0%, 6% {
    left: -180%;
    opacity: 0;
  }
  8% {
    left: -180%;
    opacity: 1;
  }
  22% {
    left: 180%;
    opacity: 1;
  }
  23%, 100% {
    left: 180%;
    opacity: 0;
  }
}

/* ── Gold glow halo behind logo ── */
.if-footer .if-footer__logo--image::before {
  content: "" !important;
  position: absolute !important;
  inset: -30% !important;
  background: radial-gradient(
    ellipse at center,
    rgba(198, 161, 91, 0.45) 0%,
    rgba(198, 161, 91, 0.15) 40%,
    transparent 70%
  ) !important;
  opacity: 0 !important;
  pointer-events: none !important;
  z-index: 0 !important;
  animation: ifGlow 5s ease-out infinite !important;
}

@keyframes ifGlow {
  0%, 5% {
    opacity: 0;
    transform: scale(0.85);
  }
  12% {
    opacity: 1;
    transform: scale(1.1);
  }
  24% {
    opacity: 0;
    transform: scale(1.2);
  }
  100% {
    opacity: 0;
    transform: scale(1);
  }
}

/* ── IMAGE SIZING ── */
.if-footer .if-footer__logo--image img,
.if-footer .if-footer__logo--image .custom-logo {
  display: block !important;
  height: 240px !important;
  max-height: 240px !important;
  min-height: 240px !important;
  width: auto !important;
  max-width: 700px !important;
  object-fit: contain !important;
  object-position: center left !important;
  margin: 0 !important;
  padding: 0 !important;
  animation: none !important;
  filter: none !important;
  transform: none !important;
}

/* ── Redundant kill — with !important to override specificities ── */
.if-footer .if-footer__logo--image img,
.if-footer .if-footer__logo--image .custom-logo {
  animation-name: none !important;
}

/* ── Mobile ── */
@media (max-width: 767px) {
  .if-footer .if-footer__logo--image img,
  .if-footer .if-footer__logo--image .custom-logo {
    height: 140px !important;
    max-height: 140px !important;
    min-height: 140px !important;
  }
  .if-footer .if-footer__logo--image .custom-logo-link,
  .if-footer .if-footer__logo--image .custom-logo-link::before,
  .if-footer .if-footer__logo--image .custom-logo-link::after,
  .if-footer .if-footer__logo--image::before {
    animation-duration: 4s !important;
  }
}

/* ── Reduced motion ── */
@media (prefers-reduced-motion: reduce) {
  .if-footer .if-footer__logo--image .custom-logo-link,
  .if-footer .if-footer__logo--image .custom-logo-link::before,
  .if-footer .if-footer__logo--image .custom-logo-link::after,
  .if-footer .if-footer__logo--image::before {
    animation: none !important;
    opacity: 1 !important;
    filter: none !important;
    transform: none !important;
  }
}

/* ═══════════════════════════════════════════════════════════════
   §E FOOTER COMPACT LAYOUT — authoritative final override
   The two "cinematic reveal" blocks above both force the footer logo to
   height/min-height/max-height: 240px, which made the brand column very tall
   and left a large blank area above the footer columns. This block is appended
   LAST so it wins the cascade: a compact logo + tightened footer spacing.
   ═══════════════════════════════════════════════════════════════ */

/* Compact logo — replaces the 240px forced height. */
.if-footer .if-footer__logo--image img,
.if-footer .if-footer__logo--image .custom-logo {
  height: 96px !important;
  max-height: 96px !important;
  min-height: 96px !important;
  max-width: 320px !important;
}

/* Reduce the logo stage padding that inflated the brand column. */
.if-footer .if-footer__logo--image {
  padding: 8px 16px 8px 0 !important;
}

/* Tighten footer top/bottom padding and the grid's bottom margin. */
.if-footer {
  padding-block: clamp(40px, 5vw, 64px) var(--if-s6);
}

.if-footer__grid {
  margin-bottom: var(--if-s6);
}

/* Brand column: keep tagline + socials close under the logo. */
.if-footer__brand .if-footer__tagline {
  margin: 12px 0 12px 0;
}

/* ── Payment-method indicators ── */
.if-payments {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

/* Keep the payment row clear of the floating back-to-top / WhatsApp buttons
   (which sit fixed at the bottom-right of the viewport on wide screens).
   Higher specificity (.if-footer .if-footer__bottom) so it beats the
   iOS-safe-area rule in premium.css regardless of load order. */
@media (min-width: 768px) {
  .if-footer .if-footer__bottom {
    padding-right: 120px;
  }
}

.if-payments__item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 4px;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #B9B2A6;
  white-space: nowrap;
}

.if-payments__item svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: var(--if-gold, #C6A15B);
}

.if-payments__label {
  line-height: 1;
}

/* ── Mobile logo (overrides the 140px mobile rule above) ── */
@media (max-width: 767px) {
  .if-footer .if-footer__logo--image img,
  .if-footer .if-footer__logo--image .custom-logo {
    height: 72px !important;
    max-height: 72px !important;
    min-height: 72px !important;
  }
}

/* ═══════════════════════════════════════════════════════════════
   PHASE R — MOBILE PERFECT: footer link tap height
   Footer column links measured 23px tall (below the 24px minimum for
   comfortable mobile taps). Inline-flex + min-height lifts every footer
   link to ≥24px without changing the visual baseline (padding-block 1px).
   pointer:coarse covers portrait phones AND landscape phones/tablets
   (landscape width is 844px, past a 767px media query).
   ═══════════════════════════════════════════════════════════════ */
@media (pointer: coarse) {
  .if-footer a {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding-block: 1px;
  }
}

