/* CEH Website V4.0 — shared components. One section per component, in the order of src/components/*.mjs.
   Ownership: anything rendered by src/components/*, by src/scripts/site.js, or used by more than one page type lives here;
   markup unique to one page type lives in pages.css. Fix rules in place: never append an override block. */

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font-body); font-size: var(--fs-body); line-height: var(--lh-body);
  color: var(--color-text); background: var(--color-bg); }
img { max-width: 100%; display: block; }
a { color: var(--color-link); text-underline-offset: 2px; }
:focus-visible { outline: 3px solid var(--color-focus); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: var(--sp-4); top: -60px; z-index: 100; background: var(--white); padding: var(--sp-2) var(--sp-4); }
.skip-link:focus { top: var(--sp-2); }

/* ---------- Typography ---------- */
h1, h2, h3, .display { font-family: var(--font-display); font-weight: var(--fw-bold); line-height: var(--lh-heading);
  margin: 0 0 var(--sp-3); letter-spacing: .01em; }
.display { font-size: var(--fs-display); line-height: var(--lh-tight); text-transform: uppercase; }
h1 { font-size: var(--fs-h1); text-transform: uppercase; }
h2 { font-size: var(--fs-h2); text-transform: uppercase; }
h3 { font-size: var(--fs-h3); }
p { margin: 0 0 var(--sp-4); }
.lead { font-size: var(--fs-lead); color: var(--color-text-muted); max-width: 62ch; }
.eyebrow { font-size: var(--fs-caption); font-weight: var(--fw-bold); letter-spacing: var(--tracking-caps);
  text-transform: uppercase; color: var(--eyebrow-fg, var(--green-700)); margin: 0 0 var(--sp-2); }
.muted { color: var(--color-text-muted); }
.small { font-size: var(--fs-small); }
.keep-case { text-transform: none; }   /* headings with model names keep exact casing (SE80Pro, ME55Pro, DT450E) */

/* ---------- Surfaces ----------
   The ONLY dark-surface mechanism. `.surface-dark` sets the background, the text colour and the context
   variables read by components (eyebrow, outline button, CMS slot). Because custom properties inherit, a light
   card nested in a dark band (`.surface-light`) simply resets them; no override-of-override rules. */
.surface-dark { background-color: var(--green-900); color: var(--white);
  --eyebrow-fg: var(--lime-400);
  --outline-fg: var(--white); --outline-border: rgba(255,255,255,.75); --outline-hover-bg: rgba(255,255,255,.1);
  --slot-fg: var(--on-dark-slot); --slot-bg: repeating-linear-gradient(135deg, rgba(255,255,255,.14) 0 6px, rgba(255,255,255,.07) 6px 12px); }
.surface-light { color: var(--color-text);
  --eyebrow-fg: initial; --outline-fg: initial; --outline-border: initial; --outline-hover-bg: initial; --slot-fg: initial; --slot-bg: initial; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--page-x); }
.section { padding: var(--section-y) 0; }
.section--alt { background: var(--color-bg-alt); }
.section--tight { padding: 28px 0; }
.section--first { padding-top: 12px; }
.narrow { max-width: 760px; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: var(--sp-4); flex-wrap: wrap; margin-bottom: var(--sp-6); }
.section-head > div { max-width: 720px; }
.grid { display: grid; gap: var(--gutter); }
.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; gap: var(--sp-4); }
.grid-4, .grid-6 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-4); }
@media (min-width: 768px) {
  .grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gutter); }
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gutter); }
  .grid-6 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gutter); }
}
@media (min-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .grid-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: var(--sp-4); }
}
.stack > * + * { margin-top: var(--sp-4); }
.split { display: grid; gap: var(--sp-8); }
@media (min-width: 1024px) { .split { grid-template-columns: 7fr 5fr; align-items: start; } }
.empty-state { border: 1px dashed var(--steel-300); border-radius: var(--radius-lg); padding: 28px; text-align: center; background: var(--white); }
.empty-state .btn-row { justify-content: center; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--sp-2); min-height: 44px;
  padding: 0 var(--sp-5); border-radius: var(--radius-md); border: 2px solid transparent; font: inherit;
  font-weight: var(--fw-bold); font-size: 0.9375rem; letter-spacing: .02em; text-transform: uppercase; text-decoration: none;
  cursor: pointer; transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease); white-space: nowrap; }
.btn--primary { background: var(--lime-400); color: var(--green-950); }            /* 5.5:1 */
.btn--primary:hover { background: var(--lime-300); }
.btn--green { background: var(--green-700); color: var(--white); }                 /* 8.32:1 — Download PDF, submit on light */
.btn--green:hover { background: var(--green-600); }
.btn--outline { background: transparent; color: var(--outline-fg, var(--green-700)); border-color: var(--outline-border, var(--green-700)); }
.btn--outline:hover { background: var(--outline-hover-bg, var(--green-100)); }
.btn--ghost { background: transparent; color: var(--green-700); padding: 0 var(--sp-2); }
.btn--sm { min-height: 36px; padding: 0 var(--sp-3); font-size: var(--fs-small); }
.btn--block { width: 100%; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .5; cursor: not-allowed; }
.btn-row { display: flex; flex-wrap: wrap; gap: var(--sp-3); }

/* ---------- Badges ---------- */
.badges { display: flex; gap: 6px; flex-wrap: wrap; }
.badge { display: inline-flex; align-items: center; gap: var(--sp-1); padding: 2px var(--sp-2); border-radius: var(--radius-sm);
  font-size: var(--fs-caption); font-weight: var(--fw-bold); letter-spacing: var(--tracking-caps); text-transform: uppercase; }
