/* Twins Barbershop, Agdal Rabat
   Kit palette. Marcellus for section titles (regular weight, never bold),
   Montserrat for nav, body and buttons. */

:root {
  --noir: #111111;
  --anthracite: #1F1F1F;
  --gris-fonce: #333333;
  --jaune: #FFC107;
  --or: #D4A017;
  --creme: #F5F5F5;
  --gris: #9A9A9A;

  --wrap: 1180px;
  --pad: 24px;
  --nav-h: 88px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--noir);
  color: var(--creme);
  font-family: 'Montserrat', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--pad);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--jaune);
  color: var(--noir);
  padding: 12px 20px;
  z-index: 300;
  font-weight: 700;
}
.skip-link:focus { left: 12px; top: 12px; }

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

h1, h2, h3 {
  font-family: 'Marcellus', Georgia, 'Times New Roman', serif;
  font-weight: 400;
  line-height: 1.18;
  letter-spacing: 0;
  text-transform: none;
  color: var(--creme);
}

h1 { font-size: clamp(2.1rem, 4.6vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.35rem); }
h3 { font-size: clamp(1.1rem, 1.6vw, 1.3rem); }

p { color: var(--gris); }
.lead { font-size: clamp(0.98rem, 1.4vw, 1.08rem); color: #C4C4C4; }

.label {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--jaune);
}

/* ---------- Kit motifs ---------- */

.hazard {
  height: 8px;
  width: 100%;
  background-image: repeating-linear-gradient(
    -45deg,
    var(--jaune) 0 10px,
    transparent 10px 20px
  );
}

.dots {
  background-image: radial-gradient(var(--or) 1px, transparent 1.1px);
  background-size: 14px 14px;
  opacity: 0.13;
}

.diamond {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin: 18px auto 0;
  max-width: 250px;
}
.diamond::before,
.diamond::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--gris-fonce);
}
.diamond span {
  width: 7px;
  height: 7px;
  background: var(--jaune);
  transform: rotate(45deg);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 13px 26px;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: background .25s ease, color .25s ease, border-color .25s ease;
}
.btn svg { width: 14px; height: 14px; flex: none; }

.btn-gold { background: var(--jaune); color: var(--noir); }
.btn-gold:hover { background: var(--or); }

.btn-ghost { border: 1px solid var(--gris-fonce); color: var(--creme); }
.btn-ghost:hover { border-color: var(--jaune); color: var(--jaune); }

.btn-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--jaune);
  padding-bottom: 4px;
  border-bottom: 1px solid rgba(255, 193, 7, .3);
  transition: border-color .25s ease, gap .25s ease;
}
.btn-link:hover { border-color: var(--jaune); gap: 14px; }

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

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  transition: background .3s ease, border-color .3s ease;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(17, 17, 17, .97);
  border-bottom-color: var(--gris-fonce);
}

.header-inner {
  height: var(--nav-h);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 20px;
}

/* crest + wordmark lockup, so the stacked logo never squashes in the bar */
.brand {
  position: relative;
  z-index: 120;
  justify-self: start;
  display: flex;
  align-items: center;
  gap: 11px;
}
.brand-crest { width: 40px; height: auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name {
  font-family: 'Marcellus', Georgia, serif;
  font-size: 1.32rem;
  color: var(--jaune);
  line-height: 1;
}
.brand-sub {
  font-size: 0.5rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gris);
  margin-top: 4px;
}

.nav-center {
  display: flex;
  align-items: center;
  gap: 32px;
  justify-self: center;
}
.nav-link {
  font-family: 'Marcellus', Georgia, 'Times New Roman', serif;
  font-size: 0.88rem;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--creme);
  padding: 6px 0;
  position: relative;
  transition: color .25s ease;
}
.nav-link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 1px;
  background: var(--jaune);
  transition: width .28s ease;
}
.nav-link:hover { color: var(--jaune); }
.nav-link:hover::after,
.nav-link.active::after { width: 100%; }
.nav-link.active { color: var(--jaune); }

.nav-end {
  position: relative;
  z-index: 120;
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  background: none;
  border: 1px solid var(--gris-fonce);
  border-radius: 999px;
  cursor: pointer;
  padding: 0;
  place-items: center;
}
.nav-toggle span {
  display: block;
  width: 17px;
  height: 2px;
  background: var(--creme);
  margin: 3px auto;
  transition: transform .3s ease, opacity .3s ease;
}
body.nav-open .nav-toggle span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
body.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
body.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100dvh;
  background: var(--noir);
  z-index: 90;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s ease;
}
body.nav-open .mobile-menu { opacity: 1; pointer-events: auto; }
.mobile-menu .nav-link { font-size: 0.95rem; }

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

