/* ===========================================================
   GemsLab — design tokens
   Subject: diamond grading lab, Dubai Gold Souk. The palette
   reads as instrument-panel / lab-ledger rather than jewellery-
   store gold-and-cream: ink black, hairline rule, one cool
   "diamond" accent and one warm "gold souk" accent used sparingly.
   =========================================================== */

:root {
  --bg: #0e1116;
  --panel: #12161c;
  --line: #262b33;
  --line-soft: #1c2127;
  --text: #eceef1;
  --muted: #8b93a0;
  --ice: #bfe0ee;
  --ice-dim: #7fa9b8;
  --gold: #c6a15b;
  --verified: #74b596;

  --serif: 'Source Serif 4', Georgia, 'Times New Roman', serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  --maxw: 1120px;
}

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

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

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

a { color: inherit; text-decoration: none; }

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 .5em;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
h3 { font-size: 1.25rem; }

p { color: var(--muted); max-width: 62ch; }

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 28px;
}

.eyebrow {
  font-family: var(--mono);
  font-size: .78rem;
  color: var(--gold);
  letter-spacing: .04em;
}

/* ---------- header ---------- */
.site-header {
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  background: rgba(14,17,22,.92);
  backdrop-filter: blur(6px);
  z-index: 40;
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}
.brand {
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--text);
  display: flex;
  align-items: baseline;
  gap: .5rem;
}
.brand .dot { color: var(--gold); }
.brand small {
  font-family: var(--mono);
  font-size: .62rem;
  color: var(--muted);
  font-weight: 400;
  letter-spacing: .06em;
}
.nav {
  display: flex;
  gap: 2rem;
  font-size: .93rem;
}
.nav a {
  color: var(--muted);
  border-bottom: 1px solid transparent;
  padding-bottom: 4px;
  transition: color .15s, border-color .15s;
}
.nav a:hover, .nav a.active { color: var(--text); border-color: var(--gold); }
.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 6px;
  width: 44px; height: 44px;
  padding: 0;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.nav-toggle span {
  display: block; width: 20px; height: 2px;
  background: var(--text); border-radius: 2px;
  transition: transform .2s, opacity .2s;
}
.site-header.menu-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.site-header.menu-open .nav-toggle span:nth-child(2) { opacity: 0; }
.site-header.menu-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-family: var(--sans);
  font-weight: 600;
  font-size: .92rem;
  padding: .8rem 1.4rem;
  border: 1px solid var(--line);
  cursor: pointer;
  background: transparent;
  color: var(--text);
  transition: border-color .15s, background .15s;
}
.btn-primary {
  background: var(--ice);
  color: #0e1116;
  border-color: var(--ice);
}
.btn-primary:hover { background: #d5ecf5; }
.btn-ghost:hover { border-color: var(--gold); }

/* ---------- hero ---------- */
.hero {
  padding: 84px 0 60px;
  border-bottom: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}
.hero .wrap {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 40px;
  align-items: center;
}
.hero-copy p.lead {
  font-size: 1.08rem;
  margin-top: 1.1rem;
}
.hero-actions {
  margin-top: 2rem;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}
.facet-graphic { width: 100%; height: auto; }

/* ---------- verify box ---------- */
.verify-box {
  margin-top: 92px;
  border: 1px solid var(--line);
  background: var(--panel);
  padding: 28px 30px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 18px;
  align-items: end;
}
.verify-box label {
  display: block;
  font-family: var(--mono);
  font-size: .72rem;
  color: var(--muted);
  letter-spacing: .04em;
  margin-bottom: .5rem;
}
.verify-box input[type=text] {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--line);
  color: var(--text);
  font-family: var(--mono);
  font-size: 1rem;
  padding: .8rem .9rem;
}
.verify-box input[type=text]:focus { outline: none; border-color: var(--ice); }
.verify-icon { font-family: var(--serif); font-size: 1.6rem; color: var(--gold); }

