/* ==========================================================================
   ESSNTLS — Dark grooming design system (ref: barber_web_v2)
   Bold grotesque type · near-black surfaces · white pill CTAs
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  --bg: #0b0b0c;
  --bg-2: #0f0f10;
  --surface: #161617;
  --surface-2: #1c1c1e;
  --surface-3: #212123;
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.14);
  --white: #f6f6f5;
  --muted: #a1a1a3;
  --muted-2: #6d6d70;

  --accent: #67bd31;
  --accent-dim: rgba(103, 189, 49, 0.14);

  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --maxw: 1200px;
  --gutter: clamp(1.1rem, 3.5vw, 2.5rem);
  --radius: 14px;
  --radius-sm: 10px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --shadow: 0 20px 50px -20px rgba(0, 0, 0, 0.7);

  --z-nav: 50;
  --z-menu: 60;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--white);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
input, select { font: inherit; }
ul { list-style: none; padding: 0; }
::selection { background: var(--white); color: #000; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(3.5rem, 8vw, 6rem); position: relative; }

.section-title {
  font-weight: 800;
  font-size: clamp(1.6rem, 4.5vw, 2.6rem);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-align: center;
}
.section-eyebrow {
  text-align: center;
  color: var(--accent);
  text-transform: uppercase;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  margin-bottom: 0.4rem;
}
.section-sub {
  text-align: center;
  color: var(--muted);
  max-width: 46ch;
  margin: 0.9rem auto 0;
  font-size: 0.95rem;
}

/* ---------- Photo placeholder ---------- */
.ph {
  position: relative;
  background:
    radial-gradient(120% 120% at 30% 20%, #26262a 0%, #17171a 45%, #101012 100%);
  overflow: hidden;
}
.ph::before {
  content: "";
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-opacity='0.10' stroke-width='1'%3E%3Ccircle cx='6' cy='6' r='3'/%3E%3Ccircle cx='6' cy='18' r='3'/%3E%3Cline x1='20' y1='4' x2='8.12' y2='15.88'/%3E%3Cline x1='14.47' y1='14.48' x2='20' y2='20'/%3E%3Cline x1='8.12' y1='8.12' x2='12' y2='12'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
}
.ph::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(0,0,0,0.55));
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 46px;
  padding: 0.8rem 1.5rem;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: background 0.25s var(--ease), color 0.25s var(--ease),
              border-color 0.25s var(--ease), transform 0.25s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn-white { background: var(--white); color: #0b0b0c; }
.btn-white:hover { background: #fff; transform: translateY(-2px); }
.btn-outline { border: 1px solid var(--line-2); color: var(--white); }
.btn-outline:hover { border-color: var(--white); background: rgba(255,255,255,0.06); }
.btn-accent { background: var(--accent); color: #06210a; box-shadow: 0 8px 24px -10px rgba(103,189,49,0.6); }
.btn-accent:hover { background: #74cf39; transform: translateY(-2px); box-shadow: 0 12px 30px -10px rgba(103,189,49,0.75); }
.btn-accent svg { color: #06210a; }
.btn-sm { min-height: 40px; padding: 0.6rem 1rem; font-size: 0.82rem; border-radius: 7px; }
.btn-block { width: 100%; }
.btn svg { width: 16px; height: 16px; }

/* ==========================================================================
   NAV
   ========================================================================== */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: var(--z-nav);
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease), backdrop-filter 0.3s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(11,11,12,0.8);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}
.nav__inner {
  display: flex; align-items: center; justify-content: space-between;
  padding-block: 1.1rem;
}
.brand { font-weight: 800; font-size: 1.15rem; letter-spacing: 0.18em; display: inline-flex; align-items: center; }
.brand__logo { height: 30px; width: auto; display: block; }
.footer__brand img { height: 40px; width: auto; display: block; }

/* ---------- Real photos in placeholder frames ---------- */
.ph.has-img::before { display: none; }
.ph-img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; display: block;
}
.nav__links { display: flex; gap: 1.9rem; }
.nav__links a { font-size: 0.9rem; color: var(--muted); transition: color 0.25s var(--ease); }
.nav__links a:hover { color: var(--white); }
.nav__links a.active { color: var(--accent); }
.nav__right { display: flex; align-items: center; gap: 0.6rem; }
.nav__login { font-size: 0.9rem; color: var(--muted); padding: 0.5rem 0.4rem; transition: color 0.25s; }
.nav__login:hover { color: var(--white); }
.nav__toggle { display: none; width: 44px; height: 44px; flex-direction: column; align-items: center; justify-content: center; gap: 5px; }
.nav__toggle span { width: 22px; height: 2px; background: var(--white); transition: transform 0.35s var(--ease), opacity 0.25s; }
.nav__toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle.open span:nth-child(2) { opacity: 0; }
.nav__toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0; z-index: var(--z-menu);
  background: var(--bg-2);
  display: flex; flex-direction: column; justify-content: center; gap: 0.4rem;
  padding: var(--gutter);
  transform: translateY(-100%);
  transition: transform 0.5s var(--ease);
}
.mobile-menu.open { transform: none; }
.mobile-menu a { font-size: 1.8rem; font-weight: 700; color: var(--muted); padding-block: 0.4rem; }
.mobile-menu a:hover { color: var(--white); }
.mobile-menu .btn { margin-top: 1.2rem; }

/* ==========================================================================
   HERO
   ========================================================================== */
.hero { position: relative; min-height: 100svh; display: flex; align-items: center; overflow: hidden; }
.hero__media {
  position: absolute; inset: 0; z-index: 0;
}
.hero__media .ph { position: absolute; inset: 0; }
.hero__media .ph::after {
  background: linear-gradient(90deg, var(--bg) 8%, rgba(11,11,12,0.6) 42%, rgba(11,11,12,0.15) 72%, rgba(11,11,12,0.5) 100%),
              linear-gradient(180deg, rgba(11,11,12,0.5), rgba(11,11,12,0.85));
}
.hero__inner { position: relative; z-index: 2; padding-top: 6rem; }
.hero h1 {
  font-weight: 800;
  font-size: clamp(3rem, 10vw, 6.5rem);
  line-height: 0.95;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}
.hero p { color: var(--muted); max-width: 34ch; margin-top: 1.6rem; font-size: 1.02rem; }
.hero__actions { display: flex; gap: 0.8rem; margin-top: 2.2rem; flex-wrap: wrap; }

/* ==========================================================================
   PAGE HEADER (inner pages)
   ========================================================================== */
.page-header {
  position: relative;
  padding-top: clamp(8rem, 14vw, 11rem);
  padding-bottom: clamp(2.5rem, 6vw, 4rem);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.page-header::before {
  content: "";
  position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(120% 90% at 82% 0%, rgba(255,255,255,0.05), transparent 55%),
    linear-gradient(180deg, #131315, var(--bg));
}
.page-header__inner { position: relative; z-index: 1; }
.page-header .crumb { color: var(--muted-2); font-size: 0.8rem; letter-spacing: 0.06em; }
.page-header .crumb a { color: var(--muted); }
.page-header .crumb a:hover { color: var(--white); }
.page-header h1 {
  font-weight: 800;
  font-size: clamp(2.4rem, 7vw, 4.6rem);
  line-height: 0.96;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  margin-top: 0.9rem;
}
.page-header p { color: var(--muted); max-width: 52ch; margin-top: 1.1rem; font-size: 1.02rem; }

/* Section title left variant helper */
.section-title.left { text-align: left; }

/* ==========================================================================
   CTA BAND
   ========================================================================== */
.cta-band { position: relative; text-align: center; overflow: hidden; }
.cta-band::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background: radial-gradient(70% 90% at 50% 120%, rgba(255,255,255,0.06), transparent 70%);
}
.cta-band__inner { position: relative; z-index: 1; }
.cta-band h2 {
  font-weight: 800; text-transform: uppercase;
  font-size: clamp(2rem, 6vw, 4rem); line-height: 0.98; letter-spacing: -0.02em;
}
.cta-band p { color: var(--muted); max-width: 44ch; margin: 1.1rem auto 2rem; }
.cta-band .hero__actions { justify-content: center; }

/* ==========================================================================
   SERVICES
   ========================================================================== */
.services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1rem, 2vw, 1.4rem);
  margin-top: clamp(2rem, 4vw, 3rem);
}
.svc-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.35s var(--ease), border-color 0.35s var(--ease), background 0.35s var(--ease);
}
.svc-card:hover { transform: translateY(-6px); border-color: var(--line-2); background: var(--surface-2); }
.svc-card.featured { border-color: rgba(103, 189, 49, 0.45); background: var(--surface-2); }
.svc-card__img { aspect-ratio: 16 / 11; }
.svc-card__body { padding: 1.3rem 1.4rem 1.5rem; }
.svc-card__body h3 { font-size: 1.15rem; font-weight: 700; }
.svc-card__body p { color: var(--muted); font-size: 0.88rem; margin-top: 0.5rem; min-height: 3.2em; }
.svc-card__price { font-size: 1.35rem; font-weight: 800; margin-top: 1rem; color: var(--accent); }

