/* ============================================================
   FOOTER — Happy Blue Lessons
   ============================================================ */

/* ── Wave Divider ── */
.hbl-footer__wave {
  color: var(--hbl-blue-900);
  line-height: 0;
  position: relative;
  margin-top: -59px;
  z-index: 10;
  pointer-events: none;
}

.hbl-footer__wave svg {
  display: block;
  width: 100%;
  height: 60px;
}


/* ── Footer Body ── */
.hbl-footer__body {
  background: var(--hbl-blue-900);
  padding: var(--hbl-space-2xl) 0 var(--hbl-space-2xl);
}


/* ── Grid Layout ── */
.hbl-footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--hbl-space-2xl);
}


/* ── Brand Column ── */
.hbl-footer__col--brand {
  max-width: 320px;
}

.hbl-footer__logo {
  display: inline-flex;
  text-decoration: none;
  margin-bottom: var(--hbl-space-xs);
}

.hbl-footer__logo-img {
  height: 64px;
  width: auto;
  object-fit: contain;
}

.hbl-footer__logo .hbl-header__logo-happy {
  color: var(--hbl-happy-400);
}

.hbl-footer__logo .hbl-header__logo-blue {
  color: var(--hbl-blue-300);
}

.hbl-footer__logo .hbl-header__logo-lessons {
  color: var(--hbl-gray-400);
}

.hbl-footer__tagline {
  color: var(--hbl-gray-300);
  font-size: 0.9375rem;
  line-height: 1.6;
  margin: 0 0 var(--hbl-space-md);
}

.hbl-footer__philosophy {
  color: var(--hbl-gray-500);
  font-size: 0.8125rem;
  font-style: italic;
  line-height: 1.5;
  margin: 0;
}

.hbl-footer__philosophy strong {
  color: var(--hbl-happy-400);
  font-style: normal;
}


/* ── Column Heading ── */
.hbl-footer__heading {
  color: var(--hbl-white);
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 0 0 var(--hbl-space-lg);
  padding-bottom: var(--hbl-space-sm);
  border-bottom: 2px solid var(--hbl-blue-700);
  display: inline-block;
}


/* ── Links List ── */
.hbl-footer__links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--hbl-space-sm);
}

.hbl-footer__links a {
  color: var(--hbl-gray-400);
  font-size: 0.9375rem;
  text-decoration: none;
  transition: color var(--hbl-transition-fast), padding-left var(--hbl-transition-fast);
  display: inline-block;
}

.hbl-footer__links a:hover {
  color: var(--hbl-happy-400);
  padding-left: 4px;
}


/* ── Contact List ── */
.hbl-footer__contact-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--hbl-space-md);
}

.hbl-footer__contact-list li {
  display: flex;
  align-items: flex-start;
  gap: var(--hbl-space-sm);
  color: var(--hbl-gray-400);
  font-size: 0.9375rem;
  line-height: 1.5;
}

.hbl-footer__icon {
  color: var(--hbl-blue-400);
  flex-shrink: 0;
  margin-top: 2px;
}

.hbl-footer__contact-list a {
  color: var(--hbl-gray-400);
  text-decoration: none;
  transition: color var(--hbl-transition-fast);
}

.hbl-footer__contact-list a:hover {
  color: var(--hbl-happy-400);
}


/* ── Bottom Bar ── */
.hbl-footer__bottom {
  background: var(--hbl-blue-800);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: var(--hbl-space-lg) 0;
}

.hbl-footer__bottom-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--hbl-space-md);
  text-align: center;
}

.hbl-footer__copyright {
  color: var(--hbl-white) !important;
  font-size: 0.8125rem;
  margin: 0;
  opacity: 0.9;
}

.hbl-footer__copyright a {
  color: var(--hbl-white) !important;
  text-decoration: underline;
  transition: opacity var(--hbl-transition-fast), color var(--hbl-transition-fast);
  font-weight: 600;
}

.hbl-footer__copyright a:hover {
  color: var(--hbl-happy-400) !important;
}

.hbl-footer__legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--hbl-space-sm) var(--hbl-space-lg);
}

.hbl-footer__legal a {
  color: var(--hbl-white) !important;
  font-size: 0.8125rem;
  text-decoration: none;
  transition: color var(--hbl-transition-fast), opacity var(--hbl-transition-fast);
  opacity: 0.9;
}

.hbl-footer__legal a:hover {
  color: var(--hbl-happy-400) !important;
  opacity: 1;
}


/* ═══════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════ */

/* Tablet: 2 columns */
@media (min-width: 640px) {
  .hbl-footer__grid {
    grid-template-columns: 1fr 1fr;
  }

  .hbl-footer__col--brand {
    grid-column: 1 / -1;
    max-width: 480px;
  }
}

/* Desktop: 4 columns */
@media (min-width: 1024px) {
  .hbl-footer__grid {
    grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  }

  .hbl-footer__col--brand {
    grid-column: auto;
    max-width: 320px;
  }

  .hbl-footer__bottom-inner {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}


/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
  .hbl-footer__links a {
    transition: none;
  }
}