.badge--promo { background: var(--amber-400); color: var(--ink); }
.badge--rent { background: var(--green-100); color: var(--green-700); }
.badge--cat { background: var(--steel-100); color: var(--steel-700); }

/* ---------- CMS placeholder slot (util.mjs slot) ---------- */
.data-slot { display: inline-block; min-width: 72px; border-radius: 4px; padding: 0 8px; font-size: .85em; font-weight: 600;
  color: var(--slot-fg, var(--steel-600));
  background: var(--slot-bg, repeating-linear-gradient(135deg, var(--surface) 0 6px, var(--steel-100) 6px 12px)); }

/* =====================================================================
   layout.mjs — utility bar, header, equipment menu, drawer, breadcrumb, footer
   ===================================================================== */
.utility { background: var(--green-950); color: var(--steel-200); font-size: var(--fs-small); }
.utility .container { display: flex; gap: var(--sp-6); align-items: center; min-height: var(--utility-h); justify-content: flex-end; }
.utility a { color: var(--white); text-decoration: none; }
.utility .hide-sm { display: none; }
@media (min-width: 768px) { .utility .hide-sm { display: inline; } }

/* Header: white, because the approved logo only exists green-on-white */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--white); color: var(--green-900);
  box-shadow: 0 1px 0 var(--steel-200), 0 6px 16px rgba(5,39,26,.05); }
.site-header .container { display: flex; align-items: center; gap: var(--sp-4); min-height: var(--header-h-mobile); }
@media (min-width: 1024px) { .site-header .container { min-height: var(--header-h); } }
.logo { display: flex; align-items: center; text-decoration: none; flex: 0 0 auto; }
/* Logo: the supplied file is a 1254×1254 square with the mark at x121–1114, y502–767.
   It is displayed UNALTERED and cropped to the mark by CSS only (height must stay auto). */
.logo-crop { display: block; position: relative; overflow: hidden; width: 156px; aspect-ratio: 993 / 265; }
.logo-crop img { position: absolute; max-width: none; width: 126.28%; height: auto; left: -12.19%; top: -189.43%; }
@media (max-width: 767px) { .logo-crop { width: 116px; } }
.logo-plate { display: inline-block; background: var(--logo-plate); border-radius: var(--radius-md); padding: 10px 14px; }

.nav-primary { display: none; }
.nav-primary ul { list-style: none; margin: 0; padding: 0; display: flex; gap: var(--sp-1); }
/* Desktop links: 17px/700 from 1100px, 18px/700 with roomier hit areas from 1280px (owner request 2026-10-14: more prominent nav) */
.nav-primary a, .nav-primary button { display: inline-flex; align-items: center; gap: 4px; min-height: 44px; padding: 0 var(--sp-3);
  color: var(--green-900); text-decoration: none; font-weight: var(--fw-semibold); font-size: 0.9375rem; background: none; border: 0; font-family: inherit; cursor: pointer; border-radius: var(--radius-sm); }
.nav-primary > ul > li > a, .nav-primary > ul > li > button { font-size: 1.0625rem; font-weight: var(--fw-bold); min-height: 48px; }
@media (min-width: 1280px) { .nav-primary > ul > li > a, .nav-primary > ul > li > button { font-size: 1.125rem; padding: 0 var(--sp-4); } .nav-primary ul { gap: var(--sp-2); } }
.nav-primary a:hover, .nav-primary button:hover, .nav-primary [aria-current="page"] { background: var(--green-100); }
.nav-primary [aria-current="page"] { box-shadow: inset 0 -3px 0 var(--lime-400); }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: var(--sp-2); }
.list-link { position: relative; display: inline-flex; align-items: center; gap: var(--sp-2); min-height: 44px; padding: 0 var(--sp-3);
  color: var(--green-900); text-decoration: none; font-weight: var(--fw-semibold); border-radius: var(--radius-md); border: 1px solid var(--steel-300); font-size: 0.9375rem; }
.list-link .count { min-width: 22px; height: 22px; border-radius: 11px; background: var(--green-900); color: var(--white);
  font-size: 12px; font-weight: var(--fw-bold); display: inline-flex; align-items: center; justify-content: center; padding: 0 6px; }
.list-link .label { display: none; }
.header-quote { display: none; }
.menu-toggle { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; background: none;
  border: 1px solid var(--steel-300); border-radius: var(--radius-md); color: var(--green-900); cursor: pointer; }
@media (min-width: 1100px) {
  .nav-primary { display: block; margin-left: var(--sp-6); }
  .list-link .label { display: inline; }
  .header-quote { display: inline-flex; }
  .menu-toggle { display: none; }
}
/* Equipment dropdown (links inherit the nav link style) */
.has-menu { position: relative; }
.menu-panel { position: absolute; top: 100%; left: 0; min-width: 520px; background: var(--white); color: var(--ink); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-2); padding: var(--sp-4); display: none; grid-template-columns: 1fr 1fr; gap: var(--sp-1) var(--sp-4); }
.has-menu[data-open="true"] .menu-panel { display: grid; }
.menu-panel a { min-height: 40px; }
.menu-panel .all { grid-column: 1 / -1; border-top: var(--border); margin-top: var(--sp-2); padding-top: var(--sp-2); }
/* Mobile drawer */
.drawer { position: fixed; inset: 0; z-index: 60; display: none; }
.drawer[data-open="true"] { display: block; }
.drawer__scrim { position: absolute; inset: 0; background: rgba(10,35,26,.55); }
.drawer__panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(88vw, 380px); background: var(--white); overflow-y: auto; padding: var(--sp-4); }
.drawer__panel nav a { display: flex; justify-content: space-between; align-items: center; min-height: 48px; border-bottom: var(--border);
  color: var(--ink); text-decoration: none; font-weight: var(--fw-semibold); }
