/*
 * Health Qwest — "Bold Warmth".
 *
 * Built to prompts/IMAGE-GENERATION-PROMPTS.md: warm editorial light, appetite before
 * abstraction, product at 60–70% of visual attention, and the palette that document
 * calls the Bold Warmth set. Cream and paper carry the page; chocolate is the ink.
 *
 * The owner's eight colours are unchanged. What changed is their weighting: the
 * previous system made chocolate the field, which is camouflage in a chilled cabinet
 * and the exact problem B&B Studio was hired to solve for Pip & Nut.
 *
 * Conventions: logical properties throughout, so RTL needs no mirror sheet. Every
 * secondary-text value is checked against BOTH grounds — paper #FFFAF4 and cream
 * #F7E9DB — because a token that passes on one fails on the other.
 */

:root {
  --hq-choc: var(--wp--preset--color--chocolate, #3e2b25);
  --hq-deep: var(--wp--preset--color--chocolate-deep, #2a1c17);
  --hq-berry: var(--wp--preset--color--berry, #a63d68);
  --hq-peach: var(--wp--preset--color--peach, #e8c4ad);
  --hq-lime: var(--wp--preset--color--lime, #c8d77e);
  --hq-cream: var(--wp--preset--color--cream, #f7e9db);
  --hq-paper: var(--wp--preset--color--paper, #fffaf4);
  --hq-coral: var(--wp--preset--color--coral, #f27062);

  /* Secondary text. At .62 this measured 4.00:1 on paper and 3.79:1 on cream and
     failed AA on both; .76 measures 6.06:1 and 5.58:1. It carries every disclosure
     on the site, so it is held above the threshold on the worse ground. */
  --hq-soft: rgba(62, 43, 37, 0.76);
  /* Control boundaries must clear 3:1 for WCAG 1.4.11, not merely be visible. */
  /* 0.6 is the alpha that clears 3:1 against the LIGHTEST ground it must sit on
     (peach 3.17:1); on cream and paper it is higher still. */
  --hq-line: rgba(62, 43, 37, 0.6);
  --hq-hair: rgba(62, 43, 37, 0.16);
  /* Paper, not #fff. Pure white is not in the pinned palette. */
  --hq-field: var(--wp--preset--color--paper, #fffaf4);

  --hq-gutter: clamp(1.25rem, 5vw, 4.25rem);
  --hq-wide: 1340px;
  --hq-radius: 4px;
  --hq-ease: cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after { box-sizing: border-box; }

/* Root guard. An <img> carrying width/height attributes uses that height as its USED
   height unless something resets it, so a rule that constrains only the inline size
   distorts the picture. That shipped: the pouch photograph — the brand's hero asset —
   rendered at 0.579 against a natural 1.075, squeezed narrow and 743px tall.
   :where() has zero specificity, so any component rule still overrides it. */
:where(img, picture, video, svg) {
  max-inline-size: 100%;
  block-size: auto;
}

body {
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  font-variant-numeric: tabular-nums;
}

/* ---------------------------------------------------------------- browser surfaces */

::selection { background: var(--hq-peach); color: var(--hq-deep); }
:root {
  accent-color: var(--hq-berry); /* coral was 2.58:1 on paper, under the 3:1 a checked box needs */
  caret-color: var(--hq-choc);
  scrollbar-color: var(--hq-peach) var(--hq-cream);
}
::-webkit-scrollbar { inline-size: 12px; block-size: 12px; }
::-webkit-scrollbar-track { background: var(--hq-cream); }
::-webkit-scrollbar-thumb { background: var(--hq-peach); border: 3px solid var(--hq-cream); }
::-webkit-scrollbar-thumb:hover { background: var(--hq-coral); }

/* The focus ring was coral, which is the brand accent and measures 2.78:1 on paper and
   2.43:1 on cream — under the 3:1 that WCAG 1.4.11 requires and that this file's own
   note at the --hq-line declaration sets as the bar. --hq-line is the token that was
   already reasoned to clear 3:1 on the lightest ground it has to sit on, so the
   indicator now uses it and the accent goes back to meaning "act", not "focused".

   The paper offset ring underneath keeps one edge visible on every ground, including
   the berry and chocolate fields where a dark ring alone would disappear. */
:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
  outline: 3px solid var(--hq-line);
  outline-offset: 3px;
  box-shadow: 0 0 0 3px var(--hq-paper);
}
.hq-plate--berry :where(a, button, input, select, textarea, summary, [tabindex]):focus-visible,
.hq-plate--deep :where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
  outline-color: var(--hq-paper);
  box-shadow: 0 0 0 3px var(--hq-deep);
}

a { text-underline-offset: 0.22em; text-decoration-thickness: 1px; }

@view-transition { navigation: auto; }

/* ---------------------------------------------------------------- sections

   The tone classes are slots, not literal colours: Bold Warmth alternates paper and
   cream rather than flooding whole regions with chocolate. */

.hq-plate { padding-block: clamp(3.25rem, 6vw, 5.25rem); position: relative; }
/* Tone slots named for the ground they paint, so a pattern reads honestly. */
.hq-plate--paper,
.hq-plate--deep,
.hq-plate--choc  { background: var(--hq-paper); color: var(--hq-choc); }
.hq-plate--cream { background: var(--hq-cream); color: var(--hq-choc); }
/* Peach and berry are fields again, not stand-ins for cream. Three of the owner's
   eight colours had fallen out of the site entirely. */
.hq-plate--peach { background: var(--hq-peach); color: var(--hq-choc); }
.hq-plate--berry { background: var(--hq-berry); color: var(--hq-paper); }
.hq-plate--lime  { background: var(--hq-lime);  color: var(--hq-deep); }

/* On the berry field every chocolate-derived token would vanish, so the secondary
   ink is restated in paper at the alpha that holds 4.86:1. */
.hq-plate--berry .hq-lockup__ar,
.hq-plate--berry .hq-hero__lead,
.hq-plate--berry .hq-shelf__body p,
.hq-plate--berry .hq-availability,
.hq-plate--berry .hq-slot__ar,
.hq-plate--berry .hq-slot__lane { color: rgba(255, 250, 244, 0.88); }
.hq-plate--berry .hq-eyebrow { color: var(--hq-paper); }
.hq-plate--berry .hq-pending,
.hq-plate--berry .hq-unavailable-notice {
  color: rgba(255, 250, 244, 0.88);
  box-shadow: inset 0 0 0 1px rgba(255, 250, 244, 0.6);
}

/* These two rules never matched anything and were removed rather than left to rot: the
   plates are not siblings. Four of the five patterns wrap their plate in an .hq-wrap-*
   div, so `.hq-plate + .hq-plate` has no pair to select. Nothing needs the hairline in
   any case — no two adjacent bands share a tone.

   What DID show was a seam. Every full-bleed band is a flow child of <main> and so
   picked up the root block gap as a 24px margin-block-start, letting the body ground
   through between the coloured fields: measured hero ends 769 / range starts 793,
   range ends 1846 / band starts 1870, and so on down the page. The bands are meant to
   abut, so the gap is zeroed here — scoped to this stack, not to the root, so ordinary
   content spacing everywhere else is untouched. */
.hq-wrap-hero,
.hq-range,
.hq-wrap-band,
.hq-wrap-shelf,
.hq-wrap-origin,
.hq-footer {
  margin-block-start: 0;
}

/* Every name in this list is the INNER measure of a band — the column the content is
   held to. `.hq-range` used to be in here too, and that was the bug: on the range
   pattern the class sits on the OUTER, background-painting element, so the band itself
   inherited the content cap and painted 100px short of the viewport at 1440, 96px at
   1024 and 40px at 390, leaving a ragged paper strip down its right edge for the full
   1053px (desktop) / 1766px (mobile) height of the section. Measured with
   getBoundingClientRect at three widths, then traced here by computed style —
   `max-inline-size` resolved to 1340px, which is --hq-wide exactly. Its children are
   capped on the line below, which is where the measure belonged all along. */
.hq-hero__inner,
.hq-band__inner,
.hq-shelf__inner,
.hq-origin__inner,
.hq-footer__inner {
  max-inline-size: var(--hq-wide);
  margin-inline: auto;
  inline-size: 100%;
}
.hq-range > * { max-inline-size: var(--hq-wide); margin-inline: auto; }

.hq-wrap-hero > .hq-plate,
.hq-wrap-band > .hq-plate,
.hq-wrap-shelf > .hq-plate,
.hq-wrap-origin > .hq-plate { padding-inline: var(--hq-gutter); }
.hq-wrap-hero, .hq-wrap-band, .hq-wrap-shelf, .hq-wrap-origin { display: block; }

/* Aisle 4 registered content against a vertical rail. Bold Warmth has no rail, so the
   indent would be an orphan; the class stays for markup compatibility. */
.hq-registered { padding-inline-start: 0; }

/* ---------------------------------------------------------------- type */

/* No measure on the lockup itself: ch here resolves against the inherited BODY size, so
   24ch capped every large heading at ~285px and laddered "Bahrain- / born. / Women- / led."
   The measure lives on each context's heading (portal.css), where ch is the heading's own. */
.hq-lockup { display: grid; gap: 0.5rem; max-inline-size: none; }
.hq-lockup__primary { margin: 0; }
/* A lockup set as a paragraph (the photo journal's brand line, which heads no section) keeps
   the type it had as an h2: theme.json gives font, weight, leading and tracking to heading
   elements only, so a <p> fell back to body text. */
p.hq-lockup__primary {
  font-family: var(--wp--preset--font-family--read);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.028em;
}
.hq-lockup__ar {
  margin: 0;
  font-family: var(--wp--preset--font-family--arabic);
  font-size: clamp(1.125rem, 2.1vw, 1.5rem);
  font-weight: 700;
  line-height: 1.5;
  color: var(--hq-soft);
  text-align: left;
}
[dir="rtl"] .hq-lockup__ar { text-align: right; }

/* Arabic takes no tracking and no uppercase, anywhere, at any inheritance depth.
   Both were reaching it by inheritance rather than by any rule aimed at it: theme.json
   sets a global -0.005em on body, and letter-spacing inherits. Verified with computed
   style in an RTL render — hq-wordmark__ar and every hq-lockup__ar were carrying it.
   Tracking breaks the joins between Arabic letterforms and uppercase is a no-op, so this
   resets rather than adjusts. */
:where([lang="ar"], [dir="rtl"]),
:where([lang="ar"], [dir="rtl"]) * {
  letter-spacing: normal;
  text-transform: none;
}

/* Latin set inside an Arabic page, and vice versa, stays isolated. */
.hq-ltr { unicode-bidi: isolate; }

.hq-hero__lead,
.hq-shelf__body p,
.hq-availability {
  font-family: var(--wp--preset--font-family--read);
  color: var(--hq-soft);
}
.hq-hero__lead { font-size: 1.1875rem; line-height: 1.62; max-inline-size: 46ch; }
[dir="rtl"] .hq-hero__lead,
[dir="rtl"] .hq-shelf__body p,
[dir="rtl"] .hq-availability {
  /* Newsreader has no Arabic; Arabic reading copy stays on the bilingual family. */
  font-family: var(--wp--preset--font-family--arabic);
}

.hq-availability { font-size: 0.8125rem; line-height: 1.55; }

/* The eyebrow/kicker. */
.hq-bayplate {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-block-end: 1.25rem;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  background: var(--hq-lime);
  color: var(--hq-deep);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
[dir="rtl"] .hq-bayplate { letter-spacing: 0; text-transform: none; }

/* ---------------------------------------------------------------- the measure

   One shared inline gutter, resolved once, so every section starts on the same line. */

.hq-header,
.hq-footer,
.hq-range,
.hq-checkout-intro,
.hq-commerce,
.hq-shop,
.hq-single-product,
.hq-empty { padding-inline: var(--hq-gutter); }

/* ---------------------------------------------------------------- header */

.hq-header {
  position: sticky;
  inset-block-start: 0;
  z-index: 50;
  background: var(--hq-paper);
  border-block-end: 1px solid var(--hq-hair);
}
.hq-header__inner {
  max-inline-size: var(--hq-wide);
  margin-inline: auto;
  min-block-size: 70px;
}

.hq-wordmark { display: grid; gap: 0; }
/* the site-title link itself must meet the target minimum, not just the nav */
.hq-header .wp-block-site-title a { display: inline-flex; flex-direction: column;
  justify-content: center; min-block-size: 44px; }
.hq-wordmark__ar {
  margin: 0;
  font-family: var(--wp--preset--font-family--arabic);
  font-size: 0.6875rem;
  font-weight: 400;
  color: var(--hq-soft);
}

.hq-cart {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-block-size: 44px;
  padding-inline: 1rem;
  border-radius: 999px;
  box-shadow: inset 0 0 0 1.5px var(--hq-line);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  text-decoration: none;
}
[dir="rtl"] .hq-cart { letter-spacing: 0; text-transform: none; }
.hq-cart:hover { background: var(--hq-cream); }

.hq-cart-count {
  display: grid;
  place-items: center;
  min-inline-size: 1.35rem;
  block-size: 1.35rem;
  border-radius: 999px;
  background: var(--hq-choc);
  color: var(--hq-paper);
  font-size: 0.6875rem;
  letter-spacing: 0;
}

/* The responsive menu toggle ships at 24x24. Size ONLY — never `display`: setting
   display here once overrode WordPress's own `display:none` and printed a hamburger
   next to the full desktop nav. */
.hq-header .wp-block-navigation__responsive-container-open,
.hq-header .wp-block-navigation__responsive-container-close {
  min-inline-size: 44px;
  min-block-size: 44px;
}

/* Every navigation target clears the 44px minimum CLAUDE.md binds. */
.hq-header .wp-block-navigation-item__content,
.hq-footer__links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-block-size: 44px;
  min-inline-size: 44px; /* "قصتنا" measured 37px wide */
}

/* ---------------------------------------------------------------- hero */

.hq-hero__grid { display: grid; gap: clamp(2rem, 5vw, 3.75rem); align-items: center; }
.hq-hero__media { position: relative; border-radius: var(--hq-radius); overflow: hidden; }
.hq-hero__media picture { display: block; }
.hq-hero__media img { inline-size: 100%; block-size: auto; display: block; }

/* ---------------------------------------------------------------- the range */

.hq-range__head { display: grid; gap: 1rem; margin-block-end: var(--wp--preset--spacing--50); }
.hq-range__grid { display: grid; gap: clamp(2rem, 5vw, 3.75rem); align-items: start; }
.hq-range__pack { margin: 0; }
.hq-range__pack img {
  border-radius: var(--hq-radius);
  inline-size: 100%;
  max-inline-size: min(100%, 400px);
}
.hq-range__pack figcaption {
  margin-block-start: 1rem;
  max-inline-size: 34ch;
  font-size: 0.8125rem;
  line-height: 1.55;
  color: var(--hq-soft);
}

.hq-slots { list-style: none; margin: 0; padding: 0; }
.hq-slot {
  display: grid;
  /* Two columns since the price ticket went: the lane number and the text. The third
     `auto` track held the ticket and, left in place, reserved a column for nothing. */
  grid-template-columns: 2.25rem minmax(0, 1fr);
  gap: 1.5rem;
  align-items: center;
  padding-block: 1.375rem;
  border-block-start: 1px solid var(--hq-hair);
}
.hq-slot__lane { font-size: 0.6875rem; font-weight: 700; color: var(--hq-soft); }
.hq-slot__text { display: grid; gap: 0.375rem; }
.hq-slot__name {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.1;
}
.hq-slot__rule { display: none; }
.hq-slot__ar {
  font-family: var(--wp--preset--font-family--read);
  /* Was 0.875rem, which sat far enough under the 1.5rem product name to be skipped.
     This line is the only description a shopper gets while the catalogue is unpublished,
     so it is the last thing that should be easy to miss. */
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--hq-soft);
}
[dir="rtl"] .hq-slot__ar { font-family: var(--wp--preset--font-family--arabic); }

/* The shelf-ticket component was removed with the markup that used it. It rendered a
   vacant price card beside every product name; four of them down the range read as a
   failed component rather than as candour, and the fact is now stated once under the
   list instead. `.hq-pending` is deliberately kept — the compliance plugin still uses
   it for product disclosures whose value is genuinely empty. */

/* A fact the business has not approved is disclosed, never hidden. */
.hq-pending,
.hq-unavailable-notice {
  display: inline-block;
  justify-self: start;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  background: transparent;
  box-shadow: inset 0 0 0 1px var(--hq-line);
  font-size: 0.6875rem;
  font-weight: 600;
  line-height: 1.45;
  color: var(--hq-soft);
}
.hq-slot .hq-pending { margin-block-start: 0.125rem; }

.hq-product-disclosures { display: grid; gap: 0; margin-block-start: 2rem; }
.hq-product-disclosures > * {
  display: grid;
  /* The term is a short label and the value is the long text. A fixed 16rem term, plus
     the browser's 40px dd indent, left the value ~230px of the summary column and broke
     "9.7 g" across two lines. */
  grid-template-columns: minmax(7.5rem, 30%) 1fr;
  gap: 1.5rem;
  padding-block: 1rem;
  border-block-start: 1px solid var(--hq-hair);
}
.hq-product-disclosures dd { margin: 0; text-wrap: pretty; }

/* ---------------------------------------------------------------- band, shelf, origin */

.hq-band__inner { display: grid; gap: 1rem; }
.hq-band__lockup { max-inline-size: 22ch; }

.hq-shelf__grid,
.hq-origin .hq-shelf__grid {
  display: grid;
  gap: clamp(2rem, 5vw, 3.75rem);
  align-items: center;
}
.hq-shelf figure { margin: 0; }
.hq-shelf img,
.hq-origin img {
  inline-size: 100%;
  block-size: auto;
  display: block;
  border-radius: var(--hq-radius);
}
.hq-shelf__body p { max-inline-size: 46ch; }

/* ---------------------------------------------------------------- video */

.hq-video { position: relative; border-radius: var(--hq-radius); overflow: hidden; }
.hq-video__el { inline-size: 100%; block-size: 100%; object-fit: cover; display: block; }
.hq-video__toggle {
  position: absolute;
  inset-block-end: 0.75rem;
  inset-inline-end: 0.75rem;
  min-block-size: 44px;
  padding-inline: 0.9rem;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 250, 244, 0.94);
  color: var(--hq-choc);
  font-family: inherit;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  cursor: pointer;
}
[dir="rtl"] .hq-video__toggle { letter-spacing: 0; text-transform: none; }
.hq-video__toggle:hover { background: var(--hq-paper); }

/* ---------------------------------------------------------------- footer */

.hq-footer { background: var(--hq-cream); padding-block: clamp(3.25rem, 6vw, 5rem) 2rem; }
.hq-footer__grid {
  display: flex;
  flex-wrap: wrap;
  gap: 2.25rem clamp(2rem, 5vw, 4rem);
  align-items: flex-start;
}
.hq-footer__grid > :first-child { flex: 1 1 20rem; }
.hq-footer__col { flex: 0 1 14rem; }
.hq-footer__col h3 { font-size: 0.9375rem; font-weight: 800; margin: 0 0 0.75rem; }
.hq-footer__links { display: grid; gap: 0.125rem; }
.hq-footer__col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.125rem; }
.hq-footer__links a,
.hq-footer__col a { text-decoration: none; color: var(--hq-soft); }
.hq-footer__links a:hover,
.hq-footer__col a:hover { color: var(--hq-choc); text-decoration: underline; }
.hq-footer__meta { font-size: 0.8125rem; line-height: 1.6; color: var(--hq-soft); }
.hq-footer__base {
  margin-block-start: var(--wp--preset--spacing--50);
  padding-block-start: 1.25rem;
  border-block-start: 1px solid var(--hq-hair);
  font-size: 0.78125rem;
  color: var(--hq-soft);
}

/* The registration number must never break across lines. */
.hq-footer__meta .hq-ltr { white-space: nowrap; }

/* ---------------------------------------------------------------- commerce surfaces */

.hq-empty { text-align: start; }
.hq-checkout-intro p { color: var(--hq-soft); max-inline-size: 60ch; }

.hq-commerce .wc-block-components-text-input input,
.hq-commerce input[type="text"],
.hq-commerce input[type="email"],
.hq-commerce input[type="tel"],
.hq-commerce textarea,
.hq-commerce select {
  background: var(--hq-field);
  border: 0;
  box-shadow: inset 0 0 0 1.5px var(--hq-line);
  border-radius: var(--hq-radius);
  color: var(--hq-choc);
  min-block-size: 52px;
}

/* ---------------------------------------------------------------- buttons

   State rules are written at the same specificity as the base rule. A base selector
   that outranks its own :hover and [aria-disabled] states silently kills both — that
   bug shipped once here already. */

.wp-block-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}
.wp-block-button__link,
a.wp-block-button__link {
  display: inline-flex;
  align-items: center;
  min-block-size: 52px;
  transition: background-color 140ms var(--hq-ease);
}
.wp-block-button__link:hover,
a.wp-block-button__link:hover { background: #ff8574; }

.wp-block-button.is-style-outline .wp-block-button__link,
a.wp-block-button__link.hq-btn--ghost {
  background: transparent;
  color: var(--hq-choc);
  box-shadow: inset 0 0 0 1.5px var(--hq-line);
}
.wp-block-button.is-style-outline .wp-block-button__link:hover,
a.wp-block-button__link.hq-btn--ghost:hover { background: var(--hq-cream); }

.wp-block-button__link[aria-disabled="true"],
a.wp-block-button__link[aria-disabled="true"] {
  background: transparent;
  color: var(--hq-soft);
  box-shadow: inset 0 0 0 1.5px var(--hq-line);
  cursor: default;
  pointer-events: none;
}

/* ---------------------------------------------------------------- wide layouts */

@media (min-width: 782px) {
  .hq-header__inner { display: flex; align-items: center; gap: 2.25rem; }
  .hq-footer__base { display: flex; justify-content: space-between; align-items: center; }
  .hq-consent__inner { grid-template-columns: 1fr auto; }
  .hq-band__inner { gap: 1.25rem; }
}

@media (min-width: 1024px) {
  .hq-hero__grid { grid-template-columns: minmax(26rem, 1fr) 1.05fr; }
  .hq-range__grid { grid-template-columns: 0.78fr 1.22fr; }
  .hq-shelf__grid { grid-template-columns: 1.15fr 1fr; }
  .hq-origin .hq-shelf__grid { grid-template-columns: 1fr 1fr; }
}

/* ---------------------------------------------------------------- narrow layouts */

@media (max-width: 1023px) {
  .hq-hero__grid,
  .hq-range__grid,
  .hq-shelf__grid,
  .hq-origin .hq-shelf__grid { grid-template-columns: 1fr; }
  .hq-product-disclosures > * { grid-template-columns: 1fr; gap: 0.375rem; }
}

@media (max-width: 781px) {
  .hq-header__inner { display: flex; align-items: center; gap: 1rem; }
  .hq-slot { grid-template-columns: 2rem 1fr; row-gap: 0.875rem; }
  .hq-footer__base { display: grid; gap: 0.5rem; justify-items: start; }
}

/* ---------------------------------------------------------------- motion */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  /* The rules above never reach the view-transition pseudo-elements, so the page-to-page
     crossfade kept running for visitors who asked for less motion. */
  @view-transition { navigation: none; }
  ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; }
}


/* ================================================================ the Qwest Path
 *
 * Built to the approved reference composition. Three things carry the first viewport:
 * a display serif set large and tight, a photograph that runs to the right edge of the
 * viewport rather than sitting in a column, and one ribbon that starts under the
 * headline and carries down into the range.
 *
 * Everything below is additive and namespaced, so the band rules above are untouched.
 */

/* ---- shared editorial furniture */

.hq-eyebrow {
  margin: 0;
  font-family: var(--wp--preset--font-family--sign);
  font-size: 0.6875rem;
  font-weight: 600;
  line-height: 1.7;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--hq-soft);
}
/* Arabic takes neither: tracking breaks the joins and uppercase is a no-op. */
[dir="rtl"] .hq-eyebrow,
[lang="ar"] .hq-eyebrow { letter-spacing: normal; text-transform: none; }

.hq-eyebrow--rule { display: flex; align-items: center; gap: 1rem; }
.hq-eyebrow--rule::after {
  content: "";
  inline-size: clamp(2rem, 6vw, 5rem);
  block-size: 1px;
  background: var(--hq-line);
}
.hq-eyebrow--end { text-align: end; }

/* ---- header */

.hq-header {
  background: color-mix(in srgb, var(--hq-paper) 84%, transparent);
  backdrop-filter: blur(14px) saturate(1.4);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  border-block-end: 0;
  transition: box-shadow 200ms var(--hq-ease), background-color 200ms var(--hq-ease);
}
@supports not (backdrop-filter: blur(1px)) { .hq-header { background: var(--hq-paper); } }
.hq-header.is-stuck {
  background: color-mix(in srgb, var(--hq-paper) 95%, transparent);
  box-shadow: 0 1px 0 var(--hq-hair), 0 10px 30px -22px rgba(62, 43, 37, 0.5);
}
.hq-header__inner { min-block-size: 78px; }

.hq-wordmark { flex: none; }
.hq-wordmark__link {
  display: inline-flex;
  align-items: baseline;
  gap: 0.28em;
  white-space: nowrap;          /* the header's flex row was squeezing this to two lines */
  min-block-size: 44px;
  font-family: var(--wp--preset--font-family--read);
  font-size: clamp(1.375rem, 2.1vw, 1.75rem);
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--hq-berry);
  text-decoration: none;
}
/* Set, not drawn. The manifest lists a vector logo among the missing production assets,
   so this is live text in the display face until the real mark arrives — which also
   keeps the site name selectable, translatable and searchable in the meantime. */
.hq-wordmark__health { font-style: italic; font-weight: 500; font-variation-settings: "SOFT" 40, "WONK" 1; }
.hq-wordmark__qwest  { font-weight: 800; }

.hq-utility { display: flex; align-items: center; gap: clamp(0.75rem, 2vw, 1.75rem); }

.hq-locale {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
  padding-inline-end: clamp(0.75rem, 2vw, 1.75rem);
  border-inline-end: 1px solid var(--hq-hair);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.06em;
}
.hq-locale__on { color: var(--hq-berry); border-block-end: 2px solid var(--hq-berry); padding-block-end: 2px; }
.hq-locale__sep { color: var(--hq-hair); }
/* The link is the only operable part, so it alone carries the 44px target; the padding
   extends the hit area without moving the visible text off the header's baseline. */
.hq-locale__off {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-block-size: 44px;
  min-inline-size: 44px;
  padding-inline: 0.25rem;
  color: var(--hq-soft);
  text-decoration: none;
}
.hq-locale__off:focus-visible { outline: 2px solid var(--hq-berry); outline-offset: 2px; border-radius: 4px; }
.hq-locale__off:hover { color: var(--hq-choc); }

.hq-cart { display: inline-flex; align-items: center; gap: 0.55rem; min-block-size: 44px; text-decoration: none; }
.hq-cart__glyph { inline-size: 20px; block-size: 22px; flex: none; }

/* ---- hero */

/* The concept's hero is 690px tall and its photograph starts directly under the nav.
   Both matter: without the height the absolutely-positioned ribbon rides up over the
   buttons, and without zeroing the block padding the picture floats in a band of paper. */
.hq-hero { position: relative; min-block-size: 690px; padding-block: 0; }
/* The photograph runs to the viewport edge, so the hero cancels the band's inline
   padding and the copy column re-applies it on its own side only. */
.hq-hero.hq-plate { padding-inline: 0; }

.hq-hero__grid {
  display: grid;
  grid-template-areas: "copy media";
  grid-template-columns: minmax(20rem, 42fr) 58fr;
  gap: 0 clamp(1.5rem, 4vw, 3.5rem);
  align-items: center;
}
.hq-hero__copy {
  grid-area: copy;
  padding-inline-start: var(--hq-gutter);
  padding-block: clamp(2rem, 5vw, 4rem);
}
.hq-hero__media { grid-area: media; position: relative; align-self: stretch; }
.hq-qpath { grid-area: path; }

.hq-eyebrow--kicker { letter-spacing: 0.36em; margin-block-end: 1.625rem; }

/* The headline measure is absolute on purpose. The base lockup caps at 24ch, and `ch`
   resolves against the LOCKUP's font size — which inherits body size — so it is about
   200px however large the headline is set, and it produced a "Pick / your / Qwest."
   ladder. The constraint belongs to the headline, not to its box. */
/* The reference's own figures: 68-122px, leading 0.8, tracking -0.075em, measure 600px.
   Everything I had was smaller and looser, which is why the headline read as a heading
   rather than as the page's opening statement. */
.hq-lockup--hero { max-inline-size: min(100%, 600px); gap: 0.5rem; }
.hq-lockup--hero .hq-lockup__primary {
  font-family: var(--wp--preset--font-family--read);
  font-size: clamp(3.75rem, 7.5vw, 7.625rem);
  font-weight: 700;
  line-height: 0.8;
  letter-spacing: -0.075em;
  word-spacing: 0.12em;   /* the tracking closes the word gap at 122px */
  font-variation-settings: "SOFT" 20, "WONK" 1;
  text-wrap: balance;
  color: var(--hq-deep);
}
/* Second word italic and lighter, as the reference sets it. */
.hq-lockup--hero .hq-lockup__primary em { font-style: italic; font-weight: 400; }
/* Equal dignity for the Arabic, as the direction requires — the same optical weight as
   the English, not a caption under it. No tracking, no uppercase. */
.hq-lockup--hero .hq-lockup__ar {
  font-size: clamp(1.75rem, 3.6vw, 3rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: normal;
  text-transform: none;
  color: var(--hq-deep);
}

.hq-hero__promise {
  margin: clamp(1.25rem, 2.4vw, 2.125rem) 0 0;
  font-family: var(--wp--preset--font-family--read);
  font-size: clamp(1.375rem, 2.6vw, 2rem);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.015em;
  color: var(--hq-choc);
}

/* ---- buttons */

.hq-hero__cta { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-block-start: clamp(1.5rem, 3vw, 2.5rem); }

.hq-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  min-block-size: 56px;            /* clears the 44px target minimum with room */
  padding-inline: 1.85rem;
  border-radius: 999px;
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 160ms var(--hq-ease), color 160ms var(--hq-ease);
}
.hq-btn--solid { background: var(--hq-berry); color: var(--hq-paper); }
.hq-btn--solid:hover { background: #8d3157; }
.hq-btn--ghost { color: var(--hq-choc); box-shadow: inset 0 0 0 1.5px var(--hq-line); }
.hq-btn--ghost:hover { background: var(--hq-cream); }
/* The glyph carries the motion, never the button, so the hit area cannot move out from
   under a pointer on its way to being clicked. */
.hq-btn__glyph { transition: transform 200ms var(--hq-ease); }
.hq-btn:hover .hq-btn__glyph { transform: translateX(0.25rem); }
[dir="rtl"] .hq-btn__glyph { transform: scaleX(-1); }
[dir="rtl"] .hq-btn:hover .hq-btn__glyph { transform: scaleX(-1) translateX(0.25rem); }
.hq-btn__pin { inline-size: 16px; block-size: 16px; flex: none; }

/* ---- hero media */

/* The hero is a photograph again — a real one, of the real pack, supplied by the
   business. It runs full-bleed to the viewport edge at its own aspect, so it is never
   upscaled and never cover-cropped down to a detail. */
.hq-hero__media { display: grid; align-content: center; }
.hq-hero__media picture { display: block; }
.hq-hero__media img {
  inline-size: 100%;
  block-size: auto;
  aspect-ratio: 3024 / 2150;
  object-fit: cover;
  object-position: center;
  border-start-start-radius: 24px;
  border-end-start-radius: 24px;
}

/* ---- the ribbon */

/* Absolutely positioned, as the reference has it: the ribbon crosses the hero/range
   boundary rather than sitting in a row of its own. That also settles the pacing charge
   from the before/after review — decoration that carries no information now buys no
   vertical space at all. */
.hq-qpath {
  position: absolute;
  z-index: 3;
  inset-inline-start: 7%;
  inset-block-end: -76px;
  inline-size: 78%;
  block-size: 250px;
  pointer-events: none;
  overflow: visible;
}
.hq-qpath__stroke {
  fill: none;
  stroke: #d85d75;
  stroke-width: 11;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
  /* Normalised in JS so one dash figure works at any viewport width. */
  stroke-dasharray: var(--hq-path-len, 2400);
  stroke-dashoffset: var(--hq-path-len, 2400);
}
.hq-qpath.is-drawn .hq-qpath__stroke { animation: hq-draw 2.2s var(--hq-ease) forwards; }
@keyframes hq-draw { to { stroke-dashoffset: 0; } }

/* ---- range cards */

.hq-range__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-block-end: clamp(1.5rem, 3vw, 2.5rem);
}

.hq-cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(0.75rem, 1.4vw, 1.25rem);
  margin: 0;
  padding: 0;
  list-style: none;
}
.hq-card {
  position: relative;
  display: flex;
  flex-direction: column;
  /* Sized to its content while the range has no photography. The tall card is right
     once a shot fills the lower two thirds; empty, it reads as a picture that failed to
     load rather than as space. --shot is added by the renderer only when the file is
     really on disk. */
  padding: clamp(1.25rem, 2vw, 1.75rem);
  border-radius: 14px;
  background: var(--hq-card-tone);
  color: var(--hq-deep);
  overflow: hidden;
}
/* The chocolate ground is the one card that cannot take dark ink. Paper on #4a2b20
   measures 11.9:1. */
