/* ==========================================================================
   Nails by Jay — Global Stylesheet
   Mobile-first. Loaded after variables.css.
   ========================================================================== */

/* ---- 1. Reset -------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body, h1, h2, h3, h4, p, figure, blockquote, dl, dd, ul, ol { margin: 0; }
ul[class], ol[class] { list-style: none; padding: 0; }
img, picture, svg { max-width: 100%; display: block; }
input, button, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: none; }
a { color: inherit; text-decoration: none; }

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

/* ---- 2. Base ----------------------------------------------------------- */
body {
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: 1.7;
  color: var(--color-text);
  background: var(--color-bg);
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--color-dark);
  line-height: 1.2;
  font-weight: 600;
}

h1 { font-size: var(--fs-4xl); }
h2 { font-size: var(--fs-3xl); }
h3 { font-size: var(--fs-xl); }
h4 { font-size: var(--fs-md); }

p { color: var(--color-text-muted); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2xs);
  font-family: var(--font-button);
  font-size: var(--fs-xs);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-accent-dark);
  font-weight: 600;
  margin-bottom: var(--space-sm);
}
.eyebrow::before {
  content: '';
  width: 28px;
  height: 1px;
  background: var(--color-gold);
}

/* ---- 3. Layout ----------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--space-md);
}

.container--narrow { max-width: var(--container-narrow); }

.section { padding-block: var(--space-2xl); position: relative; }
.section--soft { background: var(--color-primary-soft); }
.section--dark { background: var(--gradient-dark); color: var(--color-white); }
.section--dark h2, .section--dark h3, .section--dark p { color: var(--color-white); }
.section--dark p { color: rgba(255,255,255,0.75); }

.section-head {
  text-align: center;
  max-width: 640px;
  margin-inline: auto;
  margin-bottom: var(--space-xl);
}
.section-head p { margin-top: var(--space-sm); }

.grid {
  display: grid;
  gap: var(--space-lg);
}
.grid--2 { grid-template-columns: repeat(1, 1fr); }
.grid--3 { grid-template-columns: repeat(1, 1fr); }
.grid--4 { grid-template-columns: repeat(1, 1fr); }

@media (min-width: 480px) {
  /* Was previously a fixed 2 columns with no smaller-phone fallback, which
     squeezed each feature card's text into many short wrapped lines on
     narrow screens (~320-375px). One column reads far more comfortably there. */
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 560px) {
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 860px) {
  .grid--2 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(3, 1fr); }
  .grid--4 { grid-template-columns: repeat(4, 1fr); }
}

/* ---- 4. Buttons ------------------------------------------------------- */
.btn {
  font-family: var(--font-button);
  font-size: var(--fs-sm);
  font-weight: 600;
  letter-spacing: 0.03em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2xs);
  padding: 0.95rem 2.1rem;
  border-radius: var(--radius-full);
  position: relative;
  overflow: hidden;
  isolation: isolate;
  transition: transform var(--dur-fast) var(--ease-out-soft), box-shadow var(--dur-base) var(--ease-out-soft), color var(--dur-base);
  white-space: nowrap;
}
.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  transition: transform var(--dur-base) var(--ease-smooth);
}
.btn:active { transform: scale(0.97); }

.btn--primary {
  background: var(--gradient-accent);
  color: var(--color-white);
  box-shadow: var(--shadow-accent);
}
.btn--primary:hover { transform: translateY(-3px); box-shadow: 0 18px 40px rgba(199,133,151,0.45); }

.btn--gold {
  background: var(--gradient-gold);
  color: var(--color-dark);
  box-shadow: var(--shadow-gold);
}
.btn--gold:hover { transform: translateY(-3px); box-shadow: 0 18px 40px rgba(212,175,55,0.45); }

.btn--outline {
  background: transparent;
  color: var(--color-dark);
  border: 1.5px solid var(--color-accent);
}
.btn--outline:hover { background: var(--color-accent); color: var(--color-white); transform: translateY(-3px); }

.btn--ghost-light {
  background: rgba(255,255,255,0.15);
  color: var(--color-white);
  border: 1.5px solid rgba(255,255,255,0.5);
  backdrop-filter: blur(6px);
}
.btn--ghost-light:hover { background: var(--color-white); color: var(--color-accent-dark); }

.btn--sm { padding: 0.65rem 1.4rem; font-size: var(--fs-xs); }
.btn--block { width: 100%; }

/* ---- 5. Loading screen ------------------------------------------------ */
#preloader {
  position: fixed;
  inset: 0;
  z-index: var(--z-loader);
  background: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: var(--space-sm);
  transition: opacity 0.6s var(--ease-smooth), visibility 0.6s;
}
#preloader.is-hidden { opacity: 0; visibility: hidden; pointer-events: none; }

