/* ============ Eco Chrome — sitewide nav/footer/floating UI ============
   Designed to coexist with Tailwind-based page bodies.
   Only scopes nav/footer/sticky-bar/FAB/dark-toggle.
   ===================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@500;600;700;800;900&family=DM+Sans:wght@400;500;600&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  --eco-bg: #f0f5ef;
  --eco-paper: #fafdf9;
  --eco-ink: #0f1f12;
  --eco-ink-soft: #2c3e2f;
  --eco-muted: #5a7260;
  --eco-rule: #c5d8c9;
  --eco-green-deep: #0b3d1a;
  --eco-green: #146b2f;
  --eco-green-mid: #1d9a45;
  --eco-green-bright: #2dd25b;
  --eco-green-glow: #5ef88a;
  --eco-r-full: 999px;
  --eco-r-md: 16px;
  --eco-r-lg: 24px;
  --eco-r-xl: 40px;
  --eco-heading: 'Outfit', system-ui, -apple-system, sans-serif;
  --eco-body: 'DM Sans', system-ui, -apple-system, sans-serif;
  --eco-mono: 'JetBrains Mono', monospace;
}

[data-theme="dark"] {
  --eco-bg: #0a1810;
  --eco-paper: #0f2016;
  --eco-ink: #e8f0ea;
  --eco-ink-soft: #b8c8bb;
  --eco-muted: #7a9480;
  --eco-rule: #1c3524;
}

/* ============ NAV ============ */
.eco-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(240,245,239,0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--eco-rule);
  font-family: var(--eco-body);
}
[data-theme="dark"] .eco-nav { background: rgba(10,24,16,0.92); border-bottom-color: #1c3524; }

.eco-nav-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 14px 28px;
  max-width: 1340px;
  margin: 0 auto;
}
.eco-nav-logo { height: 60px; width: auto; display: block; padding: 4px 8px; border-radius: 8px; background: transparent; transition: background 0.2s; }
[data-theme="dark"] .eco-nav-logo {
  background: transparent;
  padding: 0;
  border-radius: 0;
  content: url('assets/img/CompRecyc_Logo-Dark.png');
}

/* ============ UNIVERSAL ENHANCEMENTS ============ */

