/* ============================================
   ATEF — Salon for Men
   Design tokens
   ============================================ */
:root{
  --ink:        #141311;
  --ink-soft:   #2b2822;
  --paper:      #f4f1ea;
  --paper-dim:  #e8e2d4;
  --brass:      #a9834f;
  --brass-soft: #c9a877;
  --line:       #d8d0bd;
  --line-dark:  #3c382f;

  --f-display: "Cairo", sans-serif;
  --f-body:    "Tajawal", sans-serif;

  --container: 1180px;
  --ease: cubic-bezier(.16,.84,.32,1);
}

*{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
  margin:0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-body);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img{ max-width:100%; display:block; }
a{ color:inherit; text-decoration:none; }
h1,h2,h3{ font-family: var(--f-display); margin:0; }
p{ margin:0; }

/* film grain overlay */
.grain{
  position: fixed; inset:0; z-index: 999; pointer-events:none;
  opacity:.035; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='120' height='120'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

.eyebrow{
  font-family: var(--f-body);
  font-size: 13px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--brass);
  font-weight: 700;
  margin-bottom: 14px;
  display:block;
}

/* reveal on scroll */
[data-reveal]{
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}
[data-reveal].in{
  opacity: 1;
  transform: translateY(0);
}

/* ============ NAV ============ */
.nav{
  position: fixed; top:0; right:0; left:0; z-index: 200;
  display:flex; justify-content:center;
  padding: 22px 32px;
  transition: background .4s var(--ease), padding .4s var(--ease), backdrop-filter .4s var(--ease);
}
.nav.scrolled{
  background: rgba(20,19,17,.86);
  backdrop-filter: blur(10px);
  padding: 14px 32px;
}
.nav-inner{
  width:100%; max-width: var(--container);
  display:flex; align-items:center; justify-content:space-between;
  gap: 24px;
}
.nav-logo img{ height: 34px; width:auto; filter: invert(1) brightness(1) drop-shadow(0 0 0 transparent); }
.nav.scrolled .nav-logo img{ filter: invert(1); }
.nav:not(.scrolled) .nav-logo img{ filter: none; }
.nav-links{ display:flex; gap: 34px; }
.nav-links a{
  font-size: 14px; font-weight: 500;
  color: var(--ink);
  position: relative; padding-bottom: 4px;
}
.nav.scrolled .nav-links a{ color: var(--paper); }
.nav-links a::after{
  content:""; position:absolute; right:0; bottom:0; width:0; height:1px;
  background: var(--brass); transition: width .3s var(--ease);
}
.nav-links a:hover::after{ width:100%; }
.nav-cta{
  border:1px solid var(--ink); padding: 9px 20px; font-size: 13px; font-weight:600;
  border-radius: 999px; white-space:nowrap;
  transition: background .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease);
}
.nav.scrolled .nav-cta{ border-color: var(--paper); color: var(--paper); }
.nav-cta:hover{ background: var(--ink); color: var(--paper); }
.nav.scrolled .nav-cta:hover{ background: var(--paper); color: var(--ink); }

.nav-burger{
  display:none; flex-direction:column; gap:5px; background:none; border:none; cursor:pointer; padding: 6px;
}
.nav-burger span{ width: 24px; height: 2px; background: var(--ink); transition: background .3s; }
.nav.scrolled .nav-burger span{ background: var(--paper); }

.nav-mobile{
  display:none; position: fixed; inset:0; top:0; z-index:199;
  background: var(--ink); color: var(--paper);
  flex-direction:column; align-items:center; justify-content:center; gap: 28px;
  opacity:0; pointer-events:none; transition: opacity .4s var(--ease);
}
.nav-mobile.open{ opacity:1; pointer-events:auto; display:flex; }
.nav-mobile a{ font-size: 22px; font-family: var(--f-display); font-weight:700; }
.nav-mobile .nav-cta{ border-color: var(--paper); }

/* ============ HERO ============ */
.hero{
  position: relative;
  min-height: 100svh;
  display:flex; align-items:flex-end;
  background: var(--ink);
  overflow:hidden;
}
.hero-media{
  position:absolute; inset:0;
}
.hero-media img{
  width:100%; height:100%; object-fit:cover; object-position: center 20%;
  filter: grayscale(1) contrast(1.08) brightness(.62);
  transform: scale(1.08);
  animation: heroZoom 16s var(--ease) forwards;
}
@keyframes heroZoom{ to{ transform: scale(1); } }
.hero::after{
  content:"";
  position:absolute; inset:0;
  background: linear-gradient(180deg, rgba(20,19,17,.55) 0%, rgba(20,19,17,.35) 40%, rgba(20,19,17,.92) 100%);
}
/* the signature diagonal slash, echoing the logo mark */
.hero-slash{
  position:absolute; top:-10%; right:62%; width: 2px; height: 130%;
  background: var(--brass);
  transform: rotate(18deg);
  opacity:.55;
  z-index: 2;
}
.hero-content{
  position:relative; z-index:3;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px 90px;
  width:100%;
}
.hero h1{
  color: var(--paper);
  font-size: clamp(42px, 8vw, 96px);
  font-weight: 900;
  line-height: 1.02;
  margin-bottom: 26px;
}
.hero h1 .line{ display:block; }
.accent-diamond{
  display:inline-block; width:.35em; height:.35em;
  background: var(--brass);
  margin-inline-start: 14px;
  transform: rotate(45deg);
  vertical-align: middle;
}
.hero-sub{
  color: var(--paper-dim);
  font-size: clamp(16px, 2vw, 19px);
  max-width: 560px;
  line-height: 1.75;
  margin-bottom: 40px;
}
.hero-actions{ display:flex; gap: 18px; flex-wrap:wrap; }

