/* ==========================================================================
   Layal Beauty Lounge — one stylesheet, two languages.
   Layout is written with logical properties so the Arabic page mirrors
   rather than flips. No JS anywhere on this site.
   ========================================================================== */

/* --- Tokens --------------------------------------------------------------- */

:root {
  --bg: #f9f1ef;
  --surface: #ffffff;
  --text: #33231f;
  --muted: #96837d;        /* drawn shapes and rules only — too light for body text */
  --muted-ink: #6e5b55;    /* AA-safe secondary text on --bg (5.6:1)   */
  --brand: #a6524a;
  --accent: #d9a05b;

  --line: #e6d6d1;
  --line-strong: #d5bfb8;

  --font-display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --font-body: "Fraunces", "Iowan Old Style", Georgia, serif;
  --font-ui: "Fraunces", Georgia, serif;

  /* One proportion, held down the whole page: 1.25 major-third-ish */
  --step--1: clamp(0.82rem, 0.79rem + 0.14vw, 0.9rem);
  --step-0: clamp(1rem, 0.96rem + 0.2vw, 1.125rem);
  --step-1: clamp(1.2rem, 1.12rem + 0.4vw, 1.45rem);
  --step-2: clamp(1.45rem, 1.3rem + 0.75vw, 1.95rem);
  --step-3: clamp(1.8rem, 1.5rem + 1.5vw, 2.85rem);
  --step-4: clamp(2.4rem, 1.7rem + 3.4vw, 4.2rem);
  --step-5: clamp(2.9rem, 1.9rem + 5vw, 5.4rem);

  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2.25rem;
  --space-5: 3.5rem;
  --space-6: clamp(4rem, 9vw, 7.5rem);

  --wrap: 72rem;
  --radius: 2px;
}

/* Arabic: same design, different type mechanics. Amiri sets small, so the
   body size and leading go up; UI micro-labels use Plex Arabic for clarity. */
html[lang="ar"] {
  --font-display: "Amiri", "Times New Roman", serif;
  --font-body: "Amiri", "Times New Roman", serif;
  --font-ui: "IBM Plex Sans Arabic", "Segoe UI", system-ui, sans-serif;
  --step-0: clamp(1.1rem, 1.02rem + 0.32vw, 1.28rem);
  --step-1: clamp(1.3rem, 1.18rem + 0.5vw, 1.6rem);
}

/* --- Base ----------------------------------------------------------------- */

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.65;
  font-optical-sizing: auto;
  text-rendering: optimizeLegibility;
}

html[lang="ar"] body { line-height: 1.95; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.08;
  margin: 0;
  text-wrap: balance;
}

html[lang="ar"] h1,
html[lang="ar"] h2,
html[lang="ar"] h3 {
  font-weight: 700;
  line-height: 1.35;
}

p { margin: 0; }

a {
  color: var(--brand);
  text-underline-offset: 3px;
}

a:focus-visible,
summary:focus-visible,
.skip:focus-visible {
  outline: 3px solid var(--text);
  outline-offset: 3px;
  border-radius: var(--radius);
}

::selection {
  background: var(--accent);
  color: var(--text);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

/* --- Utilities ------------------------------------------------------------ */

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

.skip {
  position: absolute;
  inset-inline-start: -9999px;
  top: 0;
  z-index: 10;
  background: var(--text);
  color: var(--bg);
  padding: 0.75rem 1.25rem;
  text-decoration: none;
}

.skip:focus {
  inset-inline-start: 1rem;
  top: 1rem;
}

/* the skip link sits on dark, so the default dark focus ring would vanish */
.skip:focus-visible { outline-color: var(--accent); }

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

/* Micro-label: the small caps line that opens every section */
.eyebrow {
  font-family: var(--font-ui);
  font-size: var(--step--1);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted-ink);
  margin: 0;
}

html[lang="ar"] .eyebrow {
  letter-spacing: 0;
  text-transform: none;
  font-weight: 500;
  font-size: 0.95rem;
}

.num {
  font-family: var(--font-ui);
  font-variant-numeric: lining-nums tabular-nums;
}

/* --- Header --------------------------------------------------------------- */

.site-header {
  border-block-end: 1px solid var(--line);
  background: var(--bg);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  padding-block: 1.1rem;
}

