/* Inspirada Barbershop — site styles
   Layout: quiet editorial portfolio. Expanded uppercase headlines, a price board
   with dotted leaders, a feature gallery that links to a full gallery page.
   Palette: light stone, charcoal type, one muted warm-taupe accent.
   Deliberately single-theme (light) so photos sit on a calm neutral ground. */
:root {
  --bg: #efeeeb;           /* page ground, light stone */
  --surface: #e6e4e0;      /* raised surfaces, photo frames */
  --surface-2: #dcd9d3;    /* placeholder gradient, hover */
  --line: #cfcbc4;         /* hairlines */
  --fg: #1f1e1c;           /* primary text and primary buttons, charcoal */
  --mute: #66625b;         /* secondary text */
  --accent: #74685a;       /* muted warm taupe: eyebrows, prices, hover */
  --accent-deep: #5a5045;
  --on-accent: #f7f6f3;    /* text on charcoal/taupe buttons */
  --lb-bg: #161514;        /* photo viewer stays dark so photos read well */
  --lb-fg: #f2f0ec;

  --f-display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --f-body: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --f-serif: "Newsreader", Georgia, "Times New Roman", serif;

  --step--1: clamp(0.8rem, 0.78rem + 0.1vw, 0.86rem);
  --step-0: clamp(1rem, 0.97rem + 0.15vw, 1.08rem);
  --step-1: clamp(1.2rem, 1.1rem + 0.45vw, 1.45rem);
  --step-2: clamp(1.5rem, 1.3rem + 0.9vw, 2.1rem);
  --step-3: clamp(2rem, 1.5rem + 2.2vw, 3.4rem);
  --step-4: clamp(2.6rem, 1.6rem + 4.6vw, 5.6rem);

  --gutter: clamp(16px, 4vw, 48px);
  --maxw: 1240px;
  --radius: 2px;
  --ease: cubic-bezier(.2,.7,.2,1);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--f-body);
  font-size: var(--step-0);
  line-height: 1.6;
  font-variation-settings: "wdth" 100;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--accent); color: var(--on-accent); padding: 8px 14px; z-index: 100; }
.skip:focus { left: 8px; }

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

/* ---------- type ---------- */
.display {
  font-family: var(--f-display);
  font-weight: 700;
  font-stretch: 125%;
  font-variation-settings: "wdth" 125;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  line-height: 0.95;
  text-wrap: balance;
  margin: 0;
}
.eyebrow {
  font-size: var(--step--1);
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--accent);
  font-weight: 600;
  margin: 0 0 1rem;
}
.serif { font-family: var(--f-serif); font-style: italic; font-weight: 400; }
.lede { color: var(--mute); max-width: 38ch; font-size: var(--step-1); line-height: 1.5; margin: 0; }
h2.display { font-size: var(--step-3); }

