/* ============================================================
   FOOTER.CSS
   Section: #footer  |  Classes: .fo-section, .fo-grid
   Animations: .fo-animate (stagger via animations.js)
   Keyframes: foPulse (in main.css)
   ============================================================ */


/* ── Scroll-animation base state ── */
.fo-animate {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity   0.54s var(--ease-out) var(--fo-delay, 0ms),
    transform 0.54s var(--ease-out) var(--fo-delay, 0ms);
}
.fo-animate.is-visible { opacity: 1; transform: none; }


/* ── Section — dark teal gradient ── */
.fo-section {
  position: relative;
  background: linear-gradient(
    148deg,
    var(--teal-900)  0%,
    #0b4a4a          30%,
    var(--teal-800)  62%,
    var(--slate-900) 100%
  );
  overflow: hidden;
}

/* Premium 3-colour gradient top border */
.fo-section::before {
  content: '';
  display: block;
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent        0%,
    var(--teal-500)   18%,
    var(--gold-400)   50%,
    var(--teal-500)   82%,
    transparent       100%
  );
  flex-shrink: 0;
}

/* Dot-grid texture */
.fo-texture {
  position: absolute; inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,0.038) 1px, transparent 1px);
  background-size: 24px 24px;
  pointer-events: none; z-index: 0;
}

/* Decorative glow orbs */
.fo-glow-1 {
  position: absolute;
  top: -120px; left: -120px;
  width: 480px; height: 480px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(34,184,184,0.13) 0%, transparent 65%);
  pointer-events: none; z-index: 0;
}
.fo-glow-2 {
  position: absolute;
  bottom: -80px; right: -80px;
  width: 400px; height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(212,160,23,0.09) 0%, transparent 65%);
  pointer-events: none; z-index: 0;
}


/* ── Container ── */
.fo-container {
  position: relative; z-index: 1;
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding: var(--sp-12) var(--sp-4) 0;
}


/* ── Main footer grid (5 columns on desktop) ── */
.fo-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-10);
  padding-bottom: var(--sp-12);
}

.fo-col {
  display: flex;
  flex-direction: column;
  gap: var(--sp-5);
}


/* ── Column 1: Brand / Academy Info ── */

