/* ============================================================
   AQUA ARMILLA — design tokens
   ============================================================ */
:root {
  --abyss:        #0a1e1c;   /* primary background — deep oyster-water teal */
  --abyss-2:      #0f2b27;   /* raised panels on dark */
  --abyss-3:      #143630;
  --ivory:        #f3eee2;   /* pearl ivory — text/surfaces on dark */
  --ivory-dim:    #cfc6b3;
  --ink:          #16211f;   /* body text on light surfaces */
  --ink-dim:      #46524f;
  --gold:         #c6a15b;   /* champagne gold — the one accent */
  --gold-soft:    #e6cf9f;
  --line:         rgba(243, 238, 226, 0.14);
  --line-strong:  rgba(243, 238, 226, 0.28);

  --nacre-lilac:  #d9c9ea;
  --nacre-aqua:   #bfe3db;
  --nacre-gold:   #f0dfb8;

  --finish-classic-white-c: #fbf7ef;
  --finish-classic-white-e: #ddd2bd;
  --finish-golden-sheen-c:  #f6e2b0;
  --finish-golden-sheen-e:  #b8863c;
  --finish-tahitian-grey-c: #cfd5d6;
  --finish-tahitian-grey-e: #4f585b;
  --finish-blush-lavender-c:#f0dcea;
  --finish-blush-lavender-e:#c79fcb;

  --clasp-gold-vermeil:      #dcb371;
  --clasp-sterling-silver:   #cdd2d4;
  --clasp-blackened-gunmetal:#34393c;

  --radius-sm: 3px;
  --radius-md: 8px;
  --radius-lg: 18px;

  --font-display: "Fraunces", "Iowan Old Style", serif;
  --font-body: "Inter", -apple-system, sans-serif;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

@media (prefers-color-scheme: light) {
  :root { color-scheme: dark; }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

body {
  margin: 0;
  background: var(--abyss);
  color: var(--ivory);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; }

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

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

.wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 28px;
}

.eyebrow {
  display: block;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-soft);
  margin: 0 0 14px;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.01em;
  margin: 0;
}

h2 {
  font-size: clamp(28px, 4vw, 40px);
  font-optical-sizing: auto;
  color: var(--ivory);
  margin-bottom: 16px;
}

p { color: var(--ivory-dim); }

.gold { color: var(--gold); }

.section {
  padding: 96px 0;
  border-top: 1px solid var(--line);
}

.section-head {
  max-width: 620px;
  margin: 0 0 56px;
}

.section-head p { font-size: 17px; }

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 28px;
  background: linear-gradient(to bottom, rgba(10,30,28,0.92), rgba(10,30,28,0));
  pointer-events: none;
}
.site-header .wordmark, .site-header nav { pointer-events: auto; }

.wordmark {
  font-family: var(--font-display);
  font-size: 18px;
  letter-spacing: 0.06em;
  color: var(--ivory);
  text-decoration: none;
}
.wordmark sup { font-size: 10px; color: var(--gold-soft); }

.site-header nav a {
  font-size: 13px;
  letter-spacing: 0.04em;
  text-decoration: none;
  color: var(--ivory-dim);
  border: 1px solid var(--line-strong);
  padding: 9px 18px;
  border-radius: 999px;
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease);
}
.site-header nav a:hover { color: var(--ivory); border-color: var(--gold); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  padding: 160px 0 80px;
  overflow: hidden;
  background:
    radial-gradient(ellipse 900px 500px at 80% -10%, rgba(198,161,91,0.10), transparent 60%),
    radial-gradient(ellipse 700px 600px at 10% 110%, rgba(191,227,219,0.08), transparent 60%),
    var(--abyss);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
  width: 100%;
}

.hero h1 {
  font-size: clamp(36px, 5.4vw, 62px);
  line-height: 1.08;
  color: var(--ivory);
}
.hero h1 em { font-style: normal; color: var(--gold); }

.hero-sub {
  margin: 26px 0 36px;
  max-width: 46ch;
  font-size: 18px;
  color: var(--ivory-dim);
}

.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 15px 26px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.18s var(--ease), background 0.18s var(--ease), border-color 0.18s var(--ease);
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--gold); color: var(--ink); }
.btn-primary:hover { background: var(--gold-soft); }
.btn-ghost { background: transparent; color: var(--ivory); border-color: var(--line-strong); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold-soft); }

