/* Pamper Me More — shared styles */

:root {
  /* Palette: soft pinks, golds, creamy whites */
  --cream: #FBF6EE;
  --cream-50: #FFFCF6;
  --cream-100: #F6EFE2;
  --blush-50: #FBEEEC;
  --blush-100: #F4D9D4;
  --blush-200: #E8B7B0;
  --blush-300: #D8938C;
  --rose: #B86C66;
  --gold: #B5894A;
  --gold-light: #D5B47A;
  --gold-deep: #8E6932;
  --ink: #2A211C;
  --ink-70: rgba(42, 33, 28, 0.72);
  --ink-50: rgba(42, 33, 28, 0.55);
  --ink-30: rgba(42, 33, 28, 0.32);
  --ink-15: rgba(42, 33, 28, 0.15);
  --ink-08: rgba(42, 33, 28, 0.08);
  --line: rgba(42, 33, 28, 0.12);

  --serif: 'Cormorant Garamond', 'Cormorant', Georgia, serif;
  --sans: 'Manrope', ui-sans-serif, system-ui, sans-serif;

  --r-sm: 6px;
  --r-md: 12px;
  --r-lg: 22px;
  --r-xl: 36px;

  --container: 1240px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

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

#root { overflow-x: hidden; width: 100%; }

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

button { font-family: inherit; }

::selection { background: var(--blush-200); color: var(--ink); }

/* ── Type ─────────────────────────────────────────────────────────────── */
.serif { font-family: var(--serif); font-weight: 400; letter-spacing: -0.01em; }
.sans { font-family: var(--sans); }

.eyebrow {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--gold-deep);
}

.gold-rule {
  display: inline-block;
  width: 36px;
  height: 1px;
  background: var(--gold);
  vertical-align: middle;
  margin-right: 14px;
}

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.015em;
  line-height: 1.05;
  margin: 0;
  color: var(--ink);
}

p { margin: 0; text-wrap: pretty; }

.italic { font-style: italic; }

/* ── Buttons ──────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 52px;
  padding: 0 28px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 0.18s ease, background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--ink);
  color: var(--cream-50);
  border-color: var(--ink);
}
.btn-primary:hover { background: #1c1612; }

.btn-gold {
  background: linear-gradient(180deg, var(--gold-light) 0%, var(--gold) 60%, var(--gold-deep) 100%);
  color: var(--cream-50);
  border-color: var(--gold-deep);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.35), 0 6px 18px rgba(142, 105, 50, 0.18);
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink-15);
}
.btn-ghost:hover { background: var(--ink); color: var(--cream-50); border-color: var(--ink); }

.btn-sm { height: 40px; padding: 0 18px; font-size: 11px; }

/* ── Layout ───────────────────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 40px;
}

.section {
  padding: 120px 0;
}
.section-sm { padding: 80px 0; }
.section-lg { padding: 160px 0; }

/* ── Nav ──────────────────────────────────────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 246, 238, 0.78);
  backdrop-filter: saturate(160%) blur(18px);
  -webkit-backdrop-filter: saturate(160%) blur(18px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 84px;
  gap: 24px;
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--serif);
  font-size: 24px;
  letter-spacing: 0.01em;
  cursor: pointer;
}
.nav-brand .mark {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: linear-gradient(140deg, var(--blush-100), var(--blush-200) 60%, var(--gold-light));
  display: grid; place-items: center;
  font-family: var(--serif);
  font-size: 18px;
  color: var(--ink);
  border: 1px solid rgba(255,255,255,0.6);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.5), 0 2px 8px rgba(184, 108, 102, 0.18);
}
.nav-brand .mark em { font-style: italic; font-weight: 500; }
.nav-brand small {
  display: block;
  font-family: var(--sans);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-top: 2px;
}
.nav-brand .stack { line-height: 1; white-space: nowrap; }
.nav-brand .stack > div:first-child { white-space: nowrap; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  flex-wrap: nowrap;
}
.nav-link {
  white-space: nowrap;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-70);
  cursor: pointer;
  position: relative;
  padding: 6px 0;
  background: none; border: 0;
}
.nav-link:hover { color: var(--ink); }
.nav-link.active { color: var(--ink); }
.nav-link.active::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -2px;
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--gold);
  transform: translateX(-50%);
}

/* ── Footer ───────────────────────────────────────────────────────────── */
.footer {
  background: var(--ink);
  color: var(--cream-100);
  padding: 100px 0 40px;
  margin-top: 0;
}
.footer h4 {
  color: var(--cream-50);
  font-size: 36px;
  margin-bottom: 16px;
}
.footer .footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 60px;
  padding-bottom: 60px;
  border-bottom: 1px solid rgba(245, 234, 217, 0.12);
}
.footer .col-title {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 18px;
}
.footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.footer ul a { color: rgba(245, 234, 217, 0.78); font-size: 14px; }
.footer ul a:hover { color: var(--cream-50); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 28px;
  font-size: 12px;
  color: rgba(245, 234, 217, 0.5);
  letter-spacing: 0.05em;
}