.mark {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--step-0);
  letter-spacing: 0.02em;
  color: var(--text);
  text-decoration: none;
  line-height: 1.2;
}

.mark span {
  display: block;
  font-family: var(--font-ui);
  font-size: 0.72em;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-ink);
}

html[lang="ar"] .mark span {
  letter-spacing: 0;
  text-transform: none;
  font-size: 0.62em;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(0.9rem, 2.4vw, 2rem);
}

.site-nav a {
  font-family: var(--font-ui);
  font-size: var(--step--1);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted-ink);
  text-decoration: none;
  padding-block: 0.35rem;
  border-block-end: 1px solid transparent;
  transition: color 0.18s ease, border-color 0.18s ease;
}

html[lang="ar"] .site-nav a {
  letter-spacing: 0;
  text-transform: none;
  font-size: 0.95rem;
}

.site-nav a:hover {
  color: var(--brand);
  border-block-end-color: var(--brand);
}

.site-nav .nav-hide { display: none; }

@media (min-width: 46em) {
  .site-nav .nav-hide { display: inline-block; }
}

/* Language toggle — always visible, at both ends of the page */
.site-nav a.lang {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 0.5rem 0.95rem;
  color: var(--text);
  letter-spacing: 0.04em;
  text-transform: none;
  font-size: var(--step--1);
  font-family: var(--font-body);
}

html[lang="ar"] .site-nav a.lang {
  font-family: var(--font-ui);
  font-size: 0.9rem;
}

.site-nav a.lang:hover {
  background: var(--surface);
  border-color: var(--brand);
  color: var(--brand);
}

/* --- Buttons -------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-ui);
  font-size: var(--step-0);
  line-height: 1.2;
  text-decoration: none;
  padding: 0.95rem 1.6rem;
  border: 1px solid var(--brand);
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.btn:hover {
  background: #8e433c;
  border-color: #8e433c;
}

.btn--ghost {
  background: transparent;
  color: var(--brand);
  border-color: var(--line-strong);
}

.btn--ghost:hover {
  background: var(--surface);
  color: var(--brand);
  border-color: var(--brand);
}

.btn svg {
  flex: none;
  width: 1.15em;
  height: 1.15em;
  fill: currentColor;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-block-start: var(--space-4);
}

/* --- Hero ----------------------------------------------------------------- */

.hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(3rem, 7vw, 5.5rem) var(--space-6);
}

.hero__grid {
  display: grid;
  gap: clamp(2.5rem, 6vw, 4rem);
  align-items: center;
}

@media (min-width: 62em) {
  .hero__grid {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    gap: clamp(3rem, 6vw, 5rem);
  }
}

.hero__eyebrow {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-block-end: var(--space-3);
}

.hero__eyebrow::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line-strong);
  max-width: 7rem;
}

.wordmark {
  font-size: var(--step-5);
  letter-spacing: -0.02em;
  line-height: 0.94;
  overflow-wrap: break-word;
}

html[lang="ar"] .wordmark {
  letter-spacing: 0;
  line-height: 1.25;
}

.wordmark span {
  display: block;
  color: var(--brand);
}

.lede {
  font-size: var(--step-1);
  line-height: 1.5;
  max-width: 34ch;
  margin-block-start: var(--space-3);
  color: var(--text);
}

html[lang="ar"] .lede {
  line-height: 1.85;
  max-width: 38ch;
}

.hero__note {
  margin-block-start: var(--space-3);
  font-size: var(--step--1);
  font-family: var(--font-ui);
  color: var(--muted-ink);
}

html[lang="ar"] .hero__note { font-size: 0.95rem; }

.hero__note a {
  color: var(--muted-ink);
  text-underline-offset: 3px;
}

.hero__note a:hover { color: var(--brand); }

/* The drawn arch — a salon mirror, built from shapes, not photography */
.hero__art {
  display: grid;
  justify-items: center;
  gap: var(--space-2);
}

.arch {
  width: min(100%, 21rem);
  height: auto;
  display: block;
}

/* The warm halo behind the arch sits on the outer side in both directions */
html[dir="rtl"] .arch { transform: scaleX(-1); }

/* On a phone the arch is a signature, not a hero image — keep it small so the
   price list stays within a thumb's reach. */
@media (max-width: 47.99em) {
  .arch { width: min(68%, 15rem); }
}

