/* ==========================================================================
   Swiss Gold House — styles.css  (v2 "Modern Atelier")
   One shared stylesheet for every page. Mobile-first.

   CONCEPT: a bright, editorial, modern-luxury look — near-black ink on warm
   paper, champagne bands, antique gold accents, square geometry (zero border
   radius), tracked uppercase labels. Inspired by the layout language of
   high-end Sri Lankan jewellery retail; all execution original.
   Signature device kept from v1: the faceted-diamond motif + fine gold
   hairline rule dividing sections.

   Palette (named, used consistently):
     --ink        #131313   near-black (text, buttons, dark bands)
     --ink-2      #575757   muted grey text
     --paper      #FFFFFF   pure white (cards)
     --paper-warm #FAF8F3   warm paper (page ground)
     --champagne  #F4EEE1   champagne band (alt sections)
     --gold       #B98F45   antique gold (accents, icons, rules)
     --gold-ink   #7E5310   deep bronze-gold — AA-safe for small gold TEXT on light
     --dark       #141414   dark band / footer ground
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Design tokens
   -------------------------------------------------------------------------- */
:root {
  --ink: #131313;
  --ink-2: #575757;
  --paper: #FFFFFF;
  --paper-warm: #FAF8F3;
  --champagne: #F4EEE1;
  --champagne-deep: #EAE1CC;
  --gold: #B98F45;
  --gold-soft: #D6BE8C;
  --gold-ink: #7E5310;
  --dark: #141414;
  --dark-2: #1E1E1E;
  --line: #E7E1D3;        /* hairline on warm grounds */
  --line-dark: rgba(214, 190, 140, 0.22);  /* hairline on dark grounds */

  /* Typography: elegant serif display over a warm, readable sans (18px base) */
  --font-display: "EB Garamond", Georgia, "Times New Roman", serif;
  --font-body: "Source Sans 3", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
  --font-brand: "EB Garamond", Georgia, "Times New Roman", serif;

  --maxw: 1240px;
  --gutter: clamp(1.1rem, 4vw, 2.5rem);

  --shadow-sm: 0 2px 12px rgba(19, 19, 19, 0.06);
  --shadow-md: 0 12px 32px rgba(19, 19, 19, 0.10);
  --shadow-lg: 0 20px 48px rgba(19, 19, 19, 0.14);

  --t-fast: 160ms ease;
  --t-med: 280ms cubic-bezier(.2, .7, .3, 1);

  --header-h: 72px;
}

/* --------------------------------------------------------------------------
   2. Reset & base
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper-warm);
  line-height: 1.8;
  font-size: 1.125rem;   /* 18px base, matching leading jewellery sites */
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg, video { display: block; max-width: 100%; }
img { height: auto; }

a { color: inherit; text-decoration: none; }

button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; }

ul { list-style: none; padding: 0; }

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

/* Skip link for keyboard users */
.skip-link {
  position: absolute;
  left: 12px; top: -60px;
  z-index: 200;
  background: var(--ink);
  color: var(--paper);
  padding: 10px 16px;
  font-weight: 600;
  letter-spacing: 0.08em;
  transition: top var(--t-fast);
}
.skip-link:focus { top: 12px; }

/* --------------------------------------------------------------------------
   3. Layout helpers
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container--narrow { max-width: 820px; }

.section { padding-block: clamp(3.2rem, 9vw, 6.5rem); }
.section--tight { padding-block: clamp(2rem, 5vw, 3.5rem); }

.section--white { background: var(--paper); }
.section--champagne { background: var(--champagne); }
.section--dark {
  background: linear-gradient(180deg, var(--dark-2) 0%, var(--dark) 100%);
  color: var(--paper-warm);
}

/* --------------------------------------------------------------------------
   4. Typography
   -------------------------------------------------------------------------- */
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.08; letter-spacing: normal; }

.display {
  font-size: clamp(2.7rem, 7vw, 4.8rem);
  font-weight: 600;
}
.h2 { font-size: clamp(2rem, 4.6vw, 3rem); }
.h3 { font-size: clamp(1.35rem, 2.6vw, 1.75rem); }

p { max-width: 68ch; }
.lead { font-size: clamp(1.15rem, 2vw, 1.3rem); color: var(--ink-2); line-height: 1.75; }
.section--dark .lead { color: rgba(250, 248, 243, 0.82); }

/* Tracked uppercase label / eyebrow */
.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold-ink);
}
.section--dark .eyebrow { color: var(--gold-soft); }

.text-center { text-align: center; }
.text-center p { margin-inline: auto; }

/* --------------------------------------------------------------------------
   5. Signature rule — gold hairline + faceted-diamond motif
   -------------------------------------------------------------------------- */
