/* ════════════════════════════════════════════
   TOPFIELD — footer.css
   Fonts: Cormorant Garamond (display) + Jost (body)
   ════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,600;0,700;1,400;1,600&family=Jost:wght@300;400;500;600;700&display=swap');

/* ── CSS VARIABLES ── */
:root {
  --blue-deep  : #0a2342;
  --blue-mid   : #1565a8;
  --blue-light : #3b9fd4;
  --aqua       : #00c6d4;
  --aqua-dim   : rgba(0, 198, 212, 0.15);
  --white-dim  : rgba(255, 255, 255, 0.55);
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body   : 'Inter';
  --transition  : 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── RESET ── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* ── BASE ── */
.site-footer {
  position: relative;
  background: linear-gradient(160deg, #071829 0%, #0a2342 55%, #0d3560 100%);
  color: var(--white-dim);
  font-family: var(--font-body);
  overflow: hidden;
  padding-top: 0;
}

/* ── WAVE TOP ── */
.footer-wave-top {
  line-height: 0;
  margin-bottom: -2px;
}
.footer-wave-top svg {
  width: 100%;
  height: 48px;
  display: block;
}

/* ── FLOATING BUBBLES ── */
.footer-bubbles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.bubble {
  position: absolute;
  bottom: -60px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(0, 198, 212, 0.25), rgba(0, 198, 212, 0.04));
  border: 1px solid rgba(0, 198, 212, 0.2);
  animation: floatUp linear infinite;
}
.bubble:nth-child(1) { width: 40px; height: 40px; left: 5%;  animation-duration: 12s; animation-delay: 0s;  }
.bubble:nth-child(2) { width: 20px; height: 20px; left: 18%; animation-duration: 9s;  animation-delay: 2s;  }
.bubble:nth-child(3) { width: 55px; height: 55px; left: 35%; animation-duration: 14s; animation-delay: 4s;  }
.bubble:nth-child(4) { width: 25px; height: 25px; left: 55%; animation-duration: 10s; animation-delay: 1s;  }
.bubble:nth-child(5) { width: 45px; height: 45px; left: 72%; animation-duration: 13s; animation-delay: 3s;  }
.bubble:nth-child(6) { width: 18px; height: 18px; left: 88%; animation-duration: 8s;  animation-delay: 5s;  }

@keyframes floatUp {
  0%   { transform: translateY(0)   rotate(0deg);   opacity: 0;   }
  10%  { opacity: 1; }
  90%  { opacity: 0.6; }
  100% { transform: translateY(-110vh) rotate(360deg); opacity: 0; }
}

/* ── CONTAINER ── */
.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 2rem 12px;
  position: relative;
  z-index: 2;
}

/* ── TOP ROW ── */
.footer-top {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr 1.3fr;
  gap: 1.2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

/* ── LOGO IMAGE ── */
.footer-logo-img {
  height: 44px;
  width: auto;
  max-width: 160px;
  object-fit: contain;
  mix-blend-mode: screen;
  filter: brightness(1.15) contrast(1.05);
  transition: filter var(--transition), transform var(--transition);
}
.footer-logo-img:hover {
  filter: brightness(1.3) contrast(1.05) drop-shadow(0 0 10px rgba(0, 198, 212, 0.55));
  transform: scale(1.04);
}

/* ── BRAND ── */
.footer-logo {
  display: flex;
  align-items: center;
  margin-bottom: 0.5rem;
}
.logo-drop {
  font-size: 1.6rem;
  animation: dropBounce 3s ease-in-out infinite;
  margin-right: 0.5rem;
}
@keyframes dropBounce {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-6px); }
}
.logo-name {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
  line-height: 1;
  letter-spacing: 0.5px;
}
.logo-tm {
  color: var(--aqua);
  font-size: 0.85rem;
  vertical-align: super;
}
.logo-sub {
  font-size: 0.62rem;
  color: rgba(255, 255, 255, 0.4);
  letter-spacing: 1.8px;
  text-transform: uppercase;
  margin-top: 3px;
  font-family: var(--font-body);
  font-weight: 400;
}

.brand-desc {
  font-size: 0.82rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.45);
  margin-bottom: 0.5rem;
  font-weight: 300;
}

.brand-tagline {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 0.92rem;
  color: var(--aqua);
  margin-bottom: 0.6rem;
  position: relative;
  padding-left: 0.9rem;
  font-weight: 400;
}
.brand-tagline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 100%;
  background: var(--aqua);
  border-radius: 2px;
}

/* ── SOCIAL BUTTONS ── */
.social-links {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.social-btn {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  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);
  text-decoration: none;
  transition: all var(--transition);
  cursor: pointer;
}
.social-btn svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}
.social-btn:hover {
  background: var(--aqua-dim);
  border-color: var(--aqua);
  color: var(--aqua);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 198, 212, 0.25);
}
.social-btn:focus-visible {
  outline: 2px solid var(--aqua);
  outline-offset: 2px;
}

/* ── COLUMN TITLES ── */
.footer-col-title {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2.5px;
  color: #fff;
  margin-bottom: 0.8rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.col-title-bar {
  display: inline-block;
  width: 18px;
  height: 3px;
  background: linear-gradient(90deg, var(--aqua), var(--blue-light));
  border-radius: 2px;
  flex-shrink: 0;
}

/* ── FOOTER LINKS ── */
.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.28rem;
}
.footer-links li a {
  color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
  font-size: 0.84rem;
  font-weight: 400;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.25s ease;
  position: relative;
  padding-left: 0;
}
.footer-links li a::before {
  content: '›';
  color: var(--aqua);
  font-size: 1.1rem;
  opacity: 0;
  transform: translateX(-6px);
  transition: all 0.25s ease;
  line-height: 1;
}
.footer-links li a:hover {
  color: #fff;
  padding-left: 16px;
}
.footer-links li a:hover::before {
  opacity: 1;
  transform: translateX(-14px);
}
.footer-links li a:focus-visible {
  outline: 2px solid var(--aqua);
  outline-offset: 2px;
  border-radius: 2px;
}

