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

:root {
  --sage: #5a7a5a;
  --sage-light: #e8f0e8;
  --sage-mid: #a8c4a8;
  --amber: #c8832a;
  --amber-light: #fdf3e3;
  --cream: #faf8f3;
  --warm-white: #fffef9;
  --text-dark: #2a2a22;
  --text-mid: #5a5a4a;
  --text-light: #8a8a7a;
  --red-soft: #c45a4a;
  --red-light: #fdf0ee;
  --border: #e0dcd0;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--cream);
  color: var(--text-dark);
  font-size: 16px;
  line-height: 1.7;
}

/* NAV */
nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(250,248,243,0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  padding: 0 2rem;
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.nav-logo {
  font-family: 'Lora', serif;
  font-size: 1.2rem;
  color: var(--sage);
  font-weight: 600;
  text-decoration: none;
}
.nav-links { display: flex; gap: 2rem; list-style: none; }
.nav-links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-mid);
  text-decoration: none;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--sage); }

/* HERO */
.hero {
  min-height: 88vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  padding: 4rem 6rem;
  gap: 4rem;
  background: var(--warm-white);
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: '';
  position: absolute;
  right: -100px; top: -100px;
  width: 600px; height: 600px;
  background: radial-gradient(circle, var(--sage-light) 0%, transparent 70%);
  pointer-events: none;
}
.hero-tag {
  display: inline-block;
  background: var(--sage-light);
  color: var(--sage);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 1.5rem;
}
.hero h1 {
  font-family: 'Lora', serif;
  font-size: clamp(2.4rem, 4vw, 3.6rem);
  font-weight: 600;
  line-height: 1.2;
  color: var(--text-dark);
  margin-bottom: 1.25rem;
}
.hero h1 em { font-style: italic; color: var(--sage); }
.hero p {
  font-size: 1.1rem;
  color: var(--text-mid);
  max-width: 480px;
  margin-bottom: 2rem;
  font-weight: 300;
}
.hero-cta {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--sage);
  color: white;
  font-size: 0.9rem;
  font-weight: 500;
  padding: 14px 28px;
  border-radius: 100px;
  text-decoration: none;
  transition: background 0.2s, transform 0.2s;
}
.hero-cta:hover { background: #4a6a4a; transform: translateY(-1px); }
.hero-visual {
  position: relative;
  display: flex; align-items: center; justify-content: center;
}
.hero-circle {
  width: 380px; height: 380px;
  border-radius: 50%;
  background: var(--sage-light);
  display: flex; align-items: center; justify-content: center;
  position: relative;
}
.hero-circle-inner {
  width: 280px; height: 280px;
  border-radius: 50%;
  background: var(--sage-mid);
  opacity: 0.3;
}
.hero-icons {
  position: absolute;
  width: 100%; height: 100%;
  top: 0; left: 0;
}
.food-pill {
  position: absolute;
  background: white;
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 8px 16px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-mid);
  white-space: nowrap;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  animation: float 4s ease-in-out infinite;
}
.food-pill:nth-child(1) { top: 10%; left: 50%; transform: translateX(-50%); animation-delay: 0s; }
.food-pill:nth-child(2) { top: 30%; right: -10%; animation-delay: 0.8s; }
.food-pill:nth-child(3) { bottom: 25%; right: -5%; animation-delay: 1.6s; }
.food-pill:nth-child(4) { bottom: 10%; left: 50%; transform: translateX(-50%); animation-delay: 2.4s; }
.food-pill:nth-child(5) { top: 30%; left: -10%; animation-delay: 3.2s; }

@keyframes float {
  0%, 100% { transform: translateY(0) translateX(var(--tx, 0)); }
  50% { transform: translateY(-8px) translateX(var(--tx, 0)); }
}
.food-pill:nth-child(1) { --tx: -50%; }
.food-pill:nth-child(4) { --tx: -50%; }

/* STATS */
.stats {
  background: var(--sage);
  padding: 3rem 6rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
.stat-item { text-align: center; color: white; }
.stat-num {
  font-family: 'Lora', serif;
  font-size: 2.8rem;
  font-weight: 600;
  display: block;
  margin-bottom: 0.25rem;
}
.stat-label { font-size: 0.85rem; opacity: 0.8; font-weight: 300; }

/* SECTIONS */
section { padding: 5rem 6rem; }
.section-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sage);
  margin-bottom: 0.75rem;
}
.section-title {
  font-family: 'Lora', serif;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 0.75rem;
  line-height: 1.3;
}
.section-sub {
  font-size: 1rem;
  color: var(--text-mid);
  font-weight: 300;
  max-width: 560px;
  margin-bottom: 3rem;
}

