/* ============================================================
   MARCUS REED — MASTER BARBER · STYLES (Persian / RTL)
   Self-hosted fonts · maximum mobile/tablet compatibility.
   ------------------------------------------------------------
   HOW COMPATIBILITY IS DONE (why some lines appear twice):
   - A plain value is declared FIRST, then the modern value
     (clamp() / min() / svh / clip) after it. Old browsers that
     don't understand the modern one simply keep the first.
     Modern browsers use the second. Nothing changes visually
     on modern devices.
   - "inset:" and logical properties (margin-inline-start etc.)
     are NOT used at all: the site is RTL-only, so physical
     right/left is hardcoded — identical result, works on older
     WebKit/Blink (older iPads and Android WebViews).
   - .reveal elements are hidden ONLY while html has the "js"
     class (set by an inline script in index.html). Without JS
     the page is fully visible.
   ============================================================ */

/* ---------- Self-hosted fonts --------------------------------
   IMPORTANT: these five rules expect EXACT file names in
   assets/fonts/ (lowercase). Rename your font files to match,
   or edit the url() paths to your existing file names.
   .ttf also works — change format("woff2") to format("truetype"). */
@font-face {
  font-family: "Vazirmatn"; font-weight: 400; font-style: normal;
  src: url("assets/fonts/Vazirmatn-Regular.woff2") format("woff2");
  font-display: swap;
}
@font-face {
  font-family: "Vazirmatn"; font-weight: 500; font-style: normal;
  src: url("assets/fonts/Vazirmatn-Medium.woff2") format("woff2");
  font-display: swap;
}
@font-face {
  font-family: "Vazirmatn"; font-weight: 600; font-style: normal;
  src: url("assets/fonts/Vazirmatn-SemiBold.woff2") format("woff2");
  font-display: swap;
}
@font-face {
  font-family: "Lalezar"; font-weight: 400; font-style: normal;
  src: url("assets/fonts/Lalezar-Regular.woff2") format("woff2");
  font-display: swap;
}
@font-face {
  font-family: "Gulzar"; font-weight: 400; font-style: normal;
  src: url("assets/fonts/Gulzar-Regular.ttf") format("truetype");
  font-display: swap;
}

/* ---------- Variables ---------- */
:root {
  /* Colors */
  --char-900: #121212;
  --char-800: #1A1A1A;
  --char-700: #232323;
  --char-600: #2C2C2C;

  --cream:      #F2EDE4;
  --burgundy:   #6B1F2E;
  --burgundy-2: #8A2A3D;
  --gold:       #C9A227;
  --gold-2:     #E3C25B;

  --ink:      #241F1B;
  --ink-soft: #57524B;

  --cream-70: rgba(242, 237, 228, .7);
  --cream-85: rgba(242, 237, 228, .85);
  --gold-35:  rgba(201, 162, 39, .35);

  --error: #F2A3A3;

  /* Typography — strong system fallbacks, so text renders even
     while/if the self-hosted fonts are unavailable */
  --font-display: "Lalezar", "Vazirmatn", "Segoe UI", Tahoma, sans-serif;
  --font-body:    "Vazirmatn", "Segoe UI", Tahoma, "Noto Naskh Arabic", sans-serif;
  --font-script:  "Gulzar", "Noto Nastaliq Urdu", "Times New Roman", serif;

  /* Shape & space */
  --radius:      22px;
  --radius-lg:   30px;
  --radius-pill: 999px;
  --container:   1180px;
  --section-pad: 6.5rem;   /* static fallback — see @supports below */

  --ease: cubic-bezier(.22, .8, .28, 1);
}

/* Modern browsers get a responsive section padding via clamp() */
@supports (padding: clamp(1rem, 2vw, 4rem)) {
  :root { --section-pad: clamp(5rem, 10vw, 7.5rem); }
}

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;             /* offset for sticky nav */
  /* Guard against sideways scrolling caused by off-screen decorative
     shapes. 'hidden' is the fallback; 'clip' is better where supported
     (clip is ignored on browsers that don't know it). */
  overflow-x: hidden;
  overflow-x: clip;
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.85;                     /* Persian needs taller lines */
  background: var(--cream);
  color: var(--cream-85);
  overflow-x: hidden;                    /* fallback */
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

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

