/* Hatim L'Homme Idéal — barbershop premium, Agdal Rabat.
   Layout repris du template barberz, réhabillé avec le kit Hatim (noir & or, art-déco, vraies photos).
   Cinzel (titres, esprit Trajan) + Montserrat (texte). Static hand-written CSS, partagé. */

:root {
  --noir: #0B0B0B;
  --noir-2: #101010;
  --anthracite: #161616;
  --anthracite-2: #1E1E1E;
  --or: #D4B645;
  --or-clair: #E4CF86;
  --or-fonce: #9C7C2E;
  --bordeaux: #7A0F14;
  --argent: #B4B0A6;
  --blanc: #F4F1E9;
  --hair: rgba(212, 182, 69, 0.22);
  --serif: "Cinzel", "Times New Roman", serif;
  --sans: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 1220px;
  --ease: cubic-bezier(.2,.7,.2,1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { background: var(--noir); color: var(--blanc); font-family: var(--sans); font-weight: 300; line-height: 1.75; overflow-x: hidden; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 26px; }
.skip-link { position: absolute; left: -999px; top: 0; z-index: 300; background: var(--or); color: #17130a; padding: 10px 16px; font-weight: 600; }
.skip-link:focus { left: 12px; top: 12px; }

/* Helpers */
.eyebrow { font-size: 11px; font-weight: 600; letter-spacing: .36em; text-transform: uppercase; color: var(--or); }
.eyebrow-line { display: inline-flex; align-items: center; gap: 16px; font-size: 11.5px; font-weight: 600; letter-spacing: .3em; text-transform: uppercase; color: var(--or); margin-bottom: 22px; }
.eyebrow-line .line { width: 44px; height: 1px; background: var(--or); display: inline-block; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.12; letter-spacing: .02em; color: var(--blanc); }

/* Ornament: gold hairline + central diamond */
.ornament { display: block; width: 300px; max-width: 72%; height: 34px; margin: 0 auto; position: relative; }
.ornament .bar { position: absolute; left: 0; width: 100%; height: 10px; }
.ornament .bar::before { content: ""; position: absolute; top: 50%; left: 0; width: 100%; height: 1px; transform: translateY(-50%); background: linear-gradient(90deg, transparent, var(--or) 26%, var(--or) 74%, transparent); }
.ornament .bar::after { content: ""; position: absolute; top: 50%; left: 50%; width: 8px; height: 8px; background: var(--or); transform: translate(-50%, -50%) rotate(45deg); }
.ornament .bar.top { top: 0; } .ornament .bar.bot { bottom: 0; }
.ornament.single { height: 12px; } .ornament.single .bar.bot { display: none; } .ornament.single .bar.top { top: 50%; transform: translateY(-50%); }

/* Buttons (gold mat, refined) */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-family: var(--sans); font-size: 12px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; padding: 16px 34px; cursor: pointer; border: 1px solid var(--or); transition: transform .35s var(--ease), background .35s, color .35s, box-shadow .35s; white-space: nowrap; }
.btn-gold { background: var(--or); color: #17130a; }
.btn-gold:hover { background: var(--or-clair); transform: translateY(-2px); box-shadow: 0 14px 30px rgba(212,182,69,.22); }
.btn-outline { background: transparent; color: var(--or); }
.btn-outline:hover { background: rgba(212,182,69,.08); transform: translateY(-2px); }
.btn-underline { display: inline-block; font-size: 12px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--blanc); padding-bottom: 9px; position: relative; border: 0; }
.btn-underline::after { content: ""; position: absolute; left: 0; bottom: 0; height: 1px; width: 72px; background: var(--or); transition: width .4s ease; }
.btn-underline:hover { color: var(--or); }
.btn-underline:hover::after { width: 100%; }

/* ============ HEADER / NAV ============ */
.site-header { position: fixed; top: 0; left: 0; width: 100%; z-index: 200; transition: background .4s ease, box-shadow .4s ease, border-color .4s; background: linear-gradient(180deg, rgba(8,8,8,.82), rgba(8,8,8,0)); border-bottom: 1px solid transparent; }
.site-header.scrolled { background: rgba(8,8,8,.95); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--hair); box-shadow: 0 10px 30px rgba(0,0,0,.55); }
.header-inner { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; height: 90px; }
.nav-group { display: flex; align-items: center; gap: 36px; }
.nav-left { justify-self: start; } .nav-right { justify-self: end; }
.nav-center { justify-self: center; display: flex; align-items: center; gap: 42px; }
.nav-link { position: relative; font-size: 11.5px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--blanc); padding: 6px 0; transition: color .3s; }
.nav-link::after { content: ""; position: absolute; left: 0; bottom: 0; height: 1px; width: 0; background: var(--or); transition: width .35s ease; }
.nav-link:hover, .nav-link.active { color: var(--or); }
.nav-link:hover::after, .nav-link.active::after { width: 100%; }
.nav-cta { padding: 11px 24px; justify-self: end; }
.brand { justify-self: start; display: flex; align-items: center; gap: 12px; }
.brand-crest { height: 50px; width: auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1; align-items: flex-start; }
.brand-name { font-family: var(--serif); font-weight: 700; font-size: 20px; letter-spacing: .22em; color: var(--or); }
.brand-tag { font-size: 8.5px; letter-spacing: .34em; text-transform: uppercase; color: var(--argent); margin-top: 4px; }
.nav-toggle { display: none; width: 46px; height: 46px; background: transparent; border: 0; cursor: pointer; flex-direction: column; justify-content: center; align-items: flex-end; gap: 6px; justify-self: end; }
.nav-toggle span { display: block; width: 27px; height: 2px; background: var(--or); transition: transform .3s, opacity .3s, width .3s; }
.nav-toggle span:nth-child(2) { width: 20px; }
.mobile-menu { display: none; }

