:root {
  --bg: #050505;
  --bg-soft: #0b0b0b;
  --panel: #111111;
  --line: rgba(255, 255, 255, 0.12);
  --text: #f8f5ef;
  --muted: #afa89b;
  --gold: #c9a45c;
  --gold-light: #f0d391;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.45);
  --radius: 8px;
  --font-body: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-display: "Playfair Display", Georgia, serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
}

body.nav-open {
  overflow: hidden;
}

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

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

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

::selection {
  background: var(--gold);
  color: #080808;
}

.section-shell {
  width: min(1120px, calc(100% - 32px));
  margin-inline: auto;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px max(16px, calc((100vw - 1120px) / 2));
  background: rgba(5, 5, 5, 0.42);
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(18px);
  transition: background 220ms ease, border-color 220ms ease, padding 220ms ease;
}

.site-header.is-scrolled {
  padding-block: 11px;
  background: rgba(5, 5, 5, 0.9);
  border-color: var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: max-content;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(201, 164, 92, 0.55);
  border-radius: 50%;
  color: var(--gold-light);
  font-size: 0.82rem;
  font-weight: 800;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 0.95rem;
  line-height: 1.1;
}

.brand small {
  color: var(--muted);
  font-size: 0.72rem;
}

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

.site-nav a {
  padding: 10px 13px;
  border-radius: 999px;
  color: rgba(248, 245, 239, 0.82);
  font-size: 0.9rem;
  font-weight: 600;
  transition: color 180ms ease, background 180ms ease;
}

.site-nav a:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 5px auto;
  background: var(--text);
  transition: transform 180ms ease;
}

.nav-open .nav-toggle span:first-child {
  transform: translateY(4px) rotate(45deg);
}

.nav-open .nav-toggle span:last-child {
  transform: translateY(-3px) rotate(-45deg);
}

.hero {
  position: relative;
  height: 100svh;
  min-height: 700px;
  display: grid;
  align-items: center;
  overflow: hidden;
  padding-block: 96px 130px;
}

.hero-media,
.hero-media img,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 68% center;
  transform: scale(1.02);
}

.hero-overlay {
  background:
    radial-gradient(circle at 72% 48%, rgba(201, 164, 92, 0.2), transparent 24%),
    linear-gradient(90deg, rgba(5, 5, 5, 0.95) 0%, rgba(5, 5, 5, 0.78) 42%, rgba(5, 5, 5, 0.18) 100%),
    linear-gradient(0deg, var(--bg) 0%, rgba(5, 5, 5, 0) 34%);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 720px;
  margin-left: max(16px, calc((100vw - 1120px) / 2));
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--gold-light);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

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

h1,
h2 {
  font-family: var(--font-display);
  line-height: 0.98;
}

h1 {
  max-width: 760px;
  margin-bottom: 22px;
  font-size: clamp(3.4rem, 7.8vw, 6rem);
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(2.2rem, 6vw, 4.8rem);
}

h3 {
  font-size: 1.28rem;
  line-height: 1.15;
}

.hero-copy {
  max-width: 460px;
  color: rgba(248, 245, 239, 0.82);
  font-size: clamp(1.05rem, 2vw, 1.35rem);
}

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

.btn {
  display: inline-flex;
  white-space: nowrap;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 0 22px;
  font-size: 0.9rem;
  font-weight: 800;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, color 180ms ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--gold);
  color: #070707;
}

.btn-primary:hover {
  background: var(--gold-light);
}

.btn-ghost {
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
}

.btn-ghost:hover {
  border-color: rgba(201, 164, 92, 0.65);
}

