/* ── Asya Thai Spa — Custom Styles ────────────────── */
/* These extend Tailwind CDN with the same custom classes from the React version */

/* ── CSS Variables ─────────────────────────────────── */
:root {
  --font-sans: 'Lato', sans-serif;
  --font-serif: 'Playfair Display', serif;
  --background: 0 0% 4%;
  --foreground: 46 20% 90%;
  --card: 0 0% 7%;
  --card-foreground: 46 20% 90%;
  --card-border: 0 0% 13%;
  --popover: 0 0% 7%;
  --popover-foreground: 46 20% 90%;
  --popover-border: 0 0% 13%;
  --primary: 43 74% 49%;
  --primary-foreground: 0 0% 4%;
  --secondary: 0 0% 9%;
  --secondary-foreground: 46 20% 90%;
  --muted: 0 0% 10%;
  --muted-foreground: 46 8% 55%;
  --accent: 43 74% 49%;
  --accent-foreground: 0 0% 4%;
  --destructive: 0 62.8% 30.6%;
  --destructive-foreground: 0 0% 98%;
  --border: 0 0% 14%;
  --input: 0 0% 16%;
  --ring: 43 74% 49%;
  --radius: 0.5rem;
  --elevate-1: rgba(255,255,255,.04);
  --elevate-2: rgba(255,255,255,.08);
  --button-outline: rgba(255,255,255,.10);
}

/* ── Base ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; border-color: hsl(var(--border)); }
html { scroll-behavior: smooth; }
body {
  background-color: hsl(var(--background));
  color: hsl(var(--foreground));
  font-family: var(--font-sans);
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  margin: 0; padding: 0;
}
h1,h2,h3,h4,h5,h6 {
  font-family: var(--font-serif);
  font-weight: 400;
  letter-spacing: 0.01em;
}
::selection { background: rgba(184,135,40,0.25); color: white; }

/* ── Scrollbar ────────────────────────────────────── */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: hsl(var(--background)); }
::-webkit-scrollbar-thumb { background: rgba(184,135,40,0.3); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: rgba(184,135,40,0.6); }

