/* Shared CWM design tokens and responsive layout */
:root {
  --cwm-forest: #092c21;
  --cwm-green: #126446;
  --cwm-mint: #e5f1e9;
  --cwm-paper: #f5f8f5;
  --cwm-text: #233a30;
  --cwm-line: #d7e5db;
  --cwm-radius: 22px;
  --cwm-shadow: 0 12px 36px #092c2112;
  --cwm-gutter: clamp(16px, 4vw, 64px);
  --cwm-space: clamp(42px, 7vw, 96px);
}
html { scroll-padding-top: 90px; }
body {
  margin: 0;
  background: var(--cwm-paper);
  color: var(--cwm-text);
  font-family: Inter, system-ui, sans-serif;
  overflow-wrap: break-word;
}
:where(img, iframe, video) { max-width: 100%; }
:where(h1, h2, h3) { text-wrap: balance; }
:where(a, button, summary, input, select, textarea):focus-visible {
  outline: 3px solid #47a984;
  outline-offset: 4px;
}
body header:has(.navbar) {
  position: sticky;
  inset: 0 0 auto;
  width: 100%;
  min-height: 0;
  margin: 0;
  padding: 0;
  z-index: 1100;
  background: #fff;
  box-shadow: 0 3px 18px #092c2110;
  border: 0;
  border-bottom: 1px solid var(--cwm-line);
  border-radius: 0;
  backdrop-filter: none;
}
header .navbar {
  position: relative;
  width: min(100%, 1440px);
  box-sizing: border-box;
  min-height: 76px;
  height: auto;
  margin: 0 auto;
  padding: 8px var(--cwm-gutter);
  display: flex;
  flex-flow: row nowrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: transparent;
}
header .navbar .logo { width: clamp(106px, 11vw, 154px); flex: none; margin: 0; }
header .navbar .logo img { display: block; width: 100%; height: auto; max-height: 58px; object-fit: contain; }
header .navbar .nav-links {
  position: static;
  display: flex;
  flex-flow: row nowrap;
  justify-content: flex-end;
  align-items: center;
  gap: clamp(2px, 0.7vw, 14px);
  width: auto;
  margin: 0;
  padding: 0;
  list-style: none;
  background: transparent;
  transform: none;
}
header .navbar .nav-links > li { position: relative; margin: 0; list-style: none; }
header .navbar .nav-links > li > a,
header .navbar .nav-links > li > details > summary {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 7px 8px;
  border-radius: 8px;
  color: var(--cwm-forest);
  font: 650 0.85rem/1.3 Inter, system-ui, sans-serif;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}
header .navbar .nav-links > li > details > summary::after { content: '▾'; margin-inline-start: 6px; }
header .navbar .nav-links > li > a:not(.nav-btn):hover,
header .navbar .nav-links summary:hover,
header .navbar .nav-links [aria-current="page"]:not(.nav-btn) { background: var(--cwm-mint); color: var(--cwm-green); }
header .navbar .nav-links .nav-btn {
  padding: 9px 16px !important;
  background: var(--cwm-green);
  color: #fff !important;
  border-radius: 9px;
  box-shadow: none;
  transform: none;
}
header .navbar .dropdown-menu {
  position: absolute;
  inset: 100% auto auto 0;
  display: none;
  width: min(270px, 82vw);
  margin: 0;
  padding: 7px;
  list-style: none;
  opacity: 1;
  visibility: visible;
  transform: none;
  background: white;
  border: 1px solid var(--cwm-line);
  border-radius: 12px;
  box-shadow: var(--cwm-shadow);
}
header .navbar .nav-links details[open] > .dropdown-menu,
header .navbar .nav-links .dropdown[data-open] > .dropdown-menu { display: block; }
header .navbar .dropdown-menu li { list-style: none; margin: 0; }
header .navbar .dropdown-menu li a {
  display: block;
  padding: 10px 12px !important;
  border: 0;
  border-radius: 6px;
  color: var(--cwm-text);
  font-size: .875rem;
  line-height: 1.4;
  text-decoration: none;
}
header .navbar .dropdown-menu li a:hover,
header .navbar .dropdown-menu li a:focus-visible { background: var(--cwm-mint); color: var(--cwm-green); }
.cwm-menu-toggle { display: none; }
body:has(header .navbar) { padding-top: 0; }
body header + br, body header + br + br, body header + br + br + br { display: none; }

