/* =========================================================
   Maison Barber — Design System
   ========================================================= */
:root {
  --bg: #FFFFFF;
  --surface: #F5F5F5;
  --tint: #F7FAFC;
  --accent-blue: #DCEEFF;
  --accent-sage: #D8E8D8;
  --accent-teal: #D8F3F0;
  --navy: #4F6D7A;
  --navy-dark: #3B5560;
  --text: #22323B;
  --muted: #6B7C85;
  --line: #E7ECEF;
  --radius: 16px;
  --radius-lg: 20px;
  --shadow-sm: 0 2px 8px rgba(79,109,122,.06);
  --shadow: 0 8px 24px rgba(79,109,122,.08);
  --shadow-lg: 0 20px 48px rgba(79,109,122,.14);
  --font-body: "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --font-head: "Manrope", "Inter", system-ui, sans-serif;
  --ease: cubic-bezier(.22,.61,.36,1);
}

html[lang="ar"] {
  --font-body: "Cairo", "Tajawal", system-ui, sans-serif;
  --font-head: "Cairo", "Tajawal", system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }

h1, h2, h3 { font-family: var(--font-head); color: var(--text); line-height: 1.15; letter-spacing: -0.02em; font-weight: 700; }
h1 { font-size: clamp(2.4rem, 5.5vw, 4.2rem); }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
h3 { font-size: 1.15rem; font-weight: 600; }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: .78rem;
  color: var(--navy);
  font-weight: 600;
  margin-bottom: .9rem;
}

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding-inline: 24px; }
.section { padding: clamp(64px, 9vw, 120px) 0; }
.section--tint { background: var(--tint); }
.section__head { text-align: center; max-width: 640px; margin: 0 auto clamp(32px, 5vw, 56px); }

/* =========================================================
   Nav
   ========================================================= */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.85);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.nav.is-scrolled { border-bottom-color: var(--line); box-shadow: var(--shadow-sm); }
.nav__inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px; gap: 24px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-head); font-weight: 700; font-size: 1.05rem; letter-spacing: -.01em; }
.brand__mark { width: 28px; height: 28px; display: inline-grid; place-items: center; border-radius: 8px; background: var(--accent-teal); color: var(--navy); font-size: 1rem; }

.nav__links { display: flex; align-items: center; gap: 6px; }
.nav__links a {
  padding: 8px 14px; border-radius: 999px; font-size: .93rem; font-weight: 500; color: var(--text);
  transition: background .25s var(--ease), color .25s var(--ease);
}
.nav__links a:hover { background: var(--accent-teal); color: var(--navy-dark); }
.nav__links a.is-active { background: var(--accent-blue); color: var(--navy-dark); }

.nav__actions { display: flex; align-items: center; gap: 8px; }
.lang-toggle {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 14px; border-radius: 999px;
  border: 1px solid var(--line);
  font-size: .82rem; font-weight: 600; color: var(--navy-dark);
  transition: background .25s var(--ease), border-color .25s var(--ease);
}
.lang-toggle .sep { color: var(--muted); font-weight: 400; }
.lang-toggle [data-lang] { opacity: .5; transition: opacity .2s var(--ease); }
.lang-toggle [data-lang].is-active { opacity: 1; }
.lang-toggle:hover { background: var(--accent-teal); border-color: var(--accent-teal); }

.hamburger {
  display: none; width: 42px; height: 42px; border-radius: 12px;
  border: 1px solid var(--line);
  flex-direction: column; align-items: center; justify-content: center; gap: 4px;
}
.hamburger span { display: block; width: 18px; height: 2px; background: var(--text); border-radius: 2px; transition: transform .3s var(--ease), opacity .2s var(--ease); }
.hamburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.hamburger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* =========================================================
   Hero
   ========================================================= */