/* ============ HERO (home) ============ */
.hero { position: relative; min-height: 100svh; display: flex; align-items: center; overflow: hidden; padding: 120px 0 100px; }
.hero-bg { position: absolute; inset: 0; z-index: 0; background: url(assets/interior.webp) center/cover no-repeat; animation: kenburns 24s ease-in-out infinite alternate; }
.hero-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(7,7,7,.94) 0%, rgba(7,7,7,.75) 42%, rgba(7,7,7,.42) 100%), linear-gradient(0deg, rgba(7,7,7,.85), rgba(0,0,0,0) 42%); }
@keyframes kenburns { from { transform: scale(1.03); } to { transform: scale(1.13) translateY(-1.5%); } }
.deco-corner { position: absolute; width: 66px; height: 66px; border: 1px solid var(--or); opacity: .5; z-index: 3; }
.deco-corner.tl { top: 108px; left: 30px; border-right: 0; border-bottom: 0; }
.deco-corner.br { bottom: 40px; right: 30px; border-left: 0; border-top: 0; }
.hero-inner { position: relative; z-index: 2; max-width: 660px; }
.hero-crest { height: 92px; width: auto; margin-bottom: 26px; }
.hero h1 { font-family: var(--serif); font-weight: 700; font-size: clamp(40px, 6.6vw, 76px); letter-spacing: .03em; margin-bottom: 22px; color: var(--blanc); }
.hero h1 .gold { color: var(--or); }
.hero-sub { font-family: var(--serif); font-style: italic; font-size: clamp(16px, 2.2vw, 22px); color: var(--or-clair); margin-bottom: 22px; }
.hero-lead { font-size: clamp(14px, 1.5vw, 16px); color: #D8D4CA; font-weight: 300; max-width: 500px; margin-bottom: 40px; }
.hero-cta { display: flex; align-items: center; gap: 30px; flex-wrap: wrap; }
.hero-scroll { position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%); z-index: 3; width: 24px; height: 40px; border: 1px solid var(--hair); border-radius: 14px; display: flex; justify-content: center; }
.hero-scroll span { width: 3px; height: 8px; background: var(--or); border-radius: 3px; margin-top: 7px; animation: scrolldot 1.8s infinite; }
@keyframes scrolldot { 0% { opacity: 0; transform: translateY(-4px); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(10px); } }

