/* ============================================
   PATHAK'S VITALITY NATURE CURE CENTRE
   Modern Wellness Design System
   ============================================ */

/* CSS Variables - Preserving your colors, adding depth */
:root {
  /* Primary palette - Your existing green tones */
  --primary: #2d5a27;
  --primary-light: #4a7c40;
  --primary-dark: #1a3d17;
  --primary-soft: rgba(45, 90, 39, 0.08);
  
  /* Secondary earth tones */
  --sage: #87a878;
  --mint: #c4d7c4;
  --cream: #f8f6f1;
  --warm-white: #faf9f7;

  /* ── Title palette (used by hero-title & hero-subtitle) ── */
  --fern:   #7aaa8a;
  --mist:   #c8dfd0;
  --gold:   #c8a050;
  
  /* Neutral scale */
  --text-dark: #2c332e;
  --text-muted: #5a635d;
  --text-light: #8a938d;
  
  /* Glassmorphism & effects */
  --glass-bg: rgba(255, 255, 255, 0.7);
  --glass-border: rgba(255, 255, 255, 0.3);
  --shadow-soft: 0 4px 30px rgba(45, 90, 39, 0.08);
  --shadow-hover: 0 12px 40px rgba(45, 90, 39, 0.15);
  
  /* Spacing scale */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 2rem;
  --space-lg: 4rem;
  --space-xl: 6rem;
  
  /* Transitions */
  --transition-smooth: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  
  /* Border radius - organic curves */
  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 30px;
  --radius-full: 50%;
}

/* ============================================
   BASE STYLES
   ============================================ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Poppins', sans-serif;
  background-color: var(--warm-white);
  color: var(--text-dark);
  line-height: 1.7;
  overflow-x: hidden;
}

/* Selection color */
::selection {
  background: var(--primary-soft);
  color: var(--primary-dark);
}

/* ============================================
   NAVBAR - Glassmorphism effect
   ============================================ */
.navbar {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--glass-border);
  padding: 1rem 0;
  transition: var(--transition-smooth);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.03);
}

.navbar.scrolled {
  padding: 0.6rem 0;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 4px 30px rgba(45, 90, 39, 0.1);
}

.navbar-brand {
  font-weight: 600;
  color: var(--primary) !important;
  font-size: 1.25rem;
  transition: var(--transition-smooth);
}

.navbar-brand:hover {
  transform: scale(1.02);
}

.navbar-brand img {
  border-radius: var(--radius-sm);
  transition: var(--transition-smooth);
}

.navbar-brand:hover img {
  transform: rotate(5deg) scale(1.05);
}

.nav-link {
  color: var(--text-muted) !important;
  font-weight: 500;
  margin: 0 0.5rem;
  padding: 0.5rem 1rem !important;
  border-radius: 50px;
  transition: var(--transition-smooth);
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: var(--transition-smooth);
  transform: translateX(-50%);
  border-radius: 2px;
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary) !important;
  background: var(--primary-soft);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 60%;
}

/* ============================================
   HERO SECTION - Organic shapes & depth
   ============================================ */
.hero-section {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 50%, var(--sage) 100%);
  min-height: 70vh;
  padding-top: 140px;
  padding-bottom: 6rem;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

/* Organic shape overlay */
.hero-section::before {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 100px;
  background: var(--warm-white);
  clip-path: ellipse(60% 100% at 50% 100%);
  z-index: 1;
}

/* Floating organic blob */
.hero-section::after {
  content: '';
  position: absolute;
  top: 20%;
  right: -10%;
  width: 400px;
  height: 400px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
  animation: float 8s ease-in-out infinite;
  filter: blur(40px);
}

@keyframes float {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  50%       { transform: translate(-30px, -30px) rotate(10deg); }
}

.hero-section .container,
.hero-section > div {
  position: relative;
  z-index: 2;
}

/* ── HERO TITLE ── */
.hero-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(42px, 6vw, 72px);
  font-weight: 600;
  line-height: 1.06;
  color: #f4efe6;
  margin-bottom: 12px;
  text-shadow: 0 4px 32px rgba(0, 0, 0, 0.35);
  opacity: 0;
  animation: fadeUp 0.8s 0.22s forwards;
}

.hero-title em {
  font-style: italic;
  font-weight: 300;
  color: var(--fern);
}

/* White hero-title for all pages except homepage */
.hero-title.white-title {
  color: #ffffff;
  text-shadow: 0 4px 32px rgba(0, 0, 0, 0.5);
}

.hero-title.white-title em {
  color: #ffffff;
}

/* ── HERO SUBTITLE ── */
.hero-subtitle-wrap {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-bottom: 22px;
  opacity: 0;
  animation: fadeUp 0.8s 0.38s forwards;
}

.hero-subtitle-wrap::before {
  content: '';
  display: block;
  width: 52px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  margin-bottom: 2px;
}

