/* ========================================
   AYUSH AROGYA AYURVEDIC CENTRE
   Main Stylesheet - pwstyle.css
   ======================================== */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,600;0,700;1,300;1,400&family=Jost:wght@300;400;500;600&family=Playfair+Display:wght@700;800&display=swap');

html, body {
  max-width: 100%;
  overflow-x: hidden; 
}

/* ── CSS Variables ── */
:root {
  --cream:       #f5f0e8;
  --cream-light: #faf8f3;
  --green:       #3d6b4f;
  --green-mid:   #5a8c6e;
  --green-light: #a8c8b4;
  --green-pale:  #deeee6;
  --gold:        #c8973a;
  --gold-light:  #e8c878;
  --brown:       #5c3d1e;
  --text-dark:   #1a2a1e;
  --text-mid:    #3d5244;
  --text-light:  #6b7f6e;
  --white:       #ffffff;
  --shadow-sm:   0 2px 12px rgba(61,107,79,0.08);
  --shadow-md:   0 8px 32px rgba(61,107,79,0.14);
  --shadow-lg:   0 20px 60px rgba(61,107,79,0.18);
  --radius:      16px;
  --radius-sm:   8px;
  --transition:  0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'Jost', sans-serif;
  background: var(--cream-light);
  color: var(--text-dark);
  overflow-x: hidden;
  cursor: none;
}

/* ── Custom Cursor ── */
.cursor {
  width: 10px; height: 10px;
  background: var(--green);
  border-radius: 50%;
  position: fixed; top: 0; left: 0;
  pointer-events: none;
  z-index: 99999;
  transform: translate(-50%, -50%);
  transition: transform 0.1s, width 0.3s, height 0.3s, background 0.3s;
}
.cursor-ring {
  width: 36px; height: 36px;
  border: 1.5px solid var(--green);
  border-radius: 50%;
  position: fixed; top: 0; left: 0;
  pointer-events: none;
  z-index: 99998;
  transform: translate(-50%, -50%);
  transition: transform 0.15s, width 0.3s, height 0.3s, opacity 0.3s;
}
body:hover .cursor { opacity: 1; }

/* ── Scroll Progress Bar ── */
#scroll-progress {
  position: fixed; top: 0; left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--green));
  z-index: 9999;
  width: 0%;
  transition: width 0.1s;
}

/* ── Navigation ── */
.navbar {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 0 5%;
  display: flex; align-items: center; justify-content: space-between;
  height: 80px;
  transition: background var(--transition), box-shadow var(--transition), height var(--transition);
}
.navbar.scrolled {
  background: #0A0909;
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow-sm);
  height: 64px;
}
.nav-logo {
  display: flex; align-items: center; gap: 12px;
  text-decoration: none;
}

.nav-logo-img {
  height: 60px;
  width: auto;
  object-fit: contain;
  transition: transform var(--transition);
}
.nav-logo:hover .nav-logo-img {
  transform: scale(1.05);
}

.nav-logo-icon {
  width: 44px; height: 44px;
  background: var(--green);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition);
}
.nav-logo:hover .nav-logo-icon { transform: rotate(15deg) scale(1.1); }
.nav-logo-text { line-height: 1.1; }
.nav-logo-text span:first-child {
  display: block;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.15rem; font-weight: 700;
  color: var(--green); letter-spacing: 0.02em;
}
.nav-logo-text span:last-child {
  display: block;
  font-size: 0.6rem; font-weight: 500;
  color: var(--text-light); letter-spacing: 0.15em;
  text-transform: uppercase;
}

.nav-links {
  display: flex; align-items: center; gap: 8px;
  list-style: none;
}
.nav-links a {
  display: block; padding: 8px 18px;
  font-size: 0.85rem; font-weight: 500;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: #FFFFFF;
  text-decoration: none;
  border-radius: 50px;
  transition: all var(--transition);
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute; bottom: 4px; left: 50%; right: 50%;
  height: 2px; background: var(--gold);
  border-radius: 2px;
  transition: left var(--transition), right var(--transition);
}
.nav-links a:hover, .nav-links a.active {
  color: var(--green);
  background: #4a6741;
}
.nav-links a:hover::after, .nav-links a.active::after {
  left: 18px; right: 18px;
}
.nav-links li.disabled a {
  color: var(--text-light); opacity: 0.55;
  pointer-events: none; cursor: not-allowed;
}
.nav-cta {
  background: var(--green) !important;
  color: var(--white) !important;
  padding: 10px 24px !important;
  border-radius: 50px !important;
  box-shadow: var(--shadow-sm);
}
.nav-cta:hover { background: var(--brown) !important; transform: translateY(-2px); box-shadow: var(--shadow-md) !important; }
.nav-cta::after { display: none !important; }

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column; gap: 5px;
  cursor: pointer; padding: 8px; border: none; background: none;
}
.nav-toggle span {
  display: block; width: 24px; height: 2px;
  background: var(--green); border-radius: 2px;
  transition: all var(--transition);
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 32px;
  border-radius: 50px;
  font-family: 'Jost', sans-serif;
  font-size: 0.88rem; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  position: relative; overflow: hidden;
}
.btn::before {
  content: '';
  position: absolute; top: 0; left: -100%;
  width: 100%; height: 100%;
  background: rgba(255,255,255,0.15);
  transition: left var(--transition);
}
.btn:hover::before { left: 0; }
.btn-primary {
  background: var(--green); color: var(--white);
  box-shadow: 0 4px 20px rgba(61,107,79,0.3);
}
.btn-primary:hover { background: var(--brown); transform: translateY(-3px); box-shadow: 0 8px 32px rgba(61,107,79,0.35); }
.btn-outline {
  border-color: var(--white); color: var(--white);
  background: transparent;
}
.btn-outline:hover { background: var(--white); color: var(--green); }
.btn-gold {
  background: var(--gold); color: var(--white);
  box-shadow: 0 4px 20px rgba(200,151,58,0.3);
}
.btn-gold:hover { background: var(--brown); transform: translateY(-3px); }

