/* Hatfield Hair Design — first draft
   Mobile-first, western + modern barber
*/

:root {
  --bg: #0d0b0a;
  --bg-2: #15110f;
  --bg-3: #1c1713;
  --cream: #f0e6d6;
  --cream-dim: #c9bba6;
  --gold: #c6a15b;
  --gold-soft: #e0c37a;
  --gold-line: rgba(198, 161, 91, 0.4);
  --leather: #6b3d22;
  --ink: #0d0b0a;
  --danger-note: #c9bba6;
  --max: 1120px;
  --header-h: 4.25rem;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--cream);
  font-family: Outfit, system-ui, sans-serif;
  font-weight: 400;
  font-size: 1.05rem;
  line-height: 1.6;
  letter-spacing: 0.01em;
}

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

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: var(--gold);
  color: var(--ink);
  padding: 0.5rem 0.8rem;
  z-index: 100;
  font-weight: 600;
}
.skip:focus { top: 0.5rem; }

/* ——— Wordmark: boxed block lettering, echoing the apron logo ——— */
.wordmark {
  display: inline-block;
  text-decoration: none;
  color: var(--cream);
}
.wordmark-box {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 2px solid currentColor;
  padding: 0.42em 0.7em 0.28em;
  line-height: 0.82;
  box-shadow: inset 0 0 0 1px currentColor;
  outline: 1px solid currentColor;
  outline-offset: 3px;
}
.wordmark-box .l1,
.wordmark-box .l2 {
  font-family: "Bebas Neue", Oswald, sans-serif;
  font-weight: 400;
  font-style: normal;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  white-space: nowrap;
}
.wordmark-box .l1 { font-size: 1.55em; }
.wordmark-box .l2 { font-size: 0.92em; letter-spacing: 0.18em; margin-top: 0.08em; }

.wordmark--header { font-size: 0.72rem; color: var(--cream); }
.wordmark--hero { font-size: clamp(1.35rem, 4.6vw, 2.35rem); color: var(--cream); }
.wordmark--footer { font-size: 0.7rem; color: var(--cream-dim); }

/* ——— Header ——— */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0 1.1rem;
  background: rgba(13, 11, 10, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--gold-line);
}
.nav {
  display: flex;
  align-items: center;
  gap: 0.15rem 1rem;
}
.nav a {
  font-family: Oswald, sans-serif;
  font-weight: 500;
  font-size: 0.82rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--cream-dim);
  padding: 0.25rem 0;
}
.nav a:hover, .nav a:focus-visible { color: var(--gold); }
.nav .ig {
  display: inline-flex;
  width: 1.35rem;
  height: 1.35rem;
  color: var(--cream);
}
.nav .ig:hover { color: var(--gold); }
.nav .ig svg { width: 100%; height: 100%; fill: currentColor; }

/* ——— Hero ——— */
.hero {
  position: relative;
  min-height: calc(85svh - var(--header-h));
  min-height: calc(85vh - var(--header-h));
  display: flex;
  align-items: flex-end;
  isolation: isolate;
  overflow: hidden;
}
.hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
}
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  filter: contrast(1.05) saturate(0.92);
}
.hero-shade {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(13,11,10,0.25) 0%, rgba(13,11,10,0.15) 35%, rgba(13,11,10,0.72) 70%, rgba(13,11,10,0.96) 100%),
    linear-gradient(90deg, rgba(13,11,10,0.45) 0%, rgba(13,11,10,0.1) 45%, rgba(13,11,10,0.35) 100%);
}
.hero-inner {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 2.5rem 1.25rem 3.25rem;
}
.hero-kicker {
  font-family: Oswald, sans-serif;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  font-size: 0.75rem;
  color: var(--gold);
  margin: 1.25rem 0 0.85rem;
}
.hero h1 {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}
.hero-lead {
  max-width: 32rem;
  color: var(--cream);
  font-weight: 300;
  font-size: 1.08rem;
  margin: 1.15rem 0 1.5rem;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: Oswald, sans-serif;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  font-size: 0.86rem;
  border: 1px solid var(--gold);
  color: var(--ink);
  background: var(--gold);
  padding: 0.85rem 1.35rem;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.btn:hover, .btn:focus-visible {
  background: var(--gold-soft);
  border-color: var(--gold-soft);
}
.btn--ghost {
  background: transparent;
  color: var(--cream);
  border-color: var(--gold);
}
.btn--ghost:hover, .btn--ghost:focus-visible {
  background: var(--gold);
  color: var(--ink);
}
.btn--block { width: 100%; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }

/* ——— Sections ——— */
section { padding: 3.5rem 1.25rem; }
.section-inner { max-width: var(--max); margin: 0 auto; }

.section-kicker {
  font-family: Oswald, sans-serif;
  font-weight: 500;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  font-size: 0.72rem;
  color: var(--gold);
  margin: 0 0 0.5rem;
}
.section-title {
  font-family: Oswald, sans-serif;
  font-weight: 600;
  font-size: clamp(1.8rem, 4.5vw, 2.6rem);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1.1;
  margin: 0 0 0.75rem;
}
.section-intro {
  color: var(--cream-dim);
  max-width: 36rem;
  margin: 0 0 2rem;
  font-weight: 300;
}
.rule {
  display: block;
  width: 3.5rem;
  height: 2px;
  background: var(--gold);
  margin: 0 0 1.5rem;
}

/* ——— Booking cards ——— */
#book { background: var(--bg-2); border-top: 1px solid var(--gold-line); border-bottom: 1px solid var(--gold-line); }

.book-grid {
  display: grid;
  gap: 1.15rem;
}
.book-card {
  background: var(--bg-3);
  border: 1px solid var(--gold-line);
  display: flex;
  flex-direction: column;
  min-height: 100%;
}
.book-card-photo {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #1a1512;
}
.book-card-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 18%;
}
.book-card-body {
  padding: 1.25rem 1.2rem 1.35rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.book-card h3 {
  font-family: Oswald, sans-serif;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 1.45rem;
  margin: 0 0 0.15rem;
  line-height: 1.15;
}
.book-card .venue {
  font-size: 0.95rem;
  color: var(--cream-dim);
  margin: 0 0 0.35rem;
}
.book-card .meta {
  font-size: 0.85rem;
  color: var(--gold);
  letter-spacing: 0.04em;
  margin: 0 0 1.1rem;
}
.book-card .btn { margin-top: auto; }
.placeholder-note {
  margin: 0.65rem 0 0;
  font-size: 0.78rem;
  color: var(--cream-dim);
  line-height: 1.45;
}
.placeholder-note code {
  font-family: ui-monospace, monospace;
  font-size: 0.85em;
  color: var(--gold-soft);
}

/* ——— Gallery ——— */
#work { background: var(--bg); }
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(10.5rem, 1fr));
  gap: 0.55rem;
}
.gallery figure {
  margin: 0;
  position: relative;
  overflow: hidden;
  background: #1a1512;
  aspect-ratio: 3 / 4;
}
.gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.gallery figure:hover img,
.gallery figure:focus-within img { transform: scale(1.04); }
.gallery figcaption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 2.2rem 0.7rem 0.6rem;
  background: linear-gradient(transparent, rgba(13,11,10,0.88));
  font-family: Oswald, sans-serif;
  font-weight: 500;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cream);
}

