/* Casa Prime design system
 *
 * Dark is the brand: near-black with warm gold. Light is the "relaxing" mood —
 * warm sand and clay rather than clinical white, so the switch reads as a
 * change of light in the same room, not a different site.
 *
 * Layout uses CSS logical properties throughout (inline-start/end, margin-inline)
 * so the Hebrew/Arabic RTL layout and the English LTR layout come from one
 * stylesheet with no mirrored overrides.
 */

:root {
  --gold: #c9a227;
  --gold-bright: #e8c65a;
  --gold-dim: #8a6f1c;

  --bg: #0a0a0b;
  --bg-raised: #131316;
  --bg-sunken: #050506;
  --surface: #1a1a1f;
  --border: #2a2a31;
  --text: #f2efe9;
  --text-muted: #9b9691;
  --text-faint: #6b6763;

  --ok: #4b9d6e;
  --warn: #c98a27;
  --danger: #b4544a;

  --radius: 14px;
  --radius-lg: 24px;
  --shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
  --shadow-gold: 0 8px 32px rgba(201, 162, 39, 0.18);

  --font: "Heebo", "Rubik", "Segoe UI", system-ui, sans-serif;
  --font-display: "Playfair Display", "Heebo", Georgia, serif;

  --wrap: 1240px;
  --transition: 220ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* Light mood — rebuilt.
 *
 * The first attempt was a wash of low-contrast beige: text sat around 4:1 on a
 * mid-tone background, every surface was a slightly different sand, and there
 * was no clear hierarchy, which is tiring to read for any length of time.
 *
 * This is paper and ink instead. One near-white page colour, white cards that
 * lift off it, near-black text at ~15:1, and a brass that is dark enough to
 * stay legible on white — bright gold fails contrast badly on a light ground,
 * so light mode uses a deeper tone of the same hue rather than the same value.
 */
:root[data-theme="light"] {
  --bg: #f5f2ec;          /* warm paper, never pure white — no glare */
  --bg-raised: #ffffff;   /* cards lift by being lighter than the page */
  --bg-sunken: #eae5db;
  --surface: #ffffff;
  --border: #dcd5c8;

  --text: #17150f;        /* ~15:1 on --bg */
  --text-muted: #55503f;  /* ~7:1  — still passes for body copy */
  --text-faint: #857f6d;  /* ~4.6:1 — labels only, never body */

  --gold: #7a5f14;        /* 5.8:1 on white; the bright gold was 2.1:1 */
  --gold-bright: #96751c;
  --gold-dim: #cbbd92;

  /* Shadows carry the depth that the dark theme gets from glow. */
  --shadow: 0 1px 2px rgba(30, 25, 10, 0.05), 0 12px 32px rgba(30, 25, 10, 0.09);
  --shadow-gold: 0 1px 2px rgba(122, 95, 20, 0.10), 0 10px 28px rgba(122, 95, 20, 0.14);
}

/* Gold-on-gold buttons need dark text in light mode to stay readable. */
:root[data-theme="light"] .btn-primary {
  background: linear-gradient(135deg, #b8912c, #8a6c17);
  color: #fffdf6;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background var(--transition), color var(--transition);
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.2;
  margin: 0 0 0.5em;
}

/* Playfair Display covers Latin only, and its tight display line-height clips
 * the descenders of Arabic and Hebrew glyphs. Each script gets a display face
 * that actually contains it, plus the leading that script needs. */
:lang(ar) h1, :lang(ar) h2, :lang(ar) h3, :lang(ar) h4,
:lang(ar) .logo, :lang(ar) .stat-value {
  font-family: "Cairo", "Noto Kufi Arabic", var(--font);
  line-height: 1.55;
}

:lang(he) h1, :lang(he) h2, :lang(he) h3, :lang(he) h4,
:lang(he) .logo, :lang(he) .stat-value {
  font-family: "Frank Ruhl Libre", "Heebo", var(--font);
  line-height: 1.4;
}

/* background-clip:text paints only within the line box, so a gradient heading
 * needs a little breathing room or tall glyphs get shaved off. */
.hero h1 .accent {
  display: inline-block;
  padding-block-end: 0.14em;
}

h1 { font-size: clamp(2.2rem, 6vw, 4.5rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.6rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); }

a {
  color: var(--gold-bright);
  text-decoration: none;
  transition: color var(--transition);
}
a:hover { color: var(--gold); }

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

.wrap {
  width: min(100% - 2.5rem, var(--wrap));
  margin-inline: auto;
}

.section { padding-block: clamp(3rem, 8vw, 7rem); }

.eyebrow {
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  font-family: var(--font);
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.muted { color: var(--text-muted); }
.center { text-align: center; }

/* --- header ------------------------------------------------------------- */

.site-header {
  position: fixed;
  inset-block-start: 0;
  inset-inline: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1rem clamp(1.25rem, 4vw, 3rem);
  background: transparent;
  transition: background var(--transition), border-color var(--transition);
  border-block-end: 1px solid transparent;
}

/* Applied by JS once the page scrolls past the hero. */
.site-header.is-stuck {
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(16px);
  border-block-end-color: var(--border);
}

.logo {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.logo span { color: var(--gold); }

.nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-inline-start: auto;
}

.nav a {
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 500;
  position: relative;
  padding-block: 0.25rem;
}

/* Gold underline that grows from the inline-start edge — direction-aware. */
.nav a::after {
  content: "";
  position: absolute;
  inset-block-end: 0;
  inset-inline-start: 0;
  width: 0;
  height: 2px;
  background: var(--gold);
  transition: width var(--transition);
}
.nav a:hover::after,
.nav a.active::after { width: 100%; }

.nav-tools {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  width: auto;
  min-width: 40px;
  height: 40px;
  padding-inline: 0.7rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface) 70%, transparent);
  color: var(--text);
  font-size: 0.9rem;
  cursor: pointer;
  transition: all var(--transition);
}
.icon-btn:hover {
  border-color: var(--gold);
  color: var(--gold-bright);
}

.cart-badge {
  background: var(--gold);
  color: #14110a;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  min-width: 19px;
  height: 19px;
  display: inline-grid;
  place-items: center;
  padding-inline: 5px;
}

.lang-switch {
  display: flex;
  gap: 0.15rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 3px;
}

/* Each language is its own form (so the switcher works without JavaScript);
 * display:contents lets the buttons sit in the flex row as if unwrapped. */
.lang-switch form {
  display: contents;
}
.lang-switch button {
  border: 0;
  background: none;
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  cursor: pointer;
  transition: all var(--transition);
}
.lang-switch button.active {
  background: var(--gold);
  color: #14110a;
}

.nav-toggle { display: none; }

/* --- hero --------------------------------------------------------------- */

.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  place-items: center;
  overflow: hidden;
  isolation: isolate;
}

