/* ==========================================================================
   RBM Microcement - public site
   Palette is taken from RBM's own colour deck: mineral greys and khakis,
   with Ochre Clay (the one saturated colour in the deck) as the single accent.
   ========================================================================== */

:root {
  /* Light - the default */
  --ground:        #EFEFEA;
  --ground-deep:   #E5E5DE;
  --surface:       #F8F8F5;
  --surface-2:     #FFFFFF;
  --panel:         #E3E3DB;
  --ink:           #1B1A17;
  --ink-2:         #56544D;
  --muted:         #84817A;
  --line:          rgba(27, 26, 23, 0.14);
  --line-strong:   rgba(27, 26, 23, 0.28);
  --accent:        #C8936B;
  --accent-ink:    #8F5426;
  --accent-soft:   rgba(200, 147, 107, 0.16);
  --good:          #4F7355;
  --good-soft:     rgba(79, 115, 85, 0.14);
  --warn-ink:      #8A5A2B;
  --shadow:        0 1px 2px rgba(27, 26, 23, 0.05), 0 12px 32px -18px rgba(27, 26, 23, 0.4);
  --shadow-lift:   0 2px 4px rgba(27, 26, 23, 0.06), 0 24px 60px -28px rgba(27, 26, 23, 0.5);

  /* Washes over the banner photograph, so type stays readable on it */
  --hero-scrim-h:  linear-gradient(100deg, rgba(239,239,234,.58) 0%, rgba(239,239,234,.48) 30%, rgba(239,239,234,.3) 48%, rgba(239,239,234,.14) 62%, rgba(239,239,234,.04) 76%, rgba(239,239,234,0) 90%);
  --hero-scrim-v:  linear-gradient(to bottom, rgba(239,239,234,.22) 0%, rgba(239,239,234,0) 16%, rgba(239,239,234,0) 66%, var(--ground) 100%);
  --hero-scrim-m:  linear-gradient(to bottom, rgba(239,239,234,.86) 0%, rgba(239,239,234,.78) 55%, rgba(239,239,234,.88) 78%, var(--ground) 100%);

  --font-display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Hanken Grotesk", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "DM Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --gutter: clamp(20px, 5vw, 68px);
  --measure: 64ch;
  --radius: 3px;
  --radius-lg: 6px;

  --step--1: 0.8125rem;
  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: clamp(1.4rem, 1.1rem + 1vw, 1.85rem);
  --step-3: clamp(1.8rem, 1.3rem + 2.2vw, 2.9rem);
  --step-4: clamp(2.3rem, 1.4rem + 4vw, 4.4rem);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ground:        #191816;
    --ground-deep:   #131211;
    --surface:       #221F1C;
    --surface-2:     #2A2723;
    --panel:         #2F2C27;
    --ink:           #EDEAE1;
    --ink-2:         #B4AFA4;
    --muted:         #8E897F;
    --line:          rgba(237, 234, 225, 0.16);
    --line-strong:   rgba(237, 234, 225, 0.32);
    --accent:        #C8936B;
    --accent-ink:    #DCA57B;
    --accent-soft:   rgba(200, 147, 107, 0.18);
    --good:          #8FB08F;
    --good-soft:     rgba(143, 176, 143, 0.16);
    --warn-ink:      #D8A472;
    --shadow:        0 1px 2px rgba(0, 0, 0, 0.4), 0 12px 32px -18px rgba(0, 0, 0, 0.8);
    --shadow-lift:   0 2px 4px rgba(0, 0, 0, 0.5), 0 24px 60px -28px rgba(0, 0, 0, 0.9);
  --hero-scrim-h:  linear-gradient(100deg, rgba(25,24,22,.93) 0%, rgba(25,24,22,.86) 30%, rgba(25,24,22,.62) 50%, rgba(25,24,22,.38) 72%, rgba(25,24,22,.24) 100%);
  --hero-scrim-v:  linear-gradient(to bottom, rgba(25,24,22,.55) 0%, rgba(25,24,22,.1) 22%, rgba(25,24,22,.15) 56%, var(--ground) 100%);
  --hero-scrim-m:  linear-gradient(to bottom, rgba(25,24,22,.92) 0%, rgba(25,24,22,.86) 55%, rgba(25,24,22,.93) 78%, var(--ground) 100%);
  }
}

