/* Hero carousel: added on top of the Base44 styles. Tokens come from app.css. */
.hero-js #hero-bg .hero-slide{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;opacity:0;transition:opacity .9s ease}
.hero-js #hero-bg .hero-slide.is-active{opacity:1}
.hero-js .hero-box{position:relative;overflow:hidden;cursor:pointer;color:inherit}
.hero-js .hero-box[aria-pressed="true"]{background:hsl(var(--muted) / .92);border-top-color:hsl(var(--primary))}
.hero-js .hero-box[aria-pressed="true"]>span.font-heading{color:hsl(var(--primary))}
.hero-js .hero-box:focus-visible{outline:2px solid hsl(var(--primary));outline-offset:-4px}
.hero-box-bar{position:absolute;left:0;bottom:0;height:3px;width:0;background:hsl(var(--primary))}
.hero-box[aria-pressed="true"] .hero-box-bar{animation:herobar var(--hero-ms,6000ms) linear forwards}
.hero-js.is-paused .hero-box-bar{animation-play-state:paused}
.hero-js.no-auto .hero-box-bar{animation:none;width:100%}
@keyframes herobar{from{width:0}to{width:100%}}
@media (prefers-reduced-motion:reduce){
  .hero-js #hero-bg .hero-slide{transition:none}
  .hero-box[aria-pressed="true"] .hero-box-bar{animation:none;width:100%}
}
/* keep the text block clear of the boxes */
.hero-js>.relative.z-10{padding-top:2rem;padding-bottom:11rem}
/* four course bands (was five machine types) */
.hero-js .hero-grid{grid-template-columns:repeat(4,minmax(0,1fr))}
.hero-js .hero-box{display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center}
/* overview photo: keep the excavator in view when the frame is cropped (phones) */

/* ===== PHONE HERO (under 640px): headline, lede, photo, band tabs, buttons ===== */
@media (max-width:639px){
  .hero-js{height:auto !important;min-height:0 !important;overflow:visible;display:flex;flex-direction:column;background:hsl(var(--background))}
  /* flatten the wrappers so each piece can be ordered on its own */
  .hero-js>.relative.z-10,.hero-js>.relative.z-10>.max-w-3xl{display:contents}
  /* 1. headline first */
  .hero-js>.relative.z-10>.max-w-3xl>div:first-child{order:1;padding:1.5rem 1rem 0}
  .hero-js h1{order:1;padding:0 1rem;margin:.6rem 0 0;font-size:2.5rem}
  /* 2. whole photo (not a cropped slice), faded into the bands below it */
  .hero-js #hero-bg{order:3;position:relative;inset:auto;width:100%;aspect-ratio:16/10;overflow:hidden}
  .hero-js #hero-bg>div{display:none}
  .hero-js #hero-bg::after{content:"";position:absolute;left:0;right:0;bottom:0;height:30%;background:linear-gradient(to top,hsl(var(--background)),transparent);pointer-events:none}
  .hero-js #hero-bg .hero-slide,.hero-js #hero-bg .hero-slide[data-i="0"]{object-position:center}
  /* 3. the four bands directly under the photo */
  .hero-js>.relative.z-10>.absolute{order:4;position:static;margin:0;width:auto;left:auto;right:auto;bottom:auto}
  .hero-js .hero-grid{grid-template-columns:repeat(4,minmax(0,1fr))}
  .hero-js .hero-box{padding:.7rem .2rem;min-height:3.3rem}
  .hero-js .hero-box>span.font-heading{font-size:.64rem;line-height:1.15;letter-spacing:.02em}
  /* 4. copy and buttons last */
  .hero-js .max-w-3xl p.font-body{order:2;padding:0 1rem;margin:.9rem 0 1.25rem;font-size:1rem}
  .hero-js .max-w-3xl .flex.flex-col{order:5;padding:0 1rem 1.75rem;margin-top:1.25rem;gap:.75rem}
  .hero-js .max-w-3xl .flex.flex-col>a,.hero-js .max-w-3xl .flex.flex-col>a>button{display:flex;width:100%}
}

/* description lines under the band names: shown on desktop, hidden on phones */
@media (max-width:639px){.hero-js .hero-box>span.hidden{display:none !important}}
@media (min-width:640px){
  .hero-js .hero-grid .hero-box>span.hidden{display:block !important;font-size:.76rem;line-height:1.35;margin-top:.35rem;color:rgba(255,255,255,.72)}
  .hero-js .hero-grid .hero-box[aria-pressed="true"]>span.hidden{color:rgba(255,255,255,.88)}
}
.hero-js .hero-box{min-height:0}

/* ===== band tabs: lighter outlined tabs, solid yellow when active (fixes dark-on-dark) ===== */
.hero-js .hero-grid{gap:10px !important;background:transparent !important;overflow:visible !important;counter-reset:band}
.hero-js .hero-grid .hero-box{
  background:rgba(255,255,255,.09) !important;border:1px solid rgba(255,255,255,.30);border-top:3px solid rgba(255,255,255,.30);
  border-radius:2px;-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px);text-align:left;align-items:flex-start;padding:1rem 1.1rem}