/* ============ PAGE BANNER (inner pages) ============ */
.page-banner { position: relative; padding: 172px 0 74px; text-align: center; overflow: hidden; }
.page-banner .pb-bg { position: absolute; inset: 0; z-index: 0; background-size: cover; background-position: center; }
.page-banner::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(8,8,8,.82), rgba(8,8,8,.9)); }
.page-banner .wrap { position: relative; z-index: 2; }
.page-banner h1 { font-size: clamp(36px, 6vw, 62px); }
.breadcrumb { display: inline-flex; gap: 12px; align-items: center; margin-top: 20px; padding-bottom: 12px; border-bottom: 1px solid var(--or); font-size: 11.5px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--argent); }
.breadcrumb a { color: var(--argent); transition: color .3s; }
.breadcrumb a:hover { color: var(--or); }
.breadcrumb .sep, .breadcrumb .cur { color: var(--or); }

/* ============ SECTIONS ============ */
.section { padding: 108px 0; }
.section.alt { background: var(--noir-2); }
.sec-head { text-align: center; padding: 0 26px; margin-bottom: 58px; }
.sec-head .eyebrow { display: block; margin-bottom: 16px; }
.sec-head h2 { font-size: clamp(28px, 4.6vw, 44px); }
.sec-head .ornament { margin-top: 20px; }
.sec-title-orn { text-align: center; margin-bottom: 56px; }
.sec-title-orn h2 { font-size: clamp(30px, 5vw, 48px); margin: 20px 0; }

/* ============ MISSION (framed photo + text) ============ */
.mission-inner { display: grid; grid-template-columns: .95fr 1.05fr; align-items: center; gap: 66px; }
.mission-visual { position: relative; aspect-ratio: 4 / 5; overflow: hidden; }
.mission-visual img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease); }
.mission-visual:hover img { transform: scale(1.06); }
.mission-visual .frame-offset { position: absolute; inset: -18px -18px auto auto; width: 60%; height: 58%; border: 1px solid var(--or); border-left: 0; border-bottom: 0; opacity: .6; z-index: 2; pointer-events: none; }
.mission-visual .frame-inner { position: absolute; inset: 14px; border: 1px solid rgba(244,241,233,.18); z-index: 2; pointer-events: none; }
.mission-text h2 { font-size: clamp(28px, 4.4vw, 44px); margin-bottom: 26px; }
.mission-text > p { font-size: clamp(14px, 1.55vw, 16px); color: var(--argent); font-weight: 300; margin-bottom: 22px; }
.mission-text .btn, .mission-text .btn-underline { margin-top: 14px; }