::selection { background: var(--gold); color: #1D1710; }

/* Visible keyboard focus everywhere */
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

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

.skip-link {
  position: fixed; top: -60px; right: 16px; z-index: 300;
  background: var(--gold); color: #1D1710; font-weight: 600;
  padding: .7em 1.2em; border-radius: 10px; text-decoration: none;
  transition: top .2s var(--ease);
}
.skip-link:focus { top: 14px; }

/* ---------- Utilities ---------- */
/* No min() needed — width + max-width is equivalent and works everywhere */
.container { width: 92%; max-width: var(--container); margin-left: auto; margin-right: auto; }

.section {
  position: relative;
  --pad: var(--section-pad);
  padding: var(--pad) 0;
}
.section-dark  { background: var(--char-800); color: var(--cream-85); }
.section-light { background: var(--cream);    color: var(--ink); }

/* Slanted top edges on dark sections (cream shows through).
   -webkit-clip-path covers older iOS Safari. */
.slant-tl {
  -webkit-clip-path: polygon(0 3vw, 100% 0, 100% 100%, 0 100%);
  clip-path: polygon(0 3vw, 100% 0, 100% 100%, 0 100%);
  padding-top: calc(var(--pad) + 4vw);
}
.slant-tr {
  -webkit-clip-path: polygon(0 0, 100% 3vw, 100% 100%, 0 100%);
  clip-path: polygon(0 0, 100% 3vw, 100% 100%, 0 100%);
  padding-top: calc(var(--pad) + 4vw);
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: .6em;
  font-family: var(--font-body); font-weight: 600; font-size: .98rem;
  text-decoration: none; cursor: pointer;
  padding: .95em 1.9em; border-radius: var(--radius-pill);
  border: 1px solid transparent;
  transition: transform .3s var(--ease), background .3s, color .3s,
              border-color .3s, box-shadow .3s var(--ease);
}
.btn svg {
  width: 18px; height: 18px;
  transform: scaleX(-1);                /* RTL: mirror forward-pointing arrows */
  transition: transform .3s var(--ease);
}
.btn:hover svg { transform: scaleX(-1) translateX(4px); }

.btn-primary { background: var(--burgundy); color: var(--cream); }
.btn-primary:hover {
  background: var(--burgundy-2); color: var(--cream);
  transform: translateY(-2px);
  box-shadow: 0 16px 34px -14px rgba(107, 31, 46, .65);
}
.btn-ghost { border-color: rgba(242, 237, 228, .35); color: var(--cream); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold-2); transform: translateY(-2px); }

