/* NORTH CUT — portfolio landing page
   Charcoal, ivory, muted gold. Content stays visible if JavaScript is off. */

:root {
  --ink: #12110f;
  --charcoal: #1b1916;
  --panel: #23211d;
  --ivory: #f3eee4;
  --ivory-soft: #e7e0d2;
  --gold: #c2a36a;
  --gold-deep: #9c8049;
  --muted: #b7aea0;
  --danger: #e8b4a2;
  --radius: 2px;
  --header-h: 4.5rem;
  --space: clamp(1.25rem, 4vw, 2.5rem);
  --max: 72rem;
  --serif: "Cormorant Garamond", "Times New Roman", Times, serif;
  --sans: "Outfit", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

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

html {
  scroll-behavior: smooth;
  overflow-x: clip;
}

body {
  margin: 0;
  min-width: 0;
  max-width: 100%;
  font-family: var(--sans);
  font-weight: 400;
  color: var(--ivory);
  background: var(--ink);
  line-height: 1.6;
  overflow-x: clip;
}

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

h1,
h2,
h3,
blockquote {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(3rem, 9vw, 7.25rem);
  margin: 0 0 1rem;
}

h2 {
  font-size: clamp(2.1rem, 5vw, 3.6rem);
  margin: 0 0 0.85rem;
}

h3 {
  font-size: 1.7rem;
  margin: 0 0 0.4rem;
}

p {
  margin: 0 0 1rem;
}

a {
  color: var(--gold);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--ivory);
}

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

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 1000;
  background: var(--gold);
  color: var(--ink);
  padding: 0.7rem 1rem;
  font-weight: 500;
}

.skip-link:focus {
  top: 1rem;
}

.container {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

.section {
  padding: clamp(4.5rem, 10vw, 8rem) 0;
}

.section-header {
  max-width: 38rem;
  margin-bottom: 2.75rem;
}

.section-intro,
.hero-lead {
  color: var(--ivory-soft);
  font-size: 1.05rem;
  font-weight: 300;
}

.eyebrow {
  margin: 0 0 0.75rem;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.72rem;
  font-weight: 500;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.85rem 1.4rem;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font: inherit;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-decoration: none;
  cursor: pointer;
  transition: transform 160ms ease, background-color 160ms ease, color 160ms ease;
}

.btn-gold {
  background: var(--gold);
  color: var(--ink);
}

.btn-gold:hover {
  background: var(--ivory);
  color: var(--ink);
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  border-color: rgba(243, 238, 228, 0.35);
  color: var(--ivory);
}

.btn-ghost:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.text-link {
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(18, 17, 15, 0.92);
  border-bottom: 1px solid rgba(194, 163, 106, 0.16);
  backdrop-filter: blur(12px);
}

.header-inner {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--ivory);
  text-decoration: none;
  font-family: var(--serif);
  font-size: 1.35rem;
  letter-spacing: 0.18em;
}

.logo-mark {
  width: 0.7rem;
  height: 0.7rem;
  border: 1px solid var(--gold);
  transform: rotate(45deg);
}

.nav-toggle {
  display: none;
  width: 3rem;
  height: 3rem;
  padding: 0;
  border: 1px solid rgba(243, 238, 228, 0.25);
  background: transparent;
  color: var(--ivory);
  cursor: pointer;
}

.nav-toggle-bar {
  display: block;
  width: 1.2rem;
  height: 1px;
  margin: 0.28rem auto;
  background: currentColor;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-list a {
  color: var(--ivory-soft);
  text-decoration: none;
  font-size: 0.95rem;
}

.nav-list a:hover {
  color: var(--gold);
}

.nav-cta {
  display: inline-flex;
  min-height: 2.75rem;
  align-items: center;
  padding: 0 1rem;
  border: 1px solid var(--gold);
  color: var(--gold) !important;
}

.nav-cta:hover {
  background: var(--gold);
  color: var(--ink) !important;
}

.nav-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  max-width: 100%;
  background: rgba(0, 0, 0, 0.45);
  z-index: 30;
}

