/* ─────────────────────────────────────────────────────────────
   MEDLEYS — site styles
   Colours: bottle green #1d3a32 · stone #f1f0ec
   ───────────────────────────────────────────────────────────── */

:root {
  --green: #1d3a32;
  --green-deep: #132722;
  --green-soft: #2a4d43;
  --stone: #f1f0ec;
  --stone-2: #e7e5df;
  --paper: #f8f7f4;
  --ink: #18201d;
  --muted: #5d6662;
  --on-green: #f1f0ec;
  --on-green-muted: rgba(241, 240, 236, 0.68);
  --line: rgba(29, 58, 50, 0.16);
  --line-light: rgba(241, 240, 236, 0.2);
  --brass: #a8895a;

  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --sans: "Jost", "Helvetica Neue", Arial, sans-serif;

  --wrap: 1180px;
  --gutter: clamp(20px, 4vw, 48px);
  --radius: 2px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  font-family: var(--sans);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--stone);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.1; margin: 0; letter-spacing: -0.01em; }
h2 { font-size: clamp(2.1rem, 4.2vw, 3.2rem); }
h2 em, h1 em { font-style: italic; }
p { margin: 0; }

.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--green); color: var(--stone); padding: 10px 16px; }
.skip:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--brass); outline-offset: 3px; }

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

/* ── Type bits ─────────────────────────────────────────────── */
.eyebrow {
  font-family: var(--sans);
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--green);
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; opacity: 0.6; }
.eyebrow--light { color: var(--on-green-muted); }
.lede { color: var(--on-green-muted); max-width: 34ch; }
.fine { font-size: 0.86rem; color: var(--muted); max-width: 56ch; margin: 16px auto 0; }

/* ── Wordmark & monogram ───────────────────────────────────── */
.wordmark { display: inline-flex; flex-direction: column; line-height: 1; text-decoration: none; }
.wordmark__name {
  font-family: var(--serif);
  font-size: 1.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.wordmark__sub {
  font-size: 0.62rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  margin-top: 6px;
  opacity: 0.72;
}
.monogram {
  display: grid; place-items: center;
  width: 54px; height: 54px; border-radius: 50%;
  font-family: var(--serif); font-size: 1.6rem; font-style: italic;
  border: 1px solid currentColor;
}
.monogram--lg { width: 84px; height: 84px; font-size: 2.6rem; }

/* ── Buttons ───────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 26px;
  font-family: var(--sans); font-size: 0.8rem; font-weight: 500;
  letter-spacing: 0.16em; text-transform: uppercase;
  text-decoration: none; white-space: nowrap;
  border: 1px solid transparent; border-radius: var(--radius);
  cursor: pointer;
  transition: background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease);
}
.btn svg { transition: transform .25s var(--ease); }
.btn:hover svg { transform: translateX(4px); }
.btn--sm { padding: 11px 18px; font-size: 0.72rem; }
.btn--green { background: var(--green); color: var(--stone); }
.btn--green:hover { background: var(--green-deep); }
.btn--stone { background: var(--stone); color: var(--green); }
.btn--stone:hover { background: #fff; }
.btn--ghost { border-color: currentColor; color: inherit; background: transparent; }
.btn--ghost:hover { background: rgba(127, 127, 127, 0.12); }
.btn--ghost-light { border-color: var(--line-light); color: var(--stone); }
.btn--ghost-light:hover { border-color: var(--stone); }

/* ═════════════════════════════════════════════════════════════
   HOME — split landing
   ═════════════════════════════════════════════════════════════ */
.home { background: var(--green); }
.home__header {
  display: none;
  position: fixed; top: 0; left: 0; right: 0; z-index: 5;
  justify-content: center; padding: 22px;
  pointer-events: none;
}
.home__brand { pointer-events: auto; color: var(--stone); text-decoration: none; mix-blend-mode: difference; }

.split { position: relative; display: flex; min-height: 100vh; min-height: 100svh; }
.split__panel {
  position: relative; flex: 1 1 50%;
  display: flex; align-items: center; justify-content: center;
  padding: 120px clamp(24px, 5vw, 80px) 100px;
  transition: flex-grow .7s var(--ease);
  overflow: hidden;
}
.split__panel--green { background: var(--green); color: var(--on-green); }
.split__panel--stone { background: var(--stone); color: var(--green); }
.split__link { position: absolute; inset: 0; z-index: 1; }
.split__inner { position: relative; width: 100%; max-width: 440px; text-align: center; display: flex; flex-direction: column; align-items: center; }
.split__inner .eyebrow { color: inherit; opacity: 0.75; }
.split__inner .eyebrow::after { content: ""; width: 28px; height: 1px; background: currentColor; opacity: 0.6; }
.split__title {
  font-size: clamp(2.6rem, 5.4vw, 4.6rem);
  margin: 18px 0 30px;
  line-height: 1;
}
.split__title span { display: block; font-style: italic; font-size: 0.42em; letter-spacing: 0.02em; margin-bottom: 10px; opacity: 0.8; }
.split__photo {
  margin: 0; width: 100%; max-width: 360px; aspect-ratio: 4 / 3;
  overflow: hidden; position: relative;
  outline: 1px solid currentColor; outline-offset: 10px;
}
.split__photo img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.05); transform: scale(1.02); transition: transform 1.2s var(--ease); }
.split__blurb { margin: 34px 0 26px; font-size: 1.02rem; opacity: 0.82; max-width: 30ch; }
.split__actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; position: relative; z-index: 2; }