/* ── Gold Gradient Text ───────────────────────────── */
.text-gradient-gold {
  background: linear-gradient(135deg, #C5962A 0%, #F5E27D 25%, #BF953F 50%, #FCF6BA 70%, #B38728 90%, #F0D060 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  background-size: 200% 200%;
}

/* ── Gold Gradient Background ─────────────────────── */
.bg-gradient-gold {
  background: linear-gradient(135deg, #BF953F 0%, #F0D060 40%, #AA771C 70%, #E9CA60 100%) !important;
}

/* ── Glass Panel ──────────────────────────────────── */
.glass-panel {
  background: rgba(255,255,255,0.025);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,0.06);
}

/* ── Gold Border ──────────────────────────────────── */
.gold-border { border: 1px solid rgba(184,135,40,0.35) !important; }

/* ── Section Label ────────────────────────────────── */
.section-label {
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: hsl(var(--primary));
  margin-bottom: 0.75rem;
  display: block;
}

/* ── Shadow Gold ──────────────────────────────────── */
.shadow-gold { box-shadow: 0 0 25px rgba(184,135,40,0.4); }

/* ── Entrance animations (replaces framer-motion animate) ── */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(25px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes fadeInLeft {
  from { opacity: 0; transform: translateX(-20px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes scaleX {
  from { transform: scaleX(0); }
  to   { transform: scaleX(1); }
}
@keyframes bounceY {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(8px); }
}
@keyframes ping {
  75%, 100% { transform: scale(2); opacity: 0; }
}
@keyframes spin {
  to { transform: rotate(360deg); }
}

.anim-fade-up    { animation: fadeInUp  0.8s cubic-bezier(0.22,1,0.36,1) both; }
.anim-fade-in    { animation: fadeIn    0.8s ease both; }
.anim-fade-left  { animation: fadeInLeft 0.7s ease both; }
.anim-scale-x    { animation: scaleX   0.6s ease both; transform-origin: left; }
.anim-bounce-y   { animation: bounceY  1.6s ease-in-out infinite; }
.anim-spin       { animation: spin     1s linear infinite; }
.anim-ping       { animation: ping     1.5s cubic-bezier(0,0,0.2,1) infinite; }

.delay-100 { animation-delay: 0.1s; }
.delay-200 { animation-delay: 0.2s; }
.delay-300 { animation-delay: 0.3s; }
.delay-400 { animation-delay: 0.4s; }
.delay-500 { animation-delay: 0.5s; }
.delay-600 { animation-delay: 0.6s; }
.delay-700 { animation-delay: 0.7s; }
.delay-900 { animation-delay: 0.9s; }

/* ── Header ───────────────────────────────────────── */
#site-header { position: fixed; top: 0; left: 0; right: 0; z-index: 200; transition: all 0.5s; }
#site-header.scrolled #top-strip { max-height: 0; opacity: 0; overflow: hidden; }
#site-header.scrolled #main-nav { background: rgba(8,8,6,0.98); backdrop-filter: blur(24px); border-bottom: 1px solid rgba(255,255,255,0.08); box-shadow: 0 4px 30px rgba(0,0,0,0.7); }
#site-header:not(.scrolled) #main-nav { background: linear-gradient(to bottom, rgba(0,0,0,0.9), rgba(0,0,0,0.1)); }
#top-strip { max-height: 60px; opacity: 1; transition: max-height 0.5s ease, opacity 0.5s ease; }

/* ── Nav Dropdown ─────────────────────────────────── */
#treatments-dropdown {
  position: absolute; top: 100%; left: 0; min-width: 224px; z-index: 999;
  display: none; padding-top: 8px;
}
#treatments-dropdown.open { display: block; }
.dropdown-panel {
  background: #0d0d0a;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.9);
  overflow: hidden;
  padding: 8px 0;
}

/* ── Mobile Menu ──────────────────────────────────── */
#mobile-menu { display: none; background: rgba(8,8,6,0.99); backdrop-filter: blur(24px); border-bottom: 1px solid rgba(255,255,255,0.08); }
#mobile-menu.open { display: block; }

/* ── Scroll Booking Bar ───────────────────────────── */
#scroll-booking-bar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 300;
  transform: translateY(-100%); opacity: 0;
  transition: transform 0.35s cubic-bezier(0.34,1.56,0.64,1), opacity 0.35s ease;
  display: none;
}
#scroll-booking-bar.visible { transform: translateY(0); opacity: 1; }
@media (min-width: 768px) { #scroll-booking-bar { display: block; } }

/* ── WhatsApp Float ───────────────────────────────── */
#wa-float {
  position: fixed; bottom: 96px; right: 20px; z-index: 100;
  animation: fadeIn 0.5s ease 1.5s both;
}
@media (min-width: 768px) { #wa-float { bottom: 32px; } }

/* ── Mobile Sticky Bar ────────────────────────────── */
#mobile-sticky-bar {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 90;
  background: rgba(8,8,6,0.97);
  backdrop-filter: blur(12px);
  border-top: 1px solid rgba(255,255,255,0.1);
  box-shadow: 0 -8px 30px rgba(0,0,0,0.85);
  display: grid; grid-template-columns: 1fr 1fr 1fr; height: 62px;
}
@media (min-width: 768px) { #mobile-sticky-bar { display: none; } }

/* ── Treatment Card Hover ─────────────────────────── */
.treatment-card:hover .treatment-bg { transform: scale(1.1); }
.treatment-card .treatment-bg { transition: transform 0.7s ease; }
.treatment-card:hover .treatment-name { color: hsl(var(--primary)); }

/* ── Prose (Privacy Policy) ───────────────────────── */
.prose-custom { color: hsl(var(--muted-foreground)); line-height: 1.8; }
.prose-custom h2 { color: white; font-family: var(--font-serif); font-size: 1.75rem; margin-top: 2rem; margin-bottom: 1rem; }
.prose-custom p { margin-bottom: 1rem; }

/* ── Map Dark Mode ────────────────────────────────── */
.map-dark { filter: invert(90%) hue-rotate(180deg) contrast(110%); }

/* ── Utility overrides ────────────────────────────── */
.line-clamp-2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.line-clamp-3 { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.not-italic { font-style: normal; }
.origin-left { transform-origin: left; }