/* ==========================================================================
   ABOUT
   ========================================================================== */
.about__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.6rem, 4vw, 3.5rem);
  align-items: center;
}
.about__img { aspect-ratio: 4 / 5; border-radius: var(--radius); border: 1px solid var(--line); }
.about__eyebrow { font-size: 0.8rem; letter-spacing: 0.24em; color: var(--accent); text-transform: uppercase; }
.about__quote {
  font-size: clamp(1.6rem, 3.6vw, 2.4rem);
  font-weight: 700;
  line-height: 1.15;
  margin-top: 1rem;
}
.about__text { color: var(--muted); margin-top: 1.4rem; max-width: 46ch; }
.about .btn { margin-top: 2rem; }

/* ==========================================================================
   EXPERIENCE TIMELINE
   ========================================================================== */
.timeline__track {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 0.5rem; margin-top: clamp(2rem, 4vw, 3rem);
  position: relative;
}
.timeline__track::before {
  content: ""; position: absolute; left: 6%; right: 6%; top: 26px; height: 1px;
  background: var(--line); z-index: 0;
}
.tl-step { display: flex; flex-direction: column; align-items: center; gap: 0.9rem; text-align: center; flex: 1; position: relative; z-index: 1; }
.tl-step__icon {
  width: 54px; height: 54px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--surface); border: 1px solid var(--line-2);
  transition: background 0.3s var(--ease), transform 0.3s var(--ease);
}
.tl-step:hover .tl-step__icon { background: var(--accent); border-color: var(--accent); transform: translateY(-3px); }
.tl-step:hover .tl-step__icon svg { stroke: #0b0b0c; }
.tl-step__icon svg { width: 22px; height: 22px; stroke: var(--white); transition: stroke 0.3s; }
.tl-step__label { font-size: 0.82rem; color: var(--muted); font-weight: 500; }

/* ==========================================================================
   BARBERS
   ========================================================================== */
.barbers__grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: clamp(0.9rem, 1.8vw, 1.3rem);
  margin-top: clamp(2rem, 4vw, 3rem);
}
.barber-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.35s var(--ease), border-color 0.35s var(--ease);
  display: flex;
  flex-direction: column;
}
.barber-card:hover { transform: translateY(-5px); border-color: var(--line-2); }
.barber-card__img { aspect-ratio: 4 / 5; }
.barber-card__body { padding: 1.1rem 1.2rem 1.3rem; display: flex; flex-direction: column; flex: 1; }
.barber-card__body h3 { font-size: 1.05rem; font-weight: 700; }
.barber-card__role { color: var(--accent); font-size: 0.76rem; margin-top: 0.2rem; }
.barber-card__meta { color: var(--muted); font-size: 0.82rem; margin-top: 0.8rem; margin-bottom: 1rem; }
.barber-card .btn { margin-top: auto; }

