/* ===================================
   SHIVA ZEN — REDESIGN 2026
   Premium Aesthetic Clinic
   =================================== */

/* ─── Design Tokens ─── */
:root {
  /* Primary — Warm Gold */
  --primary: #C4A35A;
  --primary-dark: #A68B3E;
  --primary-light: #F5EDDA;
  --primary-glow: rgba(196, 163, 90, 0.25);

  /* Back-compat aliases for old templates */
  --primary-color: #C4A35A;
  --secondary-color: #C08B7F;
  --background-light: #FBF8F4;

  /* Secondary — Warm Rose */
  --secondary: #C08B7F;
  --secondary-light: #F2E1DD;

  /* Neutrals */
  --bg-cream: #FBF8F4;
  --bg-warm: #F5F0EA;
  --bg-white: #FFFFFF;
  --bg-dark: #1A1714;
  --bg-dark-warm: #2A2520;

  --text-dark: #2D2A26;
  --text-body: #4A4640;
  --text-muted: #8A857D;
  --text-light: #B5AFA6;
  --text-white: #FFFFFF;
  --text-on-dark: #F0ECE6;

  --border: #E8E3DB;
  --border-light: #F0ECE6;

  /* Shadows */
  --shadow-xs: 0 1px 3px rgba(0,0,0,0.04);
  --shadow-sm: 0 4px 16px rgba(0,0,0,0.06);
  --shadow-md: 0 8px 32px rgba(0,0,0,0.08);
  --shadow-lg: 0 16px 48px rgba(0,0,0,0.12);
  --shadow-gold: 0 8px 32px rgba(196, 163, 90, 0.2);

  /* Radius */
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --radius-pill: 50px;

  /* Transitions */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --transition: 0.3s var(--ease);
  --transition-slow: 0.5s var(--ease);
}

/* ─── Reset & Base ─── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Lato', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-body);
  background: var(--bg-cream);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-dark);
  margin-bottom: 0.75rem;
}

p { margin-bottom: 1rem; color: var(--text-body); }

a { text-decoration: none; transition: all var(--transition); color: var(--primary); }
a:hover { color: var(--primary-dark); }

img { max-width: 100%; height: auto; }

/* ─── Layout ─── */
.main-content { min-height: calc(100vh - 160px); }

.container {
  width: 100%; max-width: 1200px;
  margin: 0 auto; padding: 0 20px;
}

/* ─── Buttons ─── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; padding: 14px 28px;
  border-radius: var(--radius-pill);
  font-weight: 700; font-size: 0.9rem;
  text-align: center; text-transform: none;
  letter-spacing: 0.3px;
  font-family: 'Lato', sans-serif;
  transition: all var(--transition);
  cursor: pointer; border: none;
  position: relative; overflow: hidden;
}

.btn::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(rgba(255,255,255,0.15), transparent);
  opacity: 0; transition: opacity 0.3s;
}
.btn:hover::after { opacity: 1; }

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%) !important;
  color: white !important;
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-gold);
  color: white !important;
}
.btn-primary:active { transform: translateY(0); }
.btn-primary:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

.btn-outline {
  background: transparent;
  border: 2px solid var(--primary) !important;
  color: var(--primary) !important;
}
.btn-outline:hover {
  background: var(--primary) !important;
  color: white !important;
  border-color: var(--primary) !important;
}

.btn-light { background: white; color: var(--text-dark); box-shadow: var(--shadow-xs); }
.btn-light:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); color: var(--text-dark); }

.bg-primary { background-color: var(--primary) !important; }

/* ─── Cards ─── */
.card {
  background: var(--bg-white);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-xs);
  transition: all var(--transition);
  overflow: hidden;
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-light);
}
.card-body { padding: 1.75rem; }

/* Glass Card */
.glass-card {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,0.5);
  box-shadow: var(--shadow-sm);
  border-radius: var(--radius-md);
}

/* ─── Forms ─── */
.form-control {
  width: 100%; padding: 14px 18px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 1rem; font-family: 'Lato', sans-serif;
  transition: all var(--transition);
  background: var(--bg-white);
  color: var(--text-dark);
}
.form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px var(--primary-glow);
}
.form-control::placeholder { color: var(--text-light); }

.form-label {
  display: block; margin-bottom: 0.5rem;
  font-weight: 700; font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase; letter-spacing: 0.5px;
}

/* ─── Header ─── */
.header-container {
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(0,0,0,0.04);
  box-shadow: 0 2px 20px rgba(0,0,0,0.04);
  z-index: 1000;
  transition: all var(--transition);
}

.header-logo { max-height: 55px; transition: transform var(--transition); }
.header-logo:hover { transform: scale(1.05); }