.btn-gold { background: var(--gold); color: #1D1710; }
.btn-gold:hover { background: var(--gold-2); transform: translateY(-2px); }

.btn-lg { padding: 1.05em 2.2em; font-size: 1.05rem; }

/* Section headings */
.eyebrow {
  display: flex; align-items: center;
  font-size: .82rem; font-weight: 600;
  word-spacing: .14em;                  /* airy labels without breaking letter joins */
  color: var(--gold);
  margin-bottom: 1.1rem;
}
/* No flex gap: margin on the line instead (works on very old browsers) */
.eyebrow-line { width: 44px; height: 2px; background: var(--gold); flex-shrink: 0; margin-left: 14px; }
.section-light .eyebrow { color: var(--burgundy); }
.section-light .eyebrow-line { background: var(--gold); }

.section-title {
  font-family: var(--font-display); font-weight: 400;
  font-size: 2.6rem;                    /* fallback for browsers without clamp() */
  font-size: clamp(2rem, 4.5vw, 3rem);
  line-height: 1.3;
  color: var(--cream);
}
.section-light .section-title { color: var(--ink); }

.section-sub { max-width: 60ch; margin-top: 1rem; font-size: 1.02rem; }
.section-dark  .section-sub { color: var(--cream-70); }
.section-light .section-sub { color: var(--ink-soft); }

.section-head { margin-bottom: 3rem; margin-bottom: clamp(2.4rem, 5vw, 3.6rem); }
.section-head--split {
  display: flex; flex-wrap: wrap; align-items: flex-end;
  justify-content: space-between; gap: 1.5rem;
}

/* Accent word + hand-drawn swash underline */
.accent { position: relative; display: inline-block; color: var(--gold); }
.section-light .accent { color: var(--burgundy); }

.swash {
  position: absolute; left: 0; bottom: -.08em;
  width: 100%; height: .16em; overflow: visible;
}
.swash path {
  fill: none; stroke: var(--burgundy-2);
  stroke-width: 4; stroke-linecap: round;
  vector-effect: non-scaling-stroke;
  stroke-dasharray: 1; stroke-dashoffset: 1;
  animation: draw .9s var(--ease) .55s forwards;
}
.section-light .swash path { stroke: var(--gold); }
@keyframes draw { to { stroke-dashoffset: 0; } }

/* Dotted "menu" leader line */
.leader {
  flex: 1; min-width: 24px;
  border-bottom: 2px dotted currentColor;
  opacity: .3; transform: translateY(-4px);
}

/* Scroll-reveal — hidden ONLY while JS is running (html.js is set by an
   inline script in index.html and removed if script.js fails to load).
   Without JavaScript every element is simply visible. */
html.js .reveal {
  opacity: 0; transform: translateY(28px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
  transition-delay: var(--rv, 0s);
}
html.js .reveal.in-view { opacity: 1; transform: none; }

/* Socials (shared) */
.socials { display: flex; gap: .8rem; }
.socials a {
  display: grid; align-items: center; justify-items: center;
  width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--gold-35); color: var(--gold);
  transition: background .3s, color .3s, transform .3s var(--ease);
}
.socials a svg { width: 20px; height: 20px; }
.socials a:hover { background: var(--gold); color: #1D1710; transform: translateY(-3px); }

/* ---------- Sticky navigation ---------- */
/* Longhands instead of inset: — older iOS drops 'inset' and the nav
   would lose its top-edge anchoring */
.site-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  transition: background .35s, box-shadow .35s, border-color .35s;
  border-bottom: 1px solid transparent;
}
.site-nav.scrolled {
  background: rgba(18, 18, 18, .9);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-bottom-color: rgba(201, 162, 39, .15);
  box-shadow: 0 12px 32px -20px rgba(0, 0, 0, .9);
}

.nav-inner {
  width: 92%; max-width: var(--container);
  margin-left: auto; margin-right: auto;
  display: flex; align-items: center; gap: 1.5rem;
  height: 84px; transition: height .3s var(--ease);
}
.site-nav.scrolled .nav-inner { height: 66px; }

.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-mark {
  width: 42px; height: 42px;
  display: grid; align-items: center; justify-items: center;
  background: var(--burgundy); border: 1px solid var(--gold-35);
  border-radius: 12px; color: var(--gold-2);
  font-family: var(--font-display); font-size: 1.15rem; letter-spacing: .06em;
  transition: transform .3s var(--ease);
}
.brand:hover .brand-mark { transform: rotate(6deg); }
.brand-text { display: flex; flex-direction: column; line-height: 1.3; }
.brand-name {
  font-family: var(--font-display); font-size: 1.25rem;
  color: var(--cream); line-height: 1.2;
}
.brand-sub { font-size: .68rem; color: var(--gold); line-height: 1.4; }

/* RTL: links sit at the far LEFT — margin-right: auto pushes them there */
.nav-links {
  display: flex; gap: 1.5rem; gap: clamp(1.1rem, 2.4vw, 2.1rem);
  list-style: none; margin-right: auto;
}
.nav-links a {
  position: relative; padding: .4rem 0;
  color: var(--cream-85); text-decoration: none;
  font-size: .92rem; font-weight: 500;
  transition: color .25s;
}
.nav-links a::after {
  content: ""; position: absolute; right: 0; bottom: 0;
  width: 0; height: 2px; background: var(--gold);
  transition: width .3s var(--ease);
}
.nav-links a:hover, .nav-links a.is-active { color: var(--gold-2); }
.nav-links a:hover::after, .nav-links a.is-active::after { width: 100%; }

.nav-cta { padding: .65em 1.4em; font-size: .88rem; }

/* Hamburger */
.menu-toggle {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 44px; height: 44px; margin-right: auto;
  background: none; border: 0; cursor: pointer;
}
.menu-toggle .bar {
  width: 24px; height: 2px; background: var(--cream);
  transition: transform .35s var(--ease), opacity .25s;
}
body.menu-open .menu-toggle .bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
body.menu-open .menu-toggle .bar:nth-child(2) { opacity: 0; }
body.menu-open .menu-toggle .bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile menu overlay — longhands instead of inset: 0 (older iOS) */
.mobile-menu {
  position: fixed; top: 0; right: 0; bottom: 0; left: 0; z-index: 90;
  background: var(--char-900);
  display: flex; flex-direction: column; justify-content: center;
  padding: 6rem 8% 3rem;
  opacity: 0; visibility: hidden;
  transition: opacity .35s var(--ease), visibility .35s;
}
body.menu-open { overflow: hidden; }
body.menu-open .mobile-menu { opacity: 1; visibility: visible; }

.m-links { display: flex; flex-direction: column; }
.m-link {
  display: flex; align-items: baseline; gap: 1rem;
  font-family: var(--font-display); font-weight: 400;
  font-size: 2.5rem;
  font-size: clamp(2.1rem, 8.5vw, 3rem);
  color: var(--cream); text-decoration: none;
  padding: .45rem 0; border-bottom: 1px solid rgba(242, 237, 228, .08);
  opacity: 0; transform: translateY(20px);
  transition: opacity .45s var(--ease), transform .45s var(--ease), color .25s;
  transition-delay: 0s;
}
.m-link span { font-size: .85rem; color: var(--gold); }
.m-link:hover { color: var(--gold-2); }
body.menu-open .m-link { opacity: 1; transform: none; transition-delay: calc(var(--i) * 60ms + 80ms); }

.m-meta { margin-top: 2.5rem; display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.6rem; }
.m-meta p { color: var(--cream-70); font-size: .9rem; }
.m-meta a { color: var(--gold-2); text-decoration: none; font-weight: 500; }
.m-meta a:hover { text-decoration: underline; }
.socials--menu { margin-right: auto; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;    /* fallback: browsers without svh */
  min-height: 100svh;   /* modern: tracks the collapsing URL bar */
  display: flex; align-items: center;
  padding: 130px 0 90px;
  background-color: var(--char-800);
  background-image: radial-gradient(1100px 620px at 26% 18%, #262626 0%, var(--char-800) 58%);
}

.hero-ring {
  position: absolute; width: 560px; height: 560px;
  border: 1px solid rgba(201, 162, 39, .18); border-radius: 50%;
  top: -150px; left: -130px;              /* mirrored for RTL */
}
.hero-ring--dash {
  top: auto; left: auto; bottom: -200px; right: -170px;
  width: 470px; height: 470px;
  border: 1px dashed rgba(242, 237, 228, .12);
}

.hero-grid {
  display: grid; grid-template-columns: 1.05fr .95fr; /* RTL: copy right, media left */
  align-items: center; gap: 3.5rem; gap: clamp(2.5rem, 5vw, 4.5rem);
  position: relative; z-index: 1;
}

.hero-title {
  font-family: var(--font-display); font-weight: 400;
  font-size: 3.4rem;
  font-size: clamp(2.6rem, 5.6vw, 4.2rem);
  line-height: 1.3;
  color: var(--cream); margin-bottom: .4rem;
}

.hero-intro {
  max-width: 56ch; margin: 1.5rem 0 2.2rem;
  font-size: 1.05rem; line-height: 1.95; color: var(--cream-70);
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; }

.trust-row {
  list-style: none; display: flex; flex-wrap: wrap;
  margin-top: 3rem; padding-top: 1.9rem;
  border-top: 1px solid rgba(242, 237, 228, .14);
}
.trust-row li { padding-left: 2.2rem; display: flex; flex-direction: column; gap: .2rem; }
.trust-row li + li {
  padding-right: 2.2rem; padding-left: 2.2rem;
  border-right: 1px solid var(--gold-35);
}

.trust-num {
  font-family: var(--font-display); font-size: 2.4rem;
  line-height: 1.2; color: var(--gold);
}
.trust-num--badge {
  display: inline-flex; align-items: center; gap: .45rem;
  font-size: 1.4rem; line-height: 1.4;
}
.trust-num--badge svg { width: 26px; height: 26px; color: var(--gold); }
.trust-label { font-size: .78rem; color: var(--cream-70); }

/* Hero media composition — no min()/aspect-ratio needed:
   width + max-width and padding-top squares work everywhere */
.hero-media {
  position: relative; width: 100%; max-width: 420px;
  margin-left: auto; margin-right: auto;
}

.hero-frame {
  position: relative; z-index: 2;
  width: 91%; max-width: 390px;
  margin-left: auto; margin-right: auto;
  aspect-ratio: 4 / 5;   /* harmless if unsupported: the image then defines the height */
  border-radius: var(--radius-pill) var(--radius-pill) 28px 28px; /* arch */
  overflow: hidden;
  background: var(--char-700);
  border: 1px solid rgba(201, 162, 39, .4);
  box-shadow: 0 44px 90px -34px rgba(0, 0, 0, .7);
}
.hero-frame img { width: 100%; height: 100%; object-fit: cover; }

/* padding-top (a percentage of width) creates the square — old-browser
   replacement for aspect-ratio: 1 */
.media-circle { position: absolute; pointer-events: none; }
.media-circle--solid {
  width: 62%; padding-top: 62%; border-radius: 50%;
  background: var(--burgundy); top: -7%; right: -13%;
}
.media-circle--ring {
  width: 66%; padding-top: 66%; border-radius: 50%;
  border: 2px solid var(--gold); opacity: .5;
  bottom: -11%; left: -9%;
}
.media-circle--dash {
  width: 116%; padding-top: 116%; border-radius: 50%;
  border: 2px dashed rgba(201, 162, 39, .35);
  top: 50%; left: 50%; transform: translate(-50%, -50%);
  z-index: 0; animation: spin 46s linear infinite;
}
@keyframes spin { to { transform: translate(-50%, -50%) rotate(360deg); } }

/* Animated barber pole */
.pole {
  position: absolute; left: -16px; bottom: 7%; z-index: 3;
  width: 46px; height: 168px;
  filter: drop-shadow(0 14px 26px rgba(0, 0, 0, .5));
}
.pole::before, .pole::after {
  content: ""; position: absolute; left: 0; right: 0;
  height: 14px; background: var(--gold); border-radius: var(--radius-pill); z-index: 2;
}
.pole::before { top: -6px; }
.pole::after  { bottom: -6px; }
.pole-stripe {
  position: absolute;
  top: 4px; right: 7px; bottom: 4px; left: 7px;
  border-radius: var(--radius-pill);
  background: var(--char-900);
  border: 1px solid rgba(201, 162, 39, .45);
  overflow: hidden;
}
.pole-stripe::before {
  content: ""; position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  background: repeating-linear-gradient(45deg,
    var(--burgundy) 0 16px, var(--cream) 16px 30px, var(--gold) 30px 44px);
  animation: pole-flow 2.6s linear infinite;
}
@keyframes pole-flow { to { background-position: 31.11px 31.11px; } }

/* Floating studio badge */
.media-badge {
  position: absolute; top: 7%; right: -12%; z-index: 3;
  display: flex; align-items: center; gap: 12px;
  background: rgba(24, 24, 24, .88);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  border: 1px solid var(--gold-35); border-radius: 16px;
  padding: 12px 18px;
  animation: float 6s ease-in-out infinite;
}
.media-badge svg { width: 26px; height: 26px; color: var(--gold); flex-shrink: 0; }
.media-badge span { display: flex; flex-direction: column; line-height: 1.35; }
.media-badge strong { font-family: var(--font-display); font-weight: 400; font-size: 1.15rem; color: var(--cream); }
.media-badge em { font-style: normal; font-size: .68rem; color: var(--gold); }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }

/* Scroll cue */
.scroll-cue {
  position: absolute; right: 2rem; right: clamp(1rem, 4vw, 4rem); bottom: 26px;
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  font-size: .7rem; color: rgba(242, 237, 228, .55);
}
.scroll-cue::after {
  content: ""; width: 1px; height: 52px; background: var(--gold);
  animation: cue 2.2s var(--ease) infinite;
}
@keyframes cue {
  0%   { transform: scaleY(0); transform-origin: top; }
  45%  { transform: scaleY(1); transform-origin: top; }
  55%  { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* Barber-pole stripe divider */
.stripe-band {
  height: 13px;
  background: repeating-linear-gradient(-55deg,
    var(--burgundy) 0 16px, var(--cream) 16px 30px, var(--gold) 30px 44px);
}

/* ---------- About ---------- */
.about { overflow: visible; }
.about::before {
  content: ""; position: absolute; z-index: 0;
  width: 240px; height: 240px; border-radius: 50%;
  border: 2px solid rgba(201, 162, 39, .4);
  top: 70px; left: -60px;
}
.about::after {
  content: ""; position: absolute; z-index: 0;
  width: 430px; height: 430px; border-radius: 50%;
  border: 1.5px solid rgba(107, 31, 46, .16);
  top: -90px; left: -150px;
}
.about-grid {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 5fr 6fr; /* RTL: media right, copy left */
  align-items: center; gap: 4rem; gap: clamp(3rem, 6vw, 5.5rem);
}

.about-media {
  position: relative; width: 100%; max-width: 440px;
  margin-left: auto; margin-right: auto;
}
.about-media::before {                 /* burgundy offset plate behind the photo */
  content: ""; position: absolute; z-index: 0;
  top: 30px; right: 30px; left: -26px; bottom: -26px;
  border-radius: 34px; background: var(--burgundy);
}
.about-media::after {                 /* dashed circle */
  content: ""; position: absolute; z-index: 0;
  width: 210px; height: 210px; border-radius: 50%;
  border: 2px dashed rgba(201, 162, 39, .55);
  bottom: -72px; right: -72px;
}
.about-frame {
  position: relative; z-index: 1;
  aspect-ratio: 4 / 5; border-radius: 28px; overflow: hidden;
  box-shadow: 0 34px 70px -30px rgba(36, 31, 27, .55);
}
.about-frame img { width: 100%; height: 100%; object-fit: cover; }

.exp-badge {
  position: absolute; z-index: 3; top: -34px; right: -30px;
  width: 128px; height: 128px; border-radius: 50%;
  background: var(--gold); color: #1D1710;
  display: grid; align-content: center; justify-content: center; text-align: center;
  transform: rotate(-7deg);
  box-shadow: 0 18px 36px -14px rgba(201, 162, 39, .55);
}
.exp-num { font-family: var(--font-display); font-size: 2.2rem; line-height: 1.15; }
.exp-label { font-size: .66rem; font-weight: 600; }

.quote-card {
  position: absolute; z-index: 3; left: -20px; bottom: -34px;
  max-width: 250px;
  background: var(--char-800);
  border: 1px solid var(--gold-35); border-radius: 18px;
  padding: 1.3rem 1.4rem 1.6rem;
}
.quote-card svg { width: 22px; height: 22px; color: var(--gold); margin-bottom: .6rem; }
.quote-card p {
  /* Gulzar is Nastaliq: needs a very generous line-height */
  font-family: var(--font-script);
  font-size: 1.05rem; line-height: 2.1;
  color: var(--gold-2);
}

.about-copy p { color: var(--ink-soft); margin-top: 1.1rem; max-width: 60ch; }

.specs {
  list-style: none;
  display: grid; grid-template-columns: 1fr 1fr;
  gap: .85rem 1.6rem; margin: 1.9rem 0 2.2rem;
}
.specs li { display: flex; align-items: center; gap: .7rem; font-weight: 500; color: var(--ink); }
.specs li::before { content: ""; width: 22px; height: 2px; background: var(--gold); flex-shrink: 0; }

.signature { display: flex; flex-direction: column; gap: .1rem; }
.signature-name { font-family: var(--font-script); font-size: 2.2rem; line-height: 2; color: var(--burgundy); }
.signature-role { font-size: .74rem; color: var(--ink-soft); }

/* ---------- Services ---------- */
.services-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.service-card {
  position: relative; overflow: hidden;
  background: var(--char-700);
  border: 1px solid rgba(242, 237, 228, .08);
  border-radius: var(--radius-lg);
  padding: 2rem;
  display: flex; flex-direction: column;
  transition: transform .35s var(--ease), border-color .35s, background .35s;
}
.service-card::before {              /* gold top line on hover (grows from the right in RTL) */
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--gold); transform: scaleX(0); transform-origin: right;
  transition: transform .45s var(--ease);
}
.service-card::after {               /* decorative corner arc */
  content: ""; position: absolute;
  width: 96px; height: 96px; border-radius: 50%;
  border: 1px solid rgba(201, 162, 39, .3);
  bottom: -44px; left: -44px;
  transition: width .4s var(--ease), height .4s var(--ease);
}
.service-card:hover { transform: translateY(-6px); border-color: rgba(201, 162, 39, .45); }
.service-card:hover::before { transform: scaleX(1); }
.service-card:hover::after { width: 130px; height: 130px; }

.service-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.1rem; }
.service-num { font-family: var(--font-display); font-size: 1rem; color: var(--gold); opacity: .85; }

.service-icon {
  width: 48px; height: 48px; border-radius: 50%;
  display: grid; align-items: center; justify-items: center;
  border: 1px solid var(--gold-35); color: var(--gold);
  transition: background .35s, border-color .35s, color .35s;
}
.service-icon svg { width: 23px; height: 23px; }
.service-card:hover .service-icon { background: var(--burgundy); border-color: var(--burgundy); color: var(--gold-2); }

.service-card h3 {
  font-family: var(--font-display); font-weight: 400;
  font-size: 1.6rem; line-height: 1.4; color: var(--cream);
  margin-bottom: .5rem;
}
.service-card > p { color: var(--cream-70); font-size: .95rem; line-height: 1.8; }

.service-meta {
  display: flex; align-items: center; gap: 12px;
  margin-top: auto; padding-top: 1.5rem;
}
.service-time {
  display: inline-flex; align-items: center; gap: .45rem;
  font-size: .85rem; color: var(--cream-70); white-space: nowrap;
}
.service-time svg { width: 15px; height: 15px; color: var(--gold); }
.service-price {
  font-family: var(--font-display); font-size: 1.5rem; line-height: 1.2;
  color: var(--gold-2); white-space: nowrap;
}
.service-price small {
  font-family: var(--font-body); font-weight: 500;
  font-size: .72rem; color: var(--cream-70);
}

/* Signature (featured) service card */
.service-card--signature {
  grid-column: span 2;
  background: var(--burgundy);
  border-color: rgba(201, 162, 39, .4);
}
.service-card--signature:hover { background: var(--burgundy-2); border-color: var(--gold); }
.service-card--signature > p { color: rgba(242, 237, 228, .85); }
.service-card--signature .leader { opacity: .5; }
.sig-badge {
  background: var(--gold); color: #1D1710;
  font-size: .74rem; font-weight: 600;
  padding: .5em 1.2em; border-radius: var(--radius-pill);
}

/* ---------- Gallery ---------- */
.filters { display: flex; flex-wrap: wrap; gap: .6rem; }
.filter-btn {
  font: inherit; font-size: .84rem; font-weight: 500;
  padding: .6em 1.3em; border-radius: var(--radius-pill);
  background: transparent; color: var(--ink);
  border: 1px solid rgba(36, 31, 27, .28); cursor: pointer;
  transition: border-color .25s, background .25s, color .25s;
}
.filter-btn:hover { border-color: var(--burgundy); color: var(--burgundy); }
.filter-btn.is-active { background: var(--char-800); color: var(--gold-2); border-color: var(--char-800); }

.gallery-grid { columns: 320px; column-gap: 1.4rem; }

.gallery-item {
  position: relative; break-inside: avoid;
  margin-bottom: 1.4rem;
  border-radius: var(--radius); overflow: hidden;
  background: var(--char-700);
}
.gallery-item.is-hidden { display: none; }
.gallery-item.is-shown { animation: pop .55s var(--ease) both; }
@keyframes pop { from { opacity: 0; transform: scale(.92) translateY(12px); } }

.gallery-item img {
  width: 100%; aspect-ratio: var(--ar, 4/5); object-fit: cover;
  transition: transform .65s var(--ease);
}
.gallery-item:hover img { transform: scale(1.06); }

.gallery-overlay {
  position: absolute; top: 0; right: 0; bottom: 0; left: 0;
  display: flex; flex-direction: column; justify-content: flex-end;
  gap: .5rem; padding: 1.25rem;
  background: linear-gradient(180deg, transparent 42%, rgba(15, 11, 9, .88));
  opacity: 0; transition: opacity .35s var(--ease);
}
.gallery-tag {
  align-self: flex-start;
  font-size: .7rem; font-weight: 600; color: var(--gold-2);
  border: 1px solid rgba(201, 162, 39, .55);
  background: rgba(18, 18, 18, .65);
  padding: .4em 1em; border-radius: var(--radius-pill);
}
.gallery-name {
  font-family: var(--font-display); font-weight: 400;
  font-size: 1.35rem; line-height: 1.35; color: var(--cream);
  transform: translateY(10px); transition: transform .35s var(--ease);
}
.gallery-item:hover .gallery-overlay,
.gallery-item:focus-visible .gallery-overlay { opacity: 1; }
.gallery-item:hover .gallery-name,
.gallery-item:focus-visible .gallery-name { transform: none; }

/* On touch devices, keep the caption visible */
@media (hover: none) {
  .gallery-overlay { opacity: 1; background: linear-gradient(180deg, transparent 58%, rgba(15, 11, 9, .88)); }
  .gallery-name { transform: none; }
}

/* ---------- Testimonials ---------- */
.testimonials::before {                /* oversized watermark quote */
  content: "\00AB";
  position: absolute; top: 3vw; right: 1%;
  font-family: Georgia, serif; line-height: 1;
  font-size: 16rem; font-size: clamp(11rem, 24vw, 21rem);
  color: rgba(201, 162, 39, .08);
  pointer-events: none;
}

.carousel {
  display: flex; gap: 1.4rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;   /* smooth momentum on older iOS */
  -webkit-scroll-snap-type: x mandatory;
  scroll-snap-type: x mandatory;
  padding: .4rem .2rem 1.4rem;
  scrollbar-width: none;
}
.carousel::-webkit-scrollbar { display: none; }
.carousel:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; border-radius: 14px; }

