/* ==========================================================================
   Belovd Diamonds — static mockup
   Palette sampled from the client's logo PDF (cream colourway).
   Type: Jost carries the interface and headings (echoes the sans wordmark);
   Bodoni Moda italic is reserved for the signature voice
   ("by Fersun Özbek Jewellery"). Both are stand-ins until the real brand
   fonts are confirmed.
   ========================================================================== */

:root {
  --cream: #F4ECE1;
  --bone: #EADFCF;
  --espresso: #5C4034;
  --umber: #7F604E;
  --clay: #C6876F;
  --caramel: #9B6E4D;
  --line: rgba(92, 64, 52, 0.22);

  --sans: 'Jost', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --serif: 'Bodoni Moda', 'Bodoni 72', Didot, Georgia, serif;

  --max: 1240px;
  --gutter: clamp(20px, 4vw, 56px);
  --header-h: 88px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  background: var(--cream);
  color: var(--espresso);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; font-weight: 300; line-height: 1.12; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

:focus-visible { outline: 2px solid var(--espresso); outline-offset: 3px; }
.on-dark :focus-visible { outline-color: var(--cream); }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--espresso); color: var(--cream); padding: 10px 16px;
}
.skip:focus { top: 12px; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- Type ---------- */
.h1 { font-size: clamp(2.6rem, 5.4vw, 4.6rem); letter-spacing: -0.005em; line-height: 1.04; }
.h2 { font-size: clamp(1.9rem, 3.2vw, 2.7rem); letter-spacing: 0; }
.h3 { font-size: 1.25rem; font-weight: 400; line-height: 1.3; }
.lede { font-size: 1.2rem; line-height: 1.55; font-weight: 300; max-width: 32rem; }
.signature { font-family: var(--serif); font-style: italic; font-weight: 400; color: var(--umber); }
.muted { color: var(--umber); }
.small { font-size: 0.875rem; }
.num { font-variant-numeric: tabular-nums; }

/* Placeholder copy that still needs a fact from the client */
.tbc {
  color: var(--umber);
  border-bottom: 1px dashed var(--clay);
  font-style: normal;
}

/* ---------- Layout ---------- */
.wrap { max-width: var(--max); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.section { padding-top: clamp(56px, 8vw, 104px); padding-bottom: clamp(56px, 8vw, 104px); }
.section--bone { background: var(--bone); }
.section__head .link { white-space: nowrap; }
.section__head { display: flex; align-items: baseline; justify-content: space-between; gap: 24px; margin-bottom: clamp(24px, 3vw, 40px); }

/* ---------- Links & buttons ---------- */
.link { text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 2px; }
.link:hover { color: var(--caramel); }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 16px 34px; min-height: 52px;
  background: var(--espresso); color: var(--cream);
  border: 1px solid var(--espresso);
  font-size: 0.95rem; font-weight: 500; letter-spacing: 0.05em;
  text-decoration: none; cursor: pointer;
}
.btn:hover { background: var(--umber); border-color: var(--umber); }
.btn--ghost { background: transparent; color: var(--espresso); }
.btn--ghost:hover { background: var(--espresso); color: var(--cream); border-color: var(--espresso); }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .55; cursor: default; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--cream); border-bottom: 1px solid var(--line); }
.hdr {
  height: var(--header-h);
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px;
  max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter);
}
.hdr nav ul { display: flex; gap: clamp(18px, 2.6vw, 36px); }
.hdr__left { justify-self: start; }
.hdr__right { justify-self: end; display: flex; align-items: center; gap: clamp(18px, 2.6vw, 36px); }
.on-dark .tbc { color: #E6D9C8; }
.hdr nav a, .hdr__bag {
  text-decoration: none; font-size: 0.95rem; letter-spacing: 0.04em;
  padding: 6px 0; border-bottom: 1px solid transparent;
}
.hdr nav a:hover, .hdr nav a[aria-current="page"], .hdr__bag:hover { border-bottom-color: var(--clay); }
.hdr__brand { display: block; line-height: 0; }
.hdr__brand img { width: 60px; height: 60px; }
.hdr__bag { display: inline-flex; gap: 8px; align-items: baseline; }
.hdr__count { font-variant-numeric: tabular-nums; }
.hdr__menu { display: none; background: none; border: 0; padding: 10px 0; cursor: pointer; font-size: 0.95rem; letter-spacing: 0.04em; justify-self: start; }

.drawer {
  position: fixed; inset: 0; z-index: 60; background: var(--cream);
  padding: 24px var(--gutter); display: none; flex-direction: column;
}
.drawer.is-open { display: flex; }
.drawer__top { display: flex; justify-content: space-between; align-items: center; height: 64px; }
.drawer__close { background: none; border: 0; cursor: pointer; padding: 10px 0; font-size: 0.95rem; letter-spacing: 0.04em; }
.drawer ul { margin-top: 24px; }
.drawer li a { display: block; padding: 14px 0; font-size: 1.6rem; font-weight: 300; text-decoration: none; border-bottom: 1px solid var(--line); }

/* ---------- Image placeholders ---------- */
.ph {
  position: relative; display: block; overflow: hidden;
  background: var(--tone, var(--bone));
}
.ph::before {
  content: ""; position: absolute; left: 50%; top: 46%;
  width: 22%; aspect-ratio: 1; border: 1px solid var(--clay);
  transform: translate(-50%, -50%) rotate(45deg);
}
.ph::after {
  content: attr(data-cap); position: absolute; left: 14px; bottom: 12px; right: 14px;
  font-size: 0.75rem; color: var(--espresso); letter-spacing: 0.02em;
}
.ph--a { --tone: #EADFCF; }
.ph--b { --tone: #E4D5C6; }
.ph--c { --tone: #EBD8CA; }
.ph--on-bone, .section--bone .ph--a, .summary .ph--a { --tone: #F4ECE1; }
.ar-45 { aspect-ratio: 4 / 5; }
.ar-11 { aspect-ratio: 1 / 1; }
.ar-169 { aspect-ratio: 16 / 9; }

/* ---------- Home: hero (the one memorable element: a drawn diamond frame) ---------- */
.hero {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center; gap: clamp(24px, 5vw, 80px);
  padding-top: clamp(32px, 5vw, 64px); padding-bottom: clamp(40px, 6vw, 88px);
}
.hero__copy { max-width: 34rem; }
.hero__copy .lede { margin-top: 24px; }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 28px; margin-top: 36px; }
.lozenge { position: relative; width: 100%; max-width: 580px; aspect-ratio: 1; margin-left: auto; }
.lozenge__photo {
  position: absolute; inset: 7%;
  clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
}
.lozenge__photo::before { display: none; }
.lozenge__photo::after { left: 50%; right: auto; bottom: 16%; transform: translateX(-50%); text-align: center; white-space: nowrap; }
.lozenge__svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.lozenge__line {
  fill: none; stroke: var(--clay); stroke-width: 0.28; stroke-linejoin: miter;
  stroke-dasharray: 1; stroke-dashoffset: 1;
  animation: draw 2s cubic-bezier(.45, 0, .2, 1) .25s forwards;
}
@keyframes draw { to { stroke-dashoffset: 0; } }

/* ---------- Home: categories ---------- */
.cats {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-template-rows: repeat(2, clamp(200px, 23vw, 320px)); gap: 20px;
}
.cat { position: relative; display: block; text-decoration: none; }
.cat .ph { position: absolute; inset: 0; }
.cat__label { position: absolute; left: 20px; bottom: 16px; font-size: 1.4rem; font-weight: 300; }
.cat__count { position: absolute; right: 20px; bottom: 20px; font-size: 0.875rem; color: var(--umber); }
.cat:hover .cat__label { text-decoration: underline; text-decoration-color: var(--clay); text-underline-offset: 6px; }
.cat--rings { grid-column: 1 / 7; grid-row: 1 / 3; }
.cat--necklaces { grid-column: 7 / 13; grid-row: 1; }
.cat--earrings { grid-column: 7 / 10; grid-row: 2; }
.cat--bracelets { grid-column: 10 / 13; grid-row: 2; }

/* ---------- Product grid & card ---------- */
.grid-products { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 44px 24px; }
.card { display: block; text-decoration: none; }
.card__meta { display: flex; justify-content: space-between; gap: 12px; margin-top: 14px; align-items: baseline; }
.card__name { font-size: 1.02rem; }
.card__sub { font-size: 0.875rem; color: var(--umber); margin-top: 2px; }
.card__price { font-size: 0.98rem; white-space: nowrap; }
.card:hover .card__name { text-decoration: underline; text-decoration-color: var(--clay); text-underline-offset: 5px; }

/* ---------- Home: story, facts, signup ---------- */
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(28px, 6vw, 96px); align-items: center; }
.split__copy > * + * { margin-top: 20px; }
.split__copy .signature { font-size: 1.35rem; }

.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(32px, 6vw, 96px); }
.fact { padding: 28px 0 28px 30px; border-top: 1px solid var(--line); position: relative; }
.fact::before {
  content: ""; position: absolute; left: 2px; top: 38px; width: 8px; height: 8px;
  background: var(--clay); transform: rotate(45deg);
}
.fact p { margin-top: 8px; max-width: 30rem; }

.signup { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 6vw, 96px); align-items: end; }
.signup form { display: flex; gap: 12px; }
.signup form .input { flex: 1; min-width: 0; }
.signup form .btn { flex: none; white-space: nowrap; }

/* ---------- Forms ---------- */
.field { display: block; }
.field__label { display: block; font-size: 0.875rem; margin-bottom: 6px; color: var(--umber); }
.input, .select, .textarea {
  width: 100%; min-height: 50px; padding: 12px 14px;
  background: transparent; border: 1px solid var(--espresso); border-radius: 0;
  appearance: none; -webkit-appearance: none;
}
.select {
  background-image: linear-gradient(45deg, transparent 50%, var(--espresso) 50%), linear-gradient(135deg, var(--espresso) 50%, transparent 50%);
  background-position: calc(100% - 20px) 55%, calc(100% - 14px) 55%;
  background-size: 6px 6px; background-repeat: no-repeat; padding-right: 40px;
}
.textarea { min-height: 150px; resize: vertical; }
.input::placeholder, .textarea::placeholder { color: var(--umber); opacity: .8; }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.row-2 > .field + .field { margin-top: 0; }
.form-error { color: #8A2F1F; font-size: 0.925rem; margin-top: 10px; }
.notice { padding: 18px 20px; background: var(--bone); border-left: 2px solid var(--clay); }

/* ---------- Page heads ---------- */
.page-head { padding-top: clamp(36px, 5vw, 64px); padding-bottom: clamp(24px, 3vw, 40px); }
.crumbs { font-size: 0.875rem; color: var(--umber); margin-bottom: 20px; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }

/* ---------- Shop ---------- */
.toolbar { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; padding: 14px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-bottom: 40px; }
.tabs { display: flex; flex-wrap: wrap; gap: 6px 28px; }
.tab { background: none; border: 0; padding: 8px 0; cursor: pointer; border-bottom: 1px solid transparent; font-size: 0.98rem; }
.tab:hover { border-bottom-color: var(--clay); }
.tab[aria-pressed="true"] { border-bottom-color: var(--espresso); }
.sort { display: flex; align-items: center; gap: 10px; font-size: 0.925rem; color: var(--umber); }
.sort .select { min-height: 42px; width: auto; min-width: 190px; color: var(--espresso); }

/* ---------- Product page ---------- */
.pdp { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: clamp(28px, 5vw, 80px); align-items: start; padding-bottom: clamp(48px, 7vw, 96px); }
.gallery__thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 12px; }
.thumb { padding: 0; border: 1px solid transparent; background: none; cursor: pointer; }
.thumb[aria-current="true"] { border-color: var(--espresso); }
.thumb .ph::after, .thumb .ph::before { display: none; }
.pdp__info { position: sticky; top: calc(var(--header-h) + 24px); }
.pdp__info > * + * { margin-top: 20px; }
.pdp__price { font-size: 1.5rem; font-weight: 300; }
.opt { border: 0; padding: 0; margin-left: 0; margin-right: 0; min-width: 0; }
.opt legend { font-size: 0.875rem; color: var(--umber); padding: 0; margin-bottom: 10px; }
.swatches { display: flex; flex-wrap: wrap; gap: 10px; }
.swatch input { position: absolute; opacity: 0; pointer-events: none; }
.swatch label { display: inline-flex; align-items: center; gap: 10px; padding: 10px 16px 10px 12px; border: 1px solid var(--line); cursor: pointer; font-size: 0.95rem; }
.swatch label::before { content: ""; width: 18px; height: 18px; border-radius: 50%; background: var(--metal); border: 1px solid rgba(92, 64, 52, .35); }
.swatch input:checked + label { border-color: var(--espresso); }
.swatch input:focus-visible + label { outline: 2px solid var(--espresso); outline-offset: 3px; }
.pdp__buy { display: grid; gap: 12px; }
.pdp__bnpl { font-size: 0.925rem; color: var(--umber); }
.acc { border-top: 1px solid var(--line); margin-top: 28px; }
.acc details { border-bottom: 1px solid var(--line); }
.acc summary { list-style: none; cursor: pointer; padding: 18px 0; display: flex; justify-content: space-between; align-items: center; }
.acc summary::-webkit-details-marker { display: none; }
.acc summary::after { content: "+"; font-size: 1.4rem; font-weight: 300; line-height: 1; }
.acc details[open] summary::after { content: "\2212"; }
.acc .acc__body { padding: 0 0 20px; max-width: 34rem; }
.spec { display: grid; grid-template-columns: 8.5rem 1fr; gap: 8px 16px; font-size: 0.975rem; }
.spec dt { color: var(--umber); }
.spec dd { margin: 0; }

/* ---------- Cart & checkout ---------- */
.two-col { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 80px); align-items: start; padding-bottom: clamp(48px, 7vw, 96px); }
.lines { border-top: 1px solid var(--line); }
.line { display: grid; grid-template-columns: 96px minmax(0, 1fr) auto auto; gap: 8px 24px; align-items: center; padding: 22px 0; border-bottom: 1px solid var(--line); }
.line__name { font-size: 1.05rem; text-decoration: none; }
.line__name:hover { text-decoration: underline; text-decoration-color: var(--clay); text-underline-offset: 5px; }
.line__opts { font-size: 0.875rem; color: var(--umber); margin-top: 2px; }
.line__remove { background: none; border: 0; padding: 6px 0; cursor: pointer; font-size: 0.875rem; color: var(--umber); text-decoration: underline; text-underline-offset: 4px; margin-top: 6px; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--espresso); }
.qty button { width: 40px; height: 42px; background: none; border: 0; cursor: pointer; font-size: 1.2rem; }
.qty button:hover { background: var(--bone); }
.qty output { min-width: 32px; text-align: center; font-variant-numeric: tabular-nums; }
.summary { background: var(--bone); padding: 28px; position: sticky; top: calc(var(--header-h) + 24px); }
.summary > * + * { margin-top: 16px; }
.summary__row { display: flex; justify-content: space-between; gap: 16px; }
.summary__total { padding-top: 16px; border-top: 1px solid var(--line); font-size: 1.25rem; }
.empty { padding: 48px 0; max-width: 30rem; }
.empty > * + * { margin-top: 18px; }

