/* ==========================================================================
   Hamza Barber — style.css
   Dark barbershop theme • RTL/LTR • responsive • CSS-only animations
   ========================================================================== */

/* ----------------------------- Design tokens ---------------------------- */
:root {
  --bg-primary:   #0D0D0D;
  --bg-card:      #1A1A1A;
  --bg-elevated:  #252525;
  --accent:       #E8791E;
  --accent-hover: #D06A15;
  --text-primary: #FFFFFF;
  --text-secondary:#CCCCCC;
  --text-muted:   #999999;
  --border:       rgba(232,121,30,0.3);
  --wa-green:     #25D366;

  --font-display: "Bungee", "Passion One", cursive;
  --font-body:    "Inter", system-ui, sans-serif;

  --maxw: 1200px;
  --radius-card: 8px;
  --radius-btn: 4px;
  --gap: 24px;
  --section-pad: 100px;
}

/* Arabic font applied when RTL */
html[dir="rtl"] {
  --font-body: "Noto Kufi Arabic", "Inter", sans-serif;
  --font-display: "Noto Kufi Arabic", "Bungee", sans-serif;
}

/* ------------------------------- Reset ---------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background-color: var(--bg-primary);
  /* subtle brick wall texture overlay */
  background-image:
    linear-gradient(rgba(13,13,13,0.97), rgba(13,13,13,0.97)),
    repeating-linear-gradient(0deg, transparent 0 38px, rgba(255,255,255,0.02) 38px 40px),
    repeating-linear-gradient(90deg, transparent 0 78px, rgba(255,255,255,0.02) 78px 80px);
  color: var(--text-secondary);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 24px; }

/* ------------------------------ Buttons --------------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-body); font-weight: 600;
  border: none; cursor: pointer; border-radius: var(--radius-btn);
  padding: 14px 28px; font-size: 1rem;
  transition: background-color .25s ease, transform .2s ease, box-shadow .25s ease;
}
.btn--lg { padding: 18px 38px; font-size: 1.1rem; }
.btn--accent { background: var(--accent); color: #fff; }
.btn--accent:hover { background: var(--accent-hover); transform: translateY(-2px); box-shadow: 0 10px 30px rgba(232,121,30,0.35); }
.btn--wa { background: var(--wa-green); color: #fff; }
.btn--wa:hover { background: #1da851; transform: translateY(-2px); }

.link-accent { color: var(--accent); font-weight: 600; border-bottom: 1px solid var(--border); padding-bottom: 2px; transition: color .2s; }
.link-accent:hover { color: var(--accent-hover); }

/* --------------------------- Section scaffolding ------------------------ */
.section { padding-block: var(--section-pad); position: relative; }
.section--alt { background: rgba(0,0,0,0.35); }

.section__head { text-align: center; margin-bottom: 56px; }
.section__label {
  display: block; text-transform: uppercase; letter-spacing: 3px;
  font-size: 0.8rem; color: var(--text-muted); margin-bottom: 12px;
}
.section__title {
  font-family: var(--font-display); color: var(--accent);
  font-size: clamp(2rem, 5vw, 3.2rem); line-height: 1.1;
  text-transform: uppercase; letter-spacing: 1px;
}
.section__subtitle { color: var(--text-muted); margin-top: 14px; font-size: 1.05rem; }
.mad { font-size: 0.75em; color: var(--text-muted); }

/* =============================== NAV ==================================== */
.nav {
  position: fixed; inset-block-start: 0; inset-inline: 0; z-index: 100;
  background: transparent;
  transition: background-color .3s ease, box-shadow .3s ease, padding .3s ease;
  padding-block: 18px;
}
.nav--scrolled {
  background: rgba(13,13,13,0.85);
  backdrop-filter: blur(12px);
  box-shadow: 0 2px 20px rgba(0,0,0,0.5);
  padding-block: 10px;
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.logo { display: flex; flex-direction: column; line-height: 0.9; }
.logo__main { font-family: var(--font-display); color: var(--text-primary); font-size: 1.5rem; letter-spacing: 1px; }
.logo__sub { font-size: 0.7rem; letter-spacing: 4px; color: var(--accent); }

.nav__menu { display: flex; gap: 26px; }
.nav__link { color: var(--text-primary); font-size: 0.95rem; font-weight: 500; position: relative; transition: color .2s; }
.nav__link::after {
  content: ""; position: absolute; inset-block-end: -6px; inset-inline-start: 0;
  width: 0; height: 2px; background: var(--accent); transition: width .25s ease;
}
.nav__link:hover { color: var(--accent); }
.nav__link:hover::after { width: 100%; }

.nav__actions { display: flex; align-items: center; gap: 16px; }
.lang { display: flex; align-items: center; gap: 6px; }
.lang__btn {
  background: none; border: none; color: var(--text-muted); cursor: pointer;
  font-family: var(--font-body); font-size: 0.85rem; font-weight: 600; padding: 4px;
  transition: color .2s;
}
.lang__btn:hover { color: var(--text-primary); }
.lang__btn.is-active { color: var(--accent); }
.lang__sep { color: var(--text-muted); opacity: 0.5; }

.wa-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--wa-green); color: #fff; transition: transform .2s, background .2s;
}
.wa-icon:hover { transform: scale(1.08); background: #1da851; }

/* Hamburger */
.hamburger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 6px; }
.hamburger span { width: 26px; height: 2px; background: var(--text-primary); transition: .3s; }