.hero {
  position: relative;
  min-height: 88svh;
  display: grid;
  place-items: center;
  text-align: center;
  overflow: hidden;
  padding: calc(var(--nav-h) + 40px) var(--pad) 84px;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background: url('assets/interior.webp') center 40% / cover no-repeat;
  z-index: 0;
}
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(17,17,17,.88) 0%, rgba(17,17,17,.6) 45%, rgba(17,17,17,.95) 100%);
}
.hero-inner { position: relative; z-index: 2; max-width: 720px; }
.hero-crest { width: 62px; height: auto; margin: 0 auto 22px; }
.hero .lead { margin: 18px auto 0; max-width: 500px; }
.hero-cta {
  margin-top: 32px;
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}
.hero .hazard { position: absolute; bottom: 0; left: 0; z-index: 2; }

/* ---------- Facts strip ---------- */

.facts { background: var(--anthracite); border-bottom: 1px solid var(--gris-fonce); }
.facts-grid { display: grid; grid-template-columns: repeat(3, 1fr); text-align: center; }
.fact { padding: 30px 20px; border-right: 1px solid var(--gris-fonce); }
.fact:last-child { border-right: 0; }
.fact strong {
  display: block;
  font-family: 'Marcellus', Georgia, serif;
  font-weight: 400;
  font-size: 1.02rem;
  color: var(--creme);
  margin-bottom: 3px;
}
.fact span { font-size: 0.84rem; color: var(--gris); }

/* ---------- Sections ---------- */

.section { padding: clamp(62px, 7.5vw, 96px) 0; }
.section.alt { background: var(--anthracite); }

.sec-head { text-align: center; max-width: 600px; margin: 0 auto 48px; }
.sec-head .label { display: block; margin-bottom: 14px; }
.sec-head p { margin-top: 14px; }

/* ---------- Story ---------- */

.story {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}
.story-text .label { display: block; margin-bottom: 14px; }
.story-text h2 { margin-bottom: 18px; }
.story-text p + p { margin-top: 14px; }
.story-text .btn-link { margin-top: 26px; }

/* image is capped so it never becomes a giant tall block */
.story-media {
  position: relative;
  align-self: center;
  max-width: 400px;
  margin-left: auto;
}
.story-media img {
  width: 100%;
  height: 440px;
  object-fit: cover;
  position: relative;
  z-index: 2;
}
.story-media .dots {
  position: absolute;
  right: -18px;
  bottom: -18px;
  width: 58%;
  height: 58%;
  z-index: 1;
}

/* ---------- Service cards ---------- */

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.card {
  background: var(--noir);
  border: 1px solid var(--gris-fonce);
  overflow: hidden;
  transition: border-color .3s ease, transform .3s ease;
}
.section.alt .card { background: var(--anthracite); }
.card:hover { border-color: var(--or); transform: translateY(-3px); }

.card-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}
.card-body { padding: 26px 24px 28px; }
.card-ico {
  width: 34px;
  height: 34px;
  color: var(--jaune);
  margin-bottom: 14px;
}
.card-ico svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.card-body h3 { margin-bottom: 9px; }
.card-body p { font-size: 0.9rem; }

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

.rev-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.rev {
  background: var(--noir);
  border: 1px solid var(--gris-fonce);
  padding: 28px 26px;
  position: relative;
}
.section.alt .rev { background: var(--anthracite); }
.rev p { font-size: 0.9rem; color: #C4C4C4; }
.rev cite {
  display: block;
  margin-top: 16px;
  font-style: normal;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--jaune);
}

/* ---------- CTA band ---------- */

.cta-band {
  position: relative;
  text-align: center;
  padding: clamp(58px, 7vw, 88px) 0;
  background: var(--anthracite);
  border-top: 1px solid var(--gris-fonce);
  overflow: hidden;
}
.cta-band h2 { margin-bottom: 10px; }
.cta-band p { max-width: 440px; margin: 0 auto 26px; }
.cta-band .dots { position: absolute; inset: 0; }
.cta-band .wrap { position: relative; z-index: 2; }

/* ---------- Page banner ---------- */

.pagehead {
  position: relative;
  padding: calc(var(--nav-h) + 62px) 0 56px;
  background: var(--anthracite);
  border-bottom: 1px solid var(--gris-fonce);
  text-align: center;
  overflow: hidden;
}
.pagehead .dots { position: absolute; inset: 0; }
.pagehead .wrap { position: relative; z-index: 2; }
.pagehead .label { display: block; margin-bottom: 12px; }
.pagehead p { max-width: 540px; margin: 14px auto 0; }