/* Hero */

.hero {
  position: relative;
  min-height: min(92vh, 54rem);
  display: grid;
  align-items: end;
}

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

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(18, 17, 15, 0.28) 0%, rgba(18, 17, 15, 0.78) 72%, var(--ink) 100%),
    linear-gradient(90deg, rgba(18, 17, 15, 0.55) 0%, rgba(18, 17, 15, 0.12) 55%);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(100% - 2rem, var(--max));
  margin: 0 auto;
  padding: 8rem 0 4.5rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.75rem;
}

/* Services */

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

.service-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1px;
  background: rgba(194, 163, 106, 0.18);
  border: 1px solid rgba(194, 163, 106, 0.18);
}

.service-card {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto auto;
  gap: 0.4rem 1.5rem;
  padding: 1.6rem 1.4rem;
  background: var(--charcoal);
}

.service-card p {
  color: var(--muted);
  margin-bottom: 0.4rem;
}

.price {
  font-family: var(--serif);
  font-size: 1.65rem;
  color: var(--gold);
  margin: 0;
}

.service-card .text-link {
  grid-column: 1 / -1;
}

.service-card:hover {
  background: #221f1b;
}

/* About */

.about-grid {
  display: grid;
  gap: 3rem;
  align-items: center;
}

.about-copy p {
  color: var(--ivory-soft);
  max-width: 38rem;
}

blockquote {
  margin: 2rem 0 0;
  padding-left: 1.1rem;
  border-left: 1px solid var(--gold);
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-style: italic;
  color: var(--ivory);
}

.about-figure img {
  width: 100%;
  aspect-ratio: 1400 / 933;
  object-fit: cover;
  filter: saturate(0.82) contrast(1.05);
}

.about-figure figcaption {
  margin-top: 0.7rem;
  color: var(--muted);
  font-size: 0.85rem;
}

/* Gallery */

.gallery {
  background: #161411;
}

.gallery-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
}

.gallery-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 4 / 5;
  transition: transform 400ms ease, filter 400ms ease;
}

.gallery-grid li {
  overflow: hidden;
  background: var(--panel);
}

.gallery-grid li:hover img {
  transform: scale(1.04);
  filter: saturate(1.05);
}

/* Barbers */

.barber-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.5rem;
}

.barber-card {
  background: var(--panel);
}

.barber-card img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  filter: grayscale(0.25) contrast(1.05);
}

.barber-meta {
  padding: 1.3rem 1.2rem 1.5rem;
}

.specialty {
  color: var(--gold);
  font-size: 0.92rem;
  margin-bottom: 0.6rem;
}

.barber-meta p:last-child {
  color: var(--muted);
  margin: 0;
}

/* Booking */

.booking {
  background: var(--charcoal);
}

.booking-form {
  max-width: 46rem;
}

.form-grid {
  display: grid;
  gap: 1.1rem;
}

.field {
  min-width: 0;
}

.field label {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.92rem;
  letter-spacing: 0.04em;
}

.field input,
.field select {
  width: 100%;
  min-height: 3rem;
  padding: 0.7rem 0.8rem;
  border: 1px solid rgba(243, 238, 228, 0.2);
  border-radius: var(--radius);
  background: #141210;
  color: var(--ivory);
  font: inherit;
}

.field input:hover,
.field select:hover,
.field input:focus,
.field select:focus {
  border-color: var(--gold);
}

.field-hint {
  margin: 0.4rem 0 0;
  color: var(--muted);
  font-size: 0.82rem;
}

.field-error {
  min-height: 1.2rem;
  margin: 0.35rem 0 0;
  color: var(--danger);
  font-size: 0.85rem;
}

.field input[aria-invalid="true"],
.field select[aria-invalid="true"] {
  border-color: var(--danger);
}

