/* ============================================================
   OXFORDIAN FOOTER
   ============================================================ */

.ox-footer {
  background: var(--ox-navy);
  color: rgba(255,255,255,0.8);
  position: relative;
  overflow: hidden;
}

.ox-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
}

/* Decorative red line top */
.ox-footer__top-line {
  height: 4px;
  background: linear-gradient(90deg, transparent, var(--ox-red), var(--ox-gold), var(--ox-red), transparent);
}

/* Main footer */
.ox-footer__main {
  padding: clamp(4rem, 8vw, 7rem) 0 clamp(3rem, 5vw, 5rem);
  position: relative;
  z-index: 1;
}

.ox-footer__grid {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr 1.2fr;
  gap: clamp(2rem, 4vw, 4rem);
}

/* Footer brand column */
.footer-brand {}

.footer-logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  text-decoration: none;
  margin-bottom: var(--space-6);
}

.footer-logo__img {
  height: 56px;
  width: auto;
}

.footer-logo__name {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--ox-white);
  line-height: 1.1;
}

.footer-logo__tagline {
  font-family: var(--font-heading);
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ox-red-light);
}

.footer-brand__desc {
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.55);
  line-height: 1.8;
  margin-bottom: var(--space-6);
  max-width: 300px;
}

/* Social links */
.footer-social {
  display: flex;
  gap: var(--space-3);
}

.social-link {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-lg);
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.6);
  transition: all var(--duration-base) var(--ease-smooth);
}

.social-link:hover {
  background: var(--ox-red);
  border-color: var(--ox-red);
  color: var(--ox-white);
  transform: translateY(-3px);
  box-shadow: var(--shadow-red);
}

.social-link svg { width: 18px; height: 18px; }

/* Footer nav columns */
.footer-col__title {
  font-family: var(--font-heading);
  font-size: var(--text-xs);
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ox-white);
  margin-bottom: var(--space-6);
  position: relative;
  padding-bottom: var(--space-3);
}

.footer-col__title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 32px;
  height: 2px;
  background: var(--ox-red);
  border-radius: 2px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.footer-link {
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.55);
  display: flex;
  align-items: center;
  gap: var(--space-2);
  transition: all var(--duration-fast) var(--ease-smooth);
  padding: var(--space-1) 0;
}

.footer-link:hover {
  color: var(--ox-white);
  padding-left: var(--space-2);
}

.footer-link::before {
  content: '›';
  color: var(--ox-red);
  font-size: var(--text-base);
  font-weight: 700;
  opacity: 0;
  transition: opacity var(--duration-fast) var(--ease-smooth);
}

.footer-link:hover::before { opacity: 1; }

/* Contact column */
.footer-contact-item {
  display: flex;
  gap: var(--space-3);
  margin-bottom: var(--space-5);
}

.contact-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  background: rgba(192,39,45,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.contact-icon svg { width: 16px; height: 16px; color: var(--ox-red); }

.contact-label {
  font-family: var(--font-heading);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  margin-bottom: 2px;
}

.contact-value {
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.75);
  line-height: 1.5;
}

.contact-value a {
  color: inherit;
  transition: color var(--duration-fast);
}

.contact-value a:hover { color: var(--ox-gold); }

/* Admission badge in footer */
.footer-admission-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 0.625rem 1.25rem;
  background: var(--ox-red);
  color: var(--ox-white);
  border-radius: var(--radius-lg);
  font-family: var(--font-heading);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-top: var(--space-5);
  text-decoration: none;
  transition: all var(--duration-base) var(--ease-smooth);
}

.footer-admission-badge:hover {
  background: var(--ox-red-deep);
  transform: translateY(-2px);
  color: var(--ox-white);
}

/* Divider */
.ox-footer__divider {
  height: 1px;
  background: rgba(255,255,255,0.08);
  position: relative;
  z-index: 1;
}

/* Bottom bar */
.ox-footer__bottom {
  padding: var(--space-6) 0;
  position: relative;
  z-index: 1;
}

.ox-footer__bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  flex-wrap: wrap;
}

.footer-copyright {
  font-size: var(--text-xs);
  color: rgba(255,255,255,0.35);
  letter-spacing: 0.04em;
}

.footer-copyright a {
  color: rgba(255,255,255,0.5);
  transition: color var(--duration-fast);
}

.footer-copyright a:hover { color: var(--ox-gold); }

.footer-bottom-links {
  display: flex;
  gap: var(--space-5);
}

.footer-bottom-link {
  font-size: var(--text-xs);
  color: rgba(255,255,255,0.35);
  letter-spacing: 0.04em;
  transition: color var(--duration-fast);
}

.footer-bottom-link:hover { color: rgba(255,255,255,0.7); }

/* ============================================================
   WHATSAPP FLOATING BUTTON
   ============================================================ */
.whatsapp-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: var(--space-3);
}

.whatsapp-float__bubble {
  background: var(--ox-white);
  border-radius: var(--radius-xl);
  padding: var(--space-4) var(--space-5);
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--ox-gray-200);
  max-width: 240px;
  font-size: var(--text-sm);
  color: var(--ox-gray-700);
  line-height: 1.5;
  opacity: 0;
  transform: translateY(10px) scale(0.95);
  transform-origin: bottom right;
  transition: all var(--duration-base) var(--ease-spring);
  pointer-events: none;
}

.whatsapp-float__bubble strong {
  display: block;
  color: var(--ox-navy);
  font-family: var(--font-heading);
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: var(--space-1);
}

.whatsapp-float:hover .whatsapp-float__bubble {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.whatsapp-float__btn {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #25D366;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 32px rgba(37, 211, 102, 0.40);
  transition: all var(--duration-base) var(--ease-spring);
  position: relative;
  cursor: pointer;
  text-decoration: none;
}

.whatsapp-float__btn:hover {
  transform: scale(1.08) translateY(-2px);
  box-shadow: 0 12px 40px rgba(37, 211, 102, 0.50);
}

.whatsapp-float__btn::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: rgba(37, 211, 102, 0.2);
  animation: whatsapp-ring 3s infinite;
}

@keyframes whatsapp-ring {
  0%   { transform: scale(1); opacity: 0.7; }
  100% { transform: scale(1.6); opacity: 0; }
}

.whatsapp-float__btn svg { width: 30px; height: 30px; color: white; }

/* Scroll to top button */
.scroll-top-btn {
  position: fixed;
  bottom: 104px;
  right: 28px;
  z-index: 9998;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--ox-navy);
  border: 2px solid rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ox-white);
  cursor: pointer;
  opacity: 0;
  transform: translateY(10px);
  transition: all var(--duration-base) var(--ease-smooth);
  box-shadow: var(--shadow-lg);
}

.scroll-top-btn.visible {
  opacity: 1;
  transform: translateY(0);
}

.scroll-top-btn:hover {
  background: var(--ox-red);
  transform: translateY(-3px);
}

.scroll-top-btn svg { width: 18px; height: 18px; }

/* ============================================================
   RESPONSIVE FOOTER
   ============================================================ */
@media (max-width: 1080px) {
  .ox-footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-8);
  }

  .footer-brand {
    grid-column: span 2;
  }
}

@media (max-width: 640px) {
  .ox-footer__grid {
    grid-template-columns: 1fr;
  }

  .footer-brand {
    grid-column: span 1;
  }

  .ox-footer__bottom-inner {
    flex-direction: column;
    text-align: center;
  }

  .whatsapp-float { bottom: 20px; right: 20px; }

  .whatsapp-float__btn { width: 54px; height: 54px; }

  .scroll-top-btn { bottom: 90px; right: 20px; }
}
