/* ==========================================================================
   HOUSE OF ELKI - GIFTING LANDING PAGE
   Look-and-feel build. Sections map 1:1 to future Next.js components
   (see README.md). Brand source: ELKI/brand + Deck v4 palette.
   ========================================================================== */

/* ---------- Fonts (local, woff2) ---------- */
@font-face { font-family: "Cormorant Garamond"; font-weight: 400; font-style: normal; font-display: swap; src: url("../fonts/CormorantGaramond-400.woff2") format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-weight: 500; font-style: normal; font-display: swap; src: url("../fonts/CormorantGaramond-500.woff2") format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-weight: 600; font-style: normal; font-display: swap; src: url("../fonts/CormorantGaramond-600.woff2") format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-weight: 400; font-style: italic; font-display: swap; src: url("../fonts/CormorantGaramond-400-Italic.woff2") format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-weight: 500; font-style: italic; font-display: swap; src: url("../fonts/CormorantGaramond-500-Italic.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 300; font-style: normal; font-display: swap; src: url("../fonts/Inter-300.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 400; font-style: normal; font-display: swap; src: url("../fonts/Inter-400.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 500; font-style: normal; font-display: swap; src: url("../fonts/Inter-500.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 600; font-style: normal; font-display: swap; src: url("../fonts/Inter-600.woff2") format("woff2"); }

/* ---------- Tokens ---------- */
:root {
  /* brand */
  --navy: #222F4D;
  --navy-tone: #2E3C5E;
  --navy-deep: color-mix(in srgb, var(--navy) 78%, #000);
  --paper: #F6F3F0;
  --ink: #F6F1E9;          /* text on navy, 11.8:1 */
  --soft: #C9C2B6;         /* secondary text on navy, 7.5:1 */
  --muted: #9DA2B2;        /* captions on navy, 5.3:1 */
  --quiet: #56627F;
  --terracotta: #AB3524;   /* buttons on paper, dots in the mark. Never text on navy */
  --terracotta-lift: #D8775C; /* icons / shapes on navy only */
  --gold: #D6A85A;         /* accents + text on navy, 6.1:1 */
  --ochre: #C99A4B;

  /* semantic (light ground) */
  --bg: var(--paper);
  --surface: color-mix(in srgb, var(--paper) 45%, #fff);
  --text: var(--navy);
  --text-muted: color-mix(in srgb, var(--navy) 74%, var(--paper));
  --hairline: color-mix(in srgb, var(--navy) 15%, transparent);

  /* type */
  --font-display: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-body: "Inter", "Helvetica Neue", Arial, sans-serif;

  /* shape + space (8px base) */
  --r-sm: 8px; --r-md: 16px; --r-lg: 28px; --r-pill: 999px;
  --gutter: clamp(16px, 4vw, 40px);
  --section: clamp(64px, 9vw, 120px);
  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  overflow-x: clip;
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--font-body); font-weight: 400; font-size: 1rem; line-height: 1.55;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.08; margin: 0; letter-spacing: -.005em; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 4px; }
.on-paper :focus-visible, .site-header :focus-visible { outline-color: var(--navy); }
.skip-link { position: absolute; left: 16px; top: -64px; z-index: 100; background: var(--navy); color: var(--ink); padding: 12px 20px; border-radius: var(--r-sm); transition: top .2s; }
.skip-link:focus { top: 12px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.container { width: min(1240px, 100% - 2 * var(--gutter)); margin-inline: auto; }
.icon { width: 1.25em; height: 1.25em; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* ---------- Shared bits ---------- */
.eyebrow {
  display: inline-block; font-size: .875rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase;
  color: var(--text-muted);
}
.on-navy .eyebrow { color: var(--gold); }

.h2 { font-size: clamp(2rem, 3.6vw, 3.1rem); }
.lead { font-size: 1.0625rem; font-weight: 300; line-height: 1.6; color: var(--text-muted); max-width: 52ch; }
.on-navy .lead { color: var(--soft); }
.section { padding-block: var(--section); }
.section-head { display: grid; gap: 16px; margin-bottom: clamp(32px, 4vw, 56px); }

.on-navy {
  position: relative; isolation: isolate; overflow: hidden;
  background-color: var(--navy); color: var(--ink);
  background-image: url("../img/fibre-paper.webp"); background-size: cover; background-position: center;   /* the deck's fibre-paper navy: still, quiet, crafted */
}
.on-navy::before, .on-navy::after { display: none !important; }   /* the old animated aurora is retired (too loud next to the deck) */
/* Animated background: moving blue gradient (aurora glows + a slow rotating sweep) over the logo-blue grain.
   Transforms only, so it stays on the GPU. Paused off-screen (main.js) and removed for reduced motion. */
.on-navy::before, .on-navy::after { content: ""; position: absolute; z-index: -1; pointer-events: none; will-change: transform; }
.on-navy::before {
  inset: -25% -15%;
  background:
    radial-gradient(40% 46% at 14% 24%, rgba(54, 84, 150, .46), transparent 70%),
    radial-gradient(36% 44% at 86% 18%, rgba(44, 72, 134, .42), transparent 70%),
    radial-gradient(34% 42% at 70% 86%, rgba(62, 92, 156, .28), transparent 70%),
    radial-gradient(28% 34% at 24% 88%, rgba(30, 48, 96, .62), transparent 70%);
  animation: aurora 22s ease-in-out infinite alternate;
}
/* slow rotating glows on top (off-centre soft ellipses: a conic sweep here left a visible pinch at its centre) */
.on-navy::after {
  inset: -38%;
  background:
    radial-gradient(30% 22% at 30% 35%, rgba(54, 84, 150, .20), transparent 70%),
    radial-gradient(26% 20% at 70% 62%, rgba(65, 58, 130, .18), transparent 70%),
    radial-gradient(24% 18% at 62% 28%, rgba(31, 85, 120, .16), transparent 70%);
  animation: sweep 48s linear infinite;
}
.on-navy.is-paused::before, .on-navy.is-paused::after { animation-play-state: paused; }
/* WebGL mesh gradient (assets/js/gradient.js): a canvas behind the content replaces the CSS aurora above,
   which stays as the fallback when WebGL is unavailable. */
.grad-canvas { position: absolute; inset: 0; z-index: -1; display: block; width: 100%; height: 100%; pointer-events: none; }
.gl-on .on-navy::before, .gl-on .on-navy::after { display: none; }
@keyframes sweep { to { transform: rotate(360deg); } }
@keyframes aurora {
  0%   { transform: translate3d(0, 0, 0) scale(1) rotate(0deg); }
  50%  { transform: translate3d(5%, -3%, 0) scale(1.12) rotate(3deg); }
  100% { transform: translate3d(-5%, 4%, 0) scale(1.06) rotate(-3deg); }
}

/* buttons: one primary per view. terracotta on paper, gold on navy */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 26px; border-radius: var(--r-sm); border: 1px solid transparent;
  font-size: .9375rem; font-weight: 500; letter-spacing: .01em; line-height: 1.25; text-align: center;
  transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease);
}
.btn .icon { width: 1.1em; height: 1.1em; transition: transform .2s var(--ease); }
.btn:hover .icon { transform: translateX(3px); }
.btn--primary { background: var(--terracotta); color: var(--paper); }
.btn--primary:hover { background: color-mix(in srgb, var(--terracotta) 86%, #000); }
.btn--gold { background: var(--gold); color: var(--navy); }
.btn--gold:hover { background: color-mix(in srgb, var(--gold) 88%, #fff); }
.btn--ghost { border-color: currentColor; background: transparent; }
.btn--outline { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn--outline:hover { background: var(--navy); color: var(--paper); }
.btn--sm { min-height: 40px; padding: 0 18px; font-size: .875rem; }
.btn--ghost:hover { background: color-mix(in srgb, currentColor 10%, transparent); }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; font-size: .9375rem; min-height: 44px; border-bottom: 1px solid transparent; }
.link-arrow .icon { width: 1.05em; height: 1.05em; transition: transform .2s var(--ease); }
.link-arrow:hover .icon { transform: translateX(4px); }
/* minimum-order note shown wherever prices appear (MOQ lives in assets/data/products.js as ELKI.moq) */
.moq-note { font-size: .8125rem; line-height: 1.5; color: var(--text-muted); }
.on-navy .moq-note { color: var(--muted); }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: var(--r-pill); font-size: .75rem; font-weight: 500; letter-spacing: .03em; background: var(--gold); color: var(--navy); }
.chip .icon { width: 14px; height: 14px; }

/* gentle reveal: opacity + 12px rise. Disabled for reduced motion; content shows without JS */
.js [data-reveal] { opacity: 0; transform: translateY(12px); transition: opacity .55s var(--ease), transform .55s var(--ease); transition-delay: var(--d, 0ms); }
.js [data-reveal].in { opacity: 1; transform: none; }

/* ---------- Announcement bar ---------- */
.announce { background: var(--navy-deep); color: var(--soft); font-size: .8125rem; text-align: center; padding: 10px var(--gutter); letter-spacing: .02em; }
.announce strong { color: var(--gold); font-weight: 500; }



/* ---------- Header ---------- */
.container--wide { width: min(1400px, 100% - 2 * var(--gutter)); margin-inline: auto; }
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--paper) 94%, transparent);
  -webkit-backdrop-filter: saturate(1.2) blur(12px); backdrop-filter: saturate(1.2) blur(12px);
  border-bottom: 1px solid var(--hairline); transition: box-shadow .25s var(--ease);
}
.site-header.is-scrolled { box-shadow: 0 6px 24px -12px rgba(34, 47, 77, .28); }
.header-inner { display: flex; align-items: center; gap: 20px; height: 76px; transition: height .25s var(--ease); }
.is-scrolled .header-inner { height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 12px; flex: none; min-height: 44px; }
.brand img:first-child { width: 38px; height: auto; }
.brand img:last-child { height: 24px; width: auto; }
.site-nav { flex: 1; min-width: 0; }
.nav-list { display: flex; align-items: center; justify-content: center; gap: clamp(14px, 1.5vw, 26px); }
.nav-link { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font-size: .8125rem; font-weight: 500; letter-spacing: .01em; white-space: nowrap; position: relative; background: none; border: 0; padding: 0; }
.nav-link .icon { width: 14px; height: 14px; transition: transform .2s var(--ease); }
.nav-link::after { content: ""; position: absolute; left: 0; right: 0; bottom: 6px; height: 2px; background: var(--terracotta); transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease); }
.nav-link:hover::after, .nav-link[aria-current="page"]::after, .has-menu:focus-within > .nav-link::after, .has-menu:hover > .nav-link::after { transform: scaleX(1); }
.has-menu { position: static; }
.mega {
  position: absolute; left: 0; right: 0; top: 100%; background: var(--paper); border-bottom: 1px solid var(--hairline);
  box-shadow: 0 24px 40px -24px rgba(34, 47, 77, .35);
  opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity .2s var(--ease), transform .2s var(--ease), visibility .2s;
}
.has-menu:hover > .mega, .has-menu:focus-within > .mega { opacity: 1; visibility: visible; transform: none; }
.has-menu:hover > .nav-link .icon, .has-menu:focus-within > .nav-link .icon { transform: rotate(180deg); }
.mega-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; padding-block: 24px 28px; }
.mega-foot { display: flex; justify-content: flex-end; padding-block: 0 18px; margin-top: -8px; }
.mega-foot .link-arrow { min-height: 40px; color: var(--navy); border-bottom-color: var(--ochre); }
.mega-card { display: grid; grid-template-columns: 64px 1fr; gap: 14px; align-items: center; padding: 12px; border-radius: var(--r-md); transition: background-color .2s var(--ease); }
.mega-card:hover { background: color-mix(in srgb, var(--gold) 16%, transparent); }
.mega-card img { width: 64px; height: 64px; border-radius: 12px; object-fit: cover; }
.mega-card b { display: block; font-family: var(--font-display); font-size: 1.25rem; font-weight: 600; line-height: 1.1; }
.mega-card small { display: block; font-size: .8125rem; color: var(--text-muted); margin-top: 3px; line-height: 1.35; }
.price-badge { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 12px; background: var(--navy); color: var(--gold); font-family: var(--font-display); font-weight: 600; font-size: 1.0625rem; font-variant-numeric: lining-nums; }
.header-actions { display: flex; align-items: center; gap: 2px; margin-left: auto; flex: none; }
.icon-btn { position: relative; display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 0; background: none; transition: background-color .2s var(--ease); }
.icon-btn:hover { background: color-mix(in srgb, var(--navy) 8%, transparent); }
.icon-btn .icon { width: 22px; height: 22px; }
.cart-count { position: absolute; top: 5px; right: 3px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--terracotta); color: var(--paper); font-size: .75rem; font-weight: 600; display: grid; place-items: center; line-height: 1; }
.enq-btn { margin-left: 10px; gap: 8px; white-space: nowrap; position: relative; }
.enq-btn .icon { width: 18px; height: 18px; }
.enq-count { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--terracotta); color: var(--paper); font-size: .75rem; font-weight: 600; display: inline-grid; place-items: center; line-height: 1; }
.enq-count[hidden] { display: none; }
.enq-long { display: none; }
@media (min-width: 1440px) { .enq-long { display: inline; } }
.menu-toggle { display: none; }



