/**
 * TruOath Nutrition Footer CSS
 * Aesop-inspired: dark charcoal (#252525) base, off-white text, newsletter top band
 */

/* ==========================================================================
   Footer Base
   ========================================================================== */
.truoath-footer {
  background-color: var(--truoath-dark);  /* #252525 — exact Aesop charcoal */
  color: rgba(255, 254, 242, 0.75);        /* Aesop's off-cream at 75% */
}

/* ==========================================================================
   Top: Newsletter Band
   ========================================================================== */
.truoath-footer__newsletter-band {
  padding: 90px 0 80px;
  border-bottom: 1px solid rgba(255, 254, 242, 0.1);
}

.truoath-footer__newsletter-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.truoath-footer__newsletter-kicker {
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--truoath-tan);
  margin-bottom: 16px;
  display: block;
}

.truoath-footer__newsletter-heading {
  font-family: var(--font-heading);
  font-size: var(--text-4xl);
  color: #fffef2;
  font-weight: 400;
  line-height: 1.15;
  margin-bottom: 16px;
}

.truoath-footer__newsletter-sub {
  font-size: var(--text-sm);
  color: rgba(255, 254, 242, 0.6);
  line-height: 1.75;
  max-width: 420px;
  margin-bottom: 0;
}

/* Newsletter form */
.truoath-footer__newsletter-label {
  display: block;
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255, 254, 242, 0.5);
  margin-bottom: 12px;
}

.truoath-footer__newsletter-row {
  display: flex;
}

.truoath-footer__newsletter-row input[type="email"] {
  flex: 1;
  background: transparent;
  border: 1px solid rgba(255, 254, 242, 0.25);
  border-right: none;
  border-radius: 0;
  color: #fffef2;
  font-family: var(--font-body);
  font-size: var(--text-sm);
  padding: 14px 18px;
  outline: none;
  transition: border-color 0.3s ease;
  min-width: 0;
}

.truoath-footer__newsletter-row input[type="email"]::placeholder {
  color: rgba(255, 254, 242, 0.3);
}

.truoath-footer__newsletter-row input[type="email"]:focus {
  border-color: rgba(255, 254, 242, 0.5);
}

.truoath-footer__newsletter-row button {
  background: transparent;
  border: 1px solid rgba(255, 254, 242, 0.25);
  color: #fffef2;
  font-family: var(--font-body);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 14px 24px;
  cursor: pointer;
  border-radius: 0;
  transition: background 0.3s ease, border-color 0.3s ease;
  white-space: nowrap;
}

.truoath-footer__newsletter-row button:hover {
  background: rgba(255, 254, 242, 0.1);
  border-color: rgba(255, 254, 242, 0.5);
  color: #fffef2;
}

.truoath-footer__newsletter-consent {
  font-size: 11px;
  color: rgba(255, 254, 242, 0.3);
  margin-top: 12px;
  line-height: 1.5;
}

/* ==========================================================================
   Middle: Links Grid
   ========================================================================== */
.truoath-footer__body {
  padding: 70px 0 60px;
}

.truoath-footer__grid {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr 1fr;
  gap: 50px;
}

/* Brand column */
.truoath-footer__logo {
  font-family: var(--font-heading);
  font-size: 2rem;
  color: #fffef2;
  text-decoration: none;
  display: block;
  margin-bottom: 16px;
  letter-spacing: 0.02em;
  line-height: 1;
  transition: opacity 0.3s ease;
}

.truoath-footer__logo:hover {
  opacity: 0.75;
  text-decoration: none;
}

.truoath-footer__brand-tagline {
  font-size: var(--text-sm);
  color: rgba(255, 254, 242, 0.5);
  line-height: 1.7;
  margin-bottom: 28px;
  max-width: 260px;
}

/* Social icons */
.truoath-footer__social {
  display: flex;
  gap: 18px;
  align-items: center;
}

.truoath-footer__social a {
  color: rgba(255, 254, 242, 0.5);
  text-decoration: none;
  transition: color 0.3s ease;
  display: flex;
  align-items: center;
}

.truoath-footer__social a:hover {
  color: #fffef2;
  text-decoration: none;
}

/* Column headings */
.truoath-footer__heading {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: rgba(255, 254, 242, 0.4);
  margin-bottom: 24px;
  font-weight: 400;
}

/* Link lists */
.truoath-footer__links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.truoath-footer__links li {
  margin-bottom: 12px;
}

.truoath-footer__links a {
  font-size: var(--text-sm);
  color: rgba(255, 254, 242, 0.65);
  text-decoration: none;
  transition: color 0.3s ease;
  line-height: 1.5;
}

.truoath-footer__links a:hover {
  color: #fffef2;
  text-decoration: none;
}

/* ==========================================================================
   Bottom Bar
   ========================================================================== */
.truoath-footer__bottom-bar {
  border-top: 1px solid rgba(255, 254, 242, 0.1);
  padding: 24px 0;
}

.truoath-footer__bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.truoath-footer__copyright {
  font-size: var(--text-xs);
  color: rgba(255, 254, 242, 0.35);
  letter-spacing: 0.02em;
}

.truoath-footer__bottom-links {
  display: flex;
  gap: 24px;
  align-items: center;
}

.truoath-footer__bottom-links a {
  font-size: var(--text-xs);
  color: rgba(255, 254, 242, 0.35);
  text-decoration: none;
  transition: color 0.3s ease;
}

.truoath-footer__bottom-links a:hover {
  color: rgba(255, 254, 242, 0.7);
  text-decoration: none;
}

.truoath-footer__bottom-links span {
  font-size: var(--text-xs);
  color: rgba(255, 254, 242, 0.2);
  font-style: italic;
  font-family: var(--font-heading);
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1024px) {
  .truoath-footer__newsletter-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .truoath-footer__newsletter-heading {
    font-size: var(--text-3xl);
  }

  .truoath-footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }

  .truoath-footer__col--brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 768px) {
  .truoath-footer__newsletter-band {
    padding: 60px 0;
  }

  .truoath-footer__newsletter-heading {
    font-size: var(--text-3xl);
  }

  .truoath-footer__newsletter-row {
    flex-direction: column;
  }

  .truoath-footer__newsletter-row input[type="email"] {
    border-right: 1px solid rgba(255, 254, 242, 0.25);
    border-bottom: none;
  }

  .truoath-footer__newsletter-row button {
    padding: 14px;
    text-align: center;
    border: 1px solid rgba(255, 254, 242, 0.25);
    border-top: none;
  }

  .truoath-footer__body {
    padding: 50px 0 40px;
  }

  .truoath-footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: 36px;
  }

  .truoath-footer__bottom-inner {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }

  .truoath-footer__bottom-links {
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
  }
}

@media (max-width: 480px) {
  .truoath-footer__grid {
    grid-template-columns: 1fr;
  }
}
