/* RecipeHubb marketing site — shared styles */

:root {
  --forest-900: #0d3b0a;
  --forest-800: #124b0b;
  --forest-700: #16601a;
  --green-600: #16a34a;
  --green-500: #22c55e;
  --green-100: #e3f4e9;
  --cream-50: #fdfaf4;
  --cream-100: #f7f1e4;
  --cream-200: #f0e8d6;
  --amber-400: #e8a65c;
  --amber-500: #d98f3d;
  --charcoal: #2b2b27;
  --gray-600: #5c5a52;
  --gray-300: #cfc9ba;
  --white: #ffffff;
  --radius-md: 14px;
  --radius-lg: 22px;
  --shadow-soft: 0 12px 30px rgba(13, 59, 10, 0.08);
  --shadow-card: 0 6px 18px rgba(43, 43, 39, 0.08);
  --max-width: 1180px;
  --font-head: "Poppins", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-padding-top: 90px; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--charcoal);
  background: var(--cream-50);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.15;
  color: var(--forest-900);
  margin: 0 0 0.5em;
}

h1 { font-size: clamp(2.1rem, 4.5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1em; color: var(--gray-600); }

a { color: inherit; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-head);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--green-600);
  margin-bottom: 0.9em;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.98rem;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: var(--forest-800);
  color: var(--white);
  box-shadow: var(--shadow-soft);
}
.btn-primary:hover { background: var(--forest-900); }

.btn-outline {
  background: transparent;
  border-color: var(--forest-800);
  color: var(--forest-800);
}
.btn-outline:hover { background: var(--forest-800); color: var(--white); }

.btn-sm { padding: 10px 20px; font-size: 0.88rem; }

/* Header / nav */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--cream-50);
  border-bottom: 1px solid var(--cream-200);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.brand img { width: 36px; height: 36px; border-radius: 9px; }
.brand span {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.28rem;
  color: var(--forest-800);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--charcoal);
  position: relative;
  padding: 4px 0;
}
.nav-links a.active,
.nav-links a:hover { color: var(--forest-800); }
.nav-links a.active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -4px;
  height: 2px;
  background: var(--green-600);
  border-radius: 2px;
}

.nav-cta { display: flex; align-items: center; gap: 14px; }
.nav-cta .btn-primary .short { display: none; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.6rem;
  cursor: pointer;
  color: var(--forest-800);
}

@media (max-width: 860px) {
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: var(--cream-50);
    flex-direction: column;
    gap: 0;
    border-bottom: 1px solid var(--cream-200);
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links li { width: 100%; }
  .nav-links a { display: block; padding: 16px 24px; }
  .nav-links a.active::after { display: none; }
  .nav-toggle { display: block; }
  .nav-cta { gap: 8px; }
  .nav-cta .btn-primary { padding: 10px 14px; font-size: 0.78rem; white-space: nowrap; }
  .nav-cta .btn-primary .full { display: none; }
  .nav-cta .btn-primary .short { display: inline; }
  .brand span { font-size: 1.05rem; }
}

/* Hero */
.hero {
  padding: 64px 0 40px;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
}
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
}
.hero-copy h1 { margin-bottom: 0.4em; }
.hero-copy p.lead {
  font-size: 1.15rem;
  max-width: 46ch;
  margin-bottom: 1.6em;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 1.8em; }

.hero-media {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}
.hero-media img { width: 100%; height: 100%; object-fit: cover; }

/* Store badges */
.store-badges { display: flex; flex-wrap: wrap; gap: 12px; }
.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--charcoal);
  color: var(--white);
  padding: 10px 18px;
  border-radius: 12px;
  text-decoration: none;
  font-family: var(--font-head);
  transition: transform 0.15s ease, background 0.15s ease;
}
.store-badge:hover { transform: translateY(-2px); background: var(--forest-900); }
.store-badge svg { width: 24px; height: 24px; flex-shrink: 0; }
.store-badge .badge-text { line-height: 1.15; text-align: left; }
.store-badge .badge-text small { display: block; font-size: 0.62rem; font-weight: 400; opacity: 0.8; letter-spacing: 0.03em; }
.store-badge .badge-text strong { display: block; font-size: 1rem; font-weight: 700; }

/* Sections */
section { padding: 72px 0; }
.section-head {
  max-width: 700px;
  margin: 0 auto 48px;
  text-align: center;
}
.section-head p { font-size: 1.05rem; }

