/* ============================================================
   DeepYogaWay — 03_footer.css
   Bruges i Simple Custom CSS & JS PRO → All Website
   Load order: 3 af 8
   ============================================================
   Indhold:
   1. .footer wrapper (olive baggrund)
   2. .footer__grid (4 kolonner: 2fr 1fr 1fr 1fr)
   3. .footer__logo
   4. .footer__tagline
   5. .footer__heading (clay, uppercase)
   6. .footer__links + link farver + hover
   7. .footer__bottom (copyright bar)
   8. .newsletter + .newsletter__input + .newsletter__btn
   9. Astra widget reset (fjern bokse i footer builder)
   10. Tablet responsive (2 kolonner)
   11. Mobil responsive (1 kolonne, stacked newsletter)
   ============================================================ */

/* ── Footer wrapper ── */
.footer {
  background: var(--olive);
  color: rgba(244, 239, 231, 0.75);
  padding-block: var(--space-20);
}

/* ── Grid (4 kolonner: 2fr 1fr 1fr 1fr) ── */
.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-12);
  margin-bottom: var(--space-16);
}

/* ── Logo ── */
.footer__logo {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 400;
  color: var(--ivory);
  letter-spacing: 0.02em;
  margin-bottom: var(--space-4);
  display: block;
}

/* ── Tagline ── */
.footer__tagline {
  font-size: var(--text-sm);
  line-height: 1.7;
  color: rgba(244, 239, 231, 0.65);
  margin: 0;
  max-width: 280px;
}

/* ── Kolonne-overskrifter ── */
.footer__heading {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--clay);
  margin-bottom: var(--space-6);
  display: block;
}

/* ── Links liste ── */
.footer__links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.footer__links li {
  margin: 0;
  padding: 0;
}

.footer__links a {
  font-size: var(--text-sm);
  color: rgba(244, 239, 231, 0.7);
  text-decoration: none;
  letter-spacing: 0.01em;
  transition: color var(--transition);
  opacity: 1;
}

.footer__links a:hover {
  color: var(--ivory);
  opacity: 1;
}

/* ── Copyright bar ── */
.footer__bottom {
  border-top: 1px solid rgba(244, 239, 231, 0.1);
  padding-top: var(--space-8);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: var(--text-xs);
  color: rgba(244, 239, 231, 0.35);
  letter-spacing: 0.05em;
}

/* ── Newsletter ── */
.newsletter {
  display: flex;
  gap: 0;
  max-width: 320px;
  margin-top: var(--space-2);
}

.newsletter__input {
  flex: 1;
  padding: var(--space-3) var(--space-5);
  font-size: var(--text-sm);
  font-family: var(--font-body);
  background: rgba(244, 239, 231, 0.08);
  border: 1px solid rgba(244, 239, 231, 0.2);
  border-right: none;
  color: var(--ivory);
  outline: none;
  border-radius: 0;
  transition: border-color var(--transition);
}

.newsletter__input:focus {
  border-color: rgba(244, 239, 231, 0.5);
}

.newsletter__input::placeholder {
  color: rgba(244, 239, 231, 0.35);
  font-family: var(--font-body);
}

.newsletter__btn {
  padding: var(--space-3) var(--space-5);
  background: var(--clay);
  color: var(--ivory);
  border: 1px solid var(--clay);
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  border-radius: 0;
  white-space: nowrap;
  transition: background var(--transition);
}

.newsletter__btn:hover {
  background: var(--ink);
  border-color: var(--ink);
}

/* ── Astra widget reset (footer i header/footer builder) ── */
.footer-widget-area .widget,
.ast-footer-widget-area .widget,
#colophon .widget {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
  margin: 0 !important;
  color: var(--ivory) !important;
}

/* Fjern Astra's standard li-spacing i footer */
#colophon ul li,
.site-footer ul li,
.ast-footer-widget-area ul li {
  margin-bottom: 0.5rem !important;
  padding: 0 !important;
}

/* ── Tablet (768–1024px) ── */
@media (max-width: 1024px) {
  .footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-8);
  }

  .footer__tagline {
    max-width: 100%;
  }
}

/* ── Mobil (max 768px) ── */
@media (max-width: 768px) {

  .footer {
    padding-block: var(--space-12);
  }

  .footer__grid {
    grid-template-columns: 1fr;
    gap: var(--space-8);
    margin-bottom: var(--space-10);
  }

  .footer__bottom {
    flex-direction: column;
    gap: var(--space-3);
    text-align: center;
    padding-top: var(--space-6);
  }

  .newsletter {
    flex-direction: column;
    max-width: 100%;
  }

  .newsletter__input {
    border-right: 1px solid rgba(244, 239, 231, 0.2);
    border-bottom: none;
  }

  .newsletter__btn {
    width: 100%;
  }
}
