/* =====================================================
   Moroccan Barber JHB
   Dark / brass / cream palette with Moroccan tile motifs.
   ===================================================== */

:root {
  --bg:        #0c0a07;
  --bg-2:      #14110c;
  --bg-3:      #1c1812;
  --line:      rgba(217, 174, 96, 0.14);
  --line-2:    rgba(217, 174, 96, 0.32);
  --ink:       #f4ecd8;
  --ink-dim:   #c9bfa6;
  --ink-low:   rgba(244, 236, 216, 0.6);
  --gold:      #d3a64a;
  --gold-2:    #e9c97a;
  --gold-deep: #8b6420;
  --rust:      #b86b3c;
  --teal:      #1c4848;

  --serif:  'Playfair Display', 'Cormorant Garamond', Georgia, ui-serif, serif;
  --sans:   'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --display:'Cormorant Garamond', 'Playfair Display', Georgia, serif;

  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 22px;

  --shadow-1: 0 1px 2px rgba(0,0,0,.4), 0 8px 24px rgba(0,0,0,.4);
  --shadow-2: 0 1px 2px rgba(0,0,0,.4), 0 18px 60px rgba(0,0,0,.55);
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

a { color: inherit; text-decoration: none; }
a:hover { color: var(--gold-2); }

.muted { color: var(--ink-low); }

.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 24px; }

.skip {
  position: absolute; left: -9999px;
}
.skip:focus {
  left: 16px; top: 16px; background: var(--gold); color: #000;
  padding: 8px 14px; border-radius: 6px; z-index: 999;
}

/* ----- Type ----- */

h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; letter-spacing: -0.01em; line-height: 1.08; margin: 0; }
h1 { font-size: clamp(2.6rem, 6vw, 4.7rem); font-weight: 700; }
h2 { font-size: clamp(2rem, 4vw, 3.1rem); }
h3 { font-size: clamp(1.4rem, 2.4vw, 1.7rem); }
h2 em, h1 em { font-style: italic; color: var(--gold-2); font-family: var(--display); font-weight: 500; }

.eyebrow {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--sans); font-size: .82rem; font-weight: 500;
  letter-spacing: .22em; text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 18px;
}
.eyebrow--center { justify-content: center; }
.eyebrow__rule {
  display: inline-block; width: 36px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold) 60%, transparent);
}

.section-head { max-width: 720px; margin: 0 0 46px; }
.section-head--center { margin-left: auto; margin-right: auto; text-align: center; }
.section-sub { color: var(--ink-dim); margin-top: 14px; font-size: 1.05rem; }