.preloader__mark {
  font-family: var(--font-heading);
  font-size: var(--fs-2xl);
  color: var(--color-dark);
  letter-spacing: 0.04em;
  opacity: 0;
  animation: preloaderFade 1.6s var(--ease-smooth) infinite;
}
.preloader__bar {
  width: 140px;
  height: 2px;
  background: rgba(67,49,61,0.15);
  border-radius: var(--radius-full);
  overflow: hidden;
}
.preloader__bar::after {
  content: '';
  display: block;
  width: 40%;
  height: 100%;
  background: var(--gradient-gold);
  animation: preloaderSlide 1.2s var(--ease-smooth) infinite;
}

@keyframes preloaderFade {
  0%, 100% { opacity: 0.35; transform: translateY(4px); }
  50% { opacity: 1; transform: translateY(0); }
}
@keyframes preloaderSlide {
  0% { transform: translateX(-120%); }
  100% { transform: translateX(320%); }
}

/* ---- 6. Scroll progress bar -------------------------------------------- */
#scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: var(--gradient-gold);
  z-index: calc(var(--z-nav) + 1);
  transition: width 0.1s linear;
}

/* ---- 7. Header / Navigation -------------------------------------------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-nav);
  padding-block: var(--space-sm);
  transition: padding var(--dur-base) var(--ease-out-soft), background var(--dur-base), box-shadow var(--dur-base);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  padding: 0.6rem 1.2rem;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: var(--shadow-sm);
  transition: background var(--dur-base), box-shadow var(--dur-base), border-color var(--dur-base);
}

.site-header.is-scrolled .site-header__inner {
  background: rgba(255, 255, 255, 0.85);
  box-shadow: var(--shadow-md);
}

.brand {
  display: flex;
  align-items: center;
  gap: var(--space-2xs);
  font-family: var(--font-heading);
  font-size: var(--fs-md);
  font-weight: 600;
  color: var(--color-dark);
}
.brand img { height: 40px; width: 40px; object-fit: cover; border-radius: 50%; }

.main-nav__list {
  display: none;
  align-items: center;
  gap: var(--space-lg);
}
.main-nav__list a {
  font-family: var(--font-button);
  font-size: var(--fs-sm);
  font-weight: 500;
  position: relative;
  padding-block: var(--space-3xs);
  color: var(--color-dark);
}
.main-nav__list a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 2px;
  background: var(--color-gold);
  transition: width var(--dur-base) var(--ease-smooth);
}
.main-nav__list a:hover::after,
.main-nav__list a.is-active::after { width: 100%; }
.main-nav__list a.is-active { color: var(--color-accent-dark); }

.header-actions { display: flex; align-items: center; gap: var(--space-sm); }

/* On narrow phones, brand name + "Book Now" pill + hamburger icon don't all
   fit on one line — drop the header's Book Now button since the mobile
   menu already surfaces a full-width "Book Appointment" button once opened. */
@media (max-width: 420px) {
  .header-actions .btn { display: none; }
}

.nav-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 26px;
  padding: var(--space-2xs);
}
.nav-toggle span {
  height: 2px;
  width: 100%;
  background: var(--color-dark);
  border-radius: var(--radius-full);
  transition: transform var(--dur-base) var(--ease-smooth), opacity var(--dur-base);
}
.nav-toggle.is-active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-active span:nth-child(2) { opacity: 0; }
.nav-toggle.is-active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: calc(var(--z-nav) - 1);
  background: var(--color-primary);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-md);
  /* Scrollable with room to breathe top/bottom — on shorter phones (SE-sized,
     or any phone in landscape) 7 nav links + a button can be taller than the
     viewport; without this, the links below the fold were simply unreachable. */
  overflow-y: auto;
  padding-block: var(--space-2xl);
  transform: translateY(-100%);
  opacity: 0;
  transition: transform var(--dur-slow) var(--ease-smooth), opacity var(--dur-base);
  pointer-events: none;
}
.mobile-nav.is-open { transform: translateY(0); opacity: 1; pointer-events: auto; }
.mobile-nav a {
  font-family: var(--font-heading);
  font-size: var(--fs-xl);
  color: var(--color-dark);
}
.mobile-nav a.is-active { color: var(--color-accent-dark); }

@media (min-width: 960px) {
  .main-nav__list { display: flex; }
  .nav-toggle { display: none; }
}

