/* ==========================================================================
   PSYCNOSIS Footer Component Styles
   ========================================================================== */

/* Design Tokens Fallback */
:root {
  --gold: #E2A03F;
  --gold-dark: #D97706;
  --gold-soft: #FBF4E8;
  --cream: #ffffff;
  --ease: cubic-bezier(.22, .68, .32, 1);
}

/* ============ Global Container Reset for Footer ============ */
.site-footer .wrap,
.wrap {
  width: 100%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: clamp(20px, 5vw, 48px);
  padding-right: clamp(20px, 5vw, 48px);
  box-sizing: border-box;
}

/* ============ Footer Main Styles ============ */
#footer-container,
.site-footer {
  width: 100%;
  box-sizing: border-box;
}

.site-footer {
  background: linear-gradient(181deg, #168d87 0%, #9f8509 100%);
  color: #FFFFFF;
  padding: 70px 0 0;
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  position: relative;
  clear: both;
  border-top: 3px solid #FFE066;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 56px;
  width: 100%;
  box-sizing: border-box;
}

.footer-logo {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
  text-decoration: none;
}

.footer-logo-img,
.footer-standalone-logo {
  height: clamp(72px, 6vw, 100px);
  width: auto;
  max-width: 340px;
  object-fit: contain;
  display: block;
  /* filter: brightness(0) invert(1); removed because it turns non-transparent logos into solid white squares */
  transition: transform 0.3s var(--ease), filter 0.3s var(--ease);
}

.footer-logo:hover .footer-standalone-logo,
.footer-logo:hover .footer-logo-img {
  transform: translateY(-2px) scale(1.02);
  filter: drop-shadow(0 4px 14px rgba(255, 255, 255, 0.35));
}

.footer-logo-text {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.04em;
}

.footer-brand-col p {
  font-size: 0.92rem;
  line-height: 1.65;
  color: #E8F8F7;
  max-width: 34ch;
  margin: 0;
}

.social-links-row {
  display: flex;
  gap: 12px;
  margin-top: 22px;
}

.social-links-row a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 0.9rem;
  text-decoration: none;
  transition: all 0.35s var(--ease);
}

.social-links-row a:hover {
  background: #FFE066;
  color: #168d87;
  border-color: #FFE066;
  transform: translateY(-3px);
  box-shadow: 0 4px 14px rgba(255, 224, 102, 0.4);
}

.footer-col h4 {
  color: #ffffff;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.02rem;
  font-weight: 700;
  margin: 0 0 20px 0;
  letter-spacing: 0.03em;
  position: relative;
  display: inline-block;
  padding-bottom: 6px;
  border-bottom: 2px solid rgba(255, 224, 102, 0.45);
}

.footer-col a {
  display: block;
  font-size: 0.92rem;
  color: #F2F9F9;
  margin-bottom: 12px;
  text-decoration: none;
  transition: color 0.3s var(--ease), transform 0.3s var(--ease), text-shadow 0.3s var(--ease);
}

.footer-col a:hover {
  color: #FFE066;
  transform: translateX(5px);
  text-shadow: 0 0 10px rgba(255, 224, 102, 0.35);
}

.contact-detail {
  font-size: 0.92rem;
  color: #F2F9F9;
  margin-bottom: 12px;
}

.footer-bottom-bar {
  border-top: 1px solid rgba(255, 255, 255, 0.22);
  padding: 24px 0;
  background: rgba(0, 0, 0, 0.24);
  width: 100%;
  box-sizing: border-box;
}

.footer-bottom-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.88rem;
  color: #F5F7FA;
  width: 100%;
  box-sizing: border-box;
}

.footer-bottom-inner #footer-year {
  color: #FFE066;
  font-weight: 700;
}

.footer-disclaimer {
  color: #FFF5C0;
}

.footer-bottom-inner p {
  margin: 0;
}

/* ============ Footer Responsive Layouts ============ */
@media (max-width: 992px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 36px 40px;
  }
}

@media (max-width: 640px) {
  .site-footer {
    padding-top: 50px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
    text-align: center;
  }

  .footer-logo {
    justify-content: center;
  }

  .footer-brand-col p {
    margin-left: auto;
    margin-right: auto;
    max-width: 40ch;
  }

  .social-links-row {
    justify-content: center;
  }

  .footer-col a:hover {
    transform: translateY(-2px);
  }

  .footer-bottom-inner {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }
}

/* ============ Footer Parents Enquiry Button ============ */
.footer-enquiry-btn {
  display: inline-flex !important;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #E2A03F 0%, #C48020 100%) !important;
  color: #0E4D4A !important;
  padding: 8px 16px !important;
  border-radius: 999px !important;
  font-size: 0.82rem !important;
  font-weight: 700 !important;
  text-decoration: none !important;
  margin-top: 6px;
  box-shadow: 0 4px 14px rgba(226, 160, 63, 0.35);
  transition: all 0.3s cubic-bezier(.22,.68,.32,1) !important;
  width: fit-content;
}

.footer-enquiry-btn:hover {
  transform: translateY(-2px) scale(1.03) !important;
  box-shadow: 0 6px 20px rgba(226, 160, 63, 0.5) !important;
  color: #083331 !important;
}

.footer-enquiry-btn svg {
  color: #0E4D4A;
}

/* ============ Footer WhatsApp Social Icon ============ */
.social-links-row a.footer-social-wa:hover {
  background: #25D366 !important;
  color: #FFFFFF !important;
  border-color: #25D366 !important;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.5) !important;
}

/* ============ Floating WhatsApp Widget ============ */
.psy-floating-wa {
  position: fixed;
  bottom: 26px;
  right: 26px;
  z-index: 9990;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px 8px 8px;
  background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
  color: #FFFFFF !important;
  border-radius: 50px;
  text-decoration: none !important;
  box-shadow: 0 8px 25px rgba(37, 211, 102, 0.45), 0 4px 10px rgba(0,0,0,0.15);
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  transition: all 0.35s cubic-bezier(.22,.68,.32,1);
  cursor: pointer;
}

.psy-floating-wa:hover {
  transform: translateY(-4px) scale(1.04);
  box-shadow: 0 12px 30px rgba(37, 211, 102, 0.6), 0 6px 14px rgba(0,0,0,0.2);
  color: #FFFFFF !important;
}

.psy-floating-wa-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.psy-floating-wa:hover .psy-floating-wa-icon {
  transform: rotate(-8deg) scale(1.08);
}

.psy-floating-wa-pulse {
  position: absolute;
  left: 3px;
  top: 3px;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: rgba(37, 211, 102, 0.4);
  z-index: -1;
  animation: psyWaPulse 2.4s cubic-bezier(0.24, 0, 0.38, 1) infinite;
  pointer-events: none;
}

@keyframes psyWaPulse {
  0% {
    transform: scale(0.9);
    opacity: 0.8;
  }
  70% {
    transform: scale(1.6);
    opacity: 0;
  }
  100% {
    transform: scale(1.6);
    opacity: 0;
  }
}

.psy-floating-wa-label {
  white-space: nowrap;
  font-size: 0.88rem;
  font-weight: 700;
  color: #FFFFFF;
}

@media (max-width: 768px) {
  .psy-floating-wa {
    bottom: 20px;
    right: 20px;
    padding: 0;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    justify-content: center;
  }
  .psy-floating-wa-icon {
    width: 100%;
    height: 100%;
    background: transparent;
  }
  .psy-floating-wa-label {
    display: none;
  }
  .psy-floating-wa-pulse {
    left: -1px;
    top: -1px;
    width: 54px;
    height: 54px;
  }
}