/* ═══════════════════════════════════════════════
   RASOI — DoorDash-Inspired Design System
   ═══════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

/* ── Variables ── */
:root {
  --red:       #FF3008;
  --red-dark:  #D9280A;
  --red-light: #FFF0EE;
  --black:     #191919;
  --gray-900:  #2D2D2D;
  --gray-700:  #555555;
  --gray-500:  #8A8A8A;
  --gray-300:  #D9D9D9;
  --gray-100:  #F6F6F6;
  --white:     #FFFFFF;
  --radius-sm: 8px;
  --radius:    14px;
  --radius-lg: 20px;
  --shadow-sm: 0 1px 4px rgba(0,0,0,.08);
  --shadow:    0 4px 16px rgba(0,0,0,.10);
  --shadow-lg: 0 8px 32px rgba(0,0,0,.14);
  --font:      'Plus Jakarta Sans', sans-serif;
  --nav-h:     64px;
  --max-w:     1200px;
  --transition: .2s ease;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  color: var(--black);
  background: var(--white);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { display: block; width: 100%; height: 100%; object-fit: cover; }
a  { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

/* ══════════════════════════════════════════
   NAVBAR
══════════════════════════════════════════ */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--gray-300);
  box-shadow: var(--shadow-sm);
}

.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-logo {
  font-size: 22px;
  font-weight: 800;
  color: var(--red);
  letter-spacing: -0.5px;
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  flex: 1;
}

.nav-links a {
  font-size: 14px;
  font-weight: 600;
  color: var(--gray-700);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  transition: background var(--transition), color var(--transition);
  white-space: nowrap;
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--red);
  background: var(--red-light);
}

/* hamburger: pure CSS checkbox trick */
#menu-toggle { display: none; position: absolute; }

.hamburger-label {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 6px;
  margin-left: auto;
}
.hamburger-label span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--black);
  border-radius: 2px;
}

/* mobile drawer */
.nav-drawer {
  display: none;
  flex-direction: column;
  background: var(--white);
  border-top: 1px solid var(--gray-100);
  padding: 12px 24px 20px;
  gap: 2px;
}
.nav-drawer a {
  font-size: 15px;
  font-weight: 600;
  color: var(--gray-700);
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  transition: background var(--transition), color var(--transition);
}
.nav-drawer a:hover,
.nav-drawer a.active {
  color: var(--red);
  background: var(--red-light);
}

#menu-toggle:checked ~ .nav-drawer { display: flex; }

/* ══════════════════════════════════════════
   HERO
══════════════════════════════════════════ */
.hero {
  background: linear-gradient(135deg, #FF3008 0%, #FF6B00 100%);
  padding: 72px 24px 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before,
.hero::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  background: rgba(255,255,255,.07);
  pointer-events: none;
}
.hero::before { width: 480px; height: 480px; top: -200px; right: -120px; }
.hero::after  { width: 320px; height: 320px; bottom: -140px; left: -80px; }

.hero-eyebrow {
  display: inline-block;
  background: rgba(255,255,255,.2);
  color: var(--white);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .8px;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 100px;
  margin-bottom: 18px;
}

.hero h1 {
  font-size: clamp(32px, 5vw, 54px);
  font-weight: 800;
  color: var(--white);
  letter-spacing: -1.5px;
  line-height: 1.1;
  margin-bottom: 16px;
}
.hero h1 em {
  font-style: normal;
  text-decoration: underline;
  text-decoration-color: rgba(255,255,255,.45);
  text-underline-offset: 5px;
}

.hero-sub {
  color: rgba(255,255,255,.85);
  font-size: 16px;
  max-width: 540px;
  margin: 0 auto 32px;
  line-height: 1.6;
}

/* Search bar */
.search-wrap {
  display: flex;
  max-width: 480px;
  margin: 0 auto;
  background: var(--white);
  border-radius: 100px;
  box-shadow: 0 8px 24px rgba(0,0,0,.2);
  overflow: hidden;
}
.search-wrap input {
  flex: 1;
  border: none;
  outline: none;
  padding: 14px 20px;
  font-family: var(--font);
  font-size: 15px;
  color: var(--black);
  background: transparent;
}
.search-wrap button {
  background: var(--black);
  color: var(--white);
  font-size: 14px;
  font-weight: 700;
  padding: 0 24px;
  border-radius: 0 100px 100px 0;
  transition: background var(--transition);
  flex-shrink: 0;
}
.search-wrap button:hover { background: var(--gray-900); }

/* ══════════════════════════════════════════
   CONTAINER / LAYOUT
══════════════════════════════════════════ */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 40px 24px 64px;
}

