/* ============================================================
   SinghAaval Heritage  —  COMPONENT STYLES  (machinery)
   ------------------------------------------------------------
   Styles the pieces render.js builds, using only theme.css
   tokens. To change the look, edit theme.css, not this file.
   Mobile-first: base rules are for phones; the @media blocks
   near the bottom enhance larger screens.
   ============================================================ */


/* ---- reset & base ---- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }


body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-background);
  line-height: 1.75;                       /* airy body = considered */
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}


img { max-width: 100%; display: block; }


a { color: var(--color-primary); text-decoration: none; transition: color var(--t-fast); }
a:hover { color: var(--color-gold-dark); }


h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--color-primary);
  line-height: 1.12;
  margin: 0 0 var(--space-md);
  font-weight: 600;
  letter-spacing: -0.01em;
}


p { margin: 0 0 var(--space-md); }


/* content widths */
.container {
  width: 100%;
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 0 var(--space-md);
}
.container-wide { max-width: var(--max-width); }


.text-center { text-align: center; }


/* tracked uppercase eyebrow / label */
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--color-gold-dark);
  margin: 0 0 var(--space-md);
}


/* section heading + the 1.5x gap to body */
.section-heading {
  font-size: clamp(1.9rem, 4.5vw, 3rem);
  margin-bottom: var(--space-lg);
}


/* ============================================================
   MOTION  —  scroll reveal + staggered entrance
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity var(--t-in), transform var(--t-in);
  transition-delay: var(--reveal-delay, 0ms);
}
.reveal.is-visible { opacity: 1; transform: none; }


@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}


/* ============================================================
   BUTTONS  —  outline by default; gold fill only for primary CTA
   ============================================================ */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  padding: 0.85rem 1.8rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--color-primary);
  color: var(--color-primary);
  background: transparent;
  cursor: pointer;
  transition: color var(--t-fast), border-color var(--t-fast),
              background var(--t-fast), transform var(--t-fast);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
@media (prefers-reduced-motion: reduce) { .btn:hover, .btn:active { transform: none; } }


/* clear keyboard focus ring everywhere */
:focus-visible { outline: 2px solid var(--color-gold); outline-offset: 3px; border-radius: var(--radius-sm); }
.product-card:focus-visible { outline-offset: 4px; }


/* primary CTA: the one filled, gold button */
.btn-primary {
  background: var(--color-gold);
  border-color: var(--color-gold);
  color: var(--color-primary);
}
.btn-primary:hover { background: var(--color-gold-dark); border-color: var(--color-gold-dark); color: var(--color-primary); }


/* ghost: outline with a slow border/colour glow to gold */
.btn-ghost { background: transparent; }
.btn-ghost:hover { border-color: var(--color-gold-dark); color: var(--color-gold-dark); }


.btn-gold { background: var(--color-gold); border-color: var(--color-gold); color: var(--color-primary); }
.btn-gold:hover { background: var(--color-gold-dark); border-color: var(--color-gold-dark); color: var(--color-primary); }


/* on dark sections, outline buttons switch to light ink */
.bg-navy .btn, .bg-image .btn, .hero .btn-ghost {
  border-color: var(--border-on-dark);
  color: var(--color-text-light);
}
.bg-navy .btn:hover, .bg-image .btn:hover, .hero .btn-ghost:hover {
  border-color: var(--color-gold); color: var(--color-gold);
}
.bg-navy .btn-primary, .hero .btn-primary {
  background: var(--color-gold); border-color: var(--color-gold); color: var(--color-primary);
}


/* ============================================================
   HEADER + NAV
   ============================================================ */