.split__badge {
  position: absolute; left: 50%; top: 50%; z-index: 3;
  transform: translate(-50%, -50%);
  background: var(--stone); color: var(--green);
  border: 1px solid var(--green);
  padding: 22px 26px; text-align: center;
  pointer-events: none;
  box-shadow: 0 0 0 8px var(--stone), 0 0 0 9px var(--line);
}
.split__badge .wordmark { align-items: center; }
.split__badge .wordmark__name { font-size: 1.9rem; }

@media (hover: hover) and (min-width: 900px) {
  .split__panel:hover .split__photo img { transform: scale(1.07); }
}

.home__footer {
  bottom: 0; left: 0; right: 0; z-index: 4;
  display: flex; justify-content: center; gap: 10px; flex-wrap: wrap;
  padding: 18px; font-size: 0.7rem; letter-spacing: 0.22em; text-transform: uppercase;
  pointer-events: none;
}

@media (min-width: 900px) {
  .home__footer { display: none; }
  .split__badge::before { content: "A family business"; display: block; font-family: var(--serif); font-style: italic; font-size: 0.9rem; margin-bottom: 8px; opacity: 0.8; }
}
@media (max-width: 899px) {
  .home { background: var(--stone); }
  .split { flex-direction: column; min-height: 0; }
  .split__panel--green { order: 1; padding: 64px 24px 80px; }
  .split__badge {
    order: 2; position: relative; left: auto; top: auto; transform: none;
    align-self: center; margin: -38px 0; padding: 16px 22px;
  }
  .split__badge .wordmark__name { font-size: 1.5rem; }
  .split__panel--stone { order: 3; padding: 80px 24px 56px; }
  .home__footer { position: static; color: var(--green); mix-blend-mode: normal; padding: 0 24px 36px; text-align: center; }
  .home__footer .dot { display: none; }
  .split__photo { max-width: 300px; }
}

/* ═════════════════════════════════════════════════════════════
   SHOP PAGES
   ═════════════════════════════════════════════════════════════ */

/* ── Top bar ───────────────────────────────────────────────── */
.topbar {
  position: sticky; top: 0; z-index: 30;
  background: rgba(241, 240, 236, 0.94);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, box-shadow .3s;
}
.topbar.is-scrolled { border-color: var(--line); box-shadow: 0 6px 24px -18px rgba(19, 39, 34, 0.5); }
.topbar__inner {
  max-width: 1320px; margin: 0 auto; padding: 14px var(--gutter);
  display: flex; align-items: center; gap: 28px;
}
.topbar__brand { color: var(--green); text-decoration: none; margin-right: auto; }
.topbar__brand .wordmark__name { font-size: 1.45rem; }
.topbar__nav { display: flex; align-items: center; gap: 26px; }
.topbar__nav a {
  font-size: 0.76rem; letter-spacing: 0.16em; text-transform: uppercase;
  text-decoration: none; color: var(--ink); position: relative; padding: 6px 0;
}
.topbar__nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: var(--green); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease);
}
.topbar__nav a:hover::after { transform: scaleX(1); }
.topbar__switch { display: inline-flex; align-items: center; gap: 6px; color: var(--green) !important; font-weight: 500; padding-left: 26px !important; border-left: 1px solid var(--line); }
.topbar__switch::after { left: 26px !important; }
.topbar__toggle { display: none; background: none; border: 0; color: var(--green); padding: 6px; cursor: pointer; }

