/* ==========================================================================
   Svarna Fine Jewels - demo website
   Register: modern fine-jewellery house. Ivory, deep emerald, 22k gold.
   Typography: Playfair Display (display) + Inter (interface)
   ========================================================================== */

:root {
  --ivory: #fbf8f3;
  --ivory-2: #f4eee4;
  --paper: #ffffff;
  --ink: #1c1a16;
  --ink-soft: #4b463d;
  --muted: #847c6e;
  --emerald: #0f2e2a;
  --emerald-2: #16403a;
  --gold: #c9a227;
  --gold-soft: #e2c76b;
  --line: #e6dfd2;
  --rose: #b76e79;

  --font-display: "Playfair Display", Georgia, serif;
  --font-ui: "Inter", system-ui, -apple-system, sans-serif;

  --shell: 1280px;
  --gutter: 24px;
  --radius: 2px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --shadow: 0 16px 44px -22px rgba(28, 26, 22, 0.4);
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 130px; }

body {
  background: var(--ivory);
  color: var(--ink-soft);
  font-family: var(--font-ui);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; background: var(--ivory-2); }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
ul, ol { list-style: none; padding: 0; }

h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 500; line-height: 1.14; color: var(--ink); }

::selection { background: var(--emerald); color: var(--ivory); }
:focus-visible { outline: 2px solid var(--emerald); outline-offset: 3px; }