.rule {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  justify-content: center;
  margin-inline: auto;
  color: var(--gold);
}
.rule::before, .rule::after {
  content: "";
  height: 1px;
  flex: 1 1 auto;
  max-width: 110px;
  background: linear-gradient(90deg, transparent, currentColor);
}
.rule::after { background: linear-gradient(270deg, transparent, currentColor); }
.rule .ic-diamond { width: 20px; height: 16px; color: var(--gold); flex: none; }
.rule--wide::before, .rule--wide::after { max-width: none; }
.rule--left { justify-content: flex-start; margin-inline: 0; }
.rule--left::before { display: none; }
.section--dark .rule { color: var(--gold-soft); }

/* --------------------------------------------------------------------------
   6. Buttons — square geometry, tracked uppercase
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
  min-height: 54px;
  padding: 1em 2em;
  border-radius: 0;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 1.5px solid transparent;
  transition: transform var(--t-fast), box-shadow var(--t-fast), background var(--t-fast), color var(--t-fast), border-color var(--t-fast);
  text-align: center;
}
.btn .ic { width: 1.3em; height: 1.3em; flex: none; fill: currentColor; }

/* Primary: solid ink */
.btn--dark {
  background: var(--ink);
  color: #F8F8F8;
  border-color: var(--ink);
}
.btn--dark:hover { background: var(--gold-ink); border-color: var(--gold-ink); transform: translateY(-2px); box-shadow: var(--shadow-md); }

/* Gold: for the strongest WhatsApp emphasis */
.btn--gold {
  background: var(--gold);
  color: var(--ink);
  border-color: var(--gold);
}
.btn--gold:hover { background: var(--gold-soft); border-color: var(--gold-soft); transform: translateY(-2px); box-shadow: var(--shadow-md); }

/* Outline on light grounds */
.btn--outline {
  border-color: var(--ink);
  color: var(--ink);
  background: transparent;
}
.btn--outline:hover { background: var(--ink); color: #F8F8F8; transform: translateY(-2px); }

/* Outline on dark grounds */
.section--dark .btn--outline,
.site-footer .btn--outline {
  border-color: rgba(250, 248, 243, 0.6);
  color: var(--paper-warm);
}
.section--dark .btn--outline:hover,
.site-footer .btn--outline:hover { background: var(--paper-warm); color: var(--ink); border-color: var(--paper-warm); }

/* Tracked ghost text-link with underline + arrow */
.link-line {
  display: inline-flex;
  align-items: center;
  gap: 0.55em;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
  padding-bottom: 0.45em;
  position: relative;
}
.link-line::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1.5px;
  background: var(--gold);
  transform-origin: left;
  transition: transform var(--t-med);
}
.link-line .ic { width: 1.15em; height: 1.15em; fill: var(--gold-ink); transition: transform var(--t-med); }
.link-line:hover::after { transform: scaleX(0.55); }
.link-line:hover .ic { transform: translateX(4px); }
.section--dark .link-line { color: var(--paper-warm); }
.section--dark .link-line .ic { fill: var(--gold-soft); }

/* Full-width WhatsApp button used on product cards */
.btn--wa {
  background: var(--ink);
  color: #F8F8F8;
  border-color: var(--ink);
  width: 100%;
}
.btn--wa .ic { width: 1.4em; height: 1.4em; }
.btn--wa:hover { background: var(--gold-ink); border-color: var(--gold-ink); transform: translateY(-2px); box-shadow: var(--shadow-md); }

.btn--lg { min-height: 60px; padding: 1.1em 2.4em; font-size: 1rem; }

/* --------------------------------------------------------------------------
   7. Trust badge — "916 | 22 Karat Assured"
   -------------------------------------------------------------------------- */
.badge-916 {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.45rem 1rem 0.45rem 0.45rem;
  border: 1px solid var(--gold);
  background: rgba(185, 143, 69, 0.07);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink);
  white-space: nowrap;
}
.badge-916 .mark {
  display: inline-grid;
  place-items: center;
  width: 36px; height: 36px;
  background: var(--ink);
  color: var(--gold-soft);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0;
  border: 1px solid var(--gold);
}
.badge-916 .badge-label small { display: block; font-weight: 500; font-size: 0.76rem; letter-spacing: 0.08em; color: var(--ink-2); text-transform: none; }
.section--dark .badge-916,
.badge-916--on-dark {
  color: var(--paper-warm);
  border-color: var(--gold);
  background: rgba(185, 143, 69, 0.12);
}
.section--dark .badge-916 .badge-label small,
.badge-916--on-dark .badge-label small { color: rgba(250, 248, 243, 0.72); }
.section--dark .badge-916 .mark,
.badge-916--on-dark .mark { background: var(--gold); color: var(--ink); }