.drawer__panel .sub a { font-weight: var(--fw-regular); padding-left: var(--sp-4); min-height: 44px; }
.drawer__close { float: right; }
.drawer__ctas { clear: both; padding: 12px 0; }
.drawer__contact { margin-top: 16px; }

/* Breadcrumb */
.breadcrumb { font-size: var(--fs-small); color: var(--color-text-muted); padding: var(--sp-3) 0; }
.breadcrumb ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--sp-2); }
.breadcrumb li + li::before { content: "/"; margin-right: var(--sp-2); color: var(--steel-300); }

/* Footer */
.site-footer { background: var(--green-950); color: var(--steel-200); padding: var(--sp-12) 0 var(--sp-6); font-size: var(--fs-small); }
.site-footer h2 { font-size: 1rem; color: var(--white); letter-spacing: var(--tracking-caps); }
.site-footer a { color: var(--steel-200); text-decoration: none; }
.site-footer a:hover { color: var(--white); text-decoration: underline; }
.site-footer .social a { text-decoration: underline; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--sp-2); }
.footer-grid { display: grid; gap: var(--sp-8); grid-template-columns: 1fr 1fr; }
@media (min-width: 1024px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1.2fr; } }
.footer-grid .brand { grid-column: 1 / -1; }
@media (min-width: 1024px) { .footer-grid .brand { grid-column: auto; } }
.footer-tag { margin-top: 16px; max-width: 36ch; }
.footer-legal { border-top: 1px solid rgba(255,255,255,.12); margin-top: var(--sp-8); padding-top: var(--sp-4); display: flex; flex-wrap: wrap; gap: var(--sp-4); justify-content: space-between; }

/* =====================================================================
   cards.mjs — image well, price block, product card, category card, promo tile
   ===================================================================== */
