/* Site-level layout and pieces not in the design system's component set. Tokens only. */

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-height) + var(--space-4)); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body.yx { margin: 0; min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1; }
.yx img { max-width: 100%; height: auto; }
.yx picture { display: block; }
.yx-help:empty { display: none; }
.yx-hero { overflow: clip; } /* keeps the halftone cluster from widening the page on phones */
.yx-nowrap { white-space: nowrap; }

/* Skip link */
.yx-skip { position: absolute; left: var(--space-4); top: -100px; z-index: 100; padding: var(--space-3) var(--space-4); background: var(--turmeric); color: var(--on-turmeric); border-radius: var(--radius-sm); font-weight: 600; text-decoration: none; }
.yx .yx-skip { color: var(--on-turmeric); }
.yx-skip:focus { top: var(--space-4); }

/* Header tools: theme toggle + mobile menu */
.yx-header__tools { display: flex; align-items: center; gap: var(--space-2); }
.yx-icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface-raised); color: var(--ink); cursor: pointer; transition: border-color .15s ease; }
.yx-icon-btn:hover { border-color: var(--line-strong); }
.yx-icon-btn span { display: inline-flex; }
.yx-theme-icon--sun { display: none !important; }
:root[data-theme="dark"] .yx-theme-icon--sun { display: inline-flex !important; }
:root[data-theme="dark"] .yx-theme-icon--moon { display: none !important; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .yx-theme-icon--sun { display: inline-flex !important; }
  :root:not([data-theme="light"]) .yx-theme-icon--moon { display: none !important; }
}
.yx-menu-toggle { display: none; }
.yx-menu-icon--close { display: none !important; }
.yx-header.is-open .yx-menu-icon--close { display: inline-flex !important; }
.yx-header.is-open .yx-menu-icon--open { display: none !important; }
.yx-header__inner { position: relative; }
.yx-header .yx-nav { margin-left: auto; }
@media (max-width: 760px) {
  .yx-menu-toggle { display: inline-flex; }
  .yx-header.is-open .yx-nav { display: flex; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0;
    padding: var(--space-2) var(--space-4) var(--space-6); background: var(--surface); border-bottom: 1px solid var(--line); box-shadow: var(--shadow-card); }
  .yx-header.is-open .yx-nav a:not(.yx-btn) { padding: var(--space-4) 0; border-bottom: 1px solid var(--line); font-size: 16px; }
  .yx-header.is-open .yx-nav a[aria-current="page"] { color: var(--roast); }
  .yx-header.is-open .yx-nav .yx-btn { margin-top: var(--space-4); min-height: 48px; }
}

/* Two-column split: image + copy */
.yx-split { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-16); align-items: center; }
.yx-split__copy, .yx-split__media { min-width: 0; }
.yx-split__media { position: relative; }
.yx-split__media img { width: 100%; border-radius: var(--radius-lg); border: 1px solid var(--line); display: block; }
.yx-split--reach, .yx-split--why { margin-bottom: var(--space-12); }
@media (max-width: 900px) {
  .yx-split { grid-template-columns: 1fr; gap: var(--space-8); }
  .yx-split__media { order: -1; }
}

/* Running copy blocks */
.yx-prose { display: flex; flex-direction: column; gap: var(--space-4); }
.yx-prose > p { max-width: var(--measure); color: var(--ink-muted); }
.yx-prose > p strong { color: var(--ink); font-weight: 600; }
.yx-prose > .yx-prose__lead { color: var(--ink); font-size: 18px; line-height: 30px; }
.yx-prose > .yx-display-l { margin-bottom: var(--space-2); }

/* "What we offer" closing lines */
.yx-offer-close { display: grid; gap: var(--space-3); max-width: 820px; margin-top: var(--space-12); }
.yx-offer-close p { color: var(--ink-muted); }
.yx-offer-close strong { color: var(--ink); font-weight: 600; }
.yx-offer-close__strong { font-family: var(--font-display); font-size: 24px; line-height: 32px; color: var(--ink) !important; }

