/* =========================================================
   MANAKA JEWELLERS — STYLESHEET
   Palette:  maroon #6d1b2e / #4a1220, gold #c9a24a / #8a6a1f,
             cream #faf6f0, ink #2b2420, muted #6f6259
   Type:     "Playfair Display" (display serif) + "Jost" (body)
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,500;0,600;0,700;1,500&family=Jost:wght@300;400;500;600&display=swap');

:root {
  --maroon:        #6d1b2e;
  --maroon-dark:   #4a1220;
  --maroon-tint:   #f7ecee;
  --gold:          #c9a24a;
  --gold-dark:     #8a6a1f;
  --silver:        #b7c1c9;
  --silver-dark:   #7c8791;
  --cream:         #faf6f0;
  --cream-alt:     #f3ece1;
  --ink:           #2b2420;
  --muted:         #6f6259;
  --line:          #e7ddcd;
  --white:         #ffffff;
  --radius-sm:     8px;
  --radius-md:     16px;
  --radius-lg:     28px;
  --shadow-sm:     0 2px 10px rgba(74,18,32,0.06);
  --shadow-md:     0 14px 40px rgba(74,18,32,0.12);
  --ease:          cubic-bezier(.22,.68,0,1);
  /* Live header measurements (kept in sync with JS via ResizeObserver so the
     navbar + rate bar never drift out of position on any screen size,
     zoom level, or after content/font reflow). Fallback values below are
     only used for the first paint before JS runs. */
  --navbar-h:      124px;
  --ratebar-h:     45px;
  --header-h:      calc(var(--navbar-h) + var(--ratebar-h));
}

/* ---------- Reset ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 108%; overflow-x: hidden; }
body {
  margin: 0;
  font-family: 'Jost', sans-serif;
  font-weight: 400;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  width: 100%;
}
/* Any section/anchor target lands clear of the sticky navbar + rate bar
   instead of being hidden underneath it. */
[id] { scroll-margin-top: calc(var(--header-h) + 14px); }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4, h5 {
  font-family: 'Playfair Display', serif;
  font-weight: 600;
  color: var(--maroon-dark);
  line-height: 1.18;
  margin: 0;
}
p { margin: 0; color: var(--muted); }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input, textarea { font-family: inherit; font-size: 1rem; }
:focus-visible { outline: 2px solid var(--gold-dark); outline-offset: 3px; }
.sr-only { position: absolute; left: -9999px; }

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 28px;
}

/* ---------- Eyebrow / flourish ---------- */
.eyebrow {
  display: inline-block;
  font-family: 'Jost', sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-dark);
}
.flourish {
  display: block;
  width: 92px;
  height: 20px;
  margin: 10px 0 4px;
  fill: none;
  stroke: var(--gold);
  stroke-width: 1.4;
  stroke-linecap: round;
}
.flourish circle { fill: var(--gold); stroke: none; }
.section-head.center .flourish { margin-left: auto; margin-right: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 30px;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
  white-space: nowrap;
}
.btn-primary {
  background: var(--maroon);
  color: var(--white);
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover { background: var(--maroon-dark); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-outline {
  background: transparent;
  color: var(--maroon-dark);
  border: 1.5px solid var(--maroon-dark);
}
.btn-outline:hover { background: var(--maroon-dark); color: var(--white); transform: translateY(-2px); }
.btn-gold {
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: var(--maroon-dark);
  font-weight: 600;
  box-shadow: var(--shadow-sm);
}
.btn-gold:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-sm { padding: 10px 20px; font-size: 0.82rem; }
.btn-block { width: 100%; }

/* ================= NAVBAR ================= */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 246, 240, 0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: box-shadow .3s var(--ease), border-color .3s var(--ease), background .3s var(--ease), transform .4s var(--ease);
  will-change: transform;
}
.navbar.scrolled {
  background: rgba(250, 246, 240, 0.98);
  border-bottom-color: var(--line);
  box-shadow: 0 4px 20px rgba(74,18,32,0.06);
}
/* Navbar hides on scroll-down, reveals on scroll-up (see app.js); the rate
   bar slides up to top:0 in sync so there's no empty gap left behind. */
body.nav-hidden .navbar { transform: translateY(-100%); }
body.nav-hidden .rate-bar { top: 0; }
.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 18px;
  padding-bottom: 18px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}
.brand-emblem {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  transition: transform .35s var(--ease);
}
.brand:hover .brand-emblem { transform: rotate(-6deg) scale(1.05); }
.brand-text { display: flex; flex-direction: column; line-height: 1.25; }
.brand-name {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 1.34rem;
  color: var(--maroon-dark);
}
.brand-tag {
  font-size: 0.76rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-dark);
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 34px;
  margin: 0 auto;
}
.nav-links a {
  font-size: 1.04rem;
  color: var(--ink);
  position: relative;
  padding: 4px 0;
  transition: color .2s var(--ease);
}
.nav-links a::after {
  content: '';
  position: absolute;
  left: 0; right: 100%;
  bottom: -2px;
  height: 2px;
  background: var(--gold-dark);
  transition: right .25s var(--ease);
}
.nav-links a:hover, .nav-links a.active { color: var(--maroon-dark); }
.nav-links a:hover::after, .nav-links a.active::after { right: 0; }
.nav-actions { display: flex; align-items: center; gap: 16px; }

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 30px;
  height: 30px;
}
.hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--maroon-dark);
  border-radius: 2px;
  transition: transform .3s var(--ease), opacity .3s var(--ease);
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  display: none;
  flex-direction: column;
  position: fixed;
  inset: 0;
  top: var(--header-h);
  background: var(--cream);
  padding: 30px 28px;
  gap: 6px;
  transform: translateY(-12px);
  opacity: 0;
  pointer-events: none;
  transition: transform .3s var(--ease), opacity .3s var(--ease);
  z-index: 90;
}
.mobile-menu.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
.mobile-menu a {
  padding: 14px 4px;
  font-size: 1.05rem;
  border-bottom: 1px solid var(--line);
}
.mobile-menu a.btn { border-bottom: none; text-align: center; margin-top: 14px; }

