/* Old Mate's Barbershop (sample): oxblood and bone like an old leather barber chair,
   brass fittings, and a barber pole that turns. Big Shoulders Display for the
   shop-front lettering, Archivo for reading. No photos needed. */

:root {
  --blood: #2b0c10;
  --blood-2: #3a1318;
  --blood-3: #4a1a20;
  --night: #170508;
  --bone: #efe6d8;
  --bone-dim: #c7b8a3;
  --brass: #c9a15a;
  --brass-hi: #e3c07c;
  --pole-red: #c8102e;
  --pole-blue: #1d4e89;
  --wrap: 1120px;
  --gutter: clamp(20px, 5vw, 48px);
}

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

body {
  margin: 0;
  background: var(--blood);
  color: var(--bone);
  font-family: "Archivo", system-ui, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
}

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

h1,
h2,
h3 {
  margin: 0;
  font-family: "Big Shoulders Display", "Archivo", sans-serif;
  font-weight: 800;
  line-height: 0.95;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  text-wrap: balance;
}

h2 {
  font-size: clamp(2.6rem, 7vw, 4.2rem);
}

p {
  margin: 0;
  text-wrap: pretty;
}

a {
  color: inherit;
}

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

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

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* Buttons: brass plate and a bone outline */

.btn {
  display: inline-block;
  padding: 0.85em 1.5em;
  border: 2px solid transparent;
  border-radius: 4px;
  font: 700 1rem/1.2 "Archivo", sans-serif;
  letter-spacing: 0.02em;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s, color 0.15s;
}

.btn-brass {
  background: var(--brass);
  color: var(--night);
}

.btn-brass:hover {
  background: var(--brass-hi);
}

.btn-line {
  border-color: var(--bone);
  color: var(--bone);
}

.btn-line:hover {
  background: var(--bone);
  color: var(--blood);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

/* Header */

.site-header {
  border-bottom: 1px solid var(--blood-3);
}

.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  padding-block: 18px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.logo svg {
  width: 16px;
}

.logo-words {
  display: grid;
  line-height: 0.9;
}

.logo-name {
  font-family: "Big Shoulders Display", sans-serif;
  font-weight: 900;
  font-size: 1.7rem;
  text-transform: uppercase;
}

.logo-sub {
  color: var(--brass);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 20px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-weight: 600;
}

.nav a {
  text-decoration: none;
}

.nav a:not(.btn):hover,
.nav a[aria-current="page"]:not(.btn) {
  color: var(--brass-hi);
}

.nav .btn {
  padding: 0.55em 1.1em;
}

/* Hero: the headline and a turning barber pole */

.hero-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: clamp(24px, 6vw, 96px);
  padding-block: clamp(48px, 8vw, 104px);
}

.hero h1 {
  font-size: clamp(3.6rem, 12vw, 8.5rem);
  line-height: 0.88;
}

.hero h1 span {
  display: block;
  color: var(--brass);
}

.hero .lede {
  max-width: 38ch;
  margin-top: 24px;
  font-size: clamp(1.1rem, 2vw, 1.25rem);
  color: var(--bone-dim);
}

.pole {
  display: grid;
  justify-items: center;
  width: clamp(64px, 8vw, 96px);
}

.pole-ball {
  width: 44%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, var(--brass-hi), var(--brass) 45%, #8a6a32);
}

.pole-cap {
  width: 100%;
  height: 22px;
  border-radius: 6px;
  background: linear-gradient(90deg, #8a6a32, var(--brass-hi) 35%, var(--brass) 60%, #7a5b28);
}

.pole-glass {
  position: relative;
  width: 82%;
  height: clamp(240px, 38vw, 420px);
  overflow: hidden;
  /* The stripes repeat every 72px across the diagonal. A square tile of 72 × √2
     (101.82px) holds exactly two repeats, so the tiles join without a seam. */
  background: repeating-linear-gradient(135deg,
    var(--pole-red) 0 18px, var(--bone) 18px 36px,
    var(--pole-blue) 36px 54px, var(--bone) 54px 72px);
  background-size: 101.82px 101.82px;
  animation: turn 3.5s linear infinite;
}

/* Glass shine, so it reads as a round tube rather than a flat stripe */
.pole-glass::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.35), rgba(255, 255, 255, 0.35) 28%, rgba(255, 255, 255, 0) 55%, rgba(0, 0, 0, 0.4));
}

/* One full stripe cycle straight down: 72px across the diagonal is 72 × √2 tall */
@keyframes turn {
  to { background-position: 0 101.82px; }
}

/* Walk-ins strip */

.strip {
  background: var(--night);
  border-block: 1px solid var(--blood-3);
}

