/* ==========================================================================
   YesChef marketing site — global styles
   Palette: Plum #4A1942 / Plum-dark #2D0F28 / Cream #F5F0E8 /
            Charcoal #2C2C2C / Gold #C9A84C / White #FFFFFF
   ========================================================================== */

:root {
  --plum: #4A1942;
  --plum-dark: #2D0F28;
  --cream: #F5F0E8;
  --charcoal: #2C2C2C;
  --gold: #C9A84C;
  --white: #FFFFFF;
  --max-width: 1140px;
  --radius: 12px;
  --shadow: 0 6px 24px rgba(45, 15, 40, 0.10);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background-color: var(--cream);
  color: var(--charcoal);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: 'Playfair Display', Georgia, serif;
  color: var(--plum);
  line-height: 1.2;
  font-weight: 700;
}

a { color: var(--plum); text-decoration: none; transition: color 0.2s ease; }
a:hover { color: var(--gold); }

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

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

.section { padding: 72px 0; }

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

/* ---- Buttons --------------------------------------------------------- */
.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: var(--radius);
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform 0.15s ease, background-color 0.2s ease,
              color 0.2s ease, border-color 0.2s ease;
  text-align: center;
}
.btn:hover { transform: translateY(-2px); }

.btn-gold {
  background-color: var(--gold);
  color: var(--plum-dark);
  border-color: var(--gold);
}
.btn-gold:hover { background-color: #d8bb66; color: var(--plum-dark); }

.btn-plum {
  background-color: var(--plum);
  color: var(--white);
  border-color: var(--plum);
}
.btn-plum:hover { background-color: var(--gold); color: var(--plum-dark); border-color: var(--gold); }

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

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

/* ---- Sticky navigation ---------------------------------------------- */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: var(--plum);
  box-shadow: 0 2px 12px rgba(45, 15, 40, 0.25);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 12px 24px;
}
.nav-logo { display: flex; align-items: center; }
.nav-logo img { height: 40px; width: auto; }

.nav-links {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav-links a {
  color: var(--white);
  font-weight: 500;
  font-size: 0.98rem;
  padding: 4px 0;
  border-bottom: 2px solid transparent;
}
.nav-links a:hover,
.nav-links a.active { color: var(--gold); border-bottom-color: var(--gold); }

.nav-links .nav-cta {
  background-color: var(--gold);
  color: var(--plum-dark);
  padding: 8px 18px;
  border-radius: var(--radius);
  border-bottom: none;
}
.nav-links .nav-cta:hover { background-color: var(--white); color: var(--plum); }

/* Hamburger toggle (CSS-only via hidden checkbox) */
.nav-toggle { display: none; }
.nav-toggle-label {
  display: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle-label span,
.nav-toggle-label span::before,
.nav-toggle-label span::after {
  display: block;
  background: var(--white);
  height: 3px;
  width: 26px;
  border-radius: 3px;
  position: relative;
  transition: all 0.25s ease;
}
.nav-toggle-label span::before,
.nav-toggle-label span::after { content: ''; position: absolute; }
.nav-toggle-label span::before { top: -8px; }
.nav-toggle-label span::after { top: 8px; }

/* ---- Hero ------------------------------------------------------------ */
.hero {
  background-color: var(--plum);
  color: var(--white);
  text-align: center;
  padding: 80px 24px 88px;
}
.hero-logo { max-width: 420px; width: 80%; margin: 0 auto 28px; }
.hero h1 {
  color: var(--white);
  font-size: clamp(1.9rem, 5vw, 3rem);
  margin-bottom: 16px;
}
.hero p.subtext {
  max-width: 680px;
  margin: 0 auto 36px;
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  color: rgba(255, 255, 255, 0.88);
}
.hero-ctas {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ---- Section headings ------------------------------------------------ */
.section-heading {
  text-align: center;
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  margin-bottom: 12px;
}
.section-sub {
  text-align: center;
  max-width: 620px;
  margin: 0 auto 48px;
  color: var(--charcoal);
  opacity: 0.85;
}

/* ---- Feature grid ---------------------------------------------------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.feature-card {
  background-color: var(--white);
  border-radius: var(--radius);
  padding: 28px 24px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(74, 25, 66, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(45, 15, 40, 0.16);
}
.feature-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background-color: var(--plum);
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 18px;
}
.feature-card h3 { font-size: 1.25rem; margin-bottom: 8px; }
.feature-card p { color: var(--charcoal); opacity: 0.9; font-size: 0.97rem; }

/* ---- "Why" band (plum) ---------------------------------------------- */
.band-plum { background-color: var(--plum); color: var(--white); }
.band-plum h2 { color: var(--white); }
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 16px;
}
.why-col { text-align: center; }
.why-col h3 { color: var(--gold); font-size: 1.35rem; margin-bottom: 10px; }
.why-col p { color: rgba(255, 255, 255, 0.85); }

/* ---- Download CTA ---------------------------------------------------- */
.cta-band { text-align: center; }
.cta-band h2 { font-size: clamp(1.6rem, 4vw, 2.2rem); margin-bottom: 24px; }
.cta-note { margin-top: 16px; font-size: 0.9rem; opacity: 0.75; }

/* ---- Pricing --------------------------------------------------------- */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  max-width: 820px;
  margin: 0 auto;
  align-items: stretch;
}
.price-card {
  border-radius: 16px;
  padding: 36px 30px;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow);
}
.price-free {
  background-color: var(--cream);
  border: 2px solid var(--plum);
  color: var(--charcoal);
}
.price-premium {
  background-color: var(--plum);
  border: 2px solid var(--gold);
  color: var(--white);
  position: relative;
}
.price-label {
  display: inline-block;
  align-self: flex-start;
  font-weight: 700;
  letter-spacing: 0.08em;
  font-size: 0.8rem;
  padding: 5px 14px;
  border-radius: 20px;
  margin-bottom: 16px;
}
.price-free .price-label { background-color: var(--plum); color: var(--white); }
.price-premium .price-label { background-color: var(--gold); color: var(--plum-dark); }
.price-amount {
  font-family: 'Playfair Display', serif;
  font-size: 2.6rem;
  font-weight: 700;
  margin-bottom: 4px;
}
.price-free .price-amount { color: var(--plum); }
.price-premium .price-amount { color: var(--white); }
.price-period { font-size: 1rem; opacity: 0.7; font-weight: 400; }
.price-features { list-style: none; margin: 24px 0 28px; flex-grow: 1; }
.price-features li { padding: 8px 0; padding-left: 28px; position: relative; }
.price-features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  font-weight: 700;
}
.price-free .price-features li::before { color: var(--plum); }
.price-premium .price-features li::before { color: var(--gold); }
.price-card .btn { width: 100%; }
.price-note { text-align: center; margin-top: 28px; font-size: 0.88rem; opacity: 0.75; }

