/* Salon theme — modern editorial luxury. Oversized Didone display, hairline-rule
   structure, tracked uppercase eyebrows, decorative section indices, sharp corners
   (radius token), generous negative space, the primary colour used sparingly.
   Consumes design tokens only (a tenant re-skins purely by changing tokens);
   web-safe Didone/serif + sans stacks — no web-font requests. Loaded after
   static/css/site.css, so it overrides the shared component styles for salon. */

.theme-salon {
  --font-display: var(--font-heading), "Didot", "Bodoni MT", "Hoefler Text", Garamond, Georgia, serif;
  --font-sans: var(--font-body), "Helvetica Neue", Helvetica, Arial, sans-serif;
  --space: clamp(4rem, 9vw, 8rem);
  --hair: 1px solid var(--color-border);
  --track: 0.22em;
  /* A tint mixed from the primary, used for the faintest washes (token-driven). */
  --tint: color-mix(in srgb, var(--color-primary) 6%, var(--color-surface));

  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.75;
  color: var(--color-text);
  /* Atmosphere: a faint light wash from the top + a barely-there paper grain,
     both behind content so text stays crisp. Grain is an inline SVG (no request). */
  background-color: var(--color-bg);
  background-image:
    radial-gradient(115% 65% at 50% -8%, color-mix(in srgb, var(--color-surface) 60%, transparent), transparent 58%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.82' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)' opacity='0.32'/%3E%3C/svg%3E");
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.theme-salon ::selection { background: var(--color-primary); color: var(--color-primary-contrast); }

.theme-salon .container { width: 100%; max-width: var(--max-width); margin-inline: auto; padding-inline: clamp(1.25rem, 5vw, 2.5rem); }

/* --- Type ----------------------------------------------------------------- */

.theme-salon h1, .theme-salon h2, .theme-salon h3 { font-family: var(--font-display); font-weight: 400; line-height: 1.08; letter-spacing: 0.005em; }
.theme-salon h1 { font-size: clamp(2.8rem, 8vw, 5.5rem); margin: 0 0 0.3em; }
.theme-salon h2 { font-size: clamp(2rem, 4.5vw, 3.2rem); margin: 0 0 0.7em; }
.theme-salon h3 { font-size: clamp(1.3rem, 2.4vw, 1.7rem); margin: 0 0 0.5em; }
.theme-salon p { margin: 0 0 1.1rem; }

/* In-content links: coloured at rest, with a hairline that wipes in on hover/focus.
   Excludes .btn so a button's own contrast colour (and hover fill) always wins —
   `.theme-salon a` would otherwise out-specify `.btn` and paint button text in the
   primary colour, i.e. invisible on a solid primary button. */
.theme-salon a:not(.btn) { color: var(--color-primary); text-underline-offset: 4px; }
.theme-salon .prose a:not(.btn), .theme-salon .salon-footer a:not(.btn) {
  text-decoration: none;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0% 1px no-repeat;
  padding-bottom: 2px;
  transition: background-size 0.35s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.theme-salon .prose a:not(.btn):hover, .theme-salon .prose a:not(.btn):focus-visible,
.theme-salon .salon-footer a:not(.btn):hover, .theme-salon .salon-footer a:not(.btn):focus-visible { background-size: 100% 1px; }

.theme-salon .prose { max-width: 40rem; }
.theme-salon .prose h2 { margin-top: 0; }
.theme-salon .prose > :first-child { margin-top: 0; }
.theme-salon .prose strong { font-weight: 600; }
.theme-salon .prose ul, .theme-salon .prose ol { margin: 0 0 1.1rem; padding-left: 1.1rem; }
.theme-salon .prose li { margin: 0 0 0.4rem; }
.theme-salon .prose blockquote {
  margin: 1.6rem 0; padding: 0.2rem 0 0.2rem 1.5rem; border-left: 2px solid var(--color-primary);
  font-family: var(--font-display); font-size: 1.4rem; line-height: 1.4; font-style: italic; color: var(--color-text);
}

/* Tracked uppercase eyebrow (used by the hero + decorative section labels). */
.eyebrow {
  font-family: var(--font-sans); font-size: 0.72rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.34em; color: var(--color-muted);
  margin: 0 0 1.4rem;
}

/* Section heading hook used by news/reviews and other "labelled" sections. */
.theme-salon .section__heading { margin-top: 0; }

/* Decorative editorial section indices: 01 / 02 / 03 … Pure CSS counter, so it
   needs no template change. Only headings that render a number increment the
   counter, so the sequence never gaps. CTA + hero are intentionally un-numbered. */
.theme-salon main { counter-reset: salon-index; }
.theme-salon .section:not(.section--cta) > .container > h2:first-child,
.theme-salon .section:not(.section--cta) > .container > h1.section__heading,
.theme-salon .section--image-text .image-text__copy > h2:first-child { counter-increment: salon-index; }
.theme-salon .section:not(.section--cta) > .container > h2:first-child::before,
.theme-salon .section--image-text .image-text__copy > h2:first-child::before {
  content: counter(salon-index, decimal-leading-zero);
  display: block;
  font-family: var(--font-sans); font-size: 0.72rem; font-weight: 600;
  letter-spacing: var(--track); color: var(--color-primary);
  margin-bottom: 1rem;
}

/* --- Buttons -------------------------------------------------------------- */

.btn {
  display: inline-block; text-decoration: none; cursor: pointer;
  font-family: var(--font-sans); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.18em; font-weight: 600;
  background: var(--color-primary); color: var(--color-primary-contrast);
  padding: 1rem 2rem; border: 1px solid var(--color-primary); border-radius: var(--radius);
  transition: background 0.25s ease, color 0.25s ease;
}
.btn:hover { background: transparent; color: var(--color-primary); }
.btn--ghost { background: transparent; color: var(--color-primary); }
.btn--ghost:hover { background: var(--color-primary); color: var(--color-primary-contrast); }

/* --- Split header --------------------------------------------------------- */

.salon-header { position: sticky; top: 0; z-index: 20; background: var(--color-surface); background: color-mix(in srgb, var(--color-surface) 92%, transparent); backdrop-filter: blur(8px); border-bottom: var(--hair); }
.salon-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: 1.4rem; }
.salon-brand { font-family: var(--font-display); font-size: clamp(1.4rem, 2.6vw, 1.9rem); letter-spacing: 0.04em; color: var(--color-text); text-decoration: none; }
.salon-brand img { max-height: 2.8rem; width: auto; }

.salon-nav ul { display: flex; flex-wrap: wrap; gap: 0.6rem 2rem; list-style: none; margin: 0; padding: 0; }
.salon-nav a {
  position: relative; font-size: 0.74rem; text-transform: uppercase; letter-spacing: var(--track); font-weight: 600;
  text-decoration: none; color: var(--color-text); transition: color 0.18s ease;
}
/* Hairline underline that wipes in under nav links and marks the current page. */
.salon-nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -0.45rem; height: 1px; background: var(--color-primary); transform: scaleX(0); transform-origin: left; transition: transform 0.25s ease; }
.salon-nav a:hover, .salon-nav a[aria-current="page"] { color: var(--color-primary); }
.salon-nav a:hover::after, .salon-nav a[aria-current="page"]::after { transform: scaleX(1); }

/* --- Asymmetric hero ------------------------------------------------------ */

.salon-hero { padding-block: var(--space); position: relative; }
.salon-hero__inner { display: grid; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.salon-hero--split .salon-hero__inner { grid-template-columns: 1fr; }
@media (min-width: 52rem) {
  .salon-hero--split .salon-hero__inner { grid-template-columns: 1.05fr 0.95fr; }
}
.salon-hero__title { font-size: clamp(3rem, 8.5vw, 6rem); }
.salon-hero__lead { font-size: 1.3rem; line-height: 1.6; color: var(--color-muted); max-width: 34rem; }
.salon-hero__cta { margin-top: 1.6rem; }
.salon-hero:not(.salon-hero--split) .salon-hero__copy { max-width: 48rem; margin-inline: auto; text-align: center; }

/* Offset hairline frame behind the image. */
.salon-hero__media { position: relative; margin: 0; }
.salon-hero__media::before {
  content: ""; position: absolute; inset: 1.25rem -1.25rem -1.25rem 1.25rem;
  border: var(--hair); z-index: 0; pointer-events: none;
}
.salon-hero__media img { position: relative; z-index: 1; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }

/* --- Section rhythm ------------------------------------------------------- */

.section { padding-block: var(--space); position: relative; }
.section + .section { padding-top: 0; }
/* Hairline divider between consecutive content sections of the same kind. */
.section--text + .section--text { border-top: var(--hair); padding-top: var(--space); }

/* image + text: an editorial split; the image sits in an offset hairline frame
   mirroring the hero, flipped to follow image_side. */
.image-text__grid { display: grid; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
@media (min-width: 52rem) {
  .image-text__grid { grid-template-columns: 1fr 1fr; }
  .image-text--right .image-text__media { order: 2; }
}
.image-text__media { position: relative; margin: 0; }
.image-text__media::before {
  content: ""; position: absolute; inset: 1rem -1rem -1rem 1rem; border: var(--hair); z-index: 0; pointer-events: none;
}
.image-text--right .image-text__media::before { inset: 1rem 1rem -1rem -1rem; }
.image-text__media img { position: relative; z-index: 1; width: 100%; aspect-ratio: 5 / 4; object-fit: cover; transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1); }
.image-text__media:hover img { transform: scale(1.04); }
.image-text__copy .btn { margin-top: 0.4rem; }

/* gallery: a tight hairline mosaic with a subtle zoom on hover. */
.gallery-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 1px; background: var(--color-border); grid-template-columns: repeat(auto-fill, minmax(min(100%, 15rem), 1fr)); }
.gallery-grid__item a { display: block; overflow: hidden; background: var(--color-surface); }
.gallery-grid__item img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1), opacity 0.3s ease; }
.gallery-grid__item a:hover img { transform: scale(1.05); opacity: 0.92; }