/* ── Photo blocks (real imagery via background-image) ────────────────── */
.photo {
  position: relative;
  background:
    linear-gradient(160deg, rgba(0,0,0,0) 35%, rgba(184,108,102,0.18)),
    linear-gradient(150deg, var(--blush-50), var(--blush-100));
  border: 1px solid rgba(184, 108, 102, 0.15);
  border-radius: var(--r-md);
  overflow: hidden;
  display: grid;
  place-items: end start;
  color: var(--cream-50);
  background-size: cover;
  background-position: center;
  isolation: isolate;
}
.photo::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 55%, rgba(42,33,28,0.32));
  z-index: 1;
  pointer-events: none;
}
.photo > * { position: relative; z-index: 2; }
.photo .ph-label {
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--cream-50);
  background: rgba(0,0,0,0.36);
  border: 1px solid rgba(255,255,255,0.18);
  padding: 7px 12px;
  border-radius: 999px;
  backdrop-filter: blur(8px);
  margin: 16px;
  font-weight: 600;
}
.photo.photo-cream {
  background:
    linear-gradient(160deg, rgba(0,0,0,0) 30%, rgba(142,105,50,0.18)),
    linear-gradient(150deg, var(--cream-100), var(--blush-50));
  background-size: cover;
  background-position: center;
}
.photo.photo-deep {
  background:
    linear-gradient(150deg, rgba(142,105,50,0.4), rgba(184,108,102,0.55)),
    linear-gradient(150deg, #8E6932, #B86C66);
  background-size: cover;
  background-position: center;
}

/* Hero cluster photos (editorial layout) */
.ph-hero-main   { background-image: linear-gradient(160deg, rgba(0,0,0,0) 50%, rgba(42,33,28,0.35)), url('./images/main_photo.webp'); background-position: center top; }
.ph-hero-accent { background-image: linear-gradient(160deg, rgba(0,0,0,0) 40%, rgba(42,33,28,0.38)), url('./images/header-3.webp'); background-position: center; }

/* Service & section photos — all real salon shots */
.ph-mani-detail   { background-image: linear-gradient(160deg, rgba(0,0,0,0) 40%, rgba(42,33,28,0.42)), url('./images/mani-8.webp'); }
.ph-mani-pink     { background-image: linear-gradient(160deg, rgba(0,0,0,0) 40%, rgba(42,33,28,0.42)), url('./images/classic-manicure-purple.jpg'); }
.ph-pedi          { background-image: linear-gradient(160deg, rgba(0,0,0,0) 35%, rgba(42,33,28,0.42)), url('./images/pedi-1.webp'); background-position: center top; }
.ph-pedi-spa      { background-image: linear-gradient(160deg, rgba(0,0,0,0) 40%, rgba(42,33,28,0.42)), url('./images/spa-pedi-nude.jpg'); }
.ph-lash          { background-image: linear-gradient(160deg, rgba(0,0,0,0) 40%, rgba(42,33,28,0.42)), url('./images/lashes.png'); }
.ph-lash-facials  { background-image: linear-gradient(160deg, rgba(0,0,0,0) 40%, rgba(42,33,28,0.42)), url('./images/lashes-facials.png'); }
.ph-facial        { background-image: linear-gradient(160deg, rgba(0,0,0,0) 40%, rgba(42,33,28,0.42)), url('./images/facials.png'); }
.ph-acrylic       { background-image: linear-gradient(160deg, rgba(0,0,0,0) 40%, rgba(42,33,28,0.42)), url('./images/mani-22.webp'); }
.ph-pedi-real-1   { background-image: linear-gradient(160deg, rgba(0,0,0,0) 40%, rgba(42,33,28,0.42)), url('./images/classic-pedicure-pink.jpg'); background-position: center; }
.ph-pedi-real-2   { background-image: linear-gradient(160deg, rgba(0,0,0,0) 40%, rgba(42,33,28,0.42)), url('./images/pedi-addons-french.jpg'); background-position: center; }
.ph-svc-acrylic   { background-image: linear-gradient(160deg, rgba(0,0,0,0) 40%, rgba(42,33,28,0.42)), url('./images/acrylic.webp'); background-position: center; }
.ph-svc-mani      { background-image: linear-gradient(160deg, rgba(0,0,0,0) 40%, rgba(42,33,28,0.38)), url('./images/manicures.webp'); background-position: center; }
.ph-svc-polish    { background-image: linear-gradient(160deg, rgba(0,0,0,0) 40%, rgba(42,33,28,0.42)), url('./images/dipping-powder.jpg'); background-position: center; }
.ph-svc-addons    { background-image: linear-gradient(160deg, rgba(0,0,0,0) 40%, rgba(42,33,28,0.42)), url('./images/add-ons.jpg'); background-position: center; }
.ph-dipping       { background-image: linear-gradient(160deg, rgba(0,0,0,0) 40%, rgba(42,33,28,0.42)), url('./images/polish.jpg'); background-position: center; }
.ph-uvgel         { background-image: linear-gradient(160deg, rgba(0,0,0,0) 40%, rgba(42,33,28,0.42)), url('./images/uv-gel-nails.webp'); background-position: center; }
.ph-waxing        { background-image: linear-gradient(160deg, rgba(0,0,0,0) 40%, rgba(42,33,28,0.42)), url('./images/waxing.png'); }
.ph-kids-u6       { background-image: linear-gradient(160deg, rgba(0,0,0,0) 40%, rgba(42,33,28,0.42)), url('./images/kids-u6.png'); background-position: center top; }
.ph-kids-712      { background-image: linear-gradient(160deg, rgba(0,0,0,0) 40%, rgba(42,33,28,0.42)), url('./images/kids-712.png'); background-position: center top; }
.ph-salon         { background-image: linear-gradient(160deg, rgba(0,0,0,0) 30%, rgba(42,33,28,0.55)), url('./images/IMG_6754.jpg'); }
.ph-salon-2       { background-image: linear-gradient(160deg, rgba(0,0,0,0) 35%, rgba(42,33,28,0.4)),  url('./images/mani-21.webp'); }
.ph-tools         { background-image: linear-gradient(160deg, rgba(0,0,0,0) 40%, rgba(42,33,28,0.42)), url('./images/mani-15.webp'); }
.ph-polish-row    { background-image: url('./images/about.webp'); background-position: center; }
.ph-hands         { background-image: linear-gradient(160deg, rgba(0,0,0,0) 40%, rgba(42,33,28,0.42)), url('./images/mani-11.webp'); }
.ph-team          { background-image: linear-gradient(160deg, rgba(0,0,0,0) 35%, rgba(42,33,28,0.42)), url('./images/mani-14.webp'); }
.ph-storefront    { background-image: linear-gradient(160deg, rgba(0,0,0,0) 35%, rgba(42,33,28,0.55)), url('./images/IMG_6754.jpg'); }
.ph-roses         { background-image: linear-gradient(160deg, rgba(0,0,0,0) 40%, rgba(42,33,28,0.42)), url('./images/mani-9.webp'); }
.ph-phone-night   { background-image: linear-gradient(160deg, rgba(42,33,28,0.55), rgba(184,108,102,0.45)), url('https://images.unsplash.com/photo-1531546829701-94ac3a72c30c?w=1600&q=80&auto=format&fit=crop'); }
.ph-staff-linda   { background-image: linear-gradient(160deg, rgba(0,0,0,0) 40%, rgba(42,33,28,0.42)), url('./images/IMG-2696.jpg'); }
.ph-staff-van     { background-image: linear-gradient(160deg, rgba(0,0,0,0) 40%, rgba(42,33,28,0.42)), url('./images/IMG-6551.jpg'); }
.ph-staff-nhi     { background-image: linear-gradient(160deg, rgba(0,0,0,0) 40%, rgba(42,33,28,0.42)), url('./images/IMG-6544.jpg'); }
.ph-staff-destini { background-image: linear-gradient(160deg, rgba(0,0,0,0) 40%, rgba(42,33,28,0.42)), url('https://images.unsplash.com/photo-1521119989659-a83eee488004?w=900&q=80&auto=format&fit=crop'); }
.ph-nail-classic  { background-image: linear-gradient(160deg, rgba(0,0,0,0) 40%, rgba(42,33,28,0.42)), url('./images/mani-1.webp'); background-position: center; }
.ph-nail-art-3    { background-image: linear-gradient(160deg, rgba(0,0,0,0) 40%, rgba(42,33,28,0.42)), url('./images/nail-art-3.jpg'); background-position: center; }

/* ── Nail art featured photo (home page spotlight) ─────────────────────────── */
.nail-art-featured {
  max-width: 600px;
  margin: 0 auto;
  border-radius: var(--r-md);
  overflow: hidden;
}
.nail-art-featured img {
  width: 100%;
  display: block;
}

/* ── Service sidebar: sticky on desktop, static on mobile (controlled via class, not inline) */
.service-sidebar { position: sticky; top: 200px; }

/* ── Gallery section ─────────────────────────────────────── */
.gallery-grid {
  columns: 4;
  column-gap: 14px;
  margin-top: 52px;
}
.gallery-item {
  break-inside: avoid;
  margin-bottom: 14px;
  border-radius: var(--r-md);
  overflow: hidden;
  cursor: pointer;
}
.gallery-item img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.45s ease;
}
.gallery-item:hover img { transform: scale(1.04); }