.hq-card--shot { min-block-size: clamp(17rem, 26vw, 22rem); }
.hq-card--brownie-date-ball { color: var(--hq-paper); }
.hq-card--brownie-date-ball .hq-card__copy { color: rgba(255, 250, 244, 0.86); }

.hq-card__name {
  margin: 0;
  font-family: var(--wp--preset--font-family--read);
  font-size: clamp(1.5rem, 2.3vw, 2.125rem);
  font-weight: 800;
  line-height: 0.98;
  letter-spacing: -0.028em;
  font-variation-settings: "SOFT" 20, "WONK" 1;
  text-wrap: balance;
  color: inherit;
}
.hq-card__copy {
  margin: 0.65rem 0 0;
  max-inline-size: 24ch;
  font-size: 0.9375rem;
  line-height: 1.5;
  color: rgba(42, 28, 23, 0.78);
}
/* The photograph, when there is one, fills the lower half behind the type. Until a real
   shoot exists the card is colour and type — see health_qwest_range_slots(). */
.hq-card__shot {
  position: absolute;
  inset-block-end: 0;
  inset-inline: 0;
  inline-size: 100%;
  block-size: 62%;
  object-fit: cover;
  z-index: 0;
}
.hq-card__name, .hq-card__copy { position: relative; z-index: 1; }