.form-note {
  color: var(--muted);
  font-size: 0.9rem;
  margin: 1.2rem 0 1.4rem;
}

/* Visit */

.visit-grid {
  display: grid;
  gap: 1.5rem;
}

.visit-card {
  background: var(--panel);
  padding: 1.5rem 1.3rem;
}

.hours {
  list-style: none;
  margin: 0;
  padding: 0;
}

.hours li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.7rem 0;
  border-bottom: 1px solid rgba(243, 238, 228, 0.08);
  color: var(--ivory-soft);
}

.demo-tag,
.demo-inline {
  display: inline-block;
  margin-top: 0.4rem;
  color: var(--gold);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.visit-card a {
  overflow-wrap: anywhere;
}

/* Footer */

.site-footer {
  border-top: 1px solid rgba(194, 163, 106, 0.18);
  padding: 3rem 0 2.5rem;
  color: var(--muted);
}

.footer-grid {
  display: grid;
  gap: 0.8rem;
}

.footer-brand {
  font-family: var(--serif);
  font-size: 1.6rem;
  letter-spacing: 0.18em;
  color: var(--ivory);
  margin: 0;
}

.footer-meta {
  margin-top: 0.6rem;
}

/* Modal */

.modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: 1rem;
  background: rgba(10, 9, 8, 0.72);
}

.modal[hidden] {
  display: none;
}

.modal-panel {
  width: min(100%, 34rem);
  background: var(--ivory);
  color: var(--ink);
  padding: 2rem 1.5rem;
  box-shadow: var(--shadow);
}

.modal-panel h2 {
  color: var(--ink);
}

.modal-note {
  color: #4d473d;
}

body.menu-open,
body.modal-open {
  overflow: hidden;
}

/* Scroll reveal: keep content visible unless JS opts in */

.js-enabled .reveal {
  opacity: 0;
  transform: translateY(18px);
}

.js-enabled .reveal.is-visible {
  opacity: 1;
  transform: none;
  transition: opacity 700ms ease, transform 700ms ease;
}

@media (min-width: 700px) {
  .form-grid {
    grid-template-columns: 1fr 1fr;
  }

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

  .gallery-grid li:nth-child(1),
  .gallery-grid li:nth-child(4) {
    grid-row: span 2;
  }

  .gallery-grid li:nth-child(1) img,
  .gallery-grid li:nth-child(4) img {
    aspect-ratio: 3 / 4;
  }

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

  .visit-grid {
    grid-template-columns: 1.1fr 1fr;
  }

  .visit-grid > :first-child {
    grid-column: 1 / -1;
  }
}

@media (min-width: 960px) {
  .about-grid {
    grid-template-columns: 1fr 1fr;
    gap: 4.5rem;
  }

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

  .visit-grid {
    grid-template-columns: 1.2fr 1fr 1fr;
  }

  .visit-grid > :first-child {
    grid-column: auto;
  }
}

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

  .primary-nav {
    position: fixed;
    top: 0;
    right: 0;
    z-index: 50;
    width: min(20rem, 100%);
    height: 100dvh;
    padding: 5.5rem 1.4rem 2rem;
    background: var(--ink);
    border-left: 1px solid rgba(194, 163, 106, 0.2);
    transform: translateX(100%);
    visibility: hidden;
    transition: transform 220ms ease, visibility 220ms ease;
  }

  .primary-nav.is-open {
    transform: none;
    visibility: visible;
  }

  .nav-list {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.1rem;
  }

  .nav-cta {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 520px) {
  .service-card {
    grid-template-columns: 1fr;
  }

  .hours li {
    flex-direction: column;
    gap: 0.2rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }

  .js-enabled .reveal {
    opacity: 1;
    transform: none;
  }

  .gallery-grid li:hover img {
    transform: none;
  }

  .btn-gold:hover {
    transform: none;
  }
}
