/* Barber theme — dark, moody, gold. Display type: Bebas Neue; body: Inter.
   Brand colours injected per-client as --gold / --gold-soft. */

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

:root {
  --bg: #0c0a09;
  --bg-alt: #121008;
  --card: #171310;
  --fg: #f2ede6;
  --fg-muted: #a89f92;
  --border: #2a241d;
  --wrap: 1120px;
  --font: "Inter", system-ui, sans-serif;
  --display: "Bebas Neue", "Arial Narrow", sans-serif;
}

/* scroll-behavior removed: Lenis owns scroll (falls back to instant anchors) */
body {
  font-family: var(--font);
  color: var(--fg);
  background-color: var(--page-bg, var(--bg));
  background-image: radial-gradient(1200px 500px at 70% -10%, rgba(212,166,67,.07), transparent 60%);
  transition: background-color 1.2s ease;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* content sits above the decorative layers */
.site-header, main, .site-footer, .fab { position: relative; z-index: 2; }
.site-header { z-index: 50; }

/* ---------- scroll progress ---------- */
.scroll-progress {
  position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 90;
  pointer-events: none;
}
.scroll-progress i {
  display: block; height: 100%; width: 0;
  background: linear-gradient(90deg, var(--gold), var(--gold-soft));
}

/* ---------- floating tools ---------- */
.float-layer {
  position: fixed; inset: 0; z-index: 1;
  pointer-events: none; overflow: hidden;
}
.fl {
  position: absolute; width: var(--s, 90px); color: var(--gold);
  opacity: .16; will-change: transform;
}
.fl svg { width: 100%; height: auto; rotate: var(--r, 0deg); animation: bob 8s ease-in-out infinite alternate; }
.fl:nth-child(2n) svg { animation-duration: 11s; animation-delay: -3s; }
.fl:nth-child(3n) svg { animation-duration: 14s; animation-delay: -6s; }
.fl[data-depth=".3"], .fl[data-depth=".35"] { filter: blur(1.5px); opacity: .1; }
.fl[data-depth=".8"], .fl[data-depth=".9"] { opacity: .22; }
@keyframes bob {
  from { translate: 0 -10px; rotate: var(--r, 0deg); }
  to   { translate: 0 10px;  rotate: calc(var(--r, 0deg) + 8deg); }
}
@media (max-width: 700px) {
  .fl { --s: 64px !important; }
  .fl[data-depth=".3"], .fl[data-depth=".35"], .fl[data-depth=".45"] { display: none; }
}

/* ---------- grain ---------- */
.grain {
  position: fixed; inset: -50%; z-index: 3; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.5'/%3E%3C/svg%3E");
  opacity: .05;
  animation: grain-shift 9s steps(6) infinite;
}
@keyframes grain-shift {
  0%,100% { transform: translate(0,0); } 20% { transform: translate(-4%,3%); }
  40% { transform: translate(3%,-4%); } 60% { transform: translate(-3%,-2%); }
  80% { transform: translate(4%,2%); }
}

h1, h2, h3, h4 { line-height: 1.1; font-weight: 700; }
.display {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(3rem, 9vw, 6.5rem);
  letter-spacing: .02em;
  text-transform: uppercase;
}
.display-sm {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(2rem, 5vw, 3.25rem);
  letter-spacing: .03em;
  text-transform: uppercase;
  margin-bottom: 2rem;
}
.display-sm::after {
  content: "";
  display: block;
  width: 64px; height: 3px;
  background: var(--gold);
  margin-top: .75rem;
}
p + p { margin-top: 1rem; }
a { color: var(--gold-soft); }
img { max-width: 100%; height: auto; display: block; }
code { color: var(--gold-soft); }

.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.center { text-align: center; }
.center .display-sm::after, .center .display::after { margin-inline: auto; }
.muted { color: var(--fg-muted); }
.small { font-size: .875rem; }
.center-lede { margin-inline: auto; }

.skip { position: absolute; left: -9999px; background: var(--gold); color: #000; padding: .75rem 1rem; z-index: 100; }
.skip:focus { left: 1rem; top: 1rem; }

/* ---------- reveal ---------- */
[data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
[data-reveal].in { opacity: 1; transform: none; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(12,10,9,.82);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .875rem 0; }
.logo {
  display: flex; align-items: center; gap: .6rem;
  font-family: var(--display); font-size: 1.375rem; letter-spacing: .05em;
  text-transform: uppercase; color: var(--fg); text-decoration: none;
}
.pole { width: 20px; height: 36px; color: var(--fg-muted); }
.site-header nav { display: flex; align-items: center; gap: 1.4rem; }
.site-header nav a { color: var(--fg-muted); text-decoration: none; font-size: .9rem; font-weight: 500; }
.site-header nav a:hover { color: var(--gold-soft); }
@media (max-width: 720px) { .site-header nav a:not(.btn) { display: none; } }

/* ---------- buttons ---------- */
.btn {
  display: inline-block;
  background: var(--gold); color: #14100a;
  padding: .875rem 1.75rem; border-radius: 999px;
  text-decoration: none; font-weight: 700; font-size: .9375rem;
  border: 1px solid transparent; cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(212,166,67,.35); }
.btn-ghost { background: transparent; color: var(--fg); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--gold); box-shadow: none; }
.btn-sm { padding: .5rem 1.1rem; font-size: .85rem; }
.cta-row { display: flex; flex-wrap: wrap; gap: .875rem; margin-top: 2rem; }
.cta-row.center { justify-content: center; }

.fab {
  position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 60;
  background: var(--gold); color: #14100a;
  padding: .875rem 1.5rem; border-radius: 999px;
  font-weight: 700; font-size: .9375rem; text-decoration: none;
  box-shadow: 0 10px 30px rgba(0,0,0,.5);
}
@media (min-width: 900px) { .fab { display: none; } }

/* ---------- hero ---------- */
.hero { position: relative; padding: clamp(5rem, 13vw, 9rem) 0; overflow: hidden; }
.hero.compact { padding: clamp(3rem, 7vw, 5rem) 0; }
.hero-glow {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(700px 340px at 18% 20%, rgba(212,166,67,.16), transparent 65%),
    radial-gradient(500px 300px at 85% 80%, rgba(212,166,67,.07), transparent 60%);
}
.hero-lines { position: absolute; inset: auto 0 0 0; width: 100%; height: 55%; pointer-events: none; }
.hero .wrap { position: relative; }
.eyebrow {
  text-transform: uppercase; letter-spacing: .22em; font-size: .78rem;
  font-weight: 700; color: var(--gold); margin-bottom: 1rem;
}
.lede { font-size: 1.125rem; color: var(--fg-muted); max-width: 58ch; margin-top: 1.25rem; }

/* ---------- marquee ---------- */
.marquee {
  border-block: 1px solid var(--border);
  background: rgba(18,16,8,.6);
  overflow: hidden; white-space: nowrap;
  padding: .8rem 0;
}
.marquee-track {
  display: inline-flex; align-items: center; gap: 2rem;
  animation: slide 26s linear infinite;
  font-family: var(--display); font-size: 1.1rem; letter-spacing: .14em;
  text-transform: uppercase; color: var(--fg-muted);
}
.marquee-track .dot { color: var(--gold); font-size: .9rem; }
@keyframes slide { to { transform: translateX(-50%); } }

/* ---------- sections ---------- */
.section { padding: clamp(3.5rem, 8vw, 6rem) 0; }
/* translucent so the floating layer glints through */
.section.alt { background: rgba(18,16,8,.62); border-block: 1px solid var(--border); }
.cta-band { text-align: center; }

/* ---------- price menu ---------- */
.menu { max-width: 760px; }
.menu-row {
  display: flex; align-items: baseline; gap: 1rem;
  padding: 1.25rem 0; border-bottom: 1px solid var(--border);
}
.menu-row h3 { font-size: 1.125rem; letter-spacing: .01em; }
.menu-row .muted { font-size: .9rem; max-width: 44ch; }
.leader { flex: 1; border-bottom: 1px dotted var(--border); transform: translateY(-6px); }
.menu-price {
  font-family: var(--display); font-size: 1.6rem; color: var(--gold);
  letter-spacing: .04em; white-space: nowrap;
}

/* ---------- gallery ---------- */
.gallery { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); margin-bottom: 1.25rem; }
.shot {
  position: relative; border-radius: 14px; overflow: hidden;
  border: 1px solid var(--border); aspect-ratio: 3 / 4; background: var(--card);
  transition: transform .25s ease;
}
.shot:hover { transform: translateY(-4px); }
.shot img, .shot svg { width: 100%; height: 100%; object-fit: cover; }
.shot figcaption {
  position: absolute; inset: auto 0 0 0; padding: .6rem .9rem;
  font-size: .8rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  background: linear-gradient(transparent, rgba(0,0,0,.75)); color: var(--fg);
}
.tile.t1 svg circle { opacity: .7; }
.tile.t2 svg circle { opacity: .45; }
.tile.t3 svg circle { opacity: .85; }

/* ---------- instagram embeds ---------- */
.insta-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.insta-embed {
  position: relative; border-radius: 14px; overflow: hidden;
  border: 1px solid var(--border); background: var(--card);
  aspect-ratio: 9 / 14;
  transition: transform .25s ease, border-color .25s ease;
}
.insta-embed:hover { transform: translateY(-4px); border-color: var(--gold); }
.insta-embed iframe { width: 100%; height: 100%; border: 0; display: block; }

/* ---------- team ---------- */
.grid { display: grid; gap: 1.25rem; }
.team { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.person {
  background: var(--card); border: 1px solid var(--border);
  border-radius: 14px; padding: 1.75rem; text-align: center;
}
.avatar {
  width: 72px; height: 72px; border-radius: 50%;
  margin: 0 auto 1rem; display: grid; place-items: center;
  font-family: var(--display); font-size: 1.5rem; color: var(--gold);
  background: rgba(212,166,67,.1); border: 1px solid rgba(212,166,67,.35);
}
.person h3 { font-size: 1.0625rem; }
.role { color: var(--gold-soft); font-size: .8rem; text-transform: uppercase; letter-spacing: .12em; font-weight: 700; margin: .25rem 0 .75rem; }
.person .muted { font-size: .9rem; }

/* ---------- quotes ---------- */
.quotes { grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); }
.quote { background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: 1.5rem; margin: 0; }
.stars { color: var(--gold); letter-spacing: .12em; margin-bottom: .75rem; }
.quote figcaption { margin-top: 1rem; font-size: .875rem; color: var(--fg-muted); font-weight: 600; }

/* ---------- contact ---------- */
.contact-grid { display: grid; gap: 3rem; grid-template-columns: 1.4fr 1fr; align-items: start; }
@media (max-width: 800px) { .contact-grid { grid-template-columns: 1fr; } }
.book-card {
  background: var(--card); border: 1px solid var(--gold);
  border-radius: 14px; padding: 1.75rem; margin-bottom: 2rem;
}
.book-card h2 { font-size: 1.25rem; margin-bottom: .375rem; }
.book-card .btn { margin-top: 1.25rem; }
.form { display: grid; gap: 1rem; }
.form h2 { font-size: 1.25rem; }
.form label { display: grid; gap: .375rem; font-weight: 600; font-size: .9375rem; }
.form input, .form select, .form textarea {
  font: inherit; font-weight: 400; padding: .8rem .9rem;
  border: 1px solid var(--border); border-radius: 10px;
  background: var(--bg-alt); color: var(--fg); width: 100%;
}
.form input:focus, .form select:focus, .form textarea:focus {
  outline: 2px solid var(--gold); outline-offset: 1px; border-color: var(--gold);
}
.form button { justify-self: start; }
.hp { position: absolute; left: -9999px; }
.contact-side h2 { font-size: 1.25rem; margin-bottom: .5rem; }
.contact-side h3 { margin: 1.5rem 0 .5rem; font-size: 1rem; }
.big { font-size: 1.6rem; font-weight: 700; }
.big a { text-decoration: none; color: var(--fg); }

.hours { list-style: none; padding: 0; font-size: .9375rem; }
.hours li { display: flex; justify-content: space-between; gap: 1.5rem; padding: .25rem 0; color: var(--fg-muted); }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--border); background: var(--bg-alt); padding-top: 3rem; }
.footer-grid { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); padding-bottom: 2rem; }
.footer-word { font-family: var(--display); font-size: 1.5rem; letter-spacing: .05em; text-transform: uppercase; }
.site-footer h4 { font-size: .8rem; text-transform: uppercase; letter-spacing: .12em; color: var(--fg-muted); margin-bottom: .75rem; }
.site-footer a { color: var(--fg); text-decoration: none; }
.site-footer a:hover { color: var(--gold-soft); }
.legal { border-top: 1px solid var(--border); padding: 1.25rem 0; }

