/* ============================================
   Fat Cats Groom House — styles

   Palette comes from the shop itself: the bottle green of the walls, the
   gold outline on the cat, true black from the logo, and aged paper.
   ============================================ */

:root {
  --green-900: #22301d;
  --green-700: #35472c;
  --green-500: #5e6f49;
  --paper: #f2ead8;
  --paper-2: #e6dac0;
  --paper-3: #d9cba9;
  --gold: #dbbd45;
  --gold-deep: #c4a52f;
  --black: #000000;
  --ink: #1f1a15;
  --ink-2: #5b5248;
  --white: #ffffff;
  --focus: #dbbd45;

  --font-display: "Bowlby One", "Arial Black", Impact, sans-serif;
  --font-body: "Libre Franklin", system-ui, -apple-system, "Segoe UI", sans-serif;

  --measure: 62ch;
  --wrap: 1120px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 6px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.55;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: inherit; }

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.wrap {
  width: min(100% - var(--gutter) * 2, var(--wrap));
  margin-inline: auto;
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ---------- type ---------- */

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1;
  margin: 0;
  letter-spacing: 0;
}

h2 {
  font-size: clamp(34px, 5vw, 52px);
  margin-bottom: 0.5em;
}

h3 {
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 20px;
  line-height: 1.25;
}

p { margin: 0 0 1em; max-width: var(--measure); }

.lede {
  font-size: clamp(18px, 2.2vw, 21px);
  line-height: 1.5;
}

.muted { color: var(--ink-2); }

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 12px 22px;
  border-radius: var(--radius);
  border: 2px solid transparent;
  font: inherit;
  font-weight: 800;
  font-size: 17px;
  text-decoration: none;
  cursor: pointer;
  transition: transform .15s var(--ease), background-color .15s, color .15s, border-color .15s;
}
.btn:active { transform: translateY(1px); }

.btn-gold {
  background: var(--gold);
  color: var(--black);
  border-color: var(--gold);
}
.btn-gold:hover { background: #e6ca5c; border-color: #e6ca5c; }

.btn-outline {
  background: transparent;
  color: var(--paper);
  border-color: rgba(242, 234, 216, .55);
}
.btn-outline:hover { border-color: var(--paper); }

.btn-ink {
  background: var(--black);
  color: var(--paper);
  border-color: var(--black);
}
.btn-ink:hover { background: var(--green-900); border-color: var(--green-900); }

.btn-sm {
  min-height: 40px;
  padding: 8px 14px;
  font-size: 15px;
}

/* ---------- header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--black);
  color: var(--paper);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: 68px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--gold);
  font-family: var(--font-display);
  font-size: 19px;
  line-height: 1;
  margin-right: auto;
}
.brand img { width: 44px; height: 44px; }
.brand span { padding-top: 3px; }

.site-nav {
  display: none;
  gap: 26px;
}
.site-nav a {
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  color: var(--paper);
  padding: 6px 0;
  border-bottom: 2px solid transparent;
}
.site-nav a:hover { border-bottom-color: var(--gold); }

.header-phone {
  display: none;
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  color: var(--paper);
}

@media (min-width: 760px) {
  .site-nav { display: flex; }
  .header-phone { display: inline; }
}

/* ---------- hero ---------- */

.hero {
  background: var(--green-900);
  color: var(--paper);
  overflow: hidden;
  position: relative;
}

.hero::after {
  /* the old site's sepia tool-bench photo, faded down to a texture */
  content: "";
  position: absolute; inset: 0;
  background: url("img/landing-bg.webp") center / cover no-repeat;
  opacity: .14;
  mix-blend-mode: luminosity;
  pointer-events: none;
}

.hero .wrap {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  padding-block: 44px 40px;
  align-items: center;
}

.hero-cat {
  width: min(64vw, 300px);
  margin-inline: auto;
  filter: drop-shadow(0 18px 30px rgba(0, 0, 0, .45));
}

.hero h1 {
  color: var(--gold);
  font-size: clamp(50px, 10.5vw, 118px);
  line-height: .92;
  text-wrap: balance;
  margin-bottom: 22px;
}

.hero .lede {
  color: var(--paper);
  max-width: 52ch;
  margin-bottom: 26px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 22px;
}

.open-state {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 15px;
  color: var(--paper);
}
.open-state::before {
  content: "";
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--paper-3);
  box-shadow: 0 0 0 3px rgba(242, 234, 216, .18);
}
.open-state[data-open="true"]::before { background: #8fd18a; box-shadow: 0 0 0 3px rgba(143, 209, 138, .25); }

@media (min-width: 860px) {
  .hero .wrap {
    grid-template-columns: minmax(0, 1.25fr) minmax(0, .9fr);
    gap: 40px;
    padding-block: 72px 64px;
    min-height: 560px;
  }
  .hero-cat {
    width: min(100%, 460px);
    margin-inline: 0 auto;
    order: 2;
  }
}

/* one orchestrated entrance, hero only */
@media (prefers-reduced-motion: no-preference) {
  .hero h1, .hero .lede, .hero-actions, .open-state {
    animation: rise .7s var(--ease) both;
  }
  .hero .lede { animation-delay: .08s; }
  .hero-actions { animation-delay: .16s; }
  .open-state { animation-delay: .22s; }
  .hero-cat { animation: catIn .9s var(--ease) both; }
  @keyframes rise {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: none; }
  }
  @keyframes catIn {
    from { opacity: 0; transform: translateX(28px) rotate(3deg); }
    to   { opacity: 1; transform: none; }
  }
}

