/* Berry Thai Spa — Custom Styles */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
  --bg: #1c1917;
  --card: #221e1b;
  --primary: #cc8f33;
  --primary-dark: #20bd5a;
  --foreground: #ece8e0;
  --wa-green: #25D366;
  --wa-green-hover: #20bd5a;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background-color: var(--bg);
  color: var(--foreground);
  font-family: 'Plus Jakarta Sans', sans-serif;
  -webkit-font-smoothing: antialiased;
}

/* ── Marquee ── */
@keyframes marquee {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.marquee-track {
  display: flex;
  white-space: nowrap;
  animation: marquee 22s linear infinite;
}

/* ── Fade-in on scroll ── */
.fade-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Custom accordion ── */
.faq-answer {
  display: none;
  overflow: hidden;
}
.faq-answer.open {
  display: block;
}

/* ── Mobile safe area ── */
.pb-safe {
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: rgba(204,143,51,0.3); border-radius: 3px; }

/* ── Floating CTA ── */
#floating-cta {
  display: none;
  position: fixed;
  right: 0;
  bottom: 96px;
  z-index: 50;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}
#floating-cta.visible {
  display: flex;
}
.fcta-btn {
  display: flex;
  align-items: center;
  border-radius: 12px 0 0 12px;
  overflow: hidden;
  text-decoration: none;
  min-height: 52px;
  box-shadow: -4px 4px 20px rgba(0,0,0,0.5);
  transition: all 0.2s ease;
}
.fcta-btn .fcta-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  min-height: 52px;
  flex-shrink: 0;
}
.fcta-btn .fcta-label {
  max-width: 0;
  overflow: hidden;
  white-space: nowrap;
  transition: max-width 0.3s ease, padding 0.3s ease;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding-right: 0;
}
.fcta-btn:hover .fcta-label {
  max-width: 140px;
  padding-right: 16px;
}
.fcta-wa { background: var(--wa-green); color: #fff; }
.fcta-wa:hover { background: var(--wa-green-hover); }
.fcta-call { background: #2a2522; color: #fff; border-top: 1px solid rgba(255,255,255,0.08); }
.fcta-call:hover { background: rgba(204,143,51,0.15); }
.fcta-dir { background: #2a2522; color: #fff; border-top: 1px solid rgba(255,255,255,0.08); }
.fcta-dir:hover { background: rgba(204,143,51,0.15); }
.fcta-label-call, .fcta-label-dir { color: var(--primary); }
#fcta-dismiss {
  position: absolute;
  top: -20px;
  right: 8px;
  background: none;
  border: none;
  color: rgba(255,255,255,0.3);
  cursor: pointer;
  font-size: 12px;
  line-height: 1;
}
#fcta-dismiss:hover { color: rgba(255,255,255,0.7); }

/* ── Hero bg overlay ── */
.hero-img-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, var(--bg) 0%, rgba(28,25,23,0.80) 50%, rgba(28,25,23,0.20) 100%);
}
.hero-img-overlay2 { position: absolute; inset: 0; background: rgba(28,25,23,0.40); }

/* ── Treatment card ── */
.treatment-card:hover { border-color: rgba(204,143,51,0.30); }
.treatment-card:hover h3 { color: var(--primary); }
.treatment-card img { transition: transform 0.7s ease; }
.treatment-card:hover img { transform: scale(1.05); }

/* ── Therapy Selector card ── */
.selector-card:hover { border-color: rgba(204,143,51,0.40); }
.selector-card:hover h3 { color: var(--primary); }

/* ── Table alternate rows ── */
.compare-row-even { background: var(--card); }
.compare-row-odd { background: var(--bg); }
.compare-row:hover { background: rgba(204,143,51,0.05); }

/* ── Mobile menu overlay ── */
#mobile-menu {
  display: none;
  position: fixed; inset: 0;
  z-index: 50;
  background: rgba(28,25,23,0.97);
  backdrop-filter: blur(20px);
  flex-direction: column;
  padding: 24px;
}
#mobile-menu.open { display: flex; }

/* ── Header scroll state ── */
header.scrolled {
  background: rgba(28,25,23,0.95) !important;
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.05);
  padding-top: 16px !important;
  padding-bottom: 16px !important;
  margin-top: 0 !important;
}

/* ── Responsive utilities ── */
@media (max-width: 1023px) {
  .desktop-cta { display: none !important; }
  .mobile-sticky { display: flex !important; }
  #floating-cta { display: none !important; }
}
@media (min-width: 1024px) {
  .mobile-sticky { display: none !important; }
  .mobile-menu-btn { display: none !important; }
}
