/* home-equip.css — the homepage's "NDT equipment for sale and hire" section (views/home/v2-equipment.php, 2026-11-24; owner: "more beautiful,
 * cards in it better looking and more inviting, to have some 3d ... follow site theme ... maybe smaller ... full site width so more item cards
 * are visible"). Added by v2-equipment.php after home2.css, so it uses that page's colours (--g, --gd, --ni, --mu, --bo on .h2).
 * A light showroom ground with a floor grid in perspective (one static layer); key-cap links; listing cards as raised tiles with a visible
 * edge. Hover (fine pointers only): the card lifts and leans toward the mouse (--rx/--ry from home2.js [data-h2-tilt]), its badges and price
 * tag come forward (translateZ inside preserve-3d), a glint crosses the photo and a green arrow appears on it. Nothing moves at rest and nothing animates in a loop.
 * Two rows across the full width: 3 to 9 columns from 640 px (about 210 px a card), the cards past two rows hidden; below 640 px a sideways rail.
 * Every class starts with heq (the events card already uses .he).
 * Contrast: small text on white uses --gd (5.0:1), --ni or #66788a (4.6:1); white sits only on --gd and #a24f08. */
.heq{position:relative;isolation:isolate;overflow:hidden;padding:56px 0 54px;
  background:radial-gradient(1200px 460px at 50% -12%,rgba(68,160,71,.14),transparent 64%),radial-gradient(900px 420px at 100% 100%,rgba(217,130,43,.07),transparent 60%),linear-gradient(180deg,#edf4f0 0%,#f5f8f9 40%,#ecf2f5 100%)}
.heq::before{content:"";position:absolute;top:auto;left:-30%;right:-30%;bottom:0;height:78%;z-index:-1;pointer-events:none;
  background-image:linear-gradient(rgba(11,22,32,.1) 2px,transparent 2px),linear-gradient(90deg,rgba(11,22,32,.09) 1px,transparent 1px);background-size:76px 76px;background-position:50% 100%;
  transform:perspective(700px) rotateX(52deg);transform-origin:50% 100%;
  -webkit-mask-image:linear-gradient(180deg,transparent 0%,#000 38%,#000 94%,transparent 100%);mask-image:linear-gradient(180deg,transparent 0%,#000 38%,#000 94%,transparent 100%)}
.heq .heq-head{margin-bottom:18px}

/* sale, hire and the most used categories: key caps with their count */
.heq-keys{list-style:none;margin:0 auto 26px;padding:0;display:flex;flex-wrap:wrap;justify-content:center;gap:10px;max-width:1880px}
.heq-keys li{margin:0;padding:0;list-style:none}
.h2 .heq-key{display:inline-flex;align-items:center;gap:9px;min-height:40px;padding:5px 5px 5px 14px;border-radius:12px;border:1px solid #d3dee6;background:linear-gradient(180deg,#fff,#eff4f7);color:var(--ni);font-size:14px;font-weight:700;line-height:1.2;white-space:nowrap;text-decoration:none;
  box-shadow:inset 0 1px 0 #fff,0 3px 0 #cfdbe3,0 10px 16px -12px rgba(11,22,32,.4);transition:transform .15s ease,box-shadow .15s ease,border-color .15s ease}
.heq-key b{display:inline-flex;align-items:center;justify-content:center;min-width:28px;height:28px;padding:0 8px;border-radius:8px;background:#e4ebf0;color:#33485a;font-size:12.5px;font-weight:800;box-shadow:inset 0 1px 2px rgba(11,22,32,.14)}
.h2 .heq-key:hover{transform:translateY(-2px);border-color:#b7c9d5;color:var(--ni);box-shadow:inset 0 1px 0 #fff,0 5px 0 #c2d1db,0 16px 22px -14px rgba(11,22,32,.45)}
.h2 .heq-key:active{transform:translateY(2px);box-shadow:inset 0 1px 0 #fff,0 1px 0 #cfdbe3,0 4px 8px -6px rgba(11,22,32,.3)}
.h2 .heq-key--sale{border-color:#bcd9bf;background:linear-gradient(180deg,#f6fcf6,#e2f1e3);color:#1d5a24;box-shadow:inset 0 1px 0 #fff,0 3px 0 #b3d3b6,0 10px 16px -12px rgba(31,93,35,.5)}
.h2 .heq-key--sale:hover{border-color:#9cc8a0;color:#1d5a24;box-shadow:inset 0 1px 0 #fff,0 5px 0 #a6cba9,0 16px 22px -14px rgba(31,93,35,.55)}
.heq-key--sale b{background:var(--gd);color:#fff;box-shadow:inset 0 -2px 0 rgba(0,0,0,.18)}
.h2 .heq-key--hire{border-color:#edcfaa;background:linear-gradient(180deg,#fffaf3,#fdecd7);color:#7d3b04;box-shadow:inset 0 1px 0 #fff,0 3px 0 #e8c79d,0 10px 16px -12px rgba(154,74,6,.5)}
.h2 .heq-key--hire:hover{border-color:#dfb47e;color:#7d3b04;box-shadow:inset 0 1px 0 #fff,0 5px 0 #dfbb8c,0 16px 22px -14px rgba(154,74,6,.55)}
.heq-key--hire b{background:#a24f08;color:#fff;box-shadow:inset 0 -2px 0 rgba(0,0,0,.18)}

/* the listings: two rows across the full width */
.heq-grid{--heq-cols:2;list-style:none;margin:0 auto;padding:6px 0 14px;display:grid;grid-template-columns:repeat(var(--heq-cols),minmax(0,1fr));gap:22px 16px;max-width:2240px}
.heq-it{display:flex;min-width:0;margin:0;padding:0;list-style:none}
.heq-card{position:relative;flex:1;display:flex;flex-direction:column;min-width:0;background:#fff;border:1px solid #dde6ec;border-radius:16px;
  box-shadow:inset 0 1px 0 #fff,0 2px 0 #e3eaef,0 4px 0 #cdd8e0,0 10px 14px -8px rgba(11,22,32,.2),0 26px 36px -28px rgba(11,22,32,.5);
  transform-style:preserve-3d;transition:transform .35s cubic-bezier(.2,.75,.25,1),box-shadow .35s ease,border-color .25s ease}
.heq-card.is-featured{border-color:#e9c46a;box-shadow:inset 0 1px 0 #fff,0 2px 0 #f3e3b4,0 4px 0 #e2c676,0 10px 14px -8px rgba(11,22,32,.2),0 26px 36px -28px rgba(11,22,32,.5)}

/* the photo: an inset screen with a frame, a glint that crosses it on hover */
.heq-card__media{position:relative;aspect-ratio:4/3;margin:6px 6px 0;border-radius:11px;overflow:hidden;background:radial-gradient(120% 90% at 50% 18%,#fbfcfd,#e3eaef)}
.heq-card__media img{position:absolute;inset:0;display:block;width:100%;height:100%;max-width:none;margin:0;border-radius:0;object-fit:cover;transition:transform .7s cubic-bezier(.2,.75,.25,1)}
.heq-card__media::before{content:"";position:absolute;inset:0;z-index:2;border-radius:inherit;pointer-events:none;box-shadow:inset 0 0 0 1px rgba(11,22,32,.07),inset 0 -36px 34px -30px rgba(11,22,32,.4)}
.heq-card__media::after{content:"";position:absolute;inset:0;z-index:3;pointer-events:none;background:linear-gradient(112deg,transparent 34%,rgba(255,255,255,.42) 48%,rgba(255,255,255,0) 62%);transform:translateX(-130%);transition:transform .8s cubic-bezier(.2,.75,.25,1)}
.heq-card__noimg{position:absolute;inset:0;display:grid;place-items:center;color:#b6c3cc}
.heq-card__count{position:absolute;right:8px;bottom:8px;z-index:4;display:inline-flex;align-items:center;gap:4px;padding:3px 8px;border-radius:999px;background:rgba(11,22,32,.66);color:#fff;font-size:11px;font-weight:700;line-height:1.3;pointer-events:none}
.heq-card__count::before,.heq-card__go::before{content:"";flex:none;background:currentColor;-webkit-mask:var(--heq-i) center/contain no-repeat;mask:var(--heq-i) center/contain no-repeat}
.heq-card__count::before{width:12px;height:12px;--heq-i:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 8h3l2-3h6l2 3h3v11H4z'/%3E%3Ccircle cx='12' cy='13' r='3.5'/%3E%3C/svg%3E")}
.heq-card__go::before{width:15px;height:15px;--heq-i:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E")}

/* badges over the photo's top corner (outside the clipped photo, so they can come forward) */
.h2 .heq-card__flags{position:absolute;top:14px;left:14px;right:14px;z-index:5;display:flex;flex-wrap:wrap;gap:5px;margin:0;pointer-events:none;transition:transform .35s cubic-bezier(.2,.75,.25,1)}
.heq-pill{display:inline-flex;align-items:center;padding:3px 9px;border-radius:999px;background:rgba(255,255,255,.96);color:#243b4e;font-size:11px;font-weight:800;line-height:1.35;letter-spacing:.01em;box-shadow:0 2px 0 rgba(11,22,32,.08),0 4px 10px rgba(11,22,32,.2)}
.heq-pill--hire{background:#fff2e2;color:#7d3b04}
.heq-pill--feat{background:#fff6d6;color:#6e4a00}
.heq-pill--new,.heq-pill--as-new{color:#1d5a24}
.heq-pill--refurbished{color:#1d4f91}

/* the words: category, title, price tag, place and age */
.heq-card__body{display:flex;flex:1;flex-direction:column;gap:5px;min-width:0;padding:11px 12px 0;transform-style:preserve-3d}
.h2 .heq-card__cat{margin:0;overflow:hidden;font-size:10px;font-weight:800;line-height:1.35;letter-spacing:.09em;text-transform:uppercase;white-space:nowrap;text-overflow:ellipsis;color:var(--gd)}
.h2 .heq-card__t{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;min-height:2.7em;margin:0;padding:0;font-size:14px;line-height:1.35;font-weight:800;letter-spacing:-.005em;color:var(--ni)}
.h2 .heq-card__t a{color:var(--ni);text-decoration:none;transition:color .2s ease}
.heq-card__t a::after{content:"";position:absolute;inset:0;z-index:6;border-radius:16px}   /* the whole card is the link */
.h2 .heq-card__buy{display:flex;align-items:center;margin:auto 0 0;padding-top:6px;transform-style:preserve-3d}
.heq-tag{flex:0 1 auto;display:inline-block;min-width:0;max-width:100%;overflow:hidden;padding:5px 9px;border-radius:9px;border:1px solid #cbe1ce;background:linear-gradient(180deg,#fff,#e8f4e9);color:#163c1a;font-size:14.5px;font-weight:800;line-height:1.2;letter-spacing:-.01em;white-space:nowrap;text-overflow:ellipsis;font-variant-numeric:tabular-nums;pointer-events:none;
  box-shadow:inset 0 1px 0 #fff,0 2px 0 #bfdac2,0 6px 10px -8px rgba(11,22,32,.4);transition:transform .35s cubic-bezier(.2,.75,.25,1),box-shadow .35s ease}
.heq-tag small{margin-left:3px;font-size:11.5px;font-weight:700;color:inherit;opacity:.85}
.is-hire .heq-tag{border-color:#efd3b0;background:linear-gradient(180deg,#fff,#fdefdd);color:#5e2e03;box-shadow:inset 0 1px 0 #fff,0 2px 0 #e9caa1,0 6px 10px -8px rgba(11,22,32,.4)}
.heq-card .heq-tag--poa{border-color:#d9e2e8;background:linear-gradient(180deg,#fff,#eef2f5);color:#33485a;font-size:12.5px;box-shadow:inset 0 1px 0 #fff,0 2px 0 #d1dbe2,0 6px 10px -8px rgba(11,22,32,.35)}
.heq-card__go{position:absolute;left:8px;bottom:8px;z-index:4;display:grid;place-items:center;width:30px;height:30px;border-radius:50%;background:var(--gd);color:#fff;box-shadow:0 6px 14px -4px rgba(11,22,32,.5);pointer-events:none;opacity:0;transform:scale(.6);transition:opacity .25s ease,transform .35s cubic-bezier(.2,.75,.25,1)}
.h2 .heq-card__foot{display:flex;align-items:center;justify-content:space-between;gap:8px;margin:10px -12px 0;padding:8px 12px 10px;border-top:1px solid #edf2f5;font-size:11.5px;font-weight:600;line-height:1.3;color:var(--mu)}
.heq-card__loc{display:flex;align-items:center;gap:5px;min-width:0}
.heq-card__loc>span:last-child{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
.heq-card__loc svg{flex:none;width:13px;height:13px;color:#8fa1ae}
.heq-card__flag{flex:none;font-style:normal;font-size:14px;line-height:1;font-family:"Apple Color Emoji","Segoe UI Emoji","Noto Color Emoji",sans-serif}
.heq-card__when{flex:none;white-space:nowrap;color:#66788a}

/* hover: lift, lean toward the mouse, badges and tag forward, the glint */
@media (hover:hover) and (pointer:fine){
  .heq-card:hover{transform:perspective(900px) translate3d(0,-8px,0) rotateX(var(--rx,0deg)) rotateY(var(--ry,0deg));border-color:#b6d6b9;
    box-shadow:inset 0 1px 0 #fff,0 2px 0 #e1ebe3,0 4px 0 #c3d8c6,0 18px 24px -14px rgba(11,22,32,.3),0 46px 58px -34px rgba(11,22,32,.58)}
  .heq-card.is-featured:hover{border-color:#ddb34d}
  .heq-card:hover .heq-card__flags{transform:translateZ(34px)}
  .heq-card:hover .heq-tag{transform:translateZ(26px)}
  .heq-card:hover .heq-card__go{opacity:1;transform:none}
  .heq-card:hover .heq-card__media img{transform:scale(1.06)}
  .heq-card:hover .heq-card__media::after{transform:translateX(130%)}
  .h2 .heq-card:hover .heq-card__t a{color:var(--gd)}
}
/* keyboard: the ring goes round the whole card */
.heq-card:has(a:focus-visible){outline:3px solid #f2b705;outline-offset:3px}
@supports selector(:has(*)){.h2 .heq-card__t a:focus-visible{outline:none}}

/* arriving on scroll (home2.js gives the list h2-pre, then h2-in): the cards rise one after another, once */
.heq-grid.h2-pre{opacity:1;transform:none}
.heq-grid.h2-pre .heq-it{opacity:0;transform:translateY(22px)}
.heq-grid.h2-in .heq-it{animation:heqRise .6s cubic-bezier(.2,.75,.25,1) both}
.heq-grid.h2-in .heq-it:nth-child(2){animation-delay:.04s}.heq-grid.h2-in .heq-it:nth-child(3){animation-delay:.08s}.heq-grid.h2-in .heq-it:nth-child(4){animation-delay:.12s}
.heq-grid.h2-in .heq-it:nth-child(5){animation-delay:.16s}.heq-grid.h2-in .heq-it:nth-child(6){animation-delay:.2s}.heq-grid.h2-in .heq-it:nth-child(7){animation-delay:.24s}
.heq-grid.h2-in .heq-it:nth-child(8){animation-delay:.28s}.heq-grid.h2-in .heq-it:nth-child(9){animation-delay:.32s}.heq-grid.h2-in .heq-it:nth-child(10){animation-delay:.36s}
.heq-grid.h2-in .heq-it:nth-child(11){animation-delay:.4s}.heq-grid.h2-in .heq-it:nth-child(12){animation-delay:.44s}.heq-grid.h2-in .heq-it:nth-child(13){animation-delay:.48s}
.heq-grid.h2-in .heq-it:nth-child(14){animation-delay:.52s}.heq-grid.h2-in .heq-it:nth-child(15){animation-delay:.56s}.heq-grid.h2-in .heq-it:nth-child(16){animation-delay:.6s}
.heq-grid.h2-in .heq-it:nth-child(17){animation-delay:.64s}.heq-grid.h2-in .heq-it:nth-child(18){animation-delay:.68s}
@keyframes heqRise{from{opacity:0;transform:translateY(22px)}to{opacity:1;transform:none}}

.heq .heq-acts{margin-top:26px}
.heq-acts .h2-btn svg{flex:none;transition:transform .2s ease}
.heq-acts .h2-btn--p:hover svg{transform:translateX(3px)}

/* columns by screen width, about 210 px a card; the cards past two rows are hidden */
@media (min-width:640px){.heq-grid{--heq-cols:3}.heq-it:nth-child(n+7){display:none}}
@media (min-width:820px){.heq-grid{--heq-cols:4}.heq-it:nth-child(n+7){display:flex}.heq-it:nth-child(n+9){display:none}}
@media (min-width:1024px){.heq-grid{--heq-cols:5}.heq-it:nth-child(n+9){display:flex}.heq-it:nth-child(n+11){display:none}}
@media (min-width:1300px){.heq-grid{--heq-cols:6}.heq-it:nth-child(n+11){display:flex}.heq-it:nth-child(n+13){display:none}}
@media (min-width:1600px){.heq-grid{--heq-cols:7}.heq-it:nth-child(n+13){display:flex}.heq-it:nth-child(n+15){display:none}}
@media (min-width:1900px){.heq-grid{--heq-cols:8}.heq-it:nth-child(n+15){display:flex}.heq-it:nth-child(n+17){display:none}}
@media (min-width:2200px){.heq-grid{--heq-cols:9}.heq-it:nth-child(n+17){display:flex}}

/* phones: the key caps and the cards become sideways rails from edge to edge */
@media (max-width:639px){
  .heq{padding:40px 0 38px}
  .heq-keys{flex-wrap:nowrap;justify-content:flex-start;overflow-x:auto;margin:0 calc(-1 * clamp(16px,4vw,72px)) 16px;padding:4px clamp(16px,4vw,72px) 10px;scrollbar-width:none;-webkit-overflow-scrolling:touch}
  .heq-keys::-webkit-scrollbar{display:none}
  .h2 .heq-key{min-height:38px;font-size:13.5px}
  .heq-grid{display:flex;gap:12px;margin:0 calc(-1 * clamp(16px,4vw,72px));padding:6px clamp(16px,4vw,72px) 18px;overflow-x:auto;overscroll-behavior-x:contain;scroll-snap-type:x mandatory;scroll-padding:0 clamp(16px,4vw,72px);scrollbar-width:none;-webkit-overflow-scrolling:touch}
  .heq-grid::-webkit-scrollbar{display:none}
  .heq-it{flex:0 0 min(42vw,220px);scroll-snap-align:start}   /* a third card peeks in, so the row reads as one to swipe */
  .heq-tag{padding:4px 8px;font-size:13px}
  .heq-card .heq-tag--poa{padding:4px 7px;font-size:11.5px;white-space:normal}   /* "Price on application" fits a 150 px card, or wraps */
  .heq .heq-acts{margin-top:18px}
  .heq-acts .h2-btn{flex:1 1 100%}
}

@media (prefers-reduced-motion:reduce){
  .heq-card,.heq-card__media img,.heq-card__media::after,.heq-card__flags,.heq-tag,.heq-card__go,.h2 .heq-key{transition:none}
  .heq-card:hover,.heq-card:hover .heq-card__flags,.heq-card:hover .heq-tag,.heq-card:hover .heq-card__media img,.h2 .heq-key:hover,.h2 .heq-key:active{transform:none}
  .heq-card__media::after{display:none}
  .heq-grid.h2-in .heq-it{animation:none}
}