/* menu / price list: leader-ruled rows. */
.menu-list { list-style: none; margin: 0; padding: 0; max-width: 46rem; }
.menu-item { padding-block: 1.3rem; border-bottom: var(--hair); }
.menu-item:first-child { border-top: var(--hair); }
.menu-item__head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; }
.menu-item__name { font-family: var(--font-display); font-size: 1.35rem; }
.menu-item__price { letter-spacing: 0.08em; color: var(--color-primary); white-space: nowrap; }
.menu-item__desc { color: var(--color-muted); margin: 0.35rem 0 0; }

/* faq: hairline-separated <details> (works with no JS). */
.faq-list { max-width: 46rem; }
.faq-item { border-bottom: var(--hair); padding-block: 0.6rem; }
.faq-item:first-child { border-top: var(--hair); }
.faq-item summary { cursor: pointer; font-family: var(--font-display); font-size: 1.3rem; padding: 0.7rem 0; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-family: var(--font-sans); font-size: 1.4rem; color: var(--color-primary); transition: transform 0.25s ease; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item__answer { padding-bottom: 0.6rem; color: var(--color-muted); }

/* hours + open/closed badge. */
.open-badge { display: inline-block; font-size: 0.7rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.16em; padding: 0.3rem 0.9rem; border: var(--hair); }
.open-badge--open { color: #166534; border-color: #16653433; }
.open-badge--closed { color: var(--color-muted); }
.hours-list { display: grid; grid-template-columns: auto auto; gap: 0.3rem 2rem; justify-content: start; margin: 1rem 0 0; }
.hours-list dt { letter-spacing: 0.02em; }
.hours-list dd { margin: 0; color: var(--color-muted); }

/* cta: a centred, hairline-framed statement using the primary sparingly. */
.section--cta { text-align: center; }
.section--cta .container { border: var(--hair); padding-block: clamp(3rem, 7vw, 5.5rem); background: var(--tint); }
.cta__inner { max-width: 42rem; margin-inline: auto; }
.section--cta h2 { font-size: clamp(2.2rem, 5.5vw, 4rem); }
.section--cta p { font-size: 1.2rem; color: var(--color-muted); margin-bottom: 1.8rem; }

/* map: address + directions button. */
.section--map address { font-style: normal; color: var(--color-muted); margin: 0 0 1.2rem; letter-spacing: 0.01em; font-size: 1.15rem; }

/* optional lead paragraph under a section heading (team, steps). */
.section__lead { max-width: 42rem; color: var(--color-muted); font-size: 1.2rem; margin: -0.3rem 0 2rem; }

/* team: portraits over a hairline, with editorial captions. */
.team-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: clamp(1.75rem, 4vw, 2.75rem); grid-template-columns: repeat(auto-fill, minmax(min(100%, 15rem), 1fr)); }
.team-card { display: flex; flex-direction: column; }
.team-card__photo { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.team-card__body { padding-top: 1.1rem; margin-top: 1.1rem; border-top: var(--hair); }
.team-card__name { font-family: var(--font-display); font-size: 1.5rem; margin: 0; }
.team-card__role { text-transform: uppercase; letter-spacing: 0.16em; font-size: 0.72rem; font-weight: 600; color: var(--color-primary); margin: 0.5rem 0 0; }
.team-card__bio { color: var(--color-muted); margin: 0.7rem 0 0; }

/* steps: oversized didone numerals over hairline-separated rows. */
.steps-list { list-style: none; margin: 0; padding: 0; display: grid; }
.step { display: grid; grid-template-columns: auto 1fr; gap: clamp(1rem, 3vw, 2.5rem); align-items: baseline; padding-block: 1.6rem; border-top: var(--hair); }
.step:last-child { border-bottom: var(--hair); }
.step__num { font-family: var(--font-display); font-weight: 400; font-size: clamp(2rem, 4vw, 3.2rem); line-height: 1; color: var(--color-primary); }
.step__title { font-family: var(--font-display); font-size: 1.5rem; margin: 0 0 0.4rem; }
.step__desc { color: var(--color-muted); margin: 0; max-width: 42rem; }

/* contact form (markup in site.css; salon refines spacing + field chrome). */
.section--contact .container { max-width: 46rem; }
.theme-salon .contact-form { max-width: 38rem; }
.theme-salon .form-field label { font-size: 0.72rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.16em; color: var(--color-muted); }
.theme-salon .form-field input, .theme-salon .form-field textarea {
  border: var(--hair); border-radius: var(--radius); background: var(--color-surface);
  padding: 0.8rem 0.9rem; transition: border-color 0.2s ease;
}
.theme-salon .form-field input:focus, .theme-salon .form-field textarea:focus { border-color: var(--color-primary); outline-offset: 1px; }

/* news_latest: an editorial three-up of recent posts (was unstyled on salon). */
.news-latest__list { list-style: none; margin: 0; padding: 0; display: grid; gap: clamp(1.5rem, 4vw, 2.75rem); grid-template-columns: repeat(auto-fill, minmax(min(100%, 17rem), 1fr)); }
.news-latest__item { display: flex; flex-direction: column; }
.news-latest__cover { display: block; overflow: hidden; margin-bottom: 1.1rem; }
.news-latest__cover img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1); }
.news-latest__cover:hover img { transform: scale(1.04); }
.news-latest__title { font-size: 1.45rem; margin: 0 0 0.5rem; }
.news-latest__title a { color: var(--color-text); text-decoration: none; }
.news-latest__title a:hover { color: var(--color-primary); }
.news-latest__date { order: -1; font-family: var(--font-sans); font-size: 0.72rem; text-transform: uppercase; letter-spacing: var(--track); color: var(--color-muted); margin: 0 0 0.6rem; }
.news-latest__more { margin-top: 2.5rem; }
.news-latest__more a { font-family: var(--font-sans); font-size: 0.78rem; text-transform: uppercase; letter-spacing: var(--track); font-weight: 600; text-decoration: none; }
.news-latest__empty { color: var(--color-muted); }

