/* Find Home Cooked — styles.css
   Palette computed for WCAG 2.2 AA. See build report for exact contrast ratios. */

:root {
  --color-bg: #f7faf5;
  --color-surface: #ffffff;
  --color-surface-alt: #eef5ea;
  --color-border: #d3e3cf;
  --color-text: #14261a;
  --color-text-muted: #4b6350;
  --color-primary: #1e7a3d;
  --color-primary-hover: #17632f;
  --color-primary-text: #ffffff;
  --color-accent: #2e8b4f;
  --color-red: #c62828;
  --color-red-text: #ffffff;
  --color-chip-bg: #e2ede0;
  --color-chip-text: #14261a;
  --color-chip-selected-bg: #1e7a3d;
  --color-chip-selected-text: #ffffff;
  --color-focus: #0f5c27;
  --font-system: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-pill: 999px;
  --max-width: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-system);
  font-size: 16px;
  line-height: 1.55;
}

img, svg {
  max-width: 100%;
}

h1, h2, h3 {
  line-height: 1.2;
  margin: 0 0 0.5em 0;
  font-weight: 700;
}

p {
  margin: 0 0 1em 0;
}

a {
  color: var(--color-primary);
}

ul, ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

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

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--color-primary);
  color: var(--color-primary-text);
  padding: 12px 18px;
  z-index: 100;
  border-radius: 0 0 8px 0;
  font-weight: 600;
}

.skip-link:focus {
  left: 0;
}

:focus-visible {
  outline: 3px solid var(--color-focus);
  outline-offset: 2px;
}

/* -------------------- Buttons & pills -------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius-pill);
  border: 2px solid transparent;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
}

.btn-primary {
  background: var(--color-primary);
  color: var(--color-primary-text);
}

.btn-primary:hover {
  background: var(--color-primary-hover);
}

.btn-ghost {
  background: transparent;
  color: var(--color-primary);
  border-color: var(--color-primary);
}

.btn-ghost:hover {
  background: var(--color-surface-alt);
}

/* -------------------- Header -------------------- */

.site-header {
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  z-index: 10;
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  padding-top: 12px;
  padding-bottom: 12px;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--color-text);
  margin-right: auto;
}

.brand-mark {
  color: var(--color-primary);
  flex-shrink: 0;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.brand-name {
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--color-text);
}

.brand-tagline {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  font-weight: 600;
}

.main-nav .nav-list {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
}

.main-nav a {
  color: var(--color-text);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
}

.main-nav a:hover {
  color: var(--color-primary);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.location-picker select {
  font-family: inherit;
  font-size: 0.9rem;
  color: var(--color-text);
  background: var(--color-surface-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
  padding: 8px 14px;
}

/* -------------------- Hero -------------------- */

.hero {
  padding: 56px 0 40px;
  background: linear-gradient(180deg, var(--color-surface-alt) 0%, var(--color-bg) 100%);
}

.hero-inner {
  text-align: center;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.25rem);
  color: var(--color-text);
  max-width: 18ch;
  margin-left: auto;
  margin-right: auto;
}

.hero-sub {
  font-size: 1.05rem;
  color: var(--color-text-muted);
  max-width: 56ch;
  margin-left: auto;
  margin-right: auto;
}

.search-form {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  max-width: 720px;
  margin: 24px auto 0;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 10px;
}

.search-field {
  flex: 1 1 220px;
}

.search-field input {
  width: 100%;
  font-family: inherit;
  font-size: 1rem;
  color: var(--color-text);
  background: var(--color-surface-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 12px 14px;
}

.search-field input::placeholder {
  color: var(--color-text-muted);
}

.search-submit {
  flex: 0 0 auto;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 26px;
}

.chip {
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 9px 18px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--color-border);
  background: var(--color-chip-bg);
  color: var(--color-chip-text);
  cursor: pointer;
}

.chip:hover {
  border-color: var(--color-primary);
}

.chip--selected {
  background: var(--color-chip-selected-bg);
  color: var(--color-chip-selected-text);
  border-color: var(--color-chip-selected-bg);
}

/* -------------------- Preview banner -------------------- */

.meals-section {
  padding: 44px 0 56px;
}

.preview-banner {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: #fff6e0;
  border: 1px solid #e7c66b;
  color: #5c4400;
  border-radius: var(--radius-md);
  padding: 14px 18px;
  margin-bottom: 26px;
  font-size: 0.95rem;
}

.preview-banner-icon {
  flex-shrink: 0;
  color: #8a6a00;
  margin-top: 2px;
}

/* -------------------- Meal grid -------------------- */

.meal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 22px;
}

