/* The Lipo Lab — static-site interaction layer (no framework) */

/* Scroll reveal — only hidden when JS is available to reveal them */
html.js [data-reveal] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
html.js [data-reveal].revealed {
  opacity: 1;
  transform: none;
}

/* Sticky navbar card */
#site-header.stuck {
  position: fixed;
  top: 0;
  padding-top: 12px;
}
#site-header.stuck > div {
  border-radius: 24px;
}
body.has-stuck-header {
  padding-top: 0;
}

/* FAQ accordion */
.faq-answer {
  overflow: hidden;
}
.faq-q span span:last-child {
  transition: opacity 0.3s ease;
}
.faq-q[aria-expanded="true"] span span:last-child {
  opacity: 0;
}

/* Mobile menu panel */
.mobile-menu-panel {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: var(--blush-50, #fef7f6);
  display: flex;
  flex-direction: column;
  padding: 24px 20px 40px;
  overflow-y: auto;
}
.mobile-menu-panel[hidden] {
  display: none;
}
.mobile-menu-panel .menu-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 40px;
}
.mobile-menu-panel nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.mobile-menu-panel nav a {
  font-family: var(--font-body, "Jost", sans-serif);
  font-size: 1.5rem;
  font-weight: 300;
  color: var(--ink, #2b2724);
  padding: 12px 8px;
  text-decoration: none;
  border-bottom: 1px dashed var(--rose, #f7b0b1);
}
.mobile-menu-panel nav a:hover {
  color: var(--rose-ink, #c97f84);
}
.mobile-menu-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 9999px;
  background: var(--rose, #f7b0b1);
  color: var(--ink, #2b2724);
  border: 0;
  cursor: pointer;
  font-size: 1.25rem;
  line-height: 1;
}

/* Gallery lightbox */
.site-lightbox {
  position: fixed;
  inset: 0;
  z-index: 70;
  background: rgba(43, 39, 36, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.site-lightbox[hidden] {
  display: none;
}
.site-lightbox img {
  max-width: 100%;
  max-height: 85vh;
  object-fit: contain;
}
.site-lightbox button {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 9999px;
  background: #fff;
  color: var(--ink, #2b2724);
  border: 0;
  cursor: pointer;
  font-size: 1.25rem;
}
.site-lightbox .lb-close { top: 20px; right: 20px; }
.site-lightbox .lb-prev { left: 20px; top: 50%; transform: translateY(-50%); }
.site-lightbox .lb-next { right: 20px; top: 50%; transform: translateY(-50%); }
.site-lightbox button:focus-visible {
  outline: 2px solid var(--rose, #f7b0b1);
  outline-offset: 2px;
}

/* Contact form success note */
.form-success {
  font-family: var(--font-body, "Jost", sans-serif);
  font-weight: 300;
  font-size: 1.125rem;
  line-height: 1.8;
  color: var(--ink, #2b2724);
  background: var(--mint, #f5fbee);
  padding: 32px;
  text-align: center;
}

/* Map embed */
.map-embed {
  width: 100%;
  height: 100%;
  min-height: 320px;
  border: 0;
  display: block;
}

@media (prefers-reduced-motion: reduce) {
  html.js [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
