/* ============================================
   Reverse Beauty Clinic — Global Design System
   ============================================ */

:root {
  /* Backgrounds — warm cream / soft beige system */
  --color-bg: #F7F2E9;
  --color-ivory: #EFE8DA;
  --color-cream: #F3EDE2;
  --color-white: #FFFFFF;
  --color-dark: #1F2D2E;

  /* Neutrals */
  --color-text: #263029;
  --color-text-secondary: #5D675F;
  --color-text-muted: #8F948A;
  --color-taupe: #BFB8A8;
  --color-beige: #DCD5C4;
  --color-border: rgba(31, 45, 46, 0.10);

  /* Brand — Olive Green rgb(31, 45, 46) */
  --color-olive: #1F2D2E;
  --color-olive-light: #3E5354;
  --color-olive-dark: #152022;

  /* Accent — Gold */
  --color-accent: #856D36;
  --color-accent-light: #C0A662;
  --color-accent-dark: #6B5827;
  --color-accent-champagne: #E8D5A3;

  /* Typography */
  --font-display: 'Marcellus', 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Layout */
  --container-max: 1280px;
  --container-padding: 32px;
  --section-spacing: 140px;
  --section-spacing-mobile: 90px;
  --radius: 0px;
  --transition: 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --transition-fast: 0.3s ease;
}

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  margin: 0;
  padding: 0;
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--color-text);
  background-color: var(--color-bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6, p {
  margin: 0;
}

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

a {
  color: inherit;
  text-decoration: none;
}

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

button {
  border: none;
  background: none;
  cursor: pointer;
  font-family: inherit;
}

.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;
}

/* Container */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--container-padding);
  padding-right: var(--container-padding);
}

/* Section */
.section {
  padding-top: var(--section-spacing);
  padding-bottom: 0;
}

.section:last-of-type {
  padding-bottom: var(--section-spacing);
}

/* Contact page — content ends well above the footer, so the
   default last-section bottom padding leaves a large empty band */
.section.contact-section {
  padding-bottom: 80px;
}

/* Typography */
.eyebrow {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 20px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: 400;
  line-height: 1.12;
  color: var(--color-text);
  margin-bottom: 24px;
}

.section-description {
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.85;
  color: var(--color-text-secondary);
  max-width: 560px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 32px;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border-radius: var(--radius);
  transition: transform var(--transition-fast), background-color var(--transition-fast), color var(--transition-fast), border-color var(--transition-fast);
}

.btn-primary {
  background-color: var(--color-olive);
  color: var(--color-white);
  border: 1px solid var(--color-olive);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background-color: var(--color-accent);
  border-color: var(--color-accent);
  transform: translateY(-2px);
}

.btn-secondary {
  background-color: transparent;
  color: var(--color-text);
  border: 1px solid var(--color-text);
}

.btn-secondary:hover,
.btn-secondary:focus-visible {
  background-color: var(--color-olive);
  color: var(--color-white);
  transform: translateY(-2px);
}

.btn-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-text);
  transition: gap var(--transition-fast);
}

.btn-arrow:hover,
.btn-arrow:focus-visible {
  gap: 14px;
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 16px 0;
  background-color: var(--color-dark);
  transition: background-color var(--transition-fast), padding var(--transition-fast), box-shadow var(--transition-fast);
}

.header.is-scrolled {
  padding: 10px 0;
  box-shadow: 0 1px 0 rgba(247, 242, 233, 0.12);
}

/* Transparent variant — layered above full-screen heroes (home / about) */
.header.hero-header {
  background-color: transparent;
  box-shadow: none;
}

.header.hero-header.is-scrolled {
  background-color: var(--color-dark);
  box-shadow: 0 1px 0 rgba(247, 242, 233, 0.12);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--color-text);
  line-height: 1;
}

.logo-image {
  display: block;
  height: 48px;
  width: auto;
}

/* The brand logo is dark bronze artwork on a transparent background.
   Render it as a light silhouette wherever it sits on dark surfaces
   (header, footer) so it stays legible. Remove this rule to show the
   original bronze logo. */
.header .logo-image,
.footer .footer-logo-image {
  filter: brightness(0) invert(1);
}

.nav-desktop {
  display: flex;
  align-items: center;
  gap: 40px;
}

.nav-link {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #E8EDE9;
  position: relative;
  padding: 4px 0;
  transition: color var(--transition-fast);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background-color: var(--color-accent-light);
  transition: width var(--transition-fast);
}

.nav-link:hover::after,
.nav-link:focus-visible::after,
.nav-link.active::after {
  width: 100%;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 24px;
}

/* Champagne gold button on dark header / mobile nav */
.header .btn-primary,
.mobile-nav .btn-primary {
  background-color: var(--color-accent-champagne);
  border-color: var(--color-accent-champagne);
  color: var(--color-dark);
}

.header .btn-primary:hover,
.header .btn-primary:focus-visible,
.mobile-nav .btn-primary:hover,
.mobile-nav .btn-primary:focus-visible {
  background-color: var(--color-white);
  border-color: var(--color-white);
  color: var(--color-dark);
}

.nav-toggle {
  display: none;
  width: 32px;
  height: 32px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
  padding: 0;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 1px;
  background-color: var(--color-white);
  transition: transform var(--transition-fast), opacity var(--transition-fast);
}

/* Third bar — .nav-toggle is a 3-line hamburger */
.nav-toggle::after {
  content: '';
  display: block;
  width: 24px;
  height: 1px;
  background-color: var(--color-white);
}

/* Mobile Navigation */
.mobile-nav {
  position: fixed;
  inset: 0;
  background-color: var(--color-dark);
  z-index: 999;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition-fast), visibility var(--transition-fast);
}

.mobile-nav.is-open {
  opacity: 1;
  visibility: visible;
}

.mobile-nav-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
  text-align: center;
}

.mobile-nav-link {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 400;
  color: var(--color-white);
  transition: color var(--transition-fast);
}

.mobile-nav-link:hover,
.mobile-nav-link:focus-visible,
.mobile-nav-link.active {
  color: var(--color-accent-light);
}

.mobile-nav .btn-primary {
  margin-top: 40px;
}