body .cwm-banner {
  width: min(1320px, calc(100% - 2 * var(--cwm-gutter)));
  margin: clamp(20px, 3vw, 44px) auto;
  border-radius: var(--cwm-radius);
  box-shadow: var(--cwm-shadow);
}
body .cwm-banner .banner-content h1 { font-size: clamp(1.85rem, 4.5vw, 4rem); line-height: 1.12; letter-spacing: -.04em; }
body .about-page { min-width: 0; }
body .about-content p { line-height: 1.75; }
body .footer, body .site-footer, body > footer {
  background: var(--cwm-forest);
  color: #ecf5ef;
  border-top: 4px solid #409277;
}
body .footer-container {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.15fr;
  gap: clamp(22px, 4vw, 60px);
  width: min(1280px, calc(100% - 2 * var(--cwm-gutter)));
  padding: var(--cwm-space) 0;
  margin: auto;
}
body .footer-container > * { min-width: 0; }
body .footer h4 { color: #a8e0be; }
body .footer a, body .site-footer a { color: #d8eae0; }
body .footer a:hover, body .site-footer a:hover { color: white; text-decoration: underline; }
.cwm-table-scroll { max-width: 100%; overflow-x: auto; }

/* The home page pairs the existing award artwork with its existing headline. */
.cwm-home .cwm-home-feature {
  display: grid;
  grid-template-columns: minmax(0, .88fr) minmax(0, 1.12fr);
  align-items: center;
  width: min(1320px, calc(100% - 2 * var(--cwm-gutter)));
  margin: clamp(20px, 4vw, 54px) auto 24px;
  overflow: hidden;
  border-radius: var(--cwm-radius);
  background: radial-gradient(ellipse at top left, #1d674b, var(--cwm-forest) 72%);
  box-shadow: var(--cwm-shadow);
}
.cwm-home-feature .cwm { margin: 0; padding: clamp(26px, 5vw, 70px); background: none; }
.cwm-home-feature .cwm::before, .cwm-home-feature .cwm::after { display: none; }
.cwm-home-feature center { text-align: left; }
.cwm-home-feature .cwm h1 { color: #fff; font-size: clamp(2.25rem, 4.25vw, 4.5rem); line-height: 1.04; }
.cwm-home-feature .cwm h2 { margin-top: 18px; color: #d5eee0; font-size: clamp(1rem, 1.7vw, 1.45rem); line-height: 1.3; }
.cwm-home-feature .cwm h3 { color: #bbe2cb; margin-top: 12px; line-height: 1.4; }
.cwm-home-feature .hero { padding: clamp(14px, 2.3vw, 32px); background: transparent; }
.cwm-home-feature .award-main-banner img { border-radius: 13px; height: auto; object-fit: contain; }
.cwm-home .cwm-award-strip {
  width: min(1320px, calc(100% - 2 * var(--cwm-gutter))) !important;
  margin: 0 auto !important;
  border: 1px solid var(--cwm-line);
  border-radius: var(--cwm-radius);
  background: #eaf3ed !important;
}
.cwm-home .services {
  width: min(1320px, calc(100% - 2 * var(--cwm-gutter)));
  margin: var(--cwm-space) auto;
  padding: 0 !important;
  background: transparent !important;
  font-family: inherit !important;
}
.cwm-home .services > div:first-child h2 { font-size: clamp(2rem, 4vw, 3.25rem) !important; line-height: 1.1; }
.cwm-home .service-grid { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; gap: clamp(14px, 2.5vw, 28px) !important; }
.cwm-home .service-card { border-radius: 16px !important; border-color: var(--cwm-line) !important; box-shadow: var(--cwm-shadow) !important; }
.cwm-home .service-card img { height: auto !important; aspect-ratio: 16 / 10; }
.cwm-home .about { width: min(1320px, calc(100% - 2 * var(--cwm-gutter))); margin-block: var(--cwm-space); }
.cwm-home .left img, .cwm-home .journey-image img { min-height: 0; aspect-ratio: 5 / 4; }
.cwm-home .stats { background: var(--cwm-forest); padding-block: var(--cwm-space); }
.cwm-home .pickup, .cwm-home .trophy-section { margin-block: var(--cwm-space); }
.cwm-home .journey, .cwm-home .awards { padding-block: var(--cwm-space); }
.cwm-home :is(.right a, .journey-btn) { background: var(--cwm-green); border-radius: 10px; }

body .documents-hero { background: var(--cwm-forest); color: #eff9f2; }
body .calculator-container { margin-top: clamp(20px, 4vw, 46px); max-width: 1200px; }
body .auth-panel { border-radius: var(--cwm-radius); }
body .auth-brand { background-color: var(--cwm-forest); }

@media (min-width: 1121px) {
  header .navbar .nav-links .dropdown:not([data-dismissed]):hover > .dropdown-menu { display: block; }
}
@media (max-width: 1120px) {
  header .navbar { min-height: 66px; }
  header .navbar.cwm-nav-ready { flex-wrap: wrap; gap: 8px; }
  header .navbar.cwm-nav-ready .nav-links { display: none; }
  header .navbar.cwm-nav-ready[data-menu-open] .nav-links {
    display: grid;
    gap: 3px;
    flex-basis: 100%;
    max-height: calc(100vh - 84px);
    max-height: calc(100dvh - 84px);
    overflow: auto;
    padding: 7px 0 14px;
    border-top: 1px solid var(--cwm-line);
  }
  header .navbar:not(.cwm-nav-ready) { flex-wrap: wrap; }
  header .navbar:not(.cwm-nav-ready) .nav-links { flex-wrap: wrap; }
  header .navbar .dropdown-menu {
    position: static;
    width: auto;
    margin: 0 8px 7px;
    padding: 4px;
    background: var(--cwm-paper);
    box-shadow: none;
  }
  .cwm-nav-ready .cwm-menu-toggle {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    margin-left: auto;
    border: 1px solid var(--cwm-line);
    border-radius: 9px;
    background: var(--cwm-paper);
    color: var(--cwm-forest);
    cursor: pointer;
  }
  .cwm-menu-toggle::before { content: ''; width: 18px; height: 12px; border-block: 2px solid; background: linear-gradient(currentColor,currentColor) center / 100% 2px no-repeat; }
  .cwm-menu-toggle[aria-expanded="true"]::before { content: '×'; width: auto; height: auto; border: 0; background: none; font-size: 27px; line-height: 1; }
}
@media (max-width: 820px) {
  body .footer-container { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .cwm-home .cwm-home-feature { grid-template-columns: minmax(0,1fr); }
  .cwm-home-feature .cwm { padding-bottom: 10px; }
  .cwm-home .service-grid { grid-template-columns: repeat(2,minmax(0,1fr)) !important; }
}
@media (max-width: 540px) {
  body .footer-container, .cwm-home .service-grid { grid-template-columns: minmax(0,1fr) !important; }
  .cwm-home-feature .cwm h1 { font-size: clamp(1.85rem, 9vw, 2.75rem); }
  .cwm-home .pickup { padding-inline: 12px; }
  body .customer-bar { flex-wrap: wrap; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}

/* Interior pages retain their artwork and use the same content grid. */
body .about-page:has(> .about-sidebar) {
  display: grid;
  grid-template-columns: minmax(200px, 260px) minmax(0, 1fr);
  align-items: start;
  gap: clamp(20px, 4vw, 58px);
  width: min(1260px, calc(100% - 2 * var(--cwm-gutter)));
  max-width: none;
  margin: var(--cwm-space) auto;
  padding: 0;
}
body .about-page > :is(.about-sidebar, .about-content) {
  width: auto;
  min-width: 0;
}
body .about-page > .about-sidebar {
  max-width: none;
  inset-block-start: 96px;
  padding: clamp(16px, 2.3vw, 28px);
  background: #fff;
  border: 1px solid var(--cwm-line);
  border-radius: 16px;
  box-shadow: var(--cwm-shadow);
}
body .about-page > .about-sidebar h2,
body .about-content > h1 { color: var(--cwm-forest); }
body .about-page > .about-sidebar li.active a {
  background: var(--cwm-mint);
  color: var(--cwm-forest);
  border-radius: 8px;
}
body .about-content > h1 { font-size: clamp(1.85rem, 4vw, 3.25rem); line-height: 1.12; }
body .about-content :is(.ewaste-card, .video-box),
body .document-card, body .contact-card {
  border-radius: 16px;
  box-shadow: var(--cwm-shadow);
}
body .documents-hero {
  width: min(1320px, calc(100% - 2 * var(--cwm-gutter)));
  margin: clamp(20px, 3vw, 44px) auto 0;
  border-radius: var(--cwm-radius);
  padding: clamp(24px, 6vw, 76px);
}
body .documents-section { width: min(1200px, calc(100% - 2 * var(--cwm-gutter))); }
body .documents-section .download-button { background: var(--cwm-green); }
body > header + .hero {
  margin: clamp(20px, 3vw, 44px) auto 0;
  width: min(1320px, calc(100% - 2 * var(--cwm-gutter)));
  border-radius: var(--cwm-radius);
  overflow: hidden;
}
body > header + .hero h1 { font-size: clamp(1.9rem, 5vw, 4rem); }
body .contact-section { padding: var(--cwm-space) var(--cwm-gutter); }
body .contact-title h2 { color: var(--cwm-forest); font-size: clamp(1.75rem, 4vw, 3.25rem); }
body .contact-card { border: 1px solid var(--cwm-line); }
header .navbar .nav-links > li > a:not(.nav-btn)::after { content: none; }
header .navbar .nav-links > li > a { box-sizing: border-box; }
header .navbar .nav-links .nav-btn:hover { background: var(--cwm-forest); }

@media (max-width: 820px) {
  body .about-page:has(> .about-sidebar) { grid-template-columns: minmax(0, 1fr); }
  body .about-page > .about-sidebar { position: static; }
  body .about-page > .about-sidebar ul { display: flex; flex-wrap: wrap; gap: 6px; }
  body .about-page > .about-sidebar li { margin: 0; }
  body .about-page > .about-sidebar li a { min-height: 44px; display: flex; align-items: center; }
}
