/* ================================================================
   FORCE FEST 2K26 - CONTACT & FOOTER REDESIGN
   forcefest-footer.css

   Technogenesis - Innovate. Create. Evolve.

   Loaded after forcefest-pass3.css - uses the same design
   language (--p3-* tokens, Tektur/Sora type, cyan/purple accents,
   4px radius system, ff-btn family) so the section reads as the
   natural conclusion of the site, not a bolted-on template.
   ================================================================ */

html {
  scroll-behavior: smooth;
}

/* Legacy Qode footer chrome retired. The homepage now uses only .ff-footer. */ /* ================================================================
   1. SECTION SHELL + BACKGROUND
   ================================================================ */

.ff-footer {
  position: relative;
  overflow: hidden;
  background: var(--p3-bg, #09090f);
  padding: clamp(72px, 9vw, 120px) clamp(20px, 4vw, 70px) 0;
  isolation: isolate;
} /* Layered background: soft dot/circuit grid + two radial glows */
.ff-footer-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(0, 229, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 229, 255, 0.05) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: linear-gradient(
    to bottom,
    transparent,
    #000 12%,
    #000 88%,
    transparent
  );
  mask-image: linear-gradient(
    to bottom,
    transparent,
    #000 12%,
    #000 88%,
    transparent
  );
}
.ff-footer-glow-a,
.ff-footer-glow-b {
  position: absolute;
  z-index: 0;
  pointer-events: none;
  border-radius: 50%;
  filter: blur(10px);
}
.ff-footer-glow-a {
  top: -140px;
  left: -100px;
  width: 420px;
  height: 420px;
  background: radial-gradient(
    circle,
    rgba(0, 229, 255, 0.07) 0%,
    transparent 72%
  );
}
.ff-footer-glow-b {
  bottom: -160px;
  right: -120px;
  width: 460px;
  height: 460px;
  background: radial-gradient(
    circle,
    rgba(168, 85, 247, 0.06) 0%,
    transparent 72%
  );
} /* Faint circuit-trace accent - a handful of thin lines/nodes, low opacity */
.ff-footer-circuit {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.5;
}
.ff-footer-inner {
  position: relative;
  z-index: 1;
  max-width: 1280px;
  margin: 0 auto;
} /* ================================================================
   2. HEADING
   ================================================================ */

.ff-footer-top {
  text-align: center;
  margin-bottom: clamp(48px, 6vw, 76px);
}
.ff-footer-top .ff-section-title {
  margin-bottom: 0.5rem !important;
}
.ff-footer-sub {
  font-family: var(--p3-font-b);
  font-size: 0.9rem;
  color: var(--p3-text-mid);
  letter-spacing: 0.02em;
  max-width: 480px;
  margin: 0 auto;
} /* ================================================================
   3. THREE-ZONE GRID - Brand / Nav / Contact
   ================================================================ */

.ff-footer-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.75fr 1.1fr;
  gap: clamp(32px, 5vw, 64px);
  padding-bottom: clamp(44px, 6vw, 68px);
}
.ff-footer-col-label {
  font-family: var(--p3-font-b);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--p3-text-dim);
  margin: 0 0 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--p3-border-hair);
} /* ── Left: Brand block ───────────────────────────────────────────── */

.ff-footer-brand-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  margin-bottom: 18px;
}
.ff-footer-brand-logo img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  display: block;
}
.ff-footer-brand-logo img[src^="images/school-logo.webp"] {
  width: 48px;
  height: 48px;
}
.ff-footer-logo-sep {
  width: 1px;
  height: 26px;
  background: var(--p3-border-dim);
}
.ff-footer-brand-name {
  font-family: var(--p3-font-d);
  font-size: 1.22rem;
  letter-spacing: 0.05em;
  color: var(--p3-white);
  text-transform: uppercase;
}
.ff-footer-brand-name span {
  color: var(--p3-cyan);
}
.ff-footer-desc {
  font-family: var(--p3-font-b);
  font-size: 0.85rem;
  line-height: 1.7;
  color: var(--p3-text-mid);
  max-width: 320px;
  margin: 0 0 20px;
}
.ff-footer-theme-tag {
  display: inline-block;
  font-family: var(--p3-font-d);
  font-size: 0.62rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--p3-cyan);
  background: var(--p3-cyan-dim);
  border: 1px solid var(--p3-border);
  border-radius: var(--p3-r);
  padding: 5px 12px;
  margin-bottom: 10px;
}
.ff-footer-tagline {
  font-family: var(--p3-font-b);
  font-size: 0.78rem;
  font-style: italic;
  letter-spacing: 0.04em;
  color: var(--p3-text-dim);
  margin: 0;
} /* ── Centre: Quick nav ───────────────────────────────────────────── */