/* ── Section Utilities ── */
section { padding: 100px 5%; }

.section-tag {
  display: inline-block;
  font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--gold);
  border: 1px solid var(--gold);
  padding: 6px 16px; border-radius: 50px;
  margin-bottom: 16px;
}
.section-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 700; line-height: 1.2;
  color: var(--text-dark);
  margin-bottom: 20px;
}
.section-title em { color: var(--green); font-style: italic; }
.section-subtitle {
  font-size: 1rem; color: var(--text-light);
  line-height: 1.8; max-width: 600px;
}
.text-center { text-align: center; }
.text-center .section-subtitle { margin: 0 auto; }

/* ── Reveal Animations ── */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-left {
  opacity: 0; transform: translateX(-50px);
  transition: opacity 0.9s ease, transform 0.9s ease;
}
.reveal-left.visible { opacity: 1; transform: translateX(0); }
.reveal-right {
  opacity: 0; transform: translateX(50px);
  transition: opacity 0.9s ease, transform 0.9s ease;
}
.reveal-right.visible { opacity: 1; transform: translateX(0); }

/* Stagger children */
.stagger > * { opacity: 0; transform: translateY(30px); transition: opacity 0.6s ease, transform 0.6s ease; }
.stagger.visible > *:nth-child(1) { opacity: 1; transform: none; transition-delay: 0s; }
.stagger.visible > *:nth-child(2) { opacity: 1; transform: none; transition-delay: 0.1s; }
.stagger.visible > *:nth-child(3) { opacity: 1; transform: none; transition-delay: 0.2s; }
.stagger.visible > *:nth-child(4) { opacity: 1; transform: none; transition-delay: 0.3s; }
.stagger.visible > *:nth-child(5) { opacity: 1; transform: none; transition-delay: 0.4s; }
.stagger.visible > *:nth-child(6) { opacity: 1; transform: none; transition-delay: 0.5s; }




/* ── HERO SECTION ── */
/* ================================================================
   AYUSH AROGYA - HERO SECTION (ENHANCED VERSION)
   ================================================================ */

.hero {
  min-height: 80vh;
  display: grid; 
  grid-template-columns: 1.2fr 0.8fr; 
  align-items: center;
  padding: 100px 8% 40px;
  position: relative; 
  overflow: hidden;
  
  /* 🌟 KEY FIX: Merging deep emerald gradient with home.png and setting semi-transparency */
  background: linear-gradient(
    135deg, 
    rgba(6, 22, 16, 0.92) 0%,   /* Top-left: Dark, 92% opacity */
    rgba(11, 38, 27, 0.75) 50%, /* Center: Slightly brighter emerald, 75% opacity */
    rgba(8, 29, 21, 0.95) 100%  /* Bottom-right: Deepened, 95% opacity */
  ), url('https://images.unsplash.com/photo-1600334129128-685c5582fd35?w=800&auto=format&fit=crop') no-repeat center center;
  
  background-size: cover;
  background-attachment: fixed; /* Retains high-end parallax scrolling effect */
}

/* Background Light Pulse */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(circle at 20% 30%, rgba(197, 148, 67, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(61, 107, 79, 0.15) 0%, transparent 50%);
  animation: light-pulse 10s ease-in-out infinite alternate;
  z-index: 1;
}

@keyframes light-pulse {
  0% { opacity: 0.5; transform: scale(1); }
  100% { opacity: 1; transform: scale(1.1); }
}

.hero-bg-text {
  position: absolute; bottom: -2%; left: 5%;
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(6rem, 15vw, 18rem);
  font-weight: 700; color: rgba(255, 255, 255, 0.02);
  z-index: 0;
}

.hero-content { position: relative; z-index: 10; }

/* ── Entrance Animations ── */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-badge, .hero-title, .hero-desc, .hero-actions, .hero-stat {
  opacity: 0;
  animation: fadeInUp 0.8s ease-out forwards;
}

.hero-badge { animation-delay: 0.2s; }
.hero-title { animation-delay: 0.4s; }
.hero-desc  { animation-delay: 0.6s; }
.hero-actions { animation-delay: 0.8s; }

