/* ==========================================================================
   DECOVINK homepage (Phase H.3: sportswear first)
   Loaded on the front page only. Builds on the theme tokens and the shared
   .dv-section / .dv-hero / .dv-btn components.
   ========================================================================== */

/* Hero ------------------------------------------------------------------- */
.dv-home-hero__sub {
  margin: 10px 0 0;
  font-size: clamp(1.15rem, 1rem + 0.8vw, 1.5rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--dv-accent, #E30613);
}
.dv-home-hero__dtf { margin: 18px 0 0; font-size: 0.9375rem; color: var(--dv-ink-muted, #57514F); }
.dv-home-hero__dtf a { font-weight: 600; color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.dv-home-hero__dtf a:hover { color: var(--dv-accent, #E30613); }

/* Shared section head spacing */
.dv-home .dv-sec-sub { max-width: 46rem; }
.dv-home-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin: 28px 0 0; }
.dv-home-cta__link { font-weight: 600; color: inherit; text-decoration: underline; text-underline-offset: 3px; }

/* Sports cards ------------------------------------------------------------ */
.dv-home-sports {
  display: grid; gap: 14px; margin: 28px 0 0; padding: 0; list-style: none;
  grid-template-columns: repeat(7, minmax(0, 1fr));
}
.dv-home-sports > li { min-width: 0; }
.dv-home-sport {
  position: relative; display: flex; flex-direction: column; height: 100%;
  overflow: hidden; text-decoration: none; color: #FFFFFF;
  border-radius: 16px; background: #FFFFFF;
  border: 1px solid var(--dv-line, #e4e4e4);
  box-shadow: 0 1px 2px rgba(22,22,22,.04);
  transition: transform .35s cubic-bezier(.2,.7,.2,1), box-shadow .35s ease, border-color .35s ease;
}
.dv-home-sport__media {
  position: relative; display: block; aspect-ratio: 290 / 420; overflow: hidden;
  background: radial-gradient(120% 80% at 50% 30%, #FFFFFF 55%, #f3f3f3 100%);
}
.dv-home-sport__img {
  display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%;
  transform-origin: 50% 35%;
  transition: transform .6s cubic-bezier(.2,.7,.2,1);
}
/* Red sweep that rises behind the label on hover */
.dv-home-sport__media::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 40%;
  background: linear-gradient(0deg, rgba(227,6,19,.22), rgba(227,6,19,0));
  opacity: 0; transition: opacity .4s ease;
}
.dv-home-sport__label {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  flex: 1 1 auto; min-height: 64px; /* every bar fills the card bottom at one height, one- or two-line names */
  padding: 12px 14px; background: #161616; font-weight: 700; font-size: .95rem; line-height: 1.2;
  border-top: 3px solid var(--dv-accent, #E30613);
  transition: background-color .3s ease;
}
.dv-home-sport__arrow { flex: none; opacity: 0; transform: translateX(-6px); transition: opacity .3s ease, transform .3s ease; }
.dv-home-sport__icon { display: flex; align-items: center; justify-content: center; height: 100%; color: var(--dv-accent, #E30613); }

.dv-home-sport:hover, .dv-home-sport:focus-visible {
  color: #FFFFFF; /* the theme turns hovered links red, which would vanish on the red bar */
  transform: translateY(-6px);
  border-color: var(--dv-accent, #E30613);
  box-shadow: 0 18px 36px rgba(22,22,22,.14), 0 4px 10px rgba(227,6,19,.12);
}
.dv-home-sport:hover .dv-home-sport__img, .dv-home-sport:focus-visible .dv-home-sport__img { transform: scale(1.07); }
.dv-home-sport:hover .dv-home-sport__media::after, .dv-home-sport:focus-visible .dv-home-sport__media::after { opacity: 1; }
.dv-home-sport:hover .dv-home-sport__label, .dv-home-sport:focus-visible .dv-home-sport__label { background: var(--dv-accent, #E30613); }
.dv-home-sport:hover .dv-home-sport__arrow, .dv-home-sport:focus-visible .dv-home-sport__arrow { opacity: 1; transform: none; }
.dv-home-sport:focus-visible { outline: 3px solid #161616; outline-offset: 3px; }

@media (prefers-reduced-motion: reduce) {
  .dv-home-sport, .dv-home-sport__img, .dv-home-sport__arrow { transition: none; }
  .dv-home-sport:hover, .dv-home-sport:focus-visible { transform: none; }
  .dv-home-sport:hover .dv-home-sport__img { transform: none; }
}

/* Tablet: 4 + 3 */
@media (min-width: 640px) and (max-width: 1099px) {
  .dv-home-sports { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
/* Phones: a swipeable row (scrolls inside itself; the page never scrolls sideways) */
@media (max-width: 639px) {
  .dv-home-sports {
    display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory;
    margin-inline: calc(-1 * var(--dv-gutter, 24px)); padding: 6px var(--dv-gutter, 24px) 14px;
    scrollbar-width: none; -webkit-overflow-scrolling: touch;
    scroll-padding-inline: var(--dv-gutter, 24px);
  }
  .dv-home-sports::-webkit-scrollbar { display: none; }
  .dv-home-sports > li { flex: 0 0 56%; scroll-snap-align: start; }
}
.dv-home-serves { margin: 22px 0 0; font-size: 0.9375rem; color: var(--dv-ink-muted, #57514F); }
.dv-home-serves strong { color: #161616; }

/* Outfit the organization ----------------------------------------------- */
.dv-home-outfit {
  display: grid; gap: 1px; margin: 28px 0 0; padding: 0; list-style: none;
  grid-template-columns: 1fr; background: var(--dv-line, #e4e4e4);
  border: 1px solid var(--dv-line, #e4e4e4); border-radius: 16px; overflow: hidden;
}
@media (min-width: 640px) { .dv-home-outfit { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .dv-home-outfit { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.dv-home-outfit__item { background: #FFFFFF; padding: 22px 22px 24px; min-width: 0; }
.dv-home-outfit__n { display: block; font-size: 0.8rem; font-weight: 700; letter-spacing: .08em; color: var(--dv-accent, #E30613); }
.dv-home-outfit__title { margin: 6px 0 6px; font-size: 1.15rem; line-height: 1.25; }
.dv-home-outfit__item p { margin: 0; font-size: 0.9375rem; line-height: 1.55; color: var(--dv-ink-muted, #57514F); }
.dv-home-note { margin: 14px 0 0; font-size: 0.8125rem; color: var(--dv-ink-muted, #57514F); }

/* Team order steps ------------------------------------------------------- */
.dv-home-steps {
  display: grid; gap: 10px; margin: 24px 0 0; padding: 0; list-style: none;
  grid-template-columns: repeat(2, minmax(0, 1fr)); counter-reset: none;
}
@media (min-width: 768px) { .dv-home-steps { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.dv-home-steps li { display: flex; align-items: center; gap: 10px; min-width: 0; padding: 12px 14px; border: 1px solid var(--dv-line, #e4e4e4); border-radius: 12px; background: #FFFFFF; }
.dv-home-steps__n {
  flex: none; display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; border-radius: 50%; background: var(--dv-accent, #E30613); color: #FFFFFF; font-weight: 700; font-size: .85rem;
}
.dv-home-steps__t { font-weight: 600; font-size: 0.92rem; line-height: 1.3; min-width: 0; }

/* Custom apparel --------------------------------------------------------- */
.dv-home-apparel { display: grid; gap: 16px; margin: 28px 0 0; }
@media (min-width: 900px) { .dv-home-apparel { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); } }
.dv-home-apparel__feature {
  display: flex; flex-direction: column; justify-content: flex-end; gap: 10px; min-height: 260px;
  padding: clamp(22px, 4vw, 36px); border-radius: 18px; text-decoration: none; color: #FFFFFF;
  background: linear-gradient(135deg, #161616 0%, #2a0a0c 100%);
  border-left: 6px solid var(--dv-accent, #E30613);
}
.dv-home-apparel__kicker { font-size: .75rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #ff6b73; }
.dv-home-apparel__title { font-size: clamp(1.5rem, 1.2rem + 1.4vw, 2.1rem); font-weight: 800; line-height: 1.1; letter-spacing: -0.02em; }
.dv-home-apparel__text { max-width: 34rem; color: rgba(255,255,255,.82); line-height: 1.55; }
.dv-home-apparel__more { font-weight: 700; }
.dv-home-apparel__feature:hover .dv-home-apparel__more, .dv-home-apparel__feature:focus-visible .dv-home-apparel__more { text-decoration: underline; }
.dv-home-apparel__side { min-width: 0; padding: 22px; border: 1px solid var(--dv-line, #e4e4e4); border-radius: 18px; background: #FFFFFF; }
.dv-home-apparel__list { margin: 0; padding: 0; list-style: none; }
.dv-home-apparel__list li + li { border-top: 1px solid var(--dv-line, #e4e4e4); }
.dv-home-apparel__list a { display: flex; justify-content: space-between; gap: 12px; padding: 11px 2px; font-weight: 600; color: #161616; text-decoration: none; }
.dv-home-apparel__list a::after { content: "\2192"; color: var(--dv-accent, #E30613); }
.dv-home-apparel__list a:hover { color: var(--dv-accent, #E30613); }
.dv-home-apparel__helplabel { margin: 18px 0 8px; font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--dv-ink-muted, #57514F); }
.dv-home-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.dv-home-chips li { padding: 6px 10px; border-radius: 999px; background: var(--dv-surface-alt, #f4f4f4); font-size: .82rem; font-weight: 600; }

/* Capabilities ----------------------------------------------------------- */
.dv-home-caps { display: grid; gap: 14px; margin: 28px 0 0; padding: 0; list-style: none; grid-template-columns: 1fr; }
@media (min-width: 640px) { .dv-home-caps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) {
  .dv-home-caps { grid-template-columns: minmax(0, 1.35fr) repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 640px) and (max-width: 1023px) { .dv-home-caps__item--lead { grid-column: 1 / -1; } }
.dv-home-caps__item { min-width: 0; }
.dv-home-cap {
  display: flex; flex-direction: column; height: 100%; overflow: hidden; text-decoration: none; color: #161616;
  border: 1px solid var(--dv-line, #e4e4e4); border-radius: 16px; background: #FFFFFF;
  transition: border-color .16s ease, box-shadow .16s ease;
}
.dv-home-cap:hover, .dv-home-cap:focus-visible { border-color: #161616; box-shadow: 0 10px 24px rgba(22,22,22,.08); }
.dv-home-cap__media { display: block; aspect-ratio: 4 / 3; background: var(--dv-surface-alt, #f4f4f4); overflow: hidden; }
.dv-home-caps__item--lead .dv-home-cap__media { aspect-ratio: 16 / 10; }
@media (min-width: 1024px) { .dv-home-caps__item--lead .dv-home-cap__media { aspect-ratio: 4 / 3; } }
.dv-home-caps__img { display: block; width: 100%; height: 100%; object-fit: cover; }
.dv-home-cap__body { display: flex; flex-direction: column; gap: 6px; padding: 16px 18px 20px; }
.dv-home-cap__title { font-size: 1.1rem; font-weight: 700; }
.dv-home-caps__item--lead .dv-home-cap__title { font-size: 1.35rem; }
.dv-home-cap__text { font-size: .9rem; line-height: 1.5; color: var(--dv-ink-muted, #57514F); }
.dv-home-cap__more { margin-top: 4px; font-weight: 700; font-size: .9rem; color: var(--dv-accent, #E30613); }

/* DTF quick ordering ----------------------------------------------------- */
.dv-home-dtf__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 8px 24px; }
.dv-home-dtf__badge { display: inline-block; margin: 0; padding: 6px 12px; border-radius: 999px; background: #161616; color: #FFFFFF; font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }

/* Embroidery ------------------------------------------------------------- */
.dv-home-emb { display: grid; gap: 28px; align-items: center; }
@media (min-width: 900px) { .dv-home-emb { grid-template-columns: minmax(0, 1fr) minmax(0, 0.85fr); } }
.dv-home-emb__media { margin: 0; }
.dv-home-emb__img { display: block; width: 100%; height: auto; max-height: 460px; object-fit: cover; border-radius: 18px; }

/* Why DECOVINK ----------------------------------------------------------- */
.dv-home-why { display: grid; gap: 18px 28px; margin: 28px 0 0; padding: 0; list-style: none; grid-template-columns: 1fr; }
@media (min-width: 640px) { .dv-home-why { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .dv-home-why { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.dv-home-why li { min-width: 0; padding-left: 16px; border-left: 3px solid var(--dv-accent, #E30613); }
.dv-home-why__title { display: block; font-weight: 700; }
.dv-home-why__text { display: block; margin-top: 4px; font-size: .9rem; line-height: 1.5; color: var(--dv-ink-muted, #57514F); }

/* B2B band --------------------------------------------------------------- */
.dv-home-b2b { background: #161616; color: #FFFFFF; }
.dv-home-b2b .dv-eyebrow { color: #ff6b73; }
.dv-home-b2b .dv-sec-head { color: #FFFFFF; }
.dv-home-b2b p { color: rgba(255,255,255,.8); }
.dv-home-b2b__grid { display: grid; gap: 28px; }
@media (min-width: 900px) { .dv-home-b2b__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; } }
.dv-home-b2b__caps { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.dv-home-b2b__caps li { padding: 14px 16px; border: 1px solid rgba(255,255,255,.16); border-radius: 12px; }
.dv-home-b2b__caps strong { display: block; color: #FFFFFF; }
.dv-home-b2b__caps span { font-size: .9rem; color: rgba(255,255,255,.72); }
.dv-home-b2b__caps a { color: #FFFFFF; }
.dv-home-b2b .dv-home-chips li { background: rgba(255,255,255,.08); color: #FFFFFF; }
.dv-home-b2b .dv-btn--outline { color: #FFFFFF; border-color: rgba(255,255,255,.6); }
.dv-home-b2b .dv-btn--outline:hover { background: #FFFFFF; color: #161616; }

/* Phones: long CTA labels wrap rather than push the page sideways. */
@media (max-width: 640px) {
  .dv-home .dv-btn.dv-btn { white-space: normal; text-align: center; max-width: 100%; }
  .dv-home .dv-btn-wrap .dv-btn, .dv-home .dv-home-cta .dv-btn { width: 100%; justify-content: center; }
}

.dv-home-steps__head { margin: 44px 0 0; font-size: 1.25rem; }

/* Clear space between the DTF heading row (with its badge) and the cards. */
.dv-home #dtf .dv-paths { margin-top: 24px; }

/* ==========================================================================
   Full-bleed hero with the header over it (front page only).
   ========================================================================== */

/* Header: transparent over the photo until scrolled, a menu opens, or search
   opens; then the normal solid header returns. Internal pages untouched. */
.dv-hero-overlay .dv-header { transition: background-color .25s ease, border-color .25s ease; }
.dv-hero-overlay .dv-header:not(.is-scrolled):not(:has(.dv-nav__item.is-open)):not(:has(.dv-search:not([hidden]))) {
  background: transparent;
  border-bottom-color: transparent;
}

.dv-home-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  margin-top: calc(-1 * var(--dv-header-h, 72px) - 1px); /* slide under the sticky header */
  background: #f2f2f2;
}
.dv-home-hero__media { position: absolute; inset: 0; z-index: -1; }
.dv-home-hero__media picture { display: block; width: 100%; height: 100%; }
.dv-home-hero__img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 74% 40%; }
.dv-home-hero__media::after {
  content: "";
  position: absolute; inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(255,255,255,.72) 0, rgba(255,255,255,0) 150px),
    linear-gradient(90deg, rgba(255,255,255,.95) 0%, rgba(255,255,255,.88) 28%, rgba(255,255,255,.5) 44%, rgba(255,255,255,0) 60%);
}

.dv-home-hero__inner {
  display: flex;
  align-items: center;
  min-height: clamp(680px, 84vh, 780px);
  padding-top: calc(var(--dv-header-h, 72px) + 40px);
  padding-bottom: 72px;
}
.dv-home-hero__copy { max-width: 560px; }
.dv-home-hero .dv-eyebrow { margin: 0 0 14px; color: var(--dv-accent, #E30613); }
.dv-home-hero__title {
  margin: 0;
  font-size: clamp(2.5rem, 1.4rem + 3.6vw, 4.5rem);
  line-height: 1.02;
  letter-spacing: -0.035em;
  font-weight: 800;
  color: #111111;
}
.dv-home-hero .dv-home-hero__sub { margin: 14px 0 0; }
.dv-home-hero__lead { margin: 14px 0 0; max-width: 30em; font-size: 1.0625rem; line-height: 1.6; color: #2b2b2b; }
.dv-home-hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin: 30px 0 0; }
.dv-home-hero__ctas .dv-btn--primary { padding-inline: 34px; box-shadow: 0 10px 24px rgba(227,6,19,.25); }
.dv-home-hero__ctas .dv-btn--outline { background: rgba(255,255,255,.88); border-color: #161616; color: #161616; }
.dv-home-hero__ctas .dv-btn--outline:hover { background: #161616; color: #FFFFFF; }
.dv-home-hero .dv-home-hero__dtf { margin-top: 18px; color: #3a3a3a; }

/* Below 1100px the photo becomes a band under the header and the copy sits
   beneath it on white, so text never covers faces. */
@media (max-width: 1099px) {
  .dv-home-hero { background: #FFFFFF; margin-top: 0; } /* photo starts below the header so faces are never behind it */
  .dv-home-hero__media { position: relative; inset: auto; height: clamp(300px, 46vw, 470px); }
  .dv-home-hero__img { object-position: 64% 28%; }
  .dv-home-hero__media::after {
    background:
      linear-gradient(180deg, rgba(255,255,255,.78) 0, rgba(255,255,255,0) 120px),
      linear-gradient(0deg, #FFFFFF 0, rgba(255,255,255,0) 90px);
  }
  .dv-home-hero__inner { display: block; min-height: 0; margin-top: -36px; padding-top: 0; padding-bottom: 48px; position: relative; }
}
@media (max-width: 767px) {
  .dv-home-hero__media { height: clamp(200px, 56vw, 240px); }
  .dv-home-hero__img { object-position: 60% 25%; }
  .dv-home-hero__inner { margin-top: -24px; padding-bottom: 40px; }
  .dv-home-hero__ctas { margin-top: 22px; }
  .dv-home-hero__title { font-size: clamp(2.1rem, 1.2rem + 4.6vw, 2.75rem); }
  .dv-home-hero__lead { font-size: 1rem; }
  .dv-home-hero__ctas .dv-btn { width: 100%; justify-content: center; }
}

/* Final CTA band (no longer depends on the Custom Apparel stylesheet). */
.dv-home-final { text-align: center; max-width: 44rem; margin: 0 auto; }
.dv-home-final__title { margin: 0; }
.dv-home-final__sub { margin: 12px 0 0; color: var(--dv-ink-muted, #57514F); }
.dv-home-final__btns { margin: 22px 0 0; }

/* The logo file has an opaque white background, so where the photo runs
   behind the header (stacked layouts) the header gets a light frosted tint
   instead of full transparency: the logo then reads as intended. */
@media (max-width: 1099px) {
  .dv-hero-overlay .dv-header:not(.is-scrolled):not(:has(.dv-nav__item.is-open)):not(:has(.dv-search:not([hidden]))) {
    background: rgba(255,255,255,.86);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
  }
}

/* 900-1099px (tablet landscape): split instead of stacked, so the heading and
   buttons stay on the first screen; photo right, copy left, no overlap. */
@media (min-width: 900px) and (max-width: 1099px) {
  .dv-home-hero { display: flex; flex-direction: row-reverse; align-items: stretch; }
  .dv-home-hero__media { flex: 0 0 46%; height: auto; min-height: 560px; }
  .dv-home-hero__media::after { background: linear-gradient(90deg, #FFFFFF 0, rgba(255,255,255,0) 90px); }
  .dv-home-hero__img { object-position: 58% 30%; }
  .dv-home-hero__inner { flex: 1 1 auto; display: flex; align-items: center; margin: 0; padding-top: 40px; padding-bottom: 40px; }
  .dv-home-hero__title { font-size: clamp(2.4rem, 1rem + 3.2vw, 3.2rem); }
}