/* Pinned hero: the section is taller than the viewport and the stage sticks,
 * so scrolling advances the photo sequence in place before the page moves on.
 * 2.2 screens gives five frames room to breathe without stranding the visitor
 * — the catalogue is still one flick away. */
.hero[data-pinned] {
  min-height: 220svh;
  display: block;
  overflow: visible;
}

.hero[data-pinned] .hero-stage {
  position: sticky;
  top: 0;
  height: 100svh;
  display: grid;
  place-items: center;
  overflow: hidden;
  isolation: isolate;
}

.hero-stage {
  position: relative;
  width: 100%;
}

/* Scroll-scrubbed interior footage, furthest back. */
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -3;
  opacity: 0.45;
}

/* Scroll-driven still sequence — the default background when no video is set. */
.hero-slides {
  position: absolute;
  inset: 0;
  z-index: -3;
  overflow: hidden;
  background: var(--bg-sunken);
}

.hero-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  /* Slightly oversized so the Ken Burns pan never exposes an edge. */
  transform: scale(1.08);
  will-change: transform, opacity;
  /* JS drives opacity per frame; no CSS transition, or the two would fight. */
}

/* Warm grade over the photography. Deliberately light: `.hero-scrim` already
 * darkens the centre and blends the hero into the page below, so a heavy grade
 * here stacks with it and buries the image. This one only deepens the top and
 * bottom edges, where the nav and the headline actually need contrast. */
.hero-slides::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom,
      rgba(10, 10, 11, 0.55) 0%,
      rgba(10, 10, 11, 0.12) 38%,
      rgba(10, 10, 11, 0.30) 70%,
      rgba(10, 10, 11, 0.70) 100%),
    radial-gradient(ellipse at 50% 55%,
      rgba(201, 162, 39, 0.12), transparent 66%);
  pointer-events: none;
}

:root[data-theme="light"] .hero-slides::after {
  background:
    linear-gradient(to bottom,
      rgba(28, 22, 12, 0.48) 0%,
      rgba(28, 22, 12, 0.10) 38%,
      rgba(28, 22, 12, 0.26) 70%,
      rgba(28, 22, 12, 0.58) 100%),
    radial-gradient(ellipse at 50% 55%,
      rgba(201, 162, 39, 0.14), transparent 66%);
}

/* Three.js canvas rides above the background, below the copy. */
#hero-canvas {
  position: absolute;
  inset: 0;
  z-index: -2;
}