/* ── Badge & Typography ── */
.hero-badge {
  display: inline-flex; align-items: center; gap: 12px;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(197, 148, 67, 0.3);
  border-radius: 50px; padding: 8px 20px 8px 8px; margin-bottom: 32px;
  color: #c59443; font-size: 0.75rem; text-transform: uppercase;
}

.hero-badge .dot {
  width: 28px; height: 28px; background: #c59443;
  border-radius: 50%; display: flex; align-items: center; justify-content: center; color: white;
}

/* ── HERO TEXT RESPONSIVE FIX ── */

.hero-title {
  font-family: 'Cormorant Garamond', serif;
  /* Reduced min-size from 3rem to 2.2rem to fit narrow screens */
  font-size: clamp(2.2rem, 7vw, 4.8rem); 
  color: #f4f1ea; 
  line-height: 1.1; 
  margin-bottom: 28px;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

/* Force lines to stack vertically on small screens */
.hero-title .line-green { 
  color: #528a6a; 
  display: block; 
}

.hero-title .line-italic { 
  font-style: italic; 
  color: #c59443; 
  position: relative; 
  /* Changed from inline-block to block for better stacking */
  display: block; 
  width: fit-content;
}

/* Underline adjustment */
.hero-title .line-italic::after {
  content: ''; 
  position: absolute; 
  bottom: 6px; 
  left: 0;
  width: 100%; 
  height: 4px; /* Slightly thinner for better mobile look */
  background: rgba(197, 148, 67, 0.2); 
  z-index: -1;
}

.hero-desc {
  color: rgba(244, 241, 234, 0.7); 
  font-size: clamp(1rem, 4vw, 1.1rem);
  line-height: 1.8; 
  max-width: 500px; 
  margin-bottom: 45px;
}

/* ── Specific Fix for Extra Small Screens (e.g., 270px - 360px) ── */
@media (max-width: 380px) {
  .hero-title {
    font-size: 2rem; /* Force a smaller size when screen is tiny */
    line-height: 1.2;
  }
  
  .hero-desc {
    font-size: 0.95rem;
    line-height: 1.6;
  }
  
  .hero-title .line-italic {
    margin: 0 auto; /* Center it if your text-align is centered */
  }
}

/* ── Enhanced Buttons ── */
.btn-primary-gold {
    
/* Ensure both buttons have the same height and alignment */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  vertical-align: middle;
  height: 58px;            /* Same height as the other button */
  border: 1px solid transparent; /* Offset for the 1px border on the other button */
  box-sizing: border-box;  /* Includes padding and border in the height */
  background: #c59443; color: #061610; padding: 14px 35px;
  border-radius: 50px; text-decoration: none; font-weight: 700; 
  display: inline-block; position: relative; overflow: hidden;
  transition: all 0.4s ease;
  box-shadow: 0 10px 20px rgba(197, 148, 67, 0.2);
}

.btn-primary-gold::before {
  content: ''; position: absolute; top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  transition: 0.6s;
}

.btn-primary-gold:hover::before { left: 100%; }

.btn-primary-gold:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 30px rgba(197, 148, 67, 0.4);
}

.btn-outline-white {
    
    /* Ensure both buttons have the same height and alignment */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  vertical-align: middle;
  height: 58px;            /* Match the gold button height */
  box-sizing: border-box;  /* Ensures 1px border doesn't make it taller */
  color: #f4f1ea; border: 1px solid rgba(244, 241, 234, 0.3);
  padding: 14px 35px; border-radius: 50px; text-decoration: none; 
  margin-left: 15px; display: inline-block; transition: all 0.4s ease;
}

.btn-outline-white:hover {
  background: #f4f1ea; color: #061610;
}

/* ── Stats ── */
.hero-stats { 
  display: flex; gap: 40px; margin-top: 40px;
  border-top: 1px solid rgba(197, 148, 67, 0.2); padding-top: 35px;
}
.hero-stat:nth-child(1) { animation-delay: 1.0s; }
.hero-stat:nth-child(2) { animation-delay: 1.1s; }
.hero-stat:nth-child(3) { animation-delay: 1.2s; }

