/* ── Obsessive Nutrition — Main Stylesheet ── */

:root {
  --green: #2d6a4f;
  --green-light: #40916c;
  --green-pale: #d8f3dc;
  --cream: #fefae0;
  --cream-dark: #f5ead0;
  --brown: #5c3d1e;
  --text: #1a1a1a;
  --text-muted: #555;
  --white: #ffffff;
  --font-serif: 'Merriweather', Georgia, serif;
  --font-sans: 'Inter', system-ui, sans-serif;
  --radius: 12px;
  --shadow: 0 4px 24px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.12);
}

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

body {
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── NAV ── */
.nav {
  position: sticky;
  top: 0;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid #eee;
  z-index: 100;
  padding: 16px 0;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-family: var(--font-serif);
  font-weight: 900;
  font-size: 1.3rem;
  color: var(--green);
  text-decoration: none;
}
.logo span { color: var(--brown); }

.nav-links {
  list-style: none;
  display: flex;
  gap: 32px;
  align-items: center;
}
.nav-links a {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--green); }

.btn-nav {
  background: var(--green) !important;
  color: var(--white) !important;
  padding: 8px 20px;
  border-radius: 20px;
  font-weight: 600 !important;
  transition: background 0.2s !important;
}
.btn-nav:hover { background: var(--green-light) !important; }

/* ── HERO ── */
.hero {
  background: linear-gradient(135deg, var(--cream) 0%, var(--cream-dark) 100%);
  padding: 100px 0 80px;
  text-align: center;
}

.hero-badge {
  display: inline-block;
  background: var(--green-pale);
  color: var(--green);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 20px;
  margin-bottom: 24px;
}

.hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 900;
  line-height: 1.1;
  color: var(--text);
  margin-bottom: 24px;
}
.hero h1 em {
  font-style: italic;
  color: var(--green);
}

