/* ===================================================================
   Nutrition Care Help - Modern Healthcare & Wellness Stylesheet
   nutritioncarehelp.com
   =================================================================== */

:root {
  --primary: #1e5f52;
  --primary-dark: #133e35;
  --primary-light: #2a9d8f;
  --secondary: #52b788;
  --secondary-light: #d8f3dc;
  --accent: #e76f51;
  --accent-soft: #fae1dd;
  --neutral-dark: #1f2937;
  --neutral-mid: #4b5563;
  --neutral-light: #f3f4f6;
  --bg-page: #fbfdfc;
  --card-bg: #ffffff;
  --border: #e2e8f0;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-full: 9999px;
  --shadow-sm: 0 2px 8px rgba(30, 95, 82, 0.06);
  --shadow-md: 0 8px 24px rgba(30, 95, 82, 0.08);
  --shadow-lg: 0 16px 40px rgba(30, 95, 82, 0.12);
  --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --transition: all 0.25s ease-in-out;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-family);
  background-color: var(--bg-page);
  color: var(--neutral-dark);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--primary-light);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--primary);
}

ul {
  list-style: none;
}

/* Container */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Header & Top Bar */
.top-bar {
  background-color: var(--primary-dark);
  color: #e5e7eb;
  padding: 0.6rem 0;
  font-size: 0.88rem;
}

.top-bar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.contact-quick {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.contact-quick a, .contact-quick span {
  color: #f3f4f6;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.contact-quick a:hover {
  color: var(--secondary);
}

.header-site {
  background: #ffffff;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow-sm);
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
}

.logo-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
}

.logo-brand img {
  height: 48px;
  width: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.4rem;
}

.nav-links a {
  color: var(--neutral-dark);
  font-weight: 500;
  font-size: 0.95rem;
  position: relative;
  padding: 0.3rem 0;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--primary);
}

.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--primary);
  border-radius: var(--radius-full);
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.mobile-menu-btn span {
  display: block;
  width: 26px;
  height: 3px;
  background-color: var(--primary-dark);
  margin: 5px 0;
  border-radius: 2px;
  transition: var(--transition);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.6rem;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: var(--transition);
  border: 2px solid transparent;
  text-align: center;
}

.btn-primary {
  background-color: var(--primary);
  color: #ffffff;
}

.btn-primary:hover {
  background-color: var(--primary-dark);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  background-color: var(--secondary);
  color: #ffffff;
}

.btn-secondary:hover {
  background-color: #40916c;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-outline {
  background-color: transparent;
  border-color: var(--primary);
  color: var(--primary);
}

.btn-outline:hover {
  background-color: var(--primary);
  color: #ffffff;
}

.btn-outline-white {
  background-color: transparent;
  border-color: #ffffff;
  color: #ffffff;
}

.btn-outline-white:hover {
  background-color: #ffffff;
  color: var(--primary);
}

.btn-danger {
  background-color: #e63946;
  color: #ffffff;
}

.btn-danger:hover {
  background-color: #c1121f;
  color: #ffffff;
}

/* Section Common Styling */
section {
  padding: 4.5rem 0;
}

.section-title {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 3rem auto;
}

.section-tag {
  display: inline-block;
  padding: 0.35rem 1rem;
  background-color: var(--secondary-light);
  color: var(--primary-dark);
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.75rem;
}

.section-title h2 {
  font-size: 2.25rem;
  color: var(--primary-dark);
  margin-bottom: 0.75rem;
  line-height: 1.25;
}

.section-title p {
  color: var(--neutral-mid);
  font-size: 1.05rem;
}