.hero-stat .num { font-size: 2.5rem; font-weight: 700; color: #c59443; }
.hero-stat .label { color: rgba(244, 241, 234, 0.5); font-size: 0.85rem; }

/* ── Visual Area & Dynamic Shape ── */
.hero-visual { position: relative; z-index: 5; }



@keyframes morphing-advanced {
  0% { border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; }
  50% { border-radius: 50% 50% 40% 60% / 50% 40% 60% 50%; }
  100% { border-radius: 40% 60% 30% 70% / 60% 40% 70% 40%; }
}



/* ── MARQUEE SECTION ── */
.marquee-strip {
  background: #061610; 
  padding: 24px 0;
  overflow: hidden;
  border-top: 1px solid rgba(197, 148, 67, 0.1);
  border-bottom: 1px solid rgba(197, 148, 67, 0.1);
  display: flex;
  position: relative;
  z-index: 5;
}

.marquee-content {
  display: flex;
  white-space: nowrap;
  width: max-content;
  animation: scroll-marquee 40s linear infinite;
}

.marquee-item {
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  color: #c59443; 
  text-transform: uppercase;
  padding: 0 40px;
  display: flex;
  align-items: center;
  gap: 15px;
}

@keyframes scroll-marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Mobile Fix */
@media (max-width: 1024px) {
  .hero { grid-template-columns: 1fr; text-align: center; padding-top: 120px; }
  .hero-content { display: flex; flex-direction: column; align-items: center; }
  
  .btn-outline-white { margin: 10px 0 0 0; }
  .card-certified { right: 0; }
  .card-expert { left: 0; }
}



/* Target any screen smaller than 480px */
@media (max-width: 480px) {
  
  /* 1. Fluid Layout: Remove horizontal grid and center everything */
  .hero {
    display: flex;
    flex-direction: column;
    padding: 80px 15px 40px;
    text-align: center;
    align-items: center;
  }

  .hero-content {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  /* 2. Intelligent Title: Shrinks dynamically to prevent overflow */
  .hero-title {
    /* Minimum font-size allowed is 1.6rem to fit extreme narrow screens */
    font-size: clamp(1.6rem, 9vw, 2.5rem) !important;
    width: 100%;
    margin-bottom: 20px;
  }

  .hero-title .line-italic {
    margin: 0 auto;
    display: block;
    width: fit-content;
  }

  /* 3. Button Adaptation: Auto-stacking & Full Width */
  .hero-actions {
    display: flex;
    flex-direction: column !important; /* Force vertical stacking */
    width: 100%;
    gap: 12px;
    margin-bottom: 40px;
  }

  .btn-primary-gold, 
  .btn-outline-white {
    width: 100% !important; /* Buttons take 100% of the small screen width */
    margin: 0 !important;
    padding: 14px 20px !important;
    height: auto !important; /* Allows button height to grow if text wraps */
    min-height: 54px;
    font-size: 0.95rem;
  }

  /* 4. Stats Adaptation: Change from row to column for tiny screens */
  .hero-stats {
    flex-direction: column; 
    width: 100%;
    gap: 20px;
    padding-top: 30px;
    align-items: center;
  }

  .hero-stat {
    width: 100%;
    border: none; /* Remove dividers if they look messy on mobile */
  }

  .hero-stat .num {
    font-size: 2rem !important;
  }

  /* 5. Hide purely decorative items that cause horizontal scrolling */
  .float-card, 
  .hero-bg-text {
    display: none !important; 
  }
}

/* ── Global Safety Net: Absolute Overflow Prevention ── */
html, body {
  max-width: 100%;
  overflow-x: hidden; /* Stops the 'shaking' or side-scrolling effect */
  position: relative;
}

* {
  box-sizing: border-box; /* Crucial for ensuring padding doesn't break width */
}






/* ── ABOUT SECTION ── */
#about-preview {
    background: var(--white);
    padding: 120px 10%; 
    display: flex; 
    gap: 60px;
    align-items: center;
    position: relative;
    min-height: 800px; /* Ensure space for the section */
}

/* IMAGE AREA: Fixed disappearing issue */
.about-img-grid {
    flex: 0.9;
    display: block; 
    height: 600px; /* IMPORTANT: Must have height for absolute images to show */
    position: relative;
    transform: translateX(-30px);
}

.about-img-grid img {
    position: absolute;
    border-radius: 8px; 
    box-shadow: 20px 30px 60px rgba(0,0,0,0.12);
    transition: transform 0.8s cubic-bezier(0.2, 1, 0.3, 1);
    object-fit: cover;
}

/* Image 1: Large Main Background */
.about-img-grid img:nth-child(1) {
    width: 75%;
    height: 80%;
    top: 0;
    left: 0;
    z-index: 1;
}

/* Image 2: Mid-layer Image (Top Right) */
.about-img-grid img:nth-child(2) {
    width: 45%;
    height: 40%;
    top: 10%;
    right: 0;
    z-index: 2;
    border: 10px solid var(--white);
}

/* Image 3: Foreground Image (Bottom Right) */
.about-img-grid img:nth-child(3) {
    width: 50%;
    height: 45%;
    bottom: 0;
    right: -20px;
    z-index: 3;
    border: 12px solid var(--white);
}

/* BADGE: Re-centered on the grid */
.about-badge {
    position: absolute;
    top: 55%;
    left: 45%;
    transform: translate(-50%, -50%);
    z-index: 10;
    background: var(--gold);
    color: var(--white);
    width: 150px;
    height: 150px;
    border-radius: 50%; 
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-shadow: 0 15px 35px rgba(197, 148, 67, 0.4);
    border: 6px solid var(--white);
    text-align: center;
}

.about-badge .num { font-size: 2.2rem; font-weight: bold; }
.about-badge .txt { font-size: 0.9rem; text-transform: uppercase; line-height: 1.2; }

/* CONTENT AREA */
.reveal-right { flex: 1.1; }
.section-title { max-width: 100%; font-size: 3.5rem; line-height: 1.1; margin-bottom: 30px; }
.section-subtitle { font-size: 1.3rem; line-height: 1.7; color: var(--text-muted); margin-bottom: 40px; }

/* FEATURES LIST */
/* FEATURES LIST */
.about-features { display: flex; flex-direction: column; }

.about-feature {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 18px 0;
    border-bottom: 1px solid rgba(0,0,0,0.06);
    cursor: pointer;
}

.about-feature-icon {
    width: 52px;
    height: 52px;
    flex-shrink: 0;
    border-radius: 14px;
    background: #fdf4e7;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease, transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.about-feature-icon svg {
    transition: stroke 0.3s ease;
}

.about-feature:hover .about-feature-icon {
    background: var(--gold);
    transform: rotate(-8deg) scale(1.12);
}

.about-feature:hover .about-feature-icon svg {
    stroke: #ffffff;
}

.about-feature-text h4 {
    font-size: 1.1rem;
    font-weight: 600;
    text-transform: uppercase;
    margin: 0;
    color: #2d2d2d;
    transition: color 0.3s ease;
}

.about-feature-text p {
    font-size: 0.82rem;
    color: #999;
    margin: 3px 0 0;
}

.about-feature:hover .about-feature-text h4 {
    color: var(--gold);
}


/* ================================================================
   ABOUT SECTION RESPONSIVE REPAIR 
   ================================================================ */

@media (max-width: 1024px) {
  #about-preview {
    flex-direction: column; /* Stack images on top of text */
    padding: 80px 5%;
    gap: 60px;
    min-height: auto;
  }

  .about-img-grid {
    width: 100%;
    max-width: 500px; /* Prevent it from getting too large on tablets */
    height: 450px;    /* Scale down height for medium screens */
  }
}