.shell { width: 100%; max-width: var(--shell); margin-inline: auto; padding-inline: var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link {
  position: absolute; left: 50%; top: -80px; transform: translateX(-50%); z-index: 300;
  background: var(--emerald); color: var(--ivory); padding: 12px 22px; font-size: 0.82rem;
  letter-spacing: 0.1em; text-transform: uppercase; transition: top 0.2s;
}
.skip-link:focus { top: 0; }

.overline {
  display: inline-block; font-size: 0.7rem; font-weight: 600;
  letter-spacing: 0.3em; text-transform: uppercase; color: var(--gold); margin-bottom: 16px;
}
.section-title { font-size: clamp(1.9rem, 4vw, 3rem); margin-bottom: 16px; }
.section-title em { font-style: italic; color: var(--emerald); }
.lede { font-size: 1rem; color: var(--muted); max-width: 62ch; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 14px 30px; border: 1px solid var(--emerald);
  background: var(--emerald); color: var(--ivory);
  font-size: 0.76rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase;
  cursor: pointer; border-radius: var(--radius);
  transition: background 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s, transform 0.25s var(--ease);
}
.btn:hover { background: var(--emerald-2); transform: translateY(-2px); }
.btn-outline { background: transparent; color: var(--emerald); }
.btn-outline:hover { background: var(--emerald); color: var(--ivory); }
.btn-gold { background: var(--gold); border-color: var(--gold); color: var(--ink); }
.btn-gold:hover { background: var(--gold-soft); border-color: var(--gold-soft); }
.btn-light { background: transparent; border-color: rgba(251, 248, 243, 0.45); color: var(--ivory); }
.btn-light:hover { background: var(--ivory); color: var(--emerald); border-color: var(--ivory); }
.btn-sm { padding: 10px 20px; font-size: 0.68rem; }
.btn svg { width: 15px; height: 15px; }

/* ---------- Gold rate ticker ---------- */

.rate-bar {
  background: var(--emerald);
  color: var(--ivory);
  font-size: 0.76rem;
  padding: 9px 0;
  overflow: hidden;
}
.rate-inner { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
.rates { display: flex; gap: 22px; flex-wrap: wrap; }
.rates li { display: flex; align-items: baseline; gap: 7px; letter-spacing: 0.04em; }
.rates b { color: var(--gold-soft); font-weight: 600; font-variant-numeric: tabular-nums; }
.rates .delta { font-size: 0.68rem; color: #86efac; }
.rates .delta.down { color: #fca5a5; }
.rate-bar .note { color: rgba(251, 248, 243, 0.6); font-size: 0.7rem; }

/* ---------- Header ---------- */

.site-header {
  position: sticky; top: 0; z-index: 90;
  background: rgba(251, 248, 243, 0.95);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 18px; height: 80px; }
.nav { display: flex; align-items: center; gap: 24px; }
.nav a {
  font-size: 0.78rem; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--ink); position: relative; padding: 5px 0;
}
.nav a::after { content: ""; position: absolute; left: 0; bottom: 0; width: 0; height: 1px; background: var(--gold); transition: width 0.3s var(--ease); }
.nav a:hover::after { width: 100%; }

.logo { justify-self: center; text-align: center; }
.logo .name { font-family: var(--font-display); font-size: 1.75rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--emerald); line-height: 1; }
.logo .tag { display: block; font-size: 0.54rem; letter-spacing: 0.38em; text-transform: uppercase; color: var(--gold); margin-top: 6px; }

.header-right { justify-self: end; display: flex; align-items: center; gap: 12px; }
.icon-btn {
  width: 38px; height: 38px; display: grid; place-items: center;
  border: 1px solid var(--line); background: var(--paper); cursor: pointer; border-radius: 50%;
  transition: border-color 0.25s, background 0.25s;
  position: relative;
}
.icon-btn:hover { border-color: var(--emerald); }
.icon-btn svg { width: 17px; height: 17px; }
.icon-btn .count {
  position: absolute; top: -5px; right: -5px; min-width: 18px; height: 18px;
  background: var(--rose); color: #fff; border-radius: 9px; font-size: 0.62rem;
  font-weight: 700; display: grid; place-items: center; padding: 0 4px;
  font-family: var(--font-ui);
}

.nav-toggle { display: none; width: 40px; height: 40px; border: 1px solid var(--line); background: var(--paper); cursor: pointer; position: relative; }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  position: absolute; left: 50%; width: 18px; height: 1.4px; background: var(--ink);
  transform: translateX(-50%); transition: transform 0.3s var(--ease), background 0.2s;
}
.nav-toggle span { top: 50%; }
.nav-toggle span::before { content: ""; left: 0; transform: translateY(-6px); }
.nav-toggle span::after { content: ""; left: 0; transform: translateY(6px); }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { transform: rotate(-45deg); }

/* ---------- Hero ---------- */

.hero { background: var(--ivory); padding: clamp(42px, 6vw, 80px) 0 clamp(50px, 7vw, 90px); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.hero h1 { font-size: clamp(2.3rem, 5.4vw, 4rem); margin-bottom: 20px; }
.hero h1 em { font-style: italic; color: var(--emerald); }
.hero p.lede { font-size: 1.06rem; margin-bottom: 30px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 34px; }
.hero-mini { display: flex; gap: 26px; flex-wrap: wrap; }
.hero-mini div b { display: block; font-family: var(--font-display); font-size: 1.6rem; color: var(--emerald); line-height: 1; }
.hero-mini div span { font-size: 0.74rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }

.hero-art { position: relative; }
.hero-art > img { width: 100%; aspect-ratio: 4 / 4.4; object-fit: cover; }
.hero-art .float {
  position: absolute; left: -22px; bottom: 32px;
  background: var(--paper); padding: 16px 20px; box-shadow: var(--shadow);
  display: flex; align-items: center; gap: 12px; max-width: 250px;
}
.hero-art .float .seal {
  width: 42px; height: 42px; flex: none; border-radius: 50%;
  background: var(--emerald); color: var(--gold-soft);
  display: grid; place-items: center; font-size: 0.6rem; font-weight: 700; letter-spacing: 0.04em;
}
.hero-art .float strong { display: block; font-family: var(--font-display); font-size: 0.98rem; color: var(--ink); }
.hero-art .float span { font-size: 0.74rem; color: var(--muted); }

/* ---------- Trust strip ---------- */

.trust { border-block: 1px solid var(--line); background: var(--paper); }
.trust ul { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.trust li {
  padding: 26px 22px; display: flex; gap: 13px; align-items: flex-start;
  border-right: 1px solid var(--line);
}
.trust li:last-child { border-right: 0; }
.trust svg { width: 24px; height: 24px; flex: none; color: var(--gold); }
.trust strong { display: block; font-family: var(--font-display); font-size: 1rem; color: var(--ink); }
.trust span { font-size: 0.82rem; color: var(--muted); line-height: 1.5; }

/* ---------- Section ---------- */

.section { padding: clamp(58px, 8vw, 104px) 0; }
.section-head { margin-bottom: clamp(32px, 4.5vw, 54px); max-width: 720px; }
.section-head.center { margin-inline: auto; text-align: center; }
.head-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 22px; flex-wrap: wrap; margin-bottom: 36px; }

/* ---------- Category rail ---------- */

.cat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 14px; }
.cat {
  display: block; text-align: center; padding: 26px 16px 22px;
  background: var(--paper); border: 1px solid var(--line);
  transition: border-color 0.3s, transform 0.3s var(--ease), box-shadow 0.3s;
}
.cat:hover { border-color: var(--gold); transform: translateY(-5px); box-shadow: var(--shadow); }
.cat .circle {
  width: 96px; height: 96px; margin: 0 auto 16px; border-radius: 50%;
  overflow: hidden; background: var(--ivory-2); border: 1px solid var(--line);
}
.cat .circle img { width: 100%; height: 100%; object-fit: cover; }
.cat h3 { font-size: 1.04rem; margin-bottom: 3px; }
.cat span { font-size: 0.74rem; color: var(--muted); }

/* ---------- Product grid ---------- */

.filters { display: flex; gap: 8px; flex-wrap: wrap; }
.filters button {
  padding: 9px 18px; border: 1px solid var(--line); background: var(--paper);
  font-size: 0.74rem; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--ink-soft); cursor: pointer; transition: all 0.25s var(--ease);
}
.filters button:hover { border-color: var(--emerald); color: var(--emerald); }
.filters button[aria-pressed="true"] { background: var(--emerald); border-color: var(--emerald); color: var(--ivory); }