.nav-close {
  position: absolute;
  top: 24px;
  right: var(--container-padding);
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Hamburger hides while the fullscreen menu is open — the close button
   takes over its exact spot */
body.menu-open .nav-toggle {
  opacity: 0;
  visibility: hidden;
}

/* The fixed header sits above the fullscreen menu; let clicks pass
   through it so the close button underneath stays tappable */
body.menu-open .header {
  pointer-events: none;
}

.nav-close span {
  position: absolute;
  width: 24px;
  height: 1px;
  background-color: var(--color-white);
}

.nav-close span:first-child {
  transform: rotate(45deg);
}

.nav-close span:last-child {
  transform: rotate(-45deg);
}

/* Hero — full-screen editorial */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background-color: var(--color-dark);
  text-align: center;
}

.hero-media {
  position: absolute;
  inset: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 32%;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(21, 32, 33, 0.58) 0%, rgba(21, 32, 33, 0.22) 45%, rgba(21, 32, 33, 0.60) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 880px;
  padding: 160px 24px 120px;
}

.hero-eyebrow {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--color-accent-champagne);
  margin-bottom: 28px;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(3.2rem, 7vw, 6.4rem);
  font-weight: 400;
  line-height: 1.04;
  letter-spacing: -0.01em;
  color: #F7F2E9;
  margin-bottom: 28px;
}

/* Desktop: keep the headline on a single line — hide the manual break
   and scale the font down so the whole sentence fits the viewport */
@media (min-width: 900px) {
  .hero-title {
    white-space: nowrap;
    font-size: clamp(2.2rem, 3.6vw, 4.4rem);
  }

  .hero-br {
    display: none;
  }
}

.hero-tagline {
  font-size: 1.1rem;
  line-height: 1.85;
  color: rgba(247, 242, 233, 0.85);
  max-width: 560px;
  margin: 0 auto 44px;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

/* Hero CTA — single dark button; champagne type echoes the eyebrow */
.hero .btn-primary {
  background-color: var(--color-dark);
  border-color: var(--color-dark);
  color: var(--color-accent-champagne);
}

.hero .btn-primary:hover,
.hero .btn-primary:focus-visible {
  background-color: var(--color-olive-light);
  border-color: var(--color-olive-light);
  color: var(--color-accent-champagne);
}

.hero-scroll {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  font-family: var(--font-body);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(247, 242, 233, 0.7);
}

.hero-scroll::after {
  content: '';
  width: 1px;
  height: 40px;
  background-color: rgba(247, 242, 233, 0.5);
  animation: heroScrollLine 2.4s cubic-bezier(0.65, 0, 0.35, 1) infinite;
}

/* Line draws downward, then collapses toward the bottom — looping scroll cue */
@keyframes heroScrollLine {
  0% {
    transform: scaleY(0);
    transform-origin: top;
  }
  45% {
    transform: scaleY(1);
    transform-origin: top;
  }
  55% {
    transform: scaleY(1);
    transform-origin: bottom;
  }
  100% {
    transform: scaleY(0);
    transform-origin: bottom;
  }
}

/* Brand Introduction — split editorial: numbered values beside a
   portrait photo with an offset champagne frame and a small inset.
   Dark editorial band: light type on the brand's deep olive */
.brand-intro {
  background-color: var(--color-dark);
  padding-top: 140px;
  padding-bottom: 140px;
}

.brand-intro .eyebrow {
  color: var(--color-accent-champagne);
}

.brand-intro .section-title {
  color: var(--color-ivory);
}

.brand-intro-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(48px, 6vw, 96px);
  align-items: center;
}

.brand-intro-content {
  text-align: left;
}

.brand-intro-content .section-title {
  font-size: clamp(1.9rem, 3.4vw, 2.8rem);
  margin-bottom: 20px;
}

.brand-intro-lede {
  font-size: 1.05rem;
  line-height: 1.85;
  color: rgba(239, 232, 218, 0.72);
  max-width: 560px;
}

.brand-values {
  display: flex;
  flex-direction: column;
  margin-top: 64px;
}

.brand-value {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 20px;
  padding: 22px 0;
  border-top: 1px solid rgba(239, 232, 218, 0.16);
}

.brand-value-number {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 400;
  line-height: 1.5;
  color: var(--color-accent-light);
  opacity: 0.8;
}

.brand-value-title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--color-ivory);
  margin-bottom: 6px;
}

.brand-value-desc {
  font-size: 0.92rem;
  line-height: 1.7;
  color: rgba(239, 232, 218, 0.65);
}

.brand-intro-link {
  margin-top: 36px;
}

.brand-intro .btn-arrow {
  color: var(--color-ivory);
}

.brand-intro-media {
  position: relative;
  margin-right: 24px;
}

/* Champagne hairline frame offset behind the portrait */
.brand-intro-media::before {
  content: '';
  position: absolute;
  top: 28px;
  right: -24px;
  bottom: -24px;
  left: 28px;
  border: 1px solid var(--color-accent-light);
}

.brand-intro-media-main {
  position: relative;
  z-index: 1;
}

.brand-intro-media-main img {
  width: 100%;
  height: 560px;
  object-fit: cover;
  object-position: center 22%;
  display: block;
}

.brand-intro-media-inset {
  position: absolute;
  left: -32px;
  bottom: 36px;
  width: 42%;
  max-width: 220px;
  z-index: 2;
  border: 6px solid var(--color-white);
  box-shadow: 0 18px 36px rgba(31, 45, 46, 0.14);
}

.brand-intro-media-inset img {
  width: 100%;
  height: auto;
  display: block;
}

/* Treatment Categories */
.treatments {
  padding-top: var(--section-spacing);
}

/* Treatments directory page — compact spacing so the list
   is visible without scrolling on first open */
.treatments-page {
  padding-top: 72px;
}