/* --------------------------------------------------------------------------
   8. Header / navigation  (SHARED — keep in sync across pages)
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 248, 243, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
  color: var(--ink);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header-h);
  padding-block: 0.5rem;
}

/* Brand lockup: faceted diamond + wordmark (our logo identity — serif stays) */
.brand { display: inline-flex; align-items: center; gap: 0.75rem; color: var(--ink); }
.brand__diamond { width: 38px; height: 31px; color: var(--gold); flex: none; }
.brand__text { display: flex; flex-direction: column; line-height: 1; }
.brand__name {
  font-family: var(--font-brand);
  font-weight: 700;
  font-size: 1.8rem;
  letter-spacing: 0.01em;
  color: var(--ink);
}
.brand__tag {
  font-size: 0.63rem;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--gold-ink);
  margin-top: 3px;
}

.nav { display: flex; align-items: center; gap: 0.2rem; }
/* Direct children only — the .nav__cta button must NOT inherit link colours */
.nav > a {
  display: inline-block;
  padding: 0.6rem 0.85rem;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--ink);
  position: relative;
  transition: color var(--t-fast);
}
.nav > a::after {
  content: "";
  position: absolute;
  left: 0.85rem; right: 0.85rem; bottom: 0.38rem;
  height: 1.5px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--t-med);
}
.nav > a:hover { color: var(--gold-ink); }
.nav > a:hover::after, .nav > a[aria-current="page"]::after { transform: scaleX(1); }
.nav > a[aria-current="page"] { color: var(--gold-ink); }

.nav__cta { margin-left: 0.6rem; }
.nav__cta .btn { min-height: 46px; padding: 0.6em 1.3em; font-size: 0.85rem; }

/* Hamburger (mobile) */
.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 46px; height: 46px;
  padding: 12px 11px;
  border: 1px solid var(--line);
  background: var(--paper);
}
.nav-toggle span { display: block; height: 2px; background: var(--ink); transition: transform var(--t-med), opacity var(--t-fast); }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile-first: nav hidden behind toggle */
@media (max-width: 999px) {
  .nav {
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.6rem var(--gutter) 1.3rem;
    background: var(--paper-warm);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--t-med), transform var(--t-med), visibility var(--t-med);
  }
  .nav[data-open="true"] { opacity: 1; visibility: visible; transform: translateY(0); }
  .nav > a { padding: 0.95rem 0.4rem; font-size: 1.05rem; border-bottom: 1px solid var(--line); }
  .nav > a::after { display: none; }
  .nav__cta { margin: 1rem 0 0; }
  .nav__cta .btn { width: 100%; min-height: 50px; font-size: 0.82rem; }
}
@media (min-width: 1000px) {
  .nav-toggle { display: none; }
  .site-header__inner { position: relative; }
}

/* --------------------------------------------------------------------------
   9. Hero — light, editorial, full-bleed art
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  color: var(--ink);
  background-color: var(--champagne);
  background-size: cover;
  background-position: center;
  isolation: isolate;
  overflow: hidden;
}
/* The hero photo is a real <img> (so it can be preloaded/prioritised as the LCP
   element) sitting behind everything else inside the hero's own stacking context. */
.hero > picture { display: contents; }
.hero__bg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: center;
  z-index: -3;
}
/* Soft wash so ink text always reads over the champagne art */
.hero::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(250, 248, 243, 0.88) 0%, rgba(250, 248, 243, 0.55) 55%, rgba(250, 248, 243, 0.20) 100%);
  z-index: -2;
}
/* Home hero: photo-based art needs a firmer wash under the headline/lead zone */
.hero--home::after {
  background: linear-gradient(90deg, rgba(250, 248, 243, 0.95) 0%, rgba(250, 248, 243, 0.74) 48%, rgba(250, 248, 243, 0.16) 100%);
}
.hero__inner {
  position: relative;
  padding-block: clamp(4rem, 12vw, 8.5rem);
  max-width: 720px;
}
/* Contrast scrim: a local cream panel directly behind the text block, so the ink
   copy (#131313 / #3D3A33 on >= #F4F1EA) clears 4.5:1 whatever the photo does. */
.hero__inner::before {
  content: "";
  position: absolute;
  inset: 1.5rem -2rem;
  background: radial-gradient(ellipse 70% 60% at 35% 50%, rgba(250, 248, 243, 0.94) 0%, rgba(250, 248, 243, 0.86) 55%, rgba(250, 248, 243, 0) 100%);
  z-index: -1;
  pointer-events: none;
}
/* Hero/banner eyebrows ("Est. 1991 · Wattala, Sri Lanka") read a step larger */
.hero .eyebrow { font-size: 0.98rem; }
.hero--home .hero__inner { padding-block: clamp(4.5rem, 14vw, 10rem); }
.hero__inner .display { color: var(--ink); }
.hero__inner .display em { color: var(--gold-ink); font-style: normal; }
.hero__lead { margin-top: 1.2rem; color: #3D3A33; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: 2.2rem; }
.hero__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; margin-top: 2.4rem; }