.t-card {
  flex: 0 0 380px;                     /* fallback */
  flex: 0 0 min(380px, 86vw);          /* modern */
  -webkit-scroll-snap-align: start;
  scroll-snap-align: start;
  position: relative;
  background: var(--char-700);
  border: 1px solid rgba(242, 237, 228, .08);
  border-radius: var(--radius-lg);
  padding: 2.1rem;
  transition: transform .35s var(--ease), border-color .35s;
}
.t-card:hover { transform: translateY(-5px); border-color: rgba(201, 162, 39, .4); }
.t-card::before {
  content: "\00AB";
  position: absolute; top: 1.4rem; left: 1.7rem;
  font-family: Georgia, serif; font-size: 3.6rem; line-height: 1;
  color: rgba(201, 162, 39, .3);
}

.stars { display: flex; gap: 3px; }
.stars svg { width: 17px; height: 17px; color: var(--gold); }
.stars svg.star-dim { opacity: .25; }

.t-card blockquote { margin: 1rem 0 1.6rem; }
.t-card blockquote p { color: var(--cream-85); font-size: 1.02rem; line-height: 1.9; }

.t-foot { display: flex; align-items: center; gap: 1rem; }
.t-avatar {
  width: 54px; height: 54px; border-radius: 50%;
  object-fit: cover; border: 2px solid var(--gold-35);
}
.t-foot div { display: flex; flex-direction: column; }
.t-foot cite {
  font-style: normal;
  font-family: var(--font-display); font-size: 1.2rem;
  color: var(--cream); line-height: 1.3;
}
.t-foot span { font-size: .82rem; color: var(--cream-70); }

