/* ============================================================
   theme/css/footer.css
   Extracted from footer.php's old inline <style> block. Linked once
   from <head> (see includes/seo-head.php) so the browser caches it
   across every page instead of downloading an ~80-line block on every
   single response, as before.
   ============================================================ */

.footer {
  background: #274c77;
  color: #fff;
  margin: 0;
  padding: 40px 20px 10px;
  text-align: center;
  font-family: Arial, sans-serif;
}
.footer-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  max-width: 1200px;
  margin: 0 auto;
}
.footer-section {
  flex: 1;
  width: 100%;
  min-width: 250px;
  margin: 10px;
}
.footer-section h3 {
  margin-bottom: 15px;
  font-size: 20px;
  color: #f4a261;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.footer-section ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-section ul li { margin: 8px 0; }
.footer-section ul li a {
  color: #fff;
  text-decoration: none;
  font-size: 16px;
  transition: color 0.3s ease;
}
.footer-section ul li a:hover,
.footer-section ul li a:focus-visible { color: #f4a261; }
.footer-section ul li a:focus-visible {
  outline: 2px solid #f4a261;
  outline-offset: 3px;
  border-radius: 3px;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 15px;
}
.social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.14);
  color: #fff;
  font-size: 18px;
  transition: color 0.25s ease, transform 0.25s ease, background 0.25s ease;
}
.social-icon:hover,
.social-icon:focus-visible {
  color: #fff;
  background: linear-gradient(135deg, #f4a261, #e76f51);
  transform: translateY(-2px) scale(1.06);
  outline: none;
}
.social-icon:focus-visible {
  box-shadow: 0 0 0 2px #274c77, 0 0 0 4px #f4a261;
}

.footer-logo {
  width: 60px;
  height: auto;
  margin: 15px 0;
}

.footer-bottom {
  margin-top: 20px;
  font-size: 11px;
  opacity: 0.8;
}
.footer-bottom a { color: #fff; }

/* ── Back to top ────────────────────────────────────────────── */
.back-to-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: none;
  background: linear-gradient(135deg, #274c77, #6096ba);
  color: #fff;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(0,0,0,0.25);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
  z-index: 900;
}
.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.back-to-top:hover {
  background: linear-gradient(135deg, #f4a261, #e76f51);
  transform: translateY(-2px);
}
.back-to-top:focus-visible {
  outline: 2px solid #f4a261;
  outline-offset: 3px;
}
@media (max-width: 480px) {
  .back-to-top { right: 14px; bottom: 14px; width: 42px; height: 42px; font-size: 14px; }
}

@media (max-width: 768px) {
  .footer-container {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .footer-section { min-width: 100%; }
}
@media (max-width: 480px) {
  .footer { padding: 30px 15px 10px; }
  .footer-section h3 { font-size: 18px; }
  .footer-section ul li a { font-size: 14px; }
  .social-icon { width: 36px; height: 36px; font-size: 16px; }
}
