/* Tarik Barber — barbershop, Hay Riad Rabat. Kit: noir/anthracite + red accent, Montserrat. */

:root {
  --noir: #0E0E10;
  --anthracite: #1C1C1F;
  --gris-fonce: #2A2A2A;
  --gris-clair: #D9D9D9;
  --cream: #E6E0D6;
  --muted: #9A968E;
  --rouge: #D62828;
  --rouge-dark: #A81E1E;
  --line: rgba(230, 224, 214, 0.12);
  --line-strong: rgba(230, 224, 214, 0.22);
  --radius: 4px;
  --maxw: 1200px;
  --nav-h: 84px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --f: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--f);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.7;
  color: var(--gris-clair);
  background: var(--noir);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0; color: var(--cream); font-weight: 800; line-height: 1.06; letter-spacing: -0.01em; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

/* ---------- layout helpers ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.section { padding: 96px 0; position: relative; }
.section--tight { padding: 72px 0; }
.center { text-align: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 12px; font-weight: 600; letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 18px;
}
.eyebrow .spark { width: 12px; height: 12px; color: var(--rouge); }
.h-lg { font-size: clamp(2.1rem, 5.4vw, 3.5rem); text-transform: uppercase; }
.h-md { font-size: clamp(1.7rem, 3.6vw, 2.5rem); text-transform: uppercase; }
.lead { color: var(--gris-clair); font-size: 1.05rem; max-width: 60ch; }
.muted { color: var(--muted); }

/* red spark divider */
.divider { display: flex; align-items: center; justify-content: center; gap: 16px; margin: 0 auto; }
.divider::before, .divider::after { content: ""; height: 1px; width: min(120px, 22vw); background: var(--line-strong); }
.divider .spark { width: 14px; height: 14px; color: var(--rouge); flex: none; }

/* ---------- buttons (kit: red pill primary, outline secondary, arrow) ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--f); font-weight: 700; font-size: 13.5px; letter-spacing: 0.14em; text-transform: uppercase;
  padding: 15px 26px; border-radius: var(--radius); border: 1.5px solid transparent;
  cursor: pointer; white-space: nowrap; transition: all 0.25s var(--ease);
}
.btn .arw { transition: transform 0.25s var(--ease); }
.btn:hover .arw { transform: translateX(4px); }
.btn--primary { background: var(--rouge); color: #fff; }
.btn--primary:hover { background: var(--rouge-dark); }
.btn--ghost { background: transparent; color: var(--cream); border-color: var(--line-strong); }
.btn--ghost:hover { border-color: var(--rouge); color: #fff; }
.btn--light { background: var(--cream); color: var(--noir); }
.btn--light:hover { background: #fff; }

/* ---------- nav ---------- */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 60;
  height: var(--nav-h); display: flex; align-items: center;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease), height 0.3s var(--ease);
  border-bottom: 1px solid transparent;
  background: linear-gradient(to bottom, rgba(14,14,16,0.55), rgba(14,14,16,0));
}
.header.scrolled { background: var(--noir); border-bottom-color: var(--line); height: 70px; }
.nav { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; }
.nav__brand { display: inline-flex; align-items: center; gap: 12px; justify-self: start; position: relative; z-index: 80; }
.nav__brand img { height: 38px; width: auto; }
.nav__brand .wordmark { display: flex; flex-direction: column; line-height: 1; }
.nav__brand .wordmark b { font-weight: 800; font-size: 17px; letter-spacing: 0.22em; color: var(--cream); text-transform: uppercase; }
.nav__brand .wordmark span { font-weight: 600; font-size: 9.5px; letter-spacing: 0.42em; color: var(--muted); text-transform: uppercase; margin-top: 3px; }
.nav__links { display: flex; align-items: center; gap: 34px; justify-self: center; }
.nav__links a {
  font-weight: 600; font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gris-clair);
  position: relative; padding: 6px 0; transition: color 0.2s var(--ease);
}
.nav__links a::after { content: ""; position: absolute; left: 0; bottom: 0; width: 0; height: 1.5px; background: var(--rouge); transition: width 0.28s var(--ease); }
.nav__links a:hover { color: var(--cream); }
.nav__links a:hover::after, .nav__links a.active::after { width: 100%; }
.nav__links a.active { color: var(--cream); }
.nav__end { justify-self: end; display: inline-flex; align-items: center; gap: 14px; position: relative; z-index: 80; }
.nav__end .btn { padding: 12px 20px; }