/* ── AICallout text column: always centered (photo removed) */
.ai-callout-text { text-align: center; max-width: 680px; margin: 0 auto; }
.ai-callout-text p { margin-left: auto; margin-right: auto; }
.ai-callout-text ul { align-items: center; }
.ai-callout-text > div:last-child { justify-content: center; }

/* ── Floating after-hours reserve button ─────────────────────────────── */
.fab-reserve {
  position: fixed;
  right: 28px;
  bottom: 28px;
  z-index: 90;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 22px 14px 18px;
  border-radius: 999px;
  background: linear-gradient(140deg, #1f1815 0%, #2A211C 60%, #5b3927 120%);
  color: var(--cream-50);
  border: 1px solid rgba(213, 180, 122, 0.45);
  box-shadow: 0 18px 40px -10px rgba(42,33,28,0.55), 0 4px 12px rgba(184,108,102,0.25), inset 0 1px 0 rgba(255,255,255,0.06);
  cursor: pointer;
  font-family: var(--sans);
  text-decoration: none;
  transition: transform 0.25s cubic-bezier(.2,.7,.2,1), box-shadow 0.25s ease;
}
.fab-reserve:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 24px 50px -10px rgba(42,33,28,0.65), 0 6px 18px rgba(184,108,102,0.35);
}
.fab-reserve .moon {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: radial-gradient(circle at 32% 32%, var(--gold-light) 0%, var(--gold) 55%, var(--gold-deep) 100%);
  display: grid; place-items: center;
  font-family: var(--serif);
  font-style: italic;
  font-size: 20px;
  color: var(--ink);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.4), 0 0 0 4px rgba(213,180,122,0.18);
  position: relative;
}
.fab-reserve .moon::before {
  content: '';
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(213,180,122,0.4), transparent 65%);
  animation: pulseGlow 2.6s ease-in-out infinite;
  z-index: -1;
}
@keyframes pulseGlow {
  0%, 100% { transform: scale(1); opacity: 0.6; }
  50% { transform: scale(1.25); opacity: 0.95; }
}
.fab-reserve .label-stack { display: flex; flex-direction: column; line-height: 1.1; }
.fab-reserve .label-stack .top {
  font-size: 9px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold-light);
  font-weight: 600;
  margin-bottom: 4px;
}
.fab-reserve .label-stack .main {
  font-family: var(--serif);
  font-size: 18px;
  font-style: italic;
  color: var(--cream-50);
}
@media (max-width: 600px) {
  .fab-reserve { right: 16px; bottom: 16px; padding: 12px 18px 12px 14px; }
  .fab-reserve .label-stack .main { font-size: 16px; }
}

