/* ═══════════════════════════════════════════════════════════════
   DVNJEWELRY — Shared Design System
   Ivory · Champagne Gold · Deep Charcoal
   ═══════════════════════════════════════════════════════════════ */

:root {
  --ivory:       #FAF8F3;
  --cream:       #F3EEE4;
  --paper:       #FFFFFF;
  --ink:         #1D1A16;
  --ink-soft:    #6B6257;
  --ink-faint:   #9A9084;
  --gold:        #A98442;
  --gold-deep:   #8A6A2F;
  --gold-light:  #D7C094;
  --gold-pale:   #EFE6D2;
  --hairline:    #E6DECE;
  --sun:         #E8630A;
  --green-wa:    #1FAF57;
  --shadow-soft: 0 24px 60px -24px rgba(29, 26, 22, .18);
  --shadow-card: 0 10px 40px -18px rgba(29, 26, 22, .16);
  --ease-lux:    cubic-bezier(.22, .8, .3, 1);
  --font-serif:  "Cormorant Garamond", Georgia, serif;
  --font-sans:   "Jost", "Helvetica Neue", Arial, sans-serif;
}

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

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

body {
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--ivory);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; cursor: pointer; }
button { cursor: pointer; font-family: inherit; }

::selection { background: var(--gold-pale); color: var(--ink); }

h1, h2, h3, .serif {
  font-family: var(--font-serif);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: .01em;
}

.container { width: min(1200px, calc(100% - 48px)); margin-inline: auto; }
.container-wide { width: min(1360px, calc(100% - 48px)); margin-inline: auto; }

/* ── Eyebrow label ─────────────────────────────────────────── */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-size: 11px;
  letter-spacing: .34em;
  text-transform: uppercase;
  color: var(--gold-deep);
  font-weight: 400;
}
.eyebrow::before {
  content: "";
  width: 34px; height: 1px;
  background: var(--gold);
}
.eyebrow--center::after {
  content: "";
  width: 34px; height: 1px;
  background: var(--gold);
}