:root[data-theme="dark"] {
  --ground:        #191816;
  --ground-deep:   #131211;
  --surface:       #221F1C;
  --surface-2:     #2A2723;
  --panel:         #2F2C27;
  --ink:           #EDEAE1;
  --ink-2:         #B4AFA4;
  --muted:         #8E897F;
  --line:          rgba(237, 234, 225, 0.16);
  --line-strong:   rgba(237, 234, 225, 0.32);
  --accent:        #C8936B;
  --accent-ink:    #DCA57B;
  --accent-soft:   rgba(200, 147, 107, 0.18);
  --good:          #8FB08F;
  --good-soft:     rgba(143, 176, 143, 0.16);
  --warn-ink:      #D8A472;
  --shadow:        0 1px 2px rgba(0, 0, 0, 0.4), 0 12px 32px -18px rgba(0, 0, 0, 0.8);
  --shadow-lift:   0 2px 4px rgba(0, 0, 0, 0.5), 0 24px 60px -28px rgba(0, 0, 0, 0.9);
  --hero-scrim-h:  linear-gradient(100deg, rgba(25,24,22,.93) 0%, rgba(25,24,22,.86) 30%, rgba(25,24,22,.62) 50%, rgba(25,24,22,.38) 72%, rgba(25,24,22,.24) 100%);
  --hero-scrim-v:  linear-gradient(to bottom, rgba(25,24,22,.55) 0%, rgba(25,24,22,.1) 22%, rgba(25,24,22,.15) 56%, var(--ground) 100%);
  --hero-scrim-m:  linear-gradient(to bottom, rgba(25,24,22,.92) 0%, rgba(25,24,22,.86) 55%, rgba(25,24,22,.93) 78%, var(--ground) 100%);
}

/* --------------------------------------------------------------- reset */

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

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

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -0.018em;
  text-wrap: balance;
  margin: 0;
}

h1 { font-size: var(--step-4); font-variation-settings: "wdth" 108, "wght" 760; }
h2 { font-size: var(--step-3); font-variation-settings: "wdth" 106, "wght" 720; }
h3 { font-size: var(--step-1); font-variation-settings: "wdth" 104, "wght" 660; line-height: 1.22; letter-spacing: -0.008em; }

p { margin: 0; }

a { color: inherit; text-decoration-color: var(--line-strong); text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--accent); }

:focus-visible {
  outline: 2px solid var(--accent-ink);
  outline-offset: 3px;
}

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--ink); color: var(--ground); padding: 12px 18px;
}
.skip:focus { left: 12px; top: 12px; }

/* --------------------------------------------------------------- shared */

.wrap {
  width: 100%;
  max-width: 1220px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.measure { max-width: var(--measure); }

.eyebrow {
  font-family: var(--font-display);
  font-size: 0.6875rem;
  font-variation-settings: "wdth" 100, "wght" 620;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0;
}

.lead { font-size: var(--step-1); line-height: 1.5; color: var(--ink-2); }

.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }

.tbc {
  border-bottom: 1px dotted var(--accent);
  cursor: help;
}

.band { padding-block: clamp(56px, 8vw, 116px); }
.band--tight { padding-block: clamp(40px, 5vw, 68px); }
.band--panel { background: var(--surface); border-block: 1px solid var(--line); }
.band--deep { background: var(--ground-deep); }

.band__head { display: flex; flex-direction: column; gap: 14px; margin-bottom: clamp(32px, 4vw, 56px); }

.rule { height: 1px; background: var(--line); border: 0; margin: 0; }

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