.btn-primary{
  background: var(--brass); color: var(--ink);
  padding: 15px 34px; border-radius: 999px;
  font-weight: 700; font-size: 15px;
  transition: transform .3s var(--ease), background .3s var(--ease);
  display:inline-block;
}
.btn-primary:hover{ background: var(--brass-soft); transform: translateY(-2px); }
.btn-ghost{
  border: 1px solid rgba(244,241,234,.4); color: var(--paper);
  padding: 15px 34px; border-radius: 999px; font-weight:700; font-size:15px;
  transition: border-color .3s var(--ease), background .3s var(--ease);
  display:inline-block;
}
.btn-ghost:hover{ border-color: var(--paper); background: rgba(244,241,234,.08); }

.hero-scroll{
  position:absolute; bottom: 28px; left: 32px; z-index:3;
  display:flex; align-items:center; gap:12px;
  color: var(--paper-dim); font-size: 12px; letter-spacing:.1em;
}
.scroll-line{ width:1px; height: 38px; background: rgba(244,241,234,.4); position:relative; overflow:hidden; }
.scroll-line::after{
  content:""; position:absolute; top:-100%; right:0; width:100%; height:100%;
  background: var(--brass); animation: scrollDown 2.2s ease-in-out infinite;
}
@keyframes scrollDown{ to{ top: 100%; } }

/* ============ MARQUEE ============ */
.marquee{
  background: var(--brass); overflow:hidden; padding: 16px 0;
}
.marquee-track{
  display:flex; gap: 14px; white-space:nowrap;
  animation: marquee 28s linear infinite;
  width: max-content;
}
.marquee-track span{
  font-family: var(--f-display); font-weight: 800; font-size: 18px;
  color: var(--ink);
}
.marquee-track i{
  width:6px; height:6px; background: var(--ink); display:inline-block;
  transform: rotate(45deg); align-self:center;
}
@keyframes marquee{ from{ transform: translateX(0); } to{ transform: translateX(50%); } }

/* ============ ABOUT ============ */
.about{
  max-width: var(--container); margin: 0 auto;
  padding: 130px 32px;
  display:grid; grid-template-columns: .28fr .72fr; gap: 40px;
  align-items:start;
}
.about-num{
  font-family: var(--f-display); font-weight:900; font-size: clamp(60px,8vw,140px);
  color: transparent; -webkit-text-stroke: 1.5px var(--line-dark);
  line-height: .8;
}
.about h2{
  font-size: clamp(26px, 3.4vw, 44px); font-weight: 800; line-height: 1.35;
  margin-bottom: 26px;
}
.about-text{
  font-size: 17px; line-height: 1.9; color: var(--ink-soft); max-width: 640px;
}

/* ============ SERVICES ============ */
.services{ max-width: var(--container); margin: 0 auto; padding: 40px 32px 130px; }
.section-head{ margin-bottom: 56px; }
.section-head h2{
  font-size: clamp(28px, 4vw, 48px); font-weight: 800; max-width: 640px; line-height: 1.25;
}
.section-head.light h2{ color: var(--paper); }
.section-head.light .eyebrow{ color: var(--brass-soft); }

.services-grid{
  display:grid; grid-template-columns: repeat(4, 1fr); gap: 2px;
  background: var(--line);
  border: 1px solid var(--line);
}
.service-card{ background: var(--paper); position:relative; }
.service-media{ aspect-ratio: 3/4; overflow:hidden; }
.service-media img{
  width:100%; height:100%; object-fit:cover;
  filter: grayscale(1) contrast(1.05);
  transition: transform .7s var(--ease), filter .5s var(--ease);
}
.service-card:hover .service-media img{ transform: scale(1.06); filter: grayscale(0) contrast(1.05); }
.service-info{ padding: 26px 22px 30px; }
.service-mark{
  display:block; width: 10px; height: 10px; background: var(--brass);
  transform: rotate(45deg); margin-bottom: 16px;
}
.service-info h3{ font-size: 19px; font-weight: 800; margin-bottom: 10px; }
.service-info p{ font-size: 14.5px; line-height: 1.75; color: var(--ink-soft); }

