﻿/* =========================================================
   Footer Section 5 — blue panel + stroke headline
   ========================================================= */
.sf5-footer {
  position: relative;
  width: 100%;
  background: #fff;
  overflow: hidden;
  direction: rtl;
  text-align: right;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-synthesis: none;
}

/* ---------- Large stroke text ---------- */
.sf5-stroke {
  position: relative;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  padding-top: 6rem;
  padding-bottom: 0;
  z-index: 0;
  overflow: hidden;
}

.sf5-stroke::before {
  content: "";
  position: absolute;
  inset: -20%;
  pointer-events: none;
  background: radial-gradient(45% 60% at 25% 55%, rgba(28, 118, 248, 0.14), rgba(28, 118, 248, 0) 70%),
    radial-gradient(40% 55% at 75% 45%, rgba(28, 118, 248, 0.1), rgba(28, 118, 248, 0) 70%);
  animation: sf5-soft-glow 8s ease-in-out infinite alternate;
}

.sf5-stroke-title {
  position: relative;
  z-index: 1;
  margin: 0 0 -1rem;
  font-size: min(210px, 11vw);
  font-weight: 600;
  color: transparent;
  /* clean outline via text-shadow (no internal strokes) */
  text-shadow:
    -1px -1px 0 rgba(0, 0, 0, .4),
    1px -1px 0 rgba(0, 0, 0, .4),
    -1px 1px 0 rgba(0, 0, 0, .4),
    1px 1px 0 rgba(0, 0, 0, .4),
    -2px 0 0 rgba(0, 0, 0, .35),
    2px 0 0 rgba(0, 0, 0, .35),
    0 -2px 0 rgba(0, 0, 0, .35),
    0 2px 0 rgba(0, 0, 0, .35);
  line-height: 0.75;
  user-select: none;
  opacity: 0.5;
  white-space: nowrap;
}

/* ---------- Shadow Bridge (soft shadow fading from middle down) ---------- */
.sf5-glass-bridge {
  position: absolute;
  top: -40px;
  width: 100%;
  height: 60px;
  z-index: 5;
  pointer-events: none;
  background: linear-gradient(180deg,
      rgba(255, 255, 255, 0.00) 0%,
      rgba(255, 255, 255, 0.08) 25%,
      rgba(255, 255, 255, 0.16) 50%,
      rgba(255, 255, 255, 0.08) 70%,
      rgba(255, 255, 255, 0.02) 85%,
      rgba(255, 255, 255, 0.00) 100%);
  backdrop-filter: blur(18px) saturate(150%);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow:
    0 8px 24px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

@media (min-width: 768px) {
  .sf5-stroke {
    padding-top: 8rem;
  }

  .sf5-stroke-title {
    margin-bottom: 1rem;
  }
}

@media (min-width: 425px) {
  .sf5-stroke-title {
    margin-bottom: 1.8rem;
  }
}

@media (min-width: 375px) {
  .sf5-stroke-title {
    margin-bottom: 2rem;
  }
}

@media (min-width: 320px) {
  .sf5-stroke-title {
    margin-bottom: 2rem;
  }
}

/* ---------- Blue panel ---------- */
.sf5-panel {
  position: relative;
  width: 100%;
  background: #1c76f8;
  z-index: 10;
  min-height: 400px;
}

/* Animated fluted-glass background (stand-in for @paper-design/shaders FlutedGlass) */
.sf5-shader {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.sf5-shader-flutes {
  position: absolute;
  inset: -20px;
  background: repeating-linear-gradient(90deg,
      rgba(255, 255, 255, 0.13) 0px,
      rgba(255, 255, 255, 0.04) 2px,
      rgba(0, 0, 0, 0.1) 5px,
      rgba(0, 0, 0, 0.04) 8px,
      rgba(255, 255, 255, 0.06) 11px,
      rgba(255, 255, 255, 0.13) 13px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0) 55%);
  animation: sf5-flute-drift 3.5s linear infinite;
}

.sf5-shader-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  will-change: transform;
}

.sf5-glow-a {
  width: 55vw;
  height: 55vw;
  min-width: 320px;
  min-height: 320px;
  right: -12vw;
  top: -22vw;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0) 65%);
  opacity: 0.45;
  animation: sf5-glow-a 9s ease-in-out infinite alternate;
}