/* ---- narrow: recompose rather than stack
 *
 * At 390 the old layout ran pill → headline → lead → buttons → photograph, which put the
 * pack below the first screen with a fixed consent bar over what was left. */

@media (max-width: 1023px) {
  .hq-hero__grid {
    grid-template-areas: "copy" "media";
    grid-template-columns: 1fr;
    gap: clamp(1.5rem, 5vw, 2.5rem);
  }
  .hq-hero.hq-plate { padding-inline: 0; }
  .hq-hero__copy { padding-inline: var(--hq-gutter); }
  .hq-lockup--hero { max-inline-size: 100%; }
  .hq-hero__media img { border-radius: 0; }
  .hq-qpath { display: none; }
  .hq-script, .hq-origin-note { display: none; }
  .hq-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 599px) {
  .hq-cards { grid-template-columns: 1fr; }
  .hq-card--shot { min-block-size: 13rem; }
}

@media (prefers-reduced-motion: reduce) {
  .hq-qpath__stroke { stroke-dashoffset: 0; animation: none; }
}

/* ---- range intro: approved factual copy beside the one authentic pack photograph */

.hq-range__intro {
  display: grid;
  gap: clamp(1.25rem, 3vw, 2.5rem);
  /* start, not center: the pack column is the taller of the two, and centring the lead
     against it left a block of empty ground above the copy. */
  align-items: start;
  margin-block: clamp(1.25rem, 2.5vw, 2rem) clamp(1.5rem, 3vw, 2.5rem);
}
@media (min-width: 768px) {
  .hq-range__intro { grid-template-columns: minmax(0, 1fr) minmax(0, 26rem); }
}
.hq-range__note-shared {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.55;
  max-inline-size: 34ch;
  color: var(--hq-soft);
}
.hq-range__lead {
  margin: 0;
  font-family: var(--wp--preset--font-family--read);
  font-size: clamp(1.125rem, 1.9vw, 1.4375rem);
  line-height: 1.45;
  max-inline-size: 40ch;
  color: var(--hq-choc);
}
/* Compact on purpose. At full width this photograph was a destination of its own and
   pushed the range down a screen; it is evidence that the pack is real, not a section. */