@media (max-width: 1060px) {
  .topbar__toggle { display: inline-flex; }
  .topbar__nav {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--stone); border-bottom: 1px solid var(--line);
    padding: 8px var(--gutter) 20px;
    display: none;
  }
  .topbar__nav.is-open { display: flex; }
  .topbar__nav a { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 0.82rem; }
  .topbar__nav a::after { display: none; }
  .topbar__switch { border-left: 0; padding-left: 0 !important; border-bottom: 0 !important; }
}
@media (max-width: 560px) { .topbar__book { display: none; } }

/* ── Hero ──────────────────────────────────────────────────── */
.hero { background: var(--green); color: var(--on-green); overflow: hidden; }
.hero__inner {
  max-width: var(--wrap); margin: 0 auto;
  padding: clamp(56px, 8vw, 110px) var(--gutter) clamp(64px, 9vw, 120px);
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(40px, 6vw, 90px); align-items: center;
}
.hero__title { font-size: clamp(3rem, 7vw, 5.6rem); line-height: 0.98; margin: 22px 0 22px; }
.hero__title em { display: block; color: var(--stone); opacity: 0.92; }
.hero__tagline { font-family: var(--serif); font-style: italic; font-size: clamp(1.15rem, 1.8vw, 1.4rem); margin-bottom: 18px; color: var(--stone); }
.hero__intro { color: var(--on-green-muted); max-width: 48ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.hero__photo { margin: 0; position: relative; }
.hero__photo::before {
  content: ""; position: absolute; inset: -14px 14px 14px -14px;
  border: 1px solid var(--line-light); pointer-events: none;
}
.hero__photo img {
  position: relative; width: 100%; aspect-ratio: 4 / 5; object-fit: cover;
  filter: grayscale(1) contrast(1.06);
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.6);
}
.shop--barbershop .hero__photo img { aspect-ratio: 4 / 3.4; }

