:root {
  --ink: #1d1a17;
  --muted: #6e655c;
  --paper: #fbf6ed;
  --paper-2: #f1e8db;
  --white: #fffdf9;
  --line: rgba(29, 26, 23, .11);
  --gold: #bc8b46;
  --gold-dark: #825b27;
  --shadow: 0 26px 70px rgba(29, 26, 23, .10);
  --ease: .22s cubic-bezier(.2, .7, .2, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: Manrope, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background-color: var(--paper);
  background-image:
    url('../icons/pattern-scissors.svg'),
    url('../icons/pattern-barber-pole.svg'),
    url('../icons/pattern-barber-chair.svg'),
    linear-gradient(180deg, #fbf6ed 0%, #f6efe5 52%, #fbf6ed 100%);
  background-size: 180px 180px, 220px 220px, 260px 260px, auto;
  background-position: 12px 18px, 96px 62px, 34px 124px, center;
  color: var(--ink);
  line-height: 1.6;
  overflow-x: hidden;
}
body::before {
  content: "";
  position: absolute;
  inset: 0;
  min-height: 100%;
  pointer-events: none;
  background: rgba(251, 246, 237, .18);
  z-index: -1;
}
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; }
button { border: 0; background: none; cursor: pointer; }
.container { width: min(1160px, calc(100% - 40px)); margin: 0 auto; }
.section { padding: 82px 0; }

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 246, 237, .90);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(29,26,23,.08);
}
.nav__inner { min-height: 74px; display: flex; align-items: center; gap: 18px; }
.brand { display: inline-flex; align-items: center; gap: 12px; min-width: 0; }
.brand__logo { width: 54px; height: 54px; border-radius: 50%; object-fit: cover; background: var(--white); border: 1px solid var(--line); flex: 0 0 auto; }
.brand__text { font-family: "Instrument Serif", Georgia, serif; font-size: 30px; line-height: .96; letter-spacing: -.04em; white-space: nowrap; }
.nav__links { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.nav__links a { padding: 9px 11px; border-radius: 999px; color: var(--muted); font-size: 13px; font-weight: 800; transition: background var(--ease), color var(--ease); }
.nav__links a:hover { background: rgba(29,26,23,.06); color: var(--ink); }
.lang-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(188,139,70,.30);
  background: rgba(188,139,70,.12);
  color: var(--gold-dark);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: background var(--ease), color var(--ease), transform var(--ease);
}
.lang-toggle:hover { background: rgba(188,139,70,.20); color: var(--ink); transform: translateY(-1px); }
.menu-toggle { display: none; width: 50px; height: 50px; border-radius: 50%; background: var(--ink); color: var(--paper); place-items: center; flex: 0 0 auto; }
.menu-toggle span,
.menu-toggle span::before,
.menu-toggle span::after { content: ""; display: block; width: 22px; height: 2px; background: currentColor; border-radius: 10px; transition: transform var(--ease), opacity var(--ease); }
.menu-toggle span::before { transform: translateY(-7px); }
.menu-toggle span::after { transform: translateY(5px); }
.menu-toggle.is-open span { background: transparent; }
.menu-toggle.is-open span::before { transform: translateY(2px) rotate(45deg); background: var(--paper); }
.menu-toggle.is-open span::after { transform: translateY(0) rotate(-45deg); background: var(--paper); }

.hero { padding: 46px 0 58px; }
.hero__grid { display: grid; grid-template-columns: .95fr 1.05fr; gap: 44px; align-items: center; }
.hero h1 { font-size: clamp(58px, 7.5vw, 104px); line-height: 1.02; letter-spacing: -.06em; margin-bottom: 24px; }
.hero p { max-width: 570px; color: var(--muted); font-size: 17px; line-height: 1.65; margin-bottom: 28px; }
.hero__actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.btn { display: inline-flex; justify-content: center; align-items: center; min-height: 48px; padding: 13px 20px; border-radius: 999px; font-size: 14px; font-weight: 900; border: 1px solid transparent; transition: transform var(--ease), background var(--ease), box-shadow var(--ease); }
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--ink); color: var(--paper); box-shadow: 0 16px 32px rgba(29, 26, 23, .15); }
.btn--ghost { background: rgba(255,253,249,.86); color: var(--ink); border-color: var(--line); box-shadow: 0 10px 24px rgba(29, 26, 23, .06); }
.hero__visual { border-radius: 28px; overflow: hidden; background: rgba(255,253,249,.72); box-shadow: var(--shadow); border: 1px solid var(--line); }
.hero__visual img { width: 100%; height: auto; object-fit: contain; }