/* With real photography behind it, the procedural room reads as a second,
 * conflicting interior. Dropping it back turns it into depth and moving gold
 * light over the photo instead of a competing subject. `screen` keeps its warm
 * highlights and lets its dark areas fall away. */
.hero-slides ~ #hero-canvas {
  opacity: 0.3;
  mix-blend-mode: screen;
}

/* Vignette that blends the hero into the page below. Tuned against a
 * full-opacity photo sequence — pulling `var(--bg)` in too early flattens the
 * image into a dark rectangle. */
.hero-scrim {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse at 50% 45%, transparent 34%, var(--bg) 96%),
    linear-gradient(to bottom,
      color-mix(in srgb, var(--bg) 45%, transparent),
      transparent 30%,
      transparent 72%,
      var(--bg) 100%);
}

.hero-content {
  position: relative;
  text-align: center;
  padding-inline: 1.5rem;
  max-width: 60rem;
}

/* Soft pool of shade carried with the copy itself.
 *
 * The client swaps the hero photography from the dashboard, so legibility must
 * not depend on which image happens to be showing — gold on a sunlit bed or a
 * white worktop is otherwise unreadable. This travels with the text and is
 * invisible against dark frames. */
.hero-content::before {
  content: "";
  position: absolute;
  inset: -18% -14%;
  z-index: -1;
  background: radial-gradient(
    ellipse at center,
    rgba(6, 6, 8, 0.78) 0%,
    rgba(6, 6, 8, 0.56) 38%,
    rgba(6, 6, 8, 0.22) 62%,
    transparent 78%
  );
  pointer-events: none;
}

:root[data-theme="light"] .hero-content::before {
  background: radial-gradient(
    ellipse at center,
    rgba(10, 8, 4, 0.66) 0%,
    rgba(10, 8, 4, 0.44) 38%,
    rgba(10, 8, 4, 0.18) 62%,
    transparent 78%
  );
}

.hero h1 {
  margin-bottom: 0.25em;
  text-shadow: 0 2px 40px rgba(0, 0, 0, 0.6);
}

.hero h1 .accent {
  background: linear-gradient(120deg, var(--gold-bright), var(--gold), var(--gold-bright));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* The rotating phrase. Fixed min-height stops the hero jumping as lines swap. */
.hero-phrase {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 2.6vw, 1.9rem);
  color: var(--text-muted);
  min-height: 2.6em;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.15em;
}

.hero-phrase .caret {
  display: inline-block;
  width: 2px;
  height: 1.1em;
  background: var(--gold);
  animation: blink 1s steps(2) infinite;
}

@keyframes blink { 50% { opacity: 0; } }

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 2.5rem;
}

.scroll-hint {
  position: absolute;
  inset-block-end: 2rem;
  inset-inline-start: 50%;
  transform: translateX(-50%);
  color: var(--text-faint);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  animation: float 2.4s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translate(-50%, 0); }
  50% { transform: translate(-50%, 8px); }
}

/* --- buttons ------------------------------------------------------------ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 2rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-family: var(--font);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--gold-bright), var(--gold));
  color: #14110a;
  box-shadow: var(--shadow-gold);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(201, 162, 39, 0.32);
  color: #14110a;
}

.btn-ghost {
  border-color: var(--border);
  color: var(--text);
  background: color-mix(in srgb, var(--surface) 55%, transparent);
  backdrop-filter: blur(8px);
}
.btn-ghost:hover {
  border-color: var(--gold);
  color: var(--gold-bright);
}

.btn-sm { padding: 0.5rem 1.1rem; font-size: 0.85rem; }
.btn-block { width: 100%; }
.btn-danger { background: var(--danger); color: #fff; }

/* --- category bubbles --------------------------------------------------- */

.bubbles {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: clamp(1rem, 3vw, 2.25rem);
  padding-block: 1rem;
}

.bubble {
  position: relative;
  aspect-ratio: 1;
  border-radius: 50%;
  overflow: hidden;
  display: grid;
  place-items: center;
  text-align: center;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  /* Staggered idle drift; --i is set per-bubble in the template. */
  animation: bubble-drift 7s ease-in-out infinite;
  animation-delay: calc(var(--i, 0) * -0.9s);
}

@keyframes bubble-drift {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.bubble:hover {
  transform: translateY(-10px) scale(1.05);
  border-color: var(--accent, var(--gold));
  box-shadow: 0 14px 44px color-mix(in srgb, var(--accent, var(--gold)) 34%, transparent);
  animation-play-state: paused;
}

.bubble img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.5;
  transition: opacity var(--transition), transform var(--transition);
}
.bubble:hover img { opacity: 0.75; transform: scale(1.08); }

