/* ==========================================================================
   Pro-Cutz Male Grooming
   Warm paper, black ink, one barber red. Everything centred on the page.
   Type follows the pricelist board in the shop: geometric caps for the
   lists, a brush script for the kickers, a reading serif for prose.
   ========================================================================== */

:root {
  --paper:      #f6f1e8;
  --paper-warm: #efe8dc;
  --ink:        #17130f;
  --ink-soft:   #625a4e;
  --ink-faint:  #9a9083;
  --red:        #a4232c;
  --rule:       rgba(23, 19, 15, 0.16);
  --rule-soft:  rgba(23, 19, 15, 0.09);

  --font-caps:   "Jost", "Futura", "Century Gothic", system-ui, sans-serif;
  --font-script: "Caveat Brush", "Segoe Script", cursive;
  --font-text:   "Newsreader", Georgia, "Times New Roman", serif;

  --wrap: 1080px;
  --measure: 680px;
  --gut: clamp(1.25rem, 5vw, 3rem);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-text);
  font-size: clamp(1.12rem, 1.05rem + 0.32vw, 1.3rem);
  line-height: 1.72;
  text-align: center;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
h1, h2, h3 { margin: 0; line-height: 1.08; font-weight: 400; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }
a { color: inherit; }
address { font-style: normal; }

::selection { background: var(--red); color: var(--paper); }

:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 4px;
  border-radius: 1px;
}

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; top: -100px; left: 50%; z-index: 200;
  transform: translateX(-50%);
  background: var(--ink); color: var(--paper);
  padding: 0.7rem 1.2rem;
  font-family: var(--font-caps); font-size: 0.8rem;
  text-transform: uppercase; letter-spacing: 0.14em; text-decoration: none;
}
.skip-link:focus { top: 0; }

.wrap {
  width: min(var(--wrap), 100%);
  margin-inline: auto;
  padding-inline: var(--gut);
}
.measure { max-width: var(--measure); margin-inline: auto; }

/* ==========================================================================
   Shared type
   ========================================================================== */
.kicker {
  font-family: var(--font-script);
  font-size: clamp(1.7rem, 1.35rem + 1.6vw, 2.4rem);
  line-height: 1;
  color: var(--red);
  margin: 0 0 0.6rem;
}

.title {
  font-family: var(--font-caps);
  font-weight: 400;
  font-size: clamp(1.75rem, 1.3rem + 2vw, 2.9rem);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  text-indent: 0.2em;         /* balance the trailing letter-space */
}

.lede {
  max-width: 46ch;
  margin: 1.4rem auto 0;
  color: var(--ink-soft);
  font-size: 1.06em;
}

.eyebrow {
  font-family: var(--font-caps);
  font-size: 0.82rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.32em;
  text-indent: 0.34em;
  color: var(--ink-faint);
  margin: 0 0 1.1rem;
}

/* A hairline with a small diamond in the middle. */
.rule {
  display: flex; align-items: center; justify-content: center;
  gap: 0.85rem;
  margin: clamp(2.25rem, 5vw, 3.5rem) auto;
  max-width: 320px;
  color: var(--ink-faint);
}
.rule::before, .rule::after {
  content: ""; flex: 1 1 auto; height: 1px; background: var(--rule);
}
.rule i {
  width: 5px; height: 5px; flex: none;
  background: var(--red);
  transform: rotate(45deg);
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  --btn-bg: transparent;
  --btn-fg: var(--ink);
  --btn-bd: var(--ink);
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--btn-bg); color: var(--btn-fg);
  border: 1px solid var(--btn-bd);
  padding: 0.9rem 1.9rem;
  font-family: var(--font-caps);
  font-weight: 500; font-size: 0.92rem;
  text-transform: uppercase; letter-spacing: 0.18em; text-indent: 0.18em;
  text-decoration: none; cursor: pointer;
  transition: background 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease);
}
.btn:hover { --btn-bg: var(--ink); --btn-fg: var(--paper); }
.btn--solid { --btn-bg: var(--red); --btn-bd: var(--red); --btn-fg: var(--paper); }
.btn--solid:hover { --btn-bg: var(--ink); --btn-bd: var(--ink); }

