/* ============================================================
   The Dementia Barber Co. — one-page site
   ============================================================ */

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url('fonts/inter-latin.woff2') format('woff2');
}
@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 500 600;
  font-display: swap;
  src: url('fonts/playfair-latin.woff2') format('woff2');
}
@font-face {
  font-family: 'Playfair Display';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/playfair-italic-latin.woff2') format('woff2');
}

:root {
  --bg: #121110;
  --ink: #D6D0C4;
  --ink-bright: #F4F1E9;
  --ink-soft: #BDB5A6;
  --ink-muted: #9A9387;
  --line: #2A2826;
  --line-strong: #5A5244;
  --gold: #C9B48A;
  --gold-frame: rgba(201, 180, 138, .45);
  --gold-frame-strong: rgba(201, 180, 138, .6);
  --gold-grad: linear-gradient(100deg, #B39B6C 0%, #D2C199 40%, #BCA77B 70%, #B39B6C 100%);
  --btn-ink: #1F1D19;
  --serif: 'Playfair Display', Georgia, serif;
  --sans: Inter, system-ui, sans-serif;
  --gutter: clamp(1.5rem, 8vw, 7.5rem);
  --sec-y: clamp(4rem, 8vw, 6rem);
}

*, *::before, *::after { box-sizing: border-box; min-width: 0; }
html { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; scroll-behavior: smooth; scroll-padding-top: 8px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: clamp(1.125rem, 1.07rem + 0.22vw, 1.25rem);
  line-height: 1.6;
  letter-spacing: 0.01em;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--ink); text-decoration: none; }
a:hover { color: var(--ink-bright); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
h1, h2, h3, p, figure, blockquote, dl, dd, ol, ul { margin: 0; }

.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 10;
  background: var(--ink-bright); color: var(--bg); padding: .75rem 1.25rem; border-radius: 6px; font-weight: 600;
}
.skip-link:focus { top: 1rem; color: var(--bg); }

.wrap { max-width: 1440px; margin: 0 auto; }
.sec { padding: var(--sec-y) var(--gutter); border-top: 1px solid var(--line); }

h2 {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(2rem, 1.79rem + 0.88vw, 2.5rem);
  line-height: 1.2; letter-spacing: -0.005em;
  color: var(--ink-bright); margin-bottom: 1.5rem; text-wrap: pretty;
}
.measure { max-width: 65ch; }
.measure + .measure { margin-top: 1em; }

.eyebrow {
  display: flex; align-items: center; gap: 1.25rem; margin-bottom: 1.5rem;
  font-family: var(--sans); font-size: 1rem; font-weight: 600; letter-spacing: 0.08em;
  line-height: 1.4; text-transform: uppercase; color: var(--gold);
}
.rule { display: block; width: 100px; height: 1px; background: var(--line-strong); }
.rule-sm { width: 60px; }
.rule-gold { width: 40px; background: var(--gold); }
.rule-center { margin: 0 auto; }
.framed { border: 1px solid var(--gold-frame); border-radius: 6px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 3.5rem; padding: 1rem 2.75rem; border: none; border-radius: 999px; cursor: pointer;
  background: var(--gold-grad); color: var(--btn-ink);
  font-family: var(--sans); font-weight: 600; font-size: 1.125rem; line-height: 1.2;
  letter-spacing: 0.06em; text-transform: uppercase; white-space: nowrap;
  transition: filter .2s;
}
.btn:hover { color: var(--btn-ink); filter: brightness(1.08); }

/* ---------- Header ---------- */
.hdr {
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  padding: 1.5rem var(--gutter); border-bottom: 1px solid var(--line);
}
.logo-wrap, .ftr-logo { display: block; position: relative; overflow: hidden; flex: none; width: 200px; height: 70px; }
.logo-wrap img, .ftr-logo img {
  /* The wordmark spans ~66% of the source image, so 150% fills the box without clipping */
  position: absolute; left: 50%; top: 50%; width: 150%; max-width: none; height: auto;
  transform: translate(-50%, -50%); mix-blend-mode: screen; pointer-events: none;
}
.site-nav { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: 1rem 2.5rem; font-size: 1.125rem; font-weight: 500; letter-spacing: 0; }
.nav-burger {
  display: none; flex-direction: column; justify-content: center; align-items: center; gap: 6px;
  background: none; border: none; padding: .75rem; margin-right: -.75rem; min-width: 48px; min-height: 48px; cursor: pointer;
}
.nav-burger span { display: block; width: 30px; height: 3px; background: #E9E4D8; border-radius: 2px; transition: transform .2s, opacity .2s; }
.nav-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.nav-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }
.mobile-menu {
  display: flex; flex-direction: column; text-align: center;
  padding: 0 var(--gutter); border-bottom: 1px solid var(--line); font-size: 1.25rem; font-weight: 500; letter-spacing: 0;
}
.mobile-menu[hidden] { display: none; }
.mobile-menu a { padding: 1.125rem 0; border-bottom: 1px solid var(--line); }
.mobile-menu a:last-child { border-bottom: none; }