/* ============ GALLERY ============ */
.gallery{ background: var(--ink); padding: 130px 32px; }
.gallery .section-head{ max-width: var(--container); margin: 0 auto 56px; }
.gallery-strip{
  max-width: var(--container); margin:0 auto;
  display:grid; grid-template-columns: repeat(5, 1fr); gap: 14px;
  align-items:end;
}
.gallery-item{ aspect-ratio: 3/4; overflow:hidden; }
.gallery-item.tall{ aspect-ratio: 3/5; align-self:start; }
.gallery-item img{
  width:100%; height:100%; object-fit:cover;
  filter: grayscale(1) contrast(1.1);
  transition: transform .8s var(--ease);
}
.gallery-item:hover img{ transform: scale(1.08); }

/* ============ BRANCHES ============ */
.branches{ max-width: var(--container); margin: 0 auto; padding: 130px 32px; }
.branch-list{ border-top: 1px solid var(--line); }
.branch-row{
  display:grid; grid-template-columns: 24px 1fr auto auto; align-items:center; gap: 24px;
  padding: 30px 4px; border-bottom: 1px solid var(--line);
  transition: padding-right .35s var(--ease), color .35s var(--ease);
}
.branch-row:hover{ padding-right: 18px; color: var(--brass); }
.branch-mark{
  width: 9px; height:9px; background: var(--ink); transform: rotate(45deg);
  transition: background .35s var(--ease);
}
.branch-row:hover .branch-mark{ background: var(--brass); }
.branch-name{ font-family: var(--f-display); font-weight: 800; font-size: clamp(19px,2.4vw,26px); }
.branch-phone{ font-family: var(--f-body); font-size:15px; color: var(--ink-soft); }
.branch-go{ font-size: 13px; font-weight:600; letter-spacing:.02em; white-space:nowrap; }

/* ============ CONTACT ============ */
.contact{
  background: var(--brass); padding: 130px 32px; text-align:center;
}
.contact-inner{ max-width: 720px; margin:0 auto; }
.contact h2{ font-size: clamp(30px,5vw,56px); font-weight:900; color: var(--ink); margin-bottom: 20px; }
.contact-text{ font-size: 17px; line-height:1.8; color: rgba(20,19,17,.75); margin-bottom: 38px; }
.contact-actions{ display:flex; gap: 16px; justify-content:center; flex-wrap:wrap; }
.contact .btn-primary{ background: var(--ink); color: var(--paper); }
.contact .btn-primary:hover{ background: var(--ink-soft); }
.contact .btn-ghost{ border-color: rgba(20,19,17,.4); color: var(--ink); }
.contact .btn-ghost:hover{ border-color: var(--ink); background: rgba(20,19,17,.06); }

/* ============ FOOTER ============ */
.footer{
  background: var(--ink); color: var(--paper-dim);
  padding: 70px 32px 34px; text-align:center;
}
.footer-logo{ height: 40px; width:auto; margin: 0 auto 10px; filter: invert(1); }
.footer-tag{ font-size: 11px; letter-spacing: .3em; color: var(--brass-soft); margin-bottom: 40px; }
.footer-links{ display:flex; gap: 28px; justify-content:center; margin-bottom: 40px; flex-wrap:wrap; }
.footer-links a{ font-size: 14px; transition: color .3s; }
.footer-links a:hover{ color: var(--brass-soft); }
.footer-copy{ font-size: 12.5px; color: rgba(244,241,234,.4); }

/* ============ RESPONSIVE ============ */
@media (max-width: 900px){
  .nav-links{ display:none; }
  .nav .nav-cta{ display:none; }
  .nav-burger{ display:flex; }
  .about{ grid-template-columns: 1fr; }
  .about-num{ font-size: 60px; }
  .services-grid{ grid-template-columns: repeat(2, 1fr); }
  .gallery-strip{ grid-template-columns: repeat(2, 1fr); }
  .gallery-item.tall{ align-self:auto; }
  .branch-row{ grid-template-columns: 20px 1fr; row-gap: 8px; }
  .branch-go{ grid-column: 2; font-size:12px; color: var(--brass); }
  .branch-phone{ grid-column: 2; }
}
@media (max-width: 560px){
  .services-grid{ grid-template-columns: 1fr; }
  .gallery-strip{ grid-template-columns: 1fr; }
  .hero-slash{ right: 30%; }
}

/* reduced motion */
@media (prefers-reduced-motion: reduce){
  *{ animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
  .hero-media img{ transform:none; }
}

/* focus visibility */
a:focus-visible, button:focus-visible{
  outline: 2px solid var(--brass); outline-offset: 3px;
}