/* ---------- sections ---------- */

.section { padding-block: clamp(52px, 8vw, 96px); }
.section-tight { padding-block: clamp(36px, 5vw, 60px); }

.section-intro { max-width: var(--measure); margin-bottom: 28px; }

/* ---------- next openings ---------- */

.openings {
  background: var(--paper);
  border-bottom: 1px solid var(--paper-3);
}

.openings-card {
  display: grid;
  gap: 18px;
  padding: 22px 0 0;
  border-top: 6px solid var(--gold);
}

.openings-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 16px;
}
.openings-head h2 { font-size: clamp(26px, 4vw, 34px); margin: 0; }
.openings-head .muted { font-size: 15px; }

.slot-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  list-style: none;
  margin: 0; padding: 0;
}

.slot {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  min-width: 132px;
  padding: 10px 14px;
  background: var(--white);
  border: 2px solid var(--paper-3);
  border-radius: var(--radius);
  font: inherit;
  color: var(--ink);
  cursor: pointer;
  text-align: left;
  transition: border-color .15s, transform .15s var(--ease);
}
.slot:hover { border-color: var(--black); transform: translateY(-1px); }
.slot strong { font-weight: 800; font-size: 17px; }
.slot small { font-size: 13.5px; color: var(--ink-2); }

.slot-empty {
  padding: 14px 16px;
  background: var(--paper-2);
  border-radius: var(--radius);
  font-size: 15px;
}

.sample-note {
  font-size: 14px;
  color: var(--ink-2);
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
}
.sample-note .tag {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--paper-2);
  color: var(--ink);
  font-weight: 700;
  font-size: 12px;
}

/* ---------- price board ---------- */

.board {
  background: var(--black);
  color: var(--paper);
  border-radius: 10px;
  padding: clamp(24px, 4vw, 44px);
  box-shadow: 0 24px 60px rgba(0, 0, 0, .25);
}

.board h2 { color: var(--gold); }

.board-grid {
  display: grid;
  gap: 28px 48px;
}
@media (min-width: 760px) {
  .board-grid { grid-template-columns: 1fr 1fr; }
}

.board h3 {
  color: var(--paper);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: .02em;
  border-bottom: 1px solid rgba(242, 234, 216, .25);
  padding-bottom: 8px;
  margin: 0 0 6px;
}

.menu {
  list-style: none;
  margin: 0; padding: 0;
}
.menu li {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: baseline;
  gap: 10px;
  padding: 9px 0;
}
.menu .name { font-weight: 600; }
.menu .name small { display: block; font-weight: 400; font-size: 13.5px; color: rgba(242, 234, 216, .7); }
.menu .lead {
  border-bottom: 2px dotted rgba(219, 189, 69, .55);
  transform: translateY(-5px);
}
.menu .price {
  font-family: var(--font-display);
  font-size: 20px;
  color: var(--gold);
}
.menu .book {
  background: none;
  border: 0;
  padding: 4px 0 4px 6px;
  color: var(--paper);
  font: inherit;
  font-weight: 700;
  font-size: 14px;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.menu .book:hover { color: var(--gold); }

.board-foot {
  margin-top: 26px;
  padding-top: 18px;
  border-top: 1px solid rgba(242, 234, 216, .25);
  display: grid;
  gap: 12px 32px;
  font-size: 15px;
}
.board-foot p { margin: 0; max-width: none; }
.board-foot strong { color: var(--gold); }
@media (min-width: 760px) {
  .board-foot { grid-template-columns: 1fr 1fr; }
}

/* ---------- barbers ---------- */

.barbers-grid {
  display: grid;
  gap: 28px;
  align-items: start;
}
@media (min-width: 860px) {
  .barbers-grid { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 48px; }
}

.team-photo {
  border-radius: 10px;
  overflow: hidden;
  background: var(--paper-2);
}
.team-photo img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }

.roster {
  list-style: none;
  margin: 0; padding: 0;
  border-top: 2px solid var(--black);
}
.roster li {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--paper-3);
}
.roster .who { flex: 1; min-width: 0; }
.roster .who strong { display: block; font-size: 18px; }
.roster .who span { font-size: 14.5px; color: var(--ink-2); }

/* ---------- gallery ---------- */

.gallery {
  background: var(--black);
  color: var(--paper);
}
.gallery h2 { color: var(--gold); }
.gallery .lede { color: rgba(242, 234, 216, .8); }

.cuts {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
  list-style: none;
  margin: 0; padding: 0;
}
.cuts img { width: 100%; aspect-ratio: 1; object-fit: cover; }
@media (min-width: 640px) { .cuts { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 960px) { .cuts { grid-template-columns: repeat(4, 1fr); } }

.gallery-foot {
  margin-top: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  align-items: center;
}
.gallery-foot a { color: var(--paper); font-weight: 600; }

/* ---------- about ---------- */

.about-grid {
  display: grid;
  gap: 28px;
}
@media (min-width: 860px) {
  .about-grid { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 56px; align-items: center; }
}

.since {
  font-family: var(--font-display);
  font-size: clamp(60px, 9vw, 96px);
  line-height: 1;
  color: var(--green-500);
  margin-bottom: 8px;
}

.product-card {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 20px;
  background: var(--white);
  border: 2px solid var(--paper-3);
  border-radius: 10px;
}
.product-card img { width: 96px; flex: none; }
.product-card p { margin: 0; font-size: 15.5px; }
.product-card strong { display: block; font-size: 17px; margin-bottom: 4px; }

/* ---------- before you book ---------- */

.policy {
  background: var(--green-900);
  color: var(--paper);
}
.policy h2 { color: var(--gold); }

.policy-grid {
  display: grid;
  gap: 32px;
}
@media (min-width: 860px) {
  .policy-grid { grid-template-columns: 1.2fr 1fr; gap: 56px; }
}

.steps {
  counter-reset: step;
  list-style: none;
  margin: 0; padding: 0;
  display: grid;
  gap: 14px;
}
.steps li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 14px;
  align-items: start;
}
.steps li::before {
  content: counter(step);
  font-family: var(--font-display);
  font-size: 34px;
  line-height: 1;
  color: var(--gold);
  padding-top: 2px;
}
.steps strong { display: block; margin-bottom: 2px; }
.steps p { margin: 0; max-width: none; color: rgba(242, 234, 216, .85); font-size: 15.5px; }

.policy aside {
  border-left: 4px solid var(--gold);
  padding-left: 20px;
}
.policy aside h3 { color: var(--paper); margin-bottom: 8px; }
.policy aside p { color: rgba(242, 234, 216, .85); font-size: 15.5px; }

/* ---------- find us ---------- */

.find-grid {
  display: grid;
  gap: 28px;
}
@media (min-width: 860px) {
  .find-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 48px; align-items: start; }
}

.address {
  font-style: normal;
  font-size: 18px;
  line-height: 1.5;
  margin-bottom: 16px;
}
.address a { text-decoration: none; font-weight: 700; }
.address a:hover { text-decoration: underline; }

.hours {
  width: 100%;
  max-width: 380px;
  border-collapse: collapse;
  margin: 18px 0 22px;
}
.hours th, .hours td {
  text-align: left;
  padding: 9px 0;
  border-bottom: 1px solid var(--paper-3);
  font-weight: 400;
}
.hours th { font-weight: 700; padding-right: 20px; width: 50%; }
.hours tr.today th, .hours tr.today td { font-weight: 800; }
.hours tr.today th::after {
  content: "today";
  display: inline-block;
  margin-left: 8px;
  padding: 1px 7px;
  border-radius: 999px;
  background: var(--gold);
  color: var(--black);
  font-size: 11.5px;
  font-weight: 800;
  vertical-align: middle;
}
.hours .closed { color: var(--ink-2); }

.map {
  border-radius: 10px;
  overflow: hidden;
  background: var(--paper-2);
  aspect-ratio: 4 / 3;
  max-width: 100%;
}
.map iframe { width: 100%; height: 100%; border: 0; display: block; }

.find-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- footer ---------- */

.site-footer {
  background: var(--black);
  color: var(--paper);
  padding-block: 40px 120px;
  font-size: 15px;
}
@media (min-width: 760px) { .site-footer { padding-bottom: 40px; } }

.site-footer .wrap {
  display: grid;
  gap: 22px;
}
@media (min-width: 760px) {
  .site-footer .wrap { grid-template-columns: 1fr auto; align-items: center; }
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}
.footer-brand img { width: 56px; height: 56px; }
.footer-brand strong {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 20px;
  color: var(--gold);
  display: block;
}
.footer-brand span { color: rgba(242, 234, 216, .75); }

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  list-style: none;
  margin: 0; padding: 0;
}
.footer-links a { color: var(--paper); text-decoration: none; font-weight: 600; }
.footer-links a:hover { text-decoration: underline; }

