/* ============================================================================================
   VDG Ashvi B2B — programme pages (B2B, retailers, dropshipping, private label)
   The editorial apparel language of the clothing references, applied to the legacy host's
   content pages. Loaded after site.css via $extraStylesheets, scoped to body.pg so it can never
   reach the storefront, the admin console or anything else that shares site.css.
   ============================================================================================ */

.pg {
  --pg-ink: #16150f;
  --pg-ink-2: #5a564c;
  --pg-ink-3: #8d887c;
  --pg-cream: #faf8f5;
  --pg-paper: #ffffff;
  --pg-sand: #f3efe8;
  --pg-line: #e4ded4;
  --pg-line-2: #cec5b7;
  --pg-pink: #d6006f;
  --pg-violet: #6816ca;
  --pg-ok: #2f6b4f;
  --pg-serif: "Fraunces", "Iowan Old Style", Georgia, serif;
  --pg-ease: cubic-bezier(.16, 1, .3, 1);

  /* V4-4e aliases. The dropshipping lead form carries inline styles written against site.css's
     variable names, and site.css is not loaded on the gateway — so on that host every border,
     radius and text colour in the form resolved to nothing. The form's markup, ids and endpoint
     are deliberately untouched (assets/js/dropship-lead-form.js and the admin lead queue both
     depend on them), so the variables are mapped here instead of the form being rewritten. */
  --ink: var(--pg-ink);
  --ink-muted: var(--pg-ink-2);
  --paper: var(--pg-paper);
  --cream: var(--pg-cream);
  --line: var(--pg-line);
  --line-strong: var(--pg-line-2);
  --r-md: 14px;
  --radius-lg: 18px;
}

/* Form controls inside a programme page. Scoped to .pg so nothing here can reach another layer. */
.pg input, .pg textarea, .pg select { font-family: inherit; }
.pg input:focus-visible, .pg textarea:focus-visible, .pg select:focus-visible {
  outline: 2px solid var(--pg-pink); outline-offset: 1px;
}

/* The lead form's submit used site.css's .btn.btn-gold, which does not exist on this host: the
   page's primary action rendered as an unstyled browser button.
   Scoped to .btn ONLY. It was also matching `button[type=submit]:not(.pg-btn)`, which is the site
   chrome's header search button — every .pg page rendered a pink gradient blob where the
   magnifying glass belongs. The body carries class "gw pg", so a bare element selector here
   reaches the shared header; anything this layer styles has to name a class the page owns. */
.pg .btn {
  display: inline-flex; align-items: center; gap: 9px; font: inherit; font-size: .88rem;
  font-weight: 700; padding: 12px 24px; border-radius: 999px; border: 0; cursor: pointer;
  background: linear-gradient(100deg, var(--pg-pink), var(--pg-violet)); color: #fff;
  box-shadow: 0 10px 26px -12px rgba(214, 0, 111, .6);
  transition: transform .22s var(--pg-ease), box-shadow .22s var(--pg-ease);
}
.pg .btn:hover { transform: translateY(-2px); }

.pg .pg-wrap { max-width: 1240px; margin-inline: auto; padding-inline: clamp(16px, 4vw, 44px); }
.pg .pg-sec { padding-block: clamp(46px, 6.5vw, 88px); }
.pg .pg-sec--sand { background: var(--pg-sand); }
.pg .pg-sec--paper { background: var(--pg-paper); }

.pg .pg-eyebrow {
  font-size: .76rem; font-weight: 700; letter-spacing: .24em; text-transform: uppercase;
  color: var(--pg-pink); margin: 0 0 14px;
}
.pg .pg-h1 { font-family: var(--pg-serif); font-size: clamp(2.1rem, 5vw, 3.6rem); font-weight: 600; line-height: 1.04; letter-spacing: -.02em; margin: 0; }
.pg .pg-h2 { font-family: var(--pg-serif); font-size: clamp(1.6rem, 3.4vw, 2.5rem); font-weight: 600; line-height: 1.14; letter-spacing: -.018em; margin: 0; }
.pg .pg-h3 { font-size: 1.02rem; font-weight: 700; margin: 0; letter-spacing: -.01em; }
.pg .pg-lede { color: var(--pg-ink-2); font-size: 1rem; line-height: 1.75; max-width: 62ch; margin: 14px 0 0; }
.pg .pg-sechead { margin-bottom: clamp(26px, 4vw, 44px); }
.pg .pg-sechead--split { display: flex; align-items: flex-end; justify-content: space-between; gap: 28px; flex-wrap: wrap; }

