/*
 * Rose's Nail Care. The brand colour comes from the salon's appearance in co-booking (site.js sets --brand-*);
 * these are the pink it starts with.
 */
:root {
  --brand-50: #fdf2f8;
  --brand-100: #fce7f3;
  --brand-700: #be185d;
  --brand-800: #9d174d;
  --brand-900: #831843;

  --text: #1f2937;
  --muted: #4b5563;
  --line: #e5e7eb;
  --page: #ffffff;
  --card: #ffffff;
  --radius: 14px;
  --shadow: 0 10px 30px -12px rgb(17 24 39 / 0.25);

  color-scheme: light;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  margin: 0;
  background: var(--page);
  color: var(--text);
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
}

/* Sections land below the sticky header when a link jumps to them. */
[id] {
  scroll-margin-top: 5rem;
}

img {
  max-width: 100%;
}

a {
  color: var(--brand-700);
}

a:hover {
  color: var(--brand-900);
}

:focus-visible {
  outline: 3px solid var(--brand-700);
  outline-offset: 3px;
}

h1,
h2,
h3,
h4 {
  line-height: 1.2;
  margin: 0 0 0.5em;
}

h2 {
  font-size: clamp(1.6rem, 1.2rem + 1.5vw, 2.1rem);
}

.wrap {
  width: min(72rem, 100% - 2rem);
  margin-inline: auto;
}

.sr-only {
  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;
  padding: 0.6rem 1rem;
  border-radius: 8px;
  background: var(--brand-700);
  color: #fff;
  font-weight: 600;
}

.skip-link:focus {
  top: 1rem;
  color: #fff;
}

/* Buttons */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 2.9rem;
  padding: 0.6rem 1.3rem;
  border: 2px solid var(--brand-700);
  border-radius: 999px;
  background: var(--brand-700);
  color: #fff;
  font-weight: 650;
  text-decoration: none;
  white-space: nowrap;
}

.button:hover {
  background: var(--brand-800);
  border-color: var(--brand-800);
  color: #fff;
}

.button-small {
  min-height: 2.5rem;
  padding: 0.4rem 1rem;
  font-size: 0.95rem;
}

.button-outline {
  background: transparent;
  color: var(--brand-700);
}

.button-outline:hover {
  background: var(--brand-50);
  color: var(--brand-900);
}

.button-light {
  background: #fff;
  border-color: #fff;
  color: var(--brand-800);
}

.button-light:hover {
  background: var(--brand-50);
  border-color: var(--brand-50);
  color: var(--brand-900);
}

.button-light:focus-visible {
  outline-color: #fff;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgb(255 255 255 / 0.95);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(8px);
}

.header-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: 4rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--text);
  font-weight: 750;
  font-size: 1.1rem;
  text-decoration: none;
}

.brand:hover {
  color: var(--brand-800);
}

