/* Take My Junk 2026 brand: overrides on top of the Webflow CSS.
   Colours (--green = Lime, --blue = Forest) and the Inter font are set in takemyjunk.webflow.css.
   Rule of thumb: Lime is a fill or a colour on Forest/dark, never text on a light background. */

/* ---------- Accent words on light backgrounds ----------
   Was green text. Lime text on white is unreadable (contrast 1.1), so accent words become
   Forest text with a Lime highlighter stroke behind them. */
.text-color-green {
  color: var(--tmj-forest) !important; /* beats Webflow combo classes like .text-size-24.unwanted-items.text-color-green */
  background-image: linear-gradient(transparent 55%, var(--tmj-lime) 55%, var(--tmj-lime) 92%, transparent 92%);
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
  padding: 0 0.08em;
}

/* Inline links in body copy (WhatsApp, "here", email) */
.link, .link-4, .text-link {
  color: var(--tmj-forest);
  text-decoration: underline;
  text-decoration-color: var(--tmj-lime);
  text-decoration-thickness: 0.2em;
  text-underline-offset: 0.12em;
  font-weight: 700;
}
.link:hover, .link-4:hover, .text-link:hover { text-decoration-color: var(--tmj-forest); }

/* ---------- Footer: Forest background, white text, Lime accents ---------- */
.section-footer {
  background-color: var(--tmj-forest);
  color: var(--tmj-white);
}
.section-footer .footer-link,
.section-footer .footer-text,
.section-footer .footer-bottom-link,
.section-footer .copyright-text { color: var(--tmj-white); }
.section-footer .footer-link:hover,
.section-footer .footer-text:hover,
.section-footer .footer-bottom-link:hover { color: var(--tmj-lime); }
.section-footer .copyright-text.text-color-green,
.section-footer .year {
  color: var(--tmj-lime) !important;
  background: none;
  padding: 0;
}
.section-footer .footer-bg { opacity: 0.12; }
.privacy-policy-links-wrapper {
  background-color: var(--tmj-forest);
  border-top: 1px solid rgba(253, 253, 253, 0.15);
}
.privacy-policy-links-wrapper .footer-text,
.privacy-policy-links-wrapper .footer-bottom-link { color: rgba(253, 253, 253, 0.75); }
.privacy-policy-links-wrapper .footer-text:hover,
.privacy-policy-links-wrapper .footer-bottom-link:hover { color: var(--tmj-lime); }

/* Lime fills carry Forest text, never white */
.blog-tag-text { color: var(--tmj-forest); font-weight: 700; }

/* ---------- Nav: WhatsApp call button ----------
   Desktop/tablet: Forest outline pill with a Lime icon and the number. Phones: icon-only Lime circle. */
.nav-right-wrapper { gap: 1.25em; }
.tmj-nav-call {
  position: relative;
  z-index: 999; /* stays clickable above the open menu */
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  padding: 0.35em 1.1em 0.35em 0.35em;
  border: 2px solid var(--tmj-forest);
  border-radius: 999px;
  color: var(--tmj-forest);
  font-weight: 700;
  font-size: 1em;
  line-height: 1;
  white-space: nowrap;
  transition: background-color 0.2s, color 0.2s;
}
.tmj-nav-call_icon {
  display: grid;
  place-items: center;
  width: 2.25em;
  height: 2.25em;
  padding: 0.45em;
  border-radius: 50%;
  background: var(--tmj-lime);
  color: var(--tmj-forest);
  flex: none;
}
.tmj-nav-call:hover { background: var(--tmj-forest); color: var(--tmj-white); }
.tmj-nav-call:focus-visible { outline: 3px solid var(--tmj-lime); outline-offset: 3px; }
@media screen and (max-width: 767px) {
  .nav-right-wrapper { gap: 0.9em; }
  .tmj-nav-call { padding: 0; border: 0; }
  .tmj-nav-call_text { display: none; }
  .tmj-nav-call_icon { width: 44px; height: 44px; padding: 10px; }
  .tmj-nav-call:hover { background: none; }
}

/* ---------- Before & After sliders (src/components/BeforeAfter.astro) ---------- */
.tmj-ba-section { padding: 6em 0; }
.tmj-ba-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 2em;
  padding-bottom: 2.5em;
  margin-bottom: 3em;
  border-bottom: 1px dashed rgba(1, 63, 50, 0.3);
}
.tmj-ba-header .section-title { margin-bottom: 0.75em; }
.tmj-ba-header .heading-48 { margin: 0; }
.tmj-ba-intro { max-width: 24em; margin: 0; font-size: 1.25em; line-height: 1.45; color: var(--tmj-forest); }
.tmj-ba-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 28em), 1fr)); gap: 2em; }
.tmj-ba-grid.is-single { max-width: 60em; margin: 0 auto; grid-template-columns: 1fr; }
.tmj-ba { margin: 0; }
.tmj-ba_frame {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: var(--card-curves);
  background: var(--tmj-grey);
  touch-action: pan-y;
  user-select: none;
}
.tmj-ba_img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tmj-ba_before { clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.tmj-ba_label {
  position: absolute;
  top: 1em;
  padding: 0.45em 0.9em;
  border-radius: 999px;
  background: var(--tmj-forest);
  color: var(--tmj-white);
  font-size: 0.875em;
  font-weight: 700;
  letter-spacing: 0.04em;
  pointer-events: none;
}
.tmj-ba_label.is-before { left: 1em; }
.tmj-ba_label.is-after { right: 1em; background: var(--tmj-lime); color: var(--tmj-forest); }
.tmj-ba_handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--pos);
  width: 3px;
  margin-left: -1.5px;
  background: var(--tmj-white);
  pointer-events: none;
}
.tmj-ba_knob {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  place-items: center;
  width: 3.25em;
  height: 3.25em;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: var(--tmj-lime);
  color: var(--tmj-forest);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
}
/* The invisible range input covers the photo, so drag and tap work anywhere, plus keyboard arrows */
.tmj-ba_range {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: ew-resize;
  -webkit-appearance: none;
  appearance: none;
}
.tmj-ba_range:focus-visible ~ .tmj-ba_handle .tmj-ba_knob,
.tmj-ba_frame:has(.tmj-ba_range:focus-visible) .tmj-ba_knob { outline: 3px solid var(--tmj-forest); outline-offset: 3px; }
.tmj-ba_caption {
  margin-top: 1em;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  color: var(--tmj-forest);
}
@media screen and (max-width: 767px) {
  .tmj-ba-section { padding: 4em 0; }
  .tmj-ba-header { flex-direction: column; align-items: flex-start; gap: 1em; margin-bottom: 2em; padding-bottom: 1.5em; }
  .tmj-ba-intro { font-size: 1.05em; }
  .tmj-ba_frame { aspect-ratio: 4 / 3; }
}