.bg-cream { background: var(--cream-100); }
.bg-forest {
  background: linear-gradient(160deg, var(--forest-900), var(--forest-700));
  color: var(--white);
}
.bg-forest h2, .bg-forest h3 { color: var(--white); }
.bg-forest p { color: rgba(255,255,255,0.82); }

/* Cycle / how it works */
.cycle-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
@media (max-width: 760px) { .cycle-grid { grid-template-columns: repeat(2, 1fr); } }
.cycle-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 28px 20px;
  text-align: center;
  box-shadow: var(--shadow-card);
}
.cycle-card .icon-circle {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--green-100);
  color: var(--forest-800);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 14px;
  font-size: 1.5rem;
}
.cycle-card h3 { margin-bottom: 2px; font-size: 1.05rem; }
.cycle-card span.tag { color: var(--gray-600); font-size: 0.85rem; }

/* Feature list */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
@media (max-width: 900px) { .feature-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .feature-grid { grid-template-columns: 1fr; } }
.feature-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 30px 26px;
  box-shadow: var(--shadow-card);
}
.feature-card .icon-circle {
  width: 48px; height: 48px;
  border-radius: 12px;
  background: var(--cream-200);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 16px;
}

/* Old way / new way table */
.compare-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}
@media (max-width: 700px) { .compare-grid { grid-template-columns: 1fr; } }
.compare-col { padding: 32px; }
.compare-col.old { background: var(--white); }
.compare-col.new { background: var(--green-100); }
.compare-col h3 { margin-bottom: 20px; }
.compare-row {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 12px 0;
  border-top: 1px solid rgba(0,0,0,0.06);
}
.compare-row:first-of-type { border-top: none; }
.compare-row .mark { flex-shrink: 0; font-weight: 700; margin-top: 2px; }
.compare-col.old .mark { color: var(--gray-300); }
.compare-col.new .mark { color: var(--green-600); }

/* Video embed (click-to-load YouTube facade) */
.video-embed {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: var(--forest-900);
  box-shadow: var(--shadow-soft);
}
.video-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.video-embed-thumb {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  margin: 0;
  border: 0;
  cursor: pointer;
  background: var(--forest-900);
}
.video-embed-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.85;
}
.video-embed-thumb .play-btn {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 78px; height: 78px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.45);
  border: 2px solid rgba(255,255,255,0.8);
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.7rem;
  transition: transform 0.15s ease, background 0.15s ease;
}
.video-embed-thumb:hover .play-btn {
  transform: translate(-50%, -50%) scale(1.08);
  background: var(--green-600);
}

/* Intro copy (narrative sections) */
.intro-copy {
  max-width: 740px;
  margin: 0 auto;
}
.intro-copy h2 { margin-top: 1.4em; }
.intro-copy h2:first-child { margin-top: 0; }
.intro-copy p { font-size: 1.02rem; }
.intro-copy strong { color: var(--forest-800); }

/* Founders */
.founder-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}
@media (max-width: 700px) { .founder-grid { grid-template-columns: 1fr; } }
.founder-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px;
  text-align: center;
  box-shadow: var(--shadow-card);
}
.founder-photo {
  width: 132px; height: 132px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 18px;
  border: 4px solid var(--cream-100);
}
.founder-photo.placeholder {
  display: flex; align-items: center; justify-content: center;
  background: var(--forest-800);
  color: var(--white);
  font-family: var(--font-head);
  font-size: 2.4rem;
  font-weight: 700;
}
.founder-role { color: var(--green-600); font-weight: 600; font-size: 0.9rem; margin-bottom: 10px; }

/* Values */
.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 760px) { .values-grid { grid-template-columns: 1fr; } }
.value-card { text-align: center; padding: 8px; }
.value-card .icon-circle {
  width: 60px; height: 60px;
  border-radius: 50%;
  background: rgba(255,255,255,0.12);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px;
  font-size: 1.6rem;
}

/* Recipes */
.tag-row { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 44px; }
.tag-pill {
  background: var(--white);
  border: 1px solid var(--cream-200);
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--forest-800);
}
.tag-pill.active { background: var(--forest-800); color: var(--white); border-color: var(--forest-800); }

.recipe-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
@media (max-width: 900px) { .recipe-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .recipe-grid { grid-template-columns: 1fr; } }