.treatments-header {
  text-align: center;
  margin-bottom: 64px;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.category-card {
  display: flex;
  flex-direction: column;
  background-color: var(--color-white);
  overflow: hidden;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.category-card:hover,
.category-card:focus-within {
  transform: translateY(-6px);
  box-shadow: 0 24px 48px rgba(31, 45, 46, 0.08);
}

.category-card-image-wrap {
  position: relative;
  height: 260px;
  overflow: hidden;
}

.category-card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s ease;
}

.category-card:hover .category-card-image,
.category-card:focus-within .category-card-image {
  transform: scale(1.06);
}

.category-card-body {
  padding: 32px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.category-card-title {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 400;
  margin-bottom: 12px;
  line-height: 1.2;
}

.category-card-desc {
  font-size: 0.95rem;
  color: var(--color-text-secondary);
  line-height: 1.7;
  margin-bottom: 24px;
  flex-grow: 1;
}

/* Featured Treatments */
.featured-treatments {
  padding-top: var(--section-spacing);
  background-color: var(--color-ivory);
}

.featured-treatments-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 64px;
  gap: 32px;
  flex-wrap: wrap;
}

.featured-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.treatment-card {
  display: flex;
  flex-direction: column;
  background-color: var(--color-white);
  overflow: hidden;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.treatment-card:hover,
.treatment-card:focus-within {
  transform: translateY(-6px);
  box-shadow: 0 24px 48px rgba(31, 45, 46, 0.08);
}

.treatment-card-image-wrap {
  position: relative;
  height: 280px;
  overflow: hidden;
}

.treatment-card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s ease;
}

.treatment-card:hover .treatment-card-image,
.treatment-card:focus-within .treatment-card-image {
  transform: scale(1.06);
}

.treatment-card-body {
  padding: 32px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.treatment-card-category {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 10px;
}

.treatment-card-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 400;
  margin-bottom: 12px;
  line-height: 1.2;
}

.treatment-card-meta {
  display: flex;
  gap: 16px;
  margin-bottom: 16px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.treatment-card-desc {
  font-size: 0.95rem;
  color: var(--color-text-secondary);
  line-height: 1.7;
  margin-bottom: 24px;
  flex-grow: 1;
}

/* Why Choose */
.why-choose {
  padding-top: var(--section-spacing);
}

.why-choose-header {
  text-align: center;
  margin-bottom: 64px;
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

.why-card {
  padding: 48px 32px;
  text-align: center;
  transition: transform var(--transition-fast);
}

.why-card:hover {
  transform: translateY(-4px);
}

.why-card-title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 400;
  margin-bottom: 16px;
  color: var(--color-text);
}

.why-card-desc {
  font-size: 0.95rem;
  color: var(--color-text-secondary);
  line-height: 1.7;
}

/* Booking CTA — editorial split panel with inset hairline frame */
.booking-cta {
  padding-top: var(--section-spacing);
}

.booking-cta-inner {
  position: relative;
  background-color: var(--color-dark);
  padding: 96px 72px;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 72px;
  align-items: center;
}

.booking-cta-inner::before {
  content: '';
  position: absolute;
  inset: 14px;
  border: 1px solid rgba(232, 213, 163, 0.28);
  pointer-events: none;
}

.booking-cta-content {
  max-width: 560px;
}

.booking-cta-kicker {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-accent-champagne);
  margin: 0 0 24px;
}

.booking-cta-kicker::before {
  content: '';
  width: 40px;
  height: 1px;
  background-color: var(--color-accent-light);
}

.booking-cta-title {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 4.5vw, 3.6rem);
  font-weight: 400;
  line-height: 1.12;
  color: var(--color-white);
  margin-bottom: 20px;
  text-wrap: balance;
}

.booking-cta-desc {
  color: var(--color-taupe);
  font-size: 1.02rem;
  line-height: 1.7;
  margin: 0;
}

.booking-cta-panel {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.booking-cta-actions {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.booking-cta-actions .btn {
  width: 100%;
  justify-content: center;
}

.booking-cta .btn-primary {
  background-color: var(--color-accent-champagne);
  border-color: var(--color-accent-champagne);
  color: var(--color-dark);
}

.booking-cta .btn-primary:hover,
.booking-cta .btn-primary:focus-visible {
  background-color: var(--color-white);
  border-color: var(--color-white);
  color: var(--color-dark);
}

.booking-cta .btn-secondary {
  color: var(--color-accent-champagne);
  border-color: var(--color-accent-champagne);
}

.booking-cta .btn-secondary:hover,
.booking-cta .btn-secondary:focus-visible {
  background-color: var(--color-accent-champagne);
  color: var(--color-dark);
}

.booking-cta-meta {
  display: flex;
  flex-direction: column;
}

.booking-cta-meta-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  padding: 12px 0;
  border-top: 1px solid rgba(232, 213, 163, 0.18);
}

.booking-cta-label {
  font-family: var(--font-body);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-accent-champagne);
  white-space: nowrap;
}

.booking-cta-value {
  color: #E8EDE9;
  font-size: 0.92rem;
  text-align: right;
  line-height: 1.5;
}

.booking-cta-value a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

.booking-cta-value a:hover,
.booking-cta-value a:focus-visible {
  color: var(--color-accent-champagne);
}

/* Booking CTA — tablet */
@media (max-width: 1024px) {
  .booking-cta-inner {
    grid-template-columns: 1fr;
    gap: 56px;
    padding: 80px 56px;
  }
}

/* Treatments — category cards are rendered by script.js as
   .sticky-card modules (see "About — sticky cards" styles and the
   homepage extension block below them) */
.treatments-editorial {
  padding-top: var(--section-spacing);
}

.treatments-heading {
  text-align: center;
  margin-top: -48px;
  margin-bottom: clamp(64px, calc(6vw + 24px), 88px);
}

.treatments-heading .section-title {
  color: var(--color-accent);
}

.editorial-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 32px;
  flex-wrap: wrap;
  margin-bottom: 96px;
}

/* Consultation / Enquiry */
.consult-section {
  margin-top: var(--section-spacing);
  background-color: var(--color-dark);
  background-image:
    linear-gradient(rgba(31, 45, 46, 0.88), rgba(31, 45, 46, 0.88)),
    url('https://mase-beimei-1253567392.cos.na-siliconvalley.myqcloud.com/webo/flyImage/rbc/assets/images/massage_11.webp');
  background-size: cover;
  background-position: center;
  padding: 140px 0;
  position: relative;
  overflow: hidden;
}

/* About page — the enquiry band sits flush against the last sticky card
   (the homepage keeps its breathing room above this section) */
main > .sticky-cards + .consult-section {
  margin-top: 0;
}

/* Parallax: hold the background steady while scrolling (desktop only —
   background-attachment: fixed is buggy and disabled on mobile browsers) */
@media (min-width: 1025px) {
  .consult-section {
    background-attachment: fixed;
  }
}

/* Botanical line-art decor: strokes draw in with scroll progress,
   individual layers drift gently with the pointer (see initConsultDecor) */
.consult-section .container {
  position: relative;
  z-index: 1;
}

.consult-decor {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.consult-decor-svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
  will-change: transform;
}

.consult-decor path,
.consult-decor circle {
  stroke: var(--color-accent-light);
  fill: none;
}

.consult-decor-layer {
  position: absolute;
}

.consult-decor-pos-main {
  top: -70px;
  right: clamp(-30px, 4vw, 110px);
  width: clamp(170px, 19vw, 300px);
  transform: rotate(14deg);
  opacity: 0.5;
}

