/* Mid-City Barber Shop — demo site for Arioun AI
   Mobile-first, no build step.
   Palette taken from the shop logo on Nextdoor: navy #002860, red #e01840. */

:root {
  --ink: #081226;
  --ink-soft: #0c1a33;
  --ink-mid: #132544;
  --navy: #002860;
  --cream: #f6f1ea;
  --cream-deep: #eadfd3;
  --paper: #fbf8f3;
  --accent: #e01840;
  --accent-bright: #ff4a68;
  --accent-dim: #a01030;
  --gold: var(--accent);
  --gold-bright: var(--accent-bright);
  --gold-dim: var(--accent-dim);
  --burgundy: #e01840;
  --muted: #5c564b;
  --line: rgba(224, 24, 64, 0.28);
  --shadow: 0 16px 40px rgba(8, 18, 38, 0.22);
  --font-display: "Cinzel", "Times New Roman", serif;
  --font-serif: "Libre Baskerville", "Palatino Linotype", Palatino, serif;
  --font-sans: "Source Sans 3", "Segoe UI", system-ui, sans-serif;
  --header-h: 4.25rem;
  --wrap: 70rem;
  --radius: 0.35rem;
}

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

html {
  scroll-behavior: smooth;
}

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

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--accent-dim);
}

h1, h2, h3 {
  font-family: var(--font-serif);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.15;
  margin: 0;
}

.wordmark-name {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.15;
  margin: 0;
}

h1 { font-size: clamp(1.7rem, 5.4vw, 2.85rem); }
h2 { font-size: clamp(1.7rem, 4.2vw, 2.6rem); }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1rem; }

ul { margin: 0; padding: 0; list-style: none; }

address { font-style: normal; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  background: var(--accent);
  color: #fff;
  padding: 0.5rem 0.85rem;
  font-weight: 600;
}

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

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

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.65rem 1.1rem;
  border-radius: 999px;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-decoration: none;
  border: 1px solid transparent;
  line-height: 1.2;
  white-space: nowrap;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.btn:hover { color: inherit; transform: translateY(-1px); }

.btn-lg { padding: 0.85rem 1.4rem; font-size: 1rem; }