/* FOODS TO EAT */
#eat { background: var(--warm-white); }
.food-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
}
.food-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.5rem;
  transition: transform 0.2s, box-shadow 0.2s;
}
.food-card:hover { transform: translateY(-3px); box-shadow: 0 8px 32px rgba(90,122,90,0.12); }
.food-icon { font-size: 2rem; margin-bottom: 0.75rem; display: block; }
.food-card h3 {
  font-family: 'Lora', serif;
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text-dark);
}
.food-card p { font-size: 0.875rem; color: var(--text-mid); font-weight: 300; line-height: 1.6; }
.food-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 500;
  background: var(--sage-light);
  color: var(--sage);
  padding: 3px 10px;
  border-radius: 100px;
  margin-top: 0.75rem;
}

/* FOODS TO AVOID */
#avoid { background: var(--cream); }
.avoid-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
}
.avoid-item {
  display: flex; gap: 1rem; align-items: flex-start;
  background: var(--red-light);
  border: 1px solid #f0d0cc;
  border-radius: 12px;
  padding: 1.25rem;
}
.avoid-x {
  width: 28px; height: 28px; min-width: 28px;
  border-radius: 50%;
  background: var(--red-soft);
  color: white;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.8rem;
  font-weight: 600;
  margin-top: 2px;
}
.avoid-item h4 { font-size: 0.95rem; font-weight: 500; margin-bottom: 0.25rem; color: var(--text-dark); }
.avoid-item p { font-size: 0.825rem; color: var(--text-mid); font-weight: 300; }

/* MEAL IDEAS */
#meals { background: var(--warm-white); }
.meal-tabs { display: flex; gap: 0.5rem; margin-bottom: 2rem; flex-wrap: wrap; }
.meal-tab {
  padding: 8px 20px;
  border-radius: 100px;
  font-size: 0.875rem;
  font-weight: 500;
  border: 1px solid var(--border);
  background: white;
  color: var(--text-mid);
  cursor: pointer;
  transition: all 0.2s;
}
.meal-tab.active { background: var(--sage); color: white; border-color: var(--sage); }
.meal-panels > div { display: none; }
.meal-panels > div.active { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.25rem; }
.meal-card { background: white; border: 1px solid var(--border); border-radius: 16px; overflow: hidden; }
.meal-color-bar { height: 6px; background: var(--sage-mid); }
.meal-card-body { padding: 1.25rem; }
.meal-card h3 { font-family: 'Lora', serif; font-size: 1.05rem; font-weight: 600; margin-bottom: 0.5rem; }
.meal-card p { font-size: 0.85rem; color: var(--text-mid); font-weight: 300; }
.meal-tag { display: inline-block; font-size: 0.7rem; background: var(--amber-light); color: var(--amber); padding: 3px 10px; border-radius: 100px; margin-top: 0.75rem; font-weight: 500; }

/* SCIENCE */
#science { background: var(--cream); }
.science-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.science-card { background: white; border: 1px solid var(--border); border-radius: 16px; padding: 2rem; }
.science-card.featured { grid-column: span 2; background: var(--sage); color: white; border-color: transparent; }
.science-card.featured h3 { color: white; }
.science-card.featured p { color: rgba(255,255,255,0.82); }
.science-num { font-family: 'Lora', serif; font-size: 2.2rem; font-weight: 600; color: var(--sage); margin-bottom: 0.25rem; }
.science-card.featured .science-num { color: var(--sage-light); }
.science-card h3 { font-family: 'Lora', serif; font-size: 1.1rem; font-weight: 600; margin-bottom: 0.5rem; color: var(--text-dark); }
.science-card p { font-size: 0.875rem; color: var(--text-mid); font-weight: 300; line-height: 1.6; }

/* CARERS */
#carers { background: var(--amber-light); }
.carer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.25rem; }
.carer-card { background: white; border: 1px solid #edd8b8; border-radius: 16px; padding: 1.5rem; }
.carer-step {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--amber-light);
  color: var(--amber);
  font-weight: 600;
  font-size: 0.9rem;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1rem;
  border: 1px solid #edd8b8;
}
.carer-card h3 { font-family: 'Lora', serif; font-size: 1rem; font-weight: 600; margin-bottom: 0.5rem; }
.carer-card p { font-size: 0.85rem; color: var(--text-mid); font-weight: 300; }