/* ---- 8. Hero ------------------------------------------------------------ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding-top: calc(var(--header-height) + var(--space-lg));
  padding-bottom: var(--space-2xl);
  background: var(--gradient-hero);
  overflow: hidden;
}
.hero::before,
.hero::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.5;
}
.hero::before {
  width: 380px; height: 380px;
  background: var(--color-gold-soft);
  top: -120px; right: -100px;
}
.hero::after {
  width: 320px; height: 320px;
  background: var(--color-accent-light);
  bottom: -140px; left: -80px;
}

.hero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  gap: var(--space-xl);
  align-items: center;
}
@media (min-width: 900px) {
  .hero__grid { grid-template-columns: 1.05fr 0.95fr; }
}

.hero__content .eyebrow { animation: fadeUp 0.8s var(--ease-out-soft) both; }
.hero h1 {
  animation: fadeUp 0.9s 0.1s var(--ease-out-soft) both;
}
.hero h1 em {
  font-style: italic;
  color: var(--color-accent-dark);
}
.hero p {
  font-size: var(--fs-md);
  max-width: 480px;
  margin-top: var(--space-sm);
  animation: fadeUp 0.9s 0.2s var(--ease-out-soft) both;
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-top: var(--space-lg);
  animation: fadeUp 0.9s 0.3s var(--ease-out-soft) both;
}

.hero__stats {
  display: flex;
  gap: var(--space-lg);
  margin-top: var(--space-xl);
  animation: fadeUp 0.9s 0.4s var(--ease-out-soft) both;
}
.hero__stat-num {
  font-family: var(--font-heading);
  font-size: var(--fs-2xl);
  color: var(--color-dark);
}
.hero__stat-label {
  font-size: var(--fs-xs);
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* Below 900px the hero is a single stacked column (see .hero__grid above),
   so center everything in it — left-aligned text reads fine next to a
   side-by-side image, but looks unbalanced sitting alone above one. */
@media (max-width: 899px) {
  .hero__content {
    text-align: center;
  }
  .hero p {
    margin-inline: auto;
  }
  .hero__actions {
    justify-content: center;
  }
  .hero__stats {
    justify-content: center;
    text-align: center;
  }
}

.hero__visual {
  position: relative;
  animation: fadeIn 1.2s 0.3s var(--ease-out-soft) both;
}
.hero__visual-frame {
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4 / 5;
}
.hero__visual-frame img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 1.2s var(--ease-smooth);
}
.hero__visual:hover .hero__visual-frame img { transform: scale(1.05); }

.hero__badge {
  position: absolute;
  bottom: -16px;
  left: 0;
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: var(--space-sm) var(--space-md);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  max-width: calc(100% - var(--space-md));
  animation: floatSoft 4s ease-in-out infinite;
}
@media (min-width: 640px) {
  /* More room to overhang the frame once the container has enough padding
     around it that a negative offset won't push the badge off-screen. */
  .hero__badge { bottom: -24px; left: -24px; max-width: none; }
}
.hero__badge-icon {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--gradient-gold);
  display: flex; align-items: center; justify-content: center;
  color: var(--color-white);
  font-size: var(--fs-md);
}

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: var(--space-md);
  transform: translateX(-50%);
  display: none;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2xs);
  font-family: var(--font-button);
  font-size: var(--fs-xs);
  letter-spacing: 0.1em;
  color: var(--color-text-muted);
}
.scroll-cue__line {
  width: 1px; height: 36px;
  background: var(--color-accent);
  position: relative;
  overflow: hidden;
}
.scroll-cue__line::after {
  content: '';
  position: absolute;
  top: -100%; left: 0;
  width: 100%; height: 100%;
  background: var(--color-gold);
  animation: scrollCue 1.8s ease-in-out infinite;
}
@media (min-width: 640px) { .scroll-cue { display: flex; } }

/* ---- 9. Cards ------------------------------------------------------------ */
.card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  transition: transform var(--dur-base) var(--ease-out-soft), box-shadow var(--dur-base) var(--ease-out-soft);
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }

.service-card {
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.service-card__media {
  position: relative;
  aspect-ratio: 5 / 4;
  overflow: hidden;
}
.service-card__media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform var(--dur-slow) var(--ease-smooth);
}
.service-card:hover .service-card__media img { transform: scale(1.08); }
.service-card__price {
  position: absolute;
  top: var(--space-sm); right: var(--space-sm);
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(6px);
  color: var(--color-accent-dark);
  font-family: var(--font-button);
  font-weight: 600;
  font-size: var(--fs-xs);
  padding: 0.4rem 0.9rem;
  border-radius: var(--radius-full);
}
.service-card__body {
  padding: var(--space-md);
  display: flex;
  flex-direction: column;
  gap: var(--space-2xs);
  flex: 1;
}
.service-card__meta {
  display: flex;
  align-items: center;
  gap: var(--space-2xs);
  font-size: var(--fs-xs);
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.service-card__body p { font-size: var(--fs-sm); flex: 1; }
.service-card__footer { margin-top: var(--space-sm); }

.feature-card {
  padding: var(--space-lg) var(--space-md);
  text-align: center;
}
.feature-card__icon {
  width: 64px; height: 64px;
  margin-inline: auto;
  margin-bottom: var(--space-sm);
  border-radius: 50%;
  background: var(--color-primary);
  display: flex; align-items: center; justify-content: center;
  color: var(--color-accent-dark);
  font-size: var(--fs-lg);
  transition: transform var(--dur-base) var(--ease-out-soft), background var(--dur-base);
}
.feature-card:hover .feature-card__icon { transform: rotate(-8deg) scale(1.08); background: var(--gradient-gold); color: var(--color-white); }

/* ---- 10. Gallery preview ------------------------------------------------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-sm);
}
@media (min-width: 720px) { .gallery-grid { grid-template-columns: repeat(4, 1fr); } }

.gallery-item {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 1 / 1;
}
.gallery-item img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform var(--dur-slow) var(--ease-smooth);
}
.gallery-item::after {
  content: '';
  position: absolute; inset: 0;
  background: var(--gradient-overlay);
  opacity: 0;
  transition: opacity var(--dur-base);
}
.gallery-item__label {
  position: absolute;
  left: var(--space-sm); bottom: var(--space-sm);
  color: var(--color-white);
  font-family: var(--font-button);
  font-size: var(--fs-xs);
  letter-spacing: 0.05em;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity var(--dur-base), transform var(--dur-base);
  z-index: 1;
}
.gallery-item:hover img { transform: scale(1.1); }
.gallery-item:hover::after,
.gallery-item:hover .gallery-item__label { opacity: 1; transform: translateY(0); }

/* ---- 11. Before / After slider ------------------------------------------- */
.ba-slider {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  user-select: none;
}
.ba-slider__after,
.ba-slider__before {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.ba-slider__before-wrap {
  position: absolute; inset: 0;
  width: 50%;
  overflow: hidden;
}
.ba-slider__before-wrap img { width: 200%; max-width: none; height: 100%; object-fit: cover; }
.ba-slider__handle {
  position: absolute;
  top: 0; bottom: 0;
  left: 50%;
  width: 3px;
  background: var(--color-white);
  transform: translateX(-50%);
  cursor: ew-resize;
}
.ba-slider__handle::after {
  content: '⟷';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 44px; height: 44px;
  background: var(--color-white);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-md);
  color: var(--color-accent-dark);
}
.ba-slider__tag {
  position: absolute;
  top: var(--space-sm);
  font-family: var(--font-button);
  font-size: var(--fs-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(67,49,61,0.7);
  color: var(--color-white);
  padding: 0.3rem 0.8rem;
  border-radius: var(--radius-full);
}
.ba-slider__tag--before { left: var(--space-sm); }
.ba-slider__tag--after { right: var(--space-sm); }

/* ---- 12. Testimonials ----------------------------------------------------- */
.testimonial-track {
  display: flex;
  gap: var(--space-md);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-block: var(--space-sm);
  padding-inline: var(--space-3xs);
  scrollbar-width: none;
}
.testimonial-track::-webkit-scrollbar { display: none; }

.testimonial-card {
  scroll-snap-align: start;
  min-width: min(340px, 85vw);
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: var(--space-lg) var(--space-md);
  box-shadow: var(--shadow-md);
}
.testimonial-card__stars { color: var(--color-gold); letter-spacing: 0.2em; margin-bottom: var(--space-sm); }
.testimonial-card__quote { font-style: italic; color: var(--color-text); }
.testimonial-card__author { margin-top: var(--space-md); display: flex; align-items: center; gap: var(--space-sm); }
.testimonial-card__avatar {
  width: 44px; height: 44px; border-radius: 50%; object-fit: cover;
  background: var(--color-primary);
}
.testimonial-card__name { font-weight: 600; font-size: var(--fs-sm); }
.testimonial-card__service { font-size: var(--fs-xs); color: var(--color-text-muted); }

.testimonial-nav { display: flex; justify-content: center; gap: var(--space-sm); margin-top: var(--space-md); }
.testimonial-nav button {
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1.5px solid var(--color-accent);
  color: var(--color-accent-dark);
  display: flex; align-items: center; justify-content: center;
  transition: background var(--dur-fast), color var(--dur-fast);
}
.testimonial-nav button:hover { background: var(--color-accent); color: var(--color-white); }

/* ---- 13. Counters ---------------------------------------------------------- */
.counters {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-md);
  text-align: center;
}
@media (min-width: 720px) { .counters { grid-template-columns: repeat(4, 1fr); } }
.counter__num {
  font-family: var(--font-heading);
  font-size: var(--fs-3xl);
  color: var(--color-white);
}
.counter__label {
  font-size: var(--fs-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
}

/* ---- 14. Pricing preview ---------------------------------------------------- */
.pricing-table { display: flex; flex-direction: column; gap: var(--space-sm); }
.pricing-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--space-md);
  padding: var(--space-md);
  background: var(--color-white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--dur-base), transform var(--dur-base);
}
.pricing-row:hover { box-shadow: var(--shadow-md); transform: translateX(4px); }
.pricing-row__name { font-family: var(--font-heading); font-size: var(--fs-md); }
.pricing-row__dots { flex: 1; border-bottom: 1px dotted var(--color-border); margin: 0 var(--space-sm); transform: translateY(-6px); display: none; }
.pricing-row__price { font-family: var(--font-button); font-weight: 600; color: var(--color-accent-dark); white-space: nowrap; }
@media (min-width: 640px) { .pricing-row__dots { display: block; } }