.consult-decor-pos-small {
  bottom: -50px;
  left: clamp(-40px, 2vw, 60px);
  width: clamp(120px, 13vw, 200px);
  transform: rotate(-10deg);
  opacity: 0.4;
}

.consult-decor-ring {
  position: absolute;
  right: -160px;
  bottom: -160px;
  width: 440px;
  height: 440px;
  border-radius: 50%;
  border: 1px solid var(--color-accent-light);
  opacity: 0.15;
  will-change: transform;
}

.consult-decor-dot {
  position: absolute;
  border-radius: 50%;
  background: var(--color-accent-light);
  will-change: transform;
}

.consult-decor-dot-a {
  width: 7px;
  height: 7px;
  top: 22%;
  left: 12%;
  opacity: 0.45;
}

.consult-decor-dot-b {
  width: 5px;
  height: 5px;
  top: 64%;
  right: 20%;
  opacity: 0.4;
}

@media (max-width: 768px) {
  .consult-decor-pos-main {
    top: -40px;
    right: -60px;
    opacity: 0.35;
  }

  .consult-decor-pos-small {
    display: none;
  }
}

.consult-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 96px;
  align-items: center;
}

.consult-art {
  width: 132px;
  height: auto;
  color: var(--color-accent-light);
  margin-bottom: 44px;
}

.consult-title {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 4.5vw, 3.6rem);
  font-weight: 400;
  line-height: 1.1;
  color: #F7F2E9;
  margin-bottom: 20px;
}

.consult-lede {
  font-size: 1.05rem;
  line-height: 1.85;
  color: var(--color-taupe);
  max-width: 460px;
  margin-bottom: 48px;
}

.consult-details {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.consult-label {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(191, 184, 168, 0.7);
  margin-bottom: 4px;
}

.consult-value,
.consult-value a {
  font-size: 0.95rem;
  color: #E5DFD0;
  transition: color var(--transition-fast);
}

.consult-value a:hover,
.consult-value a:focus-visible {
  color: var(--color-accent-light);
}

.consult-section .contact-form {
  background-color: transparent;
  padding: 0;
}

.consult-section .form-label {
  color: rgba(191, 184, 168, 0.75);
}

.consult-section .form-input,
.consult-section .form-textarea,
.consult-section .form-select {
  background-color: rgba(247, 242, 233, 0.05);
  border-color: rgba(191, 184, 168, 0.4);
  color: #F7F2E9;
}

.consult-section .form-input::placeholder,
.consult-section .form-textarea::placeholder {
  color: rgba(247, 242, 233, 0.35);
}

.consult-section .form-input:focus,
.consult-section .form-textarea:focus,
.consult-section .form-select:focus {
  border-color: var(--color-accent-light);
  box-shadow: 0 0 0 3px rgba(192, 166, 98, 0.2);
}

.consult-section .form-message.success {
  background-color: rgba(232, 213, 163, 0.14);
  color: var(--color-accent-champagne);
}

.consult-section .form-message.error {
  background-color: rgba(201, 139, 130, 0.14);
  color: #D3A49B;
}

.consult-section .btn-primary {
  background-color: var(--color-accent-champagne);
  border-color: var(--color-accent-champagne);
  color: var(--color-dark);
}

.consult-section .btn-primary:hover,
.consult-section .btn-primary:focus-visible {
  background-color: var(--color-white);
  border-color: var(--color-white);
  color: var(--color-dark);
}

/* Consultation section flows directly into the footer */
.page-home .footer,
.page-about .footer {
  margin-top: 0;
}

/* About — background-image hero */
.about-hero {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  min-height: 620px;
  overflow: hidden;
  background-image: url('https://mase-beimei-1253567392.cos.na-siliconvalley.myqcloud.com/webo/flyImage/rbc/assets/images/about.webp');
  background-size: cover;
  background-position: center;
}

/* Dark scrim so the light hero text stays readable */
.about-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(21, 32, 34, 0.5);
  z-index: 1;
}

.about-hero-text {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 140px var(--container-padding) 88px;
  z-index: 2;
}

.about-hero-eyebrow {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--color-accent-champagne);
  margin-bottom: 24px;
  opacity: 0;
  transform: translateY(20px);
  animation: aboutHeroFadeUp 0.8s ease 0.2s forwards;
}

.about-hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 5vw, 4.5rem);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.01em;
  color: var(--color-bg);
  margin-bottom: 28px;
  opacity: 0;
  transform: translateY(30px);
  animation: aboutHeroFadeUp 1s ease 0.4s forwards;
}

.about-hero-desc {
  font-family: var(--font-body);
  font-size: 1.1rem;
  line-height: 1.85;
  color: rgba(247, 242, 233, 0.88);
  max-width: 520px;
  opacity: 0;
  transform: translateY(20px);
  animation: aboutHeroFadeUp 0.8s ease 0.6s forwards;
}

@keyframes aboutHeroFadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* About — sticky cards */
.sticky-cards {
  position: relative;
}

.sticky-card {
  position: sticky;
  min-height: 600px;
  width: 100%;
  display: flex;
  align-items: center;
  overflow: hidden;
  box-shadow: 0 -20px 60px rgba(31, 45, 46, 0.1);
}

.sticky-card:nth-child(1) { top: 80px; z-index: 1; }
.sticky-card:nth-child(2) { top: 188px; z-index: 2; }
.sticky-card:nth-child(3) { top: 288px; z-index: 3; }

.sticky-card-cream { background-color: var(--color-cream); }
.sticky-card-ivory { background-color: var(--color-ivory); }
.sticky-card-beige { background-color: var(--color-beige); }

.sticky-card-inner {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
}

.sticky-card-content {
  position: relative;
  max-width: 520px;
  padding: 96px var(--container-padding);
  z-index: 2;
}

.sticky-card .eyebrow {
  margin-bottom: 16px;
}

.sticky-card-title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4vw, 3.6rem);
  font-weight: 400;
  line-height: 1.12;
  color: var(--color-text);
  margin-bottom: 32px;
}

/* About page cards (1–3) — slightly smaller titles than the homepage cards */
main > .sticky-cards .sticky-card-title {
  font-size: clamp(1.8rem, 2.8vw, 2.6rem);
}

.sticky-card-text {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.sticky-card-text p {
  margin: 0;
  font-size: 1rem;
  line-height: 1.8;
  color: var(--color-text-secondary);
}

.sticky-card-text strong {
  color: var(--color-dark);
  font-weight: 600;
}

.sticky-card-image-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.sticky-card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Card image fades into the card colour (about page only — the homepage
   category cards keep their clean edge) */
main > .sticky-cards .sticky-card-image-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, var(--color-cream) 0%, transparent 35%);
  pointer-events: none;
}

