/* Only One Design — atelier palette (sand / sage / brass) */
:root {
  --bg: #F4EFE7;
  --surface: #FBF8F2;
  --surface-2: #EFE8DA;
  --text: #26241F;
  --muted: #6E665A;
  --primary: #8FA398;        /* soft sage */
  --primary-deep: #6E8579;
  --secondary: #A8884E;      /* brass */
  --secondary-deep: #8A6E3A;
  --accent: #B7C2BA;
  --border: #E4DCCD;
  --border-strong: #C9BFAA;
  --focus: #8FA398;
  --ink: #1A1916;

  --font-display: 'Cormorant Garamond', 'EB Garamond', Georgia, serif;
  --font-body: 'Inter', system-ui, -apple-system, Segoe UI, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, Menlo, monospace;
  --font-ar-display: 'Noto Kufi Arabic', 'Noto Sans Arabic', sans-serif;
  --font-ar-body: 'Noto Naskh Arabic', 'Noto Sans Arabic', sans-serif;

  --container: 1240px;
  --radius: 2px;
  --radius-lg: 4px;
  --shadow-sm: 0 1px 2px rgba(38, 36, 31, 0.04);
  --shadow-md: 0 8px 24px -12px rgba(38, 36, 31, 0.18);
  --shadow-lg: 0 24px 48px -20px rgba(38, 36, 31, 0.24);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: "ss01", "cv11";
}
body[dir="rtl"] { font-family: var(--font-ar-body); }

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

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

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

/* ---------- typography ---------- */
.display { font-family: var(--font-display); font-weight: 500; letter-spacing: -0.01em; line-height: 1.05; }
.display-xl { font-size: clamp(48px, 7.2vw, 104px); }
.display-l  { font-size: clamp(40px, 5.4vw, 76px); }
.display-m  { font-size: clamp(32px, 3.6vw, 52px); }
.display-s  { font-size: clamp(24px, 2.4vw, 34px); }

[dir="rtl"] .display { font-family: var(--font-ar-display); font-weight: 600; }

.eyebrow {
  font-family: var(--font-body);
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--secondary-deep);
  font-weight: 500;
}
.eyebrow-rule {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}
.eyebrow-rule::before {
  content: "";
  width: 28px; height: 1px;
  background: var(--secondary);
  display: inline-block;
}

.muted { color: var(--muted); }
.lead { font-size: 19px; line-height: 1.6; color: var(--text); max-width: 60ch; }
[dir="rtl"] .lead { font-size: 18px; }

.hr-rule { height: 1px; background: var(--border); border: 0; margin: 0; }
.hr-brass { height: 1px; background: var(--secondary); border: 0; opacity: 0.5; }

/* ---------- layout ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 28px;
}
@media (min-width: 900px) { .container { padding: 0 48px; } }

.section { padding: 88px 0; }
.section-sm { padding: 56px 0; }
.section-lg { padding: 120px 0; }
@media (max-width: 720px) {
  .section { padding: 64px 0; }
  .section-lg { padding: 80px 0; }
}

.grid { display: grid; gap: 24px; }
.row { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 22px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: all 200ms ease;
  cursor: pointer;
  background: transparent;
  color: var(--text);
  white-space: nowrap;
}
.btn-primary {
  background: var(--ink);
  color: var(--surface);
  border-color: var(--ink);
}
.btn-primary:hover { background: var(--secondary-deep); border-color: var(--secondary-deep); }
.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border-strong);
}
.btn-ghost:hover { border-color: var(--ink); }
.btn-link {
  padding: 0;
  background: transparent;
  border: 0;
  color: var(--text);
  text-transform: none;
  letter-spacing: 0;
  font-weight: 500;
  font-size: 14px;
  border-bottom: 1px solid var(--secondary);
  padding-bottom: 2px;
  border-radius: 0;
}
.btn-link:hover { color: var(--secondary-deep); }
.btn-sm { padding: 10px 16px; font-size: 11px; }
.btn-disabled { opacity: 0.5; cursor: not-allowed; }

/* ---------- flags ---------- */
.flag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 8px;
  background: rgba(168, 136, 78, 0.12);
  color: var(--secondary-deep);
  border: 1px dashed var(--secondary);
  border-radius: var(--radius);
}
.flag-dot::before {
  content: "●";
  font-size: 7px;
  color: var(--secondary);
}
.flag-fill {
  background: rgba(143, 163, 152, 0.16);
  border: 1px dashed var(--primary-deep);
  color: var(--primary-deep);
}

