/* =========================================================================
   Marino Barbero — The Barber Shop
   Dark charcoal + gold. Serif headings (Georgia), system sans body.
   Premium, warm, understated. No web fonts → fast.
   ========================================================================= */

:root {
  --gold: #c9a24b;
  --gold-soft: #d9b871;
  --cream: #f3ede3;
  --cream-2: #f6efe2;
  --ink: #100f0d;
  --ink-2: #17150f;
  --panel: #1b1813;
  --line: rgba(201, 162, 75, 0.22);
  --stone: #b9b1a6;
  --stone-dim: #8b8378;

  --serif: Georgia, "Times New Roman", "Playfair Display", serif;
  --sans: "Helvetica Neue", Arial, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --wrap: 1200px;
  --pad: clamp(1.2rem, 5vw, 3rem);
  --r: 4px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  background: var(--ink);
  color: var(--cream);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.05; letter-spacing: -0.01em; }
h2 { font-size: clamp(2rem, 5vw, 3.4rem); }
h3 { font-size: 1.25rem; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--pad); }

.eyebrow {
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}

.sec-head { margin-bottom: clamp(2rem, 5vw, 3.5rem); max-width: 40ch; }

/* ---------- buttons ---------- */
.btn {
  --bg: var(--gold);
  display: inline-flex; align-items: center; gap: 0.55em;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  padding: 0.95em 1.6em;
  border-radius: var(--r);
  border: 1px solid var(--gold);
  cursor: pointer;
  transition: background 0.35s var(--ease), color 0.35s var(--ease), transform 0.2s var(--ease);
  will-change: transform;
}
.btn:hover { background: var(--gold-soft); }
.btn .arr { transition: transform 0.35s var(--ease); }
.btn:hover .arr { transform: translateX(4px); }
.btn--ghost { background: transparent; color: var(--cream); border-color: rgba(243, 237, 227, 0.35); }
.btn--ghost:hover { background: rgba(243, 237, 227, 0.08); border-color: var(--cream); }
.btn--nav { padding: 0.7em 1.2em; font-size: 0.82rem; }

/* ---------- nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 60;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.1rem var(--pad);
  transition: background 0.4s var(--ease), padding 0.4s var(--ease), border-color 0.4s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(16, 15, 13, 0.86);
  backdrop-filter: blur(12px);
  padding-block: 0.7rem;
  border-bottom-color: var(--line);
}
.nav__logo {
  font-family: var(--serif);
  font-size: 1.15rem;
  letter-spacing: 0.16em;
  color: var(--cream);
  display: flex; gap: 0.4em;
}
.nav__logo em { color: var(--gold); font-style: normal; }
.nav__menu { display: flex; align-items: center; gap: clamp(1rem, 2.5vw, 2.2rem); }
.nav__links { display: flex; gap: clamp(1rem, 2vw, 1.9rem); }
.nav__links a {
  font-size: 0.82rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--stone);
  position: relative; padding-bottom: 3px; transition: color 0.3s var(--ease);
}
.nav__links a::after {
  content: ""; position: absolute; left: 0; bottom: 0; width: 0; height: 1px; background: var(--gold); transition: width 0.35s var(--ease);
}
.nav__links a:hover { color: var(--cream); }
.nav__links a:hover::after { width: 100%; }
.lang { display: flex; gap: 0.5rem; font-size: 0.78rem; letter-spacing: 0.06em; }
.lang a { color: var(--stone-dim); padding: 0.2em 0.15em; }
.lang a.active, .lang a:hover { color: var(--gold); }
.nav__burger { display: none; }

/* ---------- hero ---------- */
.hero { position: relative; min-height: 100svh; display: flex; align-items: flex-end; overflow: hidden; }
.hero__media { position: absolute; inset: 0; z-index: 0; }
.hero__media img { width: 100%; height: 115%; object-fit: cover; object-position: center; will-change: transform; }
.hero__scrim {
  position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(180deg, rgba(16,15,13,0.55) 0%, rgba(16,15,13,0.15) 32%, rgba(16,15,13,0.55) 70%, rgba(16,15,13,0.95) 100%),
    radial-gradient(120% 90% at 20% 100%, rgba(16,15,13,0.85), transparent 60%);
}
.hero__inner { position: relative; z-index: 2; padding-bottom: clamp(4rem, 12vh, 8rem); padding-top: 8rem; }
.hero .eyebrow { color: var(--gold-soft); }
.hero__title { font-size: clamp(2.9rem, 9vw, 6.6rem); font-weight: 500; max-width: 14ch; }
.hero__title .line { display: block; overflow: hidden; }
.hero__title .line span { display: block; }
.hero__title .line:last-child span { color: var(--gold); font-style: italic; }
.hero__sub { margin: 1.6rem 0 2.2rem; max-width: 46ch; color: var(--cream); font-size: clamp(1rem, 1.6vw, 1.18rem); opacity: 0.92; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.9rem; }
.scroll-cue {
  position: absolute; z-index: 2; bottom: 1.6rem; right: var(--pad);
  display: flex; align-items: center; gap: 0.7rem; color: var(--stone);
  font-size: 0.7rem; letter-spacing: 0.2em; text-transform: uppercase;
}
.scroll-cue .bar { width: 40px; height: 1px; background: var(--stone-dim); position: relative; overflow: hidden; }
.scroll-cue .bar::after { content: ""; position: absolute; inset: 0; width: 40%; background: var(--gold); animation: cue 2.4s var(--ease) infinite; }
@keyframes cue { 0% { transform: translateX(-100%); } 60%, 100% { transform: translateX(260%); } }