/* ============ SERVICE IMAGE CARDS (barberz gallery) ============ */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.scard { position: relative; aspect-ratio: 4 / 5; overflow: hidden; border: 1px solid rgba(212,182,69,.16); }
.scard-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); z-index: 0; }
.scard::after { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(8,8,8,.15) 0%, rgba(8,8,8,.35) 45%, rgba(8,8,8,.92) 100%); transition: background .4s; }
.scard:hover .scard-img { transform: scale(1.09); }
.scard:hover::after { background: linear-gradient(180deg, rgba(8,8,8,.15) 0%, rgba(8,8,8,.4) 45%, rgba(8,8,8,.94) 100%); }
.scard-brackets::before, .scard-brackets::after { content: ""; position: absolute; width: 22px; height: 22px; border: 2px solid var(--or); opacity: .8; z-index: 3; transition: width .4s, height .4s; }
.scard-brackets::before { top: 14px; left: 14px; border-right: 0; border-bottom: 0; }
.scard-brackets::after { bottom: 14px; right: 14px; border-left: 0; border-top: 0; }
.scard:hover .scard-brackets::before, .scard:hover .scard-brackets::after { width: 28px; height: 28px; }
.scard-body { position: absolute; left: 0; bottom: 0; z-index: 3; padding: 30px 28px; width: 100%; }
.scard-body .ico { width: 32px; height: 32px; margin-bottom: 14px; }
.scard-body h3 { font-size: 19px; color: var(--blanc); margin-bottom: 8px; letter-spacing: .04em; }
.scard-body h3 span { color: var(--or); }
.scard-body p { font-size: 13px; color: #D6D2C8; line-height: 1.65; opacity: 0; max-height: 0; transform: translateY(8px); transition: opacity .45s, max-height .45s, transform .45s; overflow: hidden; }
.scard:hover .scard-body p { opacity: 1; max-height: 90px; transform: none; }
.ico { fill: none; stroke: var(--or); stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; }

/* ============ VALUES ROW ============ */
.values-row { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.value { display: flex; flex-direction: column; align-items: center; gap: 14px; flex: 1 1 130px; text-align: center; }
.value .ico { width: 34px; height: 34px; }
.value span { font-size: 11px; font-weight: 600; letter-spacing: .26em; text-transform: uppercase; color: var(--argent); }

/* ============ KEYWORDS ============ */
.keywords { list-style: none; display: flex; flex-wrap: wrap; gap: 10px 26px; }
.keywords li { font-family: var(--serif); font-size: 13px; letter-spacing: .16em; text-transform: uppercase; color: var(--or); position: relative; }
.keywords li + li::before { content: "\25C6"; position: absolute; left: -16px; top: 2px; font-size: 6px; color: var(--or-fonce); }

/* ============ CONTACT ============ */
.contact-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: 56px; align-items: start; }
.contact-lead h2 { font-size: clamp(26px, 4vw, 40px); margin-bottom: 20px; }
.contact-lead > p { color: var(--argent); margin-bottom: 30px; max-width: 420px; }
.ci-list { display: grid; gap: 24px; margin-bottom: 34px; }
.ci-item { display: flex; gap: 18px; align-items: flex-start; }
.ci-item .ci-ico { flex: 0 0 46px; height: 46px; border: 1px solid var(--hair); display: grid; place-items: center; }
.ci-item .ci-ico svg { width: 22px; height: 22px; }
.ci-item h3 { font-family: var(--serif); font-size: 13px; letter-spacing: .18em; text-transform: uppercase; color: var(--or); margin-bottom: 6px; }
.ci-item p { font-size: 15px; color: var(--blanc); font-weight: 300; }
.ci-item p a { color: var(--blanc); transition: color .3s; }
.ci-item p a:hover { color: var(--or); }
.contact-map { position: relative; min-height: 460px; height: 100%; }
.map-frame { position: absolute; inset: -1px; border: 1px solid var(--hair); pointer-events: none; z-index: 2; }
.map-frame::before, .map-frame::after { content: ""; position: absolute; width: 26px; height: 26px; border: 2px solid var(--or); z-index: 3; }
.map-frame::before { top: -1px; left: -1px; border-right: 0; border-bottom: 0; }
.map-frame::after { bottom: -1px; right: -1px; border-left: 0; border-top: 0; }
.contact-map iframe { display: block; height: 100%; min-height: 460px; filter: grayscale(.4) contrast(1.05) brightness(.92); }

/* ============ CTA BAND (photo parallax) ============ */
.cta-band { position: relative; text-align: center; padding: 100px 0; overflow: hidden; }
.cta-band .cta-bg { position: absolute; inset: 0; z-index: 0; background: url(assets/interior.webp) center/cover fixed; }
.cta-band::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(8,8,8,.9), rgba(8,8,8,.82)); }
.cta-band .wrap { position: relative; z-index: 2; }
.cta-band .eyebrow { display: block; margin-bottom: 16px; }
.cta-band h2 { font-size: clamp(26px, 4.4vw, 42px); margin-bottom: 30px; }