.stack > * + * { margin-top: 28px; }
.fieldset { border: 0; padding: 0; margin-left: 0; margin-right: 0; min-width: 0; }
.fieldset > * + * { margin-top: 18px; }
.fieldset > legend + * { margin-top: 0; }
.fieldset .choice + .choice { margin-top: 10px; }
.fieldset .field + .field { margin-top: 18px; }
.fieldset .row-2 > .field + .field { margin-top: 0; }
.fieldset legend { font-size: 1.25rem; font-weight: 400; padding: 0; margin-bottom: 18px; }
.choice { display: flex; gap: 14px; align-items: flex-start; padding: 16px 18px; border: 1px solid var(--line); cursor: pointer; }
.choice + .choice { margin-top: 10px; }
.choice input { margin-top: 5px; accent-color: var(--espresso); }
.choice:has(input:checked) { border-color: var(--espresso); background: rgba(234, 223, 207, .5); }
.choice__title { display: block; }
.choice__hint { display: block; font-size: 0.875rem; color: var(--umber); }
.mini { display: grid; grid-template-columns: 56px 1fr auto; gap: 14px; align-items: center; }
.mini + .mini { margin-top: 14px; }

/* ---------- About ---------- */
.prose > * + * { margin-top: 1.1em; }
.prose { max-width: 36rem; }
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(28px, 6vw, 96px); align-items: start; }
.contact-list > * + * { margin-top: 22px; }
.contact-list dt { font-size: 0.875rem; color: var(--umber); }
.contact-list dd { margin: 2px 0 0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--espresso); color: var(--cream); padding: clamp(48px, 6vw, 80px) 0 32px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { text-decoration: underline; text-decoration-color: var(--clay); text-underline-offset: 5px; }
.foot { display: grid; grid-template-columns: minmax(200px, 1.3fr) repeat(3, minmax(0, 1fr)); gap: clamp(24px, 5vw, 72px); }
.foot__logo { width: 210px; }
.foot h2 { font-size: 0.95rem; font-weight: 500; letter-spacing: 0.04em; margin-bottom: 14px; }
.foot li + li { margin-top: 8px; }
.foot__legal { margin-top: 56px; padding-top: 20px; border-top: 1px solid rgba(244, 236, 225, .25); font-size: 0.85rem; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; color: #E6D9C8; }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .grid-products { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .foot { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  :root { --header-h: 72px; }
  .hdr { grid-template-columns: 1fr auto 1fr; }
  .hdr nav { display: none; }
  .hdr__menu { display: block; }
  .hdr__brand img { width: 48px; height: 48px; }
  .hdr__right .hdr__desktop-only { display: none; }
  .hero, .split, .signup, .pdp, .two-col, .contact-grid { grid-template-columns: minmax(0, 1fr); }
  .hero .lozenge { margin: 0 auto; max-width: 420px; order: -1; }
  .facts { grid-template-columns: minmax(0, 1fr); }
  .pdp__info, .summary { position: static; }
  .cats { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: none; grid-auto-rows: clamp(180px, 42vw, 260px); }
  .cat--rings { grid-column: 1 / 3; grid-row: auto; }
  .cat--necklaces, .cat--earrings, .cat--bracelets { grid-column: auto; grid-row: auto; }
  .cat--bracelets { grid-column: 1 / 3; }
}
@media (max-width: 560px) {
  .cat__count { left: 20px; right: auto; bottom: 50px; }
  .card__meta { flex-direction: column; gap: 2px; }
  .grid-products { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 14px; }
  .line { grid-template-columns: 72px minmax(0, 1fr); }
  .line .qty, .line__price { grid-column: 2; justify-self: start; }
  .row-2 { grid-template-columns: 1fr; }
  .row-2 > .field + .field { margin-top: 18px; }
  .fieldset .row-2 > .field + .field { margin-top: 18px; }
  .signup form { flex-direction: column; }
  .foot { grid-template-columns: 1fr; }
  .toolbar { align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  .lozenge__line { animation: none; stroke-dashoffset: 0; }
  html { scroll-behavior: auto; }
}
