/*
  Home page. Scoped to body.page-home.
  Hero (video + still), sourcing tool cards below the hero's edge,
  help strip, "why" section (existing photo cards kept), dark product band,
  manufacturer logo ribbon, contact band with component art.
*/

.page-home {
  --pd-hero-min: clamp(560px, 48vw, 680px);
  --pd-h1: clamp(40px, 4.6vw, 68px);
  --pd-tint: .5;
  --pd-tint-video: .92;
  --home-cut: 44px;
}

.page-home main > .hero h1 { max-width: 980px; }
.page-home main > .hero .hero-copy { max-width: 600px; }

/* Match Industries' shared video shading; keep decorative animation off. */
.page-home .pd-hero-trace { display: none; }

/* ===============================================================
   SOURCING TOOLS: three cards that sit below the hero's diagonal edge
   =============================================================== */
.page-home main > .hero + #sourcing-tools {
  position: relative;
  isolation: isolate;
  margin-bottom: calc(var(--home-cut) * -1);
  padding: calc(var(--pd-cut) + 76px) 0 calc(var(--home-cut) + 92px);
  border: 0;
  color: #fff;
  background:
    radial-gradient(ellipse 45% 70% at 10% 0%, #5fe0ee59 0%, transparent 65%),
    var(--pd-route-dark-tr) right -60px top 40px / min(760px, 70vw) auto no-repeat,
    var(--pd-route-dark-bl) left -80px bottom 10px / min(680px, 64vw) auto no-repeat,
    linear-gradient(135deg, #00a9c0 0%, #008ea3 52%, #006c80 100%);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 calc(100% - var(--home-cut)));
}

.page-home .sourcing-actions .sourcing-grid { gap: 26px; }

.page-home #sourcing-tools .sourcing-three article,
.page-home #sourcing-tools .sourcing-three article:first-child,
.page-home #sourcing-tools .sourcing-three article:last-child {
  position: relative;
  padding: 34px 32px 32px;
  border: 1px solid #ffffff59;
  border-radius: 14px;
  background:
    linear-gradient(90deg, #3fd0e0, #00a0b6) 0 0 / 72px 3px no-repeat,
    #fff;
  box-shadow: 0 40px 64px -30px #00252fa6, 0 2px 4px #00252f26;
  overflow: hidden;
  transition: transform .3s var(--pd-ease), box-shadow .3s ease, border-color .3s ease, background-size .45s var(--pd-ease);
}

.page-home #sourcing-tools .sourcing-three svg {
  width: 60px;
  height: 60px;
  padding: 14px;
  border-radius: 12px;
  background: linear-gradient(145deg, #eaf8fa, #d6eef2);
  box-shadow: inset 0 0 0 1px #bfe1e8;
  stroke: var(--pd-teal-deep);
  stroke-width: 1.9;
  transition: background .3s ease, stroke .3s ease, box-shadow .3s ease;
}

.page-home #sourcing-tools .sourcing-three h2 {
  font-size: 28px;
  line-height: 1.1;
  letter-spacing: -.03em;
  color: var(--pd-navy);
}

.page-home #sourcing-tools .sourcing-three h2 span { color: var(--pd-teal-dark); }

.page-home #sourcing-tools .sourcing-three p {
  margin: 14px 0 26px;
  font-size: 16px;
  line-height: 1.7;
  color: var(--pd-body);
}

.page-home #sourcing-tools .sourcing-three .button {
  min-height: 50px;
  font-size: 12.5px;
  padding: 12px 20px;
}

.page-home #sourcing-tools .sourcing-three small { color: #5b747c; font-size: 12.5px; }

@media (hover: hover) {
  .page-home #sourcing-tools .sourcing-three article:hover,
  .page-home #sourcing-tools .sourcing-three article:focus-within {
    background-size: 100% 3px, auto;
    background-color: #fff;
    border-color: #8cc9d3;
    box-shadow: 0 40px 66px -34px #0b303ca6, 0 2px 4px #0b303c0d;
  }

  .page-home #sourcing-tools .sourcing-three article:hover svg {
    background: linear-gradient(145deg, #00a0b6, #007f94);
    box-shadow: 0 14px 26px -10px #00a0b680;
    stroke: #fff;
  }
}

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .page-home #sourcing-tools .sourcing-three article:hover { transform: translateY(-5px); }
}

/* ===============================================================
   HELP STRIP: full-bleed navy bar under the teal band
   =============================================================== */