.bubble-inner {
  position: relative;
  z-index: 1;
  padding: 1rem;
  display: grid;
  gap: 0.5rem;
  place-items: center;
}

/* Drawn icons, not emoji — they take the accent colour and sit optically
 * centred, which emoji never do. */
.bubble-icon {
  color: var(--accent, var(--gold));
  display: grid;
  place-items: center;
  transition: transform var(--transition);
}
.bubble:hover .bubble-icon { transform: translateY(-2px) scale(1.08); }

.icon { display: block; }

.bubble-name {
  font-weight: 600;
  font-size: 0.98rem;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.7);
}

.bubble-count {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Radial gold wash behind the bubble grid. */
.bubbles-stage {
  position: relative;
}
.bubbles-stage::before {
  content: "";
  position: absolute;
  inset: -12% -6%;
  background: radial-gradient(ellipse at center, color-mix(in srgb, var(--gold) 9%, transparent), transparent 68%);
  pointer-events: none;
  z-index: -1;
}

/* --- cards -------------------------------------------------------------- */

.grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}

.card {
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
  display: flex;
  flex-direction: column;
}
.card:hover {
  transform: translateY(-5px);
  border-color: var(--gold-dim);
  box-shadow: var(--shadow);
}

.card-media {
  position: relative;
  aspect-ratio: 4 / 3;
  background: var(--bg-sunken);
  overflow: hidden;
}
.card-media img,
.card-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 500ms ease;
}
.card:hover .card-media img { transform: scale(1.06); }

/* Hover clip sits on top of the still and fades in. */
.card-media video {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity var(--transition);
}
.card:hover .card-media video { opacity: 1; }

.card-body {
  padding: 1.1rem 1.25rem 1.35rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  flex: 1;
}

.card-title { font-family: var(--font); font-weight: 600; font-size: 1.02rem; margin: 0; }
.card-meta { font-size: 0.82rem; color: var(--text-muted); }
.card-foot { margin-top: auto; padding-top: 0.75rem; display: flex; align-items: center; gap: 0.6rem; }

.price { color: var(--gold-bright); font-weight: 700; }

.tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--text-muted);
}
.tag-gold { border-color: var(--gold-dim); color: var(--gold-bright); }
.tag-ok { border-color: var(--ok); color: var(--ok); }
.tag-warn { border-color: var(--warn); color: var(--warn); }
.tag-danger { border-color: var(--danger); color: var(--danger); }

/* --- showcase ----------------------------------------------------------- */

.showcase {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.25rem;
}

.showcase-item {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  border: 1px solid var(--border);
}
/* Every third tile spans two columns for an editorial rhythm. */
.showcase-item:nth-child(3n + 1) { aspect-ratio: 4 / 3; grid-column: span 2; }

.showcase-item img,
.showcase-item video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 700ms ease;
}
.showcase-item:hover img { transform: scale(1.05); }

.showcase-caption {
  position: absolute;
  inset-block-end: 0;
  inset-inline: 0;
  padding: 2.5rem 1.5rem 1.25rem;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.85), transparent);
  color: #fff;
}
.showcase-caption h3 { margin: 0 0 0.15rem; font-size: 1.15rem; }
.showcase-caption p { margin: 0; font-size: 0.82rem; opacity: 0.8; }

/* --- reveal on scroll --------------------------------------------------- */

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 700ms ease, transform 700ms ease;
}
.reveal.is-visible { opacity: 1; transform: none; }

/* --- forms -------------------------------------------------------------- */

.form-grid {
  display: grid;
  gap: 1.1rem;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}

.field { display: grid; gap: 0.4rem; }
.field-wide { grid-column: 1 / -1; }

label {
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--text-muted);
}

input[type="text"], input[type="email"], input[type="tel"], input[type="password"],
input[type="number"], input[type="url"], input[type="date"], input[type="datetime-local"],
input[type="file"], select, textarea {
  width: 100%;
  padding: 0.7rem 0.9rem;
  background: var(--bg-sunken);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  font-family: inherit;
  font-size: 0.95rem;
  transition: border-color var(--transition), box-shadow var(--transition);
}

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--gold) 20%, transparent);
}

textarea { resize: vertical; min-height: 90px; }

.checkbox-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.checkbox-row label { font-weight: 500; color: var(--text); }
input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--gold); }

.help { font-size: 0.78rem; color: var(--text-faint); }
.errorlist {
  list-style: none;
  padding: 0;
  margin: 0.25rem 0 0;
  color: var(--danger);
  font-size: 0.82rem;
}

/* --- panels, tables, messages ------------------------------------------ */