.carousel-controls { display: flex; align-items: center; gap: 1.4rem; }
.carousel-btn {
  width: 46px; height: 46px; border-radius: 50%;
  display: grid; align-items: center; justify-items: center;
  background: transparent; border: 1px solid var(--gold-35);
  color: var(--gold); cursor: pointer;
  transition: background .3s, color .3s, opacity .3s, transform .3s var(--ease);
}
.carousel-btn svg { width: 20px; height: 20px; transform: scaleX(-1); } /* RTL: mirror chevrons */
.carousel-btn:hover:not(:disabled) { background: var(--gold); color: #1D1710; transform: translateY(-2px); }
.carousel-btn:disabled { opacity: .3; cursor: default; }

.dots { display: flex; gap: .55rem; }
.dots button {
  width: 9px; height: 9px; border-radius: var(--radius-pill);
  background: rgba(242, 237, 228, .3); border: 0; cursor: pointer;
  transition: width .3s var(--ease), background .3s;
}
.dots button.is-active { width: 24px; background: var(--gold); }

/* ---------- Process ---------- */
.process-track {
  list-style: none; position: relative;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.2rem;
}
.process-track::before {
  content: "";
  position: absolute; top: 36px;
  left: 16.66%; right: 16.66%;
  border-top: 2px dashed rgba(107, 31, 46, .4);
}

.process-step {
  display: flex; flex-direction: column; align-items: center;
  text-align: center; position: relative;
}
.step-circle {
  width: 72px; height: 72px; border-radius: 50%;
  display: grid; align-items: center; justify-items: center;
  background: var(--cream);
  border: 2px solid var(--burgundy);
  box-shadow: 0 0 0 6px var(--cream), 0 0 0 7.5px rgba(201, 162, 39, .55);
}
.step-circle span {
  font-family: var(--font-display); font-size: 1.5rem;
  color: var(--burgundy); line-height: 1.2;
}
.step-icon { margin: 1.6rem 0 .9rem; color: var(--burgundy); }
.step-icon svg { width: 27px; height: 27px; }
.process-step h3 {
  font-family: var(--font-display); font-weight: 400;
  font-size: 1.4rem; line-height: 1.4; color: var(--ink);
  margin-bottom: .5rem;
}
.process-step p { color: var(--ink-soft); font-size: .95rem; max-width: 34ch; }

/* ---------- Booking / contact ---------- */
.booking-grid {
  display: grid; grid-template-columns: 5fr 7fr;  /* RTL: info right, form left */
  gap: 1.6rem; align-items: stretch;
}

.info-card {
  position: relative;
  background: var(--char-700);
  border: 1px solid rgba(242, 237, 228, .08);
  border-radius: var(--radius-lg);
  padding: 2.3rem 2.7rem 2.3rem 2.3rem;  /* extra clearance on the right (rail side) */
}
.info-card h3 {
  font-family: var(--font-display); font-weight: 400;
  font-size: 1.7rem; line-height: 1.35; color: var(--cream);
  margin-bottom: 1.4rem;
}

/* Mini animated barber-pole rail on the card's right edge */
.pole-rail { position: absolute; right: -7px; top: 34px; width: 14px; height: 132px; }
.pole-rail::before {
  content: ""; position: absolute;
  top: 3px; right: 4px; bottom: 3px; left: 4px;
  border-radius: var(--radius-pill);
  background: repeating-linear-gradient(45deg,
    var(--burgundy) 0 7px, var(--cream) 7px 13px, var(--gold) 13px 19px);
  animation: pole-flow-small 2.6s linear infinite;
}
@keyframes pole-flow-small { to { background-position: 13.44px 13.44px; } }

.hours-list, .contact-list { list-style: none; }
.hours-list li { display: flex; align-items: center; gap: 12px; padding: .45rem 0; }
.hours-list li span:first-child, .hours-list li span:last-child { white-space: nowrap; color: var(--cream-85); }

.contact-list { margin: 1.7rem 0; display: flex; flex-direction: column; gap: 1rem; }
.contact-list li { display: flex; align-items: flex-start; gap: .8rem; }
.contact-list svg { width: 19px; height: 19px; color: var(--gold); flex-shrink: 0; margin-top: .2rem; }
.contact-list span, .contact-list a { color: var(--cream-85); font-style: normal; }
.contact-list a { color: var(--gold-2); text-decoration: none; }
.contact-list a:hover { text-decoration: underline; }

.info-card .socials { margin-top: .4rem; }
.walkins {
  margin-top: 1.6rem; padding-top: 1.4rem;
  border-top: 1px dashed rgba(242, 237, 228, .18);
  font-size: .88rem; color: var(--cream-70);
}

/* Form */
.booking-form {
  background: var(--char-700);
  border: 1px solid rgba(242, 237, 228, .08);
  border-radius: var(--radius-lg);
  padding: 2.3rem;
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.field--full { grid-column: 1 / -1; }

.field label {
  display: block; margin-bottom: .5rem;
  font-size: .85rem; font-weight: 500;
  color: var(--cream-70);
}
.req { color: var(--gold); }

.field input, .field select, .field textarea {
  width: 100%; font: inherit; color: var(--cream);
  background: var(--char-600);
  border: 1px solid rgba(242, 237, 228, .15);
  border-radius: 12px;
  padding: .85em 1em;
  transition: border-color .25s, box-shadow .25s;
}
.field textarea { resize: vertical; min-height: 110px; }
.field input::placeholder, .field textarea::placeholder { color: rgba(242, 237, 228, .45); }

.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201, 162, 39, .22);
}
.field input:focus-visible:not(:placeholder-shown):invalid { border-color: var(--error); }