/* ── Cards ────────────────────────────────────────────────────────────── */
.card {
  background: var(--cream-50);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 36px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 60px -20px rgba(184, 108, 102, 0.22);
  border-color: rgba(184, 108, 102, 0.25);
}

/* ── Decorative ───────────────────────────────────────────────────────── */
.divider-ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  color: var(--gold);
}
.divider-ornament::before,
.divider-ornament::after {
  content: '';
  flex: 0 0 80px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.divider-ornament .dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--gold);
  transform: rotate(45deg);
}

/* ── Form basics ──────────────────────────────────────────────────────── */
.input, .select, .textarea {
  width: 100%;
  background: var(--cream-50);
  border: 1px solid var(--ink-15);
  border-radius: var(--r-sm);
  padding: 14px 16px;
  font-family: var(--sans);
  font-size: 14px;
  color: var(--ink);
  outline: none;
  transition: border-color 0.18s ease, background 0.18s ease;
}
.input:focus, .select:focus, .textarea:focus {
  border-color: var(--gold);
  background: #fff;
}
.label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-70);
  margin-bottom: 8px;
}

/* ── Page transitions ─────────────────────────────────────────────────── */
.page {
  animation: pageFade 0.45s cubic-bezier(.2,.7,.2,1);
}
@keyframes pageFade {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ── Density tweak ────────────────────────────────────────────────────── */
body.dens-airy .section { padding: 160px 0; }
body.dens-airy .section-sm { padding: 110px 0; }
body.dens-compact .section { padding: 80px 0; }
body.dens-compact .section-sm { padding: 56px 0; }

/* ── Palette: rose (applied as default via body class) ────────────────── */
body.palette-rose {
  --cream: #EFDFD8;
  --cream-50: #F8ECE5;
  --cream-100: #DFC3B8;
  --blush-50: #E5C7BD;
}

/* ──────────────────────────────────────────────────────────────────────
   Responsive — tablet & mobile
   ──────────────────────────────────────────────────────────────────── */

/* Prevent ALL horizontal overflow at every size */
html {
  overflow-x: hidden;
  max-width: 100%;
}
body {
  overflow-x: hidden;
  max-width: 100%;
  position: relative;
}
#root {
  overflow-x: hidden;
  width: 100%;
  max-width: 100%;
}
*, *::before, *::after { box-sizing: border-box; }

