/* ==========================================================================
   Nutritional Care Haven — Custom Stylesheet
   Built on Bootstrap 5
   ========================================================================== */

:root {
  --primary: #1f9d6b;
  --primary-dark: #157a51;
  --primary-light: #e7f6ef;
  --secondary: #11b3c4;
  --accent: #f6a609;
  --dark: #123a2c;
  --body-color: #4a5b54;
  --heading-color: #14342a;
  --light: #f5faf7;
  --muted: #7c8c85;
  --border: #e2ece7;
  --white: #ffffff;
  --shadow: 0 18px 50px rgba(20, 60, 44, 0.10);
  --shadow-sm: 0 8px 24px rgba(20, 60, 44, 0.08);
  --radius: 16px;
  --transition: all .3s ease;
}

/* ----------------------------- Base ----------------------------- */
* { scroll-behavior: smooth; }

body {
  font-family: 'Poppins', 'Segoe UI', Tahoma, sans-serif;
  color: var(--body-color);
  font-size: 16px;
  line-height: 1.7;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Poppins', 'Segoe UI', sans-serif;
  color: var(--heading-color);
  font-weight: 700;
  line-height: 1.3;
}

a { text-decoration: none; transition: var(--transition); }
img { max-width: 100%; }

p { margin-bottom: 1rem; }

.section-padding { padding: 90px 0; }
.section-padding-sm { padding: 60px 0; }

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