/* Light inline call-out (used between sections; the dark band is saved for the close) */
.yx-callout { display: grid; grid-template-columns: 1fr auto; gap: var(--space-8); align-items: center; margin-top: var(--space-12);
  padding: var(--space-8) var(--space-12); background: var(--surface-raised); border: 1px solid var(--line); border-radius: var(--radius-lg); position: relative; overflow: hidden; isolation: isolate; }
.yx-callout::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: radial-gradient(circle, var(--turmeric) 2.5px, transparent 3px); background-size: var(--space-3) var(--space-3);
  -webkit-mask-image: radial-gradient(circle at 100% 50%, #000 0, transparent 220px); mask-image: radial-gradient(circle at 100% 50%, #000 0, transparent 220px); opacity: .55; }
.yx-callout p { color: var(--ink-muted); margin-top: var(--space-2); max-width: 64ch; }
@media (max-width: 760px) { .yx-callout { grid-template-columns: 1fr; padding: var(--space-6); } }

.yx-regions-intro { font-weight: 600; margin-bottom: var(--space-6); }

/* Quote section */
.yx-quote { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: var(--space-16); align-items: start; }
.yx-quote__intro .yx-facts { margin-top: var(--space-4); grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.yx-company { padding-top: var(--space-6); border-top: 1px solid var(--line); display: grid; gap: var(--space-2); }
.yx-company p { color: var(--ink-muted); }
.yx-company__line { font-family: var(--font-display); font-style: italic; color: var(--saffron-text) !important; font-size: 18px; }
.yx-quote__panel { position: sticky; top: calc(var(--header-height) + var(--space-6)); background: var(--surface-raised); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: var(--space-8); box-shadow: var(--shadow-card); }
.yx-form__error { padding: var(--space-3) var(--space-4); border-radius: var(--radius-sm); background: var(--turmeric-soft); color: var(--danger); font-weight: 600; font-size: 14px; line-height: 22px; }
.yx-form__submit { display: grid; gap: var(--space-3); justify-items: start; }
.yx-form__submit .yx-btn { min-width: 220px; }
.yx-form__submit .yx-btn[aria-busy="true"] { opacity: .7; cursor: progress; }
.yx-hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.yx-quote__success { display: grid; gap: var(--space-3); justify-items: start; padding-block: var(--space-8); outline: none; }
.yx-quote__success[hidden] { display: none; }
.yx-quote__success-icon { color: var(--success); display: inline-flex; }
.yx-quote__success p { color: var(--ink-muted); }
@media (max-width: 1000px) { .yx-quote { grid-template-columns: 1fr; gap: var(--space-12); } .yx-quote__panel { position: static; } }
@media (max-width: 640px) { .yx-quote__panel { padding: var(--space-6) var(--space-4); } }

/* Closing CTA band sits with less top padding */
.yx-section--cta { padding-top: var(--space-16); }
.yx-section:not(.yx-section--alt) + .yx-section--cta { padding-top: 0; } /* same ground: no double gap */
.yx-cta h2 { margin-top: var(--space-3); }

/* Footer additions */
.yx-footer__head { font: 600 12px/16px var(--font-sans); letter-spacing: .14em; text-transform: uppercase; color: var(--on-deep); margin: 0 0 var(--space-4); }
.yx-footer__brand { display: grid; gap: var(--space-2); align-content: start; }
.yx-footer__contact li { display: flex; gap: var(--space-2); align-items: flex-start; }
.yx-footer__contact svg { flex: none; margin-top: 3px; color: var(--turmeric); }
.yx-footer__contact a, .yx-footer__contact span { overflow-wrap: anywhere; }
.yx-social { flex-direction: row !important; gap: var(--space-3) !important; margin-top: var(--space-4) !important; }
.yx-social a { display: inline-flex; width: 40px; height: 40px; align-items: center; justify-content: center; border: 1px solid rgba(247, 240, 228, .2); border-radius: var(--radius-sm); }
.yx-footer__legal { display: inline-flex; gap: var(--space-4); }
.yx-footer__base { padding-right: 72px; } /* room for the floating WhatsApp button */
.yx-footer__linkbtn { background: none; border: 0; padding: 0; font: inherit; color: var(--on-deep-muted); cursor: pointer; }
.yx-footer__linkbtn:hover { color: var(--turmeric); }

/* Floating WhatsApp button */
.yx-whatsapp { position: fixed; right: var(--space-6); bottom: calc(var(--space-6) + env(safe-area-inset-bottom, 0px)); z-index: 20; width: 56px; height: 56px; border-radius: 50%;
  display: grid; place-items: center; background: var(--turmeric); color: var(--on-turmeric); box-shadow: var(--shadow-lift); transition: transform .15s ease, background-color .15s ease, bottom .2s ease; }
.yx .yx-whatsapp { color: var(--on-turmeric); }
.yx-whatsapp:hover { background: var(--saffron); transform: translateY(-2px); }
body.has-cookie-banner .yx-whatsapp { bottom: calc(var(--cookie-h, 120px) + var(--space-4)); }
@media (max-width: 640px) { .yx-whatsapp { right: var(--space-4); bottom: calc(var(--space-4) + env(safe-area-inset-bottom, 0px)); width: 52px; height: 52px; } }

/* Cookie banner */
.yx-cookie { position: fixed; left: var(--space-4); right: var(--space-4); bottom: calc(var(--space-4) + env(safe-area-inset-bottom, 0px)); z-index: 30; max-width: 720px; margin-inline: auto;
  display: flex; gap: var(--space-6); align-items: center; padding: var(--space-4) var(--space-6); background: var(--surface-raised); border: 1px solid var(--line); border-radius: var(--radius-md); box-shadow: var(--shadow-lift); }
.yx-cookie[hidden] { display: none; }
.yx-cookie p { font-size: 14px; line-height: 22px; color: var(--ink); }
.yx-cookie__actions { display: flex; gap: var(--space-2); flex: none; }
@media (max-width: 640px) { .yx-cookie { flex-direction: column; align-items: stretch; gap: var(--space-3); } .yx-cookie__actions .yx-btn { flex: 1; } }

/* 404 */
.yx-notfound .yx-container { display: grid; gap: var(--space-6); justify-items: start; padding-block: var(--space-16); }

/* ---------- Product pages ---------- */
.yx-visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.yx-hero--page { padding-block: var(--space-8) var(--space-16); }
.yx-hero--page .yx-hero__grid { margin-top: var(--space-8); }
.yx-hero__para { color: var(--ink-muted); max-width: var(--measure); }
.yx-hero__para strong, .yx-lede strong { color: var(--ink); font-weight: 600; }

.yx-crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--space-2); font-size: 13px; line-height: 20px; color: var(--ink-muted); }
.yx-crumbs li { display: inline-flex; align-items: center; gap: var(--space-2); }
.yx-crumbs li + li::before { content: "/"; color: var(--line-strong); }
.yx-crumbs a { color: var(--ink-muted); text-decoration: none; }
.yx-crumbs a:hover { color: var(--roast); text-decoration: underline; text-underline-offset: 3px; }
.yx-crumbs [aria-current] { color: var(--ink); font-weight: 600; }