/* ---- 15. FAQ accordion ------------------------------------------------------ */
.accordion-item {
  border-bottom: 1px solid var(--color-border);
}
.accordion-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  padding: var(--space-md) 0;
  text-align: left;
  font-family: var(--font-heading);
  font-size: var(--fs-md);
  color: var(--color-dark);
}
.accordion-trigger__icon {
  flex-shrink: 0;
  width: 32px; height: 32px;
  border-radius: 50%;
  border: 1.5px solid var(--color-accent);
  display: flex; align-items: center; justify-content: center;
  position: relative;
  transition: transform var(--dur-base) var(--ease-smooth), background var(--dur-base);
}
.accordion-trigger__icon::before,
.accordion-trigger__icon::after {
  content: '';
  position: absolute;
  background: var(--color-accent-dark);
  transition: transform var(--dur-base), background var(--dur-base);
}
.accordion-trigger__icon::before { width: 12px; height: 1.5px; }
.accordion-trigger__icon::after { width: 1.5px; height: 12px; }
.accordion-item.is-open .accordion-trigger__icon { background: var(--gradient-gold); transform: rotate(180deg); }
.accordion-item.is-open .accordion-trigger__icon::after { transform: scaleY(0); }
.accordion-item.is-open .accordion-trigger__icon::before,
.accordion-item.is-open .accordion-trigger__icon::after { background: var(--color-white); }

.accordion-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--dur-base) var(--ease-smooth);
}
.accordion-panel__inner { padding-bottom: var(--space-md); }

/* ---- 16. Contact section ---------------------------------------------------- */
.contact-grid {
  display: grid;
  gap: var(--space-xl);
}
@media (min-width: 900px) { .contact-grid { grid-template-columns: 1fr 1.2fr; } }

.contact-info__item {
  display: flex;
  gap: var(--space-sm);
  align-items: flex-start;
  margin-bottom: var(--space-md);
}
.contact-info__icon {
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--color-primary);
  color: var(--color-accent-dark);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

.form-group { margin-bottom: var(--space-md); }
.form-group label {
  display: block;
  font-family: var(--font-button);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: var(--space-2xs);
}
.form-control {
  width: 100%;
  padding: 0.9rem 1.1rem;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--color-border);
  background: var(--color-white);
  font-size: var(--fs-sm);
  transition: border-color var(--dur-fast), box-shadow var(--dur-fast);
}
.form-control:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 4px rgba(199,133,151,0.15);
}
textarea.form-control { resize: vertical; min-height: 120px; }

.form-row { display: grid; gap: var(--space-md); }
@media (min-width: 600px) { .form-row--2 { grid-template-columns: 1fr 1fr; } }

.form-alert {
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-sm);
  font-size: var(--fs-sm);
  margin-bottom: var(--space-md);
}
.form-alert--success { background: #E8F5EA; color: #2E6E3B; }
.form-alert--error { background: #FBEAEA; color: #A33636; }

/* ---- 17. Footer ------------------------------------------------------------- */
.site-footer {
  background: var(--gradient-dark);
  color: rgba(255,255,255,0.8);
  padding-top: var(--space-2xl);
}
.footer-grid {
  display: grid;
  gap: var(--space-lg);
  padding-bottom: var(--space-xl);
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1.2fr; } }

.footer-brand {
  font-family: var(--font-heading);
  font-size: var(--fs-lg);
  color: var(--color-white);
  display: flex; align-items: center; gap: var(--space-2xs);
  margin-bottom: var(--space-sm);
}
.footer-brand img { height: 38px; width: 38px; border-radius: 50%; object-fit: cover; }

.footer-heading {
  font-family: var(--font-button);
  font-size: var(--fs-xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-white);
  margin-bottom: var(--space-md);
}
.footer-links li { margin-bottom: var(--space-xs); }
.footer-links a { transition: color var(--dur-fast), padding-left var(--dur-fast); }
.footer-links a:hover { color: var(--color-gold); padding-left: 4px; }

.footer-social { display: flex; gap: var(--space-sm); margin-top: var(--space-md); }
.footer-social a {
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.25);
  display: flex; align-items: center; justify-content: center;
  transition: background var(--dur-fast), transform var(--dur-fast), border-color var(--dur-fast);
}
.footer-social a:hover { background: var(--gradient-gold); border-color: transparent; color: var(--color-dark); transform: translateY(-3px); }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  justify-content: space-between;
  padding-block: var(--space-md);
  font-size: var(--fs-xs);
}
.footer-bottom a:hover { color: var(--color-gold); }