/* Hero Section */
.hero-section {
  background: linear-gradient(135deg, #f0fdf9 0%, #e6f6f1 100%);
  padding: 5rem 0;
  position: relative;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 3rem;
}

.hero-content h1 {
  font-size: 3rem;
  color: var(--primary-dark);
  line-height: 1.2;
  margin-bottom: 1.25rem;
  font-weight: 800;
}

.hero-content h1 span {
  color: var(--primary-light);
}

.hero-content p {
  font-size: 1.15rem;
  color: var(--neutral-mid);
  margin-bottom: 2rem;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-image-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-image-wrap img {
  filter: drop-shadow(0 12px 24px rgba(30, 95, 82, 0.1));
}

/* Service Cards Grid */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.75rem;
}

.service-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 2rem 1.5rem;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  position: relative;
}

.service-card:hover {
  transform: translateY(-5px);
  border-color: var(--primary-light);
  box-shadow: var(--shadow-md);
}

.service-icon {
  width: 56px;
  height: 56px;
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.service-card h3 {
  font-size: 1.25rem;
  color: var(--primary-dark);
  margin-bottom: 0.75rem;
  font-weight: 700;
}

.service-card p {
  color: var(--neutral-mid);
  font-size: 0.93rem;
  line-height: 1.6;
  margin-bottom: 1.25rem;
  flex-grow: 1;
}

.service-link {
  font-weight: 600;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--primary);
}

.service-link:hover {
  gap: 0.6rem;
}

/* Philosophy / Features Grid */
.philosophy-section {
  background-color: #ffffff;
}

.philosophy-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.philosophy-card {
  background: #fbfdfc;
  padding: 2rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  border-left: 4px solid var(--primary);
}

.philosophy-card h3 {
  color: var(--primary-dark);
  font-size: 1.3rem;
  margin-bottom: 0.75rem;
}

.philosophy-card p {
  color: var(--neutral-mid);
  font-size: 0.95rem;
}

/* Care Journey / Process Section */
.journey-section {
  background: linear-gradient(to bottom, #f0fdf9, #ffffff);
}

.journey-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.75rem;
}

.journey-step {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 2rem 1.5rem;
  box-shadow: var(--shadow-sm);
  position: relative;
}

.step-badge {
  display: inline-block;
  background-color: var(--secondary-light);
  color: var(--primary-dark);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  margin-bottom: 1rem;
}

.journey-step h3 {
  color: var(--primary-dark);
  font-size: 1.2rem;
  margin-bottom: 0.75rem;
}

.journey-step p {
  color: var(--neutral-mid);
  font-size: 0.93rem;
}

/* Testimonials */
.testimonials-section {
  background-color: #ffffff;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

.testimonial-card {
  background: var(--bg-page);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 2.2rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.testimonial-quote {
  color: var(--neutral-mid);
  font-size: 1rem;
  font-style: italic;
  line-height: 1.7;
  margin-bottom: 1.5rem;
  position: relative;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 1rem;
  border-top: 1px solid var(--border);
  padding-top: 1rem;
}

.author-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--secondary-light);
  color: var(--primary);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.author-info h4 {
  color: var(--primary-dark);
  font-size: 1rem;
  margin-bottom: 0.2rem;
}

.author-info span {
  color: var(--neutral-mid);
  font-size: 0.85rem;
}

/* Blog Cards Grid */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

.blog-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: var(--transition);
}

.blog-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.blog-card-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  background-color: #f3f4f6;
}