/* ---------- proof strip ---------- */
.proof { background: var(--ink-2); border-block: 1px solid var(--line); }
.proof__grid {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: clamp(1.5rem, 4vw, 3.5rem);
  padding-block: clamp(1.8rem, 4vw, 2.6rem);
}
.proof__score { display: flex; flex-direction: column; gap: 0.2rem; }
.proof__num { font-family: var(--serif); font-size: 2.6rem; line-height: 1; color: var(--cream); }
.proof__stars { color: var(--gold); letter-spacing: 0.15em; font-size: 1rem; }
.proof__meta { font-size: 0.78rem; letter-spacing: 0.08em; color: var(--stone); text-transform: uppercase; }
.proof__quote { font-family: var(--serif); font-style: italic; font-size: clamp(1.1rem, 2.4vw, 1.6rem); color: var(--cream-2); }
.proof__cta { font-size: 0.82rem; letter-spacing: 0.06em; color: var(--gold); white-space: nowrap; border-bottom: 1px solid transparent; transition: border-color 0.3s; }
.proof__cta:hover { border-bottom-color: var(--gold); }

/* ---------- marquee ---------- */
.marquee { overflow: hidden; padding-block: 1.1rem; border-bottom: 1px solid var(--line); background: var(--ink); }
.marquee__track { display: inline-flex; align-items: center; gap: 1.6rem; white-space: nowrap; will-change: transform; }
.marquee__track span { font-family: var(--serif); font-size: 1.35rem; color: var(--stone); letter-spacing: 0.02em; }
.marquee__track .dot { color: var(--gold); }

/* ---------- services ---------- */
.services { padding-block: clamp(4rem, 10vw, 7rem); }
.svc-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(2rem, 5vw, 3.5rem) clamp(2.5rem, 6vw, 5rem); }
.svc-group__title { color: var(--gold); font-size: 0.82rem; letter-spacing: 0.2em; text-transform: uppercase; font-family: var(--sans); margin-bottom: 1.1rem; padding-bottom: 0.7rem; border-bottom: 1px solid var(--line); }
.svc-list { list-style: none; }
.svc {
  display: grid; grid-template-columns: 1fr auto auto; align-items: baseline; gap: 0.6rem 1.2rem;
  padding: 0.85rem 0; border-bottom: 1px dashed rgba(185, 177, 166, 0.16);
}
.svc__name { font-size: 1.05rem; color: var(--cream); }
.svc__tag { color: var(--gold); font-size: 0.8rem; }
.svc__dur { font-size: 0.82rem; color: var(--stone-dim); letter-spacing: 0.04em; }
.svc__price { font-family: var(--serif); font-size: 1.2rem; color: var(--gold); min-width: 3ch; text-align: right; }
.svc--hero .svc__name { color: #fff; }
.svc-note { margin-top: 2rem; font-size: 0.85rem; color: var(--stone-dim); }
.svc-cta { margin-top: 2.4rem; }

/* ---------- about ---------- */
.about { padding-block: clamp(3rem, 8vw, 6rem); background: var(--ink-2); border-block: 1px solid var(--line); }
.about__grid { display: grid; grid-template-columns: 0.85fr 1fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.about__media { border-radius: var(--r); overflow: hidden; }
.about__media img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 3/4; }
.about__text p { color: var(--stone); margin-top: 1.1rem; max-width: 52ch; }
.about__text h2 { color: var(--cream); }
.about__quote {
  margin-top: 2rem; padding-left: 1.4rem; border-left: 2px solid var(--gold);
  font-family: var(--serif); font-style: italic; font-size: 1.35rem; color: var(--cream-2);
  display: flex; flex-direction: column; gap: 0.6rem;
}
.about__quote cite { font-size: 0.82rem; font-style: normal; letter-spacing: 0.06em; color: var(--stone-dim); }

/* ---------- gallery ---------- */
.gallery { padding-block: clamp(4rem, 10vw, 7rem); }
.gal__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(0.8rem, 2vw, 1.4rem); }
.gal__cell { overflow: hidden; border-radius: var(--r); }
.gal__cell img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4/3; transition: transform 0.9s var(--ease); }
.gal__cell:hover img { transform: scale(1.05); }
.gal__cell--wide { grid-column: 1 / -1; }
.gal__cell--wide img { aspect-ratio: 16/7; }