/* ---------- Search field (homepage quick-add + Design a Box picker) ---------- */
.pick-label { display: block; margin-bottom: 8px; font-size: .75rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--text-muted); }
.pick-field { display: flex; align-items: center; gap: 4px; min-height: 52px; padding: 0 6px 0 14px; border-radius: 12px; border: 1.5px solid color-mix(in srgb, var(--navy) 30%, transparent); background: var(--paper); transition: border-color .2s var(--ease), box-shadow .2s var(--ease); }
.pick-field:focus-within { border-color: var(--navy); box-shadow: 0 0 0 3px rgba(214, 168, 90, .45); }
.pick-field .icon { width: 20px; height: 20px; color: var(--text-muted); margin-right: 6px; }
.pick-field input { flex: 1; min-width: 0; min-height: 48px; border: 0; outline: 0; background: transparent; font: inherit; font-size: 1rem; color: var(--navy); -webkit-appearance: none; appearance: none; }
.pick-field input::placeholder { color: var(--text-muted); opacity: 1; }
.pick-field input::-webkit-search-cancel-button { display: none; }
.pick-field .clear { display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 50%; background: none; color: var(--text-muted); }
.pick-field .clear:hover { background: color-mix(in srgb, var(--navy) 8%, transparent); color: var(--navy); }
.pick-field .clear[hidden] { display: none; }