.hq-range__intro .hq-range__pack { margin: 0; }
.hq-range__intro .hq-range__pack img { inline-size: 100%; block-size: auto; }
.hq-range__intro .hq-range__pack figcaption {
  margin-block-start: 0.6rem;
  font-size: 0.8125rem;
  line-height: 1.45;
  color: var(--hq-soft);
}
.hq-availability {
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--hq-soft);
}

/* ================================================================ reference pass 2
 *
 * Values taken from concepts/immersive-2026/index.html rather than eyeballed from the
 * board, so the range, story and footer read as that document specifies them.
 */

/* ---- range: a gradient ground, and a head that sets the pair on one baseline */

.hq-range.hq-plate--cream {
  background: linear-gradient(var(--hq-paper), #f8eadf);
}

.hq-range__head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: clamp(1rem, 3vw, 2.5rem);
  margin-block-end: 1.75rem;
}
.hq-range__note {
  margin: 0;
  max-inline-size: 300px;
  font-family: var(--wp--preset--font-family--read);
  font-style: italic;
  font-size: clamp(1rem, 1.5vw, 1.25rem);
  line-height: 1.35;
  text-align: end;
  color: var(--hq-choc);
}
.hq-range__title {
  margin: 0.75rem 0 0;
  font-family: var(--wp--preset--font-family--read);
  font-size: clamp(2.25rem, 5vw, 4.375rem);
  font-weight: 700;
  line-height: 0.9;
  letter-spacing: -0.045em;
  color: var(--hq-deep);
}

