/* =========================================
   SousChef — Static Site Stylesheet
   ========================================= */

@font-face {
  font-family: 'Pangaia';
  src: url('fonts/Pangaia.woff2') format('woff2');
  font-weight: bold;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Satoshi';
  src: url('fonts/Satoshi.woff2') format('woff2');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

/* ---- Reset & Base ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --cream:   #f6f5f2;
  --beige:   #dcd8d1;
  --green:   #445a45;
  --green-light: #5a785c;
  --brown:   #2e271f;
  --footer:  #231d17;
  --white:   #ffffff;
  --gold:    #fbbc05;
  --radius:  12px;
  --font-head: 'Pangaia', Georgia, serif;
  --font-body: 'Satoshi', 'Open Sans', Arial, sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--brown);
  font-size: 17px;
  line-height: 1.65;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }

/* ---- Typography ---- */
h1, h2, h3, h4 {
  font-family: var(--font-head);
  line-height: 1.15;
  color: var(--brown);
}
h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); }
h3 { font-size: clamp(1.1rem, 2vw, 1.4rem); }

.eyebrow {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 0.5rem;
  display: block;
}

/* ---- Layout ---- */
.container {
  width: min(1100px, 92%);
  margin-inline: auto;
}

section { padding: 80px 0; }

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0.75rem 1.75rem;
  border-radius: 14px;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.15s;
  border: none;
}
.btn:hover { opacity: 0.92; transform: translateY(-3px) scale(1.04); }
.btn::after { content: '›'; margin-left: 0.4em; }

.btn-primary {
  background: var(--gold);
  color: var(--green);
}
.btn-outline {
  background: var(--gold);
  border: 2px solid var(--gold);
  color: var(--green);
}

/* ---- Header / Nav ---- */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--cream);
  border-bottom: 1px solid rgba(46,39,31,.08);
  padding: 0;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: 2rem;
}

.nav-logo img {
  height: 36px;
  width: auto;
  max-width: none;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--brown);
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--green); }

.nav-links .btn {
  padding: 0.5rem 1.25rem;
  font-size: 0.9rem;
}

.nav-lang {
  display: flex;
  gap: 0.4rem;
  align-items: center;
  font-size: 0.85rem;
  font-weight: 600;
}
.nav-lang a { color: var(--brown); opacity: 0.5; }
.nav-lang a.active { opacity: 1; color: var(--green); }
.nav-lang span { opacity: 0.3; }

/* ---- Language Switcher ---- */
.nav-links .lang-item {
  display: flex;
  align-items: center;
}

.lang-switcher {
  position: relative;
  flex-shrink: 0;
}
.lang-btn {
  background: none;
  border: 1.5px solid rgba(46,39,31,0.2);
  border-radius: 8px;
  color: var(--brown);
  padding: 0.3rem 0.65rem;
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 600;
  font-family: var(--font-body);
  display: flex;
  align-items: center;
  gap: 0.3rem;
  transition: border-color 0.2s;
  white-space: nowrap;
  line-height: 1;
}
.lang-btn::after { content: none; }
.lang-btn:hover { border-color: var(--green); }
.lang-dropdown {
  display: none;
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  background: var(--white);
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.13);
  list-style: none;
  padding: 0.4rem 0;
  min-width: 140px;
  z-index: 200;
}
.lang-switcher.open .lang-dropdown { display: block; }
.lang-dropdown li a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  color: var(--brown);
  font-size: 0.88rem;
  font-weight: 600;
  transition: background 0.15s;
}
.lang-dropdown li a:hover { background: var(--cream); }
.flag-icon { width: 20px; height: auto; border-radius: 2px; flex-shrink: 0; }

/* Mobile menu toggle */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}
.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--brown);
  border-radius: 2px;
  transition: all 0.3s;
}

/* ---- Hero ---- */
.hero {
  padding: 0;
  background: linear-gradient(135deg, var(--green-light) 0%, var(--green) 100%);
  overflow: hidden;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 3rem;
  min-height: 560px;
  padding: 60px 0;
}

.hero-text { max-width: 540px; }

.hero-text h1 { margin-bottom: 1.25rem; color: var(--white); }

.hero-text p {
  font-size: 1.1rem;
  color: var(--white);
  opacity: 0.85;
  margin-bottom: 2rem;
  max-width: 480px;
}

.hero-rating {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 2rem;
  color: var(--white);
}
.hero-rating .stars { color: var(--gold); font-size: 1rem; }

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: center;
}

.store-badge img {
  height: 66px;
  width: auto;
  transition: opacity 0.2s, transform 0.15s;
}
.store-badge:hover img { opacity: 0.85; transform: translateY(-1px); }

.hero-image {
  display: flex;
  justify-content: center;
  align-items: center;
}
.hero-image img {
  max-height: 580px;
  object-fit: contain;
  border-radius: var(--radius);
}

/* ---- Features ---- */
.features { background: linear-gradient(135deg, var(--cream) 0%, var(--beige) 100%); }

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
  margin-top: 3rem;
}