.status { display: inline-flex; align-items: center; gap: 10px; margin-top: 30px; font-size: 0.86rem; color: var(--on-green-muted); }
.status__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--on-green-muted); }
.status.is-open .status__dot { background: #8fd1a6; box-shadow: 0 0 0 4px rgba(143, 209, 166, 0.18); }
.status.is-open .status__text strong { color: var(--stone); font-weight: 500; }

@media (max-width: 860px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__photo { order: -1; max-width: 520px; margin: 0 14px 0 14px; }
  .hero__photo img, .shop--barbershop .hero__photo img { aspect-ratio: 4 / 3; }
}

/* ── Sections ──────────────────────────────────────────────── */
.section { padding: clamp(72px, 10vw, 128px) 0; }
.section--stone { background: var(--stone); }
.section--paper { background: var(--paper); }
.section--green { background: var(--green); color: var(--on-green); }
.section__head { text-align: center; margin-bottom: clamp(44px, 6vw, 72px); display: flex; flex-direction: column; align-items: center; gap: 16px; }
.section__head .eyebrow::after { content: ""; width: 28px; height: 1px; background: currentColor; opacity: 0.6; }
.section__head--left { text-align: left; align-items: flex-start; }
.section__head--left .eyebrow::after { display: none; }
.section__cta { text-align: center; margin-top: clamp(44px, 6vw, 64px); }

/* ── Services menu ─────────────────────────────────────────── */
.menus { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: clamp(40px, 6vw, 80px); align-items: start; }
.menu__title {
  font-size: 1.55rem; padding-bottom: 14px; margin-bottom: 8px;
  border-bottom: 1px solid var(--green);
}
.menu__list { list-style: none; margin: 0; padding: 0; }
.menu__item { padding: 18px 0; border-bottom: 1px solid var(--line); }
.menu__row { display: flex; align-items: baseline; gap: 12px; }
.menu__name { font-weight: 500; font-size: 1.04rem; }
.menu__dots { flex: 1; border-bottom: 1px dotted rgba(29, 58, 50, 0.35); transform: translateY(-4px); min-width: 20px; }
.menu__price { font-family: var(--serif); font-size: 1.25rem; color: var(--green); white-space: nowrap; }
.menu__price small { font-family: var(--sans); font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-right: 2px; }
.menu__desc { color: var(--muted); font-size: 0.92rem; margin-top: 4px; display: flex; justify-content: space-between; gap: 16px; }
.menu__mins { white-space: nowrap; font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; }
.menu__note { font-size: 0.86rem; color: var(--muted); font-style: italic; margin-top: 16px; }

/* ── Team ──────────────────────────────────────────────────── */
.team { display: grid; gap: clamp(28px, 4vw, 48px); justify-content: center; grid-template-columns: repeat(auto-fit, minmax(220px, 280px)); }
.team--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 960px) { .team--4 { grid-template-columns: repeat(2, minmax(0, 260px)); } }
@media (max-width: 480px) { .team--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 16px; } .team--4 .person__photo span { font-size: 3.6rem; } .team--4 .person__name { font-size: 1.3rem; } }
.person { text-align: center; }
.person__photo {
  width: 100%; aspect-ratio: 4 / 5; margin-bottom: 22px;
  background: var(--green); color: var(--stone);
  display: grid; place-items: center; position: relative; overflow: hidden;
}
.person__photo::after { content: ""; position: absolute; inset: 12px; border: 1px solid var(--line-light); pointer-events: none; }
.person__photo span { font-family: var(--serif); font-style: italic; font-size: 5.5rem; opacity: 0.9; }
.person__photo img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1); }
.person__name { font-size: 1.6rem; }
.person__role { font-size: 0.74rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--green); margin: 6px 0 12px; }
.person__bio { color: var(--muted); font-size: 0.95rem; max-width: 30ch; margin: 0 auto; }

/* ── Products ──────────────────────────────────────────────── */
.products { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(40px, 7vw, 100px); align-items: start; }
.products .section__head { margin-bottom: 0; position: sticky; top: 120px; }
.products__list { display: grid; gap: 0; }
.product { padding: 28px 0; border-top: 1px solid var(--line-light); display: grid; grid-template-columns: 56px 1fr; column-gap: 12px; }
.product:last-child { border-bottom: 1px solid var(--line-light); }
.product__num { font-family: var(--serif); font-style: italic; color: var(--brass); font-size: 1.1rem; grid-row: span 2; }
.product__name { font-size: 1.5rem; margin-bottom: 6px; }
.product p { color: var(--on-green-muted); }
@media (max-width: 860px) {
  .products { grid-template-columns: 1fr; }
  .products .section__head { position: static; }
}

/* ── Gallery ───────────────────────────────────────────────── */
.gallery { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.gallery--1, .gallery--2 { max-width: 920px; margin: 0 auto; }
.gallery__item { padding: 0; border: 0; background: var(--green); cursor: zoom-in; overflow: hidden; aspect-ratio: 4 / 5; display: block; }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1); transition: transform .9s var(--ease), opacity .4s; }
.gallery__item:hover img { transform: scale(1.05); opacity: 0.9; }

.lightbox { border: 0; padding: 0; background: transparent; max-width: min(92vw, 1100px); max-height: 90vh; }
.lightbox::backdrop { background: rgba(19, 39, 34, 0.92); }
.lightbox img { max-height: 86vh; width: auto; margin: 0 auto; filter: grayscale(1); }
.lightbox__close {
  position: fixed; top: 18px; right: 22px; width: 44px; height: 44px; border-radius: 50%;
  background: var(--stone); color: var(--green); border: 0; font-size: 1.6rem; line-height: 1; cursor: pointer;
}

