/* The salon page (/p/<slug>). Mobile first; themed only through the variables
   the template sets on :root (--brand, --brand-2, --brand-ink, --font-h,
   --font-b). Hand-written rather than Tailwind so the page carries a few KB of
   CSS instead of the admin's whole utility set. */

:root {
  --bg: #faf8f5;
  --surface: #ffffff;
  --alt: #f3efe9;
  --text: #1c1917;
  --muted: #57534e;
  --line: #e7e2da;
  --radius: 16px;
  --shadow: 0 1px 2px rgba(28, 25, 23, 0.05), 0 8px 24px rgba(28, 25, 23, 0.06);
  --wrap: 1120px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 76px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-b);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  padding-bottom: 84px; /* room for the sticky Book bar on phones */
}

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

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

h2 {
  font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.3rem);
  margin-bottom: 1.25rem;
}

h3 {
  font-size: 1.05rem;
  margin-bottom: 0.75rem;
}

a {
  color: inherit;
}

:focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 2px;
}

.sp-wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 20px;
}

/* Left edge in line with every other section; only the text column is narrow. */
.sp-narrow > * {
  max-width: 68ch;
}

.sp-muted {
  color: var(--muted);
}

.sp-skip {
  position: absolute;
  left: -9999px;
}

.sp-skip:focus {
  left: 12px;
  top: 12px;
  z-index: 100;
  background: var(--surface);
  padding: 8px 12px;
  border-radius: 8px;
}

.sp-preview-bar {
  background: #fef3c7;
  color: #78350f;
  font-size: 13px;
  text-align: center;
  padding: 6px 12px;
}

/* ── Buttons ─────────────────────────────────────────────── */

.sp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 24px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  white-space: nowrap;
  border: 2px solid transparent;
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease,
    background 0.15s ease;
  cursor: pointer;
}

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

.sp-btn-sm {
  min-height: 38px;
  padding: 0 16px;
  font-size: 0.9rem;
}

.sp-btn-brand {
  background: var(--brand);
  color: var(--brand-ink);
  box-shadow: 0 6px 16px -6px var(--brand);
}

.sp-btn-hero {
  background: #ffffff;
  color: #111827;
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.45);
}

.sp-btn-ghost {
  border-color: rgba(255, 255, 255, 0.7);
  color: #ffffff;
}

.sp-btn-ghost:hover {
  background: rgba(255, 255, 255, 0.12);
}

.sp-btn-outline {
  border-color: var(--brand);
  color: var(--text);
  background: var(--surface);
}

.sp-btn-outline:hover {
  background: var(--brand);
  color: var(--brand-ink);
}

.sp-link {
  color: var(--text);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--brand);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

/* ── Top bar ─────────────────────────────────────────────── */

.sp-top {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(250, 248, 245, 0.88);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--line);
}

.sp-top-row {
  display: flex;
  align-items: center;
  gap: 16px;
  height: 64px;
}

.sp-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  min-width: 0;
  flex: 1 1 auto;
}

.sp-logo {
  height: 36px;
  width: auto;
  max-width: 120px;
  object-fit: contain;
  border-radius: 8px;
}

.sp-brand-name {
  font-family: var(--font-h);
  font-weight: 700;
  font-size: 1.1rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sp-nav {
  display: none;
  gap: 22px;
  font-size: 0.95rem;
}

.sp-nav a {
  text-decoration: none;
  color: var(--muted);
}

.sp-nav a:hover {
  color: var(--text);
}

.sp-top-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}

.sp-top-actions .sp-btn {
  display: none;
}

.sp-lang {
  position: relative;
}

.sp-lang summary {
  list-style: none;
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 12px;
  background: var(--surface);
}

.sp-lang summary::-webkit-details-marker {
  display: none;
}

.sp-lang-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
  padding: 6px;
  min-width: 150px;
}

.sp-lang-menu a {
  display: block;
  padding: 8px 10px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 0.95rem;
}

.sp-lang-menu a:hover,
.sp-lang-menu a[aria-current] {
  background: var(--alt);
}

/* ── Hero ────────────────────────────────────────────────── */

.sp-hero {
  position: relative;
  overflow: hidden;
  color: #ffffff;
  background:
    radial-gradient(
      120% 80% at 100% 0%,
      rgba(255, 255, 255, 0.18),
      transparent 60%
    ),
    linear-gradient(135deg, var(--brand), var(--brand-2));
  isolation: isolate;
}

.sp-hero.has-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.15) 0%,
    rgba(0, 0, 0, 0.55) 70%,
    rgba(0, 0, 0, 0.7) 100%
  );
}

.sp-hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}

.sp-hero-inner {
  padding-top: 64px;
  padding-bottom: 56px;
  min-height: 340px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 14px;
}

.sp-hero.has-cover .sp-hero-inner {
  min-height: 460px;
}

.sp-hero h1 {
  font-size: clamp(2.1rem, 1.4rem + 3.4vw, 3.8rem);
  max-width: 18ch;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.18);
}

.sp-hero-sub {
  margin: 0;
  font-size: clamp(1.05rem, 0.95rem + 0.5vw, 1.3rem);
  max-width: 46ch;
  opacity: 0.94;
}

.sp-rating-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  align-self: flex-start;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 0.95rem;
  text-decoration: none;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.sp-rating-pill .sp-stars .on,
.sp-rating-pill .sp-stars .half {
  color: #fde68a;
}

.sp-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 8px;
}

/* ── Sections ────────────────────────────────────────────── */

.sp-section {
  padding: 56px 0;
}

.sp-alt {
  background: var(--alt);
}