/* ---------- visit ---------- */
.visit { padding-block: clamp(4rem, 10vw, 7rem); background: var(--ink-2); border-top: 1px solid var(--line); }
.visit__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.visit__info { display: grid; grid-template-columns: 1fr 1fr; gap: 1.8rem 2rem; margin-top: 2rem; }
.visit__block h3 { font-family: var(--sans); font-size: 0.75rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); margin-bottom: 0.7rem; }
.visit__block p { color: var(--stone); }
.visit__block a { display: block; color: var(--cream); margin-top: 0.35rem; transition: color 0.3s; }
.visit__block a:hover { color: var(--gold); }
.visit__block--wide { grid-column: 1 / -1; }
.hours-table { width: 100%; max-width: 340px; border-collapse: collapse; }
.hours-table td { padding: 0.55rem 0; border-bottom: 1px dashed rgba(185, 177, 166, 0.16); color: var(--cream); }
.hours-table td:last-child { text-align: right; color: var(--gold); }
.visit__cta { margin-top: 2.4rem; }
.map { border-radius: var(--r); overflow: hidden; border: 1px solid var(--line); min-height: 380px; }
.map iframe { width: 100%; height: 100%; min-height: 380px; border: 0; filter: grayscale(0.35) contrast(1.05); }

/* ---------- footer ---------- */
.footer { padding-block: clamp(2.5rem, 6vw, 4rem); background: var(--ink); border-top: 1px solid var(--line); }
.footer__top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2rem; align-items: flex-start; }
.footer__brand { font-family: var(--serif); font-size: 1.5rem; letter-spacing: 0.14em; color: var(--cream); display: flex; flex-direction: column; gap: 0.4rem; }
.footer__brand span { font-family: var(--sans); font-size: 0.78rem; letter-spacing: 0.08em; color: var(--stone-dim); text-transform: none; }
.footer__links { display: flex; flex-wrap: wrap; gap: 1.4rem; }
.footer__links a { font-size: 0.85rem; letter-spacing: 0.04em; color: var(--stone); transition: color 0.3s; }
.footer__links a:hover { color: var(--gold); }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.8rem; margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--line); font-size: 0.78rem; color: var(--stone-dim); }

/* ---------- Floating booking icon + slide-in panel ---------- */
.book-fab {
  position: fixed; z-index: 56; right: clamp(1rem, 3vw, 1.8rem); bottom: clamp(1rem, 3vw, 1.8rem);
  width: 58px; height: 58px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--gold); color: var(--ink);
  border: 0; cursor: pointer;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
  transition: transform 0.35s var(--ease), background 0.3s var(--ease), box-shadow 0.3s var(--ease);
  will-change: transform;
}
.book-fab::before {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  border: 1px solid var(--gold); animation: fabPulse 2.8s var(--ease) infinite;
}
@keyframes fabPulse { 0% { transform: scale(1); opacity: 0.7; } 70%, 100% { transform: scale(1.6); opacity: 0; } }
.book-fab:hover { background: var(--gold-soft); transform: translateY(-2px) scale(1.05); }
body.bk-on .book-fab { transform: scale(0); pointer-events: none; }
@media (prefers-reduced-motion: reduce) { .book-fab::before { display: none; } }

