/* ==========================================================================
   Liora Nails & Spa — Design System
   Brand: champagne gold · blush rose · botanical sage · ivory
   Fonts: Great Vibes (script) · Playfair Display (serif) · Inter (sans)
   ========================================================================== */

:root {
  --gold:        #B58E54;
  --gold-dark:   #9A763F;
  --gold-light:  #D9BE8E;
  --gold-soft:   #D9BE8E;
  --blush:       #E7C4C2;   /* blossom */
  --blush-soft:  #EFE0DF;
  --blush-50:    #F3ECE0;   /* cream-deep */
  --blossom:     #E7C4C2;
  --sage:        #8E9D7B;
  --sage-dark:   #5F6E4C;
  --sage-light:  #BCC6AB;
  --sage-soft:   #E7ECDF;
  --ivory:       #FBF7F0;
  --cream:       #FFFFFF;
  --cream-deep:  #F3ECE0;
  --ink:         #2E2A24;
  --ink-soft:    #6B655B;
  --line:        #E4DBCC;
  --charcoal:    #2A2620;
  --shadow-soft: 0 18px 50px -24px rgba(95, 110, 76, 0.30);
  --shadow-card: 0 24px 60px -30px rgba(46, 42, 36, 0.42);
  --section-space-mobile: 3rem;
}

* { box-sizing: border-box; }

html {
  max-width: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 110px;
  overflow-x: hidden;
  overflow-x: clip;
}

