/* ==========================================================================
   GTE Trade landing page, version 2 (gtetrade.com/v2/)
   Full-width picture hero and product cards. Loaded after style.css;
   every other section of the page uses the shared stylesheet.
   ========================================================================== */

/* ---------- Hero: full-width pictures, text on a navy shade ---------- */
.v2-hero {
  position: relative; isolation: isolate; overflow: hidden;
  display: grid; min-height: clamp(560px, calc(100svh - var(--header-h) - 44px), 800px);
  color: #fff; background: var(--navy);
}
.v2-hero__slides { position: absolute; inset: 0; z-index: -2; }
.v2-hero .slide img { object-position: 64% 50%; }   /* the product sits right of centre in every picture */
.v2-hero__shade {   /* deep navy behind the text, clear over the product */
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(11, 31, 58, .92) 0%, rgba(11, 31, 58, .8) 28%, rgba(11, 31, 58, .42) 52%, rgba(11, 31, 58, 0) 70%),
    linear-gradient(0deg, rgba(11, 31, 58, .5) 0%, rgba(11, 31, 58, 0) 26%);
}
.v2-hero__inner { display: grid; grid-template-rows: 1fr auto; gap: 32px; padding-block: clamp(44px, 6vw, 84px) 96px; }
.v2-hero__copy { align-self: center; max-width: 640px; gap: 20px; }
.v2-hero__copy h1 { color: #fff; font-size: clamp(2.2rem, 3.2vw + .9rem, 3.85rem); text-wrap: balance; }
.v2-hero__copy .lede { max-width: 52ch; color: rgba(255, 255, 255, .86); font-size: clamp(1.02rem, .35vw + .95rem, 1.18rem); }
.v2-hero .hero__eyebrow {
  background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .26); color: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22);
}
.btn--on-dark { background: rgba(255, 255, 255, .06); color: #fff; border-color: rgba(255, 255, 255, .8); }
.btn--on-dark:hover { background: #fff; color: var(--navy); border-color: #fff; }

.v2-hero__seals { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }
.v2-hero__seals a {
  display: inline-flex; align-items: center; gap: 10px; padding: 7px 16px 7px 7px;
  color: #fff; text-decoration: none; border-radius: 999px;
  background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .22);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  transition: background-color .2s ease, border-color .2s ease;
}
.v2-hero__seals svg { flex: none; width: 38px; height: 38px; padding: 3px 4px 2px; border-radius: 50%; background: #fff; }
.v2-hero__seals strong { display: block; font-family: var(--font-display); font-weight: 700; font-size: .9rem; line-height: 1.2; }
.v2-hero__seals small { display: block; font-size: .76rem; line-height: 1.3; color: rgba(255, 255, 255, .76); }
@media (hover: hover) and (pointer: fine) { .v2-hero__seals a:hover { background: rgba(255, 255, 255, .18); border-color: rgba(255, 255, 255, .4); } }

/* the picture's name on the left, dots and pause on the right */
.v2-hero__bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.v2-hero .hero__caption { position: static; max-width: none; }
.v2-hero .hero__controls { position: static; }

/* the facts card rides on the lower edge of the hero */
.v2-facts-wrap { position: relative; z-index: 2; margin-top: -58px; }
.v2-facts {
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); margin: 0;
  background: #fff; border-radius: var(--radius);
  box-shadow: 0 0 0 1px rgba(11, 31, 58, .06), 0 30px 56px -34px rgba(11, 31, 58, .55);
}
.v2-facts > div { min-width: 0; padding: 20px 22px; border-left: var(--rule); }
.v2-facts > div:first-child { border-left: 0; }
.v2-facts dt { font-size: .78rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--slate); }
.v2-facts dd { margin: 6px 0 0; font-family: var(--font-display); font-weight: 700; font-size: clamp(.98rem, .3vw + .9rem, 1.12rem); line-height: 1.25; color: var(--navy); overflow-wrap: anywhere; }
.v2-facts dd::before { content: ""; display: block; width: 22px; height: 4px; margin-bottom: 8px; background: var(--orange); clip-path: polygon(3% 0, 100% 0, 90% 100%, 0 100%); }
.v2-ships { margin-top: 28px; }

