:root {
  --blue-900: #0b1f3a;
  --blue-700: #15385f;
  --orange-500: #ff7a00;
  --cta-text-color: #0B3C5D;
  --white: #fff;
  --h1 : 4rem;
  --h2 : 3.2rem;
  --h3 : 2.4rem;
  --h4 : 2.0rem;
  --h5 : 1.8rem;
  --h6 : 1.6rem;
}

footer {
  padding: 3rem 2rem;
  display: grid;
  grid-template-columns: repeat(4, minmax(300px, 1fr));
  gap: 2.5rem;
  width: 100%;
  color: var(--cta-text-color);
  height: 100%;
  min-height: auto;
  box-sizing: border-box;
}

.footer-col h3 {
  margin-bottom: 1rem;
  color: var(--orange-500);
  font-size: var(--h3);
  pointer-events: none;
}

.footer-col p{
  color: var(--cta-text-color);
  pointer-events: none;
  font-size: var(--h6);
}

.footer-col ul {
  list-style: none;
  padding: 0;
}

.footer-col ul li {
  margin: 0.5rem 0;
}

.footer-col ul li a {
  text-decoration: none;
  transition: all 0.3s;
  color: var(--cta-text-color);
  position: relative;
  font-size: var(--h6);
}

.footer-col ul li a::after{
  content: '';
  position: absolute;
  top: 100%;
  left: 0;
  width: 0;
  height: 3px;
  background-color: #ff7a00;
  transition: 0.5s ease;
  border-radius: 10px;
}

.footer-col ul li a:hover {
  color: var(--orange-500);
  padding-left: 8px;
}

.footer-col ul li a:hover::after{
  width: 100%;
}

.social-icons {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(11, 60, 93, 0.15);
}

.footer-contact a {
  color: var(--cta-text-color);
  font-size: var(--h6);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.3s;
  word-break: break-all;
}

.footer-contact a:hover {
  color: var(--orange-500);
  padding-left: 6px;
}

.social-icons a {
  display: inline-flex;
  /* 44px keeps these inside the WCAG 2.5.8 minimum target size. */
  width: 44px;
  height: 44px;
  background: var(--orange-500);
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  text-decoration: none;
  color: #fff;
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
  flex-shrink: 0;
}

.social-icons a svg {
  fill: currentColor;
  transition: transform 0.3s ease;
}

.social-icons a:hover {
  background: #e06700;
  transform: translateY(-4px) scale(1.08);
  box-shadow: 0 8px 18px rgba(255, 106, 0, 0.35);
}

/* The hover lift is the only affordance these had, which left keyboard
   users with no visible focus. */
.social-icons a:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 3px;
  box-shadow: 0 0 0 6px rgba(11, 60, 93, 0.55);
}

.social-icons a:hover svg {
  transform: scale(1.1);
}

.social-icons a:active {
  transform: translateY(-1px) scale(0.98);
}

/* Brand colors on hover */
.social-icons #social-facebook:hover {
  background: #1877f2;
  box-shadow: 0 8px 18px rgba(24, 119, 242, 0.4);
}

.social-icons #social-twitter:hover {
  background: #111;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.35);
}

.social-icons #social-instagram:hover {
  background: radial-gradient(circle at 30% 110%, #fdf497 0%, #fd5949 45%, #d6249f 60%, #285aeb 90%);
  box-shadow: 0 8px 18px rgba(214, 36, 159, 0.4);
}

.social-icons #social-whatsapp:hover {
  background: #25d366;
  box-shadow: 0 8px 18px rgba(37, 211, 102, 0.4);
}

.footer-bottom {
  grid-column: 1 / -1;
  text-align: center;
  margin-top: 2rem;
  font-size: 0.9rem;
}

.footer-bottom a.footer-story-link {
  color: #93a4bb;
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 0.2s ease;
}

.footer-bottom a.footer-story-link:hover {
  color: #e2e8f0;
}

/* Responsive Design */
/* ≤1440px desktop: the 4×300px grid + gaps + padding overflows 1280–1366px
   screens (target resolutions), so shrink the minimum column width here. */
@media (max-width: 1440px) {
  footer {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    padding: 2.5rem 1.5rem;
    gap: 1.75rem;
  }
}

@media (max-width: 1024px) {
  footer {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    padding: 2.5rem 1.5rem;
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  :root {
    --h3: 1.8rem;
    --h6: 1.4rem;
  }

  footer {
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    padding: 2rem 1rem;
    gap: 1.5rem;
    width: 100%;
  }

  .footer-col h3 {
    font-size: 1.6rem;
    margin-bottom: 0.8rem;
  }

  .footer-col p {
    font-size: 0.95rem;
  }

  .footer-col ul li a {
    font-size: 0.95rem;
  }
}

@media (max-width: 480px) {
  :root {
    --h3: 1.4rem;
    --h6: 1.1rem;
  }

  footer {
    grid-template-columns: 1fr;
    padding: 1.5rem 1rem;
    gap: 1rem;
  }

  .footer-col {
    width: 100%;
  }

  .footer-col h3 {
    font-size: 1.4rem;
    margin-bottom: 0.6rem;
  }

  .footer-col p {
    font-size: 0.85rem;
    line-height: 1.5;
  }

  .footer-col ul li {
    margin: 0.4rem 0;
  }

  .footer-col ul li a {
    font-size: 0.85rem;
  }

  .social-icons {
    gap: 0.8rem;
  }

  .social-icons a {
    width: 32px;
    height: 32px;
    font-size: 1rem;
  }

  .footer-bottom {
    margin-top: 1.5rem;
    font-size: 0.8rem;
    line-height: 1.4;
  }
}