.goldline {
  position: relative; white-space: nowrap;
  background: linear-gradient(180deg, transparent 60%, rgba(211,166,74,.25) 60%);
  padding: 0 .12em;
  color: var(--gold-2);
}

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

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 12px 22px; border-radius: 999px;
  font-family: var(--sans); font-size: .95rem; font-weight: 600; letter-spacing: .02em;
  border: 1px solid transparent;
  transition: transform .15s ease, background .25s ease, color .25s ease, border-color .25s ease, box-shadow .25s ease;
  cursor: pointer; white-space: nowrap;
}
.btn--lg { padding: 16px 30px; font-size: 1rem; }
.btn--gold {
  background: linear-gradient(180deg, var(--gold-2), var(--gold));
  color: #1a1207;
  box-shadow: 0 1px 0 rgba(255,255,255,.25) inset, 0 14px 28px -14px rgba(211,166,74,.55);
}
.btn--gold:hover { transform: translateY(-1px); color: #0c0a07; box-shadow: 0 1px 0 rgba(255,255,255,.4) inset, 0 18px 32px -14px rgba(211,166,74,.7); }
.btn--outline {
  background: transparent; color: var(--ink);
  border-color: var(--line-2);
}
.btn--outline:hover { background: rgba(217,174,96,.08); border-color: var(--gold); color: var(--gold-2); }
.btn--ghost {
  background: transparent; color: var(--ink); padding: 10px 16px;
}
.btn--ghost:hover { color: var(--gold-2); }

/* ----- Top ribbon ----- */

.ribbon {
  background: #07060a;
  border-bottom: 1px solid var(--line);
  font-size: .82rem;
  color: var(--ink-dim);
}
.ribbon__row {
  display: flex; align-items: center; gap: 14px;
  height: 38px;
  flex-wrap: wrap; justify-content: center;
}
.ribbon__rating { display: inline-flex; align-items: center; gap: 8px; }
.ribbon__rating strong { color: var(--ink); font-weight: 700; }
.ribbon__sep { color: rgba(255,255,255,.18); }
.ribbon__link { color: var(--ink); }
.ribbon__link:hover { color: var(--gold-2); }
.stars { color: var(--gold); letter-spacing: 2px; }

@media (max-width: 560px) {
  .ribbon__sep--hide, .ribbon__where { display: none; }
}

/* ----- Nav ----- */

.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(12, 10, 7, 0.78);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav__row {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; height: 78px;
}

.logo { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.logo__mark { width: 38px; height: 38px; flex-shrink: 0; }
.logo__text { display: flex; flex-direction: column; line-height: 1; }
.logo__top { font-family: var(--serif); font-weight: 700; font-size: 1.15rem; letter-spacing: .01em; }
.logo__bot {
  font-family: var(--sans); font-size: .68rem; font-weight: 600;
  letter-spacing: .32em; text-transform: uppercase; color: var(--gold);
  margin-top: 4px;
}

.nav__menu { display: flex; gap: 30px; align-items: center; }
.nav__menu a {
  color: var(--ink-dim); font-size: .92rem; font-weight: 500;
  position: relative;
}
.nav__menu a:hover { color: var(--ink); }
.nav__menu a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -8px;
  height: 1px; background: var(--gold); transform: scaleX(0); transition: transform .2s;
  transform-origin: center;
}
.nav__menu a:hover::after { transform: scaleX(1); }

.nav__cta { display: flex; gap: 10px; align-items: center; }

.nav__toggle { display: none; background: transparent; border: 0; padding: 10px; cursor: pointer; }
.nav__toggle span { display: block; width: 22px; height: 2px; background: var(--ink); margin: 4px 0; transition: transform .25s, opacity .25s; }

.nav__mobile {
  display: none;
  flex-direction: column; gap: 14px;
  padding: 18px 24px 26px;
  border-top: 1px solid var(--line);
  background: var(--bg-2);
}
.nav__mobile a { color: var(--ink); font-size: 1rem; font-weight: 500; padding: 8px 0; }
.nav__mobile a.mobile-book { margin-top: 6px; align-self: flex-start; }
.nav__mobile[data-open="true"] { display: flex; }

@media (max-width: 920px) {
  .nav__menu { display: none; }
  .nav__cta .btn--ghost { display: none; }
  .nav__toggle { display: block; }
  .nav__row { height: 68px; }
}

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

.hero {
  position: relative; min-height: 92vh;
  display: flex; align-items: center;
  padding: 120px 0 90px;
  overflow: hidden;
  isolation: isolate;
}
.hero__bg { position: absolute; inset: 0; z-index: -2; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; }
.hero__scrim {
  position: absolute; inset: 0; z-index: 0;
  background:
    linear-gradient(180deg, rgba(12,10,7,.72) 0%, rgba(12,10,7,.6) 50%, rgba(12,10,7,.96) 100%),
    radial-gradient(60% 60% at 80% 20%, rgba(211,166,74,.18), transparent 60%);
}
.hero__pattern {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  opacity: .12; mix-blend-mode: screen;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='80' height='80' viewBox='0 0 80 80'><g fill='none' stroke='%23e9c97a' stroke-width='1'><path d='M40 0 L80 40 L40 80 L0 40 Z'/><path d='M40 14 L66 40 L40 66 L14 40 Z'/><path d='M40 26 L54 40 L40 54 L26 40 Z'/><circle cx='40' cy='40' r='4'/></g></svg>");
  background-size: 80px 80px;
}

.hero__inner {
  position: relative; z-index: 2;
  max-width: 880px;
}
.hero__title {
  margin: 8px 0 18px;
  text-shadow: 0 2px 30px rgba(0,0,0,.6);
}
.hero__sub {
  font-size: clamp(1rem, 1.5vw, 1.18rem);
  color: var(--ink-dim);
  max-width: 620px;
  margin: 0 0 32px;
}

.hero__cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero__cta .btn svg { color: currentColor; }

.hero__stats {
  list-style: none; padding: 0; margin: 60px 0 0;
  display: grid; grid-template-columns: repeat(4, minmax(0,1fr));
  gap: 18px;
  border-top: 1px solid var(--line);
  padding-top: 28px;
  max-width: 720px;
}
.hero__stats li { display: flex; flex-direction: column; gap: 4px; }
.hero__stats strong { font-family: var(--serif); font-weight: 600; font-size: clamp(1.5rem, 2.6vw, 2rem); color: var(--gold-2); }
.hero__stats span { font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-low); }