/* Logo */
.fo-logo {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  text-decoration: none;
  width: fit-content;
}
.fo-logo__icon-wrap {
  width: 46px; height: 46px;
  border-radius: var(--r-xl);
  background: linear-gradient(135deg, var(--teal-600), var(--teal-800));
  border: 1.5px solid rgba(255,255,255,0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 16px rgba(0,0,0,0.28);
}
.fo-logo__icon-wrap svg {
  width: 24px; height: 24px;
  color: var(--gold-300);
}
.fo-logo__text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}
.fo-logo__name {
  font-family: var(--font-head);
  font-size: 18px;
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.02em;
}
.fo-logo__tagline {
  font-size: 11px;
  font-weight: 600;
  color: var(--teal-300);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* Description */
.fo-description {
  font-size: 14px;
  line-height: 1.80;
  color: rgba(255,255,255,0.58);
  max-width: 38ch;
}
.fo-description strong { color: rgba(255,255,255,0.80); font-weight: 600; }

/* Mini stat pills */
.fo-stats {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
}
.fo-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: var(--sp-2) var(--sp-4);
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: var(--r-lg);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  min-width: 64px;
}
.fo-stat__value {
  font-family: var(--font-head);
  font-size: 16px;
  font-weight: 800;
  color: var(--gold-300);
  line-height: 1.1;
}
.fo-stat__label {
  font-size: 10.5px;
  font-weight: 500;
  color: rgba(255,255,255,0.45);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

/* Trust line */
.fo-trust-line {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 500;
  color: rgba(255,255,255,0.40);
}
.fo-trust-line svg {
  width: 13px; height: 13px;
  color: var(--teal-400);
  flex-shrink: 0;
}


/* ── Column heading (shared by right columns) ── */
.fo-col__heading {
  font-family: var(--font-head);
  font-size: 11px;
  font-weight: 700;
  color: var(--gold-300);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding-bottom: var(--sp-3);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  width: 100%;
}


/* ── Link lists (Quick Links + Courses columns) ── */
.fo-list {
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.fo-list__item { display: block; }
.fo-list__link {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 7px 0;
  font-size: 14px;
  font-weight: 500;
  color: rgba(255,255,255,0.60);
  transition:
    color        160ms var(--ease-out),
    padding-left 200ms var(--ease-out);
  border-bottom: 1px solid rgba(255,255,255,0.04);
}
.fo-list__link:hover {
  color: rgba(255,255,255,0.95);
  padding-left: 5px;
}
.fo-list__link:last-child { border-bottom: none; }

/* Dot indicator */
.fo-list__link::before {
  content: '';
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--teal-500);
  flex-shrink: 0;
  opacity: 0;
  transform: scale(0.5);
  transition: opacity 160ms, transform 160ms;
}
.fo-list__link:hover::before {
  opacity: 1;
  transform: scale(1);
}

/* External link */
.fo-list__link--ext::after {
  content: '↗';
  font-size: 10px;
  opacity: 0.5;
}


/* ── Column 4: Contact Information ── */
.fo-contact-list {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}
.fo-contact-item {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-3);
}
.fo-contact-item__icon-wrap {
  width: 32px; height: 32px;
  border-radius: var(--r-md);
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.10);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}
.fo-contact-item__icon-wrap svg {
  width: 14px; height: 14px;
  color: var(--teal-300);
}
.fo-contact-item__icon-wrap--wa svg { color: var(--whatsapp-green); }
.fo-contact-item__icon-wrap--gold svg { color: var(--gold-300); }
.fo-contact-item__content {
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.fo-contact-item__label {
  font-size: 10.5px;
  font-weight: 700;
  color: rgba(255,255,255,0.35);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  line-height: 1;
  margin-bottom: 2px;
}
.fo-contact-item__value {
  font-size: 13.5px;
  font-weight: 600;
  color: rgba(255,255,255,0.78);
  line-height: 1.35;
  transition: color 160ms;
}
a.fo-contact-item__value:hover { color: var(--teal-300); }


/* ── Column 5: Social Media ── */
.fo-social-list {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.fo-social-link {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding: 8px 10px;
  border-radius: var(--r-lg);
  color: rgba(255,255,255,0.62);
  border: 1px solid transparent;
  transition:
    color        160ms var(--ease-out),
    background   160ms var(--ease-out),
    border-color 160ms var(--ease-out),
    transform    160ms var(--ease-out);
}
.fo-social-link:hover {
  color: rgba(255,255,255,0.95);
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.10);
  transform: translateX(4px);
}
.fo-social-link__icon-wrap {
  width: 30px; height: 30px;
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.10);
  transition: background 160ms, border-color 160ms;
}
.fo-social-link:hover .fo-social-link__icon-wrap {
  background: rgba(255,255,255,0.14);
  border-color: rgba(255,255,255,0.20);
}

/* Platform-specific hover colours */
.fo-social-link--fb:hover .fo-social-link__icon-wrap { background: rgba(24,119,242,0.22);  border-color: rgba(24,119,242,0.35);  }
.fo-social-link--ig:hover .fo-social-link__icon-wrap { background: rgba(225,48,108,0.18);  border-color: rgba(225,48,108,0.30);  }
.fo-social-link--yt:hover .fo-social-link__icon-wrap { background: rgba(255,0,0,0.18);     border-color: rgba(255,0,0,0.28);     }
.fo-social-link--tt:hover .fo-social-link__icon-wrap { background: rgba(105,201,208,0.18); border-color: rgba(105,201,208,0.30); }
.fo-social-link--li:hover .fo-social-link__icon-wrap { background: rgba(10,102,194,0.22);  border-color: rgba(10,102,194,0.35);  }

.fo-social-link__icon {
  width: 14px; height: 14px;
  fill: currentColor;
  flex-shrink: 0;
  transition: color 160ms;
}
.fo-social-link__name {
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1;
}
.fo-social-caption {
  font-size: 12px;
  line-height: 1.65;
  color: rgba(255,255,255,0.32);
  max-width: 26ch;
}