.panel {
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: clamp(1.25rem, 3vw, 2rem);
}

.panel + .panel { margin-top: 1.25rem; }

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.25rem;
}
.panel-head h2, .panel-head h3 { margin: 0; }

.table-scroll { overflow-x: auto; }

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}
th, td {
  padding: 0.75rem 0.85rem;
  text-align: start;
  border-block-end: 1px solid var(--border);
}
th {
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-faint);
  font-weight: 600;
}
tbody tr:hover { background: color-mix(in srgb, var(--gold) 5%, transparent); }

.messages { list-style: none; padding: 0; margin: 0 0 1.5rem; display: grid; gap: 0.6rem; }
.messages li {
  padding: 0.8rem 1.1rem;
  border-radius: 10px;
  border-inline-start: 3px solid var(--gold);
  background: var(--bg-raised);
  font-size: 0.92rem;
}
.messages li.success { border-inline-start-color: var(--ok); }
.messages li.warning { border-inline-start-color: var(--warn); }
.messages li.error { border-inline-start-color: var(--danger); }

.empty {
  text-align: center;
  padding: 3rem 1.5rem;
  color: var(--text-muted);
}
.empty-icon { font-size: 2.5rem; margin-bottom: 0.5rem; opacity: 0.5; }

/* --- page shell --------------------------------------------------------- */

/* Offsets content below the fixed header on every page except the hero. */
.page { padding-block-start: 7rem; min-height: 70vh; }

.page-head { margin-bottom: 2.5rem; }
.page-head h1 { font-size: clamp(1.9rem, 4vw, 3rem); }

.breadcrumbs {
  font-size: 0.84rem;
  color: var(--text-faint);
  margin-bottom: 0.75rem;
}
.breadcrumbs a { color: var(--text-muted); }

/* --- dashboard layout --------------------------------------------------- */

.dash {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 2rem;
  align-items: start;
}

.dash-nav {
  position: sticky;
  top: 6.5rem;
  display: grid;
  gap: 0.25rem;
}
.dash-nav a {
  padding: 0.6rem 0.9rem;
  border-radius: 10px;
  color: var(--text-muted);
  font-size: 0.92rem;
  font-weight: 500;
  border-inline-start: 2px solid transparent;
}
.dash-nav a:hover { background: var(--bg-raised); color: var(--text); }
.dash-nav a.active {
  background: var(--bg-raised);
  border-inline-start-color: var(--gold);
  color: var(--gold-bright);
}

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.stat {
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
}
.stat-value {
  font-family: var(--font-display);
  font-size: 2.2rem;
  color: var(--gold-bright);
  line-height: 1;
}
.stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.35rem;
}

/* --- map picker --------------------------------------------------------- */

#map-picker {
  height: 340px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
  background: var(--bg-sunken);
}

.map-hint {
  font-size: 0.82rem;
  color: var(--text-faint);
  margin-top: 0.5rem;
}

/* --- slot picker -------------------------------------------------------- */

.slots {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 0.7rem;
}

.slot-option input { position: absolute; opacity: 0; pointer-events: none; }

.slot-option label {
  display: block;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg-sunken);
  cursor: pointer;
  transition: all var(--transition);
  font-weight: 500;
  color: var(--text);
}
.slot-option label:hover { border-color: var(--gold-dim); }
.slot-option input:checked + label {
  border-color: var(--gold);
  background: color-mix(in srgb, var(--gold) 14%, transparent);
  color: var(--gold-bright);
}
.slot-day { font-size: 0.76rem; color: var(--text-muted); display: block; }

/* Date tabs sit above the times. Without JS every day is shown with its own
 * heading, so the tabs and headings are mutually exclusive rather than both
 * appearing. */
.date-tabs {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
  margin-bottom: 1.1rem;
  scrollbar-width: thin;
}

.date-tab {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
  min-width: 4.2rem;
  padding: 0.6rem 0.7rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--bg-sunken);
  color: var(--text);
  cursor: pointer;
  font: inherit;
  transition: all var(--transition);
}
.date-tab:hover { border-color: var(--gold-dim); }
.date-tab.is-active {
  border-color: var(--gold);
  background: color-mix(in srgb, var(--gold) 14%, transparent);
  color: var(--gold-bright);
}
.date-dow { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-muted); }
.date-tab.is-active .date-dow { color: inherit; }
.date-day { font-size: 1.35rem; font-weight: 700; line-height: 1; font-variant-numeric: tabular-nums; }
.date-mon { font-size: 0.72rem; color: var(--text-muted); }
.date-tab.is-active .date-mon { color: inherit; }