.feature-card {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.feature-card img {
  width: 90%;
  height: auto;
  margin: 0 auto;
  display: block;
  border-radius: var(--radius);
}

.feature-card h3 { margin-top: 0.25rem; font-size: clamp(1.6rem, 3.5vw, 2.4rem); }
.feature-card p { opacity: 0.8; font-size: 0.95rem; }

/* ---- Why Free ---- */
.why-free {
  background: linear-gradient(135deg, var(--green-light) 0%, var(--green) 100%);
  color: var(--white);
  text-align: center;
}
.why-free h2, .why-free p { color: var(--white); }
.why-free p {
  max-width: 640px;
  margin: 1rem auto 0;
  opacity: 0.9;
  font-size: 1.05rem;
}
.why-free--light {
  background: linear-gradient(135deg, var(--cream) 0%, var(--beige) 100%);
  color: var(--brown);
}
.why-free--light h2, .why-free--light p { color: var(--brown); }

/* ---- FAQ Preview ---- */
.faq-preview { background: linear-gradient(135deg, var(--cream) 0%, var(--beige) 100%); }

.faq-preview .faq-list {
  margin-top: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.faq-item {
  border-top: 1px solid rgba(46,39,31,.12);
}
.faq-item:last-child { border-bottom: 1px solid rgba(46,39,31,.12); }

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.1rem 0;
  cursor: pointer;
  font-weight: 600;
  font-size: 1rem;
  gap: 1rem;
  user-select: none;
}

.faq-question::after {
  content: '+';
  font-size: 1.4rem;
  font-weight: 300;
  color: var(--green);
  flex-shrink: 0;
  transition: transform 0.25s;
}
.faq-item.open .faq-question::after {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.25s;
  font-size: 0.95rem;
  opacity: 0.85;
}
.faq-item.open .faq-answer {
  max-height: 500px;
  padding-bottom: 1.25rem;
}

.faq-more {
  margin-top: 2rem;
  text-align: center;
}

/* ---- Reviews ---- */
.reviews { background: linear-gradient(135deg, var(--cream) 0%, var(--beige) 100%); }

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.review-card {
  background: var(--cream);
  border-radius: var(--radius);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.review-stars { color: var(--gold); font-size: 1rem; letter-spacing: 1px; }
.review-text { font-size: 0.95rem; font-style: italic; opacity: 0.85; }
.review-author { font-weight: 700; font-size: 0.9rem; }

/* ---- CTA Section ---- */
.cta-section {
  text-align: center;
  background: linear-gradient(135deg, var(--cream) 0%, var(--beige) 100%);
}
.cta-section h2 { margin-bottom: 1rem; }
.cta-section p { opacity: 0.8; max-width: 500px; margin: 0 auto 2rem; }
.cta-badges {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ---- Download Page ---- */
.download-hero {
  text-align: center;
  padding: 80px 0;
}
.download-hero h1 { margin-bottom: 1rem; }
.download-hero p { max-width: 520px; margin: 0 auto 2.5rem; opacity: 0.8; font-size: 1.05rem; }

.download-options {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 4rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.qr-block {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}
.qr-block img { width: 180px; border-radius: 12px; }
.qr-block p { font-size: 0.9rem; opacity: 0.7; max-width: 180px; }

.store-buttons {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  justify-content: center;
}
.store-buttons .store-badge img { height: 81px; }

/* ---- About Page ---- */
.about-hero { padding-bottom: 0; }
.about-hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.about-hero-text h1 { margin-bottom: 1.25rem; }
.about-hero-text p { opacity: 0.8; font-size: 1.05rem; }
.about-hero-image img { border-radius: var(--radius); width: 100%; }

.about-stats {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}
.stat-badge {
  background: var(--green);
  color: var(--white);
  border-radius: 50px;
  padding: 0.4rem 1rem;
  font-size: 0.9rem;
  font-weight: 600;
}

.about-story { max-width: 760px; margin-inline: auto; }
.about-story p { margin-bottom: 1.25rem; opacity: 0.85; font-size: 1.05rem; }
.about-story .highlight {
  background: var(--green);
  color: var(--white);
  border-radius: var(--radius);
  padding: 1.5rem 2rem;
  margin: 2rem 0;
  font-size: 1rem;
  opacity: 1;
}
.about-story .highlight strong { display: block; font-size: 1.1rem; margin-bottom: 0.5rem; }

.team-image { display: block; width: 100%; max-width: 700px; margin: 3rem auto 0; border-radius: var(--radius); }

/* ---- Advertisers ---- */
.adv-hero { text-align: center; padding-bottom: 40px; }
.adv-hero p { max-width: 640px; margin: 1rem auto 0; opacity: 0.8; font-size: 1.05rem; }

.adv-packages {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}

.adv-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.adv-card img { border-radius: 8px; width: 90%; margin: 0 auto; display: block; }
.adv-card h3 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); }
.adv-card ul { padding-left: 1.25rem; display: flex; flex-direction: column; gap: 0.4rem; }
.adv-card ul li { font-size: 0.92rem; opacity: 0.85; }
.adv-card .btn { margin-top: auto; align-self: flex-start; }

/* ---- Contact ---- */
.contact-intro { max-width: 560px; }
.contact-intro h1 { margin-bottom: 1rem; }
.contact-intro p { opacity: 0.8; font-size: 1.05rem; }

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 4rem;
  align-items: flex-start;
}

.contact-info { display: flex; flex-direction: column; gap: 1.5rem; }
.contact-info h2 { margin-bottom: 0.25rem; }
.contact-info p { opacity: 0.8; }
.contact-info a { color: var(--green); font-weight: 600; }

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

.form-group { display: flex; flex-direction: column; gap: 0.4rem; }
.form-group label { font-size: 0.88rem; font-weight: 600; opacity: 0.75; }
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid rgba(46,39,31,.15);
  border-radius: 14px;
  font-family: var(--font-body);
  font-size: 1rem;
  background: var(--cream);
  color: var(--brown);
  transition: border-color 0.2s;
  outline: none;
}
.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--green);
}
.form-group textarea { resize: vertical; min-height: 130px; }
.form-group input::placeholder,
.form-group textarea::placeholder { opacity: 0.45; }