.brand-logo {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.site-header nav {
  margin-left: auto;
}

.nav-links {
  display: flex;
  gap: 1.4rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-links a {
  color: var(--text);
  font-weight: 550;
  text-decoration: none;
}

.nav-links a:hover {
  color: var(--brand-700);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.menu-toggle {
  display: none;
}

/*
 * Phones: the brand, Book online, then a menu button. The links open as a panel under the header, each a full-width
 * row that is easy to tap.
 */
@media (max-width: 720px) {
  .site-header {
    position: sticky;
  }

  .header-row {
    gap: 0.5rem;
  }

  .header-row .button {
    margin-left: auto;
  }

  .site-header nav {
    order: 3;
    margin-left: 0;
  }

  .menu-toggle {
    display: grid;
    place-items: center;
    width: 2.75rem;
    height: 2.75rem;
    margin-right: -0.35rem;
    border: 0;
    border-radius: 10px;
    background: none;
    color: var(--text);
    cursor: pointer;
  }

  .menu-toggle:hover {
    background: var(--brand-50);
  }

  .menu-toggle .icon-close,
  .menu-toggle[aria-expanded='true'] .icon-menu {
    display: none;
  }

  .menu-toggle[aria-expanded='true'] .icon-close {
    display: block;
  }

  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    gap: 0;
    padding: 0.5rem 1rem 1rem;
    border-bottom: 1px solid var(--line);
    background: var(--card);
    box-shadow: 0 16px 24px -16px rgb(17 24 39 / 0.35);
  }

  .main-nav.open .nav-links {
    display: flex;
  }

  .nav-links li:not([hidden]) {
    display: block;
  }

  .nav-links a {
    display: block;
    padding: 0.85rem 0.5rem;
    border-bottom: 1px solid var(--line);
    font-size: 1.05rem;
  }

  .nav-links li:last-child a {
    border-bottom: 0;
  }
}

/* Hero */
/*
 * The hero: the card on a backdrop of the salon's cover image, with waves of light flowing across it. The
 * light moves only by transform, and stands still for reduced motion or when paused.
 */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: linear-gradient(120deg, var(--brand-800), var(--brand-700) 55%, var(--brand-100));
}

.hero-backdrop {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
}

.cover-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/*
 * Waves of light flowing sideways across the backdrop: glowing lines, with soft bands of light under them. Each is
 * drawn a period longer than the view and slides left by exactly one period, so its loop is seamless; each has its
 * own speed, so they weave in and out of each other.
 */
.waves {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* Low specificity (:where), so each wave's own duration below wins. */
:where(.waves) path {
  will-change: transform;
  animation: wave-flow 12s linear infinite;
}

.band {
  fill: #fff;
  mix-blend-mode: soft-light;
}

.band-1 {
  opacity: 0.35;
  animation-duration: 26s;
  --period: -1600px;
}

.band-2 {
  opacity: 0.25;
  animation-duration: 19s;
  --period: -1200px;
}

.line {
  fill: none;
  stroke: #fff;
  stroke-linecap: round;
  filter: url(#wave-glow);
  vector-effect: non-scaling-stroke;
}

.line-1 {
  stroke-width: 2.5;
  opacity: 0.85;
  animation-duration: 9s;
  --period: -800px;
}

.line-2 {
  stroke-width: 1.5;
  opacity: 0.6;
  animation-duration: 14s;
  --period: -1000px;
}

.line-3 {
  stroke-width: 3.5;
  opacity: 0.45;
  animation-duration: 7s;
  --period: -640px;
}

@keyframes wave-flow {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(var(--period));
  }
}

.hero.motion-paused .waves path {
  animation-play-state: paused;
}
/* Pause and play: small, in the corner, but a full 44px to tap. */
.motion-toggle {
  position: absolute;
  right: 0.75rem;
  bottom: 0.75rem;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid rgb(255 255 255 / 0.7);
  border-radius: 50%;
  background: rgb(17 24 39 / 0.45);
  color: #fff;
  cursor: pointer;
}

.motion-toggle:hover {
  background: rgb(17 24 39 / 0.65);
}

.motion-toggle:focus-visible {
  outline-color: #fff;
}

.motion-toggle .icon-play,
.motion-toggle[aria-pressed='true'] .icon-pause {
  display: none;
}

.motion-toggle[aria-pressed='true'] .icon-play {
  display: block;
}

@media (prefers-reduced-motion: reduce) {
  .waves path {
    animation: none;
  }

  .motion-toggle {
    display: none;
  }
}

.hero-wrap {
  padding-block: clamp(2.5rem, 7vw, 5rem);
}

/* The salon at a glance, laid out like a business card on Google, as frosted glass over the backdrop. */
.hero-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  max-width: 46rem;
  margin-inline: auto;
  padding: 1.75rem 2rem;
  border: 1px solid rgb(255 255 255 / 0.7);
  border-radius: calc(var(--radius) + 6px);
  /* Light enough behind the text to keep its contrast, whatever the cover image. */
  background: rgb(255 255 255 / 0.86);
  box-shadow: 0 25px 50px -20px rgb(17 24 39 / 0.45);
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .hero-card {
    background: rgb(255 255 255 / 0.96);
  }
}

.hero-head {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.hero-logo {
  width: 72px;
  height: 72px;
  flex: none;
  object-fit: contain;
  border-radius: 50%;
  background: var(--brand-50);
  padding: 0.35rem;
}

.hero-text {
  min-width: 0;
}

.hero h1 {
  font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.2rem);
  font-weight: 650;
  margin-bottom: 0.25em;
}

/* "Nail salon in Burlington · Open now · 4.2 ★★★★☆ (176)": the parts shown, a dot between each. */
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 0;
  margin: 0;
  color: var(--muted);
  font-size: 1.02rem;
}

.hero-meta > *:not(:empty):not([hidden]) + *:not(:empty):not([hidden])::before {
  content: '·';
  margin: 0 0.55rem;
  color: var(--muted);
  font-weight: 400;
}