.hero-js .hero-grid .hero-box::before{counter-increment:band;content:"0" counter(band);display:block;font:500 .7rem/1 var(--font-mono);letter-spacing:.16em;opacity:.8;margin-bottom:.45rem;color:hsl(var(--primary))}
.hero-js .hero-grid .hero-box:hover{background:rgba(255,255,255,.17) !important;border-top-color:hsl(var(--primary))}
.hero-js .hero-grid .hero-box[aria-pressed="true"]{background:rgba(255,255,255,.26) !important;border-color:rgba(255,255,255,.50);border-top-color:rgba(255,255,255,.90)}
.hero-js .hero-grid .hero-box[aria-pressed="true"]::before,
.hero-js .hero-grid .hero-box[aria-pressed="true"]>span.font-heading{color:#fff}
.hero-js .hero-grid .hero-box[aria-pressed="true"] .hero-box-bar{background:rgba(255,255,255,.75)}
@media (max-width:639px){
  .hero-js .hero-grid{gap:6px !important;padding:0 .75rem}
  .hero-js .hero-grid .hero-box{padding:.7rem .3rem;text-align:center;align-items:center}
  .hero-js .hero-grid .hero-box::before{display:none}
}

/* ===== PHONES: calm the yellow. One solid yellow block only (the main button) ===== */
@media (max-width:639px){
  /* lit tab: outlined with a yellow top edge and yellow text, not a solid block */
  .hero-js .hero-grid .hero-box[aria-pressed="true"]{background:rgba(255,255,255,.26) !important;border-color:rgba(255,255,255,.50);border-top-color:rgba(255,255,255,.90)}
  .hero-js .hero-grid .hero-box[aria-pressed="true"]>span.font-heading{color:#fff}
  .hero-js .hero-grid .hero-box[aria-pressed="true"] .hero-box-bar{background:rgba(255,255,255,.75)}
  /* bottom ticker: dark strip with quiet text instead of a solid yellow bar */
  div.fixed.bottom-0.z-40.bg-primary{background:hsl(var(--card)) !important;border-top:2px solid hsl(var(--primary))}
  div.fixed.bottom-0.z-40.bg-primary span.font-mono{color:#fff !important;font-weight:400}
  div.fixed.bottom-0.z-40.bg-primary span.font-mono>span{color:hsl(var(--primary)) !important;opacity:.8}
}


/* final call-to-action: four equal-width buttons on phones */
@media (max-width:639px){
  .cta-actions{max-width:20rem;margin-left:auto;margin-right:auto}
  .cta-actions a{display:block}
  .cta-actions button{width:100%}
}

/* slideshow pause / play button (accessibility: auto-moving content needs a stop control) */
.hero-pause{position:absolute;top:1rem;right:1rem;z-index:20;width:44px;height:44px;display:flex;align-items:center;justify-content:center;border:0;border-radius:0;background:transparent;color:#fff;opacity:.8;cursor:pointer;filter:drop-shadow(0 1px 2px rgba(0,0,0,.75))}
.hero-pause:hover{opacity:1}
.hero-pause:focus-visible{outline:2px solid hsl(var(--primary));outline-offset:2px}
@media (max-width:639px){
  /* on phones the photo sits below the text, so keep the button on the photo instead of over the headline */
  .hero-pause{position:relative;top:auto;right:auto;order:3;align-self:flex-end;margin:-3.25rem .75rem 0 0}
}

/* ticker pause button: icon only, on the right edge of the bar. The fill matches the bar colour so it is invisible as a shape but stops the scrolling text running under the icon. */
.ticker-pause{position:fixed;bottom:2px;right:.4rem;z-index:101;width:28px;height:28px;display:flex;align-items:center;justify-content:center;border:0;border-radius:0;background:hsl(var(--primary));color:hsl(var(--primary-foreground));cursor:pointer;box-shadow:-10px 0 8px 2px hsl(var(--primary))}
.ticker-pause svg{opacity:.8}
.ticker-pause:hover svg{opacity:1}
.ticker-pause:focus-visible{outline:2px solid hsl(var(--primary-foreground));outline-offset:1px}
@media (max-width:639px){.ticker-pause{background:hsl(var(--card));color:hsl(var(--primary));box-shadow:-10px 0 8px 2px hsl(var(--card))}.ticker-pause:focus-visible{outline-color:hsl(var(--primary))}}

/* TICKER-FIX-FIREFOX-ANDROID v2 (test): on phones the ticker sits at the end of the page and sticks to the bottom of the screen
   (sticky instead of fixed, so Firefox on Android does not mis-place or bounce it). Delete this whole block to undo. */
@media (max-width:767px){
  div.fixed.bottom-0.z-40.bg-primary{position:sticky !important;left:auto;right:auto;bottom:0}
  .ticker-pause{position:sticky;bottom:2px;right:auto;margin:-30px .4rem 0 auto}
}