[data-site-header] {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(247, 242, 232, 0.82);
  -webkit-backdrop-filter: saturate(130%) blur(6px);   /* Safari / iOS glass; light blur = scroll-smooth on low-end */
  backdrop-filter: saturate(130%) blur(6px);
  border-bottom: 1px solid var(--border-on-light);
}
[data-site-header] .container { max-width: var(--max-width); }
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.55rem 0;
}
.logo { display: flex; align-items: center; gap: 0.7rem; }
.logo-img { width: 48px; height: 48px; border-radius: var(--radius-full); object-fit: cover; }
.logo-text { display: flex; flex-direction: column; line-height: 1.08; }
.logo-title { font-family: var(--font-display); font-weight: 700; font-size: 1.3rem; color: var(--color-primary); }
.logo-subtitle { font-family: var(--font-accent); font-style: italic; font-size: 0.82rem; color: var(--color-gold-dark); }


.nav { display: none; align-items: center; gap: var(--space-md); }
.nav-link {
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text);
  padding-bottom: 3px;
  border-bottom: 1px solid transparent;
}
.nav .btn { padding: 0.5rem 1.2rem; font-size: 0.74rem; }
.cta-count { margin-left: 0.4em; font-variant-numeric: tabular-nums; }
.cta-count[hidden] { display: none; }
.nav-link:hover { color: var(--color-primary); }
.nav-link.active { color: var(--color-primary); border-bottom-color: var(--color-gold); }


.mobile-toggle {
  display: inline-flex;
  background: transparent; border: 0; cursor: pointer;
  color: var(--color-primary); padding: var(--space-xs);
}
.mobile-menu {
  display: none;
  flex-direction: column;
  gap: var(--space-xs);
  padding: var(--space-sm) var(--space-md) var(--space-md);
  background: var(--color-surface);
  border-top: 1px solid var(--border-on-light);
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  font-weight: 600; letter-spacing: 0.04em;
  color: var(--color-text);
  min-height: 44px; display: flex; align-items: center;   /* comfortable touch target */
  padding: var(--space-xs) 0;
  border-bottom: 1px solid var(--border-on-light);
}


/* ============================================================
   SECTIONS + BACKGROUNDS
   ============================================================ */
.section { padding: var(--space-section) 0; }


.bg-cream { background: var(--color-muted); }
.bg-navy  { background: var(--color-primary); color: var(--color-text-light); }
.bg-gold  { background: var(--color-gold); color: var(--color-primary); }
.bg-navy h1, .bg-navy h2, .bg-navy h3, .bg-navy h4 { color: var(--color-text-light); }
.bg-navy .eyebrow { color: var(--color-gold-soft); }


.bg-image {
  position: relative;
  background-size: cover; background-position: center;
  color: var(--color-text-light);
}
.bg-image::before { content: ""; position: absolute; inset: 0; background: rgba(14, 23, 48, 0.7); }
.bg-image .container { position: relative; z-index: 1; }
.bg-image h1, .bg-image h2, .bg-image h3, .bg-image h4 { color: var(--color-text-light); }


.prose { max-width: 64ch; margin: 0 auto; font-size: 1.075rem; color: var(--color-text-muted); }
.prose .section-heading { color: var(--color-primary); }


/* ============================================================
   HERO  —  dark editorial split, oversized headline
   ============================================================ */
.hero {
  background: var(--color-primary);
  color: var(--color-text-light);
}
.hero h1, .hero .eyebrow { color: var(--color-text-light); }
.hero .eyebrow { color: var(--color-gold-soft); }
.hero-inner { display: flex; flex-direction: column; align-items: center; text-align: center; }
.hero-copy { width: 100%; max-width: 60ch; }
.hero-heading {
  font-size: clamp(2.6rem, 8vw, 5.5rem);   /* uncomfortably large = editorial */
  line-height: 1.04;
  margin: 0 auto var(--space-lg);
  max-width: 18ch;                          /* wrap the big words nicely */
  overflow-wrap: anywhere;                  /* a long unbreakable word can't overflow the band */
}
.hero-text { font-size: 1.15rem; line-height: 1.7; color: rgba(244, 239, 228, 0.82); max-width: 52ch; margin: 0 auto; }
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--space-sm); margin-top: var(--space-xl); justify-content: center; }
.hero-actions .btn { padding: 1rem 2rem; font-size: 0.95rem; }