/* ---- 18. Floating action buttons -------------------------------------------- */
.floating-actions {
  position: fixed;
  right: var(--space-md);
  bottom: var(--space-md);
  z-index: var(--z-floating);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
}

.fab {
  width: 52px; height: 52px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--color-white);
  box-shadow: var(--shadow-md);
  transition: transform var(--dur-fast) var(--ease-out-soft), box-shadow var(--dur-base);
  font-size: 1.35rem;
  opacity: 0;
  transform: scale(0.6) translateY(10px);
  animation: fabIn 0.6s var(--ease-out-soft) forwards;
}
.fab:hover { transform: scale(1.08) translateY(-2px); }
.fab--whatsapp { background: #25D366; animation-delay: 0.1s; }
.fab--instagram { background: radial-gradient(circle at 30% 110%, #fdf497 0%, #fd5949 45%, #d6249f 60%, #285AEB 90%); animation-delay: 0.2s; }
.fab--book {
  width: auto;
  padding: 0 1.4rem;
  border-radius: var(--radius-full);
  background: var(--gradient-gold);
  color: var(--color-dark);
  font-family: var(--font-button);
  font-weight: 700;
  font-size: var(--fs-sm);
  gap: var(--space-2xs);
  animation-delay: 0.3s;
  box-shadow: var(--shadow-gold);
}

#back-to-top {
  position: fixed;
  /* Left, not right — .floating-actions (WhatsApp/Instagram/Book Now) owns
     the bottom-right corner and has a variable number of items, so sharing
     that corner risks this button overlapping/hiding behind those FABs. */
  left: var(--space-md);
  bottom: var(--space-md);
  z-index: var(--z-floating);
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--color-white);
  color: var(--color-accent-dark);
  box-shadow: var(--shadow-md);
  display: flex; align-items: center; justify-content: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity var(--dur-base), transform var(--dur-base), visibility var(--dur-base);
}
#back-to-top.is-visible {
  opacity: 1; visibility: visible; transform: translateY(0);
}

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

/* ---- 19. Scroll reveal ------------------------------------------------------ */
[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s var(--ease-out-soft), transform 0.8s var(--ease-out-soft);
}
[data-reveal].is-visible { opacity: 1; transform: translateY(0); }
[data-reveal="zoom"] { transform: scale(0.92); }
[data-reveal="zoom"].is-visible { transform: scale(1); }
[data-reveal="left"] { transform: translateX(-32px); }
[data-reveal="left"].is-visible { transform: translateX(0); }
[data-reveal="right"] { transform: translateX(32px); }
[data-reveal="right"].is-visible { transform: translateX(0); }

/* Stagger children automatically when parent has [data-reveal-group] */
[data-reveal-group] > * { transition-delay: calc(var(--stagger-index, 0) * 90ms); }

/* ---- 20. Keyframes ----------------------------------------------------------- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes floatSoft {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
@keyframes scrollCue {
  0% { top: -100%; }
  100% { top: 100%; }
}
@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ---- 21. Masonry gallery + filters + lightbox --------------------------------- */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-2xs);
  margin-bottom: var(--space-xl);
}
.filter-btn {
  font-family: var(--font-button);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.6rem 1.3rem;
  border-radius: var(--radius-full);
  border: 1.5px solid var(--color-border);
  color: var(--color-text-muted);
  transition: background var(--dur-fast), color var(--dur-fast), border-color var(--dur-fast), transform var(--dur-fast);
}
.filter-btn:hover { transform: translateY(-2px); border-color: var(--color-accent); color: var(--color-accent-dark); }
.filter-btn.is-active { background: var(--gradient-accent); border-color: transparent; color: var(--color-white); }

.masonry-gallery {
  column-count: 2;
  column-gap: var(--space-sm);
}
@media (min-width: 640px) { .masonry-gallery { column-count: 3; } }
@media (min-width: 1024px) { .masonry-gallery { column-count: 4; } }