.hero-sub {
  max-width: 580px;
  margin: 0 auto 40px;
  font-size: 1.15rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.hero-cta {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ── BUTTONS ── */
.btn-primary {
  background: var(--green);
  color: var(--white);
  padding: 14px 32px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  transition: background 0.2s, transform 0.2s;
  display: inline-block;
}
.btn-primary:hover { background: var(--green-light); transform: translateY(-1px); }

.btn-secondary {
  background: transparent;
  color: var(--green);
  padding: 14px 32px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  border: 2px solid var(--green);
  transition: all 0.2s;
  display: inline-block;
}
.btn-secondary:hover { background: var(--green); color: var(--white); }

/* ── SECTIONS ── */
.section { padding: 80px 0; }

.section-title {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 900;
  margin-bottom: 12px;
  text-align: center;
}

.section-sub {
  text-align: center;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 48px;
  font-size: 1.05rem;
}

/* ── BOOKS ── */
.books-section { background: var(--white); }

.books-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 28px;
  margin-bottom: 40px;
}

.book-card {
  border: 1px solid #e8e8e8;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
}
.book-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.book-card.coming-soon { opacity: 0.75; }

.book-cover {
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.5rem;
}
.book-cover.sardines { background: linear-gradient(135deg, #1a4971, #2e7cb5); }
.book-cover.olive    { background: linear-gradient(135deg, #4a6741, #7ab363); }
.book-cover.salmon   { background: linear-gradient(135deg, #b5422e, #e87356); }
.book-cover.turmeric { background: linear-gradient(135deg, #b5840e, #e8b53d); }

.book-info {
  padding: 20px;
}

.book-series {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--green);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 6px;
}

.book-info h3 {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  margin-bottom: 10px;
}

.book-info p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 16px;
}

.book-links { display: flex; gap: 10px; flex-wrap: wrap; }

.btn-book {
  background: var(--green);
  color: var(--white);
  padding: 8px 18px;
  border-radius: 6px;
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 600;
  transition: background 0.2s;
}
.btn-book:hover { background: var(--green-light); }

.btn-book-ghost {
  color: var(--green);
  padding: 8px 18px;
  border-radius: 6px;
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 600;
  border: 1px solid var(--green);
  transition: all 0.2s;
}
.btn-book-ghost:hover { background: var(--green); color: var(--white); }

.books-cta { text-align: center; }

/* ── WHY SECTION ── */
.why-section {
  background: var(--cream);
}

.why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.why-content h2 {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 900;
  margin-bottom: 20px;
}

.why-content p {
  color: var(--text-muted);
  margin-bottom: 16px;
  font-size: 1rem;
  line-height: 1.7;
}

.why-list {
  list-style: none;
  margin-top: 24px;
}
.why-list li {
  padding: 8px 0;
  color: var(--text);
  font-weight: 500;
  border-bottom: 1px solid rgba(0,0,0,0.06);
}

.why-quote {
  background: var(--white);
  border-radius: var(--radius);
  padding: 40px;
  box-shadow: var(--shadow);
  border-left: 4px solid var(--green);
}

blockquote {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-style: italic;
  line-height: 1.7;
  color: var(--text);
  margin-bottom: 16px;
}

cite {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-style: normal;
}

/* ── SUBSCRIBE ── */
.subscribe-section { background: var(--green); }

.subscribe-box {
  text-align: center;
  max-width: 560px;
  margin: 0 auto;
}

.subscribe-box h2 {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 900;
  color: var(--white);
  margin-bottom: 16px;
}

.subscribe-box p {
  color: rgba(255,255,255,0.85);
  margin-bottom: 28px;
  font-size: 1rem;
  line-height: 1.7;
}

.subscribe-form {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

.subscribe-form input {
  flex: 1;
  min-width: 240px;
  padding: 14px 20px;
  border-radius: 8px;
  border: none;
  font-size: 1rem;
  font-family: var(--font-sans);
}
.subscribe-form input:focus { outline: 3px solid var(--green-pale); }

.subscribe-form button {
  background: var(--cream);
  color: var(--green);
  padding: 14px 28px;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  font-family: var(--font-sans);
  transition: background 0.2s;
}
.subscribe-form button:hover { background: var(--white); }

.subscribe-note {
  margin-top: 14px !important;
  font-size: 0.8rem !important;
  color: rgba(255,255,255,0.6) !important;
}

/* ── BLOG ── */
.blog-section { background: var(--white); }

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 28px;
  margin-bottom: 40px;
}

.blog-card {
  border: 1px solid #e8e8e8;
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
}
.blog-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }

.blog-tag {
  display: inline-block;
  background: var(--green-pale);
  color: var(--green);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 12px;
}

.blog-card h3 {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  line-height: 1.4;
  margin-bottom: 12px;
}
.blog-card h3 a {
  color: var(--text);
  text-decoration: none;
}
.blog-card h3 a:hover { color: var(--green); }

.blog-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 16px;
}

.read-more {
  color: var(--green);
  font-weight: 600;
  text-decoration: none;
  font-size: 0.9rem;
}
.read-more:hover { text-decoration: underline; }

.blog-cta { text-align: center; }

/* ── FOOTER ── */
.footer {
  background: var(--text);
  color: rgba(255,255,255,0.7);
}

.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  padding: 60px 0 40px;
}

.footer-brand .logo { color: var(--cream); }
.footer-brand .logo span { color: var(--green-pale); }
.footer-brand p {
  margin-top: 12px;
  font-size: 0.9rem;
  line-height: 1.6;
  color: rgba(255,255,255,0.55);
}

.footer-links h4 {
  color: var(--white);
  font-weight: 600;
  margin-bottom: 16px;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.footer-links ul { list-style: none; }
.footer-links li { margin-bottom: 10px; }
.footer-links a {
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--white); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 20px 0;
}
.footer-bottom p {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.35);
  text-align: center;
}

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .why-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
  .nav-links { gap: 16px; }
  .hero { padding: 60px 0; }
}

@media (max-width: 480px) {
  .nav-links li:not(:last-child) { display: none; }
  .books-grid { grid-template-columns: 1fr; }
  .blog-grid { grid-template-columns: 1fr; }
}