.hero__scroll {
  position: absolute; left: 50%; bottom: 28px; transform: translateX(-50%);
  width: 22px; height: 38px; border: 1px solid var(--line-2); border-radius: 999px;
  display: flex; justify-content: center; padding-top: 8px;
  z-index: 3;
}
.hero__scroll span {
  width: 3px; height: 8px; background: var(--gold); border-radius: 3px;
  animation: scroll 1.8s ease-in-out infinite;
}
@keyframes scroll {
  0% { transform: translateY(0); opacity: 1; }
  100% { transform: translateY(14px); opacity: 0; }
}

@media (max-width: 720px) {
  .hero { min-height: auto; padding: 90px 0 60px; }
  .hero__stats { grid-template-columns: repeat(2, 1fr); margin-top: 40px; }
  .hero__scroll { display: none; }
}

/* ----- Strip ----- */

.strip {
  background: linear-gradient(180deg, var(--bg-2), var(--bg));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 22px 0;
}
.strip__row {
  display: flex; align-items: center; justify-content: space-between;
  gap: 30px; flex-wrap: wrap;
}
.strip__item {
  font-family: var(--serif); font-style: italic; font-size: 1.05rem; color: var(--ink-dim);
  display: inline-flex; align-items: center; gap: 10px;
}
.strip__icon { color: var(--gold); font-size: 1.3rem; font-style: normal; }

@media (max-width: 720px) {
  .strip__row { justify-content: flex-start; }
}

/* ----- Section base ----- */

section { padding: 96px 0; position: relative; }
section + section { border-top: 1px solid var(--line); }

@media (max-width: 720px) { section { padding: 72px 0; } }

/* ----- Services / menu ----- */

.services { background:
  radial-gradient(800px 400px at 100% 0%, rgba(211,166,74,.06), transparent 60%),
  var(--bg);
}
.menu {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px;
}
.menu__col {
  position: relative;
  background: linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,0));
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 36px 30px 30px;
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.menu__col:hover { transform: translateY(-3px); border-color: var(--line-2); box-shadow: var(--shadow-1); }
.menu__col--feature {
  background: linear-gradient(180deg, rgba(211,166,74,.07), rgba(211,166,74,0)),
              linear-gradient(180deg, var(--bg-3), var(--bg-2));
  border-color: rgba(217,174,96,.34);
}
.menu__head h3 { margin-bottom: 6px; }
.menu__head p { color: var(--ink-dim); font-size: .95rem; margin: 6px 0 22px; }
.menu__num {
  display: inline-block; font-family: var(--serif); font-style: italic;
  color: var(--gold); font-size: 1rem; letter-spacing: .1em;
  margin-bottom: 12px;
}

.price { list-style: none; padding: 0; margin: 0; }
.price li {
  display: flex; align-items: baseline; gap: 14px;
  padding: 12px 0;
  border-bottom: 1px dashed var(--line);
  font-size: .95rem;
}
.price li:last-child { border-bottom: 0; }
.price li span { color: var(--ink-dim); }
.price li b {
  margin-left: auto; font-family: var(--serif); font-weight: 600;
  color: var(--gold-2); font-size: 1.05rem;
  white-space: nowrap;
}

.badge {
  position: absolute; top: -12px; right: 22px;
  font-size: .7rem; letter-spacing: .2em; text-transform: uppercase;
  background: var(--gold); color: #1a1207;
  padding: 6px 12px; border-radius: 999px; font-weight: 700;
}

