/* ============================================
   Fori Food Delivery — Marketing Site Styles
   ============================================ */

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

:root {
  /* Brand */
  --primary: #78C443;      /* Parrot Green */
  --primary-dark: #5FA232; /* deeper green for hover/press */
  --primary-tint: #EAF6DE; /* pale green wash */
  --secondary: #D49F2D;    /* Yellowish Orange (speed-line gold) */
  --secondary-tint: #FBEFD8;

  /* Neutrals */
  --ink: #1A1A1A;
  --ink-soft: #6B7280;
  --white: #FFFFFF;
  --bg: #FFFFFF;
  --bg-alt: #F8F9FA;
  --border: #E5E7EB;
  --grey50: #F9FAFB;
  --grey100: #F3F4F6;

  /* Status (used sparingly, e.g. delete-account page) */
  --error: #EF4444;
  --info: #3B82F6;

  /* Shape & shadow */
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --shadow-soft: 0 12px 30px rgba(26, 26, 26, 0.07);
  --shadow-tight: 0 4px 12px rgba(26, 26, 26, 0.06);

  /* Type */
  --font-display: 'Poppins', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
}

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

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  margin: 0 0 .5em;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

p { margin: 0 0 1em; color: var(--ink-soft); }

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary-dark);
  background: var(--primary-tint);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 16px;
}

/* ---------- Speed-line signature motif ---------- */
/* Echoes the gold motion lines behind the scooter in the logo. */
.speedlines {
  position: absolute;
  pointer-events: none;
  opacity: 0.9;
}
.speedlines svg { display: block; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 18px;
  color: var(--ink);
}

.brand img {
  height: 38px;
  width: 38px;
  object-fit: contain;
}

.brand span.accent { color: var(--primary-dark); }

.main-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.main-nav a {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--ink-soft);
  position: relative;
  padding: 4px 0;
  transition: color .15s ease;
}
.main-nav a:hover { color: var(--ink); }
.main-nav a.active { color: var(--primary-dark); }
.main-nav a.active::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -6px;
  height: 3px;
  border-radius: 3px;
  background: var(--secondary);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--primary);
  color: var(--white) !important;
  font-weight: 700;
  font-size: 14px;
  padding: 10px 18px;
  border-radius: 999px;
  transition: transform .15s ease, background .15s ease;
}
.nav-cta:hover { background: var(--primary-dark); transform: translateY(-1px); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  width: 22px; height: 2px; background: var(--ink); border-radius: 2px;
}

.mobile-nav {
  display: none;
  flex-direction: column;
  padding: 8px 24px 20px;
  border-top: 1px solid var(--border);
  background: var(--white);
}
.mobile-nav a {
  padding: 12px 0;
  font-weight: 600;
  font-size: 15px;
  border-bottom: 1px solid var(--grey100);
  color: var(--ink);
}
.mobile-nav.open { display: flex; }

@media (max-width: 860px) {
  .main-nav { display: none; }
  .nav-toggle { display: flex; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 84px 0 60px;
  background: linear-gradient(180deg, var(--primary-tint) 0%, var(--white) 65%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}

.hero h1 {
  font-size: clamp(34px, 4.4vw, 52px);
  font-weight: 800;
  color: var(--ink);
}
.hero h1 .highlight { color: var(--primary-dark); }

.hero-sub {
  font-size: 17px;
  max-width: 46ch;
  margin-bottom: 32px;
}

.store-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 20px;
}

.store-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--ink);
  color: var(--white);
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  min-width: 190px;
  box-shadow: var(--shadow-tight);
  transition: transform .15s ease, box-shadow .15s ease, opacity .15s ease;
  border: 1px solid var(--ink);
}
.store-btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-soft); }
.store-btn svg { flex-shrink: 0; }
.store-btn .store-text { display: flex; flex-direction: column; line-height: 1.2; }
.store-btn .store-text small { font-size: 11px; opacity: .75; }
.store-btn .store-text strong { font-size: 16px; font-family: var(--font-display); }

.store-btn.ios { background: var(--white); color: var(--ink); border: 1.5px solid var(--border); }
.store-btn.ios:hover { border-color: var(--ink); }

.store-btn.disabled {
  opacity: .55;
  pointer-events: none;
}

.hero-note {
  font-size: 13px;
  color: var(--ink-soft);
}

.hero-art {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-art .art-card {
  position: relative;
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--border);
}
.hero-art img {
  width: 100%;
  max-width: 340px;
  margin: 0 auto;
}

/* ---------- Sections ---------- */
.section { padding: 72px 0; }
.section.alt { background: var(--bg-alt); }
.section h2 {
  font-size: clamp(26px, 3vw, 34px);
  margin-bottom: 12px;
}
.section-lead {
  max-width: 60ch;
  font-size: 16px;
  margin-bottom: 44px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.feature-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 26px;
  transition: transform .15s ease, box-shadow .15s ease;
}
.feature-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-tight); }

.feature-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--primary-tint);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
  color: var(--primary-dark);
}

.feature-card h3 {
  font-size: 17px;
  margin-bottom: 6px;
}
.feature-card p { font-size: 14.5px; margin: 0; }