/* Page banner (interior pages): centred, with full wash */
.banner { text-align: center; }
.banner::after { background: rgba(250, 248, 243, 0.72); }
.banner .hero__inner::before { inset: 1rem -2rem; background: radial-gradient(ellipse 65% 60% at 50% 50%, rgba(250, 248, 243, 0.92) 0%, rgba(250, 248, 243, 0.84) 55%, rgba(250, 248, 243, 0) 100%); }
.banner .hero__inner { max-width: 760px; margin-inline: auto; padding-block: clamp(3rem, 8vw, 5rem); }

/* Breadcrumb */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-2);
  margin-bottom: 1.1rem;
}
.breadcrumb a { color: var(--gold-ink); }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb .sep { color: var(--gold-ink); }

/* --------------------------------------------------------------------------
   10. Product / feature cards — white, hairline, square
   -------------------------------------------------------------------------- */
.rate-note {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1rem;
  color: var(--ink-2);
  font-style: italic;
  margin-top: 0.6rem;
}
.rate-note .ic-diamond { width: 15px; height: 12px; color: var(--gold); flex: none; }

.product-grid {
  display: grid;
  gap: clamp(1.1rem, 2.6vw, 1.8rem);
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 270px), 1fr));
  margin-top: 2.2rem;
}
/* A category with a single card: keep it card-sized, never a full-width slab */
.product-grid--single { grid-template-columns: minmax(min(100%, 270px), 360px); }

.product-card {
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border: 1px solid var(--line);
  overflow: hidden;
  transition: transform var(--t-med), box-shadow var(--t-med), border-color var(--t-med);
}
.product-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: var(--gold); }

.product-card__media {
  position: relative;
  background: var(--champagne);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.product-card__media img { aspect-ratio: 1 / 1; object-fit: cover; width: 100%; transition: transform 600ms ease; }
.product-card:hover .product-card__media img { transform: scale(1.04); }

.product-card__body { display: flex; flex-direction: column; gap: 0.5rem; padding: 1.25rem 1.25rem 1.4rem; flex: 1; }
.product-card__cat {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-ink);
}
.product-card__name { font-family: var(--font-display); font-size: 1.55rem; font-weight: 600; color: var(--ink); line-height: 1.12; }
.product-card__sku { font-size: 0.82rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-2); }
.product-card__desc { font-size: 1.02rem; color: var(--ink-2); line-height: 1.65; flex: 1; }
.product-card__weight {
  display: inline-flex; align-items: center; gap: 0.45rem;
  font-size: 0.85rem; font-weight: 700; letter-spacing: 0.08em;
  color: var(--gold-ink);
  text-transform: uppercase;
}
.product-card__weight .ic-diamond { width: 13px; height: 11px; color: var(--gold); }
.product-card .btn--wa { margin-top: 0.7rem; }

/* Card links into the product detail pages */
.product-card__media a { display: block; }
.product-card__name a { transition: color var(--t-fast); }
.product-card__name a:hover { color: var(--gold-ink); }

/* --------------------------------------------------------------------------
   10b. Product detail page (products/<id>.html — generated by
        scripts/build-product-pages.ps1)
   -------------------------------------------------------------------------- */
.pdp-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1.8rem, 4vw, 3.5rem);
  align-items: start;
}
@media (min-width: 900px) { .pdp-grid { grid-template-columns: 1.05fr 1fr; } }

.pdp-grid .breadcrumb { justify-content: flex-start; margin-bottom: 1.6rem; }

/* Gallery: main image + swappable thumbnails (works without JS — all real imgs) */
.gallery__main {
  border: 1px solid var(--line);
  background: var(--champagne);
  overflow: hidden;
}
.gallery__main img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; display: block; }
.gallery__zoom { display: block; width: 100%; padding: 0; cursor: zoom-in; }
.gallery__thumbs { display: flex; gap: 0.8rem; margin-top: 0.8rem; }
.gallery__thumb {
  flex: 1;
  padding: 0;
  border: 1px solid var(--line);
  background: var(--champagne);
  cursor: pointer;
  transition: border-color var(--t-fast), transform var(--t-fast);
}
.gallery__thumb img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; display: block; }
.gallery__thumb:hover { border-color: var(--gold); transform: translateY(-2px); }
.gallery__thumb[aria-pressed="true"] { border-color: var(--gold-ink); box-shadow: inset 0 0 0 1px var(--gold-ink); }

