/* ==========================================================================
   site footer — a darker forest green than the rest of the site (which
   uses --hero-green for accents), so it reads as the page's "ground
   floor" — light text/mint accents on top of it.
   ========================================================================== */

.site-footer {
  position: relative;
  z-index: 2;
  overflow: hidden;
  background: #14311f;
  color: rgba(238, 242, 233, 0.82);
  padding: clamp(3.5rem, 8vw, 5.5rem) clamp(1.25rem, 6vw, 3rem) 0;
}

.site-footer__deco {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.site-footer__ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(238, 242, 233, 0.1);
}

.site-footer__ring--1 {
  width: 420px;
  height: 420px;
  right: -140px;
  top: -180px;
}

.site-footer__ring--2 {
  width: 260px;
  height: 260px;
  left: -100px;
  bottom: -80px;
  border-color: rgba(238, 242, 233, 0.08);
}

.site-footer__dot {
  position: absolute;
  border-radius: 50%;
  background: rgba(143, 214, 174, 0.5);
}

.site-footer__dot--1 { top: 14%; left: 46%; width: 6px; height: 6px; }
.site-footer__dot--2 { top: 62%; right: 18%; width: 8px; height: 8px; opacity: 0.7; }
.site-footer__dot--3 { bottom: 22%; left: 12%; width: 5px; height: 5px; }

.site-footer__inner {
  position: relative;
  z-index: 1;
  max-width: 76rem;
  margin: 0 auto;
}

/* -- top: brand + link columns -- */

.site-footer__top {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2.5rem, 6vw, 3rem);
  padding-bottom: clamp(2.75rem, 6vw, 3.75rem);
}

.site-footer__brand {
  max-width: 26rem;
}

/* mobile: keep the footer tight — brand + newsletter only, the Shop
   and Contact Us columns come back at the 640px breakpoint below.
   Compounded with .site-footer__col (not just the modifier alone) so
   this reliably beats that class's own `display: flex` regardless of
   which one comes later in the file — two equally-specific single-class
   selectors let source order decide the winner, which is fragile. */
.site-footer__col.site-footer__col--shop,
.site-footer__col.site-footer__col--contact {
  display: none;
}

.site-footer__logo {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  margin-bottom: 1.1rem;
}

.site-footer__logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1.5px solid rgba(238, 242, 233, 0.85);
  color: #eef2e9;
  font-family: var(--hero-font);
  font-weight: 600;
  font-size: 0.95rem;
}

.site-footer__logo-word {
  font-family: var(--hero-font);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.14em;
  color: #eef2e9;
}

.site-footer__tagline {
  margin: 0 0 1.5rem;
  font-size: 0.92rem;
  line-height: 1.6;
  color: rgba(238, 242, 233, 0.68);
}

.site-footer__socials {
  display: flex;
  gap: 0.65rem;
}

.site-footer__social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(238, 242, 233, 0.22);
  color: rgba(238, 242, 233, 0.85);
  text-decoration: none;
  font-size: 0.92rem;
  transition: background 0.25s ease, border-color 0.25s ease, transform 0.25s ease, color 0.25s ease;
}

.site-footer__social:hover {
  background: rgba(238, 242, 233, 0.12);
  border-color: rgba(238, 242, 233, 0.4);
  color: #fff;
  transform: translateY(-2px);
}

.site-footer__col {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.site-footer__col-title {
  font-family: var(--hero-font);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #eef2e9;
  margin-bottom: 0.3rem;
}

.site-footer__col a {
  width: fit-content;
  color: rgba(238, 242, 233, 0.68);
  text-decoration: none;
  font-size: 0.92rem;
  transition: color 0.2s ease, translate 0.2s ease;
}

.site-footer__col a:hover {
  color: #8fd6ae;
  translate: 3px 0;
}

.site-footer__contact {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}

.site-footer__contact i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(238, 242, 233, 0.08);
  color: #8fd6ae;
  font-size: 0.78rem;
  flex: 0 0 auto;
}

/* -- newsletter -- */

.site-footer__newsletter p {
  margin: 0 0 0.9rem;
  font-size: 0.88rem;
  line-height: 1.55;
  color: rgba(238, 242, 233, 0.62);
}

.site-footer__form {
  display: flex;
  align-items: center;
  border: 1px solid rgba(238, 242, 233, 0.28);
  border-radius: 999px;
  padding: 0.3rem 0.3rem 0.3rem 1rem;
  transition: border-color 0.25s ease;
}

.site-footer__form:focus-within {
  border-color: rgba(143, 214, 174, 0.8);
}

.site-footer__form input {
  flex: 1 1 auto;
  min-width: 0;
  background: transparent;
  border: 0;
  outline: 0;
  font-size: 0.88rem;
  color: #fff;
  font-family: var(--hero-font);
}

.site-footer__form input::placeholder {
  color: rgba(238, 242, 233, 0.5);
}

.site-footer__form button {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 0;
  background: #eef2e9;
  color: var(--hero-green);
  cursor: pointer;
  font-size: 0.8rem;
  transition: background 0.25s ease, transform 0.25s ease;
}

.site-footer__form button:hover {
  background: #fff;
  transform: translateX(2px);
}

.site-footer__form-note {
  display: block;
  margin-top: 0.65rem;
  font-size: 0.8rem;
  color: #8fd6ae;
  opacity: 0;
  translate: 0 -4px;
  transition: opacity 0.35s ease, translate 0.35s ease;
}

.site-footer__form-note.is-visible {
  opacity: 1;
  translate: 0 0;
}

/* -- bottom bar -- */

.site-footer__bottom {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: flex-start;
  padding: 1.5rem 0 1.75rem;
  border-top: 1px solid rgba(238, 242, 233, 0.14);
  font-size: 0.8rem;
}

.site-footer__copyright {
  color: rgba(238, 242, 233, 0.55);
}

.site-footer__legal {
  display: flex;
  flex-wrap: wrap;
  gap: 1.1rem;
}

.site-footer__legal a {
  color: rgba(238, 242, 233, 0.55);
  text-decoration: none;
  transition: color 0.2s ease;
}

.site-footer__legal a:hover {
  color: #eef2e9;
}

@media (min-width: 640px) {
  .site-footer__top {
    grid-template-columns: 1.3fr 1fr 1fr;
  }

  .site-footer__col.site-footer__col--shop,
  .site-footer__col.site-footer__col--contact {
    display: flex;
  }

  .site-footer__newsletter {
    grid-column: 1 / -1;
    max-width: 26rem;
  }
}

@media (min-width: 1024px) {
  .site-footer__top {
    grid-template-columns: 1.4fr 0.8fr 0.8fr 1fr;
  }

  .site-footer__newsletter {
    grid-column: auto;
    max-width: none;
  }

  .site-footer__bottom {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

@media (prefers-reduced-motion: reduce) {
  .site-footer__social,
  .site-footer__col a,
  .site-footer__form,
  .site-footer__form button,
  .site-footer__form-note {
    transition: none;
  }
}