.btn {
  --btn-bg: var(--ink);
  --btn-fg: var(--ground);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 26px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-family: var(--font-display);
  font-size: 0.8125rem;
  font-variation-settings: "wdth" 100, "wght" 660;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.16s ease, background-color 0.16s ease, border-color 0.16s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn[disabled], .btn[aria-disabled="true"] { opacity: 0.45; pointer-events: none; }

.btn--accent { --btn-bg: var(--accent); --btn-fg: #241608; }
.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--ink);
  border-color: var(--line-strong);
}
.btn--ghost:hover { border-color: var(--ink); }
.btn--sm { padding: 10px 16px; font-size: 0.6875rem; }
.btn--block { width: 100%; }

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: color-mix(in srgb, var(--ground) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--line);
}

.site-header__inner {
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: 74px;
}

.brand { display: inline-flex; align-items: center; color: var(--ink); text-decoration: none; }
.brand svg { height: 42px; width: auto; fill: currentColor; }

.nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2vw, 30px);
  margin-left: auto;
}

.nav__link {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-variation-settings: "wdth" 100, "wght" 580;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink-2);
  padding: 6px 0;
  border-bottom: 1px solid transparent;
}
.nav__link:hover { color: var(--ink); }
.nav__link[aria-current="page"] { color: var(--ink); border-bottom-color: var(--accent); }

.theme-toggle {
  display: inline-grid;
  place-items: center;
  width: 36px; height: 36px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  color: var(--ink-2);
  cursor: pointer;
}
.theme-toggle:hover { color: var(--ink); border-color: var(--line-strong); }
.theme-toggle svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.theme-toggle .icon-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
:root[data-theme="dark"] .theme-toggle .icon-moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .icon-sun { display: block; }
  :root:not([data-theme="light"]) .theme-toggle .icon-moon { display: none; }
}

.nav-toggle { display: none; }

@media (max-width: 900px) {
  .nav__link { display: none; }
  .nav-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 9px 13px;
    color: var(--ink);
    font-family: var(--font-display);
    font-size: 0.6875rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    cursor: pointer;
  }
  .site-header.is-open .nav__link {
    display: block;
    width: 100%;
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
  }
  .site-header.is-open .nav {
    flex-wrap: wrap;
    align-items: stretch;
  }
  .site-header.is-open .site-header__inner { flex-wrap: wrap; padding-bottom: 16px; }
  .site-header.is-open .nav { width: 100%; margin-left: 0; }
  /* The booking button is the point of the site - it stays on small screens. */
  .brand svg { height: 34px; }
  .header-cta { padding: 9px 13px; font-size: 0.625rem; letter-spacing: 0.08em; }
  .nav { gap: 10px; }
  .site-header.is-open .header-cta { width: 100%; }
}

@media (max-width: 420px) {
  .theme-toggle { display: none; }
  .site-header.is-open .theme-toggle { display: inline-grid; }
  .nav-toggle { padding: 9px 11px; }
}

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

.hero { position: relative; isolation: isolate; overflow: hidden; }

.hero__photo {
  position: absolute;
  inset: 0;
  z-index: -2;
  display: block;
}

.hero__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Keeps the plain wall behind the headline and the furniture to the right. */
  object-position: 64% 50%;
}

.hero__fade {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--hero-scrim-h), var(--hero-scrim-v);
}

@media (max-width: 760px) {
  .hero__fade { background: var(--hero-scrim-m); }
  .hero__photo img { object-position: 72% 46%; }
}

.hero__wipe {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: var(--ground);
  transform-origin: left center;
  animation: trowel 1.05s cubic-bezier(0.7, 0, 0.24, 1) forwards;
  pointer-events: none;
}
@keyframes trowel {
  from { transform: scaleX(1); }
  to { transform: scaleX(0); }
}
@media (prefers-reduced-motion: reduce) { .hero__wipe { display: none; } }

.hero__inner {
  display: grid;
  gap: clamp(30px, 4vw, 44px);
  padding-block: clamp(72px, 11vw, 152px);
  position: relative;
  z-index: 2;
}

.hero h1 { max-width: 16ch; }
.hero__intro { max-width: 46ch; font-size: var(--step-1); line-height: 1.5; }

.ticks {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: var(--step--1);
  color: var(--ink-2);
}
.ticks li { display: flex; align-items: center; gap: 9px; }
.ticks svg { width: 13px; height: 13px; stroke: var(--accent-ink); fill: none; stroke-width: 2.2; flex: none; }

