/* Fade Factory — one-page shop site. No build step. */
:root {
  --ink: #0c0b0a;
  --ink-2: #141210;
  --panel: #1c1916;
  --panel-2: #24201c;
  --line: rgba(243, 235, 220, 0.12);
  --line-strong: rgba(198, 161, 91, 0.45);
  --brass: #c6a15b;
  --brass-light: #e8cc8a;
  --brass-dim: #8a6e34;
  --cream: #f3ebdc;
  --cream-2: #e7dcc6;
  --muted: #b7a994;
  --muted-2: #8c7d68;
  --pole-red: #b4232a;
  --white: #fffaf2;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  --font-display: "Big Shoulders Display", "Arial Narrow", Impact, sans-serif;
  --font-body: "Source Sans 3", "Source Sans Pro", "Segoe UI", sans-serif;
  --max: 1120px;
  --nav-h: 76px;
  --radius: 4px;
  --chat-z: 80;
}

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

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--cream);
  background: var(--ink);
  letter-spacing: 0.01em;
}

img { max-width: 100%; display: block; }
a { color: var(--brass-light); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--cream); }
:focus-visible {
  outline: 2px solid var(--brass);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -40px;
  background: var(--brass);
  color: var(--ink);
  padding: 0.5rem 0.8rem;
  z-index: 100;
  font-weight: 700;
}
.skip-link:focus { top: 0.75rem; }

.wrap {
  width: min(var(--max), calc(100% - 2.5rem));
  margin-inline: auto;
}

/* ---------- Nav ---------- */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 40;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  background: rgba(12, 11, 10, 0.86);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}
.site-nav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: min(var(--max), calc(100% - 2.5rem));
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--cream);
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 1.15rem;
}
.brand img { width: 36px; height: 36px; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 1.6rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  color: var(--cream-2);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.nav-links a:hover { color: var(--brass-light); }
.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--line);
  color: var(--cream);
  width: 44px;
  height: 44px;
  border-radius: var(--radius);
  cursor: pointer;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--cream);
  position: relative;
  margin: 0 auto;
}
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
}
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  border: 1px solid transparent;
  cursor: pointer;
  font-family: var(--font-body);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  font-size: 0.82rem;
  padding: 0.9rem 1.25rem;
  border-radius: var(--radius);
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--brass);
  color: var(--ink);
  border-color: var(--brass);
}
.btn-primary:hover { background: var(--brass-light); color: var(--ink); }
.btn-ghost {
  background: transparent;
  color: var(--cream);
  border-color: var(--line);
}
.btn-ghost:hover { border-color: var(--brass); color: var(--brass-light); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: calc(100svh - var(--nav-h));
  display: grid;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 18% 20%, rgba(198, 161, 91, 0.16), transparent 50%),
    radial-gradient(ellipse at 90% 80%, rgba(180, 35, 42, 0.12), transparent 45%),
    linear-gradient(180deg, #141210 0%, #0c0b0a 100%);
  z-index: -2;
}
.hero-stripe {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 14px;
  background: repeating-linear-gradient(
    -20deg,
    #f3ebdc 0 10px,
    #b4232a 10px 20px,
    #f3ebdc 20px 30px,
    #0c0b0a 30px 40px
  );
  z-index: -1;
}
.hero-monogram {
  position: absolute;
  right: -4vw;
  top: 8%;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(10rem, 28vw, 22rem);
  line-height: 0.75;
  color: rgba(243, 235, 220, 0.045);
  letter-spacing: -0.06em;
  user-select: none;
  pointer-events: none;
  z-index: -1;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--brass);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.75rem;
  font-weight: 700;
  margin: 0 0 1.1rem;
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--brass);
}
.hero h1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(3.4rem, 10vw, 7.4rem);
  line-height: 0.85;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin: 0 0 1.2rem;
  max-width: 12ch;
}
.hero h1 span { color: var(--brass-light); }
.hero-lead {
  max-width: 36rem;
  font-size: 1.2rem;
  color: var(--muted);
  margin: 0 0 2rem;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.8rem; }
.hero-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
  margin-top: 4rem;
  padding-top: 1.8rem;
  border-top: 1px solid var(--line);
  max-width: 40rem;
}
.hero-meta dt {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-2);
  font-weight: 700;
}
.hero-meta dd {
  margin: 0.2rem 0 0;
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--cream);
}