/* ==========================================================================
   GALLERY (masonry)
   ========================================================================== */
.gallery__grid {
  columns: 4;
  column-gap: clamp(0.7rem, 1.5vw, 1rem);
  margin-top: clamp(2rem, 4vw, 3rem);
}
.gallery__grid .g-item {
  break-inside: avoid;
  margin-bottom: clamp(0.7rem, 1.5vw, 1rem);
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  overflow: hidden;
}
.g-item .ph { width: 100%; }
.g-item:nth-child(4n+1) .ph { aspect-ratio: 3/4; }
.g-item:nth-child(4n+2) .ph { aspect-ratio: 1/1; }
.g-item:nth-child(4n+3) .ph { aspect-ratio: 4/5; }
.g-item:nth-child(4n) .ph { aspect-ratio: 3/5; }
.g-item .ph { transition: transform 0.6s var(--ease); }
.g-item:hover .ph { transform: scale(1.05); }

/* ==========================================================================
   TESTIMONIALS
   ========================================================================== */
.testi__wrap { margin-top: clamp(2rem, 4vw, 3rem); }
.testi__track {
  display: grid; grid-auto-flow: column;
  grid-auto-columns: minmax(300px, 1fr);
  gap: 1.2rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 1rem;
  scrollbar-width: none;
}
.testi__track::-webkit-scrollbar { display: none; }
.testi-card {
  scroll-snap-align: start;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.6rem 1.5rem;
}
.testi-card__mark { font-size: 2.4rem; line-height: 0.6; color: var(--accent); font-weight: 800; }
.testi-card p { color: var(--muted); margin-top: 0.8rem; font-size: 0.95rem; }
.testi-card__name { font-weight: 700; margin-top: 1.4rem; }
.testi-card__svc { color: var(--muted-2); font-size: 0.8rem; }
.testi__dots { display: flex; justify-content: center; gap: 0.5rem; margin-top: 1.4rem; }
.testi__dots span { width: 7px; height: 7px; border-radius: 50%; background: var(--line-2); }
.testi__dots span.active { background: var(--white); }

/* ==========================================================================
   BOOKING
   ========================================================================== */