.bk-backdrop {
  position: fixed; inset: 0; z-index: 90;
  background: rgba(8, 7, 6, 0.62); backdrop-filter: blur(4px);
  opacity: 0; visibility: hidden; transition: opacity 0.4s var(--ease), visibility 0.4s;
}
body.bk-on .bk-backdrop { opacity: 1; visibility: visible; }

.bk-panel {
  position: fixed; z-index: 95; top: 0; right: 0; bottom: 0;
  width: min(430px, 100%);
  background: var(--ink-2); border-left: 1px solid var(--line);
  box-shadow: -20px 0 60px rgba(0, 0, 0, 0.5);
  display: flex; flex-direction: column; gap: 1.2rem;
  padding: clamp(1.4rem, 4vw, 2.2rem);
  transform: translateX(100%); transition: transform 0.5s var(--ease);
  overflow-y: auto; overscroll-behavior: contain;
}
body.bk-on .bk-panel { transform: none; }
.bk-panel__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; }
.bk-title { color: var(--cream); font-size: clamp(1.8rem, 5vw, 2.4rem); }
.bk-close {
  flex: none; width: 40px; height: 40px; border-radius: 50%;
  background: transparent; color: var(--stone); border: 1px solid var(--line);
  font-size: 1.1rem; cursor: pointer; transition: color 0.3s, border-color 0.3s, transform 0.3s var(--ease);
}
.bk-close:hover { color: var(--gold); border-color: var(--gold); transform: rotate(90deg); }
.bk-intro { color: var(--stone); font-size: 0.95rem; margin-top: -0.4rem; }
.bk-rating { display: flex; align-items: center; gap: 0.6rem; font-size: 0.82rem; color: var(--cream); letter-spacing: 0.04em; }
.bk-rating__stars { color: var(--gold); letter-spacing: 0.12em; }
.bk-list { list-style: none; border-top: 1px solid var(--line); }
.bk-svc { display: flex; justify-content: space-between; gap: 1rem; padding: 0.7rem 0; border-bottom: 1px solid rgba(185, 177, 166, 0.12); font-size: 0.95rem; color: var(--cream); }
.bk-svc__price { color: var(--gold); font-family: var(--serif); }
.bk-foot { margin-top: auto; display: flex; flex-direction: column; gap: 0.7rem; align-items: flex-start; position: sticky; bottom: 0; padding-top: 1rem; background: linear-gradient(to top, var(--ink-2) 70%, transparent); }
.bk-go { width: 100%; justify-content: center; }
.bk-via { font-size: 0.72rem; letter-spacing: 0.06em; color: var(--stone-dim); text-transform: uppercase; align-self: center; }

/* ---------- custom cursor (desktop) ---------- */
.cursor, .cursor-dot { position: fixed; top: 0; left: 0; z-index: 100; pointer-events: none; border-radius: 50%; mix-blend-mode: difference; }
.cursor { width: 34px; height: 34px; border: 1px solid var(--cream); transition: width 0.3s var(--ease), height 0.3s var(--ease), background 0.3s; }
.cursor-dot { width: 5px; height: 5px; background: var(--cream); }
body.cursor-active .cursor { width: 54px; height: 54px; background: rgba(243, 237, 227, 0.12); }
@media (hover: none), (pointer: coarse) { .cursor, .cursor-dot { display: none; } }