main > .sticky-cards .sticky-card-ivory .sticky-card-image-wrap::after {
  background: linear-gradient(to bottom, var(--color-ivory) 0%, transparent 35%);
}

main > .sticky-cards .sticky-card-beige .sticky-card-image-wrap::after {
  background: linear-gradient(to bottom, var(--color-beige) 0%, transparent 35%);
}

/* About — tablet and below */
@media (max-width: 1024px) {
  .sticky-card {
    min-height: auto;
  }

  .sticky-card:nth-child(1),
  .sticky-card:nth-child(2),
  .sticky-card:nth-child(3) {
    top: 0;
  }
}

/* About — desktop */
@media (min-width: 1025px) {
  .about-hero {
    height: 720px;
    min-height: 720px;
  }

  .about-hero-text {
    padding: 148px var(--container-padding) 96px;
  }

  .sticky-card {
    align-items: stretch;
  }

  .sticky-card-inner {
    grid-template-columns: 1fr 1fr;
    align-items: stretch;
    padding: 0 var(--container-padding);
  }

  .sticky-card-content {
    align-self: center;
    justify-self: center;
    max-width: 520px;
    padding: 64px clamp(32px, 5vw, 80px);
    will-change: transform;
  }

  /* About page cards 1–3 — align the text block to the left column edge
     instead of centering it, pulling the text toward the page margin;
     the residual inset still scales with viewport width */
  main > .sticky-cards .sticky-card-content {
    justify-self: start;
    padding-left: clamp(16px, 2.5vw, 40px);
  }

  .sticky-card-image-wrap {
    position: relative;
    width: 100%;
    height: 100%;
  }

  /* Full-bleed to the card's right edge (about page only — the homepage
     keeps its in-flow grid so odd/even alternation keeps working).
     aspect-ratio: auto lets top/bottom stretch the image to the card's
     full height; the 16/9 base ratio would cap it and leave a gap below */
  main > .sticky-cards .sticky-card-image-wrap {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 50vw;
    height: auto;
    aspect-ratio: auto;
  }

  main > .sticky-cards .sticky-card-image-wrap::after {
    background: linear-gradient(to right, var(--color-cream) 0%, transparent 35%);
  }

  main > .sticky-cards .sticky-card-ivory .sticky-card-image-wrap::after {
    background: linear-gradient(to right, var(--color-ivory) 0%, transparent 35%);
  }

  main > .sticky-cards .sticky-card-beige .sticky-card-image-wrap::after {
    background: linear-gradient(to right, var(--color-beige) 0%, transparent 35%);
  }
}

/* About — mobile */
@media (max-width: 768px) {
  .about-hero {
    min-height: 520px;
  }

  .about-hero-title {
    font-size: clamp(2.4rem, 9vw, 3.2rem);
  }

  .sticky-card-content {
    padding: 72px var(--container-padding);
  }

  .sticky-card-title {
    font-size: clamp(1.9rem, 7vw, 2.6rem);
  }

  main > .sticky-cards .sticky-card-title {
    font-size: clamp(1.7rem, 6vw, 2.2rem);
  }
}

/* Homepage treatment categories — sticky-card extensions
   (cards are rendered by script.js from treatments.js data).
   Scoped to .treatments-editorial so the about page cards keep
   their uniform image-right / text-left composition. */

/* Homepage cards scroll normally — no sticky stacking, no shadow,
   flat light-gray panels with breathing room between them. */
.treatments-editorial .sticky-card {
  position: relative;
  top: auto;
  box-shadow: none;
  background-color: #ECECE9;
}

.treatments-editorial .sticky-card + .sticky-card {
  margin-top: 96px;
}

.sticky-card-number {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 3.5vw, 3.6rem);
  font-weight: 400;
  line-height: 1;
  color: var(--color-accent);
  opacity: 0.34;
  margin-bottom: 20px;
}

/* Homepage cards carry a large index number; give the content extra
   headroom so the scroll parallax never clips it */
.treatments-editorial .sticky-card-content {
  padding-top: 88px;
}

.treatments-editorial .sticky-card-text {
  margin-bottom: 36px;
}

@media (min-width: 1025px) {
  /* Portrait image lifted above the panel edge — deliberately
     staggered against the flat grey card background */
  .treatments-editorial .sticky-card {
    overflow: visible;
  }

  .treatments-editorial .sticky-card-image-wrap {
    height: auto;
    aspect-ratio: 1 / 1;
    align-self: center;
    transform: translateY(-40px);
  }

  /* Alternating side-by-side composition: odd cards image left /
     text right, even cards text left / image right */
  .treatments-editorial .sticky-card:nth-child(odd) .sticky-card-image-wrap { order: 1; }
  .treatments-editorial .sticky-card:nth-child(odd) .sticky-card-content { order: 2; }
  .treatments-editorial .sticky-card:nth-child(even) .sticky-card-image-wrap { order: 2; }
  .treatments-editorial .sticky-card:nth-child(even) .sticky-card-content { order: 1; }
}

/* Gallery */
.gallery-section {
  padding-top: 72px;
}

.gallery-header {
  text-align: center;
  margin-bottom: 48px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  height: 340px;
  cursor: pointer;
}

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

.gallery-item:hover img,
.gallery-item:focus-visible img {
  transform: scale(1.05);
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background-color: rgba(21, 32, 33, 0.94);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition-fast), visibility var(--transition-fast);
}

.lightbox.is-open {
  opacity: 1;
  visibility: visible;
}

.lightbox img {
  max-width: 90vw;
  max-height: 85vh;
  width: auto;
  height: auto;
  object-fit: contain;
}

.lightbox-close {
  position: absolute;
  top: 28px;
  right: 32px;
  font-family: var(--font-body);
  font-size: 2.4rem;
  line-height: 1;
  color: #F7F2E9;
  padding: 8px;
}

.lightbox-close:hover,
.lightbox-close:focus-visible {
  color: var(--color-accent-light);
}

/* Footer */
.footer {
  margin-top: var(--section-spacing);
  background-color: var(--color-dark);
  padding: 80px 0 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 64px;
}

/* Desktop — lift the brand column 24px so its heavier logo block sits
   level with the link columns; mobile stacks and keeps the normal flow */
@media (min-width: 1025px) {
  .footer-grid > div:first-child {
    position: relative;
    top: -24px;
  }
}

