/* Kitchen Companion — Website Styles */
/* Matches the mobile app mockup design language */

@import url('https://fonts.googleapis.com/css2?family=Nunito+Sans:ital,opsz,wght@0,6..12,300;0,6..12,400;0,6..12,500;0,6..12,600;0,6..12,700;0,6..12,800;1,6..12,400&display=swap');

/* ========== DESIGN TOKENS ========== */

:root {
  --bg: #F7F1E1;
  --primary: #2F4F32;
  --primary-dark: #264228;
  --accent: #F49C4B;
  --accent-hover: #e08a3a;
  --meal-card: #DDE7D0;
  --chip: #C9D8B6;
  --text: #1E2B23;
  --text-secondary: #757575;
  --surface: #FFFFFF;
  --divider: #E0D8C8;
  --error: #D32F2F;
  --link: #4A90E2;
  --shadow: rgba(0,0,0,0.08);

  --font: 'Nunito Sans', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', sans-serif;
  --max-width: 800px;
  --max-width-wide: 1080px;
}

/* ========== BASE ========== */

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}

a {
  color: var(--primary);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

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

/* ========== NAVIGATION ========== */

.site-nav {
  background: var(--surface);
  border-bottom: 1px solid var(--divider);
  position: sticky;
  top: 0;
  z-index: 100;
}

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

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--primary);
  font-weight: 800;
  font-size: 20px;
}

.nav-brand img {
  width: 36px;
  height: 36px;
  border-radius: 8px;
}

.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  color: var(--text);
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  padding: 4px 0;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s, color 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
  text-decoration: none;
}

.nav-hamburger {
  display: none;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: var(--text);
  padding: 4px;
}

/* ========== HERO ========== */

.hero {
  text-align: center;
  padding: 80px 24px 64px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.hero-icon {
  width: 96px;
  height: 96px;
  border-radius: 24px;
  box-shadow: 0 8px 32px var(--shadow);
  margin-bottom: 32px;
}

.hero h1 {
  font-size: 42px;
  font-weight: 800;
  color: var(--primary);
  line-height: 1.2;
  margin-bottom: 16px;
}

.hero .subtitle {
  font-size: 20px;
  color: var(--text-secondary);
  font-weight: 500;
  max-width: 560px;
  margin: 0 auto 32px;
  line-height: 1.5;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--primary);
  color: #FFFFFF;
  padding: 14px 32px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 16px;
  transition: background 0.2s, transform 0.1s;
  text-decoration: none;
}

.hero-cta:hover {
  background: var(--primary-dark);
  text-decoration: none;
  transform: translateY(-1px);
}

.hero-badge {
  display: inline-block;
  background: var(--accent);
  color: #FFFFFF;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 24px;
}

/* ========== SECTIONS ========== */

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

.section-wide {
  max-width: var(--max-width-wide);
}

.section-alt {
  background: var(--surface);
  border-top: 1px solid var(--divider);
  border-bottom: 1px solid var(--divider);
}

.section h2 {
  font-size: 28px;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 16px;
  line-height: 1.3;
}

.section h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}

.section p {
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  margin-bottom: 16px;
}

.section p.secondary {
  color: var(--text-secondary);
}

.section-intro {
  font-size: 18px;
  color: var(--text-secondary);
  max-width: 640px;
  line-height: 1.6;
  margin-bottom: 32px;
}

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

/* ========== FEATURE CARDS ========== */

.features-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 32px;
}

.feature-card {
  background: var(--surface);
  border: 1px solid var(--divider);
  border-radius: 12px;
  padding: 28px;
  transition: box-shadow 0.2s, transform 0.2s;
}

.feature-card:hover {
  box-shadow: 0 4px 20px var(--shadow);
  transform: translateY(-2px);
}

.feature-icon {
  font-size: 32px;
  margin-bottom: 12px;
  display: block;
}

.feature-card h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}

.feature-card p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 0;
}

/* ========== QUOTE / CALLOUT ========== */

.callout {
  background: var(--meal-card);
  border-radius: 12px;
  padding: 32px;
  margin: 32px 0;
  border-left: 4px solid var(--primary);
}

