/* ==========================================================================
   EWD Site — Site Footer
   Contact/social bar, a four-column sitemap, and a copyright bar, plus a
   few small utilities that live alongside the footer: click-to-copy on the
   phone/email, and a fixed "back to top" button. Relies on shared tokens/
   reset and the site-wide [data-reveal-on-scroll] system from style.css.
   ========================================================================== */

.site-footer {
  position: relative;
  z-index: 2;
  overflow: hidden;
  /* background: var(--bg); */
  /* border-top: 1px solid var(--border); */
  padding: 90px 0 100px;
}

.site-footer__inner {
  position: relative;
  z-index: 1;
  /* padding: 3.5rem clamp(1.25rem, 4vw, 2.5rem) 0; */
}

/* ---------- Contact / social row ---------- */

.footer-contact {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2rem;
    padding-bottom: 105px;
}

.footer-contact__item {
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.footer-contact__item:nth-child(2) {
    align-items: center;
}
.footer-contact__item--social {
    align-items: start;
    gap: 15px;
    align-items: end;
}

.footer-contact__label {
    color: #D2D2D2;
    font-family: var(--font-heading);
    font-size: 15px;
    font-weight: 400;
    line-height: 36px;
    letter-spacing: 1.65px;
    text-transform: uppercase;
}
.footer-contact__row {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}

.footer-contact__value {
    font-family: var(--font-third);
    color: var(--text);
    transition: 0.5s;
    font-size: 38px;
    font-weight: 600;
    line-height: 32px;
    letter-spacing: -1.14px;
}

.footer-contact__value:hover,
.footer-contact__value:focus-visible {
  color: #39b54b;
  /* text-shadow: 0px 3px 5px #39b54b; */
}

.footer-copy {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  flex-shrink: 0;
  border-radius: 999px;
  color: var(--text-dimmer);
  transition: color 0.2s var(--ease-out), background-color 0.2s var(--ease-out);
}

.footer-copy:hover,
.footer-copy:focus-visible {
  color: var(--text);
  background: var(--surface);
}

.footer-copy[data-copied="true"] {
  color: var(--cyan);
}

.footer-social {
    display: inline-flex;
    gap: 45px;
}

.footer-social__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.footer-social__link svg path{
  transition: .5s;
  fill: #FFF;
}
.footer-social__link:hover svg path{
  fill: #39b54b;
}

/* .footer-social__link:hover,
.footer-social__link:focus-visible {
  border-color: rgba(255, 255, 255, 0.3);
}

.footer-social__link--linkedin:hover { color: #4fa3ff; box-shadow: 0 0 22px rgba(10, 102, 194, 0.35); }
.footer-social__link--facebook:hover { color: #5b93ff; box-shadow: 0 0 22px rgba(24, 119, 242, 0.35); }
.footer-social__link--x:hover { color: #f4f6fb; box-shadow: 0 0 22px rgba(244, 246, 251, 0.2); }
.footer-social__link--instagram:hover { color: #ff8fc7; box-shadow: 0 0 22px rgba(214, 55, 148, 0.35); } */

/* ---------- Link columns ---------- */

.footer-cols {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 2rem;
}

.footer-col__title {
    margin-bottom: 21px;
    font-family: var(--font-heading);
    color: #61B461;
    font-size: 25px;
    font-weight: 600;
    line-height: 42px;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  /* gap: 0.7rem; */
}

.footer-col a {
    font-family: var(--font-body);
    transition: 0.5s;
    display: inline-block;
    color: #FFF;
    font-size: 18px;
    font-weight: 300;
    line-height: 36px;
}

.footer-col a:hover,
.footer-col a:focus-visible {
  color: #39b54b;
  /* transform: translateX(3px); */
}

/* ---------- Bottom bar ---------- */

.site-footer__bottom {
  /* padding: 1.5rem 0; */
  text-align: center;
  margin-top: 71px;
}

.site-footer__bottom p {
    color: #B8B8B8;
    font-family: var(--font-heading);
    font-size: 15px;
    font-weight: 300;
    line-height: 31px;
}

/* ---------- Back to top ---------- */

.back-to-top {
    position: fixed;
    right: clamp(1.1rem, 3vw, 2rem);
    bottom: clamp(1.1rem, 3vw, 2rem);
    z-index: 90;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    color: var(--text);
    backdrop-filter: blur(12px);
    opacity: 0;
    transform: translateY(12px);
    transition: 0.5s;
    pointer-events: none;
    border-radius: 9px;
    border: 1px solid #492E9F;
    background: rgba(25, 14, 61, 0.72);
}

.back-to-top[data-visible="true"] {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.back-to-top:hover,
.back-to-top:focus-visible {
  /* background: var(--gradient-brand); */
  /* color: #06070c; */
  /* box-shadow: var(--shadow-glow-blue); */
  background: #39b54b;
  border-color: #39b54b;
  box-shadow: 0px 0px 18px #39b54b;
}

/* ---------- Copy toast ---------- */

.footer-toast {
  position: fixed;
  left: 50%;
  bottom: clamp(1.1rem, 3vw, 2rem);
  z-index: 95;
  padding: 0.65rem 1.15rem;
  border-radius: 999px;
  background: rgba(7, 9, 15, 0.92);
  border: 1px solid var(--border-strong);
  backdrop-filter: blur(14px);
  color: var(--text);
  font-size: 0.82rem;
  font-weight: 500;
  white-space: nowrap;
  opacity: 0;
  transform: translate(-50%, 10px);
  transition: opacity 0.25s var(--ease-out), transform 0.25s var(--ease-out);
  pointer-events: none;
}

.footer-toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* ---------- Responsive ---------- */

@media (max-width: 960px) {
  .footer-cols {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2.25rem 1.5rem;
  }
}

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

  .footer-contact__item--social {
    align-items: flex-start;
    text-align: left;
  }
}

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

@media (prefers-reduced-motion: reduce) {
  .back-to-top,
  .footer-toast,
  .footer-col a {
    transition: none;
  }
}