.services__foot {
  text-align: center; margin: 46px 0 0; color: var(--ink-dim);
}
.services__foot a { color: var(--gold-2); border-bottom: 1px dotted var(--gold); padding-bottom: 1px; }

@media (max-width: 920px) { .menu { grid-template-columns: 1fr; } }

/* ----- About ----- */

.about { background: var(--bg-2); }
.about__grid {
  display: grid; grid-template-columns: 1fr 1.1fr; gap: 60px; align-items: center;
}
.about__media { position: relative; border-radius: var(--r-md); overflow: visible; }
.about__media img {
  width: 100%; height: 560px; object-fit: cover;
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  filter: saturate(.85) contrast(1.05);
}
.about__badge {
  position: absolute; bottom: -22px; right: -22px;
  background: linear-gradient(180deg, var(--bg-3), #0a0805);
  border: 1px solid var(--line-2);
  padding: 18px 22px;
  border-radius: var(--r-md);
  display: flex; flex-direction: column; align-items: flex-start; gap: 4px;
  box-shadow: var(--shadow-2);
  min-width: 180px;
}
.about__badge strong { font-family: var(--serif); font-size: 1.6rem; color: var(--gold-2); font-weight: 600; }
.about__badge small { color: var(--ink-low); font-size: .78rem; }
.about__text h2 { margin-bottom: 22px; }
.about__text p { color: var(--ink-dim); margin: 0 0 18px; max-width: 560px; }
.about__list { list-style: none; padding: 0; margin: 24px 0 32px; }
.about__list li { display: flex; gap: 12px; align-items: baseline; padding: 6px 0; color: var(--ink); }
.about__list li span { color: var(--gold); font-weight: 700; }

@media (max-width: 920px) {
  .about__grid { grid-template-columns: 1fr; gap: 40px; }
  .about__media img { height: 380px; }
  .about__badge { right: 16px; bottom: -16px; }
}

/* ----- Gallery strip ----- */

.gallery {
  padding-bottom: 100px;
  background:
    radial-gradient(800px 400px at 0% 100%, rgba(211,166,74,.06), transparent 60%),
    var(--bg);
}
.gallery__strip {
  display: grid; grid-auto-flow: column;
  grid-auto-columns: clamp(220px, 26vw, 320px);
  gap: 14px;
  overflow-x: auto;
  padding: 8px 24px 30px;
  scroll-snap-type: x mandatory;
  margin-top: 30px;
}
.gallery__strip figure {
  margin: 0; aspect-ratio: 4/5;
  border-radius: var(--r-md);
  overflow: hidden;
  border: 1px solid var(--line);
  scroll-snap-align: start;
  position: relative;
}
.gallery__strip img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; filter: saturate(.9) contrast(1.05); }
.gallery__strip figure:hover img { transform: scale(1.04); }

.gallery__strip::-webkit-scrollbar { height: 6px; }
.gallery__strip::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 99px; }

/* ----- Hours ----- */

.hours { background: var(--bg-2); }
.hours__grid {
  display: grid; grid-template-columns: 1fr 1.2fr; gap: 60px; align-items: center;
}
.hours__grid > div h2 { margin-bottom: 14px; }
.hours__grid > div .section-sub { margin-bottom: 26px; }

.schedule {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,0));
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
}
.schedule tr { transition: background .25s ease; }
.schedule tr:not(:last-child) { border-bottom: 1px solid var(--line); }
.schedule tr.is-today { background: rgba(211,166,74,.08); }
.schedule tr.is-today th { color: var(--gold-2); }
.schedule tr.is-today td::after {
  content: "Today"; margin-left: 10px;
  font-size: .68rem; letter-spacing: .18em; text-transform: uppercase;
  background: var(--gold); color: #1a1207;
  padding: 3px 8px; border-radius: 999px; font-weight: 700;
  vertical-align: middle;
}
.schedule th, .schedule td { padding: 16px 24px; text-align: left; }
.schedule th { font-family: var(--serif); font-weight: 600; font-size: 1.05rem; color: var(--ink); }
.schedule td { color: var(--ink-dim); font-variant-numeric: tabular-nums; }