/* ---------- Hero ---------- */
.hero {
  border-top: none;
  padding-block: clamp(3.5rem, 8vw, 5.5rem);
  display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(300px, 440px);
  gap: clamp(2.5rem, 5vw, 4rem); align-items: center;
}
.hero-text { display: flex; flex-direction: column; max-width: 800px; }
.hero-label { gap: 1.5rem; }
.hero-label span:first-child { white-space: nowrap; }
.hero-h1 {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(2.25rem, (100vw - 744px) / 12.5, 3.75rem);
  line-height: 1.1; letter-spacing: -0.01em; color: var(--ink-bright);
  margin-bottom: 1rem; text-wrap: balance;
}
.hero-h1 span { display: block; }
.hero-sub {
  font-family: var(--serif); font-style: italic; font-weight: 400;
  font-size: clamp(1.5rem, 1.39rem + 0.44vw, 1.75rem); line-height: 1.3; color: var(--ink-soft); margin-bottom: 1.5rem;
}
.hero-lede { max-width: 32ch; margin-bottom: 2.5rem; }
.cta-row { display: flex; flex-wrap: wrap; gap: 1rem; }
.hero-photo { width: 100%; max-width: 440px; aspect-ratio: 440 / 530; height: auto; object-fit: cover; object-position: center 30%; justify-self: end; }

.trust-wrap { padding-block: 0; border-top: none; }
.trust {
  list-style: none; padding: 1.5rem 0; border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem 1rem;
  font-size: 1.125rem; line-height: 1.5; color: var(--ink-muted); text-align: center;
}
.trust li + li::before { content: '·'; margin-right: 1rem; }

/* ---------- Story / Kit ---------- */
.grid2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2.5rem, 6vw, 5rem); align-items: center; }
.side-img { aspect-ratio: 1; display: flex; align-items: center; justify-content: center; background: #000; overflow: hidden; }
.side-img img { width: 120%; max-width: none; height: auto; mix-blend-mode: screen; }

.kit { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); align-items: start; }
.kit h2 { margin-bottom: 0; }
.kit-list { list-style: none; padding: 0; display: grid; gap: 1.75rem; max-width: 65ch; }
.kit-list li { display: flex; gap: 1.25rem; }
.kit-list .num { font-weight: 600; font-size: 1.25rem; line-height: 1.6; color: var(--gold); min-width: 2.25rem; padding-top: .05em; }
.kit-list strong { color: var(--ink-bright); font-weight: 600; }

/* ---------- Services ---------- */
.svc-head { display: flex; flex-direction: column; align-items: flex-start; gap: .75rem; margin-bottom: 3rem; }
.svc-head h2 { margin: 0; }
.svc-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 3rem clamp(3rem, 8vw, 7rem); align-items: start; }
.svc-grid .eyebrow { margin-bottom: 1rem; }
.svc-list > div { padding: 1.5rem 0; border-top: 1px solid var(--line); }
.svc-list dt { font-family: var(--serif); font-weight: 600; font-size: 1.5rem; line-height: 1.25; color: var(--ink-bright); }
.svc-list-soft dt { font-weight: 500; color: var(--ink); }
.svc-list dd { font-size: 1.125rem; line-height: 1.5; margin-top: 6px; max-width: 48ch; }

/* ---------- Testimonial ---------- */
.quote {
  border: 1px solid var(--gold-frame-strong); border-radius: 6px; text-align: center;
  padding: clamp(2rem, 5vw, 3.5rem) clamp(1.25rem, 5vw, 4rem);
}
.quote-mark { font-family: var(--serif); font-size: 5rem; line-height: .6; color: var(--gold); margin-bottom: 1.5rem; }
.quote blockquote {
  font-family: var(--serif); font-weight: 500; font-size: clamp(1.5rem, 1.39rem + 0.44vw, 1.75rem);
  line-height: 1.45; color: var(--ink-bright); max-width: 36ch; margin: 0 auto 2rem; text-wrap: pretty;
}
.quote figcaption { font-size: 1.125rem; line-height: 1.5; margin-top: 1.25rem; }

/* ---------- Book ---------- */
.book { position: relative; overflow: hidden; padding: 0; }
.book-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 30%; opacity: .28; }
.book::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(18,17,16,.55), rgba(18,17,16,.88)); }
.book-inner { position: relative; z-index: 1; padding: var(--sec-y) var(--gutter); text-align: center; }
.book-inner > .rule { margin-bottom: 2rem; }
.book h2 { margin-bottom: 1rem; }
.book-meta { font-size: 1.125rem; color: var(--ink-bright); margin-bottom: 2.5rem; }