.blog-card-body {
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.blog-category {
  display: inline-block;
  color: var(--primary);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 0.6rem;
  letter-spacing: 0.05em;
}

.blog-card h3 {
  font-size: 1.25rem;
  color: var(--primary-dark);
  line-height: 1.4;
  margin-bottom: 0.75rem;
}

.blog-card h3 a {
  color: var(--primary-dark);
}

.blog-card h3 a:hover {
  color: var(--primary-light);
}

.blog-card p {
  color: var(--neutral-mid);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.blog-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.blog-author {
  font-size: 0.88rem;
  color: var(--neutral-mid);
  font-weight: 500;
}

/* Newsletter CTA Banner */
.cta-banner {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  color: #ffffff;
  border-radius: var(--radius-lg);
  padding: 3.5rem 2.5rem;
  text-align: center;
  margin: 2rem 0;
}

.cta-banner h2 {
  font-size: 2.2rem;
  margin-bottom: 1rem;
  color: #ffffff;
}

.cta-banner p {
  font-size: 1.1rem;
  color: #e5e7eb;
  max-width: 680px;
  margin: 0 auto 2rem auto;
}

.cta-actions {
  display: flex;
  justify-content: center;
  gap: 1.2rem;
  flex-wrap: wrap;
}

/* Page Header Banner for inner pages */
.page-header {
  background: linear-gradient(135deg, #e8f5f1 0%, #f0fdf9 100%);
  padding: 3.5rem 0;
  border-bottom: 1px solid var(--border);
  text-align: center;
}

.page-header h1 {
  font-size: 2.5rem;
  color: var(--primary-dark);
  margin-bottom: 0.75rem;
}

.page-header p {
  font-size: 1.1rem;
  color: var(--neutral-mid);
  max-width: 700px;
  margin: 0 auto;
}

/* Form Styles (Subscribe, Unsubscribe, Contact) */
.form-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-md);
  max-width: 650px;
  margin: 0 auto;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  font-weight: 600;
  color: var(--neutral-dark);
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}

.form-group label .required {
  color: #e63946;
}

.form-control {
  width: 100%;
  padding: 0.85rem 1.1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-family: inherit;
  color: var(--neutral-dark);
  background-color: #ffffff;
  transition: var(--transition);
}

.form-control:focus {
  outline: none;
  border-color: var(--primary-light);
  box-shadow: 0 0 0 3px rgba(42, 157, 143, 0.15);
}

.form-checkbox-group {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 1.75rem;
}

.form-checkbox-group input[type="checkbox"] {
  margin-top: 0.25rem;
  width: 18px;
  height: 18px;
  accent-color: var(--primary);
  cursor: pointer;
}

.form-checkbox-group label {
  font-size: 0.92rem;
  color: var(--neutral-mid);
  line-height: 1.5;
  cursor: pointer;
}

.form-helper {
  font-size: 0.82rem;
  color: var(--neutral-mid);
  margin-top: 0.4rem;
}

/* Alerts and Status Messages */
.form-alert {
  display: none;
  padding: 1.25rem;
  border-radius: var(--radius-sm);
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
  line-height: 1.5;
}

.form-alert.success {
  display: block;
  background-color: #d8f3dc;
  color: #1b4332;
  border: 1px solid #b7e4c7;
}

.form-alert.error {
  display: block;
  background-color: #fee2e2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

/* Contact Page Grid */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.contact-info-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-sm);
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.contact-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background-color: var(--secondary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.2rem;
}

.contact-text h4 {
  color: var(--primary-dark);
  font-size: 1.05rem;
  margin-bottom: 0.3rem;
}

.contact-text p, .contact-text a {
  color: var(--neutral-mid);
  font-size: 0.95rem;
  line-height: 1.6;
}

.contact-text a:hover {
  color: var(--primary);
}

/* Policy and Terms Content */
.legal-content {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 3rem;
  box-shadow: var(--shadow-sm);
  max-width: 900px;
  margin: 0 auto;
}

.legal-content h2 {
  color: var(--primary-dark);
  font-size: 1.5rem;
  margin-top: 2rem;
  margin-bottom: 0.8rem;
  border-bottom: 2px solid var(--secondary-light);
  padding-bottom: 0.4rem;
}

.legal-content h2:first-of-type {
  margin-top: 0;
}

.legal-content p, .legal-content ul {
  color: var(--neutral-mid);
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 1.2rem;
}

.legal-content ul {
  padding-left: 1.5rem;
  list-style: disc;
}

.legal-content li {
  margin-bottom: 0.5rem;
}

/* Single Blog Post Article */
.article-header {
  text-align: center;
  max-width: 820px;
  margin: 0 auto 2.5rem auto;
}

.article-header h1 {
  font-size: 2.5rem;
  color: var(--primary-dark);
  line-height: 1.3;
  margin-bottom: 1rem;
}

.article-meta {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  color: var(--neutral-mid);
  font-size: 0.95rem;
}

.article-hero-img {
  max-width: 860px;
  margin: 0 auto 2.5rem auto;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.article-hero-img img {
  width: 100%;
  height: 380px;
  object-fit: cover;
}

.article-body {
  max-width: 820px;
  margin: 0 auto;
  font-size: 1.1rem;
  line-height: 1.85;
  color: var(--neutral-dark);
}

.article-body h2 {
  font-size: 1.7rem;
  color: var(--primary-dark);
  margin-top: 2.2rem;
  margin-bottom: 1rem;
}

.article-body h3 {
  font-size: 1.3rem;
  color: var(--primary);
  margin-top: 1.8rem;
  margin-bottom: 0.75rem;
}

.article-body p {
  margin-bottom: 1.5rem;
  color: #374151;
}

.article-body ul {
  list-style: disc;
  padding-left: 2rem;
  margin-bottom: 1.5rem;
}

.article-body li {
  margin-bottom: 0.6rem;
  color: #374151;
}

.article-callout {
  background: var(--secondary-light);
  border-left: 4px solid var(--primary);
  padding: 1.5rem;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  margin: 2rem 0;
}

.article-callout p {
  margin-bottom: 0;
  font-weight: 500;
  color: var(--primary-dark);
}

/* Footer */
.site-footer {
  background-color: #112822;
  color: #d1d5db;
  padding: 4.5rem 0 2rem 0;
  border-top: 1px solid #1c3d35;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1.2fr 1.3fr;
  gap: 3rem;
  margin-bottom: 3.5rem;
}

.footer-col h3 {
  color: #ffffff;
  font-size: 1.15rem;
  margin-bottom: 1.25rem;
  position: relative;
  padding-bottom: 0.5rem;
}

.footer-col h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 32px;
  height: 2px;
  background-color: var(--secondary);
}

.footer-col p {
  color: #9ca3af;
  font-size: 0.93rem;
  line-height: 1.6;
  margin-bottom: 1.2rem;
}

.footer-links li {
  margin-bottom: 0.65rem;
}

.footer-links a {
  color: #9ca3af;
  font-size: 0.93rem;
}

.footer-links a:hover {
  color: var(--secondary);
  padding-left: 4px;
}

.footer-contact-info li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
  font-size: 0.93rem;
  color: #9ca3af;
}

.footer-contact-info a {
  color: #9ca3af;
}

.footer-contact-info a:hover {
  color: var(--secondary);
}

.footer-bottom {
  border-top: 1px solid #1f3f37;
  padding-top: 1.8rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.88rem;
  color: #9ca3af;
}

.footer-bottom-links {
  display: flex;
  gap: 1.5rem;
}

.footer-bottom-links a {
  color: #9ca3af;
}

.footer-bottom-links a:hover {
  color: #ffffff;
}

/* Responsive Breakpoints */
@media (max-width: 992px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-content h1 {
    font-size: 2.4rem;
  }
  .hero-actions {
    justify-content: center;
  }
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .mobile-menu-btn {
    display: block;
  }
  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: #ffffff;
    padding: 1.5rem;
    box-shadow: var(--shadow-md);
    border-top: 1px solid var(--border);
    gap: 1rem;
  }
  .nav-links.show {
    display: flex;
  }
  .nav-cta {
    display: none;
  }
  .top-bar-inner {
    flex-direction: column;
    align-items: flex-start;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
  .form-card, .legal-content {
    padding: 1.5rem;
  }
  .section-title h2 {
    font-size: 1.85rem;
  }
}