/* Image well for product cut-outs (keeps mixed white/transparent backgrounds consistent) */
.photo-well { background: var(--photo-well); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.photo-well img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.photo-well--4x3 { aspect-ratio: 4 / 3; }
.photo-well--1x1 { aspect-ratio: 1; }
.photo-well--pd { aspect-ratio: 1; border: var(--border); border-radius: var(--radius-lg); }
/* CMS-managed product gallery (PbootCMS pics): wrapping thumbnail grid under the main photo (J20); renders nothing when the CMS has no gallery images.
   Desktop ~8 per row, tablet adapts, phones 4 per row; every photo stays visible (phones with many photos fold after two rows behind a visible "View all" button). */
.pd-thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(76px, 1fr)); gap: 8px; list-style: none; margin: 12px 0 0; padding: 0; }
.pd-thumbs:empty { display: none; }
.pd-thumbs[data-fold] { overflow: hidden; }
.pd-more[hidden] { display: none; }
.pd-thumb { display: block; width: 100%; aspect-ratio: 1; padding: 2px; background: var(--white); border: var(--border); border-radius: var(--radius-md); cursor: pointer; }
.pd-thumb img { width: 100%; height: 100%; object-fit: contain; }
.pd-thumb[aria-current="true"] { border-color: var(--green-700); box-shadow: 0 0 0 1px var(--green-700); }
.pd-more { display: block; width: 100%; margin: 10px 0 0; min-height: 44px; padding: 0 16px; border: 2px solid var(--green-700); border-radius: var(--radius-md); background: var(--white); color: var(--green-900); font: inherit; font-weight: 700; cursor: pointer; }
@media (max-width: 767px) {
  .pd-thumbs { grid-template-columns: repeat(4, 1fr); }
}
/* Main-photo lightbox (J20) */
.photo-well--pd { position: relative; }
.pd-zoom { position: absolute; right: 10px; bottom: 10px; min-height: 36px; padding: 0 12px; border: 0; border-radius: var(--radius-md); background: rgba(8, 56, 32, .85); color: #fff; font: inherit; font-size: .85rem; font-weight: 700; cursor: pointer; mix-blend-mode: normal; }
.pd-zoom:focus-visible, .pd-more:focus-visible { outline: 3px solid var(--lime-400); outline-offset: 2px; }
.lb { position: fixed; inset: 0; z-index: 200; display: none; background: rgba(0, 0, 0, .9); }
.lb[data-open] { display: block; }
.lb__stage { position: absolute; inset: 56px 64px; display: flex; align-items: center; justify-content: center; }
.lb__img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; background: #fff; border-radius: 4px; }
.lb__count { position: absolute; left: 0; right: 0; bottom: 14px; margin: 0; text-align: center; color: #fff; font-weight: 600; }
.lb__btn { position: absolute; display: flex; align-items: center; justify-content: center; width: 48px; height: 48px; border: 2px solid rgba(255, 255, 255, .85); border-radius: 50%; background: rgba(0, 0, 0, .55); color: #fff; font: 700 30px/1 system-ui, sans-serif; cursor: pointer; padding: 0 0 4px; }
.lb__btn:hover { background: rgba(0, 0, 0, .8); }
.lb__btn:focus-visible { outline: 3px solid var(--lime-400); outline-offset: 2px; }
.lb__btn[hidden] { display: none; }
.lb__close { top: 10px; right: 10px; padding: 0 0 3px; font-size: 34px; }
.lb__prev { left: 8px; top: 50%; transform: translateY(-50%); }
.lb__next { right: 8px; top: 50%; transform: translateY(-50%); }
html.lb-open, html.lb-open body { overflow: hidden; }
@media (max-width: 767px) { .lb__stage { inset: 56px 8px 44px; } .lb__prev, .lb__next { top: auto; bottom: 0; transform: none; } .lb__prev { left: 16px; } .lb__next { right: 16px; } }
/* CMS product description: the column (and the two-column split) disappears when the CMS description is empty. */
.split:has(> [data-cms-desc] > p:empty) { display: block; }
[data-cms-desc]:has(> p:empty) { display: none; }
@media (min-width: 1024px) { .photo-well--pd { aspect-ratio: 5 / 4; } }
.photo-well--thumb { width: 88px; height: 56px; aspect-ratio: auto; border-radius: 6px; }
/* Pending tile: clearly marked "photo pending". Always 4:3 whatever ratio was requested (approved appearance),
   so this rule must stay after the ratio modifiers. */
.photo-pending { display: flex; flex-direction: column; gap: 4px; align-items: center; justify-content: center; text-align: center;
  background: var(--photo-well); color: var(--steel-600); font-size: 12px; padding: 12px; border-bottom: var(--border); aspect-ratio: 4 / 3; }
.photo-pending.photo-well--thumb { padding: 0; border: 1px dashed var(--steel-300); }
.photo-pending.photo-well--pd { border: 1px dashed var(--steel-300); }
.photo-pending b { font-family: var(--font-display); font-size: 20px; color: var(--steel-300); letter-spacing: .08em; }

/* Price block (3 CMS states: regular · promotional · hidden → "Price on request") */
.price { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--sp-2); }
.price__now { font-family: var(--font-display); font-size: 1.625rem; font-weight: var(--fw-bold); color: var(--ink); }
.price__cur { font-size: .52em; margin-right: .05em; }   /* "CA$" prefix: smaller, so the amount keeps the width of the approved "$10,900" */
.product-card .price { column-gap: var(--sp-1); }   /* 4px between amount and "+ tax": "CA$10,900 + tax" still fits one line in two-column phone cards */
@media (max-width: 380px) { .product-card .price__now { font-size: 1.5rem; } }   /* 375px phones: card inner width is ~134px; keeps "CA$10,900 + tax" on one line */
.price__was { color: var(--steel-500); text-decoration: line-through; font-size: var(--fs-small); }
.price__tax { color: var(--steel-600); font-size: var(--fs-small); }
.price__rfq { font-weight: var(--fw-bold); color: var(--green-700); }
.price--lg .price__now { font-size: 2.25rem; }

/* Cards */
.card { background: var(--white); border: var(--border); border-radius: var(--radius-lg); overflow: hidden; display: flex; flex-direction: column;
  transition: box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease); }
.product-card[hidden] { display: none; }   /* category "Available to rent" filter */
.card:hover { box-shadow: var(--shadow-2); border-color: var(--steel-300); }
.card__media { display: block; text-decoration: none; color: inherit; }
.card__body { padding: var(--sp-4); display: flex; flex-direction: column; gap: var(--sp-2); flex: 1; }
.card__title { font-family: var(--font-display); font-size: 1.375rem; font-weight: var(--fw-bold); margin: 0; line-height: 1.15; }
.card__title a { color: var(--ink); text-decoration: none; }
.card__title a:hover { color: var(--green-700); }
.card__actions { display: flex; gap: var(--sp-2); margin-top: auto; padding-top: var(--sp-2); }
.card__actions .btn { flex: 1 1 auto; padding-inline: var(--sp-3); white-space: normal; text-align: center; }   /* sized by label; wraps only when the card is too narrow, never clips */
@media (max-width: 479px) { .card__actions { flex-direction: column; } }
.card__engine { margin: 0; font-size: var(--fs-small); color: var(--steel-700); }   /* verified engine only (productCard) */
.card__engine span { font-size: .75rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--steel-600); margin-right: 4px; }
/* Category card */
.cat-card { text-decoration: none; color: var(--ink); }
.cat-card .card__body { flex-direction: row; justify-content: space-between; align-items: center; padding: 12px 14px; }
.cat-card strong { display: block; font-family: var(--font-display); font-size: 1.2rem; text-transform: uppercase; color: var(--green-900); line-height: 1.1; }
.cat-card .arrow { width: 32px; height: 32px; flex: 0 0 auto; border-radius: 16px; background: var(--green-100); color: var(--green-900); display: inline-flex; align-items: center; justify-content: center; font-weight: 700; }
.cat-card:hover .arrow { background: var(--lime-400); color: var(--green-950); }
/* Homepage category entry card (categoryFeature): one link per card */
.cat-feature { text-decoration: none; color: var(--ink); }
.cat-feature .card__body { gap: var(--sp-3); }
.cat-feature h3 { margin: 0; font-family: var(--font-display); font-size: 1.375rem; text-transform: uppercase; color: var(--green-900); line-height: 1.1; }
.cat-feature .btn { align-self: flex-start; margin-top: auto; max-width: 100%; white-space: normal; text-align: center; }
@media (max-width: 479px) { .cat-feature .btn { align-self: stretch; padding: 0 var(--sp-2); } }
.cat-features { grid-auto-rows: 1fr; }   /* both rows of the 2×2 phone/tablet layout share one height */
.cat-feature:hover .btn { background: var(--green-600); }
/* Attachment type tile (attachmentTile): reference photo + type name, non-transactional */
.att-tile { margin: 0; }
.att-tile figcaption { font-weight: 700; color: var(--green-900); }
/* Approved promo tiles (images contain their own headline + "Learn more"; used whole, never cropped) */
.promo-tile { display: block; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-1); transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease); }
.promo-tile img { width: 100%; height: auto; aspect-ratio: 3 / 2; }
.promo-tile:hover { transform: translateY(-2px); box-shadow: var(--shadow-2); }
.promo-tile + p { margin-top: 10px; }

/* =====================================================================
   sections.mjs — heroes, referral band, why CEH, reviews, quote + location, embeds, CTA band, spec table
   ===================================================================== */
