/* ================================
   Drivah Eats Landing Page CSS
   ================================ */

:root {
  --accent: #b7ff14;
  --accent-dark: #7dff00;
  --black: #0b0f12;
  --dark: #111;
  --text: #101418;
  --muted: #5b6570;
  --white: #ffffff;
  --line: rgba(0,0,0,.08);
  --radius: 16px;
  --radius-lg: 22px;
  --shadow: 0 10px 28px rgba(0,0,0,.12);
  --shadow-lg: 0 14px 48px rgba(0,0,0,.18);
  --max: 1180px;
  --font: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--white);
}
a { text-decoration: none; color: inherit; }

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 20px;
}

/* NAVBAR */
.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 0;
}
.brand { display: flex; gap: 10px; align-items: center; }
.logo {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  box-shadow: 0 10px 22px rgba(183,255,20,.3);
}
.brand-text b { font-size: 16px; }
.brand-text span { font-size: 12px; color: var(--muted); }

.nav-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.btn {
  padding: 10px 14px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 13px;
  border: 1px solid var(--line);
  background: #fff;
  cursor: pointer;
}
.btn.dark {
  background: var(--dark);
  color: #fff;
  border-color: var(--dark);
}
.btn:disabled { opacity:.65; cursor:not-allowed; }

/* HERO */
.hero {
  min-height: 72vh;
  display: grid;
  place-items: center;
  background:
    linear-gradient(rgba(0,0,0,.45), rgba(0,0,0,.35)),
    url("./assets/images/drivah-eats-hero.jpg");
  background-size: cover;
  background-position: center;
}
.hero-inner { padding: 60px 0; width: 100%; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 24px;
  align-items: center;
}

.chip {
  display: inline-block;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(183,255,20,.2);
  border: 1px solid rgba(183,255,20,.35);
  font-weight: 800;
  font-size: 12px;
  margin-bottom: 14px;
}
.hero h1 { font-size: 46px; color: #fff; margin: 0 0 12px; }
.hero p { color: #e5e9ec; max-width: 60ch; line-height: 1.55; }

.cta-row{ display:flex; gap:10px; flex-wrap:wrap; margin-top:12px; }

.altlink {
  margin-top: 10px;
  color: #e5e9ec;
  font-weight: 700;
  font-size: 13px;
}
.altlink a { text-decoration: underline; }

.tiny-note{
  margin-top:10px;
  font-size:12px;
  font-weight:800;
  color:#2b3642;
}
.tiny-note a{ text-decoration: underline; }

/* HERO CARD */
.hero-card {
  background: rgba(255,255,255,.92);
  padding: 18px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}
.hero-card b { display: block; margin-bottom: 6px; }
.hero-card p { margin: 0 0 10px; color: var(--muted); }

/* SEARCH BAR (kept for layout, not used for ordering) */
.searchbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  background: #fff;
  padding: 10px;
  border-radius: 14px;
  box-shadow: var(--shadow);
  max-width: 720px;
}
.field {
  flex: 1 1 260px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  background: #f6f7f8;
  border-radius: 12px;
}
.field input, .field select {
  border: none;
  background: transparent;
  outline: none;
  width: 100%;
  font-size: 14px;
}
.search-btn {
  background: var(--dark);
  color: #fff;
  border-radius: 12px;
  padding: 12px 16px;
  font-weight: 800;
  border: none;
  cursor: pointer;
}

/* SECTION */
.section { padding: 50px 0; }
.section-head{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:12px;
  flex-wrap:wrap;
}
.section-head h2{ margin:0; font-size:28px; letter-spacing:-.6px; }
.muted{ color: var(--muted); font-weight: 700; font-size: 13px; }

/* RESTAURANTS */
.rest-grid{
  margin-top: 16px;
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.rest-card{
  background:#fff;
  border-radius: var(--radius-lg);
  overflow:hidden;
  box-shadow: var(--shadow);
  border: 1px solid rgba(0,0,0,.06);
}
.rest-img{
  height: 150px;
  background: #f1f3f5;
  background-size: cover;
  background-position: center;
}
.rest-body{ padding: 14px; }
.rest-title{ font-weight: 900; margin:0 0 6px; font-size: 15px; }
.rest-meta{ color: var(--muted); font-weight: 700; font-size: 13px; margin:0 0 10px; }
.rest-actions{ display:flex; gap:10px; flex-wrap:wrap; margin-top: 10px; }
.rest-actions .btn{ padding: 9px 12px; }
.rest-footnote{
  margin-top: 14px;
  color: var(--muted);
  font-weight: 700;
  font-size: 13px;
}

/* AREAS */
.areas {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 18px;
}
.mapbox {
  height: 260px;
  background: #f1f3f5;
  border-radius: var(--radius-lg);
  display: grid;
  place-items: center;
}
.area-list {
  background: #fff;
  padding: 14px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}
.area {
  padding: 10px;
  border-radius: 12px;
  background: #f6f7f8;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 8px;
}

/* FOOTER */
footer {
  border-top: 1px solid var(--line);
  padding: 40px 0 20px;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 20px;
}
.footer-grid a {
  display: block;
  margin: 8px 0;
  font-size: 13px;
  color: #2b3642;
  text-decoration: underline;
  font-weight: 800;
}
.bottomline {
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  font-size: 12px;
  color: #2b3642;
}

/* MODAL */
.modal-backdrop{
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.55);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
  z-index: 999;
}
.modal-backdrop.show{ display:flex; }

.modal{
  width: min(760px, 100%);
  background: #fff;
  border-radius: 18px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  border: 1px solid rgba(0,0,0,.10);
}
.modal-head{
  padding: 14px 14px 10px;
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap: 10px;
  border-bottom: 1px solid var(--line);
}
.modal-title{
  font-size: 16px;
  font-weight: 900;
  letter-spacing: -.2px;
}
.modal-sub{
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}
.modal-x{
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #fff;
  cursor: pointer;
  font-size: 18px;
}
.modal-body{ padding: 14px; }

.form-grid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.form-grid label{
  display:block;
  font-size: 12px;
  font-weight: 900;
  color: #2b3642;
  margin-bottom: 6px;
}
.form-grid input,
.form-grid select,
.form-grid textarea{
  width: 100%;
  padding: 12px 12px;
  border-radius: 12px;
  border: 1px solid rgba(0,0,0,.12);
  background: #fff;
  outline: none;
  font-size: 14px;
}
.form-grid textarea{ min-height: 96px; resize: vertical; }
.span-2{ grid-column: 1 / -1; }
.help{
  margin-top: 6px;
  font-size: 12px;
  color: var(--muted);
  font-weight: 700;
}
.modal-actions{
  display:flex;
  justify-content:flex-end;
  gap: 10px;
  padding-top: 12px;
  margin-top: 12px;
  border-top: 1px solid var(--line);
}
.form-error{
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(239,68,68,.10);
  border: 1px solid rgba(239,68,68,.18);
  font-weight: 800;
  font-size: 13px;
}
.form-success{
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(34,197,94,.12);
  border: 1px solid rgba(34,197,94,.18);
  font-weight: 900;
  font-size: 13px;
}
.fineprint{
  margin-top: 10px;
  font-size: 12px;
  color: var(--muted);
  font-weight: 700;
}

/* MOBILE */
@media (max-width: 900px) {
  .hero-grid, .areas, .footer-grid { grid-template-columns: 1fr; }
  .rest-grid{ grid-template-columns: 1fr; }
  .hero h1 { font-size: 34px; }
  .hero { min-height: 85vh; background-position: center top; }
  .nav-actions{ display:none; }
  .form-grid{ grid-template-columns: 1fr; }
}