/* HOOK: a needle stitches the gold line in beneath the hero headline on load */
.hero-stitch { position: relative; width: 220px; height: 14px; margin: var(--space-md) auto 0; }
.hero-stitch-line {
  position: absolute; top: 6px; left: 0; height: 2px; width: 0;
  background: repeating-linear-gradient(90deg, var(--color-gold) 0 9px, transparent 9px 16px);
  animation: hero-draw 1.6s var(--ease-out) 0.35s forwards;
}
.hero-needle { position: absolute; top: 0; left: 0; width: 16px; height: 14px; animation: hero-run 1.6s var(--ease-out) 0.35s forwards; }
.hero-needle::before {
  content: ""; position: absolute; top: 6px; left: 0; width: 16px; height: 2px;
  background: var(--color-gold-soft); transform: rotate(-22deg); transform-origin: left center;
}
.hero-needle::after { content: ""; position: absolute; top: 3px; left: 13px; width: 4px; height: 4px; border-radius: var(--radius-full); background: #fff; }
@keyframes hero-draw { from { width: 0; } to { width: 220px; } }
@keyframes hero-run { from { transform: translateX(0); } to { transform: translateX(206px); } }
@media (prefers-reduced-motion: reduce) {
  .hero-stitch-line { width: 220px; animation: none; }
  .hero-needle { display: none; }
}


/* ============================================================
   CATEGORY TILES  (shop by category)
   ============================================================ */
.category-grid { display: grid; grid-template-columns: 1fr; gap: var(--space-md); margin-top: var(--space-xl); }
.category-tile {
  position: relative; display: block; overflow: hidden;
  border-radius: var(--radius-lg); aspect-ratio: 3 / 2;   /* smaller, wider tile */
}
/* each tile quietly cross-fades through its category's product photos */
.cat-slides { position: absolute; inset: 0; }
.cat-slide {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transition: opacity 1s var(--ease-out), transform 0.7s var(--ease-out);
}
.cat-slide.active { opacity: 1; }
.category-tile:hover .cat-slide { transform: scale(1.05); }
.category-tile::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(14, 23, 48, 0.62), rgba(14, 23, 48, 0) 60%);
}
.category-tile-label {
  position: absolute; z-index: 2; left: var(--space-lg); bottom: var(--space-lg);
  color: var(--color-text-light); font-family: var(--font-display);
  font-size: clamp(1.3rem, 2.6vw, 1.8rem); line-height: 1.1;
}
/* stitched frame: a fine dashed gold border fades in on hover, like a swatch
   pinned to cloth. Pure CSS, no extra nodes; shared by tiles and product photos. */
.category-tile::before,
.product-image::after {
  content: ""; position: absolute; inset: 10px; z-index: 3;
  border: 1.5px dashed var(--color-gold-soft); border-radius: var(--radius-sm);
  opacity: 0; transition: opacity var(--t-in); pointer-events: none;
}
.category-tile:hover::before,
.product-card:hover .product-image::after,
.product-card:focus-visible .product-image::after { opacity: 1; }


/* ============================================================
   HERITAGE RIBBON  (slow scrolling band of trust lines)
   ============================================================ */
.ribbon {
  background: var(--color-muted); overflow: hidden;
  border-top: 1px solid var(--border-on-light); border-bottom: 1px solid var(--border-on-light);
  padding: 0.85rem 0;
}
.ribbon-track { display: inline-flex; align-items: center; white-space: nowrap; animation: ribbon-marq 30s linear infinite; }
.ribbon-half { display: inline-flex; align-items: center; }
.ribbon:hover .ribbon-track,
.ribbon-track.is-paused { animation-play-state: paused; }
.ribbon-item { font-size: 0.74rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--color-text); padding: 0 1.1rem; }
.ribbon-tick { color: var(--color-gold); }
@keyframes ribbon-marq { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .ribbon-track { animation: none; } }


