/* Cert Energy. Charcoal + the logo's teal, green and lime. Photo-led like the big EfW operators; leaf-shaped image corners echo the logo mark. */
:root {
  --charcoal: #26282b;
  --charcoal-2: #333539;
  --grey: #454546;
  --ink: #23262a;
  --ink-soft: #565b61;
  --teal: #6ecac8;
  --green: #4fbd8c;
  --lime: #aed468;
  --lime-hover: #9cc853;
  --green-deep: #1d6b50;
  --green-deep-hover: #165641;
  --paper: #ffffff;
  --mist: #f3f7f5;
  --line: #dfe7e3;
  --brand-grad: linear-gradient(90deg, var(--teal), var(--green) 50%, var(--lime));
  --display: "Poppins", "Segoe UI", Arial, sans-serif;
  --body: "DM Sans", "Segoe UI", Arial, sans-serif;
  --wrap: 1200px;
  --leaf: 72px 8px 72px 8px;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.65;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--green-deep); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--teal);
  outline-offset: 2px;
}
.wrap { max-width: var(--wrap); margin: 0 auto; padding-inline: 20px; }

h1, h2, h3, h4 { font-family: var(--display); line-height: 1.12; margin: 0; text-wrap: balance; color: inherit; }
h1 { font-size: clamp(2.4rem, 6vw, 4.2rem); font-weight: 700; letter-spacing: -0.025em; }
h2 { font-size: clamp(1.9rem, 3.8vw, 2.8rem); font-weight: 700; letter-spacing: -0.02em; }
h3 { font-size: 1.35rem; font-weight: 600; letter-spacing: -0.01em; }
p { margin: 0; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--display);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green-deep);
}
.eyebrow::before { content: ""; width: 28px; height: 4px; border-radius: 2px; background: var(--brand-grad); }
.on-dark .eyebrow, .hero .eyebrow { color: var(--lime); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px;
  padding: 0 26px;
  border-radius: 999px;
  border: 0;
  font-family: var(--display);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease;
  background: var(--green-deep);
  color: #fff;
}
.btn:hover { background: var(--green-deep-hover); }
.btn-lime { background: var(--lime); color: var(--charcoal); }
.btn-lime:hover { background: var(--lime-hover); }
.btn-outline { background: transparent; color: #fff; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.7); }
.btn-outline:hover { background: rgba(255, 255, 255, 0.1); }
.btn svg { width: 18px; height: 18px; }
.link-arrow { font-family: var(--display); font-weight: 600; text-decoration: none; color: var(--green-deep); display: inline-flex; gap: 8px; align-items: center; transition: gap 0.15s ease; }
.service:hover .link-arrow, .link-arrow:hover { gap: 12px; }

/* ---------- Top bar + header ---------- */
.topbar { background: var(--charcoal); color: #c9cdd1; font-size: 0.92rem; }
.topbar .wrap { display: flex; justify-content: space-between; align-items: center; gap: 12px 24px; padding-block: 8px; flex-wrap: wrap; }
.topbar .contacts { display: flex; gap: 20px; flex-wrap: wrap; }
.topbar a { color: #fff; text-decoration: none; font-weight: 500; }
.topbar a:hover { color: var(--lime); }

.site-header {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 20;
  background: rgba(255, 255, 255, 0.97);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 80px; position: relative; }
.logo img { height: 50px; width: auto; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  font-family: var(--display);
  font-size: 0.97rem;
  font-weight: 500;
  text-decoration: none;
  color: var(--ink);
  padding: 10px 14px;
  border-radius: 999px;
}
.nav a:hover { background: var(--mist); }
.nav a[aria-current="page"] { color: var(--green-deep); background: var(--mist); }
.nav a.btn { margin-left: 10px; padding: 0 22px; color: var(--charcoal); background: var(--lime); }
.nav a.btn:hover { background: var(--lime-hover); }
.menu-toggle {
  display: none;
  background: var(--mist); border: 0; border-radius: 999px;
  padding: 10px 18px; font: 600 0.95rem var(--display); color: var(--ink); cursor: pointer;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  color: #fff;
  background-color: var(--charcoal);
  background-image:
    linear-gradient(95deg, rgba(30, 32, 35, 0.95) 0%, rgba(30, 32, 35, 0.82) 42%, rgba(30, 32, 35, 0.25) 100%),
    var(--photo, none);
  background-size: cover;
  background-position: center, var(--pos, center);
  overflow: hidden;
}
.hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 6px; background: var(--brand-grad); }
.hero .wrap { position: relative; display: grid; gap: 22px; padding-block: clamp(72px, 11vw, 140px) clamp(96px, 12vw, 160px); }
.hero h1 { max-width: 15ch; }
.hero h1 em { font-style: normal; background: var(--brand-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lead { font-size: clamp(1.1rem, 1.6vw, 1.25rem); max-width: 38rem; color: #dfe3e6; }
.hero .actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 8px; }
.page-hero .wrap { padding-block: clamp(60px, 8vw, 100px); }
.page-hero h1 { max-width: 18ch; }
@media (max-width: 700px) {
  .hero { background-image: linear-gradient(rgba(30, 32, 35, 0.84), rgba(30, 32, 35, 0.84)), var(--photo, none); }
}

/* ---------- At a glance ---------- */
.glance { position: relative; z-index: 2; margin-top: -64px; }
.glance-grid {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  background: var(--paper);
  border-radius: 16px;
  box-shadow: 0 18px 50px rgba(30, 32, 35, 0.14);
  overflow: hidden;
}
.glance-item { padding: 28px 26px; display: grid; gap: 8px; align-content: start; border-right: 1px solid var(--line); }
.glance-item:last-child { border-right: 0; }
.glance-item svg { width: 34px; height: 34px; color: var(--green); }
.glance-item strong { font-family: var(--display); font-size: 1.3rem; font-weight: 700; line-height: 1.2; }
.glance-item span { color: var(--ink-soft); font-size: 0.97rem; }

/* ---------- Sections ---------- */
section.block { padding-block: clamp(64px, 9vw, 110px); }
section.block.tint { background: var(--mist); }
.section-head { display: grid; gap: 14px; margin-bottom: 40px; max-width: 46rem; }
.section-head p { color: var(--ink-soft); font-size: 1.1rem; }

/* Service cards */
.services { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
.service {
  display: grid;
  grid-template-rows: auto 1fr;
  background: var(--paper);
  border-radius: 20px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 1px 0 var(--line), 0 10px 30px rgba(30, 32, 35, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.service:hover { transform: translateY(-4px); box-shadow: 0 1px 0 var(--line), 0 20px 44px rgba(30, 32, 35, 0.12); }
.service .img { aspect-ratio: 16 / 10; overflow: hidden; position: relative; }
.service .img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.service:hover .img img { transform: scale(1.04); }
.service .tag { position: absolute; left: 18px; top: 18px; background: var(--paper); color: var(--green-deep); font-family: var(--display); font-weight: 600; font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; padding: 6px 12px; border-radius: 999px; }
.service .body { padding: 28px; display: grid; gap: 12px; align-content: start; }
.service .body p { color: var(--ink-soft); }

/* Split text + image */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(36px, 6vw, 80px); align-items: center; }
.split .text { display: grid; gap: 18px; min-width: 0; }
.split .text p { color: var(--ink-soft); }
.media { min-width: 0; display: grid; }
.leaf-img { border-radius: var(--leaf); overflow: hidden; aspect-ratio: 4 / 3; max-width: 100%; }
.leaf-img img { width: 100%; height: 100%; object-fit: cover; }
.leaf-img.tall { aspect-ratio: 4 / 5; max-width: 460px; justify-self: center; width: 100%; }

/* Badge collage (round photos from the original site) */
.badges { position: relative; aspect-ratio: 1 / 0.9; max-width: 520px; width: 100%; justify-self: center; }
.badges img { position: absolute; border-radius: 50%; object-fit: cover; aspect-ratio: 1; border: 8px solid var(--paper); box-shadow: 0 14px 34px rgba(30, 32, 35, 0.16); }
.badges .b1 { width: 56%; left: 0; top: 4%; z-index: 2; }
.badges .b2 { width: 44%; right: 2%; top: 0; }
.badges .b3 { width: 46%; right: 8%; bottom: 0; z-index: 3; }
.badges::before { content: ""; position: absolute; width: 32%; aspect-ratio: 1; left: 10%; bottom: 0; border-radius: 0 70% 0 70%; background: var(--brand-grad); }

/* Why cards */
.why { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.why-card { background: var(--paper); border-radius: 16px; padding: 28px 24px; display: grid; gap: 12px; align-content: start; border: 1px solid var(--line); }
.why-card .ic { width: 52px; height: 52px; border-radius: 16px 4px 16px 4px; display: grid; place-items: center; background: #e5f5ec; color: var(--green-deep); }
.why-card .ic svg { width: 26px; height: 26px; }
.why-card p { color: var(--ink-soft); font-size: 0.98rem; }

/* Tick list */
.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.ticks li { position: relative; padding-left: 36px; color: var(--ink); }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: 2px;
  width: 24px; height: 24px; border-radius: 50%;
  background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12l4 4 8-8'/%3E%3C/svg%3E") center / 15px no-repeat;
}

/* Gallery */
.gallery { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 18px; }
.gallery figure { margin: 0; position: relative; border-radius: 16px; overflow: hidden; background: var(--charcoal); min-width: 0; }
.gallery figure:first-child { border-radius: var(--leaf); }
.gallery img { width: 100%; height: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.gallery figure:nth-child(2) img { object-position: center 60%; }
.gallery figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 36px 20px 16px;
  background: linear-gradient(transparent, rgba(30, 32, 35, 0.85));
  color: #fff; font-family: var(--display); font-weight: 600;
}

/* Sustainability band */
.impact { background: var(--charcoal); color: #fff; }
.impact .wrap { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 48px; align-items: center; padding-block: clamp(64px, 9vw, 110px); }
.impact .text { display: grid; gap: 18px; min-width: 0; }
.impact .text > p { color: #c9cdd1; font-size: 1.1rem; }
.impact .points { display: grid; gap: 12px; }
.impact .point { display: flex; gap: 14px; align-items: center; background: var(--charcoal-2); border-radius: 14px; padding: 16px 18px; color: #e3e6e8; }
.impact .dot { width: 14px; height: 14px; border-radius: 0 70% 0 70%; flex: none; }
.impact .leaves { width: min(100%, 320px); justify-self: center; }

/* CTA band */
.cta-band { background: var(--brand-grad); color: var(--charcoal); }
.cta-band .wrap { padding-block: 56px; display: flex; justify-content: space-between; align-items: center; gap: 28px; flex-wrap: wrap; }
.cta-band p { margin-top: 8px; font-size: 1.1rem; color: #24302a; }
.cta-band .actions { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.cta-band .btn { background: var(--charcoal); color: #fff; }
.cta-band .btn:hover { background: #000; }
.cta-band .tel { font-family: var(--display); font-weight: 700; font-size: 1.45rem; color: var(--charcoal); text-decoration: none; }

/* ---------- Contact ---------- */
.contact { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: clamp(32px, 6vw, 88px); align-items: start; }
.contact-intro { display: grid; gap: 18px; min-width: 0; }
.contact-title { font-size: clamp(2.1rem, 4.4vw, 3.3rem); }
.lead-dark { font-size: 1.15rem; color: var(--ink-soft); max-width: 36rem; }
.contact-list { border-top: 1px solid var(--line); margin-top: 10px; }
.contact-list a, .contact-list div { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding: 18px 0; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.contact-list span { color: var(--ink-soft); }
.contact-list strong { font-family: var(--display); font-weight: 600; font-size: 1.2rem; color: var(--ink); overflow-wrap: anywhere; }
.contact-list a:hover strong { color: var(--green-deep); }
form.enquiry { position: relative; background: var(--paper); border-radius: 20px; padding: clamp(22px, 4vw, 40px); padding-top: calc(clamp(22px, 4vw, 40px) + 6px); display: grid; gap: 22px; box-shadow: 0 1px 0 var(--line), 0 18px 50px rgba(30, 32, 35, 0.1); min-width: 0; overflow: hidden; }
form.enquiry::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 6px; background: var(--brand-grad); }
fieldset { border: 0; padding: 0; margin: 0; }
legend { font-weight: 600; margin-bottom: 10px; padding: 0; }
.roles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.roles label { position: relative; }
.roles input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.roles span { display: flex; align-items: center; justify-content: center; text-align: center; min-height: 52px; padding: 8px; border: 1px solid #c3cfc9; border-radius: 999px; font-weight: 600; font-size: 0.95rem; }
.roles input:checked + span { background: var(--charcoal); color: #fff; border-color: var(--charcoal); }
.roles input:focus-visible + span { outline: 3px solid var(--teal); outline-offset: 2px; }
.fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.fields .full { grid-column: 1 / -1; }
.field { display: grid; gap: 6px; }
label { font-weight: 600; font-size: 0.95rem; }
input, select, textarea {
  font: inherit; width: 100%;
  padding: 12px 14px;
  border: 1px solid #c3cfc9;
  border-radius: 10px;
  background: var(--mist);
  color: var(--ink);
}
textarea { min-height: 130px; resize: vertical; }
.hidden-field { display: none; }
.form-note { font-size: 0.9rem; color: var(--ink-soft); }
.form-status { font-weight: 600; color: var(--green-deep); }

/* ---------- Footer ---------- */
.site-footer { background: #1c1e20; color: #aeb4b9; font-size: 0.97rem; }
.site-footer .wrap { padding-block: 60px 28px; display: grid; gap: 36px; }
.footer-cols { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 32px; }
.footer-cols > div { min-width: 0; }
.footer-logo { height: 54px; width: auto; margin-bottom: 14px; }
.site-footer h4 { color: #fff; font-size: 1rem; margin: 0 0 12px; }
.site-footer a { color: #e3e6e8; text-decoration: none; overflow-wrap: anywhere; }
.site-footer a:hover { color: var(--lime); }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer-base { border-top: 1px solid #34373a; padding-top: 20px; font-size: 0.9rem; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.footer-stripe { height: 6px; background: var(--brand-grad); }

/* ---------- Mobile call bar ---------- */
.callbar { display: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .why { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .glance-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .glance-item:nth-child(2) { border-right: 0; }
  .glance-item:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}
@media (max-width: 900px) {
  .menu-toggle { display: inline-block; }
  .nav {
    display: none;
    position: absolute; left: 0; right: 0; top: 100%;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    flex-direction: column; align-items: stretch;
    padding: 10px 20px 20px;
    box-shadow: 0 14px 30px rgba(30, 32, 35, 0.1);
  }
  .nav.open { display: flex; }
  .nav a { padding: 14px 12px; }
  .nav a.btn { margin: 10px 0 0; }
  .services, .split, .contact, .footer-cols, .impact .wrap, .gallery { grid-template-columns: minmax(0, 1fr); }
  .split .media { order: -1; }
  .impact .leaves { display: none; }
}
@media (max-width: 640px) {
  .callbar {
    display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
    background: var(--charcoal);
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom, 0px));
  }
  .callbar .btn { min-height: 46px; padding: 0 12px; }
  body { padding-bottom: 72px; }
  .topbar .note { display: none; }
}
@media (max-width: 560px) {
  .fields, .roles, .why, .glance-grid { grid-template-columns: minmax(0, 1fr); }
  .glance-item { border-right: 0; border-bottom: 1px solid var(--line); }
  .glance-item:nth-child(2) { border-bottom: 1px solid var(--line); }
  .glance-item:last-child { border-bottom: 0; }
  .logo img { height: 42px; }
  .topbar .email { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}

/* fixes */
.link-arrow svg { width: 18px; height: 18px; flex: none; }
.badges img { height: auto; }
.badges .b1 { width: 54%; left: 0; top: 6%; }
.badges .b2 { width: 42%; right: 0; top: 0; }
.badges .b3 { width: 44%; right: 12%; bottom: 0; }

/* Two-up cards (Cert Energy page) */
.duo { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.duo-card { background: var(--paper); border: 1px solid var(--line); border-radius: 20px; padding: 32px; display: grid; gap: 14px; align-content: start; position: relative; overflow: hidden; }
.duo-card::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 6px; background: var(--brand-grad); }
.duo-card p { color: var(--ink-soft); }
@media (max-width: 700px) { .duo { grid-template-columns: minmax(0, 1fr); } }

/* Header scrolls away with the page instead of staying fixed */
.site-header { position: relative; top: auto; background: var(--paper); }

/* ---------- Floating menu button (appears after scrolling) ---------- */
.float-menu {
  position: fixed; z-index: 40;
  top: calc(env(safe-area-inset-top, 0px) + 14px); right: 16px;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 18px;
  border: 0; border-radius: 999px;
  background: var(--charcoal); color: #fff;
  font: 600 0.95rem var(--display);
  cursor: pointer;
  box-shadow: 0 10px 28px rgba(30, 32, 35, 0.28);
  opacity: 0; transform: translateY(-14px); pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.float-menu svg { width: 20px; height: 20px; }
.float-menu::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 6px; height: 2px; border-radius: 1px; background: var(--brand-grad); opacity: 0.9; }
body.scrolled .float-menu { opacity: 1; transform: none; pointer-events: auto; }
.float-panel {
  position: fixed; z-index: 40;
  top: calc(env(safe-area-inset-top, 0px) + 72px); right: 16px;
  width: min(300px, calc(100vw - 32px));
  background: var(--paper);
  border-radius: 18px;
  box-shadow: 0 20px 50px rgba(30, 32, 35, 0.22);
  padding: 10px;
  display: none; gap: 2px;
}
.float-panel.open { display: grid; }
.float-panel a { padding: 12px 14px; border-radius: 12px; text-decoration: none; color: var(--ink); font-family: var(--display); font-weight: 500; }
.float-panel a:hover { background: var(--mist); }
.float-panel a.btn { margin-top: 6px; justify-content: center; color: var(--charcoal); background: var(--lime); font-weight: 600; }

/* ---------- Energy Projects + plain cards ---------- */
.service .img.plain { background: var(--charcoal); display: grid; place-items: center; }
.service .img.plain .leaves { width: 38%; height: auto; transition: transform 0.4s ease; }
.service:hover .img.plain .leaves { transform: scale(1.06); }
.services { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 1000px) { .services { grid-template-columns: minmax(0, 1fr); } }
.hero .hero-leaves { position: absolute; right: max(4vw, 20px); bottom: 24px; width: min(30vw, 280px); height: auto; opacity: 0.9; pointer-events: none; }
@media (max-width: 700px) { .hero .hero-leaves { opacity: 0.18; } }
.asset-panel { background: var(--charcoal); color: #fff; border-radius: var(--leaf); padding: clamp(28px, 5vw, 48px); display: grid; gap: 20px; justify-items: start; }
.asset-panel .leaves { width: 96px; height: auto; }
.asset-panel p { color: #dfe3e6; font-size: 1.15rem; }
.contact-intro h2 { font-size: clamp(1.8rem, 3.4vw, 2.4rem); }

/* ---------- Hero slideshow ---------- */
.hero.has-slides { background-image: none; }
.hero-slides { position: absolute; inset: 0; z-index: 0; }
.hero-slides .hs { position: absolute; inset: 0; background-size: cover; opacity: 0; transform: scale(1.06); transition: opacity 1.4s ease, transform 8s ease-out; }
.hero-slides .hs.on { opacity: 1; transform: scale(1); }
.hero-slides::after { content: ""; position: absolute; inset: 0; background: linear-gradient(95deg, rgba(30, 32, 35, 0.95) 0%, rgba(30, 32, 35, 0.8) 42%, rgba(30, 32, 35, 0.28) 100%); }
.hero .wrap { z-index: 2; }
.hero::after { z-index: 3; }
.hero-dots { position: absolute; z-index: 3; right: max(20px, calc((100vw - 1200px) / 2 + 20px)); bottom: 84px; display: flex; gap: 8px; }
.hero-dots .hd { width: 10px; height: 10px; padding: 0; border-radius: 999px; border: 0; background: rgba(255, 255, 255, 0.45); cursor: pointer; transition: width 0.3s ease, background 0.3s ease; }
.hero-dots .hd.on { width: 28px; background: var(--lime); }
@media (max-width: 700px) {
  .hero-slides::after { background: rgba(30, 32, 35, 0.8); }
  .hero-dots { bottom: 24px; right: 20px; }
}
@media (prefers-reduced-motion: reduce) { .hero-slides .hs { transition: none; transform: none; } }

/* ---------- Photo carousel ---------- */
.carousel { position: relative; display: grid; gap: 18px; }
.carousel .track {
  display: grid; grid-auto-flow: column; grid-auto-columns: min(80%, 380px);
  gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  scrollbar-width: none; padding-bottom: 4px; overscroll-behavior-x: contain;
}
.carousel .track::-webkit-scrollbar { display: none; }
.carousel figure { margin: 0; position: relative; scroll-snap-align: start; border-radius: 18px; overflow: hidden; background: var(--charcoal); aspect-ratio: 3 / 4; }
.carousel figure:first-child { border-radius: var(--leaf); }
.carousel img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.carousel figure:hover img { transform: scale(1.04); }
.carousel figcaption, .photo-grid figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 18px 16px;
  background: linear-gradient(transparent, rgba(30, 32, 35, 0.88));
  color: #fff; font-family: var(--display); font-weight: 600;
}
.car-nav { display: flex; gap: 10px; justify-content: flex-end; }
.car-btn { width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line); background: var(--paper); color: var(--ink); display: grid; place-items: center; cursor: pointer; transition: background 0.15s ease; }
.car-btn:hover { background: var(--lime); border-color: var(--lime); }
.car-btn svg { width: 22px; height: 22px; }
.dark-band { background: var(--charcoal); color: #fff; }
.dark-band .eyebrow { color: var(--lime); }
.dark-band .section-head p { color: #c9cdd1; }
.dark-band .car-btn { background: var(--charcoal-2); border-color: #45484c; color: #fff; }
.dark-band .car-btn:hover { background: var(--lime); color: var(--charcoal); }

/* ---------- Photo grid (Our Work) ---------- */
.photo-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.photo-grid figure { margin: 0; position: relative; border-radius: 18px; overflow: hidden; background: var(--charcoal); aspect-ratio: 3 / 4; }
.photo-grid figure:nth-child(1) { grid-column: span 2; aspect-ratio: auto; border-radius: var(--leaf); }
.photo-grid img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 860px) { .photo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .photo-grid { grid-template-columns: minmax(0, 1fr); } .photo-grid figure:nth-child(1) { grid-column: auto; aspect-ratio: 3 / 4; } }

/* ---------- What we handle (Waste Management) ---------- */
.handles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.handles figure { margin: 0; background: var(--paper); border-radius: 18px; overflow: hidden; border: 1px solid var(--line); display: grid; grid-template-rows: auto 1fr; }
.handles img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.handles figcaption { padding: 20px 22px 24px; display: grid; gap: 6px; }
.handles strong { font-family: var(--display); font-size: 1.15rem; }
.handles span { color: var(--ink-soft); font-size: 0.97rem; }
@media (max-width: 860px) { .handles { grid-template-columns: minmax(0, 1fr); } }
.hero { isolation: isolate; z-index: 0; }

/* More fuels (Cert Energy page) */
.fuel-more { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; margin-top: 22px; }
.fuel-item { background: var(--paper); border: 1px solid var(--line); border-radius: 18px; padding: 24px 22px; display: grid; gap: 8px; align-content: start; position: relative; overflow: hidden; }
.fuel-item::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: var(--brand-grad); }
.fuel-item h3 { font-size: 1.15rem; }
.fuel-item p { color: var(--ink-soft); font-size: 0.97rem; }
@media (max-width: 860px) { .fuel-more { grid-template-columns: minmax(0, 1fr); } }
.fuel-item.wide { grid-column: 1 / -1; }
.fuel-item.wide p { max-width: 60rem; }

/* Our Work grid: large first photo spans two rows so the grid has no gaps */
.photo-grid figure:nth-child(1) { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; }
.photo-grid figure:nth-child(1) img { position: absolute; inset: 0; }
@media (max-width: 520px) { .photo-grid figure:nth-child(1) { grid-row: auto; aspect-ratio: 3 / 4; } .photo-grid figure:nth-child(1) img { position: static; } }
@media (max-width: 860px) {
  .photo-grid figure:nth-child(1) { grid-row: auto; aspect-ratio: 4 / 3; }
  .photo-grid figure:nth-child(1) img { position: static; }
}
@media (max-width: 520px) {
  .photo-grid figure:nth-child(1) { grid-column: auto; aspect-ratio: 3 / 4; }
}

/* Aggregates card with photo */
.fuel-item.with-photo { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); padding: 0; gap: 0; align-items: stretch; }
.fuel-item.with-photo img { width: 100%; height: 100%; min-height: 260px; object-fit: cover; }
.fuel-item.with-photo .txt { padding: 32px; display: grid; gap: 10px; align-content: center; }
.fuel-item.with-photo h3 { font-size: 1.35rem; }
@media (max-width: 700px) { .fuel-item.with-photo { grid-template-columns: minmax(0, 1fr); } .fuel-item.with-photo img { aspect-ratio: 4 / 3; height: auto; min-height: 0; } .fuel-item.with-photo .txt { padding: 22px; } }
.fuel-item.with-photo img { height: auto; min-height: 0; aspect-ratio: 16 / 10; object-position: center 60%; }

/* v2: more menu items, so switch to the mobile menu a little earlier */
@media (max-width: 1199px) {
  .menu-toggle { display: inline-block; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--paper); border-bottom: 1px solid var(--line); flex-direction: column; align-items: stretch; padding: 10px 20px 20px; box-shadow: 0 14px 30px rgba(30, 32, 35, 0.1); }
  .nav.open { display: flex; }
  .nav a { padding: 14px 12px; }
  .nav a.btn { margin: 10px 0 0; }
}
/* v2 desktop menu: links spread evenly between the logo and the audit button */
@media (min-width: 1200px) {
  .site-header .wrap { gap: 40px; }
  .nav { flex: 1; justify-content: space-between; gap: 0; }
  .nav a { padding: 10px 4px; border-radius: 0; font-size: 0.95rem; position: relative; }
  .nav a:hover { background: none; color: var(--green-deep); }
  .nav a[aria-current="page"] { background: none; color: var(--green-deep); }
  .nav a[aria-current="page"]::after { content: ""; position: absolute; left: 4px; right: 4px; bottom: 2px; height: 3px; border-radius: 2px; background: var(--brand-grad); }
  .nav a.btn { margin-left: 12px; padding: 0 22px; border-radius: 999px; }
  .nav a.btn::after { display: none; }
}
.gallery figure img { aspect-ratio: 4 / 5; }
.gallery figure:first-child img { aspect-ratio: 4 / 5; }