/* ================= HERO ================= */
.hero {
  position: relative;
  overflow: hidden;
  padding: 70px 0 90px;
}
.hero .container {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 56px;
  position: relative;
  z-index: 2;
}
.hero-copy h1 {
  font-size: clamp(2.4rem, 4.4vw, 3.6rem);
  margin-top: 14px;
}
.hero-copy > p { margin-top: 20px; max-width: 46ch; font-size: 1.02rem; }
.hero-actions { display: flex; gap: 16px; margin-top: 30px; flex-wrap: wrap; }
.trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 28px;
  font-size: 0.85rem;
  color: var(--maroon-dark);
  font-weight: 500;
}
.trust-badge svg { width: 20px; height: 20px; color: var(--gold-dark); }

.hero-visual { position: relative; }
.hero-visual .frame {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  aspect-ratio: 4/5;
}
.hero-visual .frame img { width: 100%; height: 100%; object-fit: cover; }
.float-card {
  position: absolute;
  left: -30px;
  bottom: 30px;
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 230px;
}
.float-card svg { width: 26px; height: 26px; color: var(--gold-dark); flex-shrink: 0; }
.float-card span { display: flex; flex-direction: column; font-size: 0.8rem; color: var(--muted); }
.float-card strong { font-family: 'Playfair Display', serif; font-size: 0.92rem; color: var(--maroon-dark); }

.hero-decor { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.hero-decor .blob {
  position: absolute;
  top: -12%; right: -8%;
  width: 520px; height: 520px;
  background: radial-gradient(circle, rgba(201,162,74,0.18), rgba(201,162,74,0) 70%);
  border-radius: 50%;
}
.hero-decor .arc {
  position: absolute;
  border: 1.5px solid rgba(109,27,46,0.14);
  border-radius: 50%;
}
.hero-decor .arc-1 { width: 640px; height: 640px; top: -220px; left: -160px; }
.hero-decor .arc-2 { width: 420px; height: 420px; bottom: -160px; right: 6%; }
.hero-decor .sparkle {
  position: absolute;
  color: var(--gold);
  opacity: 0.75;
  animation: twinkle 3.4s ease-in-out infinite;
}
.hero-decor .particle {
  position: absolute;
  background: var(--maroon);
  border-radius: 50%;
  opacity: 0.35;
  animation: float 6s ease-in-out infinite;
}
@keyframes twinkle {
  0%, 100% { opacity: 0.25; transform: scale(0.85) rotate(0deg); }
  50% { opacity: 0.9; transform: scale(1.1) rotate(20deg); }
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-18px); }
}

/* ================= SECTIONS ================= */
.section { padding: 88px 0; }
.section-alt { background: var(--cream-alt); }
.section-head { max-width: 640px; }
.section-head.center { max-width: 620px; margin: 0 auto; text-align: center; }
.section-head h2 { font-size: clamp(1.9rem, 3vw, 2.5rem); margin-top: 12px; }
.section-head p { margin-top: 16px; font-size: 1rem; }

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.img-col img, .frame img { border-radius: var(--radius-lg); box-shadow: var(--shadow-md); width: 100%; }