body {
  margin: 0;
  max-width: 100%;
  overflow-x: hidden;
  overflow-x: clip;
  font-family: 'Inter', system-ui, sans-serif;
  color: var(--ink);
  background: var(--ivory);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection { background: var(--blush); color: var(--charcoal); }

h1, h2, h3, h4, .font-serif { font-family: 'Playfair Display', Georgia, serif; }
.font-script { font-family: 'Great Vibes', cursive; }

/* --- Real logo image (drop your file at assets/img/logo.png) --- */
.liora-logo { height: 44px; width: auto; display: block; }
@media (min-width: 1024px) { .liora-logo { height: 54px; } }
.liora-logo-sm { height: 44px; width: auto; display: block; }
.liora-logo-footer { height: 74px; width: auto; display: block; }
@media (min-width: 1024px) { .liora-logo-footer { height: 60px; } }

.footer-hours-row {
  display: grid;
  grid-template-columns: 5.25rem max-content;
  align-items: baseline;
  column-gap: 0.75rem;
}
.footer-hours-row + .footer-hours-row { margin-top: 0.25rem; }
.footer-hours-row dd { white-space: nowrap; }

/* --- Brand wordmark (typographic fallback until the logo image is added) --- */
.wordmark { line-height: 1; overflow: visible; padding-top: 0.14em; }
.wordmark .mark {
  font-family: 'Great Vibes', cursive;
  line-height: 1.18;
  background: linear-gradient(120deg, var(--gold-dark), var(--gold) 45%, var(--gold-light) 80%, var(--gold) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.wordmark .sub {
  font-family: 'Playfair Display', serif;
  letter-spacing: 0.42em;
  color: var(--sage-dark);
  text-transform: uppercase;
}

/* --- Gold gradient text utility --- */
.text-gold {
  background: linear-gradient(110deg, var(--gold-dark), var(--gold) 50%, var(--gold-light));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* --- Eyebrow / script kicker --- */
.eyebrow {
  font-family: 'Great Vibes', cursive;
  color: var(--gold-dark);
  font-size: 1.7rem;
  line-height: 1;
}
.kicker {
  font-family: 'Inter', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.32em;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--gold-dark);
}

/* --- Homepage hero video --- */
.hero-video {
  object-position: 50% 44%;
  -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,0.96) 0%, #000 62%, rgba(0,0,0,0.78) 78%, transparent 100%);
  mask-image: linear-gradient(to bottom, rgba(0,0,0,0.96) 0%, #000 62%, rgba(0,0,0,0.78) 78%, transparent 100%);
}

.hero-bottom-fade {
  height: 40%;
  background: linear-gradient(to top, var(--ivory) 4%, rgba(251,247,240,0) 100%);
}

.hero-mobile-scrim {
  background:
    linear-gradient(110deg, rgba(251,247,240,0.84) 0%, rgba(251,247,240,0.62) 48%, rgba(251,247,240,0.18) 76%, rgba(251,247,240,0.02) 100%),
    linear-gradient(to bottom, rgba(251,247,240,0.68) 0%, rgba(251,247,240,0.30) 40%, rgba(251,247,240,0) 74%);
}

.hero-title-line {
  display: block;
  white-space: nowrap;
}

@media (min-width: 1024px) {
  .hero-video {
    object-position: 58% 45%;
    -webkit-mask-image: linear-gradient(to right, transparent 0%, rgba(0,0,0,0.25) 20%, #000 50%);
    mask-image: linear-gradient(to right, transparent 0%, rgba(0,0,0,0.25) 20%, #000 50%);
  }
}

@media (max-width: 767.98px) {
  .home-hero-inner {
    min-height: 570px;
    padding-top: 4.25rem;
    padding-bottom: 1.75rem;
  }

  .hero-video {
    object-position: 42% 44%;
  }

  .hero-bottom-fade {
    height: 32%;
    background: linear-gradient(to top, rgba(251,247,240,0.82) 0%, rgba(251,247,240,0.34) 46%, rgba(251,247,240,0) 100%);
  }

  .hero-copy {
    max-width: 22.5rem;
  }

  .hero-copy .kicker {
    display: inline-flex;
    align-items: center;
    max-width: 100%;
    padding: 0 !important;
    border: 0 !important;
    outline: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    background-image: none !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    letter-spacing: 0.24em;
    line-height: 1.35;
    text-shadow: none;
  }

  .hero-copy .kicker::before,
  .hero-copy .kicker::after {
    content: none !important;
    display: none !important;
  }

  .hero-title {
    font-size: clamp(2.35rem, 11vw, 3.35rem);
    line-height: 0.98;
    letter-spacing: -0.035em;
    text-shadow:
      0 1px 0 rgba(251, 247, 240, 0.92),
      0 8px 24px rgba(251, 247, 240, 0.92),
      0 2px 10px rgba(46, 42, 36, 0.16);
  }

  .hero-title .text-gold {
    background: none;
    -webkit-background-clip: initial;
    background-clip: initial;
    color: #9A763F;
    -webkit-text-fill-color: #9A763F;
    text-shadow:
      0 1px 0 rgba(251, 247, 240, 0.92),
      0 8px 22px rgba(251, 247, 240, 0.9),
      0 2px 10px rgba(46, 42, 36, 0.12);
  }

  .hero-subtext {
    max-width: 21rem;
    margin-top: 1.15rem;
    color: #4f4940;
    font-weight: 500;
    line-height: 1.62;
    text-shadow:
      0 1px 0 rgba(251, 247, 240, 0.95),
      0 8px 22px rgba(251, 247, 240, 0.92);
  }
}

/* --- Gold divider with center diamond --- */
.divider {
  display: flex; align-items: center; justify-content: center; gap: 0.75rem;
  color: var(--gold);
}
.divider::before, .divider::after {
  content: ""; height: 1px; width: 56px;
  background: linear-gradient(90deg, transparent, var(--gold));
}
.divider::after { background: linear-gradient(270deg, transparent, var(--gold)); }

/* --- Buttons --- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.95rem 1.9rem; border-radius: 14px;
  font-weight: 600; font-size: 0.95rem; letter-spacing: 0.02em;
  cursor: pointer; border: 1.5px solid transparent;
  transition: transform .18s ease, box-shadow .25s ease, background .25s ease, color .25s ease, border-color .25s ease;
  text-decoration: none; white-space: nowrap;
  -webkit-tap-highlight-color: transparent; touch-action: manipulation; user-select: none;
}
.btn svg { flex-shrink: 0; }   /* keep icons at their true size inside flex buttons */
/* tactile press feedback (especially for touch, where there is no :hover) */
.btn:active { transform: scale(0.95); }
.btn-outline:active, .hero-gallery-mobile:active { background: var(--sage-dark); color: #fff; border-color: var(--sage-dark); transform: scale(0.95); }

.btn-primary:active { filter: brightness(0.97); }
.btn-primary {
  background: linear-gradient(135deg, #9B7836 0%, #BE975A 100%);
  color: #fff;
  box-shadow: 0 8px 20px -8px rgba(150, 116, 54, 0.50), inset 0 1px 0 rgba(255, 255, 255, 0.18);
  letter-spacing: 0.025em;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px -10px rgba(150, 116, 54, 0.58), inset 0 1px 0 rgba(255, 255, 255, 0.24);
  filter: brightness(1.05);
}
.btn-outline {
  background: transparent; color: var(--sage-dark); border-color: var(--sage-light);
}
.btn-outline:hover { background: var(--sage-dark); color: #fff; border-color: var(--sage-dark); transform: translateY(-2px); }
/* Hero "View Gallery" — MOBILE ONLY (< lg): solid white button with matching text + border. Desktop untouched. */
@media (max-width: 1023.98px) {
  .hero-gallery-mobile { background: #fff; color: var(--sage-dark); border-color: var(--sage-dark); }
  .hero-gallery-mobile:hover { background: var(--sage-dark); color: #fff; border-color: var(--sage-dark); }
}
.btn-ghost-light { background: rgba(255,255,255,0.08); color:#fff; border-color: rgba(255,255,255,0.25); }
.btn-ghost-light:hover { background:#fff; color: var(--charcoal); }

/* --- Cards --- */
.card {
  background: var(--cream); border-radius: 22px;
  box-shadow: var(--shadow-soft); border: 1px solid rgba(199,154,63,0.12);
  transition: transform .3s ease, box-shadow .3s ease;
  overflow: hidden;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-card); }

/* --- Elegant photo placeholders (swap with real photos) --- */
.img-ph {
  position: relative; overflow: hidden;
  background:
    radial-gradient(120% 120% at 20% 15%, var(--blush-soft) 0%, transparent 55%),
    radial-gradient(120% 120% at 85% 90%, var(--sage-light) 0%, transparent 55%),
    linear-gradient(135deg, var(--blush-50), var(--ivory) 55%, #EEF1E6);
  display: flex; align-items: center; justify-content: center;
}
.img-ph::after {
  content: attr(data-label);
  position: absolute; bottom: 12px; left: 0; right: 0;
  text-align: center; font-size: 0.66rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--sage-dark); opacity: 0.7; font-weight: 600;
}
.img-ph svg { width: 46px; height: 46px; color: var(--gold); opacity: 0.55; }

/* --- Scroll reveal --- */
.reveal { opacity: 1; transform: none; }
.reveal.reveal-pending { opacity: 0; transform: translateY(26px); transition: opacity .8s ease, transform .8s ease; }
.reveal.reveal-pending.is-visible { opacity: 1; transform: none; }
.reveal-delay-1 { transition-delay: .1s; }
.reveal-delay-2 { transition-delay: .2s; }
.reveal-delay-3 { transition-delay: .3s; }

/* --- Header --- */
/* let the sticky header pin to the viewport instead of its tiny mount wrapper */
#site-header { display: contents; }
.site-header {
  transition: background .3s ease, box-shadow .3s ease, padding .3s ease, transform .32s cubic-bezier(.4,0,.2,1);
  will-change: transform;
  backface-visibility: hidden;
}
/* mobile only: hide on scroll-down, reveal on scroll-up. Desktop stays frozen/visible. */
@media (max-width: 1023.98px) {
  .site-header.nav-hidden { transform: translateY(-100%); }
}
.site-header.scrolled {
  background: rgba(251,248,242,0.92);
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 30px -20px rgba(46,42,36,0.4);
}
.header-booking {
  display: inline-flex;
  padding: 0.45rem 0.7rem;
  border-radius: 10px;
  font-size: 0.75rem;
}
.header-actions {
  margin-left: auto;
}
@media (min-width: 640px) {
  .header-booking {
    padding: 0.5rem 0.9rem;
    border-radius: 11px;
    font-size: 0.8rem;
  }
}
@media (min-width: 1024px) {
  .header-actions {
    margin-left: 0;
  }
  .header-booking {
    padding: 0.625rem 1.1rem;
    font-size: 0.875rem;
  }
}
.nav-link { position: relative; color: var(--ink); font-weight: 500; font-size: 0.9rem; text-decoration: none; transition: color .2s ease; }
.nav-link::after {
  content: ""; position: absolute; left: 0; bottom: -6px; height: 2px; width: 0;
  background: linear-gradient(90deg, var(--gold), var(--gold-light)); transition: width .3s ease;
}
.nav-link:hover, .nav-link.active { color: var(--gold-dark); }
.nav-link:hover::after, .nav-link.active::after { width: 100%; }

/* --- Mobile drawer --- */
.drawer {
  visibility: visible;
  transition: transform .35s cubic-bezier(.4,0,.2,1), visibility 0s;
}
.drawer.closed {
  visibility: hidden;
  pointer-events: none;
  transform: translateX(calc(100% + 2rem));
  box-shadow: none;
  transition: transform .35s cubic-bezier(.4,0,.2,1), visibility 0s linear .35s;
}
body.no-scroll { overflow: hidden; }

/* --- Testimonial track --- */
.t-track { display: flex; transition: transform .5s cubic-bezier(.4,0,.2,1); }
.t-slide { flex: 0 0 100%; }
@media (min-width: 768px) { .t-slide { flex: 0 0 50%; } }
@media (min-width: 1024px) { .t-slide { flex: 0 0 33.333%; } }

/* --- Lightbox --- */
.lightbox { position: fixed; inset: 0; z-index: 90; display: none; align-items: center; justify-content: center;
  background: rgba(34,31,27,0.88); backdrop-filter: blur(6px); padding: 1.5rem; }
.lightbox.open { display: flex; }
.lightbox .lb-inner { display: flex; align-items: center; justify-content: center; max-width: 760px; width: 100%; max-height: calc(100vh - 3rem); max-height: calc(100dvh - 3rem); border-radius: 20px; overflow: hidden; background: rgba(34,31,27,.5); box-shadow: 0 40px 90px -30px rgba(0,0,0,.6); }
.lightbox .lb-inner img { display: block; width: auto; max-width: 100%; max-height: calc(100vh - 3rem); max-height: calc(100dvh - 3rem); object-fit: contain; }
.lightbox .lb-inner .img-ph { aspect-ratio: 4/5; }
.lb-close { position: absolute; top: 22px; right: 26px; color: #fff; background: rgba(255,255,255,.12); border: none;
  width: 46px; height: 46px; border-radius: 50%; font-size: 1.4rem; cursor: pointer; transition: background .2s; }
.lb-close:hover { background: rgba(255,255,255,.25); }

/* --- Botanical accents --- */
.flourish {
  aspect-ratio: 26 / 9;
  background: url('../img/botanical-sprig.svg?v=20260816-clean') center / contain no-repeat;
  height: auto;
  opacity: .46;
  pointer-events: none;
}
.flourish > * { display: none; }
.home-gallery-flourish-end { display: none; }

/* Larger logo-inspired sprigs create a consistent transition language between
   selected sections without competing with the content. */
.botanical-accent {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.botanical-accent::after {
  content: "";
  position: absolute;
  z-index: 0;
  bottom: -.9rem;
  width: clamp(18rem, 25vw, 29rem);
  aspect-ratio: 26 / 9;
  background: url('../img/botanical-sprig.svg?v=20260816-clean') center / contain no-repeat;
  opacity: .58;
  pointer-events: none;
}

.botanical-accent > * {
  position: relative;
  z-index: 1;
}

.botanical-accent > .flourish { display: none; }
.botanical-accent-left::after { left: clamp(-8rem, -5vw, -4rem); }
.botanical-accent-right::after {
  right: clamp(-8rem, -5vw, -4rem);
  transform: scaleX(-1);
}
.botanical-accent-soft::after { opacity: .42; }

@media (min-width: 1024px) {
  .home-gallery-flourish-start { width: 26rem; left: -6rem; }
  .home-gallery-flourish-end-desktop { width: 29rem; right: -7rem; }
}

@media (max-width: 767.98px) {
  .botanical-accent::after {
    bottom: -.45rem;
    width: 16rem;
    opacity: .46;
  }
  .botanical-accent-left::after { left: -7rem; }
  .botanical-accent-right::after { right: -7rem; }
  .botanical-accent-soft::after { opacity: .34; }
}

/* The community collage stays square while the corrected portrait sources crop
   consistently at every breakpoint. */
.home-community-photo { aspect-ratio: 1; }
.home-community-photo:hover { transform: translateY(-4px); }

.home-community-logo {
  display: none;
  width: auto;
  max-width: 100%;
  height: 4.5rem;
  margin: 0 0 1rem;
}
@media (min-width: 640px) {
  .home-community-logo { height: 5rem; }
}
@media (min-width: 1024px) {
  .home-community-collage {
    width: 380px;
    justify-self: center;
  }

  .home-community-logo {
    display: block;
    height: 5.5rem;
    margin-left: -1rem;
    margin-bottom: 1.25rem;
  }
}

/* Tighten the desktop handoff between the services, gallery, and experience
   groups while preserving the compact mobile rhythm below. */
@media (min-width: 1024px) {
  .home-services-section { padding-bottom: 3rem; }
  .home-gallery-section {
    padding-top: 3rem;
    padding-bottom: 3rem;
  }
  .home-experience-section { padding-top: 3rem; }
}

/* --- Services carousel --- */
.svc-track { scrollbar-width: none; -ms-overflow-style: none; }
.svc-track::-webkit-scrollbar { display: none; }
.svc-card img { transition: transform .7s cubic-bezier(.2,.6,.2,1); filter: saturate(1.07) contrast(1.03) brightness(1.01); }
.svc-card:hover img { transform: scale(1.06); }
@media (prefers-reduced-motion: reduce) { .svc-card:hover img { transform: none; } }

.home-contact-detail {
  color: inherit;
  text-decoration: none;
}

.home-contact-detail-body,
.home-contact-copy,
.home-contact-link,
.home-contact-label {
  display: block;
}

.home-contact-intro,
.home-contact-heading-mark,
.home-contact-chevron {
  display: none;
}

.home-contact-mobile-link {
  display: none;
}

@media (max-width: 639.98px) {
  .home-contact-card {
    padding: 1.25rem !important;
    border: 0;
    border-radius: 22px;
    background:
      radial-gradient(circle at 100% 0%, rgba(231, 196, 194, 0.34), transparent 38%),
      linear-gradient(155deg, #fff 0%, #fdfbf7 100%);
    box-shadow: 0 26px 58px -34px rgba(46, 42, 36, 0.48);
  }

  .home-contact-card:hover {
    transform: none;
    box-shadow: 0 26px 58px -34px rgba(46, 42, 36, 0.48);
  }

  .home-contact-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
  }

  .home-contact-title {
    font-size: clamp(1.75rem, 8vw, 2rem);
    line-height: 1.08;
  }

  .home-contact-intro {
    display: block;
    max-width: 26ch;
    margin-top: 0.45rem;
    color: var(--ink-soft);
    font-size: 0.875rem;
    line-height: 1.5;
  }

  .home-contact-heading-mark {
    display: grid;
    flex: 0 0 auto;
    width: 3.25rem;
    height: 3.25rem;
    place-items: center;
    border-radius: 50%;
    background: rgba(181, 142, 84, 0.13);
    color: var(--gold-dark);
  }

  .home-contact-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
    margin-top: 1.25rem;
  }

  .home-contact-list > * + * {
    margin-top: 0 !important;
  }

  .home-contact-detail {
    position: relative;
    min-width: 0;
    padding: 1rem;
    border: 1px solid rgba(181, 142, 84, 0.18);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.76);
  }

  .home-contact-action {
    min-height: 10.25rem;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
    transition: transform 180ms ease, border-color 180ms ease, background-color 180ms ease;
  }

  .home-contact-icon {
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 50%;
    background: linear-gradient(145deg, var(--gold-dark), var(--gold));
    color: #fff;
    box-shadow: 0 10px 22px -14px rgba(154, 118, 63, 0.72);
  }

  .home-contact-detail-body {
    display: flex;
    flex: 1;
    min-width: 0;
    flex-direction: column;
  }

  .home-contact-label {
    font-size: 0.95rem;
    line-height: 1.25;
  }

  .home-contact-copy {
    margin-top: 0.3rem;
    font-size: 0.76rem;
    line-height: 1.5;
  }

  .home-contact-link {
    margin-top: auto;
    padding-top: 0.65rem;
    font-size: 0.72rem;
    font-weight: 600;
    line-height: 1.25;
  }

  .home-contact-mobile-link {
    display: block;
  }

  .home-contact-chevron {
    position: absolute;
    top: 1rem;
    right: 0.85rem;
    display: block;
    color: rgba(95, 110, 76, 0.72);
  }

  .home-contact-action:focus-visible {
    outline: 3px solid rgba(181, 142, 84, 0.38);
    outline-offset: 2px;
  }

  .home-contact-hours {
    grid-column: 1 / -1;
    gap: 0.75rem;
    background: rgba(231, 236, 223, 0.72);
    border-color: rgba(142, 157, 123, 0.22);
  }

  .home-contact-hours .home-contact-icon {
    background: var(--sage-dark);
    box-shadow: 0 10px 22px -14px rgba(95, 110, 76, 0.7);
  }

  .home-contact-hours ul {
    margin-top: 0.5rem;
  }

  .home-contact-hours li {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.75rem;
  }

  .home-contact-hours li span:last-child {
    white-space: nowrap;
    text-align: right;
    font-size: 0.78rem;
  }

  .home-contact-cta {
    display: grid !important;
    grid-template-columns: 1fr;
    gap: 0.75rem;
    margin-top: 1rem !important;
    padding-top: 1rem !important;
    border-top: 0;
  }

  .home-contact-cta .btn {
    width: 100%;
    min-height: 3.5rem;
    padding-inline: 1rem;
  }

  .home-services-section {
    padding-bottom: 2.5rem;
  }

  .home-gallery-section {
    padding-top: 2.5rem;
  }

  .home-gallery-flourish-end {
    display: block;
    right: -4.25rem;
    bottom: -4.75rem;
    width: 14rem;
    transform: rotate(-12deg) scaleX(-1);
  }

  .home-visit-banner,
  .home-latest-creations {
    margin-top: 2.5rem;
  }

  #contactBookingGrid > * {
    min-width: 0;
  }

  #squareBookingCard .booking-step {
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.875rem;
  }

  #squareBookingCard .booking-step > span {
    width: 2.5rem;
    height: 2.5rem;
    font-size: 1rem;
  }

  #squareBookingCard .booking-step h4 {
    font-size: 0.9rem;
  }

  #squareBookingCard .booking-step p {
    font-size: 0.78rem;
    line-height: 1.45;
  }

  #contactHours li {
    gap: 0.75rem;
  }

  #contactHours li span:last-child {
    text-align: right;
  }

  #contactInterior {
    min-height: 280px;
  }

  #contactInterior > .relative {
    padding-inline: 1.5rem;
  }

  #specialtiesGrid {
    margin-inline: -0.75rem;
    gap: 0.75rem;
  }

  .svc-track {
    width: calc(100% + 2.5rem);
    margin-inline: -1.25rem;
    padding-inline: 1.25rem;
    scroll-padding-inline: 1.25rem;
    gap: 0.875rem;
    overscroll-behavior-inline: contain;
    -webkit-overflow-scrolling: touch;
  }

  #svcTrack .svc-card {
    width: 208px !important;
    border-radius: 18px;
  }

  #svcTrack .svc-card img {
    aspect-ratio: 1 / 1.2;
  }

  #svcTrack .svc-card > div:last-child {
    padding: 1rem;
  }

  #svcTrack .svc-card h3 {
    font-size: 1rem;
  }

  #svcTrack .svc-card p {
    margin-top: 0.4rem;
    margin-bottom: 1rem;
    font-size: 0.78rem;
    line-height: 1.5;
  }

  #svcTrack .svc-card .btn {
    padding-block: 0.65rem !important;
    border-radius: 12px;
    font-size: 0.8rem;
  }

  #svcTrack .svc-card span {
    bottom: 0.65rem;
    left: 0.65rem;
    padding: 0.2rem 0.6rem;
    font-size: 0.65rem;
  }
}

