/**
 * ==============================================================================
 * SANJEEVANI HOMEOPATHY - BOTANICAL HERO DESIGN SYSTEM
 * Calm, trustworthy, natural, premium wellness aesthetic.
 * ==============================================================================
 */

:root {
  /* Botanical Palette */
  --hero-bg: #FBF8F1;          /* Warm Ivory Base */
  --hero-bg-soft: #F3EEE2;     /* Muted Natural Paper */
  --hero-ink: #1F2A24;         /* Deep Botanical Green-Black for Headings */
  --hero-muted: #5B6A62;       /* Slate Sage for Body Text */
  --hero-brand: #0F6B45;       /* Sanjeevani Signature Herbal Emerald */
  --hero-brand-hover: #177245; /* Slightly Brighter Emerald */
  --hero-brand-tint: rgba(15, 107, 69, 0.08);
  --hero-accent: #B8893B;      /* Warm Muted Gold */
  --hero-accent-gold: #C5A059; /* Bright Refined Gold */
  --hero-pencil: #2E4537;      /* Dull Botanical Graphite Pencil Tone */
  --hero-blush: #F7E9E4;       /* Soft Botanical Blush Tint */
  --hero-white: #FFFFFF;
  --hero-card-shadow: 0 24px 60px -15px rgba(31, 42, 36, 0.12), 0 6px 18px rgba(0, 0, 0, 0.04);
}

html, body {
  overflow-x: clip !important;
  max-width: 100% !important;
}

/* Base Hero Wrapper */
.hero-showcase-section,
.treatments-hero,
.contact-hero-ultra,
.testimonial-hero-ultra {
  position: relative;
  background-color: var(--hero-bg);
  background-image:
    radial-gradient(ellipse 950px 520px at 50% 24%, rgba(247, 233, 228, 0.45) 0%, rgba(251, 248, 241, 0) 72%),
    radial-gradient(circle 600px at 15% 15%, rgba(15, 107, 69, 0.04) 0%, transparent 70%),
    radial-gradient(circle 600px at 85% 20%, rgba(184, 137, 59, 0.045) 0%, transparent 70%);
  overflow: hidden;
  max-width: 100%;
  width: 100%;
  box-sizing: border-box;
  border-bottom: 1px solid rgba(15, 107, 69, 0.08);
  isolation: isolate;
}

.hero-showcase-section {
  padding: 56px 24px 68px;
}

.treatments-hero {
  padding: 64px 0 60px;
}

.contact-hero-ultra,
.testimonial-hero-ultra {
  padding: 85px 5% 80px;
}

