/* Hawthorne's Barbershop. Charcoal, walnut, brass. Calm and simple: no scroll tricks. */

:root {
  --char: #141412;
  --char-2: #1c1c1a;
  --char-3: #262522;
  --walnut: #6b4a2b;
  --walnut-2: #8b6038;
  --brass: #c9a063;
  --brass-bright: #ecc98b;
  --bone: #efe8da;
  --mute: rgba(239, 232, 218, .6);
  --faint: rgba(239, 232, 218, .38);
  --line: rgba(239, 232, 218, .12);

  --display: "Cormorant Garamond", "Iowan Old Style", Georgia, serif;
  --body: "Manrope", -apple-system, "Helvetica Neue", Arial, sans-serif;
  --pad: clamp(20px, 5vw, 64px);
  --max: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  overflow-x: clip; margin: 0; -webkit-tap-highlight-color: transparent;
  background: var(--char); color: var(--bone);
  font: 300 17px/1.6 var(--body); -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { font-family: var(--display); font-weight: 500; line-height: 1; letter-spacing: -.01em; margin: 0; }
h2 { font-size: clamp(46px, 6vw, 76px); }
p { margin: 0 0 1em; }
a { color: inherit; }
img { display: block; max-width: 100%; }
:focus-visible { outline: 2px solid var(--brass); outline-offset: 3px; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 max(var(--pad), env(safe-area-inset-right)) 0 max(var(--pad), env(safe-area-inset-left)); }
body:has(dialog[open]) { overflow: hidden; }   /* no page scrolling behind the booking sheet */
[hidden] { display: none !important; }
.eyebrow { font-size: 12px; font-weight: 500; letter-spacing: .22em; text-transform: uppercase; color: var(--brass); margin-bottom: 18px; }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 46px; padding: 0 22px; border-radius: 999px; border: 1px solid transparent;
  font: 500 15px/1 var(--body); text-decoration: none; cursor: pointer;
  transition: background .2s, color .2s, border-color .2s;
}
.btn--ink { background: var(--brass); color: var(--char); }
.btn--ink:hover { background: var(--brass-bright); }
.btn--line { background: transparent; color: var(--bone); border-color: rgba(239, 232, 218, .3); }
.btn--line:hover { border-color: var(--brass); color: var(--brass-bright); }
.btn--lg { height: 56px; padding: 0 30px; font-size: 16px; }