/* --------------------------- Buttons ---------------------------- */
.btn {
  font-weight: 600;
  border-radius: 50px;
  padding: 12px 30px;
  transition: var(--transition);
  border: 2px solid transparent;
}
.btn-primary, .btn-nch {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  box-shadow: 0 10px 24px rgba(31, 157, 107, .28);
}
.btn-primary:hover, .btn-nch:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  color: #fff;
  transform: translateY(-3px);
}
.btn-outline-light {
  border: 2px solid #fff;
  color: #fff;
}
.btn-outline-light:hover {
  background: #fff;
  color: var(--primary-dark);
}
.btn-light {
  background: #fff;
  color: var(--primary-dark);
}
.btn-light:hover { background: var(--primary-light); transform: translateY(-3px); }
.btn-subscribe {
  background: var(--accent);
  color: #fff;
  border-radius: 50px;
  padding: 10px 24px;
  font-weight: 600;
}
.btn-subscribe:hover { background: #d98f06; color: #fff; transform: translateY(-2px); }

/* --------------------------- Section heading ------------------- */
.section-head { margin-bottom: 50px; }
.section-head .pretitle {
  display: inline-block;
  color: var(--primary);
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-size: .8rem;
  margin-bottom: 10px;
  position: relative;
  padding-left: 40px;
}
.section-head .pretitle::before {
  content: "";
  position: absolute;
  left: 0; top: 50%;
  width: 30px; height: 2px;
  background: var(--primary);
}
.section-head h2 { font-size: 2.4rem; font-weight: 800; }
.section-head.text-center .pretitle { padding-left: 0; }
.section-head.text-center .pretitle::before { display: none; }
.section-head p { color: var(--muted); max-width: 620px; margin: 0 auto; }

/* ----------------------------- Navbar --------------------------- */
.navbar-nch {
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 20px rgba(20,60,44,.06);
  padding: 14px 0;
}
.navbar-nch .navbar-brand {
  font-weight: 800;
  font-size: 1.4rem;
  color: var(--heading-color);
  display: flex;
  align-items: center;
  gap: 10px;
}
.brand-icon {
  width: 44px; height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: 13px;
  color: #fff;
  font-size: 1.3rem;
  box-shadow: 0 8px 18px rgba(31,157,107,.35);
}
.brand-text small {
  display: block;
  font-size: .68rem;
  font-weight: 500;
  color: var(--primary);
  letter-spacing: 1px;
  text-transform: uppercase;
  line-height: 1;
}
.navbar-nch .nav-link {
  font-weight: 600;
  color: var(--heading-color) !important;
  margin: 0 4px;
  position: relative;
}
.navbar-nch .nav-link:hover,
.navbar-nch .nav-link.active { color: var(--primary) !important; }
.navbar-nch .nav-link::after {
  content: "";
  position: absolute;
  left: 50%; bottom: 2px;
  width: 0; height: 2px;
  background: var(--primary);
  transition: var(--transition);
  transform: translateX(-50%);
}
.navbar-nch .nav-link:hover::after,
.navbar-nch .nav-link.active::after { width: 60%; }
.brand-text span { line-height: 1.1; }

/* ----------------------------- Hero ----------------------------- */
.hero {
  position: relative;
  padding: 170px 0 110px;
  background: linear-gradient(135deg, #eafaf3 0%, #e6f8fb 100%);
  overflow: hidden;
}
.hero .hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  padding: 8px 18px;
  border-radius: 50px;
  font-weight: 600;
  font-size: .85rem;
  color: var(--primary-dark);
  box-shadow: var(--shadow-sm);
  margin-bottom: 22px;
}
.hero h1 {
  font-size: 3.3rem;
  font-weight: 800;
  margin-bottom: 22px;
}
.hero h1 .grad {
  background: linear-gradient(120deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero p.lead { font-size: 1.12rem; color: var(--body-color); margin-bottom: 30px; }
.hero .hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-stats {
  display: flex;
  gap: 34px;
  margin-top: 44px;
  flex-wrap: wrap;
}
.hero-stats .num { font-size: 2rem; font-weight: 800; color: var(--primary-dark); }
.hero-stats .lbl { font-size: .85rem; color: var(--muted); }
.hero-image-wrap { position: relative; }
.hero-image-wrap img {
  border-radius: 24px;
  box-shadow: var(--shadow);
}
.hero-image-wrap .float-card {
  position: absolute;
  background: #fff;
  padding: 16px 20px;
  border-radius: 14px;
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  gap: 12px;
}
.float-card .fc-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  display: grid; place-items: center;
  font-size: 1.3rem; color: #fff;
}
.float-card-1 { bottom: 30px; left: -20px; }
.float-card-1 .fc-icon { background: var(--primary); }
.float-card-2 { top: 30px; right: -16px; }
.float-card-2 .fc-icon { background: var(--secondary); }
.hero-shape {
  position: absolute;
  border-radius: 50%;
  z-index: 0;
}
.hero-shape-1 {
  width: 320px; height: 320px;
  background: rgba(31,157,107,.08);
  top: -90px; right: -70px;
}
.hero-shape-2 {
  width: 180px; height: 180px;
  background: rgba(17,179,196,.08);
  bottom: -50px; left: 40%;
}

/* --------------------------- Page banner ------------------------ */
.page-banner {
  padding: 160px 0 80px;
  background: linear-gradient(135deg, #143a2c 0%, #1f9d6b 120%);
  position: relative;
  color: #fff;
  text-align: center;
}
.page-banner::after {
  content: "";
  position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60'%3E%3Cpath d='M0 0h60v60H0z' fill='none'/%3E%3Cpath d='M30 30m-2 0a2 2 0 1 0 4 0a2 2 0 1 0-4 0' fill='%23ffffff' fill-opacity='.05'/%3E%3C/svg%3E");
}
.page-banner h1 { color: #fff; font-size: 2.8rem; font-weight: 800; position: relative; }
.page-banner .breadcrumb {
  justify-content: center;
  position: relative;
  margin-bottom: 0;
}
.page-banner .breadcrumb-item, .page-banner .breadcrumb-item a {
  color: rgba(255,255,255,.85);
  font-weight: 500;
}
.page-banner .breadcrumb-item a:hover { color: #fff; }
.page-banner .breadcrumb-item.active { color: #fff; }
.page-banner .breadcrumb-item + .breadcrumb-item::before { color: rgba(255,255,255,.5); }

/* ------------------------- About section ------------------------ */
.about-img-wrap { position: relative; padding-right: 20px; }
.about-img-wrap img { border-radius: 20px; box-shadow: var(--shadow); }
.about-img-wrap .exp-badge {
  position: absolute;
  bottom: -26px; right: 0;
  background: var(--primary);
  color: #fff;
  border-radius: 16px;
  padding: 22px 28px;
  box-shadow: var(--shadow);
  text-align: center;
}
.about-img-wrap .exp-badge .big { font-size: 2rem; font-weight: 800; line-height: 1; }
.about-img-wrap .exp-badge small { font-size: .8rem; }
.feature-list { list-style: none; padding: 0; margin: 22px 0 0; }
.feature-list li {
  display: flex;
  gap: 14px;
  margin-bottom: 16px;
  align-items: flex-start;
}
.feature-list .fi {
  flex: 0 0 38px;
  width: 38px; height: 38px;
  border-radius: 10px;
  background: var(--primary-light);
  color: var(--primary);
  display: grid; place-items: center;
  font-size: 1.05rem;
}
.feature-list h6 { margin: 0 0 2px; font-weight: 700; }
.feature-list p { margin: 0; font-size: .92rem; color: var(--muted); }

/* ------------------------ Why choose us ------------------------- */
.why-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 34px 26px;
  text-align: center;
  height: 100%;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  border: 1px solid var(--border);
}
.why-card:hover { transform: translateY(-8px); box-shadow: var(--shadow); border-color: transparent; }
.why-card .wc-icon {
  width: 78px; height: 78px;
  margin: 0 auto 22px;
  border-radius: 20px;
  display: grid; place-items: center;
  font-size: 2rem;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
}
.why-card h5 { font-weight: 700; margin-bottom: 10px; }
.why-card p { font-size: .95rem; color: var(--muted); margin: 0; }
.why-card:nth-child(2) .wc-icon,
.why-card.alt-2 .wc-icon { background: linear-gradient(135deg, var(--secondary), #0c8b99); }
.why-card:nth-child(3) .wc-icon,
.why-card.alt-3 .wc-icon { background: linear-gradient(135deg, var(--accent), #d98f06); }

/* ------------------------- Service cards ------------------------- */
.service-card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  height: 100%;
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
}
.service-card:hover { transform: translateY(-8px); box-shadow: var(--shadow); border-color: transparent; }
.service-card .sc-img {
  position: relative;
  overflow: hidden;
  height: 220px;
}
.service-card .sc-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}
.service-card:hover .sc-img img { transform: scale(1.07); }
.service-card .sc-body {
  padding: 26px 24px 28px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.service-card .sc-icon {
  width: 56px; height: 56px;
  border-radius: 14px;
  background: var(--primary-light);
  color: var(--primary);
  display: grid; place-items: center;
  font-size: 1.4rem;
  margin-top: -54px;
  margin-bottom: 16px;
  position: relative;
  z-index: 2;
  border: 4px solid #fff;
  box-shadow: var(--shadow-sm);
}
.service-card h5 { font-weight: 700; margin-bottom: 10px; }
.service-card p { font-size: .94rem; color: var(--muted); margin-bottom: 18px; }
.service-card .btn { margin-top: auto; align-self: flex-start; padding: 10px 22px; font-size: .92rem; }

/* ------------------------- Testimonials -------------------------- */
.testimonial-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 34px 30px;
  box-shadow: var(--shadow-sm);
  height: 100%;
  position: relative;
  border: 1px solid var(--border);
}
.testimonial-card .quote-mark {
  position: absolute;
  top: 22px; right: 28px;
  font-size: 3rem;
  color: var(--primary-light);
  font-family: Georgia, serif;
  line-height: 1;
}
.testimonial-card .stars { color: var(--accent); margin-bottom: 14px; }
.testimonial-card p { font-style: italic; color: var(--body-color); }
.testimonial-card .t-author { display: flex; align-items: center; gap: 14px; margin-top: 20px; }
.testimonial-card .t-avatar {
  width: 54px; height: 54px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff;
  display: grid; place-items: center;
  font-weight: 700;
  font-size: 1.2rem;
}
.testimonial-card .t-author h6 { margin: 0; font-weight: 700; }
.testimonial-card .t-author small { color: var(--muted); }

/* ------------------------------ FAQ ----------------------------- */
.faq-wrap { max-width: 820px; margin: 0 auto; }
.accordion-item {
  border: 1px solid var(--border) !important;
  border-radius: var(--radius) !important;
  margin-bottom: 16px;
  overflow: hidden;
  background: #fff;
}
.accordion-button {
  font-weight: 600;
  color: var(--heading-color);
  padding: 20px 24px;
  background: #fff;
}
.accordion-button:not(.collapsed) {
  background: var(--primary-light);
  color: var(--primary-dark);
  box-shadow: none;
}
.accordion-button:focus { box-shadow: none; border-color: var(--primary); }
.accordion-body { padding: 4px 24px 24px; color: var(--muted); }

/* ------------------------------- CTA ---------------------------- */
.cta-section {
  background: linear-gradient(120deg, var(--primary-dark), var(--secondary));
  border-radius: 28px;
  padding: 60px 50px;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.cta-section h2 { color: #fff; font-size: 2.4rem; font-weight: 800; }
.cta-section p { color: rgba(255,255,255,.9); margin: 0; }
.cta-section .cta-icon {
  position: absolute;
  font-size: 12rem;
  color: rgba(255,255,255,.07);
  right: 30px; top: 50%;
  transform: translateY(-50%);
}

/* ----------------------------- Footer ---------------------------- */
.footer {
  background: var(--dark);
  color: rgba(255,255,255,.7);
  padding-top: 70px;
}
.footer h5 {
  color: #fff;
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 22px;
  position: relative;
  padding-bottom: 12px;
}
.footer h5::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 40px; height: 3px;
  background: var(--primary);
  border-radius: 3px;
}
.footer .navbar-brand { color: #fff; }
.footer p { font-size: .94rem; color: rgba(255,255,255,.6); }
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer ul li { margin-bottom: 11px; }
.footer ul li a {
  color: rgba(255,255,255,.7);
  font-size: .94rem;
}
.footer ul li a:hover { color: var(--primary); padding-left: 6px; }
.footer .footer-contact li {
  display: flex; gap: 12px; align-items: flex-start;
  font-size: .94rem; color: rgba(255,255,255,.7);
}
.footer .footer-contact li i { color: var(--primary); margin-top: 4px; }
.footer-social { display: flex; gap: 12px; margin-top: 18px; }
.footer-social a {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: rgba(255,255,255,.08);
  display: grid; place-items: center;
  color: #fff;
}
.footer-social a:hover { background: var(--primary); transform: translateY(-3px); }
.footer .newsletter-form { display: flex; gap: 10px; margin-top: 16px; }
.footer .newsletter-form input {
  flex: 1;
  border: none;
  border-radius: 50px;
  padding: 12px 18px;
  font-size: .9rem;
}
.footer .newsletter-form .btn { padding: 12px 20px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  margin-top: 50px;
  padding: 22px 0;
  font-size: .88rem;
}
.footer-bottom a { color: rgba(255,255,255,.7); }
.footer-bottom a:hover { color: var(--primary); }
.footer-bottom .fb-links { display: flex; gap: 20px; justify-content: flex-end; flex-wrap: wrap; }

/* ----------------------------- Forms ----------------------------- */
.form-control, .form-select {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 13px 18px;
  font-size: .96rem;
  transition: var(--transition);
}
.form-control:focus, .form-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(31,157,107,.12);
}
.form-label { font-weight: 600; color: var(--heading-color); margin-bottom: 6px; }
.form-group { margin-bottom: 20px; }
.info-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 26px 24px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  display: flex;
  gap: 18px;
  align-items: flex-start;
  margin-bottom: 18px;
}
.info-card .ic-icon {
  flex: 0 0 56px;
  width: 56px; height: 56px;
  border-radius: 14px;
  background: var(--primary-light);
  color: var(--primary);
  display: grid; place-items: center;
  font-size: 1.4rem;
}
.info-card h6 { margin: 0 0 4px; font-weight: 700; }
.info-card p, .info-card a { margin: 0; color: var(--muted); font-size: .94rem; }
.info-card a:hover { color: var(--primary); }

/* form feedback messages */
.form-message {
  display: none;
  border-radius: 12px;
  padding: 16px 20px;
  margin-top: 8px;
  font-weight: 500;
}
.form-message.show { display: block; }
.form-message.success {
  background: var(--primary-light);
  color: var(--primary-dark);
  border: 1px solid rgba(31,157,107,.3);
}
.form-message.error {
  background: #fdeceb;
  color: #c0392b;
  border: 1px solid rgba(192,57,43,.3);
}
.invalid-feedback { font-size: .84rem; }
.form-control.is-invalid { border-color: #e74c3c; }

/* status / result block for subscribe & unsubscribe pages */
.status-card {
  max-width: 560px;
  margin: 0 auto;
  background: #fff;
  border-radius: 20px;
  padding: 44px 40px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}
.status-card .status-icon {
  width: 84px; height: 84px;
  margin: 0 auto 22px;
  border-radius: 50%;
  display: grid; place-items: center;
  font-size: 2.4rem;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
}
.status-card h3 { text-align: center; }

/* ----------------------------- Misc ------------------------------ */
.text-primary-nch { color: var(--primary) !important; }
.bg-dark-nch { background: var(--dark) !important; }
.divider-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--primary); display: inline-block; }
.icon-pill {
  width: 54px; height: 54px;
  border-radius: 14px;
  display: grid; place-items: center;
  font-size: 1.3rem;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  flex-shrink: 0;
}
.policy-content h3 { font-size: 1.4rem; margin-top: 30px; }
.policy-content h3:first-child { margin-top: 0; }
.policy-content p, .policy-content li { color: var(--body-color); }
.policy-content ul { margin-bottom: 1rem; }
.toc-list { list-style: none; padding: 20px 26px; background: var(--light); border-radius: var(--radius); border-left: 4px solid var(--primary); }
.toc-list li { margin-bottom: 8px; }
.toc-list a { color: var(--body-color); font-weight: 500; }
.toc-list a:hover { color: var(--primary); }

/* Back to top */
#backToTop {
  position: fixed;
  right: 26px; bottom: 26px;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  border: none;
  display: grid; place-items: center;
  font-size: 1.2rem;
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  z-index: 999;
}
#backToTop.show { opacity: 1; visibility: visible; }
#backToTop:hover { background: var(--primary-dark); transform: translateY(-4px); }

/* WhatsApp / float */
.whatsapp-float {
  position: fixed;
  left: 26px; bottom: 26px;
  width: 52px; height: 52px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  display: grid; place-items: center;
  font-size: 1.5rem;
  box-shadow: var(--shadow);
  z-index: 999;
  transition: var(--transition);
}
.whatsapp-float:hover { color: #fff; transform: scale(1.08); }

/* preloader */
#preloader {
  position: fixed; inset: 0;
  background: #fff;
  z-index: 9999;
  display: grid; place-items: center;
  transition: opacity .5s ease;
}
#preloader.hide { opacity: 0; visibility: hidden; }
.preloader-pulse {
  width: 60px; height: 60px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  animation: pulse 1s infinite ease-in-out;
}
@keyframes pulse {
  0%,100% { transform: scale(.8); opacity: .6; }
  50% { transform: scale(1.1); opacity: 1; }
}

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ----------------------------- Responsive ------------------------ */
@media (max-width: 991px) {
  .hero { padding: 140px 0 80px; text-align: center; }
  .hero .hero-badge, .hero .hero-actions, .hero-stats { justify-content: center; }
  .hero .section-head, .hero .lead { margin-left: auto; margin-right: auto; }
  .hero-image-wrap { margin-top: 50px; }
  .float-card-1 { left: 10px; }
  .float-card-2 { right: 10px; }
  .hero h1 { font-size: 2.5rem; }
  .section-head h2 { font-size: 2rem; }
  .navbar-nch .navbar-collapse {
    background: #fff;
    padding: 16px;
    border-radius: 14px;
    margin-top: 12px;
    box-shadow: var(--shadow);
  }
  .navbar-nch .nav-link { padding: 10px 6px; }
  .footer-bottom .fb-links { justify-content: flex-start; margin-top: 10px; }
  .cta-section { padding: 44px 28px; text-align: center; }
  .cta-section .row .text-lg-end { text-align: center !important; margin-top: 22px; }
}
@media (max-width: 575px) {
  .hero h1 { font-size: 2.05rem; }
  .section-padding { padding: 60px 0; }
  .page-banner { padding: 130px 0 60px; }
  .page-banner h1 { font-size: 2rem; }
  .cta-section h2 { font-size: 1.7rem; }
  .hero-stats { gap: 22px; }
  .status-card { padding: 34px 24px; }
  .float-card { display: none; }
}