/* an offset target so the sticky header never covers a scrolled-to section */
.section-anchor { display: block; height: 0; scroll-margin-top: 90px; }


/* ============================================================
   PRODUCT GRID + CARDS  (minimal: photo-forward, name only)
   ============================================================ */
.products-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
  margin-top: var(--space-xl);
}
.product-card { cursor: pointer; }
.product-image {
  position: relative; aspect-ratio: 1 / 1; overflow: hidden;
  border-radius: var(--radius-md); background: var(--color-surface);
}
.product-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s var(--ease-out); }
.product-card:hover .product-image img,
.product-card:focus-visible .product-image img { transform: scale(1.05); }
.product-overlay {
  position: absolute; inset: 0; z-index: 2;
  display: flex; align-items: center; justify-content: center;
  background: rgba(14, 23, 48, 0.34); color: var(--color-text-light);
  font-size: 0.7rem; letter-spacing: 0.16em; text-transform: uppercase; font-weight: 600;
  opacity: 0; transition: opacity var(--t-in);
}
.product-card:hover .product-overlay,
.product-card:focus-visible .product-overlay { opacity: 1; }
.product-info { padding: var(--space-sm) 0 0; text-align: center; }
.product-eyebrow {
  display: block; font-size: 0.64rem; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--color-gold-dark); margin-bottom: 4px;
}
.product-title { font-size: 1.05rem; margin: 0; }


/* search + filter tools (products page) */
.catalogue-tools { margin-top: var(--space-lg); display: flex; flex-direction: column; align-items: center; gap: var(--space-md); }
.product-search {
  width: 100%; max-width: 420px;
  padding: 0.7rem 1.1rem; font-family: var(--font-body); font-size: 0.95rem;
  color: var(--color-text); background: var(--color-surface);
  border: 1px solid var(--border-on-light); border-radius: var(--radius-full);
  transition: border-color var(--t-fast);
}
.product-search:focus { outline: none; border-color: var(--color-gold); }
.product-search::placeholder { color: var(--color-text-muted); }
.products-empty { text-align: center; color: var(--color-text-muted); margin-top: var(--space-xl); font-size: 1.05rem; }
.products-empty[hidden] { display: none; }


/* filter bar */
.filter-bar { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--space-xs); }
.filter-btn {
  font-family: var(--font-body); font-weight: 600;
  font-size: 0.78rem; letter-spacing: 0.06em; text-transform: uppercase;
  padding: 0.7rem 1.3rem; border-radius: var(--radius-full);
  border: 1px solid var(--border-on-light); background: transparent; color: var(--color-text);
  cursor: pointer; transition: color var(--t-fast), border-color var(--t-fast), background var(--t-fast);
}
.filter-btn:hover { border-color: var(--color-gold-dark); color: var(--color-gold-dark); }
.filter-btn.active { background: var(--color-primary); border-color: var(--color-primary); color: var(--color-text-light); }


/* ============================================================
   VALUES  —  numbered (no emoji-icon grid)
   ============================================================ */
.values-grid { display: grid; grid-template-columns: 1fr; gap: var(--space-lg); margin-top: var(--space-xl); }
.value-card { padding: var(--space-lg) 0; border-top: 1px solid var(--border-on-light); }
.bg-cream .value-card, .bg-navy .value-card { border-top-color: var(--border-on-light); }
.bg-navy .value-card { border-top-color: var(--border-on-dark); }
.value-num {
  font-family: var(--font-display); font-size: 1.1rem; font-weight: 600;
  color: var(--color-gold-dark); letter-spacing: 0.1em; display: block; margin-bottom: var(--space-sm);
}
.value-title { font-size: 1.3rem; margin-bottom: var(--space-xs); }
.value-text { color: var(--color-text-muted); margin: 0; }
.bg-navy .value-text { color: rgba(244, 239, 228, 0.78); }


/* ============================================================
   PULL QUOTE
   ============================================================ */