.pg .pg-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-size: .87rem; font-weight: 700; padding: 14px 28px; border-radius: 999px;
  border: 1.5px solid var(--pg-ink); background: var(--pg-ink); color: var(--pg-cream);
  text-decoration: none; cursor: pointer; transition: transform .24s var(--pg-ease), background .24s var(--pg-ease);
}
.pg .pg-btn:hover { transform: translateY(-2px); background: #000; }
.pg .pg-btn svg { width: 15px; height: 15px; }
.pg .pg-btn--pink { background: linear-gradient(95deg, var(--pg-pink), var(--pg-violet)); border-color: transparent; color: #fff;
  box-shadow: 0 12px 30px -14px rgba(214, 0, 111, .65); }
.pg .pg-btn--ghost { background: transparent; color: var(--pg-ink); border-color: var(--pg-line-2); }
.pg .pg-btn--ghost:hover { background: var(--pg-sand); border-color: var(--pg-ink); }
.pg .pg-btn--onDark { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .42); }
.pg .pg-btn--onDark:hover { background: rgba(255, 255, 255, .12); border-color: #fff; }
.pg .pg-link { display: inline-flex; align-items: center; gap: 7px; color: var(--pg-pink); font-weight: 700; font-size: .85rem; text-decoration: none; min-height: 26px; }
.pg .pg-link svg { width: 13px; height: 13px; transition: transform .24s var(--pg-ease); }
.pg .pg-link:hover svg { transform: translateX(4px); }

/* ---------------------------------------------------------------- hero banner */
.pg .pg-hero { position: relative; overflow: hidden; background: var(--pg-ink); color: #fff; }
.pg .pg-hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 72% center; }
.pg .pg-hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(96deg, rgba(14, 13, 10, .95) 0%, rgba(14, 13, 10, .86) 34%, rgba(14, 13, 10, .42) 56%, rgba(14, 13, 10, .08) 74%);
}
/* The scrim above is horizontal because on a wide hero the copy occupies the left ~620px and the
   photograph is meant to show through on the right. At phone width the copy spans the FULL width,
   so its right-hand half was sitting over the 8% end of that gradient — white text on a bright sky.
   Below 760px the scrim becomes vertical: dark where the words are, clearing toward the bottom. */
@media (max-width: 760px) {
  .pg .pg-hero::after {
    background: linear-gradient(180deg, rgba(14, 13, 10, .88) 0%, rgba(14, 13, 10, .82) 55%, rgba(14, 13, 10, .62) 100%);
  }
}
.pg .pg-hero-in { position: relative; z-index: 1; padding-block: clamp(52px, 8vw, 118px); min-height: clamp(440px, 56vh, 600px); display: flex; align-items: center; }
.pg .pg-hero-copy { max-width: 620px; }
.pg .pg-hero .pg-eyebrow { color: rgba(255, 255, 255, .68); }
.pg .pg-hero .pg-lede { color: rgba(255, 255, 255, .8); max-width: 52ch; }
/* The hero sits on a dark photograph and every other element in it is explicitly light. The
   checklist was written for a pale section, so on the contact hero it rendered warm grey on near
   black — about 2.3:1, under half the 4.5:1 minimum, and effectively invisible. Anything placed in
   this hero has to state its own light colour; nothing here can safely inherit. */
