/* ============================================
   home.css — Home page only
============================================ */

/* ── HERO ── */
.hero {
  background: var(--navy);
  display: flex;
  flex-direction: column;
  position: relative;
}
.hero-main {
  /* .tv-nav is position:fixed and sits outside the flow, so the hero has to
     reserve its height itself. padding-top is therefore computed rather than
     eyeballed: --tv-nav-h (global.css :root, 72px desktop / 56px below 992px)
     plus the gap we actually want beneath it. Bootstrap's reboot sets
     border-box, so that height is the nav's full footprint. */
  --tv-hero-gap: 3rem;
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: calc(var(--tv-nav-h) + var(--tv-hero-gap)) 0 4.375rem;
  position: relative;
  overflow: hidden;
  background-image: repeating-linear-gradient(
    135deg,
    rgba(255,255,255,0.025),
    rgba(255,255,255,0.025) 7px,
    transparent 7px,
    transparent 14px
  );
}
/* Catalogue-style drafting crosshair, pinned to the hero's top-right corner.
   The negative offsets bleed 30% of the graphic off the top edge and 30% off
   the right edge; .hero-main's overflow:hidden does the cropping. z-index:1
   keeps it beneath .hero-content (z-index:2). Stroke width is held at a
   constant 1.5px by vector-effect:non-scaling-stroke in the SVG, so the line
   weight is identical at every breakpoint. */
.hero-crosshair {
  position: absolute;
  /* rem-based so the graphic grows with the type scale instead of shrinking
     in relative terms on a 1920px screen. 16% bleeds off the top and 30% off
     the right; .hero-main's overflow:hidden does the cropping. The shallower
     top bleed brings the small circle on the vertical centreline into view. */
  top: -7.2rem;
  right: -13.5rem;
  width: 45rem;
  height: 45rem;
  z-index: 1;
  color: var(--blue2);
  opacity: 0.55;
  pointer-events: none;
}
.hero-crosshair svg { width: 100%; height: 100%; display: block; }

.hero-content {
  /* Left-aligned against the .edge gutter so the text block and the top-right
     crosshair balance the way they do on the catalogue cover. Re-centred
     below 576px, where a single narrow column reads better centred. */
  position: relative;
  z-index: 2;
  /* Wide enough that "DRILLING & CUTTING THAT" stays on one line at every
     desktop width (it needs ~902px at 1440px, where 76% gives 954px), with
     the px ceiling stopping the measure running away on ultrawide. */
  max-width: min(1100px, 76%);
  text-align: left;
  margin: 0 auto 0 0;
}
/* The dot is INLINE, not a flex item. As a flex item it was centred against
   the whole box, so once the text wrapped to two lines on a phone the dot
   floated alone against the left edge. Inline, it sits directly before the
   "M" of MADE on the first line at every width; the 10px margin matches the
   gap the flex layout used, so desktop is pixel-identical. */
.hero-eyebrow {
  display: inline-block;
  text-align: center;
  line-height: 1.45;
  background: rgba(27,117,188,0.15);
  border: 1px solid rgba(27,117,188,0.35);
  padding: 7px 16px;
  border-radius: 3px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1875rem;
  text-transform: uppercase;
  color: var(--blue2);
  margin-bottom: 24px;
}
.hero-eyebrow-dot {
  display: inline-block;
  margin-right: 10px;
  vertical-align: middle;
}
.hero-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(2.75rem, 6vw, 5rem);
  font-weight: 700;
  line-height: 1.0;
  letter-spacing: 0.0125em;
  color: var(--white);
  margin-bottom: 22px;
}
.hero-title em {
  color: var(--blue);
  font-style: normal;
}
.hero-desc {
  font-size: 1rem;
  color: var(--smoke);
  line-height: 1.75;
  margin-bottom: 32px;
  /* rem-based so the measure stays ~75 characters as the type scale grows.
     At 1440px this is 738px, enough for the subtext to sit on one line. */
  max-width: 40rem;
  margin-left: 0;
  margin-right: 0;
}
.hero-btns {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: flex-start;
}
.hero-stats {
  position: relative;
  z-index: 2;
  margin-top: 36px;
  padding-top: 28px;
  border-top: 1px solid rgba(27,117,188,0.2);
}
.hero-stats-inner {
  display: flex;
  gap: 48px;
  flex-wrap: wrap;
  justify-content: flex-start;
}
.stat-val {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 2.625rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1;
}
.stat-label {
  font-size: 0.6875rem;
  color: var(--smoke);
  letter-spacing: 0.09375rem;
  margin-top: 4px;
  text-transform: uppercase;
}

