/* ══════════════════════════════════════
   tayyibatfood.com — Lifestyle Design v2
   Warm, inviting, food-forward aesthetic
   ══════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Noto+Kufi+Arabic:wght@400;600;700;800&family=Playfair+Display:wght@400;600;700&family=DM+Sans:wght@400;500;600&display=swap');

:root {
  --cream: #FDF8F0;
  --warm-white: #FFFCF7;
  --sand: #F5EDE0;
  --terracotta: #C4704B;
  --terracotta-light: #E8A07A;
  --terracotta-pale: #FFF0E8;
  --gold: #D4A535;
  --gold-light: #F0D77B;
  --gold-pale: #FFF8E7;
  --olive: #5B7A3A;
  --olive-light: #8BAF5C;
  --olive-pale: #F0F5E8;
  --charcoal: #2C2418;
  --warm-gray: #8C7E6E;
  --light-line: #E8DFD2;
  --green-check: #4CAF50;
  --red-x: #D44638;
  --amber-warn: #E8A317;
  --font-ar: 'Noto Kufi Arabic', system-ui, sans-serif;
  --font-display: 'Playfair Display', 'Noto Kufi Arabic', serif;
  --font-body: 'DM Sans', 'Noto Kufi Arabic', sans-serif;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow-soft: 0 4px 20px rgba(44,36,24,0.06);
  --shadow-hover: 0 8px 32px rgba(44,36,24,0.10);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-ar);
  background: var(--cream);
  color: var(--charcoal);
  line-height: 1.8;
  font-size: 16px;
  direction: rtl;
  text-align: right;
  -webkit-font-smoothing: antialiased;
}

body.ltr { direction: ltr; text-align: left; font-family: var(--font-body); }

a { color: var(--terracotta); text-decoration: none; transition: color 0.3s; }
a:hover { color: var(--gold); }
img { max-width: 100%; height: auto; }

/* ── HEADER ── */
.header {
  background: rgba(253,248,240,0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--light-line);
  position: sticky; top: 0; z-index: 100;
}

.header-inner {
  max-width: 1100px; margin: 0 auto; padding: 14px 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}

.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.logo svg { height: 40px; width: auto; }
.logo-text {
  font-family: var(--font-display); font-weight: 600; font-size: 20px;
  color: var(--charcoal); letter-spacing: 1px;
}
.logo-text span { font-family: var(--font-body); font-weight: 600; font-size: 10px; color: var(--terracotta); letter-spacing: 1.5px; display: block; margin-top: -2px; }

.nav { display: flex; align-items: center; gap: 20px; }
.nav a {
  color: var(--warm-gray); font-family: var(--font-ar); font-size: 13px; font-weight: 600;
  padding: 6px 0; border-bottom: 2px solid transparent; transition: all 0.3s;
}
.nav a:hover, .nav a.active { color: var(--charcoal); border-bottom-color: var(--gold); }

.lang-switch {
  background: var(--sand); color: var(--charcoal); border: 1px solid var(--light-line);
  padding: 6px 16px; border-radius: 20px; font-size: 12px; font-weight: 600;
  cursor: pointer; transition: all 0.3s; text-decoration: none;
}
.lang-switch:hover { background: var(--gold-pale); border-color: var(--gold); color: var(--charcoal); }

.mobile-menu { display: none; background: none; border: none; font-size: 22px; cursor: pointer; color: var(--charcoal); }