/* ---------- Motion layer (assets/js/motion.js) ---------- */
.scroll-progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 70; transform: scaleX(0); transform-origin: 0 50%; background: linear-gradient(90deg, var(--gold), var(--terracotta-lift)); pointer-events: none; }
.fly-ghost { position: fixed; z-index: 80; border-radius: 14px; background: var(--paper) center / cover no-repeat; box-shadow: 0 10px 24px -8px rgba(34, 47, 77, .5); pointer-events: none; will-change: transform, opacity; }
/* press feedback for touch and mouse */
.btn:active, .icon-btn:active, .fchip:active, .filter:active, .pop:active, .ctrl:active { transform: scale(.97); }

/* ---------- Toast ---------- */
.toast { position: fixed; left: 50%; bottom: 28px; z-index: 60; display: flex; align-items: center; gap: 18px; max-width: min(92vw, 520px); padding: 14px 20px; border-radius: 12px; background: var(--navy); color: var(--ink); font-size: .9375rem; box-shadow: 0 24px 40px -18px rgba(0, 0, 0, .5); opacity: 0; pointer-events: none; transform: translate(-50%, 14px); transition: opacity .25s var(--ease), transform .25s var(--ease); }
.toast.show { opacity: 1; pointer-events: auto; transform: translate(-50%, 0); }
.toast a { flex: none; color: var(--gold); font-weight: 500; text-decoration: underline; text-underline-offset: 3px; min-height: 44px; display: inline-flex; align-items: center; }
.toast a[hidden] { display: none; }