/* ------------------------------------------------------- booking bar */

.booking-bar {
  display: grid;
  gap: 14px;
  padding: 18px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lift);
  max-width: 640px;
}

.booking-bar__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: stretch;
}

.booking-bar__label {
  display: block;
  font-family: var(--font-display);
  font-size: 0.625rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}

.booking-bar select { width: 100%; }

.booking-bar__next {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding-top: 4px;
  border-top: 1px solid var(--line);
  padding-block-start: 14px;
  font-size: var(--step--1);
  color: var(--ink-2);
}

.pulse {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--good);
  box-shadow: 0 0 0 0 var(--good-soft);
  animation: pulse 2.6s ease-out infinite;
  flex: none;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 var(--good-soft); }
  70% { box-shadow: 0 0 0 9px transparent; }
  100% { box-shadow: 0 0 0 0 transparent; }
}

.next-slot {
  font-family: var(--font-mono);
  font-size: var(--step--1);
  color: var(--ink);
  background: var(--good-soft);
  border: 1px solid transparent;
  border-radius: var(--radius);
  padding: 5px 10px;
  text-decoration: none;
  white-space: nowrap;
}
.next-slot:hover { border-color: var(--good); }

.booking-bar__note { font-size: var(--step--1); color: var(--muted); }

@media (max-width: 620px) {
  .booking-bar__row { grid-template-columns: minmax(0, 1fr); }
}

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

.field { display: grid; gap: 7px; }

.field__label {
  font-family: var(--font-display);
  font-size: 0.6875rem;
  font-variation-settings: "wght" 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

input[type="text"], input[type="tel"], input[type="email"], input[type="date"],
input[type="password"], input[type="number"], select, textarea {
  width: 100%;
  padding: 13px 14px;
  font-family: inherit;
  font-size: var(--step-0);
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  transition: border-color 0.14s ease, background-color 0.14s ease;
}
select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%);
  background-position: calc(100% - 20px) 55%, calc(100% - 14px) 55%;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 40px;
}
textarea { min-height: 120px; resize: vertical; }

input:hover, select:hover, textarea:hover { border-color: var(--ink-2); }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--accent-ink); outline-offset: 1px; border-color: transparent; }

.field__error { color: var(--accent-ink); font-size: var(--step--1); }

.honey { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.alert {
  padding: 14px 16px;
  border-radius: var(--radius);
  border: 1px solid var(--line-strong);
  background: var(--surface);
  font-size: var(--step--1);
}
.alert--good { border-color: var(--good); background: var(--good-soft); }
.alert--bad { border-color: var(--accent); background: var(--accent-soft); }

/* --------------------------------------------------- custom select ------- */
/*
   A native <select> draws its option list with the operating system, which no
   stylesheet can reach. This is a real listbox so the menu matches the site.
   The original <select> stays in the DOM as the value holder and the no-JS
   fallback; JS hides it only once the replacement is in place.
*/

.fs { position: relative; }

.fs__native { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }

.fs__button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  padding: 13px 14px;
  font-family: inherit;
  font-size: var(--step-0);
  text-align: left;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  cursor: pointer;
  transition: border-color 0.14s ease;
}
.fs__button:hover { border-color: var(--ink-2); }
.fs__button[aria-expanded="true"] { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }

.fs__chevron { width: 10px; height: 10px; flex: none; stroke: var(--muted); stroke-width: 2; fill: none; transition: transform 0.16s ease; }
.fs__button[aria-expanded="true"] .fs__chevron { transform: rotate(180deg); }

.fs__list {
  position: absolute;
  z-index: 60;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  max-height: 300px;
  overflow-y: auto;
  margin: 0;
  padding: 6px;
  list-style: none;
  background: var(--surface-2);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lift);
}
.fs__list:focus { outline: none; }
.fs__list[hidden] { display: none; }

.fs__option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 12px;
  border-radius: var(--radius);
  font-size: var(--step-0);
  color: var(--ink);
  cursor: pointer;
}
.fs__option::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: transparent;
  flex: none;
}
.fs__option[aria-selected="true"]::before { background: var(--accent); }
.fs__option[aria-selected="true"] { font-variation-settings: "wght" 600; }
.fs__option.is-active { background: var(--accent-soft); }