@media (max-width: 480px) {
  /* 1. Reset Section Spacing */
  #about-preview {
    padding: 60px 20px;
    gap: 60px;
  }
  
  .about-feature {
    flex-direction: column;
    text-align: center;
    gap: 12px;
  }

  .about-feature-icon {
    font-size: 2.5rem; /* Larger icons for mobile touchpoints */
  }
}

  /* 2. Intelligent Image Grid Adaptation */
  .about-img-grid {
    height: 320px; /* Shrink container height for mobile */
    margin: 0 auto;
  }

  /* Simplify image layout to prevent messy overlapping on small screens */
  .about-img-grid img:nth-child(1) { width: 80%; height: 85%; }
  .about-img-grid img:nth-child(2) { width: 50%; height: 45%; top: 5%; }
  .about-img-grid img:nth-child(3) { width: 55%; height: 50%; right: -10px; }

  /* 3. Scale down the Badge */
  .about-badge {
    width: 100px;
    height: 100px;
    border-width: 4px;
    left: 50%; /* Center it exactly on mobile */
  }

  .about-badge .num { font-size: 1.5rem; }
  .about-badge .txt { font-size: 0.65rem; }

  /* 4. Text Content Adaptation */
  .section-title {
    font-size: clamp(2rem, 10vw, 2.8rem) !important;
    text-align: center;
  }

  .section-subtitle {
    font-size: 1rem;
    text-align: center;
    margin-bottom: 30px;
  }

  /* 5. Features List Stacking */
  .about-feature {
    flex-direction: column; /* Icon on top of text for narrow screens */
    text-align: center;
    gap: 10px;
    padding-bottom: 15px;
  }

  .about-feature-icon {
    font-size: 1.8rem;
  }

  .about-feature-text h4 {
    font-size: 1.1rem;
  }
}

/* Specific fix for ultra-narrow screens (Below 320px) */
@media (max-width: 320px) {
  .about-img-grid {
    height: 250px; /* Further reduce height to save vertical space */
  }

  .about-badge {
    display: none; /* Hide the floating badge on tiny screens to clear clutter */
  }
  
  .section-title {
    font-size: 1.8rem !important;
  }
}







/* ── TREATMENTS SECTION ── */
#treatments {
  background: linear-gradient(180deg, var(--cream) 0%, var(--cream-light) 100%);
}
.treatments-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 24px; margin-top: 60px;
}
.treatment-card {
  background: var(--white); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow-sm);
  transition: all var(--transition);
  position: relative;
}
.treatment-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}
.treatment-card:hover .treatment-img img { transform: scale(1.08); }
.treatment-img { position: relative; height: 220px; overflow: hidden; }
.treatment-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.treatment-tag {
  position: absolute; top: 14px; left: 14px;
  background: var(--white); color: var(--green);
  padding: 4px 12px; border-radius: 50px;
  font-size: 0.7rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
}
.treatment-body { padding: 24px; }
.treatment-body h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.3rem; font-weight: 700; color: var(--text-dark);
  margin-bottom: 10px;
}
.treatment-body p { font-size: 0.88rem; color: var(--text-light); line-height: 1.7; margin-bottom: 18px; }
.treatment-body a {
  font-size: 0.8rem; font-weight: 600; color: var(--green);
  text-decoration: none; letter-spacing: 0.06em;
  display: inline-flex; align-items: center; gap: 6px;
  transition: gap var(--transition);
}
.treatment-body a:hover { gap: 12px; }
.treatment-card.featured {
  grid-column: span 3;
  display: grid; grid-template-columns: 1fr 1.5fr;
}
.treatment-card.featured .treatment-img { height: auto; }