/* ---------- Sections ---------- */
section { padding: 5.5rem 0; }
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 1.5rem;
  margin-bottom: 2.4rem;
  flex-wrap: wrap;
}
.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  line-height: 0.9;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin: 0;
}
.section-head p {
  margin: 0;
  max-width: 28rem;
  color: var(--muted);
}

.services { background: var(--ink-2); border-block: 1px solid var(--line); }
.service-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.service-card {
  background: var(--panel);
  padding: 1.5rem 1.4rem 1.35rem;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.35rem 1rem;
}
.service-card h3 {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.service-card .price {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--brass-light);
  letter-spacing: 0.04em;
  line-height: 1;
}
.service-card .desc {
  grid-column: 1 / -1;
  margin: 0.35rem 0 0;
  color: var(--muted);
  font-size: 0.98rem;
}
.service-card .mins {
  grid-column: 1 / -1;
  margin: 0.55rem 0 0;
  color: var(--muted-2);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
}

.barber-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}
.barber-card {
  background: var(--panel);
  border: 1px solid var(--line);
  overflow: hidden;
}
.barber-card img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  background: var(--panel-2);
}
.barber-card .info { padding: 1.2rem 1.2rem 1.4rem; }
.barber-card h3 {
  margin: 0 0 0.15rem;
  font-size: 1.2rem;
}
.barber-card .title {
  color: var(--brass);
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
  margin: 0 0 0.7rem;
}
.barber-card p { margin: 0; color: var(--muted); font-size: 0.98rem; }

.visit { background: var(--ink-2); border-block: 1px solid var(--line); }
.visit-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 1.25rem;
}
.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  padding: 1.6rem 1.5rem;
}
.panel h3 {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 1.5rem;
}
.hours-list, .facts { list-style: none; margin: 0; padding: 0; }
.hours-list li,
.facts li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--line);
}
.hours-list li:last-child,
.facts li:last-child { border-bottom: 0; }
.hours-list .closed { color: var(--pole-red); font-weight: 700; }
.address-block { margin: 0 0 1rem; }
.address-block p { margin: 0.15rem 0; }
.policies { margin: 1.2rem 0 0; padding: 0; list-style: none; }
.policies li {
  position: relative;
  padding: 0.4rem 0 0.4rem 1.1rem;
  color: var(--muted);
  font-size: 0.98rem;
}
.policies li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.85rem;
  width: 6px;
  height: 1px;
  background: var(--brass);
}

.faq-list { display: grid; gap: 0.6rem; }
.faq-item {
  background: var(--panel);
  border: 1px solid var(--line);
}
.faq-item summary {
  cursor: pointer;
  padding: 1rem 1.2rem;
  font-weight: 700;
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  float: right;
  color: var(--brass);
  font-weight: 700;
}
.faq-item[open] summary::after { content: "–"; }
.faq-item p {
  margin: 0;
  padding: 0 1.2rem 1.15rem;
  color: var(--muted);
}

.cta-band {
  padding: 4rem 0 5rem;
  text-align: center;
}
.cta-band h2 {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin: 0 0 0.8rem;
  line-height: 0.9;
}
.cta-band p { color: var(--muted); margin: 0 auto 1.6rem; max-width: 32rem; }