.pull-quote { max-width: 56ch; margin: 0 auto; text-align: center; }
.pull-quote p {
  font-family: var(--font-accent); font-style: italic;
  font-size: clamp(1.6rem, 4vw, 2.4rem); line-height: 1.4; margin-bottom: var(--space-md);
}
.pull-quote cite {
  font-style: normal; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase;
  font-size: 0.74rem; color: var(--color-gold);
}


/* ============================================================
   CALL TO ACTION
   ============================================================ */
.cta-inner { text-align: center; max-width: 50ch; margin: 0 auto; }
.cta-heading { font-size: clamp(1.8rem, 4.5vw, 2.8rem); margin-bottom: var(--space-md); }
.cta-text { color: var(--color-text-muted); margin-bottom: var(--space-xl); }
.bg-navy .cta-text { color: rgba(244, 239, 228, 0.8); }


/* ============================================================
   IMAGE BAND
   ============================================================ */
/* the image block breaks out of the text column to use the side space */
.image-section .container { max-width: 100%; padding: 0 var(--space-md); }
.image-band { margin: 0 auto; width: min(1500px, 100%); }
.image-band img {
  width: 100%; aspect-ratio: 16 / 7; object-fit: cover;
  border-radius: var(--radius-lg); border: 1px solid var(--border-on-light);
}
.image-band figcaption {
  margin-top: var(--space-md); text-align: center;
  font-family: var(--font-accent); font-style: italic; color: var(--color-text-muted);
}


/* ============================================================
   DIRECT CONTACT  —  slim line under the enquiry form
   ============================================================ */
.contact-direct {
  text-align: center; margin: var(--space-lg) auto 0; max-width: 56ch;
  color: var(--color-text-muted); font-size: 0.98rem;
}
.contact-direct a { color: var(--color-gold-dark); font-weight: 600; }
.contact-direct a:hover { color: var(--color-primary); }
.contact-direct-sep { margin: 0 0.6rem; color: var(--color-text-muted); opacity: 0.5; }


/* ============================================================
   ENQUIRY FORM
   ============================================================ */
.form-intro { max-width: 56ch; margin: 0 auto var(--space-xl); color: var(--color-text-muted); }
.enquiry-form { max-width: 680px; margin: 0 auto; }
.form-row { display: grid; grid-template-columns: 1fr; gap: var(--space-md); margin-bottom: var(--space-md); }
.enquiry-form label {
  display: block; font-weight: 600; font-size: 0.78rem; letter-spacing: 0.04em;
  text-transform: uppercase; color: var(--color-primary); margin-bottom: var(--space-md);
}
.enquiry-form input, .enquiry-form select, .enquiry-form textarea {
  display: block; width: 100%; margin-top: var(--space-xs);
  padding: 0.8rem 1rem; font-family: var(--font-body); font-size: 1rem; font-weight: 400;
  color: var(--color-text); background: var(--color-surface);
  border: 1px solid var(--border-on-light); border-radius: var(--radius-md);
  transition: border-color var(--t-fast); text-transform: none; letter-spacing: normal;
}
.enquiry-form input:focus, .enquiry-form select:focus, .enquiry-form textarea:focus {
  outline: none; border-color: var(--color-gold);
}
.enquiry-form textarea { resize: vertical; }
.form-actions { display: flex; flex-wrap: wrap; gap: var(--space-sm); justify-content: center; margin-top: var(--space-xl); }
.form-status { text-align: center; color: var(--color-error); font-size: 0.92rem; margin: var(--space-md) auto 0; max-width: 56ch; }