/* ---------- Product cards + carousel ---------- */
/* ---------- Featured gifts carousel ---------- */
.carousel-ctrl { display: flex; gap: 10px; margin-top: 8px; }
.ctrl { width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--navy); background: transparent; display: grid; place-items: center; transition: background-color .2s var(--ease), color .2s var(--ease), opacity .2s; }
.ctrl:hover:not(:disabled) { background: var(--navy); color: var(--paper); }
.ctrl:disabled { opacity: .35; cursor: default; }
.ctrl .icon { width: 20px; height: 20px; }
.track { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 3 * 20px) / 3.35); gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: 0; padding-bottom: 8px; scrollbar-width: none; overscroll-behavior-x: contain; }
.track::-webkit-scrollbar { display: none; }
.card { scroll-snap-align: start; display: grid; gap: 14px; align-content: start; }
.card[hidden] { display: none; }
.card-media { position: relative; aspect-ratio: 1 / 1; border-radius: var(--r-md); overflow: hidden; background: color-mix(in srgb, var(--navy) 8%, var(--paper)); }
.card-media > a { position: absolute; inset: 0; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease), opacity .3s var(--ease); }
.card:hover .card-media img { transform: scale(1.035); }
.card-media .chip { position: absolute; left: 12px; top: 12px; }
.wish { position: absolute; right: 10px; top: 10px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(246, 243, 240, .92); display: grid; place-items: center; z-index: 2; transition: transform .2s var(--ease); }
.wish:hover { transform: scale(1.06); }
.wish .icon { width: 20px; height: 20px; }
.wish[aria-pressed="true"] { color: var(--terracotta); }
.wish[aria-pressed="true"] .icon { fill: currentColor; }
.card h3 { font-size: 1.5rem; line-height: 1.1; }
.card h3 a:hover { color: var(--terracotta); }
.card-origin { font-size: .8125rem; color: var(--text-muted); margin-top: 4px; }
.card-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.price { font-size: 1.0625rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.price small { font-weight: 400; font-size: .75rem; color: var(--text-muted); margin-right: 4px; }
.swatches { display: flex; gap: 6px; align-items: center; }
.swatch { width: 28px; height: 28px; border-radius: 50%; padding: 0; border: 1px solid var(--hairline); background: var(--c); position: relative; }
.swatch::after { content: ""; position: absolute; inset: -5px; border-radius: 50%; border: 1.5px solid transparent; transition: border-color .2s; }
.swatch[aria-checked="true"]::after { border-color: var(--navy); }
.swatch:hover::after { border-color: color-mix(in srgb, var(--navy) 45%, transparent); }
.variant-label { font-size: .75rem; color: var(--text-muted); min-height: 1.2em; }

/* ---------- Four crafts, one box ---------- */
.range-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.craft { display: grid; gap: 14px; align-content: start; }
.craft-media { position: relative; aspect-ratio: 4 / 5; border-radius: var(--r-md); overflow: hidden; background: var(--navy-tone); }
.craft-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.craft:hover .craft-media img { transform: scale(1.035); }
/* each cluster's motif as a short row under its piece, as on the deck's range slide (assets/motifs/row-*.svg) */
.craft-motif { display: block; width: 72%; height: 16px; margin-top: -2px; background-repeat: space no-repeat; background-position: left center; background-size: auto 14px; }
.craft-motif--zigzag { background-image: url("../motifs/row-zigzag.svg"); }
.craft-motif--coil { background-image: url("../motifs/row-coil.svg"); background-size: auto 16px; }
.craft-motif--dots { background-image: url("../motifs/row-dots.svg"); background-size: auto 13px; }
.craft-motif--hills { background-image: url("../motifs/row-hills.svg"); background-size: auto 13px; }
.craft small { display: block; font-size: .75rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
.craft h3 { font-size: 1.625rem; color: var(--ink); margin-top: 4px; }
.craft p { font-size: .875rem; color: var(--muted); }

/* ---------- The Elki way ---------- */
.passport {
  position: absolute; right: -16px; bottom: 0; width: min(300px, 78%); padding: 18px 20px; border-radius: var(--r-md);
  background: var(--navy); color: var(--ink); box-shadow: 0 30px 50px -24px rgba(34, 47, 77, .65);
  display: grid; grid-template-columns: 1fr 72px; gap: 8px 14px; align-items: start;
}
.passport small { font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); font-weight: 500; grid-column: 1 / -1; }
.passport dl { margin: 0; display: grid; gap: 4px; font-size: .75rem; }
.passport dt { color: var(--muted); display: inline; }
.passport dd { margin: 0; display: inline; color: var(--ink); }
.passport .qr { width: 72px; height: 72px; padding: 8px; border-radius: 10px; background: var(--paper); color: var(--navy); display: grid; place-items: center; }
.passport .qr .icon { width: 100%; height: 100%; stroke-width: 1.5; }
.passport em { grid-column: 1 / -1; font-style: normal; font-size: .75rem; color: var(--muted); }

/* ---------- Ornament dividers: a Kapdaganda running stitch, as in the deck (assets/motifs/stitch-*.svg) ---------- */
.ornament { width: min(240px, 60%); height: 6px; margin: var(--section) auto 0; background-repeat: repeat-x; background-position: center; background-size: auto 6px; opacity: .55; }
.ornament + .section { padding-top: clamp(40px, 5vw, 72px); }
.ornament--arch-gold { background-image: url("../motifs/stitch-gold.svg"); margin: 0 auto clamp(36px, 4.5vw, 64px); opacity: .7; }
.ornament--leaf, .ornament--arch { background-image: url("../motifs/stitch-navy.svg"); }


/* ---------- Footer ---------- */
.site-footer { background: var(--navy) url("../img/fibre-paper.webp") center / cover; color: var(--soft); position: relative; }
/* border band: the deck's Dhokra mat band (weft bands, Kusiyaarpurni zigzag, warp threads) on the fibre-paper navy */
.ribbon, .ribbon--hero { height: 40px; background: url("../motifs/dhokra-band.svg") repeat-x left center / auto 40px, var(--navy) url("../img/fibre-paper.webp") center / cover; }
.thanks { display: none; align-items: center; gap: 20px; flex: 1 1 280px; min-width: 0; max-width: 520px; }
.thanks.show { display: flex; }
.thanks img { width: 130px; height: auto; flex: none; }
.thanks b { display: block; font-family: var(--font-display); font-size: 1.5rem; font-weight: 600; color: var(--ink); line-height: 1.1; }
.thanks span { font-size: .9375rem; color: var(--soft); }
.credit { font-size: .75rem; color: var(--muted); }
.credit a { text-decoration: underline; text-underline-offset: 3px; }
.footer-top { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 40px; padding-block: 64px 48px; }
.footer-brand img { width: 180px; height: auto; }
.footer-brand p { margin-top: 20px; max-width: 30ch; font-size: .9375rem; line-height: 1.6; }
.footer-col h3 { font-family: var(--font-body); font-size: .75rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); margin-bottom: 14px; }
.footer-col a { display: block; padding: 6px 0; font-size: .9375rem; color: var(--soft); transition: color .2s; }
.footer-col a:hover { color: var(--ink); }
.subscribe { display: flex; gap: 10px; flex-wrap: wrap; padding-block: 32px; border-top: 1px solid rgba(246, 241, 233, .14); align-items: center; justify-content: space-between; }
.subscribe h3 { font-size: 1.5rem; color: var(--ink); }
.subscribe form { display: flex; gap: 10px; flex: 1 1 280px; min-width: 0; max-width: 480px; }
.subscribe input { flex: 1; min-width: 0; min-height: 48px; padding: 0 16px; border-radius: var(--r-sm); border: 1px solid rgba(246, 241, 233, .3); background: transparent; color: var(--ink); font: inherit; font-size: .9375rem; }
.subscribe input::placeholder { color: var(--muted); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; padding-block: 24px 32px; border-top: 1px solid rgba(246, 241, 233, .14); font-size: .8125rem; color: var(--muted); }
.footer-bottom nav { display: flex; gap: 8px 24px; flex-wrap: wrap; }
.footer-bottom nav a { display: inline-flex; align-items: center; min-height: 32px; }
.footer-bottom a:hover { color: var(--ink); }
.socials { display: flex; gap: 6px; }
.socials a { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(246, 241, 233, .25); color: var(--soft); transition: color .2s, border-color .2s; }
.socials a:hover { color: var(--ink); border-color: var(--gold); }
.socials .icon { width: 18px; height: 18px; }