/* ── WHY CHOOSE US ── */
#why {
  background: var(--green);
  color: var(--white);
  position: relative; overflow: hidden;
}
#why::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='80' height='80' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='40' cy='40' r='1.5' fill='rgba(255,255,255,0.06)'/%3E%3C/svg%3E") repeat;
}
#why .section-tag { color: var(--gold); border-color: var(--gold); }
#why .section-title { color: var(--white); }
#why .section-subtitle { color: rgba(255,255,255,0.7); }
.why-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 24px; margin-top: 60px;
  position: relative; z-index: 1;
}
.why-item {
  text-align: center; padding: 36px 24px;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius);
  transition: all var(--transition);
  position: relative; overflow: hidden;
}
.why-item::before {
  content: '';
  position: absolute; bottom: 0; left: 0; right: 0; top: 100%;
  background: rgba(255,255,255,0.06);
  transition: top var(--transition);
}
.why-item:hover::before { top: 0; }
.why-item:hover { border-color: rgba(255,255,255,0.3); transform: translateY(-6px); }
.why-icon {
  width: 70px; height: 70px; margin: 0 auto 20px;
  background: rgba(255,255,255,0.12);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  transition: background var(--transition);
}

.why-icon svg {
  transition: stroke 0.3s ease;
}

.why-item:hover .why-icon { background: var(--gold); }

.why-item:hover .why-icon svg {
  stroke: #ffffff;
}
.why-item h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.2rem; font-weight: 700; color: var(--white);
  margin-bottom: 10px;
}
.why-item p { font-size: 0.85rem; color: rgba(255,255,255,0.65); line-height: 1.7; }

/* ── TESTIMONIALS ── */
#testimonials { background: var(--cream-light); }
.testimonials-slider { position: relative; margin-top: 60px; overflow: hidden; }
.testimonials-track {
  display: flex;
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.testimonial-slide { min-width: 100%; padding: 0 60px; }
.testimonial-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 48px 56px;
  box-shadow: var(--shadow-md);
  position: relative;
  max-width: 800px; margin: 0 auto;
}
.testimonial-card::before {
  content: '"';
  position: absolute; top: 20px; left: 40px;
  font-family: 'Cormorant Garamond', serif;
  font-size: 8rem; font-weight: 700;
  color: var(--green-pale); line-height: 1;
}
.testimonial-stars { color: var(--gold); font-size: 1.1rem; margin-bottom: 16px; }
.testimonial-text {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.4rem; font-style: italic;
  color: var(--text-dark); line-height: 1.6;
  margin-bottom: 28px; position: relative; z-index: 1;
}
.testimonial-author { display: flex; align-items: center; gap: 14px; }
.testimonial-avatar {
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--green-pale); display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
}
.testimonial-avatar svg {
  width: 28px;
  height: 28px;
}
.testimonial-author-info strong {
  display: block; font-weight: 600; color: var(--text-dark); font-size: 0.95rem;
}
.testimonial-author-info span {
  font-size: 0.8rem; color: var(--text-light);
}
.slider-controls { display: flex; justify-content: center; gap: 12px; margin-top: 32px; }
.slider-dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--green-light);
  border: none; cursor: pointer;
  transition: all var(--transition);
}
.slider-dot.active { background: var(--green); width: 28px; border-radius: 5px; }
.slider-prev, .slider-next {
  width: 48px; height: 48px; border-radius: 50%;
  border: 2px solid var(--green-light);
  background: var(--white); color: var(--green);
  font-size: 1.1rem; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all var(--transition);
  box-shadow: var(--shadow-sm);
}
.slider-prev:hover, .slider-next:hover { background: var(--green); color: var(--white); border-color: var(--green); }





/* ── BLOG SECTION ── */
#blog { background: var(--white); }
.blog-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 28px; margin-top: 60px;
}
.blog-card {
  border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
  background: var(--cream-light);
}
.blog-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}
.blog-img { height: 200px; overflow: hidden; position: relative; }
.blog-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.blog-card:hover .blog-img img { transform: scale(1.06); }
.blog-cat {
  position: absolute; top: 14px; left: 14px;
  background: var(--gold); color: var(--white);
  padding: 4px 12px; border-radius: 50px;
  font-size: 0.7rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em;
}
.blog-body { padding: 24px; }
.blog-meta {
  font-size: 0.75rem; color: var(--text-light);
  display: flex; gap: 12px; margin-bottom: 10px;
}
.blog-body h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.2rem; font-weight: 700; color: var(--text-dark);
  line-height: 1.4; margin-bottom: 10px;
}
.blog-body p { font-size: 0.85rem; color: var(--text-light); line-height: 1.7; margin-bottom: 16px; }
.blog-link {
  font-size: 0.8rem; font-weight: 600; color: var(--green);
  text-decoration: none;
  display: inline-flex; align-items: center; gap: 6px;
  transition: gap var(--transition);
}
.blog-link:hover { gap: 12px; }