/* Tablet: ≤ 960px */
@media (max-width: 960px) {
  .container { padding: 0 28px; }
  .section { padding: 90px 0; }
  .section-sm { padding: 64px 0; }
  .section-lg { padding: 110px 0; }
  body.dens-airy .section { padding: 110px 0; }
  body.dens-airy .section-sm { padding: 80px 0; }
  body.dens-compact .section { padding: 64px 0; }
  body.dens-compact .section-sm { padding: 48px 0; }

  /* Collapse all inline multi-column grids to single column */
  .container > div[style*="grid-template-columns: 1fr 1fr"],
  .container > div[style*="grid-template-columns: 1.1fr 1fr"],
  .container > div[style*="grid-template-columns: 1fr 2fr"],
  div[style*="grid-template-columns: repeat(2, 1fr)"],
  div[style*="grid-template-columns: repeat(3, 1fr)"],
  div[style*="grid-template-columns: repeat(4, 1fr)"] {
    grid-template-columns: 1fr !important;
    gap: 32px !important;
  }

  /* Booking service grid: keep 2-col — must come AFTER the collapse rule to win same specificity */
  div.bk-service-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 14px !important; }

  /* Home service cards (tablet): shrink image, keep side-by-side */
  .home-svc-card {
    grid-template-columns: 90px 1fr !important;
    gap: 18px !important;
    padding: 18px !important;
  }
  .home-svc-photo { width: 90px !important; height: 90px !important; min-width: unset !important; }
  .home-svc-card > :nth-child(3) { grid-column: 1 / -1; text-align: left !important; }

  .gallery-grid { columns: 3; column-gap: 10px; }
  .gallery-item { margin-bottom: 10px; }

  /* Services sidebar: remove sticky on tablet and below */
  .service-sidebar { position: static; }

  /* Photo cluster heights */
  [style*="height: 620px"] { height: auto !important; min-height: 460px; }
  [style*="height: 580px"] { height: auto !important; min-height: 420px; }
}