.btn-accent,
.btn-gold {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.btn-accent:hover,
.btn-gold:hover {
  background: var(--accent-bright);
  border-color: var(--accent-bright);
  color: #fff;
}

.btn-outline {
  background: transparent;
  color: var(--cream);
  border-color: rgba(246, 241, 234, 0.55);
}

.btn-outline:hover {
  background: rgba(224, 24, 64, 0.14);
  color: #fff;
  border-color: var(--accent-bright);
}

.btn-ghost {
  background: transparent;
  color: var(--cream);
  border-color: rgba(246, 241, 234, 0.28);
}

.btn-ghost:hover { border-color: var(--accent-bright); color: #fff; }

.btn:disabled,
.btn[disabled] {
  cursor: not-allowed;
  transform: none;
  opacity: 0.7;
}

/* Placeholder marks — dashed, clearly not live data */
.placeholder {
  display: inline-block;
  margin: 0;
  padding: 0.28rem 0.55rem;
  max-width: 100%;
  border: 1px dashed var(--accent-dim);
  background:
    repeating-linear-gradient(
      -45deg,
      rgba(224, 24, 64, 0.08) 0 8px,
      rgba(224, 24, 64, 0.02) 8px 16px
    );
  color: var(--accent-dim);
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  border-radius: 2px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(8, 18, 38, 0.95);
  color: var(--cream);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(224, 24, 64, 0.28);
}

.header-inner {
  width: min(100% - 1.25rem, var(--wrap));
  margin-inline: auto;
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.wordmark {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: inherit;
  min-width: 0;
}

.wordmark:hover { color: #fff; }

.wordmark-logo {
  width: 2.5rem;
  height: 2.5rem;
  flex: 0 0 auto;
  border-radius: 50%;
  object-fit: cover;
  background: #fff;
  box-shadow: 0 0 0 1px rgba(246, 241, 234, 0.2);
}

.wordmark-text { display: flex; flex-direction: column; line-height: 1.1; min-width: 0; }

.wordmark-name {
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.wordmark-sub {
  font-size: 0.66rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-bright);
  margin-top: 0.18rem;
  font-weight: 500;
  font-family: var(--font-sans);
}

.header-actions {
  display: flex;
  gap: 0.4rem;
  margin-left: auto;
  order: 2;
}

.desktop-nav { display: none; }

.nav-menu { position: relative; order: 3; }

.nav-toggle {
  list-style: none;
  cursor: pointer;
  width: 2.6rem;
  height: 2.6rem;
  display: grid;
  place-items: center;
  border: 1px solid rgba(246, 241, 234, 0.28);
  border-radius: 999px;
}

.nav-toggle::-webkit-details-marker { display: none; }

.nav-toggle span[aria-hidden="true"],
.nav-toggle span[aria-hidden="true"]::before,
.nav-toggle span[aria-hidden="true"]::after {
  display: block;
  width: 1.05rem;
  height: 1.5px;
  background: var(--cream);
  position: relative;
  transition: transform 0.15s ease, opacity 0.15s ease;
}

.nav-toggle span[aria-hidden="true"]::before,
.nav-toggle span[aria-hidden="true"]::after {
  content: "";
  position: absolute;
}

.nav-toggle span[aria-hidden="true"]::before { transform: translateY(-5px); }
.nav-toggle span[aria-hidden="true"]::after { transform: translateY(5px); }

.nav-menu[open] .nav-toggle span[aria-hidden="true"] { background: transparent; }
.nav-menu[open] .nav-toggle span[aria-hidden="true"]::before { transform: rotate(45deg); }
.nav-menu[open] .nav-toggle span[aria-hidden="true"]::after { transform: rotate(-45deg); }

.nav-menu .site-nav {
  position: absolute;
  right: 0;
  top: calc(100% + 0.6rem);
  background: var(--ink-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  min-width: 12.5rem;
  padding: 0.5rem;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow);
}

.nav-menu .site-nav a {
  text-decoration: none;
  padding: 0.55rem 0.75rem;
  color: var(--cream);
  font-size: 0.95rem;
}

.nav-menu .site-nav a:hover {
  background: rgba(224, 24, 64, 0.12);
  color: #fff;
}

/* Hero */
.hero {
  background:
    radial-gradient(ellipse at 85% 15%, rgba(224, 24, 64, 0.22), transparent 50%),
    radial-gradient(ellipse at 8% 85%, rgba(0, 40, 96, 0.85), transparent 50%),
    var(--ink);
  color: var(--cream);
  padding: 2rem 0 2.5rem;
}

.hero-inner {
  width: min(100% - 1.5rem, var(--wrap));
  margin-inline: auto;
  display: grid;
  gap: 1.75rem;
}

.eyebrow {
  margin: 0 0 0.75rem;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-bright);
  font-weight: 600;
  text-wrap: balance;
}

.hero h1 { max-width: 22em; }

.lede {
  font-family: var(--font-serif);
  font-size: clamp(1.1rem, 2.8vw, 1.4rem);
  font-style: italic;
  color: rgba(246, 241, 234, 0.86);
  margin: 0.85rem 0 1.1rem;
  max-width: 36rem;
}

.hero-address {
  margin: 0 0 1.4rem;
  color: rgba(246, 241, 234, 0.72);
  font-size: 0.95rem;
}

.hero-address a { color: inherit; }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-bottom: 1.25rem;
}

.hero-rating {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
  margin: 0;
  font-size: 0.92rem;
  color: rgba(246, 241, 234, 0.78);
}

.stars {
  color: var(--accent-bright);
  letter-spacing: 0.08em;
  font-size: 0.95rem;
}

.hero-photo {
  margin: 0;
  position: relative;
  justify-self: center;
  max-width: 16rem;
}

.hero-photo img {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 50%;
  box-shadow: 0 0 0 6px rgba(224, 24, 64, 0.22), 0 0 0 7px rgba(246, 241, 234, 0.2), var(--shadow);
  background: #fff;
}

.hero-photo figcaption {
  margin-top: 0.7rem;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  color: rgba(246, 241, 234, 0.55);
  text-align: center;
}

/* Sections */
.section { padding: 3.5rem 0; }

.section-head { margin-bottom: 1.75rem; }

.section-head .eyebrow { margin-bottom: 0.45rem; }

.section-head p:not(.eyebrow) {
  max-width: 38rem;
  color: var(--muted);
}

.about .section-head,
.visit .section-head { margin-bottom: 1.1rem; }

/* Services / menu */
.services { background: var(--paper); }

.menu {
  display: grid;
  gap: 0;
  max-width: 46rem;
  border-top: 1px solid rgba(8, 18, 38, 0.12);
}

.menu li {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: baseline;
  gap: 0.65rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid rgba(8, 18, 38, 0.12);
}

.menu-name {
  font-weight: 600;
  font-size: 1.05rem;
}

.menu-rule {
  border-bottom: 1px dotted rgba(8, 18, 38, 0.35);
  min-width: 1.5rem;
  height: 0.55em;
}

.menu-price {
  font-variant-numeric: tabular-nums lining-nums;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--accent);
  white-space: normal;
  text-align: right;
}

.menu-price .placeholder {
  font-weight: 500;
  white-space: normal;
}

.price-note {
  margin: 1.25rem 0 0;
  font-size: 0.88rem;
  color: var(--muted);
  max-width: 46rem;
}

.price-note a { color: var(--navy); }

.amenities {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1.35rem 0 0.4rem;
}

.amenities li {
  padding: 0.4rem 0.75rem;
  border: 1px solid rgba(0, 40, 96, 0.18);
  background: var(--cream);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--navy);
  border-radius: 999px;
}