/* ---------- How it works (numbered, real sequence) ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  counter-reset: step;
}
.step {
  position: relative;
  padding-top: 8px;
}
.step .num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 34px;
  color: var(--secondary);
  margin-bottom: 8px;
  display: block;
}
.step h4 { margin-bottom: 6px; font-size: 16px; }
.step p { font-size: 14.5px; }

/* ---------- CTA banner ---------- */
.cta-banner {
  position: relative;
  overflow: hidden;
  background: var(--primary);
  border-radius: var(--radius-lg);
  padding: 48px 40px;
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.cta-banner h3 {
  color: var(--white);
  font-size: 24px;
  margin-bottom: 6px;
}
.cta-banner p { color: rgba(255,255,255,0.9); margin: 0; }
.cta-banner .store-buttons { margin: 0; }
.cta-banner .store-btn { background: var(--white); color: var(--ink); border-color: var(--white); }
.cta-banner .store-btn.ios { background: rgba(255,255,255,0.12); color: var(--white); border-color: rgba(255,255,255,0.4); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink);
  color: rgba(255,255,255,0.75);
  padding: 56px 0 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 40px;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 17px;
  color: var(--white);
  margin-bottom: 12px;
}
.footer-brand img { height: 32px; width: 32px; object-fit: contain; }
.footer-col h5 {
  font-family: var(--font-display);
  color: var(--white);
  font-size: 13px;
  letter-spacing: .06em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.footer-col a, .footer-col p {
  display: block;
  font-size: 14px;
  color: rgba(255,255,255,0.72);
  margin-bottom: 10px;
}
.footer-col a:hover { color: var(--white); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13px;
  color: rgba(255,255,255,0.55);
}

@media (max-width: 760px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* ---------- Inner pages (Privacy / Terms / FAQ / About) ---------- */
.page-hero {
  padding: 56px 0 36px;
  background: var(--primary-tint);
  border-bottom: 1px solid var(--border);
}
.page-hero h1 { font-size: clamp(28px, 3.6vw, 40px); }
.page-hero .updated {
  font-size: 13px;
  color: var(--ink-soft);
  font-weight: 600;
}

.page-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 40px;
  padding: 56px 0 80px;
}

.page-toc {
  align-self: start;
  position: sticky;
  top: 92px;
  border-left: 2px solid var(--border);
  padding-left: 18px;
}
.page-toc a {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-soft);
  padding: 7px 0;
}
.page-toc a:hover { color: var(--primary-dark); }

.doc-section {
  margin-bottom: 34px;
  padding-bottom: 34px;
  border-bottom: 1px solid var(--border);
  scroll-margin-top: 92px;
}
.doc-section:last-child { border-bottom: none; }
.doc-section h2 {
  font-size: 19px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.doc-section h2 .tag {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  color: var(--primary-dark);
  background: var(--primary-tint);
  padding: 3px 9px;
  border-radius: 6px;
}
.doc-section p, .doc-section li { font-size: 15px; color: var(--ink-soft); }
.doc-section ul { padding-left: 20px; margin: 0 0 1em; }
.doc-section li { margin-bottom: 6px; }

@media (max-width: 900px) {
  .page-layout { grid-template-columns: 1fr; }
  .page-toc { display: none; }
}

/* ---------- FAQ accordion ---------- */
.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  margin-bottom: 12px;
  overflow: hidden;
  background: var(--white);
}
.faq-question {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  cursor: pointer;
  padding: 18px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  color: var(--ink);
}
.faq-question .icon {
  flex-shrink: 0;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--primary-tint);
  color: var(--primary-dark);
  display: flex; align-items: center; justify-content: center;
  font-size: 16px;
  transition: transform .2s ease, background .2s ease;
}
.faq-item.open .faq-question .icon { background: var(--primary); color: var(--white); transform: rotate(45deg); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height .25s ease;
}
.faq-answer-inner { padding: 0 22px 20px; font-size: 14.5px; color: var(--ink-soft); }
.faq-item.open .faq-answer { max-height: 400px; }

.faq-cats {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}
.faq-cat {
  font-size: 13px;
  font-weight: 700;
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--ink-soft);
  background: var(--white);
}
.faq-cat.active { background: var(--secondary-tint); border-color: var(--secondary); color: #8A6415; }

/* ---------- Contact / About cards ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
  margin-top: 8px;
}
.contact-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 22px;
}
.contact-card .feature-icon { margin-bottom: 14px; }
.contact-card h4 { font-size: 15px; margin-bottom: 4px; }
.contact-card p { font-size: 14px; margin: 0; }
.contact-card a.value { font-weight: 700; color: var(--primary-dark); font-size: 14.5px; }

/* ---------- Buttons (generic) ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 14px;
  padding: 12px 22px;
  border-radius: 999px;
  border: 1.5px solid transparent;
  cursor: pointer;
  font-family: var(--font-body);
}
.btn-primary { background: var(--primary); color: var(--white); }
.btn-primary:hover { background: var(--primary-dark); }
.btn-outline { border-color: var(--border); color: var(--ink); background: var(--white); }
.btn-outline:hover { border-color: var(--ink); }
.btn-danger { background: var(--error); color: var(--white); }
.btn-danger:hover { background: #d63c3c; }
.btn:disabled { opacity: .6; cursor: not-allowed; }

/* ---------- Delete-account style form (About/Support page) ---------- */
.form-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 26px;
}
.form-card label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--ink);
}
.form-card textarea, .form-card input {
  width: 100%;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  padding: 12px 14px;
  font-family: var(--font-body);
  font-size: 14.5px;
  background: var(--grey50);
  margin-bottom: 16px;
  resize: vertical;
}
.form-card textarea:focus, .form-card input:focus {
  outline: none;
  border-color: var(--primary);
  background: var(--white);
}

/* ---------- Utility ---------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.badge-soft {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--secondary-tint);
  color: #8A6415;
}

/* Focus visibility for accessibility */
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--secondary);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}