.hero-subtitle {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(16px, 2.2vw, 24px);
  font-weight: 300;
  font-style: italic;
  color: #ffffff;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  letter-spacing: 0.04em;
  margin: 0;
}

.hero-subtitle-wrap::after {
  content: '';
  display: block;
  width: 52px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  margin-top: 2px;
}

/* ── SHARED KEYFRAMES ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero-section p {
  color: rgba(255, 255, 255, 0.95);
  font-size: 1.25rem;
  font-weight: 300;
  max-width: 600px;
  margin: 0 auto 2rem;
  animation: fadeInUp 1s ease-out 0.2s both;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  border-radius: 50px;
  padding: 0.875rem 2rem;
  font-weight: 600;
  transition: var(--transition-bounce);
  border: none;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.btn:active::before {
  width: 300px;
  height: 300px;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  box-shadow: 0 4px 15px rgba(45, 90, 39, 0.3);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(45, 90, 39, 0.4);
  background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary) 100%);
}

.btn-light {
  background: white;
  color: var(--primary);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.btn-light:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  color: var(--primary-dark);
}

.btn-success {
  background: linear-gradient(135deg, #28a745 0%, #34ce57 100%);
  box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
}

.btn-success:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(40, 167, 69, 0.4);
}

/* ============================================
   SECTIONS
   ============================================ */
.section-padding {
  padding: var(--space-xl) 0;
  position: relative;
}

.bg-white {
  background: white;
}

/* ============================================
   MODERN CARDS
   ============================================ */
.modern-card {
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  transition: var(--transition-smooth);
  height: 100%;
  position: relative;
  overflow: hidden;
}

.modern-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--sage));
  transform: scaleX(0);
  transition: transform 0.4s ease;
}

.modern-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
  background: rgba(255, 255, 255, 0.9);
}

.modern-card:hover::before {
  transform: scaleX(1);
}

/* ============================================
   SERVICE CARDS
   ============================================ */
.service-card {
  background: white;
  border-radius: var(--radius-md);
  padding: var(--space-md);
  transition: var(--transition-smooth);
  border: 1px solid rgba(45, 90, 39, 0.08);
  height: 100%;
  position: relative;
  overflow: hidden;
}

.service-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 0;
  background: linear-gradient(to top, var(--primary-soft), transparent);
  transition: height 0.4s ease;
  z-index: 0;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(45, 90, 39, 0.15);
}

.service-card:hover::after {
  height: 100%;
}

.service-card > * {
  position: relative;
  z-index: 1;
}

.service-card h5 {
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 1rem;
  font-size: 1.25rem;
}

.service-card p {
  color: var(--text-muted);
  margin-bottom: 0;
  line-height: 1.6;
}

.service-icon {
  font-size: 3rem;
  margin-bottom: 1.5rem;
  display: inline-block;
  transition: var(--transition-bounce);
}

.service-card:hover .service-icon {
  transform: scale(1.1) rotate(5deg);
}

/* ============================================
   IMAGE STYLES
   ============================================ */
.img-fluid {
  border-radius: var(--radius-md);
  transition: var(--transition-smooth);
}

.rounded {
  border-radius: var(--radius-md) !important;
}

.rounded-4 {
  border-radius: var(--radius-lg) !important;
}

.shadow {
  box-shadow: var(--shadow-soft) !important;
}

.col-lg-6 img,
.col-md-4 img {
  transition: var(--transition-smooth);
}

.col-lg-6:hover img,
.service-card:hover .service-icon img {
  transform: scale(1.03);
}

/* ============================================
   CAROUSEL
   ============================================ */
.modern-slider {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

.slider-img {
  height: 400px;
  object-fit: cover;
  transition: transform 0.7s ease;
}

.carousel-item:hover .slider-img {
  transform: scale(1.05);
}

.carousel-control-prev,
.carousel-control-next {
  width: 50px;
  height: 50px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0;
  transition: var(--transition-smooth);
  backdrop-filter: blur(10px);
}

.modern-slider:hover .carousel-control-prev,
.modern-slider:hover .carousel-control-next {
  opacity: 1;
}

.carousel-control-prev {
  left: 20px;
}

.carousel-control-next {
  right: 20px;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
  filter: invert(1) grayscale(100%) brightness(40%);
  width: 20px;
  height: 20px;
}

/* ============================================
   YOGA SECTION
   ============================================ */
.yoga-section {
  background: linear-gradient(to bottom, var(--cream), var(--warm-white));
  padding: var(--space-xl) 0;
  position: relative;
}

.yoga-section::before {
  content: '🌿';
  position: absolute;
  top: 2rem;
  right: 5%;
  font-size: 8rem;
  opacity: 0.05;
  pointer-events: none;
}

.schedule-box {
  background: white;
  border-radius: var(--radius-md);
  padding: var(--space-md);
  margin-top: var(--space-md);
  border-left: 4px solid var(--primary);
  box-shadow: var(--shadow-soft);
  transition: var(--transition-smooth);
}

.schedule-box:hover {
  transform: translateX(5px);
  box-shadow: var(--shadow-hover);
}

.schedule-box p {
  margin-bottom: 1rem;
  color: var(--text-muted);
}

.schedule-box p:last-child {
  margin-bottom: 0;
}

/* ============================================
   READ MORE BUTTONS
   ============================================ */
.read-more-btn {
  display: inline-block;
  margin-top: 1rem;
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
  position: relative;
  padding-right: 1.5rem;
  transition: var(--transition-smooth);
}

.read-more-btn::after {
  content: '→';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  transition: var(--transition-smooth);
}

.read-more-btn:hover {
  color: var(--primary-dark);
  padding-right: 2rem;
}

.read-more-btn:hover::after {
  right: -5px;
}

/* ============================================
   CTA SECTION
   ============================================ */
section[style*="var(--primary)"] {
  position: relative;
  overflow: hidden;
}

section[style*="var(--primary)"]::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -10%;
  width: 600px;
  height: 600px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 50%;
  animation: pulse 6s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 0.5; }
  50%       { transform: scale(1.1); opacity: 0.8; }
}