/* ---------- buttons ---------- */
.btn {
  --b: var(--fg);
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  min-height: 52px; padding: 0 1.6em;
  font: 700 0.86rem/1 var(--f-body);
  letter-spacing: 0.16em; text-transform: uppercase; text-decoration: none;
  border: 1px solid var(--b); border-radius: var(--radius);
  color: var(--b); background: transparent; cursor: pointer;
  transition: background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease);
}
.btn:hover { background: var(--fg); color: var(--on-accent); }
.btn--primary { background: var(--fg); border-color: var(--fg); color: var(--on-accent); }
.btn--primary:hover { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.btn--lg { min-height: 64px; padding: 0 2.4em; font-size: 0.95rem; }
.btn .arrow { transition: transform .25s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 40;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 68px; }
.brand { text-decoration: none; display: flex; flex-direction: column; line-height: 1; }
.brand b { font-family: var(--f-display); font-weight: 800; font-variation-settings: "wdth" 125; letter-spacing: .06em; font-size: 1.05rem; text-transform: uppercase; }
.brand span { font-size: .62rem; letter-spacing: .34em; text-transform: uppercase; color: var(--accent); margin-top: 5px; }
.nav { display: flex; align-items: center; gap: clamp(1rem, 2.4vw, 2.2rem); }
.nav a.navlink { text-decoration: none; font-size: .78rem; letter-spacing: .18em; text-transform: uppercase; color: var(--mute); transition: color .2s; }
.nav a.navlink:hover { color: var(--fg); }
.nav .btn { min-height: 42px; padding: 0 1.2em; font-size: .74rem; }
@media (max-width: 760px) { .nav a.navlink { display: none; } }
.subnav { display: none; }
@media (max-width: 760px) {
  .subnav { display: flex; gap: 1.4rem; overflow-x: auto; padding: 0 var(--gutter) 10px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .subnav::-webkit-scrollbar { display: none; }
  .subnav a { flex: none; text-decoration: none; font-size: .74rem; letter-spacing: .16em; text-transform: uppercase; color: var(--mute); padding: 4px 0; }
  .subnav a:hover, .subnav a:focus-visible { color: var(--fg); }
  .site-header .wrap { min-height: 60px; }
  section { scroll-margin-top: 110px; }
}

/* ---------- photo frames & missing-photo state ---------- */
.frame { position: relative; margin: 0; background: var(--surface); overflow: hidden; }
.frame img { width: 100%; height: 100%; object-fit: cover; }
.frame .ph {
  display: none; position: absolute; inset: 0;
  align-items: flex-end; padding: 1rem;
  background:
    repeating-linear-gradient(135deg, transparent 0 14px, color-mix(in srgb, var(--accent) 7%, transparent) 14px 15px),
    linear-gradient(160deg, var(--surface-2), var(--surface));
  color: var(--mute); font-size: .74rem; letter-spacing: .14em; text-transform: uppercase;
}
.frame .ph::before { content: ""; position: absolute; top: 1rem; left: 1rem; width: 28px; height: 1px; background: var(--accent); }
.frame.is-missing img { visibility: hidden; }
.frame.is-missing .ph { display: flex; }

/* ---------- hero ---------- */
.hero { position: relative; border-bottom: 1px solid var(--line); }
.hero .wrap { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(1.5rem, 4vw, 4rem); align-items: center; padding-block: clamp(2.5rem, 7vw, 6rem); }
.hero h1 { font-size: var(--step-4); }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero .sub { font-family: var(--f-serif); font-style: italic; font-size: var(--step-2); line-height: 1.2; margin: 1.4rem 0 1rem; max-width: 24ch; color: var(--fg); }
.hero .desc { color: var(--mute); max-width: 44ch; margin: 0 0 2rem; }
.hero .ctas { display: flex; flex-wrap: wrap; gap: .8rem; }
.hero .frame { aspect-ratio: 1 / 1; max-width: 100%; }
.hero .copy > * { animation: rise .9s var(--ease) both; }
.hero .copy > :nth-child(2) { animation-delay: .08s; } .hero .copy > :nth-child(3) { animation-delay: .16s; }
.hero .copy > :nth-child(4) { animation-delay: .24s; } .hero .copy > :nth-child(5) { animation-delay: .32s; }
.hero .frame { animation: unveil 1.1s var(--ease) both; }
@keyframes rise { from { opacity: .001; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes unveil { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0 0 0 0); } }
.hero .meta { display: flex; flex-wrap: wrap; gap: .4rem 1.4rem; margin-top: 2.2rem; padding-top: 1.2rem; border-top: 1px solid var(--line); font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--mute); }
.hero .meta b { color: var(--fg); font-weight: 600; }
@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero .frame { order: -1; }
}

/* ---------- sections ---------- */
section { scroll-margin-top: 80px; }
.section { padding-block: clamp(4rem, 9vw, 8rem); border-bottom: 1px solid var(--line); }
.section-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 1.2rem 2rem; margin-bottom: clamp(2rem, 4vw, 3.5rem); }
.section-head .lede { max-width: 42ch; font-size: var(--step-0); }

/* ---------- gallery ---------- */
.gallery { columns: 3 280px; column-gap: 14px; }
.gallery button {
  display: block; width: 100%; margin: 0 0 14px; padding: 0; border: 0; background: none; cursor: zoom-in;
  break-inside: avoid; color: inherit; text-align: left;
}
.gallery .frame { aspect-ratio: var(--ar, 4 / 5); }
.gallery .frame img { transition: transform 1.2s var(--ease), filter .6s var(--ease); filter: saturate(.9); }
.gallery button:hover img { transform: scale(1.035); filter: saturate(1); }
.gallery .frame .ph { font-size: 0; }   /* caption already sits under each photo */
.gallery figcaption { font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: var(--mute); padding: .6rem 0 0; }
.gallery-foot { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }

.gallery--feature { columns: auto; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.gallery--feature button { margin: 0; }
.gallery--feature .frame { aspect-ratio: 4 / 5; }
@media (max-width: 420px) { .gallery--feature { gap: 8px; } }
.page-intro { padding-block: clamp(2.5rem, 6vw, 5rem) clamp(1.5rem, 3vw, 2.5rem); }
.page-intro h1 { font-size: var(--step-3); }
.back { display: inline-block; margin-bottom: 1.4rem; font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; color: var(--mute); text-decoration: none; }
.back:hover { color: var(--fg); }

/* lightbox */
.lightbox { border: 0; padding: 0; margin: 0; width: 100vw; height: 100vh; max-width: none; max-height: none; background: var(--lb-bg); color: var(--lb-fg); }
.lightbox::backdrop { background: var(--lb-bg); }
.lightbox[open] { display: grid; grid-template-rows: auto 1fr auto; }
.lb-bar { display: flex; justify-content: space-between; align-items: center; padding: max(14px, env(safe-area-inset-top, 0px)) var(--gutter) 14px; font-size: .74rem; letter-spacing: .16em; text-transform: uppercase; color: #a8a49c; }
.lb-stage { position: relative; display: grid; place-items: center; padding: 0 var(--gutter); min-height: 0; touch-action: pan-y; }
.lb-stage .frame { width: min(100%, 900px); height: 100%; max-height: 78vh; background: transparent; }
.lb-stage .frame img { object-fit: contain; }
.lb-stage .frame.is-missing { background: #232220; aspect-ratio: 4/5; height: auto; width: min(100%, 520px); }
.lb-nav { display: flex; justify-content: center; gap: .8rem; padding: 14px var(--gutter) max(18px, env(safe-area-inset-bottom, 0px)); }
.icon-btn { width: 48px; height: 48px; display: grid; place-items: center; border: 1px solid #3a3835; background: #232220; color: var(--lb-fg); border-radius: 50%; cursor: pointer; font-size: 1.1rem; transition: border-color .2s, background .2s; }
.icon-btn:hover { border-color: #a8a49c; }

/* ---------- services (price board) ---------- */
.board { border-top: 1px solid var(--line); }
.svc {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .6rem 2rem; align-items: start;
  padding: clamp(1.4rem, 3vw, 2.2rem) 0; border-bottom: 1px solid var(--line);
  transition: background .3s var(--ease);
}
.svc-top { display: flex; align-items: baseline; gap: 1rem; min-width: 0; }
.svc h3 { margin: 0; font-family: var(--f-display); font-variation-settings: "wdth" 112; font-weight: 700; text-transform: uppercase; letter-spacing: .02em; font-size: var(--step-1); line-height: 1.15; }
.svc .leader { flex: 1; border-bottom: 1px dotted var(--line); transform: translateY(-.35em); min-width: 1.5rem; }
.svc .price { font-family: var(--f-serif); font-size: var(--step-2); color: var(--accent); font-variant-numeric: tabular-nums lining-nums; line-height: 1; }
.svc p { margin: 0; color: var(--mute); max-width: 58ch; grid-column: 1; }
.svc .btn { grid-column: 2; grid-row: 1 / span 2; align-self: center; }
.svc:hover { background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--accent) 6%, transparent), transparent); }
.svc-note { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem 2rem; align-items: center; padding: 1.4rem 0; color: var(--mute); font-size: .95rem; border-bottom: 1px solid var(--line); }
.svc-note strong { color: var(--fg); font-weight: 600; }
.svc-note a { color: var(--accent); text-underline-offset: 4px; }
.pay-note { margin: 1.4rem 0 0; color: var(--mute); font-size: .9rem; }
@media (max-width: 680px) {
  .svc { grid-template-columns: 1fr; }
  .svc .btn { grid-column: 1; grid-row: auto; width: 100%; margin-top: .6rem; }
}

/* ---------- barber ---------- */
.barber .wrap { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(2rem, 6vw, 6rem); align-items: center; }
.barber .frame { aspect-ratio: 4 / 5; }
.barber blockquote { margin: 1.6rem 0 2rem; font-family: var(--f-serif); font-size: var(--step-1); line-height: 1.55; max-width: 46ch; }
.specialties { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0 0 2.2rem; padding: 0; list-style: none; }
.specialties li { border: 1px solid var(--line); padding: .45rem .9rem; font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: var(--mute); }
@media (max-width: 860px) { .barber .wrap { grid-template-columns: 1fr; } }

/* ---------- reviews ---------- */
.reviews-panel {
  display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 2rem; align-items: center;
  border: 1px solid var(--line); background: var(--surface); padding: clamp(1.6rem, 4vw, 3.4rem);
}
.reviews-panel .g-mark { font-family: var(--f-serif); font-size: clamp(4rem, 9vw, 7rem); line-height: .8; color: var(--accent); margin: 0 0 .6rem; }
.reviews-panel p { color: var(--mute); margin: 0; max-width: 46ch; }
.reviews-panel .actions { display: flex; flex-direction: column; gap: .8rem; align-items: stretch; }
#review-list { columns: 3 280px; column-gap: 14px; margin-top: 14px; }
#review-list:empty { display: none; }
.review { border: 1px solid var(--line); padding: 1.6rem; margin: 0 0 14px; break-inside: avoid; }
.review p { font-family: var(--f-serif); font-size: 1.1rem; margin: 0 0 1rem; }
.review footer { font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: var(--mute); }
@media (max-width: 760px) { .reviews-panel { grid-template-columns: 1fr; } }

/* ---------- FAQ ---------- */
.faq-wrap { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 2rem clamp(2rem, 6vw, 6rem); align-items: start; }
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.3rem 0; font-weight: 600; font-size: var(--step-1); line-height: 1.3; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-weight: 400; font-size: 1.5rem; color: var(--accent); transition: transform .25s var(--ease); flex: none; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary:hover { color: var(--accent-deep); }
.faq details p { margin: 0 0 1.4rem; color: var(--mute); max-width: 58ch; }
.faq details p a { color: var(--fg); text-underline-offset: 4px; margin-left: .3em; white-space: nowrap; }
@media (max-width: 860px) { .faq-wrap { grid-template-columns: 1fr; } }

/* ---------- visit ---------- */
.visit-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.visit-cell { padding: 2rem 2rem 2rem 0; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: .9rem; }
.visit-cell + .visit-cell { padding-left: 2rem; border-left: 1px solid var(--line); }
.visit-cell .k { font-size: .72rem; letter-spacing: .22em; text-transform: uppercase; color: var(--accent); }
.visit-cell .v { font-size: var(--step-1); line-height: 1.35; font-variant-numeric: tabular-nums; }
.visit-cell .btn { align-self: flex-start; margin-top: auto; }
@media (max-width: 860px) {
  .visit-grid { grid-template-columns: 1fr; }
  .visit-cell, .visit-cell + .visit-cell { padding: 1.6rem 0; border-left: 0; }
  .visit-cell .btn { width: 100%; }
}

/* ---------- final CTA ---------- */
.final { text-align: center; padding-block: clamp(5rem, 12vw, 10rem); border-bottom: 1px solid var(--line);
  background: radial-gradient(ellipse at 50% 120%, color-mix(in srgb, var(--accent) 12%, transparent), transparent 60%), var(--bg); }
.final h2 { font-size: var(--step-4); margin-inline: auto; max-width: 14ch; }
.final p { color: var(--mute); max-width: 40ch; margin: 1.4rem auto 2.4rem; font-size: var(--step-1); }

/* ---------- footer ---------- */
.site-footer { padding-block: 3.5rem calc(3.5rem + 76px); color: var(--mute); font-size: .92rem; }
.site-footer .cols { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 2rem; }
.site-footer h4 { margin: 0 0 .8rem; font-size: .72rem; letter-spacing: .22em; text-transform: uppercase; color: var(--fg); font-weight: 600; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.site-footer a { text-decoration: none; transition: color .2s; }
.site-footer a:hover { color: var(--accent); }
.site-footer address { font-style: normal; }
.legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; margin-top: 3rem; padding-top: 1.4rem; border-top: 1px solid var(--line); font-size: .8rem; }
@media (min-width: 761px) { .site-footer { padding-bottom: 3.5rem; } }
@media (max-width: 860px) { .site-footer .cols { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .site-footer .cols { grid-template-columns: 1fr; } }

/* ---------- sticky mobile booking bar ---------- */
.book-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px));
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--line);
  display: none; gap: 10px;
  transform: translateY(110%); transition: transform .35s var(--ease);
}
.book-bar.is-visible { transform: none; }
.book-bar .btn { flex: 1; min-height: 52px; }
.book-bar .btn--call { flex: 0 0 52px; padding: 0; }
@media (max-width: 760px) { .book-bar { display: flex; } }

