/* Roots & Recipes — placeholder styles
   Colors are approximated from the pitch deck's own visuals (dark brown,
   cream, terracotta accent). TODO: replace with Marketing-Content's
   official brand file (colors/fonts/logo) once brand/ is populated —
   see Decision 17 in WEBSITE-BRAINSTORM.md. */

:root {
  --color-bg: #f6f1e7;
  --color-bg-dark: #3b2117;
  --color-text: #2a1810;
  --color-text-inverse: #f6f1e7;
  --color-text-muted: #6b584c;
  --color-accent: #c15b44;
  --color-accent-dark: #a44833;
  --color-card-bg: #ffffff;
  --color-border: #e4d9c7;
  --font-heading: Georgia, "Times New Roman", serif; /* TODO: real brand font */
  --font-body: -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; /* TODO: real brand font */
  --max-width: 960px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
}

h1, h2, h3 {
  font-family: var(--font-heading);
  line-height: 1.2;
  margin: 0 0 0.5em;
}

a { color: var(--color-accent-dark); }

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

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Header / Nav */
.site-header {
  background: var(--color-bg-dark);
  color: var(--color-text-inverse);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
  padding-bottom: 1rem;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.site-header .logo {
  color: var(--color-text-inverse);
  font-family: var(--font-heading);
  font-weight: bold;
  font-size: 1.3rem;
  text-decoration: none;
}
.site-header nav a {
  color: var(--color-text-inverse);
  text-decoration: none;
  margin-left: 1.25rem;
  font-size: 0.95rem;
  opacity: 0.9;
}
.site-header nav a:hover,
.site-header nav a[aria-current="page"] {
  opacity: 1;
  border-bottom: 2px solid var(--color-accent);
}
.nav-toggle {
  display: none;
  background: none;
  border: 1px solid rgba(246,241,231,0.4);
  color: var(--color-text-inverse);
  border-radius: 6px;
  padding: 0.4rem 0.6rem;
  font-size: 1.1rem;
  cursor: pointer;
}
@media (max-width: 640px) {
  .site-header .wrap { justify-content: space-between; }
  .nav-toggle { display: block; }
  .site-header nav {
    display: none;
    width: 100%;
    flex-direction: column;
    gap: 0.25rem;
    order: 3;
  }
  .site-header nav.nav-open { display: flex; }
  .site-header nav a { margin-left: 0; padding: 0.6rem 0.25rem; border-bottom: 1px solid rgba(246,241,231,0.12); }
}

/* Hero */
.hero {
  background: var(--color-bg-dark);
  color: var(--color-text-inverse);
  padding: 3rem 0 3.5rem;
}
.hero h1 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  max-width: 20ch;
}
.hero p.subhead {
  font-size: 1.15rem;
  max-width: 55ch;
  color: #ece3d3;
}
.btn-primary {
  display: inline-block;
  background: var(--color-accent);
  color: #fff;
  text-decoration: none;
  padding: 0.85rem 1.6rem;
  border-radius: 6px;
  font-weight: bold;
  border: none;
  font-size: 1rem;
  cursor: pointer;
}
.btn-primary:hover { background: var(--color-accent-dark); }