/* ---------- Homepage collection marquee ---------- */
.collection-marquee {
  position: relative;
  margin-top: 46px;
  width: 100%;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 34px, #000 calc(100% - 34px), transparent 100%);
  mask-image: linear-gradient(to right, transparent 0, #000 34px, #000 calc(100% - 34px), transparent 100%);
}
.collection-marquee-track {
  display: flex;
  width: max-content;
  gap: 36px;
  padding: 10px 4px 14px;
  animation: collection-marquee-scroll 46s linear infinite;
}
.collection-marquee:hover .collection-marquee-track,
.collection-marquee:focus-within .collection-marquee-track { animation-play-state: paused; }
@keyframes collection-marquee-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.collection-marquee-track .product-card { flex: 0 0 auto; width: clamp(220px, 24vw, 300px); }
.collection-marquee-track .product-media img { cursor: zoom-in; }
.collection-cta { margin-top: 40px; display: flex; justify-content: center; }
.product-media { position: relative; }
.product-media img { will-change: transform; }
@media (prefers-reduced-motion: reduce) {
  .collection-marquee-track { animation: none; }
}

/* ---------- Marquee image lightbox ---------- */
.image-lightbox-backdrop {
  position: fixed; inset: 0; z-index: 210;
  background: rgba(43,36,32,0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0; visibility: hidden;
  transition: opacity .4s var(--ease), visibility .4s var(--ease);
}
.image-lightbox-backdrop.open { opacity: 1; visibility: visible; }
.image-lightbox {
  position: fixed; top: 50%; left: 50%; z-index: 211;
  transform: translate3d(-50%, -50%, 0) scale(.75);
  opacity: 0; visibility: hidden;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--white);
  box-shadow: var(--shadow-md), 0 0 0 1.5px rgba(201,162,74,0.55), 0 0 54px -6px rgba(201,162,74,0.6);
  transition: transform .4s var(--ease), opacity .4s var(--ease), visibility .4s var(--ease);
  will-change: transform;
  max-width: 92vw; max-height: 86vh;
}
.image-lightbox.open { transform: translate3d(-50%, -50%, 0) scale(1); opacity: 1; visibility: visible; }
.image-lightbox img { display: block; width: 100%; height: 100%; object-fit: cover; }
@media (prefers-reduced-motion: reduce) {
  .image-lightbox-backdrop, .image-lightbox { transition: none; }
}
@media (max-width: 640px) {
  .collection-marquee-track { gap: 20px; }
}
.product-card {
  position: relative;
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.product-card:hover {
  transform: translateY(-10px) scale(1.015);
  box-shadow: var(--shadow-md), 0 0 0 1.5px rgba(201,162,74,0.55), 0 0 36px -4px rgba(201,162,74,0.55);
}
.product-media { aspect-ratio: 1/1; overflow: hidden; }
.product-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.product-card:hover .product-media img { transform: scale(1.12); }
/* Homepage image-only tiles use 3:4 portrait source photos instead of the
   square crop used elsewhere (full collections page, quick view). */
.product-card.image-only .product-media { aspect-ratio: 3/4; }
.product-body { padding: 24px 24px 26px; }
.product-body h3 {
  font-size: 1.12rem; text-transform: uppercase; letter-spacing: .01em;
  position: relative; display: inline-block; padding-bottom: 10px;
}
.product-body h3::after {
  content: ''; position: absolute; left: 0; bottom: 0; height: 2px; width: 26px;
  background: linear-gradient(90deg, var(--gold-dark), var(--gold));
  transition: width .4s var(--ease);
}
.product-card:hover .product-body h3::after { width: 100%; }

/* ---------- Quick-view overlay icon (mirrors the "View Details" button;
   both share .quick-view-btn so the existing click handler picks up either) ---------- */
.product-media-quickview {
  position: absolute; top: 50%; left: 50%; z-index: 3;
  transform: translate(-50%, -50%) scale(.6);
  width: 52px; height: 52px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.95);
  color: var(--maroon-dark);
  box-shadow: var(--shadow-md);
  opacity: 0;
  transition: opacity .4s var(--ease), transform .4s var(--ease), background .25s var(--ease), color .25s var(--ease);
}
.product-media-quickview svg { width: 22px; height: 22px; }
.product-card:hover .product-media-quickview { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.product-media-quickview:hover { background: var(--maroon-dark); color: var(--white); }
@media (prefers-reduced-motion: reduce) {
  .product-body h3::after { transition: none; }
  .product-media-quickview { transition: none; }
}
@media (hover: none), (pointer: coarse) {
  /* No hover state on touch — keep the icon subtly visible instead of permanently hidden */
  .product-media-quickview { opacity: .92; transform: translate(-50%, -50%) scale(1); background: rgba(255,255,255,0.85); }
}

/* ---------- 3D tilt-in reveal for the full collections page grid (uses
   the grid's perspective) ---------- */
.full-collection-grid .product-card.reveal { transform: translateY(26px) rotateX(14deg); transform-origin: bottom center; }
.full-collection-grid .product-card.reveal.is-visible { transform: none; }
@media (prefers-reduced-motion: reduce) {
  .full-collection-grid .product-card.reveal { transform: none; }
}

/* ---------- Full collections page grid ---------- */
.full-collection-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 36px;
  margin-top: 46px;
  perspective: 1600px;
}
.product-price {
  display: block;
  margin-top: 8px;
  font-family: 'Playfair Display', serif;
  font-weight: 600;
  color: var(--gold-dark);
  font-size: 1.1rem;
}
.product-actions { display: flex; gap: 10px; margin-top: 18px; flex-wrap: wrap; }
.corner-ornament {
  position: absolute;
  width: 30px; height: 30px;
  stroke: var(--gold);
  stroke-width: 1.4;
  fill: none;
  opacity: 0.8;
  z-index: 2;
}
.corner-ornament.tl { top: 10px; left: 10px; }
.corner-ornament.br { bottom: 10px; right: 10px; transform: rotate(180deg); }

/* ---------- Service cards ---------- */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-top: 46px; }
.service-card {
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transform-style: preserve-3d;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md), 0 0 0 1px rgba(201,162,74,0.35), 0 0 26px -8px rgba(201,162,74,0.4);
}
.service-media { aspect-ratio: 16/10; overflow: hidden; }
.service-media img { width: 100%; height: 100%; object-fit: cover; }
.service-body { padding: 26px 26px 28px; }
.service-icon {
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--maroon-tint);
  color: var(--maroon);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}
.service-icon svg { width: 22px; height: 22px; }
.service-body h3 { font-size: 1.18rem; }
.service-body p { margin-top: 10px; font-size: 0.94rem; }
.service-body .btn { margin-top: 18px; }

/* ---------- Stats ---------- */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 50px;
  text-align: center;
}
.stat-number {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.4rem, 4vw, 3.2rem);
  font-weight: 700;
  color: var(--maroon-dark);
}
.stat-label {
  margin-top: 8px;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold-dark);
}

/* ---------- Gallery collage ---------- */
.gallery-collage {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 16px;
}
.gallery-collage img {
  width: 100%; height: 100%;
  object-fit: cover;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}
.gallery-collage .tall { grid-row: 1 / 3; height: 100%; }
.gallery-collage img:not(.tall) { height: 100%; }

/* ---------- Gift scheme ---------- */
.scheme-gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  margin-top: 46px;
}
.scheme-gallery-item {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.scheme-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 3/4;
  transition: transform .6s var(--ease);
}
.scheme-gallery-item:hover img { transform: scale(1.04); }
.scheme-gallery-item::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(74,18,32,0.55) 0%, rgba(74,18,32,0) 38%);
  pointer-events: none;
}
.scheme-gallery-tag {
  position: absolute; left: 20px; bottom: 18px; z-index: 1;
  display: flex; align-items: center; gap: 8px;
  color: var(--white); font-size: 0.86rem; letter-spacing: .04em;
}
.scheme-gallery-tag svg { width: 18px; height: 18px; stroke: var(--gold); }
.scheme-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  margin-top: 46px;
}
.scheme-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 26px 22px;
  text-align: center;
  transform-style: preserve-3d;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.scheme-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md), 0 0 0 1px rgba(201,162,74,0.35), 0 0 26px -8px rgba(201,162,74,0.4);
  border-color: var(--gold);
}
.scheme-card-icon {
  width: 52px; height: 52px; margin: 0 auto 16px;
  border-radius: 50%;
  background: var(--maroon-tint);
  color: var(--maroon);
  display: flex; align-items: center; justify-content: center;
}
.scheme-card-icon svg { width: 24px; height: 24px; }
.scheme-card h3 { font-size: 1.02rem; }
.scheme-card p { margin-top: 10px; font-size: 0.88rem; }
.scheme-cta {
  margin-top: 46px;
  display: flex; align-items: center; justify-content: center; gap: 16px; flex-wrap: wrap;
}

/* ================= CTA BAND ================= */
.cta-band {
  background: linear-gradient(120deg, var(--maroon-dark), var(--maroon));
  padding: 60px 0;
}
.cta-band .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
}
.cta-band h2 { color: var(--white); font-size: clamp(1.5rem, 2.6vw, 2rem); }
.cta-band p { color: rgba(255,255,255,0.78); margin-top: 8px; }