/* ── Gold text accent ──────────────────────────────────────── */
.gold-italic {
  font-style: italic;
  background: linear-gradient(105deg, var(--gold-deep), #C9A45C 45%, var(--gold-deep));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ── Buttons ───────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 54px;
  padding: 14px 38px;
  font-size: 12.5px;
  letter-spacing: .22em;
  text-transform: uppercase;
  font-weight: 400;
  border: 1px solid var(--ink);
  color: var(--ink);
  background: transparent;
  position: relative;
  overflow: hidden;
  transition: color .35s var(--ease-lux), border-color .35s var(--ease-lux), background .35s var(--ease-lux);
}
.btn svg { flex: none; }
.btn--solid { background: var(--ink); color: var(--ivory); }
.btn--solid:hover { background: var(--gold-deep); border-color: var(--gold-deep); color: #fff; }
.btn--line:hover { background: var(--ink); color: var(--ivory); }
.btn--gold { border-color: var(--gold); color: var(--gold-deep); }
.btn--gold:hover { background: var(--gold-deep); border-color: var(--gold-deep); color: #fff; }
.btn--wa { border-color: var(--green-wa); color: var(--green-wa); }
.btn--wa:hover { background: var(--green-wa); border-color: var(--green-wa); color: #fff; }
.btn--light { border-color: rgba(250,248,243,.55); color: var(--ivory); }
.btn--light:hover { background: var(--ivory); color: var(--ink); }

/* ── Header ────────────────────────────────────────────────── */
.topbar {
  background: var(--ink);
  color: rgba(250,248,243,.85);
  font-size: 11px;
  letter-spacing: .24em;
  text-transform: uppercase;
  text-align: center;
  padding: 10px 16px;
}
.topbar b { color: var(--gold-light); font-weight: 400; }
.topbar a { border-bottom: 1px solid rgba(215,192,148,.5); padding-bottom: 1px; color: var(--gold-light); transition: color .3s; }
.topbar a:hover { color: #fff; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 900;
  border-bottom: 1px solid var(--hairline);
  transition: box-shadow .4s;
}
/* Blur lives on a pseudo-element: backdrop-filter on the header itself
   would turn it into the containing block for the fixed mobile menu. */
.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(250,248,243,.86);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.site-header .nav-inner { position: relative; }
.site-header.is-scrolled { box-shadow: 0 12px 34px -22px rgba(29,26,22,.25); }
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px 0;
}
.brand img { height: 52px; width: auto; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 40px;
  list-style: none;
}
.nav-links a:not(.btn) {
  font-size: 12px;
  letter-spacing: .26em;
  text-transform: uppercase;
  padding: 8px 0;
  position: relative;
  color: var(--ink);
}
.nav-links a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .4s var(--ease-lux);
}
.nav-links a:not(.btn):hover::after,
.nav-links a.is-active::after { transform: scaleX(1); transform-origin: left; }
.nav-links a.is-active { color: var(--gold-deep); }
.nav-links .btn { min-height: 44px; padding: 10px 26px; font-size: 11px; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  width: 44px; height: 44px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
}
.nav-toggle span { width: 26px; height: 1.5px; background: var(--ink); transition: .3s var(--ease-lux); }

@media (max-width: 900px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: fixed;
    inset: 0;
    top: 0;
    flex-direction: column;
    justify-content: center;
    gap: 34px;
    background: var(--ivory);
    z-index: 950;
    transform: translateY(-102%);
    transition: transform .5s var(--ease-lux);
  }
  .nav-links.is-open { transform: translateY(0); }
  .nav-links a:not(.btn) { font-size: 15px; }
  .nav-close {
    position: absolute;
    top: 26px; right: 26px;
    background: none; border: none;
    font-size: 30px;
    color: var(--ink);
    width: 44px; height: 44px;
  }
}
@media (min-width: 901px) { .nav-close { display: none; } }

/* ── Section scaffolding ───────────────────────────────────── */
.section { padding: clamp(80px, 10vw, 140px) 0; }
.section--cream { background: var(--cream); }
.section--dark { background: var(--ink); color: var(--ivory); }
.section-head { max-width: 720px; margin-bottom: clamp(44px, 6vw, 72px); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head h2 {
  font-size: clamp(34px, 4.6vw, 58px);
  margin-top: 18px;
}
.section-head p { margin-top: 18px; color: var(--ink-soft); font-size: 17px; max-width: 60ch; }
.section-head--center p { margin-inline: auto; }
.section--dark .section-head p { color: rgba(250,248,243,.62); }

/* ── Reveal on scroll ──────────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease-lux), transform .9s var(--ease-lux); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .12s; }
.reveal[data-delay="2"] { transition-delay: .24s; }
.reveal[data-delay="3"] { transition-delay: .36s; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }

/* ── Ornament divider ──────────────────────────────────────── */
.ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  color: var(--gold);
}
.ornament::before, .ornament::after {
  content: "";
  height: 1px;
  width: min(120px, 20vw);
  background: linear-gradient(90deg, transparent, var(--gold-light));
}
.ornament::after { background: linear-gradient(90deg, var(--gold-light), transparent); }

/* ── Marquee ───────────────────────────────────────────────── */
.marquee {
  overflow: hidden;
  border-block: 1px solid var(--hairline);
  background: var(--paper);
  padding: 18px 0;
}
.marquee-track {
  display: flex;
  gap: 0;
  width: max-content;
  animation: marquee 38s linear infinite;
}
.marquee span {
  font-family: var(--font-serif);
  font-size: 15px;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--ink-soft);
  padding: 0 34px;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 34px;
}
.marquee span::after { content: "✦"; color: var(--gold); font-size: 11px; }
@keyframes marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee-track { animation: none; } }