.actions {
  display: flex; flex-wrap: wrap; gap: 0.75rem; justify-content: center;
  margin-top: 2rem;
}

/* ==========================================================================
   Barber pole rule
   ========================================================================== */
.pole {
  height: 10px;
  background-image: repeating-linear-gradient(
    62deg,
    var(--red) 0 9px,
    var(--paper) 9px 20px
  );
  background-size: 45.3px 100%;   /* one whole stripe cycle, so the loop is seamless */
  border-block: 1px solid var(--rule);
  animation: pole 2.6s linear infinite;
}
@keyframes pole { to { background-position: 45.3px 0; } }

/* ==========================================================================
   Masthead — the wordmark is the top of the page
   ========================================================================== */
.masthead {
  padding: clamp(1.25rem, 3vw, 2.25rem) 0 clamp(2rem, 4.5vw, 3rem);
}
.masthead__logo {
  /* height must be auto, or the height attribute in the markup wins and the
     artwork gets letterboxed inside a 292px-tall box */
  width: min(100%, clamp(260px, 82vw, 700px));
  height: auto;
  margin: 0 auto clamp(1.1rem, 2.2vw, 1.6rem);
}
.masthead__tagline {
  max-width: 32ch;
  margin: 0 auto;
  font-size: clamp(1.22rem, 1.08rem + 0.7vw, 1.6rem);
  font-style: italic;
  color: var(--ink-soft);
}

.masthead__nav {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: clamp(1.1rem, 3vw, 2.4rem);
  margin-top: clamp(2.25rem, 5vw, 3.25rem);
  padding-top: 1.6rem;
  border-top: 1px solid var(--rule);
}
.masthead__nav a {
  position: relative;
  font-family: var(--font-caps);
  font-size: 0.88rem; font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.22em; text-indent: 0.22em;
  text-decoration: none;
  color: var(--ink-soft);
  padding-bottom: 3px;
  transition: color 0.25s var(--ease);
}
.masthead__nav a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: 0;
  height: 1px; background: var(--red);
  transition: right 0.3s var(--ease);
}
.masthead__nav a:hover { color: var(--ink); }
.masthead__nav a:hover::after { right: 0; }

