/* Nasr Jewelers — shared styles (tokens, chrome, common components).
   Page-specific styles live in css/<page>.css. */

:root {
  --green: #053B27;
  --green-2: #0A4A33;
  --green-3: #0D553B;
  --forest: #0d1f17;
  --gold: #C49A56;
  --bronze: #8a6a35;
  --champagne: #E6CC9C;
  --ivory: #FAF8F4;
  --ink: #141414;
  --mist: #CFD9D3;
  --mist-2: #E3EAE6;
  --stone: #EFEBE4;
  --sand: #F4F1EB;
  --muted: #4d4d4d;
  --muted-2: #5f5f5f;
  --gutter: clamp(20px, 5vw, 72px);
  --section-y: clamp(72px, 10vw, 128px);
  --spring: cubic-bezier(.34, 1.45, .5, 1);
  /* Heading font: Figtree 300 (default). Alternative look: "Caprasimo", serif / 400 */
  --hfont: "Figtree", system-ui, sans-serif;
  --hweight: 300;
}

*, *::before, *::after { box-sizing: border-box; }
html, body {
  margin: 0; background: var(--ivory); color: var(--ink);
  font-family: "Figtree", system-ui, sans-serif; font-size: 15px; line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
html { scroll-behavior: smooth; }
a { color: var(--green); text-decoration: none; }
a:hover { color: var(--gold); }
button, input, select, textarea { font: inherit; }
h1, h2, h3 { margin: 0; line-height: 1.12; }
p { margin: 0; }
:focus { outline: none; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
[hidden] { display: none !important; }
#stores, #branches { scroll-margin-top: 96px; }

@keyframes dsweep { 0% { transform: translateX(-130%) skewX(-20deg) } 60%, 100% { transform: translateX(260%) skewX(-20deg) } }
@keyframes twinkle {
  0%, 100% { opacity: .35; transform: translate(-50%, -50%) scale(.55) rotate(0deg) }
  50% { opacity: 1; transform: translate(-50%, -50%) scale(1) rotate(45deg) }
}

/* ── Type & layout utilities ─────────────────────────────────── */
.display { font-family: var(--hfont); font-weight: var(--hweight); letter-spacing: -.02em; }
.eyebrow { font-size: 12px; letter-spacing: .22em; text-transform: uppercase; }
.eyebrow--gold { color: var(--gold); }
.eyebrow--bronze { color: var(--bronze); }
.eyebrow--champagne { color: var(--champagne); }
.micro { font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: #6b6b6b; }
.h-md { font-size: clamp(28px, 3.2vw, 44px); color: var(--ink); }
.h-lg { font-size: clamp(34px, 4.4vw, 60px); line-height: 1.04; text-wrap: balance; }
.muted-15 { font-size: 15px; color: var(--muted); }
.gutter-x { padding: 0 var(--gutter); }
.stack-10, .stack-12, .stack-16 { display: flex; flex-direction: column; }
.stack-10 { gap: 10px; } .stack-12 { gap: 12px; } .stack-16 { gap: 16px; }
.maxw-620 { max-width: 620px; }

/* ── Pills / buttons ─────────────────────────────────────────── */
.pill {
  display: inline-flex; align-items: center; justify-content: center; height: 50px; padding: 0 28px; border-radius: 999px;
  font-size: 13px; letter-spacing: .14em; text-transform: uppercase; font-weight: 500;
  border: 0; cursor: pointer; transition: background .2s, color .2s;
}
.pill--white { background: #fff; color: var(--green); }
.pill--white:hover { background: var(--gold); color: #fff; }
.pill--outline-light { border: 1px solid rgba(255,255,255,.7); color: #fff; background: transparent; }
.pill--outline-light:hover { background: rgba(255,255,255,.14); color: #fff; }
.pill--gold { background: var(--gold); color: #fff; }
.pill--to-white:hover { background: #fff; color: var(--green); }
.pill--green { background: var(--green); color: #fff; }
.pill--green:hover { background: var(--gold); color: #fff; }
.pill--outline { border: 1px solid var(--green); color: var(--green); background: transparent; }
.pill--outline:hover { background: var(--green); color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; pointer-events: auto; }

.chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  height: 36px; padding: 0 16px; border-radius: 999px; font-size: 13px; cursor: pointer;
  border: 1px solid rgba(5,59,39,.2); background: #fff; color: var(--green);
}
.chip[aria-pressed="true"] { background: var(--green); color: #fff; border-color: var(--green); }

.btn-sm { display: inline-flex; align-items: center; height: 42px; padding: 0 20px; border-radius: 999px; font-size: 13px; font-weight: 500; transition: background .2s, color .2s; }
.btn-solid { background: var(--green); color: #fff; }
.btn-solid:hover { background: var(--gold); color: #fff; }
.btn-line { border: 1px solid var(--green); color: var(--green); }
.btn-line:hover { background: var(--green); color: #fff; }

/* ── Image slots ─────────────────────────────────────────────
   Photos are mapped in images/manifest.json ({ "<slot id>": "file.jpg" }).
   Unmapped slots show their caption on a patterned placeholder. */
.slot {
  position: absolute; inset: 0; overflow: hidden;
  display: flex; align-items: center; justify-content: center; text-align: center;
  background-image: repeating-linear-gradient(135deg, rgba(255,255,255,.035) 0 1px, transparent 1px 14px);
}
/* No padding on .slot itself: Safari sized the photo against the padded box, leaving a band under every photo.
   The caption carries its own spacing instead. */
.slot::after {
  content: attr(data-ph); max-width: 34ch; padding: 24px; box-sizing: content-box;
  font-size: 12px; letter-spacing: .12em; text-transform: uppercase; line-height: 1.6;
  color: rgba(255,255,255,.45);
}
.slot--light { background-image: repeating-linear-gradient(135deg, rgba(5,59,39,.04) 0 1px, transparent 1px 14px); }
.slot--light::after { color: rgba(5,59,39,.38); }
.slot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.slot.is-filled::after { content: none; }
.slot img.slide { opacity: 0; transition: opacity 1.6s ease; }
.slot img.slide.is-on { opacity: 1; animation: slideZoom 8s ease-out both; }   /* eases in from a slight zoom */
@keyframes slideZoom { from { transform: scale(1.06); } to { transform: scale(1); } }
@media (prefers-reduced-motion: reduce) { .slot img.slide.is-on { animation: none; } .slot img.slide { transition-duration: .3s; } }

/* ── Full-bleed image sections ───────────────────────────────── */
.bleed { position: relative; overflow: hidden; background: var(--forest); }
.shade { position: absolute; inset: 0; pointer-events: none; }
.shade--bottom { background: linear-gradient(180deg, rgba(3,20,14,.12) 0%, rgba(0,0,0,0) 28%, rgba(3,30,20,.6) 62%, rgba(3,30,20,.86) 100%); }
.shade--left { background: linear-gradient(90deg, rgba(3,30,20,.74) 0%, rgba(3,30,20,.35) 40%, rgba(3,30,20,0) 70%); }
.pair { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); }
.pair > .bleed { width: 100%; aspect-ratio: 1 / 1; max-height: 100svh; }                 /* square photos: shown whole */

/* Page hero (Home, About, Category), in the style of the big fashion houses: a full-screen photo, edge to
   edge, with one short line and one button low and centered. Only the bottom edge is softly darkened. */
.hero { position: relative; height: 100vh; height: 100svh; min-height: 560px; overflow: hidden; background: var(--forest); }
/* Desktops: follow the real window height. In macOS full screen, Safari's toolbar slides away and the window grows,
   but svh keeps the smaller size, which left a strip of the next section showing under the photo. */
@media (hover: hover) and (pointer: fine) { .hero { height: 100dvh; } }
.hero .shade { background: linear-gradient(0deg, rgba(3,20,14,.55) 0%, rgba(3,20,14,.22) 16%, rgba(3,20,14,0) 32%); }
.hero-copy {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
  padding: 0 var(--gutter) calc(clamp(64px, 9vh, 96px) + env(safe-area-inset-bottom, 0px));
  display: flex; flex-direction: column; align-items: center; gap: 20px; text-align: center; color: #fff; pointer-events: none;
}
.hero-copy a, .hero-copy button { pointer-events: auto; }
/* A bright photo (manifest "tone": "light") swaps the white text for green; the change crossfades with the photo. */
.hero .shade, .hero-title, .hero-copy .pill { transition: opacity 1.2s ease, color 1.2s ease, background-color 1.2s ease, text-shadow 1.2s ease; }
.hero.is-light .shade { opacity: 0; }
.hero-rating { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; letter-spacing: .06em; color: #fff; text-shadow: 0 1px 12px rgba(0,0,0,.4); transition: color 1.2s ease; }
.hero-rating:hover { color: var(--champagne); }
.hero-rating:empty { display: none; }
.hero.is-light .hero-rating { color: var(--green); text-shadow: none; }
.hero.is-light .hero-title { color: var(--green); text-shadow: 0 1px 18px rgba(255,255,255,.55); }
.hero.is-light .pill--white { background: var(--green); color: #fff; }
.hero.is-light .pill--white:hover { background: var(--gold); }
.hero-title {
  font-size: clamp(21px, 1.9vw, 28px); font-weight: 400; line-height: 1.25; letter-spacing: .01em; max-width: 30ch; text-wrap: balance; color: #fff;
  text-shadow: 0 1px 2px rgba(0,0,0,.35), 0 2px 22px rgba(0,0,0,.45);
}

/* Feature break: full-bleed image with copy on the left */
.feature { aspect-ratio: 16 / 10; max-height: 100svh; min-height: 500px; width: 100%; }   /* 2560×1600 photos: shown whole up to one screen tall */
.feature-copy {
  position: absolute; left: clamp(24px, 5vw, 72px); right: 24px; top: 50%; transform: translateY(-50%);
  display: flex; flex-direction: column; align-items: flex-start; gap: 18px; color: #fff; max-width: 520px; pointer-events: none;
}
.feature-copy .pill { pointer-events: auto; }
.feature-title { font-size: clamp(34px, 4.4vw, 60px); line-height: 1.05; color: #fff; text-wrap: balance; }

/* Trust bar (◆ points) */
.trust { display: flex; flex-wrap: wrap; gap: 12px 40px; padding: 24px 32px; border-radius: 999px; border: 1px solid rgba(196,154,86,.35); }
.trust span { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--mist-2); }
.trust b { color: var(--gold); font-weight: 400; }
.trust--light { border-color: rgba(196,154,86,.45); }
.trust--light span { color: var(--muted); }
@media (max-width: 640px) { .trust { border-radius: 28px; } }

/* ── Product cards (Home, Category, Product page) ──────────────
   Real product photos are mostly packshots on white: "multiply" blends the white into the card tint. */
.products { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: 40px 16px; }
.product { display: flex; flex-direction: column; gap: 14px; color: var(--ink); min-width: 0; }
.product:hover { color: var(--ink); }
.product-media { position: relative; width: 100%; aspect-ratio: 1/1; border-radius: 24px; overflow: hidden; background: #F3F0EA; transition: box-shadow .25s; }
.product-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: 8%; mix-blend-mode: multiply; transition: transform .6s ease; }
.product:hover .product-media { box-shadow: 0 0 0 2px var(--gold); }
.product:hover .product-media img { transform: scale(1.04); }
.product-badge {
  position: absolute; top: 14px; left: 14px; padding: 5px 12px; border-radius: 999px; background: rgba(255,255,255,.92);
  font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--green); pointer-events: none;
}
.product-info { display: flex; flex-direction: column; gap: 4px; padding: 0 4px; }
.product-designer { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--bronze); }
.product-name { font-family: inherit; font-size: 16px; font-weight: 500; letter-spacing: 0; color: var(--ink); line-height: 1.35; }
.product:hover .product-name { color: var(--green); }
.product-detail { font-size: 14px; color: var(--muted-2); }
.product-price { margin-top: 4px; font-size: 15px; font-weight: 500; color: var(--green); }
.product-price s { color: #8a8a8a; font-weight: 400; margin-right: 4px; }
.product-price.is-sold { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: #8a8a8a; }
.more { display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 8px var(--gutter) 0; }
.more-count { font-size: 13px; color: var(--muted); }
.enquire {
  align-self: flex-start; display: inline-flex; align-items: center; gap: 10px; height: 42px; padding: 0 20px;
  border-radius: 999px; border: 1px solid var(--green); color: var(--green);
  font-size: 12px; letter-spacing: .14em; text-transform: uppercase; font-weight: 500; transition: background .2s, color .2s;
}
.enquire:hover { background: var(--green); color: #fff; }
.empty { padding: 48px; border-radius: 32px; background: #fff; display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.empty-title { font-size: 20px; }
.empty-text { font-size: 15px; color: var(--muted-2); max-width: 56ch; }
@media (max-width: 520px) { .empty { padding: 32px 24px; } }

/* ── Testimonials ───────────────────────────────────────────── */
/* ── Google reviews (Home, About, store cards) ─────────────────── */
.stars { display: inline-flex; gap: 2px; color: var(--gold); line-height: 0; }
.stars svg { width: 16px; height: 16px; fill: currentColor; }
.stars--lg svg { width: 22px; height: 22px; }
.review-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 16px; }
.review {
  margin: 0; padding: clamp(24px, 3vw, 36px); border-radius: 28px; background: #fff; border: 1px solid rgba(5,59,39,.08);
  box-shadow: 0 18px 40px rgba(5,59,39,.06); display: flex; flex-direction: column; gap: 18px;
}
.review blockquote { margin: 0; flex: 1; font-family: "Cormorant Garamond", serif; font-size: clamp(21px, 1.9vw, 25px); line-height: 1.32; color: var(--green); text-wrap: pretty; }
.review figcaption { display: flex; flex-direction: column; gap: 2px; padding-top: 16px; border-top: 1px solid rgba(196,154,86,.3); }
.review figcaption b { font-size: 15px; font-weight: 500; color: var(--ink); }
.review figcaption span { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--bronze); }
.branch-rating { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 500; color: var(--green); }
.branch-rating:hover { color: var(--gold); }
.branch-tag {
  margin-left: 10px; padding: 3px 10px; border-radius: 999px; vertical-align: middle; background: var(--sand); color: var(--bronze);
  font-family: "Figtree", sans-serif; font-size: 11px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase;
}

.quote { margin: 0; padding: 28px 0; border-top: 1px solid rgba(5,59,39,.12); display: flex; flex-direction: column; gap: 12px; }
.quote blockquote { margin: 0; font-family: "Cormorant Garamond", serif; font-size: clamp(22px, 2.2vw, 28px); line-height: 1.3; color: var(--green); }
.quote figcaption { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--bronze); margin: 0; }

/* ── Header / glass nav ──────────────────────────────────────── */
.site-header {
  position: fixed; top: 18px; left: 0; right: 0; z-index: 50;
  display: flex; justify-content: center; padding: 0 16px; pointer-events: none;
}
.glass-nav {
  pointer-events: auto; position: relative; width: min(1120px, 100%);
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  padding: 6px; border-radius: 999px;
  background-color: rgba(255,255,255,.62);
  background-image:
    conic-gradient(from 200deg at 22% 40%, rgba(255,255,255,0), rgba(214,228,255,.32), rgba(255,236,248,.26), rgba(255,255,255,0), rgba(222,255,240,.26), rgba(255,248,226,.3), rgba(255,255,255,0)),
    linear-gradient(115deg, rgba(255,255,255,.85) 0%, rgba(236,241,247,.5) 38%, rgba(255,255,255,.9) 52%, rgba(232,238,245,.45) 70%, rgba(255,255,255,.8) 100%);
  backdrop-filter: blur(20px) saturate(1.7) brightness(1.06);
  -webkit-backdrop-filter: blur(20px) saturate(1.7) brightness(1.06);
  border: 1px solid rgba(255,255,255,.95);
  box-shadow: inset 0 1px 0 #fff, inset 0 -1px 0 rgba(5,59,39,.06), 0 0 0 .5px rgba(196,154,86,.35), 0 14px 40px rgba(5,59,39,.14);
}
.nav-side { position: relative; z-index: 1; display: flex; align-items: center; gap: 2px; min-width: 0; }
.nav-side--end { justify-content: flex-end; }
.nav-item {
  display: flex; align-items: center; gap: 10px; height: 44px; padding: 0 14px; flex-shrink: 0;
  white-space: nowrap; border-radius: 999px; color: var(--ink);
  font-size: 13px; letter-spacing: .1em; text-transform: uppercase; font-weight: 500;
}
.nav-item:hover { color: var(--ink); }
.nav-btn { border: 0; background: transparent; cursor: pointer; letter-spacing: .14em; }
.nav-logo { position: relative; z-index: 1; padding: 0 22px; color: var(--green); }
.logo-lockup { display: flex; align-items: center; gap: 11px; }
.logo-mark { width: 32px; height: 32px; flex: none; display: block; filter: drop-shadow(0 1px 1px rgba(5,59,39,.18)); }
.logo { display: flex; flex-direction: column; align-items: center; line-height: 1; }
.logo-word {
  font-family: "Cormorant Garamond", serif; font-size: 25px; font-weight: 600;
  letter-spacing: .34em; margin-right: -.34em; color: var(--green);
}
.logo-sub { font-size: 7.5px; letter-spacing: .52em; margin-right: -.52em; margin-top: 3px; color: var(--bronze); font-weight: 500; }
@media (max-width: 820px) { .wide-only { display: none; } }
@media (max-width: 420px) { .nav-logo { padding: 0 12px; } .logo-lockup { gap: 8px; } .logo-mark { width: 27px; height: 27px; } }

/* Faceted diamond hover highlight (driven by js/site.js) */
.nav-hl {
  position: absolute; top: 6px; bottom: 6px; left: 0; width: 0; opacity: 0; z-index: 0;
  overflow: hidden; pointer-events: none;
  clip-path: polygon(20px 0, calc(100% - 20px) 0, 100% 50%, calc(100% - 20px) 100%, 20px 100%, 0 50%);
  transition: left .5s var(--spring), width .5s var(--spring), opacity .25s ease;
  box-shadow: inset 0 1px 1px #fff, inset 0 -2px 6px rgba(150,170,200,.35), 0 0 0 .5px rgba(196,154,86,.55), 0 4px 14px rgba(5,59,39,.12);
}
.nav-hl.is-on { opacity: 1; }
.nav-hl svg.facets { position: absolute; inset: 0; width: 100%; height: 100%; }
.nav-hl .sweep {
  position: absolute; top: 0; bottom: 0; left: 0; width: 45%;
  background: linear-gradient(90deg, rgba(255,255,255,0), rgba(255,255,255,.9), rgba(255,255,255,0));
  animation: dsweep 2.6s ease-in-out infinite;
}
.nav-hl .glint {
  position: absolute; top: 28%; width: 14px; height: 14px;
  animation: twinkle 1.6s ease-in-out infinite; filter: drop-shadow(0 0 3px rgba(255,255,255,.9));
}
@media (prefers-reduced-motion: reduce) {
  .nav-hl .sweep, .nav-hl .glint { display: none; }
  html { scroll-behavior: auto; }
}

/* ── Overlays: scrim + menu drawer ───────────────────────────── */
.scrim {
  position: fixed; inset: 0; z-index: 60; background: rgba(5,59,39,.28);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.drawer {
  position: fixed; top: 12px; left: 12px; bottom: 12px; z-index: 65;
  width: min(440px, calc(100vw - 24px)); border-radius: 32px; padding: 28px 32px;
  display: flex; flex-direction: column; gap: 32px; overflow: auto;
  background: linear-gradient(160deg, rgba(255,255,255,.98), rgba(240,245,250,.94) 45%, rgba(255,255,255,.98));
  border: 1px solid #fff; box-shadow: 0 0 0 .5px rgba(196,154,86,.4), 0 30px 60px rgba(5,59,39,.2);
}
.drawer-head { display: flex; justify-content: space-between; align-items: center; }
.drawer-head .micro { letter-spacing: .2em; }
.drawer-close {
  border: 0; background: transparent; cursor: pointer; display: flex; align-items: center; gap: 8px;
  color: var(--ink); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; padding: 8px; border-radius: 999px;
}
.drawer-depts { display: flex; flex-direction: column; gap: 4px; }
.drawer-depts a {
  display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 0;
  font-size: 32px; font-weight: 300; letter-spacing: -.01em; line-height: 1.2; color: var(--ink);
  transition: color .2s, padding-left .25s;
}
.drawer-depts a:hover { color: var(--green); padding-left: 8px; }
.drawer-depts a[aria-current="page"] { color: var(--gold); }
.drawer-depts svg { flex: none; }
.drawer-foot { margin-top: auto; display: flex; flex-direction: column; gap: 12px; padding-top: 24px; border-top: 1px solid rgba(5,59,39,.12); }
.drawer-foot a { font-size: 15px; color: var(--ink); }
.drawer-foot a:hover { color: var(--gold); }
@media (max-width: 420px) { .drawer { padding: 24px; } .drawer-depts a { font-size: 27px; } }

/* ── Footer ─────────────────────────────────────────────────── */
.footer { background: var(--green); color: var(--mist); padding: 64px var(--gutter) 40px; display: flex; flex-direction: column; gap: 48px; }
.footer-top { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 40px; }
.footer-lockup { display: flex; align-items: center; gap: 16px; align-self: flex-start; }
.footer-mark { width: 58px; height: 58px; flex: none; display: block; }
.footer-logo { display: flex; flex-direction: column; align-items: flex-start; line-height: 1; gap: 8px; }
.footer-word { font-family: "Cormorant Garamond", serif; font-size: 44px; font-weight: 600; letter-spacing: .34em; color: var(--gold); }
.footer-sub { font-size: 10px; letter-spacing: .52em; color: var(--mist); font-weight: 500; }
.footer-cols { display: flex; gap: 40px 64px; flex-wrap: wrap; }
.footer-col { display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.footer-col a { color: var(--mist); }
.footer-col a:hover { color: #fff; }
.footer-head { font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); }
.footer-visit { gap: 16px; color: var(--mist); }
.footer-store { display: flex; flex-direction: column; gap: 4px; line-height: 1.5; }
.footer-col a.footer-city { color: #fff; font-weight: 500; }
.footer-col a.footer-city:hover { color: var(--gold); }
.footer-hours { line-height: 1.5; }
.footer-legal { font-size: 12px; color: #8FA79A; }

/* Spam trap for the Netlify forms: hidden from people (and screen readers), bots fill it in */
.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
