/* -------------------------------------------------------
   Site footer
   Behaviour lives in assets/js/site-footer.js.
------------------------------------------------------- */
.site-footer {
  --sf-base: var(--base-color, #dd6531);
  --sf-coral: #ef5f43;
  --sf-peach: #f38c4b;
  --sf-bg: #1f2229;
  --sf-text: #a3a6b4;
  --sf-line: rgba(255, 255, 255, 0.08);
  --sf-ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --sf-ease-spring: cubic-bezier(0.2, 0.9, 0.25, 1.25);
  position: relative;
  overflow: hidden;
  overflow: clip;
  padding: 90px 0 0;
  color: var(--sf-text);
  background-color: var(--sf-bg);
  background-image: radial-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 26px 26px;
}

/* Ambient glows and animated top edge */
.sf-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
}

.sf-glow-1 {
  width: 480px;
  height: 480px;
  top: -220px;
  left: -140px;
  background: var(--sf-base);
  opacity: 0.22;
  animation: sf-drift 18s ease-in-out infinite;
}

.sf-glow-2 {
  width: 420px;
  height: 420px;
  bottom: -200px;
  right: -120px;
  background: var(--sf-peach);
  opacity: 0.16;
  animation: sf-drift 22s ease-in-out infinite reverse;
}

.sf-line {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--sf-base), var(--sf-peach), transparent);
  background-size: 50% 100%;
  background-repeat: no-repeat;
  animation: sf-scan 6s ease-in-out infinite;
}

/* Columns */
.sf-grid {
  display: grid;
  grid-template-columns: 1.5fr 0.9fr 0.8fr 1.3fr 1.5fr;
  gap: 40px;
}

.sf-col p {
  margin: 0 0 20px;
  color: var(--sf-text);
  line-height: 1.6;
}

.sf-heading {
  position: relative;
  display: inline-block;
  margin-bottom: 22px;
  padding-bottom: 10px;
  font-size: 19px;
  font-weight: 600;
  color: #fff;
}

.sf-heading::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 28px;
  height: 3px;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--sf-base), var(--sf-peach));
  transition: width 0.5s var(--sf-ease-out);
}

.sf-col:hover .sf-heading::after {
  width: 100%;
}

/* Brand */
.sf-logo {
  display: inline-block;
  margin-bottom: 18px;
}

.site-footer .sf-logo img {
  width: auto;
  max-height: 40px;
}

.sf-tagline {
  max-width: 260px;
}

.site-footer ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer ul li {
  margin: 0;
}

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

.sf-social a {
  position: relative;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  font-size: 15px;
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--sf-line);
  overflow: hidden;
  isolation: isolate;
  transition: transform 0.4s var(--sf-ease-spring), border-color 0.3s ease, box-shadow 0.3s ease;
}

.sf-social a::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(135deg, var(--sf-base), var(--sf-peach));
  transform: translateY(101%);
  transition: transform 0.4s var(--sf-ease-out);
}

.sf-social a:hover,
.sf-social a:focus-visible {
  color: #fff;
  border-color: transparent;
  transform: translateY(-4px);
  box-shadow: 0 12px 24px -10px rgba(221, 101, 49, 0.8);
}

.sf-social a:hover::before,
.sf-social a:focus-visible::before {
  transform: none;
}

.sf-social a i {
  transition: transform 0.4s var(--sf-ease-spring);
}

.sf-social a:hover i {
  transform: scale(1.15) rotate(-8deg);
}

/* Link lists */
.sf-links {
  display: grid;
  gap: 12px;
}

.sf-links a {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0;
  line-height: 1.4;
  color: var(--sf-text);
  transition: color 0.3s ease, gap 0.35s var(--sf-ease-out);
}

.sf-links a::before {
  content: "";
  width: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--sf-base);
  transition: width 0.35s var(--sf-ease-out);
}

.sf-links a:hover,
.sf-links a:focus-visible {
  gap: 8px;
  color: #fff;
}

.sf-links a:hover::before,
.sf-links a:focus-visible::before {
  width: 14px;
}

/* Contact */
.sf-contact {
  display: grid;
  gap: 14px;
}

.sf-contact li {
  display: flex;
  align-items: center;
  gap: 12px;
  line-height: 1.45;
}

.sf-contact-icon {
  flex: none;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  font-size: 16px;
  color: var(--sf-base);
  background: rgba(221, 101, 49, 0.12);
  transition: transform 0.4s var(--sf-ease-spring), background-color 0.3s ease, color 0.3s ease;
}

.sf-contact li:hover .sf-contact-icon {
  color: #fff;
  background: var(--sf-base);
  transform: rotate(-8deg) scale(1.08);
}

.sf-contact a {
  color: var(--sf-text);
  transition: color 0.3s ease;
}

.sf-contact a:hover,
.sf-contact a:focus-visible {
  color: #fff;
}

/* Newsletter */
.sf-form {
  position: relative;
}

.site-footer .sf-form .form-control {
  height: 56px;
  padding: 0 64px 0 22px;
  border-radius: 999px;
  font-size: 15px;
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: none;
  transition: border-color 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
}

.site-footer .sf-form .form-control::placeholder {
  color: rgba(255, 255, 255, 0.45);
}

.site-footer .sf-form .form-control:focus {
  background: rgba(255, 255, 255, 0.09);
  border-color: var(--sf-base);
  box-shadow: 0 0 0 4px rgba(221, 101, 49, 0.18);
}