.hero-meta > :empty,
.hero-meta > [hidden] {
  display: none;
}

.status {
  display: inline;
  margin: 0;
  color: var(--muted);
}

.status-open {
  color: #15803d;
  font-weight: 650;
}

.status-closed {
  color: #b91c1c;
  font-weight: 650;
}

.hero-rating {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--text);
  text-decoration: none;
}

.hero-rating:hover .rating-count {
  text-decoration: underline;
}

.rating-count {
  color: var(--muted);
}

/* Stars filled to the rating (4.2 fills four and a fifth), as Google shows them. */
.rating-stars {
  position: relative;
  display: inline-block;
  color: #d1d5db;
  font-size: 1.1rem;
  letter-spacing: 0.05em;
  line-height: 1;
  white-space: nowrap;
}

.rating-stars-fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--fill, 0%);
  overflow: hidden;
  color: #f59e0b;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero-actions .button {
  font-weight: 600;
}

.hero-actions .button svg {
  flex: none;
}

/* Book and Call side by side ahead of the rest on a phone: a two-by-two grid of full-width buttons. */
@media (max-width: 600px) {
  .hero-card {
    padding: 1.25rem;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .hero-actions .button {
    padding-inline: 0.75rem;
    white-space: normal;
    text-align: center;
  }
}

/* Sections */
.section {
  padding-block: 3.5rem;
}

.section-tint {
  background: var(--brand-50);
}

.section-lead {
  margin: 0 0 1.5rem;
  color: var(--muted);
  max-width: 48rem;
}

.loading,
.load-error {
  color: var(--muted);
}

/* Services */
.category-links ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0 0 2rem;
  padding: 0;
  list-style: none;
}

.category-links a {
  display: inline-block;
  padding: 0.35rem 0.9rem;
  border: 1px solid var(--brand-700);
  border-radius: 999px;
  color: var(--brand-800);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
}

.category-links a:hover {
  background: var(--brand-50);
}

.category + .category {
  margin-top: 2.5rem;
}

.category h3 {
  font-size: 1.35rem;
  padding-bottom: 0.4rem;
  border-bottom: 2px solid var(--brand-100);
  margin-bottom: 1rem;
}

.menu {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 21rem), 1fr));
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.menu-item {
  padding: 1rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
}

.menu-item h4 {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.5rem;
  margin: 0;
  font-size: 1.05rem;
}

.tag {
  padding: 0.05rem 0.5rem;
  border-radius: 999px;
  background: var(--brand-100);
  color: var(--brand-900);
  font-size: 0.75rem;
  font-weight: 650;
}

.menu-description {
  margin: 0.3rem 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

/* One price line: the name (or option) on the left, the time and price on the right. */
.price-line {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  margin: 0;
}

.menu-item > .price-line {
  margin-top: 0.4rem;
}

.price-line .price-name {
  flex: 1;
  min-width: 0;
}

.price-line .duration {
  color: var(--muted);
  font-size: 0.9rem;
  white-space: nowrap;
}

.price-line .price {
  min-width: 4.5rem;
  text-align: right;
  font-weight: 700;
  white-space: nowrap;
}

.options {
  margin: 0.5rem 0 0;
  padding: 0;
  list-style: none;
}

.options li {
  padding-block: 0.3rem;
  border-top: 1px dashed var(--line);
}

/* Hours and visit */
.two-columns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr));
  gap: 2.5rem;
}

.hours {
  width: 100%;
  max-width: 28rem;
  border-collapse: collapse;
  background: var(--card);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 1px 2px rgb(17 24 39 / 0.06);
}

.hours th,
.hours td {
  padding: 0.6rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--line);
}

.hours tr:last-child th,
.hours tr:last-child td {
  border-bottom: 0;
}

.hours th {
  font-weight: 600;
}

.hours td {
  text-align: right;
}

.hours tr.today th,
.hours tr.today td {
  background: var(--brand-100);
  color: var(--brand-900);
  font-weight: 700;
}

.special-hours {
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
  max-width: 28rem;
}

.special-hours li {
  padding: 0.6rem 1rem;
  border-left: 4px solid var(--brand-700);
  background: var(--card);
  border-radius: 6px;
}

.special-hours li + li {
  margin-top: 0.5rem;
}

.visit address {
  font-style: normal;
  font-size: 1.1rem;
}

.directions {
  margin: 0.4rem 0 1rem;
  color: var(--muted);
}

