/* Product pages (curtains, Roman blinds, blinds, shutters): photo-led header, picker stages that always show a
   visual, a photo band and one even section rhythm. Markup from pvHero / pv / pvBand / pvFaq in scripts/build.mjs. */
:root { --pv-pad: clamp(56px, 7vw, 96px); }

/* header: one big rounded photo, copy on a soft scrim at the bottom left */
.pv-hero { padding-top: clamp(12px, 2vw, 24px); }
.pv-hero-ph { position: relative; margin: 0; border-radius: var(--r); overflow: hidden; height: clamp(520px, 78svh, 760px); background: var(--linen); }
.pv-hero-ph > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pv-hero-ph::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(21, 18, 16, .72) 0%, rgba(21, 18, 16, .5) 40%, rgba(21, 18, 16, 0) 72%), linear-gradient(0deg, rgba(21, 18, 16, .5), rgba(21, 18, 16, 0) 60%); pointer-events: none; }
.pv-hero-copy { position: absolute; z-index: 1; left: 0; bottom: 0; padding: clamp(28px, 4.4vw, 64px); color: var(--limewash); max-width: 760px; }
.pv-hero-copy h1 { max-width: 13ch; font-size: clamp(52px, 6vw, 92px); }
.pv-hero-copy .lead { margin: 18px 0 0; max-width: 44ch; color: rgba(244, 240, 233, .9); }
.pv-hero-copy .tl { color: var(--limewash); }
.pv-o { --f: var(--limewash); --bd: rgba(244, 240, 233, .7); --hb: var(--limewash); --hf: var(--ink); }

/* on-page links under the header: connect the header to the sections below */
.pv-jump { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.pv-jump a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border: 1px solid rgba(42, 35, 32, .22); border-radius: 999px; color: var(--walnut); font: 500 14px/1 var(--sans); text-decoration: none; transition: background .3s var(--ease), color .3s var(--ease); }
.pv-jump a::after { content: ''; width: 6px; height: 6px; margin-left: 10px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-2px) rotate(45deg); }
.pv-jump a:hover { background: var(--walnut); color: var(--limewash); }

/* sections: one rhythm, alternating limewash and linen so each section hands over to the next */
.pv-sec { padding-block: var(--pv-pad); }
.pv-hero + .pv-sec { margin-top: var(--pv-pad); }
.pv-hero + .pv-sec.pv-t { margin-top: clamp(40px, 5vw, 64px); }
.pv-t { background: var(--linen); }

/* picker: heading, chips and the line sit beside a stage that always shows a photo or drawing */
.pv-pk { display: grid; gap: 28px; align-items: center; }
.pv-txt h2 { max-width: 14ch; }
.pv-txt .chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.pv-txt .pk-line { margin: 22px 0 0; font: 400 24px/1.3 var(--display); max-width: 26ch; min-height: 2.6em; }
.pv-t .chip { border-color: rgba(42, 35, 32, .32); }
.pv-more { margin: 10px 0 0; }
.pv-stage { margin: 0; }
.pv-stage .pk-vis { aspect-ratio: 4 / 3; border-radius: var(--r); background: var(--linen); }
.pv-t .pv-stage .pk-vis { background: var(--limewash); }
.pv-stage.draw .pk-v svg { width: 84%; }
.pv-cap { margin: 12px 0 0; font-size: 14px; color: var(--walnut-soft); }
@media (min-width: 900px) {
  .pv-pk { grid-template-columns: 5fr 7fr; gap: clamp(48px, 6vw, 96px); }
  .pv-pk.flip { grid-template-columns: 7fr 5fr; }
  .pv-pk.flip .pv-txt { order: 2; }
  .pv-txt .pk-line { font-size: 30px; }
}

/* photo band: a real photo beside one large statement */
.pv-band-g { display: grid; gap: 28px; align-items: center; }
.pv-band-ph { margin: 0; border-radius: var(--r); overflow: hidden; aspect-ratio: 4 / 3; }
.pv-band-ph img { width: 100%; height: 100%; object-fit: cover; }
.pv-say { margin: 0; max-width: 22ch; font: 400 clamp(28px, 3.4vw, 50px)/1.12 var(--display); letter-spacing: -.015em; }
.pv-band-l { margin: 22px 0 0; }
@media (min-width: 900px) { .pv-band-g { grid-template-columns: 5fr 7fr; gap: clamp(48px, 6vw, 96px); } .pv-band-ph { aspect-ratio: 4 / 5; max-height: 620px; } }

/* questions: a photo under the heading so the left column is not empty */
.pv-faq-ph { margin: 28px 0 0; border-radius: var(--r); overflow: hidden; aspect-ratio: 16 / 10; max-width: 360px; }
.pv-faq-ph img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 35%; }
@media (max-width: 899px) { .pv-faq-ph { display: none; } }

/* phones: the photo leads, the copy follows on the page so it is never squeezed over the picture */
@media (max-width: 699px) {
  .pv-hero-ph { height: auto; overflow: visible; background: none; border-radius: 0; }
  .pv-hero-ph > img { position: static; height: 58svh; min-height: 340px; border-radius: var(--r); }
  .pv-hero-ph::after { display: none; }
  .pv-hero-copy { position: static; padding: 24px 0 0; color: var(--walnut); }
  .pv-hero-copy h1 { font-size: 44px; }
  .pv-hero-copy .lead { color: var(--walnut); }
  .pv-hero-copy .tl { color: var(--accent); }
  .pv-hero .btn-l { --b: var(--walnut); --f: var(--limewash); --hb: var(--ink); --hf: var(--limewash); }
  .pv-o { --f: var(--walnut); --bd: var(--walnut); --hb: var(--walnut); --hf: var(--limewash); }
  .pv-jump { margin-top: 20px; }
  .pv-txt .pk-line { font-size: 22px; min-height: 2.7em; }
  /* the visual sits right under the heading so every tap shows its change on screen */
  .pv-pk { gap: 0; }
  .pv-txt { display: contents; }
  .pv-txt h2 { order: 0; }
  .pv-stage { order: 1; margin-top: 22px; }
  .pv-txt .chips { order: 2; margin-top: 20px; }
  .pv-txt .pk-line { order: 3; margin-top: 16px; }
  .pv-more { order: 4; }
}