.times-heading { margin: 0 0 0.75rem; }
.slot-picker .group-title { font-weight: 600; margin: 1.1rem 0 0.55rem; }
.slot-picker .time-group { margin-bottom: 0.5rem; }

/* JS on: the tabs replace the per-day headings. */
.slot-picker:not(.js) .date-tabs { display: none; }
.slot-picker.js .group-title { display: none; }
.slot-picker.js .time-group { display: none; }
.slot-picker.js .time-group.is-open { display: grid; }

.optional {
  font-size: 0.72rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-faint);
  margin-inline-start: 0.4rem;
}

/* --- booking reference -------------------------------------------------- */

.reference-card {
  text-align: center;
  padding: 2rem 1.5rem;
  border: 1px solid var(--gold-dim);
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--gold) 7%, transparent);
}
.reference-card .ref-label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--text-muted);
}
.reference-card .ref-code {
  display: block;
  margin: 0.5rem 0 0.35rem;
  font-size: clamp(2rem, 8vw, 2.9rem);
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--gold-bright);
  font-variant-numeric: tabular-nums;
}

/* --- footer ------------------------------------------------------------- */

.site-footer {
  border-block-start: 1px solid var(--border);
  background: var(--bg-sunken);
  padding-block: 3rem 2rem;
  margin-top: 4rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}
.footer-grid h4 {
  font-family: var(--font);
  font-size: 0.78rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.75rem;
}
.footer-grid a, .footer-grid p {
  display: block;
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 0.35rem;
}
.footer-grid a:hover { color: var(--gold-bright); }

.footer-bottom {
  border-block-start: 1px solid var(--border);
  padding-top: 1.5rem;
  text-align: center;
  font-size: 0.82rem;
  color: var(--text-faint);
}

/* Floating WhatsApp affordance — the client's customers expect it. */
.whatsapp-fab {
  position: fixed;
  inset-block-end: 1.5rem;
  inset-inline-end: 1.5rem;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: #25d366;
  display: grid;
  place-items: center;
  box-shadow: 0 6px 24px rgba(37, 211, 102, 0.4);
  z-index: 90;
  font-size: 1.6rem;
  transition: transform var(--transition);
}
.whatsapp-fab:hover { transform: scale(1.1); }

/* --- responsive --------------------------------------------------------- */

@media (max-width: 900px) {
  .dash { grid-template-columns: 1fr; }
  .dash-nav {
    position: static;
    grid-auto-flow: column;
    overflow-x: auto;
    gap: 0.5rem;
    padding-bottom: 0.5rem;
  }
  .dash-nav a { white-space: nowrap; border-inline-start: 0; border-block-end: 2px solid transparent; }
  .dash-nav a.active { border-block-end-color: var(--gold); }
  .showcase-item:nth-child(3n + 1) { grid-column: span 1; aspect-ratio: 4 / 5; }
}

@media (max-width: 760px) {
  .nav-toggle {
    display: inline-flex;
    margin-inline-start: auto;
    order: 2;
  }

  /* Physical properties on purpose.
   *
   * `transform: translateX()` is never direction-aware — it always moves left
   * for a negative value. Anchoring the drawer with logical `inset-inline-*`
   * while sliding it with a physical transform means the two disagree under
   * RTL, and the panel parks itself across the middle of the screen instead of
   * off-canvas. Anchor and transform must use the same coordinate system. */
  .nav {
    position: fixed;
    top: 0;
    right: 0;
    left: auto;
    height: 100svh;
    width: min(82vw, 320px);
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 1.75rem;
    padding: 2rem;
    margin: 0;
    background: var(--bg-raised);
    border-left: 1px solid var(--border);
    border-right: 0;
    transform: translateX(101%);
    transition: transform var(--transition);
    z-index: 120;
  }

  /* Mirrored: in RTL the drawer lives on the left and slides out to the left. */
  [dir="rtl"] .nav {
    right: auto;
    left: 0;
    border-left: 0;
    border-right: 1px solid var(--border);
    transform: translateX(-101%);
  }

  .nav.is-open,
  [dir="rtl"] .nav.is-open { transform: translateX(0); }

  .nav a { font-size: 1.15rem; width: 100%; }

  /* Dim the page behind an open drawer so the two layers read as separate. */
  .nav-scrim {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition);
    z-index: 110;
  }
  .nav-scrim.is-open { opacity: 1; pointer-events: auto; }

  .bubbles { grid-template-columns: repeat(2, 1fr); }
}

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

/* ==========================================================================
   Editorial layer
   --------------------------------------------------------------------------
   Everything above builds the components. This section gives the page a point
   of view: measured line lengths, an asymmetric section header with a hairline
   rule and an index numeral, and a quieter button tier. Centred-everything with
   evenly-weighted cards is what makes a layout feel generated rather than set.
   ========================================================================== */