/* ── HERO ── */
.hero {
  background: linear-gradient(160deg, var(--charcoal) 0%, #3D3024 50%, #4A3828 100%);
  color: #fff; padding: 72px 24px 88px; text-align: center; position: relative; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 30% 80%, rgba(212,165,53,0.15) 0%, transparent 60%),
              radial-gradient(ellipse at 70% 20%, rgba(196,112,75,0.12) 0%, transparent 50%);
}
.hero > * { position: relative; z-index: 1; }

.hero h1 {
  font-family: var(--font-ar); font-size: 2.4rem; font-weight: 800;
  margin-bottom: 18px; line-height: 1.5;
  background: linear-gradient(135deg, #fff 40%, var(--gold-light) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p { font-size: 1.05rem; opacity: 0.85; max-width: 560px; margin: 0 auto 36px; line-height: 2; }

.hero-btns { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 30px; border-radius: 28px; font-size: 14px; font-weight: 600;
  border: none; cursor: pointer; transition: all 0.3s; font-family: var(--font-ar); text-decoration: none;
}
.btn-primary { background: var(--gold); color: var(--charcoal); }
.btn-primary:hover { background: var(--gold-light); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(212,165,53,0.3); }
.btn-secondary { background: rgba(255,255,255,0.1); color: #fff; border: 1px solid rgba(255,255,255,0.25); }
.btn-secondary:hover { background: rgba(255,255,255,0.18); }

/* ── FOOD LOOKUP ── */
.lookup-section {
  max-width: 720px; margin: -48px auto 40px; padding: 0 20px; position: relative; z-index: 10;
}

.lookup-card {
  background: var(--warm-white); border-radius: var(--radius);
  box-shadow: var(--shadow-hover); padding: 32px; border: 1px solid var(--light-line);
}

.lookup-card h2 { font-family: var(--font-ar); font-size: 1.15rem; font-weight: 700; margin-bottom: 6px; color: var(--charcoal); }
.lookup-card > p { font-size: 13px; color: var(--warm-gray); margin-bottom: 18px; }

.search-box { position: relative; margin-bottom: 14px; }
.search-box input {
  width: 100%; padding: 15px 20px; padding-right: 48px; border: 2px solid var(--light-line);
  border-radius: var(--radius-sm); font-size: 16px; font-family: var(--font-ar);
  direction: inherit; transition: all 0.3s; background: var(--cream);
}
body.ltr .search-box input { padding-right: 20px; padding-left: 48px; }
.search-box input:focus { outline: none; border-color: var(--gold); background: #fff; box-shadow: 0 0 0 4px rgba(212,165,53,0.1); }
.search-box input::placeholder { color: #bbb; }

.search-icon { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); color: var(--warm-gray); font-size: 18px; }
body.ltr .search-icon { right: auto; left: 16px; }

.category-filters { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 18px; }
.cat-btn {
  background: var(--cream); border: 1px solid var(--light-line); padding: 5px 12px;
  border-radius: 20px; font-size: 12px; cursor: pointer; transition: all 0.3s; font-family: var(--font-ar);
  color: var(--warm-gray);
}
.cat-btn:hover, .cat-btn.active { background: var(--gold-pale); border-color: var(--gold); color: var(--charcoal); }

.results-list { display: flex; flex-direction: column; gap: 8px; }

.food-item {
  display: flex; align-items: center; gap: 14px; padding: 14px 16px;
  border-radius: var(--radius-sm); border: 1px solid var(--light-line);
  transition: all 0.25s; background: #fff;
}
.food-item:hover { box-shadow: var(--shadow-soft); border-color: var(--gold-light); transform: translateX(-2px); }
body.ltr .food-item:hover { transform: translateX(2px); }

.food-status {
  width: 38px; height: 38px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; font-size: 16px; flex-shrink: 0;
}
.food-status.allowed { background: var(--olive-pale); }
.food-status.restricted { background: #FDEAEA; }
.food-status.conditional { background: var(--gold-pale); }

.food-info { flex: 1; }
.food-name { font-weight: 700; font-size: 14px; margin-bottom: 2px; }
.food-detail { font-size: 12px; color: var(--warm-gray); line-height: 1.6; }
.food-alt { font-size: 11px; color: var(--terracotta); margin-top: 4px; font-weight: 500; }
.no-results { text-align: center; padding: 36px; color: var(--warm-gray); font-size: 14px; }

/* ── QUICK ACCESS CARDS ── */
.quick-section { max-width: 1100px; margin: 0 auto; padding: 48px 24px; }

.section-title {
  font-family: var(--font-ar); font-size: 1.5rem; font-weight: 800;
  margin-bottom: 28px; color: var(--charcoal);
}

.cards-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; }

.card {
  background: #fff; border-radius: var(--radius); padding: 28px;
  box-shadow: var(--shadow-soft); border: 1px solid var(--light-line);
  transition: all 0.3s; text-decoration: none; color: inherit;
  position: relative; overflow: hidden;
}
.card::before {
  content: ''; position: absolute; top: 0; right: 0; width: 4px; height: 100%;
  background: var(--gold); opacity: 0; transition: opacity 0.3s;
}
body.ltr .card::before { right: auto; left: 0; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); border-color: var(--gold-light); }
.card:hover::before { opacity: 1; }

.card-icon { font-size: 28px; margin-bottom: 12px; }
.card h3 { font-family: var(--font-ar); font-size: 1rem; font-weight: 700; margin-bottom: 8px; color: var(--charcoal); }
.card p { font-size: 13px; color: var(--warm-gray); line-height: 1.7; }

/* ── ARTICLES ── */
.articles-section { max-width: 1100px; margin: 0 auto; padding: 40px 24px; }

.article-card {
  display: block; padding: 24px; background: #fff; border-radius: var(--radius);
  box-shadow: var(--shadow-soft); border: 1px solid var(--light-line);
  margin-bottom: 14px; transition: all 0.3s; text-decoration: none; color: inherit;
}
.article-card:hover { box-shadow: var(--shadow-hover); border-color: var(--terracotta-light); }

.article-tag {
  background: var(--terracotta-pale); color: var(--terracotta); font-size: 11px; font-weight: 600;
  padding: 4px 12px; border-radius: 12px; display: inline-block; margin-bottom: 10px;
}
.article-card h3 { font-family: var(--font-ar); font-size: 1rem; font-weight: 700; margin-bottom: 6px; color: var(--charcoal); line-height: 1.6; }
.article-card p { font-size: 13px; color: var(--warm-gray); line-height: 1.7; }

/* ── DISCLAIMER ── */
.disclaimer-bar {
  background: var(--gold-pale); border-right: 4px solid var(--gold);
  padding: 18px 24px; margin: 40px 24px; max-width: 1100px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
body.ltr .disclaimer-bar { border-right: none; border-left: 4px solid var(--gold); border-radius: var(--radius-sm) 0 0 var(--radius-sm); }
.disclaimer-bar strong { color: var(--gold); font-size: 12px; display: block; margin-bottom: 4px; letter-spacing: 0.5px; }
.disclaimer-bar p { font-size: 13px; color: var(--warm-gray); margin: 0; line-height: 1.7; }

/* ── FOOTER ── */
.footer {
  background: var(--charcoal); color: rgba(255,255,255,0.6);
  padding: 52px 24px 28px; margin-top: 60px;
}
.footer-inner {
  max-width: 1100px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 32px;
}
.footer h4 { color: var(--gold-light); font-size: 13px; margin-bottom: 16px; font-weight: 700; letter-spacing: 0.5px; }
.footer a { color: rgba(255,255,255,0.5); font-size: 13px; display: block; margin-bottom: 8px; }
.footer a:hover { color: var(--gold-light); }

.footer-bottom {
  max-width: 1100px; margin: 36px auto 0; padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.08); text-align: center; font-size: 12px;
}

/* ── ARTICLE PAGE ── */
.article-page { max-width: 740px; margin: 0 auto; padding: 44px 24px; }
.article-page h1 {
  font-family: var(--font-ar); font-size: 1.9rem; font-weight: 800;
  margin-bottom: 14px; line-height: 1.5; color: var(--charcoal);
}
.article-page .meta {
  color: var(--warm-gray); font-size: 13px; margin-bottom: 36px;
  padding-bottom: 18px; border-bottom: 2px solid var(--light-line);
}
.article-page h2 { font-family: var(--font-ar); font-size: 1.3rem; font-weight: 700; color: var(--terracotta); margin: 36px 0 14px; }
.article-page h3 { font-size: 1.1rem; font-weight: 700; color: var(--charcoal); margin: 28px 0 10px; }
.article-page p { margin-bottom: 16px; line-height: 2; color: #4A3D30; }
.article-page ul, .article-page ol { margin: 16px 0; padding-right: 20px; }
body.ltr .article-page ul, body.ltr .article-page ol { padding-right: 0; padding-left: 20px; }
.article-page li { margin-bottom: 10px; line-height: 1.8; color: #4A3D30; }
.article-page a { color: var(--terracotta); font-weight: 600; border-bottom: 1px solid var(--terracotta-light); }
.article-page a:hover { color: var(--gold); border-bottom-color: var(--gold); }

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .nav { display: none; position: absolute; top: 60px; right: 0; left: 0; background: var(--warm-white); flex-direction: column; padding: 16px 24px; border-bottom: 1px solid var(--light-line); box-shadow: var(--shadow-soft); }
  .mobile-menu { display: block; }
  .hero h1 { font-size: 1.6rem; }
  .hero { padding: 48px 20px 72px; }
  .cards-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .header-inner { padding: 12px 16px; }
  .article-page h1 { font-size: 1.5rem; }
}
@media (max-width: 480px) {
  .hero h1 { font-size: 1.3rem; }
  .lookup-card { padding: 20px; }
  .footer-inner { grid-template-columns: 1fr; }
}