@media (max-width: 359.98px) {
  .home-contact-list {
    grid-template-columns: 1fr;
  }

  .home-contact-action {
    min-height: 0;
    padding-right: 2.75rem;
    flex-direction: row;
    align-items: center;
  }

  .home-contact-link {
    margin-top: 0.2rem;
    padding-top: 0;
  }

  .home-contact-chevron {
    top: 50%;
    transform: translateY(-50%);
  }

  .home-contact-hours {
    display: grid !important;
    grid-template-columns: 2.75rem minmax(0, 1fr);
    align-items: center;
  }

  .home-contact-hours .home-contact-detail-body {
    display: contents;
  }

  .home-contact-hours .home-contact-label {
    grid-column: 2;
    grid-row: 1;
  }

  .home-contact-hours ul {
    grid-column: 1 / -1;
    grid-row: 2;
    width: 100%;
  }
}

@media (hover: hover) and (max-width: 639.98px) {
  .home-contact-action:hover {
    transform: translateY(-2px);
    border-color: rgba(181, 142, 84, 0.42);
    background: rgba(255, 255, 255, 0.94);
  }
}

/* Homepage services actions: a compact booking pair on mobile. */
@media (max-width: 1023.98px) {
  #homeServicesCta {
    display: none;
  }

  .home-gallery-actions {
    display: grid;
    gap: 0.75rem;
    width: min(100%, 30rem);
    margin-inline: auto;
  }

  .home-gallery-actions .btn {
    width: 100%;
    min-height: 3.75rem;
    justify-content: center;
    padding-inline: 1.25rem;
    font-size: 1rem;
  }

  .home-gallery-call {
    background: rgba(255, 253, 249, 0.82);
    box-shadow: 0 14px 28px -24px rgba(61, 33, 44, 0.55);
  }

  .home-services-cta {
    width: min(100%, 30rem);
    margin: 2rem auto 0;
  }

  .home-services-cta-kicker {
    line-height: 1;
    margin-bottom: 1rem;
  }

  .home-services-cta-actions {
    display: grid;
    gap: 0.75rem;
  }

  .home-services-cta-actions .btn {
    width: 100%;
    min-height: 3.75rem;
    justify-content: center;
    padding-inline: 1.25rem;
    font-size: 1rem;
  }

  .home-services-call {
    background: rgba(255, 253, 249, 0.82);
    box-shadow: 0 14px 28px -24px rgba(61, 33, 44, 0.55);
  }
}

