/* Single site stylesheet — ALL styling lives here (no inline styles ever).
   Design tokens first. One breakpoint (900px) collapses the nav and grids;
   keep that value in sync with static/js/main.js. */

:root {
  /* Brand — client-supplied 2026-08-29. The dark green is the same value
     the WordPress source used behind its hero (#0a4b25). */
  --green:        #0a4b25;
  --green-dark:   #063317;
  --green-light:  #0f6733;
  --gray:         #6e7072;
  --yellow:       #f9f166;

  --color-primary:      var(--green);
  --color-primary-dark: var(--green-dark);
  --color-accent:       var(--yellow);
  --color-text:         #1c1f1d;
  --color-muted:        var(--gray);
  --color-light:        #f4f6f4;
  --color-border:       #e2e6e3;

  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-heading: "Playfair Display", Georgia, "Times New Roman", serif;

  --container: 1160px;
  --radius: 6px;
  --shadow: 0 2px 10px rgba(10, 75, 37, .08);
  --shadow-lg: 0 12px 32px rgba(10, 75, 37, .16);
}

@font-face {
  font-family: "Playfair Display";
  src: url("/fonts/playfair-display-latin.woff2") format("woff2");
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6,
                 U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122,
                 U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-text);
  line-height: 1.65;
  background: #fff;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  line-height: 1.2;
  margin: 0 0 .5em;
  color: var(--green-dark);
  font-weight: 700;
}
h1 { font-size: clamp(2rem, 1.4rem + 2.4vw, 3.1rem); }
h2 { font-size: clamp(1.5rem, 1.2rem + 1.3vw, 2.1rem); }
h3 { font-size: clamp(1.2rem, 1.08rem + .55vw, 1.5rem); }
h4 { font-size: 1.06rem; }

p { margin: 0 0 1.1em; }
img { max-width: 100%; height: auto; }
a { color: var(--green); text-underline-offset: .18em; }
a:hover { color: var(--green-light); }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--green); color: #fff; padding: 10px 18px;
}
.skip-link:focus { left: 0; }