.nav-link {
  color: var(--text-dark) !important;
  font-weight: 700 !important;
  font-size: 0.88rem !important;
  padding: 0.5rem 1.2rem !important;
  transition: color var(--transition) !important;
  position: relative;
}
.nav-link::after {
  content: ''; position: absolute;
  width: 0; height: 2px; bottom: 0;
  left: 50%; transform: translateX(-50%);
  background: var(--primary);
  transition: width var(--transition);
}
.nav-link:hover { color: var(--primary) !important; }
.nav-link:hover::after { width: 70%; }

/* ══════════════════════════════════════
   HERO SECTIONS — CRITICAL FIX
   The img must NOT be affected by > * z-index.
   We use a specific child selector instead.
   ══════════════════════════════════════ */
.hero-section {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  background: var(--bg-dark-warm);
}

/* Dark overlay via ::before */
.hero-section::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  width: 100%; height: 100%;
  background: linear-gradient(180deg, rgba(30,25,20,0.55) 0%, rgba(30,25,20,0.75) 100%);
  z-index: 2;
  pointer-events: none;
}

/* Background image — must sit behind overlay */
.hero-section img.hero-bg,
.hero-section .hero-bg {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  object-fit: cover !important;
  z-index: 1 !important;
  display: block;
}

/* Content inside hero — sits above overlay */
.hero-section > .container,
.hero-section > div:not(.hero-bg) {
  position: relative;
  z-index: 3;
}

.hero-section h1,
.hero-section .display-4,
.hero-section .display-5 {
  color: white !important;
  font-size: 3rem;
  text-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

.hero-section p,
.hero-section .lead {
  color: rgba(255,255,255,0.9) !important;
}

.hero-section .hero-badge {
  display: inline-block;
  padding: 6px 20px;
  background: rgba(196, 163, 90, 0.2);
  border: 1px solid rgba(196, 163, 90, 0.4);
  border-radius: var(--radius-pill);
  color: var(--primary-light);
  font-size: 0.8rem; font-weight: 700;
  letter-spacing: 2px; text-transform: uppercase;
  margin-bottom: 1rem;
}

/* ─── Section Titles ─── */
.section-label {
  display: inline-block;
  color: var(--primary);
  font-size: 0.78rem; font-weight: 800;
  letter-spacing: 3px; text-transform: uppercase;
  margin-bottom: 0.75rem;
}
.section-title {
  font-family: 'Playfair Display', serif;
  font-size: 2.2rem; font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
}
.section-divider {
  width: 50px; height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--primary-dark));
  border-radius: 2px;
  margin: 0.75rem auto 0;
}

/* ══════════════════════════════════════
   FOOTER — Force dark background
   ══════════════════════════════════════ */
footer.footer,
.footer {
  background: var(--bg-dark) !important;
  color: var(--text-on-dark) !important;
  padding: 3rem 0 0 !important;
}

.footer a { color: rgba(255,255,255,0.6); }
.footer a:hover { color: white; }
.footer h6 { color: var(--primary) !important; }
.footer p, .footer span { color: rgba(255,255,255,0.6); }

/* ─── WhatsApp Float ─── */
.whatsapp-float {
  position: fixed; bottom: 28px; right: 28px;
  background: #25D366; color: white;
  width: 58px; height: 58px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 28px;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4);
  z-index: 1000;
  transition: all var(--transition);
}
.whatsapp-float:hover {
  background: #20BA5A; color: white;
  transform: scale(1.1);
  box-shadow: 0 6px 24px rgba(37, 211, 102, 0.5);
}

/* ─── Animations ─── */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
.fade-in { animation: fadeInUp 0.7s var(--ease) both; }

.reveal {
  opacity: 0; transform: translateY(40px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* Stagger children */
.reveal-stagger > * {
  opacity: 0; transform: translateY(30px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
.reveal-stagger.visible > *:nth-child(1) { transition-delay: 0.1s; }
.reveal-stagger.visible > *:nth-child(2) { transition-delay: 0.2s; }
.reveal-stagger.visible > *:nth-child(3) { transition-delay: 0.3s; }
.reveal-stagger.visible > *:nth-child(4) { transition-delay: 0.4s; }
.reveal-stagger.visible > *:nth-child(5) { transition-delay: 0.5s; }
.reveal-stagger.visible > *:nth-child(6) { transition-delay: 0.6s; }
.reveal-stagger.visible > * { opacity: 1; transform: translateY(0); }

/* ─── Service Cards ─── */
.service-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 2rem;
  text-align: center;
  border: 1px solid var(--border);
  transition: all var(--transition);
  position: relative; overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.4s var(--ease);
}
.service-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-md); }
.service-card:hover::before { transform: scaleX(1); }
.service-card-icon {
  width: 72px; height: 72px;
  border-radius: 20px;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1.25rem;
  font-size: 1.5rem;
  background: var(--primary-light);
  color: var(--primary-dark);
  transition: all var(--transition);
}
.service-card:hover .service-card-icon {
  background: var(--primary);
  color: white;
  transform: scale(1.1);
}

/* ─── Testimonial Card ─── */
.testimonial-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 2rem;
  border: 1px solid var(--border);
  position: relative;
}
.testimonial-card::before {
  content: '"';
  position: absolute; top: 10px; left: 20px;
  font-family: 'Playfair Display', serif;
  font-size: 5rem; line-height: 1;
  color: var(--primary-light);
  font-weight: 700;
}
.testimonial-stars { color: var(--primary); font-size: 0.85rem; }