/* ── Cards / imagery ───────────────────────────────────────── */
.img-frame { overflow: hidden; position: relative; background: var(--cream); }
.img-frame img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1.4s var(--ease-lux);
}
.img-frame:hover img { transform: scale(1.05); }

/* ── WhatsApp float ────────────────────────────────────────── */
.wa-float {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 990;
  display: flex;
  align-items: center;
  gap: 12px;
}
.wa-float .wa-label {
  background: var(--paper);
  border: 1px solid var(--hairline);
  box-shadow: var(--shadow-card);
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  padding: 10px 16px;
  color: var(--ink-soft);
  opacity: 0;
  transform: translateX(8px);
  transition: .4s var(--ease-lux);
  pointer-events: none;
}
.wa-float:hover .wa-label { opacity: 1; transform: none; }
.wa-float .wa-btn {
  width: 60px; height: 60px;
  border-radius: 50%;
  background: var(--green-wa);
  display: grid;
  place-items: center;
  box-shadow: 0 14px 34px -10px rgba(31,175,87,.55);
  transition: transform .35s var(--ease-lux);
}
.wa-float .wa-btn:hover { transform: translateY(-4px) scale(1.05); }
.wa-float svg { width: 30px; height: 30px; fill: #fff; }

/* ── Footer ────────────────────────────────────────────────── */
.prefooter {
  background: var(--ink);
  color: var(--ivory);
  text-align: center;
  padding: clamp(80px, 9vw, 120px) 0;
}
.prefooter h2 { font-size: clamp(32px, 4.4vw, 56px); max-width: 18ch; margin: 22px auto 0; }
.prefooter p { color: rgba(250,248,243,.6); margin: 20px auto 38px; max-width: 52ch; }
.prefooter .eyebrow { color: var(--gold-light); }
.prefooter .eyebrow::before, .prefooter .eyebrow::after { background: var(--gold); }
.btn-row { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

.site-footer {
  background: var(--ivory);
  border-top: 1px solid var(--hairline);
  padding: 64px 0 34px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 48px;
  align-items: start;
}
.site-footer img { height: 56px; width: auto; }
.site-footer h4 {
  font-size: 11px;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--gold-deep);
  font-weight: 400;
  margin-bottom: 18px;
}
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: 12px; font-size: 14.5px; color: var(--ink-soft); }
.site-footer li a { transition: color .3s; }
.site-footer li a:hover { color: var(--gold-deep); }
.footer-note {
  margin-top: 54px;
  padding-top: 22px;
  border-top: 1px solid var(--hairline);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 12px;
  letter-spacing: .12em;
  color: var(--ink-faint);
}
@media (max-width: 780px) {
  .footer-grid { grid-template-columns: 1fr; gap: 36px; }
}

/* ── Forms (shared, used heavily on RFQ) ───────────────────── */
.field { margin-bottom: 26px; }
.field label {
  display: block;
  font-size: 11px;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 10px;
  font-weight: 400;
}
.field label .req { color: var(--sun); }
.field input[type="text"],
.field input[type="email"],
.field input[type="tel"],
.field input[type="number"],
.field input[type="date"],
.field select,
.field textarea {
  width: 100%;
  min-height: 52px;
  border: 1px solid var(--hairline);
  background: var(--paper);
  padding: 14px 16px;
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: 16px;
  color: var(--ink);
  transition: border-color .3s, box-shadow .3s;
  border-radius: 0;
  appearance: none;
  -webkit-appearance: none;
}
.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23A98442' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 42px;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(169,132,66,.14);
}
.field .hint { font-size: 12.5px; color: var(--ink-faint); margin-top: 8px; letter-spacing: .02em; }
.field.has-error input, .field.has-error select { border-color: #C43D2B; }
.field .error-msg { display: none; color: #C43D2B; font-size: 12.5px; margin-top: 8px; }
.field.has-error .error-msg { display: block; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 640px) { .field-row { grid-template-columns: 1fr; } }