:focus-visible { outline: 3px solid var(--green-light); outline-offset: 2px; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.container--narrow { max-width: 780px; }
.center { text-align: center; }
.flow > * + * { margin-top: 1em; }

/* buttons ------------------------------------------------------------ */
.btn {
  display: inline-block; background: var(--green); color: #fff;
  padding: 13px 30px; border: 2px solid var(--green); border-radius: var(--radius);
  font-weight: 600; text-decoration: none; cursor: pointer;
  transition: background .15s ease, color .15s ease;
}
.btn:hover { background: var(--green-dark); border-color: var(--green-dark); color: #fff; }
.btn--accent { background: var(--yellow); border-color: var(--yellow); color: var(--green-dark); }
.btn--accent:hover { background: #f5ec3d; border-color: #f5ec3d; color: var(--green-dark); }
.btn--ghost { background: transparent; color: #fff; border-color: #fff; }
.btn--ghost:hover { background: #fff; color: var(--green-dark); border-color: #fff; }

/* emergency bar ------------------------------------------------------ */
.emergency-bar { background: var(--green-dark); text-align: center; }
.emergency-bar a {
  display: block; padding: 9px 20px; color: #fff; text-decoration: none;
  font-size: .93rem; letter-spacing: .01em;
}
.emergency-bar a:hover { color: var(--yellow); }
.emergency-bar strong { color: var(--yellow); }

/* header / nav ------------------------------------------------------- */
.site-header { position: sticky; top: 0; z-index: 20; background: #fff; box-shadow: var(--shadow); }
.site-header__inner {
  max-width: var(--container); margin: 0 auto; padding: 10px 20px;
  display: flex; align-items: center; gap: 20px;
}
.site-header__logo { flex: 0 0 auto; line-height: 0; }
.site-header__logo img { width: 220px; height: auto; }
.site-header__phone {
  margin-left: auto; font-weight: 700; color: var(--green-dark);
  text-decoration: none; white-space: nowrap;
}
.site-header__phone:hover { color: var(--green-light); }
.nav-toggle { display: none; background: none; border: 0; font-size: 1.6rem; cursor: pointer; color: var(--green-dark); }

.site-nav { display: flex; gap: 2px; align-items: center; }
.nav-item { position: relative; }
.nav-top {
  display: block; padding: 10px 13px; color: var(--color-text);
  text-decoration: none; font-weight: 600; font-size: .95rem;
  background: none; border: 0; font-family: inherit; cursor: pointer;
}
.nav-top.is-active { color: var(--green); box-shadow: inset 0 -3px 0 var(--yellow); }
.nav-top:hover { color: var(--green); }
.caret { font-size: .7em; opacity: .7; }

.subnav {
  display: none; position: absolute; top: 100%; left: 0; min-width: 240px;
  margin: 0; padding: 8px 0; list-style: none; background: #fff;
  box-shadow: var(--shadow-lg); border-radius: var(--radius);
  border-top: 3px solid var(--yellow);
}
.has-sub:hover .subnav, .has-sub.is-open .subnav { display: block; }
.subnav a { display: block; padding: 9px 18px; text-decoration: none; color: var(--color-text); font-size: .93rem; }
.subnav a:hover { background: var(--color-light); color: var(--green); }

/* sections ----------------------------------------------------------- */
.section { padding: 68px 0; }
.section--light { background: var(--color-light); }
.section--green { background: var(--green); color: #fff; }
.section--green h2, .section--green h3 { color: #fff; }
.section--green a:not(.btn) { color: var(--yellow); }
.section__title { text-align: center; margin-bottom: 12px; }
.section__intro { text-align: center; max-width: 700px; margin: 0 auto 40px; color: var(--color-muted); }

/* home hero ---------------------------------------------------------- */
.hero { background: var(--green); color: #fff; padding: 88px 0 96px; }
.hero h1 { color: #fff; max-width: 17ch; }
.hero__eyebrow {
  text-transform: uppercase; letter-spacing: .14em; font-size: .8rem;
  font-weight: 700; color: var(--yellow); margin-bottom: 14px;
}
.hero__lead { font-size: 1.16rem; max-width: 56ch; margin-bottom: 30px; color: rgba(255,255,255,.92); }
.hero a:not(.btn) { color: var(--yellow); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* interior page hero ------------------------------------------------- */
.page-hero { background: var(--green); color: #fff; padding: 52px 0; }
.page-hero h1 { color: #fff; margin: 0; }
.page-hero__sub { margin: 10px 0 0; color: rgba(255,255,255,.88); }
.page-hero a:not(.btn) { color: var(--yellow); }
.page-hero__img { width: 100%; max-height: 420px; object-fit: cover; display: block; }

/* grids and cards ---------------------------------------------------- */
.grid { display: grid; gap: 26px; align-items: stretch; }
.grid > .card { display: flex; flex-direction: column; }
.grid > .card--media .card__body { flex: 1; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: #fff; border: 1px solid var(--color-border);
  border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow);
  transition: transform .15s ease, box-shadow .15s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.card h3 { margin-top: 0; }
.card p:last-child { margin-bottom: 0; }
.card--link { text-decoration: none; color: inherit; display: block; }
.card__img {
  width: 100%; aspect-ratio: 3 / 2; object-fit: cover; display: block;
  border-radius: var(--radius) var(--radius) 0 0;
}
.card--media { padding: 0; overflow: hidden; }
.card--media .card__body { padding: 22px 24px 26px; }

/* prose -------------------------------------------------------------- */
.prose h2 { margin-top: 1.6em; }
.prose h3 { margin-top: 1.4em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: .35em; }
.prose img { border-radius: var(--radius); }
blockquote {
  margin: 1.6em 0; padding: 4px 0 4px 20px;
  border-left: 4px solid var(--yellow); color: var(--color-muted); font-style: italic;
}

/* long-form article ---------------------------------------------------
   Structure for the migrated 700-1400 word service pages: a measured text
   column, sections separated as visual chunks, and an optional sticky
   contents rail on pages with 6+ sections. Markup comes from the
   sectionize/tocOf filters in eleventy.config.js. */
.article { padding: 56px 0 8px; }
.article__grid { display: grid; gap: 56px; }
.article--toc .article__grid { grid-template-columns: 232px minmax(0, 1fr); }
.article__body { max-width: 72ch; }
/* with no contents rail there is no second column to balance against, so
   centre the measure instead of pinning it to the left edge */
.article:not(.article--toc) .article__body { margin-inline: auto; }
.article--toc .article__body { max-width: none; }

/* opening paragraph carries a little more weight */
.lead > p:first-child { font-size: 1.14rem; line-height: 1.6; color: #34383a; }
.lead > p:first-child::first-letter { font-weight: 600; }

/* one section per H2 */
.chunk { padding: 30px 0 6px; border-top: 1px solid var(--color-border); margin-top: 26px; }
.chunk:first-of-type { border-top: 0; }
.chunk > h2:first-child { margin-top: 0; }
.chunk--alt {
  background: var(--color-light); border-top: 0; border-radius: var(--radius);
  padding: 30px 32px 12px; margin-top: 34px;
}

/* Every jump target must clear the sticky header (65px desktop, ~72px
   mobile) or clicking a contents link lands the heading underneath it.
   Covers section headings, subsection headings, and the <span id> markers
   on /sales-service/ and /sustainability/ that the homepage links to. */
.article__body h2, .article__body h3, .article__body h4,
.article__body [id], .prose [id], .chunk [id] { scroll-margin-top: 92px; }

/* inline figures that break up the prose */
.figure { margin: 34px 0; }
.figure img { width: 100%; border-radius: var(--radius); display: block; object-fit: cover; aspect-ratio: 16 / 9; }
.figure figcaption { margin-top: 8px; font-size: .86rem; color: var(--color-muted); }
/* used-equipment listings: the photo sits with its spec, not full width */
.figure--unit { margin: 10px 0 26px; max-width: 460px; }
.figure--unit img { aspect-ratio: 4 / 3; }
.prose h6 { font-size: 1rem; margin-bottom: .2em; color: var(--green-dark); }

/* solutions pages ------------------------------------------------------
   /cardboard-waste/, /food-waste/, /high-rise-communities/ all share one
   shape: a list of symptoms, a single statistic, then the solutions. The
   sectionize filter tags each part; these style them as what they are. */

/* the symptom list */
.chunk--problem { border-top: 0; margin-top: 0; padding-top: 0; }
.chunk--problem ul {
  list-style: none; margin: 22px 0 0; padding: 0;
  display: grid; gap: 14px; align-items: stretch;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}
.chunk--problem li {
  margin: 0; padding: 18px 20px 18px 48px; position: relative;
  background: #fff; border: 1px solid var(--color-border);
  border-radius: var(--radius); box-shadow: var(--shadow);
  font-weight: 600; color: var(--green-dark);
}
.chunk--problem li::before {
  content: "!"; position: absolute; left: 18px; top: 50%; transform: translateY(-50%);
  width: 20px; height: 20px; border-radius: 50%; background: var(--yellow);
  color: var(--green-dark); font-size: .8rem; font-weight: 700;
  display: grid; place-items: center;
}

/* the standalone statistic */
.chunk--stat {
  background: var(--green); color: #fff; border-top: 0;
  border-radius: var(--radius); margin: 40px 0; padding: 44px 40px;
  text-align: center;
}
.chunk--stat h2, .chunk--stat h3 {
  color: #fff; margin: 0; max-width: 24ch; margin-inline: auto;
  font-size: clamp(1.3rem, 1.05rem + 1.1vw, 1.85rem); line-height: 1.3;
}
.chunk--stat strong { color: var(--yellow); font-weight: 700; }

/* the solutions themselves */
.solution-grid {
  display: grid; gap: 22px; margin-top: 26px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}
.solution-card {
  background: #fff; border: 1px solid var(--color-border);
  border-top: 3px solid var(--yellow); border-radius: var(--radius);
  padding: 26px 26px 8px; box-shadow: var(--shadow);
}
.solution-card h3 { margin-top: 0; }
.solution-card__icon {
  width: 34px; height: 34px; display: block; margin-bottom: 14px;
  color: var(--green); stroke-width: 1.7;
}
.solution-card p:last-child { margin-bottom: 1em; }

/* closing call-to-action (was marked up as <h2> by the source builder) */
.callout {
  margin: 34px 0 8px; padding: 22px 26px;
  background: var(--color-light); border-left: 4px solid var(--yellow);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.callout p { margin: 0; font-weight: 600; color: var(--green-dark); }
.callout p + p { margin-top: 4px; font-weight: 400; color: var(--color-text); }
.callout a { font-weight: 700; }

/* on-page contents */
.toc { position: sticky; top: 104px; align-self: start; font-size: .9rem; }
.toc__title {
  margin: 0 0 10px; font-weight: 700; font-size: .75rem; letter-spacing: .1em;
  text-transform: uppercase; color: var(--gray);
  padding-bottom: 8px; border-bottom: 2px solid var(--yellow);
}
.toc ul { list-style: none; margin: 0 0 22px; padding: 0; }
.toc li { margin-bottom: 2px; }
/* a long page (sales & service: 3 sections, 20 subsections) would otherwise
   make the rail taller than the viewport and break the sticky behaviour */
.toc { max-height: calc(100vh - 140px); overflow-y: auto; overscroll-behavior: contain; }
.toc > ul > li > a { font-weight: 600; }
.toc__sub { margin: 2px 0 10px; padding-left: 10px; border-left: 1px solid var(--color-border); }
.toc__sub a {
  font-size: .84rem; color: var(--color-muted); padding: 5px 8px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
}
.toc__sub a:hover { color: var(--green); }
.toc a {
  display: block; padding: 6px 10px; border-radius: 4px; text-decoration: none;
  color: var(--color-text); border-left: 2px solid transparent; line-height: 1.35;
}
.toc a:hover { background: var(--color-light); color: var(--green); border-left-color: var(--yellow); }
.toc__cta { display: block; text-align: center; padding: 10px 14px; font-size: .9rem; }

/* service cross-links ------------------------------------------------ */
.related { border-top: 1px solid var(--color-border); margin-top: 48px; padding-top: 32px; }
.related h2 { font-size: 1.25rem; }
.related ul { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; margin: 0; padding: 0; }
.related a {
  display: inline-block; padding: 8px 15px; background: var(--color-light);
  border: 1px solid var(--color-border); border-radius: 100px;
  text-decoration: none; font-size: .9rem; color: var(--green-dark);
}
.related a:hover { background: var(--yellow); border-color: var(--yellow); }

/* gallery ------------------------------------------------------------ */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.gallery img {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block;
  border-radius: var(--radius); box-shadow: var(--shadow);
}

/* forms -------------------------------------------------------------- */
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form__field { display: flex; flex-direction: column; gap: 6px; }
.form__field--full { grid-column: 1 / -1; }
.form label { font-weight: 600; font-size: .9rem; color: var(--green-dark); }
.form .req { color: #b3261e; }
.form input, .form select, .form textarea {
  font: inherit; padding: 11px 13px; border: 1px solid #c8cfca;
  border-radius: var(--radius); background: #fff; color: var(--color-text); width: 100%;
}
.form input:focus, .form select:focus, .form textarea:focus {
  border-color: var(--green); outline: 2px solid rgba(15,103,51,.18); outline-offset: 0;
}
.form textarea { min-height: 130px; resize: vertical; }
.form__hint { font-size: .82rem; color: var(--color-muted); }
.form__status { grid-column: 1 / -1; padding: 13px 16px; border-radius: var(--radius); font-weight: 600; }
.form__status[data-state="error"] { background: #fdecea; color: #8c1d18; border: 1px solid #f3b8b2; }
.form__status[data-state="ok"] { background: #e7f4ec; color: var(--green-dark); border: 1px solid #b6dcc4; }
.form__status[hidden] { display: none; }
.form__field--full > .btn { align-self: start; }

/* contact detail blocks ---------------------------------------------- */
.office-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.office h3 { font-size: 1.05rem; margin-bottom: .4em; }
.office p { margin-bottom: .6em; font-size: .95rem; }
.office__note { font-weight: 600; color: var(--green-dark); }
.site-footer .office__note { color: var(--yellow); font-weight: 600; }
/* Three team members in three equal columns. A content-sized flex row let
   them butt together, and Elyse's box is wider than the others because it
   carries an email, so the row read as uneven. */
.team { display: grid; grid-template-columns: repeat(3, 1fr); gap: 34px; }

/* misc --------------------------------------------------------------- */
.tag-ns { display: none; visibility: hidden; }
.video-wrap, .form-wrap { position: relative; padding-top: 56.25%; }
.video-wrap iframe, .form-wrap iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.table-wrap { overflow-x: auto; }
.table-wrap table { border-collapse: collapse; width: 100%; }
.table-wrap th, .table-wrap td { border: 1px solid var(--color-border); padding: 10px 13px; text-align: left; }
.policy_embed_div { margin-top: 1.5em; }

/* footer ------------------------------------------------------------- */
.site-footer { background: var(--green-dark); color: rgba(255,255,255,.86); margin-top: 0; }
.site-footer a { color: #fff; }
.site-footer a:hover { color: var(--yellow); }
.site-footer h4 { color: var(--yellow); font-size: .84rem; letter-spacing: .08em; text-transform: uppercase; margin-bottom: .7em; }
.site-footer__certs {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: 40px; padding: 30px 20px; background: #fff;
}
.site-footer__certs img { height: 56px; width: auto; }
.site-footer__main, .site-footer__areas {
  max-width: var(--container); margin: 0 auto; padding: 44px 20px;
  display: grid; gap: 30px;
}
.site-footer__main { grid-template-columns: repeat(4, 1fr); }
.site-footer__areas { grid-template-columns: repeat(2, 1fr); border-top: 1px solid rgba(255,255,255,.14); padding-top: 34px; }
.site-footer__main p, .site-footer__areas li { font-size: .9rem; }
.site-footer__areas ul { list-style: none; margin: 0; padding: 0; columns: 2; }
.site-footer__areas li { margin-bottom: .45em; break-inside: avoid; }
.site-footer__social { font-weight: 600; }
.site-footer__bottom {
  border-top: 1px solid rgba(255,255,255,.14); padding: 18px 20px; text-align: center;
  font-size: .86rem; display: flex; gap: 8px 18px; justify-content: center; flex-wrap: wrap;
}
.site-footer__credit { color: rgba(255,255,255,.62); }
.site-footer__credit a { color: rgba(255,255,255,.82); }
.site-footer__credit a:hover { color: var(--yellow); }

/* 404 ---------------------------------------------------------------- */
.notfound { text-align: center; padding: 90px 20px; }
.notfound__code { font-family: var(--font-heading); font-size: 5rem; color: var(--yellow); line-height: 1; margin: 0; }

/* responsive — 900px must match main.js ------------------------------ */
@media (max-width: 900px) {
  .nav-toggle { display: block; order: 3; }
  .site-header__inner { flex-wrap: wrap; gap: 12px; }
  .site-header__phone { margin-left: auto; order: 2; }
  .site-nav {
    display: none; order: 4; flex-basis: 100%; flex-direction: column;
    align-items: stretch; gap: 0; padding: 8px 0 12px;
    border-top: 1px solid var(--color-border);
  }
  .site-nav.is-open { display: flex; }
  .nav-top { padding: 12px 4px; width: 100%; text-align: left; }
  .subnav {
    display: none; position: static; min-width: 0; box-shadow: none;
    border-top: 0; border-left: 3px solid var(--yellow); border-radius: 0;
    padding: 2px 0 8px 12px; margin: 0 0 6px;
  }
  .has-sub:hover .subnav { display: none; }
  .has-sub.is-open .subnav { display: block; }

  .grid--2, .grid--3, .grid--4, .office-grid, .team { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .article--toc .article__grid { grid-template-columns: 1fr; }
  .article__grid { gap: 28px; }
  .article { padding: 36px 0 4px; }
  .toc { position: static; max-height: none; overflow: visible;
        background: var(--color-light); padding: 18px 20px; border-radius: var(--radius); }
  .toc__cta { max-width: 320px; margin: 0 auto; }
  .chunk--alt { padding: 22px 20px 8px; }
  .chunk--stat { padding: 30px 22px; margin: 28px 0; }
  .solution-card { padding: 22px 20px 6px; }
  .form { grid-template-columns: 1fr; }
  .site-footer__main { grid-template-columns: 1fr 1fr; }
  .site-footer__areas { grid-template-columns: 1fr; }
  .site-footer__areas ul { columns: 1; }
  .hero { padding: 60px 0 66px; }
  .section { padding: 48px 0; }
  .site-footer__certs { gap: 26px; padding: 24px 20px; }
  .site-footer__certs img { height: 44px; }
}

@media (max-width: 560px) {
  .site-footer__main { grid-template-columns: 1fr; }
  .site-header__logo img { width: 150px; }
}
