:root {
  --paper: #f4f2ec;
  --paper-soft: #fffdf7;
  --ink: #171a16;
  --muted: #63675f;
  --line: #d8d3c7;
  --green: #243d2f;
  --green-soft: #dfe7dc;
  --brown: #7a5638;
  --brown-dark: #4b3321;
  --charcoal: #252823;
  --shadow: 0 22px 52px rgba(23, 26, 22, 0.12);
  --radius: 8px;
  --max: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

[id] {
  scroll-margin-top: 86px;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family:
    ui-sans-serif,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  line-height: 1.55;
}

body.nav-open {
  overflow: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}

.portfolio-strip {
  display: flex;
  justify-content: center;
  gap: 12px;
  padding: 9px 14px;
  border-bottom: 1px solid rgba(216, 211, 199, 0.82);
  background: rgba(255, 253, 247, 0.88);
  color: #4f554b;
  font-size: 0.82rem;
  font-weight: 780;
  text-align: center;
}

.portfolio-strip span {
  color: var(--muted);
}

.portfolio-strip a {
  color: var(--green);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(calc(100% - 28px), var(--max));
  min-height: 70px;
  margin: 0 auto;
  transition:
    min-height 160ms ease,
    padding 160ms ease,
    background 160ms ease,
    box-shadow 160ms ease;
}

.site-header.is-scrolled {
  min-height: 58px;
  margin-top: 8px;
  padding: 0 12px;
  border: 1px solid rgba(216, 211, 199, 0.9);
  border-radius: var(--radius);
  background: rgba(255, 253, 247, 0.92);
  box-shadow: 0 12px 30px rgba(23, 26, 22, 0.1);
  backdrop-filter: blur(14px);
}

.brand {
  display: grid;
  gap: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.22rem;
  font-weight: 720;
  line-height: 1;
}

.brand small {
  color: var(--muted);
  font-family:
    ui-sans-serif,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  font-size: 0.66rem;
  font-weight: 850;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.site-nav a {
  min-height: 40px;
  padding: 9px 12px;
  border-radius: 999px;
  color: #4f554b;
  font-size: 0.92rem;
  font-weight: 760;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  background: rgba(36, 61, 47, 0.1);
  color: var(--ink);
  outline: none;
}

.site-nav .nav-book {
  background: var(--green);
  color: white;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper-soft);
  color: var(--ink);
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  border-radius: 999px;
  background: currentColor;
  transition: transform 160ms ease;
}

.nav-toggle[aria-expanded="true"] span:first-child {
  transform: translateY(3px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:last-child {
  transform: translateY(-3px) rotate(-45deg);
}

.hero,
.section,
.site-footer {
  width: min(calc(100% - 28px), var(--max));
  margin: 0 auto;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.94fr) minmax(360px, 1.06fr);
  gap: 42px;
  align-items: center;
  min-height: calc(100vh - 78px);
  padding: 42px 0 68px;
}

.hero-copy {
  min-width: 0;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--green);
  font-size: 0.76rem;
  font-weight: 850;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 560;
  letter-spacing: 0;
  overflow-wrap: break-word;
}

h1 {
  max-width: 680px;
  margin-bottom: 18px;
  font-size: clamp(3.1rem, 7.4vw, 6rem);
  line-height: 0.96;
}

h2 {
  margin-bottom: 14px;
  font-size: clamp(2.05rem, 4.8vw, 3.75rem);
  line-height: 1.02;
}

h3 {
  margin-bottom: 8px;
  font-size: 1.12rem;
  line-height: 1.2;
}

.hero-text,
.section-heading p,
.prices p,
.about > p,
.location p,
.book p {
  color: var(--muted);
  font-size: 1.05rem;
}

.hero-text {
  max-width: 570px;
  margin-bottom: 26px;
}

.hero-actions,
.book-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 13px 17px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  font: inherit;
  font-weight: 820;
  line-height: 1;
  text-align: center;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    background 160ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
  outline: none;
}

.button-primary {
  background: var(--green);
  color: white;
  box-shadow: 0 14px 28px rgba(36, 61, 47, 0.2);
}

.button-primary:hover,
.button-primary:focus-visible {
  background: #1a2f23;
}

.button-secondary {
  border-color: rgba(122, 86, 56, 0.36);
  background: #eadfd2;
  color: var(--brown-dark);
}

.quick-info {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  margin-top: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--line);
}

.quick-info div {
  display: grid;
  gap: 4px;
  min-height: 88px;
  padding: 15px;
  background: rgba(255, 253, 247, 0.8);
}

.quick-info span {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.quick-info strong,
.quick-info a {
  font-size: 0.94rem;
  font-weight: 820;
  line-height: 1.25;
}

.hero-image {
  position: relative;
  overflow: hidden;
  margin: 0;
  border: 1px solid rgba(216, 211, 199, 0.9);
  border-radius: var(--radius);
  background: var(--paper-soft);
  box-shadow: var(--shadow);
}

.hero-image img {
  width: 100%;
  height: min(66vh, 650px);
  min-height: 420px;
  object-fit: cover;
}

.hero-image figcaption {
  position: absolute;
  left: 14px;
  bottom: 14px;
  max-width: calc(100% - 28px);
  padding: 9px 11px;
  border-radius: var(--radius);
  background: rgba(23, 26, 22, 0.76);
  color: white;
  font-size: 0.82rem;
  backdrop-filter: blur(10px);
}

.section {
  padding: 72px 0;
}

.section-heading {
  max-width: 700px;
  margin-bottom: 28px;
}

.services-grid,
.barber-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--line);
}

.services-grid article,
.barber-grid article {
  min-height: 190px;
  padding: 23px;
  background: rgba(255, 253, 247, 0.78);
}