.directions:empty {
  display: none;
}

.contact-list {
  margin: 0 0 1.5rem;
  padding: 0;
  list-style: none;
}

.contact-list li {
  display: flex;
  gap: 0.75rem;
  padding-block: 0.25rem;
}

.contact-label {
  min-width: 4rem;
  color: var(--muted);
}

.map {
  display: block;
  width: 100%;
  height: 22rem;
  margin-top: 2.5rem;
  border: 0;
  border-radius: var(--radius);
  background: var(--line);
}

/* Call to action */
.cta {
  background: linear-gradient(120deg, var(--brand-800), var(--brand-700));
  color: #fff;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.cta p {
  margin: 0;
  font-size: 1.1rem;
}

/* Footer */
.site-footer {
  padding-block: 1.5rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.95rem;
}

.footer-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
}

.footer-row p {
  margin: 0;
}

/* Google reviews */
.reviews-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem 2rem;
  margin-bottom: 1.5rem;
}

.reviews-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.rating-summary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
  color: var(--muted);
}

.rating-summary:empty {
  display: none;
}

.rating-number {
  color: var(--text);
  font-size: 1.6rem;
  font-weight: 750;
}

.stars {
  color: #b45309;
  font-size: 1.15rem;
  letter-spacing: 0.1em;
  white-space: nowrap;
}

/* The reviews carousel: one review at a time on a phone, two on a tablet, three on a wide screen. */
.carousel {
  --per-view: 1;
  --gap: 1rem;
}

@media (min-width: 700px) {
  .carousel {
    --per-view: 2;
  }
}

@media (min-width: 1040px) {
  .carousel {
    --per-view: 3;
  }
}

.carousel-viewport {
  position: relative;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  /* Room for the cards' focus rings, which the scrolling box would otherwise cut off. */
  padding: 4px;
  margin: -4px;
  border-radius: var(--radius);
}

.carousel-viewport::-webkit-scrollbar {
  display: none;
}

@media (prefers-reduced-motion: no-preference) {
  .carousel-viewport {
    scroll-behavior: smooth;
  }
}

.carousel-track {
  display: flex;
  align-items: stretch;
  gap: var(--gap);
  margin: 0;
  padding: 0;
  list-style: none;
}

.carousel-track > li {
  flex: 0 0 calc((100% - (var(--per-view) - 1) * var(--gap)) / var(--per-view));
  min-width: 0;
  scroll-snap-align: start;
}

.carousel-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.carousel-controls[hidden] {
  display: none;
}

.carousel-arrow {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border: 2px solid var(--brand-700);
  border-radius: 50%;
  background: var(--card);
  color: var(--brand-700);
  cursor: pointer;
}

.carousel-arrow:hover:not(:disabled) {
  background: var(--brand-50);
  color: var(--brand-900);
}

.carousel-arrow:disabled {
  border-color: #9ca3af;
  color: #6b7280;
  cursor: default;
  opacity: 0.6;
}

.carousel-dots {
  display: flex;
  gap: 0.25rem;
}

/* A dot is small to look at but a full 44px target to tap. */
.carousel-dot {
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2.75rem;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}

.carousel-dot::before {
  content: '';
  width: 0.7rem;
  height: 0.7rem;
  border: 2px solid var(--brand-700);
  border-radius: 999px;
  transition: width 150ms ease;
}

.carousel-dot[aria-current='true']::before {
  width: 1.6rem;
  background: var(--brand-700);
}

@media (prefers-reduced-motion: reduce) {
  .carousel-dot::before {
    transition: none;
  }
}

.review {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  padding: 1.1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
}