@media (max-width: 920px) { .hours__grid { grid-template-columns: 1fr; gap: 32px; } }
@media (max-width: 560px) {
  .schedule th, .schedule td { padding: 12px 16px; font-size: .92rem; }
}

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

.visit__grid {
  display: grid; grid-template-columns: 1fr 1.1fr; gap: 60px; align-items: stretch;
}
.visit__list { list-style: none; padding: 0; margin: 30px 0; display: grid; gap: 18px; }
.visit__list li { display: grid; grid-template-columns: 36px 1fr; gap: 14px; align-items: start; }
.visit__icon {
  width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center;
  background: rgba(211,166,74,.1); border: 1px solid var(--line-2);
  border-radius: 50%; color: var(--gold-2); font-size: 1rem;
}
.visit__list strong { display: block; font-family: var(--serif); font-size: 1.05rem; margin-bottom: 4px; }
.visit__list p { margin: 0; color: var(--ink-dim); font-size: .95rem; }
.visit__list a:hover { color: var(--gold-2); }
.visit__cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 12px; }

.visit__map {
  border-radius: var(--r-md); overflow: hidden;
  border: 1px solid var(--line);
  min-height: 460px;
  filter: hue-rotate(-10deg) saturate(.7) brightness(.78);
}
.visit__map iframe { width: 100%; height: 100%; min-height: 460px; border: 0; display: block; }

@media (max-width: 920px) {
  .visit__grid { grid-template-columns: 1fr; gap: 40px; }
  .visit__map { min-height: 360px; }
}

/* ----- Reviews ----- */

.reviews { background: var(--bg-2); }
.reviews__grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px;
  margin-top: 30px;
}
.quote {
  margin: 0;
  background: linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,0));
  border: 1px solid var(--line);
  padding: 30px;
  border-radius: var(--r-md);
  position: relative;
}
.quote::before {
  content: """;
  position: absolute; top: 6px; right: 18px;
  font-family: var(--serif); font-size: 6rem; line-height: 1; color: var(--gold);
  opacity: .14;
}
.quote .stars { font-size: .9rem; }
.quote blockquote {
  margin: 14px 0 18px; padding: 0;
  font-family: var(--serif); font-style: italic; font-size: 1.05rem;
  color: var(--ink); line-height: 1.5;
}
.quote figcaption { color: var(--ink-low); font-size: .85rem; letter-spacing: .1em; text-transform: uppercase; }

.reviews__cta { text-align: center; margin-top: 40px; }

@media (max-width: 920px) { .reviews__grid { grid-template-columns: 1fr; } }

/* ----- Big CTA ----- */

.cta {
  background:
    radial-gradient(60% 80% at 50% 0%, rgba(211,166,74,.18), transparent 70%),
    linear-gradient(180deg, var(--bg-3), var(--bg));
  text-align: center;
}
.cta__inner { max-width: 720px; margin: 0 auto; }
.cta h2 { margin-bottom: 14px; }
.cta p { color: var(--ink-dim); font-size: 1.1rem; margin: 0 0 30px; }
.cta__buttons { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

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

.foot {
  background: #07060a;
  padding: 70px 0 30px;
  border-top: 1px solid var(--line);
  color: var(--ink-dim);
  font-size: .92rem;
}
.foot__grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 50px;
  border-bottom: 1px solid var(--line);
}
.foot__brand .logo { margin-bottom: 14px; }
.foot__tag { max-width: 280px; color: var(--ink-low); }
.foot__col h4 {
  font-family: var(--sans); text-transform: uppercase; letter-spacing: .18em;
  font-size: .78rem; color: var(--gold);
  margin-bottom: 14px; font-weight: 600;
}
.foot__col p { margin: 0; line-height: 2; }
.foot__col a:hover { color: var(--gold-2); }

.foot__bot {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 22px;
}

@media (max-width: 720px) {
  .foot__grid { grid-template-columns: 1fr 1fr; gap: 30px; }
  .foot__bot { flex-direction: column; gap: 6px; text-align: center; }
}

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