/* ---------- cards ---------- */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
}

/* ---------- forms ---------- */
.field { display: flex; flex-direction: column; gap: 6px; }
.field label {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
}
.field input, .field select, .field textarea {
  font-family: inherit;
  font-size: 15px;
  padding: 14px 14px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  color: var(--text);
  transition: border-color 150ms ease;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--ink);
}
.field textarea { resize: vertical; min-height: 110px; }

/* ---------- chip / pill ---------- */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  font-size: 12px;
  letter-spacing: 0.08em;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--muted);
}
.chip.active {
  background: var(--ink);
  color: var(--surface);
  border-color: var(--ink);
}

/* ---------- nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(244, 239, 231, 0.86);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 84px;
}
.nav-logo {
  height: 36px;
  display: inline-flex;
  align-items: center;
  gap: 14px;
}
.nav-logo svg { height: 36px; }
.nav-links {
  display: none;
  gap: 28px;
  align-items: center;
}
.nav-link {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--text);
  padding: 6px 2px;
  border-bottom: 1px solid transparent;
  transition: border-color 150ms ease;
}
.nav-link:hover { border-bottom-color: var(--secondary); }
.nav-link.active { border-bottom-color: var(--ink); }
.nav-right { display: flex; align-items: center; gap: 14px; }
@media (min-width: 980px) {
  .nav-links { display: flex; }
}

.locale-switcher {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--muted);
}
.locale-switcher button {
  background: transparent;
  border: 0;
  padding: 4px 6px;
  color: var(--muted);
  font: inherit;
  letter-spacing: inherit;
  border-radius: 2px;
}
.locale-switcher button.active { color: var(--ink); font-weight: 600; }
.locale-switcher .sep { opacity: 0.4; }

/* mobile menu */
.menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
@media (min-width: 980px) { .menu-toggle { display: none; } }