/* reviews: hairline-bordered quote cards (no fabricated aggregate — honesty rule). */
.reviews-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 1px; background: var(--color-border); border: var(--hair); grid-template-columns: repeat(auto-fill, minmax(min(100%, 18rem), 1fr)); }
.review-card { background: var(--color-surface); padding: clamp(1.5rem, 3vw, 2.25rem); display: flex; flex-direction: column; gap: 0.85rem; }
.review-card__rating { margin: 0; display: flex; align-items: baseline; gap: 0.6rem; }
.review-card__rating span[aria-hidden="true"] { color: var(--color-primary); letter-spacing: 0.15em; font-size: 0.95rem; }
.review-card__rating-text { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.16em; color: var(--color-muted); }
.review-card__text { margin: 0; font-family: var(--font-display); font-size: 1.3rem; line-height: 1.4; font-style: italic; }
.review-card__text::before { content: "\201C"; }
.review-card__text::after { content: "\201D"; }
.review-card__author { margin: 0; margin-top: auto; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.14em; color: var(--color-muted); }
.review-card__source { color: var(--color-primary); }
.reviews-empty { color: var(--color-muted); }
.reviews-google { margin-top: 2.25rem; }
.reviews-google__link { font-family: var(--font-sans); font-size: 0.78rem; text-transform: uppercase; letter-spacing: var(--track); font-weight: 600; text-decoration: none; }