/* Homepage hero — approved panorama shown full width and UNCROPPED on desktop (file untouched).
   Desktop: copy sits in the image's open sky plus a short sky-coloured extension above it; a masked overlay
   blends the seam; the machines (lower ~2/3 of the image) are never covered.
   Mobile: compact copy band above a taller, centred display-only crop.
   Social icons: top-right, aligned with the container edge — over the hero's open sky on desktop (hero = containing
   block), over the top of the image below the copy band on smaller screens (.home-hero__media = containing block). */
.home-hero { position: relative; overflow: hidden; background-color: var(--sky-500); }
.home-hero__copy { position: relative; z-index: 2; }
.home-hero__copy .display { color: var(--green-900); margin-bottom: 10px; }
.home-hero__copy .eyebrow { color: var(--green-900); }
.home-hero__copy .lead { color: var(--green-900); font-weight: 500; max-width: 56ch; }
.home-hero__img { position: relative; display: block; width: 100%; height: auto; }
/* J17 hero refinement (owner): ~15-20% less empty sky above the line-up. The full-width panorama is kept; only its empty top strip is cropped (machines start ~33% down the image, never touched) and the sky extension above it is shortened. */
.home-hero__img { aspect-ratio: 2048 / 965; object-fit: cover; object-position: 50% 100%; }
.home-hero__social { position: absolute; z-index: 3; top: 12px; right: max(var(--page-x), calc((100% - var(--container)) / 2 + var(--page-x)));
  display: flex; flex-direction: column; align-items: flex-end; }
.home-hero__social-label { display: none; }
.social-icons { display: flex; gap: 10px; list-style: none; margin: 0; padding: 0; }
.social-icon { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%;
  color: var(--white); box-shadow: 0 2px 6px rgba(0,0,0,.3); transition: transform var(--dur) var(--ease); }