.amenity-note {
  margin: 0 0 0.25rem;
  font-size: 0.8rem;
  color: var(--muted);
}

.visit-amenities {
  margin-top: 1.1rem;
}

.gap-row {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.65rem;
  margin-top: 1.5rem;
}

/* About */
.about {
  background: var(--ink-soft);
  color: var(--cream);
}

.about .section-head p:not(.eyebrow),
.about-copy p { color: rgba(246, 241, 234, 0.82); }

.about-copy { max-width: 42rem; }

.about-copy a { color: var(--accent-bright); }

.about .placeholder {
  color: #ffd0d8;
  border-color: var(--accent-bright);
  background:
    repeating-linear-gradient(
      -45deg,
      rgba(224, 24, 64, 0.16) 0 8px,
      rgba(224, 24, 64, 0.04) 8px 16px
    );
}

.about-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 0.4rem;
}

.about-actions .btn-outline { color: var(--cream); }

/* Barbers */
.barbers { background: var(--cream-deep); }

.barber-grid {
  display: grid;
  gap: 1rem;
}

.barber-card {
  background: var(--paper);
  padding: 1.4rem 1.25rem;
  border: 1px solid rgba(8, 18, 38, 0.08);
}

.barber-card.is-placeholder {
  border-style: dashed;
  border-color: var(--accent-dim);
  background:
    repeating-linear-gradient(
      -45deg,
      rgba(224, 24, 64, 0.07) 0 10px,
      var(--paper) 10px 20px
    );
}

.barber-avatar {
  width: 3rem;
  height: 3rem;
  display: grid;
  place-items: center;
  background: var(--navy);
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.25rem;
  margin-bottom: 0.85rem;
}

.barber-card h3 { margin-bottom: 0.55rem; }

.barber-card p { color: var(--muted); font-size: 0.98rem; }

