/* Real-Food Cubes - Shared Styles */
:root {
  --green: #2e7d32;
  --green-dark: #1b5e20;
  --green-light: #e8f5e9;
  --orange: #ef6c00;
  --orange-light: #fff3e0;
  --berry: #6a1b9a;
  --text: #1a1a1a;
  --muted: #555;
  --bg: #fafafa;
  --card: #ffffff;
  --radius: 16px;
  --shadow: 0 4px 20px rgba(0,0,0,0.08);
}

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

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

a { color: var(--green); text-decoration: none; }
a:hover { text-decoration: underline; }

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

/* Header */
header {
  background: linear-gradient(135deg, var(--green-dark), var(--green));
  color: white;
  padding: 1rem 1.5rem;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 12px rgba(0,0,0,0.15);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.logo {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: white;
  text-decoration: none;
}
.logo span { color: #a5d6a7; }
.logo:hover { text-decoration: none; }

nav {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
  align-items: center;
}

nav a {
  color: white;
  font-weight: 500;
  opacity: 0.95;
  font-size: 0.95rem;
}
nav a:hover, nav a.active {
  opacity: 1;
  text-decoration: underline;
}

.nav-cta {
  background: white;
  color: var(--green-dark) !important;
  padding: 0.45rem 1rem;
  border-radius: 50px;
  font-weight: 600;
  opacity: 1 !important;
}
.nav-cta:hover {
  background: #e8f5e9;
  text-decoration: none !important;
}

/* Hero */
.hero {
  background: linear-gradient(120deg, #e8f5e9 0%, #fff8e1 50%, #fce4ec 100%);
  padding: 4rem 1.5rem 3.5rem;
  text-align: center;
}

.hero h1 {
  font-size: clamp(1.9rem, 5vw, 2.8rem);
  font-weight: 800;
  color: var(--green-dark);
  margin-bottom: 1rem;
  line-height: 1.2;
}

.hero p {
  font-size: 1.15rem;
  max-width: 700px;
  margin: 0 auto 1.8rem;
  color: var(--muted);
}

.btn {
  display: inline-block;
  background: var(--green);
  color: white;
  padding: 0.85rem 1.8rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
  text-decoration: none;
}
.btn:hover {
  background: var(--green-dark);
  text-decoration: none;
  transform: translateY(-1px);
}
.btn-outline {
  background: transparent;
  border: 2px solid var(--green);
  color: var(--green-dark);
}
.btn-outline:hover {
  background: var(--green);
  color: white;
}
.btn-secondary {
  background: var(--orange);
}
.btn-secondary:hover {
  background: #e65100;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Sections */
section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3.5rem 1.5rem;
}

h2 {
  font-size: 1.9rem;
  color: var(--green-dark);
  margin-bottom: 0.5rem;
  font-weight: 800;
}

.section-intro {
  color: var(--muted);
  margin-bottom: 2rem;
  max-width: 700px;
}

/* Cards */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 1.6rem;
  box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(0,0,0,0.1);
}
.card h3 {
  color: var(--green-dark);
  margin-bottom: 0.6rem;
  font-size: 1.2rem;
}
.card p {
  color: var(--muted);
  font-size: 0.95rem;
}

/* Feature boxes on home */
.feature-icon {
  font-size: 2rem;
  margin-bottom: 0.8rem;
}

/* Ingredient tags */
.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.8rem;
}
.tag {
  background: var(--green-light);
  color: var(--green-dark);
  padding: 0.3rem 0.7rem;
  border-radius: 20px;
  font-size: 0.82rem;
  font-weight: 500;
}
.tag.orange { background: var(--orange-light); color: #e65100; }
.tag.blue { background: #e3f2fd; color: #1565c0; }
.tag.purple { background: #f3e5f5; color: #6a1b9a; }

/* Recipe cards (reused style) */
.recipe-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.4rem;
}

.recipe-card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.recipe-header {
  padding: 1.2rem 1.3rem 0.7rem;
  border-bottom: 1px solid #f0f0f0;
}
.recipe-header h3 {
  font-size: 1.15rem;
  color: var(--green-dark);
  margin-bottom: 0.35rem;
}
.recipe-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
}
.r-tag {
  font-size: 0.72rem;
  padding: 0.18rem 0.55rem;
  border-radius: 12px;
  font-weight: 600;
  text-transform: uppercase;
}
.r-tag.berry { background: #f3e5f5; color: #6a1b9a; }
.r-tag.tropical { background: #fff3e0; color: #e65100; }
.r-tag.green { background: #e8f5e9; color: #2e7d32; }
.r-tag.protein { background: #e3f2fd; color: #1565c0; }
.r-tag.beauty { background: #fce4ec; color: #c2185b; }
.r-tag.gut { background: #e0f7fa; color: #00838f; }
.r-tag.inflam { background: #fbe9e7; color: #d84315; }
.r-tag.energy { background: #fffde7; color: #f9a825; }

.recipe-body {
  padding: 1.1rem 1.3rem 1.4rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  font-size: 0.92rem;
}
.recipe-body strong {
  color: var(--green-dark);
  display: block;
  margin-bottom: 0.25rem;
}
.ing-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
}
.ing-list span {
  background: #f5f5f5;
  padding: 0.22rem 0.55rem;
  border-radius: 6px;
  font-size: 0.82rem;
}
.benefits-box {
  background: var(--green-light);
  padding: 0.8rem 0.9rem;
  border-radius: 10px;
  font-size: 0.9rem;
}

/* Diagnostic */
.diagnostic-box {
  background: white;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 2rem;
  max-width: 700px;
  margin: 0 auto;
}
.question-block {
  margin-bottom: 1.8rem;
}
.question-block h3 {
  font-size: 1.15rem;
  margin-bottom: 0.8rem;
  color: var(--green-dark);
}
.options {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.option {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.75rem 1rem;
  background: #f8f8f8;
  border-radius: 10px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.15s;
}
.option:hover, .option.selected {
  border-color: var(--green);
  background: var(--green-light);
}
.option input {
  accent-color: var(--green);
  width: 18px;
  height: 18px;
}

.results {
  display: none;
  margin-top: 2rem;
}
.results.show {
  display: block;
}
.result-card {
  background: var(--green-light);
  border-left: 5px solid var(--green);
  padding: 1.2rem 1.4rem;
  border-radius: 0 12px 12px 0;
  margin-bottom: 1rem;
}
.result-card h4 {
  color: var(--green-dark);
  margin-bottom: 0.4rem;
}

/* Ingredient detail */
.ingredient-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.3rem;
}
.ing-card {
  background: white;
  border-radius: var(--radius);
  padding: 1.4rem;
  box-shadow: var(--shadow);
  border-top: 4px solid var(--green);
}
.ing-card.power { border-top-color: var(--orange); }
.ing-card.protein { border-top-color: #1565c0; }
.ing-card.booster { border-top-color: #6a1b9a; }
.ing-card h3 {
  font-size: 1.15rem;
  color: var(--green-dark);
  margin-bottom: 0.5rem;
}
.ing-card ul {
  list-style: none;
  margin-top: 0.6rem;
}
.ing-card li {
  padding: 0.25rem 0;
  font-size: 0.92rem;
  color: var(--muted);
  border-bottom: 1px solid #f0f0f0;
}
.ing-card li:last-child { border-bottom: none; }

/* Order page */
.order-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}
.step {
  background: white;
  padding: 1.5rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  text-align: center;
}
.step-num {
  display: inline-flex;
  width: 36px;
  height: 36px;
  background: var(--green);
  color: white;
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  margin-bottom: 0.8rem;
}

/* Forms */
.form-group {
  margin-bottom: 1.2rem;
}
.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.35rem;
  color: var(--green-dark);
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.7rem 1rem;
  border: 2px solid #ddd;
  border-radius: 10px;
  font-size: 1rem;
  font-family: inherit;
}
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--green);
}

/* Footer */
footer {
  background: var(--green-dark);
  color: #c8e6c9;
  text-align: center;
  padding: 2.5rem 1.5rem;
  margin-top: 2rem;
}
footer strong { color: white; }
footer a { color: #a5d6a7; }
footer .footer-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin: 1rem 0;
}

/* Utility */
.hidden { display: none !important; }
.text-center { text-align: center; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mb-2 { margin-bottom: 2rem; }

/* Mobile nav */
@media (max-width: 700px) {
  nav {
    width: 100%;
    justify-content: center;
    gap: 0.8rem;
  }
  .hero { padding: 3rem 1.2rem; }
  section { padding: 2.5rem 1.2rem; }
}
