/* 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; }
}

/* =====================================================================
   Light / dark mode. The switch in the nav sets <html data-theme="dark">.
   Dark mode: Forest background, off-white text, Lime accents.
   Light mode is the default design above; nothing here applies to it.
   ===================================================================== */
:root { color-scheme: light; }
html[data-theme="dark"] {
  color-scheme: dark;
  --tmj-bg: #013F32;            /* page */
  --tmj-surface: #013F32;       /* was white panels */
  --tmj-surface-2: #0B4B3D;     /* was light grey cards */
  --tmj-ink: #FDFDFD;
  --tmj-ink-muted: rgba(253, 253, 253, 0.7);
  /* Webflow variables flipped */
  --dark: #FDFDFD;              /* body text */
  --dark-grey: rgba(253, 253, 253, 0.82);
  --blue: #FDFDFD;              /* was Forest headings and buttons: now off-white */
  --pure-white: #013F32;        /* was white: now Forest (button text, panels) */
  --light-green: #0B4B3D;       /* was a pale Lime tint: now the card green */
  --light-blue: rgba(253, 253, 253, 0.08);
  --waves-library-black: #FDFDFD;
}
html[data-theme="dark"] body,
html[data-theme="dark"] .page-wrapper { background-color: var(--tmj-bg); color: var(--tmj-ink); }

/* Logo: full colour in light mode, white in dark mode */
.tmj-logo-dark { display: none !important; }
html[data-theme="dark"] .tmj-logo-light { display: none !important; }
html[data-theme="dark"] .tmj-logo-dark { display: block !important; }

/* Inline icons drawn in Forest (stars, ticks) turn Lime */
html[data-theme="dark"] svg [fill="#013F32"] { fill: var(--tmj-lime); }
html[data-theme="dark"] svg [stroke="#013F32"] { stroke: var(--tmj-lime); }

/* Accent words: Lime text on dark, no highlighter */
html[data-theme="dark"] .text-color-green { color: var(--tmj-lime) !important; background: none; padding: 0; }
html[data-theme="dark"] .link,
html[data-theme="dark"] .link-4,
html[data-theme="dark"] .text-link { color: var(--tmj-white); }
html[data-theme="dark"] .link:hover,
html[data-theme="dark"] .link-4:hover,
html[data-theme="dark"] .text-link:hover { text-decoration-color: var(--tmj-white); }