/* Keep mobile-only CTA buttons hidden after the shared .btn display rule. */
@media (min-width: 1024px) {
  .btn.lg\:hidden { display: none; }
}


/* Mobile swipe-progress pill (under the services carousel) */
.svc-progress { position: relative; width: 80px; height: 5px; border-radius: 9999px; background: rgba(126,144,112,0.22); overflow: hidden; }
.svc-progress-thumb { position: absolute; top: 0; left: 0; height: 100%; width: 20px; border-radius: 9999px; background: linear-gradient(90deg, var(--gold-dark), var(--gold-light)); transition: transform .12s ease; }
/* Mobile testimonial carousel: one focused review, with the next card entering from the side. */
.reviews-mobile-controls { display: none; }

@media (max-width: 1023.98px) {
  .home-experience-section {
    padding-bottom: 2.5rem;
  }

  .home-booking-section {
    padding-top: 0;
    padding-bottom: 0.75rem;
  }

  .home-reviews-section {
    padding-top: 2.75rem;
    padding-bottom: 1.5rem;
  }

  .home-visit-section {
    padding-top: 1.5rem;
  }

  .home-visit-logo {
    height: 5rem;
  }

  .home-visit-grid {
    margin-top: 1.5rem;
  }

  #reviewsGrid.reviews-carousel-ready {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    min-height: 12.5rem;
    margin-top: 2rem;
    overflow: hidden;
  }

  #reviewsGrid.reviews-carousel-ready > .card {
    grid-column: 1;
    grid-row: 1;
    width: 100%;
    min-height: 12.5rem;
    padding: 1.25rem;
    opacity: 0;
    pointer-events: none;
    transform: translateX(108%);
    visibility: hidden;
    transition:
      transform 240ms cubic-bezier(0.23, 1, 0.32, 1),
      opacity 180ms cubic-bezier(0.23, 1, 0.32, 1),
      visibility 0s linear 240ms;
  }

  #reviewsGrid.reviews-carousel-ready > .card.review-active {
    z-index: 2;
    opacity: 1;
    pointer-events: auto;
    transform: translateX(0);
    visibility: visible;
    transition:
      transform 240ms cubic-bezier(0.23, 1, 0.32, 1),
      opacity 180ms cubic-bezier(0.23, 1, 0.32, 1),
      visibility 0s linear 0s;
  }

  #reviewsGrid.reviews-carousel-ready > .card.review-exit-left {
    z-index: 1;
    opacity: 0;
    transform: translateX(-24%);
    visibility: visible;
    transition:
      transform 180ms cubic-bezier(0.23, 1, 0.32, 1),
      opacity 180ms cubic-bezier(0.23, 1, 0.32, 1),
      visibility 0s linear 180ms;
  }

  #reviewsGrid.reviews-carousel-ready > .card.review-enter-left {
    transform: translateX(-108%);
  }

  #reviewsGrid.reviews-carousel-ready > .card.review-exit-right {
    z-index: 1;
    opacity: 0;
    transform: translateX(24%);
    visibility: visible;
    transition:
      transform 180ms cubic-bezier(0.23, 1, 0.32, 1),
      opacity 180ms cubic-bezier(0.23, 1, 0.32, 1),
      visibility 0s linear 180ms;
  }

  #reviewsGrid.reviews-carousel-ready > .card:hover {
    box-shadow: var(--shadow-soft);
  }

  .reviews-mobile-controls {
    display: grid;
    grid-template-columns: 2.75rem minmax(0, 1fr) 2.75rem;
    align-items: center;
    gap: 0.85rem;
    width: min(100%, 22rem);
    margin: 1rem auto 0;
  }

  .reviews-arrow {
    display: grid;
    width: 2.75rem;
    height: 2.75rem;
    place-items: center;
    border: 1px solid rgba(142, 157, 123, 0.42);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.72);
    color: var(--sage-dark);
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    transition: transform 140ms ease, background-color 180ms ease, color 180ms ease;
  }

  .reviews-arrow:active {
    transform: scale(0.94);
  }

  .reviews-arrow:focus-visible {
    outline: 3px solid rgba(181, 142, 84, 0.38);
    outline-offset: 2px;
  }

  .reviews-dots {
    display: flex;
    min-height: 2.75rem;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
  }

  .reviews-dot {
    width: 0.4rem;
    height: 0.4rem;
    border-radius: 999px;
    background: rgba(142, 157, 123, 0.32);
    transition: transform 180ms ease, background-color 180ms ease;
  }

  .reviews-dot.is-active {
    background: var(--gold-dark);
    transform: scale(1.5);
  }
}