/* Mobile overlay nav */
.mobile-nav {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(13,13,13,0.98); backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden; transition: opacity .3s ease, visibility .3s ease;
}
.mobile-nav.is-open { opacity: 1; visibility: visible; }
.mobile-nav__close { position: absolute; inset-block-start: 24px; inset-inline-end: 28px; background: none; border: none; color: #fff; font-size: 2.5rem; cursor: pointer; line-height: 1; }
.mobile-nav__menu { display: flex; flex-direction: column; gap: 28px; text-align: center; }
.mobile-nav__link { font-family: var(--font-display); color: var(--text-primary); font-size: 1.6rem; text-transform: uppercase; transition: color .2s; }
.mobile-nav__link:hover { color: var(--accent); }

/* =============================== HERO ================================== */
.hero {
  position: relative; min-height: 100vh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; overflow: hidden;
}
.hero__bg {
  position: absolute; inset: 0;
  background: url("../assets/images/hero.jpg") center/cover no-repeat, #161616;
  /* dark fallback gradient if image missing */
  background-blend-mode: overlay;
  z-index: -2;
}
.hero__overlay {
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(to top, rgba(0,0,0,0.7), rgba(0,0,0,0.4));
}

.hero__status {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(26,26,26,0.8); border: 1px solid var(--border);
  border-radius: 999px; padding: 7px 16px; font-size: 0.85rem; color: var(--text-secondary);
  margin-bottom: 28px;
}
.hero__status-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--wa-green); box-shadow: 0 0 8px var(--wa-green); }
.hero__status.is-closed .hero__status-dot { background: #c0392b; box-shadow: 0 0 8px #c0392b; }

.hero__content { max-width: 800px; padding-inline: 20px; }
.hero__title {
  font-family: var(--font-display); color: var(--text-primary);
  font-size: clamp(3rem, 12vw, 7rem); line-height: 0.95; letter-spacing: 2px;
  text-shadow: 0 4px 30px rgba(0,0,0,0.6);
}
.hero__title span { color: var(--accent); }
.hero__tagline { color: var(--text-secondary); font-size: clamp(1rem, 2.5vw, 1.3rem); margin: 22px 0 36px; }

/* Floating barber tools */
.hero__tool {
  position: absolute; width: 64px; height: 64px; color: var(--accent);
  filter: drop-shadow(0 0 20px rgba(232,121,30,0.4)); opacity: 0.5;
  animation: float 6s ease-in-out infinite;
  z-index: -1;
}
.hero__tool--1 { inset-block-start: 18%; inset-inline-start: 10%; animation-delay: 0s; }
.hero__tool--2 { inset-block-start: 28%; inset-inline-end: 12%; width: 80px; animation-delay: 1.2s; }
.hero__tool--3 { inset-block-end: 22%; inset-inline-start: 14%; animation-delay: 2.1s; }
.hero__tool--4 { inset-block-end: 26%; inset-inline-end: 9%; animation-delay: 0.6s; }
@keyframes float { 0%,100% { transform: translateY(0) rotate(-4deg); } 50% { transform: translateY(-18px) rotate(4deg); } }

.hero__scroll {
  position: absolute; inset-block-end: 28px; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  font-size: 0.75rem; letter-spacing: 2px; text-transform: uppercase; color: var(--text-muted);
}
.hero__scroll-arrow { font-size: 1.1rem; animation: bob 1.8s ease-in-out infinite; }
@keyframes bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(6px); } }

