/* ============================================================
   FOOTER — dark forest-green rounded card
   (refs: image633 dark editorial + image634 contained card)
   Newsletter + social (left) · nav/program columns (right) ·
   large IMPLANTODENT wordmark with the real symbol badge · legal.
   ============================================================ */
.fx {
  background: var(--paper);           /* light shell → the card keeps visible margins */
  padding-block: 0 clamp(12px, 1.8vw, 28px);
  padding-inline: 0;
}

.fx__card {
  --fx-text: #101820;
  --fx-muted: rgba(16, 24, 32, .60);
  --fx-border: rgba(16, 24, 32, .10);
  --fx-surface: rgba(16, 24, 32, .035);
  --fx-word: rgba(16, 24, 32, .05);

  width: var(--shell);
  box-shadow: var(--card-shadow);
  margin-inline: auto;
  color: var(--fx-text);
  background: #fff;
  border: 1px solid rgba(16, 24, 32, .06);
  border-radius: clamp(26px, 2.5vw, 40px);
  padding: clamp(30px, 4.4vw, 70px) clamp(24px, 4vw, 72px) clamp(22px, 2.4vw, 38px);
  overflow: hidden;
}

/* ---- upper grid ---- */
.fx__top {
  display: grid;
  grid-template-columns: minmax(0, .72fr) minmax(0, 1fr);
  gap: clamp(32px, 4.5vw, 72px);
  padding-bottom: clamp(38px, 6vw, 84px);
}

/* newsletter */
.fx__h { font-size: clamp(1.45rem, 2.3vw, 2.05rem); font-weight: 700; letter-spacing: -.02em; }
.fx__lead {
  margin-top: .85rem;
  color: var(--fx-muted);
  max-width: 42ch;
  line-height: 1.6;
  font-size: 1rem;
}
.fx__form { position: relative; margin-top: 1.5rem; max-width: 30rem; }
.fx__input {
  width: 100%;
  height: 58px;
  padding: 0 66px 0 1.3rem;
  border-radius: 999px;
  background: var(--fx-surface);
  border: 1px solid var(--fx-border);
  color: var(--fx-text);
  font: inherit;
  font-size: .98rem;
}
.fx__input::placeholder { color: rgba(16, 24, 32, .5); }
.fx__input:focus-visible {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(62, 168, 44, .3);
}
.fx__send {
  position: absolute;
  right: 6px; top: 50%;
  transform: translateY(-50%);
  width: 46px; height: 46px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: var(--green);
  color: #fff;
  transition: background .3s var(--ease), transform .3s var(--ease);
}
.fx__send svg { width: 20px; height: 20px; transition: transform .3s var(--ease); }
.fx__msg { margin-top: .7rem; font-size: .85rem; color: var(--fx-muted); min-height: 1.1em; }

.fx__social { display: flex; gap: .7rem; margin-top: 1.5rem; }
.fx__soc {
  width: 44px; height: 44px;
  border-radius: 12px;
  display: grid; place-items: center;
  border: 1px solid var(--fx-border);
  background: var(--fx-surface);
  color: var(--fx-text);
  transition: background .3s var(--ease), transform .3s var(--ease);
}
.fx__soc svg { width: 19px; height: 19px; }

/* columns */
.fx__cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.4rem, 3vw, 2.4rem);
}
.fx__col { min-width: 0; }
.fx__col a, .fx__prog li { overflow-wrap: anywhere; }
.fx__col h3 {
  font-size: .74rem;
  text-transform: uppercase;
  letter-spacing: .16em;
  font-weight: 700;
  color: rgba(16, 24, 32, .5);
  margin-bottom: 1.1rem;
}
.fx__col ul { display: grid; gap: .8rem; }
.fx__col a { color: var(--fx-muted); font-size: .95rem; transition: color .25s var(--ease), transform .25s var(--ease); display: inline-block; }
.fx__prog li { color: var(--fx-muted); font-size: .95rem; line-height: 1.35; }
.fx__prog li b { display: block; color: var(--fx-text); font-weight: 700; }
.fx__prog a { color: var(--fx-muted); transition: color .25s var(--ease), transform .25s var(--ease); display: inline-block; }

/* ---- divider ---- */
.fx__rule { border: 0; height: 1px; background: var(--fx-border); margin: 0; }

/* ---- large wordmark + symbol ---- */
.fx__mark {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(.4rem, 1.4vw, 1.3rem);
  padding-block: clamp(2.2rem, 5vw, 4.6rem) clamp(1.6rem, 3vw, 2.6rem);
  line-height: 1;
}
.fx__word {
  font-size: clamp(2.6rem, 10.5vw, 9.5rem);
  font-weight: 800;
  letter-spacing: -0.045em;
  white-space: nowrap;
}
/* logo colors: IMPLANTO = blue, DENT = green (like the real logo) */
.fx__mark .fx__word:first-of-type { color: var(--blue); }
.fx__mark .fx__word:last-of-type { color: var(--green); }
.fx__badge {
  flex: none;
  width: clamp(58px, 7vw, 122px);
  height: clamp(58px, 7vw, 122px);
  border-radius: 50%;
  background: #EAF2E4;
  border: 1px solid rgba(16, 24, 32, .06);
  display: grid;
  place-items: center;
  transition: transform .5s var(--ease);
}
.fx__badge img { width: 66%; height: 66%; object-fit: contain; }

/* ---- legal ---- */
.fx__legal {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  align-items: center;
  padding-top: clamp(1.4rem, 2.4vw, 2rem);
  border-top: 1px solid var(--fx-border);
  font-size: .82rem;
  color: rgba(16, 24, 32, .5);
}
.fx__legal-links { display: flex; gap: 1.4rem; }
.fx__legal-links a { color: rgba(16, 24, 32, .5); transition: color .25s var(--ease); }

/* ---- hover (fine pointers only) ---- */
@media (hover: hover) and (pointer: fine) {
  .fx__col a:hover, .fx__prog a:hover { color: var(--fx-text); transform: translateX(3px); }
  .fx__soc:hover { background: rgba(16, 24, 32, .14); transform: translateY(-2px); }
  .fx__send:hover { background: #49bd34; }
  .fx__send:hover svg { transform: translate(1px, -1px); }
  .fx__badge:hover { transform: rotate(6deg); }
  .fx__legal-links a:hover { color: var(--fx-text); }
}

/* ---- accessibility helper ---- */
.fx .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;
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 920px) {
  .fx__top { grid-template-columns: 1fr; gap: clamp(2.4rem, 6vw, 3.4rem); }
}
@media (max-width: 640px) {
  .fx__card { padding: clamp(24px, 6vw, 32px) clamp(20px, 5vw, 30px); border-radius: clamp(22px, 6vw, 28px); }
  .fx__cols { grid-template-columns: 1fr 1fr; gap: 1.8rem 1.4rem; }
  .fx__mark { flex-direction: column; gap: clamp(.5rem, 3vw, 1rem); }
  .fx__word { font-size: clamp(2.8rem, 15vw, 5.6rem); letter-spacing: -0.03em; }
  .fx__legal { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 380px) {
  .fx__cols { grid-template-columns: 1fr; }
}

/* ---- reduced motion ---- */
@media (prefers-reduced-motion: reduce) {
  .fx__col a, .fx__prog a, .fx__soc, .fx__send, .fx__send svg, .fx__badge { transition: none; }
}
