/*
Theme Name: NovaMed Health
Theme URI: https://novamed-health.example.com
Author: NovaMed Health
Description: WordPress theme for NovaMed Health - luxury wellness & infusion therapy. Converted from React. Includes header, footer, home sections, Services page, Service Detail template, booking modal, and AI assistant. Tailwind-based design with champagne gold and pale peach palette.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: novamed-health
*/

/* ==========================================================================
   Tailwind CDN handles utility classes. This file contains:
   - Custom theme extensions (colors, keyframes) that mirror index.html config
   - Overrides that must exist outside Tailwind (scrollbar, glass, noise, etc.)
   ========================================================================== */

/* Prevent flash of unstyled content: hide body until Tailwind + scripts have run */
html.novamed-loading body {
  opacity: 0;
  transition: opacity 0.08s ease-out;
}
html body {
  opacity: 1;
}

/* Custom scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #1c1917; }
::-webkit-scrollbar-thumb { background: #57534e; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #78716c; }

/* CSS custom properties for Tailwind-extended theme (used by Tailwind config script) */
:root {
  --color-primary-50: #FDFCF8;
  --color-primary-100: #F9F5EC;
  --color-primary-200: #F1E6D3;
  --color-primary-300: #E6D0A5;
  --color-primary-400: #DAB67D;
  --color-primary-500: #C69C56;
  --color-primary-600: #A97E3E;
  --color-primary-700: #876031;
  --color-primary-800: #714E2D;
  --color-primary-900: #5E412A;
  --color-primary-950: #352213;
  --color-secondary-50: #FFFBFA;
  --color-secondary-100: #FFF5F2;
  --color-secondary-200: #FFE5DE;
  --color-secondary-300: #FFD0C4;
  --color-secondary-400: #FFB3A3;
  --color-secondary-500: #FF8D75;
  --color-secondary-600: #ED6A4D;
  --font-sans: "Plus Jakarta Sans", ui-sans-serif, system-ui, sans-serif;
}

/* Mesh gradient utility */
.mesh-gradient {
  background-color: #FDFCF8;
  background-image:
    radial-gradient(at 40% 20%, hsla(38, 56%, 86%, 1) 0px, transparent 50%),
    radial-gradient(at 80% 0%, hsla(18, 100%, 94%, 1) 0px, transparent 50%),
    radial-gradient(at 0% 50%, hsla(42, 60%, 80%, 1) 0px, transparent 50%),
    radial-gradient(at 80% 50%, hsla(15, 100%, 90%, 1) 0px, transparent 50%),
    radial-gradient(at 0% 100%, hsla(40, 50%, 90%, 1) 0px, transparent 50%),
    radial-gradient(at 80% 100%, hsla(35, 60%, 55%, 0.1) 0px, transparent 50%),
    radial-gradient(at 0% 0%, hsla(18, 100%, 94%, 1) 0px, transparent 50%);
}

.glass-card {
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.5);
}
/* Stats bar: content above shimmer overlay */
.glass-card .novamed-stats {
  position: relative;
  z-index: 1;
}

.glass-card-dark {
  background: rgba(28, 25, 23, 0.6);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.bg-noise {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 50;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='1'/%3E%3C/svg%3E");
}

/* Keyframes (Tailwind config also defines these; here for fallback/override) */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-20px); }
}
@keyframes blob {
  0% { transform: translate(0px, 0px) scale(1); }
  33% { transform: translate(30px, -50px) scale(1.1); }
  66% { transform: translate(-20px, 20px) scale(0.9); }
  100% { transform: translate(0px, 0px) scale(1); }
}
@keyframes fadeInUp {
  0% { opacity: 0; transform: translateY(20px); }
  100% { opacity: 1; transform: translateY(0); }
}
@keyframes shimmer {
  0% { background-position: -1000px 0; }
  100% { background-position: 1000px 0; }
}
@keyframes gradient-x {
  0%, 100% { background-size: 200% 200%; background-position: left center; }
  50% { background-size: 200% 200%; background-position: right center; }
}

.animate-float { animation: float 6s ease-in-out infinite; }
.animate-float-delayed { animation: float 6s ease-in-out 3s infinite; }
.animate-blob { animation: blob 7s infinite; }
.animate-fade-in-up { animation: fadeInUp 0.8s ease-out forwards; }
.animate-shimmer { animation: shimmer 2s linear infinite; }
.animate-pulse-slow { animation: pulse 8s cubic-bezier(0.4, 0, 0.6, 1) infinite; }
.animate-gradient-x { animation: gradient-x 15s ease infinite; }

.hide-scrollbar { scrollbar-width: none; -ms-overflow-style: none; }
.hide-scrollbar::-webkit-scrollbar { display: none; }

.animation-delay-2000 { animation-delay: 2s; }
.animation-delay-4000 { animation-delay: 4s; }

/* Hero: 3D card tilt to match React (rotate-y-12) */
.perspective-1000 { perspective: 1000px; }
.rotate-y-12 { transform: rotateY(12deg); }
.rotate-y-12:hover { transform: rotateY(0); }

/* Innovation bento: abstract radial (matches React from-primary-500/20 via-slate-950/50 to-slate-950) */
.novamed-innovation-radial {
  background: radial-gradient(circle at center, rgba(198, 156, 86, 0.2) 0%, rgba(2, 6, 23, 0.5) 50%, #0c0a09 100%);
}

/* Navbar scrolled state (when not using Tailwind script in time) */
nav.novamed-nav-scrolled {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.03);
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

/* ==========================================================================
   Stats section – ensure values and labels always display
   ========================================================================== */
.novamed-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}
@media (min-width: 1024px) {
  .novamed-stats {
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
  }
  .novamed-stats .novamed-stat-item {
    border-left: 1px solid rgba(226, 232, 240, 0.5);
    padding-left: 2rem;
  }
  .novamed-stats .novamed-stat-item:first-child {
    border-left: none;
    padding-left: 0;
  }
}
.novamed-stat-value {
  font-size: 2.25rem;
  font-weight: 800;
  line-height: 1.2;
  display: block;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
@media (min-width: 1024px) {
  .novamed-stat-value {
    font-size: 3.75rem;
  }
}
.novamed-stat-value.novamed-stat-primary {
  background-image: linear-gradient(to bottom right, var(--color-primary-400), var(--color-primary-600));
}
.novamed-stat-value.novamed-stat-secondary {
  background-image: linear-gradient(to bottom right, #FFB3A3, #ED6A4D);
}
.novamed-stat-value.novamed-stat-mixed {
  background-image: linear-gradient(to bottom right, var(--color-primary-500), #FF8D75);
}
.novamed-stat-value.novamed-stat-slate {
  background-image: linear-gradient(to bottom right, #a8a29e, #57534e);
}
.novamed-stat-label {
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #64748b;
  margin-top: 0.5rem;
}
.novamed-stat-item:hover .novamed-stat-label {
  color: #1e293b;
}

/* Primary CTA button – consistent “Book Now” style */
.novamed-btn-book {
  background-color: #1c1917;
  color: #fff;
  font-weight: 700;
  border-radius: 9999px;
  transition: background-color 0.2s, transform 0.2s, box-shadow 0.2s;
}
.novamed-btn-book:hover {
  background-color: #292524;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}
.novamed-btn-book:focus {
  outline: 2px solid #1c1917;
  outline-offset: 2px;
}