/* ================= FOOTER ================= */
.site-footer { background: var(--maroon-dark); color: rgba(255,255,255,0.72); padding: 72px 0 0; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.3fr;
  gap: 40px;
  padding-bottom: 50px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.footer-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.footer-brand img { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; }
.footer-brand span {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--white);
}
.footer-col p { color: rgba(255,255,255,0.65); font-size: 0.9rem; }
.footer-bsi-logo { max-width: 100px; height: auto; margin-bottom: 16px; display: block; }
.footer-col h5 {
  color: var(--white);
  font-family: 'Jost', sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.footer-col ul li { margin-bottom: 12px; }
.footer-col ul a { font-size: 0.92rem; transition: color .2s var(--ease); }
.footer-col ul a:hover { color: var(--gold); }
.footer-contact-list li { font-size: 0.92rem; line-height: 1.5; }

.social-row { display: flex; gap: 12px; margin-top: 18px; }
.social-row a {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.25);
  display: flex; align-items: center; justify-content: center;
  transition: background .2s var(--ease), border-color .2s var(--ease);
}
.social-row svg { width: 16px; height: 16px; }
.social-row a:hover { background: var(--gold); border-color: var(--gold); color: var(--maroon-dark); }

.newsletter-form { display: flex; gap: 8px; margin-top: 16px; }
.newsletter-form input {
  flex: 1;
  padding: 12px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.22);
  background: rgba(255,255,255,0.06);
  color: var(--white);
  font-size: 0.88rem;
}
.newsletter-form input::placeholder { color: rgba(255,255,255,0.5); }
.newsletter-form button {
  padding: 12px 20px;
  border-radius: 999px;
  background: var(--gold);
  color: var(--maroon-dark);
  font-weight: 600;
  font-size: 0.88rem;
  transition: background .2s var(--ease);
}
.newsletter-form button:hover { background: var(--gold-dark); color: var(--white); }
.newsletter-msg { min-height: 18px; margin-top: 10px; font-size: 0.82rem; color: var(--gold); opacity: 0; transition: opacity .2s var(--ease); }
.newsletter-msg.show { opacity: 1; }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: 24px 0;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.55);
}
.legal-links { display: flex; gap: 20px; }
.legal-links a:hover { color: var(--gold); }
.footer-credit { opacity: .7; }
.footer-credit:hover { opacity: 1; }

/* ================= CONTACT PAGE ================= */
.card-panel {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-sm);
}
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block;
  margin-bottom: 8px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--maroon-dark);
}
.form-group input, .form-group textarea {
  width: 100%;
  padding: 13px 16px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--line);
  background: var(--cream);
  color: var(--ink);
  transition: border-color .2s var(--ease);
}
.form-group textarea { min-height: 120px; resize: vertical; }
.form-group input:focus, .form-group textarea:focus { border-color: var(--gold-dark); }
.form-error { display: none; margin-top: 6px; font-size: 0.78rem; color: #b23a3a; }
.form-group.invalid input, .form-group.invalid textarea { border-color: #b23a3a; }
.form-group.invalid .form-error { display: block; }

.form-success {
  display: none;
  align-items: center;
  gap: 14px;
  padding: 22px;
  border-radius: var(--radius-md);
  background: var(--maroon-tint);
  color: var(--maroon-dark);
  font-size: 0.95rem;
}
.form-success.show { display: flex; }
.form-success svg { width: 26px; height: 26px; flex-shrink: 0; color: var(--gold-dark); }

.info-list { display: flex; flex-direction: column; gap: 22px; }
.info-item { display: flex; gap: 16px; align-items: flex-start; }
.info-item svg { width: 24px; height: 24px; color: var(--gold-dark); flex-shrink: 0; margin-top: 2px; }
.info-item h4 { font-size: 1rem; margin-bottom: 4px; }
.info-item p { font-size: 0.92rem; }

.map-embed {
  border-radius: var(--radius-md);
  height: 420px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}
.map-embed iframe { width: 100%; height: 100%; border: 0; display: block; }
.contact-quick-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
@media (max-width: 640px) {
  .map-embed { height: 300px; }
}

/* ================= LEGAL PAGES ================= */
.legal-hero {
  padding: 60px 0 30px;
  text-align: center;
  background: var(--cream-alt);
}
.legal-hero h1 { font-size: clamp(2rem, 3.4vw, 2.7rem); margin-top: 10px; }
.legal-hero p { margin-top: 14px; max-width: 56ch; margin-left: auto; margin-right: auto; }

.legal-content { max-width: 760px; margin: 0 auto; }
.legal-content .updated { display: block; font-size: 0.82rem; color: var(--gold-dark); margin-bottom: 30px; }
.legal-content h2 {
  font-size: 1.3rem;
  margin-top: 34px;
  margin-bottom: 14px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.legal-content h2:first-of-type { border-top: none; padding-top: 0; margin-top: 0; }
.legal-content p { margin-bottom: 12px; font-size: 0.96rem; }
.legal-content ul { margin: 12px 0 12px 22px; list-style: disc; }
.legal-content ul li { margin-bottom: 8px; font-size: 0.96rem; color: var(--muted); }
.legal-content strong { color: var(--ink); }

/* ================= PAGE HERO (about/services/contact) ================= */
.page-hero { padding: 60px 0 90px; }
.page-hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.page-hero h1 { font-size: clamp(2.1rem, 3.6vw, 3rem); margin-top: 14px; }
.page-hero p { margin-top: 18px; font-size: 1.02rem; max-width: 48ch; }
/* Contact page's hero photo is a tall portrait source — cap it to a shorter
   box so it doesn't tower over the page like a full-length portrait. */
.contact-hero-frame { aspect-ratio: 4/3; }
.contact-hero-frame img { width: 100%; height: 100%; object-fit: cover; }

/* ================= TOAST ================= */
.toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%) translateY(120%);
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--maroon-dark);
  color: var(--white);
  padding: 14px 22px;
  border-radius: 999px;
  box-shadow: var(--shadow-md);
  font-size: 0.88rem;
  z-index: 200;
  opacity: 0;
  transition: transform .35s var(--ease), opacity .35s var(--ease);
}
.toast.show { transform: translateX(-50%) translateY(0); opacity: 1; }
.toast svg { width: 18px; height: 18px; color: var(--gold); flex-shrink: 0; }