.form-submit .btn { width: 100%; text-align: center; padding: 0.9rem; }

.form-success {
  display: none;
  text-align: center;
  padding: 2rem;
  color: var(--green);
  font-weight: 600;
}

/* ---- Newsletter ---- */
.newsletter-section { text-align: center; }
.newsletter-section h1 { margin-bottom: 1rem; }
.newsletter-section p { max-width: 520px; margin: 0 auto 2rem; opacity: 0.8; font-size: 1.05rem; }

.newsletter-form {
  max-width: 480px;
  margin: 0 auto;
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.newsletter-form input[type="email"] {
  flex: 1;
  min-width: 220px;
  padding: 0.8rem 1.25rem;
  border: 1.5px solid rgba(46,39,31,.15);
  border-radius: 14px;
  font-family: var(--font-body);
  font-size: 1rem;
  background: var(--white);
  color: var(--brown);
  outline: none;
}
.newsletter-form input[type="email"]:focus { border-color: var(--green); }

/* ---- Page Header (inner pages) ---- */
.page-header {
  padding: 60px 0 20px;
  text-align: center;
}
.page-header h1 { margin-bottom: 0.75rem; }
.page-header p { max-width: 560px; margin: 0 auto; opacity: 0.8; font-size: 1.05rem; }

/* ---- Footer ---- */
footer {
  background: linear-gradient(135deg, #2e271f 0%, #171410 100%);
  color: rgba(246,245,242,0.85);
  padding: 60px 0 30px;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.footer-brand img { height: 32px; margin-bottom: 0.75rem; filter: brightness(10); }
.footer-brand p { font-size: 0.9rem; opacity: 0.65; max-width: 220px; margin-bottom: 1rem; }

.footer-col h4 {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.55;
  margin-bottom: 1rem;
  color: var(--cream);
}

.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 0.3rem; }
.footer-col ul li a {
  font-size: 0.92rem;
  opacity: 0.75;
  transition: opacity 0.2s;
}
.footer-col ul li a:hover { opacity: 1; }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1.5rem;
  font-size: 0.82rem;
  opacity: 0.45;
  flex-wrap: wrap;
  gap: 1rem;
}

/* ---- Utilities ---- */
.text-center { text-align: center; }
.text-green { color: var(--green); }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

/* ---- Responsive ---- */
@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; min-height: auto; }
  .hero-text { max-width: 100%; }
  .hero-text p { max-width: 100%; }
  .hero-rating { justify-content: center; }
  .hero-actions { justify-content: center; }
  .hero-image { order: -1; }
  .hero-image img { max-height: 320px; }

  .features-grid { grid-template-columns: 1fr; max-width: 540px; margin-inline: auto; }
  .feature-card { text-align: center; }
  .feature-card img { width: 75%; }

  .reviews-grid { grid-template-columns: repeat(2, 1fr); }

  .about-hero-inner { grid-template-columns: 1fr; }
  .about-hero-image { order: -1; }

  .adv-packages { grid-template-columns: 1fr; max-width: 480px; margin-inline: auto; }

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

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

@media (max-width: 860px) {
  .nav-links { display: none; flex-direction: column; position: absolute; top: 68px; left: 0; right: 0; background: var(--cream); padding: 1.5rem; border-bottom: 1px solid rgba(46,39,31,.1); gap: 1rem; box-shadow: 0 8px 24px rgba(0,0,0,.08); }
  .nav-links.open { display: flex; }
  .menu-toggle { display: flex; }
}

@media (max-width: 640px) {
  section { padding: 56px 0; }

  .hero-inner { padding: 40px 0; }
  h1 { font-size: 2rem; }

  .form-row { grid-template-columns: 1fr; }

  .reviews-grid { grid-template-columns: 1fr; }

  .footer-inner { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }

  .download-options { flex-direction: column; align-items: center; }
}
