/* =============================================================================
   KI PEPTIDES — Global chrome: dark footer
   Styles the markup in footer.php. Ported 1:1 from sections/ki-footer.liquid.
   Dark surface (#1a1c1d via .ki-section--dark). Container 1440. The ONE place
   hairlines on dark are allowed: rgba(255,255,255,0.08) above disclaimer + bar.
   ========================================================================== */

.ki-footer {
  /* .ki-section--dark already sets bg #1a1c1d + text rgba(255,255,255,0.72). */
  padding: 0;
}
.ki-footer .ki-container {
  /* Inherits max-width 1440 + gutter from the primitive. */
  padding-block: 0;
}

/* ── Main grid: 1.4fr 0.7fr 0.7fr 1fr → 2-col tablet → 1-col mobile ─────── */
.ki-footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  padding: clamp(3rem, 8vh, 5rem) 0;
}
@media (min-width: 750px) {
  .ki-footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
  }
}
@media (min-width: 901px) {
  /* 4-col engages at the theme's 900 boundary (was 990 → an inconsistent 901-989 band). */
  .ki-footer__grid {
    grid-template-columns: 1.4fr 0.7fr 0.7fr 1fr;
    gap: 3rem;
  }
}

/* ── Brand column ───────────────────────────────────────────────────────── */
.ki-footer__logo {
  display: block;
  line-height: 0;
  margin-bottom: 1.25rem;
}
.ki-footer__logo img {
  height: 23.04px; /* −20% again (was 28.8px; −36% from original 36px) */
  width: auto;
  display: block;
}
.ki-footer__tagline {
  font-family: var(--ki-font-display);
  font-weight: 300;
  font-size: 0.9375rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 2rem;
  max-width: 28ch;
}

/* Signup label (gold) + sub (gold numerals via <strong>) */
.ki-footer__signup-label {
  font-family: var(--ki-font-display);
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ki-gold);
  margin-bottom: 0.375rem;
}
.ki-footer__signup-sub {
  font-family: var(--ki-font-display);
  font-size: 0.875rem;
  font-weight: 400;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.82);
  margin-bottom: 0.875rem;
}
.ki-footer__signup-sub strong {
  color: var(--ki-gold);
  font-weight: 600;
  letter-spacing: -0.005em;
}

/* Pill email signup — input + arrow submit */
.ki-signup {
  display: flex;
  align-items: stretch;
  max-width: 360px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--ki-radius-pill);
  overflow: hidden;
  transition: border-color 0.2s ease;
}
.ki-signup:focus-within { border-color: var(--ki-secondary); }
.ki-signup input[type="email"] {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: none;
  padding: 0.75rem 1.25rem;
  font-family: var(--ki-font-display);
  font-size: 0.875rem;
  color: #fff;
  outline: none;
}
.ki-signup input[type="email"]::placeholder { color: rgba(255, 255, 255, 0.35); }
.ki-signup button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  padding: 0.75rem 1.1rem;
  font-size: 1.1rem;
  line-height: 1;
  color: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: color 0.2s ease;
}
.ki-signup button:hover { color: var(--ki-gold); }

/* Newsletter success message (swapped in by ki-cart.js) */
.ki-signup__success,
.ki-footer__success {
  font-family: var(--ki-font-display);
  font-size: 0.8125rem;
  color: var(--ki-secondary);
  margin: 0.625rem 0 0;
}

/* ── Link columns ───────────────────────────────────────────────────────── */
.ki-footer__head {
  font-family: var(--ki-font-label);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
  margin: 0 0 1.25rem;
}
.ki-footer__col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.ki-footer__col ul a {
  font-family: var(--ki-font-display);
  font-size: 0.875rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: color 0.2s ease;
}
.ki-footer__col ul a:hover { color: #fff; }

/* Contact column */
.ki-footer__email {
  display: inline-block;
  font-family: var(--ki-font-display);
  font-size: 0.875rem;
  color: #84e9fd;
  text-decoration: none;
  transition: color 0.2s ease;
}
.ki-footer__email:hover { color: var(--ki-gold); }
.ki-footer__hours {
  font-family: var(--ki-font-display);
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.3);
  margin: 0.75rem 0 0;
}

/* ── Compliance disclaimer ──────────────────────────────────────────────── */
.ki-footer__disclaimer {
  padding: 2rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08); /* allowed hairline on dark */
}
.ki-footer__disclaimer-head {
  font-family: var(--ki-font-label);
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  margin: 0 0 0.75rem;
}
.ki-footer__disclaimer p:not(.ki-footer__disclaimer-head) {
  font-family: var(--ki-font-display);
  font-size: 0.6875rem;
  font-weight: 300;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.55);
  max-width: 120ch;
  margin: 0;
}

/* ── Bottom bar: legal + copyright ──────────────────────────────────────── */
.ki-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08); /* allowed hairline on dark */
}
.ki-footer__legal {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.ki-footer__legal a {
  font-family: var(--ki-font-display);
  font-size: 0.6875rem;
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  transition: color 0.2s ease;
}
.ki-footer__legal a:hover { color: rgba(255, 255, 255, 0.7); }
.ki-footer__copy {
  font-family: var(--ki-font-display);
  font-size: 0.6875rem;
  color: rgba(255, 255, 255, 0.6);
  margin: 0;
}

/* ── Mobile: 44px tap rows + readable legal/disclaimer type (mobile polish pass) ── */
@media (max-width: 749px) {
  .ki-footer__col ul { gap: 0.25rem; }
  .ki-footer__col ul a { display: inline-flex; align-items: center; min-height: 44px; }
  .ki-footer__legal { gap: 0.25rem 1.25rem; }
  .ki-footer__legal a { display: inline-flex; align-items: center; min-height: 44px; font-size: 0.75rem; }
  .ki-footer__email { display: inline-flex; align-items: center; min-height: 44px; }
  /* Lift the signup pill so input + arrow both clear 44px. */
  .ki-signup input[type="email"] { padding-block: 0.9rem; }
  .ki-signup button { padding: 0.9rem 1.25rem; }
  /* 503A/503B legal copy 10-11px → readable on a phone. */
  .ki-footer__disclaimer p:not(.ki-footer__disclaimer-head) { font-size: 0.75rem; line-height: 1.65; }
  .ki-footer__disclaimer-head { font-size: 0.6875rem; }
}