.services-grid span {
  display: inline-flex;
  margin-bottom: 30px;
  color: var(--brown);
  font-size: 0.76rem;
  font-weight: 850;
}

.services-grid p,
.barber-grid p,
.special-note {
  margin-bottom: 0;
  color: var(--muted);
}

.prices {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(340px, 1fr);
  gap: 38px;
  align-items: start;
}

.price-list {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--line);
  box-shadow: 0 18px 40px rgba(23, 26, 22, 0.08);
}

.price-list div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  min-height: 64px;
  padding: 15px 18px;
  background: var(--paper-soft);
}

.price-list span {
  font-weight: 820;
}

.price-list strong {
  color: var(--green);
  font-size: 1.05rem;
}

.about {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 0.72fr);
  gap: 44px;
  align-items: end;
  border-top: 1px solid var(--line);
}

.about p {
  margin-bottom: 0;
}

.barber-grid article {
  min-height: 154px;
}

.barber-grid h3 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.55rem;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.gallery-photo {
  min-height: 300px;
  border: 1px solid rgba(216, 211, 199, 0.9);
  border-radius: var(--radius);
  background-image: url("assets/oak-street-gallery.jpg");
  background-repeat: no-repeat;
  background-size: 200% 200%;
  box-shadow: 0 16px 34px rgba(23, 26, 22, 0.1);
}

.photo-tools {
  background-position: left top;
}

.photo-fade {
  background-position: right top;
}

.photo-chair {
  background-position: left bottom;
}

.photo-beard {
  background-position: right bottom;
}

.visit {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: 18px;
}

.hours,
.location,
.book {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 253, 247, 0.78);
}

.hours,
.location {
  padding: 28px;
}

.hours dl {
  display: grid;
  gap: 1px;
  overflow: hidden;
  margin: 24px 0 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--line);
}

.hours dl div {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 18px;
  padding: 14px;
  background: var(--paper-soft);
}

.hours dt {
  color: var(--ink);
  font-weight: 850;
}

.hours dd {
  margin: 0;
  color: var(--muted);
}

address {
  margin-bottom: 14px;
  font-style: normal;
  font-size: 1.25rem;
  font-weight: 820;
  line-height: 1.35;
}

.location .button {
  margin-top: 10px;
}

.demo-location-label {
  display: inline-flex;
  margin: 0 0 12px;
  padding: 6px 9px;
  border: 1px solid rgba(36, 61, 47, 0.24);
  border-radius: 999px;
  background: rgba(223, 231, 220, 0.68);
  color: var(--green);
  font-size: 0.75rem;
  font-weight: 850;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.demo-map-message {
  max-width: 460px;
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 0.94rem;
}

.book {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 30px;
  align-items: center;
  margin-bottom: 54px;
  padding: 34px;
  background: var(--charcoal);
  color: white;
}

.book .eyebrow,
.book p {
  color: rgba(255, 255, 255, 0.72);
}

.book p {
  max-width: 660px;
  margin-bottom: 0;
}

.book .button-secondary {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.24);
  color: white;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 28px 0 42px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.92rem;
}

.site-footer p {
  max-width: 780px;
  margin: 0;
}

.site-footer a {
  font-weight: 850;
}

@media (max-width: 920px) {
  .hero,
  .prices,
  .about,
  .visit,
  .book {
    grid-template-columns: 1fr;
  }

  .hero {
    gap: 30px;
    min-height: auto;
  }

  .hero-image {
    order: -1;
  }

  .hero-image img {
    height: 54vh;
    min-height: 360px;
  }

  .quick-info {
    grid-template-columns: 1fr;
  }

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

  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .book-actions {
    align-items: flex-start;
  }
}

@media (max-width: 680px) {
  .site-header {
    width: min(calc(100% - 22px), var(--max));
    min-height: 64px;
  }

  .site-header.is-scrolled {
    padding: 0 10px;
  }

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

  .site-nav {
    position: fixed;
    inset: 76px 11px auto 11px;
    display: grid;
    gap: 6px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(255, 253, 247, 0.98);
    box-shadow: 0 18px 42px rgba(23, 26, 22, 0.16);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
    transition:
      opacity 160ms ease,
      transform 160ms ease;
  }

  body.nav-open .site-nav {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .site-nav a {
    display: flex;
    align-items: center;
    min-height: 48px;
    padding: 12px 14px;
    border-radius: calc(var(--radius) - 2px);
  }

  .hero,
  .section,
  .site-footer {
    width: min(calc(100% - 22px), var(--max));
  }

  .hero {
    padding: 20px 0 48px;
  }

  h1 {
    font-size: clamp(2.75rem, 11.5vw, 3.45rem);
    line-height: 1;
  }

  h2 {
    font-size: clamp(2rem, 10vw, 3rem);
  }

  .hero-actions,
  .book-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .section {
    padding: 56px 0;
  }

  .hero-image img {
    min-height: 290px;
    height: 44vh;
  }

  .hero-image figcaption {
    position: static;
    max-width: none;
    border-radius: 0;
    background: var(--charcoal);
  }

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

  .services-grid article,
  .barber-grid article,
  .hours,
  .location,
  .book {
    padding: 20px;
  }

  .price-list div {
    min-height: 58px;
    padding: 14px;
  }

  .gallery-grid {
    gap: 10px;
  }

  .gallery-photo {
    min-height: 190px;
  }

  .hours dl div {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .book {
    margin-bottom: 42px;
  }

  .site-footer {
    flex-direction: column;
  }

  .portfolio-strip {
    flex-direction: column;
    gap: 2px;
  }
}

@media (max-width: 420px) {
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .gallery-photo {
    min-height: 250px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