/* ——— About ——— */
#about { background: var(--bg-2); border-top: 1px solid var(--gold-line); }
.about-grid {
  display: grid;
  gap: 1.75rem;
  align-items: center;
}
.about-photo {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--gold-line);
}
.about-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 4 / 5;
  object-position: center 30%;
}
.about-copy p { margin: 0 0 1rem; color: var(--cream-dim); font-weight: 300; }
.about-copy p:first-of-type { color: var(--cream); font-size: 1.08rem; font-weight: 400; }
.ig-link {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin-top: 0.5rem;
  font-family: Oswald, sans-serif;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--gold);
  font-size: 0.9rem;
}
.ig-link:hover { color: var(--gold-soft); }
.ig-link svg { width: 1.15rem; height: 1.15rem; fill: currentColor; }

/* ——— Footer ——— */
.site-footer {
  border-top: 1px solid var(--gold-line);
  padding: 2.25rem 1.25rem 2.5rem;
  text-align: center;
  background: var(--bg);
}
.site-footer .wordmark { margin-bottom: 1rem; }
.footer-links {
  display: flex;
  justify-content: center;
  gap: 1.25rem;
  margin: 1rem 0 1.1rem;
}
.footer-links a {
  font-family: Oswald, sans-serif;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  font-size: 0.75rem;
  color: var(--cream-dim);
}
.footer-links a:hover { color: var(--gold); }
.legal {
  margin: 0;
  font-size: 0.78rem;
  color: #8a7e6e;
}

/* ——— Desktop ——— */
@media (min-width: 720px) {
  .site-header { padding: 0 2rem; }
  section { padding: 4.5rem 2rem; }
  .hero-inner { padding: 3rem 2rem 4rem; }
  .book-grid { grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
  .gallery { grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr)); gap: 0.7rem; }
  .about-grid { grid-template-columns: 1fr 1.15fr; gap: 3rem; }
  .about-photo img { aspect-ratio: 3 / 2; }
}

@media (min-width: 1080px) {
  .gallery { grid-template-columns: repeat(auto-fill, minmax(16.5rem, 1fr)); }
  .hero-lead { font-size: 1.18rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .gallery img { transition: none; }
}

.about-grid--text { grid-template-columns: 1fr; max-width: 40rem; }
@media (max-width: 419px) {
  .site-header { padding: 0 0.75rem; }
  .nav { gap: 0.75rem; }
  .nav a { font-size: 0.72rem; letter-spacing: 0.12em; }
  .wordmark--header { font-size: 0.62rem; }
  .wordmark-box { outline-offset: 2px; }
}

/* Hero shorter on desktop so booking is closer to first view */
@media (min-width: 720px) {
  .hero {
    min-height: calc(78vh - var(--header-h));
  }
}

.book-alt {
  display: block;
  margin-top: 0.7rem;
  text-align: center;
  font-size: 0.82rem;
  color: var(--cream-dim);
  text-decoration: none;
}
.book-alt:hover, .book-alt:focus-visible { color: var(--gold); }
