/* ─────────────────────────────────────────────────────────────────────────────
 * Sijis Wellness — Custom Stylesheet
 * Used on top of Tailwind for things Tailwind cannot do cleanly.
 * ──────────────────────────────────────────────────────────────────────────── */

/* ─── Base ─────────────────────────────────────────────────────────────────── */

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5rem; /* leave room for sticky header when jumping to anchors */
}

body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* Better focus rings — visible but not ugly */
*:focus-visible {
  outline: 2px solid #1a1a1a;
  outline-offset: 3px;
  border-radius: 2px;
}

/* ─── Typography Refinements ───────────────────────────────────────────────── */

.font-heading {
  font-feature-settings: "lnum", "kern", "liga";
  letter-spacing: -0.01em;
}

/* Large heading optical adjustments */
h1.display, h2.display {
  letter-spacing: -0.02em;
  line-height: 1.05;
}

/* ─── Decorative Underline (for section headings) ──────────────────────────── */

.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #555;
  margin-bottom: 1rem;
}

.section-eyebrow::before {
  content: "";
  width: 2rem;
  height: 1px;
  background: #c7e3d4;
}

/* ─── Buttons ──────────────────────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  font-family: "Inter", sans-serif;
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  border-radius: 999px;
  transition: all 0.25s ease;
  white-space: nowrap;
  cursor: pointer;
  text-decoration: none;
}

.btn-primary {
  background: #1a1a1a;
  color: #fff;
}
.btn-primary:hover {
  background: #2a2a2a;
  transform: translateY(-1px);
  box-shadow: 0 10px 30px -10px rgba(0,0,0,0.3);
}

.btn-secondary {
  background: transparent;
  color: #1a1a1a;
  border: 1.5px solid #1a1a1a;
}
.btn-secondary:hover {
  background: #1a1a1a;
  color: #fff;
}

.btn-sage {
  background: #c7e3d4;
  color: #1a1a1a;
}
.btn-sage:hover {
  background: #b6d6c4;
  transform: translateY(-1px);
}

/* ─── Cards ────────────────────────────────────────────────────────────────── */

.card {
  background: #fff;
  border-radius: 1.25rem;
  overflow: hidden;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px -15px rgba(0,0,0,0.15);
}

/* Image placeholder — used until real images are added */
.img-placeholder {
  position: relative;
  background: linear-gradient(135deg, #e8efe9 0%, #c7e3d4 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #1a1a1a;
  font-family: "Inter", sans-serif;
  font-size: 0.875rem;
  text-align: center;
  padding: 1rem;
  overflow: hidden;
}
.img-placeholder::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 12px,
    rgba(255,255,255,0.15) 12px,
    rgba(255,255,255,0.15) 24px
  );
  pointer-events: none;
}
.img-placeholder span {
  position: relative;
  z-index: 1;
  background: rgba(255,255,255,0.85);
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  backdrop-filter: blur(4px);
}

/* ─── Hero ─────────────────────────────────────────────────────────────────── */

.hero {
  position: relative;
  min-height: 100svh; /* small-viewport-height for mobile */
  min-height: 100vh;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(0,0,0,0.15) 0%,
    rgba(0,0,0,0.45) 60%,
    rgba(0,0,0,0.7) 100%
  );
  z-index: 2; /* sit above both poster image and video */
}

/* Atmospheric video layer — sits on top of the poster <picture>, below the gradient. */
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  pointer-events: none;
}

/* Mobile gets its own portrait-optimized video (~2.6 MB) injected via JS. */

/* Respect users who prefer less motion. */
@media (prefers-reduced-motion: reduce) {
  .hero-video { display: none; }
}

/* ─── Floating WhatsApp Button ─────────────────────────────────────────────── */

.whatsapp-btn {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 45;
  width: 3.5rem;
  height: 3.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #25D366;
  color: #fff;
  border-radius: 9999px;
  box-shadow: 0 8px 24px -6px rgba(37, 211, 102, 0.55);
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1),
              background 0.25s ease,
              bottom 0.3s ease;
}
.whatsapp-btn:hover {
  background: #1ebe57;
  transform: scale(1.08);
}
.whatsapp-btn:active {
  transform: scale(0.96);
}
.whatsapp-btn svg {
  width: 1.85rem;
  height: 1.85rem;
}

/* When the mobile sticky CTA is visible, lift the WhatsApp button above it
   so the two never overlap. Desktop has no CTA so this only kicks in on mobile. */
@media (max-width: 767px) {
  body.cta-raised .whatsapp-btn {
    bottom: 5.25rem;
  }
}

/* ─── Sticky Booking Bar (mobile only) ─────────────────────────────────────── */