.recipe-card {
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.recipe-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-soft); }
.recipe-card .thumb {
  aspect-ratio: 4/3;
  background: var(--cream-200);
  display: flex; align-items: center; justify-content: center;
  font-size: 2.6rem;
}
.recipe-card .thumb.tuscan { background: linear-gradient(135deg, #f3ddb1, #e8a65c); }
.recipe-card .thumb.salmon { background: linear-gradient(135deg, #ffd9c2, #f2986a); }
.recipe-card .thumb.tacos { background: linear-gradient(135deg, #ffe2a8, #e8b95c); }
.recipe-card .body { padding: 20px 20px 24px; flex: 1; display: flex; flex-direction: column; }
.recipe-card .meta { font-size: 0.82rem; color: var(--gray-600); margin-bottom: 8px; display: flex; gap: 12px; }
.recipe-card h3 { margin-bottom: 8px; }
.recipe-card p { font-size: 0.92rem; margin-bottom: 14px; }
.recipe-card .tags { margin-top: auto; display: flex; gap: 8px; flex-wrap: wrap; }
.recipe-card .tags span {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--forest-800);
  background: var(--green-100);
  padding: 4px 10px;
  border-radius: 999px;
}

/* Recipe post page */
.post-hero {
  padding: 48px 0 0;
}
.post-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin: 24px 0 32px;
  padding: 20px 0;
  border-top: 1px solid var(--cream-200);
  border-bottom: 1px solid var(--cream-200);
}
.post-meta-row .stat { text-align: left; }
.post-meta-row .stat strong { display: block; font-family: var(--font-head); color: var(--forest-800); font-size: 1.1rem; }
.post-meta-row .stat span { font-size: 0.8rem; color: var(--gray-600); text-transform: uppercase; letter-spacing: 0.05em; }

.post-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 48px;
  align-items: start;
}
@media (max-width: 860px) { .post-layout { grid-template-columns: 1fr; } }

.ingredient-card, .sidebar-card {
  background: var(--cream-100);
  border-radius: var(--radius-md);
  padding: 24px;
  margin-bottom: 24px;
}
.ingredient-card ul { padding-left: 20px; margin: 0; }
.ingredient-card li { margin-bottom: 8px; }

.method-list { list-style: none; margin: 0; padding: 0; counter-reset: step; }
.method-list li {
  counter-increment: step;
  position: relative;
  padding: 0 0 22px 46px;
  margin-bottom: 4px;
}
.method-list li::before {
  content: counter(step);
  position: absolute;
  left: 0; top: 0;
  width: 30px; height: 30px;
  background: var(--forest-800);
  color: var(--white);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.9rem;
}

.recipe-hero-img { border-radius: var(--radius-lg); overflow: hidden; margin-bottom: 8px; box-shadow: var(--shadow-soft); aspect-ratio: 16/9; }

.cta-banner {
  background: var(--forest-800);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 20px;
  text-align: center;
}
.cta-banner p { color: rgba(255,255,255,0.85); font-size: 0.9rem; }

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }

.form-field { margin-bottom: 18px; }
.form-field label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 6px;
  color: var(--charcoal);
}
.form-field input,
.form-field textarea {
  width: 100%;
  padding: 13px 16px;
  border-radius: 10px;
  border: 1.5px solid var(--cream-200);
  background: var(--white);
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--charcoal);
}
.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--green-600);
}
.form-field textarea { resize: vertical; min-height: 140px; }

.contact-detail {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 22px;
}
.contact-detail .icon-circle {
  width: 42px; height: 42px;
  border-radius: 12px;
  background: var(--green-100);
  color: var(--forest-800);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  font-size: 1.1rem;
}
.contact-detail strong { display: block; color: var(--charcoal); font-size: 0.95rem; }
.contact-detail span, .contact-detail a { font-size: 0.9rem; color: var(--gray-600); text-decoration: none; }

.form-status {
  margin-top: 14px;
  font-size: 0.9rem;
  font-weight: 600;
  display: none;
}
.form-status.show { display: block; }
.form-status.success { color: var(--forest-800); }

/* Footer */
.site-footer {
  background: var(--forest-900);
  color: rgba(255,255,255,0.75);
  padding: 56px 0 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 40px;
}
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
.footer-grid h4 { color: var(--white); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 16px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: 10px; }
.footer-grid a { color: rgba(255,255,255,0.75); text-decoration: none; font-size: 0.92rem; }
.footer-grid a:hover { color: var(--white); }
.footer-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.footer-brand img { width: 34px; height: 34px; border-radius: 8px; }
.footer-brand span { font-family: var(--font-head); font-weight: 700; font-size: 1.15rem; color: var(--white); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 22px;
  font-size: 0.82rem;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
}

/* Utility */
.text-center { text-align: center; }
.mt-32 { margin-top: 32px; }
.mb-0 { margin-bottom: 0; }
