/* WellnessWorkz — site footer (managed by Claude).
   Paired with ww-footer.php. Delete both files to fully revert the styling;
   delete HFE template "WellnessWorkz Footer" (post type elementor-hf, id 185)
   to remove the footer itself.

   NOTE: Elementor "boxed" containers wrap their children in .e-con-inner, so the
   grid/flex layout must be applied to that inner node, not the outer container. */

.ww-footer {
  --wwf-bg:     #16232b;
  --wwf-ink:    #f4f7f8;
  --wwf-muted:  #9fb0ba;
  --wwf-line:   rgba(255,255,255,.10);
  --wwf-accent: #ffffff;

  background: var(--wwf-bg) !important;
  color: var(--wwf-muted);
  padding: 0 !important;
  margin: 0;
  font-size: 15px;
  line-height: 1.65;
}

/* ---------- column grid ---------- */
.ww-footer .ww-footer-cols {
  padding: 0 !important;
  max-width: none !important;
  width: 100%;
}

.ww-footer .ww-footer-cols > .e-con-inner {
  display: grid !important;
  grid-template-columns: 1.6fr 1fr 1.15fr 1fr 1.35fr;
  gap: 40px 32px;
  align-items: start;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 64px 24px 44px !important;
}

.ww-footer .ww-footer-col {
  display: block !important;
  width: auto !important;
  max-width: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

/* ---------- headings ---------- */
.ww-footer .ww-f-h .elementor-heading-title {
  color: var(--wwf-ink);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
  margin: 0 0 18px;
}

/* brand column heading is the wordmark — larger, not uppercase */
.ww-footer .ww-f-brand .ww-f-h .elementor-heading-title {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -.01em;
  text-transform: none;
  margin-bottom: 14px;
}

.ww-footer .ww-f-tag {
  color: var(--wwf-muted);
  max-width: 34ch;
  margin: 0;
}

/* Secondary label inside the brand column. "Get in touch" used to be its own
   column; it was moved under the wordmark to free the 5th slot for Legal, so it
   needs the standard small-caps column heading rather than the wordmark style. */
.ww-footer .ww-f-h-sub .elementor-heading-title {
  color: var(--wwf-ink);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
  margin: 24px 0 10px;
}

/* ---------- link lists ---------- */
.ww-footer .ww-f-links ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.ww-footer .ww-f-links li { margin: 0 0 11px; }
.ww-footer .ww-f-links li:last-child { margin-bottom: 0; }

.ww-footer a {
  color: var(--wwf-muted);
  text-decoration: none;
  transition: color .18s ease;
}

.ww-footer a:hover,
.ww-footer a:focus-visible {
  color: var(--wwf-accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.ww-footer a:focus-visible {
  outline: 2px solid var(--wwf-accent);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ---------- contact block ---------- */
.ww-footer .ww-f-contact { margin: 0 0 12px; }
.ww-footer .ww-f-contact a {
  color: var(--wwf-ink);
  font-weight: 600;
  /* long address must not overflow the narrow 2-column mobile grid */
  overflow-wrap: anywhere;
}
.ww-footer .ww-f-addr { margin: 0; color: var(--wwf-muted); }

/* ---------- bottom bar ---------- */
.ww-footer .ww-footer-bottom {
  padding: 0 !important;
  max-width: none !important;
  width: 100%;
}

.ww-footer .ww-footer-bottom > .e-con-inner {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 10px 28px;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 22px 24px 30px !important;
  border-top: 1px solid var(--wwf-line);
}

.ww-footer .ww-footer-bottom p {
  margin: 0;
  font-size: 13.5px;
  color: var(--wwf-muted);
}

.ww-footer .ww-f-pay strong { color: var(--wwf-ink); font-weight: 600; }

.ww-footer .ww-f-copy,
.ww-footer .ww-f-pay {
  width: auto !important;
  max-width: none !important;
}

/* ---------- cookie consent ----------
   The CookieYes floating "Consent Preferences" badge that used to sit in the
   bottom-left corner is switched off in the banner config
   (wp_cky_banners.settings -> config.revisitConsent.status = false); the
   "Cookie Preferences" link in the footer's Legal column replaces it.

   The rule below is what actually keeps it gone: the plugin re-shows the badge
   unconditionally whenever the preference centre is closed — lite/frontend/js/
   script.js lines 568 and 626 call _ckyShowRevisit() without checking
   config.revisitConsent.status. Remove this rule and flip the config back to
   true to restore the corner badge. */
.cky-btn-revisit-wrapper { display: none !important; }

/* "Cookie Preferences" opens the CookieYes preference centre: the plugin's body
   click handler fires on any element carrying the class .cky-banner-element.
   It's a <button> rather than an <a href="#"> so clicking it doesn't jump the
   page to the top; these rules make it read as one of the sibling footer links. */
.ww-footer .ww-f-links .ww-f-linkbtn {
  -webkit-appearance: none;
  appearance: none;
  background: none;
  border: 0;
  border-radius: 0;
  padding: 0;
  margin: 0;
  font: inherit;
  text-align: start;
  text-decoration: none;
  color: var(--wwf-muted);
  cursor: pointer;
  transition: color .18s ease;
}

.ww-footer .ww-f-links .ww-f-linkbtn:hover,
.ww-footer .ww-f-links .ww-f-linkbtn:focus-visible {
  background: none;
  color: var(--wwf-accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.ww-footer .ww-f-links .ww-f-linkbtn:focus-visible {
  outline: 2px solid var(--wwf-accent);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ---------- responsive ---------- */
@media (max-width: 1024px) {
  .ww-footer .ww-footer-cols > .e-con-inner {
    grid-template-columns: 1fr 1fr 1fr;
    padding: 52px 24px 36px !important;
  }
  .ww-footer .ww-f-brand { grid-column: 1 / -1; }
  .ww-footer .ww-f-tag { max-width: none; }
}

@media (max-width: 640px) {
  .ww-footer .ww-footer-cols > .e-con-inner {
    grid-template-columns: 1fr 1fr;
    gap: 32px 24px;
    padding: 44px 20px 32px !important;
  }
  .ww-footer .ww-footer-bottom > .e-con-inner {
    flex-direction: column !important;
    align-items: flex-start;
    padding: 20px 20px 28px !important;
  }
}

/* Single column only on very narrow phones — 375-430px devices keep 2 columns,
   which keeps the footer roughly half as tall. */
@media (max-width: 359px) {
  .ww-footer .ww-footer-cols > .e-con-inner { grid-template-columns: 1fr; }
}
