/* ==========================================================================
   FOOTER COMPONENT
   ========================================================================== */

.site-footer {
  background: linear-gradient(to bottom, #0a1436, #153521);
  color: #fff;
  padding: 60px 20px 20px;
  font-family: "Inter", sans-serif;
}

.footer-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  max-width: var(--container-max);
  margin: 0 auto;
  gap: 40px;
}

/* Desktop: balanced 3-column row with tops aligned (mobile stacks below). */
@media (min-width: 769px) {
  .footer-container {
    align-items: flex-start;
  }
  .footer-left {
    flex: 1 1 320px;
    max-width: 420px;
  }
  .footer-middle {
    flex: 1 1 200px;
  }
  .footer-right {
    flex: 1 1 220px;
  }
}

.footer-left h3 {
  font-size: 1.4rem;
  line-height: 1.5;
  margin-bottom: 20px;
}

.footer-left .highlight {
  color: #39a63d;
  font-weight: bold;
}

/* ==========================================================================
   FOOTER SECTIONS
   ========================================================================== */

.footer-middle h4,
.footer-right h4 {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 18px;
  padding-bottom: 12px;
  position: relative;
}

/* Green accent underline (left-aligned on desktop, centered on mobile) */
.footer-middle h4::after,
.footer-right h4::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 32px;
  height: 2px;
  border-radius: 2px;
  background: #39a63d;
}

.footer-middle ul,
.footer-right .contact-info {
  list-style: none;
  padding: 0;
  margin: 0 0 15px;
}

.footer-middle li,
.footer-right .contact-info li {
  margin-bottom: 8px;
}

/* Services Links - Use logo color */
.footer-middle ul li a {
  color: #39a63d;
  text-decoration: none;
  transition: color 0.3s ease;
}

@media (hover: hover) {
.footer-middle ul li a:hover {
  color: #4ec252;
  text-decoration: none;
}
}

/* Contact Info Links */
.footer-right .contact-info li a {
  color: #fff;
  text-decoration: none;
  transition: color 0.3s ease;
}

@media (hover: hover) {
.footer-right .contact-info li a:hover {
  color: #39a63d;
}
}

/* Social Icons - Remove underline/text-decoration */
.social-icons {
  display: flex;
  gap: 10px;
}

.social-icons a {
  color: #fff;
  font-size: 1.2rem;
  transition: 0.3s;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

@media (hover: hover) {
.social-icons a:hover {
  color: #39a63d;
  text-decoration: none;
}
}

.social-icons a i {
  display: block;
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  margin-top: 40px;
}

.footer-bottom a {
  color: #39a63d;
  text-decoration: none;
}

@media (hover: hover) {
.footer-bottom a:hover {
  text-decoration: underline;
}
}

.footer-bottom .icons-credit {
  margin-top: 5px;
  font-size: 0.8rem;
  color: #bbb;
}

/* Responsive */
@media (max-width: 768px) {
  .site-footer {
    padding: 44px 22px 18px;
  }

  .footer-container {
    flex-direction: column;
    gap: 0;
    text-align: center;
  }

  /* Intro + newsletter block */
  .footer-left {
    padding-bottom: 32px;
  }

  .footer-left h3 {
    font-size: 1.3rem;
    line-height: 1.45;
    max-width: 340px;
    margin: 0 auto 22px;
  }

  /* Stacked sections separated by a subtle divider */
  .footer-middle,
  .footer-right {
    padding-top: 28px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
  }

  /* Center the heading accent underline on mobile */
  .footer-middle h4::after,
  .footer-right h4::after {
    left: 50%;
    transform: translateX(-50%);
  }

  /* Services list: larger tap targets, even rhythm */
  .footer-middle ul {
    margin: 0;
  }

  .footer-middle li {
    margin-bottom: 0;
  }

  .footer-middle ul li a {
    display: inline-block;
    padding: 8px 0;
    font-size: 0.95rem;
  }

  /* Contact info: centered icon + text rows with green icons */
  .footer-right .contact-info {
    margin-bottom: 20px;
  }

  .footer-right .contact-info li {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 9px;
    margin-bottom: 12px;
    font-size: 0.95rem;
    line-height: 1.4;
  }

  .footer-right .contact-info li i {
    color: #39a63d;
    flex-shrink: 0;
  }

  /* Social icons as circular buttons */
  .social-icons {
    justify-content: center;
    gap: 12px;
    margin-top: 4px;
  }

  .social-icons a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    font-size: 1.05rem;
  }

  .footer-bottom {
    margin-top: 30px;
    font-size: 0.85rem;
  }
}

/* ==========================================================================
   BACK TO TOP BUTTON
   ========================================================================== */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: none;
  background: var(--accent);
  color: #fff;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease,
    background-color 0.2s ease;
  z-index: 9998;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

@media (hover: hover) {
.back-to-top:hover {
  background: var(--accent-dark);
  color: #fff;
}
}

@media (max-width: 480px) {
  .back-to-top {
    bottom: 20px;
    right: 20px;
    width: 42px;
    height: 42px;
  }
}