.hero-strand-frame {
  position: relative;
  aspect-ratio: 1 / 1.05;
  display: flex;
  align-items: center;
  justify-content: center;
}
.strand-canvas { width: 100%; height: auto; }
.strand-canvas .strand-group { animation: breathe 7s ease-in-out infinite; transform-origin: center; }
@keyframes breathe {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.012); opacity: 0.97; }
}
.pearl { transition: filter 0.3s var(--ease); }
.pearl:nth-child(3n) { filter: brightness(1.05); }
.pearl:nth-child(3n+1) { filter: brightness(0.95) saturate(1.05); }

/* ============================================================
   THE PIECE — spec sheet / certificate styling
   ============================================================ */
.spec-panel {
  background: var(--abyss-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 48px;
}
.spec-list { list-style: none; margin: 0; padding: 0; }
.spec-row {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  font-size: 16px;
}
.spec-row:last-child { border-bottom: none; }
.spec-label {
  font-family: var(--font-display);
  color: var(--ivory-dim);
  white-space: nowrap;
}
.spec-leader {
  flex: 1;
  border-bottom: 1px dotted var(--line-strong);
  height: 1px;
  transform: translateY(-5px);
}
.spec-value { white-space: nowrap; color: var(--ivory); font-weight: 500; }
.spec-value.price { color: var(--gold); font-family: var(--font-display); font-size: 19px; }

/* ============================================================
   CONFIGURATOR
   ============================================================ */
.configure-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}

.preview-card {
  position: sticky;
  top: 100px;
  background: var(--abyss-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px;
  text-align: center;
}
.preview-caption { font-size: 13px; color: var(--ivory-dim); margin-top: 12px; }
.preview-price { font-family: var(--font-display); font-size: 30px; color: var(--gold); margin-top: 6px; }
.preview-price small { font-family: var(--font-body); font-size: 13px; color: var(--ivory-dim); display: block; font-weight: 400; }

.field-group { margin-bottom: 34px; }
.field-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ivory-dim);
  margin-bottom: 14px;
}

.swatch-row { display: flex; gap: 12px; flex-wrap: wrap; }
.swatch {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px 10px 10px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: transparent;
  cursor: pointer;
  color: var(--ivory);
  font-family: var(--font-body);
  font-size: 14px;
  transition: border-color 0.18s var(--ease), background 0.18s var(--ease);
}
.swatch:hover { border-color: var(--gold-soft); }
.swatch[aria-pressed="true"] { border-color: var(--gold); background: rgba(198,161,91,0.10); }
.swatch-dot { width: 20px; height: 20px; border-radius: 50%; flex: none; box-shadow: inset 0 0 0 1px rgba(0,0,0,0.15); }

.option-row { display: flex; gap: 12px; flex-wrap: wrap; }
.option-pill {
  padding: 12px 18px;
  border-radius: var(--radius-md);
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--ivory);
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 14px;
  text-align: left;
  transition: border-color 0.18s var(--ease), background 0.18s var(--ease);
}
.option-pill span { display: block; font-size: 12px; color: var(--ivory-dim); margin-top: 2px; }
.option-pill:hover { border-color: var(--gold-soft); }
.option-pill[aria-pressed="true"] { border-color: var(--gold); background: rgba(198,161,91,0.10); }

.engrave-input {
  width: 100%;
  background: var(--abyss);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-md);
  color: var(--ivory);
  font-family: var(--font-body);
  font-size: 15px;
  padding: 13px 16px;
}
.engrave-input:focus { border-color: var(--gold); }
.engrave-count { font-size: 12px; color: var(--ivory-dim); margin-top: 8px; display: block; }

/* ============================================================
   ATELIER CHAT
   ============================================================ */
