/* ==========================================================
   Regina Jewelry — convertible ring/bracelet landing page
   Palette derived from the supplied product photography:
   ink        from the black-backdrop product shot
   champagne  from the gold plating / logo mark
   silver     from the rhodium variant
   blush      from the pink-backdrop shot (accent only)
   ivory      from the cream studio backdrop
   ========================================================== */
:root {
  --color-primary: #1C1A17;      /* ink */
  --color-secondary: #B8922E;    /* champagne gold */
  --color-accent: #E4B3B6;       /* blush */
  --color-silver: #B5B9C2;
  --color-background: #F7F3EC;   /* ivory */
  --color-surface: #FFFFFF;
  --color-text: #1C1A17;
  --color-muted: #6F685E;
  --color-line: #E6DFD3;
  --color-button: var(--color-primary);
  --color-button-text: #FBF8F2;
  --color-badge: #F1E7D0;
  --color-badge-text: #6B531A;
  --color-variant: var(--color-secondary);

  --font-display: "Marcellus", "Reem Kufi", Georgia, serif;
  --font-body: "Jost", "Tajawal", system-ui, -apple-system, "Segoe UI", sans-serif;
  --radius: 18px;
  --shadow-soft: 0 18px 40px -24px rgba(28, 26, 23, .35), 0 2px 6px -2px rgba(28, 26, 23, .08);
  --wrap: 1180px;
  --gutter: clamp(18px, 4vw, 48px);
}
[dir="rtl"] {
  --font-display: "Reem Kufi", "Marcellus", "Tajawal", sans-serif;
  --font-body: "Tajawal", "Jost", system-ui, sans-serif;
}
[data-variant="silver"] { --color-variant: var(--color-silver); --color-badge: #EEF0F3; --color-badge-text: #3F444D; }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-background);
  padding-bottom: 92px; /* room for sticky CTA */
}
img, video { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 400; line-height: 1.15; margin: 0 0 .5em; letter-spacing: .005em; }
h1 { font-size: clamp(2rem, 5.2vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.4rem); }
p { margin: 0 0 1em; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--color-secondary); outline-offset: 3px; }
[hidden] { display: none !important; }

/* ---------- open-link motif (from the bracelet chain) ---------- */
.link-motif {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='96' height='32' viewBox='0 0 96 32'%3E%3Cg fill='none' stroke='%23B8922E' stroke-opacity='.28' stroke-width='1.2'%3E%3Cellipse cx='24' cy='16' rx='20' ry='9'/%3E%3Cellipse cx='72' cy='16' rx='20' ry='9'/%3E%3Ccircle cx='48' cy='16' r='3.2'/%3E%3Ccircle cx='0' cy='16' r='3.2'/%3E%3Ccircle cx='96' cy='16' r='3.2'/%3E%3C/g%3E%3C/svg%3E");
  background-repeat: repeat-x;
  background-size: 96px 32px;
  height: 32px;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  font: inherit; font-weight: 500; text-decoration: none; cursor: pointer;
  border: 1px solid transparent; border-radius: 999px; padding: .8em 1.6em;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.btn-primary { background: var(--color-button); color: var(--color-button-text); box-shadow: 0 10px 24px -14px rgba(28,26,23,.6); }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 14px 30px -14px rgba(28,26,23,.7); }
.btn-primary:active { transform: translateY(0) scale(.985); }
.btn-sm { padding: .55em 1.1em; font-size: .92rem; }
.btn-lg { padding: 1em 2em; font-size: 1.05rem; }
.btn-block { width: 100%; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 40;
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px var(--gutter);
  background: rgba(247, 243, 236, .85); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--color-line);
}
.brand img { width: auto; height: 40px; }
.header-actions { display: flex; align-items: center; gap: 10px; }
.lang-toggle {
  font: inherit; font-weight: 500; font-size: .85rem; letter-spacing: .08em;
  background: transparent; border: 1px solid var(--color-line); border-radius: 999px; padding: .45em .9em; cursor: pointer; color: var(--color-text);
}
.lang-toggle:hover { border-color: var(--color-secondary); }