/* Mobile: ≤ 720px */
@media (max-width: 720px) {
  /* ── Hard overflow lock ─────────────────────────────────────────────── */
  html, body, #root {
    overflow-x: hidden !important;
    max-width: 100vw !important;
    width: 100% !important;
  }
  html {
    font-size: 15px;
    /* Kill smooth-scroll — prevents animated jumps when keyboard opens/closes */
    scroll-behavior: auto !important;
    /* Prevent elastic overscroll bounce */
    overscroll-behavior: none;
  }
  body {
    overscroll-behavior: none;
    /* Stable containing block so keyboard resize doesn't shift layout */
    position: relative;
  }
  /* Clip every structural container — belt AND braces */
  .page, section, header, footer, .footer, nav, main {
    overflow-x: hidden;
    max-width: 100%;
  }
  /* ── End overflow lock ──────────────────────────────────────────────── */

  .container { padding: 0 16px; max-width: 100%; }
  .section { padding: 60px 0; }
  .section-sm { padding: 44px 0; }
  .section-lg { padding: 72px 0; }
  body.dens-airy .section { padding: 72px 0; }
  body.dens-airy .section-sm { padding: 52px 0; }
  body.dens-compact .section { padding: 44px 0; }
  body.dens-compact .section-sm { padding: 32px 0; }

  /* Prevent wide inline-styled sections from overflowing */
  section[style*="padding"],
  section.container { padding-left: 16px !important; padding-right: 16px !important; }

  /* Nav */
  .nav-inner { height: 64px; gap: 10px; padding: 0; }
  .nav-brand { gap: 8px; font-size: 17px; min-width: 0; }
  .nav-brand .stack > div:first-child { font-size: 17px !important; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .nav-brand small { font-size: 8px; letter-spacing: 0.18em; }
  .nav-links { gap: 8px; flex-shrink: 0; }
  .nav-links .nav-link { display: none; }
  .nav-links .nav-link:nth-last-child(2) { display: inline-flex; }
  .nav-links .btn { height: 34px; padding: 0 12px; font-size: 10px; letter-spacing: 0.12em; white-space: nowrap; }

  /* Buttons */
  .btn { height: 46px; padding: 0 20px; font-size: 12px; }
  .btn-sm { height: 34px; padding: 0 12px; font-size: 10px; }

  /* Hero sections — remove padding overrides and let container handle it */
  [style*="padding: '60px 40px"] { padding: 48px 0 !important; }

  /* Stat row */
  [style*="gap: 36px"][style*="border-top: 1px solid var(--line)"] { gap: 20px !important; flex-wrap: wrap !important; }

  /* Hero photo cluster — stack absolutely-positioned photos vertically */
  [style*="position: relative"][style*="height: 620px"],
  [style*="position: relative"][style*="height: 580px"] {
    height: auto !important;
    min-height: unset !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
  }
  [style*="position: absolute"][style*="width: 360px"],
  [style*="position: absolute"][style*="width: 280px"],
  [style*="position: absolute"][style*="width: 78%"],
  [style*="position: absolute"][style*="width: 60%"] {
    position: relative !important;
    top: auto !important; bottom: auto !important; left: auto !important; right: auto !important;
    width: 100% !important;
    height: 220px !important;
  }
  /* Hero main photo (portrait flowers) — show full image, no crop */
  .ph-hero-main { height: 320px !important; background-size: contain !important; background-repeat: no-repeat !important; }

  /* Gold badge in hero */
  [style*="position: absolute"][style*="width: 130px"] {
    position: relative !important;
    top: auto !important; right: auto !important; left: auto !important;
    width: 100px !important; height: 100px !important;
    align-self: flex-start !important;
  }

  /* Cards */
  .card { padding: 20px; border-radius: var(--r-md); }
  .card[style*="padding: 36px"] { padding: 20px !important; }

  /* Booking wizard card */
  .bk-wizard-card { padding: 24px 16px !important; }

  /* Service cards — keep 2 per row even on small screens */
  .bk-service-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 10px !important; }
  .bk-service-grid button { padding: 12px 10px !important; }
  .bk-service-grid .serif { font-size: 17px !important; }

  /* Date grid — 4 cols */
  .bk-date-grid { grid-template-columns: repeat(4, 1fr) !important; }

  /* FAB clearance — ensure fixed button never covers page content */
  body { padding-bottom: 84px; }

  /* Review card — stack label above value (display:block beats grid specificity wars) */
  .bk-review-card { padding: 16px !important; }
  .bk-review-row { display: block !important; padding: 12px 0 !important; }
  .bk-review-row .label { font-size: 9px !important; margin-bottom: 4px; display: block; }
  .bk-review-row .serif { font-size: 17px !important; display: block; word-break: break-word; }

  /* Review total row — stack price below label */
  .bk-review-total { flex-direction: column !important; align-items: flex-start !important; gap: 4px !important; }
  .bk-review-total .serif { font-size: 32px !important; }

  /* Booking complete confirmation — prevent heading overflow */
  .bk-complete { overflow-x: hidden; }
  .bk-complete h2 { font-size: clamp(28px, 8vw, 44px) !important; word-break: break-word; overflow-wrap: break-word; }

  /* Services page — stack sidebar above items list */
  .service-layout { grid-template-columns: 1fr !important; gap: 28px !important; }
  .service-sidebar { position: static !important; }
  .service-sidebar .photo { height: 220px !important; margin-top: 12px; background-size: contain !important; background-repeat: no-repeat !important; }

  .gallery-grid { columns: 1; column-gap: 0; }
  .gallery-item { margin-bottom: 8px; }

  /* Home service cards — stack fully on mobile: photo full-width, then text, then price */
  .home-svc-card {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
    padding: 16px !important;
  }
  .home-svc-photo {
    width: 100% !important;
    max-width: 100% !important;
    height: 200px !important;
    min-width: unset !important;
  }
  .home-svc-card > :nth-child(2),
  .home-svc-card > :nth-child(3) {
    text-align: left !important;
  }

  /* Step rail — scrollable */
  .step-rail { overflow-x: auto; -webkit-overflow-scrolling: touch; padding-bottom: 4px; }

  /* Services category tab bar */
  .container [style*="display: flex"][style*="gap: 4px"][style*="justify-content: center"] {
    justify-content: flex-start !important;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    flex-wrap: nowrap !important;
    padding-bottom: 8px;
    scrollbar-width: none;
  }
  .container [style*="display: flex"][style*="gap: 4px"][style*="justify-content: center"]::-webkit-scrollbar { display: none; }
  .container [style*="display: flex"][style*="gap: 4px"][style*="justify-content: center"] > * { flex: 0 0 auto; }

  /* Date grid — 4 cols instead of 7 */
  [style*="grid-template-columns: repeat(7, 1fr)"] {
    grid-template-columns: repeat(4, 1fr) !important;
  }

  /* Time grid — 3 cols instead of 6 */
  [style*="grid-template-columns: repeat(6, 1fr)"] {
    grid-template-columns: repeat(3, 1fr) !important;
  }

  /* Footer */
  .footer { padding: 56px 0 24px; overflow-x: hidden; max-width: 100%; }
  .footer .footer-grid { grid-template-columns: 1fr !important; gap: 32px !important; padding-bottom: 32px; }
  .footer-bottom { flex-direction: column; gap: 10px; align-items: flex-start; }

  /* FAB — keep full label, just shrink slightly */
  .fab-reserve {
    right: 12px;
    bottom: 12px;
    padding: 10px 16px 10px 11px;
    gap: 10px;
    max-width: calc(100vw - 24px);
  }
  .fab-reserve .moon { width: 32px; height: 32px; font-size: 15px; flex-shrink: 0; }
  .fab-reserve .label-stack { display: flex !important; }
  .fab-reserve .label-stack .top { font-size: 8px; margin-bottom: 2px; }
  .fab-reserve .label-stack .main { font-size: 14px; }

  /* ── Image & layout mobile fixes ────────────────────────────────────── */

  /* Team grids: 2 columns (overrides the 1-col collapse applied at 960px) */
  div[style*="grid-template-columns: repeat(4, 1fr)"] {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 20px !important;
  }

  /* Tall standalone photo blocks — appropriate mobile heights */
  .ph-storefront { height: 240px !important; }
  .ph-salon-2    { height: 240px !important; }
  .ph-salon[style*="height: 440px"] { height: 240px !important; }

  /* Service item rows — stack vertically so product thumbnails don't crowd the price */
  .service-layout article {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
    padding: 18px 0 !important;
  }
  .service-layout article > div:last-child {
    display: flex !important;
    flex-direction: row !important;
    justify-content: space-between !important;
    align-items: center !important;
    text-align: left !important;
    width: 100%;
    flex-wrap: wrap;
    gap: 8px !important;
  }

  /* Product thumbnails — scale down on narrow screens */
  .service-layout article img {
    width: 64px !important;
    height: 64px !important;
  }

  /* Ensure all gallery images fill column width cleanly */
  .gallery-item img { width: 100%; height: auto; object-fit: cover; }

  /* About VisitCTA — stack to single column, image below text */
  .container[style*="grid-template-columns: 1fr 1fr"] {
    grid-template-columns: 1fr !important;
    gap: 32px !important;
  }
}