.site-footer {
  border-top: 1px solid var(--line);
  padding: 2rem 0 6.5rem;
  color: var(--muted-2);
  font-size: 0.92rem;
}
.site-footer .wrap {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.site-footer strong { color: var(--muted); font-weight: 600; }

/* ---------- Chat widget ---------- */
.ff-chat-launcher {
  position: fixed;
  right: 1.1rem;
  bottom: 1.1rem;
  z-index: var(--chat-z);
  width: 62px;
  height: 62px;
  border-radius: 50%;
  border: 0;
  background: var(--brass);
  color: var(--ink);
  box-shadow: var(--shadow);
  cursor: pointer;
  display: grid;
  place-items: center;
}
.ff-chat-launcher:hover { background: var(--brass-light); }
.ff-chat-launcher svg { width: 28px; height: 28px; }
.ff-chat-panel {
  position: fixed;
  right: 1.1rem;
  bottom: 5.4rem;
  z-index: var(--chat-z);
  width: min(380px, calc(100vw - 1.4rem));
  height: 620px;
  max-height: calc(100vh - 7.2rem);
  background: #161411;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.ff-chat-panel[hidden] { display: none !important; }
.ff-chat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  padding: 0.85rem 0.95rem;
  background: var(--panel);
  border-bottom: 1px solid var(--line);
}
.ff-chat-header h2 {
  margin: 0;
  font-size: 1rem;
  letter-spacing: 0.04em;
}
.ff-chat-header p {
  margin: 0.1rem 0 0;
  color: var(--muted);
  font-size: 0.78rem;
}
.ff-chat-close {
  background: transparent;
  border: 0;
  color: var(--cream);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  width: 36px;
  height: 36px;
}
.ff-chat-log {
  flex: 1 1 0%;
  min-height: 0;
  overflow-y: auto;
  padding: 0.9rem;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}
.ff-chat-header,
.ff-chat-form,
.ff-chat-note,
.ff-chips { flex-shrink: 0; }
.ff-msg {
  max-width: 92%;
  padding: 0.7rem 0.8rem;
  border-radius: 8px;
  font-size: 0.95rem;
  line-height: 1.45;
  white-space: pre-wrap;
}
.ff-msg p { margin: 0; }
.ff-msg p + p { margin-top: 0.5rem; }
.ff-msg-bot {
  background: var(--panel-2);
  color: var(--cream);
  align-self: flex-start;
  border-bottom-left-radius: 2px;
}
.ff-msg-user {
  background: var(--brass);
  color: var(--ink);
  align-self: flex-end;
  border-bottom-right-radius: 2px;
  font-weight: 600;
}
.ff-book-btn {
  display: inline-flex;
  margin-top: 0.65rem;
  background: var(--brass);
  color: var(--ink) !important;
  text-decoration: none !important;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.75rem;
  padding: 0.65rem 0.85rem;
  border-radius: var(--radius);
}
.ff-book-btn:hover { background: var(--brass-light); color: var(--ink) !important; }
.ff-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  padding: 0 0.9rem 0.5rem;
}
.ff-chips[hidden] { display: none !important; }
.ff-chip {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--cream-2);
  border-radius: 999px;
  padding: 0.35rem 0.7rem;
  font: inherit;
  font-size: 0.8rem;
  cursor: pointer;
}
.ff-chip:hover { border-color: var(--brass); color: var(--brass-light); }
.ff-chat-form {
  display: flex;
  gap: 0.45rem;
  padding: 0.75rem;
  border-top: 1px solid var(--line);
  background: var(--ink);
}
.ff-chat-form input {
  flex: 1;
  background: var(--panel);
  border: 1px solid var(--line);
  color: var(--cream);
  padding: 0.7rem 0.75rem;
  border-radius: var(--radius);
  font: inherit;
}
.ff-chat-form button {
  background: var(--brass);
  color: var(--ink);
  border: 0;
  border-radius: var(--radius);
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.75rem;
  padding: 0 0.9rem;
  cursor: pointer;
}
.ff-chat-form button:disabled { opacity: 0.55; cursor: wait; }
.ff-chat-note {
  padding: 0 0.75rem 0.65rem;
  font-size: 0.7rem;
  color: var(--muted-2);
  text-align: center;
}
.ff-typing { opacity: 0.7; font-style: italic; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .nav-toggle { display: grid; place-items: center; }
  .nav-links {
    display: none;
    position: absolute;
    top: var(--nav-h);
    left: 0;
    right: 0;
    background: #141210;
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: stretch;
    padding: 0.8rem 1.25rem 1.2rem;
    gap: 0.2rem;
  }
  .nav-links.is-open { display: flex; }
  .nav-links a, .nav-links .btn { width: 100%; }
  .nav-links .btn { margin-top: 0.4rem; }
  .service-grid, .barber-grid, .visit-grid, .hero-meta {
    grid-template-columns: 1fr;
  }
  .hero { padding: 3rem 0 4rem; min-height: auto; }
  .hero-stripe { width: 8px; }
  section { padding: 3.5rem 0; }
}
@media (max-width: 520px) {
  .wrap { width: min(var(--max), calc(100% - 1.5rem)); }
  .hero-meta { gap: 1rem; }
  .ff-chat-panel {
    right: 0.6rem;
    left: 0.6rem;
    width: auto;
    bottom: 5rem;
    height: calc(100vh - 6.2rem);
    max-height: calc(100vh - 6.2rem);
  }
  .ff-chat-launcher { right: 0.8rem; bottom: 0.8rem; }
}