/* ============ FOOTER ============ */
.site-footer { background: #070707; border-top: 1px solid var(--hair); }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1.3fr; gap: 48px; padding: 72px 0 50px; }
.footer-brand-crest { height: 56px; width: auto; margin-bottom: 18px; }
.footer-brand-name { font-family: var(--serif); font-weight: 700; letter-spacing: .2em; color: var(--or); font-size: 18px; display: block; margin-bottom: 14px; }
.footer-blurb { font-size: 13.5px; color: var(--argent); font-weight: 300; max-width: 320px; margin-bottom: 20px; }
.footer-phone { font-family: var(--serif); font-size: 21px; color: var(--or); letter-spacing: .04em; }
.footer-col h4 { font-family: var(--serif); font-size: 15px; letter-spacing: .12em; text-transform: uppercase; color: var(--blanc); margin-bottom: 22px; padding-bottom: 14px; border-bottom: 1px solid var(--hair); }
.footer-col ul { list-style: none; display: grid; gap: 13px; }
.footer-col ul a { font-size: 13.5px; color: var(--argent); transition: color .3s; }
.footer-col ul a:hover { color: var(--or); }
.hours-row { display: flex; justify-content: space-between; align-items: center; font-size: 13px; padding: 9px 0; border-bottom: 1px dotted rgba(212,182,69,.2); }
.hours-row:last-child { border-bottom: 0; }
.hours-row .d { color: var(--blanc); letter-spacing: .1em; text-transform: uppercase; font-size: 12px; }
.hours-row .t { color: var(--argent); font-variant-numeric: tabular-nums; }
.footer-bottom { border-top: 1px solid var(--hair); padding: 22px 0; display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.footer-bottom span { font-size: 11.5px; color: #6a6a6a; letter-spacing: .04em; }
.credit { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--or-fonce); transition: color .3s; }
.credit:hover { color: var(--or); }

/* ============ REVEAL ANIMATIONS ============ */
.reveal { opacity: 0; transform: translateY(34px); transition: opacity .9s ease, transform .9s var(--ease); }
.reveal.left { transform: translateX(-40px); }
.reveal.right { transform: translateX(40px); }
.reveal.in { opacity: 1; transform: none; }
.stagger > * { opacity: 0; transform: translateY(30px); transition: opacity .8s ease, transform .8s var(--ease); }
.stagger.in > * { opacity: 1; transform: none; }
.stagger.in > *:nth-child(2) { transition-delay: .1s; }
.stagger.in > *:nth-child(3) { transition-delay: .2s; }
.stagger.in > *:nth-child(4) { transition-delay: .3s; }
.stagger.in > *:nth-child(5) { transition-delay: .4s; }
.stagger.in > *:nth-child(6) { transition-delay: .5s; }

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

/* ============ RESPONSIVE ============ */
@media (max-width: 980px) {
  .reveal.left, .reveal.right { transform: translateY(32px); }
  .mission-inner { grid-template-columns: 1fr; gap: 40px; }
  .mission-visual { aspect-ratio: 16 / 10; max-width: 560px; margin: 0 auto; width: 100%; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 40px; }
  .cta-band .cta-bg { background-attachment: scroll; }
}
@media (max-width: 760px) {
  .nav-left, .nav-right, .nav-center, .nav-cta { display: none; }
  .header-inner { grid-template-columns: 1fr auto; height: 76px; }
  .brand { justify-self: start; }
  .nav-toggle { display: flex; }
  .mobile-menu { display: flex; flex-direction: column; align-items: center; gap: 22px; position: fixed; top: 76px; left: 0; width: 100%; background: rgba(8,8,8,.98); backdrop-filter: blur(8px); border-bottom: 1px solid var(--hair); padding: 30px 24px 34px; transform: translateY(-135%); transition: transform .42s var(--ease); z-index: 190; }
  body.nav-open .mobile-menu { transform: translateY(0); }
  body.nav-open { overflow: hidden; }
  .mobile-menu .nav-link { font-size: 15px; }
  body.nav-open .nav-toggle span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  body.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
  body.nav-open .nav-toggle span:nth-child(3) { width: 27px; transform: translateY(-8px) rotate(-45deg); }
  .deco-corner { width: 44px; height: 44px; } .deco-corner.tl { top: 92px; }
  .section { padding: 78px 0; }
  .page-banner { padding: 130px 0 58px; }
  .sec-head, .sec-title-orn { margin-bottom: 44px; }
  .footer-top { grid-template-columns: 1fr; gap: 34px; }
  /* photo cards: reveal text by default on touch */
  .scard-body p { opacity: 1; max-height: 90px; transform: none; }
}
@media (max-width: 520px) {
  .cards { grid-template-columns: 1fr; }
  .scard { aspect-ratio: 16 / 11; }
  .hero-cta { flex-direction: column; align-items: stretch; gap: 18px; max-width: 320px; }
  .hero-cta .btn { width: 100%; }
  .btn-underline { text-align: center; } .btn-underline::after { left: 50%; transform: translateX(-50%); }
  .value { flex-basis: 42%; }
  .footer-bottom { flex-direction: column; text-align: center; }
}