.sp-group + .sp-group {
  margin-top: 32px;
}

.sp-group h3 {
  font-family: var(--font-b);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.sp-services {
  list-style: none;
  margin: 0;
  padding: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.sp-service {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 18px 20px;
}

.sp-service + .sp-service {
  border-top: 1px solid var(--line);
}

.sp-service-text {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.sp-service-name {
  font-weight: 650;
  font-size: 1.05rem;
}

.sp-service-desc {
  color: var(--muted);
  font-size: 0.95rem;
}

.sp-service-meta {
  color: var(--muted);
  font-size: 0.85rem;
}

.sp-service-side {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.sp-price {
  font-weight: 700;
  font-size: 1.05rem;
  white-space: nowrap;
}

.sp-team {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.sp-member {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px 14px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.sp-avatar {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow:
    0 0 0 4px var(--surface),
    0 0 0 6px var(--brand);
}

.sp-initials {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--c);
  color: #ffffff;
  font-weight: 700;
  font-size: 1.6rem;
}

.sp-member-name {
  font-weight: 650;
  font-size: 1.05rem;
}

.sp-member-bio {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.sp-member .sp-link {
  margin-top: auto;
  font-size: 0.9rem;
}

.sp-gallery {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.sp-gallery a {
  display: block;
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  background: var(--alt);
}

.sp-gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.sp-gallery a:hover img {
  transform: scale(1.04);
}

.sp-stars {
  color: #d6d3d1;
  letter-spacing: 1px;
}

.sp-stars .on {
  color: #f59e0b;
}

.sp-stars .half {
  color: #fbbf24;
  opacity: 0.6;
}

.sp-review-summary {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}

.sp-review-summary .sp-stars {
  font-size: 1.3rem;
}

.sp-review-summary p {
  margin: 2px 0 0;
}

.sp-review-avg {
  font-family: var(--font-h);
  font-size: 3.2rem;
  font-weight: 700;
  line-height: 1;
}

.sp-reviews {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.sp-review {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px 20px;
}

.sp-review p {
  margin: 8px 0;
}

.sp-review-by {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.85rem;
}

.sp-about {
  font-size: 1.1rem;
  white-space: pre-line;
}

.sp-location {
  display: grid;
  gap: 14px;
}

.sp-card {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px;
}

.sp-card address {
  font-style: normal;
  font-size: 1.05rem;
  line-height: 1.6;
}

.sp-map-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 16px;
}

.sp-hours {
  width: 100%;
  border-collapse: collapse;
}

.sp-hours th,
.sp-hours td {
  padding: 7px 0;
  border-bottom: 1px solid var(--line);
  text-align: left;
  font-weight: 400;
}

.sp-hours td {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.sp-hours tr:last-child th,
.sp-hours tr:last-child td {
  border-bottom: 0;
}

.sp-hours .is-today th,
.sp-hours .is-today td {
  font-weight: 700;
}

.sp-today {
  display: inline-block;
  margin-left: 6px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: var(--brand);
  color: var(--brand-ink);
  border-radius: 999px;
  padding: 1px 8px;
  vertical-align: 2px;
}

.sp-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.sp-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line);
  text-decoration: none;
  font-weight: 600;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sp-chip:hover {
  border-color: var(--brand);
}

.sp-cta-band {
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #ffffff;
  text-align: center;
  padding: 56px 0;
}

.sp-cta-band h2 {
  margin-bottom: 8px;
}

.sp-cta-band p {
  margin: 0 auto 22px;
  max-width: 46ch;
  opacity: 0.92;
}

.sp-footer {
  padding: 28px 0 32px;
  font-size: 0.9rem;
  color: var(--muted);
}

.sp-footer .sp-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
}

.sp-footer p {
  margin: 0;
}

.sp-badge {
  display: inline-flex;
  gap: 4px;
  align-items: center;
  text-decoration: none;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 12px;
  background: var(--surface);
}

.sp-sticky {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  background: linear-gradient(
    180deg,
    rgba(250, 248, 245, 0),
    rgba(250, 248, 245, 0.95) 35%
  );
}

.sp-sticky .sp-btn {
  width: 100%;
}

/* ── Tablet ──────────────────────────────────────────────── */

@media (min-width: 640px) {
  .sp-wrap {
    padding: 0 32px;
  }

  .sp-top-actions .sp-btn {
    display: inline-flex;
  }

  .sp-service {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .sp-service-side {
    justify-content: flex-end;
    flex: 0 0 auto;
  }

  .sp-team {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
  }

  .sp-gallery {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
  }

  .sp-reviews {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sp-location {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
  }

  .sp-hero-inner {
    min-height: 400px;
    padding-bottom: 72px;
  }

  .sp-hero.has-cover .sp-hero-inner {
    min-height: 520px;
  }

  .sp-section {
    padding: 72px 0;
  }

  body {
    padding-bottom: 0;
  }

  .sp-sticky {
    display: none;
  }
}

/* ── Desktop ─────────────────────────────────────────────── */

@media (min-width: 1024px) {
  .sp-nav {
    display: flex;
  }

  .sp-brand {
    flex: 0 1 auto;
  }

  .sp-nav {
    flex: 1 1 auto;
    justify-content: center;
  }

  .sp-team {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .sp-gallery {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .sp-gallery li:first-child {
    grid-column: span 2;
    grid-row: span 2;
  }

  .sp-reviews {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .sp-hero-inner {
    min-height: 460px;
  }

  .sp-hero.has-cover .sp-hero-inner {
    min-height: 600px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .sp-btn,
  .sp-gallery img {
    transition: none;
  }
}
