/* footer.css — Phase 1 (no @layer) */
/* Two footer structures exist in the source HTML. */
/* Footer A (7 product pages): 3-column grid, .footer__logo + .footer__col-label + .footer__links */
/* Footer B (editorial pages): flat link row, no section labels */

/* ── Footer A: product pages ── */
.footer {
  background: var(--c-dbg);
  color: var(--c-dtext);
  padding: clamp(3rem, 5vw, 5rem) clamp(1.5rem, 5vw, 5rem);
}
.footer__inner {
  max-width: var(--mw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 2rem;
}
.footer__logo {
  display: inline-flex;
  align-items: center;
}
.footer__logo svg {
  height: 20px;
  width: auto;
  display: block;
}
.footer__logo span { color: var(--cx); }
.footer__sub {
  font-size: 0.72rem;
  color: rgba(245, 240, 232, 0.55);
  margin-top: 0.35rem;
  letter-spacing: 0.06em;
}
.footer__col-label {
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--c-accent);
  margin-bottom: 0.9rem;
}
.footer__bottom {
  max-width: var(--mw);
  margin: 2rem auto 0;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(201, 173, 136, 0.20);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer__copy {
  font-size: 0.75rem;
  color: rgba(245, 240, 232, 0.45);
  letter-spacing: 0.06em;
}

/* ── Footer B: editorial pages ── */
.footer--editorial {
  background-color: var(--c-dark-bg);
  border-top: 1px solid var(--c-rule-dark);
  padding: clamp(16px, 2vw, 24px) var(--gap-container);
}
.footer--editorial .footer__inner { max-width: var(--max-w); margin: 0 auto; display: block; }
.footer__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  padding-bottom: 10px;
}
.footer--editorial .footer__logo {
  color: var(--c-dark-text);
  transition: opacity 0.25s;
}
.footer--editorial .footer__logo svg {
  height: clamp(18px, 2vw, 24px);
}
.footer--editorial .footer__logo:hover { opacity: 0.6; }
.footer--editorial .footer__logo:focus-visible { outline: 1px solid var(--c-accent); outline-offset: 4px; }
.footer__wa {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 22px;
  background: var(--c-accent);
  color: var(--c-dark);
  border: 1px solid var(--c-accent);
  font-family: var(--ff-body);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: opacity 0.3s;
}
.footer__wa:hover { opacity: 0.85; }
.footer__wa:focus-visible { outline: 1px solid var(--c-accent); outline-offset: 4px; }

/* ── Flat link row ── */
.footer__links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 16px;
  padding: 8px 0 10px;
}
.footer__link {
  font-family: var(--ff-body);
  font-size: 10px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: rgba(245, 240, 232, 0.45);
  transition: color 0.25s;
  white-space: nowrap;
}
.footer__link:hover { color: var(--c-dark-text); }
.footer__link:focus-visible { outline: 1px solid var(--c-accent); outline-offset: 3px; }
.footer__sep {
  color: rgba(245, 240, 232, 0.12);
  font-size: 12px;
  user-select: none;
  pointer-events: none;
  line-height: 1;
}

/* ── Spectrum bar ── */
.footer__spectrum {
  display: flex;
  height: 2px;
  margin: 16px 0;
}
.footer__spectrum span { flex: 1; }

/* ── Bottom bar ── */
.footer--editorial .footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  border-top: 1px solid rgba(201, 173, 136, 0.20);
  padding-top: 10px;
}
.footer--editorial .footer__copy {
  font-family: var(--ff-body);
  font-size: 10px;
  letter-spacing: 0.08em;
  color: rgba(245, 240, 232, 0.4);
}
.footer__origin {
  font-family: var(--ff-body);
  font-size: 10px;
  letter-spacing: 0.08em;
  color: rgba(201, 173, 136, 0.75);
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .footer__inner { grid-template-columns: 1fr 1fr; }
  .footer__top { flex-direction: column; align-items: flex-start; }
  .footer__wa { min-height: 44px; }
  .footer__link { padding: 12px 0; min-height: 44px; display: inline-flex; align-items: center; }
  .footer { padding-bottom: calc(48px + var(--safe-bottom, 0px)); }
}

/* ── Touch targets (coarse pointer only) ── */
@media (pointer: coarse) {
  .footer__logo { min-height: 44px; }
}
@media (max-width: 480px) {
  .footer__inner { grid-template-columns: 1fr; }
}