/* Newsletter micro-CTA */
.fo-newsletter { margin-top: var(--sp-1); }
.fo-newsletter__label {
  font-size: 11.5px;
  font-weight: 600;
  color: rgba(255,255,255,0.48);
  display: block;
  margin-bottom: var(--sp-2);
}
.fo-newsletter__row {
  display: flex;
  gap: var(--sp-2);
}
.fo-newsletter__input {
  flex: 1;
  min-width: 0;
  padding: 9px 12px;
  background: rgba(255,255,255,0.07);
  border: 1.5px solid rgba(255,255,255,0.12);
  border-radius: var(--r-md);
  font-family: var(--font-body);
  font-size: 13px;
  color: rgba(255,255,255,0.85);
  transition: border-color 150ms, background 150ms;
}
.fo-newsletter__input::placeholder { color: rgba(255,255,255,0.28); }
.fo-newsletter__input:focus {
  border-color: var(--teal-400);
  background: rgba(255,255,255,0.10);
  outline: none;
}
.fo-newsletter__btn {
  padding: 9px 14px;
  background: var(--teal-600);
  color: var(--white);
  font-family: var(--font-head);
  font-size: 12.5px;
  font-weight: 700;
  border-radius: var(--r-md);
  border: none;
  cursor: pointer;
  white-space: nowrap;
  transition: background 160ms, transform 160ms;
}
.fo-newsletter__btn:hover { background: var(--teal-500); transform: translateY(-1px); }
.fo-newsletter__btn:active { transform: translateY(0); }


/* ── Divider ── */
.fo-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.10), rgba(255,255,255,0.10), transparent);
  margin: 0 0 var(--sp-6);
}


/* ── Bottom bar ── */
.fo-bottom {
  padding-bottom: var(--sp-8);
  display: flex;
  flex-direction: column;
  gap: var(--sp-5);
}
.fo-bottom__copy {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.fo-copyright {
  font-size: 13px;
  font-weight: 500;
  color: rgba(255,255,255,0.45);
  line-height: 1.4;
}
.fo-copyright strong { color: rgba(255,255,255,0.68); font-weight: 600; }
.fo-tagline {
  font-size: 12px;
  color: rgba(255,255,255,0.28);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}
.fo-tagline-sep { opacity: 0.35; }

.fo-bottom__trust {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-3);
}
.fo-trust-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--r-full);
  font-size: 11px;
  font-weight: 600;
  color: rgba(255,255,255,0.40);
}
.fo-trust-chip svg {
  width: 11px; height: 11px;
  color: var(--teal-400);
  flex-shrink: 0;
}

.fo-legal {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-1);
  align-items: center;
}
.fo-legal__link {
  font-size: 12px;
  font-weight: 500;
  color: rgba(255,255,255,0.32);
  padding: 4px 8px;
  border-radius: var(--r-xs);
  transition: color 150ms;
}
.fo-legal__link:hover { color: rgba(255,255,255,0.75); }
.fo-legal__sep {
  width: 3px; height: 3px;
  border-radius: 50%;
  background: rgba(255,255,255,0.18);
  flex-shrink: 0;
}


/* ── Reduced motion ── */
@media (prefers-reduced-motion: reduce) {
  .fo-animate {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  .fo-list__link,
  .fo-social-link,
  .fo-newsletter__btn,
  a.fo-contact-item__value { transition: none !important; }
  .fo-social-link:hover  { transform: none !important; }
  .fo-newsletter__btn:hover { transform: none !important; }
}


/* ── Responsive breakpoints ── */
@media (min-width: 375px) {
  .fo-container { padding-inline: var(--sp-5); }
}

@media (min-width: 600px) {
  .fo-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--sp-8) var(--sp-6);
  }
  .fo-col--brand { grid-column: 1 / -1; }
  .fo-description { max-width: 56ch; }
  .fo-bottom {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: var(--sp-4);
  }
}

@media (min-width: 768px) {
  .fo-container { padding: var(--sp-14) var(--sp-8) 0; }
  .fo-grid {
    grid-template-columns: 1fr 1fr 1fr;
    gap: var(--sp-8) var(--sp-7);
  }
  .fo-col--brand { grid-column: 1 / -1; }
}

@media (min-width: 1024px) {
  .fo-container { padding: var(--sp-16) var(--sp-8) 0; }
  .fo-grid {
    grid-template-columns: 2fr 1fr 1fr 1.4fr 1fr;
    gap: var(--sp-8);
    align-items: start;
  }
  .fo-col--brand { grid-column: auto; }
  .fo-description { max-width: 36ch; }
  .fo-bottom {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

@media (min-width: 1280px) {
  .fo-grid { gap: var(--sp-10); }
}