.ff-footer-nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.ff-footer-nav-list a {
  position: relative;
  display: inline-flex;
  font-family: var(--p3-font-b);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--p3-text-mid);
  text-decoration: none;
  padding: 7px 0;
  transition: color var(--p3-t);
}
.ff-footer-nav-list a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 3px;
  width: 100%;
  height: 1px;
  background: var(--p3-cyan);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--p3-t);
}
.ff-footer-nav-list a:hover {
  color: var(--p3-cyan);
}
.ff-footer-nav-list a:hover::after {
  transform: scaleX(1);
} /* ── Right: Contact info ─────────────────────────────────────────── */

.ff-footer-contact-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.ff-footer-contact-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.ff-footer-icon {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: var(--p3-r);
  border: 1px solid var(--p3-border-dim);
  background: rgba(255, 255, 255, 0.02);
  color: var(--p3-cyan);
  margin-top: 1px;
  transition:
    border-color var(--p3-t),
    background var(--p3-t);
}
.ff-footer-contact-list li:hover .ff-footer-icon {
  border-color: var(--p3-border);
  background: var(--p3-cyan-dim);
}
.ff-footer-icon svg {
  width: 15px;
  height: 15px;
}
.ff-footer-contact-text {
  display: flex;
  flex-direction: column;
  padding-top: 4px;
}
.ff-footer-contact-label {
  font-family: var(--p3-font-b);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--p3-text-dim);
  margin-bottom: 2px;
}
.ff-footer-contact-list a,
.ff-footer-contact-list span.ff-footer-contact-value {
  font-family: var(--p3-font-b);
  font-size: 0.86rem;
  color: var(--p3-text);
  text-decoration: none;
  line-height: 1.4;
  transition: color var(--p3-t);
}
.ff-footer-contact-list a:hover {
  color: var(--p3-cyan);
} /* ================================================================
   4. SOCIAL ROW
   ================================================================ */

.ff-footer-social {
  display: flex;
  align-items: center;
  gap: 14px;
  justify-content: center;
  padding: clamp(28px, 4vw, 40px) 0;
  border-top: 1px solid var(--p3-border-hair);
}
.ff-footer-social-label {
  font-family: var(--p3-font-b);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--p3-text-dim);
  margin-right: 6px;
}
.ff-footer-social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--p3-border-dim);
  background: rgba(255, 255, 255, 0.02);
  color: var(--p3-text-mid);
  transition:
    color var(--p3-t),
    border-color var(--p3-t),
    background var(--p3-t),
    transform 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}
.ff-footer-social-link svg {
  width: 17px;
  height: 17px;
}
.ff-footer-social-link:hover {
  color: var(--p3-cyan);
  border-color: var(--p3-border);
  background: var(--p3-cyan-dim);
  transform: translateY(-3px);
  box-shadow: 0 6px 18px rgba(0, 229, 255, 0.18);
} /* ================================================================
   5. BOTTOM BAR - copyright
   ================================================================ */

.ff-footer-bottom {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding: 22px 0 0;
  border-top: 1px solid var(--p3-border-hair);
}
.ff-footer-bottom p {
  margin: 0;
  font-family: var(--p3-font-b);
  font-size: 0.72rem;
  letter-spacing: 0.03em;
  color: var(--p3-text-dim);
}
.ff-footer-credit {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  margin: 0;

  font-family: var(--p3-font-d) !important;
  letter-spacing: 0.1em !important;
  text-transform: uppercase;
  color: var(--p3-text-dim);
  opacity: 0.85;
  white-space: nowrap;
}

.ff-footer-credit span {
  color: var(--p3-cyan);
}