.burger { display: none; width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer; position: relative; z-index: 80; }
.burger span { position: absolute; left: 10px; right: 10px; height: 2px; background: var(--cream); transition: transform 0.3s var(--ease), opacity 0.2s var(--ease); }
.burger span:nth-child(1) { top: 15px; }
.burger span:nth-child(2) { top: 21px; }
.burger span:nth-child(3) { top: 27px; }

/* mobile menu overlay */
.mobile-menu {
  position: fixed; inset: 0; top: 0; left: 0; width: 100vw; height: 100dvh; z-index: 70;
  background: var(--noir);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), visibility 0.3s;
}
.mobile-menu a.ml { font-weight: 700; font-size: 22px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--cream); padding: 12px 0; }
.mobile-menu a.ml.active { color: var(--rouge); }
.mobile-menu .divider { margin: 18px 0; }
.mobile-menu .btn { margin-top: 12px; }
body.nav-open { overflow: hidden; }
/* lift the header (and its burger/brand) above the full-screen overlay so the X stays visible + tappable */
body.nav-open .header { z-index: 80; background: transparent; border-bottom-color: transparent; }
body.nav-open .mobile-menu { opacity: 1; visibility: visible; transform: none; }
body.nav-open .burger span:nth-child(1) { top: 21px; transform: rotate(45deg); }
body.nav-open .burger span:nth-child(2) { opacity: 0; }
body.nav-open .burger span:nth-child(3) { top: 21px; transform: rotate(-45deg); }

/* ---------- hero (split) ---------- */
.hero { position: relative; padding-top: var(--nav-h); }
.hero__grid { display: grid; grid-template-columns: 1.05fr 0.95fr; min-height: calc(100vh - var(--nav-h)); align-items: stretch; }
.hero__text { padding: 64px 56px 64px 0; display: flex; flex-direction: column; justify-content: center; }
.hero h1 { font-size: clamp(2.5rem, 5.6vw, 4.4rem); text-transform: uppercase; }
.hero h1 .cw { display: block; overflow: hidden; }
.hero h1 .cw > span { display: block; transform: translateY(102%); transition: transform 0.7s var(--ease); }
.hero.ready h1 .cw > span { transform: none; }
.hero__sub { margin-top: 26px; max-width: 46ch; color: var(--gris-clair); font-size: 1.08rem; }
.hero__values { display: flex; align-items: center; gap: 22px; margin-top: 30px; flex-wrap: wrap; }
.hero__values .v { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: 12.5px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--cream); }
.hero__values .v .spark { width: 11px; height: 11px; color: var(--rouge); }
.hero__cta { display: flex; gap: 14px; margin-top: 38px; flex-wrap: wrap; }
.hero__media { position: relative; overflow: hidden; }
.hero__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; }
.hero__media::before { content: ""; position: absolute; inset: 0; z-index: 2; background: linear-gradient(105deg, var(--noir) 0%, rgba(14,14,16,0.35) 22%, rgba(14,14,16,0) 55%); }
.hero__pole { position: absolute; top: 0; bottom: 0; left: 0; width: 8px; z-index: 3; }

/* barber pole stripe (kit motif) */
.pole { background-image: repeating-linear-gradient(45deg,
    var(--rouge) 0, var(--rouge) 8px,
    var(--cream) 8px, var(--cream) 16px,
    var(--anthracite) 16px, var(--anthracite) 24px);
  background-size: 100% 34px; }