@media (prefers-reduced-motion: reduce) and (max-width: 1023.98px) {
  #reviewsGrid.reviews-carousel-ready > .card,
  #reviewsGrid.reviews-carousel-ready > .card.review-active,
  #reviewsGrid.reviews-carousel-ready > .card.review-exit-left,
  #reviewsGrid.reviews-carousel-ready > .card.review-exit-right,
  #reviewsGrid.reviews-carousel-ready > .card.review-enter-left {
    transform: none;
    transition: opacity 160ms ease;
  }
}

/* --- Services category banner (swap with real photos) --- */
.cat-banner {
  position: relative; height: 120px; display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  background:
    radial-gradient(120% 140% at 18% 10%, var(--blush-soft) 0%, transparent 55%),
    radial-gradient(120% 140% at 85% 95%, var(--sage-soft) 0%, transparent 55%),
    linear-gradient(120deg, var(--cream-deep), var(--cream) 55%, var(--sage-soft));
  border-bottom: 1px solid var(--line);
}
.cat-banner svg { width: 42px; height: 42px; color: var(--gold); opacity: 0.7; }
.cat-banner .cat-script {
  position: absolute; right: 16px; bottom: 6px;
  font-family: 'Great Vibes', cursive; font-size: 1.9rem; color: var(--gold);
  opacity: 0.28; line-height: 1;
}
.cat-banner::after {
  content: attr(data-label);
  position: absolute; bottom: 8px; left: 14px;
  font-size: 0.6rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--sage-dark); opacity: 0.55; font-weight: 600;
}
/* Services category card — side-by-side photo + price list */
.svc-card { display: flex; align-items: stretch; }
.svc-photo { flex: 0 0 34%; max-width: 196px; align-self: stretch; width: 100%; min-height: 100%; object-fit: cover; object-position: center; display: block; filter: saturate(1.06) brightness(0.98); transition: transform .6s cubic-bezier(.2,.6,.2,1); }
.svc-card:hover .svc-photo { transform: scale(1.05); }
.svc-body { flex: 1 1 auto; min-width: 0; }
@media (max-width: 559.98px) {
  .svc-card { flex-direction: column; }
  .svc-photo { flex: none; max-width: none; width: 100%; min-height: 0; height: 168px; }
}
/* Desktop: give the price list more room, smaller wording, less photo */
@media (min-width: 1024px) {
  .svc-photo { flex: 0 0 30%; max-width: 200px; }
  .svc-card .price-row { font-size: .9rem; padding: .5rem 0; }
  .svc-card .price-row .price { font-size: .95rem; }
  .svc-card .cat-title { font-size: 1.4rem; }
}