.hero-stats {
  position: absolute;
  right: max(16px, calc((100vw - 1120px) / 2));
  bottom: 24px;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  width: min(560px, calc(100% - 32px));
  border: 1px solid var(--line);
  background: rgba(10, 10, 10, 0.74);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.hero-stats article {
  padding: 17px;
}

.hero-stats article + article {
  border-left: 1px solid var(--line);
}

.hero-stats strong,
.hero-stats span {
  display: block;
}

.hero-stats strong {
  color: var(--gold-light);
  font-size: clamp(1.6rem, 4vw, 2.35rem);
  line-height: 1;
}

.hero-stats span {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.82rem;
}

.section {
  padding: clamp(76px, 10vw, 132px) 0;
}

.section-heading {
  max-width: 720px;
  margin-bottom: 42px;
}

.section-heading p:last-child,
.about-copy p,
.booking-copy p {
  color: var(--muted);
  font-size: 1rem;
}

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

.service-card,
.review-card,
.booking-form {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.025));
}

.service-card {
  position: relative;
  min-height: 230px;
  overflow: hidden;
  padding: 26px;
  transition: transform 220ms ease, border-color 220ms ease, background 220ms ease;
}

.service-card::after {
  content: "";
  position: absolute;
  inset: auto 20px 20px auto;
  width: 66px;
  height: 66px;
  border: 1px solid rgba(201, 164, 92, 0.34);
  border-radius: 50%;
  opacity: 0.38;
  transition: transform 220ms ease, opacity 220ms ease;
}

.service-card:hover {
  transform: translateY(-8px);
  border-color: rgba(201, 164, 92, 0.56);
  background: linear-gradient(145deg, rgba(201, 164, 92, 0.15), rgba(255, 255, 255, 0.035));
}

.service-card:hover::after {
  opacity: 1;
  transform: scale(1.18);
}

.service-card span {
  color: var(--gold);
  font-size: 0.82rem;
  font-weight: 800;
}

.service-card h3 {
  margin: 42px 0 12px;
}

.service-card p {
  color: var(--muted);
}

.service-card strong {
  display: block;
  margin-top: 22px;
  color: var(--gold-light);
  font-size: 2rem;
}

.service-card.featured {
  background: linear-gradient(145deg, rgba(201, 164, 92, 0.22), rgba(255, 255, 255, 0.035));
}

.cta-band {
  width: min(1120px, calc(100% - 32px));
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border: 1px solid rgba(201, 164, 92, 0.32);
  border-radius: var(--radius);
  padding: clamp(24px, 5vw, 42px);
  background:
    linear-gradient(120deg, rgba(201, 164, 92, 0.18), rgba(255, 255, 255, 0.04)),
    var(--panel);
}

.cta-band h2 {
  margin: 0;
  font-size: clamp(2rem, 5vw, 4rem);
}

.about {
  background:
    radial-gradient(circle at 0% 20%, rgba(201, 164, 92, 0.11), transparent 24%),
    var(--bg);
}

.about-layout,
.booking-layout,
.location-layout {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: clamp(32px, 7vw, 88px);
  align-items: center;
}

.about-image {
  position: relative;
}

.about-image img,
.barber-card img,
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-image img {
  aspect-ratio: 4 / 5;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.image-badge {
  position: absolute;
  right: -18px;
  bottom: 28px;
  padding: 14px 18px;
  border: 1px solid rgba(201, 164, 92, 0.4);
  background: rgba(5, 5, 5, 0.82);
  color: var(--gold-light);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  backdrop-filter: blur(12px);
}

.about-copy {
  max-width: 560px;
}

.about-signature {
  margin-top: 34px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.about-signature span {
  display: block;
  font-family: var(--font-display);
  color: var(--gold-light);
  font-size: 2.3rem;
}

.about-signature small {
  color: var(--muted);
}

.team {
  background: var(--bg-soft);
}

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

.barber-card {
  position: relative;
  min-height: 520px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  isolation: isolate;
}

.barber-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.08) 62%);
}

.barber-card img {
  position: absolute;
  inset: 0;
  transition: transform 350ms ease, filter 350ms ease;
}

.barber-card:hover img {
  transform: scale(1.055);
  filter: saturate(1.08);
}

.barber-info {
  position: absolute;
  inset: auto 0 0;
  z-index: 2;
  padding: 26px;
}

