/* ============================================================
   707 Gents Salon — Black / Silver / White · Glassmorphism
   ============================================================ */

:root {
  --bg: #060606;
  --text: #f4f4f4;
  --muted: #a9a9a9;
  --silver: #c9c9c9;
  --glass-bg: rgba(255, 255, 255, 0.055);
  --glass-border: rgba(255, 255, 255, 0.14);
  --glass-highlight: rgba(255, 255, 255, 0.22);
  --silver-grad: linear-gradient(135deg, #fafafa 0%, #d4d4d4 45%, #9e9e9e 55%, #e6e6e6 100%);
  --font-display: 'Cormorant Garamond', 'Tajawal', serif;
  --font-body: 'Montserrat', 'Tajawal', sans-serif;
  --radius: 22px;
}

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

html { scroll-behavior: smooth; overflow-x: hidden; }

* { -webkit-tap-highlight-color: transparent; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

html[dir="rtl"] body { font-family: 'Tajawal', 'Montserrat', sans-serif; }
html[dir="rtl"] .section-title,
html[dir="rtl"] .hero-tagline { font-family: 'Tajawal', sans-serif; font-weight: 700; letter-spacing: 0; }

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }

::selection { background: rgba(255,255,255,.85); color: #000; }

/* ---------- Glass primitives ---------- */
.glass {
  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  backdrop-filter: blur(18px) saturate(140%);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.45),
              inset 0 1px 0 var(--glass-highlight);
}

.panel {
  padding: 34px 24px;
  text-align: center;
  transition: transform .25s ease-out;
}

/* ---------- Language toggle ---------- */
.lang-toggle {
  position: fixed;
  top: max(14px, env(safe-area-inset-top));
  inset-inline-end: 14px;
  z-index: 50;
  min-width: 48px;
  height: 48px;
  padding: 0 14px;
  border-radius: 999px;
  font-family: 'Tajawal', sans-serif;
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
  transition: transform .2s ease, background .2s ease;
}
.lang-toggle:active { transform: scale(.94); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  height: 62vh;
  height: 62svh;
  min-height: 400px;
  overflow: hidden;
}

.hero-slider, .hero-slide { position: absolute; inset: 0; }

.hero-slide {
  opacity: 0;
  transition: opacity 1.4s ease;
}
.hero-slide.is-active { opacity: 1; }
.hero-slide img {
  width: 100%; height: 100%;
  object-fit: cover;
  transform: scale(1.06);
}
.hero-slide.is-active img { animation: kenburns 7s ease-out forwards; }

@keyframes kenburns {
  from { transform: scale(1.12); }
  to   { transform: scale(1.02); }
}

/* Black gradient overlay — 0% → 100% over the bottom ~70% */
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom,
    rgba(6,6,6,0) 30%,
    rgba(6,6,6,.45) 58%,
    rgba(6,6,6,.85) 82%,
    var(--bg) 100%);
  pointer-events: none;
}

.hero-content {
  position: absolute;
  inset-inline: 0;
  bottom: 14%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 24px;
  z-index: 2;
}

.hero-logo {
  width: min(210px, 52vw);
  height: auto;
  filter: drop-shadow(0 6px 24px rgba(0,0,0,.6));
}

.hero-kicker {
  margin-top: 22px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .32em;
  text-transform: uppercase;
  color: var(--silver);
}
html[dir="rtl"] .hero-kicker { letter-spacing: .06em; font-family: 'Tajawal', sans-serif; }

.hero-tagline {
  margin-top: 10px;
  font-family: var(--font-display);
  font-size: clamp(19px, 5vw, 26px);
  font-weight: 500;
  color: var(--text);
  max-width: 30ch;
}

.scroll-cue {
  position: absolute;
  bottom: max(18px, env(safe-area-inset-bottom));
  inset-inline: 0;
  display: flex;
  justify-content: center;
  z-index: 2;
}
.scroll-cue span {
  width: 1px; height: 30px;
  background: linear-gradient(to bottom, transparent, var(--silver));
  animation: cue 2.2s ease-in-out infinite;
}
@keyframes cue {
  0%, 100% { transform: scaleY(.4); transform-origin: top; opacity: .4; }
  50% { transform: scaleY(1); opacity: 1; }
}

/* ---------- Sections ---------- */
main { padding: 0 18px; max-width: 640px; margin: 0 auto; }

.section { margin-top: 64px; }
.section-head { text-align: center; margin-bottom: 22px; }

.g-mark { display: inline-block; margin-bottom: 8px; }

.section-eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--silver);
}
html[dir="rtl"] .section-eyebrow { letter-spacing: .05em; }

.section-title {
  font-family: var(--font-display);
  font-size: clamp(26px, 7vw, 34px);
  font-weight: 600;
  line-height: 1.15;
  margin-top: 6px;
}