/* ---- cards: the reference's proportions, with an abstract tone form rather than food */

.hq-cards { gap: 1rem; }
.hq-card {
  min-block-size: 390px;
  padding: 1.625rem;
  border-radius: 26px;
  isolation: isolate;
  transition: transform 350ms ease;
}
.hq-card:hover { transform: translateY(-8px); }
.hq-card:hover .hq-card__form { transform: translateX(4%); }
.hq-card__form { transition: transform 600ms var(--hq-ease); }
.hq-card__name {
  font-size: clamp(1.9375rem, 3.3vw, 3rem);
  line-height: 0.88;
  letter-spacing: -0.04em;
  /* min(), not a flat 240px: on a four-up grid the card is narrower than that, so the
     longest name ran past its own edge. */
  max-inline-size: min(240px, 100%);
  padding-inline-end: 3.25rem;   /* clears the arrow disc rather than running under it */
  hyphens: none;
}
.hq-card__copy { margin-block-start: 0.9rem; max-inline-size: 22ch; }

/* Top-right affordance, as the reference has it. It is decoration on a card that is not
   yet a link — the products are drafts — so it is hidden from assistive tech rather than
   announced as a control that does nothing. */
.hq-card__arrow {
  position: absolute;
  inset-block-start: 1.25rem;
  inset-inline-end: 1.25rem;
  inline-size: 42px;
  block-size: 42px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.84);
  display: grid;
  place-items: center;
  color: var(--hq-deep);
  font-size: 1.25rem;
  line-height: 1;
}