/* multi-product picker: a dropdown adds compact chosen-rows below it */
.product-picker { border: 0; padding: 0; margin: 0 0 var(--space-md); min-width: 0; }
.picker-clear {
  display: block; width: fit-content; margin: var(--space-sm) 0 0 auto;   /* right-aligned, in normal flow under the list */
  font-family: var(--font-body); font-size: 0.74rem; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--color-text-muted); background: transparent; border: 0; cursor: pointer; padding: 0.5rem 0.6rem;
  transition: color var(--t-fast);
}
.picker-clear:hover { color: var(--color-error); }
.picker-clear[hidden] { display: none; }
.product-picker legend {
  font-weight: 600; font-size: 0.78rem; letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--color-primary); padding: 0; margin-bottom: var(--space-xs);
}
.picker-list { list-style: none; margin: var(--space-sm) 0 0; padding: 0; display: grid; gap: var(--space-xs); }
.picker-item {
  display: flex; align-items: center; gap: var(--space-sm);
  padding: 0.55rem 0.9rem;
  border: 1px solid var(--border-on-light); border-radius: var(--radius-md);
  background: var(--color-surface);
}
.picker-name { flex: 1 1 auto; color: var(--color-text); }
.enquiry-form .check-qty {
  flex: 0 0 5rem; width: 5rem; margin: 0; text-align: center;
  padding: 0.45rem 0.6rem; font-size: 0.9rem;
  background: var(--color-background);
}
.picker-remove {
  flex: 0 0 auto; width: 40px; height: 40px; padding: 0; line-height: 1;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--border-on-light); border-radius: var(--radius-full);
  background: transparent; color: var(--color-text-muted); font-size: 1.2rem;
  cursor: pointer; transition: color var(--t-fast), border-color var(--t-fast);
}
.picker-remove:hover { color: var(--color-error); border-color: var(--color-error); }
.form-status.is-info { color: var(--color-text-muted); }


/* ============================================================
   FAQ  (native <details> accordion — no JS to open/close)
   ============================================================ */
.faq-list { max-width: 760px; margin: var(--space-xl) auto 0; display: grid; gap: var(--space-sm); }
.faq-item {
  border: 1px solid var(--border-on-light); border-radius: var(--radius-md);
  background: var(--color-surface); padding: 0 var(--space-md);
}
.faq-q {
  cursor: pointer; padding: var(--space-md) 0; list-style: none;
  font-weight: 600; color: var(--color-primary);
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-md);
}
.faq-q::-webkit-details-marker { display: none; }
.faq-q::after { content: "+"; font-size: 1.4rem; line-height: 1; color: var(--color-gold-dark); }
.faq-item[open] .faq-q::after { content: "\2212"; }
.faq-a { padding: 0 0 var(--space-md); color: var(--color-text-muted); }
.faq-a p:last-child { margin-bottom: 0; }


/* ============================================================
   PRODUCT MODAL  (popup detail view)
   ============================================================ */