/* ---------- generic split feature ---------- */
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.feature--rev .feature__media { order: 2; }
.feature__media { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3; }
.feature__media img { width: 100%; height: 100%; object-fit: cover; }
.feature__media .tag { position: absolute; left: 0; bottom: 0; background: var(--rouge); color: #fff; font-weight: 700; font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; padding: 9px 16px; }
.feature__body h2 { margin-bottom: 20px; }
.feature__body p + p { margin-top: 16px; }
.factline { display: flex; flex-wrap: wrap; gap: 12px 30px; margin-top: 26px; padding-top: 24px; border-top: 1px solid var(--line); }
.factline .f { display: flex; flex-direction: column; gap: 3px; }
.factline .f b { color: var(--cream); font-weight: 700; font-size: 14px; letter-spacing: 0.04em; }
.factline .f span { color: var(--muted); font-size: 12.5px; letter-spacing: 0.14em; text-transform: uppercase; }

/* ---------- services grid (kit icons) ---------- */
.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.svc {
  background: var(--anthracite); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 34px 28px; transition: border-color 0.3s var(--ease), transform 0.3s var(--ease), background 0.3s var(--ease);
}
.svc:hover { border-color: var(--rouge); transform: translateY(-4px); background: #202024; }
.svc__ic { width: 46px; height: 46px; color: var(--cream); margin-bottom: 20px; transition: color 0.3s var(--ease); }
.svc:hover .svc__ic { color: var(--rouge); }
.svc h3 { font-size: 1.15rem; text-transform: uppercase; letter-spacing: 0.02em; margin-bottom: 10px; }
.svc p { color: var(--muted); font-size: 0.96rem; line-height: 1.6; }
.svc__no { font-weight: 800; font-size: 13px; color: var(--rouge); letter-spacing: 0.1em; margin-bottom: 14px; }

/* services detailed rows */
.prest { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; padding: 46px 0; border-top: 1px solid var(--line); }
.prest:last-child { border-bottom: 1px solid var(--line); }
.prest--rev .prest__media { order: 2; }
.prest__media { border-radius: var(--radius); overflow: hidden; aspect-ratio: 3 / 2; }
.prest__media img { width: 100%; height: 100%; object-fit: cover; }
.prest__ic { width: 40px; height: 40px; color: var(--rouge); margin-bottom: 16px; }
.prest h3 { font-size: 1.5rem; text-transform: uppercase; margin-bottom: 14px; }
.prest ul { margin-top: 16px; display: flex; flex-direction: column; gap: 9px; }
.prest ul li { position: relative; padding-left: 22px; color: var(--gris-clair); font-size: 0.98rem; }
.prest ul li::before { content: ""; position: absolute; left: 0; top: 9px; width: 8px; height: 8px; background: var(--rouge); transform: rotate(45deg); }

/* ---------- CTA band ---------- */
.band { position: relative; overflow: hidden; }
.band__bg { position: absolute; inset: 0; z-index: 0; }
.band__bg img { width: 100%; height: 100%; object-fit: cover; }
.band__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(14,14,16,0.94) 0%, rgba(14,14,16,0.82) 50%, rgba(14,14,16,0.7) 100%); }
.band__inner { position: relative; z-index: 2; padding: 84px 0; text-align: center; }
.band__inner h2 { margin: 16px auto 12px; }
.band__inner .lead { margin: 0 auto 32px; }

/* ---------- reviews ---------- */
.rev-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.rev {
  background: var(--anthracite); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 32px 30px; display: flex; flex-direction: column;
}
.rev__q { width: 26px; height: 26px; color: var(--rouge); margin-bottom: 16px; }
.rev p { color: var(--gris-clair); font-size: 1rem; line-height: 1.65; font-style: italic; }
.rev .name { margin-top: 20px; font-weight: 700; color: var(--cream); font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; }

/* ---------- tarifs ---------- */
.pagehead { position: relative; overflow: hidden; padding: calc(var(--nav-h) + 70px) 0 70px; }
.pagehead__bg { position: absolute; inset: 0; z-index: 0; }
.pagehead__bg img { width: 100%; height: 100%; object-fit: cover; }
.pagehead__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(14,14,16,0.86), rgba(14,14,16,0.94)); }
.pagehead__in { position: relative; z-index: 2; text-align: center; }
.pagehead h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); text-transform: uppercase; }
.pagehead p { margin: 18px auto 0; max-width: 56ch; color: var(--gris-clair); }

.menu { display: grid; grid-template-columns: 1fr 1fr; gap: 46px 64px; }
.menu__cat h3 { font-size: 1.15rem; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 22px; display: flex; align-items: center; gap: 12px; }
.menu__cat h3 .spark { width: 13px; height: 13px; color: var(--rouge); flex: none; }
.price { display: flex; align-items: baseline; gap: 14px; padding: 14px 0; border-bottom: 1px dashed var(--line); }
.price:last-child { border-bottom: 0; }
.price .pn { color: var(--cream); font-weight: 600; }
.price .pn small { display: block; color: var(--muted); font-weight: 400; font-size: 12.5px; letter-spacing: 0.02em; text-transform: none; }
.price .dots { flex: 1; border-bottom: 1px dotted var(--line-strong); transform: translateY(-4px); }
.price .pv { color: var(--rouge); font-weight: 800; letter-spacing: 0.02em; white-space: nowrap; }
.price .pv .dh { font-size: 0.78em; margin-left: 3px; }
.note { margin-top: 40px; text-align: center; color: var(--muted); font-size: 13.5px; letter-spacing: 0.03em; }