/* In-page jump links, sticky under the header */
.yx-subnav { position: sticky; top: calc(var(--header-height) + env(safe-area-inset-top, 0px)); z-index: 9; background: var(--surface); border-block: 1px solid var(--line); }
.yx-subnav__inner { display: flex; gap: var(--space-2); overflow-x: auto; padding-block: var(--space-3); scrollbar-width: none; }
.yx-subnav__inner::-webkit-scrollbar { display: none; }
.yx-subnav .yx-chip { flex: none; text-decoration: none; padding: 6px 14px; font-size: 13px; transition: background-color .15s ease, color .15s ease, border-color .15s ease; }
.yx-subnav .yx-chip:hover { background: var(--turmeric-soft); color: var(--roast); border-color: var(--turmeric); }
@media (max-width: 760px) { .yx-subnav { top: calc(64px + env(safe-area-inset-top, 0px)); } }
html:has(.yx-subnav) { scroll-padding-top: calc(var(--header-height) + 64px); }

/* One product/variety: summary (image, name, text, action) + spec table */
.yx-products-list { display: flex; flex-direction: column; }
.yx-product-block { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: var(--space-12); align-items: start; padding-block: var(--space-12); border-top: 1px solid var(--line); }
.yx-product-block:first-child { border-top: 0; padding-top: 0; }
.yx-product-block__summary { display: flex; flex-direction: column; gap: var(--space-3); align-items: flex-start; }
.yx-product-block__media { width: 100%; margin-bottom: var(--space-3); }
.yx-product-block__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-lg); border: 1px solid var(--line); display: block; }
.yx-product-block__subtitle { font-weight: 600; color: var(--roast); }
.yx-product-block__text { color: var(--ink-muted); max-width: var(--measure); }
.yx-product-block__summary > .yx-btn, .yx-product-block__actions { margin-top: var(--space-3); }
.yx-product-block__actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-6); }
.yx-origin { display: inline-flex; align-items: center; gap: var(--space-2); font: 500 14px/20px var(--font-mono); color: var(--saffron-text); }
.yx-suitable { font-size: 14px; line-height: 22px; color: var(--ink-muted); padding: var(--space-3) var(--space-4); background: var(--turmeric-soft); border-radius: var(--radius-sm); }
.yx-suitable strong { color: var(--ink); }
@media (min-width: 901px) { .yx-product-block__specs { position: sticky; top: calc(var(--header-height) + 80px); } }
@media (max-width: 900px) { .yx-product-block { grid-template-columns: 1fr; gap: var(--space-8); } }