/* ==========================================================================
   Responsive (shared)
   ========================================================================== */
@media (max-width: 1339px) {
  .menu-toggle { display: inline-grid; }
  .header-inner { gap: 8px; }
  .site-nav { position: fixed; inset: 0 0 0 0; top: var(--nav-top, 76px); background: var(--paper); padding: 8px var(--gutter) 40px; overflow-y: auto; transform: translateX(100%); visibility: hidden; transition: transform .3s var(--ease), visibility .3s; }
  .site-nav.is-open { transform: none; visibility: visible; }
  .site-header { -webkit-backdrop-filter: none; backdrop-filter: none; background: var(--paper); }
  .nav-list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-list > li { border-bottom: 1px solid var(--hairline); }
  .nav-link { width: 100%; min-height: 56px; font-size: 1.0625rem; justify-content: space-between; }
  .nav-link::after { display: none; }
  .mega { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; background: none; }
  .has-menu .nav-link .icon { display: none; }
  .mega-grid { grid-template-columns: 1fr; gap: 0; padding-block: 0 14px; }
  .mega-card { grid-template-columns: 48px 1fr; padding: 8px 0; }
  .mega-foot { justify-content: flex-start; padding-bottom: 14px; margin-top: 0; }
  .mega-card img, .price-badge { width: 48px; height: 48px; font-size: .875rem; }
  .mega-card b { font-size: 1.125rem; }
  .mega-card:hover { background: none; }
}
@media (max-width: 1199px) {
  .track { grid-auto-columns: calc((100% - 2 * 20px) / 3.15); }
  .footer-top { grid-template-columns: 1fr 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 1023px) {
  .range-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 767px) {
  .on-navy::after { display: none; }
  .track { grid-auto-columns: 62%; margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); scroll-padding-inline: var(--gutter); }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 32px 24px; padding-block: 48px 32px; }
}
@media (max-width: 599px) {
  .announce { font-size: .75rem; }
  .announce-more { display: none; }
  .brand img:last-child { height: 20px; }
  .brand img:first-child { width: 32px; }
  .icon-btn { width: 40px; height: 40px; }
  .header-actions { gap: 0; }
  .hide-sm { display: none; }
  .enq-btn { width: 40px; height: 40px; padding: 0; margin-left: 2px; border-radius: 50%; justify-content: center; }
  .enq-text { display: none; }
  .enq-count { position: absolute; top: -5px; right: -5px; }
  .range-grid { gap: 14px; }
  .craft h3 { font-size: 1.375rem; }
  .footer-bottom { flex-direction: column; }
  .thanks img { width: 96px; }
}


