/* Besere Oil — shared animated footer (from Home.dc.html), used on every page.
   The SVG scene keeps its animation declarations inline (copied verbatim from
   the design); this sheet supplies the keyframes, layout and the card. */

@keyframes flameFlick { from { transform: scale(1, 1); } to { transform: scale(1.12, 1.3) skewX(-4deg); } }
@keyframes truckDrive { from { transform: translateX(-1620px); } to { transform: translateX(1180px); } }
@keyframes wheelSpin { to { transform: rotate(360deg); } }
@keyframes truckBob { from { transform: translateY(0); } to { transform: translateY(2.5px); } }
@keyframes cardDrop { from { opacity: 0; transform: translateY(-1.6rem); } to { opacity: 1; transform: none; } }
/* blink is also defined by home.css / inner.css with the same timing; kept
   here so the footer stands alone on any page. */
@keyframes blink { 0%, 55% { opacity: 1; } 56%, 100% { opacity: 0.12; } }

body { overflow-x: clip; } /* the truck drives off-canvas on both sides */

.site-footer {
  position: relative; display: flex; flex-direction: column;
  min-height: 100svh; overflow: hidden;
  background: var(--color-bg); border-top: calc(var(--space-1) / 2) solid var(--color-divider);
}
.sf-lines {
  position: absolute; inset: 0; pointer-events: none;
  background: repeating-linear-gradient(to right,
    color-mix(in srgb, var(--color-text) 6%, transparent) 0,
    color-mix(in srgb, var(--color-text) 6%, transparent) 0.0625rem,
    transparent 0.0625rem, transparent 8rem);
}
.sf-scene { position: absolute; inset-inline: 0; bottom: 0; height: min(58vh, 33rem); }
.sf-scene svg { width: 100%; height: 100%; display: block; }

/* the card runs nearly full-bleed (a constant gap to the screen edges)
   and stretches from below the top gap down to just above the scene */
.sf-card-wrap {
  position: relative; z-index: 10; width: 100%;
  flex: 1; display: flex; flex-direction: column;
  padding: clamp(var(--space-8), 7vh, 5rem)
           clamp(var(--space-4), 3vw, var(--space-8))
           clamp(14rem, 30vh, 19rem);
  animation: cardDrop 1s cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-timeline: view(); animation-range: entry 0% entry 55%;
}
@supports not (animation-timeline: view()) {
  .sf-card-wrap { animation-timeline: auto; animation-range: normal; }
}
.sf-card {
  width: 100%; flex: 1;
  display: flex; flex-direction: column;
  background: color-mix(in srgb, var(--color-surface) 94%, transparent);
  backdrop-filter: blur(0.5rem);
  box-shadow: var(--shadow-lg);
}
.sf-cols {
  flex: 1; align-items: center;
  display: flex; flex-wrap: wrap; justify-content: space-between;
  gap: calc(var(--space-8) * 1.25);
  padding: clamp(var(--space-6), 4vw, calc(var(--space-8) * 1.6));
}
.sf-brand { min-width: 16rem; max-width: 24rem; }
.sf-brand p { margin: var(--space-3) 0 0; font-size: 0.9rem; max-width: 32ch; }
.sf-linkcols { display: flex; flex-wrap: wrap; gap: clamp(var(--space-6), 5vw, calc(var(--space-8) * 1.5)); }
.sf-col { display: flex; flex-direction: column; gap: var(--space-2); min-width: 11rem; }
.sf-col h6 { margin: 0 0 var(--space-2); }
.sf-col a {
  color: var(--color-neutral-600); text-decoration: none;
  font-size: 0.9rem; font-weight: 500; transition: color 0.2s ease;
}
.sf-col a:hover { color: var(--color-accent-700); }
.sf-col a.sf-mail { color: var(--color-accent-700); }
.sf-col p { margin: 0; font-size: 0.9rem; }

.sf-bottom {
  border-top: calc(var(--space-1) / 4) solid var(--color-divider);
  background: var(--color-surface);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: var(--space-3);
  padding: var(--space-3) clamp(var(--space-6), 4vw, var(--space-8));
}
.sf-copy { font-size: 0.8rem; font-weight: 500; }
.sf-legal { display: flex; gap: var(--space-4); }
.sf-legal a {
  color: var(--color-neutral-600); text-decoration: none;
  font-size: 0.8rem; font-weight: 500; transition: color 0.2s ease;
}
.sf-legal a:hover { color: var(--color-accent-700); }
.sf-addr {
  color: color-mix(in srgb, var(--color-text) 55%, transparent);
  text-decoration: none; font-size: 0.9rem; transition: color 0.2s ease;
}
.sf-addr:hover { color: var(--color-accent-700); }

/* the card fills the screen, so the writing can afford to be bigger */
@media (min-width: 900px) {
  .sf-brand { max-width: 30rem; }
  .sf-brand img { height: 6rem !important; }
  .sf-brand p { font-size: 1.05rem; max-width: 36ch; }
  .sf-linkcols { gap: clamp(var(--space-8), 6vw, 7rem); }
  .sf-col { gap: var(--space-3); }
  .sf-col h6 { font-size: 0.92rem; }
  .sf-col a, .sf-col p { font-size: 1.1rem; }
  .sf-copy, .sf-legal a { font-size: 0.88rem; }
}

@media (prefers-reduced-motion: reduce) {
  /* the truck's resting position is drawn mid-scene, so a motionless
     footer still shows the full picture */
  .sf-card-wrap, .sf-scene [style*="animation"] { animation: none !important; }
  .sf-card-wrap { opacity: 1; transform: none; }
}