/* ── CONTACT LIST ── */
.footer-contact-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}
.footer-contact-list li {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.5;
  font-weight: 300;
}
.contact-icon {
  font-size: 0.9rem;
  flex-shrink: 0;
  margin-top: 2px;
}
.footer-contact-list a {
  color: rgba(255, 255, 255, 0.65);
  text-decoration: none;
  transition: color var(--transition);
  font-weight: 400;
}
.footer-contact-list a:hover {
  color: var(--aqua);
}
.footer-contact-list a:focus-visible {
  outline: 2px solid var(--aqua);
  outline-offset: 2px;
  border-radius: 2px;
}

/* ── STATS STRIP ── */
.footer-stats {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0;
  flex-wrap: wrap;
  padding: 0.8rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}
.fstat {
  text-align: center;
  padding: 0.3rem 1.6rem;
  position: relative;
}
.fstat-num {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--aqua);
  line-height: 1;
  animation: glowPulse 3s ease-in-out infinite;
  letter-spacing: 1px;
}
/* suffix like + sign added via JS */
@keyframes glowPulse {
  0%, 100% { text-shadow: 0 0 10px rgba(0, 198, 212, 0.3); }
  50%       { text-shadow: 0 0 28px rgba(0, 198, 212, 0.75); }
}
.fstat-lbl {
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: rgba(255, 255, 255, 0.4);
  margin-top: 2px;
  font-family: var(--font-body);
  font-weight: 500;
}
.fstat-div {
  width: 1px;
  height: 30px;
  background: rgba(255, 255, 255, 0.1);
  flex-shrink: 0;
}

/* ── BOTTOM BAR ── */
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 0.75rem;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.footer-bottom p {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.35);
  font-weight: 300;
}
.footer-bottom-links {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.footer-bottom-links a {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.35);
  text-decoration: none;
  transition: color var(--transition);
  font-weight: 400;
}
.footer-bottom-links a:hover {
  color: var(--aqua);
}
.footer-bottom-links a:focus-visible {
  outline: 2px solid var(--aqua);
  outline-offset: 2px;
  border-radius: 2px;
}
.footer-bottom-links span {
  color: rgba(255, 255, 255, 0.2);
  font-size: 0.8rem;
}
.footer-love {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.35);
  font-weight: 300;
}

/* ── BACK TO TOP BUTTON ── */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--blue-mid), var(--aqua));
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: 0 4px 20px rgba(0, 198, 212, 0.4);
  transition: all var(--transition);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  z-index: 999;
}
.back-to-top svg {
  width: 18px;
  height: 18px;
}
.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.back-to-top:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(0, 198, 212, 0.6);
}
.back-to-top:focus-visible {
  outline: 2px solid var(--aqua);
  outline-offset: 3px;
}

/* ══════════════════════════════════
   RESPONSIVE — TABLET (≤ 1024px)
   ══════════════════════════════════ */
@media (max-width: 1024px) {
  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 1.8rem;
  }
  .footer-brand {
    grid-column: 1 / -1;
  }
  .fstat {
    padding: 0.3rem 1.2rem;
  }
}

/* ══════════════════════════════════
   RESPONSIVE — LARGE MOBILE (≤ 768px)
   ══════════════════════════════════ */
@media (max-width: 768px) {
  .footer-wave-top svg {
    height: 36px;
  }
  .footer-container {
    padding: 18px 1.5rem 12px;
  }
  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
  }
  .footer-brand {
    grid-column: 1 / -1;
  }
  .footer-stats {
    gap: 0.3rem;
  }
  .fstat {
    padding: 0.3rem 1rem;
  }
  .fstat-num {
    font-size: 1.4rem;
  }
  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 0.4rem;
  }
  .footer-bottom-links {
    justify-content: center;
  }
  .back-to-top {
    bottom: 1.2rem;
    right: 1.2rem;
  }
}

/* ══════════════════════════════════
   RESPONSIVE — SMALL MOBILE (≤ 600px)
   ══════════════════════════════════ */
@media (max-width: 600px) {
  .footer-top {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .footer-stats {
    gap: 0.8rem;
    justify-content: center;
    padding: 0.7rem 0;
  }
  .fstat {
    padding: 0.3rem 0.8rem;
    min-width: 100px;
  }
  .fstat-div {
    display: none;
  }
  .fstat-num {
    font-size: 1.35rem;
  }
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
  .footer-bottom-links {
    justify-content: center;
  }
  .logo-name {
    font-size: 1.3rem;
  }
}

/* ══════════════════════════════════
   RESPONSIVE — EXTRA SMALL (≤ 380px)
   ══════════════════════════════════ */
@media (max-width: 380px) {
  .footer-container {
    padding: 16px 1rem 10px;
  }
  .social-btn {
    width: 34px;
    height: 34px;
  }
  .fstat {
    min-width: 80px;
    padding: 0.3rem 0.5rem;
  }
  .fstat-num {
    font-size: 1.25rem;
  }
  .back-to-top {
    width: 38px;
    height: 38px;
    bottom: 1rem;
    right: 1rem;
  }
}

/* ── REDUCED MOTION ── */
@media (prefers-reduced-motion: reduce) {
  .bubble,
  .logo-drop,
  .fstat-num,
  .footer-logo-img {
    animation: none;
  }
  .back-to-top,
  .social-btn,
  .footer-links li a,
  .footer-contact-list a,
  .footer-bottom-links a {
    transition: none;
  }
}