/* nav */
.top { position: sticky; top: 0; z-index: 20; }
section[id] { scroll-margin-top: var(--navh, 64px); }
.nav {
  display: flex; align-items: center; gap: 32px;
  padding: 14px var(--pad); background: rgba(20, 20, 18, .86);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav__mark { font: 500 26px/1 var(--display); text-decoration: none; }
.nav__links { display: flex; gap: 28px; margin-left: auto; }
.nav__links a { font-size: 14px; color: var(--mute); text-decoration: none; }
.nav__links a:hover { color: var(--bone); }
.nav__actions { display: flex; gap: 8px; }
.nav__actions .btn { height: 38px; padding: 0 18px; font-size: 14px; }

/* hero: the name over a drawing of the shop. The section is tall and the stage stays
   pinned under the nav, so scrolling walks the camera in (site.js sets --p from 0 to 1). */
.hero { position: relative; height: 230svh; border-bottom: 1px solid var(--line); }
.hero__stage {
  position: sticky; top: var(--navh, 64px); height: calc(100svh - var(--navh, 64px));
  overflow: hidden; display: flex; align-items: flex-end;
}
.hero__room { position: absolute; inset: 0; }
.hero__room svg { width: 100%; height: 100%; display: block; }
.hero__shade {   /* keeps the words readable; lifts as they fade */
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, rgba(20, 20, 18, .92) 0%, rgba(20, 20, 18, .55) 45%, rgba(20, 20, 18, .15) 100%),
              linear-gradient(0deg, var(--char) 0%, transparent 30%);
}
.hero__inner {
  position: relative; z-index: 1; width: 100%; max-width: var(--max); margin: 0 auto;
  padding: 0 var(--pad) clamp(40px, 7vh, 88px);
}
/* the chairs sit behind the words, so the words step aside while they spin */
.hero__inner { opacity: clamp(0, 1 - (var(--p, 0) - .04) * 3.4, 1); transform: translateY(calc(var(--p, 0) * -40px)); }
.hero__shade { opacity: calc(1 - var(--p, 0) * .8); }
.hero__cue {
  position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); z-index: 1;
  display: flex; align-items: center; gap: 10px; font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--faint);
  opacity: clamp(0, 1 - var(--p, 0) * 6, 1); white-space: nowrap;
}
.hero__cue i { width: 1px; height: 22px; background: linear-gradient(var(--brass), transparent); animation: cue 1.8s ease-in-out 6; }
@keyframes cue { 0%, 100% { transform: translateY(-3px); opacity: .4; } 50% { transform: translateY(3px); opacity: 1; } }
/* short screens (phones on their side) and reduced motion: no pin, just the picture */
@media (max-height: 520px) {   /* phone on its side: give the screen back to the page */
  .top { position: relative; }
  .draftbar__long { display: none; }
  .draftbar__short { display: inline; }
  .draft .draftbar { padding: 6px 14px; font-size: 13px; }
  .nav { padding-top: 10px; padding-bottom: 10px; }
  section[id] { scroll-margin-top: 0; }
}
@media (max-height: 520px), (prefers-reduced-motion: reduce) {
  .hero { height: auto; }
  .hero__stage { position: relative; top: 0; height: auto; min-height: 480px; padding-top: 72px; }
  .hero__inner { opacity: 1 !important; transform: none !important; }
  .hero__shade { opacity: 1 !important; }
  .hero__cue { display: none; }
}
.hero__where { font-size: 12px; font-weight: 500; letter-spacing: .22em; text-transform: uppercase; color: var(--brass); margin-bottom: 18px; }
.hero__where span { margin: 0 12px; color: var(--faint); }
.hero__word { font-weight: 500; font-size: min(calc((100vw - 2 * var(--pad)) / 4.6), 200px, 24svh); line-height: .9; letter-spacing: -.02em; margin-left: -.04em; }
.hero__row { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; margin-top: clamp(22px, 3vw, 34px); flex-wrap: wrap; }
.hero__lede { font-size: clamp(18px, 1.6vw, 21px); line-height: 1.55; color: var(--mute); margin: 0; max-width: 30em; }
.hero__cta { display: flex; gap: 10px; flex-wrap: wrap; }
.status { display: inline-flex; align-items: center; gap: 10px; margin: 28px 0 0; font-size: 14px; color: var(--mute); }
.status i { width: 7px; height: 7px; border-radius: 50%; background: var(--faint); }
.status.is-open { color: var(--bone); }
.status.is-open i { background: var(--brass-bright); box-shadow: 0 0 10px 2px rgba(236, 201, 139, .55); }

/* photos */
.photos {
  max-width: var(--max); margin: clamp(56px, 8vw, 96px) auto 0; padding: 0 var(--pad);
  display: grid; grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; gap: 12px;
  height: clamp(360px, 50vw, 600px);
}
.photos figure { margin: 0; min-height: 0; }
.photos__big { grid-row: span 2; }
.photos img { width: 100%; height: 100%; object-fit: cover; border-radius: 10px; }
.ph {
  height: 100%; display: grid; place-items: center; border-radius: 10px; padding: 12px;
  background: linear-gradient(160deg, var(--char-3), var(--char-2)); border: 1px solid var(--line);
  color: var(--faint); font-size: 14px; text-align: center;
}

