/* ==========================================================
   Nasha Mukti Kendra Yamunanagar — custom styles
   Palette: forest #123D32 | emerald #198754 | sage #DDEBE1
            warm #FAFCF9 | gold #D6A64F | ink #202B27
   ========================================================== */

:root {
  --forest: #123D32;
  --emerald: #198754;
  --sage: #DDEBE1;
  --warm: #FAFCF9;
  --gold: #D6A64F;
  --ink: #202B27;
}

html { scroll-padding-top: 90px; }
body { overflow-x: hidden; }
::selection { background: var(--gold); color: var(--forest); }

/* ---------- Navigation ---------- */
#site-header.nav-transparent { background: transparent; }
#site-header.nav-solid,
#site-header.is-scrolled {
  background: rgba(18, 61, 50, .94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 10px 35px -15px rgba(0, 0, 0, .45);
}
#site-header.is-scrolled nav { height: 68px; }
#site-header nav { transition: height .4s ease; }

.nav-link {
  position: relative;
  display: inline-block;
  padding: .55rem .9rem;
  color: rgba(255, 255, 255, .9);
  transition: color .3s ease;
}
.nav-link::after {
  content: "";
  position: absolute; left: .9rem; right: .9rem; bottom: .25rem;
  height: 2px; background: var(--gold);
  transform: scaleX(0); transform-origin: left;
  transition: transform .35s ease;
}
.nav-link:hover, .nav-link.is-active { color: var(--gold); }
.nav-link:hover::after, .nav-link.is-active::after { transform: scaleX(1); }