@media (prefers-reduced-motion: reduce) {
  .fs__chevron { transition: none; }
}

/* --------------------------------------------------------------- grids */

.grid { display: grid; gap: clamp(20px, 2.6vw, 34px); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); }

.card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: clamp(20px, 2.4vw, 30px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}
.card p { color: var(--ink-2); font-size: var(--step--1); line-height: 1.6; }

/* room / surface tiles ---------------------------------------------------- */

.tile { display: flex; flex-direction: column; gap: 12px; }
.tile__surface {
  aspect-ratio: 4 / 3;
  width: 100%;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  overflow: hidden;
}
.tile__surface canvas { width: 100%; height: 100%; }
.tile h3 { font-size: var(--step-0); }
.tile p { font-size: var(--step--1); color: var(--ink-2); margin: 0; }

/* steps ------------------------------------------------------------------- */

.steps { counter-reset: step; display: grid; gap: 0; }
.step {
  display: grid;
  grid-template-columns: 68px minmax(0, 1fr);
  gap: clamp(16px, 3vw, 36px);
  padding-block: clamp(24px, 3vw, 36px);
  border-top: 1px solid var(--line);
}
.step:last-child { border-bottom: 1px solid var(--line); }
.step__no {
  font-family: var(--font-mono);
  font-size: var(--step--1);
  color: var(--accent-ink);
  letter-spacing: 0.06em;
  padding-top: 4px;
}
.step__body { display: grid; gap: 8px; }
.step__body p { color: var(--ink-2); max-width: 60ch; }
.step__meta { font-family: var(--font-mono); font-size: var(--step--1); color: var(--muted); }

@media (max-width: 620px) {
  .step { grid-template-columns: minmax(0, 1fr); gap: 8px; }
}

/* --------------------------------------------------- full-bleed colour band */

.colour-band { position: relative; isolation: isolate; }
.colour-band__surface { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; }
.colour-band__inner {
  padding-block: clamp(80px, 12vw, 190px);
  display: grid;
  gap: 22px;
}
.colour-band__name {
  font-family: var(--font-display);
  font-size: var(--step-2);
  font-variation-settings: "wdth" 108, "wght" 700;
  color: #1B1A17;
}
.colour-band__code { font-family: var(--font-mono); font-size: var(--step--1); color: rgba(27, 26, 23, 0.62); }

.swatch-rail {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  padding: 0;
  margin: 0;
  list-style: none;
}
.swatch-rail button {
  width: 46px; height: 46px;
  border-radius: 50%;
  border: 1px solid rgba(27, 26, 23, 0.22);
  cursor: pointer;
  padding: 0;
  transition: transform 0.14s ease, box-shadow 0.14s ease;
}
.swatch-rail button:hover { transform: scale(1.07); }
.swatch-rail button[aria-pressed="true"] {
  box-shadow: 0 0 0 2px var(--ground), 0 0 0 4px #1B1A17;
}

/* --------------------------------------------------------- colour library */

.swatches { display: grid; gap: clamp(18px, 2.2vw, 28px); grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); }

.swatch { display: flex; flex-direction: column; gap: 12px; text-align: left; }
.swatch__surface {
  aspect-ratio: 5 / 4;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  overflow: hidden;
}
.swatch__surface canvas { width: 100%; height: 100%; }
.swatch__meta { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.swatch__name { font-family: var(--font-display); font-size: var(--step-0); font-variation-settings: "wght" 640; }
.swatch__code { font-family: var(--font-mono); font-size: var(--step--1); color: var(--muted); }
.swatch__hex { font-family: var(--font-mono); font-size: 0.75rem; color: var(--muted); }

.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filter {
  padding: 8px 15px;
  border: 1px solid var(--line-strong);
  border-radius: 100px;
  background: transparent;
  color: var(--ink-2);
  font-family: var(--font-display);
  font-size: 0.6875rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
}
.filter[aria-pressed="true"] { background: var(--ink); color: var(--ground); border-color: var(--ink); }

/* --------------------------------------------------------- build-up stack */

.buildup { display: grid; gap: 3px; }
.layer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding: 13px 16px;
  border: 1px solid var(--line);
  background: var(--surface);
  font-size: var(--step--1);
}
.layer__name { font-family: var(--font-display); font-variation-settings: "wght" 600; }
.layer__spec { font-family: var(--font-mono); color: var(--muted); font-size: 0.75rem; }
.layer--substrate { background: var(--panel); color: var(--ink-2); }