.masonry-item {
  break-inside: avoid;
  margin-bottom: var(--space-sm);
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: opacity 0.4s var(--ease-out-soft), transform 0.4s var(--ease-out-soft), box-shadow var(--dur-base);
}
.masonry-item:hover { box-shadow: var(--shadow-md); }
.masonry-item.is-hidden {
  display: none;
}
.masonry-item img {
  width: 100%;
  height: auto;
  transition: transform var(--dur-slow) var(--ease-smooth);
}
.masonry-item:hover img { transform: scale(1.06); }
.masonry-item::after {
  content: '';
  position: absolute; inset: 0;
  background: var(--gradient-overlay);
  opacity: 0;
  transition: opacity var(--dur-base);
}
.masonry-item:hover::after { opacity: 1; }
.masonry-item__label {
  position: absolute;
  left: var(--space-sm); bottom: var(--space-sm); right: var(--space-sm);
  color: var(--color-white);
  font-family: var(--font-button);
  font-size: var(--fs-xs);
  letter-spacing: 0.04em;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity var(--dur-base), transform var(--dur-base);
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2xs);
}
.masonry-item:hover .masonry-item__label { opacity: 1; transform: translateY(0); }
.masonry-item__zoom {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: rgba(255,255,255,0.9);
  color: var(--color-accent-dark);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: var(--z-overlay);
  background: rgba(67, 49, 61, 0.92);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--dur-base) var(--ease-smooth), visibility var(--dur-base);
}
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox__figure {
  max-width: min(90vw, 900px);
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
}
.lightbox__image {
  max-width: 100%;
  max-height: 75vh;
  width: auto;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  transform: scale(0.96);
  transition: opacity 0.35s var(--ease-out-soft), transform 0.35s var(--ease-out-soft);
}
.lightbox__image.is-loaded { opacity: 1; transform: scale(1); }
.lightbox__caption { color: rgba(255,255,255,0.85); font-size: var(--fs-sm); text-align: center; }

.lightbox__close,
.lightbox__prev,
.lightbox__next {
  position: absolute;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: rgba(255,255,255,0.12);
  color: var(--color-white);
  display: flex; align-items: center; justify-content: center;
  border: 1px solid rgba(255,255,255,0.3);
  transition: background var(--dur-fast), transform var(--dur-fast);
}
.lightbox__close:hover,
.lightbox__prev:hover,
.lightbox__next:hover { background: rgba(255,255,255,0.25); transform: scale(1.05); }
.lightbox__close { top: var(--space-md); right: var(--space-md); }
.lightbox__prev { left: var(--space-md); top: 50%; transform: translateY(-50%); }
.lightbox__next { right: var(--space-md); top: 50%; transform: translateY(-50%); }
.lightbox__prev:hover, .lightbox__next:hover { transform: translateY(-50%) scale(1.05); }

/* ---- 22. Booking wizard --------------------------------------------------------- */
.booking-steps {
  display: flex;
  justify-content: center;
  gap: var(--space-md);
  margin-bottom: var(--space-xl);
  flex-wrap: wrap;
}
.booking-steps__item {
  display: flex;
  align-items: center;
  gap: var(--space-2xs);
  font-family: var(--font-button);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}
.booking-steps__item span {
  width: 28px; height: 28px;
  border-radius: 50%;
  border: 1.5px solid var(--color-border);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-body);
  transition: background var(--dur-base), border-color var(--dur-base), color var(--dur-base);
}
.booking-steps__item.is-active { color: var(--color-accent-dark); }
.booking-steps__item.is-active span { background: var(--gradient-accent); border-color: transparent; color: var(--color-white); }
.booking-steps__item.is-complete span { background: var(--color-gold); border-color: transparent; color: var(--color-white); }

.booking-step { display: none; animation: fadeUp 0.5s var(--ease-out-soft) both; }
.booking-step.is-active { display: block; }
.booking-step h3 { margin-bottom: var(--space-md); }

.booking-step__actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: var(--space-lg);
}

.service-select-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: var(--space-sm);
}
@media (min-width: 640px) { .service-select-grid { grid-template-columns: repeat(2, 1fr); } }

.service-select-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-sm);
  border-radius: var(--radius-md);
  border: 2px solid var(--color-border);
  cursor: pointer;
  transition: border-color var(--dur-fast), box-shadow var(--dur-fast), transform var(--dur-fast);
}
.service-select-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.service-select-card input { position: absolute; opacity: 0; pointer-events: none; }
.service-select-card__media {
  width: 64px; height: 64px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  flex-shrink: 0;
}
.service-select-card__media img { width: 100%; height: 100%; object-fit: cover; }
.service-select-card__body { display: flex; flex-direction: column; gap: 2px; flex: 1; }
.service-select-card__meta { font-size: var(--fs-xs); color: var(--color-text-muted); }
.service-select-card__check {
  width: 24px; height: 24px;
  border-radius: 50%;
  border: 1.5px solid var(--color-border);
  display: flex; align-items: center; justify-content: center;
  color: transparent;
  font-size: 13px;
  flex-shrink: 0;
  transition: background var(--dur-fast), border-color var(--dur-fast), color var(--dur-fast);
}
.service-select-card input:checked ~ .service-select-card__check {
  background: var(--gradient-gold); border-color: transparent; color: var(--color-white);
}
.service-select-card:has(input:checked) {
  border-color: var(--color-accent);
  box-shadow: var(--shadow-sm);
  background: var(--color-primary-soft);
}

.booking-datetime {
  display: grid;
  gap: var(--space-lg);
}
@media (min-width: 760px) { .booking-datetime { grid-template-columns: 1.1fr 0.9fr; } }