/* prices: the brass list */
.prices { padding: clamp(80px, 11vw, 140px) 0; }
.prices__grid { display: grid; grid-template-columns: 1fr 1.5fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.prices__intro p { color: var(--mute); margin: 18px 0 28px; max-width: 22em; }
.menu { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.menu li { display: grid; grid-template-columns: auto 1fr auto; align-items: end; gap: 16px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.menu strong { display: block; font: 500 clamp(24px, 2.4vw, 30px)/1.05 var(--display); }
.menu span { display: block; color: var(--faint); font-size: 13px; margin-top: 6px; }
.menu .leader { border-bottom: 1px dotted rgba(201, 160, 99, .45); transform: translateY(-12px); }
.menu em { font: 500 clamp(24px, 2.4vw, 30px)/1 var(--display); font-style: normal; color: var(--brass); }

/* the barber: a walnut room */
.barber {
  padding: clamp(80px, 11vw, 140px) 0;
  background:
    repeating-linear-gradient(92deg, rgba(0, 0, 0, .08) 0 2px, transparent 2px 9px, rgba(255, 255, 255, .025) 9px 10px, transparent 10px 23px),
    linear-gradient(180deg, #2a1d12, #1f160e);
  border-top: 1px solid rgba(201, 160, 99, .18); border-bottom: 1px solid rgba(201, 160, 99, .18);
}
.barber__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.barber__photo { margin: 0; aspect-ratio: 4 / 5; }
.barber__photo .ph { background: rgba(20, 20, 18, .55); border-color: rgba(201, 160, 99, .2); }
.barber__photo img { width: 100%; height: 100%; object-fit: cover; border-radius: 10px; }
.barber__copy h2 { margin-bottom: 22px; }
.barber__copy p { font-size: 19px; max-width: 26em; }
.barber__copy .btn { margin-top: 8px; }

/* visit */
.visit { padding: clamp(80px, 11vw, 140px) 0; }
.visit__grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: clamp(32px, 6vw, 96px); align-items: stretch; }
.hours { border-collapse: collapse; width: 100%; max-width: 420px; margin: 28px 0; }
.hours th, .hours td { padding: 11px 0; border-bottom: 1px solid var(--line); font-weight: 300; text-align: left; }
.hours td { text-align: right; color: var(--mute); }
.hours tr.is-today th, .hours tr.is-today td { font-weight: 500; color: var(--brass-bright); }
.hours tr.is-today th::after { content: 'Today'; margin-left: 10px; font-size: 11px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--brass); }
.addr { font-style: normal; line-height: 1.7; margin-bottom: 24px; }
.addr strong { font-weight: 500; }
.addr a { text-decoration: none; }
.visit__cta { display: flex; gap: 10px; flex-wrap: wrap; }
.map { min-height: 400px; border-radius: 10px; overflow: hidden; background: var(--char-2); border: 1px solid var(--line); }
/* the map, darkened to sit in the room */
.map iframe { width: 100%; height: 100%; min-height: 400px; border: 0; display: block; filter: invert(.9) hue-rotate(180deg) sepia(.25) saturate(.7) brightness(.95); }

.map { position: relative; }
.map__tap { display: none; }
@media (hover: none) {
  .map iframe { pointer-events: none; }
  .map__tap { display: flex; position: absolute; inset: 0; align-items: flex-end; justify-content: center; padding: 14px; text-decoration: none; }
  .map__tap span { background: rgba(20, 20, 18, .85); border: 1px solid var(--line); border-radius: 999px; padding: 8px 14px; font-size: 13px; }
}

/* small facts */
.fill { color: var(--faint); font-style: italic; }
b.fill { font-style: normal; }
.stats { list-style: none; padding: 24px 0 0; margin: 8px 0 28px; display: flex; gap: 44px; border-top: 1px solid rgba(201, 160, 99, .2); }
.stats b { display: block; font: 500 48px/1 var(--display); }
.stats span { font-size: 13px; color: var(--mute); }
.know { margin: 0 0 24px; display: grid; gap: 6px; }
.know div { display: flex; gap: 12px; }
.know dt { width: 70px; font-weight: 500; font-size: 15px; }
.know dd { margin: 0; font-size: 15px; }

/* footer */
.foot { border-top: 1px solid var(--line); padding: 28px 0 32px; font-size: 14px; color: var(--mute); }
.foot__row { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.foot__mark { font: 500 22px/1 var(--display); color: var(--bone); }
.foot__links { margin-left: auto; display: flex; gap: 20px; }
.foot__links a { text-decoration: none; }
.foot__links a:hover { color: var(--bone); }

/* phone dock */
.dock { display: none; }

/* booking dialog */
.book {
  width: min(460px, calc(100vw - 24px)); padding: 0; border: 1px solid rgba(201, 160, 99, .25); border-radius: 16px;
  background: var(--char-2); color: var(--bone);
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .8);
}
.book::backdrop { background: rgba(10, 10, 9, .7); backdrop-filter: blur(4px); }
.book { max-height: calc(100dvh - 24px); overflow-y: auto; overscroll-behavior: contain; }
.book form, .book__sent { padding: 32px 28px 28px; position: relative; }
.book input[type=date] { display: flex; align-items: center; text-align: left; min-width: 0; }
.book input[type=date]::-webkit-date-and-time-value { text-align: left; }
.book h3 { font-size: 40px; margin-bottom: 8px; }
.book__how { color: var(--mute); font-size: 15px; margin-bottom: 22px; }
.book__x { position: absolute; top: 12px; right: 14px; width: 40px; height: 40px; border: 0; background: none; font-size: 28px; line-height: 1; color: var(--mute); cursor: pointer; border-radius: 8px; }
.book label { display: block; margin-bottom: 14px; }
.book label span { display: block; font-size: 13px; font-weight: 500; margin-bottom: 6px; color: var(--mute); }
.book label em { font-style: normal; color: var(--faint); }
.book input, .book select {
  width: 100%; height: 46px; padding: 0 12px; border: 1px solid var(--line); border-radius: 10px;
  background: var(--char); color: var(--bone); font: 400 16px var(--body); -webkit-appearance: none; appearance: none;
  color-scheme: dark;
}
.book select { background-image: linear-gradient(45deg, transparent 50%, var(--brass) 50%), linear-gradient(135deg, var(--brass) 50%, transparent 50%); background-position: right 17px center, right 12px center; background-size: 5px 5px; background-repeat: no-repeat; }
.book input:focus, .book select:focus { border-color: var(--brass); outline: none; }
.book .is-bad { border-color: #b3523d; }
.book__two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; }
.book__two label { min-width: 0; }
.book__two input, .book__two select { width: 100%; min-width: 0; }
.book__err { color: #e08a73; font-size: 14px; margin: 0 0 12px; }
.book__go { width: 100%; margin-top: 6px; }
.book__sent p { color: var(--mute); margin: 8px 0 22px; }

/* draft mode: questions for Franco. Remove class="draft" from <body> and all of it disappears. */
.draftbar, .ask { display: none; }
.draft .draftbar {
  display: block; padding: 10px var(--pad); background: #1f6e98; color: #fff;
  font-size: 14px; line-height: 1.45; text-align: center;
}
.draftbar__short { display: none; }
.draft .ask {
  display: block; margin: 28px 0 0; padding: 16px 20px 6px; max-width: 640px;
  background: #13242e; border: 1.5px dashed #3f7fa3; border-radius: 10px; color: #cfe3ee;
  font-size: 15px; line-height: 1.5; text-align: left; font-weight: 400;
}
.ask b { display: block; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 6px; color: #7fbbe0; font-weight: 600; }
.ask ul { margin: 0; padding-left: 18px; }
.ask li { margin-bottom: 8px; }
.draft .ask--after { margin-top: 16px; }
.draft .visit__ask { grid-column: 1 / -1; max-width: none; margin-top: 0; }

/* tablet and phone */
@media (max-width: 900px) {
  .nav__links { display: none; }
  .nav__actions { margin-left: auto; }
  .prices__grid, .barber__grid, .visit__grid { grid-template-columns: 1fr; }
  .prices__intro .btn { display: none; }
  .barber__photo { max-width: 460px; }
}
@media (max-width: 640px) {
  body { font-size: 16px; padding-bottom: calc(72px + env(safe-area-inset-bottom)); }
  .nav__actions { display: none; }
  .hero__cta { display: none; }       /* the dock carries Call and Book on phones */
  .hero__inner { padding-bottom: calc(128px + env(safe-area-inset-bottom)); }
  .hero__cue { bottom: calc(86px + env(safe-area-inset-bottom)); }
  .hero__inner .status { margin-top: 18px; }
  .draftbar__long { display: none; }
  .draftbar__short { display: inline; }
  .draft .draftbar { font-size: 13px; padding: 8px 14px; }
  .hero__shade { background: linear-gradient(0deg, var(--char) 0%, rgba(20, 20, 18, .78) 45%, rgba(20, 20, 18, .25) 100%); }
  .photos { grid-template-columns: 1fr 1fr; grid-template-rows: 1.4fr 1fr; height: 460px; }
  .photos__big { grid-row: auto; grid-column: span 2; }
  .menu li { gap: 10px; }
  .stats { gap: 28px; }
  .foot__links { margin-left: 0; }
  .dock {
    display: grid; grid-template-columns: 1fr 1.6fr; gap: 8px;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
    background: rgba(20, 20, 18, .92); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid var(--line);
  }
  .dock .btn { height: 50px; }
  .dock .btn[hidden] + .btn { grid-column: 1 / -1; }
}

@media (max-width: 380px) {
  .hero__where { letter-spacing: .12em; font-size: 11px; }
  .hero__where span { margin: 0 7px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}