/* ---- Legal / content pages ------------------------------------------ */
.page-header {
  background-color: var(--plum);
  color: var(--white);
  text-align: center;
  padding: 56px 24px;
}
.page-header h1 { color: var(--white); font-size: clamp(1.8rem, 4vw, 2.6rem); }
.page-header p { color: rgba(255, 255, 255, 0.85); margin-top: 10px; }

.content { max-width: 820px; }
.content h2 {
  font-size: 1.5rem;
  margin: 36px 0 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid rgba(74, 25, 66, 0.15);
}
.content h2:first-child { margin-top: 0; }
.content p, .content li { margin-bottom: 12px; }
.content ul { padding-left: 22px; margin-bottom: 16px; }
.content .updated { font-style: italic; opacity: 0.7; margin-bottom: 28px; }

/* ---- Contact form ---------------------------------------------------- */
.contact-wrap { max-width: 620px; margin: 0 auto; }
.contact-form { display: flex; flex-direction: column; gap: 16px; }
.contact-form label { font-weight: 600; margin-bottom: -8px; }
.contact-form input,
.contact-form textarea {
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  padding: 12px 14px;
  border: 1px solid rgba(74, 25, 66, 0.25);
  border-radius: var(--radius);
  background-color: var(--white);
  color: var(--charcoal);
}
.contact-form input:focus,
.contact-form textarea:focus { outline: 2px solid var(--gold); border-color: var(--gold); }
.contact-form textarea { min-height: 140px; resize: vertical; }
.contact-direct { text-align: center; margin-top: 28px; }

/* ---- Footer ---------------------------------------------------------- */
.footer {
  background-color: var(--plum);
  color: var(--white);
  padding: 48px 24px 28px;
}
.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 28px;
}
.footer-brand img { height: 44px; margin-bottom: 12px; }
.footer-brand p { color: rgba(255, 255, 255, 0.7); max-width: 280px; font-size: 0.92rem; }
.footer-links h4 { color: var(--gold); font-size: 1rem; margin-bottom: 12px; }
.footer-links ul { list-style: none; }
.footer-links li { margin-bottom: 8px; }
.footer-links a { color: rgba(255, 255, 255, 0.85); font-size: 0.95rem; }
.footer-links a:hover { color: var(--gold); }
.footer-bottom {
  text-align: center;
  margin-top: 36px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.88rem;
}

/* ---- Responsive ------------------------------------------------------ */
@media (min-width: 768px) {
  .feature-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 767px) {
  .section { padding: 52px 0; }
  .why-grid { grid-template-columns: 1fr; gap: 28px; }
  .pricing-grid { grid-template-columns: 1fr; }

  /* Mobile nav */
  .nav-toggle-label { display: block; }
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background-color: var(--plum-dark);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }
  .nav-links li { border-top: 1px solid rgba(255, 255, 255, 0.08); }
  .nav-links a {
    display: block;
    padding: 16px 24px;
    border-bottom: none;
  }
  .nav-links .nav-cta { border-radius: 0; text-align: center; }
  .nav-toggle:checked ~ .nav-links { max-height: 400px; }
}