.arch__caption {
  font-family: var(--font-ui);
  font-size: var(--step--1);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-ink);
  text-align: center;
}

html[lang="ar"] .arch__caption {
  letter-spacing: 0;
  text-transform: none;
  font-size: 0.95rem;
}

/* --- Section scaffold ----------------------------------------------------- */

.section {
  padding-block: var(--space-6);
  border-block-start: 1px solid var(--line);
}

.section--tint { background: var(--surface); }

.section__grid {
  display: grid;
  gap: var(--space-4);
}

@media (min-width: 56em) {
  .section__grid {
    grid-template-columns: 13rem minmax(0, 1fr);
    gap: clamp(2rem, 5vw, 4.5rem);
  }
}

.rail {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.rail__num {
  font-family: var(--font-ui);
  font-size: var(--step--1);
  letter-spacing: 0.2em;
  color: var(--brand);
}

.rail__label {
  font-family: var(--font-ui);
  font-size: var(--step--1);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted-ink);
}

html[lang="ar"] .rail__label {
  letter-spacing: 0;
  text-transform: none;
  font-size: 0.95rem;
  font-weight: 500;
}

.section h2 {
  font-size: var(--step-3);
  max-width: 20ch;
}

.section__intro {
  margin-block-start: var(--space-2);
  max-width: 52ch;
  color: var(--muted-ink);
  font-size: var(--step-1);
  line-height: 1.55;
}

html[lang="ar"] .section__intro { line-height: 1.9; }

/* --- Price list ----------------------------------------------------------- */

.menu {
  list-style: none;
  margin: var(--space-4) 0 0;
  padding: 0;
}

.menu li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: baseline;
  column-gap: 1rem;
  padding-block: var(--space-3);
  border-block-end: 1px solid var(--line);
}

.menu li:first-child {
  border-block-start: 1px solid var(--line-strong);
}

.menu__name {
  font-family: var(--font-display);
  font-size: var(--step-2);
  font-weight: 600;
  line-height: 1.2;
}

html[lang="ar"] .menu__name { font-weight: 700; }

.menu__note {
  grid-column: 1 / -1;
  margin-block-start: 0.35rem;
  color: var(--muted-ink);
  font-size: var(--step--1);
  max-width: 46ch;
}

html[lang="ar"] .menu__note { font-size: 1rem; }

.menu__price {
  font-family: var(--font-ui);
  font-size: var(--step-2);
  font-weight: 600;
  color: var(--brand);
  font-variant-numeric: lining-nums tabular-nums;
  white-space: nowrap;
}

.menu__price--ask {
  font-size: var(--step--1);
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted-ink);
}

html[lang="ar"] .menu__price--ask {
  letter-spacing: 0;
  text-transform: none;
  font-size: 1rem;
}

.menu__foot {
  margin-block-start: var(--space-3);
  font-size: var(--step--1);
  color: var(--muted-ink);
  font-family: var(--font-ui);
}

html[lang="ar"] .menu__foot { font-size: 1rem; }

/* --- The room: three arch-topped cards ------------------------------------ */

.cards {
  list-style: none;
  margin: var(--space-4) 0 0;
  padding: 0;
  display: grid;
  gap: var(--space-3);
}

@media (min-width: 44em) {
  .cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* The arch motif from the hero, repeated at card scale */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 50% 50% var(--radius) var(--radius) / 5.5rem 5.5rem var(--radius) var(--radius);
  padding: clamp(3rem, 5vw, 4rem) var(--space-3) var(--space-4);
  text-align: center;
}

.card h3 {
  font-size: var(--step-2);
  margin-block-end: 0.6rem;
}

.card p {
  color: var(--muted-ink);
  font-size: var(--step--1);
  line-height: 1.6;
}

html[lang="ar"] .card p {
  font-size: 1.05rem;
  line-height: 1.85;
}

.card__dot {
  display: block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  margin: 0 auto var(--space-2);
}

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

.steps {
  list-style: none;
  counter-reset: step;
  margin: var(--space-4) 0 0;
  padding: 0;
  display: grid;
  gap: var(--space-3);
}

