/* =============================================
   Rawabet Smart — Mature, Trustworthy Identity
   New palette: warm cream · navy text · olive CTA · gold accents
   ============================================= */

/* ─── Design tokens ─── */
:root {
  --bg:        #FAF7F0;
  --bg2:       #FFFFFF;
  --bg-sec:    #F6F1E8;
  --card:      #FFFFFF;
  --text:      #1E293B;
  --muted:     #475569;
  --light:     #64748B;
  --line:      #E6D8C7;
  --brand:     #2F5D50;
  --brand2:    #24483E;
  --gold:      #C89B5A;
  --badge-bg:  #F3E8D6;
  --badge-tx:  #7A4E1D;
  --red:       #B94A3C;
  --shadow:    0 6px 28px rgba(30,41,59,.07);
  --shadow-md: 0 16px 52px rgba(30,41,59,.11);
  --radius:    22px;
}

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

body {
  margin: 0;
  direction: rtl;
  font-family: "Segoe UI", Tahoma, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.84;
  text-rendering: optimizeLegibility;
}

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

h1, h2, h3 { margin-top: 0; line-height: 1.22; letter-spacing: -.4px; color: var(--text); }
h1 { font-size: clamp(32px, 5vw, 60px); margin: 14px 0; font-weight: 950; }
h2 { font-size: clamp(24px, 3.5vw, 40px); margin-bottom: 12px; font-weight: 950; }
h3 { font-size: 20px; margin-bottom: 8px; font-weight: 900; }

.container { width: min(1160px, calc(100% - 36px)); margin: auto; }

/* ─── Navigation ─── */
.nav {
  position: sticky; top: 0; z-index: 99;
  backdrop-filter: blur(18px);
  background: rgba(255,255,255,.93);
  border-bottom: 1px solid rgba(230,216,199,.80);
  box-shadow: 0 4px 20px rgba(30,41,59,.045);
}
.nav-inner {
  min-height: 72px;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.logo {
  display: flex; align-items: center; gap: 10px;
  font-weight: 900; font-size: 20px; letter-spacing: -.3px; color: var(--text);
}
.logo-mark {
  width: 40px; height: 40px; border-radius: 14px; color: #fff;
  display: grid; place-items: center; font-weight: 950; font-size: 18px;
  background: linear-gradient(135deg, var(--brand), var(--brand2));
}
.links {
  display: flex; align-items: center; gap: 18px;
  font-size: 14px; color: var(--muted); font-weight: 700;
}
.links a { padding: 6px 0; transition: color .15s; }
.links a:hover { color: var(--brand); }

/* ─── Buttons ─── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 0 22px; border-radius: 999px;
  border: 1.5px solid transparent;
  font-weight: 900; font-size: 15px; cursor: pointer; white-space: nowrap;
  transition: background .18s, border-color .18s, box-shadow .18s;
}
.btn.brand {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 10px 28px rgba(47,93,80,.22);
}
.btn.brand:hover {
  background: var(--brand2);
  box-shadow: 0 14px 36px rgba(47,93,80,.30);
}
.btn.light {
  background: #FFFFFF;
  border-color: var(--line);
  color: var(--text);
  box-shadow: 0 4px 14px rgba(30,41,59,.04);
}
.btn.light:hover {
  background: var(--bg-sec);
  border-color: #D8C6AE;
}
.btn.ghost {
  background: rgba(255,255,255,.12);
  color: #fff;
  border-color: rgba(255,255,255,.28);
}

/* ─── Pill / Badge ─── */
.pill, .badge {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 7px 14px; border-radius: 999px;
  background: var(--badge-bg); border: 1px solid #E6D8C7;
  color: var(--badge-tx); font-weight: 900; font-size: 13px;
}

/* ─── Trust line (delivery badge) ─── */
.trust-line {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 16px; border-radius: 999px;
  background: var(--badge-bg); border: 1px solid #E6D8C7;
  color: var(--badge-tx); font-weight: 900; font-size: 13.5px;
  margin: 14px 0 0;
}

/* ─── Hero ─── */
.hero { padding: 80px 0 52px; }
.hero-grid { display: grid; grid-template-columns: 1fr .9fr; gap: 36px; align-items: center; }
.lead { color: var(--muted); font-size: clamp(16px, 2vw, 19px); max-width: 720px; margin: 0; }
.actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; }
.cta-helper { margin: 10px 0 18px; color: var(--light); font-size: 14px; font-weight: 700; }