.strip .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 40px;
  padding-block: 18px;
  font-weight: 600;
  text-align: center;
}

.strip strong {
  color: var(--brass);
}

/* Sections */

.section {
  padding-block: clamp(64px, 10vw, 112px);
}

.section-tight {
  padding-block: clamp(48px, 7vw, 72px);
}

.section-head p {
  max-width: 48ch;
  margin-top: 14px;
  color: var(--bone-dim);
}

/* The shop, edge to edge under the walk-ins strip */
.shop-photo {
  display: block;
  width: 100%;
  height: auto;
  max-height: 520px;
  object-fit: cover;
}

/* Price list: like the board behind the chairs */

.prices-top {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 6vw, 88px);
  align-items: end;
}

.tools-photo {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--blood-3);
  border-radius: 6px;
}

.prices {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px clamp(32px, 6vw, 88px);
  margin-top: 44px;
}

.prices h3 {
  padding-bottom: 12px;
  border-bottom: 2px solid var(--brass);
  color: var(--brass);
  font-size: 2rem;
}

.price-list {
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
}

.price-list li {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: baseline;
  column-gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--blood-3);
}

.price-list .name {
  font-weight: 700;
  font-size: 1.1rem;
}

.price-list .dots {
  border-bottom: 2px dotted var(--bone-dim);
  opacity: 0.35;
  transform: translateY(-5px);
}

.price-list .price {
  font-family: "Big Shoulders Display", sans-serif;
  font-weight: 800;
  font-size: 1.6rem;
  line-height: 1;
  color: var(--brass-hi);
}

.price-list .time {
  grid-column: 1 / -1;
  color: var(--bone-dim);
  font-size: 0.92rem;
}

/* The crew */

.crew {
  background: var(--blood-2);
}

.crew-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 44px 0 0;
  padding: 0;
  list-style: none;
}

/* Each card is a column with its booking link pushed to the bottom, so the three
   "Book with" links always line up. */
.crew-list li {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  padding: 28px 24px;
  border: 1px solid var(--blood-3);
  border-radius: 6px;
  background: var(--blood);
}

.badge {
  display: grid;
  place-items: center;
  width: 76px;
  height: 76px;
  border: 3px solid var(--brass);
  border-radius: 50%;
  font-family: "Big Shoulders Display", sans-serif;
  font-weight: 900;
  font-size: 2.1rem;
  color: var(--brass);
}

.badge svg {
  width: 40px;
  height: 40px;
}

.crew-list h3 {
  margin-top: 8px;
  font-size: 2.2rem;
}

.crew-list p {
  color: var(--bone-dim);
}

.crew-list a {
  margin-top: auto;
  padding-top: 6px;
  color: var(--brass-hi);
  font-weight: 700;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.2em;
}

/* Good to know */

.facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.facts li {
  padding-top: 18px;
  border-top: 2px solid var(--brass);
}

.facts strong {
  display: block;
  font-family: "Big Shoulders Display", sans-serif;
  font-weight: 800;
  font-size: 1.7rem;
  line-height: 1;
  text-transform: uppercase;
}

.facts span {
  display: block;
  margin-top: 8px;
  color: var(--bone-dim);
}

/* Find us */

.find {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 6vw, 88px);
}

.find address {
  margin-top: 20px;
  font-style: normal;
  font-size: 1.2rem;
  font-weight: 600;
}

.find .phone {
  margin-top: 8px;
  font-weight: 700;
}

.hours {
  width: 100%;
  border-collapse: collapse;
}

.hours th,
.hours td {
  padding: 12px 0;
  border-bottom: 1px solid var(--blood-3);
  text-align: left;
}

.hours td {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.hours .closed td {
  color: var(--bone-dim);
}

/* Closing call to book */

.book-band {
  background: var(--brass);
  color: var(--night);
}

.book-band .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-block: clamp(36px, 6vw, 56px);
}

.book-band h2 {
  font-size: clamp(2.4rem, 6vw, 3.6rem);
}

.book-band .btn {
  background: var(--night);
  color: var(--bone);
}

.book-band .btn:hover {
  background: var(--blood-2);
}

/* Footer */

.site-footer {
  background: var(--night);
  font-size: 0.95rem;
  color: var(--bone-dim);
}

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 32px;
  padding-block: 32px;
}

.site-footer ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}

/* Booking page */

.page-head {
  padding-block: clamp(40px, 7vw, 72px) 8px;
}

.page-head h1 {
  font-size: clamp(3.2rem, 10vw, 6rem);
}

.page-head p {
  max-width: 46ch;
  margin-top: 14px;
  color: var(--bone-dim);
}