.social-icon:hover { transform: translateY(-2px); }
.social-icon svg { width: 18px; height: 18px; fill: currentColor; }
.social-icon--youtube { background: var(--brand-youtube); }
.social-icon--instagram { background: var(--brand-instagram); }
.social-icon--facebook { background: var(--brand-facebook); }
.social-icon--whatsapp { background: var(--brand-whatsapp); }
@media (max-width: 1023px) {
  .home-hero__media { position: relative; }
  .home-hero__copy { padding: 18px 0 14px; background: var(--sky-150) linear-gradient(180deg, var(--sky-100) 0%, var(--sky-200) 100%); }
  .home-hero__copy .display { font-size: clamp(1.9rem, 1.2rem + 3.2vw, 2.4rem); margin-bottom: 8px; }
  .home-hero__copy .lead { font-size: 1rem; line-height: 1.45; margin-bottom: 12px; }
  .home-hero__copy .btn-row { flex-wrap: nowrap; gap: 8px; }
  .home-hero__copy .btn { flex: 1; padding: 0 10px; }
}
@media (max-width: 389px) {   /* 360–375 px phones: the two hero buttons do not fit side by side → stack them */
  .home-hero__copy .btn-row { flex-wrap: wrap; }
  .home-hero__img { aspect-ratio: 16 / 10; object-fit: cover; object-position: 46% 78%; }
}
@media (min-width: 1024px) {
  .home-hero { --ext: clamp(72px, 6.4vw, 104px); padding-top: var(--ext);
    background-image: linear-gradient(90deg, var(--sky-300) 0%, var(--sky-400) 25%, var(--sky-500) 50%, var(--sky-600) 100%); }
  .home-hero::before { content: ""; position: absolute; left: 0; right: 0; top: 0; z-index: 1;
    height: calc(var(--ext) + 22vw);
    background: linear-gradient(90deg, rgba(255,255,255,.70) 0%, rgba(255,255,255,.58) 40%, rgba(255,255,255,.34) 58%, rgba(255,255,255,0) 76%),
                linear-gradient(90deg, var(--sky-300) 0%, var(--sky-400) 25%, var(--sky-500) 50%, var(--sky-600) 100%);
    -webkit-mask-image: linear-gradient(180deg, #000 0, #000 var(--ext), transparent 100%);
            mask-image: linear-gradient(180deg, #000 0, #000 var(--ext), transparent 100%); }
  .home-hero__copy { position: absolute; left: 0; right: 0; top: 0; padding: 36px 0 0; }
  .home-hero__copy .inner { max-width: 720px; }
  .home-hero__social { top: 36px; }
  .home-hero__social-label { display: inline-block; margin: 0 0 8px; padding: 4px 10px; border-radius: var(--radius-sm);
    background: rgba(255,255,255,.85); color: var(--green-900); }
}
.proof-strip ul { list-style: none; margin: 0; padding: 12px 0; display: flex; flex-wrap: wrap; gap: 10px 28px; justify-content: center; font-size: var(--fs-small); font-weight: 600; letter-spacing: .02em; }
.proof-strip li::before { content: "■"; color: var(--lime-400); margin-right: 8px; font-size: 10px; vertical-align: 2px; }

/* Inner page hero (compact) */
.page-hero { padding: 28px 0; }
.page-hero--compact { padding: 22px 0; }
.page-hero .lead { color: var(--on-dark-lead); }
.page-hero__grid { display: grid; gap: 20px; align-items: center; }
@media (min-width: 1024px) { .page-hero__grid { grid-template-columns: 1.3fr 1fr; } }
.page-hero__side .promo-tile { max-width: 460px; margin-left: auto; }

/* Referral — visually prominent band (homepage + /referral/) */
.referral-band { position: relative; overflow: hidden; }
.referral-band::after { content: ""; position: absolute; right: -120px; top: -120px; width: 420px; height: 420px; border-radius: 50%;
  border: 56px solid rgba(52,177,10,.12); pointer-events: none; }   /* --lime-400 at 12% */
.ref-grid { display: grid; gap: 24px; position: relative; z-index: 1; }
@media (min-width: 1024px) { .ref-grid { grid-template-columns: 1.15fr 1fr; align-items: center; gap: 48px; } }
.ref-title { font-size: clamp(2rem, 1.4rem + 2.4vw, 3rem); }
.ref-intro { color: var(--on-dark-muted); max-width: 52ch; }
.referral-band .reward { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 18px 0 8px; }
.referral-band .reward div { background: var(--white); color: var(--green-900); border-radius: var(--radius-lg); padding: 12px 18px; min-width: 150px; }
.referral-band .reward strong { display: block; font-family: var(--font-display); font-size: 2.25rem; line-height: 1; }
.referral-band .or { font-weight: 700; color: var(--lime-400); text-transform: uppercase; letter-spacing: .08em; font-size: 13px; }
.steps-row { display: grid; gap: 12px; list-style: none; padding: 0; margin: 20px 0 0; counter-reset: s; }
@media (min-width: 768px) { .steps-row { grid-template-columns: repeat(3, 1fr); } }
.steps-row li { counter-increment: s; display: flex; gap: 12px; align-items: flex-start; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12); border-radius: var(--radius-md); padding: 14px; }
.steps-row li::before { content: counter(s); flex: 0 0 32px; height: 32px; border-radius: 16px; background: var(--lime-400); color: var(--green-950); font-weight: 800; display: flex; align-items: center; justify-content: center; }
.steps-row strong { display: block; }
.steps-row span { color: var(--on-dark-muted); font-size: var(--fs-small); }
.ref-card { background: var(--white); border-radius: var(--radius-lg); padding: 24px; box-shadow: 0 18px 40px rgba(0,0,0,.25); }
.ref-card h3 { color: var(--green-900); text-transform: uppercase; }
.ref-q { margin-top: 12px; }
/* Homepage variant: tighter section, start card aligned to the top of the intro, the three steps in one wide row below both */
.referral-band--home { padding: clamp(32px, 2vw + 24px, 48px) 0; }
.referral-band--home .ref-grid { gap: 20px; }
.referral-band--home .steps-row { margin: 0; }
.referral-band--home .steps-row li { align-items: center; padding: 12px 16px; }
@media (min-width: 1024px) {
  .referral-band--home .ref-grid { grid-template-columns: 1.5fr 1fr; grid-template-areas: "main card" "steps steps"; align-items: start; column-gap: 48px; }
  .referral-band--home .ref-main { grid-area: main; }
  .referral-band--home .ref-card { grid-area: card; }
  .referral-band--home .steps-row { grid-area: steps; }
}

/* Why CEH / trust items */
.trust-strip { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--sp-4); }
@media (min-width: 1024px) { .trust-strip { grid-template-columns: repeat(4, 1fr); } }
.trust-item { display: flex; gap: var(--sp-3); align-items: flex-start; }
.trust-item .icon { width: 40px; height: 40px; border-radius: var(--radius-md); background: var(--green-100); color: var(--green-700);
  display: flex; align-items: center; justify-content: center; flex: 0 0 auto; font-weight: 700; }
.why .trust-item .icon { background: var(--green-900); color: var(--lime-400); }

/* Reviews (genuine Google reviews only; slots until connected) */
.stars { color: var(--amber-700); letter-spacing: 2px; }
.rating-big { display: flex; align-items: center; gap: 14px; }
.rating-big .score { font-family: var(--font-display); font-size: 2.5rem; font-weight: 700; color: var(--green-900); line-height: 1; }

/* Rent / finance tiles */
.tile-note { margin-top: 10px; }

/* Click-to-load embeds (no third-party request before the visitor clicks) */
.embed-gate { position: relative; display: flex; flex-direction: column; gap: 6px; align-items: center; justify-content: center; width: 100%; aspect-ratio: 16 / 9;
  border: var(--border); border-radius: var(--radius-lg); background: var(--surface); color: var(--green-900); font: inherit; cursor: pointer; overflow: hidden; }
.embed-gate img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: var(--white); padding: 4% 0; }
.embed-gate__play { position: relative; width: 68px; height: 68px; border-radius: 34px; background: var(--lime-400); color: var(--green-950); display: flex; align-items: center; justify-content: center; font-size: 24px; }
.embed-gate__label { position: relative; font-weight: 700; background: rgba(255,255,255,.9); padding: 2px 10px; border-radius: 4px; }
.embed-gate--map { aspect-ratio: 16 / 10; }
.embed-gate .small { position: relative; }

/* CTA band */
.cta-band { border-radius: var(--radius-lg); padding: var(--sp-8); display: grid; gap: var(--sp-4); align-items: center; }
@media (min-width: 1024px) { .cta-band { grid-template-columns: 1fr auto; } }
.cta-band .lead { color: var(--steel-200); margin: 0; }

/* Spec table */
.spec-table { width: 100%; border-collapse: collapse; font-size: 0.9375rem; }
.spec-table th, .spec-table td { text-align: left; padding: var(--sp-3) var(--sp-4); border-bottom: var(--border); vertical-align: top; }
.spec-table th { width: 42%; color: var(--steel-700); font-weight: var(--fw-semibold); background: var(--surface); }

/* =====================================================================
   forms.mjs + site.js forms — fields, validation, status
   ===================================================================== */