.steps-list {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.steps-list li {
  background: var(--color-card-bg);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 1rem 1.25rem;
}
.steps-list li strong { display: block; margin-bottom: 0.25rem; }
.fine-print {
  font-size: 0.85rem;
  color: #cbbfae;
  margin-top: 0.75rem;
}

/* Sections */
section { padding: 3rem 0; }
section.alt { background: #fffaf1; }

.stat-row {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}
.stat {
  background: var(--color-bg-dark);
  color: var(--color-text-inverse);
  padding: 1.5rem;
  border-radius: 8px;
  flex: 1 1 220px;
}
.stat .big {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  color: var(--color-accent);
  font-weight: bold;
}
.stat p { margin: 0.25rem 0 0; font-size: 0.9rem; color: #e7dcc9; }
.stat .source { font-size: 0.75rem; color: #b5a893; margin-top: 0.5rem; }

/* Cards */
.card {
  background: var(--color-card-bg);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 1.5rem;
}

/* TODO markers */
.todo {
  border: 2px dashed #b04a35;
  background: #fdf0ea;
  border-radius: 8px;
  padding: 1rem 1.25rem;
  margin: 1rem 0;
}
.todo-tag {
  display: inline-block;
  background: #b04a35;
  color: #fff;
  font-size: 0.7rem;
  font-weight: bold;
  letter-spacing: 0.05em;
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  margin-bottom: 0.5rem;
}

/* Forms */
form.stacked label {
  display: block;
  font-weight: bold;
  margin: 1rem 0 0.35rem;
  font-size: 0.9rem;
}
form.stacked input, form.stacked select {
  width: 100%;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--color-border);
  border-radius: 6px;
  font-size: 1rem;
  font-family: var(--font-body);
}
form.stacked .btn-primary { margin-top: 1.5rem; }
.form-note { font-size: 0.85rem; color: var(--color-text-muted); margin-top: 0.75rem; }

/* Demo widget (capture demo) */
.demo-widget {
  background: var(--color-bg-dark);
  color: var(--color-text-inverse);
  border-radius: 10px;
  padding: 1.75rem;
  margin-top: 1.5rem;
}
.demo-widget .demo-controls {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin: 1rem 0;
}
.demo-widget button.demo-btn {
  background: var(--color-accent);
  color: #fff;
  border: none;
  padding: 0.7rem 1.2rem;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.95rem;
}
.demo-widget button.demo-btn:hover { background: var(--color-accent-dark); }
.demo-output {
  background: rgba(255,255,255,0.08);
  border: 1px dashed rgba(255,255,255,0.35);
  border-radius: 6px;
  padding: 1rem;
  min-height: 3rem;
  font-size: 0.95rem;
  color: #ece3d3;
}
.demo-status { font-size: 0.8rem; color: #cbbfae; margin-top: 0.5rem; }

/* Link copy widget */
.link-copy {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  align-items: center;
}
.link-copy input[type="text"] {
  flex: 1 1 260px;
  min-width: 0;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--color-border);
  border-radius: 6px;
  font-family: monospace;
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
}
@media (max-width: 480px) {
  .link-copy input[type="text"] { font-size: 0.85rem; }
}

/* FAQ */
details.faq-item {
  border-bottom: 1px solid var(--color-border);
  padding: 1rem 0;
}
details.faq-item summary {
  font-weight: bold;
  cursor: pointer;
  font-size: 1.05rem;
}

/* Footer */
.site-footer {
  background: var(--color-bg-dark);
  color: #cbbfae;
  padding: 2rem 0;
  margin-top: 2rem;
  font-size: 0.85rem;
}
.site-footer .footer-todo { color: #a1907c; margin-top: 0.5rem; }
.site-footer .footer-bottom {
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(246,241,231,0.15);
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: center;
}
.site-footer .footer-bottom a { color: #cbbfae; }

/* Closing CTA banner (non-Home pages) */
.cta-banner {
  background: var(--color-bg-dark);
  color: var(--color-text-inverse);
  text-align: center;
  padding: 2.5rem 0;
}
.cta-banner h2 { margin-bottom: 1rem; }
.cta-banner .fine-print { color: #cbbfae; }

/* Team grid */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1.25rem;
  margin-top: 1.5rem;
}
.team-card {
  text-align: center;
}
.team-photo-placeholder {
  width: 100%;
  aspect-ratio: 1;
  background: var(--color-border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-muted);
  font-size: 0.75rem;
  margin-bottom: 0.5rem;
}
.team-photo {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 50%;
  margin-bottom: 0.5rem;
}
.role-desc {
  font-size: 0.78rem;
  color: var(--color-text-muted);
  margin-top: 0.15rem;
}
@media (max-width: 480px) {
  .team-grid { grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 1.5rem 1rem; }
  .team-photo, .team-photo-placeholder { max-width: 130px; margin-left: auto; margin-right: auto; }
}