/* Subtle Paper Grain Overlay (3-4% opacity) */
.hero-paper-grain {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.035;
  z-index: 1;
  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.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

/* Botanical Line Art Containers */
.botanical-art-layer {
  position: absolute;
  pointer-events: none;
  z-index: 2;
  will-change: transform;
}

/* Left Sprig Cluster (large leafy cluster with seed pods bleeding off left edge) */
.botanical-art-left {
  top: -35px;
  left: -45px;
  width: 480px;
  height: 640px;
  opacity: 0.17;
  color: var(--hero-pencil);
  background-image: url('../images/botanical/herb-sprig-left.svg');
  background-repeat: no-repeat;
  background-size: contain;
  background-position: left top;
  animation: botanicalSwayLeft 19s ease-in-out infinite;
}

/* Right Branch (lighter delicate branch with flowers bleeding off right edge) */
.botanical-art-right {
  top: -20px;
  right: -45px;
  width: 440px;
  height: 590px;
  opacity: 0.16;
  color: var(--hero-pencil);
  background-image: url('../images/botanical/herb-branch-right.svg');
  background-repeat: no-repeat;
  background-size: contain;
  background-position: right top;
  animation: botanicalSwayRight 22s ease-in-out infinite;
}

/* Bottom Subtle Seed Pod Accent (anchoring the left margin) */
.botanical-art-bottom {
  bottom: 25px;
  left: 3%;
  width: 170px;
  height: 190px;
  opacity: 0.13;
  color: var(--hero-pencil);
  background-image: url('../images/botanical/seed-pods.svg');
  background-repeat: no-repeat;
  background-size: contain;
  background-position: left bottom;
  animation: botanicalSwayGentle 16s ease-in-out infinite;
}

/* Soft Bottom Fade into Next Section */
.hero-bottom-fade {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 75px;
  pointer-events: none;
  z-index: 2;
  background: linear-gradient(to bottom, rgba(251, 248, 241, 0) 0%, var(--hero-bg-soft) 100%);
}

/* Hero Content Container (Preserves central 55-60% whitespace for pure readability) */
.hero-inner-container {
  max-width: 1360px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 4;
}

.hero-intro-content {
  text-align: center;
  max-width: 980px;
  margin: 0 auto 34px;
}

/* H1 Main Heading */
.hero-main-heading {
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 46px;
  font-weight: 700;
  color: #0c3e29;
  line-height: 1.22;
  margin: 0 auto 15px;
  letter-spacing: -0.02em;
  max-width: 830px;
  hyphens: none;
  overflow-wrap: normal;
  word-break: normal;
  animation: heroRiseFade 0.75s 0.08s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.hero-main-heading .gradient-text {
  font-family: inherit;
  font-weight: 700;
  background: linear-gradient(135deg, #0f6b45 0%, #177245 45%, #c8a96a 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.mobile-break {
  display: none;
}

/* Sub-headline */
.hero-sub-heading {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 16.5px;
  color: #4a5c52;
  line-height: 1.65;
  max-width: 820px;
  margin: 0 auto 24px;
  font-weight: 450;
  animation: heroRiseFade 0.75s 0.16s cubic-bezier(0.16, 1, 0.3, 1) both;
}

/* Actions Wrapper (Buttons + Google Reviews side-by-side on desktop) */
.hero-actions-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px 20px;
  margin: 0 auto 18px;
  animation: heroRiseFade 0.75s 0.22s cubic-bezier(0.16, 1, 0.3, 1) both;
}

/* CTAs Action Buttons Row */
.hero-buttons-row {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 0;
  flex-wrap: wrap;
}

/* Primary Filled CTA */
.hero-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 34px;
  min-height: 48px;
  background: linear-gradient(135deg, #0f6b45 0%, #177245 100%);
  color: #ffffff !important;
  border: none;
  border-radius: 999px;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 15.5px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 6px 20px rgba(15, 107, 69, 0.28);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease;
  white-space: nowrap;
}

.hero-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(15, 107, 69, 0.38);
  color: #ffffff !important;
}

.hero-btn-primary:focus-visible {
  outline: 3px solid var(--hero-brand);
  outline-offset: 3px;
}

/* Secondary Outline CTA */
.hero-btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 32px;
  min-height: 48px;
  background-color: #ffffff;
  border: 1.5px solid #0f6b45;
  color: #0f6b45 !important;
  border-radius: 999px;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 15.5px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.04);
  transition: all 0.25s ease;
  white-space: nowrap;
}

.hero-btn-secondary:hover {
  background-color: #eef7f2;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(15, 107, 69, 0.15);
  color: #0f6b45 !important;
}

.hero-btn-secondary:focus-visible {
  outline: 3px solid var(--hero-brand);
  outline-offset: 3px;
}

/* Google Reviews & Stars Strip */
.hero-google-review-strip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 4px 0 !important;
  background: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  margin-bottom: 0;
}

.google-g-wrap {
  display: flex;
  align-items: center;
}

.google-g-svg {
  display: block;
}

.google-stars-row {
  display: flex;
  align-items: center;
  gap: 2.5px;
  color: #fbbc04;
  font-size: 13.5px;
}

.google-rating-score {
  font-size: 14px;
  color: #2b2b2b;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.google-rating-score strong {
  font-weight: 700;
  color: #1a1a1a;
}

.google-rating-score span {
  color: #5f6368;
  font-size: 13px;
  margin-left: 2px;
}

/* Patient Trust Metric Strip */
.hero-patients-metric-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  font-size: 14.5px;
  color: #4a5c52;
  font-weight: 600;
  letter-spacing: 0.2px;
  margin: 0 auto 28px;
  animation: heroRiseFade 0.75s 0.28s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.hero-patients-metric-strip strong {
  color: #0c3e29;
  font-weight: 800;
}

.hpm-divider {
  color: rgba(15, 107, 69, 0.35);
  font-weight: 400;
}

