/* =============================
   London Vision Training Clinic
   footer.css — shared footer (linked from includes/footer.php)
   Uses its own lv-footer classes so older page-level
   .site-footer rules don't interfere.
   ============================= */

.lv-footer {
  --ft-bg: #0b2440;
  --ft-text: #c9d6e8;
  --ft-muted: #8ea3c0;
  --ft-head: #ffffff;
  --ft-rule: rgba(255, 255, 255, .12);
  --ft-cta: #FF6B35;

  background: var(--ft-bg);
  color: var(--ft-text);
  margin-top: 3rem;
  font-size: .95rem;
  line-height: 1.6;
}
.lv-footer__inner {
  width: min(1200px, 92vw);
  margin-inline: auto;
  padding: clamp(2.75rem, 5vw, 4rem) 0 1.5rem;
}
.lv-footer p { margin: 0; }
.lv-footer ul { list-style: none; margin: 0; padding: 0; }
.lv-footer a {
  color: var(--ft-text);
  text-decoration: none;
  transition: color .15s ease;
}
.lv-footer a:hover { color: #fff; }
.lv-footer a:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
  border-radius: 2px;
}

/* ---------- Grid ---------- */
.lv-footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, .8fr) minmax(0, .8fr) minmax(0, 1.3fr);
  gap: 2.5rem;
}

/* ---------- Brand column ---------- */
.lv-footer__name {
  display: inline-block;
  color: #fff !important;
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -.01em;
}
.lv-footer__tagline {
  margin-top: .75rem !important;
  max-width: 32ch;
  color: var(--ft-muted);
}
.lv-footer__btn {
  display: inline-flex;
  align-items: center;
  margin-top: 1.4rem;
  padding: .7rem 1.25rem;
  border-radius: 999px;
  background: var(--ft-cta);
  border: 2px solid var(--ft-cta);
  color: #fff !important;
  font-weight: 700;
  font-size: .95rem;
  transition: background .15s ease, border-color .15s ease;
}
.lv-footer__btn:hover { background: #E65A24; border-color: #E65A24; }

/* ---------- Link columns ---------- */
.lv-footer__heading {
  color: var(--ft-head);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding-bottom: .75rem;
  margin-bottom: 1rem !important;
  border-bottom: 1px solid var(--ft-rule);
}
.lv-footer__col li + li { margin-top: .55rem; }

/* ---------- Contact column ---------- */
.lv-footer__contact li {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: .7rem;
  align-items: start;
}
.lv-footer__contact li + li { margin-top: .9rem; }
.lv-footer__contact svg {
  width: 18px;
  height: 18px;
  margin-top: .2rem;
  fill: none;
  stroke: var(--ft-cta);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.lv-footer__muted { color: var(--ft-muted); }

/* ---------- Bottom bar ---------- */
.lv-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: .5rem 1.5rem;
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
  padding-top: 1.25rem;
  border-top: 1px solid var(--ft-rule);
  font-size: .85rem;
  color: var(--ft-muted);
}
.lv-footer__bottom a { color: var(--ft-muted); }
.lv-footer__bottom a:hover { color: #fff; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .lv-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lv-footer__brand,
  .lv-footer__contact { grid-column: 1 / -1; }
  .lv-footer__contact { order: 3; }

  /* Brand block centred when it spans the full width */
  .lv-footer__brand { text-align: center; }
  .lv-footer__name { white-space: nowrap; }
  .lv-footer .lv-footer__tagline { margin-inline: auto; }
}
@media (max-width: 520px) {
  .lv-footer__grid { gap: 2rem 1.5rem; }
  .lv-footer__bottom { flex-direction: column; }
  .lv-footer__inner { padding-bottom: calc(1.5rem + env(safe-area-inset-bottom)); }
  .lv-footer__name { font-size: clamp(1.05rem, 5.6vw, 1.35rem); }
}

/* Floating Book Appointment button steps aside while the footer is visible
   (the footer has its own button). Class is set by the script in footer.php. */
body.footer-in-view .book-float {
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
}

@media (prefers-reduced-motion: reduce) {
  .lv-footer a { transition: none; }
}