.yx-heading__para { color: var(--ink-muted); max-width: var(--measure); }
.yx .yx-note { font-size: 14px; line-height: 22px; color: var(--ink-muted); margin-top: var(--space-6); }
.yx .yx-prose > .yx-note { margin-top: 0; }

/* Packaging cards */
.yx-pack-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-6); }
.yx-pack { display: flex; flex-direction: column; gap: var(--space-4); padding: var(--space-8); background: var(--surface-raised); border: 1px solid var(--line); border-radius: var(--radius-md); }
.yx-pack__rows { display: grid; gap: var(--space-4); margin: 0; }
.yx-pack__rows dt { font: 600 12px/16px var(--font-sans); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-muted); margin-bottom: var(--space-2); }
.yx-pack__rows dd { margin: 0; }
@media (max-width: 760px) { .yx-pack-grid { grid-template-columns: 1fr; } .yx-pack { padding: var(--space-6); } }

/* Split aligned to the top (text + table/list) */
.yx-split--top { align-items: start; }
@media (max-width: 900px) { .yx-split--top .yx-split__media { order: 0; } }

/* Customisation checklist */
.yx-checklist { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); background: var(--surface-raised); }
.yx-checklist li { display: flex; align-items: center; gap: var(--space-3); padding: var(--space-4) var(--space-6); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); font-weight: 500; }
.yx-checklist__tick { flex: none; display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--turmeric); color: var(--on-turmeric); }
@media (max-width: 480px) { .yx-checklist { grid-template-columns: 1fr; } }