/* ---------- Reduced motion: no transitions, no reveals ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
  .on-navy::before, .on-navy::after { animation: none !important; }
  .card:hover .card-media img, .craft:hover .craft-media img { transform: none; }
  .btn:active, .icon-btn:active, .fchip:active, .filter:active, .pop:active, .ctrl:active { transform: none; }
  .scroll-progress { transition: none; }
}

/* ---------- Enquiry Box drawer (assets/js/box-drawer.js): a cart-style panel from the right ---------- */
html.drawer-open { overflow: hidden; }
.drawer { position: fixed; inset: 0; z-index: 90; }
.drawer-backdrop { position: absolute; inset: 0; background: rgba(17, 26, 49, .45); opacity: 0; transition: opacity .26s var(--ease); }
.drawer-panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(440px, 100%); display: grid; grid-template-rows: auto 1fr auto; background: var(--paper); color: var(--navy); box-shadow: -24px 0 60px -20px rgba(17, 26, 49, .45); transform: translateX(100%); transition: transform .26s var(--ease); outline: none; }
.drawer.is-open .drawer-backdrop { opacity: 1; }
.drawer.is-open .drawer-panel { transform: none; }
.drawer-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 22px 24px 16px; border-bottom: 1px solid var(--hairline); }
.drawer-head h2 { font-size: 1.75rem; }
.drawer-sub { margin-top: 2px; font-size: .8125rem; color: var(--text-muted); }
.drawer-close { display: grid; place-items: center; width: 44px; height: 44px; margin: -6px -10px 0 0; border: 0; border-radius: 50%; background: none; color: var(--navy); }
.drawer-close:hover { background: color-mix(in srgb, var(--navy) 8%, transparent); }
.drawer-body { overflow-y: auto; overscroll-behavior: contain; padding: 14px 24px 8px; }
.drawer-note { font-size: .8125rem; color: var(--text-muted); padding-bottom: 6px; }
.drawer-list { display: grid; }
.drawer-item { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--hairline); }
.drawer-thumb img { width: 72px; height: 72px; border-radius: 10px; object-fit: cover; background: color-mix(in srgb, var(--navy) 8%, var(--paper)); }
.drawer-info { display: grid; gap: 4px; min-width: 0; }
.drawer-name { font-family: var(--font-display); font-size: 1.1875rem; font-weight: 600; line-height: 1.2; }
.drawer-name:hover { text-decoration: underline; text-underline-offset: 3px; }
.drawer-meta { display: flex; align-items: center; gap: 6px; font-size: .8125rem; color: var(--text-muted); }
.drawer-swatch { width: 12px; height: 12px; border-radius: 50%; border: 1px solid var(--hairline); flex: none; }
.drawer-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 6px; }
.drawer-qty { display: inline-flex; align-items: center; height: 40px; border: 1px solid color-mix(in srgb, var(--navy) 28%, transparent); border-radius: var(--r-sm); background: #fff; }
.drawer-qty button { display: grid; place-items: center; width: 40px; height: 100%; border: 0; background: none; color: var(--navy); }
.drawer-qty button:disabled { opacity: .35; cursor: not-allowed; }
.drawer-qty .icon { width: 16px; height: 16px; }
.drawer-qty > span { min-width: 28px; text-align: center; font-weight: 600; font-variant-numeric: tabular-nums; }
.drawer-price { text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; }
.drawer-price small { display: block; font-weight: 400; font-size: .75rem; color: var(--text-muted); }
.drawer-remove { justify-self: start; display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0; border: 0; background: none; font-size: .8125rem; color: var(--text-muted); text-decoration: underline; text-underline-offset: 3px; }
.drawer-remove .icon { width: 15px; height: 15px; }
.drawer-remove:hover { color: var(--terracotta); }
.drawer-empty { display: grid; justify-items: center; gap: 12px; padding: 48px 8px; text-align: center; }
.drawer-empty-ico { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: color-mix(in srgb, var(--navy) 8%, var(--paper)); color: var(--navy); }
.drawer-empty-ico .icon { width: 28px; height: 28px; }
.drawer-empty h3 { font-size: 1.5rem; }
.drawer-empty p { color: var(--text-muted); font-size: .9375rem; }
.drawer-foot { display: grid; gap: 12px; padding: 16px 24px 22px; border-top: 1px solid var(--hairline); background: #fff; }
.drawer-total { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.drawer-total span { font-size: .875rem; color: var(--text-muted); }
.drawer-total b { font-family: var(--font-display); font-size: 1.75rem; font-weight: 600; }
.drawer-moq { font-size: .8125rem; color: var(--text-muted); }
.drawer-moq b { color: var(--navy); }
.drawer-go { width: 100%; }
.drawer-links { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.drawer-links .link-arrow { font-size: .875rem; }
.drawer-clear { min-height: 44px; padding: 0; border: 0; background: none; font-size: .8125rem; color: var(--text-muted); text-decoration: underline; text-underline-offset: 3px; }
.drawer-clear.is-armed { color: var(--terracotta); font-weight: 600; }
.drawer-fine { font-size: .75rem; color: var(--text-muted); }
@media (prefers-reduced-motion: reduce) { .drawer-panel, .drawer-backdrop { transition: none; } }
.drawer-open .toast { z-index: 95; }
.drawer-total small { font-size: .75rem; }
.drawer-qty small { font-weight: 400; font-size: .75rem; color: var(--text-muted); }
.drawer-qty > span { padding-inline: 4px; }
.drawer-fine a { color: var(--navy); font-weight: 500; text-decoration: underline; text-underline-offset: 3px; }
.drawer-go .icon { width: 1em; height: 1em; }

/* ---- Touch targets (UI/UX pass, Nov 2026): on touch devices every primary control gets a 44px hit area.
        Desktop sizes are unchanged. ---- */
@media (pointer: coarse) {
  .icon-btn, .enq-btn { width: 44px; height: 44px; }
  .btn--sm { min-height: 44px; }
  .footer-col a { padding-block: 12px; }
  .footer-bottom nav a { min-height: 44px; }
  .drawer-qty { height: 44px; }
  .drawer-qty button { width: 44px; }
  .drawer-remove { min-height: 44px; }
}

/* Narrow phones (360px): keep the logo plus four 44px header buttons inside the 16px gutters */
@media (max-width: 380px) {
  .brand { gap: 8px; }
  .brand img:first-child { width: 28px; }
  .brand img:last-child { height: 18px; }
  .enq-btn { margin-left: 0; }
}

/* 320px phones: compact header (44px targets do not fit beside the logo here) */
@media (max-width: 340px) {
  .brand { gap: 6px; }
  .brand img:first-child { width: 24px; }
  .brand img:last-child { height: 16px; }
  .icon-btn, .enq-btn { width: 38px; height: 38px; }
}

/* Unstyled <small> would shrink to ~11.7px (browser default); keep a 12px floor. Classed rules above still win. */
small { font-size: .75rem; }