.section-sub {
  color: var(--muted);
  font-size: 14.5px;
  margin: 10px auto 24px;
  max-width: 34ch;
}

/* ---------- Reviews slider ---------- */
.review-slider {
  padding: 26px 22px 18px;
  overflow: hidden;
}

.review-track { position: relative; min-height: 230px; }

.review-card {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  opacity: 0;
  transform: translateX(24px);
  transition: opacity .6s ease, transform .6s ease;
  pointer-events: none;
}
html[dir="rtl"] .review-card { transform: translateX(-24px); }

.review-card.is-active { opacity: 1; transform: translateX(0); pointer-events: auto; }

.stars { display: flex; gap: 3px; margin-bottom: 12px; }
.stars svg { width: 15px; height: 15px; fill: #d8d8d8; }
.stars svg.dim { fill: rgba(255,255,255,.22); }

.review-text {
  font-size: 14.5px;
  line-height: 1.75;
  color: var(--text);
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
  max-width: 46ch;
}
.review-text[lang="ar"] { font-family: 'Tajawal', sans-serif; font-size: 15.5px; }

.review-author {
  margin-top: auto;
  padding-top: 14px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--silver);
}
html[dir="rtl"] .review-author { letter-spacing: .03em; }
.review-author small {
  display: block;
  margin-top: 2px;
  font-weight: 400;
  letter-spacing: .04em;
  text-transform: none;
  color: var(--muted);
  font-size: 11px;
}

.review-progress {
  margin-top: 18px;
  height: 2px;
  border-radius: 999px;
  background: rgba(255,255,255,.14);
  overflow: hidden;
}
.review-progress span {
  display: block;
  height: 100%;
  width: 0;
  border-radius: 999px;
  background: var(--silver-grad);
  transition: width .5s ease;
}

/* ---------- Buttons ---------- */
.btn {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 14px 30px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .02em;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: scale(.96); }

.btn-primary {
  background: var(--silver-grad);
  color: #0a0a0a;
  box-shadow: 0 6px 24px rgba(200,200,200,.18);
}
.btn-primary:hover { box-shadow: 0 10px 34px rgba(220,220,220,.32); }

/* shine sweep across the primary CTA */
.btn-primary::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  left: -80%;
  width: 55%;
  background: linear-gradient(105deg, transparent, rgba(255,255,255,.75), transparent);
  transform: skewX(-20deg);
  transition: left .6s ease;
}
.btn-primary:hover::after { left: 130%; }

/* tap ripple */
.ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255,255,255,.45);
  transform: scale(0);
  animation: ripple .55s ease-out forwards;
  pointer-events: none;
}
.btn-glass .ripple { background: rgba(255,255,255,.25); }
@keyframes ripple { to { transform: scale(2.6); opacity: 0; } }

.btn-glass {
  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border: 1px solid var(--glass-border);
  box-shadow: inset 0 1px 0 var(--glass-highlight);
  color: var(--text);
}
.btn-glass:hover { background: rgba(255,255,255,.1); }

.btn-row {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}
.btn-row .btn { flex: 1 1 140px; max-width: 220px; }

.btn-wide { width: 100%; margin-top: 20px; }

.contact-number {
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 600;
  letter-spacing: .06em;
  color: var(--text);
  margin: 8px 0 22px;
}

/* ---------- Map / address ---------- */
.map-frame {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--glass-border);
  aspect-ratio: 4 / 3;
}
.map-frame iframe {
  width: 100%; height: 100%;
  display: block;
  filter: grayscale(1) invert(0.92) contrast(0.85);
}

.address-text {
  font-style: normal;
  font-size: 14.5px;
  line-height: 1.8;
  color: var(--muted);
  margin-top: 20px;
}