.calendar {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-md);
}
.calendar__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-heading);
  font-size: var(--fs-md);
  margin-bottom: var(--space-sm);
}
.calendar__nav {
  width: 34px; height: 34px;
  border-radius: 50%;
  border: 1.5px solid var(--color-border);
  display: flex; align-items: center; justify-content: center;
  transition: background var(--dur-fast), color var(--dur-fast);
}
.calendar__nav:hover { background: var(--color-accent); color: var(--color-white); }
.calendar__weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  text-align: center;
  font-size: var(--fs-xs);
  color: var(--color-text-muted);
  margin-bottom: var(--space-2xs);
}
.calendar__grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}
.calendar__day {
  aspect-ratio: 1;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  font-size: var(--fs-sm);
  transition: background var(--dur-fast), color var(--dur-fast), transform var(--dur-fast);
}
.calendar__day:not(.is-disabled):not(.is-empty) { cursor: pointer; }
.calendar__day:not(.is-disabled):not(.is-empty):hover { background: var(--color-primary); transform: scale(1.08); }
.calendar__day.is-empty { visibility: hidden; }
.calendar__day.is-disabled { color: var(--color-border); cursor: not-allowed; }
.calendar__day.is-today { border: 1.5px solid var(--color-gold); }
.calendar__day.is-selected { background: var(--gradient-accent); color: var(--color-white); }

.time-slots__label { font-size: var(--fs-sm); color: var(--color-text-muted); margin-bottom: var(--space-sm); }
.time-slots__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-2xs);
  max-height: 340px;
  overflow-y: auto;
  padding-right: 4px;
}
@media (min-width: 420px) { .time-slots__grid { grid-template-columns: repeat(3, 1fr); } }

.time-slot {
  padding: 0.6rem 0.4rem;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--color-border);
  font-family: var(--font-button);
  font-size: var(--fs-xs);
  font-weight: 600;
  transition: background var(--dur-fast), color var(--dur-fast), border-color var(--dur-fast);
}
.time-slot:hover { border-color: var(--color-accent); color: var(--color-accent-dark); }
.time-slot.is-selected { background: var(--gradient-accent); border-color: transparent; color: var(--color-white); }

.booking-review dl { display: flex; flex-wrap: wrap; gap: var(--space-2xs) var(--space-sm); }
.booking-review .review-row {
  display: flex;
  justify-content: space-between;
  width: 100%;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--color-border);
  font-size: var(--fs-sm);
}
.booking-review .review-row:last-child { border-bottom: none; }
.booking-review .review-row dt { color: var(--color-text-muted); }
.booking-review .review-row dd { margin: 0; font-weight: 600; color: var(--color-dark); text-align: right; }

.booking-confirmation { text-align: center; max-width: 480px; margin-inline: auto; }
.booking-confirmation__icon {
  width: 72px; height: 72px;
  margin-inline: auto;
  margin-bottom: var(--space-md);
  border-radius: 50%;
  background: var(--gradient-gold);
  color: var(--color-white);
  display: flex; align-items: center; justify-content: center;
  font-size: var(--fs-xl);
  animation: fabIn 0.6s var(--ease-out-soft) both;
}
.booking-confirmation__card { text-align: left; margin: var(--space-lg) 0; padding: var(--space-md); }

/* ---- 22b. Long-form content (privacy / terms) ---------------------------------- */
.prose h2 {
  font-size: var(--fs-xl);
  margin-top: var(--space-xl);
  margin-bottom: var(--space-sm);
}
.prose h2:first-child { margin-top: 0; }
.prose h3 {
  font-size: var(--fs-md);
  margin-top: var(--space-lg);
  margin-bottom: var(--space-2xs);
  color: var(--color-accent-dark);
}
.prose p { margin-bottom: var(--space-sm); line-height: 1.8; }
.prose ul, .prose ol { margin: 0 0 var(--space-sm); padding-left: 1.4rem; color: var(--color-text-muted); }
.prose li { margin-bottom: var(--space-3xs); line-height: 1.7; }
.prose a { color: var(--color-accent-dark); text-decoration: underline; text-underline-offset: 2px; }
.prose strong { color: var(--color-dark); }
.prose .updated-note {
  display: inline-block;
  font-family: var(--font-button);
  font-size: var(--fs-xs);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  background: var(--color-primary-soft);
  padding: 0.4rem 1rem;
  border-radius: var(--radius-full);
  margin-bottom: var(--space-lg);
}

/* ---- 23. Utilities ------------------------------------------------------------ */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute;
  left: var(--space-sm);
  top: -60px;
  background: var(--color-dark);
  color: var(--color-white);
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-sm);
  z-index: 1100;
  transition: top var(--dur-fast);
}
.skip-link:focus { top: var(--space-sm); }

::selection { background: var(--color-accent); color: var(--color-white); }

/* Lazy-loaded image fade-in */
img[loading="lazy"] {
  opacity: 0;
  transition: opacity 0.5s ease;
}
img[loading="lazy"].is-loaded { opacity: 1; }
