/* Harbour Fade (demo) · Kiwi Site Lab
   Quiet, left-aligned layout. The one loud thing is the felt letter board. */

@font-face {
  /* Narrow system face scaled to Barlow Condensed's width, so headings don't re-wrap when the web font arrives */
  font-family: "Barlow Condensed Fallback";
  src: local("Arial Narrow"), local("ArialNarrow"), local("Roboto Condensed"), local("Arial");
  size-adjust: 96%;
}

:root {
  --tile: #F6F7F5;
  --navy: #1C2B3A;
  --red: #B23A32;
  --red-dark: #962F28;
  --felt: #1A1B1D;
  --chrome: #5F6A72;
  --timber: #8A5A35;
  --rule: #DADFDC;

  --body: Barlow, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --head: "Barlow Condensed", "Barlow Condensed Fallback", "Arial Narrow", sans-serif;
  --gutter: 20px;
}
@media (min-width: 768px) { :root { --gutter: 40px; } }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--tile); color: var(--navy); font: 400 1.125rem/1.6 var(--body); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, figure, blockquote, ul, dl, dd { margin: 0; }
ul { padding: 0; list-style: none; }
a { color: var(--red); text-underline-offset: 3px; }
a:hover { color: var(--red-dark); }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; }

h1, h2, h3 { font-family: var(--head); font-weight: 600; line-height: 1.02; letter-spacing: -.005em; }
h2 { font-size: clamp(2.5rem, 8vw, 4rem); margin-bottom: 16px; }
h3 { font-size: 1.75rem; }

