:root {
  --bg: #ffffff;
  --bg-secondary: #fff7ed;
  --surface: rgba(255,255,255,0.96);
  --surface-solid: #ffffff;
  --surface-dark: rgba(30,10,0,0.92);
  --text: #1c0a00;
  --text-soft: #6b7280;
  --heading: #1c0a00;
  --primary: #ea580c;
  --primary-strong: #c2410c;
  --accent: #d97706;
  --accent-warm: #f59e0b;
  --success: #10b981;
  --danger: #ef4444;
  --border: rgba(234,88,12,0.15);
  --shadow: 0 10px 30px rgba(234,88,12,0.08);
  --shadow-lg: 0 20px 50px rgba(234,88,12,0.14);
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 10px;
  --container: min(1280px, calc(100vw - 40px));
  --font-base: 18px;
  --line: 1.6;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
  font-size: var(--font-base);
  line-height: var(--line);
  color: var(--text);
  background: linear-gradient(135deg, #ffffff 0%, #fff7ed 100%);
  min-height: 100vh;
  overflow-x: hidden;
}

body.large-text { --font-base: 20px; }

body.high-contrast {
  --bg: #1a0800; --bg-secondary: #2a1000; --surface: rgba(20,6,0,0.94);
  --text: #fff5ee; --text-soft: #ddb899; --heading: #ffffff;
  --border: rgba(255,255,255,0.16); --shadow: 0 18px 44px rgba(0,0,0,0.5);
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; cursor: pointer; }
input { color: var(--heading); }
main, header, footer { position: relative; z-index: 1; }

.container { width: var(--container); margin-inline: auto; }

/* ── Header ── */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 2px 16px rgba(234,88,12,0.07);
}
.topbar { display: flex; align-items: center; gap: 24px; padding: 14px 0; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 12px; font-weight: 700; color: var(--heading); }
.brand-icon { font-size: 36px; line-height: 1; }
.brand strong { display: block; font-size: 1.15rem; color: var(--primary); }
.brand span { font-size: 0.78rem; color: var(--text-soft); font-weight: 400; }
.site-nav { display: flex; gap: 6px; margin-left: auto; }
.site-nav a { padding: 6px 14px; border-radius: 8px; font-size: 0.9rem; color: var(--text-soft); transition: all .2s; font-weight: 500; }
.site-nav a:hover, .site-nav a.active { background: var(--primary); color: #fff; }
.menu-toggle { display: none; padding: 8px 14px; background: transparent; border: 1px solid var(--border); border-radius: 8px; font-size: 0.85rem; }
.accessibility-tools { display: flex; gap: 8px; }
.accessibility-tools button { padding: 6px 12px; background: var(--bg-secondary); border: 1px solid var(--border); border-radius: 8px; font-size: 0.8rem; color: var(--text-soft); transition: all .2s; }
.accessibility-tools button:hover { background: var(--primary); color: #fff; border-color: var(--primary); }

/* ── Hero ── */
.hero-home {
  background: linear-gradient(135deg, var(--primary-strong) 0%, var(--accent) 100%);
  color: #fff; padding: 90px 0 80px; text-align: center;
}
.hero-content h1 { font-size: clamp(2rem, 5vw, 3.4rem); font-weight: 800; margin: 0 0 20px; line-height: 1.15; }
.hero-subtitle { font-size: clamp(1rem, 2vw, 1.2rem); opacity: .88; max-width: 600px; margin: 0 auto 36px; }
.hero-actions-primary { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-bottom: 28px; }
.scroll-hint { font-size: 0.85rem; opacity: .6; letter-spacing: 1px; margin: 0; }

/* ── Buttons ── */
.button {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 24px; border-radius: var(--radius-sm);
  font-weight: 600; font-size: 1rem; border: none;
  background: var(--primary); color: #fff;
  transition: transform .15s, box-shadow .15s;
  box-shadow: 0 4px 14px rgba(234,88,12,0.35);
  cursor: pointer; text-decoration: none;
}
.button:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(234,88,12,0.45); }
.button-large { padding: 14px 32px; font-size: 1.05rem; }
.button-secondary { background: rgba(255,255,255,0.18); color: #fff; border: 1.5px solid rgba(255,255,255,0.5); box-shadow: none; }
.button-secondary:hover { background: rgba(255,255,255,0.28); box-shadow: none; }
.button-light { background: #fff; color: var(--primary); box-shadow: 0 4px 14px rgba(0,0,0,0.12); }
.button-light:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,0.18); }

/* ── Sections ── */
.section { padding: 72px 0; }
.section-features { background: var(--bg-secondary); }
.section-title { text-align: center; font-size: clamp(1.6rem, 3vw, 2.4rem); font-weight: 800; margin: 0 0 12px; color: var(--heading); }
.section-subtitle { text-align: center; color: var(--text-soft); margin: 0 0 48px; font-size: 1.05rem; }

.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.feature-card {
  background: var(--surface); border-radius: var(--radius-md);
  padding: 28px; border: 1px solid var(--border);
  box-shadow: var(--shadow); transition: transform .2s, box-shadow .2s;
}
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.feature-icon { font-size: 2.2rem; margin-bottom: 14px; }
.feature-card h3 { font-size: 1.1rem; font-weight: 700; margin: 0 0 10px; color: var(--heading); }
.feature-card p { color: var(--text-soft); margin: 0; font-size: 0.95rem; }

/* ── Search ── */
.section-search { background: #fff; }
.search-panel { max-width: 680px; margin: 0 auto; text-align: center; }
.search-panel h2 { font-size: 1.9rem; font-weight: 800; margin: 0 0 10px; }
.search-panel p { color: var(--text-soft); margin: 0 0 32px; }
.search-bar-large { width: 100%; }
.search-input-group { display: flex; gap: 0; border-radius: var(--radius-md); overflow: hidden; border: 2px solid var(--primary); box-shadow: 0 4px 20px rgba(234,88,12,0.15); }
.search-input-group input { flex: 1; padding: 14px 18px; border: none; outline: none; font-size: 1rem; background: #fff; }
.search-input-group button { padding: 14px 20px; background: var(--primary); color: #fff; border: none; font-size: 1.1rem; cursor: pointer; transition: background .2s; }
.search-input-group button:hover { background: var(--primary-strong); }
.popular-cities-section { margin-top: 28px; }
.popular-label { font-size: 0.8rem; letter-spacing: 1.5px; color: var(--text-soft); font-weight: 600; margin: 0 0 12px; }
.popular-cities { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.city-chip { padding: 6px 14px; background: var(--bg-secondary); border: 1px solid var(--border); border-radius: 50px; font-size: 0.85rem; color: var(--text); cursor: pointer; transition: all .2s; }
.city-chip:hover { background: var(--primary); color: #fff; border-color: var(--primary); }

/* ── Steps ── */
.section-how-it-works { background: var(--bg-secondary); }
.steps-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; }
.step-card { background: var(--surface); border-radius: var(--radius-md); padding: 32px 24px; text-align: center; border: 1px solid var(--border); box-shadow: var(--shadow); }
.step-number { font-size: 2.5rem; font-weight: 900; color: var(--primary); opacity: .25; margin-bottom: 16px; }
.step-card h3 { font-size: 1.1rem; font-weight: 700; margin: 0 0 10px; color: var(--heading); }
.step-card p { color: var(--text-soft); margin: 0; font-size: 0.95rem; }

/* ── Featured recipes grid ── */
.section-news { background: #fff; }
.news-grid-home { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.news-card-home {
  background: var(--bg-secondary); border-radius: var(--radius-md);
  padding: 24px; border: 1px solid var(--border); box-shadow: var(--shadow);
  transition: transform .2s;
}
.news-card-home:hover { transform: translateY(-3px); }
.news-card-label { font-size: 0.78rem; font-weight: 700; letter-spacing: 1px; color: var(--primary); margin-bottom: 10px; }
.news-card-home h3 { font-size: 1rem; font-weight: 700; margin: 0 0 10px; color: var(--heading); }
.news-card-home p { color: var(--text-soft); font-size: 0.9rem; margin: 0 0 14px; }
.read-link { font-size: 0.88rem; font-weight: 600; color: var(--primary); }
.read-link:hover { text-decoration: underline; }

/* ── CTA ── */
.section-cta {
  background: linear-gradient(135deg, var(--primary-strong) 0%, var(--accent) 100%);
  color: #fff; text-align: center; padding: 80px 0;
}
.cta-content h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 800; margin: 0 0 12px; }
.cta-content p { font-size: 1.1rem; opacity: .85; margin: 0 0 32px; }

/* ── Footer ── */
.site-footer { background: var(--heading); color: rgba(255,255,255,.75); padding: 48px 0 24px; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 32px; margin-bottom: 32px; }
.site-footer h2 { color: #fff; font-size: 1.2rem; margin: 0 0 10px; }
.site-footer h3 { color: rgba(255,255,255,.9); font-size: 0.95rem; margin: 0 0 8px; }
.site-footer p { font-size: 0.88rem; margin: 0; line-height: 1.6; }
.footer-note { text-align: center; font-size: 0.8rem; color: rgba(255,255,255,.4); border-top: 1px solid rgba(255,255,255,.08); padding-top: 20px; margin: 0; }

/* ── Responsive ── */
@media (max-width: 768px) {
  .menu-toggle { display: block; margin-left: auto; }
  .site-nav { display: none; width: 100%; flex-direction: column; gap: 4px; order: 9; }
  .site-nav.open { display: flex; }
  .accessibility-tools { order: 8; }
  .hero-home { padding: 60px 0 50px; }
  .section { padding: 50px 0; }
}