/* ─── Info Cards (Location/Hours) ─── */
.info-card {
  background: white;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
}
.info-card-header {
  background: linear-gradient(135deg, var(--bg-dark-warm), #3D352E) !important;
  padding: 1.5rem;
  color: white !important;
}
.info-card-header h5,
.info-card-header h6,
.info-card-header p {
  color: white !important;
}
.info-card-header i {
  color: var(--primary) !important;
}

/* ─── Spacers ─── */
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 1.5rem; }
.mb-5 { margin-bottom: 3rem; }
.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 1rem; }
.mt-4 { margin-top: 1.5rem; }
.mt-5 { margin-top: 3rem; }
.py-3 { padding-top: 1rem; padding-bottom: 1rem; }
.py-4 { padding-top: 1.5rem; padding-bottom: 1.5rem; }
.py-5 { padding-top: 3rem; padding-bottom: 3rem; }
.text-center { text-align: center; }
.text-muted { color: var(--text-muted) !important; }

/* ─── Mobile Bottom Nav ─── */
.mobile-bottom-nav {
  position: fixed; bottom: 0; left: 0; right: 0;
  height: 64px;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid rgba(0,0,0,0.06);
  display: none;
  align-items: center; justify-content: space-around;
  z-index: 9999;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.06);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

.mobile-nav-item {
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  flex: 1; height: 100%;
  text-decoration: none; color: #999;
  font-size: 0.65rem; font-weight: 700;
  letter-spacing: 0.3px;
  transition: all 0.2s ease;
  gap: 3px; position: relative;
}
.mobile-nav-item i { font-size: 1.15rem; transition: all 0.2s ease; }
.mobile-nav-item.active { color: var(--primary); }
.mobile-nav-item.active::before {
  content: ''; position: absolute; top: 0;
  left: 25%; right: 25%; height: 3px;
  background: var(--primary); border-radius: 0 0 3px 3px;
}
.mobile-nav-item.active i { transform: scale(1.15); }

/* ─── Loading States ─── */
.spinner-border {
  display: inline-block; width: 2rem; height: 2rem;
  border: 0.25rem solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: spin 0.75s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.btn-loading {
  position: relative; color: transparent !important; pointer-events: none;
}
.btn-loading::after {
  content: ""; position: absolute;
  width: 16px; height: 16px;
  top: 50%; left: 50%;
  margin: -8px 0 0 -8px;
  border: 2px solid #fff; border-radius: 50%;
  border-top-color: transparent;
  animation: spin 0.75s linear infinite;
}

/* ─── Hover utility classes from old templates ─── */
.shadow-hover { transition: box-shadow 0.3s, transform 0.3s; }
.shadow-hover:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); }
.transition-base { transition: all 0.3s ease; }

/* ═══════════════════════════════════════
   RESPONSIVE — MOBILE
   ═══════════════════════════════════════ */
@media (max-width: 768px) {
  .mobile-bottom-nav { display: flex !important; }
  body { padding-bottom: 72px; }
  .container { padding: 0 16px; }

  h1 { font-size: 1.75rem !important; }
  h2 { font-size: 1.5rem !important; }
  h3 { font-size: 1.25rem !important; }

  .hero-section { min-height: 55vh !important; }
  .hero-section h1,
  .hero-section .display-4,
  .hero-section .display-5 { font-size: 1.8rem !important; }
  .hero-section p { font-size: 0.95rem !important; }

  .header-container .d-none.d-md-flex { display: none !important; }

  .btn { min-height: 44px; font-size: 0.9rem; }
  .form-control { min-height: 48px; font-size: 16px; }
  .card:hover { transform: none; }
  .service-card:hover { transform: none; }

  .py-5 { padding-top: 2rem !important; padding-bottom: 2rem !important; }

  .whatsapp-float {
    bottom: 80px; right: 16px;
    width: 48px; height: 48px; font-size: 22px;
  }

  footer.footer, .footer { padding-bottom: 80px !important; }
  footer .d-flex.gap-2 a { width: 34px !important; height: 34px !important; }

  .section-title { font-size: 1.6rem !important; }
}

/* Tablet */
@media (min-width: 769px) and (max-width: 1024px) {
  .container { max-width: 960px; }
}

/* ─── Desktop Enhancements ─── */
@media (min-width: 1025px) {
  .hero-section { min-height: 80vh; }
  .hero-section h1,
  .hero-section .display-4,
  .hero-section .display-5 { font-size: 3.5rem; }
}