/* Skip-to-content link (a11y) — visible only on keyboard focus */
.eco-skip-link {
  position: fixed;
  top: 12px; left: 12px;
  z-index: 200;
  padding: 10px 18px;
  background: var(--eco-green-deep, #0b3d1a);
  color: #fff;
  font-family: var(--eco-heading, 'Outfit', sans-serif);
  font-weight: 600;
  font-size: 14px;
  border-radius: 999px;
  text-decoration: none;
  transform: translateY(-150%);
  transition: transform .15s ease;
  box-shadow: 0 4px 14px rgba(0,0,0,0.25);
}
.eco-skip-link:focus,
.eco-skip-link:focus-visible {
  transform: translateY(0);
  outline: 2px solid var(--eco-green-glow, #5ef88a);
  outline-offset: 2px;
}

/* Cookie consent banner */
.eco-cookie-banner {
  position: fixed;
  left: 16px; right: 16px; bottom: 16px;
  z-index: 95;
  background: rgba(11,61,26,0.96);
  backdrop-filter: blur(10px);
  color: #fff;
  border: 1px solid rgba(94,248,138,0.22);
  border-radius: 14px;
  box-shadow: 0 12px 32px rgba(0,0,0,0.30);
  font-family: var(--eco-body, 'DM Sans', sans-serif);
  animation: eco-cookie-in .35s cubic-bezier(0.34,1.56,0.64,1);
  max-width: 720px;
  margin: 0 auto;
}
@keyframes eco-cookie-in { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
.eco-cookie-banner.is-dismissed { opacity: 0; transform: translateY(20px); transition: all .25s; }
.eco-cookie-inner { padding: 14px 18px; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.eco-cookie-text { flex: 1 1 280px; font-size: 13.5px; line-height: 1.45; color: rgba(255,255,255,0.88); }
.eco-cookie-text strong { color: #fff; font-weight: 600; }
.eco-cookie-text a { color: var(--eco-green-glow, #5ef88a); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.eco-cookie-actions { flex-shrink: 0; }
.eco-cookie-ok {
  background: var(--eco-green-bright, #2dd25b);
  color: var(--eco-green-deep, #0b3d1a);
  border: none;
  font-family: var(--eco-heading, 'Outfit', sans-serif);
  font-weight: 700;
  font-size: 13.5px;
  padding: 10px 22px;
  border-radius: 999px;
  cursor: pointer;
  transition: all .15s;
}
.eco-cookie-ok:hover { background: var(--eco-green-glow, #5ef88a); transform: translateY(-1px); }
.eco-cookie-ok:active { transform: translateY(0); }
@media (max-width: 520px) {
  .eco-cookie-banner { left: 8px; right: 8px; bottom: 8px; border-radius: 12px; }
  .eco-cookie-inner { padding: 12px 14px; gap: 10px; }
  .eco-cookie-text { font-size: 13px; }
}

/* Click-to-text desktop modal */
.eco-sms-modal {
  position: fixed; inset: 0;
  z-index: 110;
  background: rgba(11,31,18,0.55);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  animation: eco-sms-in .2s ease;
}
@keyframes eco-sms-in { from { opacity: 0; } to { opacity: 1; } }
.eco-sms-modal.is-closing { opacity: 0; transition: opacity .2s; }
.eco-sms-card {
  position: relative;
  background: #fff;
  border-radius: 18px;
  padding: 36px 28px 24px;
  max-width: 420px;
  width: 100%;
  text-align: center;
  box-shadow: 0 28px 60px rgba(0,0,0,0.25);
  font-family: var(--eco-body, 'DM Sans', sans-serif);
  animation: eco-sms-pop .25s cubic-bezier(0.34,1.56,0.64,1);
}
@keyframes eco-sms-pop { from { opacity: 0; transform: scale(.92) translateY(10px); } to { opacity: 1; transform: scale(1) translateY(0); } }
.eco-sms-close {
  position: absolute; top: 10px; right: 12px;
  background: transparent; border: none;
  font-size: 26px; line-height: 1;
  color: #94a3b8; cursor: pointer;
  width: 32px; height: 32px; border-radius: 50%;
  transition: background-color .15s, color .15s;
}
.eco-sms-close:hover { background: #f1f5f9; color: #0f172a; }
.eco-sms-icon { font-size: 44px; margin-bottom: 8px; }
.eco-sms-card h3 {
  font-family: var(--eco-heading, 'Outfit', sans-serif);
  font-size: 22px; font-weight: 700; color: var(--eco-green-deep, #0b3d1a);
  margin: 8px 0 10px; letter-spacing: -0.01em;
}
.eco-sms-card p { color: var(--eco-ink-soft, #2c3e2f); font-size: 15px; line-height: 1.55; margin: 0 0 20px; }
.eco-sms-card p strong { color: var(--eco-ink, #0f1f12); font-weight: 700; }
.eco-sms-copy {
  display: block; width: 100%;
  background: var(--eco-green, #146b2f);
  color: #fff;
  border: none;
  font-family: var(--eco-heading, 'Outfit', sans-serif);
  font-weight: 600; font-size: 15px;
  padding: 12px 20px; border-radius: 999px;
  cursor: pointer; transition: all .18s;
}
.eco-sms-copy:hover { background: var(--eco-green-mid, #1d9a45); transform: translateY(-1px); }
.eco-sms-call {
  display: block;
  margin-top: 12px;
  font-size: 14px; color: var(--eco-green, #146b2f); font-weight: 600;
  text-decoration: underline; text-underline-offset: 3px;
}
[data-theme="dark"] .eco-sms-card { background: #0f2016; }
[data-theme="dark"] .eco-sms-card h3 { color: #5ef88a; }
[data-theme="dark"] .eco-sms-card p { color: #b8c8bb; }
[data-theme="dark"] .eco-sms-card p strong { color: #e8f0ea; }
[data-theme="dark"] .eco-sms-close { color: #94a3b8; }
[data-theme="dark"] .eco-sms-close:hover { background: #1c3524; color: #fff; }
[data-theme="dark"] .eco-sms-call { color: #5ef88a; }

/* Shared footer brand logo — always uses the dark-mode logo on a transparent
   background, since the eco footer is dark green in both themes. */
.footer-brand-logo {
  height: 56px;
  width: auto;
  background: transparent;
  padding: 0;
  border-radius: 0;
  margin-bottom: 4px;
  content: url('assets/img/CompRecyc_Logo-Dark.png');
}
.eco-nav-links { display: flex; gap: 4px; margin-left: auto; }
.eco-nav-links a {
  padding: 8px 16px;
  border-radius: var(--eco-r-full);
  font-size: 14px;
  font-weight: 500;
  color: var(--eco-ink-soft);
  text-decoration: none;
  transition: all 0.2s;
  white-space: nowrap;
}
.eco-nav-links a:hover { background: rgba(29,154,69,0.1); color: var(--eco-green); }
[data-theme="dark"] .eco-nav-links a { color: #b8c8bb; }
[data-theme="dark"] .eco-nav-links a:hover { background: rgba(45,210,91,0.1); color: var(--eco-green-glow); }

.eco-nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: var(--eco-green);
  color: white;
  border-radius: var(--eco-r-full);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s;
  box-shadow: 0 2px 12px rgba(20,107,47,0.25);
  white-space: nowrap;
  font-family: var(--eco-heading);
}
.eco-nav-cta:hover { background: var(--eco-green-mid); transform: translateY(-1px); box-shadow: 0 6px 20px rgba(20,107,47,0.35); color: white; }
.eco-pulse-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--eco-green-bright);
  box-shadow: 0 0 0 3px rgba(45,210,91,0.3);
  animation: ecoPulse 2s infinite;
}
@keyframes ecoPulse { 0%,100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.3); opacity: 0.6; } }

.eco-nav-burger {
  display: none;
  background: transparent;
  border: 1px solid var(--eco-rule);
  border-radius: 10px;
  width: 44px;
  height: 44px;
  padding: 0;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  margin-left: auto;
  transition: background 0.2s, border-color 0.2s;
}
.eco-nav-burger:hover { background: rgba(20,107,47,0.06); border-color: var(--eco-green); }
.eco-nav-burger span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--eco-ink);
  border-radius: 2px;
  transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
}
.eco-nav-burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.eco-nav-burger.is-open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.eco-nav-burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
[data-theme="dark"] .eco-nav-burger { border-color: #1c3524; }
[data-theme="dark"] .eco-nav-burger span { background: #e8f0ea; }

.eco-mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 99;
  background: rgba(11,61,26,0.5);
  backdrop-filter: blur(4px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s, visibility 0s linear 0.25s;
}
.eco-mobile-menu.is-open { opacity: 1; visibility: visible; pointer-events: auto; transition: opacity 0.25s, visibility 0s; }
.eco-mobile-menu-inner {
  position: absolute;
  top: 76px;
  left: 16px;
  right: 16px;
  background: white;
  border-radius: var(--eco-r-xl);
  border: 1px solid var(--eco-rule);
  padding: 16px;
  box-shadow: 0 24px 60px rgba(11,61,26,0.25);
  transform: translateY(-12px);
  opacity: 0;
  transition: transform 0.3s cubic-bezier(0.34,1.56,0.64,1), opacity 0.25s;
  max-height: calc(100vh - 92px);
  overflow-y: auto;
}
.eco-mobile-menu.is-open .eco-mobile-menu-inner { transform: translateY(0); opacity: 1; }
.eco-mobile-menu-inner > a {
  display: block;
  padding: 14px 18px;
  font-family: var(--eco-heading);
  font-size: 17px;
  font-weight: 600;
  color: var(--eco-ink);
  text-decoration: none;
  border-radius: 12px;
  transition: background 0.15s, color 0.15s;
}
.eco-mobile-menu-inner > a:hover,
.eco-mobile-menu-inner > a:active { background: rgba(20,107,47,0.08); color: var(--eco-green); }
.eco-mobile-menu-cta {
  margin-top: 12px;
  padding-top: 16px;
  border-top: 1px solid var(--eco-rule);
}
[data-theme="dark"] .eco-mobile-menu { background: rgba(0,0,0,0.6); }
[data-theme="dark"] .eco-mobile-menu-inner { background: #0f2016; border-color: #1c3524; }
[data-theme="dark"] .eco-mobile-menu-inner > a { color: #e8f0ea; }
[data-theme="dark"] .eco-mobile-menu-inner > a:hover { background: rgba(45,210,91,0.1); color: var(--eco-green-glow); }
[data-theme="dark"] .eco-mobile-menu-cta { border-top-color: #1c3524; }

@media (max-width: 860px) {
  .eco-nav-links { display: none !important; }
  .eco-nav-cta { display: none !important; }
  .eco-nav-burger { display: flex !important; }
  .eco-nav-logo { height: 48px; }
  .eco-nav-inner { padding: 12px 18px; }
}

/* ============ ECO BUTTONS (callable as utility) ============ */
.eco-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: var(--eco-r-full);
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  transition: all 0.25s cubic-bezier(0.34,1.56,0.64,1);
  cursor: pointer;
  white-space: nowrap;
  font-family: var(--eco-heading);
  letter-spacing: -0.01em;
  border: 0;
}
.eco-btn-green { background: var(--eco-green); color: white !important; box-shadow: 0 4px 16px rgba(20,107,47,0.3); }
.eco-btn-green:hover { background: var(--eco-green-mid); transform: translateY(-3px); box-shadow: 0 12px 28px rgba(20,107,47,0.35); }
.eco-btn-bright { background: var(--eco-green-bright); color: var(--eco-green-deep) !important; box-shadow: 0 4px 16px rgba(45,210,91,0.3); }
.eco-btn-bright:hover { background: var(--eco-green-glow); transform: translateY(-3px); box-shadow: 0 12px 28px rgba(45,210,91,0.4); }
/* Use a theme-aware variable so dark mode auto-uses the bright eco-green-glow.
   Avoids specificity battles with later rules. */
:root { --eco-btn-outline-fg: var(--eco-green); --eco-btn-outline-fg-hover: white; --eco-btn-outline-bg-hover: var(--eco-green); }
[data-theme="dark"] { --eco-btn-outline-fg: var(--eco-green-glow); --eco-btn-outline-fg-hover: var(--eco-green-deep); --eco-btn-outline-bg-hover: var(--eco-green-glow); }
.eco-btn-outline { background: transparent; color: var(--eco-btn-outline-fg) !important; border: 2px solid var(--eco-btn-outline-fg); }
.eco-btn-outline:hover { background: var(--eco-btn-outline-bg-hover); color: var(--eco-btn-outline-fg-hover) !important; }
.eco-btn-white { background: white; color: var(--eco-green-deep) !important; box-shadow: 0 4px 16px rgba(0,0,0,0.1); }
.eco-btn-white:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(0,0,0,0.15); }

/* ============ FOOTER ============ */
/* Footer stays dark in both light and dark modes (intentionally hardcoded) */
.eco-footer {
  background: #0f1f12;
  color: rgba(255,255,255,0.85);
  padding: 80px 0 40px;
  font-family: var(--eco-body);
}
/* Force the footer logo to have a clear white box around it (the logo has dark
   text that needs a light backdrop to be readable). Using high specificity and
   !important to win over any legacy `img { background-color: #f8fafc }` rule. */
/* Footer logo in eco/legacy footers — always show the dark-mode logo with
   no box (eco footer is dark green in both themes). */
.eco-footer .eco-footer-grid > div > img,
.eco-footer img.eco-footer-logo,
.footer .footer-grid > div > img,
.footer img.footer-logo,
img.footer-brand-logo {
  background: transparent !important;
  background-color: transparent !important;
  padding: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  display: inline-block !important;
  height: 56px !important;
  width: auto !important;
  margin-bottom: 16px !important;
  content: url('assets/img/CompRecyc_Logo-Dark.png');
}
.eco-footer-wrap { max-width: 1340px; margin: 0 auto; padding: 0 28px; }
.eco-footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 56px;
}
.eco-footer h5 {
  font-family: var(--eco-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--eco-green-bright);
  font-weight: 500;
  margin: 0 0 20px;
}
.eco-footer a { display: block; font-size: 14px; padding: 4px 0; margin: 0; color: rgba(255,255,255,0.65); transition: color 0.2s; text-decoration: none; line-height: 1.5; }
.eco-footer a:hover { color: var(--eco-green-bright); }
.eco-footer h5 + a { margin-top: 0; }
.eco-footer p, .eco-footer div, .eco-footer span { font-family: var(--eco-body); }
.eco-footer-brand-text { font-size: 15px; color: rgba(255,255,255,0.5); line-height: 1.55; max-width: 320px; margin-top: 16px; }
.eco-footer-contact-info { display: flex; flex-direction: column; gap: 12px; margin-top: 20px; font-size: 14px; }
.eco-footer-contact-info > div { color: rgba(255,255,255,0.65); }
.eco-footer-contact-info strong { color: rgba(255,255,255,0.9); display: block; font-size: 12px; margin-bottom: 2px; font-weight: 600; }
.eco-footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 13px;
  color: rgba(255,255,255,0.35);
}
@media (max-width: 860px) { .eco-footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .eco-footer-grid { grid-template-columns: 1fr; } }

/* ============ STICKY BAR ============ */
.eco-sticky-bar {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 80;
  background: var(--eco-green-deep);
  color: white;
  border-radius: var(--eco-r-full);
  padding: 8px 8px 8px 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 14px;
  box-shadow: 0 16px 40px rgba(11,61,26,0.4);
  border: 1px solid rgba(45,210,91,0.2);
  font-family: var(--eco-body);
}
.eco-sticky-bar .eco-bar-label { display: flex; align-items: center; gap: 10px; font-weight: 500; }
.eco-sticky-bar .eco-pulse-dot { box-shadow: none; }
[data-theme="dark"] .eco-sticky-bar { background: #0f2016; border-color: #1c3524; }
/* Sticky-bar buttons override the default .eco-btn (14px 26px / 15px) to fit the
   compact bar at the bottom of the viewport. */
.eco-sticky-bar-btn { padding: 10px 18px !important; font-size: 13px !important; }
/* Hide the "Free Drop-off · Open Mon-Sat" label on narrower screens so the
   two CTAs have room to breathe. */
@media (max-width: 1031px) {
  .eco-sticky-bar .eco-bar-label { display: none; }
}
@media (max-width: 560px) {
  /* Both CTAs visible on mobile — tighten gap + padding so the bar still fits comfortably. */
  .eco-sticky-bar { padding: 6px; gap: 8px; }
  .eco-sticky-bar-btn { padding: 8px 14px !important; font-size: 12px !important; }
}

/* ============ TEXT US FAB ============ */
.eco-fab {
  position: fixed;
  bottom: 76px;
  right: 24px;
  z-index: 70;
  background: var(--eco-green);
  color: white;
  height: 44px;
  border-radius: var(--eco-r-full);
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 18px 0 14px;
  box-shadow: 0 8px 24px rgba(20,107,47,0.28);
  transition: all 0.25s cubic-bezier(0.34,1.56,0.64,1);
  text-decoration: none;
  font-family: var(--eco-heading);
  font-weight: 600;
  font-size: 14px;
}
.eco-fab:hover { transform: translateY(-2px) scale(1.03); box-shadow: 0 14px 32px rgba(20,107,47,0.4); background: var(--eco-green-mid); color: white; }
@media (max-width: 560px) {
  /* Sit just above the dark-mode toggle (bottom: 20px, height 36px ⇒ top at 56px).
     right: 16px aligns FAB center with dark-toggle center (both at 38px from edge). */
  .eco-fab { bottom: 68px; right: 16px; height: 44px; padding: 0; width: 44px; justify-content: center; }
  .eco-fab .eco-fab-label { display: none; }
}

/* ============ CALL US FAB — primary always-on CTA, stacked above Text FAB ============ */
.eco-call-fab {
  position: fixed;
  bottom: 132px;   /* sits above .eco-fab (bottom 76 + height 44 + 12 gap) */
  right: 24px;
  z-index: 71;
  background: var(--eco-green-deep, #0b3d1a);
  color: white;
  height: 44px;
  border-radius: var(--eco-r-full);
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 18px 0 14px;
  box-shadow: 0 8px 24px rgba(20,107,47,0.32);
  transition: all 0.25s cubic-bezier(0.34,1.56,0.64,1);
  text-decoration: none;
  font-family: var(--eco-heading);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: -0.01em;
}
.eco-call-fab:hover { transform: translateY(-2px) scale(1.03); box-shadow: 0 14px 32px rgba(20,107,47,0.45); background: var(--eco-green, #146b2f); color: white; }
.eco-call-fab .eco-call-fab-pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--eco-green-bright, #5ef88a); box-shadow: 0 0 0 3px rgba(94,248,138,0.3); animation: eco-call-fab-pulse 1.8s infinite; flex-shrink: 0; }
@keyframes eco-call-fab-pulse { 0%,100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.3); opacity: 0.6; } }
@media (max-width: 560px) {
  /* Mobile: stack directly above the Text FAB. Text FAB bottom 68 + 44 + 12 gap = 124. */
  .eco-call-fab { bottom: 124px; right: 16px; height: 44px; padding: 0; width: 44px; justify-content: center; }
  .eco-call-fab .eco-call-fab-label { display: none; }
  .eco-call-fab .eco-call-fab-pulse { display: none; }
}
[data-theme="dark"] .eco-call-fab { background: var(--eco-green, #146b2f); }
[data-theme="dark"] .eco-call-fab:hover { background: var(--eco-green-mid, #1d9a45); }

/* ============ DARK TOGGLE ============ */
.eco-dark-toggle {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 75;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: white;
  border: 1px solid var(--eco-rule);
  color: var(--eco-ink);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(11,61,26,0.08);
  transition: all 0.25s;
}
.eco-dark-toggle:hover { transform: scale(1.08); box-shadow: 0 8px 20px rgba(11,61,26,0.14); }
[data-theme="dark"] .eco-dark-toggle { background: #1c3524; border-color: #2a4a33; color: #e8f0ea; }
@media (max-width: 560px) {
  /* Lift above the Call/Text FAB stack so it doesn't overlap the sticky bar at the bottom edge. */
  .eco-dark-toggle { bottom: 180px; right: 18px; width: 36px; height: 36px; }
}

/* ====================================================================
   ECO POLISH LAYER — applies eco fonts/colors/animations sitewide
   so chrome-injected pages match index.html's look-and-feel.
   ==================================================================== */

/* --- Typography: replace Inter with eco font stack --- */
body.eco-chromed,
body.eco-chromed input,
body.eco-chromed select,
body.eco-chromed textarea,
body.eco-chromed button {
  font-family: var(--eco-body), 'DM Sans', system-ui, -apple-system, sans-serif !important;
  -webkit-font-smoothing: antialiased;
}
body.eco-chromed h1,
body.eco-chromed h2,
body.eco-chromed h3,
body.eco-chromed h4 {
  font-family: var(--eco-heading), 'Outfit', system-ui, sans-serif !important;
  letter-spacing: -0.025em !important;
  text-wrap: balance;
}
body.eco-chromed h1 { letter-spacing: -0.035em !important; line-height: 1.05 !important; }
body.eco-chromed h2 { line-height: 1.1 !important; }

/* --- Page hero: eco gradient + a hint of motion --- */
body.eco-chromed .page-hero,
body.eco-chromed section.hero-gradient {
  background: linear-gradient(165deg, #f0f5ef 0%, #e6f2e8 45%, #d8ead9 100%) !important;
  position: relative;
  overflow: hidden;
}
body.eco-chromed .page-hero::before,
body.eco-chromed section.hero-gradient::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 15% 80%, rgba(45,210,91,0.18) 0%, transparent 70%),
    radial-gradient(ellipse 50% 60% at 85% 15%, rgba(20,107,47,0.12) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}
body.eco-chromed .page-hero > *,
body.eco-chromed section.hero-gradient > * { position: relative; z-index: 1; }
[data-theme="dark"] body.eco-chromed .page-hero,
[data-theme="dark"] body.eco-chromed section.hero-gradient {
  background: linear-gradient(165deg, #0a1810 0%, #0d2517 45%, #0f3020 100%) !important;
  color: #e8f0ea;
}

/* --- Buttons: skin .btn-primary / .btn-ghost / .btn-secondary as eco buttons --- */
body.eco-chromed .btn-primary,
body.eco-chromed a.btn-primary,
body.eco-chromed button.btn-primary {
  background: var(--eco-green) !important;
  background-image: none !important;
  color: white !important;
  border: 0 !important;
  border-radius: var(--eco-r-full) !important;
  font-family: var(--eco-heading) !important;
  font-weight: 600 !important;
  letter-spacing: -0.01em !important;
  padding: 12px 22px !important;
  box-shadow: 0 4px 16px rgba(20,107,47,0.3) !important;
  transition: all 0.25s cubic-bezier(0.34,1.56,0.64,1) !important;
}
body.eco-chromed .btn-primary:hover {
  background: var(--eco-green-mid) !important;
  transform: translateY(-3px) !important;
  box-shadow: 0 12px 28px rgba(20,107,47,0.35) !important;
  filter: none !important;
}
/* Use theme-aware variable so dark mode auto-uses bright eco-green-glow */
:root { --eco-btn-ghost-fg: var(--eco-green); --eco-btn-ghost-fg-hover: white; --eco-btn-ghost-bg-hover: var(--eco-green); }
[data-theme="dark"] { --eco-btn-ghost-fg: var(--eco-green-glow); --eco-btn-ghost-fg-hover: var(--eco-green-deep); --eco-btn-ghost-bg-hover: var(--eco-green-glow); }
body.eco-chromed .btn-ghost,
body.eco-chromed a.btn-ghost,
body.eco-chromed button.btn-ghost {
  background: transparent !important;
  color: var(--eco-btn-ghost-fg) !important;
  border: 2px solid var(--eco-btn-ghost-fg) !important;
  border-radius: var(--eco-r-full) !important;
  font-family: var(--eco-heading) !important;
  font-weight: 600 !important;
  padding: 10px 20px !important;
  transition: all 0.25s cubic-bezier(0.34,1.56,0.64,1) !important;
}
body.eco-chromed .btn-ghost:hover {
  background: var(--eco-btn-ghost-bg-hover) !important;
  color: var(--eco-btn-ghost-fg-hover) !important;
}

/* --- Free-recycling badge → eco bright pill --- */
body.eco-chromed .free-badge {
  background: linear-gradient(135deg, var(--eco-green), var(--eco-green-mid)) !important;
  color: white !important;
  border-radius: var(--eco-r-full) !important;
  padding: 8px 18px !important;
  font-family: var(--eco-heading) !important;
  font-weight: 700 !important;
  letter-spacing: 0.02em !important;
  font-size: 13px !important;
  text-transform: uppercase !important;
  box-shadow: 0 4px 14px rgba(20,107,47,0.28) !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
}

/* --- Step cards: eco-styled hover lift --- */
body.eco-chromed .step-card {
  border-radius: var(--eco-r-lg) !important;
  border: 1px solid var(--eco-rule) !important;
  transition: all 0.3s cubic-bezier(0.34,1.56,0.64,1) !important;
  overflow: hidden !important;
}
body.eco-chromed .step-card:hover {
  transform: translateY(-8px) !important;
  border-color: var(--eco-green-mid) !important;
  box-shadow: 0 24px 48px -16px rgba(11,61,26,0.2) !important;
}
body.eco-chromed .step-card .dropoff-img,
body.eco-chromed .step-card img { transition: transform 0.4s !important; }
body.eco-chromed .step-card:hover .dropoff-img,
body.eco-chromed .step-card:hover img { transform: scale(1.05) !important; }
body.eco-chromed .step-number {
  background: var(--eco-green) !important;
  background-image: none !important;
  color: white !important;
  border-radius: var(--eco-r-full) !important;
  font-family: var(--eco-heading) !important;
  font-weight: 800 !important;
  box-shadow: 0 4px 12px rgba(20,107,47,0.3) !important;
}

/* --- Item pills (category links) → eco style with green hover ---
   Define ALL layout properties here. The original .item-pill styles
   lived only in index.html's inline <style> block, so other pages had
   no padding/display rules and pills rendered as 44px-tall ovals. */
body.eco-chromed .item-pill {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  padding: 8px 16px !important;
  min-height: 0 !important;          /* override styles.css mobile rule that forces 44px */
  background: white !important;
  border: 1px solid var(--eco-rule) !important;
  color: var(--eco-ink) !important;
  border-radius: var(--eco-r-full) !important;
  font-family: var(--eco-body) !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  line-height: 1.2 !important;
  text-decoration: none !important;
  white-space: nowrap !important;    /* don't break "Lee's Summit" or "Kansas City, MO" mid-pill */
  transition: all 0.25s cubic-bezier(0.34,1.56,0.64,1) !important;
}
body.eco-chromed .item-pill:hover {
  background: var(--eco-green) !important;
  color: white !important;
  border-color: var(--eco-green) !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 20px rgba(20,107,47,0.28) !important;
}
[data-theme="dark"] body.eco-chromed .item-pill {
  background: #0f2016 !important;
  border-color: #1c3524 !important;
  color: #e8f0ea !important;
}
/* If item-pills sit in a non-wrapping flex row, force the row to wrap on narrow screens. */
body.eco-chromed .flex:has(> .item-pill),
body.eco-chromed div.flex:has(> a.item-pill) {
  flex-wrap: wrap !important;
  gap: 8px !important;
}
body.eco-chromed .item-pill:hover {
  background: var(--eco-green) !important;
  color: white !important;
  border-color: var(--eco-green) !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 20px rgba(20,107,47,0.28) !important;
}
[data-theme="dark"] body.eco-chromed .item-pill {
  background: #0f2016 !important;
  border-color: #1c3524 !important;
  color: #e8f0ea !important;
}

/* --- Generic card hover lift on common Tailwind card patterns --- */
body.eco-chromed [class*="rounded-2xl"][class*="border"]:not(.eco-nav-cta):not(.eco-fab):not(.eco-btn) {
  transition: transform 0.3s cubic-bezier(0.34,1.56,0.64,1), box-shadow 0.3s, border-color 0.3s !important;
}
body.eco-chromed a[class*="rounded-2xl"][class*="border"]:hover,
body.eco-chromed div[class*="rounded-2xl"][class*="border"]:hover {
  transform: translateY(-4px) !important;
  border-color: var(--eco-green-mid) !important;
  box-shadow: 0 16px 32px -12px rgba(11,61,26,0.18) !important;
}

/* --- Color palette overrides: nudge Tailwind emerald → eco green --- */
body.eco-chromed .text-emerald-600,
body.eco-chromed .text-emerald-700,
body.eco-chromed .text-emerald-800 { color: var(--eco-green) !important; }
body.eco-chromed .bg-emerald-50 { background-color: var(--eco-bg) !important; }
body.eco-chromed .bg-emerald-600 { background-color: var(--eco-green) !important; }
body.eco-chromed .bg-emerald-700 { background-color: var(--eco-green-deep) !important; }
body.eco-chromed .border-emerald-100,
body.eco-chromed .border-emerald-200 { border-color: var(--eco-rule) !important; }

/* --- Pulse animation for star ratings + accents --- */
body.eco-chromed .text-amber-500,
body.eco-chromed .stars-row .text-amber-500 { color: #e8a830 !important; }

/* --- Section bg-slate-* / dark trust bars: align with eco palette --- */
body.eco-chromed section.bg-slate-900,
body.eco-chromed .bg-slate-900 {
  background-color: var(--eco-green-deep) !important;
}
/* In dark mode the page bg is already very dark green, so .bg-slate-900 buttons
   blend in. Give them a visible accent + outline so they stand out. */
[data-theme="dark"] body.eco-chromed a.bg-slate-900,
[data-theme="dark"] body.eco-chromed button.bg-slate-900 {
  background-color: var(--eco-green-mid) !important;
  border: 1px solid var(--eco-green-glow) !important;
  color: white !important;
}
[data-theme="dark"] body.eco-chromed a.bg-slate-900:hover,
[data-theme="dark"] body.eco-chromed button.bg-slate-900:hover {
  background-color: var(--eco-green-bright) !important;
}
/* For dark BG sections (not buttons), keep slate-900 → green-deep */
[data-theme="dark"] body.eco-chromed section.bg-slate-900 { background-color: #061d0e !important; }
body.eco-chromed .text-emerald-300 { color: var(--eco-green-bright) !important; }

/* --- Reveal animation: subtle fade-up like the homepage hero --- */
@keyframes ecoFadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
body.eco-chromed [data-reveal] {
  animation: ecoFadeUp 0.7s cubic-bezier(0.34,1.56,0.64,1) both !important;
  opacity: 1 !important;
}
body.eco-chromed [data-reveal][data-reveal-delay="1"] { animation-delay: 0.1s !important; }
body.eco-chromed [data-reveal][data-reveal-delay="2"] { animation-delay: 0.2s !important; }
body.eco-chromed [data-reveal][data-reveal-delay="3"] { animation-delay: 0.3s !important; }
body.eco-chromed [data-reveal][data-reveal-delay="4"] { animation-delay: 0.4s !important; }

/* --- Page-hero h1 typography in eco style ---
   styles.css uses `background-clip: text` to render hero h1s as a dark-green
   gradient — invisible on dark backgrounds. Override the gradient in dark
   mode AND fall back to a solid bright green color via text-fill-color. */
body.eco-chromed .page-hero h1,
body.eco-chromed section.hero-gradient h1,
body.eco-chromed .sp-h1 {
  font-family: var(--eco-heading) !important;
  font-weight: 900 !important;
  letter-spacing: -0.04em !important;
  line-height: 1 !important;
  font-size: clamp(40px, 5.5vw, 76px) !important;
}
[data-theme="dark"] body.eco-chromed .page-hero h1,
[data-theme="dark"] body.eco-chromed section.hero-gradient h1,
[data-theme="dark"] body.eco-chromed .hero-gradient h1,
[data-theme="dark"] body.eco-chromed .sp-h1,
[data-theme="dark"] .page-hero h1,
[data-theme="dark"] .hero-gradient h1,
[data-theme="dark"] .sp-h1 {
  background: linear-gradient(135deg, #5ef88a 0%, #2dd25b 50%, #5ef88a 100%) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  color: transparent !important;
}

/* --- Eyebrow / section-tag look on legacy .eyebrow elements --- */
body.eco-chromed .eyebrow {
  font-family: var(--eco-mono) !important;
  font-weight: 500 !important;
  letter-spacing: 0.1em !important;
  text-transform: uppercase !important;
  color: var(--eco-green) !important;
  background: rgba(29,154,69,0.1) !important;
  border: 1px solid rgba(29,154,69,0.2) !important;
  padding: 6px 14px !important;
  border-radius: var(--eco-r-full) !important;
  font-size: 12px !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
}

/* --- Smooth scroll page-wide --- */
body.eco-chromed { scroll-behavior: smooth; }

/* --- Missing Tailwind utilities ---
   The compiled tailwind-compiled.css doesn't include `max-w-5xl` even though
   several pages reference it. Without this class, those sections render at
   full viewport width instead of being constrained. Add it back. */
.max-w-5xl { max-width: 64rem; }
.max-w-6xl { max-width: 72rem; }

/* --- Dark-mode legibility for legacy Tailwind text colors.
   Pages use text-slate-900/800/700/600/500 and text-gray-* / text-zinc-*
   for headings and body copy. In light mode these are correct dark text;
   in dark mode they become unreadable on the dark background. Flip them. */
[data-theme="dark"] body.eco-chromed { color: #e8f0ea; }
[data-theme="dark"] body.eco-chromed .text-slate-900,
[data-theme="dark"] body.eco-chromed .text-slate-800,
[data-theme="dark"] body.eco-chromed .text-gray-900,
[data-theme="dark"] body.eco-chromed .text-gray-800,
[data-theme="dark"] body.eco-chromed .text-zinc-900,
[data-theme="dark"] body.eco-chromed .text-zinc-800,
[data-theme="dark"] body.eco-chromed .text-neutral-900,
[data-theme="dark"] body.eco-chromed .text-black { color: #f0f8f1 !important; }
[data-theme="dark"] body.eco-chromed .text-slate-700,
[data-theme="dark"] body.eco-chromed .text-gray-700,
[data-theme="dark"] body.eco-chromed .text-zinc-700,
[data-theme="dark"] body.eco-chromed .text-neutral-700 { color: #c8d6cb !important; }
[data-theme="dark"] body.eco-chromed .text-slate-600,
[data-theme="dark"] body.eco-chromed .text-gray-600,
[data-theme="dark"] body.eco-chromed .text-zinc-600,
[data-theme="dark"] body.eco-chromed .text-neutral-600 { color: #a8baad !important; }
[data-theme="dark"] body.eco-chromed .text-slate-500,
[data-theme="dark"] body.eco-chromed .text-gray-500,
[data-theme="dark"] body.eco-chromed .text-zinc-500,
[data-theme="dark"] body.eco-chromed .text-neutral-500 { color: #8ea395 !important; }
[data-theme="dark"] body.eco-chromed .text-slate-400,
[data-theme="dark"] body.eco-chromed .text-gray-400 { color: #7a9081 !important; }

/* Headings/strong/labels default to light in dark mode unless explicitly colored */
[data-theme="dark"] body.eco-chromed h1,
[data-theme="dark"] body.eco-chromed h2,
[data-theme="dark"] body.eco-chromed h3,
[data-theme="dark"] body.eco-chromed h4,
[data-theme="dark"] body.eco-chromed h5,
[data-theme="dark"] body.eco-chromed h6,
[data-theme="dark"] body.eco-chromed strong,
[data-theme="dark"] body.eco-chromed label,
[data-theme="dark"] body.eco-chromed dt { color: #f0f8f1; }

/* Page-body backgrounds that go light in light mode should darken in dark mode */
[data-theme="dark"] body.eco-chromed .bg-white { background-color: #0f2016 !important; background-image: none !important; }
/* styles.css line 1362 has `section.bg-white + section.bg-white { background: linear-gradient(white, off-white) !important }`
   — that gradient masks the dark bg in dark mode. Override the gradient too. */
[data-theme="dark"] body.eco-chromed section.bg-white + section.bg-white,
[data-theme="dark"] body.eco-chromed section.bg-white {
  background: #0f2016 !important;
  background-image: none !important;
}
[data-theme="dark"] body.eco-chromed .bg-slate-50,
[data-theme="dark"] body.eco-chromed .bg-gray-50,
[data-theme="dark"] body.eco-chromed .bg-zinc-50 { background-color: #0a1810 !important; }
[data-theme="dark"] body.eco-chromed .bg-slate-100,
[data-theme="dark"] body.eco-chromed .bg-gray-100 { background-color: #0d211a !important; }
[data-theme="dark"] body.eco-chromed .bg-emerald-50 { background-color: #0a1810 !important; }
[data-theme="dark"] body.eco-chromed .bg-emerald-100 { background-color: #0d2517 !important; }
/* Breadcrumb sections — muted sage band that fits dark mode (not stark white).
   Slightly darker than full white, with dark text still readable. */
[data-theme="dark"] body.eco-chromed section.bg-emerald-50.py-3,
[data-theme="dark"] body.eco-chromed section:has(> div > nav[aria-label="Breadcrumb"]),
[data-theme="dark"] body.eco-chromed section:has(nav[aria-label="Breadcrumb"]) {
  background: linear-gradient(180deg, #b8c8bb, #a8bcad) !important;
  background-image: linear-gradient(180deg, #b8c8bb, #a8bcad) !important;
  border-bottom: 1px solid #7a9081 !important;
}
[data-theme="dark"] body.eco-chromed nav[aria-label="Breadcrumb"] { color: #0a1810 !important; }
[data-theme="dark"] body.eco-chromed nav[aria-label="Breadcrumb"] a { color: #0b3d1a !important; font-weight: 600 !important; }
[data-theme="dark"] body.eco-chromed nav[aria-label="Breadcrumb"] a:hover { color: #052e16 !important; text-decoration: underline; }
[data-theme="dark"] body.eco-chromed nav[aria-label="Breadcrumb"] span { color: #0a1810 !important; font-weight: 600 !important; }
[data-theme="dark"] body.eco-chromed nav[aria-label="Breadcrumb"] span[aria-hidden="true"] { color: #3a4a3e !important; font-weight: 400 !important; }
/* Also catch breadcrumb svg icons (some pages use a Home icon) */
[data-theme="dark"] body.eco-chromed nav[aria-label="Breadcrumb"] svg { color: #0b3d1a !important; }

/* Borders that the eye expects to fade */
[data-theme="dark"] body.eco-chromed .border-slate-200,
[data-theme="dark"] body.eco-chromed .border-slate-300,
[data-theme="dark"] body.eco-chromed .border-gray-200,
[data-theme="dark"] body.eco-chromed .border-emerald-100,
[data-theme="dark"] body.eco-chromed .border-emerald-200 { border-color: #1c3524 !important; }

/* Cards on dark backgrounds need a darkened surface */
[data-theme="dark"] body.eco-chromed .info-card,
[data-theme="dark"] body.eco-chromed [class*="rounded-2xl"][class*="border"]:not(.eco-btn):not(.eco-fab) {
  background-color: #0f2016 !important;
  border-color: #1c3524 !important;
  color: #c8d6cb !important;
}
[data-theme="dark"] body.eco-chromed [class*="rounded-2xl"] h3,
[data-theme="dark"] body.eco-chromed .info-card h3 { color: #f0f8f1 !important; }

/* Page-body default sections that have explicit white/light bg via inline classes */
[data-theme="dark"] body.eco-chromed section.bg-white,
[data-theme="dark"] body.eco-chromed section.bg-slate-50,
[data-theme="dark"] body.eco-chromed main.bg-white { background-color: #0a1810 !important; }

/* Brand-green text classes need to brighten for legibility on dark backgrounds.
   Dark green on dark green = unreadable. Lift to eco-green-bright/glow. */
[data-theme="dark"] body.eco-chromed .text-emerald-800,
[data-theme="dark"] body.eco-chromed .text-emerald-700,
[data-theme="dark"] body.eco-chromed .text-emerald-600,
[data-theme="dark"] body.eco-chromed .text-green-800,
[data-theme="dark"] body.eco-chromed .text-green-700 { color: var(--eco-green-glow) !important; }
[data-theme="dark"] body.eco-chromed .text-emerald-100,
[data-theme="dark"] body.eco-chromed .text-emerald-200,
[data-theme="dark"] body.eco-chromed .text-emerald-300 { color: var(--eco-green-glow) !important; }

/* Red error/notice text — keep readable on dark bg */
[data-theme="dark"] body.eco-chromed .text-red-900,
[data-theme="dark"] body.eco-chromed .text-red-800,
[data-theme="dark"] body.eco-chromed .text-red-700,
[data-theme="dark"] body.eco-chromed .text-red-600 { color: #ff8a8a !important; }
[data-theme="dark"] body.eco-chromed .bg-red-50,
[data-theme="dark"] body.eco-chromed .bg-red-100 { background-color: #2a1010 !important; }
[data-theme="dark"] body.eco-chromed .bg-yellow-50,
[data-theme="dark"] body.eco-chromed .bg-orange-50 { background-color: #211a0a !important; }
[data-theme="dark"] body.eco-chromed .bg-blue-50 { background-color: #0a1a25 !important; }

/* Hardcoded inline `style="color:#xxxxxx"` colors — many service pages use these
   directly on elements, bypassing Tailwind classes. Override in dark mode. */
[data-theme="dark"] body.eco-chromed [style*="color:#0f172a"],
[data-theme="dark"] body.eco-chromed [style*="color: #0f172a"],
[data-theme="dark"] body.eco-chromed [style*="color:#1f2937"],
[data-theme="dark"] body.eco-chromed [style*="color: #1f2937"],
[data-theme="dark"] body.eco-chromed [style*="color:#222"],
[data-theme="dark"] body.eco-chromed [style*="color: #222"],
[data-theme="dark"] body.eco-chromed [style*="color:#334155"],
[data-theme="dark"] body.eco-chromed [style*="color: #334155"] { color: #f0f8f1 !important; }
[data-theme="dark"] body.eco-chromed [style*="color:#475569"],
[data-theme="dark"] body.eco-chromed [style*="color: #475569"] { color: #c8d6cb !important; }
[data-theme="dark"] body.eco-chromed [style*="color:#64748b"],
[data-theme="dark"] body.eco-chromed [style*="color: #64748b"],
[data-theme="dark"] body.eco-chromed [style*="color:#94a3b8"],
[data-theme="dark"] body.eco-chromed [style*="color: #94a3b8"] { color: #a8baad !important; }
/* Dark-green hardcoded colors → light green for dark mode */
[data-theme="dark"] body.eco-chromed [style*="color:#022c22"],
[data-theme="dark"] body.eco-chromed [style*="color:#052e16"],
[data-theme="dark"] body.eco-chromed [style*="color:#064e3b"],
[data-theme="dark"] body.eco-chromed [style*="color:#065f46"],
[data-theme="dark"] body.eco-chromed [style*="color:#14532d"],
[data-theme="dark"] body.eco-chromed [style*="color:#15803d"],
[data-theme="dark"] body.eco-chromed [style*="color:#16a34a"],
[data-theme="dark"] body.eco-chromed [style*="color:#047857"],
[data-theme="dark"] body.eco-chromed [style*="color:#059669"] { color: var(--eco-green-glow) !important; }

/* Inline white/light hardcoded backgrounds → dark surfaces.
   IMPORTANT: exclude IMG elements (logos with white backgrounds are intentional —
   they need light backdrops because the logo artwork has dark text/colored elements). */
[data-theme="dark"] body.eco-chromed *:not(img)[style*="background:#fff"],
[data-theme="dark"] body.eco-chromed *:not(img)[style*="background: #fff"],
[data-theme="dark"] body.eco-chromed *:not(img)[style*="background:white"],
[data-theme="dark"] body.eco-chromed *:not(img)[style*="background-color:#fff"],
[data-theme="dark"] body.eco-chromed *:not(img)[style*="background-color: white"] { background: #0f2016 !important; background-color: #0f2016 !important; }

/* ============================================================
   COMPREHENSIVE DARK-MODE LEGIBILITY SAFETY NET
   ============================================================ */

/* Additional Tailwind text color shades not yet covered */
[data-theme="dark"] body.eco-chromed .text-amber-900,
[data-theme="dark"] body.eco-chromed .text-amber-800,
[data-theme="dark"] body.eco-chromed .text-amber-700,
[data-theme="dark"] body.eco-chromed .text-amber-600,
[data-theme="dark"] body.eco-chromed .text-orange-900,
[data-theme="dark"] body.eco-chromed .text-orange-800,
[data-theme="dark"] body.eco-chromed .text-orange-700,
[data-theme="dark"] body.eco-chromed .text-orange-600,
[data-theme="dark"] body.eco-chromed .text-yellow-900,
[data-theme="dark"] body.eco-chromed .text-yellow-800,
[data-theme="dark"] body.eco-chromed .text-yellow-700,
[data-theme="dark"] body.eco-chromed .text-yellow-600 { color: #f5d089 !important; }
[data-theme="dark"] body.eco-chromed .text-blue-900,
[data-theme="dark"] body.eco-chromed .text-blue-800,
[data-theme="dark"] body.eco-chromed .text-blue-700,
[data-theme="dark"] body.eco-chromed .text-blue-600,
[data-theme="dark"] body.eco-chromed .text-indigo-900,
[data-theme="dark"] body.eco-chromed .text-indigo-800,
[data-theme="dark"] body.eco-chromed .text-indigo-700,
[data-theme="dark"] body.eco-chromed .text-cyan-900,
[data-theme="dark"] body.eco-chromed .text-cyan-800,
[data-theme="dark"] body.eco-chromed .text-cyan-700,
[data-theme="dark"] body.eco-chromed .text-teal-900,
[data-theme="dark"] body.eco-chromed .text-teal-800,
[data-theme="dark"] body.eco-chromed .text-teal-700 { color: #8fc4f0 !important; }
[data-theme="dark"] body.eco-chromed .text-violet-900,
[data-theme="dark"] body.eco-chromed .text-violet-800,
[data-theme="dark"] body.eco-chromed .text-violet-700,
[data-theme="dark"] body.eco-chromed .text-purple-900,
[data-theme="dark"] body.eco-chromed .text-purple-800,
[data-theme="dark"] body.eco-chromed .text-purple-700,
[data-theme="dark"] body.eco-chromed .text-pink-900,
[data-theme="dark"] body.eco-chromed .text-pink-800,
[data-theme="dark"] body.eco-chromed .text-pink-700,
[data-theme="dark"] body.eco-chromed .text-stone-900,
[data-theme="dark"] body.eco-chromed .text-stone-800,
[data-theme="dark"] body.eco-chromed .text-stone-700 { color: #d4b8e8 !important; }

/* Additional inline hardcoded colors discovered in <style> blocks */
[data-theme="dark"] body.eco-chromed [style*="color:#dc2626"],
[data-theme="dark"] body.eco-chromed [style*="color: #dc2626"] { color: #ff8a8a !important; }
[data-theme="dark"] body.eco-chromed [style*="color:#b45309"],
[data-theme="dark"] body.eco-chromed [style*="color: #b45309"] { color: #f5d089 !important; }
[data-theme="dark"] body.eco-chromed [style*="color:#0a7"],
[data-theme="dark"] body.eco-chromed [style*="color: #0a7"] { color: var(--eco-green-glow) !important; }

/* SAFETY NET: Force ALL plain text containers to inherit the body's light color in dark mode.
   `color: inherit` cascades the body's `color: #e8f0ea` to children that didn't specify their own.
   `!important`-flagged Tailwind/eco overrides defined above still win for specifically colored
   elements (eco green text, error red, etc.) — this only catches the unstyled defaults. */
[data-theme="dark"] body.eco-chromed p,
[data-theme="dark"] body.eco-chromed li,
[data-theme="dark"] body.eco-chromed dd,
[data-theme="dark"] body.eco-chromed dt,
[data-theme="dark"] body.eco-chromed blockquote,
[data-theme="dark"] body.eco-chromed figcaption,
[data-theme="dark"] body.eco-chromed cite,
[data-theme="dark"] body.eco-chromed time,
[data-theme="dark"] body.eco-chromed small,
[data-theme="dark"] body.eco-chromed td,
[data-theme="dark"] body.eco-chromed th { color: inherit; }

/* Form field text + placeholders need explicit dark-mode treatment */
[data-theme="dark"] body.eco-chromed input,
[data-theme="dark"] body.eco-chromed textarea,
[data-theme="dark"] body.eco-chromed select {
  background-color: #0a1810 !important;
  color: #e8f0ea !important;
  border-color: #1c3524 !important;
}
[data-theme="dark"] body.eco-chromed input::placeholder,
[data-theme="dark"] body.eco-chromed textarea::placeholder { color: #7a9081 !important; }
[data-theme="dark"] body.eco-chromed input:focus,
[data-theme="dark"] body.eco-chromed textarea:focus,
[data-theme="dark"] body.eco-chromed select:focus {
  border-color: var(--eco-green-mid) !important;
  background-color: #0f2016 !important;
}

/* Default link color in dark mode (when no explicit class) */
[data-theme="dark"] body.eco-chromed a:not([class]),
[data-theme="dark"] body.eco-chromed p a,
[data-theme="dark"] body.eco-chromed li a { color: var(--eco-green-glow); }

/* Common `.link` class (uses --brand-700 dark green) — flip in dark mode */
[data-theme="dark"] body.eco-chromed a.link,
[data-theme="dark"] body.eco-chromed .link { color: var(--eco-green-glow) !important; }
[data-theme="dark"] body.eco-chromed a.nav-link,
[data-theme="dark"] body.eco-chromed .nav-link { color: #c8d6cb !important; }
[data-theme="dark"] body.eco-chromed a.nav-link:hover,
[data-theme="dark"] body.eco-chromed .nav-link:hover { color: var(--eco-green-glow) !important; }

/* Tables: dark-mode rows and cells */
[data-theme="dark"] body.eco-chromed table { color: #e8f0ea; }
[data-theme="dark"] body.eco-chromed th,
[data-theme="dark"] body.eco-chromed td { border-color: #1c3524 !important; }
[data-theme="dark"] body.eco-chromed thead { background-color: #0d211a !important; }
[data-theme="dark"] body.eco-chromed tbody tr:nth-child(even) { background-color: rgba(255,255,255,0.02); }

/* Code/pre blocks */
[data-theme="dark"] body.eco-chromed code,
[data-theme="dark"] body.eco-chromed pre {
  background-color: #0a1810 !important;
  color: #e8f0ea !important;
  border-color: #1c3524 !important;
}

/* Horizontal rules + separators */
[data-theme="dark"] body.eco-chromed hr { border-color: #1c3524 !important; }

/* Details/summary widget */
[data-theme="dark"] body.eco-chromed summary,
[data-theme="dark"] body.eco-chromed details { color: inherit; }

/* ============================================================
   Page-specific class overrides — many service/article pages define
   their own classes in inline <style> blocks with hardcoded dark colors
   (.article-body, .info-card, .compare-table, etc.). These rules can't
   be reached via the [style*=...] attribute selector since they live
   in <style> blocks, not inline element styles. Override them explicitly.
   ============================================================ */
[data-theme="dark"] body.eco-chromed .article-body,
[data-theme="dark"] body.eco-chromed .article-body p,
[data-theme="dark"] body.eco-chromed .article-body ul,
[data-theme="dark"] body.eco-chromed .article-body ol,
[data-theme="dark"] body.eco-chromed .article-body li,
[data-theme="dark"] body.eco-chromed .article-body td { color: #c8d6cb !important; }
[data-theme="dark"] body.eco-chromed .article-body h2,
[data-theme="dark"] body.eco-chromed .article-body h3,
[data-theme="dark"] body.eco-chromed .article-body h4,
[data-theme="dark"] body.eco-chromed .article-body strong { color: #f0f8f1 !important; }
[data-theme="dark"] body.eco-chromed .article-body a { color: var(--eco-green-glow) !important; }

/* Brand pill / category pills with light bg + dark green text → invert in dark mode */
[data-theme="dark"] body.eco-chromed .brand-pill,
[data-theme="dark"] body.eco-chromed .sub-pill {
  background: rgba(45,210,91,0.1) !important;
  color: var(--eco-green-glow) !important;
  border-color: rgba(45,210,91,0.25) !important;
}

/* Breadcrumb links default to dark green — flip to bright green */
[data-theme="dark"] body.eco-chromed .breadcrumb,
[data-theme="dark"] body.eco-chromed .breadcrumb span,
[data-theme="dark"] body.eco-chromed .breadcrumb a { color: var(--eco-green-glow) !important; }

/* Callout boxes (light green bg + dark text) → dark surface + light text */
[data-theme="dark"] body.eco-chromed .callout {
  background: rgba(45,210,91,0.06) !important;
  color: #c8d6cb !important;
  border-left-color: var(--eco-green-mid) !important;
}
[data-theme="dark"] body.eco-chromed .callout strong { color: var(--eco-green-glow) !important; }

/* Comparison table (used on competitor-comparison pages) */
[data-theme="dark"] body.eco-chromed .compare-table { color: #e8f0ea !important; }
[data-theme="dark"] body.eco-chromed .compare-table th,
[data-theme="dark"] body.eco-chromed .compare-table td { border-color: #1c3524 !important; color: #e8f0ea !important; }
[data-theme="dark"] body.eco-chromed .compare-table th { background: #0d211a !important; }
[data-theme="dark"] body.eco-chromed .compare-table .you { background: rgba(45,210,91,0.08) !important; color: var(--eco-green-glow) !important; }

/* Distance/stat boxes (light bg + dark numbers) */
[data-theme="dark"] body.eco-chromed .distance-box,
[data-theme="dark"] body.eco-chromed .distance-box .big,
[data-theme="dark"] body.eco-chromed .distance-box .label { color: var(--eco-green-glow) !important; }

/* Lists with branded labels */
[data-theme="dark"] body.eco-chromed .fact-list,
[data-theme="dark"] body.eco-chromed .fact-list li { color: #c8d6cb !important; }
[data-theme="dark"] body.eco-chromed .fact-list strong { color: var(--eco-green-glow) !important; }

/* Generic key/value chips */
[data-theme="dark"] body.eco-chromed .key { color: var(--eco-green-glow) !important; }

/* Product/category cards on item pages */
[data-theme="dark"] body.eco-chromed .product-item,
[data-theme="dark"] body.eco-chromed .cat-card {
  background: #0f2016 !important;
  color: #e8f0ea !important;
  border-color: #1c3524 !important;
}
[data-theme="dark"] body.eco-chromed .product-item h3,
[data-theme="dark"] body.eco-chromed .cat-card h3 { color: #f0f8f1 !important; }

/* Schedule-pickup form classes — many `.sp-*` rules use dark text on light bg */
[data-theme="dark"] body.eco-chromed [class^="sp-"],
[data-theme="dark"] body.eco-chromed [class*=" sp-"] { color: inherit !important; }
[data-theme="dark"] body.eco-chromed .sp-field-hint,
[data-theme="dark"] body.eco-chromed .sp-step-sub,
[data-theme="dark"] body.eco-chromed .sp-upload-hint { color: #a8baad !important; }
[data-theme="dark"] body.eco-chromed .sp-lead,
[data-theme="dark"] body.eco-chromed .sp-trust,
[data-theme="dark"] body.eco-chromed .sp-side-card,
[data-theme="dark"] body.eco-chromed .sp-expect-item,
[data-theme="dark"] body.eco-chromed .sp-fileitem,
[data-theme="dark"] body.eco-chromed .sp-upload,
[data-theme="dark"] body.eco-chromed .sp-upload-intro {
  background: #0f2016 !important;
  color: #e8f0ea !important;
  border-color: #1c3524 !important;
}

/* Generic .step-card colors (some pages have inline rules that override mine) */
[data-theme="dark"] body.eco-chromed .step-card { background: #0f2016 !important; color: #e8f0ea !important; border-color: #1c3524 !important; }
[data-theme="dark"] body.eco-chromed .step-card figcaption { background: rgba(255,255,255,0.02) !important; color: #f0f8f1 !important; border-color: #1c3524 !important; }
[data-theme="dark"] body.eco-chromed .step-card figcaption::before { background: linear-gradient(90deg, var(--eco-green-mid), var(--eco-green-bright)) !important; }

/* --- Keep `position: sticky` working on the nav.
   Both styles.css's `html, body { overflow-x: hidden }` and each page's inline
   `<style>body{overflow-x:hidden}` turn the document into a scroll container,
   which breaks sticky positioning. `overflow-x: clip` prevents horizontal
   overflow WITHOUT creating a scroll container, restoring sticky behavior.
   Scoped via the file being loaded — no parent selector needed (works in older browsers). */
html { overflow-x: clip !important; }
body.eco-chromed { overflow-x: clip !important; max-width: 100% !important; }

/* ============ HIDE legacy chrome on Tier 2/3 pages ============ */
/* When eco-chrome.js detects an existing header/footer, it adds .eco-chromed
   to <body>. These rules remove duplicates. */
.eco-chromed > header[class*="sticky"],
.eco-chromed > body > header[class*="sticky"],
body.eco-chromed > header { display: none !important; }
body.eco-chromed > #mobileStickyCTA,
body.eco-chromed .mobile-sticky-cta { display: none !important; }
body.eco-chromed > .fab-recycle,
body.eco-chromed .fab-recycle,
body.eco-chromed .side-rail-cta { display: none !important; }

/* ============ HENRY MASCOT FRAME ============
   Unified treatment for all Henry the robot images and videos.
   Green gradient border + green glow + soft color wash that ties the
   AI-generated photos into the site's brand palette. */
.henry-frame {
  position: relative;
  display: block;
  max-width: 100%;
  border-radius: 20px;
  padding: 4px;
  background: linear-gradient(135deg, #0b3d1a 0%, #156e31 32%, #2dd25b 68%, #5ef88a 100%);
  box-shadow:
    0 28px 64px -18px rgba(11, 61, 26, 0.55),
    0 0 0 1px rgba(94, 248, 138, 0.22),
    0 0 80px -28px rgba(94, 248, 138, 0.40);
  isolation: isolate;
  overflow: hidden;
  /* Inherit width sizing from caller; default to natural */
  width: fit-content;
}
.henry-frame img,
.henry-frame video {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 16px;
  position: relative;
  z-index: 1;
}
/* Vignette + subtle highlight on top, darker green at bottom corners */
.henry-frame::after {
  content: "";
  position: absolute;
  inset: 4px;
  border-radius: 16px;
  pointer-events: none;
  z-index: 2;
  background:
    radial-gradient(ellipse 100% 80% at 50% 100%, rgba(11, 61, 26, 0.42) 0%, transparent 55%),
    radial-gradient(ellipse 100% 60% at 50% 0%, rgba(94, 248, 138, 0.16) 0%, transparent 55%);
  mix-blend-mode: multiply;
}
/* Subtle green color wash unifies the image with the site palette */
.henry-frame::before {
  content: "";
  position: absolute;
  inset: 4px;
  border-radius: 16px;
  pointer-events: none;
  z-index: 3;
  background: linear-gradient(160deg, rgba(45, 210, 91, 0.10) 0%, rgba(11, 61, 26, 0.06) 60%, rgba(94, 248, 138, 0.04) 100%);
  mix-blend-mode: overlay;
}
/* Hover lift for interactive feel */
.henry-frame:hover {
  box-shadow:
    0 32px 72px -18px rgba(11, 61, 26, 0.6),
    0 0 0 1px rgba(94, 248, 138, 0.32),
    0 0 100px -28px rgba(94, 248, 138, 0.55);
  transition: box-shadow .25s ease;
}
/* Centering helper — opt-in via .henry-frame--center wrapper */
.henry-frame--center { margin-left: auto; margin-right: auto; }
/* Block-fill helper — opt-in via .henry-frame--fill — fills its grid/flex column */
.henry-frame--fill { width: 100%; }