.review-author {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.review-author img,
.review-initial {
  width: 40px;
  height: 40px;
  flex: none;
  border-radius: 50%;
}

.review-initial {
  display: grid;
  place-items: center;
  background: var(--brand-100);
  color: var(--brand-900);
  font-weight: 700;
}

.review-name {
  display: block;
  font-weight: 650;
  color: var(--text);
}

.review-when {
  display: block;
  color: var(--muted);
  font-size: 0.85rem;
}

.review-text {
  margin: 0;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 6;
  line-clamp: 6;
  overflow: hidden;
}

.review-text.expanded {
  display: block;
}

.review-more {
  align-self: flex-start;
  padding: 0;
  border: 0;
  background: none;
  color: var(--brand-700);
  font: inherit;
  font-weight: 600;
  text-decoration: underline;
  cursor: pointer;
}

.reviews-source {
  margin: 1rem 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.google-word {
  font-weight: 600;
  color: #3c4043;
}

.hero-rating-number {
  font-weight: 600;
}

.hero-address {
  display: flex;
  align-items: flex-start;
  gap: 0.4rem;
  margin: 0.35rem 0 0;
  color: var(--text);
  font-size: 1rem;
}

.hero-address svg {
  flex: none;
  margin-top: 0.2rem;
  color: var(--brand-700);
}

.hero-rating-line {
  margin: 0.35rem 0 0;
}

.hero-rating-line:has(> [hidden]) {
  display: none;
}

/* Name, rating, open now, address: evenly spaced lines. */
.hero-rating-line {
  margin: 0;
}

.hero-rating-line + .hero-meta {
  margin-top: 0.35rem;
}

/*
 * The hero card, centred: the salon's name large and spaced in a serif, then contact, hours and location under
 * small capital headings. No buttons; the phone, email and address are links.
 */
.hero-card {
  align-items: center;
  gap: 0;
  max-width: 44rem;
  padding: clamp(2rem, 5vw, 3.25rem) clamp(1.25rem, 5vw, 3rem);
  text-align: center;
}

.hero .hero-name {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  margin: 0;
  font-family: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  font-size: clamp(2.4rem, 1.6rem + 3.6vw, 4.2rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  /* The brand's dark shades, fading as across polished metal; dark enough at every point to read. */
  background: linear-gradient(100deg, var(--brand-900), var(--brand-700) 55%, var(--brand-800));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

@media (forced-colors: active) {
  .hero-name {
    color: CanvasText;
  }
}

.hero-card .hero-rating-line {
  margin-top: 0.75rem;
}

.hero-tagline {
  margin: 1rem 0 0;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(1.25rem, 1rem + 1vw, 1.6rem);
  font-style: italic;
  font-weight: 500;
  color: var(--brand-800);
}

.hero-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.75rem 2rem;
  width: 100%;
  margin-top: 2rem;
}

.hero-fact-wide {
  grid-column: 1 / -1;
}

@media (max-width: 560px) {
  .hero-facts {
    grid-template-columns: 1fr;
  }
}

.hero-fact-title {
  margin: 0 0 0.4rem;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand-800);
}

.hero-fact p {
  margin: 0.15rem 0;
}

.hero-fact a {
  color: var(--text);
  text-decoration: none;
}

.hero-fact a:hover {
  color: var(--brand-800);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.hero-hours {
  margin: 0;
  padding: 0;
  list-style: none;
}

.hero-hours li {
  padding-block: 0.1rem;
}

.hero-fact .status {
  display: block;
  margin-top: 0.4rem;
  font-size: 0.95rem;
}

/* The wordmark's two lines; the gradient is on each line, as a flex child doesn't inherit the heading's. */
.hero-name-main,
.hero-name-sub {
  background: inherit;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-name-sub {
  font-size: 0.42em;
  font-weight: 600;
  letter-spacing: 0.32em;
  /* Letter-spacing adds space after the last letter too; this centres the word again. */
  margin-right: -0.32em;
}

/* Room under the card for the pause button on narrow screens. */
@media (max-width: 760px) {
  .hero-wrap {
    padding-bottom: 4.5rem;
  }
}

/* Three columns of details, each under an icon badge; stacked on narrow screens. */
.hero-card {
  max-width: 54rem;
}

.hero-divider {
  display: flex;
  justify-content: center;
  width: 100%;
  margin-top: 1.75rem;
}

.hero-divider span {
  width: min(16rem, 60%);
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--brand-700), transparent);
  opacity: 0.6;
}

.hero-card .hero-facts {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2rem 1.75rem;
  margin-top: 1.75rem;
}

@media (max-width: 760px) {
  .hero-card .hero-facts {
    grid-template-columns: 1fr;
  }
}

.hero-fact {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-fact-icon {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  margin-bottom: 0.6rem;
  border-radius: 50%;
  background: var(--brand-100);
  color: var(--brand-800);
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.8);
}

.hero-lines {
  margin: 0;
  padding: 0;
  list-style: none;
}

.hero-lines li {
  padding-block: 0.15rem;
}

.hero-lines a {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.line-icon {
  flex: none;
  color: var(--brand-700);
}

.hero-fact [data-salon='address'] {
  display: block;
}

.directions-link {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  margin-top: 0.4rem;
  color: var(--brand-800);
  font-size: 0.92rem;
  font-weight: 600;
}

.hero-fact a:hover .directions-link {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.hero-fact-icon {
  background: linear-gradient(135deg, var(--brand-700), var(--brand-800));
  color: #fff;
  box-shadow: 0 6px 14px -6px rgb(17 24 39 / 0.45);
}

/* ---- Services: a card per category, its services under the cards ---- */

.section-heading {
  margin-bottom: 0.25rem;
  font-family: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  font-size: clamp(2.2rem, 1.6rem + 2.4vw, 3.2rem);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-align: center;
  text-transform: uppercase;
  color: var(--brand-900);
}

.section-heading::after {
  content: '';
  display: block;
  width: 5rem;
  height: 1px;
  margin: 0.9rem auto 0;
  background: var(--brand-700);
}

#services .section-lead,
.reviews-thanks {
  margin-inline: auto;
  text-align: center;
}

.category-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 12.5rem), 1fr));
  gap: 1.25rem;
  margin: 2rem 0 0;
  padding: 0;
  list-style: none;
}