.barber-card .placeholder { margin-bottom: 0.75rem; }

/* Reviews */
.reviews { background: var(--paper); }

.rating-row {
  display: grid;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.rating-badge {
  border: 1px solid rgba(8, 18, 38, 0.1);
  padding: 1rem 1.15rem;
  background: var(--cream);
}

.rating-score {
  font-family: var(--font-display);
  font-size: 2rem;
  margin: 0 0 0.15rem;
  line-height: 1;
  color: var(--navy);
}

.rating-badge p:last-child {
  margin: 0;
  font-size: 0.88rem;
  color: var(--muted);
}

.fine-badge .fine { display: block; margin-top: 0.2rem; }

.review-grid {
  display: grid;
  gap: 1rem;
  align-items: stretch;
}

.review-card {
  background: var(--cream);
  padding: 1.4rem 1.25rem 1.2rem;
  border-left: 3px solid var(--accent);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.review-card blockquote { margin: 0; }

.review-card p {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  line-height: 1.5;
  margin-bottom: 0.85rem;
}

.review-card footer {
  font-size: 0.88rem;
  color: var(--muted);
  font-family: var(--font-sans);
}

.fine { font-size: 0.8rem; }

.source-note {
  margin-top: 1.25rem;
  font-size: 0.82rem;
  color: var(--muted);
}

.source-note a { color: var(--navy); }

/* Visit / hours / map */
.visit { background: var(--cream); }

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

.visit-address {
  font-size: 1.05rem;
  margin: 0 0 0.65rem;
  line-height: 1.55;
}

.location-note {
  font-size: 0.92rem;
  color: var(--muted);
  max-width: 32rem;
  margin: 0 0 1rem;
}

.visit-email {
  margin: 0.75rem 0 0;
  font-size: 0.95rem;
}

.visit-email a { color: var(--navy); font-weight: 600; }

.hours {
  width: 100%;
  max-width: 26rem;
  border-collapse: collapse;
  margin: 1.35rem 0 0.85rem;
  font-size: 1rem;
}

.hours caption {
  text-align: left;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-dim);
  font-weight: 600;
  margin-bottom: 0.5rem;
  caption-side: top;
}

.hours th,
.hours td {
  text-align: left;
  padding: 0.65rem 0;
  border-bottom: 1px solid rgba(8, 18, 38, 0.1);
  font-weight: 500;
}

.hours th { font-weight: 500; width: 55%; }

.hours tr.is-closed th,
.hours tr.is-closed td {
  color: var(--muted);
}

.hours-note {
  font-size: 0.88rem;
  color: var(--muted);
  max-width: 32rem;
}

.map-wrap {
  min-height: 18rem;
  background: var(--cream-deep);
  border: 1px solid rgba(8, 18, 38, 0.1);
  position: relative;
}

.map-wrap iframe {
  width: 100%;
  height: 100%;
  min-height: 18rem;
  border: 0;
  display: block;
  position: relative;
  z-index: 1;
  background: transparent;
}

a[href^="tel:"]:not(.btn) {
  white-space: nowrap;
}

.hours td,
.rating-score,
.hero-rating,
.menu-price {
  font-variant-numeric: lining-nums;
}

.map-block { min-width: 0; }

.map-fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  margin: 0;
  padding: 1.25rem;
  text-align: center;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.5;
  z-index: 0;
  pointer-events: none;
}

.map-caption {
  margin: 0.65rem 0 0;
  font-size: 0.88rem;
}

.map-caption a { color: var(--accent-dim); }

/* Book */
.book {
  background: var(--ink);
  color: var(--cream);
  padding-bottom: 5.5rem;
}

.book .section-head p:not(.eyebrow) {
  color: rgba(246, 241, 234, 0.75);
}

.book .section-head a { color: var(--accent-bright); }

.book .section-head { margin-bottom: 1.5rem; }

.book-grid {
  display: grid;
  gap: 2rem;
}