.spec-table { width: 100%; border-collapse: collapse; font-size: var(--step--1); }
.spec-table th, .spec-table td { text-align: left; padding: 13px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.spec-table th { font-family: var(--font-display); font-variation-settings: "wght" 600; width: 38%; }
.spec-table td { color: var(--ink-2); font-family: var(--font-mono); font-size: 0.8125rem; }

/* --------------------------------------------------------------- coverage */

.coverage-list { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.coverage-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  background: var(--surface);
}
.coverage-row__name { font-family: var(--font-display); font-variation-settings: "wght" 620; font-size: var(--step-0); }
.coverage-row__msg { font-size: var(--step--1); color: var(--muted); flex-basis: 100%; }
.coverage-row a { margin-left: auto; }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 4px 11px;
  border-radius: 100px;
  font-family: var(--font-display);
  font-size: 0.625rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  border: 1px solid transparent;
}
.pill--on { background: var(--good-soft); color: var(--good); border-color: var(--good); }
.pill--off { background: transparent; color: var(--muted); border-color: var(--line-strong); }

/* --------------------------------------------------------------- faq */

.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 22px 0;
  cursor: pointer;
  list-style: none;
  font-family: var(--font-display);
  font-size: var(--step-1);
  font-variation-settings: "wght" 620;
  letter-spacing: -0.006em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-family: var(--font-mono);
  color: var(--accent-ink);
  font-size: 1.2rem;
  flex: none;
}
.faq details[open] summary::after { content: "\2013"; }
.faq details p { padding-bottom: 24px; color: var(--ink-2); max-width: 68ch; }

/* --------------------------------------------------------------- booking page */

.booking { display: grid; gap: clamp(28px, 4vw, 46px); }

.booking-step { display: grid; gap: 16px; padding-block: clamp(26px, 3vw, 38px); border-top: 1px solid var(--line); }
.booking-step:first-of-type { border-top: 0; padding-top: 0; }
.booking-step[hidden] { display: none; }
.booking-step__head { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.booking-step__no { font-family: var(--font-mono); font-size: var(--step--1); color: var(--accent-ink); }
.booking-step__hint { font-size: var(--step--1); color: var(--muted); margin-left: auto; }

.emirate-grid { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 190px), 1fr)); }

.emirate {
  display: grid;
  gap: 6px;
  padding: 16px;
  text-align: left;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  cursor: pointer;
  font: inherit;
  color: var(--ink);
  transition: border-color 0.14s ease, background-color 0.14s ease;
}
.emirate:hover { border-color: var(--ink-2); }
.emirate[aria-pressed="true"] { border-color: var(--accent); background: var(--accent-soft); box-shadow: inset 0 0 0 1px var(--accent); }
.emirate__name { font-family: var(--font-display); font-variation-settings: "wght" 640; }
.emirate__state { font-family: var(--font-mono); font-size: 0.6875rem; color: var(--muted); letter-spacing: 0.04em; }
.emirate--off { border-style: dashed; }
.emirate--off .emirate__name { color: var(--ink-2); }

.scope-grid { display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 170px), 1fr)); }
.scope {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--surface);
  cursor: pointer;
  font-size: var(--step--1);
}
.scope input { accent-color: var(--accent-ink); width: 16px; height: 16px; }
.scope:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); box-shadow: inset 0 0 0 1px var(--accent); }

/* The date picker: a strip of circular days with arrows either side. */

.day-picker {
  display: grid;
  gap: 14px;
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}