/* ---------- hero ---------- */
.hero {
  max-width: var(--wrap); margin: 0 auto; padding: clamp(20px, 4vw, 56px) var(--gutter) 24px;
  display: grid; gap: clamp(22px, 4vw, 56px); align-items: center;
}
@media (min-width: 900px) { .hero { grid-template-columns: 1.05fr 1fr; min-height: calc(100vh - 64px); } }

.hero-visual { position: relative; }
.hero-image {
  margin: 0; border-radius: calc(var(--radius) + 8px); overflow: hidden; background: var(--color-surface);
  box-shadow: var(--shadow-soft); aspect-ratio: 1 / 1;
}
.hero-image img { width: 100%; height: 100%; object-fit: cover; }
.hero-loop {
  position: absolute; inset-inline-start: -6px; bottom: 10%; width: clamp(120px, 28%, 190px);
  background: var(--color-surface); border-radius: 14px; padding: 6px; box-shadow: var(--shadow-soft);
  transform: rotate(-3deg);
}
.hero-loop-media { border-radius: 10px; overflow: hidden; aspect-ratio: 1 / 1; background: #f2eee7; }
.hero-loop-media video, .hero-loop-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-loop-label { display: block; font-size: .72rem; text-align: center; padding: 5px 2px 1px; color: var(--color-muted); letter-spacing: .02em; }
.hero-badges { position: absolute; top: 14px; inset-inline-end: 14px; display: flex; flex-direction: column; gap: 6px; align-items: flex-end; }
.badge {
  font-size: .74rem; font-weight: 500; letter-spacing: .03em; background: rgba(255,255,255,.92); color: var(--color-badge-text);
  border: 1px solid var(--color-badge); border-radius: 999px; padding: .35em .8em; backdrop-filter: blur(6px);
}

.eyebrow { font-size: .8rem; letter-spacing: .2em; text-transform: uppercase; color: var(--color-secondary); font-weight: 500; margin-bottom: .9em; }
[dir="rtl"] .eyebrow { letter-spacing: .04em; }
.lead { font-size: 1.08rem; color: var(--color-muted); max-width: 46ch; }

.variant-picker { display: flex; align-items: center; gap: 10px; margin: 1.2em 0 .9em; flex-wrap: wrap; }
.variant-label { font-size: .85rem; color: var(--color-muted); margin-inline-end: 4px; }
.variant {
  display: inline-flex; align-items: center; gap: 8px; font: inherit; font-size: .92rem; cursor: pointer;
  background: var(--color-surface); border: 1px solid var(--color-line); border-radius: 999px; padding: .4em .9em .4em .5em;
  transition: border-color .15s, box-shadow .15s;
}
[dir="rtl"] .variant { padding: .4em .5em .4em .9em; }
.variant.is-active { border-color: var(--color-primary); box-shadow: 0 0 0 1px var(--color-primary); }
.swatch { width: 20px; height: 20px; border-radius: 50%; display: inline-block; box-shadow: inset 0 0 0 1px rgba(0,0,0,.08); }
.swatch-gold { background: linear-gradient(135deg, #F3DD9A, #C9A13A 55%, #8F6C16); }
.swatch-silver { background: linear-gradient(135deg, #F4F5F7, #B9BDC5 55%, #7D838E); }

.price-row { display: flex; align-items: baseline; gap: 12px; margin-bottom: 1.1em; flex-wrap: wrap; }
.price { font-family: var(--font-display); font-size: 1.9rem; }
.order-meta .price, .sticky-cta .price { font-size: 1.25rem; }
.compare { color: var(--color-muted); font-size: 1.05rem; }
.save { font-size: .78rem; background: var(--color-badge); color: var(--color-badge-text); border-radius: 999px; padding: .25em .7em; }
.save:empty { display: none; }

.trust { list-style: none; padding: 0; margin: 1.4em 0 0; display: grid; gap: .45em; color: var(--color-muted); font-size: .95rem; }
.trust li { display: flex; gap: .6em; align-items: center; }
.trust li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--color-secondary); flex: none; }

/* ---------- sections ---------- */
.section { max-width: var(--wrap); margin: 0 auto; padding: clamp(44px, 7vw, 96px) var(--gutter); }
.section-head { margin-bottom: clamp(20px, 3vw, 36px); max-width: 60ch; }
.section-head p { color: var(--color-muted); }

/* transformation */
.transform { display: grid; gap: 32px; align-items: center; }
@media (min-width: 820px) { .transform { grid-template-columns: 1fr 1.1fr; } }
.transform-media { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-soft); background: var(--color-surface); }
.transform-media img, .transform-media video { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.facts { margin: 0; display: grid; gap: 18px; }
.facts div { border-top: 1px solid var(--color-line); padding-top: 14px; }
.facts dt { font-family: var(--font-display); font-size: 1.15rem; margin-bottom: .2em; }
.facts dd { margin: 0; color: var(--color-muted); }

/* gallery */
.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (min-width: 700px) { .gallery { grid-template-columns: repeat(3, 1fr); gap: 16px; } .gallery > :first-child { grid-column: span 2; grid-row: span 2; } }
.gallery-item { margin: 0; border: 0; padding: 0; background: var(--color-surface); border-radius: var(--radius); overflow: hidden; cursor: zoom-in; box-shadow: var(--shadow-soft); aspect-ratio: 1 / 1; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.gallery-item:hover img { transform: scale(1.03); }

/* pack */
.pack-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; }
.pack-card { background: var(--color-surface); border-radius: var(--radius); padding: 14px; box-shadow: var(--shadow-soft); }
.pack-card img { width: 100%; aspect-ratio: 1 / 1; object-fit: contain; background: #fff; border-radius: 12px; }
.pack-card figcaption { padding: 10px 4px 2px; font-size: .95rem; color: var(--color-muted); }

/* lifestyle strip */
.lifestyle-strip { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; -webkit-overflow-scrolling: touch; }
.lifestyle-strip > * { flex: 0 0 min(72vw, 300px); scroll-snap-align: start; border-radius: var(--radius); overflow: hidden; margin: 0; box-shadow: var(--shadow-soft); background: var(--color-surface); }
.lifestyle-strip img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
@media (min-width: 900px) { .lifestyle-strip { display: grid; grid-template-columns: repeat(4, 1fr); overflow: visible; } .lifestyle-strip > * { flex: auto; } }

/* reviews */
.reviews { background: var(--color-primary); color: #F4EFE6; max-width: none; }
.reviews .section-head p { color: rgba(244,239,230,.7); }
.reviews-inner { max-width: var(--wrap); margin: 0 auto; }
.review-grid { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; }
.review-grid > * { flex: 0 0 min(70vw, 250px); scroll-snap-align: start; }
@media (min-width: 900px) { .review-grid { display: grid; grid-template-columns: repeat(4, 1fr); } }
.review-card { position: relative; border-radius: var(--radius); overflow: hidden; background: #000; aspect-ratio: 9 / 16; }
.review-card video { width: 100%; height: 100%; object-fit: cover; }
.review-play {
  position: absolute; inset: 0; width: 100%; border: 0; background: linear-gradient(to top, rgba(0,0,0,.55), rgba(0,0,0,0) 45%); cursor: pointer; color: #fff;
  display: flex; flex-direction: column; justify-content: flex-end; align-items: flex-start; padding: 14px; gap: 6px; font: inherit; text-align: start;
}
.review-play .ico { width: 52px; height: 52px; border-radius: 50%; background: rgba(255,255,255,.92); color: var(--color-primary); display: grid; place-items: center; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); transition: transform .15s, opacity .15s; }
.review-play .ico svg { width: 20px; height: 20px; fill: currentColor; margin-inline-start: 3px; }
.review-play .lbl { font-size: .82rem; opacity: .9; }
.review-card.is-playing .review-play { background: transparent; }
.review-card.is-playing .review-play .ico { opacity: 0; transform: translate(-50%, -50%) scale(.8); }
.review-card.is-playing .review-play:hover .ico, .review-card.is-playing .review-play:focus-visible .ico { opacity: 1; transform: translate(-50%, -50%); }
.review-card.is-playing .review-play .ico svg { margin: 0; }
.review-mute { position: absolute; top: 10px; inset-inline-end: 10px; border: 0; background: rgba(0,0,0,.5); color: #fff; border-radius: 999px; width: 34px; height: 34px; display: grid; place-items: center; cursor: pointer; }
.review-mute svg { width: 16px; height: 16px; fill: currentColor; }

/* order */
.order-card { background: var(--color-surface); border-radius: calc(var(--radius) + 6px); box-shadow: var(--shadow-soft); padding: clamp(18px, 3vw, 36px); max-width: 720px; margin: 0 auto; }
.order-summary { display: flex; gap: 16px; align-items: center; margin-bottom: 22px; padding-bottom: 18px; border-bottom: 1px solid var(--color-line); }
.order-summary h2 { margin-bottom: .15em; }
.order-thumb { width: 84px; height: 84px; flex: none; border-radius: 14px; overflow: hidden; background: var(--color-background); }
.order-thumb img { width: 100%; height: 100%; object-fit: cover; }
.order-meta { margin: 0 0 .3em; }
.order-note { color: var(--color-muted); font-size: .9rem; margin: 0; }
.order-form { display: grid; gap: 14px; }
.order-form label { display: grid; gap: 6px; font-size: .9rem; color: var(--color-muted); }
.order-form input, .order-form select { font: inherit; font-size: 1rem; color: var(--color-text); padding: .75em .9em; border: 1px solid var(--color-line); border-radius: 12px; background: #FCFAF6; width: 100%; }
.order-form input:focus, .order-form select:focus { outline: none; border-color: var(--color-secondary); box-shadow: 0 0 0 3px rgba(184,146,46,.15); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-error { color: #9B2C2C; font-size: .9rem; margin: 0; }
.order-success { text-align: center; padding: 24px 0 8px; }

/* faq */
.faq { max-width: 720px; }
.faq details { border-top: 1px solid var(--color-line); padding: 14px 0; }
.faq details:last-of-type { border-bottom: 1px solid var(--color-line); }
.faq summary { cursor: pointer; font-weight: 500; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--font-display); font-size: 1.3rem; color: var(--color-secondary); }
.faq details[open] summary::after { content: "–"; }
.faq p { margin: 10px 0 0; color: var(--color-muted); }

/* footer */
.site-footer { text-align: center; padding: 40px var(--gutter) 48px; color: var(--color-muted); font-size: .9rem; }
.site-footer img { height: 54px; width: auto; margin: 0 auto 10px; opacity: .85; }

/* sticky CTA */
.sticky-cta {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom));
  background: rgba(255,255,255,.92); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--color-line);
  transform: translateY(100%); transition: transform .25s ease;
}
.sticky-cta.is-visible { transform: translateY(0); }
.sticky-cod { font-size: .78rem; color: var(--color-muted); display: block; }
@media (min-width: 900px) { .sticky-cta { display: none; } body { padding-bottom: 0; } }

/* lightbox */
.lightbox { position: fixed; inset: 0; z-index: 60; background: rgba(28,26,23,.92); display: grid; place-items: center; padding: 20px; }
.lightbox-body img { max-height: 88vh; max-width: 92vw; width: auto; height: auto; border-radius: 12px; }
.lightbox-close { position: absolute; top: 14px; inset-inline-end: 14px; width: 44px; height: 44px; border-radius: 50%; border: 0; font-size: 26px; cursor: pointer; background: rgba(255,255,255,.15); color: #fff; }

/* scroll reveal */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .gallery-item img { transition: none; }
  .hero-loop { transform: none; }
}