/* Hero side card */
.hero-side {
  background: #FFFFFF;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 8px 36px rgba(30,41,59,.07);
  padding: 24px;
  position: relative; overflow: hidden;
}
.hero-side:before {
  content: ""; position: absolute; width: 130px; height: 130px; border-radius: 50%;
  background: rgba(200,155,90,.10); left: -45px; top: -45px;
}
.hero-side > * { position: relative; }

/* Checks list */
.checks { display: grid; gap: 10px; padding: 0; list-style: none; margin: 16px 0; }
.checks li {
  display: flex; align-items: flex-start; gap: 10px;
  background: var(--bg); border: 1px solid var(--line);
  padding: 11px 13px; border-radius: 14px;
  color: var(--text); font-weight: 800; font-size: 14.5px;
}
.checks li:before {
  content: "✓"; color: var(--brand); font-weight: 950; flex-shrink: 0; margin-top: 1px;
}

/* Quick grid */
.quick-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 10px; margin-top: 22px; }
.quick {
  background: #FFFFFF; border: 1px solid var(--line);
  border-radius: 16px; padding: 12px 14px;
  font-weight: 900; color: var(--text); font-size: 13px;
  box-shadow: 0 4px 14px rgba(30,41,59,.04);
  display: flex; align-items: center;
}

/* ─── Card ─── */
.card {
  background: #FFFFFF;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px;
}
.card:hover { box-shadow: var(--shadow-md); }
.card p { color: var(--muted); margin: 0; }

/* ─── Sections ─── */
section { padding: 78px 0; }
.strip {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--bg-sec);
}
.section-head {
  display: flex; justify-content: space-between; align-items: flex-end; gap: 20px;
  margin-bottom: 28px;
}
.sub { color: var(--muted); font-size: 17px; max-width: 760px; }

/* Grids */
.grid-2 { display: grid; grid-template-columns: repeat(2,1fr); gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; }
.grid-4 { display: grid; grid-template-columns: repeat(4,1fr); gap: 14px; }

/* ─── Problem chips ─── */
.question-chips {
  display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px;
}
.question-chip {
  padding: 13px 22px; border-radius: 999px;
  background: #FFFFFF; border: 1px solid var(--line);
  color: var(--text); font-weight: 900; font-size: 15px;
  box-shadow: 0 4px 14px rgba(30,41,59,.04);
}
/* Legacy - keep question-card but restyle to chip */
.question-card {
  text-align: center; font-size: 15px; font-weight: 900;
  background: #FFFFFF; border: 1px solid var(--line); border-radius: 999px;
  padding: 13px 18px;
  color: var(--text);
  box-shadow: 0 4px 14px rgba(30,41,59,.04);
}

/* ─── Before / After ─── */
.comparison-card { position: relative; overflow: hidden; }
.comparison-card h3 { margin-top: 12px; }