.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(238px, 1fr)); gap: 20px; }
.product {
  background: var(--paper); border: 1px solid var(--line);
  display: flex; flex-direction: column;
  transition: border-color 0.3s, transform 0.35s var(--ease), box-shadow 0.35s;
}
.product:hover { border-color: var(--gold); transform: translateY(-6px); box-shadow: var(--shadow); }
.product.is-hidden { display: none; }
.product-media { position: relative; aspect-ratio: 1 / 1; overflow: hidden; background: var(--ivory-2); }
.product-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.9s var(--ease); }
.product:hover .product-media img { transform: scale(1.07); }
.badge {
  position: absolute; top: 10px; left: 10px;
  background: var(--emerald); color: var(--ivory);
  font-size: 0.6rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  padding: 5px 10px;
}
.badge.gold { background: var(--gold); color: var(--ink); }
.wish {
  position: absolute; top: 8px; right: 8px; width: 34px; height: 34px;
  border-radius: 50%; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.9);
  display: grid; place-items: center; cursor: pointer; transition: all 0.25s;
}
.wish svg { width: 16px; height: 16px; fill: none; stroke: var(--ink-soft); stroke-width: 1.6; }
.wish[aria-pressed="true"] svg { fill: var(--rose); stroke: var(--rose); }
.wish:hover { border-color: var(--rose); }

