@layer components {
  /* Footer scoreboard — navy gradient + halftone diagonal + clip-path
     geométrico âmbar no canto superior direito. Sem cards repetidos,
     três colunas com hierarquia distinta. */
  .site-footer {
    position: relative;
    margin-top: var(--space-xs, 0.25rem);
    padding: var(--space-xl, 2.5rem) 0 var(--space-md, 1rem);
    background: linear-gradient(160deg,
      var(--color-navy, #0D1B3E) 0%,
      oklch(18% 0.04 260) 60%,
      var(--color-navy-dark, #070F24) 100%);
    color: oklch(100% 0 0 / 0.78);
    overflow: hidden;
    isolation: isolate;
  }

  /* Halftone diagonal */
  .site-footer::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: repeating-linear-gradient(
      45deg,
      transparent 0 14px,
      oklch(100% 0 0 / 0.035) 14px 15px
    );
    pointer-events: none;
    z-index: 0;
  }

  /* Triangle clip âmbar no top-right */
  .site-footer::after {
    content: "";
    position: absolute;
    top: 0; right: 0;
    width: clamp(8rem, 18vw, 14rem);
    height: clamp(3rem, 6vw, 5rem);
    background: linear-gradient(135deg,
      var(--color-accent, #BA7517),
      color-mix(in oklch, var(--color-accent, #BA7517) 60%, black));
    clip-path: polygon(35% 0, 100% 0, 100% 100%, 0% 100%);
    opacity: 0.18;
    pointer-events: none;
    z-index: 0;
  }

  .site-footer__inner {
    position: relative;
    z-index: 1;
    max-width: var(--max-width, 80rem);
    margin-inline: auto;
    padding-inline: var(--main-padding, 1.25rem);
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-lg, 2rem);

    @media (min-width: 720px) {
      grid-template-columns: 1.4fr 1fr 1fr;
      align-items: start;
      gap: var(--space-xl, 3rem);
    }
  }

  /* Coluna esquerda — brand + tagline */
  .site-footer__brand {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm, 0.75rem);
    max-width: 28rem;
  }

  .site-footer__logo-link {
    display: inline-block;
    line-height: 0;
  }

  .site-footer__logo {
    height: 2.6rem;
    width: auto;
    filter: drop-shadow(0 2px 8px oklch(0% 0 0 / 0.4));
  }

  .site-footer__tagline {
    margin: 0;
    font-size: var(--text-small, 0.875rem);
    line-height: 1.55;
    color: oklch(100% 0 0 / 0.65);
    max-width: 24rem;
  }

  /* Colunas direitas — heading display + conteúdo */
  .site-footer__col {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    min-width: 0;
  }

  .site-footer__heading {
    font-family: var(--font-display, "Big Shoulders Display", Arial, sans-serif);
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    margin: 0 0 0.4rem;
    color: oklch(100% 0 0 / 0.5);
    line-height: 1;
  }

  .site-footer__address {
    font-style: normal;
    font-size: 1.05rem;
    font-weight: 600;
    line-height: 1.35;
    color: white;
    letter-spacing: -0.005em;
  }

  .site-footer__link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
    color: oklch(100% 0 0 / 0.85);
    text-decoration: none;
    font-size: var(--text-small, 0.875rem);
    font-weight: 700;
    letter-spacing: 0.01em;
    border-bottom: 1.5px solid transparent;
    padding-bottom: 0.1rem;
    transition: color 160ms var(--ease-out, cubic-bezier(0.22, 1, 0.36, 1)),
                border-color 160ms ease,
                transform 160ms var(--ease-out, cubic-bezier(0.22, 1, 0.36, 1));

    & span { transition: transform 160ms var(--ease-out, cubic-bezier(0.22, 1, 0.36, 1)); }

    @media (any-hover: hover) {
      &:hover {
        color: white;
        border-bottom-color: var(--color-accent, #BA7517);
      }
      &:hover span { transform: translateX(3px); }
    }
  }

  .site-footer__instagram {
    & svg { color: oklch(100% 0 0 / 0.85); transition: color 160ms ease; }
    @media (any-hover: hover) {
      &:hover svg { color: var(--color-accent, #BA7517); }
    }
  }

  .site-footer__whatsapp {
    & svg { color: #25D366; transition: color 160ms ease; }
    @media (any-hover: hover) {
      &:hover svg { color: color-mix(in oklch, #25D366 80%, white); }
    }
  }

  /* Linha inferior — copyright + cidade */
  .site-footer__bottom {
    position: relative;
    z-index: 1;
    max-width: var(--max-width, 80rem);
    margin: var(--space-lg, 2rem) auto 0;
    padding: var(--space-sm, 0.75rem) var(--main-padding, 1.25rem) 0;
    border-top: 1px solid oklch(100% 0 0 / 0.08);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.72rem;
    color: oklch(100% 0 0 / 0.4);
    letter-spacing: 0.02em;
  }

  /* Mobile (< 720px) — compacto: logo menor, tagline some, headings
     menores, mais ar entre seções, padding reduzido. */
  @media (max-width: 719px) {
    .site-footer {
      margin-top: var(--space-xs, 0.25rem);
      padding: var(--space-lg, 1.75rem) 0 var(--space-sm, 0.75rem);
    }

    .site-footer::after {
      width: clamp(5rem, 32vw, 8rem);
      height: clamp(2rem, 5vw, 3rem);
    }

    .site-footer__inner {
      gap: var(--space-md, 1.25rem);
    }

    .site-footer__brand { gap: 0.5rem; }

    .site-footer__logo { height: 2rem; }

    .site-footer__tagline { display: none; }

    .site-footer__heading {
      font-size: 0.62rem;
      letter-spacing: 0.18em;
      margin-bottom: 0.2rem;
    }

    .site-footer__address {
      font-size: 0.95rem;
      line-height: 1.3;
    }

    .site-footer__link {
      font-size: 0.8rem;
      margin-top: 0.3rem;
    }

    .site-footer__bottom {
      margin-top: var(--space-md, 1.25rem);
      font-size: 0.65rem;
    }
  }
}