.day-picker__month {
  font-family: var(--font-display);
  font-size: 0.6875rem;
  font-variation-settings: "wght" 620;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0;
}

.day-picker__rail {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
}

.day-rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 54px;
  gap: 4px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x proximity;
  min-width: 0;
  scrollbar-width: none;
}
.day-rail::-webkit-scrollbar { display: none; }

.day {
  display: grid;
  gap: 7px;
  justify-items: center;
  padding: 4px 0;
  border: 0;
  background: none;
  font: inherit;
  color: var(--ink);
  cursor: pointer;
  scroll-snap-align: start;
  min-width: 0;
}

.day__dow {
  font-family: var(--font-display);
  font-size: 0.625rem;
  font-variation-settings: "wght" 560;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.day__num {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  font-family: var(--font-mono);
  font-size: 0.95rem;
  font-variant-numeric: tabular-nums;
  transition: background-color 0.14s ease, border-color 0.14s ease, color 0.14s ease;
}

.day:hover .day__num { border-color: var(--ink-2); }
.day[aria-pressed="true"] .day__num {
  background: var(--accent);
  border-color: var(--accent);
  color: #241608;
}
.day[aria-pressed="true"] .day__dow { color: var(--ink); }
.day[disabled] { opacity: 0.32; cursor: not-allowed; }
.day[disabled] .day__num { border-style: dashed; }
.day:focus-visible { outline: none; }
.day:focus-visible .day__num { outline: 2px solid var(--accent-ink); outline-offset: 2px; }

.day-nav {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--ink-2);
  cursor: pointer;
  flex: none;
}
.day-nav:hover { border-color: var(--ink); color: var(--ink); }
.day-nav[disabled] { opacity: 0.28; cursor: default; }
.day-nav svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 2; }

@media (prefers-reduced-motion: reduce) {
  .day-rail { scroll-behavior: auto; }
  .day__num { transition: none; }
}

.slot-grid { display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 118px), 1fr)); }
.slot {
  padding: 13px 8px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--surface);
  font-family: var(--font-mono);
  font-size: var(--step--1);
  color: var(--ink);
  cursor: pointer;
}
.slot[aria-pressed="true"] { border-color: var(--accent); background: var(--accent); color: #241608; }
.slot[disabled] { opacity: 0.32; cursor: not-allowed; text-decoration: line-through; }

.summary-card {
  display: grid;
  gap: 10px;
  padding: 20px;
  background: var(--surface-2);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
}
.summary-card dl { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 6px 18px; margin: 0; font-size: var(--step--1); }
.summary-card dt { color: var(--muted); font-family: var(--font-display); font-size: 0.6875rem; letter-spacing: 0.12em; text-transform: uppercase; padding-top: 3px; }
.summary-card dd { margin: 0; font-family: var(--font-mono); }

.form-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.form-grid--full { grid-template-columns: minmax(0, 1fr); }

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

.site-footer {
  background: var(--ground-deep);
  border-top: 1px solid var(--line);
  padding-block: clamp(48px, 6vw, 82px) 32px;
  margin-top: clamp(56px, 7vw, 100px);
}
.site-footer__grid { display: grid; gap: 34px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.site-footer h4 {
  font-size: 0.6875rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  font-variation-settings: "wght" 620;
  margin-bottom: 14px;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; font-size: var(--step--1); }
.site-footer a { text-decoration: none; color: var(--ink-2); }
.site-footer a:hover { color: var(--ink); }
.site-footer__mark svg { height: 58px; width: auto; fill: currentColor; color: var(--ink); }
.site-footer__base {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 26px;
  align-items: center;
  margin-top: 44px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  font-size: 0.75rem;
  color: var(--muted);
}

/* --------------------------------------------------------------- utility */

.stack { display: grid; }
.stack-6 { gap: 6px; } .stack-10 { gap: 10px; } .stack-16 { gap: 16px; }
.stack-22 { gap: 22px; } .stack-30 { gap: 30px; } .stack-44 { gap: 44px; }
.row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.muted { color: var(--muted); }
.small { font-size: var(--step--1); }
.center { text-align: center; }
[hidden] { display: none !important; }