.modal {
  position: fixed; inset: 0; z-index: 100;
  display: flex; align-items: center; justify-content: center;
  padding: var(--space-md);
  background: rgba(14, 23, 48, 0.55);
  -webkit-backdrop-filter: blur(3px);   /* subtle frosted glass behind the dialog */
  backdrop-filter: blur(3px);
  opacity: 0; visibility: hidden;
  /* fade opacity, but flip visibility instantly on open and only after the
     fade on close — so the dialog is focusable the moment it opens */
  transition: opacity var(--t-in), visibility 0s linear 0.45s;
}
.modal.open { opacity: 1; visibility: visible; transition: opacity var(--t-in), visibility 0s; }
/* where blur is unsupported (older Android Chrome / Firefox), darken instead of a harsh see-through */
@supports not ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .modal { background: rgba(14, 23, 48, 0.8); }
}
.modal-dialog {
  position: relative;
  width: 100%; max-width: 920px; max-height: 90vh; max-height: 90dvh; overflow: auto;
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-on-light);
  transform: translateY(16px);
  transition: transform var(--t-in);
}
.modal.open .modal-dialog { transform: none; }
.modal-close {
  /* sticky inside the dialog: tracks the panel (never floats off in the backdrop
     on wide screens), stays visible while a tall dialog scrolls, and keeps a real
     offsetParent so the focus-trap counts it (Safari counts position:fixed as none) */
  position: sticky; z-index: 2;
  top: var(--space-sm);
  /* negative bottom margin (= -1 * the 40px button height, --space-lg) lets the
     gallery sit flush at the top with the button overlaying its corner, as before */
  display: block; margin: var(--space-sm) var(--space-sm) calc(-1 * var(--space-lg)) auto;
  width: 40px; height: 40px; border-radius: var(--radius-full);
  border: 1px solid var(--border-on-light); background: var(--color-surface);
  font-size: 1.2rem; line-height: 1; color: var(--color-primary); cursor: pointer;
  transition: border-color var(--t-fast), color var(--t-fast);
}
.modal-close:hover { border-color: var(--color-gold-dark); color: var(--color-gold-dark); }
.modal-grid { display: grid; grid-template-columns: 1fr; }
.modal-gallery { padding: var(--space-md); }
/* zoomable image: the figure clips, the <img> scales/pans inside it */
.modal-figure {
  position: relative; overflow: hidden;
  aspect-ratio: 1 / 1; border-radius: var(--radius-md);
  border: 1px solid var(--border-on-light);
  touch-action: none;
}
.modal-main-image {
  width: 100%; height: 100%; object-fit: cover; display: block;
  will-change: transform;
}
.modal-zoom-hint {
  margin-top: var(--space-xs); text-align: center;
  font-size: 0.68rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--color-text-muted);
}
.modal-thumbs { display: flex; gap: var(--space-xs); margin-top: var(--space-sm); flex-wrap: wrap; }
.modal-thumb {
  width: 64px; height: 64px; object-fit: cover; cursor: pointer;
  border-radius: var(--radius-sm); border: 1px solid var(--border-on-light);
  transition: border-color var(--t-fast); opacity: 0.8;
}
.modal-thumb:hover { opacity: 1; }
.modal-thumb.active { border-color: var(--color-gold); opacity: 1; }
.modal-body { padding: var(--space-lg) var(--space-md) var(--space-xl); }
.modal-category {
  text-transform: uppercase; letter-spacing: 0.16em; font-size: 0.7rem; font-weight: 600;
  color: var(--color-gold-dark); margin-bottom: var(--space-sm);
}
.modal-title { font-size: clamp(1.6rem, 4vw, 2.2rem); margin-bottom: var(--space-md); }
.modal-desc { color: var(--color-text-muted); font-size: 1.05rem; margin-bottom: var(--space-md); }
.modal-meta { list-style: none; padding: 0; margin: 0 0 var(--space-xl); }
.modal-meta li { padding: var(--space-xs) 0; border-top: 1px solid var(--border-on-light); font-size: 0.92rem; }
.modal-meta span { color: var(--color-text-muted); letter-spacing: 0.04em; }
.modal-actions { display: flex; flex-direction: column; gap: var(--space-sm); }
.modal-actions .btn { text-align: center; }
.modal-actions .btn.is-added { border-color: var(--color-gold-dark); color: var(--color-gold-dark); }
body.modal-open { overflow: hidden; }


/* ============================================================
   FOOTER
   ============================================================ */
[data-site-footer] {
  background: var(--color-primary);
  color: var(--color-text-light);
  padding: var(--space-lg) 0 var(--space-sm);
  font-size: 0.86rem;
}
[data-site-footer] .container { max-width: var(--max-width); }
[data-site-footer] a { color: var(--color-gold-soft); }
[data-site-footer] a:hover { color: var(--color-gold); }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: var(--space-lg); align-items: start; }