/* ── INDUSTRIES BAR ── */
.industries {
  background: var(--navy2);
  border-top: 1px solid rgba(27,117,188,0.15);
  position: relative;
  z-index: 2;
  padding-top: 18px;
  padding-bottom: 18px;
}
.industries-label {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.1875rem;
  text-transform: uppercase;
  color: var(--smoke);
  white-space: nowrap;
  display: block;
  margin-bottom: 12px;
}
.industries-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.industry-tag {
  background: rgba(27,117,188,0.1);
  border: 1px solid rgba(27,117,188,0.2);
  padding: 7px 13px;
  border-radius: 3px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--silver);
  white-space: nowrap;
}
/* An icon slot may hold either an <i> (Font Awesome class) or inline <svg>
   (pasted or uploaded). Both get the same size and colour treatment. */
.industry-tag i,
.industry-tag svg { color: var(--blue2); margin-right: 6px; }
.industry-tag svg { width: 1em; height: 1em; vertical-align: -0.125em; }
.industry-tag .tv-icon-img { width: 1.25em; height: 1.25em; margin-right: 6px; vertical-align: -0.3em; }

/* ── PRODUCT CATEGORIES ── */
.products-strip { background: var(--navy2); padding: 5rem 0; }
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 40px;
  gap: 20px;
}
.prod-card {
  background: var(--navy3);
  padding: 36px 28px;
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
  text-decoration: none;
}
.prod-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: var(--blue);
  transform: scaleX(0);
  transition: transform 0.3s;
  transform-origin: left;
}
.prod-card:hover { background: var(--navy4); }
.prod-card:hover::after { transform: scaleX(1); }
.prod-icon { width: 44px; height: 44px; margin-bottom: 18px; color: var(--blue2); }
.prod-icon svg { width: 100%; height: 100%; }
/* same square as the slot box, which index.php sizes inline at 2.75rem */
.prod-icon .tv-icon-img { width: 2.75rem; height: 2.75rem; }
.prod-name {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 6px;
}
.prod-count {
  font-size: 0.6875rem;
  color: var(--smoke);
  letter-spacing: 0.0625rem;
  text-transform: uppercase;
}

/* ── FEATURED MACHINES ── */
.featured { background: var(--navy); padding: 5rem 0; }
.machine-card {
  background: var(--navy3);
  padding: 48px 40px;
  gap: 40px;
  transition: background 0.3s;
  text-decoration: none;
  display: flex;
  margin-bottom: 3px;
}
.machine-card:hover { background: var(--navy4); }
.machine-card.highlight {
  background: var(--navy3);
  border-left: 4px solid var(--blue);
  box-shadow: 0 0 0 1px rgba(24,112,181,0.2);
}
.machine-card.highlight:hover {
  background: var(--navy4);
  box-shadow: 0 0 0 1px rgba(24,112,181,0.35);
}
.machine-img {
  width: 150px; height: 150px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.06);
  border-radius: 6px; padding: 12px;
}
.machine-img img { max-width: 100%; max-height: 100%; object-fit: contain; }
.machine-model {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 2.625rem; font-weight: 700;
  color: var(--white); line-height: 1;
}
.machine-type {
  font-size: 0.6875rem; color: rgba(255,255,255,0.6);
  margin: 6px 0 20px; letter-spacing: 0.09375rem; text-transform: uppercase;
}
.machine-spec { display: flex; gap: 28px; flex-wrap: wrap; }
.spec-val {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.375rem; font-weight: 600; color: var(--white);
}
.spec-key {
  font-size: 0.625rem; color: rgba(255,255,255,0.5);
  letter-spacing: 0.0625rem; text-transform: uppercase;
}

/* ── TRUST STRIP ── */
.trust-wrap { background: var(--navy); padding: 3.75rem 0; }
/* The 5 cells carry Bootstrap col-* classes, but there is no .row ancestor to
   supply --bs-gutter-x, so those classes are inert and the widths come from
   here. flex-wrap is essential: without it all five stay on one line at 360px
   and each cell collapses to ~48px of usable width. */
