/* Fonts are enqueued in functions.php as 'nlw-fonts' rather than @import-ed
   here. An @import blocks rendering: the browser must fetch and parse this
   file before it can even begin requesting the fonts. */

/* Palette lives in main.css. This file used to redefine --moss and the
   orange variables here, which meant footer.css silently overrode the
   theme palette because it loads later. */

#site-footer {
  background: linear-gradient(135deg, var(--forest-green) 0%, var(--mid-forest) 100%);
  color: #fff;
  /* The top edge used to be created by the newsletter bar sitting above the
     columns. With that bar gone the footer needs its own breathing room. */
  padding: 64px 0 0;
  font-family: 'Lora', serif;
  width: 100%;
}

.f-newsletter-bar {
  background: rgba(0,0,0,0.3);
  padding: 24px 40px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-align: center;
}

.f-newsletter-bar .f-newsletter-heading {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.5rem;
  letter-spacing: 2px;
}

.f-newsletter-bar a {
  color: var(--blaze-orange);
  font-family: 'Special Elite', serif;
  text-decoration: underline;
}

.f-container {
  max-width: 1300px;
  /* Top spacing now lives on #site-footer, so this only needs to hold the
     gap above the orange legal bar. */
  margin: 0 auto 64px;
  display: flex;
  flex-wrap: nowrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  padding: 0 40px;
}