.product-body { padding: 16px 16px 18px; display: flex; flex-direction: column; flex: 1; }
.product-body h3 { font-size: 1.02rem; margin-bottom: 3px; }
.product-body .meta { font-size: 0.74rem; color: var(--muted); letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 11px; }
.price { display: flex; align-items: baseline; gap: 9px; margin-top: auto; margin-bottom: 12px; }
.price b { font-family: var(--font-display); font-size: 1.15rem; color: var(--ink); font-weight: 600; }
.price s { font-size: 0.84rem; color: var(--muted); }
.price .off { font-size: 0.72rem; font-weight: 700; color: #15803d; }
.product-body .btn { width: 100%; }

/* ---------- Craft / certification (dark) ---------- */

.craft { background: var(--emerald); color: rgba(251, 248, 243, 0.78); }
.craft h2, .craft h3 { color: var(--ivory); }
.craft .lede { color: rgba(251, 248, 243, 0.72); }
.craft-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: clamp(28px, 5vw, 60px); align-items: center; }
.craft-media img { width: 100%; aspect-ratio: 4 / 3.4; object-fit: cover; }
.cert-list { display: grid; gap: 1px; background: rgba(226, 199, 107, 0.25); margin-top: 28px; }
.cert-list li { background: var(--emerald); padding: 18px 20px; display: flex; gap: 14px; align-items: flex-start; }
.cert-list svg { width: 20px; height: 20px; flex: none; color: var(--gold-soft); margin-top: 3px; }
.cert-list strong { display: block; font-family: var(--font-display); color: var(--ivory); font-size: 1.02rem; }
.cert-list span { font-size: 0.86rem; }

/* ---------- Editorial banner ---------- */

.editorial { position: relative; min-height: 440px; display: grid; align-items: center; overflow: hidden; background: var(--ink); }
.editorial img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.editorial::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to right, rgba(15, 46, 42, 0.92) 0%, rgba(15, 46, 42, 0.6) 48%, transparent 82%);
}
.editorial .shell { position: relative; z-index: 2; padding-block: 70px; }
.editorial-content { max-width: 520px; }
.editorial h2 { color: var(--ivory); font-size: clamp(1.9rem, 4vw, 2.9rem); margin-bottom: 16px; }
.editorial p { color: rgba(251, 248, 243, 0.82); margin-bottom: 26px; }

/* ---------- Appointment ---------- */

.appointment { background: var(--ivory-2); }
.appt-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(30px, 5vw, 60px); align-items: start; }
form { display: grid; gap: 16px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field label { display: block; font-size: 0.7rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink); margin-bottom: 7px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 15px; border: 1px solid var(--line); background: var(--paper);
  font-size: 0.95rem; transition: border-color 0.25s, box-shadow 0.25s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--emerald); box-shadow: 0 0 0 3px rgba(15, 46, 42, 0.1);
}
.field textarea { resize: vertical; min-height: 100px; }
.form-note { font-size: 0.78rem; color: var(--muted); }
.form-status { display: none; padding: 13px 16px; background: #edf7ef; border: 1px solid #bcdcc3; color: #2a6137; font-size: 0.9rem; }
.form-status.is-visible { display: block; }

.appt-side { background: var(--paper); border: 1px solid var(--line); padding: clamp(24px, 3.5vw, 36px); }
.appt-side h3 { font-size: 1.4rem; margin-bottom: 14px; }
.appt-side ul { display: grid; gap: 14px; margin-top: 18px; }
.appt-side li { display: flex; gap: 12px; align-items: flex-start; font-size: 0.92rem; }
.appt-side li svg { width: 18px; height: 18px; flex: none; color: var(--gold); margin-top: 4px; }
.store-block { margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--line); }
.store-block dl { display: grid; gap: 8px; font-size: 0.9rem; }
.store-block dl div { display: flex; justify-content: space-between; gap: 14px; }
.store-block dt { color: var(--muted); }
.store-block dd { color: var(--ink); font-weight: 500; }

/* ---------- Reviews ---------- */

.review-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 18px; }
.review { background: var(--paper); border: 1px solid var(--line); padding: 28px 26px; }
.review .stars { color: var(--gold); letter-spacing: 0.2em; font-size: 0.86rem; margin-bottom: 14px; }
.review blockquote { font-family: var(--font-display); font-size: 1.1rem; line-height: 1.55; color: var(--ink); margin-bottom: 16px; }
.review cite { font-style: normal; font-size: 0.8rem; color: var(--muted); }
.review cite b { display: block; color: var(--ink); font-weight: 600; font-family: var(--font-ui); }

/* ---------- FAQ ---------- */

