/* Mama Layla landing page — brand colors from the logo, Cairo font (self-hosted). */

@font-face {
  font-family: "Cairo";
  font-style: normal;
  font-weight: 200 1000;
  font-display: swap;
  src: url("../fonts/cairo-arabic-wght-normal.woff2") format("woff2");
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC;
}
@font-face {
  font-family: "Cairo";
  font-style: normal;
  font-weight: 200 1000;
  font-display: swap;
  src: url("../fonts/cairo-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --primary: #d7143a;
  --primary-dark: #a80e2c;
  --primary-soft: #fde8ec;
  --accent: #f4b32e;
  --accent-soft: #fef3d9;
  --brown: #4a1f17;
  --pink: #ea3552;
  --leaf: #5a8a2b;
  --cream: #fff8f1;
  --text: #2b1410;
  --muted: #7a625a;
  --border: #f0e2d6;
  --white: #ffffff;
  --radius: 22px;
  --shadow: 0 18px 40px rgba(74, 31, 23, .12);
  --shadow-sm: 0 6px 18px rgba(74, 31, 23, .08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Cairo", Tahoma, Arial, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { margin: 0; line-height: 1.35; }
p { margin: 0; }

.container { width: min(1180px, 100% - 40px); margin-inline: auto; }
.narrow { width: min(820px, 100% - 40px); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 28px; border-radius: 14px; font-weight: 800; font-size: 16px;
  border: 0; cursor: pointer; transition: transform .2s, box-shadow .2s, background .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn-sm { padding: 9px 18px; font-size: 14px; border-radius: 12px; }
.btn-primary { background: var(--primary); color: var(--white); box-shadow: 0 10px 22px rgba(215, 20, 58, .28); }
.btn-primary:hover { background: var(--primary-dark); }
.btn-accent { background: var(--accent); color: var(--brown); box-shadow: 0 10px 22px rgba(244, 179, 46, .3); }

.store-buttons { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.store-btn {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--brown); color: var(--white);
  padding: 10px 20px; border-radius: 14px; min-width: 190px;
  transition: transform .2s, background .2s;
}
.store-btn:hover { transform: translateY(-2px); background: #2f120d; }
.store-btn svg { width: 28px; height: 28px; flex: none; }
.store-btn span { display: flex; flex-direction: column; line-height: 1.2; font-weight: 800; font-size: 18px; direction: ltr; text-align: left; }
.store-btn small { font-weight: 600; font-size: 11px; opacity: .8; direction: rtl; text-align: left; }
.store-btn-light { background: var(--white); color: var(--brown); }
.store-btn-light:hover { background: var(--accent-soft); }

.eyebrow {
  display: inline-block; background: var(--primary-soft); color: var(--primary);
  font-weight: 800; font-size: 14px; padding: 4px 14px; border-radius: 99px; margin-bottom: 14px;
}
.eyebrow-light { background: rgba(244, 179, 46, .18); color: var(--accent); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 248, 241, .86);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s;
}
.site-header.scrolled { border-color: var(--border); box-shadow: var(--shadow-sm); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 900; font-size: 22px; color: var(--primary); }
.brand img { width: 54px; height: 54px; object-fit: contain; }
.nav-links { display: flex; align-items: center; gap: 26px; font-weight: 700; color: var(--brown); }
.nav-links a:not(.btn):hover { color: var(--primary); }
.menu-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.menu-toggle span { display: block; width: 26px; height: 3px; border-radius: 3px; background: var(--brown); margin: 5px 0; transition: .25s; }

/* ---------- Hero ---------- */
.hero { position: relative; background: var(--cream); padding: 60px 0 90px; overflow: hidden; }
.hero-blob { position: absolute; border-radius: 50%; filter: blur(10px); opacity: .55; }
.blob-1 { width: 520px; height: 520px; background: radial-gradient(circle, rgba(244, 179, 46, .55), transparent 70%); top: -160px; left: -140px; }
.blob-2 { width: 420px; height: 420px; background: radial-gradient(circle, rgba(215, 20, 58, .22), transparent 70%); bottom: -180px; right: -100px; }
.hero-grid { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: 50px; align-items: center; }
.hero h1 { font-size: clamp(34px, 5vw, 58px); font-weight: 900; color: var(--brown); }
.hl { color: var(--primary); position: relative; white-space: nowrap; }
.hl::after { content: ""; position: absolute; inset-inline: 0; bottom: 4px; height: 12px; background: rgba(244, 179, 46, .45); border-radius: 8px; z-index: -1; }
.lead { margin-top: 18px; font-size: 18px; color: var(--muted); max-width: 560px; }
.hero-points { list-style: none; padding: 0; margin: 26px 0 0; display: flex; flex-wrap: wrap; gap: 8px 20px; font-weight: 700; color: var(--brown); font-size: 15px; }

/* Phone mockup */
.hero-visual { position: relative; display: flex; justify-content: center; }
.phone {
  position: relative; width: 300px; height: 610px; border-radius: 46px; padding: 12px;
  background: #1c0c09; box-shadow: 0 40px 80px rgba(74, 31, 23, .35), inset 0 0 0 2px #3a1a14;
  transform: rotate(-3deg);
}
.phone-notch { position: absolute; top: 18px; left: 50%; transform: translateX(-50%); width: 90px; height: 24px; background: #1c0c09; border-radius: 20px; z-index: 2; }
.screen { position: relative; height: 100%; border-radius: 36px; background: var(--cream); overflow: hidden; padding: 46px 14px 0; font-size: 11px; }
.app-top { display: flex; justify-content: space-between; align-items: center; }
.app-hello { font-weight: 900; font-size: 15px; }
.app-sub { color: var(--muted); font-size: 10px; }
.app-icons { display: flex; gap: 5px; }
.app-icons i { width: 26px; height: 26px; border-radius: 50%; background: var(--primary-soft); }
.app-search-row { display: flex; align-items: center; gap: 8px; margin-top: 10px; }
.app-search-row img { width: 40px; height: 40px; object-fit: contain; }
.app-search { flex: 1; background: var(--white); border: 1px solid var(--border); border-radius: 12px; padding: 8px 10px; color: var(--muted); }
.app-stories { display: flex; gap: 10px; margin-top: 12px; }
.story { text-align: center; width: 54px; }
.story em { font-style: normal; font-size: 8.5px; color: var(--text); display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ring { display: grid; place-items: center; width: 50px; height: 50px; border-radius: 50%; padding: 3px; background: conic-gradient(var(--accent), var(--primary), var(--pink), var(--accent)); }
.ring.seen { background: var(--border); }
.ring b { display: grid; place-items: center; width: 100%; height: 100%; border-radius: 50%; background: var(--white); font-size: 22px; border: 2px solid var(--white); }
.app-banner {
  margin-top: 12px; height: 108px; border-radius: 16px; overflow: hidden; display: flex; align-items: center; justify-content: space-between;
  background: linear-gradient(90deg, var(--brown) 0%, #7a2e1d 55%, #e9a25a 100%); padding: 0 14px; color: var(--white);
}
.banner-text strong { display: block; font-size: 14px; line-height: 1.4; }
.price-pill { display: inline-block; margin-top: 6px; background: var(--accent); color: var(--brown); font-weight: 900; padding: 1px 10px; border-radius: 99px; font-size: 11px; }
.banner-dish { font-size: 54px; filter: drop-shadow(0 6px 10px rgba(0,0,0,.25)); }
.app-section-title { font-weight: 900; font-size: 12px; margin: 12px 0 6px; }
.app-cats { display: flex; justify-content: space-between; }
.app-cats div { text-align: center; width: 58px; }
.app-cats span { display: grid; place-items: center; width: 50px; height: 50px; margin: 0 auto 2px; border-radius: 50%; background: var(--white); box-shadow: var(--shadow-sm); font-size: 24px; }
.app-cats em { font-style: normal; font-size: 9px; font-weight: 700; }
.app-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.app-card { background: var(--white); border-radius: 12px; padding: 6px; box-shadow: var(--shadow-sm); }
.app-card .pic { height: 54px; border-radius: 9px; background: var(--accent-soft); display: grid; place-items: center; font-size: 30px; margin-bottom: 4px; }
.app-card b { display: block; font-size: 10px; }
.app-card span { color: var(--primary); font-weight: 900; font-size: 10px; }
.app-tabbar { position: absolute; bottom: 0; left: 0; right: 0; height: 46px; background: var(--white); display: flex; justify-content: space-around; align-items: center; border-top: 1px solid var(--border); }
.app-tabbar i { width: 22px; height: 22px; border-radius: 7px; background: var(--border); }
.app-tabbar i.on { background: var(--primary); }

.float-card {
  position: absolute; background: var(--white); border-radius: 16px; padding: 10px 16px; box-shadow: var(--shadow);
  font-weight: 900; color: var(--brown); line-height: 1.3; animation: float 5s ease-in-out infinite;
}
.float-card small { display: block; font-weight: 600; color: var(--muted); font-size: 12px; }
.fc-1 { top: 70px; right: -10px; }
.fc-2 { top: 300px; left: -20px; animation-delay: 1.2s; color: var(--leaf); }
.fc-3 { bottom: 60px; right: 0; animation-delay: 2.4s; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* ---------- Strip ---------- */
.strip { background: var(--white); margin-top: -40px; position: relative; z-index: 2; }
.strip-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px;
  background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px;
}
.strip-item { display: flex; gap: 12px; align-items: center; padding: 6px 10px; }
.strip-item > span { font-size: 30px; width: 54px; height: 54px; display: grid; place-items: center; border-radius: 16px; background: var(--accent-soft); flex: none; }
.strip-item b { display: block; color: var(--brown); }
.strip-item small { color: var(--muted); font-size: 13px; }

/* ---------- Sections ---------- */
.section { padding: 100px 0; }
.section-cream { background: var(--cream); }
.section-dark { background: var(--brown); color: var(--white); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 50px; }
.section-head h2, .ai-text h2, .chefs-text h2, .download h2 { font-size: clamp(28px, 3.6vw, 42px); font-weight: 900; color: var(--brown); }
.section-dark h2 { color: var(--white); }
.section-head p { margin-top: 12px; color: var(--muted); font-size: 17px; }

/* Categories */
.cats-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 28px 16px; }
.cat { text-align: center; }
.cat-circle {
  display: grid; place-items: center; width: 118px; height: 118px; margin: 0 auto 12px; border-radius: 50%;
  font-size: 54px; background: radial-gradient(circle at 30% 30%, var(--white), var(--accent-soft));
  border: 4px solid var(--white); box-shadow: 0 0 0 3px var(--accent), var(--shadow-sm);
  transition: transform .25s, box-shadow .25s;
}
.cat:hover .cat-circle { transform: translateY(-6px) rotate(-4deg); box-shadow: 0 0 0 3px var(--primary), var(--shadow); }
.cat b { color: var(--brown); font-size: 17px; }

/* Features */
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.feature {
  background: var(--white); border-radius: var(--radius); padding: 28px; border: 1px solid var(--border);
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.feature:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.f-icon { width: 60px; height: 60px; border-radius: 18px; display: grid; place-items: center; font-size: 30px; background: var(--primary-soft); margin-bottom: 16px; }
.feature h3 { font-size: 19px; color: var(--brown); margin-bottom: 8px; }
.feature p { color: var(--muted); font-size: 15px; }

/* Steps */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; counter-reset: s; position: relative; }
.steps::before { content: ""; position: absolute; top: 74px; inset-inline: 12%; border-top: 3px dashed var(--accent); z-index: 0; }
.step { position: relative; z-index: 1; text-align: center; padding: 0 8px; }
.step-num { position: absolute; top: -6px; inset-inline-start: calc(50% + 30px); width: 32px; height: 32px; border-radius: 50%; background: var(--primary); color: var(--white); font-weight: 900; display: grid; place-items: center; }
.step-icon { width: 120px; height: 120px; margin: 14px auto 18px; border-radius: 50%; background: var(--white); border: 3px solid var(--accent); display: grid; place-items: center; font-size: 50px; box-shadow: var(--shadow-sm); }
.step h3 { color: var(--brown); font-size: 19px; margin-bottom: 6px; }
.step p { color: var(--muted); font-size: 15px; }

/* AI */
.ai-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.ai-text p { color: #f1dfd3; font-size: 17px; margin-top: 12px; }
.ticks { list-style: none; padding: 0; margin: 20px 0 30px; display: grid; gap: 10px; }
.ticks li { position: relative; padding-inline-start: 34px; font-weight: 700; }
.ticks li::before { content: "✓"; position: absolute; inset-inline-start: 0; top: 2px; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: var(--brown); font-weight: 900; font-size: 13px; }
.ticks-dark li { color: var(--brown); }
.ai-card { background: var(--white); color: var(--text); border-radius: 26px; overflow: hidden; box-shadow: 0 30px 60px rgba(0, 0, 0, .35); transform: rotate(2deg); max-width: 440px; margin-inline: auto; }
.ai-photo { height: 170px; background: linear-gradient(135deg, var(--accent-soft), #f9d9a5); display: grid; place-items: center; font-size: 90px; position: relative; }
.ai-photo span { position: absolute; bottom: 10px; inset-inline-start: 12px; font-size: 12px; font-weight: 800; background: rgba(255,255,255,.85); color: var(--brown); padding: 2px 10px; border-radius: 99px; }
.ai-body { padding: 20px; }
.ai-body h4 { font-size: 21px; color: var(--brown); margin-bottom: 12px; }
.ai-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 14px; }
.ai-facts span { background: var(--primary-soft); border-radius: 12px; padding: 8px; text-align: center; font-size: 12px; color: var(--muted); line-height: 1.5; }
.ai-facts b { color: var(--text); font-size: 13px; }
.ai-table { width: 100%; border-collapse: collapse; border-radius: 14px; overflow: hidden; font-size: 14px; }
.ai-table th { background: var(--primary); color: var(--white); padding: 9px 12px; text-align: right; }
.ai-table td { padding: 9px 12px; border-top: 1px solid var(--border); }
.ai-table tr:nth-child(even) td { background: var(--cream); }
.ai-table td:last-child { color: var(--brown); font-weight: 700; }

/* Chefs */
.chefs-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.chefs-text p { color: var(--muted); font-size: 17px; margin-top: 12px; }
.dash-card { background: var(--white); border-radius: 26px; box-shadow: var(--shadow); padding: 24px; border: 1px solid var(--border); max-width: 470px; margin-inline: auto; }
.dash-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; color: var(--brown); font-size: 18px; }
.badge-ok { background: #eaf3e1; color: var(--leaf); font-size: 12px; font-weight: 800; padding: 3px 12px; border-radius: 99px; }
.dash-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 16px; }
.dash-stats div { background: var(--cream); border-radius: 14px; padding: 12px; }
.dash-stats small { display: block; color: var(--muted); font-size: 12px; }
.dash-stats b { color: var(--primary); font-size: 18px; }
.dash-order { display: flex; align-items: center; gap: 10px; padding: 12px; border: 1px solid var(--border); border-radius: 14px; margin-top: 10px; }
.dash-order span { flex: 1; font-weight: 800; }
.dash-order em { font-style: normal; color: var(--muted); font-size: 13px; }
.dash-order button { background: var(--primary); color: var(--white); border: 0; border-radius: 10px; padding: 6px 14px; font-family: inherit; font-weight: 800; }

/* Why */
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.why { background: var(--white); border-radius: var(--radius); padding: 28px; border-top: 5px solid var(--accent); box-shadow: var(--shadow-sm); }
.why b { display: block; font-size: 20px; color: var(--brown); margin-bottom: 8px; }
.why p { color: var(--muted); }

/* FAQ */
.faq { display: grid; gap: 12px; }
.faq details { background: var(--white); border: 1px solid var(--border); border-radius: 16px; padding: 0 22px; transition: box-shadow .2s; }
.faq details[open] { box-shadow: var(--shadow-sm); border-color: var(--accent); }
.faq summary { cursor: pointer; list-style: none; font-weight: 800; font-size: 17px; color: var(--brown); padding: 18px 0; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; width: 30px; height: 30px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--primary-soft); color: var(--primary); font-size: 20px; transition: transform .25s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); padding-bottom: 18px; }

/* Download */
.download { background: linear-gradient(120deg, var(--primary) 0%, var(--primary-dark) 60%, var(--brown) 100%); color: var(--white); padding: 80px 0; }
.download-inner { display: flex; align-items: center; gap: 40px; }
.download-inner img { width: 150px; height: 150px; object-fit: contain; filter: drop-shadow(0 10px 20px rgba(0,0,0,.3)); }
.download h2 { color: var(--white); }
.download p { opacity: .9; font-size: 18px; margin-top: 6px; }

/* Footer */
.site-footer { background: #2a110c; color: #e8d3c8; padding: 60px 0 24px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 30px; }
.footer-grid b { display: block; color: var(--accent); margin-bottom: 10px; }
.footer-grid a:not(.brand) { display: block; padding: 3px 0; opacity: .85; }
.footer-grid a:not(.brand):hover { opacity: 1; color: var(--white); }
.footer-grid p { margin-top: 10px; opacity: .8; }
.brand-light { color: var(--white); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 40px; padding-top: 20px; font-size: 14px; opacity: .7; text-align: center; }

.to-top {
  position: fixed; bottom: 22px; left: 22px; width: 46px; height: 46px; border-radius: 50%;
  background: var(--primary); color: var(--white); display: grid; place-items: center; font-size: 20px; font-weight: 900;
  box-shadow: var(--shadow); opacity: 0; pointer-events: none; transition: opacity .25s; z-index: 40;
}
.to-top.show { opacity: 1; pointer-events: auto; }

/* Reveal on scroll (only when JS runs, so the page never stays hidden) */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .nav-links { gap: 16px; font-size: 15px; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .strip-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
  .menu-toggle { display: block; }
  .nav-links {
    position: absolute; top: 76px; inset-inline: 0; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--cream); border-bottom: 1px solid var(--border); padding: 8px 20px 18px;
    box-shadow: var(--shadow-sm); display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a:not(.btn) { padding: 12px 0; border-bottom: 1px solid var(--border); }
  .nav-cta { margin-top: 12px; }
  .menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

  .hero { padding-top: 30px; }
  .hero-grid, .ai-grid, .chefs-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-text { text-align: center; }
  .lead { margin-inline: auto; }
  .store-buttons, .hero-points { justify-content: center; }
  .chefs-visual { order: 2; }
  .cats-grid { grid-template-columns: repeat(3, 1fr); }
  .cat-circle { width: 96px; height: 96px; font-size: 44px; }
  .steps { grid-template-columns: repeat(2, 1fr); row-gap: 40px; }
  .steps::before { display: none; }
  .why-grid { grid-template-columns: 1fr; }
  .download-inner { flex-direction: column; text-align: center; }
  .download .store-buttons { justify-content: center; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
  .section { padding: 70px 0; }
}

@media (max-width: 520px) {
  .container, .narrow { width: calc(100% - 32px); }
  .brand span { font-size: 19px; }
  .features-grid, .strip-grid { grid-template-columns: 1fr; }
  .cats-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; }
  .phone { transform: none; width: 270px; height: 560px; }
  .float-card { font-size: 13px; padding: 8px 12px; }
  .fc-1 { right: -4px; top: 6px; }
  .fc-2 { left: -4px; }
  .store-btn { min-width: 0; flex: 1 1 160px; }
  .dash-stats { grid-template-columns: 1fr 1fr; }
  .dash-stats div:last-child { grid-column: 1 / -1; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .float-card { animation: none; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
}