/* Rounded Showcase Frame below Intro */
.hero-carousel-frame {
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  border-radius: 28px;
  overflow: hidden;
  border: 1.5px solid rgba(15, 107, 69, 0.16);
  background: linear-gradient(180deg, #FFFFFF 0%, var(--hero-blush) 100%);
  box-shadow: var(--hero-card-shadow);
  position: relative;
  z-index: 4;
  transition: box-shadow 0.35s ease, border-color 0.35s ease;
  animation: heroRiseFade 0.85s 0.4s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.hero-carousel-frame:hover {
  border-color: rgba(15, 107, 69, 0.28);
  box-shadow: 0 30px 75px -15px rgba(31, 42, 36, 0.16), 0 8px 24px rgba(0, 0, 0, 0.05);
}

/* Decorative Ring Motif Overlay in Frame Corner */
.hero-frame-ring-motif {
  position: absolute;
  top: -60px;
  right: -60px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  border: 1px dashed rgba(197, 160, 89, 0.3);
  pointer-events: none;
  z-index: 1;
}

.hero-slider {
  position: relative;
  width: 100%;
  aspect-ratio: 1440 / 682;
  height: auto;
  overflow: hidden;
  user-select: none;
  border-radius: inherit;
  z-index: 2;
}

.slider-track {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 0.85s cubic-bezier(0.25, 1, 0.35, 1);
  will-change: transform;
}

.slide {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  position: relative;
  background-size: cover;
  background-position: center;
  user-select: none;
  cursor: pointer;
  transition: transform 0.6s ease;
}

/* Slider Controls: Arrow Buttons (Only arrows visible with almost transparent round box) */
.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12); /* Round box almost transparent */
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.25); /* Faint delicate edge */
  color: #0c3e29; /* Crisp signature green arrow */
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
  opacity: 0.85; /* Visible so only the arrows stand out */
  pointer-events: auto;
  filter: drop-shadow(0 1px 2px rgba(255, 255, 255, 0.7));
}

.hero-carousel-frame:hover .slider-arrow {
  opacity: 1;
}

.slider-arrow:hover {
  background: rgba(255, 255, 255, 0.28);
  border-color: rgba(15, 107, 69, 0.25);
  color: #07472c;
  transform: translateY(-50%) scale(1.06);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.slider-arrow:focus-visible {
  opacity: 1;
  outline: 2px solid var(--hero-brand);
  outline-offset: 2px;
}

.slider-prev {
  left: 20px;
}

.slider-next {
  right: 20px;
}

/* Slider Pagination Dots (Bottom 4 small bar dots very small, almost not visible) */
.slider-dots {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 3px 6px;
  background: transparent; /* No heavy dark pill background */
  border: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-radius: 999px;
}

.slider-dots .dot {
  position: relative;
  width: 24px;
  height: 24px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.slider-dots .dot::after {
  content: "";
  display: block;
  width: 3.5px;
  height: 3.5px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35); /* Very small, almost not visible */
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}

.slider-dots .dot.active::after {
  width: 10px;
  height: 3.5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7); /* Small bar dot, subtle and delicate */
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.45);
}

.slider-dots .dot:hover::after {
  background: rgba(255, 255, 255, 0.85);
}

.slider-dots .dot:focus-visible {
  outline: 2px solid var(--hero-white);
  outline-offset: 2px;
  border-radius: 50%;
}

/* ==============================================================================
   KEYFRAME ANIMATIONS
   ============================================================================== */