.form { display: grid; gap: var(--sp-4); }
.form-row { display: grid; gap: var(--sp-4); }
@media (min-width: 768px) { .form-row--2 { grid-template-columns: 1fr 1fr; } }
.form-card { background: var(--white); border: var(--border); border-radius: var(--radius-lg); padding: var(--sp-6); box-shadow: var(--shadow-1); color: var(--ink); }
.field { display: grid; gap: var(--sp-1); }
.field[hidden] { display: none; }   /* rental return date: shown only for "Custom" */
.field label, .field legend { font-weight: var(--fw-semibold); font-size: var(--fs-small); }
.field .req { color: var(--red-700); }
.field .error { color: var(--red-700); font-size: var(--fs-small); }
fieldset.field { border: 0; padding: 0; margin: 0; }
fieldset.group { border: var(--border); border-radius: var(--radius-md); padding: 14px; margin: 0; display: grid; gap: 12px; }
fieldset.group legend { font-family: var(--font-display); font-weight: 700; text-transform: uppercase; padding: 0 6px; }
.input, .select, .textarea { width: 100%; min-height: 44px; padding: var(--sp-2) var(--sp-3); border: 1px solid var(--steel-300); border-radius: var(--radius-md);
  font: inherit; color: var(--ink); background: var(--white); }
.textarea { min-height: 112px; resize: vertical; }
.input:hover, .select:hover, .textarea:hover { border-color: var(--steel-600); }
.field--invalid .input, .field--invalid .select, .field--invalid .textarea { border-color: var(--red-700); }
.check { display: flex; gap: var(--sp-2); align-items: flex-start; font-size: var(--fs-small); }
.check input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--green-700); flex: 0 0 auto; }
.choice-row { display: flex; flex-wrap: wrap; gap: var(--sp-4); }
.form-actions { display: flex; gap: 12px; align-items: center; }
.form-status { border-radius: var(--radius-md); padding: 12px 14px; font-size: var(--fs-small); border: 1px solid; }
.form-status[data-state="success"] { background: var(--success-50); border-color: var(--success-700); color: var(--success-700); }
.form-status[data-state="error"] { background: var(--red-50); border-color: var(--red-700); color: var(--red-700); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }   /* honeypot */

/* =====================================================================
   Content blocks composed by several page types
   ===================================================================== */
/* Path cards (product buying options, financing benefits, about facts) */
.path-card { border: var(--border); border-radius: var(--radius-lg); padding: var(--sp-5); background: var(--white); display: flex; flex-direction: column; gap: var(--sp-2); }
.path-card .num { font-family: var(--font-display); font-weight: 700; color: var(--green-700); font-size: 1.25rem; }
.path-card h3 { margin: 0; font-size: 1.1rem; color: var(--green-900); text-transform: uppercase; }
.path-card > .btn { margin-top: auto; white-space: normal; text-align: center; }   /* long labels wrap, never clip */   /* actions align at the bottom of equal-height cards */
.compact-cards .path-card { padding: 16px; }
.compact-cards .path-card h3 { font-size: 1.05rem; margin: 0; color: var(--green-900); }
/* Numbered "how it works" steps (rental, financing) */
.how-row { display: grid; gap: 12px; list-style: none; padding: 0; margin: 0 0 20px; counter-reset: h; }
@media (min-width: 768px) { .how-row { grid-template-columns: repeat(3, 1fr); } }
.how-row li { counter-increment: h; border: var(--border); border-radius: var(--radius-md); padding: 14px 14px 14px 52px; position: relative; background: var(--white); }
.how-row li::before { content: counter(h); position: absolute; left: 14px; top: 14px; width: 28px; height: 28px; border-radius: 14px; background: var(--green-900); color: var(--white); font-weight: 700; display: flex; align-items: center; justify-content: center; }
.how-row strong { display: block; color: var(--green-900); }
.how-row span { font-size: var(--fs-small); color: var(--steel-600); }
/* Sticky aside (product buy box, equipment list summary) */
@media (min-width: 1024px) { .buybox { position: sticky; top: calc(var(--header-h) + var(--sp-4)); } }

/* =====================================================================
   site.js — equipment list rows, segmented control, quantity stepper, toast
   ===================================================================== */
.seg { display: inline-flex; border: 1px solid var(--steel-300); border-radius: var(--radius-md); overflow: hidden; }
.seg button { min-height: 40px; padding: 0 var(--sp-3); border: 0; background: var(--white); font: inherit; font-weight: 600; cursor: pointer; }
.seg button[aria-pressed="true"] { background: var(--green-700); color: var(--white); }
.qty { display: inline-flex; border: 1px solid var(--steel-300); border-radius: var(--radius-md); overflow: hidden; }
.qty button { width: 40px; min-height: 40px; border: 0; background: var(--surface); font-size: 18px; cursor: pointer; }
.qty input { width: 48px; border: 0; text-align: center; font: inherit; }
.list-item { display: grid; grid-template-columns: 84px 1fr; gap: 14px; padding: 14px 0; border-bottom: var(--border); }
.list-item .photo-well, .list-item .photo-pending { width: 84px; height: 84px; aspect-ratio: auto; border: var(--border); border-radius: 6px; }
.list-item h3 { margin: 4px 0; font-size: 1.1rem; text-transform: none; }
.list-item__controls { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 12px; align-items: end; }
@media (min-width: 768px) { .list-item { grid-template-columns: 100px 1fr; } .list-item .photo-well, .list-item .photo-pending { width: 100px; height: 100px; } }
.toast { position: fixed; left: 50%; bottom: 84px; transform: translateX(-50%); z-index: 70; background: var(--green-900); color: var(--white); padding: 10px 16px; border-radius: var(--radius-md); box-shadow: var(--shadow-2); font-size: var(--fs-small); }
.toast a { color: var(--lime-300); }

/* Mobile sticky action bar (product pages) */
.action-bar { position: sticky; bottom: 0; z-index: 40; background: var(--white); border-top: var(--border); padding: var(--sp-2) var(--page-x);
  display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-2); box-shadow: 0 -4px 12px rgba(10,35,26,.08); }
@media (min-width: 1024px) { .action-bar { display: none; } }