/* Tactile, and representational of NOTHING.
 *
 * An earlier pass put an abstract radial disc in the corner. It depicted no real object,
 * but at card size it read as a food item, which is the exact impression that must not be
 * given while there is no product photography. It is gone.
 *
 * What is here instead is material, not subject: the diagonal sheen of the pink foil the
 * pouch is actually made of, a fine paper grain over it, and the brand's own Q set as a
 * ghosted letterform. None of it stands in for a cookie, a bite, a ball or a bar.
 */
.hq-card__form {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  /* foil: a raking highlight across the card, the way light crosses the real pouch */
  background:
    linear-gradient(112deg,
      transparent 0 18%,
      rgba(255, 255, 255, 0.26) 33%,
      rgba(255, 255, 255, 0.07) 44%,
      transparent 58% 100%),
    /* paper: a fine directional grain, kept under 4% so it never muddies the ink */
    repeating-linear-gradient(63deg,
      rgba(255, 255, 255, 0.035) 0 2px,
      transparent 2px 4px);
}
/* The Q of Qwest, ghosted into the corner as a brand device. aria-hidden on the element,
   and it carries no meaning that the card's own name does not already give. */
.hq-card::after {
  content: "Q";
  content: "Q" / ""; /* a pseudo-element cannot carry aria-hidden; empty alt text keeps it silent */
  position: absolute;
  z-index: 0;
  /* Fully inside the card. Hung over the edge it was clipped by the card's own
     overflow and read as a plain O — the descender is what makes it a Q. */
  inset-block-end: 0.02em;
  inset-inline-end: 0.1em;
  font-family: var(--wp--preset--font-family--read);
  font-size: clamp(6.5rem, 11vw, 9rem);
  font-weight: 700;
  font-style: italic;
  line-height: 1;
  color: currentColor;
  opacity: 0.13;
  pointer-events: none;
}
[dir="rtl"] .hq-card::after { transform: scaleX(-1); }