/* Body copy is unreadable much past ~70 characters; forms and prose get a
   measure rather than stretching to the full 1240px wrap. */
.measure { max-width: 46rem; margin-inline: auto; }
.measure-wide { max-width: 62rem; margin-inline: auto; }

.lede {
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  line-height: 1.7;
  color: var(--text-muted);
  max-width: 42rem;
}

.small { font-size: 0.86rem; }

/* Asymmetric section header: index numeral, hairline, then the title. */
.section-head {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0 1.5rem;
  align-items: baseline;
  margin-bottom: clamp(2rem, 5vw, 3.5rem);
  padding-block-end: 1.25rem;
  border-block-end: 1px solid var(--border);
}

.section-index {
  font-family: var(--font);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: var(--gold);
  font-variant-numeric: tabular-nums;
}

.section-head h2 { margin: 0; }
.section-head .lede { grid-column: 2; margin-top: 0.6rem; }

/* A third, quieter button tier. Two weights of button made every row of
   actions read as equally urgent. */
.btn-quiet {
  background: none;
  border-color: transparent;
  color: var(--text-muted);
  padding-inline: 0.9rem;
}
.btn-quiet:hover { color: var(--gold-bright); background: var(--bg-sunken); }

.btn-row { display: flex; gap: 0.75rem; flex-wrap: wrap; margin-top: 1.5rem; }
.btn-row.center-row { justify-content: center; }

/* Numbered steps: the numeral is the graphic, no card chrome needed. */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: clamp(1.5rem, 4vw, 3rem);
}

.step { position: relative; padding-block-start: 1.5rem; }

.step::before {
  content: "";
  position: absolute;
  inset-block-start: 0;
  inset-inline: 0 auto;
  width: 2.5rem;
  height: 1px;
  background: var(--gold);
}

.step-index {
  font-family: var(--font-display);
  font-size: 2.4rem;
  line-height: 1;
  color: var(--gold);
  opacity: 0.55;
  font-variant-numeric: lining-nums tabular-nums;
  margin-bottom: 0.5rem;
}

.step h3 {
  font-family: var(--font);
  font-size: 1.02rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.step p { margin: 0; color: var(--text-muted); font-size: 0.94rem; }

/* One-time code entry: wide, monospaced, unmistakably a code field. */
.code-input {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 1.6rem;
  letter-spacing: 0.5em;
  text-align: center;
  text-indent: 0.5em;   /* re-centre against the trailing letter-space */
  padding-block: 0.9rem;
}

/* Status pill for an account still being confirmed. */
.notice {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1rem 1.15rem;
  border: 1px solid var(--gold-dim);
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--gold) 8%, transparent);
  margin-bottom: 1.5rem;
}
.notice p { margin: 0; font-size: 0.92rem; }
.notice strong { display: block; margin-bottom: 0.15rem; }

/* ==========================================================================
   Mobile
   --------------------------------------------------------------------------
   Phones are most of this audience. These override desktop assumptions that
   actively break below ~430px rather than merely looking tighter.
   ========================================================================== */

@media (max-width: 560px) {
  /* A 220vh pinned hero costs a phone user four thumb-flicks before they reach
     any content. Shorten the scroll and let the sequence run faster. */
  .hero[data-pinned] { min-height: 165svh; }

  .hero h1 { font-size: clamp(2rem, 11vw, 2.8rem); }
  .hero-phrase { font-size: 1rem; min-height: 3.2em; }
  .hero-content::before { inset: -12% -8%; }

  /* Stacked, full-width actions — side-by-side pills get too narrow to hit. */
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { width: 100%; }

  .bubbles { grid-template-columns: repeat(2, 1fr); gap: 1rem; }

  .section { padding-block: 3rem; }
  .section-head { grid-template-columns: 1fr; gap: 0.5rem; }
  .section-head .lede { grid-column: 1; }

  .panel { padding: 1.25rem; }
  .form-grid { grid-template-columns: 1fr; }

  /* Tables never fit; each row becomes a labelled block instead of a
     horizontally-scrolling strip nobody discovers they can scroll. */
  .table-stack thead { display: none; }
  .table-stack tr {
    display: block;
    padding-block: 0.9rem;
    border-block-end: 1px solid var(--border);
  }
  .table-stack td {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.3rem 0;
    border: 0;
    text-align: start;
  }
  .table-stack td::before {
    content: attr(data-label);
    color: var(--text-faint);
    font-size: 0.76rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    flex-shrink: 0;
  }

  .code-input { font-size: 1.3rem; letter-spacing: 0.35em; }
  .whatsapp-fab { width: 48px; height: 48px; inset-block-end: 1rem; inset-inline-end: 1rem; }
}