/* ---------- Service detail rows ---------- */

.detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(30px, 5vw, 60px);
  align-items: center;
}
.detail + .detail { margin-top: clamp(48px, 6vw, 76px); }
.detail-media { max-width: 460px; }
.detail-media img { width: 100%; height: 340px; object-fit: cover; }
.detail.flip .detail-media { order: 2; margin-left: auto; }
.detail-text h2 { margin-bottom: 16px; }
.detail-text .label { display: block; margin-bottom: 12px; }

.mini-list { margin-top: 20px; list-style: none; }
.mini-list li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 9px;
  font-size: 0.9rem;
  color: var(--gris);
}
.mini-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 6px;
  height: 6px;
  background: var(--jaune);
  transform: rotate(45deg);
}

/* ---------- Contact ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(28px, 4vw, 52px);
  align-items: stretch;
}
.coord { display: flex; flex-direction: column; gap: 24px; }
.coord-item { border-left: 2px solid var(--jaune); padding-left: 18px; }
.coord-item h3 {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 7px;
  color: var(--jaune);
}
.coord-item p, .coord-item a { font-size: 0.95rem; color: #C4C4C4; }
.coord-item a:hover { color: var(--jaune); }

.hours-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-size: 0.89rem;
  color: #C4C4C4;
  padding: 4px 0;
  border-bottom: 1px solid rgba(51, 51, 51, .7);
}
.hours-row:last-child { border-bottom: 0; }

.map { position: relative; min-height: 360px; border: 1px solid var(--gris-fonce); }
.map iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  filter: grayscale(1) invert(0.92) contrast(0.85);
}

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

.site-footer { background: var(--noir); border-top: 1px solid var(--gris-fonce); }

.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  padding: 56px 24px 44px;
}
.footer-mark {
  font-family: 'Marcellus', Georgia, serif;
  font-size: 1.6rem;
  color: var(--creme);
  line-height: 1;
}
.footer-mark span {
  display: block;
  margin-top: 7px;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--or);
}
.footer-blurb { margin-top: 18px; font-size: 0.88rem; max-width: 320px; }
.footer-phone {
  display: inline-block;
  margin-top: 16px;
  font-size: 1rem;
  font-weight: 600;
  color: var(--jaune);
}

.footer-col h4 {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--creme);
  margin-bottom: 16px;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 9px; }
.footer-col a, .footer-col p { font-size: 0.88rem; color: var(--gris); }
.footer-col a:hover { color: var(--jaune); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  padding: 20px 24px 24px;
  border-top: 1px solid var(--gris-fonce);
  font-size: 0.74rem;
  color: var(--gris);
}
.credit {
  text-transform: uppercase;
  text-decoration: none;
  letter-spacing: 0.12em;
  font-weight: 600;
  color: var(--gris);
}
.credit:hover { color: var(--jaune); }

/* ---------- Reveal ---------- */

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

.stagger > * { opacity: 0; transform: translateY(16px); transition: opacity .55s ease, transform .55s ease; }
.stagger.in > * { opacity: 1; transform: none; }
.stagger.in > *:nth-child(2) { transition-delay: .08s; }
.stagger.in > *:nth-child(3) { transition-delay: .16s; }

/* safety: if JS never runs, nothing stays invisible */
.no-js .reveal, .no-js .stagger > * { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal, .stagger > * { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */

@media (max-width: 940px) {
  .nav-center { display: none; }
  .nav-toggle { display: grid; }
  .nav-end .btn { display: none; }

  .story, .detail, .contact-grid { grid-template-columns: 1fr; }
  .detail.flip .detail-media { order: 0; }
  .story-media, .detail-media { max-width: 440px; margin: 0 auto; }

  .cards, .rev-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 680px) {
  :root { --pad: 18px; }

  .facts-grid { grid-template-columns: 1fr; }
  .fact { border-right: 0; border-bottom: 1px solid var(--gris-fonce); padding: 20px 16px; }
  .fact:last-child { border-bottom: 0; }

  .cards, .rev-grid { grid-template-columns: 1fr; }
  .story-media img { height: 340px; }
  .detail-media img { height: 260px; }

  .footer-top { grid-template-columns: 1fr; gap: 30px; padding: 44px 18px 32px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .hero-cta .btn { width: 100%; justify-content: center; }
}