.hero { position: relative; min-height: calc(100vh - 72px); display: grid; place-items: center; overflow: hidden; }
.hero__bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  transform: scale(1.05);
  animation: heroZoom 18s ease-in-out infinite alternate;
}
@keyframes heroZoom { to { transform: scale(1.12); } }
.hero__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,.45) 0%, rgba(255,255,255,.75) 100%);
}
.hero__content { position: relative; text-align: center; max-width: 780px; padding-block: 40px; }
.hero__content .eyebrow { color: var(--navy-dark); }
.hero__sub { margin-top: 20px; font-size: clamp(1rem, 1.4vw, 1.15rem); color: var(--muted); max-width: 560px; margin-inline: auto; }
.hero__scroll {
  position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%);
  width: 26px; height: 42px; border: 1.5px solid var(--navy); border-radius: 20px;
  display: grid; place-items: start center; padding-top: 8px;
}
.hero__scroll span { width: 3px; height: 8px; background: var(--navy); border-radius: 3px; animation: scrollDot 1.6s ease-in-out infinite; }
@keyframes scrollDot { 0%,100% { transform: translateY(0); opacity: 1; } 50% { transform: translateY(10px); opacity: .3; } }

/* =========================================================
   About
   ========================================================= */
.about { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.about__media img { border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); aspect-ratio: 4/5; object-fit: cover; }
.about__body p { color: var(--muted); margin-top: 1rem; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 2rem; }
.stat {
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px 16px; text-align: center;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.stat:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.stat__num { display: block; font-family: var(--font-head); font-size: 1.6rem; font-weight: 700; color: var(--navy-dark); }
.stat__label { font-size: .82rem; color: var(--muted); }

/* =========================================================
   Carousel
   ========================================================= */
.carousel { position: relative; overflow: hidden; border-radius: var(--radius-lg); box-shadow: var(--shadow); background: var(--bg); }
.carousel__track { display: flex; transition: transform .7s var(--ease); }
.carousel__slide { flex: 0 0 100%; }
.carousel__slide img { width: 100%; height: clamp(280px, 55vw, 560px); object-fit: cover; }
.carousel__btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 46px; height: 46px; border-radius: 50%;
  background: rgba(255,255,255,.9); box-shadow: var(--shadow-sm);
  color: var(--navy-dark); font-size: 1.6rem; line-height: 1;
  display: grid; place-items: center;
  transition: background .2s var(--ease), transform .2s var(--ease);
}
.carousel__btn:hover { background: #fff; transform: translateY(-50%) scale(1.06); }
.carousel__btn--prev { left: 16px; }
.carousel__btn--next { right: 16px; }
.carousel__dots {
  position: absolute; bottom: 16px; left: 0; right: 0;
  display: flex; justify-content: center; gap: 8px;
}
.carousel__dots button {
  width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,.6);
  transition: width .3s var(--ease), background .2s var(--ease);
}
.carousel__dots button.is-active { background: #fff; width: 24px; border-radius: 4px; }

/* =========================================================
   Grids
   ========================================================= */
.grid { display: grid; gap: 24px; }
.grid--barbers      { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.grid--certs        { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.grid--services     { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.grid--testimonials { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }

/* Barber card */
.barber {
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 28px 20px; text-align: center;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.barber:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.barber__photo {
  width: 128px; height: 128px; border-radius: 50%;
  margin: 0 auto 18px; overflow: hidden;
  background: var(--accent-teal);
}
.barber__photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.barber:hover .barber__photo img { transform: scale(1.08); }
.barber__role { color: var(--navy); font-size: .82rem; text-transform: uppercase; letter-spacing: .12em; margin-top: 4px; }
.barber__bio { color: var(--muted); font-size: .9rem; margin-top: 10px; }
.barber__socials { display: flex; justify-content: center; gap: 8px; margin-top: 14px; }
.barber__socials a {
  width: 32px; height: 32px; border-radius: 50%; background: var(--surface);
  display: grid; place-items: center; font-size: .72rem; font-weight: 600; color: var(--navy-dark);
  transition: background .2s var(--ease), color .2s var(--ease);
}
.barber__socials a:hover { background: var(--accent-blue); }

/* Certificate card */
.cert {
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.cert:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.cert__img { aspect-ratio: 4/3; overflow: hidden; background: var(--accent-sage); }
.cert__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.cert:hover .cert__img img { transform: scale(1.05); }
.cert__body { padding: 18px 20px; }
.cert__org { color: var(--muted); font-size: .85rem; margin-top: 4px; }
.cert__year { color: var(--navy); font-size: .78rem; font-weight: 600; margin-top: 8px; letter-spacing: .1em; }

/* Service card */
.service {
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 28px 24px;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .3s var(--ease);
}
.service:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.service__icon {
  width: 52px; height: 52px; border-radius: 14px;
  background: var(--accent-teal); color: var(--navy-dark);
  display: grid; place-items: center; margin-bottom: 16px;
}
.service__icon svg { width: 26px; height: 26px; }
.service:nth-child(3n+2) .service__icon { background: var(--accent-blue); }
.service:nth-child(3n+3) .service__icon { background: var(--accent-sage); }
.service p { color: var(--muted); font-size: .92rem; margin-top: 6px; }

/* Testimonial card */
.testimonial {
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 28px;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.testimonial:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.testimonial__head { display: flex; align-items: center; gap: 14px; }
.testimonial__photo { width: 52px; height: 52px; border-radius: 50%; overflow: hidden; background: var(--accent-teal); flex-shrink: 0; }
.testimonial__photo img { width: 100%; height: 100%; object-fit: cover; }
.testimonial__name { font-weight: 600; }
.testimonial__stars { color: #EAB308; font-size: .9rem; letter-spacing: 2px; margin-top: 2px; }
.testimonial__text { color: var(--muted); margin-top: 14px; font-size: .95rem; }

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}
.contact-card {
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; display: flex; gap: 14px; align-items: flex-start;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.contact-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.contact-card__icon {
  width: 44px; height: 44px; border-radius: 12px; background: var(--accent-teal);
  color: var(--navy-dark); display: grid; place-items: center; flex-shrink: 0;
}
.contact-card__icon svg { width: 22px; height: 22px; }
.contact-card__label { color: var(--navy); font-size: .78rem; text-transform: uppercase; letter-spacing: .12em; }
.contact-card__value { color: var(--text); margin-top: 4px; font-weight: 500; }

/* Map */
.map-section { width: 100%; height: 460px; background: var(--surface); }
.map-section iframe { width: 100%; height: 100%; border: 0; display: block; }

/* Footer */
.footer { background: var(--tint); border-top: 1px solid var(--line); padding-top: 56px; }
.footer__inner {
  display: grid; grid-template-columns: 1.2fr 1.5fr 1fr; gap: 40px; align-items: start;
}
.footer__brand p { color: var(--muted); margin-top: 10px; font-size: .92rem; }
.footer__links { display: flex; flex-wrap: wrap; gap: 18px 22px; align-items: center; }
.footer__links a { color: var(--muted); font-size: .92rem; transition: color .2s var(--ease); }
.footer__links a:hover { color: var(--navy-dark); }
.footer__side { display: flex; flex-direction: column; align-items: flex-end; gap: 14px; }
.socials { display: flex; gap: 8px; }
.socials a {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--bg); border: 1px solid var(--line);
  display: grid; place-items: center; font-size: .72rem; font-weight: 600;
  color: var(--navy-dark); transition: background .2s var(--ease);
}
.socials a:hover { background: var(--accent-blue); }
.lang-toggle--sm { font-size: .78rem; padding: 6px 12px; }
.footer__base {
  margin-top: 40px; padding: 22px 24px; border-top: 1px solid var(--line);
  text-align: center; color: var(--muted); font-size: .85rem;
}

/* =========================================================
   Reveal on scroll
   ========================================================= */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }

/* =========================================================
   RTL adjustments
   ========================================================= */
html[dir="rtl"] .carousel__btn--prev { left: auto; right: 16px; }
html[dir="rtl"] .carousel__btn--next { right: auto; left: 16px; }
html[dir="rtl"] .footer__side { align-items: flex-start; }
html[dir="rtl"] .eyebrow { letter-spacing: 0; }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 960px) {
  .about { grid-template-columns: 1fr; }
  .about__media img { aspect-ratio: 16/10; }
  .footer__inner { grid-template-columns: 1fr; }
  .footer__side { align-items: flex-start; }
}
@media (max-width: 780px) {
  .hamburger { display: inline-flex; }
  .nav__links {
    position: fixed; inset: 72px 0 auto 0;
    background: rgba(255,255,255,.98); backdrop-filter: blur(14px);
    flex-direction: column; align-items: stretch; gap: 4px;
    padding: 16px 24px 28px; border-bottom: 1px solid var(--line);
    transform: translateY(-8px); opacity: 0; pointer-events: none;
    transition: transform .3s var(--ease), opacity .3s var(--ease);
  }
  .nav__links.is-open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .nav__links a { padding: 14px 16px; border-radius: 12px; }
  .stats { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .container { padding-inline: 18px; }
  .carousel__btn { width: 40px; height: 40px; }
}