/* brand: big logo + name lead the footer */
.footer-logo { display: flex; align-items: center; gap: var(--space-md); margin-bottom: var(--space-sm); }
.footer-logo img { width: 84px; height: 84px; border-radius: var(--radius-full); object-fit: cover; }
.footer-logo-text h3 { color: var(--color-text-light); margin: 0; font-size: clamp(1.7rem, 3.4vw, 2.4rem); font-weight: 700; line-height: 1.05; }
.footer-logo-text p { color: var(--color-gold-soft); margin: 0; font-family: var(--font-accent); font-style: italic; font-size: 1rem; }
.footer-social { display: flex; gap: var(--space-sm); margin-top: var(--space-sm); }
.social-link {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: var(--radius-full);
  border: 1px solid var(--border-on-dark); color: var(--color-gold-soft);
  transition: border-color var(--t-fast), color var(--t-fast);
}
.social-link:hover { border-color: var(--color-gold); color: var(--color-gold); }
.footer-title {
  color: var(--color-text-light); font-size: 0.68rem; text-transform: uppercase;
  letter-spacing: 0.16em; margin-bottom: var(--space-xs);
}
.footer-links, .footer-contact { list-style: none; padding: 0; margin: 0; }
.footer-links li, .footer-contact li { margin-bottom: 0.3rem; line-height: 1.5; }
.footer-copy {
  margin: var(--space-md) 0 0; font-size: 0.74rem;
  color: rgba(244, 239, 228, 0.5); letter-spacing: 0.01em;
}


/* ============================================================
   SIGNATURE CRAFT TOUCHES
   The running stitch (scroll thread + drawn-in heading underline)
   and the stardust pointer. JS in main.js adds the nodes;
   these rules give them their look. Drawn from the embroidery itself.
   ============================================================ */


/* running-stitch scroll progress, pinned to the very top of the page */
.scroll-stitch {
  position: fixed; top: 0; left: 0; height: 3px; width: 0; z-index: 90;
  background-image: repeating-linear-gradient(90deg,
    var(--color-gold) 0 9px, transparent 9px 16px);
  pointer-events: none;
}


/* a short stitched underline that draws in beneath each section heading */
.section-heading { position: relative; }
.section-heading::after {
  content: ""; display: block; height: 2px; width: 0; margin-top: var(--space-sm);
  background-image: repeating-linear-gradient(90deg,
    var(--color-gold) 0 9px, transparent 9px 16px);   /* same stitch as the scroll thread */
  transition: width 1s var(--ease-out) 0.15s;
}
.section-heading.text-center::after,
.text-center .section-heading::after { margin-left: auto; margin-right: auto; }
.is-visible .section-heading::after,
.section-heading.is-visible::after { width: 64px; }
@media (prefers-reduced-motion: reduce) {
  .section-heading::after { width: 64px; transition: none; }
}


/* stardust pointer: a faint trail of gold/indigo sparkles, on a full-page
   canvas overlay that never takes clicks (mouse + touch; see main.js). */
.thread-canvas { position: fixed; inset: 0; z-index: 90; pointer-events: none; }


/* reduced-motion: still the look, none of the movement */
@media (prefers-reduced-motion: reduce) {
  .category-tile:hover .cat-slide,
  .product-card:hover .product-image img { transform: none; }
  .cat-slide, .product-image img { transition: none; }
}


/* ============================================================
   LARGER SCREENS
   ============================================================ */
@media (min-width: 760px) {
  .nav { display: flex; }
  .mobile-toggle { display: none; }


  .hero { padding-top: var(--space-2xl); padding-bottom: var(--space-2xl); }
  .hero-heading { font-size: clamp(3.4rem, 6.5vw, 5.5rem); }


  .products-grid { grid-template-columns: repeat(2, 1fr); }
  .category-grid { grid-template-columns: repeat(2, 1fr); }
  .category-tile { aspect-ratio: 16 / 10; }   /* shorter, wider on desktop */
  .values-grid { grid-template-columns: repeat(3, 1fr); gap: var(--space-xl); }
  .form-row { grid-template-columns: 1fr 1fr; }


  .modal-grid { grid-template-columns: 1fr 1fr; }
  .modal-body { padding: var(--space-2xl) var(--space-xl); }
  .modal-actions { flex-direction: row; flex-wrap: wrap; }


  .footer-grid { grid-template-columns: 2fr 1fr 1fr; }
}


@media (min-width: 1040px) {
  .products-grid { grid-template-columns: repeat(3, 1fr); }
}



