:root {
  --primary: #2E7D32;
  --secondary: #66BB6A;
  --accent: #8BC34A;
  --brand-olive: #819B3F;
  --accent-soft: #63E6BE;
  --background: #F8FFF8;
  --surface: #ffffff;
  --surface-soft: rgba(255, 255, 255, 0.92);
  --text: #1f2937;
  --muted: #4b5563;
  --border: rgba(46, 125, 50, 0.16);
  --shadow: 0 24px 50px rgba(46, 125, 50, 0.14);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  color: var(--text);
  background: radial-gradient(circle at top left, rgba(139, 195, 74, 0.12), transparent 35%), radial-gradient(circle at bottom right, rgba(102, 187, 106, 0.11), transparent 30%), var(--background);
  line-height: 1.7;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Poppins', sans-serif;
  line-height: 1.2;
}

img {
  max-width: 100%;
  display: block;
}

section {
  padding: 90px 0;
}

.page-shell {
  min-height: 100vh;
}

.site-header {
  backdrop-filter: blur(16px);
  background: rgba(255, 255, 255, 0.86);
  border-bottom: 1px solid rgba(255,255,255,0.65);
  box-shadow: 0 18px 50px rgba(46,125,50,0.08);
  z-index: 1040;
}

.navbar-nav .nav-link {
  color: var(--text);
  font-weight: 500;
  padding: 0.7rem 0.95rem;
}

.navbar-nav .nav-link.active,
.navbar-nav .nav-link:hover {
  color: var(--accent);
}

.navbar-toggler {
  border: none;
  display: inline-flex !important;
  visibility: visible !important;
  opacity: 1 !important;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  padding: 0.4rem;
  background: rgba(255,255,255,0.95);
  border-radius: 14px;
  box-shadow: 0 10px 22px rgba(46,125,50,0.14);
  position: relative;
  z-index: 1055;
}

/* Ensure the toggler icon is visible even when Bootstrap defaults are overridden */
.navbar-toggler {
  display: inline-flex !important;
  visibility: visible !important;
  opacity: 1 !important;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  padding: 0.4rem;
  background: rgba(255,255,255,0.95);
  border-radius: 14px;
  box-shadow: 0 10px 22px rgba(46,125,50,0.14);
  position: relative;
  z-index: 1055;
}

.navbar-toggler-icon {
  display: inline-block !important;
  width: 1.5rem;
  height: 1.5rem;
  background-size: 1.5rem 1.5rem;
  background-repeat: no-repeat;
  background-position: center;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(34,197,94,0.95)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2.5' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Desktop navbar: keep links visible and hide toggler */
@media (min-width: 992px) {
  .navbar-toggler {
    display: none !important;
  }

  .navbar-collapse,
  .navbar-collapse.collapse,
  .navbar-collapse.collapse:not(.show),
  .navbar-collapse.show {
    display: flex !important;
    flex-basis: auto !important;
    position: static !important;
    width: auto !important;
    visibility: visible !important;
    opacity: 1 !important;
  }

  .navbar-nav {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    align-items: center;
  }

  .navbar-nav .nav-link,
  .navbar-nav .nav-item {
    white-space: nowrap;
    visibility: visible !important;
    opacity: 1 !important;
    display: block !important;
  }
}

/* Mobile navbar: allow Bootstrap collapse to work */
@media (max-width: 991px) {
  .site-header .navbar-collapse {
    position: static;
    background: transparent;
    padding: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .site-header .navbar-collapse.show {
    background: rgba(255,255,255,0.96);
    padding: 0.75rem 1rem;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(16,24,40,0.06);
    position: absolute;
    top: 64px;
    right: 16px;
    left: 16px;
    z-index: 1050;
  }

  .site-header .navbar-nav {
    margin-left: 0 !important;
    width: 100%;
  }

  .site-header .navbar-nav .nav-link {
    color: var(--text) !important;
    padding: 0.8rem 0.75rem;
    width: 100%;
    background: transparent;
  }

  .site-header .navbar-nav .nav-item {
    width: 100%;
  }
}

@media (min-width: 992px) {
  .site-header .navbar-collapse {
    display: flex !important;
    flex-basis: auto;
    position: static !important;
  }
  .navbar-nav {
    display: flex !important;
    flex-direction: row !important;
    align-items: center;
  }
}

/* Ensure nav links contrast when header overlays hero */
.site-header.sticky-top .navbar-nav .nav-link {
  color: #0f2a13 !important;
}

@media (max-width: 991px) {
  .navbar-collapse.collapsing,
  .navbar-collapse.show {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
  }
}

.navbar-collapse.show {
  max-height: none !important;
}

/* small visual tweak for active/hover state */
.navbar-nav .nav-link.active,
.navbar-nav .nav-link:hover {
  color: var(--accent) !important;
}

.brand-mark {
  width: 46px;
  height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--secondary), var(--accent));
  color: white;
  font-weight: 700;
  box-shadow: 0 18px 35px rgba(46,125,50,0.22);
}