.section-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 34px; }
.section-head h2 { font-size: clamp(42px, 5vw, 72px); line-height: .98; letter-spacing: -.055em; max-width: 690px; }
.section-kicker { display: inline-flex; align-items: center; min-height: 34px; padding: 8px 13px; border-radius: 999px; border: 1px solid rgba(188,139,70,.30); background: rgba(188,139,70,.10); color: var(--gold-dark); font-size: 11px; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; white-space: nowrap; }

.services__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.service-card { min-height: 250px; padding: 24px; border-radius: 26px; background: rgba(255,253,249,.76); border: 1px solid var(--line); box-shadow: 0 18px 44px rgba(29,26,23,.06); }
.service-icon { width: 58px; height: 58px; display: grid; place-items: center; border-radius: 18px; background: var(--paper-2); border: 1px solid var(--line); margin-bottom: 28px; }
.service-icon img { width: 31px; height: 31px; object-fit: contain; }
.service-card h3 { font-family: "Instrument Serif", Georgia, serif; font-size: 29px; font-weight: 400; line-height: 1; margin-bottom: 12px; }
.service-card p { font-size: 14px; color: var(--muted); }

.prices__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.price-card { position: relative; overflow: hidden; border-radius: 28px; background: rgba(255,253,249,.78); border: 1px solid var(--line); padding: 28px; min-height: 220px; box-shadow: 0 18px 44px rgba(29,26,23,.06); }
.price-card::after { content: ""; position: absolute; width: 136px; height: 136px; right: -38px; top: -38px; border-radius: 50%; background: rgba(188,139,70,.09); }
.price-card--featured { background: var(--ink); color: var(--paper); }
.price-card--featured::after { background: rgba(188,139,70,.20); }
.price-card__label { display: block; position: relative; z-index: 1; font-size: 12px; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 24px; }
.price-card--featured .price-card__label { color: rgba(251,246,237,.75); }
.price-card__amount { position: relative; z-index: 1; font-family: "Instrument Serif", Georgia, serif; font-size: 70px; line-height: .85; letter-spacing: -.05em; }
.price-card__amount span { display: block; font-family: Manrope, system-ui, sans-serif; font-size: 12px; font-weight: 900; letter-spacing: .12em; color: var(--gold-dark); margin-bottom: 10px; }
.price-card--featured .price-card__amount span { color: #d8b178; }

.parking__grid,
.booking__grid,
.rewards__grid,
.location__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; align-items: center; }
.parking__visual,
.booking-panel,
.reward-card,
.map-card { border-radius: 30px; overflow: hidden; background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow); }
.parking__visual img { width: 100%; height: auto; object-fit: contain; }
.parking__copy h2,
.booking__copy h2,
.reward-copy h2,
.location__copy h2 { font-size: clamp(42px, 5vw, 72px); line-height: .98; letter-spacing: -.055em; margin: 14px 0 16px; }
.parking__copy p,
.booking__copy p,
.reward-copy p,
.location__copy p { color: var(--muted); font-size: 16px; max-width: 560px; }

.gallery { padding-top: 70px; overflow: hidden; }
.gallery-head { display: block; margin-bottom: 28px; }
.gallery-head h2 { max-width: none; }
.gallery-carousel { width: 100%; overflow: hidden; direction: ltr !important; }
.gallery-track { display: flex; gap: 16px; width: max-content; direction: ltr !important; animation: carousel-right 42s linear infinite; }
.gallery-card { flex: 0 0 auto; width: min(360px, 78vw); height: 430px; margin: 0; border-radius: 28px; overflow: hidden; background: var(--white); border: 1px solid var(--line); box-shadow: 0 18px 42px rgba(29,26,23,.07); direction: ltr !important; }
.gallery-card img { width: 100%; height: 100%; object-fit: cover; }
@keyframes carousel-right { from { transform: translate3d(-50%, 0, 0); } to { transform: translate3d(0, 0, 0); } }