.callout p {
  font-size: 18px;
  font-style: italic;
  color: var(--text);
  margin-bottom: 8px;
}

.callout .attribution {
  font-size: 14px;
  font-weight: 700;
  color: var(--primary);
  font-style: normal;
}

/* ========== SIGNATURE ========== */

.signature {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--divider);
}

.signature p {
  font-size: 16px;
  margin-bottom: 4px;
}

.signature .name {
  font-weight: 700;
  color: var(--primary);
  font-size: 18px;
}

/* ========== LEGAL PAGES ========== */

.legal-content {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 48px 24px 80px;
}

.legal-content h1 {
  font-size: 32px;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 8px;
}

.legal-content .last-updated {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 40px;
}

.legal-content h2 {
  font-size: 22px;
  font-weight: 700;
  color: var(--primary);
  margin-top: 40px;
  margin-bottom: 12px;
}

.legal-content h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  margin-top: 24px;
  margin-bottom: 8px;
}

.legal-content p {
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: 12px;
}

.legal-content ul {
  margin: 12px 0 16px 24px;
  line-height: 1.7;
}

.legal-content li {
  margin-bottom: 6px;
  font-size: 16px;
}

.legal-content strong {
  color: var(--text);
}

/* ========== CONTACT / SUPPORT ========== */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 32px;
}

.contact-card {
  background: var(--surface);
  border: 1px solid var(--divider);
  border-radius: 12px;
  padding: 28px;
}

.contact-card h3 {
  margin-bottom: 12px;
}

.contact-card a {
  color: var(--primary);
  font-weight: 600;
}

.faq-item {
  border-bottom: 1px solid var(--divider);
  padding: 20px 0;
}

.faq-item:last-child {
  border-bottom: none;
}

.faq-item h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
}

.faq-item p {
  font-size: 15px;
  color: var(--text-secondary);
  margin-bottom: 0;
}

/* ========== ABOUT PAGE ========== */

.about-intro {
  display: flex;
  gap: 40px;
  align-items: flex-start;
  margin-bottom: 48px;
}

.about-photo {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: var(--chip);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  font-weight: 700;
  color: var(--primary);
}

/* ========== FOOTER ========== */

.site-footer {
  background: var(--primary);
  color: rgba(255,255,255,0.8);
  padding: 48px 24px;
}

.footer-inner {
  max-width: var(--max-width-wide);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 48px;
}

.footer-brand {
  color: #FFFFFF;
  font-weight: 800;
  font-size: 18px;
  margin-bottom: 8px;
}

.footer-tagline {
  font-size: 14px;
  color: rgba(255,255,255,0.6);
  max-width: 280px;
}

.footer-links {
  display: flex;
  gap: 48px;
}

.footer-col h4 {
  color: #FFFFFF;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 12px;
}

.footer-col a {
  display: block;
  color: rgba(255,255,255,0.7);
  font-size: 14px;
  margin-bottom: 8px;
  transition: color 0.2s;
}

.footer-col a:hover {
  color: #FFFFFF;
  text-decoration: none;
}

.footer-bottom {
  max-width: var(--max-width-wide);
  margin: 32px auto 0;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.15);
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: rgba(255,255,255,0.5);
}

.footer-bottom a {
  color: rgba(255,255,255,0.5);
}

.footer-bottom a:hover {
  color: #FFFFFF;
}

/* ========== RESPONSIVE ========== */

@media (max-width: 768px) {
  .hero h1 {
    font-size: 32px;
  }

  .hero .subtitle {
    font-size: 17px;
  }

  .features-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .about-intro {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .footer-inner {
    flex-direction: column;
    gap: 32px;
  }

  .footer-links {
    gap: 32px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }

  .nav-links {
    display: none;
  }

  .nav-hamburger {
    display: block;
  }

  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--divider);
    padding: 16px 24px;
    gap: 16px;
    box-shadow: 0 4px 12px var(--shadow);
  }

  .section {
    padding: 48px 20px;
  }

  .legal-content {
    padding: 32px 20px 64px;
  }
}