@media (max-width: 560px) {
  .category-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem;
  }
}

.category-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  height: 100%;
  padding: 0 0 1.25rem;
  border: 2px solid transparent;
  border-radius: var(--radius);
  background: var(--brand-50);
  color: var(--text);
  font: inherit;
  text-align: center;
  cursor: pointer;
  box-shadow: 0 10px 24px -14px rgb(17 24 39 / 0.45);
  transition: transform 150ms ease, box-shadow 150ms ease, border-color 150ms ease;
}

.category-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 30px -14px rgb(17 24 39 / 0.5);
}

.category-card[aria-pressed='true'] {
  border-color: var(--brand-700);
  background: var(--card);
}

@media (prefers-reduced-motion: reduce) {
  .category-card {
    transition: none;
  }

  .category-card:hover {
    transform: none;
  }
}

/* The picture, arched at the top. */
.category-card-picture {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 999px 999px 0 0;
  background: var(--brand-100);
}

.category-card-picture img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* No picture: the salon's mark on its colours. */
.category-card-picture-empty {
  background:
    url('data/favicon-512.png') center / 45% no-repeat,
    linear-gradient(160deg, var(--brand-100), var(--brand-50));
}

.category-card-name {
  margin: 1rem 0.75rem 0;
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.25;
}

.category-card-rule {
  display: block;
  width: 3rem;
  height: 2px;
  margin: 0.6rem auto 0;
  background: var(--brand-700);
}

.category-card-about {
  margin: 0.75rem 1rem 0;
  color: var(--muted);
  font-size: 0.93rem;
  line-height: 1.5;
}

.category-panel {
  margin-top: 2.5rem;
  scroll-margin-top: 5rem;
}

.category-panel-title {
  margin-bottom: 1rem;
  padding-bottom: 0.4rem;
  border-bottom: 2px solid var(--brand-100);
  font-size: 1.35rem;
}

/* As many columns as the script works out for even rows, on screens wide enough for them. */
@media (min-width: 900px) {
  .category-cards {
    grid-template-columns: repeat(var(--columns, 3), minmax(0, 1fr));
    max-width: calc(var(--columns, 3) * 15rem + (var(--columns, 3) - 1) * 1.25rem);
    margin-inline: auto;
  }
}