.design-credit {
  grid-column: 1 / -1;
  color: rgba(242, 234, 216, .6);
  font-size: 13.5px;
}
.design-credit a { color: rgba(242, 234, 216, .85); }

/* ---------- sticky mobile book bar ---------- */

.book-bar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 35;
  display: flex;
  gap: 10px;
  padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom));
  background: rgba(0, 0, 0, .92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.book-bar .btn-gold { flex: 1; }
.book-bar .btn-outline { flex: none; width: 52px; padding: 0; }
@media (min-width: 760px) { .book-bar { display: none; } }

/* ---------- booking drawer ---------- */

.drawer-backdrop {
  position: fixed; inset: 0;
  z-index: 60;
  background: rgba(0, 0, 0, .6);
  opacity: 0;
  transition: opacity .25s;
}
.drawer-backdrop[hidden] { display: none; }
.drawer-backdrop.is-open { opacity: 1; }

.drawer {
  position: fixed;
  z-index: 61;
  inset: 0;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  color: var(--ink);
  transform: translateY(100%);
  transition: transform .32s var(--ease);
  will-change: transform;
}
.drawer[hidden] { display: none; }
.drawer.is-open { transform: none; }

@media (min-width: 760px) {
  .drawer {
    inset: 0 0 0 auto;
    width: min(520px, 100%);
    transform: translateX(100%);
    box-shadow: -20px 0 60px rgba(0, 0, 0, .35);
  }
}

@media (prefers-reduced-motion: reduce) {
  .drawer, .drawer-backdrop { transition: none; }
}

.drawer-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: var(--black);
  color: var(--paper);
  flex: none;
}
.drawer-head img { width: 36px; height: 36px; }
.drawer-head strong {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 17px;
  color: var(--gold);
  flex: 1;
}
.drawer-head .context {
  display: block;
  font-family: var(--font-body);
  font-size: 13px;
  color: rgba(242, 234, 216, .75);
  margin-top: 2px;
}

.drawer-close {
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 2px solid rgba(242, 234, 216, .35);
  background: transparent;
  color: var(--paper);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}
.drawer-close:hover { border-color: var(--paper); }

.drawer-body {
  flex: 1;
  min-height: 0;
  position: relative;
  background: var(--white);
}
.drawer-body iframe {
  width: 100%; height: 100%;
  border: 0;
  display: block;
}

.drawer-loading {
  position: absolute; inset: 0;
  display: grid;
  place-content: center;
  gap: 10px;
  text-align: center;
  color: var(--ink-2);
  font-size: 15px;
  background: var(--white);
  pointer-events: none;
}
.drawer-loading[hidden] { display: none; }
.drawer-loading img { width: 64px; margin-inline: auto; opacity: .9; }

.drawer-panel {
  position: absolute; inset: 0;
  overflow: auto;
  padding: 28px 22px;
  background: var(--paper);
}
.drawer-panel[hidden] { display: none; }
.drawer-panel h2 { font-size: 34px; margin-bottom: 14px; }
.drawer-panel .actions { display: grid; gap: 10px; margin-top: 22px; }
.drawer-panel .fine { font-size: 14.5px; color: var(--ink-2); margin-top: 22px; }

.drawer-foot {
  flex: none;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  background: var(--paper);
  border-top: 1px solid var(--paper-3);
  font-size: 13.5px;
  color: var(--ink-2);
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.drawer-foot a { color: var(--ink); }

body.drawer-open { overflow: hidden; }

/* barber Instagram handles */
.roster .who .ig {
  display: inline-block;
  margin-top: 3px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--paper-3);
}
.roster .who .ig:hover { border-bottom-color: var(--ink); }

/* review line under the hero actions */
.rating {
  margin: 10px 0 0;
  font-size: 15px;
}
.rating a {
  color: rgba(242, 234, 216, .85);
  text-decoration: none;
}
.rating a:hover { color: var(--paper); text-decoration: underline; }
.rating .stars {
  color: var(--gold);
  letter-spacing: 2px;
  margin-right: 6px;
}
@media (prefers-reduced-motion: no-preference) {
  .rating { animation: rise .7s var(--ease) both; animation-delay: .26s; }
}

/* roster buttons: "Book" on phones, "Book with Wade" when there's room */
@media (max-width: 599px) {
  .roster .btn .long { display: none; }
  .roster .btn { min-width: 76px; }
}

/* barber headshots, once the shop uploads them in /admin */
.roster .headshot {
  width: 64px; height: 64px;
  border-radius: 50%;
  object-fit: cover;
  flex: none;
  background: var(--paper-2);
}
