:root {
  --black: #0e0e0f;
  --charcoal: #1b1b1d;
  --red: #c9282d;
  --cream: #f4eee1;
  --tan: #c5a47a;
  --muted: #bdb5aa;
  --line: rgba(255, 255, 255, 0.14);
  --max: 1180px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-width: 320px;
  color: var(--cream);
  background: var(--black);
  font-family: Inter, system-ui, sans-serif;
  line-height: 1.55;
}

a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
  padding: 18px max(20px, calc((100vw - var(--max)) / 2));
  background: rgba(14, 14, 15, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.brand {
  font-family: Archivo, Inter, sans-serif;
  font-size: 1.18rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

nav {
  display: flex;
  justify-content: center;
  gap: 26px;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

nav a:hover { color: var(--cream); }

.header-call {
  color: var(--cream);
  border-bottom: 2px solid var(--red);
  font-weight: 900;
}

.nav-toggle {
  display: none;
  justify-self: end;
  padding: 10px 14px;
  color: var(--cream);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 0;
  font-weight: 900;
}

.hero {
  min-height: 760px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  align-items: end;
  gap: 36px;
  padding: 120px max(20px, calc((100vw - var(--max)) / 2)) 70px;
  background:
    linear-gradient(90deg, rgba(14, 14, 15, 0.95), rgba(14, 14, 15, 0.68) 46%, rgba(14, 14, 15, 0.1)),
    url("../../assets/images/demos/barber-hero.jpg") center / cover;
}

.hero-copy {
  max-width: 770px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--tan);
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 {
  font-family: Archivo, Inter, sans-serif;
  line-height: 0.98;
}

h1 {
  margin-bottom: 22px;
  font-size: clamp(3.2rem, 7vw, 7.2rem);
  font-weight: 900;
  letter-spacing: -0.05em;
  text-transform: uppercase;
}

.hero p:not(.eyebrow),
.gallery-copy p,
.book p,
.visit p {
  max-width: 660px;
  color: var(--muted);
  font-weight: 600;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 24px;
  border: 2px solid transparent;
  border-radius: 0;
  cursor: pointer;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.red {
  color: #fff;
  background: var(--red);
}

.outline {
  color: var(--cream);
  border-color: var(--line);
}

.hours-card {
  padding: 28px;
  background: rgba(14, 14, 15, 0.78);
  border: 1px solid var(--line);
  box-shadow: 16px 16px 0 rgba(0, 0, 0, 0.28);
}

.hours-card span {
  color: var(--tan);
  font-weight: 900;
  text-transform: uppercase;
}

.hours-card strong {
  display: block;
  margin: 6px 0 12px;
  font-family: Archivo, Inter, sans-serif;
  font-size: 2rem;
}

.section {
  padding: 78px max(20px, calc((100vw - var(--max)) / 2));
}

.section-heading {
  max-width: 780px;
  margin-bottom: 32px;
}

h2 {
  margin-bottom: 16px;
  font-size: clamp(2.35rem, 5vw, 4.8rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  text-transform: uppercase;
}

.services,
.barbers {
  background: var(--charcoal);
}

.service-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid var(--line);
}

.service-list article {
  min-height: 260px;
  padding: 26px;
  border-right: 1px solid var(--line);
}

.service-list article:last-child {
  border-right: 0;
}

.service-list span,
.service-list h3,
.price-board strong {
  color: var(--tan);
}

.service-list h3,
.barber-grid h3 {
  margin: 18px 0 12px;
  font-size: 1.35rem;
  text-transform: uppercase;
}

.service-list p,
.barber-grid p {
  color: var(--muted);
  font-weight: 600;
}

.pricing,
.visit,
.book {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(320px, 1fr);
  gap: 42px;
  align-items: start;
}

.price-board {
  display: grid;
  background: var(--cream);
  color: var(--black);
}

.price-board div,
.visit li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 19px 22px;
  border-bottom: 1px solid rgba(14, 14, 15, 0.14);
}

.price-board span,
.visit span {
  font-weight: 900;
  text-transform: uppercase;
}

.price-board strong {
  font-size: 1.35rem;
}

.barber-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.barber-grid article {
  padding: 16px;
  background: var(--black);
  border: 1px solid var(--line);
}

.barber-photo {
  min-height: 280px;
  background:
    linear-gradient(0deg, rgba(14, 14, 15, 0.3), transparent),
    url("../../assets/images/demos/barber-interior.jpg") center / cover;
}

.photo-two { background-position: 38% center; }
.photo-three { background-position: 76% center; }

.gallery {
  display: grid;
  grid-template-columns: minmax(0, 0.75fr) minmax(280px, 0.45fr) minmax(280px, 0.65fr);
  gap: 22px;
  align-items: stretch;
  background:
    linear-gradient(0deg, rgba(14, 14, 15, 0.84), rgba(14, 14, 15, 0.84)),
    url("../../assets/images/demos/barber-interior.jpg") center / cover;
}

.gallery-grid {
  display: grid;
  gap: 12px;
}

.gallery-grid button {
  padding: 18px;
  color: var(--cream);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--line);
  border-radius: 0;
  cursor: pointer;
  text-align: left;
  font-weight: 900;
  text-transform: uppercase;
}

.gallery-grid button.active {
  color: #fff;
  background: var(--red);
}

.style-card,
form {
  padding: 30px;
  background: var(--cream);
  color: var(--black);
}

.style-card h3 {
  color: var(--red);
  font-size: 2rem;
}

.visit ul {
  margin: 0;
  padding: 0;
  list-style: none;
  background: var(--cream);
  color: var(--black);
}

.visit a {
  color: var(--tan);
  font-weight: 900;
}

form {
  display: grid;
  gap: 12px;
}

input, select, textarea {
  width: 100%;
  padding: 14px 15px;
  color: var(--black);
  background: #fff;
  border: 1px solid #d7cebf;
  border-radius: 0;
}

textarea {
  min-height: 110px;
  resize: vertical;
}

footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding: 28px max(20px, calc((100vw - var(--max)) / 2));
  background: #080808;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-weight: 800;
}

footer a {
  color: var(--cream);
}

@media (max-width: 920px) {
  .site-header {
    grid-template-columns: auto auto;
  }

  .header-call {
    display: none;
  }

  .nav-toggle {
    display: inline-flex;
  }

  nav {
    grid-column: 1 / -1;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding-top: 14px;
  }

  nav.is-open {
    display: flex;
  }

  .hero,
  .pricing,
  .gallery,
  .visit,
  .book {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 84px;
  }

  .service-list,
  .barber-grid {
    grid-template-columns: 1fr 1fr;
  }

  .service-list article:nth-child(2) {
    border-right: 0;
  }
}

@media (max-width: 620px) {
  .service-list,
  .barber-grid {
    grid-template-columns: 1fr;
  }

  .service-list article {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  h1 {
    font-size: clamp(2.8rem, 15vw, 4.5rem);
  }
}