/* Lightbox (product gallery, injected by js/main.js) */
.lightbox {
  position: fixed; inset: 0; z-index: 200;
  display: flex; align-items: center; justify-content: center;
  background: rgba(19, 19, 19, 0.94);
  padding: clamp(0.5rem, 3vw, 2rem);
  opacity: 0; transition: opacity 220ms ease;
}
.lightbox[data-open="true"] { opacity: 1; }
.lightbox img { max-width: min(92vw, 1200px); max-height: 88vh; width: auto; height: auto; box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5); user-select: none; -webkit-user-drag: none; }
.lightbox__btn {
  position: absolute; z-index: 1;
  display: inline-flex; align-items: center; justify-content: center;
  width: 48px; height: 48px;
  color: var(--paper-warm); background: rgba(250, 248, 243, 0.08);
  border: 1px solid rgba(250, 248, 243, 0.35);
  transition: background var(--t-fast), border-color var(--t-fast);
}
.lightbox__btn:hover { background: rgba(250, 248, 243, 0.18); border-color: var(--gold-soft); }
.lightbox__btn .ic { width: 26px; height: 26px; fill: currentColor; }
.lightbox__close { top: max(12px, env(safe-area-inset-top)); right: max(12px, env(safe-area-inset-right)); }
.lightbox__prev, .lightbox__next { top: 50%; transform: translateY(-50%); }
.lightbox__prev { left: max(8px, env(safe-area-inset-left)); }
.lightbox__prev .ic { transform: rotate(180deg); }
.lightbox__next { right: max(8px, env(safe-area-inset-right)); }
.lightbox__count { position: absolute; bottom: max(14px, env(safe-area-inset-bottom)); left: 0; right: 0; text-align: center; color: rgba(250, 248, 243, 0.75); font-size: 0.85rem; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 700; }
.lightbox__btn:focus-visible { outline-color: var(--gold-soft); }
body.has-lightbox { overflow: hidden; }
@media (max-width: 640px) { .lightbox__prev, .lightbox__next { width: 40px; height: 40px; } }

/* Product info column */
.pdp-info h1 { font-size: clamp(2.1rem, 4.5vw, 3.1rem); line-height: 1.1; margin: 0.35rem 0 1rem; }
.pdp-info .badge-916 { margin-bottom: 1.2rem; }
.pdp-info .lead { margin-bottom: 0.4rem; }
.pdp-weight {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: 0.95rem; font-weight: 700; letter-spacing: 0.08em;
  color: var(--gold-ink); text-transform: uppercase;
  margin: 0.8rem 0 0.4rem;
}
.pdp-weight .ic-diamond { width: 15px; height: 12px; color: var(--gold); }

/* Specification table */
.spec-table { width: 100%; border-collapse: collapse; margin-top: 1.2rem; }
.spec-table th, .spec-table td { text-align: left; vertical-align: top; padding: 0.7rem 0; border-bottom: 1px solid var(--line); }
.spec-table th {
  width: 36%;
  padding-right: 1.2rem;
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-ink);
}
.spec-table td { color: var(--ink-2); font-size: 1.02rem; }

.pdp-actions { margin-top: 1.8rem; }
.pdp-actions .btn--wa { width: 100%; }
@media (min-width: 600px) { .pdp-actions .btn--wa { width: auto; min-width: 340px; } }

/* Featured tiles (home): image + caption below, editorial */
.tile-grid {
  display: grid;
  gap: clamp(1.1rem, 2.6vw, 1.8rem);
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  margin-top: 2.6rem;
}
.tile { display: block; background: var(--paper); border: 1px solid var(--line); transition: transform var(--t-med), box-shadow var(--t-med), border-color var(--t-med); }
.tile:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: var(--gold); }
.tile__media { overflow: hidden; background: var(--champagne); border-bottom: 1px solid var(--line); }
.tile__media img { aspect-ratio: 1 / 1; object-fit: cover; width: 100%; transition: transform 600ms ease; }
.tile:hover .tile__media img { transform: scale(1.05); }
.tile__body { padding: 1.15rem 1.2rem 1.3rem; }
.tile__body h3 { font-size: 1.5rem; font-weight: 600; }
.tile__body p { font-size: 1rem; color: var(--ink-2); margin: 0.3rem 0 0.95rem; }