.ff-footer-meta {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 18px;
}
.ff-footer-legal {
  display: flex;
  align-items: center;
  gap: 14px;
}
.ff-footer-legal a {
  color: var(--p3-text-dim);
  font-family: var(--p3-font-b);
  font-size: 0.72rem;
  text-decoration: none;
  transition: color var(--p3-t);
}
.ff-footer-legal a:hover,
.ff-footer-legal a:focus-visible {
  color: var(--p3-cyan);
} /* ================================================================
   6. SCROLL REVEAL (subtle fade-in)
   ================================================================ */

.ff-reveal {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}
.ff-reveal.ff-in-view {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .ff-reveal {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
} /* ================================================================
   7. BACK TO TOP - premium floating button
   ================================================================ */

.ff-back-to-top {
  position: fixed;
  right: clamp(16px, 3vw, 32px);
  bottom: clamp(16px, 3vw, 32px);
  z-index: 400;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(9, 9, 15, 0.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--p3-border);
  color: var(--p3-cyan);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px) scale(0.92);
  transition:
    opacity 0.32s ease,
    transform 0.32s cubic-bezier(0.4, 0, 0.2, 1),
    visibility 0.32s,
    border-color 0.22s ease,
    background 0.22s ease,
    box-shadow 0.22s ease;
}
.ff-back-to-top.ff-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}
.ff-back-to-top:hover {
  border-color: var(--p3-cyan);
  background: rgba(0, 229, 255, 0.1);
  box-shadow: 0 8px 26px rgba(0, 229, 255, 0.22);
  transform: translateY(-3px) scale(1.04);
}
.ff-back-to-top:active {
  transform: translateY(-1px) scale(0.98);
}
.ff-back-to-top svg {
  width: 18px;
  height: 18px;
  transition: transform 0.22s ease;
}
.ff-back-to-top:hover svg {
  transform: translateY(-2px);
}
@media (prefers-reduced-motion: reduce) {
  .ff-back-to-top {
    transition:
      opacity 0.2s ease,
      visibility 0.2s;
    transform: none !important;
  }
  .ff-back-to-top:hover {
    transform: none !important;
  }
} /* ================================================================
   8. RESPONSIVE
   ================================================================ */

@media (max-width: 980px) {
  .ff-footer-grid {
    grid-template-columns: 1fr 1fr;
    row-gap: 44px;
  }
  .ff-footer-brand {
    grid-column: 1 / -1;
  }
  .ff-footer-desc {
    max-width: 460px;
  }
}
@media (max-width: 640px) {
  .ff-footer-brand-logo img[src^="images/school-logo.webp"] {
    width: 42px;
    height: 42px;
  }

  .ff-footer-brand-logo img {
    width: 38px;
    height: 38px;
  }

  .ff-footer-logo-sep {
    height: 23px;
  }

  .ff-footer-brand-name {
    font-size: 1.04rem;
  }

  .ff-footer {
    padding-left: 20px;
    padding-right: 20px;
  }
  .ff-footer-grid {
    grid-template-columns: 1fr;
    row-gap: 40px;
    text-align: center;
  }
  .ff-footer-brand-logo,
  .ff-footer-nav-list,
  .ff-footer-contact-list {
    align-items: center;
  }
  .ff-footer-nav-list {
    align-items: center;
  }
  .ff-footer-contact-list li {
    text-align: left;
  }
  .ff-footer-desc {
    margin-left: auto;
    margin-right: auto;
  }
  .ff-footer-col-label {
    border-bottom: none;
    padding-bottom: 0;
  }
  .ff-footer-bottom {
    flex-direction: column;
    text-align: center;
    justify-content: center;
  }
  .ff-back-to-top {
    width: 42px;
    height: 42px;
    right: 14px;
    bottom: 14px;
  }
}

/* New footer owns the layout; neutralise legacy theme wrapper spacing. */
#qodef-page-footer,
#qodef-page-footer-top-area {
  height: auto !important;
  min-height: 0 !important;
  margin: 0 !important;
}

#qodef-page-footer > .ff-footer {
  margin: 0 !important;
  min-height: 0 !important;
}

.tg-chip {
  appearance: none;
  -webkit-appearance: none;
  font: inherit;
}

.tg-chip:focus-visible {
  outline: 2px solid var(--ff-cyan, #00e5ff) !important;
  outline-offset: 4px;
}