/* ================= SCROLL REVEAL ================= */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.reveal-stagger .reveal { transition-delay: calc(var(--i, 0) * 0.1s); }

/* ================= RESPONSIVE ================= */
@media (max-width: 980px) {
  .two-col, .page-hero .container, .hero .container { grid-template-columns: 1fr; }
  .hero-visual { order: -1; }
  .grid-2 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .scheme-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 1024px) {
  .nav-links { display: none; }
  .nav-actions .btn-sm { display: none; }
  .hamburger { display: flex; }
  .mobile-menu { display: flex; }
  /* Without this, .brand keeps its full intrinsic (unwrapped) width because
     flex-shrink:0 + flex children default to min-width:auto — that pushes
     the hamburger button off the right edge of the screen on narrow phones. */
  .navbar .container { flex-wrap: nowrap; }
  .brand { flex-shrink: 1; min-width: 0; }
  .brand-text { min-width: 0; }
  .brand-name, .brand-tag { white-space: normal; overflow-wrap: break-word; }
  .nav-actions { flex-shrink: 0; }
}

@media (min-width: 1025px) and (max-width: 1240px) {
  .navbar .container { gap: 14px; }
  .nav-links { gap: 18px; }
  .nav-links a { font-size: 0.94rem; }
  .brand-name { font-size: 1.18rem; }
}

@media (max-width: 767px) {
  .collection-marquee-track .product-card { width: 78vw; }
  .stat-grid { grid-template-columns: 1fr; gap: 36px; }
  .gallery-collage { grid-template-columns: 1fr; grid-template-rows: repeat(3, 200px); }
  .gallery-collage .tall { grid-row: auto; }
  .scheme-gallery { grid-template-columns: 1fr; }
  .scheme-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .cta-band .container { flex-direction: column; text-align: center; }
  .card-panel { padding: 28px; }
  .float-card { left: 16px; bottom: -20px; }
  .section { padding: 64px 0; }
}

@media (max-width: 420px) {
  .container { padding: 0 18px; }
  .btn { padding: 13px 24px; font-size: 0.86rem; }
  .brand-emblem { width: 68px; height: 68px; }
  .brand-name { font-size: 1.1rem; }
  .brand-tag { font-size: 0.66rem; }
  .navbar .container { padding-top: 14px; padding-bottom: 14px; }
  .hero { padding: 46px 0 60px; }
  .section { padding: 52px 0; }
  .float-card { padding: 12px 14px; max-width: 190px; }
  .card-panel { padding: 20px; }
}

@media (min-width: 1600px) {
  .container { max-width: 1320px; }
  html { font-size: 112%; }
}

@media (min-width: 1920px) {
  .container { max-width: 1440px; }
  html { font-size: 116%; }
}

/* ---------- Advanced image motion ---------- */
.frame, .img-col { position: relative; overflow: hidden; border-radius: var(--radius-lg); }
@keyframes kenburns {
  0%   { transform: scale(1.05) translate(0, 0); }
  100% { transform: scale(1.16) translate(-1.5%, -1.5%); }
}
.frame img, .img-col img {
  animation: kenburns 16s ease-in-out infinite alternate;
  transform-origin: center;
}
.frame img, .img-col img, .service-media img {
  clip-path: inset(0 0 100% 0);
  transition: clip-path 1s var(--ease);
}
.gallery-collage img {
  clip-path: inset(0 0 100% 0 round var(--radius-md));
  transition: clip-path 1s var(--ease);
}
.product-media img { clip-path: inset(0 0 100% 0); transition: clip-path 1s var(--ease), transform .5s var(--ease); }
.scheme-gallery-item img { clip-path: inset(0 0 100% 0); transition: clip-path 1s var(--ease), transform .6s var(--ease); }
.frame.is-visible img, .hero-visual.is-visible .frame img, .img-col.is-visible img { clip-path: inset(0 0 0% 0); }
.gallery-collage.is-visible img { clip-path: inset(0 0 0% 0 round var(--radius-md)); }
.scheme-gallery.is-visible .scheme-gallery-item img,
.service-card.is-visible .service-media img,
.product-card.is-visible .product-media img { clip-path: inset(0 0 0% 0); }
.gallery-collage img:nth-child(2) { transition-delay: .12s; }
.gallery-collage img:nth-child(3) { transition-delay: .24s; }
/* Marquee tiles never carry .reveal (their entrance is the whole-row fade
   on .collection-marquee instead), so they'd never receive the
   .is-visible that normally un-clips product images — show them plainly. */
.collection-marquee-track .product-media img { clip-path: none; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .reveal, .hero-decor .sparkle, .hero-decor .particle { animation: none !important; transition: none !important; }
  .frame img, .img-col img, .gallery-collage img, .scheme-gallery-item img, .service-media img, .product-media img {
    animation: none !important; clip-path: none !important; transition: none !important;
  }
  .navbar, .rate-bar { transition: none !important; transform: none !important; top: var(--navbar-h) !important; }
}