/* ---------- reveal animations (only when JS is on → no-JS stays fully visible) ---------- */
.img-reveal { overflow: hidden; }
html.js .reveal, html.js .img-reveal img { opacity: 0; }
html.js .reveal { transform: translateY(28px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
html.js .reveal.in { opacity: 1; transform: none; }
html.js [data-stagger] > * { opacity: 0; transform: translateY(24px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
html.js [data-stagger].in > * { opacity: 1; transform: none; }
html.js .img-reveal img { transform: scale(1.12); transition: opacity 1s var(--ease), transform 1.3s var(--ease); }
html.js .img-reveal.in img { opacity: 1; transform: scale(1); }
@media (prefers-reduced-motion: reduce) {
  html.js .reveal, html.js .img-reveal img, html.js [data-stagger] > * { opacity: 1 !important; transform: none !important; }
}

/* ---------- responsive ---------- */
@media (max-width: 860px) {
  body { font-size: 16px; }
  .nav__menu { position: fixed; inset: 0; flex-direction: column; justify-content: center; gap: 2rem;
    background: rgba(16, 15, 13, 0.97); backdrop-filter: blur(10px);
    transform: translateX(100%); transition: transform 0.5s var(--ease); }
  body.menu-open .nav__menu { transform: none; }
  .nav__links { flex-direction: column; text-align: center; gap: 1.4rem; }
  .nav__links a { font-size: 1.1rem; }
  .nav__burger { display: flex; flex-direction: column; gap: 5px; z-index: 70; background: none; border: 0; cursor: pointer; padding: 6px; }
  .nav__burger span { width: 26px; height: 2px; background: var(--cream); transition: transform 0.35s var(--ease), opacity 0.35s; }
  body.menu-open .nav__burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  body.menu-open .nav__burger span:nth-child(2) { opacity: 0; }
  body.menu-open .nav__burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .proof__grid { grid-template-columns: 1fr; text-align: center; gap: 1.2rem; justify-items: center; }
  .svc-grid { grid-template-columns: 1fr; }
  .about__grid { grid-template-columns: 1fr; }
  .about__media { max-width: 420px; }
  .gal__grid { grid-template-columns: 1fr; }
  .gal__cell img, .gal__cell--wide img { aspect-ratio: 4/3; }
  .visit__grid { grid-template-columns: 1fr; }
  .footer__top { flex-direction: column; }
  /* the floating booking icon sits bottom-right on mobile — drop the scroll cue there to avoid overlap */
  .scroll-cue { display: none; }
  /* stack the hero CTAs full-width so both stay comfortably tappable on narrow screens */
  .hero__actions { flex-direction: column; align-items: stretch; }
  .hero__actions .btn { justify-content: center; }
}

/* ---------- cookie consent banner (Consent Mode v2) ---------- */
/* Bottom-left card on desktop so it clears the bottom-right booking fab; on mobile it
   lifts above the fab and spans the width. Shown by main.js only until a choice is made. */
.consent {
  position: fixed; z-index: 80;
  left: var(--pad); bottom: var(--pad);
  max-width: min(30rem, calc(100vw - 2 * var(--pad)));
  display: grid; gap: 0.9rem;
  padding: 1.1rem 1.2rem;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--r);
  box-shadow: 0 14px 44px rgba(0, 0, 0, 0.55);
  animation: consent-in 0.5s var(--ease) both;
}
.consent[hidden] { display: none; }
.consent__text { font-family: var(--sans); font-size: 0.85rem; line-height: 1.55; color: var(--stone); }
.consent__actions { display: flex; gap: 0.6rem; justify-content: flex-end; }
.consent__btn { padding: 0.62em 1.1em; font-size: 0.8rem; }
@keyframes consent-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .consent { animation: none; } }
@media (max-width: 560px) {
  /* clear the floating booking fab (bottom-right, ~3.4rem tall) by lifting the banner */
  .consent { left: var(--pad); right: var(--pad); bottom: calc(var(--pad) + 4.4rem); max-width: none; }
}

/* ---------- 404 page ---------- */
.nf-body { min-height: 100vh; display: flex; flex-direction: column; background: var(--ink); }
/* In-flow minimal header (the site nav is position:fixed; the 404 wants it in flow). */
.nav--min {
  position: static; background: rgba(16, 15, 13, 0.9);
  border-bottom: 1px solid var(--line); padding-block: 1rem;
}
.notfound {
  flex: 1; display: grid; place-items: center; text-align: center;
  padding: clamp(3.5rem, 12vh, 8rem) var(--pad);
  background: radial-gradient(120% 80% at 50% -10%, rgba(201, 162, 75, 0.1), transparent 60%), var(--ink);
}
.notfound__inner { max-width: 40rem; }
.notfound__code {
  font-family: var(--serif); font-weight: 700; line-height: 0.9;
  font-size: clamp(5.5rem, 20vw, 11rem); letter-spacing: 0.02em;
  color: transparent; -webkit-text-stroke: 1.4px var(--gold); opacity: 0.85;
  margin-bottom: 1.4rem;
}
.notfound__title {
  font-family: var(--serif); color: var(--cream);
  font-size: clamp(1.6rem, 5vw, 2.6rem); line-height: 1.12; margin-bottom: 1rem;
}
.notfound__text {
  font-family: var(--sans); color: var(--stone); line-height: 1.6;
  font-size: 1rem; max-width: 34rem; margin: 0 auto 2.2rem;
}
.notfound__actions { display: flex; flex-wrap: wrap; gap: 0.8rem; justify-content: center; }