.barber-info p {
  margin-bottom: 8px;
  color: var(--gold-light);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.barber-info h3 {
  margin-bottom: 10px;
  font-family: var(--font-display);
  font-size: 2rem;
}

.barber-info span {
  display: block;
  color: rgba(248, 245, 239, 0.74);
  font-size: 0.95rem;
}

.socials {
  display: flex;
  gap: 10px;
  margin-top: 18px;
}

.socials a {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.07);
  color: var(--text);
  font-size: 0.72rem;
  font-weight: 800;
  transition: border-color 180ms ease, background 180ms ease, color 180ms ease;
}

.socials a:hover {
  border-color: var(--gold);
  background: var(--gold);
  color: #070707;
}

.masonry-grid {
  display: grid;
  grid-auto-flow: dense;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: 180px;
  gap: 16px;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border: 0;
  border-radius: var(--radius);
  padding: 0;
  background: var(--panel);
}

.gallery-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.5), transparent 55%);
  opacity: 0;
  transition: opacity 220ms ease;
}

.gallery-item img {
  transition: transform 320ms ease;
}

.gallery-item:hover img {
  transform: scale(1.05);
}

.gallery-item:hover::after {
  opacity: 1;
}

.gallery-item.tall {
  grid-row: span 2;
}

.gallery-item.wide {
  grid-column: span 2;
}

.reviews {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), transparent),
    var(--bg);
}

.review-card {
  min-height: 220px;
  padding: 28px;
}

.stars {
  color: var(--gold-light);
  letter-spacing: 0.08em;
}

blockquote {
  margin: 26px 0 0;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.15rem);
  line-height: 1.15;
}

.booking {
  background: var(--bg-soft);
}

.booking-copy {
  align-self: start;
  position: sticky;
  top: 110px;
}

.booking-note {
  display: grid;
  gap: 6px;
  margin-top: 28px;
  border-left: 2px solid var(--gold);
  padding-left: 18px;
}

.booking-note span {
  color: var(--muted);
}

.booking-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  padding: clamp(18px, 4vw, 32px);
}

label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 700;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  outline: 0;
  padding: 14px;
  transition: border-color 180ms ease, background 180ms ease;
}

select option {
  color: #111111;
}

textarea {
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: rgba(201, 164, 92, 0.8);
  background: rgba(255, 255, 255, 0.09);
}

.full-field {
  grid-column: 1 / -1;
}

.form-success {
  display: none;
  margin: 0;
  border: 1px solid rgba(201, 164, 92, 0.35);
  border-radius: var(--radius);
  padding: 14px;
  background: rgba(201, 164, 92, 0.12);
  color: var(--gold-light);
  font-weight: 700;
}

.form-success.is-visible {
  display: block;
}

.location-layout {
  grid-template-columns: 0.8fr 1.2fr;
}

address {
  display: grid;
  gap: 4px;
  margin: 26px 0;
  color: var(--muted);
  font-style: normal;
}

.location-details strong {
  color: var(--text);
}

.location-details p {
  margin-bottom: 4px;
  color: var(--muted);
}

.map-placeholder {
  position: relative;
  min-height: 430px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at center, rgba(201, 164, 92, 0.24), transparent 25%),
    linear-gradient(135deg, #161616, #080808);
}

.map-grid {
  position: absolute;
  inset: -40px;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.07) 1px, transparent 1px);
  background-size: 44px 44px;
  transform: rotate(-7deg) scale(1.1);
}

.map-pin {
  position: absolute;
  top: 48%;
  left: 50%;
  width: 24px;
  height: 24px;
  border-radius: 50% 50% 50% 0;
  background: var(--gold);
  box-shadow: 0 0 0 12px rgba(201, 164, 92, 0.14);
  transform: translate(-50%, -50%) rotate(-45deg);
}

.map-placeholder p {
  position: absolute;
  left: 24px;
  bottom: 20px;
  margin: 0;
  color: var(--muted);
  font-weight: 700;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: #030303;
  padding: 50px 0 24px;
}

.site-footer .brand-mark {
	margin-bottom: 12px;
}

.footer-layout {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 32px;
}