.site-footer .sf-form .form-control.is-invalid {
  border-color: #ff6b6b;
  animation: sf-shake 0.4s ease;
}

.sf-submit {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  font-size: 17px;
  color: #fff;
  background: linear-gradient(135deg, var(--sf-base), var(--sf-peach));
  box-shadow: 0 8px 20px -8px rgba(221, 101, 49, 0.9);
  cursor: pointer;
  transition: transform 0.4s var(--sf-ease-spring), box-shadow 0.3s ease;
}

.sf-submit:hover,
.sf-submit:focus-visible {
  transform: scale(1.08) rotate(-12deg);
  box-shadow: 0 10px 24px -8px rgba(221, 101, 49, 1);
}

.sf-submit:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

.sf-submit.loading i {
  animation: sf-fly 0.8s ease-in-out infinite;
}

.site-footer .sf-form .form-results {
  margin-top: 10px;
  padding: 6px 14px;
  border-radius: 10px;
  font-size: 14px;
  line-height: 1.5;
  text-align: center;
}

/* Giant wordmark */
.sf-wordmark {
  position: relative;
  margin: 70px 0 0;
  font-size: clamp(28px, 8.6vw, 126px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  text-align: center;
  white-space: nowrap;
  user-select: none;
}

.sf-wordmark span {
  display: block;
}

.sf-wordmark-outline {
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.12);
}

.sf-wordmark-fill {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--sf-base), var(--sf-peach), var(--sf-coral), var(--sf-base));
  background-size: 300% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: sf-text-flow 10s linear infinite;
  -webkit-mask-image: radial-gradient(circle 260px at var(--sf-mx, 50%) var(--sf-my, 60%), #000 0%, rgba(0, 0, 0, 0.35) 45%, transparent 75%);
  mask-image: radial-gradient(circle 260px at var(--sf-mx, 50%) var(--sf-my, 60%), #000 0%, rgba(0, 0, 0, 0.35) 45%, transparent 75%);
  clip-path: inset(0 100% 0 0);
  transition: clip-path 1.6s var(--sf-ease-out);
}

.sf-wordmark.is-visible .sf-wordmark-fill {
  clip-path: inset(0 0 0 0);
}

/* Bottom bar */
.sf-bottom {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 30px;
  padding: 24px 0;
  border-top: 1px solid var(--sf-line);
  font-size: 15px;
}

.sf-copy {
  margin: 0;
  color: var(--sf-text);
}

.sf-copy a {
  color: #fff;
  font-weight: 500;
  background: linear-gradient(var(--sf-base), var(--sf-base)) left bottom / 0 1px no-repeat;
  transition: background-size 0.4s var(--sf-ease-out), color 0.3s ease;
}

.sf-copy a:hover {
  color: #fff;
  background-size: 100% 1px;
}

.sf-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 26px;
  margin-left: auto;
}

.sf-legal a {
  color: var(--sf-text);
  transition: color 0.3s ease;
}

.sf-legal a:hover,
.sf-legal a:focus-visible {
  color: var(--sf-base);
}

.sf-top {
  flex: none;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 18px;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.15);
  transition: background-color 0.3s ease, border-color 0.3s ease, transform 0.4s var(--sf-ease-spring);
}

.sf-top:hover,
.sf-top:focus-visible {
  color: #fff;
  background: var(--sf-base);
  border-color: var(--sf-base);
  transform: translateY(-4px);
}

.sf-top:hover i {
  animation: sf-lift 0.8s ease-in-out infinite;
}

/* Scroll reveal (only hidden once JS is running) */
.sf-js .sf-reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.8s var(--sf-ease-out);
  transition-delay: calc(var(--sf-i, 0) * 90ms);
}

.sf-js .sf-reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* Keyframes */
@keyframes sf-drift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(50px, 30px) scale(1.12); }
}

@keyframes sf-scan {
  0% { background-position: -100% 0; }
  100% { background-position: 200% 0; }
}

@keyframes sf-text-flow {
  to { background-position: 300% 0; }
}

@keyframes sf-shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-6px); }
  75% { transform: translateX(6px); }
}

@keyframes sf-fly {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(3px, -3px); }
}

@keyframes sf-lift {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}

/* Responsive */
@media (max-width: 1199px) {
  .sf-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .sf-brand,
  .sf-newsletter {
    grid-column: span 3;
  }

  .sf-tagline {
    max-width: none;
  }

  .sf-newsletter p {
    max-width: 520px;
  }

  .sf-newsletter .sf-form {
    max-width: 520px;
  }
}

@media (max-width: 767px) {
  .site-footer {
    padding-top: 60px;
  }

  .sf-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 34px 24px;
  }

  .sf-brand,
  .sf-newsletter,
  .sf-grid > .sf-col:nth-child(4) {
    grid-column: span 2;
  }

  .sf-wordmark {
    margin-top: 50px;
  }

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

  .sf-legal {
    justify-content: center;
    margin-left: 0;
  }
}

/* Respect users who prefer less motion */
@media (prefers-reduced-motion: reduce) {
  .site-footer *,
  .site-footer *::before,
  .site-footer *::after {
    animation: none !important;
    transition: none !important;
  }

  .sf-js .sf-reveal {
    opacity: 1;
    transform: none;
  }

  .sf-wordmark-fill {
    clip-path: none;
  }
}