.f-brand { flex: 0 0 320px; }
.f-wordmark {
  display: block;
  font-family: 'Special Elite', serif;
  font-size: 1.8rem;
  color: #fff;
  text-decoration: none;
  text-transform: uppercase;
  transition: color 0.2s;
}
.f-wordmark:hover { color: #c8470a; }

.f-tagline { font-family: 'Special Elite', serif; font-size: 0.8rem; color: var(--burnt-orange, #c8470a); margin-top: 8px; }
.f-blurb { font-size: 0.9rem; margin-top: 15px; line-height: 1.6; color: rgba(255,255,255,0.9); }

.f-socials { display: flex; gap: 4px; margin-top: 25px; list-style: none; padding: 0; }
.f-socials a {
  color: #fff;
  font-size: 1.4rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  transition: transform 0.3s;
}
.f-socials a:hover { color: var(--blaze-orange); transform: scale(1.1); }

.f-col { flex: 1; }
.f-col h3, .f-col .f-col-label { font-family: 'Special Elite', cursive; color: #c8470a; font-size: 1.1rem; margin-bottom: 16px; text-transform: uppercase; letter-spacing: 0.08em; }
.f-col-toggle {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  padding: 0;
  border: 0;
  background: transparent;
  text-align: left;
}
.f-col-chevron { display: none; }
.f-col ul { list-style: none; padding: 0; }
.f-col li { margin-bottom: 10px; }
.f-col a { color: #fff; text-decoration: none; transition: 0.3s; font-size: 0.95rem; line-height: 1.5; }
.f-col a:hover { color: #c8470a; padding-left: 5px; }

.f-bottom {
  background-color: var(--blaze-orange);
  padding: 30px 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  font-size: 0.85rem;
}

.f-legal-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 20px; list-style: none; padding: 0; }
.f-legal-links a { color: #fff; font-weight: bold; text-decoration: underline; transition: color 0.2s, text-decoration-color 0.2s; }
.f-legal-links a:hover { color: #24402c !important; background: #fff; padding: 2px 6px; border-radius: 3px; text-decoration: none; }

#cookie-popup {
  position: fixed;
  bottom: -100%;
  left: 0;
  width: 100%;
  background: #fff;
  color: var(--forest-green);
  padding: 20px 40px;
  z-index: var(--layer-notice, 1100);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  transition: bottom 0.6s ease;
  border-top: 4px solid var(--blaze-orange);
  box-sizing: border-box;
}

#cookie-popup.show { bottom: 0; }
#cookie-popup[hidden] { display: none; }

.cookie-copy {
  margin: 0;
  line-height: 1.5;
}

.cookie-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}

.cookie-btn {
  border: 2px solid var(--blaze-orange);
  border-radius: 4px;
  padding: 10px 25px;
  font-family: 'Bebas Neue' , sans-serif;
  font-size: 1rem;
  cursor: pointer;
  min-height: 44px;
}

.cookie-btn--accept {
  background: var(--blaze-orange);
  color: #1a1a1a;
}

.cookie-btn--reject {
  background: #fff;
  color: var(--forest-green);
}

.cookie-btn:hover,
.cookie-btn:focus-visible,
.cookie-close:hover,
.cookie-close:focus-visible {
  outline: 3px solid var(--forest-green);
  outline-offset: 2px;
}

.cookie-close {
  position: absolute;
  top: 8px;
  right: 12px;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  color: var(--forest-green);
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
}

/* Responsive */
@media (max-width: 1200px) {
  #site-footer { padding-top: 48px; }
  .f-container { flex-wrap: wrap; gap: 40px 30px; margin-bottom: 48px; }
  .f-brand { flex: 0 0 100%; }
  .f-col { flex: 0 0 calc(50% - 15px); }
}

.footer-link-white {
    color: #fff;
    text-decoration: underline;
}
.footer-link-white:hover {
    color: #ccc;
}

@media (max-width: 600px) {
  #site-footer { padding-top: 40px; }
  .f-container { gap: 32px; margin-bottom: 40px; padding: 0 24px; }
  .f-col { flex: 0 0 100%; }
  .f-bottom { padding: 24px; }
  #cookie-popup { flex-direction: column; padding: 28px 24px 20px; text-align: center; }
  .cookie-actions { width: 100%; justify-content: center; }
  .cookie-btn { flex: 1 1 0; max-width: 150px; }
  .f-col { border-bottom: 1px solid rgba(255, 255, 255, 0.22); }
  .f-col:last-child { border-bottom: 0; }
  .f-col .f-col-label {
    min-height: 48px;
    margin: 0;
    cursor: pointer;
  }
  .f-col-toggle:focus-visible {
    outline: 3px solid #fff;
    outline-offset: 3px;
  }
  .f-col-chevron {
    display: block;
    width: 10px;
    height: 10px;
    margin-right: 4px;
    border-right: 3px solid #c8470a;
    border-bottom: 3px solid #c8470a;
    transform: rotate(45deg);
    transition: transform 0.2s ease;
  }
  .f-col-toggle[aria-expanded="true"] .f-col-chevron { transform: rotate(225deg); }
  .f-col-panel { padding: 0 0 18px; }
  .f-col-panel[hidden] { display: none; }
  .f-col-panel li { margin-bottom: 2px; }
  .f-col-panel a,
  .f-legal-links a {
    display: flex;
    min-height: 44px;
    align-items: center;
    padding-top: 6px;
    padding-bottom: 6px;
    box-sizing: border-box;
  }
  .f-legal-links { gap: 2px 16px; }
  .f-col-divider { margin: 0; }
}

/* ── Back to Top Button ── */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 48px;
  height: 48px;
  min-height: 44px;
  background: var(--forest-green);
  color: #ffffff;
  border: 2px solid rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.1rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.25);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease, background 0.2s ease;
  z-index: var(--layer-floating, 900);
  touch-action: manipulation;
}
.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.back-to-top.is-over-forest {
  background: var(--blaze-orange, #c8470a);
}
.back-to-top:hover,
.back-to-top:focus-visible {
  background: var(--mid-forest);
  color: #ffffff;
  border-color: #ffffff;
  outline: 2px solid #fff;
  outline-offset: 2px;
}
.back-to-top.is-over-forest:hover,
.back-to-top.is-over-forest:focus-visible {
  background: #a93d09;
}
@media (max-width: 480px) {
  .back-to-top { bottom: 1.25rem; right: 1.25rem; width: 44px; height: 44px; }
}
/* Divider between Read the Mud and Blame These People in the shared column */
.f-col-divider {
    border: none;
    height: 1px;
    margin: 1.1rem 0;
    background: rgba(255, 255, 255, 0.25);
}