/* ---------- Product cards in the collections section ---------- */
.pcards { display: grid; gap: clamp(32px, 4vw, 52px); }
.pcards__head {
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
  margin-bottom: 18px; padding-bottom: 12px; border-bottom: var(--rule);
}
.pcards__head h3 { display: flex; align-items: center; gap: 10px; font-size: clamp(1.15rem, .5vw + 1rem, 1.4rem); }
.pcards__head h3::before { content: ""; flex: none; width: 12px; height: 12px; border-radius: 50%; background: var(--dot, var(--orange)); }
.pcards__head span { flex: none; color: var(--slate); font-weight: 600; font-size: .92rem; }
.pcards__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.pcard {
  display: grid; grid-template-rows: auto 1fr; height: 100%; overflow: hidden;
  color: var(--navy); text-decoration: none; background: #fff; border-radius: 22px;
  box-shadow: 0 0 0 1px rgba(11, 31, 58, .08), 0 18px 34px -30px rgba(11, 31, 58, .6);
  transition: transform .25s var(--ease-out), box-shadow .25s ease;
}
.pcard:focus-visible { outline: 3px solid var(--navy-light); outline-offset: 3px; }
.pcard__media { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--mist); }
.pcard__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease-out); }
.pcard .tag { position: absolute; left: 12px; top: 12px; }
.pcard__body { display: grid; grid-template-rows: auto 1fr auto; gap: 6px; padding: 14px 16px 16px; }
.pcard__name { font-family: var(--font-display); font-weight: 700; font-size: 1.02rem; line-height: 1.25; hyphens: auto; overflow-wrap: anywhere; }   /* long German words break inside a narrow card */
.pcard__lede {
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  color: var(--slate); font-size: .9rem; line-height: 1.45;
}
.pcard__foot { display: flex; align-items: center; gap: 8px; margin-top: 8px; padding-top: 12px; border-top: var(--rule); }
.pcard__dots { display: inline-flex; align-items: center; min-width: 0; }
.pcard__dots img { width: 22px; height: 22px; margin-left: -6px; object-fit: cover; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 1px var(--line); }
.pcard__dots img:first-child { margin-left: 0; }
.pcard__dots b { margin-left: 6px; font-size: .78rem; font-weight: 600; color: var(--slate); }
.pcard__go { display: inline-flex; align-items: center; gap: 7px; margin-left: auto; font-weight: 700; font-size: .84rem; white-space: nowrap; }
.pcard__go svg { flex: none; width: 28px; height: 28px; padding: 6px; border-radius: 50%; color: #fff; background: var(--navy); transition: transform .2s var(--ease-out), background-color .2s ease; }
@media (hover: hover) and (pointer: fine) {
  .pcard:hover { transform: translateY(-4px); box-shadow: 0 0 0 1px rgba(11, 31, 58, .1), 0 28px 40px -28px rgba(11, 31, 58, .6); }
  .pcard:hover .pcard__media img { transform: scale(1.05); }
  .pcard:hover .pcard__go svg { transform: translateX(3px); background: var(--orange); }
}
/* the product a card leads to lights up for a moment */
.product.is-flash { animation: pflash 1.8s ease-out; }
@keyframes pflash { 0%, 35% { box-shadow: 0 0 0 4px rgba(255, 106, 19, .6); } 100% { box-shadow: 0 0 0 4px rgba(255, 106, 19, 0); } }

/* ---------- Narrower screens ---------- */
@media (max-width: 1080px) {
  .pcards__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .v2-facts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .v2-facts > div:nth-child(4) { border-left: 0; }
  .v2-facts > div:nth-child(n + 4) { border-top: var(--rule); }
}
@media (max-width: 760px) {
  /* phones: the picture on top so the product shows, the text below on navy */
  .v2-hero { min-height: 0; }
  .v2-hero__slides { position: relative; z-index: 0; height: min(66vw, 420px); }
  .v2-hero .slide img { object-position: 74% 50%; }
  .v2-hero__shade { inset: 0 0 auto 0; height: min(66vw, 420px); background: linear-gradient(180deg, rgba(11, 31, 58, 0) 52%, rgba(11, 31, 58, .7) 82%, var(--navy) 100%); z-index: 1; }
  .v2-hero__inner { position: relative; z-index: 2; grid-template-rows: auto auto; gap: 20px; margin-top: -58px; padding-block: 0 84px; }
  .v2-hero__bar { order: -1; }
  .v2-hero__copy { gap: 16px; }
  .v2-hero__copy h1 { font-size: clamp(1.95rem, 7.2vw, 2.45rem); }
  .v2-hero .hero__actions { width: 100%; }
  .v2-hero .hero__actions .btn { flex: 1 1 200px; }
  .v2-hero .hero__caption { min-width: 0; }
  .v2-hero .hero__caption span { overflow: hidden; }
  .v2-hero .hero__caption b, .v2-hero .hero__caption small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .v2-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .v2-facts > div { padding: 16px; }
  .v2-facts > div:nth-child(n) { border-left: 0; border-top: var(--rule); }
  .v2-facts > div:nth-child(-n + 2) { border-top: 0; }
  .v2-facts > div:nth-child(even) { border-left: var(--rule); }
  .v2-facts > div:last-child { grid-column: 1 / -1; }
  .pcards__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .pcard { border-radius: 18px; }
  .pcard .tag { left: 8px; top: 8px; font-size: .74rem; }
  .pcard__body { padding: 11px 12px 12px; gap: 4px; }
  .pcard__name { font-size: .93rem; }
  .pcard__lede { font-size: .82rem; }
  .pcard__foot { margin-top: 6px; padding-top: 10px; }
  .pcard__go-text { display: none; }
  .pcard__dots img { width: 18px; height: 18px; }
}
@media (max-width: 420px) {
  .v2-hero__seals a { padding-right: 12px; }
  .v2-hero__seals small { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .pcard, .pcard__media img, .pcard__go svg { transition: none; }
}