/* BLOG */
#blog { background: var(--warm-white); }
.blog-layout { display: grid; grid-template-columns: 1fr 380px; gap: 3rem; align-items: start; }
.blog-posts { display: flex; flex-direction: column; gap: 1.5rem; }
.blog-post {
  background: white;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.75rem;
  transition: box-shadow 0.2s;
}
.blog-post:hover { box-shadow: 0 4px 24px rgba(90,122,90,0.1); }
.blog-post-meta { display: flex; align-items: center; gap: 10px; margin-bottom: 0.75rem; flex-wrap: wrap; }
.blog-avatar {
  width: 36px; height: 36px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.8rem; font-weight: 600;
  background: var(--sage-light); color: var(--sage);
  flex-shrink: 0;
}
.blog-author { font-size: 0.875rem; font-weight: 500; color: var(--text-dark); }
.blog-date { font-size: 0.775rem; color: var(--text-light); }
.blog-category {
  font-size: 0.7rem; font-weight: 500;
  padding: 3px 10px; border-radius: 100px;
  background: var(--sage-light); color: var(--sage);
  margin-left: auto;
}
.blog-post h3 { font-family: 'Lora', serif; font-size: 1.15rem; font-weight: 600; color: var(--text-dark); margin-bottom: 0.5rem; }
.blog-post p { font-size: 0.875rem; color: var(--text-mid); font-weight: 300; line-height: 1.7; }
.blog-post-footer {
  display: flex; align-items: center; gap: 1rem;
  margin-top: 1rem; padding-top: 1rem;
  border-top: 1px solid var(--border);
}
.blog-likes {
  font-size: 0.8rem; color: var(--text-light);
  display: flex; align-items: center; gap: 4px;
  cursor: pointer; transition: color 0.2s;
  background: none; border: none; padding: 0;
}
.blog-likes:hover { color: var(--sage); }
.blog-sidebar { display: flex; flex-direction: column; gap: 1.25rem; }
.sidebar-card { background: white; border: 1px solid var(--border); border-radius: 16px; padding: 1.5rem; }
.sidebar-card h4 { font-family: 'Lora', serif; font-size: 1rem; font-weight: 600; margin-bottom: 1rem; color: var(--text-dark); }
.sidebar-tag {
  display: inline-block;
  font-size: 0.775rem; font-weight: 500;
  padding: 5px 12px; border-radius: 100px;
  border: 1px solid var(--border);
  color: var(--text-mid);
  margin: 0 4px 6px 0;
  cursor: pointer;
  transition: all 0.2s;
}
.sidebar-tag:hover, .sidebar-tag.active { background: var(--sage); color: white; border-color: var(--sage); }
.blog-form { display: flex; flex-direction: column; gap: 0.75rem; }
.blog-form input, .blog-form textarea, .blog-form select {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.875rem;
  color: var(--text-dark);
  background: white;
  outline: none;
  transition: border-color 0.2s;
  resize: vertical;
}
.blog-form input:focus, .blog-form textarea:focus, .blog-form select:focus { border-color: var(--sage-mid); }
.blog-submit {
  background: var(--sage);
  color: white;
  border: none;
  border-radius: 100px;
  padding: 12px 24px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s;
}
.blog-submit:hover { background: #4a6a4a; }
.submit-success {
  display: none;
  background: var(--sage-light);
  border: 1px solid var(--sage-mid);
  border-radius: 12px;
  padding: 1rem 1.25rem;
  font-size: 0.875rem;
  color: var(--sage);
  text-align: center;
  line-height: 1.5;
}

/* DISCLAIMER */
.disclaimer {
  background: var(--sage-light);
  border-top: 1px solid var(--sage-mid);
  padding: 2rem 6rem;
  font-size: 0.825rem;
  color: var(--text-mid);
  text-align: center;
  line-height: 1.6;
}

/* FOOTER */
footer {
  background: var(--text-dark);
  color: rgba(255,255,255,0.6);
  padding: 3rem 6rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}
footer .logo { font-family: 'Lora', serif; color: white; font-size: 1.1rem; }
footer p { font-size: 0.825rem; }

/* ANIMATIONS */
.fade-in { opacity: 0; transform: translateY(20px); transition: opacity 0.6s ease, transform 0.6s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* RESPONSIVE */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; padding: 3rem 2rem; text-align: center; }
  .hero-visual { display: none; }
  .hero p { margin: 0 auto 2rem; }
  .stats { padding: 2rem; grid-template-columns: 1fr; }
  section { padding: 3rem 2rem; }
  .science-grid { grid-template-columns: 1fr; }
  .science-card.featured { grid-column: span 1; }
  .blog-layout { grid-template-columns: 1fr; }
  .disclaimer, footer { padding: 2rem; }
  nav { padding: 0 1rem; }
  .nav-links { display: none; }
}