.field input[type="date"] { color-scheme: dark; }
.field select {
  appearance: none; -webkit-appearance: none;
  /* RTL: dropdown arrow sits on the left (inline end) */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1l6 6 6-6' fill='none' stroke='%23C9A227' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: left 1em center;
  padding-left: 2.6em; cursor: pointer;
}
.field select:invalid { color: rgba(242, 237, 228, .45); }

.field-error { display: none; margin-top: .45rem; font-size: .85rem; color: var(--error); }
.field.is-invalid .field-error { display: block; }
.field.is-invalid input, .field.is-invalid select { border-color: var(--error); }

.hp { position: absolute; left: -9999px; }

.booking-form .btn { margin-top: 1.6rem; }
.form-note { margin-top: 1rem; font-size: .85rem; color: var(--cream-70); }
.form-status { display: none; margin-top: 1rem; font-size: .95rem; }
.form-status.is-visible { display: block; }
.form-status--ok  { color: var(--gold-2); }
.form-status--err { color: var(--error); }

/* ---------- Footer ---------- */
.site-footer { background: var(--char-900); padding-top: 4.5rem; }

.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1.2fr;  /* RTL: brand right */
  gap: 3rem; padding-bottom: 3.2rem;
}
.footer-brand p { margin: 1.4rem 0; max-width: 40ch; color: var(--cream-70); font-size: .95rem; }