/* Collection banners (home, 3-up) */
.banner-grid {
  display: grid;
  gap: clamp(1.1rem, 2.6vw, 1.8rem);
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  margin-top: 2.6rem;
}
.cbanner { position: relative; display: block; overflow: hidden; border: 1px solid var(--line); background: var(--champagne); }
.cbanner img { aspect-ratio: 4 / 5; object-fit: cover; width: 100%; transition: transform 700ms ease; }
.cbanner:hover img { transform: scale(1.05); }
.cbanner__cap {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 2rem 1.4rem 1.4rem;
  background: linear-gradient(180deg, rgba(250, 248, 243, 0) 0%, rgba(250, 248, 243, 0.92) 45%);
}
.cbanner__cap .eyebrow { color: var(--gold-ink); }
.cbanner__cap h3 { font-size: 1.75rem; font-weight: 600; margin: 0.2rem 0 0.15rem; color: var(--ink); }
.cbanner__cap p { font-size: 1rem; color: var(--ink-2); margin-bottom: 0.9rem; }

/* Category strip (text-driven list with hairlines) */
.cat-strip { margin-top: 2.4rem; border-top: 1px solid var(--champagne-deep); }
.cat-strip li { border-bottom: 1px solid var(--champagne-deep); }
.cat-strip a {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.3rem 1.5rem;
  padding: 1.15rem 0.2rem;
  transition: background var(--t-fast), padding-left var(--t-med);
}
.cat-strip a:hover { background: rgba(255, 255, 255, 0.55); padding-left: 0.8rem; }
.cat-strip h3 { font-size: clamp(1.5rem, 2.8vw, 1.9rem); font-weight: 600; display: inline-flex; align-items: center; gap: 0.7rem; }
.cat-strip h3 .ic-diamond { width: 17px; height: 14px; color: var(--gold); flex: none; }
.cat-strip .cat-tag { font-size: 1rem; color: var(--ink-2); flex: 1; }
.cat-strip .link-line { flex: none; }
@media (max-width: 640px) { .cat-strip .cat-tag { display: none; } }

/* Value trio (about / why-22k) */
.value-grid {
  display: grid;
  gap: clamp(1.4rem, 3vw, 2.4rem);
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  margin-top: 2.6rem;
}
.value { text-align: center; padding: 1.4rem 1.2rem; }
.value .ic-diamond { width: 40px; height: 33px; margin: 0 auto 1rem; color: var(--gold); }
.value h3 { font-size: 1.6rem; font-weight: 600; margin-bottom: 0.5rem; }
.value p { font-size: 1.05rem; color: var(--ink-2); margin-inline: auto; }
.section--dark .value h3 { color: var(--paper-warm); }
.section--dark .value p { color: rgba(250, 248, 243, 0.78); }

/* Category section heading within collections */
.cat-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0.6rem 1.2rem; }
.cat-head h2 { color: var(--ink); }
.cat-head p { color: var(--ink-2); font-size: 1.05rem; }
.category + .category { margin-top: clamp(2.8rem, 6vw, 4.8rem); padding-top: clamp(2.2rem, 5vw, 3.6rem); border-top: 1px solid var(--line); }

/* Sticky category quick-nav (collections) */
.cat-nav {
  position: sticky; top: var(--header-h); z-index: 40;
  background: rgba(250, 248, 243, 0.94);
  backdrop-filter: blur(8px);
  border-block: 1px solid var(--line);
}
.cat-nav ul { display: flex; gap: 0.2rem; overflow-x: auto; padding: 0.55rem 0; scrollbar-width: thin; }
.cat-nav a {
  white-space: nowrap;
  padding: 0.55rem 1rem;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-2);
  border: 1px solid transparent;
  transition: all var(--t-fast);
}
.cat-nav a:hover { color: var(--ink); border-color: var(--gold); background: var(--paper); }

/* --------------------------------------------------------------------------
   11. Info / contact blocks
   -------------------------------------------------------------------------- */
.info-grid {
  display: grid;
  gap: clamp(1.2rem, 3vw, 2rem);
  grid-template-columns: 1fr;
}
@media (min-width: 800px) { .info-grid--2 { grid-template-columns: 1fr 1fr; } }

.info-card {
  background: var(--paper);
  border: 1px solid var(--line);
  padding: clamp(1.4rem, 3vw, 2.2rem);
}
.info-list { display: grid; gap: 1.25rem; }
.info-list li { display: flex; gap: 0.9rem; align-items: flex-start; }
.info-list .ic { width: 24px; height: 24px; flex: none; fill: var(--gold-ink); margin-top: 2px; }
.info-list h3 { font-family: var(--font-body); font-size: 0.88rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink); margin-bottom: 0.25rem; }
.info-list a { color: var(--ink); border-bottom: 1px solid transparent; transition: border-color var(--t-fast); }
.info-list a:hover { border-color: var(--gold); }
.info-list p, .info-list address { font-style: normal; color: var(--ink-2); }

.map-frame {
  border: 1px solid var(--line);
  overflow: hidden;
  background: var(--champagne);
}
.map-frame iframe { display: block; width: 100%; height: 100%; min-height: 340px; border: 0; }