/* ---------- ledger rows (replaces card-kit) ---------- */
.ledger { border-top: 1px solid var(--line); margin-top: 20px; }
.ledger-row {
  border-bottom: 1px solid var(--line);
  padding: 34px 0;
  display: grid;
  grid-template-columns: 90px 1fr 1.4fr;
  gap: 30px;
  align-items: start;
}
.ledger-row .num {
  font-family: var(--mono);
  color: var(--gold);
  font-size: .95rem;
  padding-top: 4px;
}
.ledger-row h3 { margin-bottom: .4rem; }

/* ---------- section ---------- */
.section { padding: 76px 0; border-bottom: 1px solid var(--line); }
.section-head { max-width: 640px; margin-bottom: 2rem; }
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}

/* ---------- 4Cs strip ---------- */
.cs-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line);
  margin-top: 1.5rem;
}
.cs-cell {
  padding: 26px 22px;
  border-right: 1px solid var(--line);
}
.cs-cell:last-child { border-right: none; }
.cs-cell .letter {
  font-family: var(--serif);
  font-size: 2.1rem;
  color: var(--ice);
  margin-bottom: .3rem;
}
.cs-cell p { font-size: .9rem; margin: 0; }

/* ---------- testimony / quote style block (used sparingly) ---------- */
.plate {
  border: 1px solid var(--line);
  background: var(--panel);
  padding: 30px;
}

/* ---------- contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
}
.info-line {
  display: flex;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line-soft);
}
.info-line .k {
  font-family: var(--mono);
  font-size: .72rem;
  color: var(--muted);
  width: 110px;
  flex-shrink: 0;
  padding-top: 3px;
  letter-spacing: .04em;
}
.info-line .v { color: var(--text); }
.info-line .v a:hover { color: var(--ice); }

form.contact-form input, form.contact-form textarea {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--line);
  color: var(--text);
  font-family: var(--sans);
  padding: .8rem .9rem;
  margin-bottom: 1rem;
}
form.contact-form label {
  display: block;
  font-family: var(--mono);
  font-size: .72rem;
  color: var(--muted);
  margin-bottom: .4rem;
}
form.contact-form textarea { min-height: 130px; resize: vertical; }

/* ---------- verify result ---------- */
.result-panel {
  border: 1px solid var(--line);
  background: var(--panel);
  padding: 36px;
  margin-top: 34px;
}
.result-status {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-family: var(--mono);
  font-size: .82rem;
  padding: .4rem .8rem;
  border: 1px solid var(--verified);
  color: var(--verified);
  margin-bottom: 1.6rem;
}
.result-status.not-found { border-color: #c9707a; color: #c9707a; }
.spec-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px 30px;
}
.spec-grid .item .k {
  font-family: var(--mono);
  font-size: .7rem;
  color: var(--muted);
  letter-spacing: .04em;
  margin-bottom: .3rem;
}
.spec-grid .item .v {
  font-family: var(--serif);
  font-size: 1.25rem;
}
.result-photo { margin-top: 26px; border: 1px solid var(--line); max-width: 280px; }

/* ---------- footer ---------- */
.site-footer {
  padding: 50px 0 40px;
  font-size: .88rem;
  color: var(--muted);
}
.site-footer .wrap {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 20px;
}
.footer-links { display: flex; gap: 1.5rem; }
.footer-links a:hover { color: var(--ice); }

@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .facet-graphic { max-width: 260px; margin: 0 auto; }
  .nav-toggle { display: flex; }
  .nav {
    display: none;
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    gap: 0;
    background: #0e1116;
    border-bottom: 1px solid var(--line);
    padding: 8px 28px 16px;
  }
  .site-header.menu-open .nav { display: flex; }
  .nav a { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .nav a:last-child { border-bottom: none; }
  .brand small { display: none; }
  .two-col, .contact-grid { grid-template-columns: 1fr; gap: 34px; }
  .cs-grid { grid-template-columns: 1fr 1fr; }
  .cs-cell { border-bottom: 1px solid var(--line); }
  .ledger-row { grid-template-columns: 50px 1fr; }
  .ledger-row .desc { grid-column: 1 / -1; }
  .verify-box { grid-template-columns: 1fr; }
  .spec-grid { grid-template-columns: 1fr 1fr; }
}