/* ============================= SERVICES ================================ */
.services__grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap);
}
.service-card {
  background: var(--bg-card); border: 1px solid transparent; border-radius: var(--radius-card);
  padding: 36px 28px; text-align: center;
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.service-card:hover { transform: translateY(-6px) scale(1.02); border-color: var(--border); box-shadow: 0 12px 30px rgba(0,0,0,0.4); }
.service-card__icon { width: 52px; height: 52px; margin: 0 auto 18px; color: var(--accent); filter: drop-shadow(0 0 10px rgba(232,121,30,0.3)); }
.service-card__name { font-family: var(--font-display); color: var(--text-primary); font-size: 1.25rem; margin-bottom: 10px; }
.service-card__desc { color: var(--text-muted); font-size: 0.95rem; margin-bottom: 18px; }
.service-card__price { color: var(--accent); font-weight: 700; font-size: 1.15rem; }

/* ============================== PRICING ================================ */
.pricing__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 48px 64px; }
.pricing__cat {
  font-family: var(--font-display); color: var(--text-primary); font-size: 1.2rem;
  text-transform: uppercase; letter-spacing: 1px; margin-bottom: 20px;
  border-inline-start: 3px solid var(--accent); padding-inline-start: 12px;
}
.price-list { display: flex; flex-direction: column; gap: 16px; }
.price-row { display: flex; align-items: baseline; gap: 8px; }
.price-row__name { color: var(--text-secondary); font-weight: 500; white-space: nowrap; display: inline-flex; gap: 8px; align-items: center; }
.price-row__dots { flex: 1; border-bottom: 2px dotted rgba(255,255,255,0.18); transform: translateY(-3px); min-width: 20px; }
.price-row__price { color: var(--accent); font-weight: 700; white-space: nowrap; }
.price-row--popular .price-row__name { color: var(--text-primary); }
.badge {
  background: var(--accent); color: #fff; font-size: 0.65rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.5px; padding: 3px 8px; border-radius: 999px;
}
.pricing__pdf { text-align: center; margin-top: 48px; }

/* ============================== GALLERY ================================ */
.gallery__watermark {
  position: absolute; inset-block-start: 50%; left: 50%; transform: translate(-50%, -50%);
  font-family: var(--font-display); font-size: clamp(4rem, 22vw, 18rem);
  color: rgba(255,255,255,0.05); white-space: nowrap; pointer-events: none; z-index: 0;
  letter-spacing: 6px;
}
.gallery__grid {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gap);
}
.gallery__item { overflow: hidden; border-radius: var(--radius-card); cursor: pointer; }
.gallery__item img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; display: block; }
.gallery__item img,
.gallery__item .placeholder { transition: transform .4s ease, filter .4s ease; }
.gallery__item:hover img,
.gallery__item:hover .placeholder { transform: scale(1.05); filter: brightness(1.15); }

.placeholder {
  aspect-ratio: 1 / 1; background: var(--bg-card); border: 1px solid rgba(255,255,255,0.05);
  display: flex; align-items: center; justify-content: center; color: var(--text-muted);
  border-radius: var(--radius-card);
}
.placeholder--tall { aspect-ratio: 3 / 4; }

/* =========================== TESTIMONIALS ============================== */
.reviews__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); }
.review-card {
  position: relative; background: var(--bg-card); border: 1px solid rgba(255,255,255,0.05);
  border-radius: var(--radius-card); padding: 40px 28px 28px; box-shadow: 0 8px 24px rgba(0,0,0,0.25);
}
.review-card__quote-icon { position: absolute; inset-block-start: 16px; inset-inline-start: 22px; color: var(--accent); font-size: 2.4rem; line-height: 1; opacity: 0.7; }
.review-card__stars { color: var(--accent); letter-spacing: 2px; margin-bottom: 14px; }
.review-card__text { font-style: italic; color: var(--text-secondary); margin-bottom: 22px; }
.review-card__person { display: flex; align-items: center; gap: 12px; }
.review-card__avatar {
  width: 44px; height: 44px; border-radius: 50%; background: var(--bg-elevated);
  color: var(--accent); font-weight: 700; display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--border);
}
.review-card__name { color: var(--text-primary); font-weight: 600; }