/* ---------- prose pages (privacy) ---------- */
.prose { max-width: 68ch; padding-block: clamp(3rem, 7vw, 6rem); }
.prose h1 { font-size: var(--step-3); margin-bottom: 1rem; }
.prose h2 { font-size: var(--step-1); margin: 2.4rem 0 .6rem; font-weight: 700; }
.prose p, .prose li { color: var(--mute); }
.prose a { color: var(--accent); }

/* ---------- tracking debug panel (only shown when debug is on) ---------- */
.trk-debug { position: fixed; right: 12px; bottom: 84px; z-index: 60; width: min(360px, calc(100vw - 24px)); max-height: 46vh; overflow: auto;
  background: #1a1917; border: 1px solid #3a3835; font: 12px/1.45 ui-monospace, SFMono-Regular, Menlo, monospace; color: #f2f0ec; }
.trk-debug header { position: sticky; top: 0; display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 8px 10px; background: #26241f; color: #d8d2c6; letter-spacing: .08em; text-transform: uppercase; font-size: 11px; }
.trk-debug header button { background: none; border: 1px solid #3a3835; color: #a8a49c; font: inherit; padding: 2px 8px; cursor: pointer; }
.trk-debug ol { margin: 0; padding: 6px 10px 10px 28px; }
.trk-debug li { padding: 6px 0; border-bottom: 1px solid #33312d; word-break: break-word; }
.trk-debug li b { color: #d8d2c6; }
.trk-debug .empty { padding: 10px; color: #a8a49c; }
@media (min-width: 761px) { .trk-debug { bottom: 12px; } }