.mobile-menu {
  position: fixed;
  inset: 84px 0 0 0;
  background: var(--bg);
  z-index: 49;
  padding: 32px 28px;
  transform: translateY(-12px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 220ms ease, transform 220ms ease;
}
.mobile-menu.open { opacity: 1; transform: none; pointer-events: auto; }
.mobile-menu a {
  display: block;
  padding: 18px 0;
  font-family: var(--font-display);
  font-size: 28px;
  border-bottom: 1px solid var(--border);
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  padding: 56px 0 0;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: end;
}
@media (min-width: 980px) {
  .hero-grid { grid-template-columns: 1.05fr 1fr; gap: 64px; }
}
.hero h1 { margin: 18px 0 20px; }
.hero-image {
  position: relative;
  aspect-ratio: 4/5;
  background: var(--surface-2);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.hero-image img { width: 100%; height: 100%; object-fit: cover; }
.hero-image-caption {
  position: absolute;
  left: 20px;
  bottom: 18px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--surface);
  background: rgba(26, 25, 22, 0.6);
  padding: 6px 10px;
  border-radius: 2px;
  backdrop-filter: blur(4px);
}

/* ---------- trust strip ---------- */
.trust {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin-top: 88px;
}
.trust-inner {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 0;
}
@media (min-width: 760px) {
  .trust-inner { grid-template-columns: repeat(3, 1fr); }
  .trust-inner > div + div { border-inline-start: 1px solid var(--border); }
}
.trust-cell {
  padding: 28px 32px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.trust-cell .k {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
.trust-cell .v {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 500;
}

/* ---------- service grid ---------- */
.service-card {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 32px 28px;
  transition: all 250ms ease;
  position: relative;
}
.service-card:hover { background: var(--surface); border-color: var(--secondary); transform: translateY(-2px); }
.service-card .num {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--secondary-deep);
  letter-spacing: 0.16em;
}
.service-card h3 {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 500;
  margin: 14px 0 12px;
  line-height: 1.15;
}
.service-card p { color: var(--muted); margin: 0 0 16px; font-size: 15px; }
.service-card .fill-note {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  color: var(--secondary-deep);
  padding-top: 14px;
  border-top: 1px dashed var(--border-strong);
}

/* ---------- process steps ---------- */
.steps {
  display: grid;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
@media (min-width: 760px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) { .steps { grid-template-columns: repeat(3, 1fr); } }

.step {
  background: var(--surface);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 220px;
}
.step .step-num {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 500;
  color: var(--secondary);
  line-height: 1;
}
.step h4 {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 500;
  margin: 0;
}
.step p { margin: 0; color: var(--muted); font-size: 15px; }

/* ---------- lookbook ---------- */
.lookbook {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
@media (min-width: 760px) { .lookbook { grid-template-columns: repeat(3, 1fr); gap: 18px; } }
@media (min-width: 1100px) { .lookbook { grid-template-columns: repeat(4, 1fr); } }

.lookbook-tile {
  position: relative;
  aspect-ratio: 3/4;
  background: var(--surface-2);
  overflow: hidden;
  border-radius: var(--radius-lg);
  cursor: zoom-in;
}
.lookbook-tile img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 600ms ease;
}
.lookbook-tile:hover img { transform: scale(1.04); }
.lookbook-tile .tile-label {
  position: absolute;
  inset: auto 10px 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}
.lookbook-tile .tile-meta {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--surface);
  background: rgba(26, 25, 22, 0.55);
  padding: 5px 8px;
  border-radius: 2px;
  backdrop-filter: blur(4px);
}
.lookbook-tile .tile-meta.real { background: rgba(143, 163, 152, 0.92); color: var(--ink); }

/* lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 80;
  background: rgba(26, 25, 22, 0.92);
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
}
.lightbox img { max-height: 90vh; max-width: 100%; border-radius: var(--radius-lg); }
.lightbox .lb-close {
  position: absolute; top: 20px; right: 24px;
  width: 44px; height: 44px;
  background: transparent;
  border: 1px solid rgba(251, 248, 242, 0.4);
  color: var(--surface);
  border-radius: 999px;
  font-size: 20px;
}
.lightbox .lb-caption {
  position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%);
  color: var(--surface);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* ---------- map placeholder ---------- */
.map-block {
  position: relative;
  aspect-ratio: 16/9;
  background:
    linear-gradient(135deg, rgba(143, 163, 152, 0.18), rgba(168, 136, 78, 0.10)),
    repeating-linear-gradient(0deg, transparent 0 23px, rgba(110, 102, 90, 0.10) 23px 24px),
    repeating-linear-gradient(90deg, transparent 0 23px, rgba(110, 102, 90, 0.10) 23px 24px),
    var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.map-pin {
  position: absolute;
  top: 46%; left: 52%;
  transform: translate(-50%, -100%);
  display: flex; flex-direction: column; align-items: center;
  gap: 6px;
}
.map-pin .pin-dot {
  width: 18px; height: 18px;
  border-radius: 999px;
  background: var(--secondary);
  border: 3px solid var(--surface);
  box-shadow: 0 4px 14px rgba(168, 136, 78, 0.5);
}
.map-pin .pin-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: var(--surface);
  padding: 6px 10px;
  border-radius: 2px;
  white-space: nowrap;
  border: 1px solid var(--border);
}
.map-confirm {
  position: absolute;
  top: 14px; left: 14px;
}

/* ---------- footer ---------- */
.footer {
  background: var(--ink);
  color: var(--surface);
  padding: 80px 0 32px;
  margin-top: 80px;
}
.footer .container { color: var(--surface); }
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  margin-bottom: 64px;
}
@media (min-width: 780px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 48px; } }
.footer h5 {
  font-family: var(--font-body);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--secondary);
  font-weight: 500;
  margin: 0 0 18px;
}
.footer a, .footer .item {
  display: block;
  padding: 6px 0;
  color: rgba(251, 248, 242, 0.72);
  font-size: 14px;
  border: 0;
}
.footer a:hover { color: var(--surface); }
.footer .brand-mark {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 500;
  letter-spacing: 0.04em;
}
.footer .brand-mark .accent { color: var(--secondary); }
.footer-bottom {
  display: flex; flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  padding-top: 24px;
  border-top: 1px solid rgba(251, 248, 242, 0.14);
  font-size: 12px;
  font-family: var(--font-mono);
  color: rgba(251, 248, 242, 0.5);
  letter-spacing: 0.06em;
}

