/* ─── YEDA24 WEBSITE — BASE CSS ─────────────────────────────────────────── */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* Brend ranglari: to'q yashil asosiy, sariq aksent */
  --brand:        #0f3d28;
  --brand-dark:   #0a2b1d;
  --brand-soft:   rgba(15,61,40,.08);
  --accent:       #e6a800;
  --accent-dark:  #c48a00;
  --bg:           #f7f5f2;
  --bg2:          #edeae5;
  --card:         #ffffff;
  --card2:        #f0ece7;
  --text:         #1a1208;
  --muted:        #6b6357;
  --line:         rgba(0,0,0,0.10);
  --border:       rgba(0,0,0,0.10);
  --red:          #d63b27;
  --green:        #2e7d32;

  --radius-sm:  8px;
  --radius-md:  12px;
  --radius-lg:  18px;
  --radius-xl:  24px;

  --nav-h: 72px;
  --max-w: 1160px;
}

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
ul { list-style: none; }

/* ─── ACCESSIBILITY: keyboard focus ─────────────────────────────────────── */
:focus-visible {
  outline: 3px solid rgba(230,168,0,.6);
  outline-offset: 2px;
  border-radius: 4px;
}
input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 3px solid rgba(230,168,0,.45);
  outline-offset: 1px;
}

