/**
 * Footer & WhatsApp Float Styles
 * Part 2.3 — Matched to live WordPress site footer
 */

/* ==========================================================================
   Footer Main
   ========================================================================== */
.site-footer {
  margin-top: auto; /* Pushes footer to bottom in flex body */
}

.footer-main {
  background-color: var(--primary-dark);
  color: rgba(255, 255, 255, 0.85);
  padding: 3.5rem 0 2.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.3fr;
  gap: 2.5rem;
}

@media (max-width: 992px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
}

@media (max-width: 576px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

/* ==========================================================================
   Footer Brand Column
   ========================================================================== */
.footer-brand {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  margin-bottom: 1rem;
}

.footer-brand__logo {
  height: 40px;
  width: auto;
  object-fit: contain;
  display: block;
}

.footer-brand__text {
  display: flex;
  flex-direction: column;
}

.footer-brand__name {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.2;
}

.footer-brand__sub {
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.65);
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-top: 1px;
}

.footer-brand__desc {
  font-size: 0.88rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 1.25rem;
}

/* ==========================================================================
   Footer Social Icons
   ========================================================================== */
.footer-social {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.footer-social__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.75);
  transition: var(--transition);
}

.footer-social__icon:hover {
  background: var(--primary);
  color: #ffffff;
  transform: translateY(-2px);
}

/* ==========================================================================
   Footer Columns — Links
   ========================================================================== */
.footer-col__title {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 1rem;
  position: relative;
  padding-bottom: 0.6rem;
}

.footer-col__title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 30px;
  height: 2.5px;
  background: var(--primary);
  border-radius: 2px;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer-links a {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.65);
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.footer-links a::before {
  content: '›';
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.35);
  transition: var(--transition);
}

.footer-links a:hover {
  color: #ffffff;
  padding-left: 4px;
}

.footer-links a:hover::before {
  color: var(--primary);
}

/* ==========================================================================
   Footer Contact Info
   ========================================================================== */
.footer-contact__address {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.6;
  margin-bottom: 0;
}

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.footer-contact__link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.65);
  transition: var(--transition);
}

.footer-contact__link:hover {
  color: #ffffff;
}

.footer-contact__link svg {
  flex-shrink: 0;
  color: rgba(255, 255, 255, 0.45);
}

/* ==========================================================================
   Government / Non-Affiliation Disclaimer
   ========================================================================== */
.footer-disclaimer {
  background-color: #061a33;
  padding: 1rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-disclaimer__text {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.65;
  text-align: center;
  margin: 0;
}

.footer-disclaimer__text strong {
  color: rgba(255, 255, 255, 0.7);
}

/* ==========================================================================
   Copyright Bar
   ========================================================================== */
.footer-copyright {
  background-color: #041225;
  padding: 0.85rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-copyright .container {
  flex-wrap: wrap;
  gap: 0.5rem;
}

.footer-copyright__text {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.45);
  margin: 0;
}

.footer-copyright__text a {
  color: rgba(255, 255, 255, 0.55);
}

.footer-copyright__text a:hover {
  color: #ffffff;
}

@media (max-width: 768px) {
  .footer-copyright .container {
    justify-content: center;
    text-align: center;
  }
}

/* ==========================================================================
   Floating WhatsApp Button
   ========================================================================== */
.whatsapp-float {
  position: fixed;
  bottom: 80px;
  right: 20px;
  z-index: 998;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25d366;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.4);
  transition: var(--transition);
  animation: whatsapp-pulse 2s infinite;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.55);
}

@keyframes whatsapp-pulse {
  0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5); }
  70% { box-shadow: 0 0 0 12px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

@media (min-width: 769px) {
  .whatsapp-float {
    bottom: 25px;
  }
}