@media (min-width: 561px) and (max-width: 899px) {
  .category-cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/*
 * Wave dividers between the sections: the section above (--from) eases into the one below (--to) along a wave, with
 * a soft wave behind it (--soft) and fine lines along its edge (--line): pink on light sections, white on pink ones.
 */
.wave-divider {
  --wave-height: clamp(48px, 7vw, 100px);
  position: relative;
  height: var(--wave-height);
  margin: -3.5rem 0 2rem;
  background: var(--from, transparent);
  line-height: 0;
}

.wave-divider svg {
  display: block;
  width: 100%;
  height: 100%;
}

.wave-back {
  fill: var(--soft);
}

.wave-front {
  fill: var(--to);
}

.wave-line {
  fill: none;
  stroke: var(--line);
  stroke-width: 2;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
}

.wave-line-thin {
  stroke-width: 1;
  opacity: 0.6;
}

/* The hero's bottom edge: white waves over the moving pink, into the services. */
.wave-hero-bottom {
  --to: var(--page);
  --soft: rgb(255 255 255 / 0.45);
  --line: #fff;
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  margin: 0;
  z-index: 0;
}

.hero-wrap {
  position: relative;
  z-index: 1;
  padding-bottom: calc(clamp(2.5rem, 7vw, 5rem) + var(--hero-wave, 56px));
}

.hero .motion-toggle {
  bottom: calc(clamp(48px, 7vw, 100px) + 0.5rem);
}

/* Between two white sections: a soft pink wave and a pink line. */
.wave-white-to-white {
  --from: var(--page);
  --to: var(--page);
  --soft: var(--brand-100);
  --line: var(--brand-700);
}

/* Into the pale pink of the hours. */
.wave-white-to-tint {
  --from: var(--page);
  --to: var(--brand-50);
  --soft: var(--brand-100);
  --line: var(--brand-700);
}

/* Into the deep pink of the closing band, with white lines. */
.wave-tint-to-pink {
  --from: var(--brand-50);
  --to: var(--brand-800);
  --soft: var(--brand-700);
  --line: #fff;
}

/* Out of the closing band into the white footer. */
.wave-pink-to-white {
  --from: var(--brand-700);
  --to: var(--page);
  --soft: var(--brand-100);
  --line: var(--brand-100);
  margin: -1.5rem 0 1rem;
}

.site-footer {
  border-top: 0;
}

/* The closing band's wave meets its colour at the top. */
.cta {
  /* Solid behind the wave at its top (at most 100px tall), so the two meet without a seam. */
  background: linear-gradient(180deg, var(--brand-800) 100px, var(--brand-700));
}

/* The reviews' head, centred like Our services: heading, thank-you, rating, then the two Google links. */
.reviews-head {
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 0;
  margin-bottom: 2rem;
  text-align: center;
}

.reviews-thanks {
  max-width: 40rem;
  margin-top: 1rem;
  margin-bottom: 1rem;
  font-style: italic;
}

.reviews-head .rating-summary {
  justify-content: center;
  margin-bottom: 1.25rem;
}

.reviews-head .reviews-actions {
  justify-content: center;
}

.reviews-section .reviews-source {
  text-align: center;
}

/* ---- Gallery: square photos that open large ---- */

.gallery-lead {
  margin-inline: auto;
  text-align: center;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
  margin: 2rem 0 0;
  padding: 0;
  list-style: none;
}

@media (max-width: 900px) {
  .gallery-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.5rem;
  }
}

.gallery-tile {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: var(--radius);
  background: var(--brand-100);
  cursor: zoom-in;
  box-shadow: 0 8px 20px -12px rgb(17 24 39 / 0.45);
}

.gallery-tile img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 300ms ease;
}

.gallery-tile:hover img {
  transform: scale(1.05);
}

@media (prefers-reduced-motion: reduce) {
  .gallery-tile img {
    transition: none;
  }

  .gallery-tile:hover img {
    transform: none;
  }
}

/* The large view: the photo on a dark backdrop, its caption and place under it, arrows at the sides. */
.lightbox {
  width: 100vw;
  max-width: 100vw;
  height: 100dvh;
  max-height: 100dvh;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: #fff;
}

.lightbox::backdrop {
  background: rgb(10 10 15 / 0.9);
}

.lightbox-figure {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  height: 100%;
  margin: 0;
  padding: 3.5rem 4.5rem 1.5rem;
}

.lightbox-image {
  max-width: 100%;
  max-height: calc(100dvh - 8rem);
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 20px 50px -20px rgb(0 0 0 / 0.8);
}

.lightbox-caption {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.25rem 1rem;
  max-width: 48rem;
  font-size: 1rem;
  text-align: center;
}

.lightbox-count {
  color: rgb(255 255 255 / 0.75);
}

.lightbox-button {
  position: fixed;
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border: 1px solid rgb(255 255 255 / 0.4);
  border-radius: 50%;
  background: rgb(255 255 255 / 0.12);
  color: #fff;
  cursor: pointer;
}

.lightbox-button:hover {
  background: rgb(255 255 255 / 0.25);
}

.lightbox-button:focus-visible {
  outline-color: #fff;
}

.lightbox-button[hidden] {
  display: none;
}

.lightbox-close {
  top: 0.75rem;
  right: 0.75rem;
}

.lightbox-prev,
.lightbox-next {
  top: 50%;
  transform: translateY(-50%);
}

.lightbox-prev {
  left: 0.75rem;
}