.booking {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: clamp(28px, 5vw, 64px);
  align-items: start;
  padding-block: 32px clamp(64px, 10vw, 112px);
}

.step {
  margin: 0;
  padding: 0 0 36px;
  border: 0;
  min-width: 0;
}

.step + .step {
  padding-top: 32px;
  border-top: 1px solid var(--blood-3);
}

.step legend {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 0;
  font-family: "Big Shoulders Display", sans-serif;
  font-weight: 800;
  font-size: 2rem;
  line-height: 1;
  text-transform: uppercase;
}

.step legend span {
  color: var(--brass);
}

.choices {
  display: grid;
  gap: 10px;
  margin-top: 20px;
}

.choices-services {
  grid-template-columns: repeat(2, 1fr);
}

.choices-pay {
  grid-template-columns: repeat(2, 1fr);
}

.choices-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.choices-times {
  grid-template-columns: repeat(auto-fill, minmax(92px, 1fr));
}

.choice {
  position: relative;
  cursor: pointer;
}

.choice input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}

.choice > span {
  display: grid;
  gap: 2px;
  height: 100%;
  padding: 12px 16px;
  border: 2px solid var(--blood-3);
  border-radius: 6px;
  background: var(--blood-2);
  transition: border-color 0.15s, background-color 0.15s;
}

.choice:hover > span {
  border-color: var(--bone-dim);
}

.choice input:checked + span {
  border-color: var(--brass);
  background: var(--blood-3);
  box-shadow: inset 0 0 0 1px var(--brass);
}

.choice input:focus-visible + span {
  outline: 3px solid var(--brass-hi);
  outline-offset: 3px;
}

.choice input:disabled + span {
  opacity: 0.35;
  cursor: not-allowed;
  text-decoration: line-through;
}

.choice strong {
  font-weight: 700;
}

.choice small {
  color: var(--bone-dim);
  font-size: 0.9rem;
}

.choices-times .choice > span,
.choices-row .choice > span {
  place-items: center;
  text-align: center;
  font-weight: 700;
}

.times-note {
  margin-top: 12px;
  color: var(--bone-dim);
}

.times-note:empty {
  display: none;
}

.details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 20px;
}

.details label {
  display: block;
  margin-bottom: 6px;
  font-weight: 700;
  font-size: 0.95rem;
}

.details input {
  width: 100%;
  padding: 0.75em 0.85em;
  border: 2px solid var(--blood-3);
  border-radius: 6px;
  background: var(--night);
  color: var(--bone);
  font: inherit;
}

.details input:focus {
  outline: none;
  border-color: var(--brass);
}

.recap {
  position: sticky;
  top: 24px;
  padding: 28px 24px;
  border: 2px solid var(--brass);
  border-radius: 8px;
  background: var(--night);
}

.recap h2 {
  font-size: 2.4rem;
}

.recap dl {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px 16px;
  margin: 20px 0 0;
}

.recap dt {
  color: var(--bone-dim);
}

.recap dd {
  margin: 0;
  font-weight: 700;
  text-align: right;
}

.recap .btn {
  width: 100%;
  margin-top: 24px;
}

.recap .small {
  margin-top: 12px;
  color: var(--bone-dim);
  font-size: 0.9rem;
  text-align: center;
}

.booking-error {
  margin-top: 14px;
  color: #ffb3b3;
  font-weight: 700;
  font-size: 0.95rem;
}

/* Smaller screens */

@media (max-width: 860px) {
  .prices,
  .prices-top,
  .find,
  .booking {
    grid-template-columns: 1fr;
  }

  .prices-top {
    gap: 24px;
  }

  /* Taller on small screens, so the chairs don't shrink to a thin strip */
  .shop-photo {
    aspect-ratio: 16 / 10;
  }

  .crew-list,
  .facts {
    grid-template-columns: 1fr;
  }

  .recap {
    position: static;
  }
}

@media (max-width: 560px) {
  .hero-inner {
    gap: 20px;
  }

  .pole-glass {
    height: 260px;
  }

  .nav {
    gap: 4px 14px;
    font-size: 0.95rem;
  }

  .details {
    grid-template-columns: 1fr;
  }

  /* Two services side by side keeps the list short on a phone */
  .choices-services {
    gap: 8px;
  }

  .choices-services .choice > span {
    padding: 10px 12px;
  }

  .choices-services strong {
    font-size: 0.95rem;
    line-height: 1.25;
  }

  .choices-services small {
    font-size: 0.82rem;
  }

  .actions .btn {
    flex: 1 1 auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .pole-glass {
    animation: none;
  }
}