.wrap { max-width: 1200px; margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: 72px; }
@media (min-width: 1024px) { .section { padding-block: 112px; } }
.lede { color: var(--chrome); margin-bottom: 32px; }
.small { font-size: .9375rem; color: var(--chrome); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 50; padding: 8px 16px; background: var(--navy); color: #fff; }
.skip-link:focus { top: 16px; color: #fff; }

/* Buttons: one style, barber-pole red */
.button {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 24px;
  background: var(--red); color: #fff; border: 0; border-radius: 6px;
  font: 600 1.0625rem/1 var(--body); text-decoration: none; cursor: pointer;
  transition: background-color .15s;
}
.button:hover { background: var(--red-dark); color: #fff; }
.button-small { min-height: 40px; padding: 0 16px; font-size: 1rem; }

/* ---------- Header ---------- */
.top { position: sticky; top: 0; z-index: 20; background: var(--navy); color: var(--tile); }
.top-inner { display: flex; align-items: center; gap: 24px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; margin-right: auto; color: inherit; text-decoration: none; font: 600 1.5rem/1 var(--head); }
.brand:hover { color: inherit; }
.brand-mark { width: 36px; height: 36px; }
.top-links { display: none; gap: 28px; }
.top-links a { color: var(--tile); text-decoration: none; font-weight: 500; padding: 8px 0; }
.top-links a:hover { text-decoration: underline; color: #fff; }
.top-book { display: none; }
.menu-button { min-height: 44px; padding: 0 14px; background: none; border: 1px solid rgba(246,247,245,.5); border-radius: 6px; color: var(--tile); font: 500 1rem var(--body); cursor: pointer; }
.menu { display: grid; padding: 8px var(--gutter) 20px; border-top: 1px solid rgba(246,247,245,.15); }
.menu[hidden] { display: none; }
.menu a { padding: 12px 0; color: var(--tile); text-decoration: none; font: 600 1.75rem/1.1 var(--head); border-bottom: 1px solid rgba(246,247,245,.12); }
.menu a:last-child { border: 0; color: #FFB3AC; }
@media (min-width: 900px) {
  .top-links, .top-book { display: inline-flex; }
  .menu-button, .menu { display: none !important; }
}

/* ---------- Hero ---------- */
.hero { position: relative; background: var(--navy); color: #fff; }
.hero-photo img { width: 100%; height: 62vh; min-height: 380px; max-height: 720px; object-fit: cover; }
.hero-body { display: grid; gap: 24px; padding-top: 28px; padding-bottom: 28px; }
.hero h1 { font-size: clamp(2.75rem, 11vw, 5.5rem); max-width: 15ch; margin-bottom: 12px; text-wrap: balance; text-shadow: 0 2px 24px rgba(10,16,22,.45); }
.hero-text p { max-width: 38ch; color: #D7DDE2; }
.door { justify-self: start; display: grid; gap: 6px; padding: 18px 20px; border: 2px solid rgba(255,255,255,.85); border-radius: 4px; min-width: 260px; }
.door-status { font: 600 1.375rem/1.2 var(--head); }
.door-address { color: #D7DDE2; margin-bottom: 10px; }
.door .button { justify-self: start; }
.door-link { color: #fff; font-weight: 500; margin-top: 6px; }
.door-link:hover { color: #fff; }
.demo-tag { padding-bottom: 20px; font-size: .9375rem; color: #AEB8C1; }
@media (min-width: 900px) {
  .hero-photo img { height: min(78vh, 760px); }
  .hero-body {
    position: absolute; left: 0; right: 0; bottom: 56px; grid-template-columns: 1fr auto; align-items: end;
    padding-block: 0; margin-inline: auto;
  }
  .hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 35%, rgba(18,28,38,.85) 100%); pointer-events: none; }
  .hero-body, .demo-tag { z-index: 1; }
  .demo-tag { position: absolute; left: 0; right: 0; bottom: 14px; margin-inline: auto; padding-bottom: 0; }
  .door { background: rgba(18,28,38,.35); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
}

/* ---------- Prices: the letter board ---------- */
.prices-grid { display: grid; gap: 32px; }
.prices-intro p { max-width: 40ch; color: var(--chrome); margin-bottom: 12px; }
.board-frame {
  padding: 14px; border-radius: 6px;
  background: linear-gradient(135deg, #9C6A42 0%, var(--timber) 40%, #6E4527 100%);
  box-shadow: 0 1px 0 rgba(255,255,255,.25) inset, 0 18px 30px -18px rgba(28,43,58,.6);
}
.board {
  padding: 22px 18px 26px;
  background-color: var(--felt);
  background-image: repeating-linear-gradient(180deg, #141517 0 2px, #222427 2px 7px);
  border-radius: 2px;
  box-shadow: inset 0 2px 8px rgba(0,0,0,.6);
}
.board li {
  display: flex; justify-content: space-between; gap: 16px; padding: 3px 0;
  font: 500 clamp(1.05rem, 4.6vw, 1.6rem)/1.45 var(--head); letter-spacing: .09em; text-transform: uppercase;
  color: #EDEDE8; text-shadow: 0 1px 0 rgba(0,0,0,.6);
}
.board .gap { height: 14px; padding: 0; }
.price-notes { display: grid; gap: 16px; }
.price-notes dt { font: 600 1.375rem/1.2 var(--head); }
.price-notes dd { color: var(--chrome); }
@media (min-width: 900px) {
  .prices-grid { grid-template-columns: 1fr 1.4fr; column-gap: 56px; row-gap: 48px; align-items: start; }
  .board-frame { grid-row: span 2; padding: 18px; }
  .board { padding: 34px 32px 38px; }
  .prices-intro { padding-top: 8px; }
}

/* ---------- The shop ---------- */
.shop { background: #fff; border-block: 1px solid var(--rule); }
.shop-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.shop-text { grid-column: 1 / -1; margin-bottom: 20px; }
.shop-text p { max-width: 60ch; margin-bottom: 12px; }
.shop-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 4px; }
@media (min-width: 900px) {
  .shop-grid { grid-template-columns: 1.1fr 1fr 1fr; gap: 24px; align-items: end; }
  .shop-text { grid-column: auto; align-self: center; margin: 0 24px 0 0; }
  .shop-photo-b { margin-bottom: 48px; }
}

/* ---------- Barbers ---------- */
.barber-list { display: grid; gap: 40px; }
.barber img { width: 100%; aspect-ratio: 5 / 6; object-fit: cover; border-radius: 4px; margin-bottom: 16px; }
.barber h3 { margin-bottom: 6px; }
.barber p { color: var(--chrome); margin-bottom: 8px; max-width: 34ch; }
.barber a { font-weight: 600; }
@media (min-width: 768px) { .barber-list { grid-template-columns: repeat(3, 1fr); gap: 32px; } }

/* ---------- Photos ---------- */
.photos { padding-top: 0; }
.photos h2 { margin-bottom: 24px; }
.photo-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.photo { display: block; width: 100%; padding: 0; border: 0; background: var(--rule); cursor: zoom-in; border-radius: 4px; overflow: hidden; }
.photo img { width: 100%; aspect-ratio: 1; object-fit: cover; }
@media (min-width: 768px) { .photo-grid { grid-template-columns: repeat(3, 1fr); gap: 12px; } }

.viewer { width: 100%; max-width: 100%; height: 100%; max-height: 100%; margin: 0; padding: 16px; border: 0; background: #0E151C; color: #fff; }
.viewer[open] { display: grid; grid-template-rows: 1fr auto; gap: 12px; }
.viewer::backdrop { background: #0E151C; }
.viewer img { place-self: center; max-height: calc(100dvh - 100px); width: auto; object-fit: contain; }
.viewer-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px; }
.viewer-bar button { min-height: 44px; padding: 0 18px; background: none; color: #fff; border: 1px solid rgba(255,255,255,.4); border-radius: 6px; font: 500 1rem var(--body); cursor: pointer; }
.viewer-bar button:hover { background: rgba(255,255,255,.1); }
.viewer-bar span { min-width: 4em; text-align: center; color: #AEB8C1; }

/* ---------- Reviews ---------- */
.reviews { background: #fff; border-block: 1px solid var(--rule); }
.quotes { columns: 1; column-gap: 40px; }
.quotes figure { break-inside: avoid; margin-bottom: 32px; }
.quotes blockquote { margin-bottom: 8px; font-size: 1.25rem; line-height: 1.5; }
.quotes blockquote p::before { content: "\201C"; }
.quotes blockquote p::after { content: "\201D"; }
.quotes figcaption { color: var(--chrome); font-size: .9375rem; }
@media (min-width: 768px) { .quotes { columns: 2; } }
@media (min-width: 1100px) { .quotes { columns: 3; } }

/* ---------- Visit ---------- */
.visit-grid { display: grid; gap: 32px; }
address { font-style: normal; margin-bottom: 24px; }
.hours { width: 100%; max-width: 420px; border-collapse: collapse; margin-bottom: 20px; }
.hours caption { text-align: left; font: 600 1.375rem/1.2 var(--head); padding-bottom: 8px; }
.hours th, .hours td { padding: 8px 0; border-bottom: 1px solid var(--rule); font-weight: 400; text-align: left; }
.hours td { text-align: right; }
.hours tr.is-today th, .hours tr.is-today td { font-weight: 600; color: var(--red); }
.hours tr.is-today th::after { content: " (today)"; font-weight: 400; }
.map { min-height: 360px; border-radius: 4px; overflow: hidden; border: 1px solid var(--rule); }
.map iframe { display: block; width: 100%; height: 100%; min-height: 360px; border: 0; filter: grayscale(.5); }
@media (min-width: 900px) { .visit-grid { grid-template-columns: 1fr 1.3fr; gap: 56px; } }

/* ---------- Book ---------- */
.book { background: var(--navy); color: var(--tile); }
.book a { color: #FFB3AC; }
.book-grid { display: grid; gap: 32px; }
.book-text p { max-width: 40ch; color: #D7DDE2; margin-bottom: 12px; }
.note { font-size: .9375rem; color: #AEB8C1 !important; }
.book-form { display: grid; gap: 24px; padding: 24px 20px; background: var(--tile); color: var(--navy); border-radius: 6px; }
fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
legend { padding: 0; margin-bottom: 10px; font: 600 1.25rem/1.2 var(--head); }
.options { display: flex; flex-wrap: wrap; gap: 8px; }
.options label { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; border: 1px solid #B9C1C7; border-radius: 6px; background: #fff; cursor: pointer; font-size: 1rem; }
.options label:has(input:checked) { border-color: var(--navy); box-shadow: inset 0 0 0 1px var(--navy); background: #EDF1F4; }
.options input { accent-color: var(--red); width: 18px; height: 18px; margin: 0; }
.fields { display: grid; gap: 16px; }
.field { display: grid; gap: 6px; font-weight: 500; font-size: 1rem; }
.field input, .field select { width: 100%; min-height: 48px; padding: 0 12px; background: #fff; color: var(--navy); border: 1px solid #9AA4AC; border-radius: 6px; font: 400 1.0625rem var(--body); }
.field input:focus, .field select:focus { outline: 3px solid var(--red); outline-offset: 1px; border-color: var(--navy); }
.field.has-error input { border-color: var(--red); }
.form-error { min-height: 1.4em; margin-bottom: -12px; color: var(--red); font-weight: 600; }
.book-form .button { justify-self: start; }
.form-done { padding: 16px; border-radius: 6px; background: #E5EFE8; color: #1F5133; }
@media (min-width: 768px) { .fields { grid-template-columns: 1fr 1fr; } .book-form { padding: 32px; } }
@media (min-width: 900px) { .book-grid { grid-template-columns: 1fr 1.4fr; gap: 56px; } }

/* ---------- Footer ---------- */
.foot { background: #131E29; color: #C9D1D8; padding: 48px 0 96px; font-size: 1rem; }
.foot a { color: #fff; }
.foot-grid { display: grid; gap: 28px; }
.foot-name { font: 600 2rem/1 var(--head); color: #fff; margin-bottom: 8px; }
.foot-credit details { margin-top: 8px; }
.foot-credit summary { cursor: pointer; min-height: 44px; display: inline-flex; align-items: center; }
.foot-credit details p { font-size: .9375rem; line-height: 1.7; max-width: 70ch; }
@media (min-width: 900px) { .foot { padding-bottom: 48px; } .foot-grid { grid-template-columns: 1fr 1fr; } }

/* ---------- Sticky book button (phones) ---------- */
.sticky-book { position: fixed; left: 16px; right: 16px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 15; min-height: 52px; box-shadow: 0 8px 24px rgba(19,30,41,.35); visibility: hidden; opacity: 0; transition: opacity .2s, visibility .2s; }
.sticky-book.is-visible { visibility: visible; opacity: 1; }
@media (min-width: 900px) { .sticky-book { display: none; } }
@media (prefers-reduced-motion: reduce) { .sticky-book { transition: none; } }