.lightbox-next {
  right: 0.75rem;
}

@media (max-width: 560px) {
  .lightbox-figure {
    padding: 3.5rem 0.75rem 1.5rem;
  }

  .lightbox-prev,
  .lightbox-next {
    top: auto;
    bottom: 1rem;
    transform: none;
  }

  .lightbox-figure {
    padding-bottom: 5rem;
  }
}

/* As many columns as the script works out for even rows, on screens wide enough for them. */
@media (min-width: 901px) {
  .gallery-grid {
    grid-template-columns: repeat(var(--columns, 4), minmax(0, 1fr));
    max-width: calc(var(--columns, 4) * 18rem + (var(--columns, 4) - 1) * 0.75rem);
    margin-inline: auto;
  }
}

/* Contact us: the section's heading as Our services', then Opening hours and Visit us side by side. */
#contact .section-heading {
  margin-bottom: 2.25rem;
}

.contact-part-title {
  margin-bottom: 0.9rem;
  font-size: 1.4rem;
}

/* Six across fit the page's width: the cards' text a little smaller to suit. */
@media (min-width: 900px) {
  .category-cards {
    max-width: none;
    gap: 1rem;
  }

  .category-cards .category-card-name {
    margin-top: 0.85rem;
    font-size: 1.02rem;
  }

  .category-cards .category-card-about {
    margin-inline: 0.75rem;
    font-size: 0.88rem;
  }
}

/* A category's services in a popup: its name and words at the top, the services scrolling, Book online below. */
.category-dialog {
  width: min(52rem, 100vw - 2rem);
  max-width: none;
  max-height: min(86dvh, 52rem);
  padding: 0;
  border: 0;
  border-radius: calc(var(--radius) + 4px);
  background: var(--card);
  color: var(--text);
  box-shadow: 0 30px 60px -20px rgb(17 24 39 / 0.5);
}

.category-dialog::backdrop {
  background: rgb(17 24 39 / 0.55);
}

.category-dialog-panel {
  display: flex;
  flex-direction: column;
  max-height: inherit;
}

.category-dialog-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.5rem 1.5rem 1rem;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(var(--brand-50), var(--card));
}

.category-dialog-title {
  margin: 0;
  font-family: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  font-size: clamp(1.7rem, 1.3rem + 1.4vw, 2.2rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--brand-900);
}

.category-dialog-about {
  margin: 0.35rem 0 0;
  color: var(--muted);
  font-style: italic;
}

.category-dialog-close {
  display: grid;
  place-items: center;
  flex: none;
  width: 2.75rem;
  height: 2.75rem;
  border: 0;
  border-radius: 50%;
  background: none;
  color: var(--muted);
  cursor: pointer;
}

.category-dialog-close:hover {
  background: var(--brand-100);
  color: var(--text);
}

.category-dialog-body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 1.25rem 1.5rem;
}

.category-dialog-body .menu {
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 19rem), 1fr));
}

.category-dialog-foot {
  display: flex;
  justify-content: flex-end;
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--line);
}

/* On a phone the popup fills the screen. */
@media (max-width: 560px) {
  .category-dialog {
    width: 100vw;
    height: 100dvh;
    max-height: 100dvh;
    margin: 0;
    border-radius: 0;
  }

  .category-dialog-panel {
    height: 100%;
  }

  .category-dialog-foot .button {
    width: 100%;
  }
}

/* A service without options: one line, its name beside its time and price. */
.menu-item-single {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.menu-item-single .price-line {
  align-items: center;
}

.menu-item-single h4.price-name {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.5rem;
  margin: 0;
  font-size: 1.05rem;
}

/* Cards keep their own height, so a one-line service isn't stretched beside one with options. */
.menu {
  align-items: start;
}

/* In the popup the cards flow down two columns, each straight under the one before, so short ones leave no gaps. */
.category-dialog-body .menu {
  display: block;
  columns: 2 19rem;
  column-gap: 1rem;
}

.category-dialog-body .menu-item {
  break-inside: avoid;
  margin-bottom: 1rem;
}

/* The note on "from" prices and add-ons, beside Book online, when the category has them. */
.category-dialog-foot {
  align-items: center;
  gap: 1rem;
}

.category-dialog-note {
  flex: 1;
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
}

@media (max-width: 560px) {
  .category-dialog-foot {
    flex-direction: column;
    align-items: stretch;
    gap: 0.6rem;
  }
}