.footer-nav h4, .footer-hours h4 {
  font-family: var(--font-display); font-weight: 400;
  font-size: 1.15rem; color: var(--gold); margin-bottom: 1.1rem;
}
.footer-nav ul { list-style: none; display: flex; flex-direction: column; gap: .55rem; }
.footer-nav a { color: var(--cream-70); text-decoration: none; font-size: .95rem; transition: color .25s; }
.footer-nav a:hover { color: var(--gold-2); }

.footer-hours ul { list-style: none; display: flex; flex-direction: column; gap: .5rem; }
.footer-hours li { display: flex; justify-content: space-between; gap: 1rem; color: var(--cream-70); font-size: .95rem; }
.footer-loc { margin-top: 1.1rem; color: var(--cream-70); font-size: .9rem; }

.footer-bar { border-top: 1px solid rgba(201, 162, 39, .18); }
.footer-bar-inner {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: .6rem 2rem;
  padding: 1.4rem 0; font-size: .85rem; color: var(--cream-70);
}

/* Back to top (bottom-left corner in RTL) */
.back-to-top {
  position: fixed; left: 26px; bottom: 26px; z-index: 110;
  width: 48px; height: 48px; border-radius: 50%;
  display: grid; align-items: center; justify-items: center;
  background: var(--gold); color: #1D1710; border: 0; cursor: pointer;
  opacity: 0; transform: translateY(80px); pointer-events: none;
  transition: opacity .35s var(--ease), transform .35s var(--ease), background .3s;
}
.back-to-top.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.back-to-top:hover { background: var(--gold-2); }
.back-to-top svg { width: 20px; height: 20px; }