.hours-table { width: 100%; border-collapse: collapse; margin-top: 0.4rem; }
.hours-table th, .hours-table td { text-align: left; padding: 0.55rem 0; border-bottom: 1px solid var(--line); font-size: 1.02rem; }
.hours-table th { font-weight: 600; color: var(--ink); }
.hours-table td { color: var(--ink-2); }
.hours-table tr.is-today th, .hours-table tr.is-today td { color: var(--gold-ink); font-weight: 700; }
.hours-table tr.is-closed td { color: #A04B33; }

/* Prose (about page) */
.prose p + p { margin-top: 1.1rem; }
.prose h2 { margin-top: 2.4rem; }

/* Enquiry form (contact page) - secondary to the WhatsApp CTA */
.enquiry-form { display: grid; gap: 1.1rem; margin-top: 1.4rem; }
.enquiry-form .field { display: grid; gap: 0.4rem; }
.enquiry-form .field--row { grid-template-columns: 1fr; }
@media (min-width: 560px) { .enquiry-form .field--row { grid-template-columns: 1fr 1fr; gap: 1.1rem; } }
.enquiry-form label { font-family: var(--font-body); font-size: 0.85rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink); }
.enquiry-form label .opt { font-weight: 400; letter-spacing: 0.04em; text-transform: none; color: var(--ink-2); }
.enquiry-form input, .enquiry-form select, .enquiry-form textarea {
  width: 100%; font: inherit; font-size: 1.02rem; color: var(--ink);
  background: var(--paper); border: 1px solid var(--line); border-radius: 0;
  padding: 0.75rem 0.9rem; transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.enquiry-form select { appearance: none; -webkit-appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--ink-2) 50%), linear-gradient(135deg, var(--ink-2) 50%, transparent 50%); background-position: calc(100% - 20px) 55%, calc(100% - 14px) 55%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 2.4rem; }
.enquiry-form textarea { min-height: 140px; resize: vertical; }
.enquiry-form input:focus, .enquiry-form select:focus, .enquiry-form textarea:focus { outline: none; border-color: var(--gold-ink); box-shadow: 0 0 0 3px rgba(185, 143, 69, 0.25); }
.enquiry-form .hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.enquiry-form .form-note { font-size: 0.92rem; color: var(--ink-2); }
.form-status { display: none; margin-top: 1rem; padding: 0.9rem 1rem; border: 1px solid var(--line); font-size: 1rem; }
.form-status[data-state="success"] { display: block; border-color: #2F7A4A; background: #EEF6F0; color: #1F5A35; }
.form-status[data-state="error"] { display: block; border-color: #A04B33; background: #FBF0EC; color: #7A3322; }
.form-status[data-state="sending"] { display: block; color: var(--ink-2); }

/* Footer social row (enabled once real URLs exist - see TODO-SOCIAL) */
.footer-social { display: flex; gap: 0.7rem; margin-top: 1.2rem; }
.footer-social a { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border: 1px solid rgba(250, 248, 243, 0.3); color: var(--gold-soft); transition: border-color var(--t-fast), background var(--t-fast); }
.footer-social a:hover { border-color: var(--gold-soft); background: rgba(250, 248, 243, 0.06); }
.footer-social .ic { width: 20px; height: 20px; fill: currentColor; }

/* Testimonials (home) - markup is present but commented out until real quotes exist */
.quote-grid { display: grid; gap: clamp(1.1rem, 2.6vw, 1.8rem); grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); margin-top: 2.6rem; }
.quote { background: var(--paper); border: 1px solid var(--line); padding: clamp(1.4rem, 3vw, 2rem); display: flex; flex-direction: column; gap: 1rem; }
.quote blockquote { font-family: var(--font-display); font-size: clamp(1.2rem, 2vw, 1.4rem); font-style: italic; line-height: 1.5; color: var(--ink); flex: 1; }
.quote blockquote::before { content: "\201C"; color: var(--gold); font-size: 2.4em; line-height: 0; vertical-align: -0.35em; margin-right: 0.15em; }
.quote figcaption { font-family: var(--font-body); font-size: 0.85rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold-ink); }
.quote figcaption span { display: block; font-weight: 400; letter-spacing: 0.04em; text-transform: none; color: var(--ink-2); margin-top: 0.2rem; }

/* --------------------------------------------------------------------------
   12. Footer — dark mega footer  (SHARED — keep in sync across pages)
   -------------------------------------------------------------------------- */