.faq-list { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.faq-item { background: var(--paper); }
.faq-item summary {
  list-style: none; cursor: pointer; padding: 20px 52px 20px 22px;
  font-family: var(--font-display); font-size: 1.14rem; color: var(--ink); position: relative;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; position: absolute; right: 22px; top: 50%; transform: translateY(-50%);
  font-size: 1.4rem; color: var(--gold); line-height: 1;
}
.faq-item[open] summary::after { content: "\2013"; }
.faq-item .answer { padding: 0 52px 20px 22px; font-size: 0.94rem; }

/* ---------- Footer ---------- */

.site-footer { background: var(--emerald); color: rgba(251, 248, 243, 0.64); padding: clamp(48px, 6vw, 76px) 0 28px; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 34px; padding-bottom: 34px; border-bottom: 1px solid rgba(226, 199, 107, 0.22); }
.footer-grid .logo { justify-self: start; text-align: left; }
.footer-grid .logo .name { color: var(--ivory); }
.footer-grid p { font-size: 0.9rem; margin-top: 15px; max-width: 38ch; }
.footer-grid h4 { font-family: var(--font-ui); font-size: 0.68rem; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold-soft); margin-bottom: 15px; }
.footer-grid ul { display: grid; gap: 9px; }
.footer-grid ul a { font-size: 0.9rem; transition: color 0.25s; }
.footer-grid ul a:hover { color: var(--gold-soft); }
.footer-base { padding-top: 22px; display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; font-size: 0.78rem; }
.footer-base a { color: var(--gold-soft); }

.demo-ribbon { background: var(--ink); color: var(--ivory); text-align: center; font-size: 0.72rem; letter-spacing: 0.1em; padding: 10px var(--gutter); }
.demo-ribbon a { text-decoration: underline; text-underline-offset: 3px; color: var(--gold-soft); }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */

@media (max-width: 1000px) {
  .header-inner { grid-template-columns: auto 1fr auto; height: 70px; }
  .logo { justify-self: start; text-align: left; }
  .logo .name { font-size: 1.4rem; }
  .nav {
    position: fixed; inset: 70px 0 auto; z-index: 80;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--ivory); border-bottom: 1px solid var(--line);
    padding: 8px var(--gutter) 20px;
    transform: translateY(-130%); transition: transform 0.4s var(--ease);
  }
  .nav.is-open { transform: none; }
  .nav a { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .nav a::after { display: none; }
  .nav-toggle { display: block; }
  .hero-grid, .appt-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .trust li { border-right: 0; border-bottom: 1px solid var(--line); }
}

@media (max-width: 600px) {
  :root { --gutter: 16px; }
  .field-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-art .float { position: static; margin-top: 14px; max-width: none; box-shadow: none; border: 1px solid var(--line); }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .product-body { padding: 12px; }
  .product-body h3 { font-size: 0.92rem; }
  .rate-bar .note { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  .reveal { opacity: 1; transform: none; }
}


/* ==========================================================================
   Mobile header overflow fix
   The header bar only has room for the logo and the menu toggle on a phone,
   so every call-to-action is hidden there and re-rendered inside the menu.
   ========================================================================== */

.nav a.nav-cta { display: none; }

.header-inner { min-width: 0; }
.logo { min-width: 0; }

@media (max-width: 1000px) {
  /* --- Mobile header: CTA moves into the menu panel --- */
  .header-right .btn,
  .header-right .icon-btn { display: none !important; }
  .nav a.nav-cta {
    display: block;
    margin-top: 16px;
    padding: 15px 20px;
    text-align: center;
    background: var(--emerald);
    border: 1px solid var(--emerald);
    border-radius: var(--radius);
    color: var(--ivory);
    font-size: 0.74rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
  }
  .nav a.nav-cta::after { display: none; }

  /* The sticky header uses backdrop-filter, which makes it the containing
     block for this fixed panel. translateY() therefore measures from the
     header, not the viewport, so the slide alone cannot be trusted to push the
     menu off screen - hide it explicitly as well. */
  .nav {
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transition: transform 0.4s var(--ease), opacity 0.25s var(--ease),
                visibility 0.25s var(--ease);
  }
  .nav.is-open {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
  }
}