.page-home .quick-quote-strip {
  padding: calc(var(--home-cut) + 6px) 0 0;
  border: 0;
  background: linear-gradient(90deg, #06222e 0%, #0a3445 55%, #0b4253 100%);
}

.page-home .quick-quote-inner {
  gap: 26px;
  padding: 34px 0 38px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.page-home .quote-strip-mark {
  display: grid;
  place-items: center;
  flex: none;
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: linear-gradient(145deg, #00a0b6, #006c80);
  font-size: 28px;
  font-weight: 800;
  color: #fff;
  box-shadow: 0 0 0 1px #7fe3ee66, 0 0 30px -4px #7fe3ee66;
}

.page-home .quick-quote-copy strong { font-size: 21px; letter-spacing: -.01em; color: #fff; }
.page-home .quick-quote-copy p { color: #bad6dd; }

.page-home .quick-quote-inner .button.primary {
  min-width: 210px;
  color: var(--pd-navy);
  background: #edfafd;
  border-color: #b9f2f5;
}

.page-home .quick-quote-inner .button.primary:hover { background: #bceff4; color: #043b4b; border-color: #b9f2f5; }
.page-home .quick-quote-inner .button.primary::after { filter: brightness(0) saturate(100%) invert(18%) sepia(60%) saturate(1200%) hue-rotate(160deg); }
.page-home .quick-quote-inner .button:focus-visible { outline-color: #fff; }

/* ===============================================================
   WHY PASSIVES DIRECT: intro split + the existing photo cards
   =============================================================== */
.page-home .intro.container {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 96px 0 108px;
  border: 0;
  background:
    radial-gradient(ellipse 55% 45% at 100% 0%, #d4edf1 0%, transparent 70%),
    linear-gradient(180deg, #f8fbfc 0%, #eaf2f4 100%);
}

.page-home .intro.container::before {
  display: block;
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 1;
  pointer-events: none;
  background: var(--pd-route-light-bl) left -80px bottom -30px / min(720px, 70vw) auto no-repeat;
}

.page-home .intro.container::after {
  display: block;
  content: "";
  position: absolute;
  z-index: -1;
  width: 520px;
  height: 520px;
  right: -140px;
  top: -200px;
  border: 1px solid #00a0b633;
  border-radius: 50%;
  box-shadow: 0 0 0 50px #00a0b60d, 0 0 0 100px #00a0b608;
  pointer-events: none;
}

.page-home .intro.container > .pd-split,
.page-home .intro.container > .service-grid {
  width: calc(100% - 80px);
  max-width: 1280px;
  margin-inline: auto;
}

.page-home .intro .why-direct-grid { margin-top: 60px; gap: 24px; }

.page-home .intro .why-direct-grid article:nth-child(n) {
  border-radius: 12px;
  box-shadow: 0 30px 56px -34px #0b303c99;
}

/* ===============================================================
   COMPONENT FAMILIES: a plain, static row of icon labels inside the dark
   product band (not links, no animation).
   =============================================================== */
.page-home .pd-family-bar { margin-top: 60px; }

.page-home .pd-family-bar ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 40px;
  list-style: none;
}

.page-home .pd-family-bar li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 22px 13px 18px;
  border: 1px solid #7fe3ee3d;
  border-radius: 999px;
  background: #ffffff0f;
  color: #e8f6f9;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .9px;
  white-space: nowrap;
}

.page-home .pd-family-bar svg {
  flex: none;
  width: 24px;
  height: 24px;
  fill: none;
  stroke: var(--pd-aqua);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@media (max-width: 760px) {
  .page-home .pd-family-bar ul { padding: 0 18px; gap: 10px; }
  .page-home .pd-family-bar li { padding: 11px 18px 11px 14px; font-size: 12px; }
}

/* ===============================================================
   MANUFACTURER RIBBON: each logo on its own white tile
   =============================================================== */
.page-home .manufacturer-ribbon {
  padding: 44px 0;
  border-block: 1px solid #d3e3e7;
  background: linear-gradient(180deg, #e3eef1 0%, #f2f7f8 100%);
}

.page-home .manufacturer-ribbon .logo-marquee { padding-block: 14px; margin-block: -14px; }

.page-home .manufacturer-ribbon .logo-group {
  width: max-content;
  justify-content: flex-start;
  gap: 22px;
  padding: 0 11px;
}

.page-home .manufacturer-ribbon .logo-group img {
  box-sizing: border-box;
  flex: 0 0 210px;
  width: 210px;
  height: 84px;
  padding: 14px 22px;
  border: 1px solid #d3e3e7;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 16px 30px -22px #0b303c99;
  object-fit: contain;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .page-home .manufacturer-ribbon .logo-group {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    align-items: center;
    width: 100%;
    padding: 0;
  }

  .page-home .manufacturer-ribbon .logo-group img { width: 100%; max-width: none; flex: none; }
}

/* ===============================================================
   CONTACT BAND (component art, then the call to action)
   =============================================================== */
.page-home .contact-section {
  min-height: 400px;
  padding: 0;
  border-top: 0;
  background:
    radial-gradient(ellipse 60% 90% at 100% 0%, #14697c80 0%, transparent 65%),
    var(--pd-route-dark-tr) right -90px center / min(700px, 80vw) auto no-repeat,
    linear-gradient(165deg, #06222e 0%, #0a3445 60%, #0b4253 100%);
}

.page-home .contact-section::before {
  inset: 0;
  left: 0;
  opacity: 1;
  background: none;
  animation: none;
}

.page-home .contact-section::after { display: none; }

.page-home .contact-art {
  width: 44%;
  clip-path: polygon(0 0, 100% 0, calc(100% - 70px) 100%, 0 100%);
}

.page-home .contact-art::after {
  background: linear-gradient(90deg, #00313b00, #082a3550 70%, #082a35b0);
}

.page-home .contact-inner {
  min-height: 400px;
  padding-left: 48%;
  gap: 40px;
}

.page-home .contact-inner .eyebrow { margin-bottom: 18px; font-size: 12px; color: #8ae8ef; }

.page-home .contact-inner h2 {
  font-size: clamp(30px, 3vw, 42px);
  line-height: 1.05;
  letter-spacing: -.035em;
  color: #fff;
}

.page-home .contact-inner > div { flex: 0 1 auto; min-width: 0; }

.page-home .contact-inner h2 span { color: #68dce8; }

.page-home .contact-inner p:not(.eyebrow) { font-size: 17px; line-height: 1.7; color: #cfe4ea; }

.page-home .contact-inner .button.primary {
  min-width: 240px;
  min-height: 58px;
  color: var(--pd-navy);
  background: #edfafd;
  border-color: #b9f2f5;
  box-shadow: 0 14px 28px -12px #000000a0;
}

.page-home .contact-inner .button.primary:hover { background: #bceff4; color: #043b4b; border-color: #b9f2f5; }
.page-home .contact-inner .button.primary::after { filter: brightness(0) saturate(100%) invert(18%) sepia(60%) saturate(1200%) hue-rotate(160deg); }
.page-home .contact-inner .button:focus-visible { outline-color: #fff; }

@media (min-width: 1051px) {
  .page-home .contact-inner { flex-direction: column; align-items: flex-start; justify-content: center; gap: 30px; padding-block: 72px; }
}

@media (max-width: 1050px) {
  .page-home .contact-inner { flex-wrap: wrap; padding-left: 48%; }
}

@media (max-width: 900px) {
  .page-home .intro.container { padding: 72px 0 80px; }
  .page-home .quick-quote-inner { flex-wrap: wrap; padding: 24px; }
  .page-home .quick-quote-copy { flex: 1 1 240px; }
}

@media (max-width: 760px) {
  .page-home main > .hero + #sourcing-tools { padding-top: calc(var(--pd-cut) + 44px); padding-bottom: calc(var(--home-cut) + 56px); }
  .page-home .sourcing-actions .sourcing-grid { gap: 18px; }
  .page-home .intro.container > .pd-split,
  .page-home .intro.container > .service-grid { width: calc(100% - 36px); }
  .page-home .quick-quote-inner .button.primary { width: 100%; margin-left: 0; }
  .page-home .contact-section { min-height: 0; }
  .page-home .contact-art { width: 100%; height: 200px; clip-path: none; }
  .page-home .contact-art::after { background: linear-gradient(180deg, #082a3510, #082a3550 50%, #082a35); }
  .page-home .contact-inner { min-height: 0; padding: 228px 0 64px; flex-direction: column; align-items: stretch; }
  .page-home .contact-inner .button { width: 100%; }
}

@media (prefers-reduced-motion: reduce) and (max-width: 760px) {
  .page-home .manufacturer-ribbon .logo-group { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  .page-home { --home-cut: 28px; }
  .page-home .pd-family-marquee { margin-top: 40px; }
  .page-home .manufacturer-ribbon { padding: 30px 0; }
  .page-home .manufacturer-ribbon .logo-group img { flex-basis: 170px; width: 170px; height: 72px; }
}

/* Use one reveal system for the three sourcing cards, with a gentler rise. */
@media (prefers-reduced-motion: no-preference) {
  .page-home #sourcing-tools .sourcing-three article.reveal-ready {
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 1.1s ease, transform 1.1s cubic-bezier(.22, .61, .36, 1),
      background .2s, border-color .2s, box-shadow .2s;
    transition-delay: var(--reveal-delay, 0ms);
  }
  .page-home #sourcing-tools .sourcing-three article.reveal-ready.is-revealed,
  .page-home #sourcing-tools .sourcing-three article.reveal-ready:focus-within {
    opacity: 1;
    transform: none;
  }
}

/* Small optical lift after removing the repeated hero tagline. */
.page-home main > .hero .hero-inner { top: -8px; }

/* Leaf-shaped stock milestone; the number animates once on entry. */
.page-home .stock-counter-strip {
  position: relative;
  padding: 44px 18px 18px;
  background: #f8fbfc;
  color: #fff;
}
.page-home .stock-counter-inner {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  width: min(330px, 100%);
  min-height: 260px;
  margin-inline: auto;
  padding: 36px 20px;
}
.page-home .stock-counter-inner::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: 62% 5% 62% 5%;
  background: linear-gradient(140deg, #22b6c3 0%, #007e93 48%, #123e50 100%);
  box-shadow: 0 14px 28px -18px #123e5066;
}
.page-home .stock-counter-inner::after {
  content: "";
  position: absolute;
  inset: -10px 10px 10px -10px;
  z-index: -2;
  border: 1px solid #00a0b644;
  border-radius: 62% 5% 62% 5%;
  pointer-events: none;
}
.page-home .stock-counter-value { display: flex; flex-direction: column; align-items: center; gap: 5px; font-weight: 800; line-height: 1; }
.page-home [data-stock-counter] { font-size: 80px; font-variant-numeric: tabular-nums; }
.page-home .stock-counter-unit { font-size: 25px; letter-spacing: 2px; }
.page-home .stock-counter-plus { color: #a9f3f5; margin-left: 4px; }
.page-home .stock-counter-inner p { margin: 0; color: #eefbfc; font-size: 11px; font-weight: 600; letter-spacing: 1.3px; line-height: 1.6; text-align: center; }
@media (max-width: 760px) {
  .page-home .stock-counter-inner { width: min(290px, 100%); min-height: 230px; }
  .page-home [data-stock-counter] { font-size: 68px; }
}

/* Place the milestone inside the existing hero, with no added page height. */
.page-home .home-hero > .stock-counter-strip {
  position: absolute;
  z-index: 3;
  right: max(40px, calc((100vw - 1280px) / 2));
  top: calc(50% - 28px);
  bottom: auto;
  transform: translateY(-50%);
  padding: 0;
  background: transparent;
}
.page-home .home-hero .stock-counter-inner { width: 220px; min-height: 180px; padding: 24px 14px; gap: 10px; }
.page-home .home-hero [data-stock-counter] { font-size: 46px; }
.page-home .home-hero .stock-counter-unit { font-size: 17px; letter-spacing: 1px; }
.page-home .home-hero .stock-counter-inner p { font-size: 8px; letter-spacing: .6px; }
@media (max-width: 1100px) {
  .page-home .home-hero > .stock-counter-strip { display: none; }
}

/* Translucent leaf, with fully legible counter text over the hero video. */
.page-home .home-hero .stock-counter-inner::before { opacity: .72; }
.page-home .home-hero .stock-counter-inner::after { inset: 0; z-index: -1; opacity: .85; border: 2px solid #7fe3ee; }

/* The whole leaf arrives after the headline, rather than leaving an empty number. */
@keyframes stock-leaf-arrive { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: no-preference) {
  .page-home .home-hero > .stock-counter-strip { animation: stock-leaf-arrive .65s ease 3s both; }
  .page-home .home-hero > .stock-counter-strip.counter-waiting { animation: none; opacity: 0; }
  .page-home .home-hero > .stock-counter-strip.counter-enter { animation: stock-leaf-arrive .65s ease both; }
  .page-home .home-hero > .stock-counter-strip.counter-static { animation: none; opacity: 1; }
}