/* ── Reviews ───────────────────────────────────────────────── */
.reviews { columns: 3 300px; column-gap: 24px; }
.review {
  break-inside: avoid; margin: 0 0 24px; padding: 32px 30px 28px;
  background: var(--stone); border: 1px solid var(--line);
}
.review__stars { color: var(--brass); display: flex; gap: 3px; margin-bottom: 18px; }
.review blockquote { margin: 0; font-family: var(--serif); font-size: 1.16rem; line-height: 1.5; }
.review blockquote::before { content: "“"; }
.review blockquote::after { content: "”"; }
.review figcaption { margin-top: 18px; font-size: 0.74rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); }

/* ── Visit ─────────────────────────────────────────────────── */
.visit { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(40px, 6vw, 80px); align-items: stretch; }
.visit__info h2 { margin: 16px 0 30px; }
.hours { width: 100%; border-collapse: collapse; margin-bottom: 30px; }
.hours th, .hours td { padding: 11px 0; border-bottom: 1px solid var(--line); font-weight: 400; text-align: left; }
.hours td { text-align: right; font-variant-numeric: tabular-nums; }
.hours tr.is-today th, .hours tr.is-today td { color: var(--green); font-weight: 600; }
.hours tr.is-today th::after { content: "Today"; margin-left: 10px; font-size: 0.64rem; letter-spacing: 0.16em; text-transform: uppercase; background: var(--green); color: var(--stone); padding: 3px 7px; vertical-align: middle; font-weight: 500; }
.contact { list-style: none; margin: 0 0 32px; padding: 0; display: grid; gap: 14px; }
.contact li { display: flex; gap: 14px; align-items: flex-start; }
.contact svg { flex: none; color: var(--green); margin-top: 3px; }
.contact a { text-decoration: none; border-bottom: 1px solid var(--line); word-break: break-word; }
.contact a:hover { border-color: var(--green); }
.visit__map { min-height: 420px; position: relative; border: 1px solid var(--line); padding: 10px; background: var(--paper); }
.visit__map iframe { width: 100%; height: 100%; min-height: 400px; border: 0; filter: grayscale(1) contrast(1.05); display: block; }
@media (max-width: 860px) { .visit { grid-template-columns: 1fr; } .visit__map { min-height: 340px; } }

/* ── Closing band ──────────────────────────────────────────── */
.band { background: var(--green-deep); color: var(--on-green); padding: clamp(64px, 8vw, 100px) 0; }
.band__inner { display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.band h2 { font-size: clamp(2.2rem, 5vw, 3.8rem); }

/* ── Footer ────────────────────────────────────────────────── */
.footer { background: var(--green); color: var(--on-green); padding: 64px 0 28px; }
.footer__inner { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding-bottom: 44px; border-bottom: 1px solid var(--line-light); }
.footer__addr { color: var(--on-green-muted); margin-top: 18px; font-size: 0.92rem; }
.footer__shops, .footer__contact { display: flex; flex-direction: column; gap: 10px; }
.footer__shops .eyebrow, .footer__contact .eyebrow { margin-bottom: 6px; }
.footer a { text-decoration: none; color: var(--on-green); opacity: 0.86; }
.footer a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 4px; }
.footer__shops a[aria-current] { opacity: 1; }
.footer__base { display: flex; justify-content: space-between; padding-top: 24px; font-size: 0.78rem; letter-spacing: 0.1em; color: var(--on-green-muted); }
@media (max-width: 760px) { .footer__inner { grid-template-columns: 1fr; } .footer { padding-bottom: 96px; } }

/* ── Mobile book bar ───────────────────────────────────────── */
.mobile-book { display: none; }
@media (max-width: 560px) {
  .mobile-book {
    display: flex; position: fixed; left: 14px; right: 14px; bottom: 14px; z-index: 40;
    box-shadow: 0 14px 30px -10px rgba(19, 39, 34, 0.55);
    transform: translateY(140%); transition: transform .4s var(--ease);
  }
  .mobile-book.is-visible { transform: none; }
}

/* ── 404 ───────────────────────────────────────────────────── */
.notfound { background: var(--stone); color: var(--green); min-height: 100vh; display: grid; place-items: center; text-align: center; }
.notfound__inner { display: flex; flex-direction: column; align-items: center; gap: 22px; padding: 40px 24px; }
.notfound h1 { font-size: clamp(2.4rem, 6vw, 4rem); }
.notfound p { color: var(--muted); }

/* ── Reveal on scroll ──────────────────────────────────────── */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}