/* On-page anchor navigation (product page) */
.anchor-nav { position: sticky; top: var(--header-h-mobile); z-index: 30; background: var(--white); border-bottom: var(--border); overflow-x: auto; }
@media (min-width: 1024px) { .anchor-nav { top: var(--header-h); } }
.anchor-nav ul { display: flex; gap: var(--sp-1); list-style: none; margin: 0; padding: 0; white-space: nowrap; }
.anchor-nav a { display: inline-flex; min-height: 44px; align-items: center; padding: 0 var(--sp-3); color: var(--steel-700); text-decoration: none; font-weight: 600; font-size: var(--fs-small); }
.anchor-nav a:hover { color: var(--green-700); }

/* ---------- Published content blocks (src/data/published-content.json, rendered by richText / faqList) ---------- */
.ref-notice { margin: var(--sp-2) 0 0; color: var(--on-dark-muted); }
.seo-copy p { margin: 0 0 var(--sp-3); }
.point-list { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--sp-3); }
.point-list li { display: grid; gap: 2px; padding-left: var(--sp-4); border-left: 3px solid var(--lime-400); }
.point-list strong { color: var(--green-900); }
.check-list { margin: 0 0 var(--sp-4); padding-left: 1.2em; color: var(--steel-700); }
.note-card { border: var(--border); border-left: 4px solid var(--lime-400); border-radius: var(--radius-md); padding: var(--sp-3) var(--sp-4); background: var(--white); }
.note-card h3 { margin: 0 0 4px; font-size: 1rem; }
.legal-text h2 { font-size: 1.35rem; margin: var(--sp-6) 0 var(--sp-2); }
.legal-text ul { padding-left: 1.2em; }
.h3 { font-size: 1.1rem; margin: 0 0 var(--sp-2); }

/* Financing offer (financingOffer): rate headline + published qualification footnote; same component on every page */
.fin-offer { border-left: 4px solid var(--lime-400); padding: var(--sp-2) var(--sp-4); background: var(--white); border-radius: var(--radius-md); }
.fin-offer__rate { margin: 0; font-family: var(--font-display); font-size: 1.35rem; color: var(--green-900); text-transform: uppercase; }
.fin-offer__rate strong { color: var(--green-700); font-size: 1.6rem; }
.fin-offer__note { margin: 4px 0 0; font-size: var(--fs-small); color: var(--steel-600); }
.fin-offer--hero { margin: var(--sp-4) 0; background: rgba(255, 255, 255, .08); }
.fin-offer--hero .fin-offer__rate, .fin-offer--hero .fin-offer__rate strong { color: var(--white); }
.fin-offer--hero .fin-offer__note { color: var(--on-dark-muted); }
.fin-offer--tile, .fin-offer--buybox { margin-top: var(--sp-2); }
.fin-offer--buybox .fin-offer__rate { font-size: 1.05rem; } .fin-offer--buybox .fin-offer__rate strong { font-size: 1.2rem; }
.fin-offer--band { margin: var(--sp-6) 0 0; border: var(--border); border-left: 4px solid var(--lime-400); }

/* Google review cards (reviews): equal-height cards; long texts clamped visually (full text in the DOM) */
.review-grid { margin-bottom: var(--sp-5); }
.review-card { margin: 0; display: flex; flex-direction: column; gap: var(--sp-3); background: var(--white); border: var(--border); border-radius: var(--radius-lg); padding: var(--sp-5); }
.review-card__text { margin: 0; flex: 1; }
.review-card__text p { margin: 0; display: -webkit-box; -webkit-line-clamp: 6; -webkit-box-orient: vertical; overflow: hidden; }
.review-card figcaption { display: grid; gap: 2px; }
.video-grid { display: grid; gap: var(--sp-5); }
@media (min-width: 768px) { .video-grid--multi { grid-template-columns: 1fr 1fr; } }
.embed-frame { display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: var(--radius-lg); background: #000; }

/* J25-B: consent banner + preference link (built by site.js; no layout shift for the page, fixed to the bottom edge) */
.consent { position: fixed; inset: auto 0 0 0; z-index: 90; background: var(--color-bg); color: var(--color-text); border-top: 3px solid var(--green-700); box-shadow: 0 -4px 16px rgba(0,0,0,.18); padding: var(--sp-4) var(--sp-4); display: flex; flex-wrap: wrap; gap: var(--sp-3) var(--sp-5); align-items: center; justify-content: space-between; }
.consent__text { margin: 0; flex: 1 1 28rem; font-size: .9375rem; line-height: 1.5; }
.consent__actions { display: flex; flex-wrap: wrap; gap: var(--sp-3); }
.consent__actions .btn { min-height: 44px; }
.consent-open { background: none; border: 0; padding: 0; color: inherit; font: inherit; text-decoration: underline; cursor: pointer; }
@media (max-width: 640px) { .consent { padding: var(--sp-3); gap: var(--sp-3); } .consent__text { font-size: .8125rem; line-height: 1.4; } .consent__actions { width: 100%; flex-wrap: nowrap; } .consent__actions .btn { flex: 1 1 0; min-width: 0; padding: var(--sp-2); font-size: .8125rem; line-height: 1.2; white-space: normal; } }

/* Service / Support direct contact (shown instead of a form while Service e-mail delivery is not verified) */
.service-direct { margin: 0 0 var(--sp-4); padding: var(--sp-3) var(--sp-4); border: 1px solid var(--green-700); border-left-width: 4px; border-radius: var(--radius-md); background: var(--surface); font-size: var(--fs-small); }
.service-direct[hidden] { display: none; }
.btn[aria-disabled="true"], .btn:disabled { opacity: .5; cursor: not-allowed; }

/* Price-only package (ME55Pro, LB228: owner decision 2026-10-17): no description text -> no empty paragraph / gap */
.package p.small:empty { display: none; }