.booking__card {
  max-width: 760px; margin: clamp(2rem, 4vw, 3rem) auto 0;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 18px; padding: clamp(1.6rem, 4vw, 2.6rem);
  box-shadow: var(--shadow);
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem 1.2rem; }
.field { display: flex; flex-direction: column; gap: 0.5rem; }
.field label { font-size: 0.85rem; color: var(--muted); }
.field input, .field select {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.8rem 0.9rem;
  color: var(--white);
  min-height: 46px;
  transition: border-color 0.25s var(--ease);
}
.field input::placeholder { color: var(--muted-2); }
.field input:focus, .field select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-dim); }
.field select { appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' fill='none' stroke='%23a1a1a3' stroke-width='2'%3E%3Cpath d='M2 4l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 0.9rem center;
}
.booking__submit { margin-top: 1.6rem; text-align: center; }
.booking__submit .btn { min-width: 220px; }

/* ==========================================================================
   LOCATION
   ========================================================================== */
.location__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; margin-top: clamp(2rem, 4vw, 3rem); }
.location__shop, .location__map { aspect-ratio: 16/10; border-radius: var(--radius); border: 1px solid var(--line); overflow: hidden; }
.location__map { position: relative; background: #1a1d20; display: grid; place-items: center; }
.location__map .maptag {
  position: absolute; bottom: 0.7rem; left: 0.7rem;
  font-size: 0.7rem; color: var(--muted); background: rgba(0,0,0,0.5); padding: 0.2rem 0.5rem; border-radius: 4px;
}
.location__map svg.pin { width: 34px; height: 34px; fill: var(--accent); }
.location__map .grid-bg { position: absolute; inset: 0;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 42px 42px; opacity: 0.5;
}
.location__info { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin-top: 1.6rem; }
.location__info h4 { font-size: 0.95rem; font-weight: 700; margin-bottom: 0.6rem; }
.location__info .row { display: flex; justify-content: space-between; color: var(--muted); font-size: 0.88rem; padding-block: 0.15rem; max-width: 22rem; }
.location__info p { color: var(--muted); font-size: 0.88rem; }

/* ==========================================================================
   CONTACT
   ========================================================================== */
.contact__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; align-items: center; margin-top: clamp(1.5rem, 3vw, 2.5rem); }
.contact__phone { font-size: clamp(1.8rem, 5vw, 2.8rem); font-weight: 800; letter-spacing: -0.01em; }
.contact__list { display: grid; gap: 0.9rem; }
.contact__list li { display: flex; align-items: center; gap: 0.8rem; color: var(--muted); }
.contact__list svg { width: 18px; height: 18px; stroke: var(--muted); flex: none; }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer { border-top: 1px solid var(--line); background: var(--bg-2); padding-top: clamp(2.5rem, 5vw, 3.5rem); }
.footer__top { display: grid; grid-template-columns: 2fr 1fr 1fr auto; gap: 2rem; padding-bottom: 2.5rem; }
.footer__brand { font-weight: 800; font-size: 1.2rem; letter-spacing: 0.14em; }
.footer h5 { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--muted-2); margin-bottom: 1rem; }
.footer__col a { display: block; color: var(--muted); font-size: 0.9rem; padding-block: 0.3rem; transition: color 0.25s; }
.footer__col a:hover { color: var(--accent); }
.footer__social { display: flex; gap: 0.8rem; }
.footer__social a { width: 38px; height: 38px; border: 1px solid var(--line); border-radius: 8px; display: grid; place-items: center; transition: border-color 0.25s, background 0.25s; }
.footer__social a:hover { border-color: var(--line-2); background: var(--surface); }
.footer__social svg { width: 16px; height: 16px; }
.footer__bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0.6rem; padding-block: 1.6rem; border-top: 1px solid var(--line); color: var(--muted-2); font-size: 0.78rem; }

/* ==========================================================================
   REVEAL
   ========================================================================== */
[data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); transition-delay: var(--delay, 0s); }
[data-reveal].in { opacity: 1; transform: none; }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1000px) {
  .nav__links, .nav__right { display: none; }
  .nav__toggle { display: flex; }
  .services__grid { grid-template-columns: repeat(2, 1fr); }
  .barbers__grid { grid-template-columns: repeat(2, 1fr); }
  .gallery__grid { columns: 3; }
  .footer__top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .about__grid { grid-template-columns: 1fr; }
  .about__img { max-width: 420px; }
  .form-grid { grid-template-columns: 1fr; }
  .location__grid, .location__info { grid-template-columns: 1fr; }
  .contact__grid { grid-template-columns: 1fr; }
  .timeline__track { overflow-x: auto; gap: 1.4rem; justify-content: flex-start; scrollbar-width: none; }
  .timeline__track::before { display: none; }
  .tl-step { min-width: 92px; }
  .gallery__grid { columns: 2; }
}
@media (max-width: 520px) {
  .services__grid { grid-template-columns: 1fr; }
  .barbers__grid { grid-template-columns: 1fr 1fr; }
  .footer__top { grid-template-columns: 1fr; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
  [data-reveal] { opacity: 1; transform: none; }
}