.cat-title {
  font-family: 'Playfair Display', serif; font-size: 1.5rem; color: var(--sage-dark);
  padding-bottom: 0.5rem; margin-bottom: 0.75rem; position: relative;
}
.cat-title::after { content: ""; position: absolute; left: 0; bottom: 0; width: 44px; height: 2px;
  background: linear-gradient(90deg, var(--gold), transparent); }

#galleryGrid > [data-cat] { display: inline-block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: center; vertical-align: top; break-inside: avoid; }
#galleryGrid > video[data-cat] { aspect-ratio: 4 / 5; object-fit: cover; }
#galleryGrid > video[data-gallery-video] { cursor: pointer; background: var(--blush-50); }
#galleryGrid > [data-lightbox]:focus-visible,
#galleryGrid > video[data-gallery-video]:focus-visible { outline: 3px solid rgba(181,142,84,.72); outline-offset: 3px; }

/* Compact portfolio: consistent portrait framing keeps every look upright. */
@media (max-width: 767.98px) {
  #galleryGrid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
    column-count: initial;
  }

  #galleryGrid > [data-cat] {
    width: 100%;
    height: auto;
    margin-bottom: 0 !important;
    object-fit: cover;
    break-inside: avoid;
    box-shadow: 0 14px 32px -24px rgba(61, 33, 44, 0.45);
  }

}