/* ---------- appointment form ---------- */
.appointment-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}
@media (min-width: 980px) { .appointment-grid { grid-template-columns: 1fr 1.1fr; gap: 64px; } }

.purpose-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
.purpose-tile {
  border: 1px solid var(--border-strong);
  padding: 14px 16px;
  background: var(--surface);
  text-align: left;
  cursor: pointer;
  border-radius: var(--radius);
  display: flex; flex-direction: column; gap: 4px;
  transition: all 180ms ease;
}
.purpose-tile.active { background: var(--ink); color: var(--surface); border-color: var(--ink); }
.purpose-tile .pt-title { font-size: 14px; font-weight: 500; }
.purpose-tile .pt-sub { font-size: 11px; color: var(--muted); }
.purpose-tile.active .pt-sub { color: rgba(251, 248, 242, 0.7); }

.time-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
.time-tile {
  padding: 10px 8px;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  border-radius: var(--radius);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  cursor: pointer;
}
.time-tile.active { background: var(--ink); color: var(--surface); border-color: var(--ink); }
.time-tile.disabled { opacity: 0.4; cursor: not-allowed; text-decoration: line-through; }

.summary-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  position: sticky;
  top: 110px;
}
.summary-card dl { margin: 0; display: grid; grid-template-columns: max-content 1fr; gap: 12px 24px; }
.summary-card dt { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); padding-top: 3px; }
.summary-card dd { margin: 0; font-size: 14px; color: var(--text); }

/* ---------- atelier marquee detail ---------- */
.detail-strip {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}
@media (min-width: 760px) { .detail-strip { grid-template-columns: repeat(4, 1fr); } }
.detail-strip > div {
  background: var(--surface);
  padding: 22px 24px;
}
.detail-strip .dk {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}
.detail-strip .dv {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 500;
}

/* ---------- callout ---------- */
.callout {
  background: var(--ink);
  color: var(--surface);
  padding: 56px 48px;
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  gap: 22px;
  position: relative;
  overflow: hidden;
}
@media (min-width: 760px) {
  .callout { flex-direction: row; align-items: center; justify-content: space-between; gap: 40px; padding: 64px 56px; }
}
.callout h2 { font-family: var(--font-display); font-size: clamp(28px, 3vw, 44px); font-weight: 500; margin: 0; line-height: 1.1; max-width: 22ch; }
.callout::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 2px;
  background: linear-gradient(90deg, var(--secondary), transparent 70%);
}

/* ---------- breadcrumb ---------- */
.crumb {
  display: flex; gap: 10px; align-items: center;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.crumb .sep { color: var(--border-strong); }
.crumb a:hover { color: var(--ink); }

/* ---------- toast ---------- */
.toast {
  position: fixed;
  bottom: 24px; right: 24px;
  background: var(--ink);
  color: var(--surface);
  padding: 16px 22px;
  border-radius: var(--radius-lg);
  font-size: 13px;
  box-shadow: var(--shadow-lg);
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 340px;
}
.toast .ok { color: var(--primary); }

/* ---------- success state ---------- */
.success-state {
  text-align: center;
  padding: 64px 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

/* ---------- empty state ---------- */
.empty {
  border: 1px dashed var(--border-strong);
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 56px 32px;
  text-align: center;
}

/* ---------- utilities ---------- */
.stack { display: flex; flex-direction: column; }
.stack-8 > * + * { margin-top: 8px; }
.stack-16 > * + * { margin-top: 16px; }
.stack-24 > * + * { margin-top: 24px; }
.stack-32 > * + * { margin-top: 32px; }
.stack-48 > * + * { margin-top: 48px; }
.text-center { text-align: center; }
.flex-row { display: flex; gap: 16px; flex-wrap: wrap; }
.hidden { display: none; }
.spacer-8 { height: 8px; } .spacer-16 { height: 16px; } .spacer-24 { height: 24px; } .spacer-32 { height: 32px; } .spacer-48 { height: 48px; } .spacer-64 { height: 64px; }

/* page transition */
.page-enter {
  animation: pageIn 380ms cubic-bezier(.2,.7,.2,1);
}
@keyframes pageIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

/* RTL */
[dir="rtl"] .crumb { direction: rtl; }
[dir="rtl"] .nav-logo { flex-direction: row-reverse; }
[dir="rtl"] .eyebrow-rule::before { margin-inline-start: 0; }