.mini-label {
  display: inline-flex; padding: 6px 12px; border-radius: 999px;
  font-size: 12.5px; font-weight: 950; border: 1px solid transparent;
}
.problem-label { background: var(--badge-bg); color: var(--badge-tx); border-color: #E6D8C7; }
.success-label { background: rgba(47,93,80,.08); color: var(--brand); border-color: rgba(47,93,80,.16); }

.before {
  background: var(--bg-sec);
  border-color: var(--line);
}
.before .checks li { background: #FFFFFF; }
.before .checks li:before { content: "−"; color: var(--light); }

.after {
  background: #FFFFFF;
  border-color: rgba(47,93,80,.22);
  border-top: 4px solid var(--brand);
  box-shadow: 0 18px 56px rgba(47,93,80,.12);
}
.featured-after {
  border-top: 4px solid var(--brand);
  box-shadow: 0 18px 56px rgba(47,93,80,.12);
}
.after .checks li {
  background: rgba(47,93,80,.04);
  border-color: rgba(47,93,80,.14);
}
.after .checks li:before { color: var(--brand); }

.solution-badge {
  display: inline-flex; align-items: center;
  padding: 6px 14px; border-radius: 999px;
  background: var(--brand); color: #fff;
  font-size: 12px; font-weight: 950;
  position: absolute; top: 16px; left: 16px;
}

/* ─── Packages ─── */
.package { position: relative; overflow: hidden; display: flex; flex-direction: column; }
.package .actions { margin-top: auto; }
.package.featured {
  border: 2px solid rgba(47,93,80,.38);
  box-shadow: 0 22px 64px rgba(47,93,80,.14);
  transform: translateY(-6px);
}
.corner {
  position: absolute; top: 16px; left: 16px;
  background: var(--brand); color: #fff; border-radius: 999px;
  padding: 6px 14px; font-size: 12px; font-weight: 950;
}
.price { font-size: 42px; color: var(--brand); font-weight: 950; line-height: 1.2; margin: 8px 0 12px; }
.price small { font-size: 16px; color: var(--light); }
.price-muted { font-size: 34px; color: var(--muted); font-weight: 950; line-height: 1.2; margin: 8px 0 12px; }

/* ─── Demo cards ─── */
.demo-card { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.demo-card img { height: 220px; width: 100%; object-fit: cover; }
.demo-card .body { padding: 22px; display: flex; flex-direction: column; flex: 1; gap: 8px; }
.demo-card .body .actions { margin-top: auto; }

/* ─── Icon / Steps ─── */
.icon {
  width: 48px; height: 48px; border-radius: 15px;
  display: grid; place-items: center; background: var(--badge-bg);
  color: var(--gold); font-size: 22px; margin-bottom: 12px;
}
.steps { display: grid; gap: 12px; counter-reset: st; }
.step {
  counter-increment: st; display: grid; grid-template-columns: 54px 1fr; gap: 14px; align-items: center;
  background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 15px;
  box-shadow: 0 4px 16px rgba(30,41,59,.05);
}
.step:before {
  content: counter(st); width: 48px; height: 48px; border-radius: 15px;
  display: grid; place-items: center; background: var(--badge-bg); color: var(--brand);
  font-weight: 950; font-size: 20px;
}

/* ─── Chips ─── */
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  padding: 9px 15px; border-radius: 999px;
  background: #fff; border: 1px solid var(--line);
  color: var(--text); font-weight: 900;
}

/* ─── CTA section ─── */
.cta {
  text-align: center; border-radius: 28px; padding: 54px 24px; color: #fff;
  background: linear-gradient(135deg, var(--brand), #1D3D35);
  box-shadow: 0 22px 70px rgba(47,93,80,.26);
}
.cta h2 { color: #fff; }
.cta .sub { color: rgba(255,255,255,.82); margin: auto; }

/* ─── Contact: ready message box ─── */
.ready-box {
  background: #FFFFFF; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 30px;
  box-shadow: var(--shadow);
}
.ready-box h2 { margin-bottom: 8px; }
.ready-box p { color: var(--muted); margin: 0 0 18px; }

/* Contact checks */
.contact-checks { margin-top: 10px; }

/* ─── Footer ─── */
.footer {
  padding: 44px 0; border-top: 1px solid var(--line);
  color: var(--light); background: rgba(255,255,255,.72);
}
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 26px; }
.footer a { display: block; margin: 5px 0; color: var(--muted); transition: color .15s; }
.footer a:hover { color: var(--brand); }
.footer h3 { color: var(--text); margin-bottom: 10px; }
.footer p { max-width: 500px; }

/* ─── Floating WhatsApp ─── */
.float-wa {
  position: fixed; left: 18px; right: auto; bottom: 18px; z-index: 90;
  width: 58px; height: 58px; border-radius: 50%;
  background: linear-gradient(180deg, #25D366 0%, #1FAE53 100%);
  color: transparent; font-size: 0;
  display: grid; place-items: center;
  box-shadow: 0 14px 34px rgba(37,211,102,.30);
  border: 3px solid rgba(255,255,255,.95);
  transition: transform .18s ease, box-shadow .18s ease;
}
.float-wa::before {
  content: "";
  width: 28px; height: 28px;
  background: no-repeat center / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='white' d='M20.52 3.48A11.8 11.8 0 0 0 12.07 0C5.49 0 .14 5.35.14 11.93c0 2.1.55 4.16 1.59 5.97L0 24l6.29-1.65a11.9 11.9 0 0 0 5.68 1.45h.01c6.58 0 11.93-5.35 11.93-11.93 0-3.19-1.24-6.18-3.39-8.39ZM12 21.78h-.01a9.8 9.8 0 0 1-4.99-1.37l-.36-.21-3.73.98 1-3.64-.24-.37a9.82 9.82 0 1 1 8.33 4.61Zm5.39-7.35c-.29-.15-1.72-.85-1.98-.95-.26-.1-.45-.15-.64.15-.19.29-.74.95-.9 1.14-.17.19-.33.22-.62.07-.29-.15-1.21-.44-2.3-1.39-.85-.76-1.43-1.69-1.6-1.98-.17-.29-.02-.45.13-.6.13-.13.29-.33.44-.49.15-.17.19-.29.29-.48.1-.19.05-.36-.02-.51-.07-.15-.64-1.55-.88-2.12-.23-.55-.46-.48-.64-.49h-.54c-.19 0-.49.07-.75.36-.26.29-.98.96-.98 2.34 0 1.38 1 2.71 1.14 2.9.15.19 1.98 3.02 4.79 4.23.67.29 1.2.46 1.62.59.68.22 1.29.19 1.78.11.54-.08 1.72-.7 1.96-1.38.24-.68.24-1.27.17-1.38-.07-.11-.26-.18-.55-.33Z'/%3E%3C/svg%3E");
}
.float-wa:hover { transform: scale(1.07); box-shadow: 0 16px 40px rgba(37,211,102,.36); }

/* ─── Page hero (inner pages) ─── */
.page-hero { padding: 66px 0 32px; }
.page-title { max-width: 820px; }

/* ─── Form / Input ─── */
.form { display: grid; gap: 12px; }
.input {
  width: 100%; min-height: 48px;
  border: 1.5px solid var(--line);
  background: #FFFFFF; border-radius: 14px;
  padding: 12px 14px; font-family: inherit; font-size: 15px;
  color: var(--text); direction: rtl;
  transition: border-color .15s;
}
.input:focus { outline: none; border-color: var(--brand); }
textarea.input { min-height: 120px; resize: vertical; }

/* ─── FAQ ─── */
.faq-item {
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 18px 20px;
  box-shadow: var(--shadow);
}
.faq-item h3 { margin: 0; }

/* ─── Demo / Menu pages ─── */
.menu-tabs { display: flex; flex-wrap: wrap; gap: 10px; margin: 22px 0; }
.menu-tabs span {
  padding: 9px 15px; background: #fff; border: 1px solid var(--line);
  border-radius: 999px; font-weight: 900; color: var(--muted);
}
.food-card { padding: 0; overflow: hidden; }
.food-card img { width: 100%; height: 240px; object-fit: cover; }
.food-card .body { padding: 18px; }
.food-top { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; margin-bottom: 10px; }
.food-price { color: var(--brand); font-weight: 950; font-size: 20px; }
.offer {
  display: flex; justify-content: space-between; align-items: center; gap: 14px;
  background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 18px;
}
.gallery { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; }
.gallery img { width: 100%; height: 200px; object-fit: cover; border-radius: 18px; border: 1px solid var(--line); }
.map-card img { height: 260px; object-fit: cover; width: 100%; border-radius: 18px; border: 1px solid var(--line); }

/* ─── Premium page (keeps dark luxury identity) ─── */
.premium-body { background: #0d0a08; color: #f8efe0; }
.premium-body .nav {
  background: rgba(13,10,8,.88);
  border-bottom-color: rgba(214,160,89,.18);
  box-shadow: 0 8px 28px rgba(0,0,0,.24);
}
.premium-body .links a, .premium-body .logo { color: #f8efe0; }
.premium-body .footer { border-top-color: rgba(214,160,89,.18); color: #d8c7aa; background: #0d0a08; }
.premium-body .footer a { color: #e9d6b5; }
.premium-hero {
  min-height: 780px; display: flex; align-items: center; position: relative;
  background-image: linear-gradient(90deg, rgba(13,10,8,.78), rgba(13,10,8,.35)),
    url('https://rawabet-smart.lovable.app/assets/premium-hero-CN4qIg6i.jpg');
  background-size: cover; background-position: center;
}
.premium-kicker { color: var(--gold); letter-spacing: 3px; font-weight: 950; }
.premium-hero h1 { color: #fff; max-width: 760px; }
.premium-hero p { color: #e8d8bc; }
.stats { display: grid; grid-template-columns: repeat(4,1fr); gap: 12px; margin-top: 30px; max-width: 760px; }
.stat { background: rgba(255,255,255,.10); border: 1px solid rgba(214,160,89,.24); border-radius: 20px; padding: 18px; backdrop-filter: blur(12px); }
.stat b { display: block; font-size: 30px; color: #fff; }
.lux-section { background: #0d0a08; padding: 80px 0; }
.lux-card {
  background: linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.035));
  border: 1px solid rgba(214,160,89,.20);
  border-radius: 28px; padding: 26px; color: #f8efe0;
}
.lux-card p { color: #d8c7aa; }
.lux-card img { border-radius: 22px; height: 280px; object-fit: cover; width: 100%; }
.lux-title { color: #fff; }
.lux-muted { color: #d8c7aa; }
.premium-food img { height: 255px; object-fit: cover; width: 100%; border-radius: 20px; margin-bottom: 16px; }
.gold { color: var(--gold); }
.testimonial { font-size: 18px; color: #e9d6b5; }
.premium-body .pill { background: rgba(255,255,255,.08); border-color: rgba(214,160,89,.26); color: #e4bd7a; }
.premium-body .badge { background: rgba(255,255,255,.08); border-color: rgba(214,160,89,.26); color: #e4bd7a; }
.premium-body .chip { background: rgba(255,255,255,.08); color: #f2dfbd; border-color: rgba(214,160,89,.24); }
.premium-body .btn.light { background: rgba(255,255,255,.08); color: #fff; border-color: rgba(214,160,89,.24); }
.premium-body .step { background: #fffaf3; color: #25170f; border-color: #e7cfaa; }
.premium-body .step:before { background: #f1e1c6; color: #7b441c; }
.premium-body .lux-card { box-shadow: 0 24px 68px rgba(0,0,0,.22); }

/* ─── Growth demo pages ─── */
.growth-site-shell {
  background: rgba(255,255,255,.92);
  border: 1px solid var(--line);
  border-radius: 28px; overflow: hidden;
  box-shadow: var(--shadow-md);
}
.growth-topbar {
  padding: 18px 20px;
  display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap;
  background: rgba(250,247,240,.96);
  border-bottom: 1px solid var(--line);
}
.growth-demo-nav { display: flex; flex-wrap: wrap; gap: 10px; }
.growth-demo-nav a {
  padding: 9px 16px; background: #fff; border: 1px solid var(--line);
  border-radius: 999px; color: var(--muted); font-weight: 900;
}
.growth-demo-nav a:hover, .growth-demo-nav a.active {
  background: var(--brand); color: #fff; border-color: var(--brand);
}
.growth-hero-image { height: 420px; width: 100%; object-fit: cover; }
.growth-page-content { padding: 32px; }
.growth-note {
  margin-top: 18px; padding: 14px 16px;
  background: var(--bg-sec); border: 1px solid var(--line);
  border-radius: 16px; color: var(--muted); font-weight: 800;
}

/* ─── Responsive ─── */
@media (max-width: 960px) {
  .hero-grid, .grid-2, .grid-3, .footer-grid { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: repeat(2,1fr); }
  .links { display: none; }
  .quick-grid { grid-template-columns: repeat(2,1fr); }
  .package.featured { transform: none; }
  .section-head { display: block; }
  .section-head .btn { margin-top: 14px; }
  .stats { grid-template-columns: repeat(2,1fr); }
  section { padding: 60px 0; }
  .hero { padding: 56px 0 40px; }
}
@media (max-width: 560px) {
  .container { width: min(100% - 24px, 1160px); }
  h1 { font-size: clamp(28px, 9vw, 38px); }
  h2 { font-size: clamp(22px, 7.5vw, 30px); }
  .lead, .sub { font-size: 15px; }
  .card { padding: 18px; }
  .hero { padding-top: 36px; padding-bottom: 32px; }
  .actions .btn { width: 100%; justify-content: center; }
  .quick-grid, .grid-4, .gallery, .stats { grid-template-columns: 1fr; }
  .nav-inner { min-height: 64px; gap: 10px; }
  .logo { font-size: 17px; }
  .logo-mark { width: 36px; height: 36px; }
  .hero-side { padding: 18px; }
  .food-card img, .demo-card img { height: 195px; }
  .premium-hero { min-height: 640px; }
  .float-wa { width: 54px; height: 54px; }
  .trust-line { border-radius: 16px; line-height: 1.7; display: flex; }
  .growth-demo-nav a { width: 100%; text-align: center; }
  .growth-page-content { padding: 20px; }
  .growth-hero-image { height: 240px; }
  .question-chips { gap: 8px; }
  .question-chip { font-size: 14px; padding: 11px 16px; }
  .cta { padding: 40px 20px; }
  .ready-box { padding: 22px; }
}