/* These three source screenshots contain equal black letterbox bars. Tiles use
   portrait cover above; the expanded view uses the same clean crop. */
.lightbox .lb-inner img[data-blackbar-crop] {
  width: min(760px, calc(100vw - 3rem), calc((100vh - 3rem) * 828 / 1106));
  width: min(760px, calc(100vw - 3rem), calc((100dvh - 3rem) * 828 / 1106));
  height: auto;
  aspect-ratio: 828 / 1106;
  object-fit: cover;
  object-position: center;
}

/* --- Price list --- */
.price-row { display: flex; align-items: baseline; gap: .75rem; padding: .55rem 0; border-bottom: 1px dashed rgba(126,144,112,0.3); }
.price-row .dots { flex: 1; border-bottom: 1px dotted rgba(126,144,112,0.45); transform: translateY(-4px); }
.price-row .price { font-family: 'Playfair Display', serif; color: var(--gold-dark); font-weight: 600; white-space: nowrap; }

/* Contact page (mobile): booking buttons first, then the Square booking card,
   then hours / phone / address. Desktop keeps the original two-column grid. */
@media (max-width: 1023.98px) {
  #contactBookingGrid { display: flex; flex-direction: column; }
  #contactBookingGrid > #cbA { order: 1; }
  #contactBookingGrid > #cbC { order: 2; }
  #contactBookingGrid > #cbB { order: 3; }
}

