/*!
 * LoginExp Footer — assets/css/footer.css
 *
 * Refino visual do footer (newsletter strip + social row).
 * Vanilla CSS scoped, sem framework. Reusa tokens do tema.
 * Carregado por scripts/lex-footer-assets.php (global).
 */

:root {
  --lex-footer-ink: #0A0E0D;
  --lex-footer-surface: rgba(255, 255, 255, 0.03);
  --lex-footer-surface-hi: rgba(255, 255, 255, 0.06);
  --lex-footer-line: rgba(255, 255, 255, 0.10);
  --lex-footer-line-hi: rgba(255, 255, 255, 0.18);
  --lex-footer-text: #F2F5F4;
  --lex-footer-muted: rgba(242, 245, 244, 0.65);
  --lex-footer-green: #22C58A;
  --lex-footer-green-bright: #2EE39E;
  --lex-footer-font: "Exo", "Barlow", system-ui, sans-serif;
}

/* ===== Newsletter strip ================================================== */
.lex-footer-newsletter {
  font-family: var(--lex-footer-font);
}

.lex-footer-newsletter__card {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  padding: 28px 24px;
  border: 1px solid var(--lex-footer-line);
  background:
    radial-gradient(120% 100% at 0% 0%, rgba(34, 197, 138, 0.08) 0%, transparent 55%),
    var(--lex-footer-surface);
  border-radius: 14px;
  overflow: hidden;
}

.lex-footer-newsletter__card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 14px;
  padding: 1px;
  background: linear-gradient(135deg, rgba(34, 197, 138, 0.35), transparent 40%);
  -webkit-mask: linear-gradient(#000, #000) content-box, linear-gradient(#000, #000);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  pointer-events: none;
}

.lex-footer-newsletter__copy {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.lex-footer-newsletter__title {
  margin: 0;
  font-family: var(--lex-footer-font);
  font-weight: 700;
  font-size: 22px;
  line-height: 1.15;
  color: var(--lex-footer-text);
  letter-spacing: -0.01em;
}

.lex-footer-newsletter__lede {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--lex-footer-muted);
  max-width: 56ch;
}

.lex-footer-newsletter__form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.lex-footer-newsletter__input {
  flex: 1;
  width: 100%;
  min-width: 0;
  padding: 13px 16px;
  font-family: inherit;
  font-size: 15px;
  color: var(--lex-footer-text);
  background: rgba(0, 0, 0, 0.30);
  border: 1px solid var(--lex-footer-line-hi);
  border-radius: 10px;
  outline: none;
  transition: border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.lex-footer-newsletter__input::placeholder {
  color: rgba(242, 245, 244, 0.40);
}

.lex-footer-newsletter__input:focus {
  border-color: var(--lex-footer-green);
  background: rgba(0, 0, 0, 0.45);
  box-shadow: 0 0 0 3px rgba(34, 197, 138, 0.15);
}

.lex-footer-newsletter__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 22px;
  font-family: inherit;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #0A0E0D;
  background: var(--lex-footer-green);
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: background 160ms ease, transform 120ms ease, box-shadow 160ms ease;
}

.lex-footer-newsletter__btn:hover {
  background: var(--lex-footer-green-bright);
  box-shadow: 0 6px 18px -8px rgba(34, 197, 138, 0.55);
}

.lex-footer-newsletter__btn:active {
  transform: translateY(1px);
}

.lex-footer-newsletter__btn svg {
  transition: transform 160ms ease;
}

.lex-footer-newsletter__btn:hover svg {
  transform: translateX(2px);
}

.lex-footer-newsletter__legal {
  margin: 0;
  font-size: 11px;
  letter-spacing: 0.04em;
  color: rgba(242, 245, 244, 0.45);
  text-transform: uppercase;
}

/* >= 768px : layout 2 col (copy | form), legal full width */
@media (min-width: 768px) {
  .lex-footer-newsletter__card {
    grid-template-columns: 1.2fr 1fr;
    gap: 28px;
    padding: 32px 36px;
    align-items: center;
  }
  .lex-footer-newsletter__form {
    flex-direction: row;
    align-items: stretch;
    grid-row: 1;
    grid-column: 2;
  }
  .lex-footer-newsletter__btn {
    flex-shrink: 0;
  }
  .lex-footer-newsletter__legal {
    grid-column: 1 / -1;
  }
  .lex-footer-newsletter__title {
    font-size: 26px;
  }
}

@media (min-width: 1024px) {
  .lex-footer-newsletter__card {
    padding: 40px 48px;
  }
  .lex-footer-newsletter__title {
    font-size: 30px;
  }
}

/* sr-only fallback (caso theme não tenha) */
.lex-footer-newsletter .sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}

/* ===== Social row ======================================================== */
.lex-footer-social {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.lex-footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  color: var(--lex-footer-text);
  background: var(--lex-footer-surface);
  border: 1px solid var(--lex-footer-line);
  border-radius: 999px;
  transition:
    color 160ms ease,
    background 160ms ease,
    border-color 160ms ease,
    transform 200ms ease;
}

.lex-footer-social a:hover,
.lex-footer-social a:focus-visible {
  color: var(--lex-footer-green-bright);
  background: var(--lex-footer-surface-hi);
  border-color: rgba(34, 197, 138, 0.55);
  transform: translateY(-2px);
}

.lex-footer-social a:focus-visible {
  outline: 2px solid var(--lex-footer-green);
  outline-offset: 2px;
}

/* ===== Tiny polish do existente (não invasivo) =========================== */

/* hover sutil em links de horário/contato/blog (texto neutral-400 → branco) */
#contact a.text-app-green {
  transition: color 160ms ease;
}

/* dotted divider mais sutil dentro dos horários */
#contact .border-b-white.border-dotted {
  border-bottom-color: rgba(255, 255, 255, 0.18);
}

/* coluna headers — letter-spacing fino + smoothing */
#contact h4.border-b-app-green {
  letter-spacing: 0.02em;
  -webkit-font-smoothing: antialiased;
}