@media (min-width: 44em) {
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.steps li {
  counter-increment: step;
  padding-block-start: var(--space-3);
  border-block-start: 2px solid var(--brand);
}

.steps li::before {
  content: "0" counter(step);
  display: block;
  font-family: var(--font-ui);
  font-size: var(--step--1);
  letter-spacing: 0.18em;
  color: var(--brand);
  margin-block-end: 0.65rem;
  direction: ltr;
}

.steps h3 {
  font-size: var(--step-1);
  margin-block-end: 0.4rem;
}

.steps p {
  color: var(--muted-ink);
  font-size: var(--step--1);
}

html[lang="ar"] .steps p { font-size: 1.05rem; }

/* --- Visit ---------------------------------------------------------------- */

.visit {
  display: grid;
  gap: var(--space-4);
  margin-block-start: var(--space-4);
}

@media (min-width: 48em) {
  .visit { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.visit__block {
  border-inline-start: 2px solid var(--accent);
  padding-inline-start: var(--space-3);
}

.visit__block dt {
  font-family: var(--font-ui);
  font-size: var(--step--1);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted-ink);
  margin-block-end: 0.5rem;
}

html[lang="ar"] .visit__block dt {
  letter-spacing: 0;
  text-transform: none;
  font-size: 0.95rem;
  font-weight: 500;
}

.visit__block dd {
  margin: 0;
  font-family: var(--font-display);
  font-size: var(--step-2);
  line-height: 1.3;
}

.visit__block dd a {
  color: var(--text);
  text-decoration-color: var(--line-strong);
  text-underline-offset: 4px;
}

.visit__block dd a:hover { color: var(--brand); }

/* --- Details / good to know ---------------------------------------------- */

.faq {
  margin-block-start: var(--space-4);
  border-block-start: 1px solid var(--line-strong);
}

.faq details {
  border-block-end: 1px solid var(--line);
}

.faq summary {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-2);
  padding-block: var(--space-3);
  cursor: pointer;
  list-style: none;
  font-family: var(--font-display);
  font-size: var(--step-1);
  font-weight: 600;
  color: var(--text);
}

html[lang="ar"] .faq summary { font-weight: 700; }

.faq summary::-webkit-details-marker { display: none; }

.faq summary::after {
  content: "+";
  flex: none;
  font-family: var(--font-ui);
  font-size: 1.2em;
  line-height: 1;
  color: var(--brand);
}

.faq details[open] summary::after { content: "\2013"; }

.faq summary:hover { color: var(--brand); }

.faq p {
  padding-block-end: var(--space-3);
  color: var(--muted-ink);
  max-width: 60ch;
}

/* --- Closing call --------------------------------------------------------- */

.closer {
  padding-block: var(--space-6);
  background: var(--text);
  color: var(--bg);
  text-align: center;
}

.closer h2 {
  font-size: var(--step-4);
  color: var(--bg);
  max-width: 18ch;
  margin-inline: auto;
}

.closer p {
  margin-block-start: var(--space-2);
  color: #e2d3cd;
  max-width: 44ch;
  margin-inline: auto;
}

.closer .btn {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--text);
}

.closer .btn:hover {
  background: #eab472;
  border-color: #eab472;
}

.closer .cta-row { justify-content: center; }

.closer a:focus-visible {
  outline-color: var(--accent);
}

/* --- Cross-script details -------------------------------------------------
   Arabic words appear on the English page (the service names, the language
   toggle) and Fraunces has no Arabic glyphs. Name the face rather than let
   the browser pick a system fallback.
   -------------------------------------------------------------------------- */

html[lang="en"] :lang(ar) {
  font-family: "Amiri", serif;
}

html[lang="en"] .menu__note :lang(ar) {
  font-size: 1.15em;      /* Amiri sets small next to Fraunces */
  color: var(--text);
}

html[lang="en"] .site-nav a.lang,
html[lang="en"] .site-footer :lang(ar) {
  font-family: "IBM Plex Sans Arabic", "Amiri", sans-serif;
}

/* --- Footer --------------------------------------------------------------- */

.site-footer {
  padding-block: var(--space-5);
  font-size: var(--step--1);
  color: var(--muted-ink);
  font-family: var(--font-ui);
}

html[lang="ar"] .site-footer { font-size: 1rem; }

.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: var(--space-3);
}

.site-footer .mark { font-size: var(--step-1); }

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}

.site-footer a {
  color: var(--muted-ink);
  text-underline-offset: 3px;
}

.site-footer a:hover { color: var(--brand); }