.brand-logo {
  width: 46px;
  height: 46px;
  object-fit: contain;
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 18px 35px rgba(46,125,50,0.22);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.brand-text small {
  color: var(--muted);
  font-size: 0.75rem;
  margin-top: 0.25rem;
}

.brand-text .wellness {
  color: var(--brand-olive);
}

.btn-primary,
.btn-outline-primary,
.btn-theme-toggle {
  border-radius: 999px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.btn-primary {
  background: linear-gradient(135deg, #2EA862, #62C17D 48%, #8BC34A);
  border: none;
  color: white;
  padding: 0.85rem 1.45rem;
  box-shadow: 0 18px 40px rgba(46, 125, 50, 0.18);
}

.btn-primary:hover,
.btn-outline-primary:hover,
.btn-theme-toggle:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 45px rgba(46, 125, 50, 0.2);
}

.btn-outline-primary {
  color: #18472f;
  background: rgba(107, 181, 104, 0.16);
  border-color: rgba(46,125,50,0.35);
  padding: 0.85rem 1.45rem;
}

.hero-section .btn-outline-primary {
  color: white;
  background: rgba(46,125,50,0.22);
  border-color: rgba(255,255,255,0.65);
  box-shadow: 0 16px 30px rgba(46,125,50,0.18);
}

.btn-outline-primary:hover {
  background: #ffffff;
  color: var(--primary);
  border-color: var(--primary);
}

.hero-section .btn-outline-primary:hover {
  background: rgba(255,255,255,0.95);
  color: var(--primary);
}

.btn-theme-toggle {
  background: white;
  color: var(--primary);
  border: 1px solid rgba(46,125,50,0.15);
  width: 44px;
  height: 44px;
}

.hero-section {
  padding: 100px 0 80px;
  position: relative;
  overflow: hidden;
  background: radial-gradient(circle at top left, rgba(139, 195, 74, 0.18), transparent 28%), radial-gradient(circle at bottom right, rgba(102, 187, 106, 0.16), transparent 28%), linear-gradient(135deg, #F8FFF8, #E6F8E9 40%, #F5FFF5 100%);
}

.hero-section .hero-pill {
  background: rgba(255,255,255,0.95);
  border: 1px solid rgba(139,195,74,0.27);
}

.hero-section::before,
.hero-section::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  opacity: 0.22;
  filter: blur(42px);
}

.hero-section::before {
  width: 520px;
  height: 520px;
  background: rgba(102, 187, 106, 0.22);
  top: -100px;
  right: -150px;
}

.hero-section::after {
  width: 320px;
  height: 320px;
  background: rgba(139, 195, 74, 0.26);
  bottom: -70px;
  left: -120px;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.24em;
  font-weight: 700;
  color: var(--primary);
  font-size: 0.78rem;
}

.display-hero {
  font-size: clamp(2.1rem, 4vw, 3.6rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.02;
}

.glass-card,
.service-card,
.program-card,
.story-card,
.blog-card,
.faq-card,
.contact-card,
.stat-card,
.calculator-card {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 32px;
  box-shadow: 0 22px 70px rgba(46, 125, 50, 0.12);
}

.glass-card {
  border-radius: 32px;
}

.about-portrait-wrap {
  position: relative;
  max-width: 440px;
  margin: 0 auto;
  padding: 0.75rem;
  background: linear-gradient(145deg, rgba(102, 187, 106, 0.28), rgba(139, 195, 74, 0.1));
  border-radius: 32px;
  box-shadow: 0 24px 60px rgba(46, 125, 50, 0.16);
}

.about-portrait {
  width: 100%;
  max-height: 620px;
  object-fit: cover;
  object-position: center top;
  border-radius: 24px;
}

.about-portrait-caption {
  position: absolute;
  right: 1.5rem;
  bottom: 1.5rem;
  display: flex;
  flex-direction: column;
  padding: 0.8rem 1rem;
  color: #ffffff;
  background: rgba(31, 61, 46, 0.9);
  border-radius: 14px;
  line-height: 1.25;
}

.about-portrait-caption span {
  font-size: 0.78rem;
  opacity: 0.82;
}

.hero-visual img,
.program-card img,
.story-card img,
.blog-card img,
.gallery-item img {
  border-radius: 24px;
  object-fit: cover;
  min-height: 220px;
}

.section-title {
  margin-bottom: 2rem;
}

.section-title h2 {
  font-size: clamp(1.7rem, 3vw, 2.75rem);
  font-weight: 800;
  color: #1f3d2e;
}

.section-title p {
  color: var(--muted);
  max-width: 700px;
  margin: 0 auto;
}

.icon-badge {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(46,125,50,0.15), rgba(139,195,74,0.22));
  color: var(--primary);
  font-size: 1.2rem;
  margin-bottom: 1rem;
}

.service-card,
.program-card,
.story-card,
.blog-card,
.faq-card {
  padding: 1.4rem;
  position: relative;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.service-card::after,
.program-card::after,
.story-card::after,
.blog-card::after,
.faq-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top left, rgba(139,195,74,0.18), transparent 38%);
  opacity: 0.42;
  pointer-events: none;
}

.service-card:hover,
.program-card:hover,
.story-card:hover,
.blog-card:hover,
.faq-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 46px rgba(16, 24, 40, 0.14);
  background: linear-gradient(135deg, rgba(255,255,255,0.95), rgba(237,250,236,0.95));
}