/* ============================================
   FOOTER
   ============================================ */
footer {
  background: linear-gradient(to bottom, var(--primary-dark), var(--primary));
  color: rgba(255, 255, 255, 0.9);
  position: relative;
  overflow: hidden;
  /* FIX: isolation ensures the z-index:-1 pseudo-element stays inside footer */
  isolation: isolate;
}

footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.5;
  z-index: -1;
  pointer-events: none;
}

footer h5,
footer h6 {
  color: white;
  margin-bottom: 1.5rem;
}

footer a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: var(--transition-smooth);
  display: inline-block;
  opacity: 0.8;
}

footer a:hover {
  color: white;
  transform: translateX(5px);
}

footer .list-unstyled li {
  margin-bottom: 0.5rem;
  opacity: 0.8;
}

footer i {
  font-size: 1.5rem;
  transition: var(--transition-bounce);
  display: inline-block;
}

footer a:hover i {
  transform: translateY(-3px) scale(1.2);
}

footer hr {
  border-color: rgba(255, 255, 255, 0.1);
  margin: 2rem 0;
}

/* ── FOOTER BRAND TITLE ── */
.footer-brand-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(30px, 3.5vw, 45px);
  font-weight: 600;
  line-height: 1.1;
  color: #f4efe6;
  margin-bottom: 10px;
  letter-spacing: 0.01em;
}

.footer-brand-title em {
  font-style: italic;
  font-weight: 300;
  color: #7aaa8a;
}

.footer-brand-title::after {
  content: '';
  display: block;
  width: 40px;
  height: 1px;
  background: linear-gradient(90deg, #c8a050, transparent);
  margin-top: 10px;
}

.footer-brand-sub {
  font-family: 'Jost', sans-serif;
  font-size: 13px;
  font-weight: 300;
  letter-spacing: 0.05em;
  color: rgba(255, 255, 255, 0.85);
  margin-top: 8px;
}

/* ============================================
   MAP CONTAINER
   ============================================ */
iframe {
  border-radius: var(--radius-md);
  filter: grayscale(20%) contrast(1.1);
  transition: var(--transition-smooth);
  width: 100%;  /* FIX: was fixed 600px, overflowed on mobile */
}

iframe:hover {
  filter: grayscale(0%) contrast(1);
}

/* ============================================
   RESPONSIVE ADJUSTMENTS
   ============================================ */
@media (max-width: 991px) {
  .hero-title {
    font-size: clamp(32px, 5vw, 48px);
  }

  .hero-section {
    padding: 8rem 0 5rem;
  }

  .section-padding {
    padding: var(--space-lg) 0;
  }

  .carousel-control-prev,
  .carousel-control-next {
    opacity: 1;
    width: 40px;
    height: 40px;
  }
}

@media (max-width: 768px) {
  .navbar-brand img {
    height: 60px !important;
  }

  .hero-section {
    padding: 7rem 0 5rem;
  }

  .hero-title {
    font-size: clamp(28px, 8vw, 40px);
  }

  .hero-subtitle {
    font-size: clamp(14px, 4vw, 18px);
  }

  .hero-section p {
    font-size: 1rem;
  }

  .modern-card,
  .service-card {
    margin-bottom: var(--space-sm);
  }

  .yoga-section::before {
    font-size: 4rem;
  }
}

/* ============================================
   UTILITY CLASSES
   ============================================ */
.text-primary {
  color: var(--primary) !important;
}

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

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   DEVELOPER CREDIT
   ============================================ */
.developer-credit {
  margin-top: 1rem;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
  text-align: center;
}

.developer-credit a {
  color: var(--gold);
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition-smooth);
}

.developer-credit a:hover {
  color: #ffffff;
  text-decoration: underline;
}

.float-animation {
  animation: float 4s ease-in-out infinite;
}

.gradient-text {
  background: linear-gradient(135deg, var(--primary), var(--sage));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
