/* ============================================================
   KINGDOM — Bespoke Diamond Jewellery
   Shared brand system
   ============================================================ */

:root {
  --emerald:      #0F1F1B;
  --emerald-deep: #0A1714;
  --gold:         #B89A5E;
  --gold-soft:    #CDB17E;
  --gold-deep:    #9A7E45;
  --gold-text:    #836A38;  /* AA-contrast gold for small text on ivory */
  --ivory:        #FAF7F0;
  --ivory-warm:   #FBF9F4;
  --beige:        #E8DFD2;
  --beige-soft:   #EFE9DE;
  --charcoal:     #5A5654;
  --ink:          #1E1B17;
  --white:        #FFFFFF;
  --line:         rgba(30, 27, 23, 0.12);
  --line-gold:    rgba(184, 154, 94, 0.32);

  --serif: "Playfair Display", Georgia, serif;
  --serif-2: "Cormorant Garamond", Georgia, serif;
  --sans: "Lato", "Helvetica Neue", Arial, sans-serif;

  --shadow-sm: 0 2px 14px rgba(15, 31, 27, 0.05);
  --shadow-md: 0 14px 44px rgba(15, 31, 27, 0.09);
  --shadow-lg: 0 30px 80px rgba(15, 31, 27, 0.14);

  --wrap: 1320px;
}

* { box-sizing: border-box; }

/* Visible keyboard-focus ring for all interactive elements */
:focus-visible { outline: 2px solid var(--gold-text); outline-offset: 2px; border-radius: 3px; }
:focus:not(:focus-visible) { outline: none; }

/* Screen-reader-only utility (labels that shouldn't show visually) */
.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; }

/* Respect reduced-motion preference: drop animations, transitions, smooth scroll */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  html { scroll-behavior: auto; }
}

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--ivory);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 { font-family: var(--serif); font-weight: 500; color: var(--emerald); margin: 0; letter-spacing: -0.01em; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* Sprite icons hardcode the old champagne hex (#C8A15A); remap to the brand --gold token
   so every page's inline SVG sprite tracks the palette without editing each file. */
svg [stroke="#C8A15A"] { stroke: var(--gold) !important; }
svg [fill="#C8A15A"]   { fill: var(--gold) !important; }

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

/* ---- shared type helpers ---- */
.eyebrow {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-text);
}
.label {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--charcoal);
}
.serif-2 { font-family: var(--serif-2); }

/* ---- buttons ---- */
.btn {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 13.5px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  padding: 17px 30px;
  border-radius: 4px;
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease, color .25s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--emerald);
  color: var(--gold-soft);
  box-shadow: 0 10px 30px rgba(15, 31, 27, 0.22);
}
.btn-primary:hover { background: var(--emerald-deep); box-shadow: 0 16px 40px rgba(15, 31, 27, 0.30); transform: translateY(-2px); }
.btn-gold { background: var(--gold); color: var(--emerald); }
.btn-gold:hover { background: var(--gold-deep); color: #fff; transform: translateY(-2px); }
.btn-outline {
  background: transparent;
  color: var(--emerald);
  border: 1px solid var(--line-gold);
}
.btn-outline:hover { border-color: var(--gold); background: rgba(200,161,90,0.06); }
.btn-block { width: 100%; }

.textlink {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 12.5px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--gold-text);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: gap .25s ease, color .2s ease;
}
.textlink:hover { gap: 13px; color: var(--gold-deep); }

/* language switch */
.lang-switch { display: inline-flex; align-items: center; gap: 5px; font-family: var(--sans); font-weight: 700; font-size: 12px; letter-spacing: 0.1em; color: var(--charcoal); border: 1px solid var(--line-gold); border-radius: 40px; padding: 7px 13px; transition: .2s; white-space: nowrap; }
.lang-switch:hover { border-color: var(--gold); color: var(--gold-deep); }
.lang-switch .cur { color: var(--gold-deep); }

/* ---- icon stroke ---- */
.ico { width: 26px; height: 26px; stroke: var(--gold); stroke-width: 1.3; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.ico-sm { width: 18px; height: 18px; stroke: var(--gold); stroke-width: 1.4; fill: none; stroke-linecap: round; stroke-linejoin: round; }

/* ---- image-slot baseline look ---- */
image-slot {
  --slot-bg: linear-gradient(135deg, #efe2d4 0%, #e3d3c4 45%, #d8c3b0 100%);
  background: var(--slot-bg);
  display: block;
}

/* generic placeholder texture for plain divs used as images */
.ph {
  position: relative;
  background:
    linear-gradient(135deg, #efe2d4 0%, #e6d6c6 50%, #dcc8b4 100%);
  overflow: hidden;
}
.ph::after {
  content: attr(data-ph);
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  font-family: "SFMono-Regular", ui-monospace, Menlo, monospace;
  font-size: 11px;
  letter-spacing: 0.04em;
  color: rgba(90, 70, 50, 0.55);
  text-align: center;
  width: 80%;
  line-height: 1.5;
}

/* On phones, CTA labels are long (EN+ID) — let buttons wrap instead of
   forcing their containers wider than the screen. */
@media (max-width: 640px) {
  .btn { white-space: normal; text-align: center; }
}

@media (max-width: 900px) {
  body { font-size: 16px; }
  .wrap { padding: 0 22px; }
}