@media (min-width: 1024px) {
  #contactBookingGrid {
    grid-template-rows: auto 1fr;
    column-gap: 3rem;
    row-gap: 2rem;
  }

  #contactBookingGrid > #cbA { align-self: start; }

  .about-story-layout {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: 4.5rem;
  }

  .about-story-portrait {
    position: sticky;
    top: 7.5rem;
    width: 88%;
    max-width: 31rem;
    justify-self: center;
  }

  #specialtiesGrid {
    width: 100%;
    max-width: 70rem;
    margin-inline: auto;
  }

}

.about-owner-name { font-size: 1.5rem; }
@media (min-width: 1024px) {
  .about-owner-name { font-size: 1.875rem; }

  .about-story-thankyou {
    position: relative;
    width: calc(100% - 2rem);
    max-width: 35rem;
    margin: 2.5rem auto 0;
    padding: 2rem 2.5rem 2.125rem;
    overflow: hidden;
    border-radius: 1rem;
    background: linear-gradient(145deg, rgba(255,255,255,.96), rgba(243,236,224,.76));
    box-shadow: 0 24px 60px -38px rgba(46,42,36,.48);
    text-align: center;
    isolation: isolate;
  }

  .about-story-thankyou-logo {
    display: block;
    width: auto;
    height: 4.25rem;
    margin: 0 auto .5rem;
  }

  .about-story-thankyou-rule {
    display: block;
    width: 3.25rem;
    height: 1px;
    margin: 0 auto 1rem;
    background: var(--gold-light);
  }

  .about-story-thankyou-title {
    font-size: 2.5rem;
  }

  .about-story-thankyou-copy {
    max-width: 28rem;
    margin: .875rem auto 0;
    font-size: 1.0625rem;
  }

  .about-story-thankyou-signature {
    width: fit-content;
    max-width: 100%;
    margin: 1.25rem auto 0;
    padding-top: 1rem;
    border-top: 1px solid rgba(181,142,84,.24);
  }

  .about-story-thankyou-name {
    font-size: 1.625rem;
  }

  .about-story-thankyou-role {
    margin-top: .5rem;
    font-size: .625rem;
    letter-spacing: .16em;
  }

  .about-story-thankyou-cta {
    margin-top: 1.25rem;
    padding: .75rem 1.5rem;
    font-size: .875rem;
  }

  .about-story-thankyou-flourish {
    position: absolute;
    z-index: -1;
    width: 9rem;
    aspect-ratio: 26 / 9;
    background: url('../img/botanical-sprig.svg?v=20260816-clean') center / contain no-repeat;
    height: auto;
    color: var(--sage-light);
    opacity: .3;
    pointer-events: none;
  }

  .about-story-thankyou-flourish > * { display: none; }

  .about-story-thankyou-flourish-left {
    top: 1rem;
    left: -4.75rem;
    transform: rotate(12deg);
  }

  .about-story-thankyou-flourish-right {
    right: -4.5rem;
    bottom: .75rem;
    transform: rotate(192deg);
  }

  .about-closing-thankyou {
    padding: 1.5rem 0 4rem;
  }

  .about-closing-thankyou .about-story-thankyou {
    margin-top: 0;
  }
}

.about-promise-progress { display: none; }

/* About page: swipeable promise cards on phones; tablet and desktop keep the grid. */
@media (max-width: 767.98px) {
  .about-promise-track {
    display: flex;
    align-items: stretch;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    padding: 0.125rem 0 0.75rem;
  }

  .about-promise-track::-webkit-scrollbar { display: none; }

  .about-promise-card {
    flex: 0 0 100%;
    scroll-snap-align: start;
    scroll-snap-stop: always;
  }

  .about-promise-progress {
    display: block;
    margin: 0.75rem auto 0;
  }
}

@media (max-width: 639.98px) {
  .about-specialties-section {
    padding-bottom: var(--section-space-mobile);
  }

  .about-promise-section {
    padding-top: var(--section-space-mobile);
    padding-bottom: 2rem;
  }

  .about-thankyou-section {
    padding-bottom: 4rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal,
  .reveal.reveal-pending { opacity: 1 !important; transform: none !important; transition: none; }
  .btn:hover, .card:hover { transform: none; }
}