.trust {
  background: var(--blue); border-radius: 6px; overflow: hidden;
  display: flex; flex-wrap: wrap;
}
.trust-item {
  padding: 2.75rem 1.25rem; text-align: center;
  border-right: 1px solid rgba(255,255,255,0.15);
  display: flex; flex-direction: column; align-items: center;
  opacity: 0; transform: translateY(24px);
  transition: transform 0.25s ease, background 0.25s ease;
  flex: 1 1 0; min-width: 0;
}
.trust-item.in-view {
  opacity: 1; transform: translateY(0);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.trust-item:hover { background: rgba(255,255,255,0.06); transform: translateY(-4px); }
.trust-item:last-child { border-right: none; }
.trust-icon {
  font-size: 1.5rem; color: rgba(255,255,255,0.55);
  margin-bottom: 14px; transition: color 0.25s, transform 0.25s;
}
.trust-icon-reg {
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.875rem; font-weight: 600;
  color: rgba(255,255,255,0.55);
  border: 1.5px solid rgba(255,255,255,0.55);
  border-radius: 50%; margin-bottom: 14px;
}
.trust-item:hover .trust-icon { color: var(--white); transform: scale(1.15); }
.trust-item:hover .trust-icon-reg { color: var(--white); border-color: var(--white); }
.trust-num {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.75rem; font-weight: 700;
  color: var(--white); line-height: 1.1; margin-bottom: 6px;
}
.trust-label {
  font-size: 0.625rem; color: rgba(255,255,255,0.7);
  letter-spacing: 0.09375rem; text-transform: uppercase;
}

/* ── TESTIMONIALS ── */
.testimonials { background: var(--navy2); padding: 5rem 0; }
.testi-card {
  background: var(--navy3); padding: 36px;
  border-top: 3px solid var(--blue);
  transition: background 0.2s; height: 100%;
}
.testi-card:hover { background: var(--navy4); }
.testi-stars { color: #F5A623; font-size: 0.875rem; margin-bottom: 16px; letter-spacing: 0.125rem; }
.testi-text {
  font-size: 0.875rem; line-height: 1.85;
  color: var(--silver); font-style: italic; margin-bottom: 22px;
}
.testi-name {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.125rem; font-weight: 600; color: var(--white);
}
.testi-role {
  font-size: 0.6875rem; color: var(--smoke);
  letter-spacing: 0.09375rem; text-transform: uppercase; margin-top: 2px;
}

/* ── GOOGLE REVIEW CARD ──
   The fourth card in the testimonials row. Same shell as .testi-card (navy
   panel, blue top border, full height) with its own stacked contents. */
.google-card {
  display: flex; flex-direction: column; align-items: center;
  text-align: center;
}
.google-stars { color: #FBBC04; }          /* Google's own star yellow */
.google-card-head {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.125rem; font-weight: 600; color: var(--white);
  margin-bottom: 6px;
}
.google-card-text {
  font-size: 0.8125rem; line-height: 1.6; color: var(--smoke);
  margin-bottom: 18px;
}
.google-text-mobile { display: none; }     /* swapped in below 768px */
/* The QR is itself a link to the review page on desktop and tablet, so it
   gets a pointer and lifts slightly on hover. Hidden below 768px. */
.google-qr {
  display: block;
  width: 140px; height: 140px; flex: none;
  background: #fff; border-radius: 10px; padding: 8px;
  margin-bottom: 18px;
  cursor: pointer;
  transition: transform 0.2s var(--tv-ease), box-shadow 0.2s var(--tv-ease);
}
.google-qr:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(0,0,0,0.35);
}
.google-qr:focus-visible { outline: 2px solid var(--blue2); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) {
  .google-qr { transition: none; }
  .google-qr:hover { transform: none; }
}
.google-qr img, .google-qr svg {
  display: block; width: 100%; height: 100%;
  /* A QR is line art: let the browser keep hard pixel edges rather than
     blurring the modules when the box does not land on a whole multiple. */
  image-rendering: pixelated;
}
.google-btn {
  display: inline-block; margin-top: auto;
  background: var(--blue); color: var(--white);
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.875rem; font-weight: 600; letter-spacing: 0.0625rem;
  text-transform: uppercase; text-decoration: none;
  padding: 11px 20px; border-radius: 3px;
  transition: background 0.2s var(--tv-ease);
}
.google-btn:hover { background: var(--blue2); color: var(--white); }
.google-btn:focus-visible { outline: 2px solid var(--white); outline-offset: 2px; }

/* Four across: trim the card padding so the quote text keeps its own size. */
@media (min-width: 1200px) {
  .testi-card { padding: 28px 22px; }
  .google-qr { width: 128px; height: 128px; }
}

/* ── DEALER CTA ── */
.dealer-cta {
  background: var(--navy); padding: 5rem 0;
  border-top: 1px solid rgba(27,117,188,0.2);
  border-bottom: 1px solid rgba(27,117,188,0.2);
}
.dealer-cta-inner {
  display: flex; align-items: center;
  justify-content: space-between; gap: 40px; flex-wrap: wrap;
}
.dealer-cta h2 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(2rem,4vw,3.5rem); font-weight: 700;
  color: var(--white); line-height: 1.05;
}
.dealer-cta h2 span { color: var(--blue); }
.dealer-cta p { font-size: 0.9375rem; color: var(--smoke); margin-top: 12px; max-width: 500px; }
.dealer-cta-btns { display: flex; gap: 16px; flex-wrap: wrap; flex-shrink: 0; }

/* ── RESPONSIVE ── */
@media (max-width:991px) {
  .hero-main { --tv-hero-gap: 2.5rem; padding-bottom: 3.75rem; }
  .hero-crosshair { width: 32.5rem; height: 32.5rem; top: -5.2rem; right: -9.75rem; }
  .hero-title { font-size: clamp(2.25rem,6vw,3.75rem); }
  .hero-stats-inner { gap: 32px; }
  .stat-val { font-size: 2.125rem; }
  .section-header { flex-direction: column; align-items: flex-start; }
  .machine-card { padding: 32px 28px; gap: 28px; }
  .machine-img { width: 120px; height: 120px; }
  /* 3 per row — wraps instead of squeezing all 5 onto one line */
  .trust-item {
    padding: 2.25rem 1rem;
    flex: 1 1 33.333%; max-width: 33.333%;
    border-bottom: 1px solid rgba(255,255,255,0.15);
  }
  .trust-item:nth-child(3n) { border-right: none; }
  .dealer-cta-inner { flex-direction: column; align-items: flex-start; }
}

/* Below 768px the cards stack and the QR goes: nobody scans a code on the
   screen they are holding — the button does that job. */
@media (max-width: 767px) {
  .google-qr { display: none; }
  .google-text-desktop { display: none; }
  .google-text-mobile { display: inline; }
  .google-card-text { margin-bottom: 20px; }
}

@media (max-width:575px) {
  .hero-main { --tv-hero-gap: 2rem; padding-bottom: 3.5rem; min-height: auto; }
  .hero-crosshair { display: none; }
  /* Re-centre the whole hero block on phones — one narrow column reads
     better centred than ragged-left. */
  .hero-content { text-align: center; margin-left: auto; margin-right: auto; }
  .hero-desc { margin-left: auto; margin-right: auto; }
  .hero-btns { justify-content: center; }
  .hero-stats-inner { justify-content: center; }
  .hero-eyebrow { font-size: 0.625rem; padding: 6px 12px; margin-bottom: 18px; }
  .hero-title { font-size: clamp(2rem,9vw,3rem); margin-bottom: 16px; }
  .hero-desc { font-size: 0.875rem; margin-bottom: 24px; }
  .hero-btns { gap: 10px; }
  .hero-btns .btn-primary,
  .hero-btns .btn-outline { flex: 1; text-align: center; padding: 10px 14px !important; font-size: 0.75rem !important; }
  .hero-stats { margin-top: 28px; padding-top: 20px; }
  .hero-stats-inner { gap: 20px; }
  .stat-val { font-size: 1.75rem; }
  .industries-tags { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .industry-tag { font-size: 0.6875rem; padding: 6px 10px; }
  .products-strip { padding: 3.75rem 0; }
  .section-header { flex-direction: column; gap: 14px; }
  .prod-card { padding: 24px 18px; }
  .featured { padding: 3.75rem 0; }
  .machine-card { flex-direction: column; text-align: center; padding: 24px 18px; gap: 16px; }
  .machine-img { width: 90px; height: 90px; margin: 0 auto; }
  .machine-model { font-size: 1.75rem; }
  .machine-spec { justify-content: center; gap: 16px; }
  .trust-wrap { padding: 2.5rem 0; }
  /* 2 per row; the odd 5th cell spans full width */
  .trust-item {
    padding: 1.5rem 0.75rem;
    flex: 1 1 50%; max-width: 50%;
    border-right: 1px solid rgba(255,255,255,0.15);
    border-bottom: 1px solid rgba(255,255,255,0.15);
  }
  .trust-item:nth-child(2n) { border-right: none; }
  .trust-item:last-child {
    flex-basis: 100%; max-width: 100%;
    border-right: none; border-bottom: none;
  }
  .trust-num { font-size: 1.25rem; }
  .testimonials { padding: 3.75rem 0; }
  .testi-card { padding: 24px; }
  .dealer-cta { padding: 3.75rem 0; }
  .dealer-cta h2 { font-size: clamp(1.625rem,8vw,2.375rem); }
  .dealer-cta-btns { width: 100%; flex-direction: column; }
  .dealer-cta-btns .btn-primary,
  .dealer-cta-btns .btn-outline { width: 100%; text-align: center; }
}