.meal-card {
  position: relative;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.meal-img {
  height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.meal-img--a { background: linear-gradient(135deg, #2e8b4f, #8bc34a); }
.meal-img--b { background: linear-gradient(135deg, #c65b28, #e0a458); }
.meal-img--c { background: linear-gradient(135deg, #1e7a3d, #4fae6d); }
.meal-img--d { background: linear-gradient(135deg, #4b6350, #8bad93); }
.meal-img--e { background: linear-gradient(135deg, #a8567a, #e0a4c0); }
.meal-img--f { background: linear-gradient(135deg, #b8860b, #e2c374); }

.badge-left {
  position: absolute;
  top: 12px;
  right: 12px;
  background: var(--color-red);
  color: var(--color-red-text);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 5px 11px;
  border-radius: var(--radius-pill);
}

.meal-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.meal-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.meal-name {
  font-size: 1rem;
  margin: 0;
  color: var(--color-text);
}

.pill {
  flex-shrink: 0;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  white-space: nowrap;
}

.pill--pickup {
  background: var(--color-surface-alt);
  color: var(--color-primary-hover);
  border: 1px solid var(--color-border);
}

.pill--delivery {
  background: #e7f0fb;
  color: #1a4b8c;
  border: 1px solid #c3d9f2;
}

.meal-cook {
  margin: 0;
  color: var(--color-text-muted);
  font-size: 0.9rem;
}

.meal-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.88rem;
  color: var(--color-text-muted);
  margin-top: auto;
}

.meal-price {
  color: var(--color-text);
  font-weight: 700;
}

.meal-rating {
  color: var(--color-text);
}

.meal-reviews {
  color: var(--color-text-muted);
}

/* -------------------- How it works -------------------- */

.how-section {
  background: var(--color-surface-alt);
  padding: 52px 0;
}

.how-section h2 {
  text-align: center;
}

.section-sub {
  text-align: center;
  color: var(--color-text-muted);
  max-width: 60ch;
  margin: 0 auto 30px;
}

.how-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 22px;
}

.how-step {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 22px;
}

.how-step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--color-primary);
  color: var(--color-primary-text);
  font-weight: 700;
  margin-bottom: 12px;
}

.how-step h3 {
  font-size: 1.05rem;
}

.how-step p {
  color: var(--color-text-muted);
  margin: 0;
  font-size: 0.94rem;
}

/* -------------------- Become a cook -------------------- */

.cook-section {
  padding: 52px 0;
}

.cook-inner {
  background: linear-gradient(135deg, #1e7a3d, #2e8b4f);
  border-radius: var(--radius-lg);
  padding: 40px;
  color: #ffffff;
}

.cook-copy h2 {
  color: #ffffff;
}

.cook-copy p {
  color: #eaf6ee;
  max-width: 62ch;
}

.cook-inner .btn-primary {
  background: #ffffff;
  color: var(--color-primary-hover);
}

.cook-inner .btn-primary:hover {
  background: #eaf6ee;
}

/* -------------------- Honesty section -------------------- */

.honesty-section {
  padding: 8px 0 52px;
}

.honesty-section h2 {
  font-size: 1.3rem;
}

.honesty-section p {
  color: var(--color-text-muted);
  max-width: 72ch;
}

/* -------------------- Waitlist -------------------- */

.waitlist-section {
  padding: 12px 0 64px;
}

.waitlist-inner {
  text-align: center;
  max-width: 68ch;
}

.waitlist-inner p {
  color: var(--color-text-muted);
}

.waitlist-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 20px;
}

/* -------------------- Footer -------------------- */

.site-footer {
  background: #10231a;
  color: #d6e6da;
  padding: 44px 0 26px;
}

.footer-top {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 32px;
  padding-bottom: 28px;
  border-bottom: 1px solid #223a2c;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.05rem;
  color: #ffffff;
}

.footer-brand .brand-mark {
  color: #7fd39a;
}

.footer-sister-heading {
  color: #ffffff;
  font-size: 1.2rem;
}

.footer-progression {
  color: #7fd39a;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.footer-sister p {
  color: #b9cec0;
}

.footer-sister a {
  color: #9fe4b6;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  padding: 24px 0;
}

.footer-links a {
  color: #cfe3d6;
  text-decoration: none;
  font-size: 0.9rem;
}

.footer-links a:hover {
  color: #ffffff;
}

.footer-bottom {
  color: #9fb6a6;
  font-size: 0.88rem;
}

.footer-bottom p {
  margin: 0;
}

/* -------------------- Responsive -------------------- */

@media (max-width: 768px) {
  .header-inner {
    flex-direction: column;
    align-items: stretch;
  }

  .brand {
    margin-right: 0;
  }

  .main-nav .nav-list {
    justify-content: center;
  }

  .header-actions {
    justify-content: center;
  }

  .footer-top {
    grid-template-columns: 1fr;
  }

  .cook-inner {
    padding: 28px;
  }
}

@media (max-width: 480px) {
  .search-form {
    flex-direction: column;
  }

  .search-submit {
    width: 100%;
  }

  .waitlist-actions {
    flex-direction: column;
    align-items: stretch;
  }
}

/* -------------------- Reduced motion -------------------- */

@media (prefers-reduced-motion: reduce) {
  * {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}

/* -------------------- How It Works article page -------------------- */
/* Added for how-it-works.html. Reuses existing tokens only — no new colors. */

.breadcrumbs {
  padding-top: 18px;
}

.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

.breadcrumbs li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.breadcrumbs li:not(:last-child)::after {
  content: "/";
  color: var(--color-border);
}

.breadcrumbs a {
  color: var(--color-text-muted);
  text-decoration: underline;
}

.breadcrumbs a:hover {
  color: var(--color-primary);
}

.breadcrumbs li[aria-current="page"] {
  color: var(--color-text);
  font-weight: 600;
}

.page-hero {
  padding: 20px 0 40px;
}

.page-hero h1 {
  font-size: clamp(1.9rem, 4.5vw, 2.75rem);
  color: var(--color-text);
  max-width: 22ch;
}

.page-hero-lead {
  font-size: 1.05rem;
  color: var(--color-text-muted);
  max-width: 62ch;
  margin-bottom: 22px;
}

.article-section {
  padding: 48px 0;
}

.article-section--alt {
  background: var(--color-surface-alt);
}

.article-prose {
  max-width: 74ch;
}

.article-prose h2 {
  font-size: 1.5rem;
}

.article-prose > p {
  color: var(--color-text-muted);
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 22px;
}

.faq-item {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 18px 22px;
}

.faq-item h3 {
  font-size: 1.02rem;
  margin-bottom: 6px;
}

.faq-item p {
  color: var(--color-text-muted);
  margin: 0;
  font-size: 0.96rem;
}