.chat-card {
  background: var(--abyss-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  max-width: 680px;
}
.chat-log {
  height: 360px;
  overflow-y: auto;
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.chat-msg { max-width: 82%; font-size: 15px; line-height: 1.55; }
.chat-msg.user { align-self: flex-end; text-align: right; }
.chat-msg .bubble {
  display: inline-block;
  padding: 12px 16px;
  border-radius: var(--radius-md);
}
.chat-msg.assistant .bubble { background: var(--abyss-3); color: var(--ivory); border-top-left-radius: 2px; }
.chat-msg.user .bubble { background: var(--gold); color: var(--ink); border-top-right-radius: 2px; }
.chat-msg .who {
  display: block;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ivory-dim);
  margin-bottom: 6px;
}
.chat-typing { font-size: 13px; color: var(--ivory-dim); font-style: italic; padding: 0 28px 12px; }
.chat-form {
  display: flex;
  gap: 10px;
  padding: 16px;
  border-top: 1px solid var(--line);
}
.chat-form input {
  flex: 1;
  background: var(--abyss);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 13px 18px;
  color: var(--ivory);
  font-family: var(--font-body);
  font-size: 15px;
}
.chat-form input:focus { border-color: var(--gold); }
.chat-form button {
  border: none;
  background: var(--gold);
  color: var(--ink);
  border-radius: 999px;
  padding: 0 22px;
  font-weight: 600;
  cursor: pointer;
  font-family: var(--font-body);
}
.chat-form button:disabled { opacity: 0.5; cursor: default; }
.chat-suggestions { display: flex; gap: 8px; flex-wrap: wrap; padding: 0 16px 16px; }
.chat-suggestions button {
  font-size: 13px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--ivory-dim);
  cursor: pointer;
}
.chat-suggestions button:hover { border-color: var(--gold-soft); color: var(--ivory); }

/* ============================================================
   PROCESS TIMELINE — genuine sequence, so numbering earns its keep
   ============================================================ */
.timeline { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.timeline-step { background: var(--abyss-2); padding: 32px 26px; }
.timeline-num { font-family: var(--font-display); font-size: 34px; color: var(--gold); }
.timeline-days { display: block; font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ivory-dim); margin: 10px 0 10px; }
.timeline-step h3 { font-size: 17px; color: var(--ivory); margin-bottom: 8px; font-weight: 500; }
.timeline-step p { font-size: 14px; margin: 0; }

/* ============================================================
   RESERVE
   ============================================================ */
.reserve-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.summary-card {
  background: var(--abyss-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 36px;
}
.summary-row { display: flex; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.summary-row:last-of-type { border-bottom: none; }
.summary-row .k { color: var(--ivory-dim); }
.summary-row .v { color: var(--ivory); font-weight: 500; }
.summary-total { display: flex; justify-content: space-between; align-items: baseline; margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--line-strong); }
.summary-total .amount { font-family: var(--font-display); font-size: 28px; color: var(--gold); }

.policy-note { font-size: 13px; color: var(--ivory-dim); margin-top: 22px; }
.policy-note strong { color: var(--ivory); }

#paypal-buttons-container { margin-top: 24px; min-height: 55px; }

.confirm-card {
  display: none;
  background: var(--abyss-2);
  border: 1px solid var(--gold);
  border-radius: var(--radius-lg);
  padding: 40px;
  text-align: center;
}
.confirm-card.visible { display: block; }
.confirm-ref { font-family: var(--font-display); font-size: 30px; color: var(--gold); margin: 12px 0 20px; letter-spacing: 0.04em; }

/* ============================================================
   FOOTER
   ============================================================ */
footer { padding: 56px 0 40px; border-top: 1px solid var(--line); }
.footer-grid { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 18px; }
.footer-meta { font-size: 13px; color: var(--ivory-dim); }
.footer-meta a { color: var(--ivory-dim); text-decoration: underline; text-underline-offset: 3px; }

.footer-shimmer {
  margin: 28px 0 0;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  text-align: center;
  font-family: var(--font-display);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  background-image: linear-gradient(
    100deg,
    var(--gold) 0%,
    var(--nacre-gold) 22%,
    #fff6de 42%,
    var(--gold-soft) 58%,
    var(--gold) 78%,
    var(--nacre-gold) 100%
  );
  background-size: 250% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: var(--gold);
  -webkit-text-fill-color: transparent;
  animation: footer-shimmer 7s linear infinite;
}
.footer-shimmer sup { font-size: 8px; }
@keyframes footer-shimmer {
  to { background-position: -250% center; }
}
@media (prefers-reduced-motion: reduce) {
  .footer-shimmer { animation: none; background-position: 0 center; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 860px) {
  .hero-grid, .configure-grid, .reserve-grid { grid-template-columns: 1fr; }
  .hero-strand-frame { order: -1; max-width: 380px; margin: 0 auto; }
  .preview-card { position: static; }
  .timeline { grid-template-columns: 1fr 1fr; }
  .site-header nav { display: none; }
}
@media (max-width: 520px) {
  .timeline { grid-template-columns: 1fr; }
  .section { padding: 72px 0; }
  .spec-panel, .summary-card, .confirm-card { padding: 28px; }
}