/* =============================== ABOUT ================================= */
.about__inner { display: grid; grid-template-columns: 1fr 1.2fr; gap: 64px; align-items: center; }
.about__photo .placeholder,
.about__photo img {
  transform: rotate(-2.5deg); border: 3px solid var(--accent);
  box-shadow: 0 16px 40px rgba(0,0,0,0.5); border-radius: var(--radius-card);
}
.about__photo img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; display: block; }
.about__role { color: var(--accent); font-weight: 600; letter-spacing: 1px; margin: 6px 0 18px; }
.about__bio { color: var(--text-secondary); font-size: 1.05rem; margin-bottom: 30px; }
.about__stats { display: flex; gap: 36px; flex-wrap: wrap; }
.stat { display: flex; flex-direction: column; }
.stat__num { font-family: var(--font-display); color: var(--accent); font-size: 2rem; line-height: 1; }
.stat__label { color: var(--text-muted); font-size: 0.85rem; margin-top: 6px; }

/* =============================== FOOTER =============================== */
.footer { background: var(--bg-card); padding-block: 70px 28px; }
.footer__cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; margin-bottom: 48px; }
.footer__title { font-family: var(--font-display); color: var(--text-primary); font-size: 1.1rem; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 18px; }
.footer__line { color: var(--text-muted); margin-bottom: 10px; }
.footer__line a:hover { color: var(--accent); }
.hours { width: 100%; border-collapse: collapse; }
.hours td { padding: 6px 0; color: var(--text-muted); }
.hours td:last-child { text-align: end; color: var(--text-secondary); }
.socials { display: flex; gap: 14px; margin-bottom: 22px; }
.social {
  width: 42px; height: 42px; border-radius: 50%; background: var(--bg-elevated);
  display: flex; align-items: center; justify-content: center; color: var(--text-secondary);
  transition: background .2s, color .2s, transform .2s;
}
.social:hover { background: var(--accent); color: #fff; transform: translateY(-3px); }
.footer__cta { margin-top: 4px; }

.footer__map { border-radius: var(--radius-card); overflow: hidden; border: 1px solid var(--border); margin-bottom: 36px; }
.footer__map iframe { width: 100%; height: 320px; border: 0; display: block; filter: grayscale(0.4) invert(0.9) hue-rotate(180deg); }

.footer__copy { text-align: center; color: var(--text-muted); font-size: 0.85rem; border-top: 1px solid rgba(255,255,255,0.06); padding-top: 24px; }

/* ====================== FLOATING WHATSAPP BUTTON ===================== */
.wa-float {
  position: fixed; inset-block-end: 20px; inset-inline-end: 20px; z-index: 300;
  display: inline-flex; align-items: center; gap: 0;
  background: var(--wa-green); color: #fff; border-radius: 999px;
  padding: 16px; box-shadow: 0 8px 24px rgba(37,211,102,0.4);
  animation: pulse 2.2s infinite;
  overflow: hidden; max-width: 62px; transition: max-width .35s ease, padding .35s ease;
}
.wa-float:hover { max-width: 220px; padding-inline-end: 24px; }
.wa-float__label { white-space: nowrap; font-weight: 600; margin-inline-start: 10px; opacity: 0; transition: opacity .3s ease .1s; }
.wa-float:hover .wa-float__label { opacity: 1; }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(37,211,102,0.5); }
  70% { box-shadow: 0 0 0 18px rgba(37,211,102,0); }
  100% { box-shadow: 0 0 0 0 rgba(37,211,102,0); }
}

/* ============================ SCROLL REVEAL =========================== */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

/* =========================== RESPONSIVE =============================== */
@media (max-width: 980px) {
  .about__inner { grid-template-columns: 1fr; gap: 40px; }
  .gallery__grid { grid-template-columns: repeat(3, 1fr); }
  .services__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  :root { --section-pad: 60px; --gap: 16px; }
  .nav__menu { display: none; }
  .hamburger { display: flex; }
  .nav__actions .wa-icon { display: none; }
  .services__grid { grid-template-columns: repeat(2, 1fr); }
  .pricing__grid { grid-template-columns: 1fr; gap: 36px; }
  .reviews__grid { grid-template-columns: 1fr; }
  .gallery__grid { grid-template-columns: repeat(2, 1fr); }
  .footer__cols { grid-template-columns: 1fr; gap: 32px; }
  .hero__tool { width: 44px; height: 44px; opacity: 0.35; }
  .hero__tool--2 { width: 52px; }
}

@media (max-width: 480px) {
  .container { padding-inline: 18px; }
  .services__grid { grid-template-columns: 1fr; }
  .gallery__grid { grid-template-columns: 1fr 1fr; }
  .about__stats { gap: 22px; }
  .lang__sep { display: none; }
  .lang { gap: 2px; }
  .footer__map iframe { height: 240px; }
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}