/* Footer sits a shade darker so it still reads as a separate band */
html[data-theme="dark"] .section-footer,
html[data-theme="dark"] .privacy-policy-links-wrapper { background-color: #012A22; }

/* Nav call button and slider */
html[data-theme="dark"] .tmj-nav-call { border-color: var(--tmj-white); color: var(--tmj-white); }
html[data-theme="dark"] .tmj-nav-call:hover { background: var(--tmj-white); color: var(--tmj-forest); }
html[data-theme="dark"] .tmj-ba-header { border-bottom-color: rgba(253, 253, 253, 0.3); }
html[data-theme="dark"] .tmj-ba-intro,
html[data-theme="dark"] .tmj-ba_caption { color: var(--tmj-white); }
html[data-theme="dark"] .tmj-ba_label.is-before { background: var(--tmj-white); color: var(--tmj-forest); }

/* Form fields */
html[data-theme="dark"] input:not([type="submit"]):not([type="checkbox"]),
html[data-theme="dark"] select,
html[data-theme="dark"] textarea {
  background-color: #0B4B3D;
  color: var(--tmj-white);
  border-color: rgba(253, 253, 253, 0.35);
}
html[data-theme="dark"] ::placeholder { color: rgba(253, 253, 253, 0.55); }

/* ---------- The switch (nav) ---------- */
.tmj-theme-toggle {
  position: relative;
  z-index: 999;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 2px solid var(--tmj-forest);
  border-radius: 50%;
  background: transparent;
  color: var(--tmj-forest);
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s;
}
.tmj-theme-toggle:hover { background: var(--tmj-forest); color: var(--tmj-white); }
.tmj-theme-toggle:focus-visible { outline: 3px solid var(--tmj-lime); outline-offset: 3px; }
.tmj-theme-toggle svg { width: 20px; height: 20px; }
.tmj-theme-toggle .is-sun { display: none; }
html[data-theme="dark"] .tmj-theme-toggle { border-color: var(--tmj-white); color: var(--tmj-white); }
html[data-theme="dark"] .tmj-theme-toggle:hover { background: var(--tmj-white); color: var(--tmj-forest); }
html[data-theme="dark"] .tmj-theme-toggle .is-sun { display: block; }
html[data-theme="dark"] .tmj-theme-toggle .is-moon { display: none; }
@media (prefers-reduced-motion: no-preference) {
  html.tmj-theme-anim, html.tmj-theme-anim * { transition: background-color 0.3s, color 0.3s, border-color 0.3s !important; }
}

/* Webflow wrote some text and border colours inline (#131313): follow the theme in dark mode */
html[data-theme="dark"] [style*="color:rgb(19,19,19)"],
html[data-theme="dark"] [style*="color: rgb(19, 19, 19)"] { color: var(--tmj-white) !important; }
html[data-theme="dark"] [style*="border-color:rgb(19,19,19)"],
html[data-theme="dark"] [style*="border-color: rgb(19, 19, 19)"] { border-color: var(--tmj-white) !important; }
/* Image fades that went to light grey fade to Forest instead */
html[data-theme="dark"] .bg-gradient,
html[data-theme="dark"] .bg-gradient-top { background: linear-gradient(270deg, #013F32 4.56%, rgba(1, 63, 50, 0) 100%); }

/* Text on Lime fills stays Forest in dark mode (generated from the Webflow rules that use a Lime background) */
html[data-theme="dark"] .announcement-bar, html[data-theme="dark"] .announcement-bar *,
html[data-theme="dark"] .blog-tag, html[data-theme="dark"] .blog-tag *,
html[data-theme="dark"] .blog-tag-tile, html[data-theme="dark"] .blog-tag-tile *,
html[data-theme="dark"] .button, html[data-theme="dark"] .button *,
html[data-theme="dark"] .button-2, html[data-theme="dark"] .button-2 *,
html[data-theme="dark"] .button-secondary, html[data-theme="dark"] .button-secondary *,
html[data-theme="dark"] .green-button, html[data-theme="dark"] .green-button *,
html[data-theme="dark"] .hamburger_12_line.second, html[data-theme="dark"] .hamburger_12_line.second *,
html[data-theme="dark"] .hero-pill, html[data-theme="dark"] .hero-pill *,
html[data-theme="dark"] .icon-arrow, html[data-theme="dark"] .icon-arrow *,
html[data-theme="dark"] .line-faq, html[data-theme="dark"] .line-faq *,
html[data-theme="dark"] .line-seperator, html[data-theme="dark"] .line-seperator *,
html[data-theme="dark"] .locations-feature-pill, html[data-theme="dark"] .locations-feature-pill *,
html[data-theme="dark"] .nav-button, html[data-theme="dark"] .nav-button *,
html[data-theme="dark"] .secondary-button, html[data-theme="dark"] .secondary-button *,
html[data-theme="dark"] .slider-button, html[data-theme="dark"] .slider-button *,
html[data-theme="dark"] .waitlist-form_submit, html[data-theme="dark"] .waitlist-form_submit * { color: var(--tmj-forest) !important; }
html[data-theme="dark"] .text-color-green .text-color-green { color: var(--tmj-forest) !important; }

/* Main buttons turn white in dark mode, so their label turns Forest */
html[data-theme="dark"] .button-text.main,
html[data-theme="dark"] .primary-button,
html[data-theme="dark"] input[type="submit"] { color: var(--tmj-forest) !important; }

/* Testimonial slides had their own near-black text colour */
html[data-theme="dark"] .splide__slide { color: var(--tmj-white); }