/* ---------- Footer ---------- */
.footer {
  margin-top: 80px;
  padding: 48px 24px max(32px, env(safe-area-inset-bottom));
  text-align: center;
  border-top: 1px solid rgba(255,255,255,.08);
  background: linear-gradient(to bottom, var(--bg), #000);
}

.footer-logo { width: 120px; height: auto; margin: 0 auto; opacity: .9; }

.footer-desc {
  color: var(--muted);
  font-size: 13.5px;
  max-width: 42ch;
  margin: 18px auto 24px;
}

.socials { display: flex; justify-content: center; gap: 14px; }
.social-icon {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px; height: 48px;
  border-radius: 50%;
  color: var(--silver);
  transition: transform .2s ease, color .2s ease, background .2s ease;
}
.social-icon:hover { color: #fff; background: rgba(255,255,255,.1); }
.social-icon:active { transform: scale(.92); }

.footer-copy {
  margin-top: 28px;
  font-size: 11.5px;
  color: rgba(255,255,255,.35);
  letter-spacing: .05em;
}

/* ---------- Reveal animations ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .8s cubic-bezier(.22,.61,.36,1), transform .8s cubic-bezier(.22,.61,.36,1);
}
.reveal.is-visible { opacity: 1; transform: none; }

/* stagger panel children after the section reveals
   (keyframe animation so it never fights hover/tap transitions) */
.reveal .panel > * { opacity: 0; transform: translateY(16px); }
.reveal.is-visible .panel > * {
  opacity: 1;
  transform: none;
  animation: childIn .6s cubic-bezier(.22,.61,.36,1) backwards;
}
.reveal.is-visible .panel > *:nth-child(2) { animation-delay: .10s; }
.reveal.is-visible .panel > *:nth-child(3) { animation-delay: .20s; }
.reveal.is-visible .panel > *:nth-child(4) { animation-delay: .30s; }
.reveal.is-visible .panel > *:nth-child(5) { animation-delay: .40s; }
@keyframes childIn {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ---------- Ambient glows (gives the glass something to blur) ---------- */
body::before, body::after {
  content: '';
  position: fixed;
  z-index: -1;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
}
body::before {
  width: 60vmax; height: 60vmax;
  top: -30vmax; inset-inline-end: -30vmax;
  background: radial-gradient(circle, rgba(255,255,255,.07), transparent 60%);
}
body::after {
  width: 55vmax; height: 55vmax;
  bottom: -25vmax; inset-inline-start: -25vmax;
  background: radial-gradient(circle, rgba(200,200,200,.06), transparent 60%);
}

/* ---------- Hero entrance ---------- */
.hero-content > * {
  opacity: 0;
  animation: heroIn .9s cubic-bezier(.22,.61,.36,1) forwards;
}
.hero-content .hero-logo { animation-delay: .15s; }
.hero-content .hero-kicker { animation-delay: .45s; }
.hero-content .hero-tagline { animation-delay: .65s; }
@keyframes heroIn {
  from { opacity: 0; transform: translateY(26px); }
  to   { opacity: 1; transform: none; }
}

/* ---------- Floating CTA bar ---------- */
.floating-cta {
  position: fixed;
  bottom: max(16px, calc(env(safe-area-inset-bottom) + 12px));
  left: 50%;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px;
  border-radius: 999px;
  opacity: 0;
  transform: translate(-50%, 90px);
  transition: opacity .4s ease, transform .45s cubic-bezier(.22,.61,.36,1);
  pointer-events: none;
}
.floating-cta.show { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }

.cta-btn {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px; height: 46px;
  border-radius: 50%;
  color: var(--silver);
  transition: color .2s ease, background .2s ease, transform .2s ease;
}
.cta-btn:hover { color: #fff; background: rgba(255,255,255,.1); }
.cta-btn:active { transform: scale(.9); }

.cta-book {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 46px;
  padding: 0 18px;
  border-radius: 999px;
  background: var(--silver-grad);
  color: #0a0a0a;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .02em;
  box-shadow: 0 4px 16px rgba(200,200,200,.2);
  transition: transform .2s ease, box-shadow .2s ease;
}
.cta-book:active { transform: scale(.95); }

/* ---------- Small phones (≤380px) ---------- */
@media (max-width: 380px) {
  main { padding: 0 14px; }
  .panel { padding: 28px 18px; }
  .section-title { font-size: 24px; }
  .contact-number { font-size: 26px; }
  .btn { padding: 13px 20px; font-size: 14px; }
  .btn-row { gap: 10px; }
  .btn-row .btn { flex-basis: 100%; }
  .review-track { min-height: 250px; }
  .hero-logo { width: min(190px, 56vw); }
  .floating-cta { padding: 6px; gap: 6px; }
  .cta-btn { width: 44px; height: 44px; }
  .cta-book { height: 44px; padding: 0 14px; font-size: 13px; }
}

/* ---------- Large tablets / desktop ---------- */
@media (min-width: 1024px) {
  main { max-width: 700px; }
  .hero-content { bottom: 16%; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal .panel > *, .hero-content > * { opacity: 1; transform: none; transition: none; animation: none; }
  .hero-slide { transition: none; }
  .hero-slide.is-active img { animation: none; }
  .scroll-cue span { animation: none; }
  .btn-primary::after, .ripple { display: none; }
  html { scroll-behavior: auto; }
}

@media (min-width: 768px) {
  .panel { padding: 44px 40px; }
  .review-track { min-height: 190px; }
  .hero { height: 92vh; height: 92svh; min-height: 560px; }
  .hero-logo { width: 260px; }
  .scroll-cue span { height: 44px; }
}