.btn-gold {
  background: linear-gradient(135deg, #E6BF73, var(--gold) 55%, #b98a35);
  color: var(--forest);
  box-shadow: 0 10px 25px -10px rgba(214, 166, 79, .8);
  transition: transform .3s ease, box-shadow .3s ease, filter .3s ease;
}
.btn-gold:hover { transform: translateY(-3px); box-shadow: 0 16px 30px -10px rgba(214, 166, 79, .9); filter: brightness(1.05); }

.btn-ghost {
  border: 1.5px solid rgba(255, 255, 255, .55);
  color: #fff;
  background: rgba(255, 255, 255, .08);
  backdrop-filter: blur(6px);
  transition: all .3s ease;
}
.btn-ghost:hover { background: #fff; color: var(--forest); transform: translateY(-3px); }

.btn-forest {
  background: var(--forest); color: #fff;
  transition: all .3s ease;
}
.btn-forest:hover { background: var(--emerald); transform: translateY(-3px); box-shadow: 0 14px 28px -12px rgba(25,135,84,.7); }

/* Burger */
.burger { position: relative; width: 20px; height: 14px; display: block; }
.burger span { position: absolute; left: 0; width: 100%; height: 2px; background: #fff; border-radius: 2px; transition: all .35s ease; }
.burger span:nth-child(1) { top: 0; }
.burger span:nth-child(2) { top: 6px; }
.burger span:nth-child(3) { top: 12px; }
#menu-toggle[aria-expanded="true"] .burger span:nth-child(1) { top: 6px; transform: rotate(45deg); }
#menu-toggle[aria-expanded="true"] .burger span:nth-child(2) { opacity: 0; }
#menu-toggle[aria-expanded="true"] .burger span:nth-child(3) { top: 6px; transform: rotate(-45deg); }

#mobile-menu.is-open { pointer-events: auto; }
#mobile-menu.is-open .mm-backdrop { opacity: 1; }
#mobile-menu.is-open .mm-panel { transform: translateX(0); }
.mm-link { display: block; padding: .85rem 0; border-bottom: 1px solid rgba(255,255,255,.08); transition: color .3s, padding-left .3s; }
.mm-link:hover { color: var(--gold); padding-left: .6rem; }
.mm-panel li { opacity: 0; transform: translateX(24px); transition: opacity .5s ease, transform .5s ease; }
#mobile-menu.is-open .mm-panel li { opacity: 1; transform: none; }
#mobile-menu.is-open .mm-panel li:nth-child(1) { transition-delay: .15s; }
#mobile-menu.is-open .mm-panel li:nth-child(2) { transition-delay: .2s; }
#mobile-menu.is-open .mm-panel li:nth-child(3) { transition-delay: .25s; }
#mobile-menu.is-open .mm-panel li:nth-child(4) { transition-delay: .3s; }
#mobile-menu.is-open .mm-panel li:nth-child(5) { transition-delay: .35s; }
#mobile-menu.is-open .mm-panel li:nth-child(6) { transition-delay: .4s; }
#mobile-menu.is-open .mm-panel li:nth-child(7) { transition-delay: .45s; }

/* ---------- Typography helpers ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: .6rem;
  font-size: .78rem; font-weight: 600; letter-spacing: .28em; text-transform: uppercase;
  color: var(--emerald);
}
.eyebrow::before { content: ""; width: 38px; height: 2px; background: var(--gold); }
.eyebrow.light { color: var(--gold); }
.section-title { font-family: "Playfair Display", serif; font-weight: 700; line-height: 1.12; color: var(--forest); }
.gold-text { color: var(--gold); font-style: italic; }

/* ---------- Hero ---------- */
.hero-bg {
  background:
    url('../img/rehabilitation-centres-under-300kb.jpg') center / cover no-repeat,
    radial-gradient(ellipse at 70% 80%, #F3CF86 0%, rgba(214,166,79,.5) 18%, transparent 45%),
    linear-gradient(170deg, #0c2a22 0%, #123D32 40%, #198754 100%);
  will-change: transform;
}
.hero-overlay {
  background:
    linear-gradient(100deg, rgba(10, 38, 30, .93) 0%, rgba(18, 61, 50, .78) 45%, rgba(18, 61, 50, .25) 100%),
    linear-gradient(0deg, rgba(10, 38, 30, .85) 0%, transparent 35%);
}
.sun-glow {
  position: absolute; right: -8%; bottom: -12%;
  width: 62vw; height: 62vw; max-width: 880px; max-height: 880px;
  background: radial-gradient(circle, rgba(243, 207, 134, .55) 0%, rgba(214, 166, 79, .22) 35%, transparent 68%);
  filter: blur(8px);
  animation: glowPulse 7s ease-in-out infinite;
  pointer-events: none;
}
.light-rays {
  position: absolute; right: -10%; bottom: -30%; width: 120vw; height: 120vw; max-width: 1400px; max-height: 1400px;
  background: repeating-conic-gradient(from 200deg at 60% 70%, rgba(255, 240, 200, .09) 0deg 4deg, transparent 4deg 14deg);
  -webkit-mask-image: radial-gradient(circle at 60% 70%, #000 0%, transparent 60%);
          mask-image: radial-gradient(circle at 60% 70%, #000 0%, transparent 60%);
  animation: raysTurn 90s linear infinite;
  pointer-events: none;
}
@keyframes glowPulse { 0%,100% { opacity: .75; transform: scale(1); } 50% { opacity: 1; transform: scale(1.06); } }
@keyframes raysTurn { to { transform: rotate(360deg); } }

.hero-title { text-shadow: 0 6px 40px rgba(0, 0, 0, .35); }

.badge-ring { animation: spin 22s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.scroll-cue span { display: block; width: 4px; height: 8px; border-radius: 4px; background: var(--gold); animation: cue 1.8s ease-in-out infinite; }
@keyframes cue { 0% { transform: translateY(0); opacity: 0; } 30% { opacity: 1; } 100% { transform: translateY(16px); opacity: 0; } }

/* floating leaves + particles (injected by JS) */
.leaf { position: absolute; top: -8%; will-change: transform; opacity: .55; filter: drop-shadow(0 4px 8px rgba(0,0,0,.18)); }
.leaf svg { width: 100%; height: 100%; display: block; }
.particle { position: absolute; border-radius: 50%; background: radial-gradient(circle, #F3CF86, rgba(214,166,79,0) 70%); will-change: transform, opacity; }

/* ---------- Decorative shapes ---------- */
.blob { position: absolute; border-radius: 50%; filter: blur(60px); pointer-events: none; }
.blob-gold { background: var(--gold); }
.blob-emerald { background: var(--emerald); }
.blob-sage { background: #b9d6c3; }
.organic {
  position: absolute; pointer-events: none;
  background: var(--sage);
  border-radius: 63% 37% 54% 46% / 55% 48% 52% 45%;
  animation: morph 16s ease-in-out infinite;
}
@keyframes morph {
  0%,100% { border-radius: 63% 37% 54% 46% / 55% 48% 52% 45%; }
  50%     { border-radius: 40% 60% 35% 65% / 48% 60% 40% 52%; }
}
.dots {
  position: absolute; pointer-events: none;
  background-image: radial-gradient(var(--emerald) 1.6px, transparent 1.6px);
  background-size: 18px 18px; opacity: .22;
}
.dots-gold { background-image: radial-gradient(var(--gold) 1.6px, transparent 1.6px); opacity: .45; }
.leaf-deco { position: absolute; pointer-events: none; opacity: .14; color: var(--emerald); }
.ring-deco { position: absolute; pointer-events: none; border: 1.5px dashed rgba(214,166,79,.6); border-radius: 50%; animation: spin 60s linear infinite; }
.floaty { animation: floaty 7s ease-in-out infinite; }
.floaty-slow { animation: floaty 11s ease-in-out infinite reverse; }
@keyframes floaty { 0%,100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-16px) rotate(4deg); } }

.pattern-sage {
  background-color: var(--sage);
  background-image:
    radial-gradient(circle at 12% 18%, rgba(255,255,255,.75) 0, transparent 38%),
    radial-gradient(circle at 88% 82%, rgba(25,135,84,.14) 0, transparent 40%);
}
.pattern-forest {
  background-color: var(--forest);
  background-image:
    radial-gradient(circle at 85% 12%, rgba(214,166,79,.22) 0, transparent 34%),
    radial-gradient(circle at 8% 90%, rgba(25,135,84,.38) 0, transparent 40%);
}
.footer-pattern {
  background-image: radial-gradient(rgba(255,255,255,.05) 1.2px, transparent 1.2px);
  background-size: 26px 26px;
}
.wave { display: block; width: 100%; height: 80px; }
@media (min-width: 768px) { .wave { height: 120px; } }

/* ---------- Image frames ---------- */
.img-fallback {
  background:
    radial-gradient(circle at 70% 25%, rgba(243,207,134,.8) 0, rgba(243,207,134,0) 28%),
    linear-gradient(160deg, #198754 0%, #123D32 100%);
}
.frame-arch { border-radius: 220px 220px 28px 28px; overflow: hidden; }
.frame-blob { border-radius: 38% 62% 55% 45% / 45% 40% 60% 55%; overflow: hidden; }
.img-reveal { overflow: hidden; position: relative; }
.img-reveal .reveal-cover { position: absolute; inset: 0; background: var(--forest); transform-origin: right; z-index: 3; }
.zoom-img { transition: transform 1.2s cubic-bezier(.2,.7,.2,1); }
.zoom-wrap:hover .zoom-img { transform: scale(1.07); }

/* ---------- Service cards ---------- */
.svc-card { position: relative; transition: transform .5s cubic-bezier(.2,.7,.2,1), box-shadow .5s ease; }
.svc-card:hover { transform: translateY(-8px); box-shadow: 0 32px 60px -28px rgba(18,61,50,.55); }
.svc-card .svc-img { transition: transform 1.1s cubic-bezier(.2,.7,.2,1); }
.svc-card:hover .svc-img { transform: scale(1.08); }
.svc-icon { transition: transform .5s ease, background .4s ease, color .4s ease; }
.svc-card:hover .svc-icon { transform: rotate(-10deg) scale(1.08); background: var(--gold); color: var(--forest); }
.svc-more i { transition: transform .35s ease; }
.svc-card:hover .svc-more i { transform: translateX(6px); }
.svc-overlay { background: linear-gradient(0deg, rgba(10,38,30,.96) 0%, rgba(18,61,50,.7) 45%, rgba(18,61,50,.05) 100%); }

/* ---------- Journey ---------- */
.journey-path path { fill: none; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.journey-num {
  width: 64px; height: 64px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: "Playfair Display", serif; font-weight: 700; font-size: 1.5rem;
  background: linear-gradient(135deg, #E6BF73, var(--gold));
  color: var(--forest);
  border: 5px solid var(--warm);
  box-shadow: 0 0 0 2px var(--gold), 0 14px 28px -10px rgba(214,166,79,.8);
}
.journey-card { transition: transform .45s ease, box-shadow .45s ease; }
.journey-card:hover { transform: translateY(-6px); box-shadow: 0 28px 50px -28px rgba(18,61,50,.5); }
.journey-ico { transition: transform .5s ease; }
.journey-card:hover .journey-ico { transform: scale(1.1) rotate(-6deg); }

/* ---------- Hope / parallax image ---------- */
.hope-bg {
  background:
    url('../img/rehabilitation-centres-under-300kb.jpg') center / cover no-repeat,
    radial-gradient(ellipse at 50% 100%, #F3CF86 0%, rgba(214,166,79,.55) 22%, transparent 55%),
    linear-gradient(180deg, #0c2a22 0%, #198754 70%, #123D32 100%);
  will-change: transform;
}
.hope-overlay { background: linear-gradient(0deg, rgba(10,38,30,.88), rgba(18,61,50,.45) 55%, rgba(18,61,50,.7)); }

/* ---------- Why choose us ---------- */
.why-img {
  background:
    url('../img/rehabilitation-centres-384-512.png') center / cover no-repeat,
    radial-gradient(circle at 70% 25%, rgba(243,207,134,.8) 0, rgba(243,207,134,0) 28%),
    linear-gradient(160deg, #198754, #123D32);
}
.feature-item { transition: transform .4s ease, background .4s ease; }
.feature-item:hover { transform: translateX(8px); background: rgba(255,255,255,.1); }

/* ---------- Gallery ---------- */
.gallery-swiper { padding: 10px 6px 64px !important; }
.gallery-swiper .swiper-slide { height: auto; }
.g-card { position: relative; height: 420px; border-radius: 28px; overflow: hidden; }
@media (min-width: 768px) { .g-card { height: 480px; } }
.g-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s ease; }
.g-card:hover img { transform: scale(1.08); }
.g-card .g-cap { position: absolute; inset: auto 0 0 0; padding: 1.6rem; color: #fff; background: linear-gradient(0deg, rgba(10,38,30,.92), transparent); }
.g-card .g-ico { position: absolute; top: 1.2rem; left: 1.2rem; width: 46px; height: 46px; border-radius: 50%; background: rgba(255,255,255,.16); backdrop-filter: blur(8px); color: var(--gold); display: flex; align-items: center; justify-content: center; font-size: 1.1rem; }
.swiper-pagination-bullet { background: var(--forest); opacity: .3; width: 10px; height: 10px; }
.swiper-pagination-bullet-active { background: var(--gold); opacity: 1; width: 28px; border-radius: 6px; }
.g-nav { width: 50px; height: 50px; border-radius: 50%; border: 1.5px solid rgba(18,61,50,.25); color: var(--forest); display: inline-flex; align-items: center; justify-content: center; transition: all .3s ease; }
.g-nav:hover { background: var(--forest); color: #fff; }

/* ---------- FAQ ---------- */
.faq-item { transition: box-shadow .4s ease, border-color .4s ease; }
.faq-item.is-open { box-shadow: 0 24px 50px -30px rgba(18,61,50,.5); border-color: var(--gold); }
.faq-panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .45s ease; }
.faq-item.is-open .faq-panel { grid-template-rows: 1fr; }
.faq-panel > div { overflow: hidden; }
.faq-icon { transition: transform .4s ease, background .3s ease, color .3s ease; }
.faq-item.is-open .faq-icon { transform: rotate(45deg); background: var(--gold); color: var(--forest); }

/* ---------- Floating call / WhatsApp ---------- */
.float-btn {
  position: relative; width: 58px; height: 58px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 1.55rem;
  box-shadow: 0 14px 28px -8px rgba(0,0,0,.4);
  transition: transform .3s ease;
}
.float-btn:hover { transform: scale(1.1); }
.float-wa { background: #25D366; }
.float-call { background: linear-gradient(135deg, var(--emerald), var(--forest)); font-size: 1.3rem; }
.float-btn::before {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  background: inherit; z-index: -1; opacity: .55;
  animation: pulse 2.2s ease-out infinite;
}
.float-call::before { animation-delay: 1.1s; }
@keyframes pulse { 0% { transform: scale(1); opacity: .55; } 100% { transform: scale(1.75); opacity: 0; } }
.float-tip {
  position: absolute; right: calc(100% + 14px); top: 50%; transform: translate(10px, -50%);
  background: var(--forest); color: #fff; font-size: .8rem; font-weight: 600; white-space: nowrap;
  padding: .45rem .8rem; border-radius: 10px; opacity: 0; pointer-events: none;
  transition: all .3s ease;
}
.float-tip::after { content: ""; position: absolute; left: 100%; top: 50%; margin-top: -5px; border: 5px solid transparent; border-left-color: var(--forest); }
.float-btn:hover .float-tip, .float-btn:focus-visible .float-tip { opacity: 1; transform: translate(0, -50%); }
@media (max-width: 640px) {
  .float-btn { width: 52px; height: 52px; font-size: 1.4rem; }
  .float-tip { display: none; }
}

/* ---------- Footer ---------- */
.foot-link { position: relative; display: inline-block; transition: color .3s ease, transform .3s ease; }
.foot-link:hover { color: var(--gold); transform: translateX(5px); }

/* ---------- Inner page hero ---------- */
.page-hero {
  background:
    linear-gradient(160deg, rgba(12,42,34,.9), rgba(18,61,50,.86) 55%, rgba(25,135,84,.82)),
    url('../img/rehabilitation-centres-under-300kb.jpg') center / cover no-repeat;
}

/* ---------- Prose (legal pages) ---------- */
.prose-lite h2 { font-family: "Playfair Display", serif; font-size: 1.6rem; font-weight: 700; color: var(--forest); margin: 2rem 0 .8rem; }
.prose-lite p, .prose-lite li { line-height: 1.8; color: #3b4a44; }
.prose-lite p { margin-bottom: 1rem; }
.prose-lite ul { list-style: disc; padding-left: 1.4rem; margin-bottom: 1rem; }
.prose-lite a { color: var(--emerald); text-decoration: underline; }

/* ---------- Form ---------- */
.field { width: 100%; background: #fff; border: 1.5px solid #d3e2d8; border-radius: 14px; padding: .95rem 1.1rem; outline: none; transition: border-color .3s, box-shadow .3s; }
.field:focus { border-color: var(--emerald); box-shadow: 0 0 0 4px rgba(25,135,84,.14); }

/* ---------- Initial states for JS reveals (only when JS runs) ---------- */
.js .reveal-up { opacity: 0; transform: translateY(36px); }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .js .reveal-up { opacity: 1; transform: none; }
  .leaf, .particle { display: none; }
}
