/* Fade Factory — design tokens (Playbook Module 1 + 5) */
:root {
  --color-primary: #16130f;
  --color-primary-soft: #221d16;
  --color-accent: #c9a227;
  --color-accent-dark: #a8861d;
  --color-surface: #faf7f1;
  --color-card: #ffffff;
  --color-text: #1c1917;
  --color-muted: #6e675c;
  --color-border: #e8e0d2;
  --color-gold-text: #8a6d1a;
  --container: 1280px;
  --space-section: 96px;
  --radius: 12px;
  --shadow: 0 10px 30px rgba(0, 0, 0, .08);
  --font-head: Georgia, 'Times New Roman', serif;
  --font-body: system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { overflow-x: clip; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-surface);
}
img, svg { max-width: 100%; display: block; }
h1, h2, h3 { font-family: var(--font-head); line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 16px; }
h1 { font-size: clamp(2.25rem, 5.5vw, 4.25rem); }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.5rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 16px; }
a { color: var(--color-accent-dark); }
:focus-visible { outline: 3px solid var(--color-accent); outline-offset: 3px; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 48px; }
.container-narrow { max-width: 880px; }
.section { padding: var(--space-section) 0; }
.section-tint { background: #f3ede1; }
.section-dark { background: var(--color-primary); color: var(--color-surface); }
.section-dark h2 { color: var(--color-surface); }
.section-dark p { color: #d8d0c2; }
.section-intro { max-width: 720px; font-size: 17px; color: var(--color-muted); margin-bottom: 32px; }
.section-dark .section-intro { color: #d8d0c2; }

.eyebrow {
  font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  color: var(--color-gold-text); margin-bottom: 12px;
}
.eyebrow-gold { color: var(--color-accent); }

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--color-primary); color: var(--color-surface); padding: 12px 20px; border-radius: 8px;
}
.skip-link:focus { top: 12px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 50px; padding: 0 24px; border-radius: 8px;
  font-size: 15px; font-weight: 600; font-family: var(--font-body);
  text-decoration: none; cursor: pointer; border: 1px solid transparent;
  transition: background .18s ease, transform .18s ease, box-shadow .18s ease;
}
.btn-primary { background: var(--color-accent); color: var(--color-primary); }
.btn-primary:hover { background: var(--color-accent-dark); color: #fff; transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-secondary { background: transparent; color: var(--color-text); border-color: #d0c9b8; }
.btn-secondary:hover { border-color: var(--color-primary); transform: translateY(-2px); }
.section-dark .btn-secondary, .cta-band .btn-secondary { color: var(--color-surface); border-color: #6e675c; }
.btn-tertiary { min-height: 44px; padding: 0 4px; color: var(--color-accent-dark); font-size: 15px; font-weight: 600; }
.btn-tertiary:hover { color: var(--color-primary); }
.btn-block { width: 100%; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250, 247, 241, .96);
  border-bottom: 1px solid var(--color-border);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 76px; gap: 24px; }
.brand img { width: 180px; height: auto; }
.nav-menu { display: flex; align-items: center; gap: 32px; list-style: none; margin: 0; padding: 0; }
.nav-menu a:not(.btn) { color: var(--color-text); text-decoration: none; font-size: 15px; font-weight: 500; }
.nav-menu a:not(.btn):hover { color: var(--color-accent-dark); }
.menu-toggle { display: none; background: none; border: none; cursor: pointer; padding: 12px; }
.menu-toggle span { display: block; width: 24px; height: 2px; background: var(--color-primary); margin: 5px 0; transition: transform .2s ease, opacity .2s ease; }

/* Hero */
.hero { background: var(--color-primary); color: var(--color-surface); padding: 96px 0 80px; }
.hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
.hero h1 { color: var(--color-surface); }
.hero-sub { font-size: 18px; color: #d8d0c2; max-width: 640px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; margin: 32px 0 24px; }
.hero .btn-secondary { color: var(--color-surface); border-color: #6e675c; }
.hero .btn-secondary:hover { border-color: var(--color-accent); }
.trust-line { font-size: 14px; color: #b8ad9c; margin: 0; }
.hero-visual svg { width: 100%; height: auto; border-radius: 20px; }

/* Trust strip */
.trust-strip { background: var(--color-surface); border-bottom: 1px solid var(--color-border); padding: 20px 0; }
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; text-align: center; }
.trust-grid span { font-family: var(--font-head); font-size: 17px; font-weight: 700; color: var(--color-primary); letter-spacing: .02em; }

/* Cards */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card-grid-3 { grid-template-columns: repeat(3, 1fr); }
.service-card, .barber-card {
  background: var(--color-card); border: 1px solid var(--color-border); border-radius: var(--radius);
  padding: 32px 28px; display: flex; flex-direction: column;
  transition: box-shadow .2s ease, transform .2s ease;
}
.service-card:hover, .barber-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.service-card h3, .barber-card h3 { margin-bottom: 8px; }
.service-card p:not(.service-meta) { color: var(--color-muted); font-size: 15px; flex: 1; }
.barber-card p { color: var(--color-muted); font-size: 15px; flex: 1; }
.service-meta { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; font-weight: 600; color: var(--color-primary); margin: 16px 0 8px; }
.price-note { font-weight: 500; color: var(--color-muted); text-align: right; }
.price-note-block { margin-top: 32px; font-size: 14px; color: var(--color-muted); max-width: 720px; }
.barber-mark {
  width: 56px; height: 56px; border-radius: 50%; background: var(--color-primary); color: var(--color-accent);
  font-family: var(--font-head); font-size: 26px; font-weight: 700;
  display: flex; align-items: center; justify-content: center; margin-bottom: 16px;
}
.barber-role { font-size: 13px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--color-gold-text); margin-bottom: 8px; }

/* Editorial */
.editorial-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
.editorial-copy p { max-width: 640px; }
.editorial-visual svg { width: 100%; height: auto; border-radius: 16px; }

/* Gallery */
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.gallery-tile { margin: 0; background: var(--color-card); border: 1px solid var(--color-border); border-radius: var(--radius); overflow: hidden; }
.gallery-tile svg { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.gallery-tile figcaption { padding: 16px 20px; font-size: 15px; font-weight: 500; }

/* Process */
.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; list-style: none; margin: 0; padding: 0; counter-reset: step; }
.process-grid li { border-top: 3px solid var(--color-accent); padding-top: 24px; }
.step-num { font-family: var(--font-head); font-size: 15px; font-weight: 700; letter-spacing: .1em; color: var(--color-gold-text); }
.process-grid h3 { margin: 12px 0 8px; }
.process-grid p { color: var(--color-muted); font-size: 15px; margin: 0; }

/* FAQ */
.faq-list { display: grid; gap: 16px; }
.faq-item { background: var(--color-card); border: 1px solid var(--color-border); border-radius: var(--radius); padding: 0 24px; }
.faq-item summary { cursor: pointer; font-family: var(--font-head); font-size: 18px; font-weight: 700; padding: 20px 0; list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; float: right; color: var(--color-gold-text); font-size: 22px; line-height: 1; }
.faq-item[open ] summary::after { content: "–"; }
.faq-item p { color: var(--color-muted); font-size: 15px; padding-bottom: 20px; margin: 0; }

/* Booking form */
.booking-form { background: var(--color-card); border: 1px solid var(--color-border); border-radius: var(--radius); padding: 32px; display: grid; gap: 24px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.form-field label { display: block; font-size: 15px; font-weight: 600; margin-bottom: 8px; }
.optional { font-weight: 400; color: var(--color-muted); }
.form-field input, .form-field select, .form-field textarea {
  width: 100%; min-height: 48px; padding: 12px 16px; font: inherit; font-size: 16px;
  color: var(--color-text); background: var(--color-surface);
  border: 1px solid #d0c9b8; border-radius: 8px;
}
.form-field textarea { min-height: 96px; resize: vertical; }
.form-field input:focus, .form-field select:focus, .form-field textarea:focus { border-color: var(--color-accent); outline: 3px solid rgba(201, 162, 39, .35); outline-offset: 0; }
.field-error { color: #b3261e; font-size: 14px; margin: 8px 0 0; }
.form-note { font-size: 14px; color: var(--color-muted); margin: 0; text-align: center; }
.booking-summary { background: var(--color-card); border: 1px solid var(--color-accent); border-radius: var(--radius); padding: 32px; margin-top: 24px; }
.booking-summary dl { display: grid; grid-template-columns: 160px 1fr; gap: 8px 16px; margin: 0 0 16px; }
.booking-summary dt { font-weight: 600; font-size: 15px; }
.booking-summary dd { margin: 0; font-size: 15px; color: var(--color-muted); }

/* CTA band */
.cta-band { background: var(--color-primary); color: var(--color-surface); text-align: center; padding: 96px 0; }
.cta-band h2 { color: var(--color-surface); }
.cta-band p { color: #d8d0c2; font-size: 17px; }

/* Footer */
.site-footer { background: #0e0c09; color: #b8ad9c; padding: 64px 0 32px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 48px; }
.footer-brand img { width: 180px; height: auto; margin-bottom: 16px; }
.footer-brand p { font-size: 15px; max-width: 420px; }
.footer-nav h3 { color: var(--color-surface); font-size: 16px; margin-bottom: 16px; }
.footer-nav ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.footer-nav a { color: #b8ad9c; text-decoration: none; font-size: 15px; }
.footer-nav a:hover { color: var(--color-accent); }
.footer-bottom { border-top: 1px solid #2a251d; margin-top: 48px; padding-top: 24px; }
.footer-bottom p { font-size: 14px; margin: 0; }

/* Scroll reveal (content visible without JS) */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* Responsive */
@media (max-width: 1023px) {
  .container { padding: 0 32px; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { max-width: 560px; }
  .card-grid, .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .process-grid { grid-template-columns: repeat(2, 1fr); }
  .editorial-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 767px) {
  .container { padding: 0 20px; }
  .section { padding: 56px 0; }
  .hero { padding: 56px 0; }
  .header-inner { height: 64px; }
  .brand img { width: 140px; }
  .menu-toggle { display: block; }
  .menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .nav-menu {
    display: none; position: absolute; top: 64px; left: 0; right: 0;
    background: var(--color-surface); flex-direction: column; align-items: stretch;
    gap: 0; padding: 8px 20px 20px; border-bottom: 1px solid var(--color-border);
  }
  .nav-menu.open { display: flex; }
  .nav-menu li a { display: block; padding: 14px 0; min-height: 48px; }
  .nav-menu .nav-cta { padding-top: 12px; }
  .nav-menu .nav-cta .btn { width: 100%; }
  .trust-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .card-grid, .card-grid-3, .gallery-grid, .process-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .booking-form { padding: 24px 20px; }
  .booking-summary dl { grid-template-columns: 1fr; gap: 2px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .cta-band { padding: 56px 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