.footer-brand {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 400;
  margin-bottom: 20px;
  color: var(--color-white);
}

.footer-logo-image {
  display: block;
  width: 160px;
  height: auto;
}

.footer-tagline {
  font-size: 0.95rem;
  color: var(--color-taupe);
  margin-bottom: 24px;
  max-width: 280px;
}

.footer-address,
.footer-contact {
  font-size: 0.95rem;
  color: var(--color-taupe);
  line-height: 1.8;
  margin-bottom: 12px;
}

/* The address links out to Google Maps — match the footer-link hover */
.footer-address a {
  transition: color var(--transition-fast);
}

.footer-address a:hover,
.footer-address a:focus-visible {
  color: var(--color-accent-light);
}

.footer-heading {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 20px;
  color: var(--color-accent-light);
}

.footer-link {
  display: block;
  font-size: 0.95rem;
  color: var(--color-taupe);
  margin-bottom: 12px;
  transition: color var(--transition-fast);
}

.footer-link:hover,
.footer-link:focus-visible {
  color: var(--color-accent-light);
}

.footer-bottom {
  border-top: 1px solid rgba(246, 247, 244, 0.14);
  padding-top: 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-copy {
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

.footer-legal {
  display: flex;
  gap: 24px;
}

.footer-legal a {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  transition: color var(--transition-fast);
}

.footer-legal a:hover,
.footer-legal a:focus-visible {
  color: var(--color-taupe);
}

/* Page Header */
.page-header {
  padding-top: 180px;
  padding-bottom: 80px;
  text-align: center;
  background-color: var(--color-ivory);
}

.page-header-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 400;
  line-height: 1.1;
  margin-bottom: 20px;
}

.page-header-desc {
  color: var(--color-text-secondary);
  max-width: 560px;
  margin: 0 auto;
}

.page-header-compact {
  padding-bottom: 48px;
}

/* Treatments page hero — facial-treatment photo under an olive scrim,
   matching the homepage hero's image + overlay treatment. Kept as a
   modifier so contact / booking / gallery keep the plain ivory band. */
.page-header-treatments {
  padding-bottom: 72px;
  background-color: var(--color-dark);
  background-image:
    linear-gradient(180deg, rgba(21, 32, 33, 0.74) 0%, rgba(21, 32, 33, 0.48) 45%, rgba(21, 32, 33, 0.70) 100%),
    url('https://mase-beimei-1253567392.cos.na-siliconvalley.myqcloud.com/webo/flyImage/rbc/assets/images/mms_facial4.jpg');
  background-size: cover;
  background-position: center 38%;
  background-repeat: no-repeat;
}

.page-header-treatments .eyebrow {
  color: var(--color-accent-champagne);
}

.page-header-treatments .page-header-title {
  color: #F7F2E9;
}

.page-header-treatments .page-header-desc {
  color: rgba(247, 242, 233, 0.85);
}

/* Contact page hero — live Google Map under a monochrome scrim, matching
   the treatments hero's image + overlay treatment. */
.page-header-map {
  position: relative;
  padding-top: 180px;
  padding-bottom: 260px;
  overflow: hidden;
  background-color: var(--color-dark);
}

.page-header-map .map-hero-embed {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
  filter: grayscale(1);
}

.page-header-map .map-hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, rgba(21, 32, 33, 0.58) 0%, rgba(21, 32, 33, 0.38) 45%, rgba(21, 32, 33, 0.58) 100%);
}

.page-header-map .map-hero-link {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.page-header-map .page-header-title {
  color: #F7F2E9;
  margin-bottom: 0;
  text-shadow: 0 2px 24px rgba(21, 32, 33, 0.55);
}

@media (min-width: 1025px) {
  .page-header-map {
    height: 640px;
    padding-top: 0;
    padding-bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
  }
}

/* Mobile / tablet — centre the title in the band below the fixed header by
   starting the flex box at the header's dynamic height. */
@media (max-width: 1024px) {
  .page-header-map {
    min-height: 480px;
    padding-top: var(--header-h, 63px);
    padding-bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
  }
}

/* Treatment Filter — underline tabs, pinned under the fixed header while scrolling.
   Single swipeable row at every width: never wraps, scrolls horizontally instead. */
.treatment-filter {
  position: sticky;
  top: var(--header-h, 132px);
  z-index: 90;
  display: flex;
  flex-wrap: nowrap;
  justify-content: flex-start;
  gap: clamp(24px, 4vw, 44px);
  overflow-x: auto;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  /* Bleed to the viewport edges so scrolled content passes behind an opaque bar */
  margin-left: calc(var(--container-padding) * -1);
  margin-right: calc(var(--container-padding) * -1);
  padding: 0 var(--container-padding);
  margin-bottom: 40px;
  background-color: var(--color-bg);
  border-bottom: 1px solid var(--color-beige);
}

.treatment-filter::-webkit-scrollbar {
  display: none;
}

/* Centre the strip when every tab fits; auto margins collapse to 0 on overflow */
.treatment-filter-btn:first-child {
  margin-left: auto;
}

.treatment-filter-btn:last-child {
  margin-right: auto;
}

/* Edge fades hint at off-screen tabs (classes toggled by script.js) */
.treatment-filter.can-scroll-right {
  -webkit-mask-image: linear-gradient(90deg, #000 0, #000 calc(100% - 36px), transparent 100%);
  mask-image: linear-gradient(90deg, #000 0, #000 calc(100% - 36px), transparent 100%);
}

.treatment-filter.can-scroll-left {
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 36px, #000 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 36px, #000 100%);
}

.treatment-filter.can-scroll-left.can-scroll-right {
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 36px, #000 calc(100% - 36px), transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 36px, #000 calc(100% - 36px), transparent 100%);
}

.treatment-filter-btn {
  position: relative;
  padding: 14px 2px 17px;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-secondary);
  background-color: transparent;
  border: none;
  white-space: nowrap;
  cursor: pointer;
  transition: color var(--transition-fast);
}

.treatment-filter-btn::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 100%;
  height: 2px;
  background-color: var(--color-accent);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform var(--transition-fast);
}

.treatment-filter-btn:hover,
.treatment-filter-btn:focus-visible {
  color: var(--color-text);
}

.treatment-filter-btn:hover::after,
.treatment-filter-btn:focus-visible::after {
  transform: scaleX(1);
}

.treatment-filter-btn.active {
  color: var(--color-olive);
}

.treatment-filter-btn.active::after {
  transform: scaleX(1);
}

.treatment-filter-count {
  margin-left: 6px;
  font-weight: 600;
  opacity: 0.65;
}

/* Treatment groups (All view) */
.treatment-group {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.treatment-group + .treatment-group {
  margin-top: 56px;
}

.treatment-group-header {
  padding-bottom: 20px;
  border-bottom: 1px solid var(--color-beige);
}

.treatment-group-title {
  font-family: var(--font-display);
  font-size: 1.9rem;
  font-weight: 400;
  line-height: 1.2;
  margin-bottom: 6px;
}

.treatment-group-desc {
  font-size: 0.95rem;
  color: var(--color-text-secondary);
  line-height: 1.7;
}

.treatments-empty {
  text-align: center;
  color: var(--color-text-muted);
  padding: 48px 0;
}

/* Treatments Directory */
.treatments-directory {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.treatment-list-card {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 32px;
  align-items: center;
  padding: 26px 0;
  border-bottom: 1px solid var(--color-beige);
}

.treatment-list-category {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 8px;
}

.treatment-list-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 400;
  margin-bottom: 8px;
  line-height: 1.2;
}

.treatment-list-title a {
  color: inherit;
  transition: color var(--transition-fast);
}

.treatment-list-title a:hover,
.treatment-list-title a:focus-visible {
  color: var(--color-accent);
}

.treatment-list-desc {
  font-size: 0.95rem;
  color: var(--color-text-secondary);
  line-height: 1.7;
}

.treatment-list-meta {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-end;
  gap: 24px;
  text-align: right;
}

.treatment-list-price {
  display: block;
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 400;
  color: var(--color-accent-dark);
  line-height: 1;
  margin-bottom: 8px;
}

.treatment-list-duration {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

/* Treatment Detail */
.treatment-detail {
  padding-top: 180px;
}

.treatment-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.treatment-detail-image-wrap {
  position: sticky;
  top: 160px;
  height: 640px;
  overflow: hidden;
}

.treatment-detail-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.treatment-detail-content {
  padding-top: 40px;
}

.treatment-detail-category {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 16px;
}

.treatment-detail-title {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  font-weight: 400;
  line-height: 1.1;
  margin-bottom: 20px;
}

.treatment-detail-meta {
  display: flex;
  gap: 24px;
  margin-bottom: 28px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--color-border);
}

.treatment-detail-price {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 400;
  color: var(--color-accent-dark);
}

.treatment-detail-duration {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  align-self: center;
}

.treatment-detail-intro {
  font-size: 1.05rem;
  line-height: 1.85;
  color: var(--color-text-secondary);
  margin-bottom: 40px;
}

.treatment-detail-section {
  margin-bottom: 40px;
}

.treatment-detail-section h2 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 400;
  margin-bottom: 16px;
}

.treatment-detail-section p {
  font-size: 1rem;
  line-height: 1.85;
  color: var(--color-text-secondary);
}

.treatment-detail-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 80px;
  align-items: start;
}