/* ---------- Text-only page hero (Products, Privacy) ---------- */
.yx-hero--text .yx-hero__copy--narrow { max-width: 820px; margin-top: var(--space-12); }
.yx-hero--text { padding-bottom: var(--space-16); }
.yx-hero--text::before { -webkit-mask-image: radial-gradient(ellipse 70% 90% at 90% 20%, #000 20%, transparent 70%); mask-image: radial-gradient(ellipse 70% 90% at 90% 20%, #000 20%, transparent 70%); }

/* ---------- About: steps and 3-up values ---------- */
.yx-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-6); counter-reset: none; }
.yx-step { position: relative; display: flex; flex-direction: column; gap: var(--space-3); padding-top: var(--space-6); border-top: 2px solid var(--line); }
.yx-step::before { content: ""; position: absolute; top: -2px; left: 0; width: 48px; height: 2px; background: var(--turmeric); }
.yx-step__num { font: 400 40px/1 var(--font-display); color: var(--saffron-text); }
.yx-step p { color: var(--ink-muted); }
@media (max-width: 900px) { .yx-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-8) var(--space-6); } }
@media (max-width: 520px) { .yx-steps { grid-template-columns: 1fr; } }
@media (min-width: 901px) { .yx-features--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* ---------- Privacy policy ---------- */
.yx-legal__updated { font-size: 14px; color: var(--ink-muted); }
.yx-legal-wrap { padding-top: var(--space-12); }
.yx-legal-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: var(--space-16); align-items: start; }
.yx-legal__toc { position: sticky; top: calc(var(--header-height) + var(--space-6)); font-size: 14px; line-height: 20px; }
.yx-legal__toc-title { font: 600 12px/16px var(--font-sans); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-muted); margin-bottom: var(--space-3) !important; }
.yx-legal__toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; border-left: 1px solid var(--line); }
.yx-legal__toc a { display: block; padding: 6px 0 6px var(--space-4); margin-left: -1px; border-left: 2px solid transparent; color: var(--ink-muted); text-decoration: none; }
.yx-legal__toc a:hover { color: var(--roast); border-left-color: var(--turmeric); }
.yx-legal { max-width: 760px; min-width: 0; }
.yx-legal h2 { font: 400 30px/38px var(--font-display); margin: var(--space-12) 0 var(--space-4); scroll-margin-top: calc(var(--header-height) + var(--space-6)); }
.yx-legal h2:first-of-type { margin-top: var(--space-6); }
.yx-legal h3 { font: 600 18px/26px var(--font-sans); margin: var(--space-8) 0 var(--space-3); }
.yx-legal p, .yx-legal li { color: var(--ink-muted); }
.yx-legal p { margin: 0 0 var(--space-4); }
.yx-legal strong { color: var(--ink); font-weight: 600; }
.yx-legal ul { margin: 0 0 var(--space-4); padding-left: var(--space-6); display: grid; gap: var(--space-2); }
.yx-legal li::marker { color: var(--saffron-text); }
.yx-legal .yx-table-wrap { margin: var(--space-4) 0 var(--space-6); }
.yx-legal .yx-table td { font-family: var(--font-sans); }
.yx-legal .yx-table tbody th, .yx-legal .yx-table td:first-child { width: auto; }
.yx-legal__draft { padding: var(--space-4) var(--space-6); border: 1px dashed var(--saffron-text); border-radius: var(--radius-md); background: var(--turmeric-soft); margin-bottom: var(--space-8); }
.yx-legal__draft p { color: var(--ink); margin: 0; }
.yx-review { background: var(--turmeric-soft); color: var(--saffron-text); padding: 1px 6px; border-radius: var(--radius-xs); font: 600 13px/20px var(--font-sans); box-decoration-break: clone; -webkit-box-decoration-break: clone; }
@media (max-width: 900px) {
  .yx-legal-layout { grid-template-columns: 1fr; gap: var(--space-8); }
  .yx-legal__toc { position: static; padding: var(--space-4) var(--space-6); background: var(--surface-raised); border: 1px solid var(--line); border-radius: var(--radius-md); }
  .yx-legal__toc ol { border-left: 0; }
  .yx-legal__toc a { padding-left: 0; border-left: 0; }
}

/* Five product cards: 3 over 2 on desktop, 2+2+1 (last full width) on tablets, stacked on phones */
.yx-products--5 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.yx-products--5 > * { grid-column: span 2; }
.yx-products--5 > :nth-child(n + 4) { grid-column: span 3; }
.yx-products--5 > :nth-child(n + 4) .yx-product__img { aspect-ratio: 16 / 9; }
@media (max-width: 900px) {
  .yx-products--5 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .yx-products--5 > *, .yx-products--5 > :nth-child(n + 4) { grid-column: span 1; }
  .yx-products--5 > :last-child { grid-column: 1 / -1; }
}
@media (max-width: 560px) { .yx-products--5 { grid-template-columns: 1fr; } .yx-products--5 > :last-child { grid-column: auto; } }
