/* ==========================================================================
   Site footer
   --------------------------------------------------------------------------
   Everything here is scoped under .site-footer so it can't be reached by (or
   reach into) style.css, which redefines bare h1/h2/h3 several times over.
   Colours come from the logo: sage green, terracotta, cream.
   ========================================================================== */

.site-footer {
  /* Surfaces */
  --eco-forest: #2f3f33;
  --eco-forest-deep: #26332a;
  --eco-rule: rgba(172, 195, 155, 0.22);
  --eco-sage-tint: #e4ebdc;

  /* Brand accents */
  --eco-sage: #acc39b;
  --eco-sage-bright: #c6d9b5;
  --eco-terracotta: #f3987b;
  --eco-terracotta-deep: #f36b42;
  /* Terracotta dark enough to clear 4.5:1 as text on the white CTA cards. */
  --eco-terracotta-ink: #b84e26;
  --eco-sand: #ccb484;

  /* Text */
  --eco-cream: #f8f8f1;
  --eco-on-dark: #cdd4c6;
  --eco-ink: #2f3f33;
  --eco-ink-soft: #5a6355;

  --eco-shell: 1180px;

  margin-top: 3rem;
  font-size: 1rem;
  line-height: 1.55;
  text-transform: none;
}

.site-footer *,
.site-footer *::before,
.site-footer *::after {
  box-sizing: border-box;
}

/* style.css sets a global `img { width: 100% }` that would blow the logo up. */
.site-footer img {
  width: auto;
  max-width: 100%;
}

.site-footer svg {
  display: block;
  flex-shrink: 0;
}

.footer-shell {
  width: 100%;
  max-width: var(--eco-shell);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.footer-visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* Focus ring — one definition for every interactive thing in the footer. */
.site-footer a:focus-visible,
.site-footer button:focus-visible {
  outline: 2px solid var(--eco-terracotta-deep);
  outline-offset: 3px;
  border-radius: 4px;
}

/* --------------------------------------------------------------------------
   1. Call-to-action band
   -------------------------------------------------------------------------- */

.footer-cta {
  background-color: var(--eco-sage-tint);
  padding: 3.25rem 0 3.75rem;
}

.footer-cta__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.125rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 768px) {
  .footer-cta__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
  }
}

.cta-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  height: 100%;
  padding: 1.625rem 1.5rem 1.375rem;
  background-color: #fff;
  border: 1px solid rgba(47, 63, 51, 0.08);
  border-radius: 14px;
  box-shadow: 0 1px 2px rgba(47, 63, 51, 0.05);
  color: var(--eco-ink);
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.cta-card:hover,
.cta-card:focus {
  color: var(--eco-ink);
  text-decoration: none;
  transform: translateY(-3px);
  border-color: rgba(47, 63, 51, 0.14);
  box-shadow: 0 12px 26px rgba(47, 63, 51, 0.13);
}

.cta-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  margin-bottom: 1.125rem;
  border-radius: 50%;
  /* Dark glyph on a pastel disc — white on these tints only reaches ~2:1. */
  color: var(--eco-forest);
  background-color: var(--eco-sage);
  transition: transform 0.18s ease;
}

.cta-card:hover .cta-card__icon {
  transform: scale(1.06);
}

.cta-card--terracotta .cta-card__icon {
  background-color: var(--eco-terracotta);
}

.cta-card--sand .cta-card__icon {
  background-color: var(--eco-sand);
}

.cta-card__title {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 1.0625rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--eco-ink);
}

.cta-card__text {
  display: block;
  font-size: 0.9375rem;
  color: var(--eco-ink-soft);
}

.cta-card__more {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: auto;
  padding-top: 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--eco-terracotta-ink);
}

.cta-card__more svg {
  transition: transform 0.18s ease;
}

.cta-card:hover .cta-card__more svg {
  transform: translateX(4px);
}

/* --------------------------------------------------------------------------
   2. Hill divider between the light band and the dark one
   -------------------------------------------------------------------------- */

.footer-hills {
  display: block;
  color: var(--eco-forest);          /* the <path> paints with currentColor */
  background-color: var(--eco-sage-tint);
  line-height: 0;
}

.footer-hills svg {
  width: 100%;
  height: 46px;
}

@media (max-width: 767px) {
  .footer-hills svg {
    height: 26px;
  }
}

/* --------------------------------------------------------------------------
   3. Main dark band
   -------------------------------------------------------------------------- */