/* A real photograph supersedes the whole decorative layer. */
.hq-card--shot .hq-card__form,
.hq-card--shot::after { display: none; }

/* ---- story: the berry field the reference gives it */

.hq-origin.hq-plate--paper { background: var(--hq-berry); color: var(--hq-paper); }
.hq-origin .hq-lockup__primary,
.hq-origin .hq-lockup__ar { color: var(--hq-paper); }
.hq-origin p { color: rgba(255, 250, 244, 0.9); }
.hq-origin .hq-btn--solid,
.hq-origin .wp-block-button__link {
  background: transparent;
  color: var(--hq-paper);
  box-shadow: inset 0 0 0 1.5px rgba(255, 250, 244, 0.8);
}
.hq-origin .hq-btn--solid:hover,
.hq-origin .wp-block-button__link:hover { background: rgba(255, 250, 244, 0.12); }

/* ---- footer: chocolate ground, cream ink */

.hq-footer.hq-plate { background: var(--hq-deep); color: var(--hq-cream); }
.hq-footer .hq-lockup__primary { color: var(--hq-cream); font-size: clamp(1.75rem, 3.4vw, 2.375rem); }
.hq-footer .hq-lockup__ar { color: rgba(247, 233, 219, 0.82); }
.hq-footer a { color: var(--hq-cream); }
.hq-footer p,
.hq-footer li,
.hq-footer .hq-footer__base { color: rgba(247, 233, 219, 0.82); }
.hq-footer h2, .hq-footer h3, .hq-footer strong { color: var(--hq-cream); }
.hq-footer__base { border-block-start-color: rgba(247, 233, 219, 0.2); }
.hq-footer :where(a, button):focus-visible { outline-color: var(--hq-cream); box-shadow: 0 0 0 3px var(--hq-deep); }

@media (max-width: 1023px) {
  .hq-card { min-block-size: 300px; }
  .hq-range__head { display: block; }
  .hq-range__note { text-align: start; margin-block-start: 1rem; }
}
@media (max-width: 599px) {
  .hq-card { min-block-size: 260px; }
}
@media (prefers-reduced-motion: reduce) {
  .hq-card { transition: none; }
}