/* Touch devices: hover-reveal is a desktop idiom and strands content on a
   phone, where there is no hover to reveal it with. */
@media (hover: none) {
  .card-media video { opacity: 1; }
  .bubble { animation: none; }
}

/* Every interactive target meets the 44px minimum on touch. */
@media (pointer: coarse) {
  .btn, .icon-btn, .lang-switch button, .nav a {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }
  .lang-switch button { padding-inline: 0.85rem; }
}

/* --- catalogue: brands, lookbook & lightbox ----------------------------- */

.section-sub {
  font-family: var(--font-display);
  font-size: 1.35rem;
  margin: 0 0 1.1rem;
}
.card-blurb {
  font-size: 0.84rem;
  color: var(--text-muted);
  margin: 0.15rem 0 0;
  line-height: 1.45;
}

/* Lookbook: a contact sheet of rendered brochure pages. */
/* Masonry-style lookbook: pages keep their natural aspect ratio so redaction
   patches (positioned in %) line up exactly, and mixed page sizes flow neatly. */
.lookbook {
  column-width: 200px;
  column-gap: 1rem;
}
.lb-item {
  display: block;
  position: relative;
  break-inside: avoid;
  margin: 0 0 1rem;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-sunken);
  cursor: zoom-in;
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}
.lb-item img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 500ms ease;
}
/* Neutral patch that covers a supplier logo/URL on a page. */
.lb-item .redact,
.lb-imgwrap .redact {
  position: absolute;
  pointer-events: none;
}
.redact-blur {
  backdrop-filter: blur(9px);
  -webkit-backdrop-filter: blur(9px);
}
.lb-item:hover {
  transform: translateY(-4px);
  border-color: var(--gold-dim);
  box-shadow: var(--shadow);
}
/* No image zoom on hover — it would shift redaction patches off their target. */
.lb-item:focus-visible { outline: 2px solid var(--gold-bright); outline-offset: 2px; }

/* Fullscreen viewer. */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: clamp(0.75rem, 3vw, 2.5rem);
  background: rgba(3, 3, 4, 0.92);
  backdrop-filter: blur(6px);
}
.lightbox[hidden] { display: none; }
.lb-stage {
  margin: 0;
  max-width: min(100%, 1100px);
  max-height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
}
.lb-imgwrap {
  position: relative;
  display: inline-block;
  line-height: 0;
  max-width: 100%;
}
.lb-imgwrap .redact { position: absolute; pointer-events: none; }
.lb-stage img {
  max-width: 100%;
  max-height: calc(100vh - 6rem);
  object-fit: contain;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.lb-stage figcaption {
  color: var(--text-muted);
  font-size: 0.85rem;
  text-align: center;
}
.lb-nav,
.lb-close {
  flex: none;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 999px;
  cursor: pointer;
  line-height: 1;
  transition: background var(--transition), border-color var(--transition);
}
.lb-nav { width: 3rem; height: 3rem; font-size: 1.8rem; }
.lb-close {
  position: absolute;
  top: 1rem;
  inset-inline-end: 1rem;
  width: 2.6rem;
  height: 2.6rem;
  font-size: 1.6rem;
}
.lb-nav:hover,
.lb-close:hover { background: rgba(201, 162, 39, 0.22); border-color: var(--gold-dim); }
/* Directional glyphs flip automatically for RTL via logical mirroring. */
html[dir="rtl"] .lb-prev,
html[dir="rtl"] .lb-next { transform: scaleX(-1); }

@media (max-width: 640px) {
  /* Phones: one large, clear page per row so catalogue pages are easy to read. */
  .lookbook { column-count: 1; column-width: auto; }
  .lb-nav { width: 2.5rem; height: 2.5rem; font-size: 1.5rem; }
}
@media (min-width: 641px) and (max-width: 900px) {
  /* Small tablets: two per row. */
  .lookbook { column-count: 2; column-width: auto; }
}
@media (prefers-reduced-motion: reduce) {
  .lb-item, .lb-item img { transition: none; }
}

.step-n {
  display: inline-block;
  min-width: 1.55rem;
  margin-inline-end: 0.35rem;
  color: var(--gold);
  font-variant-numeric: tabular-nums;
}

/* A meeting is listed from the phone number, but opened with the booking
 * number, so each locked row carries its own small unlock form. */
.unlock-row { margin-top: 0.9rem; }
.unlock-row label {
  display: block;
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
}
.unlock-fields { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.unlock-fields input {
  flex: 1 1 12rem;
  max-width: 14rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