.sticky-cta {
  position: fixed;
  bottom: 1rem;
  left: 1rem;
  right: 1rem;
  z-index: 40;
  transform: translateY(150%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
.sticky-cta.visible {
  transform: translateY(0);
}
@media (min-width: 768px) {
  .sticky-cta { display: none; }
}

/* ─── Accordion (FAQ) ──────────────────────────────────────────────────────── */

.accordion-item {
  border-bottom: 1px solid #e6e3da;
}
.accordion-trigger {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 0;
  text-align: left;
  cursor: pointer;
  background: transparent;
  border: none;
  font-family: "Times New Roman", Georgia, serif;
  font-size: 1.25rem;
  color: #1a1a1a;
}
.accordion-trigger:hover {
  color: #555;
}
.accordion-icon {
  flex-shrink: 0;
  width: 1.5rem;
  height: 1.5rem;
  transition: transform 0.3s ease;
}
.accordion-trigger[aria-expanded="true"] .accordion-icon {
  transform: rotate(45deg);
}
.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
}
.accordion-trigger[aria-expanded="true"] + .accordion-content {
  max-height: 500px;
  padding-bottom: 1.5rem;
}

/* ─── Mobile Menu ──────────────────────────────────────────────────────────── */

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: #fafaf7;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  padding: 5rem 2rem 2rem;
}
.mobile-menu.open {
  transform: translateX(0);
}
/* Only style real nav links — the CTA button (.btn) below stays as a button */
.mobile-menu a[data-mobile-link] {
  display: block;
  padding: 1.25rem 0;
  font-family: "Times New Roman", Georgia, serif;
  font-size: 1.75rem;
  color: #1a1a1a;
  border-bottom: 1px solid #e6e3da;
  text-decoration: none;
}
.mobile-menu a[data-mobile-link]:hover {
  color: #555;
}

/* ─── Reveal-on-scroll ─────────────────────────────────────────────────────── */

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ─── Utility ──────────────────────────────────────────────────────────────── */

.container-narrow {
  max-width: 65rem;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.container-wide {
  max-width: 80rem;
  margin: 0 auto;
  padding: 0 1.25rem;
}

@media (min-width: 768px) {
  .container-narrow, .container-wide {
    padding: 0 2rem;
  }
}

/* Subtle divider line */
.divider {
  width: 3rem;
  height: 1px;
  background: #1a1a1a;
  margin: 1.5rem auto;
  opacity: 0.3;
}

/* Pill (used for "Coming Soon" status etc.) */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.pill-active {
  background: #c7e3d4;
  color: #1a1a1a;
}
.pill-soon {
  background: #f0ede5;
  color: #555;
}
.pill-active::before {
  content: "";
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: #2a8060;
  box-shadow: 0 0 0 4px rgba(42, 128, 96, 0.2);
}

/* No body scroll when mobile menu is open */
body.menu-open {
  overflow: hidden;
}

/* ─── Lightbox ─────────────────────────────────────────────────────────────── */

body.lb-locked {
  overflow: hidden;
}

.lb-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 10, 10, 0.94);
  -webkit-backdrop-filter: blur(8px);
          backdrop-filter: blur(8px);
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  transition: opacity 0.2s ease-out;
}
.lb-overlay.lb-open {
  display: flex;
  opacity: 1;
}

.lb-stage {
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 100%;
  max-height: 100%;
}

.lb-image {
  max-width: 92vw;
  max-height: 88vh;
  object-fit: contain;
  border-radius: 12px;
  display: block;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5);
  user-select: none;
  -webkit-user-drag: none;
}

.lb-close,
.lb-prev,
.lb-next {
  position: fixed;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  transition: background 0.15s ease, transform 0.15s ease;
  -webkit-tap-highlight-color: transparent;
  padding: 0;
  z-index: 1;
  font-family: inherit;
}
.lb-close:hover,
.lb-prev:hover,
.lb-next:hover {
  background: rgba(255, 255, 255, 0.22);
}
.lb-close:focus-visible,
.lb-prev:focus-visible,
.lb-next:focus-visible {
  outline: 2px solid white;
  outline-offset: 3px;
}

.lb-close {
  top: 1rem;
  right: 1rem;
  width: 2.75rem;
  height: 2.75rem;
  font-size: 1.6rem;
  line-height: 1;
}

.lb-prev,
.lb-next {
  top: 50%;
  transform: translateY(-50%);
  width: 3rem;
  height: 3rem;
  font-size: 2rem;
  line-height: 1;
}
.lb-prev { left: 1rem; }
.lb-next { right: 1rem; }
.lb-prev:hover { transform: translateY(-50%) scale(1.05); }
.lb-next:hover { transform: translateY(-50%) scale(1.05); }

.lb-counter {
  position: fixed;
  bottom: 1.25rem;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.8125rem;
  letter-spacing: 0.08em;
  background: rgba(0, 0, 0, 0.45);
  padding: 0.4rem 0.95rem;
  border-radius: 9999px;
  white-space: nowrap;
}

@media (max-width: 640px) {
  .lb-close { top: 0.75rem; right: 0.75rem; width: 2.5rem; height: 2.5rem; }
  .lb-prev,
  .lb-next { width: 2.5rem; height: 2.5rem; font-size: 1.6rem; }
  .lb-prev { left: 0.5rem; }
  .lb-next { right: 0.5rem; }
  .lb-image { max-width: 96vw; max-height: 82vh; }
}