.site-footer {
  background: linear-gradient(180deg, var(--dark-2) 0%, var(--dark) 100%);
  color: rgba(250, 248, 243, 0.78);
  padding-block: clamp(2.8rem, 6vw, 4.5rem) 1.5rem;
  border-top: 2px solid var(--gold);
}
.footer-grid {
  display: grid;
  gap: clamp(1.6rem, 4vw, 2.6rem);
  grid-template-columns: 1fr;
}
@media (min-width: 720px) { .footer-grid { grid-template-columns: 1.5fr 1fr 1fr; } }
@media (min-width: 1000px) { .footer-grid { grid-template-columns: 1.5fr 1fr 1fr 1fr; } }
.site-footer h3 {
  color: var(--gold-soft);
  font-family: var(--font-body);
  font-size: 0.85rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin-bottom: 1.1rem;
  font-weight: 700;
  line-height: 1.8;
}
.site-footer a { color: rgba(250, 248, 243, 0.78); transition: color var(--t-fast); }
.site-footer a:hover { color: var(--gold-soft); }
.site-footer .brand { color: var(--paper-warm); }
.site-footer .brand__name { color: var(--paper-warm); font-size: 1.8rem; }
.site-footer .brand__tag { color: var(--gold-soft); }
.footer-links li { margin-bottom: 0.55rem; font-size: 1.02rem; }
.footer-contact li { display: flex; gap: 0.6rem; align-items: flex-start; margin-bottom: 0.7rem; }
.footer-contact .ic { width: 17px; height: 17px; flex: none; fill: var(--gold-soft); margin-top: 5px; }
.footer-bottom {
  margin-top: 2.6rem; padding-top: 1.3rem;
  border-top: 1px solid var(--line-dark);
  display: flex; flex-wrap: wrap; gap: 0.5rem 1.2rem; justify-content: space-between;
  font-size: 0.88rem; color: rgba(250, 248, 243, 0.55);
}

/* --------------------------------------------------------------------------
   13. Floating WhatsApp button (unmissable on mobile)
   -------------------------------------------------------------------------- */
.wa-float {
  position: fixed;
  right: clamp(14px, 4vw, 26px);
  bottom: max(clamp(14px, 4vw, 26px), env(safe-area-inset-bottom));
  z-index: 120;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0;
  width: 58px; height: 58px;
  border-radius: 999px;   /* the one round element — instantly reads as chat */
  background: var(--ink);
  color: var(--gold-soft);
  box-shadow: 0 10px 26px rgba(19, 19, 19, 0.35);
  overflow: hidden;
  transition: width var(--t-med), transform var(--t-fast), box-shadow var(--t-fast), background var(--t-fast);
  border: 1.5px solid var(--gold);
}
.wa-float:hover { background: var(--dark-2); }
.wa-float .ic { width: 28px; height: 28px; fill: var(--gold-soft); flex: none; margin-left: 13px; }
.wa-float__label { white-space: nowrap; font-weight: 700; font-size: 0.85rem; letter-spacing: 0.1em; text-transform: uppercase; opacity: 0; transition: opacity var(--t-fast); padding-right: 18px; }
.wa-float::before {
  content: "";
  position: absolute; inset: -4px;
  border-radius: inherit;
  border: 2px solid var(--gold);
  opacity: 0.45;
  animation: wa-pulse 2.6s ease-out infinite;
}
@media (min-width: 900px) {
  .wa-float:hover { width: 232px; }
  .wa-float:hover .wa-float__label { opacity: 1; }
}
@keyframes wa-pulse {
  0% { transform: scale(1); opacity: 0.45; }
  70% { transform: scale(1.35); opacity: 0; }
  100% { opacity: 0; }
}

/* --------------------------------------------------------------------------
   14. Misc utilities
   -------------------------------------------------------------------------- */
.stack-sm > * + * { margin-top: 0.6rem; }
.stack > * + * { margin-top: 1.1rem; }
.mt-2 { margin-top: 2rem; }
.pill-row { display: flex; flex-wrap: wrap; gap: 0.9rem; align-items: center; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

/* 404 */
.error-page { text-align: center; }
.error-page .display { font-size: clamp(4rem, 18vw, 9rem); color: var(--gold); line-height: 1; }

/* --------------------------------------------------------------------------
   15. Scroll-reveal (progressive enhancement; JS adds .is-in)
   -------------------------------------------------------------------------- */
/* Content is visible by default; the fade-in only arms when the inline <head>
   script has stamped html.js (so a blocked/failed main.js never hides content). */
html.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 600ms ease, transform 600ms cubic-bezier(.2, .7, .3, 1); }
html.js .reveal.is-in { opacity: 1; transform: none; }

/* --------------------------------------------------------------------------
   16. Reduced motion
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  html.js .reveal { opacity: 1; transform: none; }
  .wa-float::before { display: none; }
  .lightbox { transition: none; }
}