/* ---------- Responsive ---------- */
@media (max-width: 1020px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .service-card--signature { grid-column: span 2; }
}

@media (max-width: 960px) {
  .nav-links, .nav-cta { display: none; }
  .menu-toggle { display: flex; }

  .hero { padding-top: 116px; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-media { margin-top: 3.4rem; }
  .hero-frame { width: 87%; max-width: 330px; }
  .media-circle--dash { width: 124%; padding-top: 124%; }
  .pole { left: 2%; bottom: 4%; width: 40px; height: 146px; }
  .media-badge { right: 0; padding: 10px 14px; }
  .scroll-cue { display: none; }

  .about-grid { grid-template-columns: 1fr; }
  .about-media { max-width: 420px; margin-top: 1.5rem; margin-left: auto; margin-right: auto; }
  .quote-card { left: 0; bottom: -30px; }

  .booking-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 2.4rem; }
}

@media (max-width: 840px) {
  .process-track { grid-template-columns: 1fr; gap: 2.6rem; }
  /* Vertical connector through the circle centers (right side in RTL) */
  .process-track::before {
    top: 36px; bottom: 36px;
    left: auto; right: 35px;
    border-top: 0; border-left: 0;
    border-right: 2px dashed rgba(107, 31, 46, .4);
  }
  .process-step { flex-direction: row; text-align: right; gap: 1.4rem; align-items: flex-start; }
  .step-circle { flex-shrink: 0; }
  .step-icon { margin: .4rem 0 .8rem; }
}

@media (max-width: 640px) {
  .services-grid { grid-template-columns: 1fr; }
  .service-card--signature { grid-column: auto; }

  .form-grid { grid-template-columns: 1fr; }

  .trust-row { flex-direction: column; gap: 1.1rem; }
  .trust-row li { padding: 0 !important; }
  .trust-row li + li { border-right: 0; border-top: 1px solid var(--gold-35); padding: 1.1rem 0 0 !important; }

  .exp-badge { width: 108px; height: 108px; top: -26px; right: -18px; }
  .quote-card { max-width: 220px; padding: 1.1rem 1.2rem 1.3rem; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  html.js .reveal { opacity: 1; transform: none; }
  .swash path { stroke-dashoffset: 0; }
}