.book-copy { max-width: 42rem; }

.book-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

/* Footer */
.site-footer {
  background: #050910;
  color: rgba(246, 241, 234, 0.72);
  padding: 2.25rem 0 5.5rem;
  font-size: 0.92rem;
}

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

.site-footer .wordmark-name {
  color: var(--cream);
  font-size: 1.15rem;
  margin-bottom: 0.35rem;
}

.site-footer a { color: var(--accent-bright); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.1rem;
}

.social {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  margin-top: 0.75rem;
}

.credit {
  margin: 0.5rem 0 0;
  font-size: 0.82rem;
  color: rgba(246, 241, 234, 0.5);
}

.credit a { color: #ff8a9b; }

/* AI receptionist reserved slot */
.ai-fab {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 50;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 0.95rem;
  border-radius: 999px;
  border: 1px solid var(--accent);
  background: var(--ink);
  color: #fff;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  box-shadow: var(--shadow);
  cursor: not-allowed;
  opacity: 1;
}

.ai-fab:disabled { opacity: 1; color: #fff; }

.ai-fab-dot {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(224, 24, 64, 0.22);
}

/* Focus */
:focus-visible {
  outline: 2px solid var(--accent-bright);
  outline-offset: 3px;
}

/* Desktop / tablet */
@media (min-width: 700px) {
  .barber-grid,
  .review-grid,
  .rating-row {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-inner {
    grid-template-columns: minmax(0, 1.35fr) minmax(14rem, 18rem);
    align-items: center;
    gap: 2.5rem;
  }

  .hero-photo {
    max-width: 18rem;
    justify-self: end;
  }

  .map-wrap,
  .map-wrap iframe { min-height: 22rem; }
}

@media (min-width: 960px) {
  .nav-menu { display: none; }

  .desktop-nav {
    display: flex;
    gap: 1.15rem;
    margin-left: 1.5rem;
  }

  .desktop-nav a {
    text-decoration: none;
    font-size: 0.88rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    font-weight: 500;
    color: rgba(246, 241, 234, 0.82);
  }

  .desktop-nav a:hover { color: #fff; }

  .hero {
    padding: 3.25rem 0 3.75rem;
  }

  .hero-copy { max-width: 48rem; }

  .hero-inner {
    grid-template-columns: minmax(0, 1.45fr) minmax(16rem, 20rem);
  }

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

  .rating-row { grid-template-columns: 10rem 1fr; }

  .fine-badge { grid-column: auto; }

  .visit-grid {
    grid-template-columns: minmax(18rem, 0.85fr) 1.15fr;
    align-items: start;
    gap: 2.5rem;
  }

  .map-wrap,
  .map-wrap iframe { min-height: 26rem; height: 26rem; }

  .footer-grid {
    grid-template-columns: 1.6fr 1fr auto;
    align-items: start;
  }

  .site-footer { padding-bottom: 2.5rem; }

  .book { padding-bottom: 4rem; }

  .section { padding: 4.5rem 0; }
}

@media (min-width: 1200px) {
  .hero-inner { gap: 3rem; }
}

/* Keep the FAB from covering footer links on very small screens */
@media (max-width: 420px) {
  .ai-fab { font-size: 0.7rem; padding: 0.6rem 0.75rem; max-width: calc(100vw - 2rem); }
  .btn-lg { width: 100%; }
  .hero-actions .btn-lg,
  .about-actions .btn,
  .book-actions .btn-lg { width: auto; flex: 1 1 auto; }
  .header-actions .btn { padding: 0.55rem 0.8rem; font-size: 0.85rem; }
  .wordmark-name { font-size: 1.02rem; }
  .wordmark-sub { letter-spacing: 0.06em; }
  .header-inner { gap: 0.45rem; }
  .menu li {
    grid-template-columns: 1fr;
    gap: 0.35rem;
  }
  .menu-rule { display: none; }
  .menu-price { text-align: left; }
}