/* ── CTA BANNER ── */
.cta-banner {
  background: linear-gradient(135deg, var(--brown) 0%, var(--green) 100%);
  text-align: center; color: var(--white);
  padding: 90px 5%;
  position: relative; overflow: hidden;
}
.cta-banner::before {
  content: '';
  position: absolute; top: -50%; left: -25%;
  width: 600px; height: 600px;
  background: rgba(255,255,255,0.04);
  border-radius: 50%;
}
.cta-banner::after {
  content: '';
  position: absolute; bottom: -40%; right: -15%;
  width: 500px; height: 500px;
  background: rgba(255,255,255,0.04);
  border-radius: 50%;
}
.cta-banner .section-title { color: var(--white); }
.cta-banner p { color: rgba(255,255,255,0.75); max-width: 600px; margin: 0 auto 36px; font-size: 1rem; line-height: 1.8; }
.cta-actions { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; position: relative; z-index: 1; }

.btn-outline:hover {
  background: var(--white);
  color: var(--green);
  border-color: var(--white);
}




/* ── CONTACT SECTION ── */
#contact { background: var(--cream-light); }
.contact-grid {
  display: grid; grid-template-columns: 1fr 1.2fr;
  gap: 60px; align-items: start; margin-top: 60px;
}
.contact-info-cards {
  display: flex; flex-direction: column; gap: 20px; margin: 32px 0;
}
.contact-info-card {
  display: flex; gap: 16px; align-items: flex-start;
  background: var(--white); padding: 22px;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
}
.contact-info-card:hover { transform: translateX(6px); box-shadow: var(--shadow-md); }
.contact-icon {
  width: 48px; height: 48px; flex-shrink: 0;
  background: var(--green-pale);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
  transition: background var(--transition);
}
.contact-info-card:hover .contact-icon { background: var(--green); }
.contact-info-card h4 { font-size: 0.8rem; font-weight: 600; color: var(--text-light); text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 4px; }
.contact-info-card p { font-size: 0.95rem; color: var(--text-dark); line-height: 1.5; }

.contact-form {
  background: var(--white); padding: 44px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
}
.contact-form h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.8rem; font-weight: 700; color: var(--text-dark);
  margin-bottom: 8px;
}
.contact-form p { font-size: 0.9rem; color: var(--text-light); margin-bottom: 28px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block; font-size: 0.8rem; font-weight: 600;
  color: var(--text-mid); letter-spacing: 0.06em; text-transform: uppercase;
  margin-bottom: 8px;
}
.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: 12px 16px;
  border: 1.5px solid var(--green-pale);
  border-radius: var(--radius-sm);
  font-family: 'Jost', sans-serif; font-size: 0.9rem;
  color: var(--text-dark); background: var(--cream-light);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(61,107,79,0.1);
  background: var(--white);
}
.form-group textarea { height: 130px; resize: vertical; }
.form-success {
  display: none;
  background: var(--green-pale); color: var(--green);
  padding: 16px; border-radius: var(--radius-sm);
  font-size: 0.9rem; font-weight: 500; text-align: center;
  margin-top: 16px;
}

/* ── MAP ── */
.map-embed {
  margin-top: 60px;
  border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-md); height: 350px;
}
.map-embed iframe { width: 100%; height: 100%; border: none; }

/* ── FOOTER ── */
footer {
  background: var(--text-dark);
  color: var(--white);
}
.footer-top {
  padding: 70px 5% 50px;
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
}
.footer-brand .nav-logo-text span:first-child { color: var(--green-light); }
.footer-brand .nav-logo-text span:last-child { color: rgba(255,255,255,0.4); }
.footer-tagline {
  font-size: 0.88rem; color: rgba(255,255,255,0.5);
  line-height: 1.8; margin: 16px 0 24px;
}
.footer-socials { display: flex; gap: 10px; }
.footer-social {
  width: 38px; height: 38px;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.5); font-size: 0.95rem;
  text-decoration: none;
  transition: all var(--transition);
}
.footer-social:hover { background: var(--green); border-color: var(--green); color: var(--white); }
.footer-col h4 {
  font-size: 0.78rem; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 20px;
}
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a {
  font-size: 0.9rem; color: rgba(255,255,255,0.5);
  text-decoration: none; transition: color var(--transition);
}
.footer-col ul li a:hover { color: var(--white); }
.footer-bottom {
  padding: 22px 5%;
  border-top: 1px solid rgba(255,255,255,0.07);
  display: flex; align-items: center; justify-content: space-between;
  font-size: 0.8rem; color: rgba(255,255,255,0.35);
}
.footer-bottom a { color: var(--gold); text-decoration: none; }