.contact-info-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 400;
  line-height: 1.15;
  margin-bottom: 32px;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-bottom: 40px;
}

.contact-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.contact-label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.contact-value {
  font-size: 1rem;
  color: var(--color-text);
  transition: color var(--transition-fast);
}

.contact-value:hover,
.contact-value:focus-visible {
  color: var(--color-accent);
}

/* Contact Form */
.contact-form {
  background-color: var(--color-white);
  padding: 48px;
}

.form-group {
  margin-bottom: 24px;
}

.form-label {
  display: block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: 10px;
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: 16px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--color-text);
  background-color: var(--color-bg);
  border: 1px solid var(--color-beige);
  outline: none;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(133, 109, 54, 0.14);
}

.form-input.error,
.form-textarea.error,
.form-select.error {
  border-color: #c98b82;
}

.form-textarea {
  min-height: 140px;
  resize: vertical;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-message {
  padding: 16px;
  margin-bottom: 24px;
  font-size: 0.95rem;
  display: none;
}

.form-message.success {
  background-color: #E4EAE7;
  color: #41524F;
  display: block;
}

.form-message.error {
  background-color: #f3e9e7;
  color: #8b5a52;
  display: block;
}

/* Opening Hours */
.hours-card {
  background-color: var(--color-white);
  padding: 48px;
}

.hours-title {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  font-weight: 400;
  margin-bottom: 24px;
}

.hours-list {
  display: flex;
  flex-direction: column;
}

.hours-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 13px 0;
  border-bottom: 1px solid var(--color-beige);
  font-size: 0.95rem;
}

.hours-row:last-child {
  border-bottom: none;
}

.hours-day {
  color: var(--color-text-secondary);
}

.hours-time {
  color: var(--color-text);
  font-weight: 500;
  text-align: right;
}

.hours-closed .hours-time {
  color: var(--color-text-muted);
  font-weight: 400;
}

.hours-note {
  margin-top: 20px;
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

/* Map */
.map-wrap {
  margin-top: 40px;
  height: 360px;
  background-color: var(--color-ivory);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px;
}

.map-placeholder {
  color: var(--color-text-muted);
  font-size: 0.95rem;
}

/* Booking */
.booking-steps {
  display: flex;
  justify-content: space-between;
  margin-bottom: 48px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--color-border);
}

.booking-step {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.booking-step.active {
  color: var(--color-text);
}

/* Fade Up Animation */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-up.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Homepage category cards — scroll-in entrance.
   The card itself uses .fade-up; the image settles from a slight
   zoom and the content children rise in a stagger. Keyframes (not
   transitions) so btn-arrow's own gap transition is untouched. */
.sticky-card.fade-up .sticky-card-image {
  opacity: 0;
  transform: scale(1.07);
}

.sticky-card.fade-up.is-visible .sticky-card-image {
  animation: cardImageSettle 1.3s cubic-bezier(0.22, 0.61, 0.36, 1) 0.1s both;
}

.sticky-card.fade-up .sticky-card-content > * {
  opacity: 0;
}

.sticky-card.fade-up.is-visible .sticky-card-content > * {
  animation: cardItemRise 0.8s cubic-bezier(0.22, 0.61, 0.36, 1) both;
}

.sticky-card.fade-up.is-visible .sticky-card-content > *:nth-child(1) { animation-delay: 0.05s; }
.sticky-card.fade-up.is-visible .sticky-card-content > *:nth-child(2) { animation-delay: 0.15s; }
.sticky-card.fade-up.is-visible .sticky-card-content > *:nth-child(3) { animation-delay: 0.25s; }
.sticky-card.fade-up.is-visible .sticky-card-content > *:nth-child(4) { animation-delay: 0.35s; }
.sticky-card.fade-up.is-visible .sticky-card-content > *:nth-child(5) { animation-delay: 0.45s; }

@keyframes cardImageSettle {
  from { opacity: 0; transform: scale(1.07); }
  to   { opacity: 1; transform: scale(1); }
}

@keyframes cardItemRise {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .sticky-card.fade-up .sticky-card-image,
  .sticky-card.fade-up .sticky-card-content > * {
    opacity: 1;
    transform: none;
    animation: none;
  }
}

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

  .fade-up {
    opacity: 1;
    transform: none;
  }
}