@keyframes heroRiseFade {
  0% {
    opacity: 0;
    transform: translateY(16px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes botanicalSwayLeft {
  0%, 100% {
    transform: rotate(0deg) translate3d(0, 0, 0);
  }
  50% {
    transform: rotate(-1.5deg) translate3d(-6px, 8px, 0);
  }
}

@keyframes botanicalSwayRight {
  0%, 100% {
    transform: rotate(0deg) translate3d(0, 0, 0);
  }
  50% {
    transform: rotate(1.5deg) translate3d(6px, -6px, 0);
  }
}

@keyframes botanicalSwayGentle {
  0%, 100% {
    transform: rotate(0deg);
  }
  50% {
    transform: rotate(1deg) translateY(4px);
  }
}

/* ==============================================================================
   RESPONSIVE DESIGN SYSTEM
   ============================================================================== */

/* Tablet & Smaller Desktops (769px - 1024px) */
@media (max-width: 1024px) {
  .hero-showcase-section {
    padding: 44px 20px 56px;
  }

  .botanical-art-left {
    top: -25px;
    left: -50px;
    width: 380px;
    height: 520px;
    opacity: 0.14;
  }

  .botanical-art-right {
    top: -15px;
    right: -50px;
    width: 350px;
    height: 480px;
    opacity: 0.13;
  }

  .hero-patients-metric-strip {
    gap: 12px;
    font-size: 13.5px;
  }
}

/* Mobile Devices (<= 768px) */
@media (max-width: 768px) {
  .hero-showcase-section {
    padding: 32px 14px 44px;
  }

  .hero-inner-container {
    padding: 0 4px;
  }

  /* Shrink botanical art to 55-60%, soft pencil sketch opacity, hug extreme corners */
  .botanical-art-left {
    top: -20px;
    left: -40px;
    width: 230px;
    height: 310px;
    opacity: 0.11;
  }

  .botanical-art-right {
    top: -10px;
    right: -40px;
    width: 210px;
    height: 290px;
    opacity: 0.10;
  }

  .botanical-art-bottom {
    display: none; /* Hide bottom accent to keep mobile layout completely unencumbered */
  }

  .hero-intro-content {
    margin-bottom: 22px;
  }

  .hero-main-heading {
    font-size: 23px;
    line-height: 1.28;
    margin-bottom: 10px;
  }

  .mobile-break {
    display: inline;
  }

  .hero-sub-heading {
    font-size: 13.5px;
    line-height: 1.55;
    margin-bottom: 16px;
    padding: 0 4px;
  }

  .hero-actions-wrapper {
    flex-direction: column;
    gap: 12px;
    width: 100%;
    margin-bottom: 14px;
  }

  .hero-buttons-row {
    display: flex;
    gap: 10px;
    width: 100%;
    margin-bottom: 0;
  }

  .hero-btn-primary,
  .hero-btn-secondary {
    flex: 1;
    padding: 12px 10px;
    font-size: 13px;
    justify-content: center;
    text-align: center;
    border-radius: 999px;
    min-height: 44px; /* Touch target >= 44px */
  }

  .hero-google-review-strip {
    padding: 4px 8px !important;
    gap: 6px;
    font-size: 12px;
  }

  .google-g-svg {
    width: 18px;
    height: 18px;
  }

  .google-stars-row {
    font-size: 11px;
    gap: 1.5px;
  }

  .google-rating-score {
    font-size: 12px;
  }

  .hero-patients-metric-strip {
    font-size: 12.5px;
    gap: 10px;
    margin-bottom: 16px;
  }

  .hero-carousel-frame {
    border-radius: 18px;
    margin-top: 10px;
  }

  /* Mobile slider arrow controls (almost transparent round box, clear arrows) */
  .slider-arrow {
    opacity: 0.85;
    pointer-events: auto;
    width: 36px;
    height: 36px;
    font-size: 14px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.22);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  }

  .slider-prev {
    left: 8px;
  }

  .slider-next {
    right: 8px;
  }

  /* Very small unobtrusive pagination bar dots */
  .slider-dots {
    bottom: 8px;
    padding: 2px 4px;
    gap: 4px;
  }

  .slider-dots .dot {
    width: 24px;
    height: 24px;
  }

  .slider-dots .dot::after {
    width: 3px;
    height: 3px;
  }

  .slider-dots .dot.active::after {
    width: 8px;
    height: 3px;
  }
}

/* Very Small Screens (<= 375px) */
@media (max-width: 375px) {
  .hero-main-heading {
    font-size: 21px;
  }

  .hero-sub-heading {
    font-size: 12.5px;
  }

  .botanical-art-left {
    width: 190px;
    height: 260px;
    opacity: 0.09;
  }

  .botanical-art-right {
    width: 180px;
    height: 240px;
    opacity: 0.085;
  }
}

/* ==============================================================================
   ACCESSIBILITY: PREFERS REDUCED MOTION
   ============================================================================== */
@media (prefers-reduced-motion: reduce) {
  .hero-main-heading,
  .hero-sub-heading,
  .hero-actions-wrapper,
  .hero-buttons-row,
  .hero-google-review-strip,
  .hero-patients-metric-strip,
  .hero-carousel-frame,
  .botanical-art-left,
  .botanical-art-right,
  .botanical-art-bottom,
  .slider-track,
  .slide,
  .hero-btn-primary,
  .hero-btn-secondary,
  .slider-arrow {
    animation: none !important;
    transition: none !important;
  }
}