.footer-main {
  background-color: var(--eco-forest);
  color: var(--eco-on-dark);
  padding: 2.75rem 0 2.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.25rem;
}

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

/* Three nav columns side by side keeps Contact from being stranded on a row
   of its own with the whole right half empty. */
@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 992px) {
  .footer-grid {
    grid-template-columns: 1.5fr 1fr 1fr 1.15fr;
    gap: 2.5rem;
  }
}

/* Brand block ------------------------------------------------------------- */

.footer-brand {
  max-width: 22rem;
}

@media (min-width: 576px) and (max-width: 991.98px) {
  .footer-brand {
    grid-column: 1 / -1;
    max-width: none;
  }
}

/* The leaf shapes inside the logo are transparent — they were drawn to sit on
   white — so the mark falls apart on the dark band without a light chip. */
.footer-brand__logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.125rem;
  padding: 8px;
  background-color: var(--eco-cream);
  border-radius: 16px;
}

.footer-brand__logo img {
  width: 76px;
  height: 76px;
}

.footer-brand__tagline {
  margin: 0 0 0.4rem;
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--eco-cream);
}

.footer-brand__pitch {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--eco-on-dark);
}

/* Social ------------------------------------------------------------------ */

.footer-social {
  margin-top: 1.375rem;
}

.footer-social__label {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--eco-sage);
}

.footer-social__list {
  display: flex;
  gap: 0.625rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-social__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--eco-rule);
  border-radius: 50%;
  color: var(--eco-cream);
  transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.footer-social__link:hover,
.footer-social__link:focus {
  background-color: var(--eco-sage);
  border-color: var(--eco-sage);
  color: var(--eco-forest);
  text-decoration: none;
}

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

.footer-col__title {
  margin: 0 0 0.875rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--eco-sage);
}

.footer-col__list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-col__list li + li {
  margin-top: 0.5rem;
}

.footer-col__list a,
.footer-contact a {
  color: var(--eco-on-dark);
  font-size: 0.9375rem;
  text-decoration: none;
  transition: color 0.15s ease;
}

.footer-col__list a:hover,
.footer-col__list a:focus,
.footer-contact a:hover,
.footer-contact a:focus {
  color: var(--eco-terracotta);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Contact column ---------------------------------------------------------- */

.footer-contact {
  margin: 0;
  padding: 0;
  list-style: none;
  font-style: normal;
}

.footer-contact li + li {
  margin-top: 0.75rem;
}

.footer-contact a {
  display: inline-flex;
  align-items: flex-start;
  gap: 0.625rem;
}

.footer-contact svg {
  margin-top: 0.15rem;
  color: var(--eco-sage);
}

/* --------------------------------------------------------------------------
   4. Bottom bar
   -------------------------------------------------------------------------- */

.footer-bottom {
  background-color: var(--eco-forest-deep);
  border-top: 1px solid var(--eco-rule);
  color: var(--eco-on-dark);
  padding: 1.125rem 0;
  font-size: 0.875rem;
}

.footer-bottom__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
}

.footer-bottom__copy {
  margin: 0;
}

.footer-bottom__links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-bottom__links a {
  color: var(--eco-on-dark);
  text-decoration: none;
  transition: color 0.15s ease;
}

.footer-bottom__links a:hover,
.footer-bottom__links a:focus {
  color: var(--eco-terracotta);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Language toggle — the navbar switcher is out of reach from a long page. */
.footer-lang {
  margin: 0;
}

.footer-lang__btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.3rem 0.8rem;
  border: 1px solid var(--eco-rule);
  border-radius: 999px;
  background: transparent;
  color: var(--eco-on-dark);
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.footer-lang__btn:hover,
.footer-lang__btn:focus {
  background-color: rgba(172, 195, 155, 0.14);
  border-color: var(--eco-sage);
  color: var(--eco-cream);
}

.footer-lang__flag {
  width: 20px;
  height: 14px;
  border-radius: 2px;
}

@media (max-width: 575.98px) {
  .footer-bottom__inner {
    justify-content: center;
    text-align: center;
  }

  .footer-bottom__links {
    justify-content: center;
  }
}

/* --------------------------------------------------------------------------
   5. Motion preferences
   -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  .site-footer *,
  .site-footer *::before,
  .site-footer *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }

  .cta-card:hover {
    transform: none;
  }

  .cta-card:hover .cta-card__icon,
  .cta-card:hover .cta-card__more svg {
    transform: none;
  }
}