.mobile-gallery-slider { display: none; }

.booking { background: linear-gradient(180deg, #1f1b16, #14110f); color: var(--paper); }
.booking .section-kicker { color: #d9b273; border-color: rgba(188,139,70,.35); background: rgba(188,139,70,.15); }
.booking__copy p { color: rgba(251,246,237,.76); }
.booking__interactive { display: grid; grid-template-columns: minmax(0, 1fr) 250px; gap: 18px; align-items: stretch; }
.booking-panel { padding: 24px; background: rgba(255,255,255,.07); border-color: rgba(255,255,255,.12); box-shadow: 0 24px 80px rgba(0,0,0,.24); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field--full { grid-column: 1 / -1; }
.field label { color: rgba(251,246,237,.72); font-size: 12px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.field input,
.field select,
.field textarea { width: 100%; padding: 13px 14px; border-radius: 14px; border: 1px solid rgba(255,255,255,.13); background: rgba(255,255,255,.07); color: var(--paper); outline: none; }
.field textarea { min-height: 92px; resize: vertical; }
.field input::placeholder,
.field textarea::placeholder { color: rgba(251,246,237,.38); }
.field select option { background: #181410; color: var(--paper); }
.form-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 18px; }
.booking-result { display: none; margin-top: 16px; padding: 14px 16px; border-radius: 18px; background: rgba(125,138,115,.20); border: 1px solid rgba(125,138,115,.34); color: var(--paper); }
.booking-result.is-visible { display: block; }
.barber-profile { display: none; padding: 16px; border-radius: 30px; border: 1px solid rgba(255,255,255,.12); background: rgba(255,255,255,.06); }
.booking__interactive.has-profile .barber-profile { display: block; }
.barber-profile img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 22px; background: var(--paper); }
.barber-profile__label { display: block; color: #d9b273; font-size: 11px; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; margin: 16px 0 6px; }
.barber-profile h3 { font-family: "Instrument Serif", Georgia, serif; font-size: 30px; font-weight: 400; line-height: 1; margin-bottom: 10px; }
.barber-profile p { color: rgba(251,246,237,.82); font-size: 14px; }

.reward-card { padding: 28px; }
.stamps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.stamp { aspect-ratio: 1; display: grid; place-items: center; border: 2px dashed rgba(29,26,23,.22); border-radius: 50%; color: rgba(29,26,23,.22); background: #fffaf2; transition: background var(--ease), color var(--ease), border-color var(--ease); }
.stamp.is-filled { color: var(--gold-dark); background: rgba(188,139,70,.14); border-color: rgba(188,139,70,.50); }
.stamp.is-reward { color: var(--paper); background: var(--ink); border-color: var(--ink); }
.reward-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 18px; }
.reward-status { margin-top: 16px; padding: 14px 16px; border-radius: 16px; background: var(--paper-2); color: var(--muted); font-size: 13px; font-weight: 700; }
.reward-status strong { color: var(--ink); }

.location__copy .detail { display: grid; gap: 4px; margin-top: 18px; color: var(--muted); }
.location__copy .detail strong { color: var(--ink); }
.map-card iframe { width: 100%; min-height: 470px; border: 0; display: block; }
.footer { padding: 34px 0 110px; }
.footer__inner { color: var(--muted); font-size: 13px; border-top: 1px solid var(--line); padding-top: 22px; }
.kova-badge { position: fixed; right: 18px; bottom: 18px; z-index: 80; display: inline-flex; align-items: center; gap: 12px; padding: 12px 16px 12px 12px; border-radius: 999px; background: rgba(29,26,23,.95); color: var(--paper); box-shadow: 0 28px 58px rgba(0,0,0,.34); border: 1px solid rgba(255,255,255,.12); font-size: 12px; font-weight: 900; letter-spacing: .04em; text-transform: uppercase; }
.kova-badge__mark { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--paper); color: var(--ink); font-weight: 900; }

.reveal { opacity: 0; transform: translateY(20px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: translateY(0); }

html[dir="rtl"] body { direction: rtl; font-family: "Noto Sans Arabic", Manrope, system-ui, sans-serif; }
html[dir="rtl"] .brand__text,
html[dir="rtl"] h1,
html[dir="rtl"] h2,
html[dir="rtl"] .service-card h3,
html[dir="rtl"] .price-card__amount,
html[dir="rtl"] .barber-profile h3 { font-family: "Noto Sans Arabic", Manrope, system-ui, sans-serif; letter-spacing: -.04em; }
html[dir="rtl"] .hero__copy,
html[dir="rtl"] .section-head,
html[dir="rtl"] .parking__copy,
html[dir="rtl"] .booking__copy,
html[dir="rtl"] .reward-copy,
html[dir="rtl"] .location__copy,
html[dir="rtl"] .service-card,
html[dir="rtl"] .price-card,
html[dir="rtl"] .barber-profile__body,
html[dir="rtl"] .field { text-align: right; }
html[dir="rtl"] .hero__actions,
html[dir="rtl"] .form-actions,
html[dir="rtl"] .reward-actions { justify-content: flex-start; }
html[dir="rtl"] .section-kicker,
html[dir="rtl"] .price-card__label,
html[dir="rtl"] .field label,
html[dir="rtl"] .barber-profile__label,
html[dir="rtl"] .lang-toggle { letter-spacing: 0; }
html[dir="rtl"] .gallery-carousel,
html[dir="rtl"] .gallery-track,
html[dir="rtl"] .gallery-card,
html[dir="rtl"] .mobile-gallery-slider,
html[dir="rtl"] .kova-badge,
html[dir="rtl"] .map-card iframe { direction: ltr !important; }
html[dir="rtl"] .brand { flex-direction: row; }
html[dir="rtl"] .brand__text { line-height: 1.18; padding-bottom: 0.08em; }

@media (max-width: 1120px) {
  .services__grid { grid-template-columns: repeat(2, 1fr); }
  .booking__interactive { grid-template-columns: 1fr; }
  .barber-profile { max-width: 360px; }
}

@media (max-width: 920px) {
  .hero__grid,
  .parking__grid,
  .booking__grid,
  .rewards__grid,
  .location__grid { grid-template-columns: 1fr; }
  .parking__visual { order: 2; }
  .parking__copy { order: 1; }
}

@media (max-width: 760px) {
  body { background-size: 150px 150px, 185px 185px, 220px 220px, auto; }
  .container { width: min(100% - 28px, 1160px); }
  .section { padding: 68px 0; }
  .nav__inner { min-height: 78px; gap: 10px; }
  .brand__logo { width: 50px; height: 50px; }
  .brand__text { font-size: 25px; max-width: 185px; overflow: hidden; text-overflow: ellipsis; }
  .menu-toggle { display: grid; }
  .nav__links { display: none; position: fixed; top: 86px; left: 14px; right: 14px; z-index: 60; flex-direction: column; align-items: stretch; gap: 4px; margin: 0; padding: 12px; border-radius: 24px; background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow); }
  .nav__links.is-open { display: flex; }
  .nav__links a { padding: 14px; }

  html[dir="ltr"] .nav__inner { direction: ltr; }
  html[dir="ltr"] .brand { order: 1; margin-right: auto; margin-left: 0; }
  html[dir="ltr"] .lang-toggle { order: 2; }
  html[dir="ltr"] .menu-toggle { order: 3; }

  html[dir="rtl"] .nav__inner { direction: ltr; }
  html[dir="rtl"] .menu-toggle { order: 1; margin: 0; }
  html[dir="rtl"] .lang-toggle { order: 2; margin: 0; }
  html[dir="rtl"] .brand { order: 3; margin-left: auto; margin-right: 0; direction: rtl; }
  html[dir="rtl"] .brand__text { text-align: right; line-height: 1.18; padding-bottom: 0.08em; }
  html[dir="rtl"] .nav__links { direction: rtl; text-align: right; }

  .lang-toggle { min-height: 42px; padding: 8px 14px; font-size: 12px; flex: 0 0 auto; }

  .hero { padding: 54px 0 56px; }
  .hero h1 { font-size: clamp(56px, 14vw, 82px); line-height: 1.08; }
  .hero p { font-size: 16px; }
  .hero__visual { border-radius: 24px; }
  .section-head { display: block; margin-bottom: 26px; }
  .section-head h2 { margin-top: 16px; font-size: clamp(40px, 10vw, 58px); text-align: left; }
  html[dir="rtl"] .section-head h2 { text-align: right; }
  .services__grid,
  .prices__grid,
  .form-grid { grid-template-columns: 1fr; }
  .service-card { min-height: 210px; }
  .price-card { min-height: 170px; }
  .gallery { padding-top: 64px; }
  .gallery-head h2 { margin: 0; }
  .gallery-carousel { display: none !important; }
  .mobile-gallery-slider { width: min(100% - 28px, 1160px); margin: 0 auto; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 10px; direction: ltr !important; }
  .mobile-gallery-viewport { min-width: 0; position: relative; aspect-ratio: 4 / 5; border-radius: 28px; overflow: hidden; border: 1px solid var(--line); background: var(--white); box-shadow: 0 18px 42px rgba(29, 26, 23, .07); }
  .mobile-gallery-slide { position: absolute; inset: 0; display: block; margin: 0; opacity: 0; transition: opacity .42s ease; pointer-events: none; z-index: 1; }
  .mobile-gallery-slide.is-active { opacity: 1; pointer-events: auto; z-index: 2; }
  .mobile-gallery-slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
  .mobile-gallery-arrow { width: 42px; height: 42px; border-radius: 50%; background: var(--ink); color: var(--paper); display: grid; place-items: center; font-size: 30px; line-height: 1; box-shadow: 0 14px 30px rgba(29, 26, 23, .16); }
  .mobile-gallery-status { grid-column: 1 / -1; text-align: center; margin-top: 10px; color: var(--muted); font-size: 12px; font-weight: 800; letter-spacing: .12em; }
  .booking__interactive { grid-template-columns: 1fr; }
  .barber-profile { max-width: none; }
  .kova-badge { right: 14px; bottom: 14px; transform: scale(.92); transform-origin: right bottom; }
}

@media (min-width: 761px) {
  .mobile-gallery-slider { display: none !important; }
}

/* Desktop-only English alignment and booking/carousel fixes */
@media (min-width: 761px) {
  html[dir="ltr"] .services .section-head,
  html[dir="ltr"] .prices .section-head {
    display: block;
    max-width: 690px;
    margin-bottom: 34px;
  }

  html[dir="ltr"] .services .section-head h2,
  html[dir="ltr"] .prices .section-head h2 {
    margin-top: 16px;
    text-align: left;
  }
}

.booking__interactive {
  grid-template-columns: minmax(0, 1fr);
}

.booking__interactive.has-profile {
  grid-template-columns: minmax(420px, 1fr) 250px;
}

@media (min-width: 1121px) {
  .booking__grid {
    grid-template-columns: minmax(340px, .78fr) minmax(680px, 1.22fr);
  }
}

@media (max-width: 1120px) {
  .booking__interactive.has-profile {
    grid-template-columns: 1fr;
  }
}

/* Desktop-only Arabic fixes: section heading alignment + filled carousel start */
@media (min-width: 761px) {
  html[dir="rtl"] .services .section-head,
  html[dir="rtl"] .prices .section-head {
    display: block;
    max-width: 690px;
    margin-left: auto;
    margin-right: 0;
    margin-bottom: 34px;
    text-align: right;
  }

  html[dir="rtl"] .services .section-head h2,
  html[dir="rtl"] .prices .section-head h2 {
    margin-top: 16px;
    text-align: right;
  }

  html[dir="rtl"] .gallery-track {
    animation: carousel-ar-filled 42s linear infinite;
  }
}

@keyframes carousel-ar-filled {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-50%, 0, 0); }
}