.enquiry { max-width: 560px; margin: 0 auto; display: grid; gap: 1rem; text-align: left; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field {
  display: grid; gap: .4rem; border: 0; padding: 0; margin: 0;
  font-size: 1rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--gold);
}
.field input:not([type="radio"]), .field textarea {
  width: 100%; min-height: 3.5rem; padding: 0 1rem;
  background: rgba(18,17,16,.75); border: 1px solid var(--line-strong); border-radius: 6px;
  color: var(--ink-bright); font-family: var(--sans); font-size: 1.125rem; letter-spacing: 0; text-transform: none;
}
.field textarea { padding: .9rem 1rem; line-height: 1.5; resize: vertical; }
.field input:focus, .field textarea:focus { border-color: var(--gold); outline: none; }
.choice legend { padding: 0; margin-bottom: .4rem; }
.choice-row { display: flex; flex-wrap: wrap; gap: .5rem; }
.choice-row label { position: relative; cursor: pointer; }
.choice-row input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.choice-row span {
  display: inline-flex; align-items: center; min-height: 3rem; padding: 0 1.25rem;
  border: 1px solid var(--line-strong); border-radius: 999px; background: rgba(18,17,16,.75);
  color: var(--ink); font-size: 1.0625rem; font-weight: 500; letter-spacing: 0; text-transform: none;
  transition: border-color .15s, color .15s, background .15s;
}
.choice-row label:hover span { border-color: var(--gold); }
.choice-row input:checked + span { border-color: var(--gold); color: var(--ink-bright); background: rgba(201,180,138,.14); }
.choice-row input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 3px; }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; margin-top: .5rem; }
.form-foot .btn { padding-inline: 2.5rem; }
.form-foot p, .form-foot a { font-size: 1.125rem; }
.form-foot a { color: var(--ink-bright); text-decoration: underline; text-underline-offset: .25em; }
.form-done { max-width: 560px; margin: 0 auto; padding: 2rem; border: 1px solid var(--gold-frame-strong); border-radius: 6px; background: rgba(18,17,16,.6); }
.form-done[hidden] { display: none; }
.form-done-title { font-family: var(--serif); font-weight: 500; font-size: 1.75rem; color: var(--ink-bright); margin-bottom: .5rem; }

/* ---------- Footer ---------- */
.ftr { padding-block: 2rem; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 2rem; }
.ftr-logo { width: 160px; height: 56px; }
.social { display: flex; align-items: center; gap: 1.25rem; }
.social span { font-size: 1.125rem; color: var(--ink-muted); }
.social a {
  display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px;
  border: 1px solid var(--line-strong); border-radius: 50%; transition: border-color .15s, color .15s;
}
.social a:hover { border-color: var(--gold); color: var(--ink-bright); }
.ftr-tag { font-family: var(--serif); font-weight: 500; font-size: 1.5rem; line-height: 1.4; }

/* ---------- Responsive ---------- */
@media (min-width: 1151px) { .mobile-menu { display: none !important; } }
@media (max-width: 1150px) {
  .js .site-nav { display: none; }
  .js .nav-burger { display: flex; }
  .hdr { flex-wrap: wrap; }
  .logo-wrap { width: 160px; height: 56px; }
  .hero { grid-template-columns: 1fr; text-align: center; justify-items: center; }
  .hero-text { align-items: center; max-width: 560px; width: 100%; }
  .hero-h1 { font-size: clamp(2.25rem, 1.5rem + 3.2vw, 3rem); }
  .hero-label { width: 100%; justify-content: center; }
  .hero-label::before { content: ''; flex: 1; height: 1px; background: var(--line-strong); }
  .hero-label .rule { flex: 1; width: auto; }
  .cta-row { flex-direction: column; width: 100%; }
  .cta-row .btn { width: 100%; }
  .hero-photo { justify-self: center; max-width: 560px; }
  .grid2, .kit, .svc-grid, .form-row { grid-template-columns: 1fr; }
  .story .side-img { order: 2; max-width: 440px; width: 100%; margin: 0 auto; }
}
@media (max-width: 480px) {
  .hero-h1 { font-size: 2.125rem; }
  .hero-h1 span:last-child { max-width: 7.5em; margin: 0 auto; }
  .hero-label { gap: 1rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}

@media print {
  .hdr nav, .nav-burger, .mobile-menu, .book-bg, .book::after, .enquiry, .social a { display: none !important; }
  body { background: #fff; color: #000; }
  h1, h2, .hero-h1, .quote blockquote, strong { color: #000 !important; }
}