/* ---------- open / closed ---------- */
.status {
  display: inline-flex; align-items: center; gap: 0.6rem;
  margin: clamp(1.5rem, 3.5vw, 2.25rem) 0 0;
  font-family: var(--font-caps);
  font-size: 0.86rem; font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.2em; text-indent: 0.2em;
  color: var(--ink-soft);
}
.status__dot {
  width: 7px; height: 7px; border-radius: 50%; flex: none;
  background: var(--ink-faint);
}
.status.is-open .status__dot { background: #2f7d4f; }
.status.is-soon .status__dot { background: #b8860b; }
.status.is-shut .status__dot { background: var(--red); }
.status.is-open { color: var(--ink); }

/* ==========================================================================
   Sections
   ========================================================================== */
.section { padding: clamp(3.5rem, 9vw, 6.5rem) 0; }
.section--warm { background: var(--paper-warm); }
.section__head { margin-bottom: clamp(2.25rem, 5vw, 3.5rem); }

/* ---------- pricelist ---------- */
.menu { max-width: var(--measure); margin: 0 auto; text-align: left; }
.menu-block { margin-top: clamp(2.75rem, 6vw, 4.25rem); }

.menu-head {
  font-family: var(--font-caps);
  font-size: 0.88rem; font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.28em; text-indent: 0.28em;
  color: var(--ink);
  margin-bottom: 1.4rem;
}
.menu-head small {
  display: block;
  margin-top: 0.45rem;
  font-family: var(--font-text);
  font-size: 1.02rem; font-style: italic;
  letter-spacing: 0; text-indent: 0; text-transform: none;
  color: var(--ink-faint);
}

.menu__item {
  display: flex; align-items: baseline; gap: 0.7rem;
  padding: 0.62rem 0;
  border-bottom: 1px solid var(--rule-soft);
}
.menu__item:first-child { border-top: 1px solid var(--rule-soft); }
.menu__name {
  font-family: var(--font-caps);
  font-size: 1.12rem; font-weight: 400;
  text-transform: uppercase; letter-spacing: 0.09em;
}
.menu__leader {
  flex: 1 1 auto; min-width: 1.5rem;
  border-bottom: 1px dotted var(--rule);
  transform: translateY(-0.28em);
}
.menu__price {
  flex: none;
  font-family: var(--font-caps);
  font-size: 1.12rem; font-weight: 500;
  letter-spacing: 0.05em;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.menu--appointment .menu__price { color: var(--red); }

.footnote {
  max-width: 46ch;
  margin: clamp(2.25rem, 5vw, 3.25rem) auto 0;
  font-size: 1.05rem; font-style: italic;
  color: var(--ink-faint);
}
.footnote a { color: var(--ink-soft); text-underline-offset: 3px; }
.footnote a:hover { color: var(--red); }

/* ---------- opening hours ---------- */
.hours { max-width: 520px; margin: 0 auto; text-align: left; }
.hours__row {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 1rem;
  padding: 0.78rem 0.25rem;
  border-bottom: 1px solid var(--rule-soft);
  font-family: var(--font-caps);
  font-size: 1.1rem;
  text-transform: uppercase; letter-spacing: 0.11em;
}
.hours__row:first-child { border-top: 1px solid var(--rule-soft); }
.hours__row span:last-child { font-variant-numeric: tabular-nums; }
.hours__row.is-shut { color: var(--ink-faint); }
.hours__row.is-today {
  font-weight: 500;
  padding-inline: 0.7rem;
  margin-inline: -0.45rem;
  background: rgba(164, 35, 44, 0.07);
  box-shadow: inset 2px 0 0 var(--red);
}

/* ---------- Christmas hours (removes itself after data-until) ---------- */
.festive[hidden], .rule[hidden] { display: none; }
.festive .kicker { margin-bottom: 0.5rem; }
.festive__title {
  font-family: var(--font-caps);
  font-size: 0.95rem; font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.28em; text-indent: 0.28em;
  margin-bottom: 1.5rem;
}
.festive__wish {
  max-width: 34ch;
  margin: 1.75rem auto 0;
  font-style: italic;
  color: var(--ink-soft);
}

/* ---------- find us ---------- */
.address {
  font-family: var(--font-caps);
  font-size: clamp(1.3rem, 1.1rem + 0.85vw, 1.75rem);
  text-transform: uppercase; letter-spacing: 0.15em; text-indent: 0.15em;
  line-height: 1.75;
  margin: 0;
}
.phone {
  margin: 1.5rem 0 0;
  font-family: var(--font-caps);
  font-size: clamp(1.7rem, 1.35rem + 1.4vw, 2.4rem);
  letter-spacing: 0.05em;
  font-variant-numeric: tabular-nums;
}
.phone small {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.8rem; font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.28em; text-indent: 0.28em;
  color: var(--ink-faint);
}

.map {
  position: relative;
  margin-top: clamp(2.75rem, 6vw, 4.5rem);
  border-block: 1px solid var(--rule);
  background: var(--ink);
  overflow: hidden;
}
.map { background: var(--paper-warm); }
.map picture { display: block; }
.map img {
  width: 100%; height: auto;
  max-height: 460px;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}
.map a:hover img { transform: scale(1.02); }
.map__credit {
  position: absolute; right: 0.6rem; bottom: 0.5rem;
  padding: 0.18rem 0.5rem;
  background: rgba(246, 241, 232, 0.7);
  color: var(--ink-faint);
  font-family: var(--font-caps);
  font-size: 0.6rem; letter-spacing: 0.06em;
}
.map__credit a { color: inherit; }

/* ==========================================================================
   Footer — the one dark band
   ========================================================================== */
.footer {
  background: var(--ink);
  color: var(--paper);
  padding: clamp(3.25rem, 7vw, 5rem) 0 2rem;
}
.footer__logo { width: min(70%, 260px); height: auto; margin: 0 auto clamp(1.75rem, 4vw, 2.5rem); }

.footer__contact {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 0.6rem clamp(1.5rem, 4vw, 2.75rem);
  font-family: var(--font-caps);
  font-size: 0.9rem;
  text-transform: uppercase; letter-spacing: 0.16em; text-indent: 0.16em;
}
.footer__contact a {
  display: inline-flex; align-items: center; gap: 0.5rem;
  text-decoration: none;
  color: rgba(246, 241, 232, 0.82);
  transition: color 0.25s var(--ease);
}
.footer__contact a:hover { color: var(--paper); }
.footer__contact svg { flex: none; }

.footer__meta {
  margin-top: clamp(2.25rem, 5vw, 3rem);
  padding-top: 1.5rem;
  border-top: 1px solid rgba(246, 241, 232, 0.16);
  font-family: var(--font-caps);
  font-size: 0.8rem;
  letter-spacing: 0.13em; text-indent: 0.13em;
  text-transform: uppercase;
  color: rgba(246, 241, 232, 0.5);
}
.footer__meta p { margin: 0.35rem 0; }

/* ==========================================================================
   Finish: paper grain, cards, at-a-glance strip, phone dock
   ========================================================================== */
/* A whisper of grain so the flat colour reads as paper, not a screen fill. */
body::before {
  content: ""; position: fixed; inset: 0; z-index: 1; pointer-events: none;
  opacity: 0.32; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .35 0 0 0 0 .3 0 0 0 0 .22 0 0 0 .16 0'/%3E%3C/filter%3E%3Crect width='220' height='220' filter='url(%23n)'/%3E%3C/svg%3E");
}
.footer { position: relative; z-index: 2; }   /* keep the dark band clean */

.section__head .title::after {
  content: ""; display: block;
  width: 54px; height: 1px; margin: 1.15rem auto 0;
  background: var(--red);
}

/* Printed-card look: a hairline frame inside the edge, soft lift off the page. */
.card {
  position: relative;
  background: #fbf8f2;
  border: 1px solid var(--rule);
  padding: clamp(1.9rem, 4.5vw, 3.1rem) clamp(1.25rem, 4.5vw, 3.1rem);
  box-shadow: 0 26px 46px -34px rgba(23, 19, 15, 0.45);
}
.card::before {
  content: ""; position: absolute; inset: 7px;
  border: 1px solid var(--rule-soft);
  pointer-events: none;
}
.card--menu { max-width: 800px; margin-inline: auto; }
.card__title {
  font-family: var(--font-caps);
  font-size: 0.88rem; font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.28em; text-indent: 0.28em;
  margin-bottom: 1.4rem;
}
.card .menu__item:first-child, .card .hours__row:first-child { border-top: 0; }
.card .menu__item:last-child, .card .hours__row:last-child { border-bottom: 0; }

.hours-grid {
  display: flex; flex-wrap: wrap; justify-content: center; align-items: flex-start;
  gap: clamp(1.25rem, 3vw, 2rem);
}
.hours-grid > .card { flex: 1 1 360px; max-width: 500px; }
.hours-grid > .card[hidden] { display: none; }
.festive.card { border-color: rgba(164, 35, 44, 0.4); }
.festive.card::before { border-color: rgba(164, 35, 44, 0.16); }
.festive .card__title { color: var(--red); }

/* ---------- at a glance ---------- */
.glance { padding: clamp(2.25rem, 5vw, 3.5rem) 0 0; }
.glance__list {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 0;
}
.glance__item {
  display: grid; justify-items: center; gap: 0.3rem;
  padding: 0.4rem clamp(0.75rem, 2vw, 1.5rem);
}
.glance__item + .glance__item { border-left: 1px solid var(--rule); }
.glance__item svg { color: var(--red); margin-bottom: 0.55rem; }
.glance__item strong {
  font-family: var(--font-caps); font-weight: 500;
  font-size: 0.95rem;
  text-transform: uppercase; letter-spacing: 0.18em; text-indent: 0.18em;
}
.glance__item span { color: var(--ink-soft); font-style: italic; font-size: 0.98em; line-height: 1.4; }

/* ---------- buttons with a glyph ---------- */
.btn { gap: 0.6rem; }
.btn__icon { flex: none; margin-left: -0.15rem; }

/* ---------- phone dock ---------- */
.dock { display: none; }
@media (max-width: 700px) {
  .dock {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
    display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem;
    padding: 0.6rem 0.75rem calc(0.6rem + env(safe-area-inset-bottom));
    background: rgba(246, 241, 232, 0.94);
    -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
    border-top: 1px solid var(--rule);
    transform: translateY(110%);
    transition: transform 0.35s var(--ease);
  }
  .dock.is-on { transform: none; }
  .dock__btn {
    display: flex; align-items: center; justify-content: center; gap: 0.5rem;
    padding: 0.8rem 0.5rem;
    border: 1px solid var(--ink);
    font-family: var(--font-caps); font-weight: 500; font-size: 0.82rem;
    text-transform: uppercase; letter-spacing: 0.16em;
    text-decoration: none; color: var(--ink);
  }
  .dock__btn--solid { background: var(--red); border-color: var(--red); color: var(--paper); }
  .footer { padding-bottom: 5.5rem; }

  .glance__list { grid-template-columns: 1fr; gap: 1.6rem; }
  .glance__item + .glance__item { border-left: 0; }
  .glance__item + .glance__item::before {
    content: ""; width: 54px; height: 1px; background: var(--rule); margin-bottom: 1.3rem;
  }
}

/* ==========================================================================
   Section colours
   Each band re-points the palette variables, so every component inside it
   (titles, rules, buttons, status line) recolours itself. Cards and the map
   switch back to the paper palette.
   ========================================================================== */
.tone { background: var(--paper); color: var(--ink); }

.tone--sand { --paper: #e9dfcd; }

.tone--ink {
  --paper: #17130f; --ink: #f6f1e8;
  --ink-soft: rgba(246, 241, 232, 0.78); --ink-faint: rgba(246, 241, 232, 0.55);
  --red: #e0656d;
  --rule: rgba(246, 241, 232, 0.2); --rule-soft: rgba(246, 241, 232, 0.12);
}
.tone--red {
  --paper: #8e1f27; --ink: #fbf4e6;
  --ink-soft: rgba(251, 244, 230, 0.86); --ink-faint: rgba(251, 244, 230, 0.62);
  --red: #f3d9a0;
  --rule: rgba(251, 244, 230, 0.28); --rule-soft: rgba(251, 244, 230, 0.16);
}
.tone--navy {
  --paper: #1d2b3e; --ink: #f6f1e8;
  --ink-soft: rgba(246, 241, 232, 0.82); --ink-faint: rgba(246, 241, 232, 0.58);
  --red: #e9c98a;
  --rule: rgba(246, 241, 232, 0.24); --rule-soft: rgba(246, 241, 232, 0.14);
}

.tone .card, .tone .map {
  --paper: #f6f1e8; --ink: #17130f;
  --ink-soft: #625a4e; --ink-faint: #9a9083;
  --red: #a4232c;
  --rule: rgba(23, 19, 15, 0.16); --rule-soft: rgba(23, 19, 15, 0.09);
  color: var(--ink);
}
.tone--red .card, .tone--navy .card { border-color: transparent; box-shadow: 0 30px 50px -30px rgba(0, 0, 0, 0.55); }
.tone--red .festive.card { border-color: transparent; }
.glance.tone { padding-bottom: clamp(2.25rem, 5vw, 3.5rem); }
.tone--navy .map { border-block: 0; }

/* ==========================================================================
   Reveal
   ========================================================================== */
[data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
[data-reveal].is-visible { opacity: 1; transform: none; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 560px) {
  .masthead__nav { gap: 0.9rem 1.4rem; }
  .masthead__nav a { font-size: 0.8rem; letter-spacing: 0.16em; text-indent: 0.16em; }
  .actions .btn { flex: 1 1 100%; }
  .menu__name, .menu__price { font-size: 1.02rem; }
  .hours__row { font-size: 1rem; }
}

@media (max-width: 700px) {
  .map img { max-height: none; object-fit: contain; }
}

/* ==========================================================================
   Motion & print
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
}

@media print {
  body { background: #fff; }
  .pole, .map, .btn, .masthead__nav, .dock { display: none !important; }
  body::before { display: none; }
  [data-reveal] { opacity: 1 !important; transform: none !important; }
  .footer { background: none; color: #000; }
  .footer__logo { content: url("../img/logo-dark.svg"); }
}

/* the map closes the Find Us band, flush against the footer */
#find-us { padding-bottom: 0; }