/* ─── CONTAINER ─────────────────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 20px;
}
.narrow { max-width: 720px; }

/* ─── NAVBAR ─────────────────────────────────────────────────────────────── */
.navbar { position: sticky; top: 0; z-index: 100; min-height: var(--nav-h); background: rgba(255,255,255,.96); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.nav-inner { width: 100%; max-width: var(--max-w); min-height: var(--nav-h); margin: 0 auto; padding: 10px 20px; display: flex; align-items: center; gap: 14px; }
.nav-logo { display: flex; align-items: center; flex: 0 0 auto; }
.nav-logo img { width: 82px !important; height: 48px !important; object-fit: contain; }
.nav-location { min-width: 210px; max-width: 260px; height: 48px; display: flex; align-items: center; gap: 9px; padding: 6px 10px; border: 1px solid var(--line); border-radius: 14px; background: #fff; color: var(--text); cursor: pointer; text-align: left; transition: border-color .18s, background .18s; }
.nav-location:hover { border-color: rgba(15,61,40,.3); background: #fafcfb; }
.nav-location-icon { width: 32px; height: 32px; flex: 0 0 32px; display: grid; place-items: center; border-radius: 10px; background: #fff4d3; color: var(--accent-dark); }
.nav-location-icon svg, .nav-action-icon svg, .nav-search svg, .nav-chevron { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.nav-location-copy { display: flex; flex: 1; min-width: 0; flex-direction: column; line-height: 1.15; }
.nav-location-copy small { margin-bottom: 3px; color: var(--muted); font-size: 10px; }
.nav-location-copy strong { overflow: hidden; color: var(--text); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.nav-chevron { width: 16px; flex: 0 0 16px; color: var(--muted); }
.nav-search { height: 48px; display: flex; flex: 1 1 340px; align-items: center; gap: 10px; padding: 0 15px; border: 1px solid transparent; border-radius: 14px; background: #f3f4f2; color: var(--muted); }
.nav-search:focus-within { border-color: rgba(15,61,40,.28); background: #fff; box-shadow: 0 0 0 3px rgba(15,61,40,.06); }
.nav-search input { width: 100%; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--text); font: inherit; font-size: 14px; }
.nav-search input::placeholder { color: #96968f; }
.nav-actions { display: flex; align-items: stretch; gap: 4px; margin-left: auto; }
.nav-action { position: relative; min-width: 66px; height: 50px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; padding: 4px 10px; border-radius: 13px; color: var(--muted); font-size: 11px; font-weight: 650; transition: background .18s, color .18s; }
.nav-action:hover, .nav-action.active { background: var(--brand-soft); color: var(--brand); }
.nav-action-icon { position: relative; display: grid; place-items: center; }
.nav-user-avatar { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 9px; background: var(--brand); color: #fff; font-weight: 800; }
.nav-user-name { max-width: 92px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nav-cart-badge {
  position: absolute; top: -7px; right: -9px; display: inline-flex; align-items: center; justify-content: center;
  min-width: 17px; height: 17px; padding: 0 4px;
  border-radius: 999px;
  background: var(--accent);
  color: #1a1200;
  font-size: 10px;
  font-weight: 800;
  box-shadow: 0 0 0 2px #fff;
}
.is-hidden, .nav-cart-badge.is-hidden { display: none !important; }
.site-messages { position: relative; z-index: 20; width: min(92vw, 520px); margin: 12px auto 0; }
.site-message { padding: 12px 16px; border: 1px solid rgba(15,61,40,.18); border-radius: 12px; background: #fff; box-shadow: 0 12px 32px rgba(15,61,40,.12); color: var(--brand); font-weight: 600; text-align: center; }

/* ─── BUTTONS ────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-md);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity .2s, transform .15s;
  border: none;
}
.btn:hover { opacity: .88; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary  { background: var(--accent); color: #1a1200; }
.btn-outline  { background: transparent; color: var(--text); border: 1.5px solid var(--line); }
.btn-outline:hover { border-color: var(--brand); color: var(--brand); }
.btn-lg { padding: 14px 32px; font-size: 16px; }

/* ─── SECTIONS ───────────────────────────────────────────────────────────── */
.section      { padding: 64px 0; }
.section-alt  { background: var(--bg2); }
.section-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 32px; }
.section-head h2 { font-size: clamp(22px, 4vw, 28px); }
.section-title-center { text-align: center; font-size: clamp(22px, 4vw, 28px); margin-bottom: 40px; }
/* ─── HERO ───────────────────────────────────────────────────────────────── */
.hero {
  padding: 80px 0 72px;
  background: radial-gradient(ellipse at 60% 0%, rgba(245,200,66,.12) 0%, transparent 60%), var(--bg);
}
.hero-inner { max-width: var(--max-w); margin: 0 auto; padding: 0 20px; }
.hero-title {
  font-size: clamp(32px, 6vw, 58px);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 20px;
}
.hero-title .accent { color: var(--accent); }
.hero-sub { font-size: clamp(16px, 2.5vw, 20px); color: var(--muted); max-width: 560px; margin-bottom: 36px; }
.hero-btns { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 48px; }
.hero-stats { display: flex; gap: 40px; }
.stat { display: flex; flex-direction: column; }
.stat-num { font-size: 28px; font-weight: 800; color: var(--accent); }
.stat-label { font-size: 13px; color: var(--muted); }

/* ─── PAGE HEADER ────────────────────────────────────────────────────────── */
.page-header {
  padding: 56px 0 40px;
  border-bottom: 1px solid var(--line);
}
.page-header h1 { font-size: clamp(26px, 5vw, 40px); margin-bottom: 8px; }
.page-header p  { color: var(--muted); font-size: 17px; }

/* ─── HOW IT WORKS ───────────────────────────────────────────────────────── */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
}
.step {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  text-align: center;
}
.step-icon { font-size: 36px; margin-bottom: 16px; }
.step h3   { font-size: 16px; margin-bottom: 8px; }
.step p    { font-size: 14px; color: var(--muted); }

/* ─── CTA SECTION ────────────────────────────────────────────────────────── */
.cta-section  { padding: 72px 0; background: var(--bg2); }
.cta-inner    { text-align: center; }
.cta-inner h2 { font-size: clamp(24px, 4vw, 36px); margin-bottom: 12px; }
.cta-inner p  { color: var(--muted); font-size: 17px; margin-bottom: 28px; }

/* ─── CATEGORY CHIPS ─────────────────────────────────────────────────────── */
.cat-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 24px;
  padding-bottom: 8px;
}
.cat-chip {
  padding: 7px 16px;
  border-radius: 999px;
  border: 1.5px solid var(--line);
  background: var(--card);
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all .2s;
}
.cat-chip:hover, .cat-chip.active {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(245,200,66,.08);
}

/* ─── RESTAURANT GRID ────────────────────────────────────────────────────── */
.resto-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

/* ─── BENEFIT LIST ───────────────────────────────────────────────────────── */
.benefit-list { display: flex; flex-direction: column; gap: 20px; margin-bottom: 48px; }
.benefit {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 24px;
}
.benefit-icon { font-size: 32px; flex-shrink: 0; }
.benefit h3   { font-size: 17px; margin-bottom: 6px; }
.benefit p    { font-size: 14px; color: var(--muted); }

/* ─── PARTNER / COURIER CTA ──────────────────────────────────────────────── */
.partner-cta {
  background: var(--card2);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  padding: 40px 32px;
  text-align: center;
}
.partner-cta h2 { font-size: 24px; margin-bottom: 10px; }
.partner-cta p  { color: var(--muted); margin-bottom: 24px; }

/* ─── CONTACT ────────────────────────────────────────────────────────────── */
.contact-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; }
.contact-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  text-align: center;
  transition: border-color .2s;
}
.contact-card:hover { border-color: var(--accent); }
.contact-icon { font-size: 40px; margin-bottom: 12px; }
.contact-card h3 { font-size: 18px; margin-bottom: 6px; }
.contact-card p  { color: var(--muted); font-size: 15px; }

/* ─── FOOTER ─────────────────────────────────────────────────────────────── */
.footer { background: var(--brand); padding: 48px 0 0; }
.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 20px 40px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 40px;
}
.footer-brand p    { color: rgba(255,255,255,.72); font-size: 14px; margin: 12px 0 16px; max-width: 280px; }
.footer-brand-logo { position: relative; display: block; width: 100px; height: 49px; overflow: hidden; color: #fff; }
.footer-brand-logo img { position: absolute; top: -31.5px; left: -15px; width: 124.5px !important; max-width: none; height: 122.75px !important; }
.footer-social     { display: flex; gap: 12px; }
.footer-social a   { color: rgba(255,255,255,.72); transition: color .2s; }
.footer-social a:hover { color: var(--accent); }
.footer-links      { display: flex; gap: 48px; }
.footer-col h4     { font-size: 13px; font-weight: 700; color: rgba(255,255,255,.55); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 14px; }
.footer-col ul     { display: flex; flex-direction: column; gap: 10px; }
.footer-col a      { font-size: 14px; color: rgba(255,255,255,.72); transition: color .2s; }
.footer-col a:hover{ color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.14);
  padding: 16px 20px;
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.footer-bottom p   { font-size: 13px; color: rgba(255,255,255,.6); }
.footer-bottom a   { color: rgba(255,255,255,.6); }
.footer-bottom a:hover { color: var(--accent); }

/* ─── EMPTY ──────────────────────────────────────────────────────────────── */
.empty-msg { color: var(--muted); text-align: center; padding: 40px 0; }

/* ─── RESPONSIVE ─────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  :root { --nav-h: 118px; }
  .nav-inner { display: grid; grid-template-columns: auto minmax(0,1fr) auto; grid-template-rows: 48px 44px; gap: 7px 8px; padding: 8px 14px 10px; }
  .nav-logo img { width: 65px !important; height: 42px !important; }
  .nav-location { min-width: 0; max-width: none; height: 44px; border: 0; background: transparent; padding: 4px 5px; }
  .nav-location:hover { background: var(--brand-soft); }
  .nav-location-icon { width: 29px; height: 29px; flex-basis: 29px; }
  .nav-location-copy small { display: none; }
  .nav-location-copy strong { font-size: 12px; }
  .nav-actions { gap: 0; }
  .nav-action { min-width: 48px; height: 44px; padding: 3px 6px; }
  .nav-action > span:last-child:not(.nav-cart-badge):not(.nav-user-avatar), .nav-user-name { display: none; }
  .nav-search { grid-column: 1 / -1; grid-row: 2; height: 44px; }

  .hero { padding: 48px 0 40px; }
  .hero-stats { gap: 24px; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-links { flex-wrap: wrap; gap: 32px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

@media (min-width: 769px) and (max-width: 980px) {
  .nav-location-copy small { display: none; }
  .nav-location { min-width: 170px; }
  .nav-action { min-width: 54px; padding-inline: 7px; }
  .nav-user-name { max-width: 64px; }
}