/* ── Mobile image fixes: ≤ 768px ──────────────────────────────────────────── */
@media (max-width: 768px) {

  /* ── Mobile nav: full 3-row layout (overrides hidden-links approach in 720px block) ── */
  .nav-inner {
    height: auto !important;
    flex-direction: column;
    align-items: stretch;
    padding: 10px 0 8px;
    gap: 0;
  }
  .nav-brand {
    gap: 10px !important;
    font-size: 20px !important;
    min-width: unset;
  }
  .nav-brand .stack > div:first-child {
    font-size: 20px !important;
    overflow: visible !important;
    text-overflow: clip !important;
  }
  .nav-brand small {
    display: block !important;
    font-size: 9px !important;
    letter-spacing: 0.24em !important;
  }
  .nav-links {
    display: flex !important;
    flex-wrap: wrap;
    flex-shrink: unset !important;
    gap: 0;
    align-items: center;
    border-top: 1px solid var(--line);
    margin-top: 6px;
  }
  /* Row 2: five page links at exactly 1/5 width each */
  .nav-links .nav-link {
    display: inline-flex !important;
    flex: 0 0 20% !important;
    justify-content: center;
    align-items: center;
    min-height: 44px;
    font-size: 10px !important;
    letter-spacing: 0.13em !important;
    padding: 0 !important;
    white-space: nowrap;
  }
  /* Row 3: phone fills left, button anchors right */
  .nav-links a[href^="tel"] {
    flex: 1 1 auto !important;
    justify-content: flex-start !important;
    min-height: 40px !important;
    font-size: 13px !important;
    padding: 6px 0 !important;
    border-top: 1px solid var(--line);
  }
  .nav-links .btn {
    flex: 0 0 auto !important;
    align-self: center;
    height: 36px !important;
    padding: 0 14px !important;
    font-size: 10px !important;
    letter-spacing: 0.12em !important;
    white-space: nowrap;
    border-top: 1px solid var(--line);
  }

  /* Fixes 1 & 3: Home "Menu" service cards — photo fills card edge-to-edge */
  div[style*="grid-template-columns: repeat(2, 1fr)"] {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
  }
  .home-svc-card {
    grid-template-columns: 1fr !important;
    gap: 0 !important;
    padding: 0 !important;          /* remove card padding so photo reaches the edges */
    overflow: hidden !important;    /* card border-radius clips photo corners */
  }
  .home-svc-photo {
    width: 100% !important;
    max-width: 100% !important;
    height: 200px !important;
    min-width: unset !important;
    background-size: cover !important;
    background-position: center !important;
    border-radius: 0 !important;    /* card overflow:hidden handles the rounding */
    margin: 0 !important;
  }
  .home-svc-card > :nth-child(2) {  /* title + description */
    padding: 16px 16px 8px !important;
    text-align: left !important;
  }
  .home-svc-card > :nth-child(3) {  /* price + tag */
    padding: 0 16px 16px !important;
    text-align: left !important;
  }

  /* Hero photo cluster — stack for 721–767 px screens (mirrors the ≤720 px rule above) */
  [style*="position: relative"][style*="height: 620px"],
  [style*="position: relative"][style*="height: 580px"] {
    height: auto !important;
    min-height: unset !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
  }
  [style*="position: absolute"][style*="width: 360px"],
  [style*="position: absolute"][style*="width: 280px"],
  [style*="position: absolute"][style*="width: 78%"],
  [style*="position: absolute"][style*="width: 60%"] {
    position: relative !important;
    top: auto !important; bottom: auto !important; left: auto !important; right: auto !important;
    width: 100% !important;
    height: 220px !important;
  }
  [style*="position: absolute"][style*="width: 130px"] {
    position: relative !important;
    top: auto !important; right: auto !important; left: auto !important;
    width: 100px !important; height: 100px !important;
    align-self: flex-start !important;
  }

  /* Hero main photo — fill width, defined height after cluster stacks */
  .ph-hero-main {
    background-size: cover !important;
    background-repeat: no-repeat !important;
    height: 280px !important;
  }

  /* Fix 2: Gallery — single column, uniform height, no portrait distortion */
  .gallery-grid { columns: 1 !important; column-gap: 0 !important; }
  .gallery-item { margin-bottom: 8px; }
  .gallery-item img {
    width: 100% !important;
    height: 280px !important;
    object-fit: cover !important;
    object-position: center !important;
    display: block;
  }

  /* Fixes 4 & 5: Services page — stack sidebar/content, category photo fills width */
  .service-layout { grid-template-columns: 1fr !important; gap: 28px !important; }
  .service-sidebar { position: static !important; }
  .service-sidebar .photo {
    width: 100% !important;
    height: 220px !important;
    background-size: cover !important;
    background-position: center !important;
    margin-top: 12px;
  }

  /* Tall standalone photo blocks — cap height on mid-range mobile */
  .ph-storefront { height: 240px !important; }
  .ph-salon[style*="height: 440px"] { height: 240px !important; }

  /* About VisitCTA — stack two-column text+photo layout */
  .container[style*="grid-template-columns: 1fr 1fr"] {
    grid-template-columns: 1fr !important;
    gap: 32px !important;
  }

}