.service-card h3,
.program-card h3,
.story-card h3,
.blog-card h3,
.faq-card h3 {
  position: relative;
  z-index: 1;
}

.service-card p,
.program-card p,
.story-card p,
.blog-card p,
.faq-card p {
  position: relative;
  z-index: 1;
}

.stat-card {
  padding: 1.6rem;
  text-align: center;
  border: 1px solid rgba(255,255,255,0.8);
  background: linear-gradient(135deg, rgba(255,255,255,0.95), rgba(239,250,238,0.95));
}

.stat-card .counter {
  font-size: 2.3rem;
  font-weight: 800;
  color: #1f5a2f;
}

.offer-banner {
  background: linear-gradient(135deg, #2E7D32, #66BB6A 42%, #8BC34A);
  color: white;
  border-radius: 32px;
  padding: 2.4rem;
  box-shadow: 0 22px 60px rgba(46,125,50,0.16);
}

.offer-banner .btn-light {
  border-radius: 999px;
  padding: 0.8rem 1.3rem;
}

.list-check li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.7rem;
}

.list-check li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: 700;
}

.site-footer {
  background: linear-gradient(180deg, #152d1f 0%, #0d1b13 100%);
  color: #fff;
  margin-top: 60px;
}

.site-footer h5,
.site-footer h6,
.site-footer p,
.site-footer li,
.site-footer a,
.site-footer .text-muted {
  color: #fff !important;
}

.site-footer a:hover {
  color: #ADE98A !important;
}

.site-footer .text-muted {
  opacity: 0.8 !important;
}

.floating-whatsapp {
  position: fixed;
  right: 24px;
  bottom: 90px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25D366;
  color: white;
  display: grid;
  place-items: center;
  font-size: 1.4rem;
  box-shadow: var(--shadow);
  z-index: 1030;
}

.back-to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 48px !important;
  min-width: 48px !important;
  max-width: 48px !important;
  height: 48px !important;
  min-height: 48px !important;
  max-height: 48px !important;
  padding: 0 !important;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.28);
  display: none;
  align-items: center;
  justify-content: center;
  transition: transform 0.25s ease, background-color 0.25s ease, box-shadow 0.25s ease;
  box-shadow: 0 18px 35px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(10px);
  z-index: 1030;
}

.back-to-top i {
  font-size: 1.05rem;
  line-height: 1;
}

.back-to-top:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.22);
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.form-control,
.form-select,
textarea {
  border-radius: 16px;
  border: 1px solid var(--border);
  padding: 0.8rem 1rem;
}

.form-control:focus,
.form-select:focus,
textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 0.2rem rgba(46,125,50,0.15);
}

.badge-soft {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  background: rgba(46,125,50,0.1);
  color: var(--primary);
  font-weight: 600;
  font-size: 0.8rem;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.75rem 1.2rem;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(255,255,255,0.94), rgba(255,255,255,0.78));
  border: 1px solid rgba(255,255,255,0.62);
  margin-bottom: 1.2rem;
  color: var(--primary);
}

.page-header {
  padding: 90px 0 40px;
  background: linear-gradient(135deg, rgba(46,125,50,0.08), rgba(139,195,74,0.14));
}

.admin-card {
  background: var(--surface);
  border-radius: 24px;
  padding: 1.5rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}