/* ── Section headers ── */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 40px 0 20px;
}
.section-header h2 {
  font-size: 20px;
  font-weight: 800;
  color: var(--black);
  letter-spacing: -0.3px;
}

/* ── Intro banner ── */
.intro-card {
  background: var(--red-light);
  border-left: 4px solid var(--red);
  border-radius: var(--radius);
  padding: 20px 24px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 8px;
}
.intro-glyph {
  font-size: 32px;
  line-height: 1;
  flex-shrink: 0;
  margin-top: 2px;
}
.intro-card h2 {
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 6px;
  color: var(--black);
}
.intro-card p {
  font-size: 14px;
  color: var(--gray-700);
  line-height: 1.6;
}

/* ── Ruled label ── */
.ruled-label {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 36px 0 18px;
  font-size: 18px;
  font-weight: 800;
  color: var(--black);
  letter-spacing: -0.3px;
}
.ruled-label::after {
  content: '';
  flex: 1;
  height: 2px;
  background: var(--gray-100);
  border-radius: 2px;
}

/* ── Category pills ── */
.cat-strip {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}
.cat-pill {
  background: var(--gray-100);
  color: var(--gray-700);
  font-size: 13px;
  font-weight: 700;
  padding: 8px 18px;
  border-radius: 100px;
  border: 2px solid transparent;
  transition: all var(--transition);
}
.cat-pill:hover  { background: var(--red-light); color: var(--red); border-color: var(--red); }
.cat-pill.active { background: var(--red); color: var(--white); border-color: var(--red); }

/* ══════════════════════════════════════════
   RECIPE CARDS GRID
══════════════════════════════════════════ */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}

.recipe-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform .22s ease, box-shadow .22s ease;
  display: flex;
  flex-direction: column;
}
.recipe-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.card-img {
  position: relative;
  height: 190px;
  flex-shrink: 0;
}

.card-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--white);
  color: var(--black);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .5px;
  padding: 4px 10px;
  border-radius: 100px;
  box-shadow: var(--shadow-sm);
}

.card-body {
  padding: 16px 18px 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.card-body h3 {
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.2px;
  color: var(--black);
  line-height: 1.25;
}
.card-desc {
  font-size: 13px;
  color: var(--gray-700);
  line-height: 1.55;
  flex: 1;
}
.meta-row {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 2px;
}
.meta-pill {
  font-size: 11px;
  font-weight: 700;
  color: var(--gray-700);
  background: var(--gray-100);
  border-radius: 100px;
  padding: 3px 10px;
}

.btn {
  display: inline-block;
  background: var(--red);
  color: var(--white);
  font-size: 13px;
  font-weight: 700;
  padding: 10px 20px;
  border-radius: 100px;
  text-align: center;
  transition: background var(--transition);
  margin-top: 6px;
}
.btn:hover { background: var(--red-dark); color: var(--white); }

/* ══════════════════════════════════════════
   RECIPE PAGE — BANNER
══════════════════════════════════════════ */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--gray-700);
  font-size: 14px;
  font-weight: 600;
  padding: 14px 24px;
  transition: color var(--transition);
}
.back-link:hover { color: var(--red); }

.recipe-banner {
  position: relative;
  width: 100%;
  height: clamp(260px, 40vw, 440px);
  overflow: hidden;
}
.recipe-banner img { object-position: center 40%; }

.banner-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.72) 0%, rgba(0,0,0,.12) 60%, transparent 100%);
}