.pg .pg-hero .pg-checks li { color: rgba(255, 255, 255, .88); }
.pg .pg-hero .pg-checks svg { color: #6ee7a8; }

.pg .pg-hero-sub { font-family: var(--pg-serif); font-size: clamp(1.05rem, 2vw, 1.45rem); font-weight: 500; color: rgba(255, 255, 255, .94); margin: 16px 0 0; line-height: 1.35; }
.pg .pg-hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.pg .pg-hero-stats { display: flex; flex-wrap: wrap; margin-top: clamp(26px, 4vw, 46px); }
.pg .pg-hero-stats > div { padding-right: clamp(14px, 2.4vw, 32px); }
.pg .pg-hero-stats > div + div { border-left: 1px solid rgba(255, 255, 255, .26); padding-left: clamp(14px, 2.4vw, 32px); }
.pg .pg-hero-stats b { display: block; font-size: clamp(1.1rem, 2vw, 1.55rem); font-weight: 700; white-space: nowrap; }
.pg .pg-hero-stats span { display: block; font-size: .78rem; color: rgba(255, 255, 255, .64); margin-top: 3px; }

/* ---------------------------------------------------------------- cards */
.pg .pg-grid { display: grid; gap: 16px; }
.pg .pg-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.pg .pg-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.pg .pg-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.pg .pg-card {
  background: var(--pg-paper); border: 1px solid var(--pg-line); border-radius: 12px; padding: 24px;
  display: flex; flex-direction: column; gap: 9px;
  transition: border-color .24s var(--pg-ease), transform .24s var(--pg-ease);
}
.pg .pg-card:hover { border-color: var(--pg-pink); transform: translateY(-3px); }
.pg .pg-card i { width: 44px; height: 44px; border-radius: 11px; background: #fdeaf3; color: var(--pg-pink); display: grid; place-items: center; margin-bottom: 4px; }
.pg .pg-card i svg { width: 21px; height: 21px; }
.pg .pg-card p { font-size: .86rem; color: var(--pg-ink-2); line-height: 1.65; margin: 0; flex: 1; }
.pg .pg-card .pg-link { margin-top: 6px; align-self: flex-start; }

/* ---------------------------------------------------------------- poster / split band */
.pg .pg-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: stretch; border-radius: 14px; overflow: hidden; border: 1px solid var(--pg-line); }
.pg .pg-split--flip .pg-split-media { order: 2; }
.pg .pg-split-media { position: relative; min-height: 340px; background: var(--pg-sand); }
.pg .pg-split-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pg .pg-split-tag {
  position: absolute; left: 24px; bottom: 24px; z-index: 1; color: #fff; font-family: var(--pg-serif);
  font-size: clamp(1rem, 1.8vw, 1.4rem); line-height: 1.3; text-shadow: 0 2px 22px rgba(0, 0, 0, .65);
}
.pg .pg-split-body { padding: clamp(26px, 4vw, 50px); display: flex; flex-direction: column; justify-content: center; background: var(--pg-paper); }

/* ---------------------------------------------------------------- numbered process */
.pg .pg-steps {
  /* auto-fit rather than a hard repeat(5): the process pages have five steps and custom
     manufacturing has six, and a fixed five-column grid stranded the sixth on its own row. */
  display: grid; grid-template-columns: repeat(auto-fit, minmax(158px, 1fr)); gap: 18px;
  counter-reset: pgstep; margin: 0; padding: 0; list-style: none;
}
.pg .pg-step { counter-increment: pgstep; }
.pg .pg-step::before {
  content: "0" counter(pgstep); display: block; font-family: var(--pg-serif); font-size: 1.15rem;
  color: var(--pg-ink-3); margin-bottom: 10px;
}
.pg .pg-step svg { width: 27px; height: 27px; color: var(--pg-pink); margin-bottom: 10px; }
.pg .pg-step b { display: block; font-size: .88rem; margin-bottom: 5px; }
.pg .pg-step p { font-size: .77rem; color: var(--pg-ink-3); line-height: 1.6; margin: 0; }

/* ---------------------------------------------------------------- comparison table */
.pg .pg-table-wrap { overflow-x: auto; border: 1px solid var(--pg-line); border-radius: 12px; background: var(--pg-paper); }
.pg .pg-table { width: 100%; border-collapse: collapse; font-size: .88rem; min-width: 560px; }
.pg .pg-table th, .pg .pg-table td { text-align: left; padding: 14px 18px; border-bottom: 1px solid var(--pg-line); vertical-align: top; }
.pg .pg-table thead th { font-size: .76rem; letter-spacing: .14em; text-transform: uppercase; color: var(--pg-ink-3); background: var(--pg-sand); font-weight: 700; }
.pg .pg-table tbody tr:last-child td { border-bottom: 0; }
.pg .pg-table td:first-child { font-weight: 650; }
.pg .pg-table svg { width: 16px; height: 16px; color: var(--pg-ok); }

/* ---------------------------------------------------------------- dark CTA band */
.pg .pg-band { position: relative; overflow: hidden; background: var(--pg-ink); color: #fff; }
.pg .pg-band > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .45; }
.pg .pg-band::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(14, 13, 10, .94) 18%, rgba(14, 13, 10, .58) 100%); }
.pg .pg-band-in { position: relative; z-index: 1; padding-block: clamp(40px, 6vw, 74px); display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.pg .pg-band h2 { color: #fff; }
.pg .pg-band p { color: rgba(255, 255, 255, .8); max-width: 50ch; margin-top: 12px; }

/* ---------------------------------------------------------------- faq */
.pg .pg-faq { border-top: 1px solid var(--pg-line); }
.pg .pg-faq details { border-bottom: 1px solid var(--pg-line); }
.pg .pg-faq summary { cursor: pointer; padding: 18px 0; font-weight: 650; font-size: .95rem; display: flex; justify-content: space-between; gap: 18px; align-items: center; list-style: none; }
.pg .pg-faq summary::-webkit-details-marker { display: none; }
.pg .pg-faq summary::after { content: "+"; font-size: 1.3rem; color: var(--pg-pink); line-height: 1; }
.pg .pg-faq details[open] summary::after { content: "–"; }
.pg .pg-faq p { padding-bottom: 20px; color: var(--pg-ink-2); font-size: .89rem; line-height: 1.75; margin: 0; max-width: 78ch; }

/* ---------------------------------------------------------------- checklist */
.pg .pg-checks { display: flex; flex-direction: column; gap: 12px; margin: 22px 0 0; padding: 0; list-style: none; }
.pg .pg-checks li { display: flex; gap: 11px; align-items: flex-start; font-size: .9rem; color: var(--pg-ink-2); line-height: 1.6; }
.pg .pg-checks svg { width: 18px; height: 18px; color: var(--pg-ok); flex-shrink: 0; margin-top: 2px; }

@media (max-width: 1000px) {
  .pg .pg-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pg .pg-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 28px; }
}
@media (max-width: 820px) {
  .pg .pg-grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pg .pg-split, .pg .pg-split--flip { grid-template-columns: 1fr; }
  .pg .pg-split--flip .pg-split-media { order: 0; }
  .pg .pg-split-media { min-height: 240px; }
}
@media (max-width: 580px) {
  .pg .pg-grid--2, .pg .pg-grid--3, .pg .pg-grid--4 { grid-template-columns: 1fr; }
  .pg .pg-steps { grid-template-columns: 1fr; }
  .pg .pg-hero-stats > div { padding: 6px 16px 6px 0; }
  .pg .pg-hero-stats > div + div { border-left: 0; padding-left: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .pg *, .pg *::before, .pg *::after { transition: none !important; }
  .pg .pg-card:hover, .pg .pg-btn:hover { transform: none; }
}

/* ---------------------------------------------------------------- enquiry form (V4-4e)
   The contact page moved onto this layer when it left the legacy host. Two columns on desktop,
   one at phone width; the message field and the submit always span the full row. */
.pg .pg-form {
  display: grid; grid-template-columns: 1fr 1fr; gap: 18px;
  background: var(--pg-cream); border: 1px solid var(--pg-line);
  border-radius: 18px; padding: clamp(22px, 4vw, 44px);
}
.pg .pg-form label { display: grid; gap: 8px; font-size: .78rem; font-weight: 700; color: var(--pg-ink); }
.pg .pg-form input, .pg .pg-form textarea {
  font: inherit; font-size: .9rem; font-weight: 500; padding: 12px 14px; width: 100%;
  border: 1px solid var(--pg-line-2); border-radius: 10px;
  background: var(--pg-paper); color: var(--pg-ink);
}
.pg .pg-form textarea { resize: vertical; min-height: 130px; }
.pg .pg-form input::placeholder, .pg .pg-form textarea::placeholder { color: var(--pg-ink-3); }
.pg .pg-form-wide, .pg .pg-form button { grid-column: 1 / -1; }
.pg .pg-form button { justify-self: start; }

/* An error has to be findable before it can be fixed: it sits above the fields, in the one colour
   this layer does not otherwise use for text. */
.pg .pg-alert {
  display: flex; align-items: flex-start; gap: 10px; margin: 0 0 18px;
  background: #fdecef; border: 1px solid #f3c9d2; border-radius: 12px;
  padding: 13px 16px; font-size: .88rem; color: #9c1c33; max-width: 620px;
}
.pg .pg-alert svg { width: 17px; height: 17px; flex-shrink: 0; margin-top: 1px; }

@media (max-width: 680px) {
  .pg .pg-form { grid-template-columns: 1fr; }
}