/* ---------- contact ---------- */
.contact-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 46px; align-items: stretch; }
.info { display: flex; flex-direction: column; gap: 26px; }
.info__block { border-top: 1px solid var(--line); padding-top: 20px; }
.info__block .k { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 12px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.info__block .k .spark { width: 11px; height: 11px; color: var(--rouge); }
.info__block .v { color: var(--cream); font-size: 1.05rem; }
.info__block .v a:hover { color: var(--rouge); }
.hours { display: grid; grid-template-columns: 1fr auto; gap: 6px 20px; color: var(--gris-clair); font-size: 0.96rem; }
.hours .d { color: var(--muted); }
.map { border-radius: var(--radius); overflow: hidden; position: relative; min-height: 420px; border: 1px solid var(--line); }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---------- footer ---------- */
.footer { background: #0A0A0C; border-top: 1px solid var(--line); padding: 66px 0 30px; }
.footer__top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.footer__brand img { height: 74px; width: auto; margin-bottom: 18px; }
.footer__brand p { color: var(--muted); font-size: 0.95rem; max-width: 34ch; }
.footer h4 { color: var(--cream); font-size: 12px; letter-spacing: 0.24em; text-transform: uppercase; margin: 0 0 18px; font-weight: 700; }
.footer__col a, .footer__col p { color: var(--gris-clair); font-size: 0.96rem; padding: 5px 0; display: block; }
.footer__col a:hover { color: var(--rouge); }
.footer__bottom { display: flex; align-items: center; justify-content: space-between; gap: 16px;
  margin-top: 52px; padding-top: 24px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.footer__bottom .cred { font-size: 11.5px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.footer__bottom .cred a { color: var(--gris-clair); }
.footer__bottom .cred a:hover { color: var(--rouge); }
.footer__bottom .mini { font-size: 11.5px; letter-spacing: 0.14em; text-transform: uppercase; color: #5c5952; }

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.stagger > * { opacity: 0; transform: translateY(20px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
.stagger.in > * { opacity: 1; transform: none; }
.stagger.in > *:nth-child(2) { transition-delay: 0.08s; }
.stagger.in > *:nth-child(3) { transition-delay: 0.16s; }
.stagger.in > *:nth-child(4) { transition-delay: 0.24s; }
.stagger.in > *:nth-child(5) { transition-delay: 0.32s; }
.stagger.in > *:nth-child(6) { transition-delay: 0.4s; }

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .nav__links, .nav__end { display: none; }
  .burger { display: block; justify-self: end; }
  .nav { grid-template-columns: 1fr auto; }
  .hero__grid { grid-template-columns: 1fr; min-height: 0; }
  .hero__text { padding: 40px 0 8px; order: 2; }
  .hero__media { order: 1; aspect-ratio: auto; min-height: 0; height: min(68vw, 380px); width: 100%; }
  .hero__media::before { background: linear-gradient(180deg, rgba(14,14,16,0.5) 0%, rgba(14,14,16,0) 40%); }
  .feature, .prest, .contact-grid, .menu { grid-template-columns: 1fr; gap: 32px; }
  .feature--rev .feature__media, .prest--rev .prest__media { order: 0; }
  .svc-grid { grid-template-columns: repeat(2, 1fr); }
  .rev-grid { grid-template-columns: 1fr; }
  .footer__top { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 620px) {
  body { font-size: 16px; }
  .section { padding: 68px 0; }
  .wrap { padding: 0 18px; }
  .hero__text { padding-top: 32px; }
  .hero__cta { flex-direction: column; align-items: stretch; }
  .hero__cta .btn { justify-content: center; }
  .svc-grid { grid-template-columns: 1fr; }
  .band__inner { padding: 60px 0; }
  .footer__top { grid-template-columns: 1fr; }
  .footer__bottom { justify-content: center; text-align: center; }
  .nav__brand .wordmark span { display: none; }
}

@media (hover: none) {
  .svc:hover { transform: none; }
  .btn:hover .arw { transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto; }
  .reveal, .stagger > *, .hero h1 .cw > span { transition: none !important; opacity: 1 !important; transform: none !important; }
}