/* Responsive */
@media (max-width: 1024px) {
  :root {
    --container-padding: 24px;
  }

  .nav-desktop {
    display: none;
  }

  /* Mobile header: logo centred, hamburger right */
  .header-inner {
    position: relative;
    min-height: 48px;
  }

  .header .logo {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
  }

  .header-actions {
    position: absolute;
    right: var(--container-padding);
    top: 50%;
    transform: translateY(-50%);
  }

  /* Mobile header: drop the Book button — booking stays available in
     the fullscreen menu */
  .header .btn-primary {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .hero-content {
    padding: 140px 24px 110px;
  }

  .consult-grid {
    grid-template-columns: 1fr;
    gap: 72px;
  }

  .brand-values {
    gap: 36px;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .category-grid,
  .featured-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .why-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Footer — compact, centred, links flow inline */
  .footer {
    padding: 48px 0 20px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 26px;
    margin-bottom: 26px;
  }

  /* Keep only the brand block; nav lives in the menu and legal
     links stay in footer-bottom */
  .footer-grid > div:nth-child(2),
  .footer-grid > div:nth-child(3),
  .footer-grid > div:nth-child(4) {
    display: none;
  }

  .footer-grid {
    gap: 0;
    margin-bottom: 20px;
  }

  .footer-grid > div {
    text-align: center;
  }

  .footer-brand {
    margin-bottom: 10px;
  }

  .footer-logo-image {
    margin: 0 auto 10px;
  }

  .footer-tagline {
    margin-bottom: 10px;
    max-width: none;
  }

  .footer-address,
  .footer-contact {
    margin-bottom: 6px;
    line-height: 1.6;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
    padding-top: 18px;
    gap: 6px;
  }

  .footer-copy,
  .footer-legal a {
    font-size: 0.78rem;
  }

  .footer-legal {
    justify-content: center;
    gap: 16px;
  }

  .treatment-detail-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .treatment-detail-image-wrap {
    position: relative;
    top: auto;
    height: 420px;
  }

  .treatment-list-card {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .treatment-group + .treatment-group {
    margin-top: 40px;
  }

  .treatment-group-title {
    font-size: 1.5rem;
  }

  .treatment-list-meta {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }
}

@media (max-width: 768px) {
  :root {
    --section-spacing: 90px;
  }

  .header {
    padding: 12px 0;
  }

  .header-inner {
    min-height: 40px;
  }

  .nav-close {
    top: 16px;
  }

  .logo-image {
    height: 40px;
  }

  /* Hero exactly fills the mobile viewport (svh ignores collapsing
     browser chrome, so nothing spills past the first screen) */
  .hero {
    min-height: 100vh;
    min-height: 100svh;
  }

  .hero-title {
    font-size: clamp(2rem, 8.5vw, 2.7rem);
  }

  .hero-tagline {
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 32px;
  }

  .hero-content {
    padding: 110px 20px 72px;
  }

  .hero-actions {
    gap: 12px;
  }

  .hero-actions .btn {
    padding: 12px 20px;
    font-size: 0.65rem;
    letter-spacing: 0.12em;
  }

  .hero-scroll {
    display: none;
  }

  .section-title {
    font-size: clamp(1.9rem, 7vw, 2.6rem);
  }

  .brand-intro {
    padding-top: 88px;
    padding-bottom: 88px;
  }

  .brand-intro-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  /* The whole values list drops out on mobile to keep the section short */
  .brand-values {
    display: none;
  }

  .brand-intro-media {
    margin-right: 20px;
    margin-bottom: 24px;
  }

  .brand-intro-media::before {
    top: 20px;
    right: -20px;
    bottom: -20px;
    left: 20px;
  }

  .brand-intro-media-main img {
    height: 340px;
  }

  .brand-intro-media-inset {
    left: -14px;
    bottom: 28px;
    width: 40%;
    border-width: 5px;
  }

  .consult-section {
    padding: 96px 0;
  }

  .consult-art {
    width: 104px;
    margin-bottom: 32px;
  }

  .category-grid,
  .featured-grid {
    grid-template-columns: 1fr;
  }

  .why-grid {
    grid-template-columns: 1fr;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }

  .booking-cta-inner {
    grid-template-columns: 1fr;
    gap: 48px;
    padding: 72px 32px;
  }

  .booking-cta-content {
    max-width: none;
  }

  .booking-cta-meta-row {
    align-items: flex-start;
  }

  .contact-form {
    padding: 32px 24px;
  }

  .hours-card {
    padding: 32px 24px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .treatment-detail-image-wrap {
    height: 320px;
  }

  .treatment-detail-content {
    padding-top: 0;
  }

  /* Tabs strip is swipeable at all widths (see .treatment-filter base rules) */
  .treatment-filter {
    gap: 28px;
  }

  /* Treatment list becomes outlined cards on mobile */
  .treatments-directory,
  .treatment-group {
    gap: 14px;
  }

  .treatment-list-card {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 22px 20px;
    border: 1px solid var(--color-beige);
  }

  .treatment-list-meta {
    align-items: center;
    text-align: center;
    gap: 12px;
  }

  .treatment-list-meta .btn {
    width: auto;
    padding: 9px 26px;
  }

  .treatment-list-title {
    font-size: 1.3rem;
  }

  .treatment-list-price {
    font-size: 1.5rem;
    margin-bottom: 4px;
  }

  /* Footer logo shrinks for mobile; centring comes from the ≤1024 rules */
  .footer-logo-image {
    width: 88px;
    height: auto;
  }
}

@media (max-width: 390px) {
  :root {
    --container-padding: 20px;
  }

  .logo {
    font-size: 1.15rem;
  }

  .logo-image {
    height: 32px;
  }

  .hero-title {
    font-size: 2rem;
  }

  .btn {
    padding: 14px 24px;
    width: 100%;
  }

  .hero-actions .btn {
    width: auto;
  }

  .featured-treatments-header {
    flex-direction: column;
    align-items: flex-start;
  }
}