/* --- Footer --------------------------------------------------------------- */

.salon-footer { margin-top: var(--space); border-top: var(--hair); }
.salon-footer__grid { display: grid; gap: 2.5rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); padding-block: 3rem 2rem; }
.salon-footer__name { font-family: var(--font-display); font-size: 1.5rem; margin: 0 0 0.6rem; }
.salon-footer address { font-style: normal; color: var(--color-muted); }
.salon-footer__label { font-size: 0.7rem; text-transform: uppercase; letter-spacing: var(--track); color: var(--color-muted); margin: 0 0 0.8rem; font-family: var(--font-sans); font-weight: 600; }
.salon-footer a { color: var(--color-text); }
.salon-footer__legal { border-top: var(--hair); padding-block: 1.5rem; color: var(--color-muted); font-size: 0.8rem; letter-spacing: 0.04em; }

/* --- Mobile nav ----------------------------------------------------------- */

.salon-nav__toggle {
  font-family: var(--font-sans); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.16em;
  background: none; border: var(--hair); padding: 0.5rem 1rem; cursor: pointer; color: var(--color-text);
}
@media (max-width: 44rem) {
  .salon-nav__toggle[hidden] { display: none; }
  .salon-nav { display: none; flex-basis: 100%; }
  .salon-nav.is-open { display: block; }
  .salon-nav ul { flex-direction: column; gap: 0.8rem; padding-top: 0.8rem; }
  .salon-nav a::after { display: none; }
}

/* --- Orchestrated page-load reveal (gated behind a motion preference) ------ */
/* One staggered reveal of the hero + first heading; content is fully visible
   without it, and site.css separately nulls all motion under reduce. */
@media (prefers-reduced-motion: no-preference) {
  .salon-hero .eyebrow, .salon-hero__title, .salon-hero__lead, .salon-hero__cta, .salon-hero__media { animation: salon-fade 0.9s both; }
  .salon-hero__title { animation-delay: 0.06s; }
  .salon-hero__lead { animation-delay: 0.14s; }
  .salon-hero__cta { animation-delay: 0.22s; }
  .salon-hero__media { animation-delay: 0.1s; }
  @keyframes salon-fade { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
}
