/* ============================================
   Bottomz Up — Conversion Impact Footer
   Combo: A terracotta + B brand amber + C micro + D crazy
   ============================================ */

:root {
  /* A+B hybrid: terracotta core · brand amber heat */
  --footer-orange: #c45a2a;
  --footer-orange-deep: #a8481f;
  --footer-orange-hot: #d46832;
  --footer-amber: #e7931e;
  --footer-amber-bright: #f19f0f;
  --footer-amber-deep: #c67a12;
  --footer-cream: #f5e8b7;
  --footer-cream-soft: rgba(245, 232, 183, 0.9);
  --footer-ink: #1a1919;
}

.site-footer.site-footer--impact {
  position: relative;
  /* Main site cream gradient (x32) — not terracotta orange */
  background: var(--bg-global-gradient, var(--canvas, #f6e7c2));
  color: var(--color-charcoal, #2e2c2c);
  padding: 0;
  overflow: hidden;
  isolation: isolate;
}

body .site-footer.site-footer--impact {
  background:
    radial-gradient(ellipse 70% 50% at 15% 0%, rgba(231, 147, 30, 0.12), transparent 55%),
    radial-gradient(ellipse 55% 45% at 90% 100%, rgba(241, 159, 15, 0.1), transparent 50%),
    var(--bg-global-gradient, linear-gradient(0deg, #f6e7c2 0%, #fffdf9 100%));
  background-size: 100% 100%;
  animation: none;
  filter: none;
}

/* Footer text on cream — invert cream-on-orange tokens */
.site-footer.site-footer--impact .footer-headline,
.site-footer.site-footer--impact .footer-subhead,
.site-footer.site-footer--impact .footer-brand-mark,
.site-footer.site-footer--impact .footer-legal,
.site-footer.site-footer--impact .footer-credit,
.site-footer.site-footer--impact .footer-phone-num,
.site-footer.site-footer--impact .footer-partner-name {
  color: var(--color-ink, #1a1510);
}

.site-footer.site-footer--impact .footer-subhead,
.site-footer.site-footer--impact .footer-phone-label,
.site-footer.site-footer--impact .footer-delivery-label,
.site-footer.site-footer--impact .footer-legal {
  color: var(--text-muted, #5c5850);
}

.site-footer.site-footer--impact .footer-phone-num {
  color: var(--color-ink, #1a1510);
}

/* Deep orange marquee strip · white type */
.site-footer.site-footer--impact .footer-marquee {
  background: #c45f0a;
  border-bottom: 1px solid rgba(26, 20, 10, 0.18);
}

.site-footer.site-footer--impact .footer-marquee-group span {
  color: #fffef8;
  opacity: 0.96;
  background-image: none;
  -webkit-background-clip: unset;
  background-clip: unset;
  -webkit-text-fill-color: #fffef8;
  text-shadow: none;
}

.site-footer.site-footer--impact .footer-contact-bar,
.site-footer.site-footer--impact .footer-utility {
  background: rgba(255, 253, 249, 0.55);
  border-top-color: rgba(46, 44, 44, 0.1);
}

.site-footer.site-footer--impact .footer-phone,
.site-footer.site-footer--impact .footer-partner {
  background: rgba(255, 255, 255, 0.75);
  border-color: rgba(46, 44, 44, 0.12);
  color: var(--color-ink, #1a1510);
}

.site-footer.site-footer--impact .footer-social a {
  color: var(--color-charcoal, #2e2c2c);
  background: rgba(255, 255, 255, 0.7);
  border-color: rgba(46, 44, 44, 0.12);
}

.site-footer.site-footer--impact .footer-order-btn {
  background: var(--color-charcoal, #2e2c2c);
  color: #fffef8;
}

.site-footer.site-footer--impact .footer-order-btn:hover {
  background: #000;
  color: #fffef8;
}

.site-footer.site-footer--impact .footer-headline {
  color: var(--color-ink, #1a1510);
  text-shadow: 0 2px 0 rgba(255, 253, 249, 0.5);
}

.site-footer.site-footer--impact .footer-legal a,
.site-footer.site-footer--impact .footer-phone,
.site-footer.site-footer--impact .footer-brand-mark:hover {
  color: var(--color-amber-deep, #c67a12);
}

.site-footer.site-footer--impact .footer-headline-underline {
  background: linear-gradient(
    90deg,
    transparent,
    var(--color-amber, #e7931e) 20%,
    var(--color-amber-bright, #f19f0f) 50%,
    var(--color-amber, #e7931e) 80%,
    transparent
  );
}

.site-footer.site-footer--impact .footer-copy-pill {
  background: var(--color-charcoal, #2e2c2c);
  color: #fffef8;
}

/* ---------- Top marquee — deep orange · white type · no hover gimmicks ---------- */
.footer-marquee {
  position: relative;
  z-index: 2;
  overflow: hidden;
  border-bottom: 1px solid rgba(26, 20, 10, 0.15);
  background: #c45f0a;
  padding-block: 0.7rem;
}

.footer-marquee:hover,
.footer-marquee:hover .footer-marquee-track {
  /* no pause / scale on hover */
  animation-play-state: running;
}

.footer-marquee-track {
  display: flex;
  width: max-content;
  will-change: transform;
  animation: footerMarquee 18s linear infinite;
}

.footer-marquee-group {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  white-space: nowrap;
}

.footer-marquee-group span {
  font-family: var(--font-body);
  font-size: clamp(0.7rem, 1.15vw, 0.82rem);
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #fffef8;
  padding-inline: 0.4em;
  text-shadow: none;
}

@keyframes footerMarquee {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-50%, 0, 0); }
}

/* ---------- Hero conversion band ---------- */
.footer-hero {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(0.5rem, 2vw, 1.5rem);
  padding:
    clamp(2.75rem, 7vw, 5rem)
    clamp(1rem, 4vw, 3rem)
    clamp(2.25rem, 5.5vw, 4rem);
  min-height: clamp(340px, 44vw, 520px);
  max-width: 1400px;
  margin-inline: auto;
}

/* D: parallax layer via --fy from JS */
.footer-burger {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
  pointer-events: auto; /* C: hover */
  cursor: default;
  transform: translate3d(0, calc(var(--fy, 0) * 1px), 0);
  transition: transform 0.15s ease-out;
  will-change: transform;
}

.footer-burger img {
  width: min(100%, 400px);
  height: auto;
  max-height: min(360px, 40vw);
  object-fit: contain;
  filter:
    drop-shadow(0 18px 28px rgba(26, 25, 25, 0.22))
    drop-shadow(0 4px 10px rgba(26, 25, 25, 0.12));
  user-select: none;
  -webkit-user-drag: none;
  transition:
    transform 0.45s cubic-bezier(0.16, 1, 0.3, 1),
    filter 0.45s ease;
  transform-origin: center center;
}

/* Static burger floats — no idle / hover animation */
.footer-burger--left {
  justify-content: flex-end;
}

.footer-burger--left img {
  transform: rotate(-6deg) translateY(4px);
  animation: none !important;
}

.footer-burger--right {
  justify-content: flex-start;
}

.footer-burger--right img {
  transform: rotate(7deg) translateY(6px);
  animation: none !important;
}

/* No hover motion on footer food art */
.footer-burger:hover img,
.footer-burger--left:hover img,
.footer-burger--right:hover img {
  animation: none !important;
}

.footer-cta-block {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: clamp(0.55rem, 1.4vw, 0.95rem);
  padding-inline: 0.5rem;
}

/* D: more aggressive headline */
.footer-headline {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.1rem, 6.2vw, 4.35rem);
  line-height: 0.92;
  letter-spacing: -0.035em;
  text-transform: uppercase;
  color: #fffef8;
  margin: 0;
  text-wrap: balance;
  max-width: 11ch;
  text-shadow:
    0 2px 0 rgba(26, 25, 25, 0.12),
    0 8px 32px rgba(26, 25, 25, 0.28);
  /* Animation is now driven by sizzle.css + .is-revealed (scroll) */
}

/* Pre-reveal: headline is clipped — sizzle.css handles line transforms */
/* Post-reveal snap for non-supporting browsers */
.footer-headline.is-revealed {
  animation: footerHeadlinePunch 0.65s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes footerHeadlinePunch {
  from {
    opacity: 0;
    transform: scale(0.92) translateY(16px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.footer-subhead {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: clamp(0.8rem, 1.35vw, 1rem);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 254, 248, 0.92);
  margin: 0;
}

/* ORDER pill — C: richer micro-interactions */
.footer-order-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 0.45rem;
  padding: 1.05rem 2.6rem;
  min-height: 56px;
  min-width: min(100%, 220px);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  color: #fffef8;
  background: var(--footer-ink);
  border: none;
  border-radius: 999px;
  cursor: pointer;
  overflow: hidden;
  isolation: isolate;
  box-shadow:
    0 14px 32px rgba(26, 25, 25, 0.32),
    0 0 0 1px rgba(26, 25, 25, 0.45);
  transition:
    transform 0.25s cubic-bezier(0.16, 1, 0.3, 1),
    background 0.25s ease,
    box-shadow 0.25s ease,
    color 0.2s ease,
    letter-spacing 0.25s ease;
}

.footer-order-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    120deg,
    transparent 0%,
    rgba(241, 159, 15, 0.35) 45%,
    transparent 70%
  );
  transform: translateX(-120%);
  transition: transform 0.55s cubic-bezier(0.16, 1, 0.3, 1);
}

.footer-order-btn:hover {
  background: #000;
  color: var(--footer-cream);
  letter-spacing: 0.2em;
  transform: translateY(-3px) scale(1.04);
  box-shadow:
    0 20px 44px rgba(26, 25, 25, 0.4),
    0 0 0 2px rgba(241, 159, 15, 0.45),
    0 0 32px rgba(241, 159, 15, 0.25);
}

.footer-order-btn:hover::before {
  transform: translateX(120%);
}

.footer-order-btn:active {
  transform: translateY(0) scale(0.98);
}

.footer-order-btn:focus-visible {
  outline: 3px solid var(--footer-cream);
  outline-offset: 4px;
}

/* ---------- Contact + delivery partners ---------- */
.footer-contact-bar {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1rem 1.75rem;
  padding: 1.15rem clamp(1.15rem, 4vw, 2.5rem);
  border-top: 1px solid rgba(245, 232, 183, 0.22);
  background: rgba(26, 25, 25, 0.16);
  max-width: 1400px;
  margin-inline: auto;
  text-align: center;
}

.footer-phone {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.15rem;
  text-decoration: none;
  color: #fffef8;
  padding: 0.55rem 1rem;
  border-radius: 14px;
  border: 1px solid rgba(245, 232, 183, 0.28);
  background: rgba(26, 25, 25, 0.22);
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  min-width: 10.5rem;
  text-align: center;
}

.footer-phone:hover,
.footer-phone:focus-visible {
  border-color: rgba(241, 159, 15, 0.55);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(26, 25, 25, 0.25);
  outline: none;
  color: #fffef8;
}

.footer-phone-label {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(245, 232, 183, 0.75);
}

.footer-phone-num {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #fffef8;
}

.footer-delivery-block {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.65rem 0.85rem;
  text-align: center;
}

.footer-delivery-label {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(245, 232, 183, 0.75);
  width: 100%;
  text-align: center;
}

@media (min-width: 560px) {
  .footer-delivery-label {
    width: auto;
  }
}

.footer-partners {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
}

.footer-partner {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.5rem 0.85rem 0.5rem 0.5rem;
  border-radius: 999px;
  text-decoration: none;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.02em;
  color: #fffef8;
  border: 1px solid rgba(245, 232, 183, 0.28);
  background: rgba(26, 25, 25, 0.28);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.footer-partner:hover,
.footer-partner:focus-visible {
  transform: translateY(-2px);
  outline: none;
  box-shadow: 0 8px 18px rgba(26, 25, 25, 0.28);
}

.footer-partner-logo {
  display: grid;
  place-items: center;
  width: 1.85rem;
  height: 1.85rem;
  border-radius: 999px;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #fff;
}

.footer-partner--grubhub .footer-partner-logo {
  background: #ff8000;
}

.footer-partner--doordash .footer-partner-logo {
  background: #ff3008;
}

.footer-partner--grubhub:hover {
  border-color: rgba(255, 128, 0, 0.65);
}

.footer-partner--doordash:hover {
  border-color: rgba(255, 48, 8, 0.65);
}

.footer-partner-name {
  color: #fffef8;
}

/* ---------- Utility row ---------- */
.footer-utility {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 1.5rem;
  padding:
    1.15rem
    clamp(1.15rem, 4vw, 2.5rem)
    calc(1.25rem + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid rgba(245, 232, 183, 0.22);
  background: rgba(26, 25, 25, 0.12);
  max-width: 1400px;
  margin-inline: auto;
}

@media (max-width: 699px) {
  /* Room for sticky dock without huge dead space */
  .site-footer.site-footer--impact {
    padding-bottom: calc(56px + env(safe-area-inset-bottom, 0px));
  }
}

.footer-social {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.footer-social a {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  color: var(--footer-cream);
  background: rgba(26, 25, 25, 0.2);
  border: 1px solid rgba(245, 232, 183, 0.25);
  transition:
    background 0.2s ease,
    color 0.2s ease,
    transform 0.2s cubic-bezier(0.16, 1, 0.3, 1),
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.footer-social a:hover,
.footer-social a:focus-visible {
  background: var(--footer-ink);
  color: #fff;
  border-color: rgba(241, 159, 15, 0.5);
  outline: none;
  transform: translateY(-3px) scale(1.06);
  box-shadow: 0 8px 20px rgba(26, 25, 25, 0.3);
}

.footer-social a:focus-visible {
  outline: 2px solid var(--footer-cream);
  outline-offset: 2px;
}

.footer-social svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.footer-brand-mark {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1rem, 2.1vw, 1.25rem);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #fffef8;
  text-decoration: none;
  transition: color 0.2s ease, letter-spacing 0.25s ease, text-shadow 0.25s ease;
}

.footer-brand-mark:hover,
.footer-brand-mark:focus-visible {
  color: var(--footer-cream);
  letter-spacing: 0.2em;
  text-shadow: 0 0 24px rgba(241, 159, 15, 0.45);
  outline: none;
}

.footer-utility-end {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
}

.footer-copy-pill {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--footer-ink);
  background: #fffef8;
  border-radius: 999px;
  padding: 0.48em 0.95em;
  line-height: 1.2;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.footer-copy-pill:hover {
  transform: scale(1.04);
  box-shadow: 0 4px 14px rgba(26, 25, 25, 0.15);
}

.footer-credit {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 500;
  color: rgba(255, 254, 248, 0.78);
  white-space: nowrap;
}

.footer-credit span[aria-hidden="true"] {
  color: #fff;
  display: inline-block;
  animation: footerHeart 1.4s ease-in-out infinite;
}

@keyframes footerHeart {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.18); }
}

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

.footer-legal {
  text-align: center;
  font-size: 0.68rem;
  line-height: 1.4;
  color: rgba(245, 232, 183, 0.58);
  padding: 0 clamp(1rem, 4vw, 2rem) 1rem;
  margin: 0 auto;
  max-width: 52rem;
}

/* Plain footer legal / advisory line (no separate logo strip) */
.site-footer.site-footer--impact .footer-legal {
  color: #5c5850;
  font-size: 0.72rem;
  line-height: 1.55;
  max-width: 54ch;
  padding: 0.65rem clamp(1rem, 4vw, 2rem) 0.85rem;
}

/* ---------- Tablet ---------- */
@media (max-width: 960px) {
  .footer-hero {
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "cta cta"
      "left right";
    min-height: 0;
    gap: 0.5rem 1rem;
    padding-block: 2.5rem 2rem;
  }

  .footer-cta-block { grid-area: cta; }
  .footer-burger--left { grid-area: left; }
  .footer-burger--right { grid-area: right; }

  .footer-burger img {
    max-height: min(250px, 34vw);
    width: min(100%, 290px);
  }

  .footer-headline {
    max-width: 12ch;
    font-size: clamp(2rem, 7vw, 3.25rem);
  }
}

/* ---------- Mobile ---------- */
@media (max-width: 640px) {
  .footer-hero {
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "cta cta"
      "left right";
    padding: 1.75rem 1rem 1.25rem;
    gap: 0.65rem 0.35rem;
    min-height: 0;
  }

  .footer-cta-block { grid-area: cta; }
  .footer-burger--left { grid-area: left; }
  .footer-burger--right { grid-area: right; }

  /* Soft, tight shadow — heavy drop-shadow muddies small screens */
  .footer-burger img {
    width: 100%;
    max-height: 140px;
    filter: drop-shadow(0 8px 14px rgba(26, 25, 25, 0.18));
  }

  .footer-burger--left img,
  .footer-burger--right img {
    transform: none;
  }

  .footer-headline {
    font-size: clamp(1.95rem, 9.5vw, 2.65rem);
    max-width: 12ch;
  }

  .footer-order-btn {
    width: 100%;
    max-width: 300px;
    padding: 1.05rem 1.5rem;
  }

  .footer-contact-bar {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.85rem;
    padding: 1rem 1.15rem;
  }

  .footer-phone {
    width: min(100%, 280px);
    align-items: center;
    text-align: center;
  }

  .footer-delivery-block {
    width: 100%;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
  }

  .footer-delivery-label {
    width: 100%;
    text-align: center;
  }

  .footer-partners {
    justify-content: center;
  }

  .footer-utility {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.85rem;
    padding-bottom: 0.85rem;
  }

  .footer-utility-end { justify-content: center; }
  .footer-brand-mark { order: -1; }

  body .site-footer.site-footer--impact {
    animation: none;
  }
}

/* Reduced motion — kill crazy motion */
@media (prefers-reduced-motion: reduce) {
  .footer-marquee-track {
    animation: none;
    justify-content: center;
    width: 100%;
    flex-wrap: wrap;
  }

  .footer-marquee-group[aria-hidden="true"] {
    display: none;
  }

  .footer-burger--left img,
  .footer-burger--right img {
    animation: none !important;
  }

  body .site-footer.site-footer--impact {
    animation: none;
    filter: none;
  }

  .footer-headline {
    animation: none;
  }

  .footer-credit span[aria-hidden="true"] {
    animation: none;
  }

  .footer-burger {
    transform: none !important;
  }
}