/* ---------- Image loading skeletons ---------- */
@keyframes skeleton-shimmer { 0% { background-position: 160% 0; } 100% { background-position: -60% 0; } }
.frame.img-loading::before,
.img-col.img-loading::before,
.product-media.img-loading::before,
.service-media.img-loading::before,
.scheme-gallery-item.img-loading::before {
  content: '';
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(100deg, var(--cream-alt) 32%, #ffffff 50%, var(--cream-alt) 68%);
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.5s ease-in-out infinite;
}
@media (prefers-reduced-motion: reduce) {
  .frame.img-loading::before, .img-col.img-loading::before, .product-media.img-loading::before,
  .service-media.img-loading::before, .scheme-gallery-item.img-loading::before {
    animation: none; background: var(--cream-alt);
  }
}

/* =========================================================
   DYNAMIC LAYER — preloader, cursor, filters,
   quick-view, testimonials, rate bar, motion accents
   ========================================================= */

/* ---------- Page transition ---------- */
.page-transition {
  position: fixed; inset: 0; z-index: 999;
  background: var(--cream);
  transform: scaleY(0);
  transform-origin: top;
  pointer-events: none;
}
.page-transition.active {
  animation: page-wipe .7s var(--ease) forwards;
  pointer-events: all;
}
@keyframes page-wipe {
  0%   { transform: scaleY(0); transform-origin: top; }
  48%  { transform: scaleY(1); transform-origin: top; }
  52%  { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}
body.page-leaving .navbar,
body.page-leaving main,
body.page-leaving .rate-bar,
body.page-leaving > section,
body.page-leaving .site-footer {
  animation: page-leave .35s var(--ease) forwards;
}
@keyframes page-leave { to { opacity: 0; transform: translateY(-10px); } }

/* ---------- Preloader ---------- */
.preloader {
  position: fixed; inset: 0; z-index: 1000;
  background: var(--cream);
  display: flex; align-items: center; justify-content: center;
  transition: opacity .6s var(--ease), visibility .6s var(--ease);
}
.preloader-inner { position: relative; width: 110px; height: 110px; display: flex; align-items: center; justify-content: center; }
.preloader-ring {
  position: absolute; inset: 0; width: 100%; height: 100%;
  fill: none; stroke: var(--gold); stroke-width: 2; stroke-linecap: round;
  stroke-dasharray: 300; stroke-dashoffset: 300;
  transform: rotate(-90deg);
  animation: preloader-draw 1.3s var(--ease) infinite;
}
.preloader-crest {
  font-family: 'Playfair Display', serif; font-size: 1.9rem; font-weight: 700;
  color: var(--maroon-dark); animation: preloader-pulse 1.3s ease-in-out infinite;
}
@keyframes preloader-draw { 0%{stroke-dashoffset:300;} 55%{stroke-dashoffset:36;} 100%{stroke-dashoffset:300;} }
@keyframes preloader-pulse { 0%,100%{opacity:.5; transform:scale(.94);} 50%{opacity:1; transform:scale(1);} }
.preloader.done { opacity: 0; visibility: hidden; pointer-events: none; }
body.is-loading { overflow: hidden; }

/* ---------- Custom cursor ---------- */
.cursor-dot, .cursor-ring {
  position: fixed; top: 0; left: 0; z-index: 998; pointer-events: none;
  border-radius: 50%; transform: translate(-50%, -50%);
  opacity: 0; transition: opacity .3s ease;
}
.cursor-dot { width: 6px; height: 6px; background: var(--gold-dark); }
.cursor-ring {
  width: 36px; height: 36px; border: 1.4px solid var(--gold);
  transition: opacity .3s ease, width .25s var(--ease), height .25s var(--ease), border-color .25s var(--ease), background .25s var(--ease);
}
body.cursor-active .cursor-dot, body.cursor-active .cursor-ring { opacity: 1; }
body.cursor-active, body.cursor-active a, body.cursor-active button, body.cursor-active input, body.cursor-active textarea {
  cursor: none;
}
.cursor-ring.hovering { width: 56px; height: 56px; border-color: var(--maroon); background: rgba(109,27,46,0.06); }
@media (hover: none), (pointer: coarse) { .cursor-dot, .cursor-ring { display: none !important; } }

/* ---------- Scroll progress ---------- */
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0%;
  background: linear-gradient(90deg, var(--gold-dark), var(--gold));
  z-index: 150;
}

/* ---------- Live rate bar ---------- */
.rate-bar {
  background: linear-gradient(90deg, var(--maroon-dark), var(--maroon));
  color: rgba(255,255,255,0.85);
  position: sticky;
  top: var(--navbar-h);
  z-index: 90;
  border-bottom: 1px solid rgba(201,162,74,0.22);
  overflow: hidden;
  padding-right: 150px;
  width: 100%;
  transition: top .4s var(--ease);
}
.rate-bar::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(100deg, transparent 40%, rgba(201,162,74,0.16) 50%, transparent 60%);
  background-size: 220% 100%;
  animation: rate-shimmer 7s linear infinite;
  pointer-events: none;
}
@keyframes rate-shimmer { 0% { background-position: 130% 0; } 100% { background-position: -60% 0; } }
.rate-bar::after {
  content: '';
  position: absolute; top: 0; bottom: 0; left: 0; right: 0;
  z-index: 2; pointer-events: none;
  background: linear-gradient(90deg, var(--maroon-dark) 0%, transparent 7%, transparent 93%, var(--maroon-dark) 100%);
}
.rate-bar-track {
  display: flex; width: max-content;
  animation: rate-marquee 34s linear infinite;
}
.rate-bar:hover .rate-bar-track,
.rate-bar:focus-within .rate-bar-track { animation-play-state: paused; }
@keyframes rate-marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.rate-bar-inner {
  flex: 0 0 auto;
  display: flex; align-items: center; gap: 16px;
  padding: 13px 30px;
  font-size: 0.92rem; letter-spacing: .02em; white-space: nowrap;
}
.rate-bar.rate-bar-static { overflow-x: auto; scrollbar-width: none; }
.rate-bar.rate-bar-static::-webkit-scrollbar { display: none; }
.rate-bar.rate-bar-static .rate-bar-track { width: auto; animation: none; }
.rate-live-dot {
  display: inline-flex; align-items: center; gap: 5px;
  color: rgba(255,255,255,0.55); font-size: 0.68rem; text-transform: uppercase; letter-spacing: .08em;
}
.rate-live-dot i {
  width: 6px; height: 6px; border-radius: 50%; background: #6ede8a;
  box-shadow: 0 0 0 0 rgba(110,222,138,0.6);
  animation: rate-live-pulse 1.8s ease-out infinite;
}
@keyframes rate-live-pulse {
  0% { box-shadow: 0 0 0 0 rgba(110,222,138,0.55); }
  70% { box-shadow: 0 0 0 6px rgba(110,222,138,0); }
  100% { box-shadow: 0 0 0 0 rgba(110,222,138,0); }
}
.rate-item {
  display: inline-flex; align-items: center; gap: 6px;
  opacity: 0; transform: translateY(-6px);
  animation: rate-item-in .5s var(--ease) forwards;
  animation-delay: calc(var(--ri, 0) * .09s);
}
.rate-item em { font-style: normal; text-transform: uppercase; font-size: 0.76rem; letter-spacing: .08em; color: rgba(255,255,255,0.55); }
.rate-item strong { color: var(--gold); font-weight: 600; font-family: 'Playfair Display', serif; display: inline-block; font-size: 1.05rem; }
.rate-item strong.flash-up { animation: rate-flash-up .9s ease; }
.rate-item strong.flash-down { animation: rate-flash-down .9s ease; }
@keyframes rate-flash-up { 0%{ color:#fff; text-shadow: 0 0 12px rgba(110,222,138,0.9); transform: translateY(-2px); } 100%{ color: var(--gold); text-shadow: none; transform: none; } }
@keyframes rate-flash-down { 0%{ color:#fff; text-shadow: 0 0 12px rgba(224,120,120,0.9); transform: translateY(2px); } 100%{ color: var(--gold); text-shadow: none; transform: none; } }
@keyframes rate-item-in { to { opacity: 1; transform: translateY(0); } }
.rate-divider { color: rgba(255,255,255,0.3); }
.rate-note { color: rgba(255,255,255,0.5); animation: rate-item-in .5s var(--ease) .3s forwards; opacity: 0; }
.rate-loading { color: rgba(255,255,255,0.55); font-size: 0.92rem; padding: 13px 28px; display: block; }
@media (max-width: 600px) { .rate-note, .rate-live-dot { display: none; } }

.rate-bar-btn {
  position: absolute; top: 0; right: 0; bottom: 0; z-index: 5;
  display: flex; align-items: center; gap: 7px;
  padding: 0 24px 0 34px; border: 0; cursor: pointer;
  background: linear-gradient(90deg, transparent, var(--maroon-dark) 26%, var(--maroon-dark) 100%);
  color: var(--gold); font-family: 'Jost', sans-serif; font-weight: 600;
  font-size: 0.82rem; letter-spacing: .03em; text-transform: uppercase; white-space: nowrap;
  transition: color .2s ease;
}
.rate-bar-btn svg { width: 15px; height: 15px; flex: none; }
.rate-bar-btn:hover, .rate-bar-btn:focus-visible { color: #fff; }
@media (max-width: 600px) {
  .rate-bar { padding-right: 92px; }
  .rate-bar-btn { padding: 0 14px 0 26px; font-size: 0.72rem; gap: 5px; }
  .rate-bar-btn svg { width: 13px; height: 13px; }
}
@media (prefers-reduced-motion: reduce) {
  .rate-item, .rate-note { animation: none !important; opacity: 1 !important; transform: none !important; }
  .rate-item strong.flash-up, .rate-item strong.flash-down { animation: none !important; }
  .rate-bar-track { animation: none !important; }
  .rate-bar::before { animation: none !important; }
  .rate-live-dot i { animation: none !important; }
}

.modal-overlay {
  position: fixed; inset: 0; background: rgba(43,36,32,0.45); backdrop-filter: blur(2px);
  z-index: 180; opacity: 0; visibility: hidden; transition: opacity .35s var(--ease), visibility .35s var(--ease);
}
.modal-overlay.show { opacity: 1; visibility: visible; }

/* ---------- Back to top ---------- */
.back-to-top {
  position: fixed; right: 26px; bottom: 26px; width: 46px; height: 46px; border-radius: 50%;
  background: var(--maroon-dark); color: #fff; display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-md); opacity: 0; visibility: hidden; transform: translateY(12px);
  transition: opacity .3s var(--ease), transform .3s var(--ease), visibility .3s var(--ease), background .2s ease;
  z-index: 120;
}
.back-to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { background: var(--gold-dark); }
.back-to-top svg { width: 20px; height: 20px; }

/* ---------- Quick view modal ---------- */
.quick-view-modal {
  position: fixed; top: 50%; left: 50%; transform: translate(-50%, -46%) scale(.96);
  width: min(760px, 92vw); max-height: 86vh; overflow: auto;
  background: var(--white); border-radius: var(--radius-lg); box-shadow: var(--shadow-md);
  z-index: 190; display: grid; grid-template-columns: 1fr 1fr;
  opacity: 0; visibility: hidden;
  transition: opacity .35s var(--ease), transform .35s var(--ease), visibility .35s var(--ease);
}
.quick-view-modal.open { opacity: 1; visibility: visible; transform: translate(-50%, -50%) scale(1); }
.qv-media { background: var(--cream-alt); }
.qv-media img { width: 100%; height: 100%; object-fit: cover; min-height: 260px; }
.qv-body { padding: 34px; display: flex; flex-direction: column; position: relative; }
.qv-body h3 { font-size: 1.5rem; margin-top: 10px; text-transform: uppercase; letter-spacing: .01em; }
.qv-body .product-price { font-size: 1.3rem; margin-top: 10px; display: block; font-family: 'Playfair Display', serif; font-weight: 600; color: var(--gold-dark); }
.qv-body p { margin-top: 14px; font-size: 0.94rem; }
.qv-body .product-actions { margin-top: 26px; }
.modal-close {
  position: absolute; top: 16px; right: 16px; width: 34px; height: 34px; border-radius: 50%;
  background: var(--white); box-shadow: var(--shadow-sm); display: flex; align-items: center; justify-content: center;
  color: var(--maroon-dark); z-index: 5;
}
@media (max-width: 700px) { .quick-view-modal { grid-template-columns: 1fr; } .qv-media img { min-height: 200px; } }

/* ---------- Today's Rates modal ---------- */
.rates-modal {
  position: fixed; top: 50%; left: 50%; transform: translate(-50%, -46%) scale(.96);
  width: min(640px, 92vw); max-height: 86vh; overflow: auto;
  background: var(--cream); border-radius: var(--radius-lg); box-shadow: var(--shadow-md);
  z-index: 190; padding: 40px 34px 34px;
  opacity: 0; visibility: hidden;
  transition: opacity .35s var(--ease), transform .35s var(--ease), visibility .35s var(--ease);
}
.rates-modal.open { opacity: 1; visibility: visible; transform: translate(-50%, -50%) scale(1); }
.rates-modal .section-head { text-align: center; }
.rates-modal .section-head h2 { font-size: 1.4rem; }
.rates-modal .section-head p { font-size: 0.85rem; }
.rates-modal .rates-list { margin-top: 28px; }
@media (max-width: 600px) { .rates-modal { padding: 32px 22px 26px; } }

.rates-list {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--white);
  box-shadow: var(--shadow-sm);
  margin-top: 40px;
}
.rates-list .rate-loading { color: var(--muted); padding: 24px 26px; display: block; }
.rate-card {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--line);
  animation: rate-item-in .5s var(--ease) both;
  animation-delay: calc(var(--i, 0) * .08s);
}
.rate-card-head {
  background: var(--cream-alt);
  animation: none;
}
.rate-card-head .rate-card-metal,
.rate-card-head .rate-card-value {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
}
.rate-card-metal {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gold-dark);
}
.rate-card-value {
  font-family: 'Jost', sans-serif;
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--maroon-dark);
}
.rate-card-value small { font-size: 0.72rem; font-weight: 500; color: var(--muted); margin-left: 2px; }
.rate-card-updated {
  display: flex; align-items: center; gap: 8px;
  font-size: 0.7rem; color: var(--muted);
  padding: 12px 20px 14px;
}
.rate-card-updated .rate-live-dot { color: var(--muted); }
.rate-card-updated .rate-live-dot i { background: #3fa85a; }
@media (prefers-reduced-motion: reduce) { .rate-card { animation: none; } }

/* ---------- Product filter tabs ---------- */
.filter-tabs { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 34px; }
.filter-tab {
  padding: 9px 20px; border-radius: 999px; border: 1.4px solid var(--line); font-size: 0.85rem;
  color: var(--muted); transition: all .25s var(--ease); background: var(--white);
}
.filter-tab:hover { border-color: var(--gold); color: var(--maroon-dark); }
.filter-tab.active { background: var(--maroon-dark); border-color: var(--maroon-dark); color: #fff; }
.product-card.hide { display: none; }
.product-card.pop-in { animation: card-pop .45s var(--ease) both; animation-delay: calc(var(--pi, 0) * 0.05s); }
@keyframes card-pop { from{ opacity:0; transform: scale(.92) translateY(10px);} to{ opacity:1; transform:scale(1) translateY(0);} }

/* ---------- Shine sweep on media ---------- */
.product-media, .service-media { position: relative; }
.product-media::after, .service-media::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(115deg, transparent 40%, rgba(255,255,255,0.55) 50%, transparent 60%);
  transform: translateX(-120%);
  transition: transform .9s var(--ease);
  pointer-events: none;
}
.product-card:hover .product-media::after, .service-card:hover .service-media::after { transform: translateX(120%); }

.custom-flag-badge {
  position: absolute; top: 12px; left: 12px; z-index: 2;
  background: var(--gold-dark); color: var(--white);
  font-size: 0.66rem; font-weight: 600; letter-spacing: .05em; text-transform: uppercase;
  padding: 4px 11px; border-radius: 999px;
  box-shadow: var(--shadow-sm);
  animation: badge-in .4s var(--ease) .1s both, badge-pulse 2.6s ease-in-out 1s infinite;
}
.custom-flag-badge.badge-bestseller { background: var(--maroon-dark); }
@keyframes badge-in { from { opacity: 0; transform: translateY(-6px) scale(.9); } to { opacity: 1; transform: none; } }
@keyframes badge-pulse { 0%, 100% { box-shadow: var(--shadow-sm); } 50% { box-shadow: var(--shadow-sm), 0 0 0 4px rgba(201,162,74,0.25); } }
@media (prefers-reduced-motion: reduce) { .custom-flag-badge { animation: none; } }

/* ---------- Quick view metal/purity line ---------- */
.qv-meta {
  display: inline-block;
  margin-top: 8px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--gold-dark);
  background: var(--maroon-tint);
  padding: 4px 12px;
  border-radius: 999px;
}

/* ---------- Product card tilt ---------- */
.product-card { transform-style: preserve-3d; }

/* ---------- Button ripple ---------- */
.btn { position: relative; overflow: hidden; }
.btn-ripple {
  position: absolute;
  width: 10px; height: 10px;
  margin-left: -5px; margin-top: -5px;
  background: rgba(255,255,255,0.55);
  border-radius: 50%;
  transform: scale(0);
  pointer-events: none;
  animation: ripple-out .6s var(--ease);
}
@keyframes ripple-out { to { transform: scale(18); opacity: 0; } }

/* ---------- Testimonial carousel ---------- */
.testimonial-carousel { max-width: 760px; margin: 44px auto 0; position: relative; overflow: hidden; }
.testimonial-track { display: flex; transition: transform .6s var(--ease); }
.testimonial-slide { min-width: 100%; text-align: center; padding: 0 20px; }
.testimonial-slide svg { width: 30px; height: 30px; color: var(--gold); margin: 0 auto 18px; display: block; }
.testimonial-slide p { font-family: 'Playfair Display', serif; font-style: italic; font-size: 1.25rem; color: var(--maroon-dark); line-height: 1.5; }
.testimonial-slide cite { display: block; margin-top: 18px; font-style: normal; font-size: 0.85rem; color: var(--gold-dark); letter-spacing: .03em; }
.testimonial-dots { display: flex; justify-content: center; gap: 8px; margin-top: 28px; }
.testimonial-dots button { width: 8px; height: 8px; border-radius: 50%; background: var(--line); transition: background .25s ease, transform .25s ease; }
.testimonial-dots button.active { background: var(--gold-dark); transform: scale(1.3); }

/* ---------- Directional reveal variants ---------- */
.reveal[data-reveal="left"] { transform: translateX(-46px); }
.reveal[data-reveal="right"] { transform: translateX(46px); }
.reveal[data-reveal="scale"] { transform: scale(.9); }
.reveal[data-reveal="left"].is-visible,
.reveal[data-reveal="right"].is-visible,
.reveal[data-reveal="scale"].is-visible { transform: none; }

/* ---------- Hero parallax smoothing ---------- */
.hero-visual .frame, .hero-visual .float-card, .page-hero .frame { transition: transform .5s var(--ease); will-change: transform; }
.hero-decor .blob, .hero-decor .arc { transition: transform .7s var(--ease); will-change: transform; }

/* ---------- Magnetic buttons ---------- */
.btn { will-change: transform; }

/* ---------- Nav actions spacing with icon button ---------- */
.nav-actions { display: flex; align-items: center; gap: 10px; }