/* ── Narrow phone fixes: ≤ 480px ──────────────────────────────────────────── */
@media (max-width: 480px) {

  /* Square new photos — release fixed height, set 1:1 aspect ratio.
     height: auto overrides the 200px / 220px set by the 768px block;
     aspect-ratio: 1/1 then makes height = container width.
     background-size: cover on a square container + square image = full photo, zero crop. */
  .ph-mani-pink                    { height: auto !important; aspect-ratio: 1 / 1 !important; background-position: center !important; }
  .ph-pedi-spa                     { height: auto !important; aspect-ratio: 1 / 1 !important; background-position: center !important; }
  .service-sidebar .ph-pedi-real-1 { height: auto !important; aspect-ratio: 1 / 1 !important; background-position: center !important; }
  .service-sidebar .ph-pedi-real-2 { height: auto !important; aspect-ratio: 1 / 1 !important; background-position: center !important; }

  /* Hero portrait — release fixed crop height; 2:3 matches image's 1160×1749 natural ratio */
  .ph-hero-main { height: auto !important; aspect-ratio: 2 / 3 !important; }

  /* Nail art featured — square container matches square image; cover fills it with zero crop */
  .nail-art-featured { aspect-ratio: 1 / 1; }
  .nail-art-featured img { width: 100%; height: 100%; object-fit: cover; }
}

/* Small phones: ≤ 420px */
@media (max-width: 420px) {
  .container { padding: 0 14px; }
  .nav-brand small { display: none; }
  /* FAB: keep label but tighten further */
  .fab-reserve {
    right: 10px;
    bottom: 10px;
    padding: 9px 12px 9px 10px;
    gap: 8px;
  }
  .fab-reserve .moon { width: 28px; height: 28px; font-size: 13px; }
  .fab-reserve .label-stack .top { font-size: 7px; letter-spacing: 0.2em; }
  .fab-reserve .label-stack .main { font-size: 12px; }
}