.banner-title {
  position: absolute;
  bottom: 28px;
  left: 32px;
  right: 32px;
}
.banner-title h1 {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 800;
  color: var(--white);
  letter-spacing: -1px;
  margin-bottom: 12px;
  text-shadow: 0 2px 8px rgba(0,0,0,.4);
}
.banner-title .meta-row .meta-pill {
  background: rgba(255,255,255,.18);
  color: var(--white);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,.25);
}

/* ── Stats bar ── */
.stats-bar {
  background: var(--white);
  border-bottom: 1px solid var(--gray-100);
  box-shadow: var(--shadow-sm);
}
.stats-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
}
.stat {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 16px 12px;
  border-right: 1px solid var(--gray-100);
}
.stat:last-child { border-right: none; }
.stat-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .6px;
  color: var(--gray-500);
  margin-bottom: 4px;
}
.stat-value {
  font-size: 15px;
  font-weight: 800;
  color: var(--black);
}

/* ══════════════════════════════════════════
   RECIPE PAGE — BODY
══════════════════════════════════════════ */
.recipe-body {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 40px 24px 64px;
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 32px;
  align-items: start;
}

.sidebar-card {
  background: var(--white);
  border: 1.5px solid var(--gray-300);
  border-radius: var(--radius-lg);
  padding: 24px;
  position: sticky;
  top: calc(var(--nav-h) + 16px);
}
.sidebar-card h3 {
  font-size: 16px;
  font-weight: 800;
  color: var(--black);
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--red);
}

.ing-list { display: flex; flex-direction: column; gap: 10px; }
.ing-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13.5px;
  color: var(--gray-900);
  line-height: 1.45;
}
.ing-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--red);
  flex-shrink: 0;
  margin-top: 5px;
}

.instructions-section h3 {
  font-size: 20px;
  font-weight: 800;
  color: var(--black);
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--gray-300);
}

.step {
  display: flex;
  gap: 18px;
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--gray-100);
}
.step:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }

.step-n {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--red);
  color: var(--white);
  font-size: 14px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}

.step p {
  font-size: 14.5px;
  color: var(--gray-900);
  line-height: 1.65;
}
.step p strong { color: var(--black); font-weight: 700; }

/* ══════════════════════════════════════════
   FOOTER
══════════════════════════════════════════ */
footer {
  background: var(--black);
  color: rgba(255,255,255,.7);
  padding: 40px 24px;
}
.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}
.footer-logo {
  font-size: 24px;
  font-weight: 800;
  color: var(--red);
  margin-bottom: 20px;
  letter-spacing: -0.5px;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  margin-bottom: 24px;
}
.footer-nav a {
  font-size: 13px;
  font-weight: 600;
  color: rgba(255,255,255,.6);
  transition: color var(--transition);
}
.footer-nav a:hover { color: var(--white); }
.footer-rule { height: 1px; background: rgba(255,255,255,.1); margin-bottom: 20px; }
.footer-copy {
  font-size: 12.5px;
  color: rgba(255,255,255,.4);
  line-height: 1.7;
}
.footer-copy a { color: rgba(255,255,255,.6); text-decoration: underline; }
.footer-copy a:hover { color: var(--white); }

/* ══════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════ */
@media (max-width: 900px) {
  .recipe-body { grid-template-columns: 1fr; }
  .sidebar-card { position: static; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .hamburger-label { display: flex; }
  .navbar { flex-direction: column; align-items: stretch; height: auto; }
  .nav-inner { height: var(--nav-h); }
  .hero { padding: 52px 20px 60px; }
  .cards-grid { grid-template-columns: 1fr 1fr; }
  .stats-inner { flex-wrap: wrap; }
  .stat { min-width: 50%; border-right: none; border-bottom: 1px solid var(--gray-100); }
  .stat:nth-last-child(-n+2) { border-bottom: none; }
  .banner-title { left: 20px; right: 20px; }
}

@media (max-width: 480px) {
  .cards-grid { grid-template-columns: 1fr; }
  .recipe-body { padding: 24px 16px 48px; }
  .step-n { width: 28px; height: 28px; font-size: 12px; }
}