.sf5-glow-b {
  width: 50vw;
  height: 50vw;
  min-width: 300px;
  min-height: 300px;
  left: -10vw;
  bottom: -18vw;
  background: radial-gradient(circle, rgba(3, 32, 84, 0.55), rgba(3, 32, 84, 0) 65%);
  opacity: 0.6;
  animation: sf5-glow-b 12s ease-in-out infinite alternate;
}

.sf5-shader::after {
  content: "";
  position: absolute;
  inset: -160px;
  opacity: 0.14;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: sf5-grain 0.6s steps(6, end) infinite;
}

@keyframes sf5-flute-drift {
  from {
    background-position: 0 0, 0 0;
  }

  to {
    background-position: 13px 0, 0 0;
  }
}

@keyframes sf5-glow-a {
  from {
    transform: translate3d(0, 0, 0) scale(1);
  }

  to {
    transform: translate3d(-18vw, 22vh, 0) scale(1.18);
  }
}

@keyframes sf5-glow-b {
  from {
    transform: translate3d(0, 0, 0) scale(1);
  }

  to {
    transform: translate3d(16vw, -16vh, 0) scale(1.12);
  }
}

@keyframes sf5-grain {
  from {
    background-position: 0 0;
  }

  to {
    background-position: 160px 120px;
  }
}

@keyframes sf5-soft-glow {
  from {
    transform: translate3d(-4%, -2%, 0) scale(1);
  }

  to {
    transform: translate3d(4%, 3%, 0) scale(1.08);
  }
}

@media (prefers-reduced-motion: reduce) {

  .sf5-shader-flutes,
  .sf5-shader-glow,
  .sf5-shader::after,
  .sf5-stroke::before {
    animation: none !important;
  }
}

/* ---------- Content ---------- */
.sf5-content {
  position: relative;
  z-index: 10;
  max-width: 80rem;
  margin: 0 auto;
  padding: 4rem 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 4rem;
}

.sf5-left {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  max-width: 384px;
  width: 100%;
}

.sf5-left-head {
  display: flex;
  flex-direction: column;
}

.sf5-logo {
  display: block;
  width: auto;
  height: 2.5rem;
  max-width: 200px;
  object-fit: contain;
  object-position: right center;
  flex-shrink: 0;
  margin-bottom: 0.75rem;
  /* force the (possibly dark) admin logo to solid white on the blue panel */
  filter: brightness(0) invert(1);
}

.sf5-heading {
  margin: 0;
  color: #fff;
  font-size: 1.375rem;
  font-weight: 500;
  line-height: 1.35;
}

.sf5-meta {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 3rem;
  padding-top: 2rem;
}

.sf5-socials {
  display: block;
  flex-shrink: 0;
  width: 180px;
  height: auto;
}

.sf5-copy {
  margin: 0.25rem 0 0;
  font-weight: 300;
  font-size: 0.75rem;
  line-height: 1rem;
  color: rgba(255, 255, 255, 0.8);
}

.sf5-credit {
  display: inline-block;
  align-self: flex-start;
  font-weight: 300;
  font-size: 0.75rem;
  line-height: 1rem;
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: color 0.2s ease;
}

.sf5-credit:hover,
.sf5-credit:focus-visible {
  color: #fff;
  text-decoration: underline;
}

/* ---------- Link columns ---------- */
.sf5-cols {
  display: flex;
  flex-wrap: wrap;
  gap: 3rem;
}

.sf5-col {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.sf5-col-title {
  margin: 0;
  color: #fff;
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.75rem;
}

.sf5-col-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.sf5-col-list a {
  display: inline-block;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.25rem;
  text-decoration: none;
  transition: color 0.2s ease;
}

.sf5-col-list a:hover,
.sf5-col-list a:focus-visible {
  color: #fff;
}

@media (min-width: 768px) {
  .sf5-content {
    padding: 6rem 3rem;
  }

  .sf5-heading {
    font-size: 1.5rem;
  }

  .sf5-socials {
    width: 200px;
  }

  .sf5-copy {
    font-size: 0.8125rem;
  }

  .sf5-credit {
    font-size: 0.8125rem;
  }

  .sf5-col-title {
    font-size: 1.25rem;
  }

  .sf5-col-list {
    gap: 1rem;
  }

  .sf5-col-list a {
    font-size: 0.9375rem;
  }
}

@media (min-width: 1024px) {
  .sf5-content {
    flex-direction: row;
    padding: 6rem 6rem;
    gap: 2rem;
  }

  .sf5-meta {
    margin-top: auto;
  }

  .sf5-cols {
    flex-wrap: nowrap;
    gap: 6rem;
  }
}
