/* =============================================
   FOOTER - Single end-note + strip section
   BG: subtle_tech_blue (desktop/mobile variants)
   Animated with slow drift + overlay glow
============================================= */
.footer {
  background-image: url('../assets/images/Backgrounds/subtle_tech_blue_desktop.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: var(--text-dark);
  position: relative;
  overflow: hidden;
  animation: footerBgDrift 22s ease-in-out infinite alternate;
}

@keyframes footerBgDrift {
  0%   { background-position: 48% 48%; }
  50%  { background-position: 53% 44%; }
  100% { background-position: 50% 52%; }
}

/* Soft overlay to keep text legible */
.footer::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 30% 40%, rgba(255,255,255,0.45), transparent),
    radial-gradient(ellipse 60% 80% at 70% 70%, rgba(200,218,248,0.30), transparent);
  pointer-events: none;
  z-index: 0;
}

/* ── Memorial end-note ── */
.footer-inner {
  max-width: 680px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
  text-align: center;
  padding: var(--section-pad-v) var(--section-pad-h) clamp(48px, 6vw, 80px);
}

/* Emblem */
.footer-emblem {
  display: flex;
  justify-content: center;
  margin-bottom: clamp(28px, 3.5vw, 44px);
}

/* ── Image sequence circle ── */
.footer-circle-seq {
  width: clamp(72px, 8vw, 96px);
  height: clamp(72px, 8vw, 96px);
  border-radius: 50%;
  overflow: hidden;
  position: relative;
  box-shadow: 0 16px 48px rgba(111, 151, 238, 0.28);
  background: linear-gradient(135deg, var(--blue-mid) 0%, var(--blue-accent) 100%);
}

.seq-frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 0;
  transition: opacity 0.8s ease;
}

.seq-frame.active {
  opacity: 1;
}

.footer-name {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 14px;
  color: var(--text-dark);
  white-space: nowrap;
}

.footer-message {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(17px, 2vw, 21px);
  color: var(--text-mid);
  line-height: 1.8;
  max-width: 500px;
  margin: 0 auto;
}

/* ── Write to Us form ── */
.footer-form-wrap {
  position: relative;
  z-index: 2;
  padding: clamp(48px, 7vw, 96px) clamp(24px, 6vw, 96px);
}

.footer-form-inner {
  max-width: 680px;
  margin: 0 auto;
}

.footer-form-inner .section-header {
  margin-bottom: clamp(32px, 4vw, 48px);
}

.footer-form-inner .section-header h2 {
  color: var(--text-dark);
}

.wtu-form {
  display: flex;
  flex-direction: column;
  gap: clamp(16px, 2vw, 24px);
}

.wtu-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(12px, 2vw, 20px);
}

.wtu-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.wtu-field label {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-dark);
}

.wtu-field input,
.wtu-field textarea {
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--text-dark);
  background: rgba(255, 255, 255, 0.72);
  border: 1.5px solid rgba(111, 151, 238, 0.28);
  border-radius: var(--radius);
  padding: 14px 18px;
  width: 100%;
  outline: none;
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
  resize: none;
}

.wtu-field input::placeholder,
.wtu-field textarea::placeholder {
  color: var(--text-mid);
  opacity: 0.6;
}

.wtu-field input:focus,
.wtu-field textarea:focus {
  border-color: var(--blue-vivid);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 0 0 3px rgba(93, 127, 219, 0.12);
}

.wtu-req { color: var(--blue-accent); }

.wtu-label-opt {
  font-weight: 400;
  font-size: 11px;
  opacity: 0.6;
  text-transform: none;
  letter-spacing: 0;
}

.wtu-file-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.72);
  border: 1.5px solid rgba(111, 151, 238, 0.28);
  border-radius: var(--radius);
  padding: 12px 18px;
  cursor: pointer;
  font-size: 14px;
  color: var(--text-dark);
  transition: border-color 0.2s ease, background 0.2s ease;
  width: 100%;
}

.wtu-file-btn:hover {
  border-color: var(--blue-vivid);
  background: rgba(255, 255, 255, 0.92);
}

.wtu-file-btn input[type="file"] {
  display: none;
}

.wtu-file-hint {
  font-size: 12px;
  color: var(--text-mid);
  display: block;
  margin-top: 6px;
}

.wtu-submit {
  align-self: center;
  background: var(--blue-vivid);
  color: #ffffff;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 500;
  padding: 14px 36px;
  border: none;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.wtu-submit:hover {
  opacity: 0.88;
  transform: translateY(-1px);
}

.wtu-success {
  font-size: 14px;
  color: var(--blue-vivid);
  font-weight: 500;
  opacity: 0;
  transition: opacity 0.4s ease;
  margin: 0;
}

.wtu-success.visible {
  opacity: 1;
}

@media (max-width: 768px) {
  .wtu-row {
    grid-template-columns: 1fr;
  }

  .wtu-submit {
    align-self: stretch;
    text-align: center;
  }
}

/* ── Site strip - same BG as .nav.scrolled ── */
.footer-strip {
  position: relative;
  z-index: 2;
  padding: clamp(20px, 2.5vw, 32px) clamp(24px, 6vw, 96px);
  background: rgba(245, 249, 253, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 -2px 24px rgba(111, 151, 238, 0.08);
}

.footer-strip-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: clamp(14px, 2vw, 20px);
}

/* ── Above divider: links + made with love ── */
.footer-strip-top {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  text-align: center;
}

.footer-strip-nav {
  display: flex;
  gap: clamp(12px, 2vw, 28px);
  flex-wrap: wrap;
  justify-content: center;
}

/* Match header nav link colour exactly */
.footer-strip-nav a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-dark);
  transition: color 0.2s ease;
}

.footer-strip-nav a:hover {
  color: var(--blue-vivid);
}

.footer-made-love {
  font-size: 13px;
  color: var(--text-dark);
}

.footer-made-love strong {
  color: var(--text-dark);
}

.heart {
  color: #e53e3e;
}

/* ── Thin divider ── */
.footer-divider {
  width: 100%;
  height: 1px;
  background: rgba(111, 151, 238, 0.15);
}

/* ── Below divider: copyright + powered by ── */
.footer-strip-bottom {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
  text-align: center;
}

.footer-copy {
  font-size: 12px;
  color: var(--text-mid);
}

.footer-credit-de {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  vertical-align: middle;
  gap: 6px;
  font-size: 12px;
  color: var(--text-mid);
  line-height: 1;
}

.footer-credit-de img {
  width: 48px;
  height: auto;
  opacity: 0.75;
  object-fit: contain;
}

/* ── Desktop: top row inline, space-between ── */
@media (min-width: 769px) {
  .footer-strip-top {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    text-align: left;
  }

  .footer-strip-nav {
    justify-content: flex-start;
  }

  .footer-credit-de img {
    width: 84px;
  }

  .footer-credit-de {
    align-items: center;
  }

  /* Bottom row: spread + 10% larger */
  .footer-strip-bottom {
    justify-content: space-between;
  }

  .footer-copy {
    font-size: 13px;
  }

  .footer-credit-de {
    font-size: 13px;
  }
}

/* ── Mobile BG swap ── */
@media (max-width: 768px) {
  .footer {
    background-image: url('../assets/images/Backgrounds/subtle_tech_blue_mobile.png');
    background-size: cover;
  }

  .footer-credit-de img {
    width: 74px;
    height: auto;
  }

  .footer-name {
    white-space: normal;
  }
}

/* ── Reduced motion ── */
@media (prefers-reduced-motion: reduce) {
  .footer {
    animation: none;
    background-size: cover;
    background-position: center;
  }
}