/* fallback pages (default service template rendered under this theme) */
.ticks { padding-left: 0; list-style: none; margin: 1rem 0; }
.ticks li { padding-left: 1.75rem; position: relative; margin-bottom: .5rem; }
.ticks li::before { content: "✓"; position: absolute; left: 0; color: var(--gold); font-weight: 700; }
details { border-bottom: 1px solid var(--border); padding: 1rem 0; }
details summary { cursor: pointer; font-weight: 600; }
details p { margin-top: .75rem; color: var(--fg-muted); }
.crumbs { font-size: .875rem; color: var(--fg-muted); margin-bottom: 1rem; }
.narrow { max-width: 720px; }
.price { font-family: var(--display); color: var(--gold); font-size: 1.4rem; margin-top: .75rem; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
  [data-reveal] { opacity: 1; transform: none; }
}

/* ---- 2026 playbook: compositor scroll-driven reveals + view transitions ---- */
@view-transition { navigation: auto; }
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    [data-reveal] {
      opacity: 1; transform: none; transition: none;
      animation: pw-reveal both;
      animation-timeline: view();
      animation-range: entry 0% entry 42%;
    }
  }
}
@keyframes pw-reveal {
  from { opacity: 0; transform: translateY(26px); }
  to   { opacity: 1; transform: none; }
}