.site-footer p,
.site-footer a {
  color: var(--muted);
}

.site-footer h2 {
  margin-bottom: 14px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.9rem;
  line-height: 1.2;
}

.site-footer a {
  display: block;
  margin-bottom: 8px;
  transition: color 180ms ease;
}

.site-footer a:hover {
  color: var(--gold-light);
}

.copyright {
  width: min(1120px, calc(100% - 32px));
  margin: 34px auto 0;
  border-top: 1px solid var(--line);
  padding-top: 20px;
  font-size: 0.85rem;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(0, 0, 0, 0.88);
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
}

.lightbox.is-open {
  opacity: 1;
  pointer-events: auto;
}

.lightbox img {
  max-height: 82vh;
  width: min(980px, 100%);
  object-fit: contain;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.lightbox p {
  margin: 14px 0 0;
  color: var(--muted);
  font-weight: 700;
}

.lightbox-close,
.back-to-top {
  position: fixed;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  backdrop-filter: blur(12px);
}

.lightbox-close {
  top: 22px;
  right: 22px;
  z-index: 91;
  width: 48px;
  height: 48px;
  font-size: 2rem;
}

.back-to-top {
  right: 18px;
  bottom: 18px;
  z-index: 60;
  width: 46px;
  height: 46px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity 180ms ease, transform 180ms ease, background 180ms ease;
}

.back-to-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--gold);
  color: #070707;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 700ms ease, transform 700ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

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

  .reveal {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 900px) {
  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: fixed;
    top: 74px;
    right: 16px;
    left: 16px;
    display: grid;
    gap: 4px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 14px;
    background: rgba(10, 10, 10, 0.96);
    box-shadow: var(--shadow);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity 180ms ease, transform 180ms ease;
  }

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

  .site-nav a {
    border-radius: var(--radius);
    padding: 14px;
  }

  .hero {
    align-items: end;
    height: auto;
    min-height: 100svh;
    padding-bottom: 260px;
  }

  .hero-overlay {
    background:
      linear-gradient(0deg, var(--bg) 0%, rgba(5, 5, 5, 0.65) 42%, rgba(5, 5, 5, 0.2) 100%),
      linear-gradient(90deg, rgba(5, 5, 5, 0.92), rgba(5, 5, 5, 0.22));
  }

  .hero-content {
    margin-inline: auto;
  }

  .hero-stats {
    right: 16px;
    left: 16px;
    width: auto;
  }

  .service-grid,
  .team-grid,
  .review-grid,
  .footer-layout,
  .about-layout {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .booking-layout,
  .location-layout {
  	grid-template-columns: repeat(1, minmax(0, 1fr));
  }

  .booking-copy {
    position: static;
  }

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

@media (max-width: 640px) {
  .section-shell,
  .cta-band {
    width: min(100% - 24px, 1120px);
  }

  .site-header {
    padding-inline: 12px;
  }

  .hero {
    min-height: 100svh;
    padding-block: 120px 300px;
  }

  .hero-media img {
    object-position: 65% center;
  }

  h1 {
    font-size: clamp(3rem, 17vw, 5.5rem);
  }

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

  .hero-actions .btn,
  .cta-band .btn {
    width: 100%;
  }

  .hero-stats {
    grid-template-columns: 1fr;
  }

  .hero-stats article {
    padding: 16px;
  }

  .hero-stats article + article {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .service-card {
    min-height: 210px;
  }

  .barber-card {
    min-height: 470px;
  }

  .service-grid,
  .team-grid,
  .review-grid,
  .about-layout,
  .booking-layout,
  .location-layout,
  .footer-layout {
    grid-template-columns: repeat(1, minmax(0, 1fr));
  }

  .masonry-grid {
    grid-auto-rows: 220px;
    grid-template-columns: 1fr;
  }

  .gallery-item.tall,
  .gallery-item.wide {
    grid-row: auto;
    grid-column: auto;
  }

  .booking-form {
    grid-template-columns: 1fr;
  }

  .image-badge {
    right: 12px;
  }
}