/* ── BACK TO TOP ── */
#back-to-top {
  position: fixed; bottom: 36px; right: 36px;
  width: 48px; height: 48px;
  background: var(--green); color: var(--white);
  border: none; border-radius: 50%; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
  box-shadow: var(--shadow-md);
  opacity: 0; pointer-events: none;
  transform: translateY(20px);
  transition: all var(--transition);
  z-index: 500;
}
#back-to-top.visible { opacity: 1; pointer-events: auto; transform: translateY(0); }
#back-to-top:hover { background: var(--brown); transform: translateY(-4px) !important; }

/* ── PAGE TRANSITION ── */
.page-transition {
  position: fixed; inset: 0;
  background: var(--green);
  z-index: 99999;
  transform: scaleY(1);
  transform-origin: top;
  transition: transform 0.6s cubic-bezier(0.76, 0, 0.24, 1);
}
.page-transition.done { transform: scaleY(0); pointer-events: none; }

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .hero { grid-template-columns: 1fr; text-align: center; }
  .hero-content { padding: 0px 5% 40px; max-width: 600px; margin: 0 auto; }
  .hero-stats { justify-content: center; }
  .hero-actions { justify-content: center; }
  .hero-visual { padding: 20px 5% 60px; }
  .hero-img-wrap { width: 320px; height: 320px; }

  #about { grid-template-columns: 1fr; gap: 48px; }
  .about-img-grid { max-width: 500px; margin: 0 auto; }

  .treatments-grid { grid-template-columns: repeat(2, 1fr); }
  .treatment-card.featured { grid-column: span 2; grid-template-columns: 1fr; }
  .treatment-card.featured .treatment-img { height: 240px; }

  .why-grid { grid-template-columns: repeat(2, 1fr); }

  .blog-grid { grid-template-columns: repeat(2, 1fr); }

  .contact-grid { grid-template-columns: 1fr; }
  .contact-form { padding: 32px; }

  .footer-top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  section { padding: 70px 5%; }
  .nav-links { display: none; position: fixed; top: 64px; left: 0; right: 0; background: #0A0909; flex-direction: column; padding: 20px; box-shadow: var(--shadow-md); z-index: 999; }
  .nav-links.open { display: flex; }
  .nav-toggle { display: flex; }
  .treatments-grid { grid-template-columns: 1fr; }
  .treatment-card.featured { grid-column: span 1; }
  .why-grid { grid-template-columns: 1fr 1fr; }
  .blog-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .hero-desc { max-width: 100%; }
  .float-card:nth-child(2) { left: -20px; bottom: 10px; }
  .float-card:nth-child(3) { right: -10px; top: 10px; }
  .testimonial-slide { padding: 0 20px; }
  .testimonial-card { padding: 32px 28px; }
}

@media (max-width: 480px) {
  .why-grid { grid-template-columns: 1fr; }
  .hero-stats { flex-wrap: wrap; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
  .about-img-grid { grid-template-columns: 1fr; }
  .about-img-grid img:first-child { aspect-ratio: 16/9; grid-row: auto; }
}





/* ============================================================
   ABOUT PAGE HERO - Left Aligned Design
   Ensures text stays on the left while keeping right-side art.
============================================================ */

/* 1. Container: Forces everything to start from the left */
.hero-about {
  display: flex !important;
  justify-content: flex-start !important;
  align-items: center !important;
  text-align: left !important;
}

/* 2. Background: Cloned from Contact page for visual consistency */
.hero-about .hero-bg {
  background: 
    radial-gradient(ellipse 55% 70% at 85% 110%, rgba(180,130,40,0.18) 0%, transparent 65%),
    radial-gradient(ellipse 40% 50% at 95% 10%, rgba(100,170,80,0.10) 0%, transparent 60%),
    radial-gradient(ellipse 60% 80% at -10% 50%, rgba(30,90,50,0.55) 0%, transparent 70%),
    linear-gradient(148deg, #1b3d28 0%, #0d2218 45%, #111c14 100%) !important;
}

/* 3. Content Block: Removes centering and forces left alignment */
.hero-about .page-hero-content {
  max-width: 680px;
  margin-left: 0 !important;
  margin-right: auto !important;
  text-align: left !important;
  z-index: 3;
}

/* 4. Decorative Divider: Fixed to the left */
.hero-about .hero-divider {
  width: 80px;
  background: linear-gradient(to right, #d4af37, transparent);
  margin: 18px 0 22px 0 !important;
}

/* 5. Paragraph: Mission-style text with a gold accent border */
.hero-about p {
  border-left: 3px solid rgba(212,175,55,0.4);
  padding-left: 25px;
  margin-left: 0 !important;
  font-style: italic;
  color: rgba(245,240,232,0.85) !important;
  line-height: 1.85;
}

/* 6. Buttons: Aligned to the left */
.hero-about .hero-cta-row {
  justify-content: flex-start !important;
  gap: 20px;
  margin-top: 30px;
}

/* 7. Right-side Decorations: Mandala visibility */
.hero-about .hero-mandala {
  opacity: 0.08;
  pointer-events: none;
  z-index: 1;
}

/* 8. Mobile Fixes */
@media (max-width: 768px) {
  .hero-about .section-title {
    font-size: 3.2rem !important;
  }
  .hero-about p {
    padding-left: 15px;
  }
}