/* Home page sections (template-ajuste-home.php). Builds on home.css tokens; the cards are in kit-cards.css.
   Layout: headline row over the card carousel, then full-width sections that alternate paper, ink and paper-2. */
.fp-lbl { margin: 0; font-size: 11px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--mute); }
.fp-ink .fp-lbl { color: var(--mute-d); }
.fp-h1 { margin-top: 10px !important; font-size: clamp(40px, 5.2vw, 76px); line-height: .94; }
.fp-h2 { margin-top: 8px !important; font-size: clamp(34px, 4.6vw, 64px); }
.fp-line { max-width: 30em; margin: 16px 0 24px; color: var(--mute); }
.fp-ink .fp-line { color: var(--mute-d); }

.fp-sec { padding-block: clamp(56px, 8vw, 112px); }
.fp-ink { background: var(--ink); color: #fff; }
.fp-paper2 { background: var(--paper-2); }
.fp-sh { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 14px 40px; margin-bottom: clamp(24px, 4vw, 44px); }
.fp-sh > p { margin: 0; max-width: 30em; color: var(--mute); }
.fp-ink .fp-sh > p { color: var(--mute-d); }
.btn-wline { border-color: #fff; color: #fff; background: transparent; }
.btn-wline:hover { background: #fff; color: var(--ink); }

/* hero */
.fp-hero { padding-top: clamp(28px, 4vw, 52px); overflow-x: clip; }
.fp-head { max-width: 980px; }
/* under the cards: the one line, the private-label pointer and the two actions */
.fp-under { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 40px; margin-top: clamp(4px, 1vw, 12px); padding-top: clamp(18px, 2.4vw, 28px); border-top: 1px solid var(--line); }
.fp-under-txt { display: grid; gap: 12px; max-width: 36em; }
.fp-under-txt p { margin: 0; color: var(--mute); }
.fp-lbl-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
.fp-oem { display: inline-flex; align-items: center; gap: 8px; padding: 5px 10px; background: var(--ink); color: #fff; font-size: 10px; font-weight: 700; letter-spacing: .16em; text-decoration: none; transition: background-color .25s; }
.fp-oem svg { width: 14px; height: 14px; transition: transform .3s var(--ease); }
.fp-oem:hover { background: var(--red); color: #fff; }
.fp-oem:hover svg { transform: translateX(3px); }
.fp-ctas { display: flex; flex-wrap: wrap; gap: 10px; }
.fp-cards { margin-top: clamp(8px, 2vw, 24px); }
.fp-facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: clamp(20px, 3vw, 36px) 0 0; padding: 0; list-style: none; background: var(--ink); color: #fff; }
.fp-facts li { display: grid; gap: 4px; padding: 22px 20px; border-right: 1px solid var(--line-d); }
.fp-facts li:last-child { border-right: 0; }
.fp-facts b { font: 800 clamp(24px, 3vw, 36px)/1 var(--display); letter-spacing: -.03em; }
.fp-facts span { font-size: 11px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--mute-d); }

/* design your kit: a real-photo preview that turns front/back, then what you can change and where to start */
.dk { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.dk-media { position: relative; }
.dk-ph { position: relative; margin: 0; aspect-ratio: 3 / 4.2; overflow: hidden; background: #ECEBE7; }
.dk-ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 22%; opacity: 0; transform: scale(1.04); transition: opacity .7s var(--ease), transform 1.2s var(--ease); }
.dk-ph img.is-on { opacity: 1; transform: none; }
.dk-flip { position: absolute; left: 16px; bottom: 16px; display: flex; background: var(--ink); }
.dk-flip button { min-height: 44px; padding: 0 18px; border: 0; background: transparent; color: var(--mute-d); font: 700 11px var(--font); letter-spacing: .16em; text-transform: uppercase; cursor: pointer; }
.dk-flip button[aria-pressed="true"] { background: #fff; color: var(--ink); }
.dk-badge { position: absolute; top: 16px; left: 16px; padding: 6px 10px; background: var(--red); color: #fff; font-size: 10px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.dk-body .fp-line { margin-bottom: 22px; }
.dk-k { margin: 0 0 10px; font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--mute-d); }
.dk-start { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; margin-bottom: 26px; }
.dk-start a { display: flex; align-items: center; justify-content: space-between; gap: 6px; min-height: 48px; padding: 0 12px; border: 1px solid var(--line-d); color: #fff; font-size: 13px; font-weight: 600; text-decoration: none; transition: background-color .2s, border-color .2s, color .2s; }
.dk-start a svg { width: 14px; height: 14px; flex: none; color: var(--red); transition: transform .3s var(--ease); }
.dk-start a:hover { background: #fff; border-color: #fff; color: var(--ink); }
.dk-start a:hover svg { transform: translateX(3px); }
.dk-feat { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0 0 28px; padding: 0; list-style: none; border-top: 1px solid var(--line-d); border-left: 1px solid var(--line-d); }
.dk-feat li { display: grid; grid-template-columns: 28px 1fr; column-gap: 10px; align-content: start; padding: 16px 14px; border-right: 1px solid var(--line-d); border-bottom: 1px solid var(--line-d); }
.dk-feat svg { grid-row: span 2; width: 24px; height: 24px; fill: none; stroke: var(--red); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.dk-feat b { font: 800 16px/1.2 var(--display); letter-spacing: -.01em; }
.dk-feat span { font-size: 12px; color: var(--mute-d); }
.dk-ctas { display: flex; flex-wrap: wrap; gap: 10px; }

/* packages: one horizontal row of cards, sport chips filter it, arrows move it; a card opens the pop-up */
.pkx-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px 24px; margin-bottom: 18px; }
.pkx-filter { display: flex; flex-wrap: wrap; gap: 6px; }
.pkx-filter button { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; border: 1px solid var(--line); background: #fff; font: 600 12px var(--font); letter-spacing: .12em; text-transform: uppercase; cursor: pointer; color: var(--ink); transition: border-color .2s, background-color .2s, color .2s; }
.pkx-filter button i { font-style: normal; font-size: 10px; color: var(--mute); }
.pkx-filter button:hover { border-color: var(--ink); }
.pkx-filter button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.pkx-filter button[aria-pressed="true"] i { color: #fff; opacity: .7; }
.pkx-nav { display: flex; gap: 6px; flex: none; }
.pkx-arrow { width: 48px; height: 48px; display: grid; place-items: center; padding: 0; border: 1px solid var(--ink); background: transparent; color: var(--ink); cursor: pointer; }
.pkx-arrow:hover:not(:disabled) { background: var(--ink); color: #fff; }
.pkx-arrow:disabled { opacity: .3; cursor: default; }
.pkx-rail { display: grid; grid-auto-flow: column; grid-auto-columns: clamp(250px, 26vw, 320px); gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; overscroll-behavior-x: contain; padding: 4px 2px 14px; scrollbar-width: thin; scrollbar-color: var(--ink) var(--line); }
.pkx { scroll-snap-align: start; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); color: var(--ink); text-decoration: none; transition: transform .35s var(--ease), border-color .25s, box-shadow .35s; }
.pkx[hidden] { display: none; }
.pkx:hover { transform: translateY(-4px); border-color: var(--ink); box-shadow: 0 22px 40px -24px rgba(17, 17, 17, .45); }
.pkx.is-pop { border-color: var(--ink); }
.pkx-img { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--paper-2); }
.pkx-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.pkx:hover .pkx-img img { transform: scale(1.05); }
.pkx-sport, .pkx-pop { position: absolute; top: 12px; padding: 5px 8px; font-size: 10px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.pkx-sport { left: 12px; background: #fff; color: var(--ink); }
.pkx-pop { right: 12px; background: var(--red); color: #fff; }
.pkx-meta { display: grid; gap: 4px; padding: 14px 16px 16px; }
.pkx-lv { font-size: 10px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--mute); }
.pkx-meta b { font: italic 900 24px/1 var(--display); letter-spacing: -.03em; text-transform: uppercase; }
.pkx-line { font-size: 13px; line-height: 1.4; color: var(--mute); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.8em; }
.pkx-go { display: flex; justify-content: space-between; align-items: center; margin-top: 8px; padding-top: 10px; border-top: 1px solid var(--line); font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.pkx-go span { font-size: 20px; line-height: 1; color: var(--red); transition: transform .3s var(--ease); }
.pkx:hover .pkx-go span { transform: rotate(90deg); }
.fp-more { margin: 24px 0 0; }

/* pop-ups (native dialog): package details and the quick quote */
.pkd { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); }
.pkd-img { margin: 0; background: var(--paper-2); display: grid; place-items: center; }
.pkd-img img { width: 100%; height: 100%; max-height: calc(100dvh - 32px); object-fit: contain; transition: opacity .25s; }
.pkd-img img.is-swap { opacity: 0; }
.pkd-body { display: flex; flex-direction: column; gap: 12px; padding: clamp(22px, 3vw, 40px); padding-top: clamp(22px, 3vw, 40px); }
.pkd-lv { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; margin-right: 56px; border: 1px solid var(--ink); }
.pkd-lv button { min-height: 44px; padding: 6px 8px; border: 0; border-right: 1px solid var(--ink); background: #fff; color: var(--ink); font: 700 11px/1.2 var(--font); letter-spacing: .1em; text-transform: uppercase; cursor: pointer; }
.pkd-lv button:last-child { border-right: 0; }
.pkd-lv button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.pkd-lv button em { display: block; font-style: normal; font-size: 9px; color: var(--red); }
.pkd-title { font-size: clamp(32px, 3.4vw, 46px); text-transform: uppercase; font-style: italic; font-weight: 900; }
.pkd-line { margin: 0; color: var(--mute); }
.pkd-k { margin: 6px 0 0; font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.pkd-items { display: grid; grid-template-columns: 1fr 1fr; column-gap: 16px; margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.pkd-items li { display: flex; gap: 8px; padding: 9px 2px; border-bottom: 1px solid var(--line); font-size: 14px; line-height: 1.35; }
.pkd-items li::before { content: "\2713"; color: var(--red); font-weight: 700; }
.pkd-note { margin: 0; font-size: 12px; color: var(--mute); }
.pkd-ctas { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.pkd-sports { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line); }
.pkd-sports > span { font-size: 10px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--mute); }
.pkd-sports div { display: flex; flex-wrap: wrap; gap: 6px; }
.pkd-sports button { min-height: 36px; padding: 0 12px; border: 1px solid var(--line); background: #fff; font: 600 11px var(--font); letter-spacing: .1em; text-transform: uppercase; cursor: pointer; color: var(--ink); }
.pkd-sports button:hover { border-color: var(--ink); }

/* real teams: a photo wall, the first and fourth photos take two cells */
.fp-teams { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: clamp(160px, 18vw, 260px); grid-auto-flow: dense; gap: 8px; }
.fp-teams figure { margin: 0; overflow: hidden; background: var(--ink-2); }
.fp-teams figure:nth-child(1) { grid-column: span 2; grid-row: span 2; }
.fp-teams figure:nth-child(3) { grid-column: span 2; }
.fp-teams img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.fp-teams figure:hover img { transform: scale(1.05); }

/* accessories */
.fp-acc { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.fp-acc a { display: grid; gap: 12px; text-decoration: none; }
.fp-pic { aspect-ratio: 1; background: #fff; border: 1px solid var(--line); display: grid; place-items: center; overflow: hidden; }
.fp-pic img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.fp-acc a:hover img { transform: scale(1.07) rotate(-2deg); }
.fp-acc a:hover .fp-pic { border-color: var(--ink); }
.fp-acc b { font: 800 20px var(--display); letter-spacing: -.02em; }
.fp-also { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 28px; }
.fp-also span { margin-right: 6px; font-size: 11px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--mute); }
.fp-also a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border: 1px solid var(--line); background: #fff; font-size: 13px; font-weight: 600; text-decoration: none; }
.fp-also a:hover { border-color: var(--ink); }

/* private label */
.fp-pl { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.fp-pl-media { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.fp-pl-media figure { margin: 0; aspect-ratio: 1; overflow: hidden; background: var(--paper-2); }
.fp-pl-media figure:last-child { margin-top: 48px; }
.fp-pl-media img { width: 100%; height: 100%; object-fit: cover; }

/* who we make for */
.fp-who { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.fp-who div { display: grid; align-content: start; gap: 10px; padding: 28px 24px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #fff; }
.fp-who svg { width: 32px; height: 32px; color: var(--red); }
.fp-who b { font: 800 22px/1.1 var(--display); letter-spacing: -.02em; }
.fp-who span { font-size: 14px; color: var(--mute); }

/* how it works */
.fp-flow { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0; padding: 0; list-style: none; counter-reset: f; }
.fp-flow li { position: relative; display: grid; gap: 8px; padding-right: 24px; counter-increment: f; }
.fp-flow li::before { content: counter(f, decimal-leading-zero); font: italic 900 64px/1 var(--display); letter-spacing: -.05em; color: transparent; -webkit-text-stroke: 1.5px var(--ink); }
.fp-flow li::after { content: ""; position: absolute; left: 92px; right: 24px; top: 32px; height: 1px; background: var(--line); }
.fp-flow li:last-child::after { display: none; }
.fp-flow b { font: 800 22px var(--display); letter-spacing: -.02em; }
.fp-flow span { font-size: 14px; color: var(--mute); }

/* quote */
.fp-quote { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.fp-checks { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 0 0 28px; padding: 0; list-style: none; font-size: 13px; font-weight: 500; }
.fp-checks li::before { content: "✓ "; color: var(--red); font-weight: 700; }
.fp .qform { border-radius: 0; }
.fp .field { border-radius: 0; }

@media (max-width: 980px) {
	.dk { grid-template-columns: minmax(0, 1fr); }
	.dk-media { max-width: 440px; width: 100%; justify-self: center; }
	.dk-start { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.dk-feat { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.fp-pl, .fp-quote { grid-template-columns: minmax(0, 1fr); }
	.fp-acc, .fp-who { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.fp-flow { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 28px; }
	.fp-flow li::after { display: none; }
}
@media (max-width: 760px) {
	.fp-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.fp-facts li:nth-child(2) { border-right: 0; }
	.fp-facts li:nth-child(-n+2) { border-bottom: 1px solid var(--line-d); }
	.pkx-filter { flex-wrap: nowrap; overflow-x: auto; margin-inline: -20px; padding-inline: 20px; scrollbar-width: none; }
	.pkx-filter button { flex: none; }
	.pkx-nav { display: none; }
	.pkx-rail { grid-auto-columns: 78%; margin-inline: -20px; padding-inline: 20px; scroll-padding-inline: 20px; scrollbar-width: none; }
	.pkx-rail::-webkit-scrollbar { display: none; }
	.fp-ctas { width: 100%; }
	.fp-ctas .btn { flex: 1 1 0; }
	/* pop-ups become bottom sheets */
	.pkd { grid-template-columns: minmax(0, 1fr); }
	.pkd-img img { max-height: 44dvh; }
	.pkd-items { grid-template-columns: minmax(0, 1fr); }
	.pkd-ctas .btn { flex: 1 1 0; }
	.fp-teams { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 150px; }
	.fp-teams figure:nth-child(3) { grid-column: auto; }
}
@media (max-width: 560px) {
	.fp-flow { grid-template-columns: minmax(0, 1fr); }
	.fp-who div { padding: 22px 16px; }
	.fp-pl-media figure:last-child { margin-top: 24px; }
}
