/*
Theme Name: TayebatGuide
Theme URI: https://tayebatguide.com
Author: medo
Description: ثيم دليل الطيبات — نظام غذائي مبني على الطب النبوي والدراسات العلمية الحديثة
Version: 1.0
Text Domain: tayebatguide
*/

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --g1: #0d2818;
  --g2: #1b4332;
  --g3: #2d6a4f;
  --g4: #52b788;
  --g5: #b7e4c7;
  --g6: #d8f3dc;
  --g7: #f0faf3;
  --cream: #fafaf8;
  --white: #ffffff;
  --muted: #4a6a56;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Tajawal', sans-serif;
  background: var(--cream);
  color: var(--g1);
  overflow-x: hidden;
}

/* ====== NAVBAR ====== */
header.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 7%;
  background: rgba(250,250,248,0.96);
  border-bottom: 1px solid var(--g6);
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(10px);
}

.logo-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.logo-icon {
  width: 38px; height: 38px;
  background: var(--g3);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
}

.logo-icon i { color: #fff; font-size: 20px; }

.logo-text { font-size: 20px; font-weight: 700; color: var(--g2); }
.logo-text span { color: var(--g4); }

nav ul { list-style: none; display: flex; gap: 32px; }

nav ul a {
  text-decoration: none;
  color: var(--g2);
  font-size: 15px;
  font-weight: 500;
  padding-bottom: 3px;
  border-bottom: 2px solid transparent;
  transition: color .25s, border-color .25s;
}

nav ul a:hover { color: var(--g3); border-bottom-color: var(--g4); }

.nav-cta {
  background: var(--g3);
  color: #fff;
  border: none;
  padding: 10px 24px;
  border-radius: 24px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  font-family: 'Tajawal', sans-serif;
  direction: ltr;
unicode-bidi: isolate;
  text-decoration: none;
  display: inline-block;
  transition: background .2s, transform .15s;
}

.nav-cta:hover { background: var(--g2); transform: translateY(-2px); }

/* ====== HERO ====== */
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 90vh;
  align-items: center;
  padding: 0 7%;
  gap: 4rem;
}

.hero-left { padding: 4rem 0; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--g6);
  color: var(--g3);
  padding: 7px 16px;
  border-radius: 22px;
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 1.6rem;
  border: 1px solid var(--g5);
}

.badge i { font-size: 15px; }

.hero-title {
  font-size: 50px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--g1);
  margin-bottom: 1.2rem;
}

.hero-title .accent {
  color: var(--g3);
  position: relative;
}

.hero-title .accent::after {
  content: '';
  position: absolute;
  bottom: -4px;
  right: 0; left: 0;
  height: 3px;
  background: var(--g5);
  border-radius: 2px;
}

.hero-sub {
  font-size: 17px;
  color: var(--muted);
  line-height: 1.85;
  font-weight: 300;
  max-width: 480px;
  margin-bottom: 2.2rem;
}

.btn-row { display: flex; gap: 12px; flex-wrap: wrap; }

.btn-main {
  background: var(--g3);
  color: #fff;
  border: none;
  padding: 13px 30px;
  border-radius: 26px;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  font-family: 'Tajawal', sans-serif;
  text-decoration: none;
  display: inline-block;
  transition: background .2s, transform .15s;
}

.btn-main:hover { background: var(--g2); transform: translateY(-2px); }

.btn-ghost {
  background: transparent;
  color: var(--g3);
  border: 1.5px solid var(--g4);
  padding: 12px 26px;
  border-radius: 26px;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  font-family: 'Tajawal', sans-serif;
  text-decoration: none;
  display: inline-block;
  transition: background .2s, transform .15s;
}

.btn-ghost:hover { background: var(--g6); transform: translateY(-2px); }

.stats-row {
  display: flex;
  gap: 2.5rem;
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--g6);
}

.stat-num { font-size: 26px; font-weight: 700; color: var(--g3); }
.stat-lbl { font-size: 12px; color: var(--muted); margin-top: 3px; }

/* HERO VISUAL */
.hero-right {
  display: flex;
  justify-content: center;
  align-items: center;
}

.visual-wrap {
  width: 360px;
  height: 430px;
  position: relative;
}

.bg-shape {
  position: absolute;
  top: 25px; left: 25px; right: 25px; bottom: 25px;
  background: var(--g6);
  border-radius: 60% 40% 55% 45% / 50% 60% 40% 50%;
  animation: morphBg 10s ease-in-out infinite alternate;
}

@keyframes morphBg {
  0%   { border-radius: 60% 40% 55% 45% / 50% 60% 40% 50%; }
  50%  { border-radius: 45% 55% 40% 60% / 60% 40% 55% 45%; }
  100% { border-radius: 50% 50% 60% 40% / 45% 55% 50% 50%; }
}

.center-card {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  background: var(--white);
  border-radius: 22px;
  width: 200px;
  padding: 30px 22px;
  text-align: center;
  border: 1px solid var(--g5);
  z-index: 2;
  animation: floatCard 5s ease-in-out infinite;
}

@keyframes floatCard {
  0%, 100% { transform: translate(-50%,-50%) translateY(0); }
  50%       { transform: translate(-50%,-50%) translateY(-14px); }
}

.center-icon-wrap {
  width: 58px; height: 58px;
  background: var(--g6);
  border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 14px;
}

.center-icon-wrap i { color: var(--g3); font-size: 28px; }
.center-card h3 { font-size: 16px; font-weight: 700; color: var(--g2); margin-bottom: 4px; }
.center-card p  { font-size: 12px; color: var(--muted); }

.pill-float {
  position: absolute;
  background: var(--white);
  border: 1px solid var(--g5);
  border-radius: 32px;
  padding: 8px 15px;
  display: flex; align-items: center; gap: 7px;
  font-size: 13px; font-weight: 500; color: var(--g2);
  z-index: 3; white-space: nowrap;
}

.pill-float i { color: var(--g4); font-size: 15px; }

.pill-1 { top: 35px;    right: -15px; animation: fp1 6s   ease-in-out infinite; }
.pill-2 { bottom: 55px; right: -5px;  animation: fp2 7s   ease-in-out infinite; }
.pill-3 { top: 110px;   left: -20px;  animation: fp3 5.5s ease-in-out infinite; }

@keyframes fp1 { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-8px)} }
@keyframes fp2 { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-10px)} }
@keyframes fp3 { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-7px)} }

/* ====== TRUST STRIP ====== */
.trust-strip {
  background: var(--g2);
  padding: 16px 7%;
  display: flex;
  justify-content: center;
  gap: 3.5rem;
  flex-wrap: wrap;
}

.trust-item { display: flex; align-items: center; gap: 8px; color: var(--g5); font-size: 14px; }
.trust-item i { color: var(--g4); font-size: 17px; }

/* ====== SECTIONS ====== */
.section     { padding: 5.5rem 7%; }
.section-alt { padding: 5.5rem 7%; background: var(--g7); }

.section-head { text-align: center; margin-bottom: 3.5rem; }

.eyebrow {
  display: block;
  font-size: 12px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--g4);
  font-weight: 500;
  margin-bottom: .6rem;
}

.section-title { font-size: 36px; font-weight: 700; color: var(--g1); line-height: 1.25; }
.section-title span { color: var(--g3); }
.section-desc { font-size: 16px; color: var(--muted); font-weight: 300; margin-top: .75rem; line-height: 1.75; }

/* ====== FEATURES ====== */
.feat-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; }

.feat-card {
  background: var(--white);
  border: 1px solid var(--g6);
  border-radius: 20px;
  padding: 2rem 1.75rem;
  transition: border-color .2s, transform .2s;
}

.feat-card:hover { border-color: var(--g4); transform: translateY(-4px); }

.feat-icon {
  width: 50px; height: 50px;
  background: var(--g6);
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.2rem;
}

.feat-icon i { color: var(--g3); font-size: 23px; }
.feat-card h3 { font-size: 18px; font-weight: 700; color: var(--g2); margin-bottom: .5rem; }
.feat-card p  { font-size: 14px; color: var(--muted); line-height: 1.8; font-weight: 300; }

/* ====== FOODS GRID ====== */
.foods-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 18px; }

.food-card {
  background: var(--white);
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--g6);
  transition: transform .2s, border-color .2s;
  cursor: pointer;
  text-decoration: none;
  display: block;
  color: inherit;
}

.food-card:hover { transform: translateY(-4px); border-color: var(--g4); }

.food-thumb {
  height: 100px;
  display: flex; align-items: center; justify-content: center;
  font-size: 42px;
  overflow: hidden;
}

.food-thumb img { width: 100%; height: 100%; object-fit: cover; }

.food-thumb.c1 { background: #c8eddb; }
.food-thumb.c2 { background: var(--g6); }
.food-thumb.c3 { background: #b7e4c7; }
.food-thumb.c4 { background: #d0f0e0; }

.food-body { padding: .9rem 1rem; }
.food-name { font-size: 15px; font-weight: 700; color: var(--g1); }
.food-desc { font-size: 12px; color: var(--muted); margin-top: 4px; line-height: 1.5; }

.food-tag {
  display: inline-block;
  margin-top: 8px;
  background: var(--g6);
  color: var(--g3);
  font-size: 11px;
  padding: 3px 10px;
  border-radius: 10px;
  font-weight: 500;
}

/* ====== ARTICLES ====== */
.art-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }

.art-card {
  background: var(--white);
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--g6);
  transition: transform .2s;
  text-decoration: none;
  display: block;
  color: inherit;
}

.art-card:hover { transform: translateY(-3px); }

.art-thumb {
  height: 90px;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}

.art-thumb img { width: 100%; height: 100%; object-fit: cover; }

.art-thumb.a1 { background: var(--g6); }
.art-thumb.a2 { background: #e8f5e9; }
.art-thumb.a3 { background: var(--g5); }
.art-thumb i { font-size: 38px; color: var(--g3); }

.art-body { padding: 1.1rem 1.2rem; }

.art-tag {
  display: inline-block;
  background: var(--g6);
  color: var(--g3);
  font-size: 11px;
  padding: 3px 10px;
  border-radius: 10px;
  font-weight: 500;
  margin-bottom: .5rem;
}

.art-title { font-size: 15px; font-weight: 700; color: var(--g1); line-height: 1.45; margin-bottom: .4rem; }
.art-meta  { font-size: 12px; color: var(--muted); }

/* ====== TESTIMONIALS ====== */
.testi-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }

.testi-card {
  background: var(--white);
  border: 1px solid var(--g6);
  border-radius: 20px;
  padding: 1.8rem;
}

.stars { color: var(--g4); font-size: 15px; margin-bottom: .7rem; }

.testi-text {
  font-size: 15px;
  color: var(--g1);
  line-height: 1.8;
  font-weight: 300;
  font-style: italic;
  margin-bottom: 1.2rem;
}

.testi-author { display: flex; align-items: center; gap: 12px; }

.avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--g6);
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 700; color: var(--g3);
  overflow: hidden;
}

.avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }

.author-name { font-size: 14px; font-weight: 500; color: var(--g2); }
.author-loc  { font-size: 12px; color: var(--g4); }

/* ====== CTA BAND ====== */
.cta-band {
  background: var(--g3);
  padding: 5rem 7%;
  text-align: center;
}

.cta-band h2 { font-size: 38px; font-weight: 700; color: var(--white); margin-bottom: .8rem; }
.cta-band p  { font-size: 17px; color: var(--g5); font-weight: 300; margin-bottom: 2.2rem; }

.btn-white {
  background: var(--white);
  color: var(--g3);
  border: none;
  padding: 14px 38px;
  border-radius: 28px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  font-family: 'Tajawal', sans-serif;
  text-decoration: none;
  display: inline-block;
  transition: background .2s, transform .15s;
}

.btn-white:hover { background: var(--g6); transform: translateY(-2px); }

/* ====== FOOTER ====== */
footer.site-footer {
  background: var(--g1);
  padding: 2.5rem 7%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.foot-logo { font-size: 18px; font-weight: 700; color: var(--g4); }
.foot-links { list-style: none; display: flex; gap: 1.8rem; flex-wrap: wrap; }
.foot-links a { font-size: 13px; color: var(--g5); text-decoration: none; opacity: .7; transition: opacity .2s; }
.foot-links a:hover { opacity: 1; }
.foot-copy { font-size: 12px; color: var(--g5); opacity: .5; }

/* ====== SINGLE ARTICLE PAGE ====== */
.single-article-wrap {
  max-width: 760px;
  margin: 0 auto;
  padding: 4rem 5%;
}

.single-article-wrap .art-tag { margin-bottom: 1rem; }

.single-article-title {
  font-size: 34px;
  font-weight: 700;
  color: var(--g1);
  line-height: 1.4;
  margin-bottom: 1rem;
}

.single-article-meta {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 2rem;
  display: flex;
  gap: 14px;
  align-items: center;
}

.single-article-thumb {
  width: 100%;
  border-radius: 18px;
  overflow: hidden;
  margin-bottom: 2.5rem;
}

.single-article-thumb img { width: 100%; display: block; }

.single-article-content {
  font-size: 17px;
  line-height: 2;
  color: var(--g1);
  font-weight: 300;
}

.single-article-content h2,
.single-article-content h3 {
  color: var(--g2);
  font-weight: 700;
  margin: 2rem 0 1rem;
}

.single-article-content p { margin-bottom: 1.2rem; }

.single-article-content blockquote {
  border-right: 3px solid var(--g4);
  background: var(--g7);
  padding: 1rem 1.5rem;
  margin: 1.5rem 0;
  border-radius: 8px;
  color: var(--muted);
}

/* ====== ARCHIVE / LISTING PAGE ====== */
.archive-wrap { padding: 4rem 7%; }
.archive-head { text-align: center; margin-bottom: 3rem; }

/* ====== PAGINATION ====== */
.tg-pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 3rem;
}

.tg-pagination a, .tg-pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  padding: 0 8px;
  border-radius: 10px;
  border: 1px solid var(--g6);
  color: var(--g2);
  text-decoration: none;
  font-size: 14px;
}

.tg-pagination .current { background: var(--g3); color: #fff; border-color: var(--g3); }
.tg-pagination a:hover { border-color: var(--g4); }

/* ====== RESPONSIVE ====== */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; min-height: auto; padding: 4rem 5%; text-align: center; }
  .hero-right { display: none; }
  .hero-sub { max-width: 100%; margin-inline: auto; }
  .btn-row { justify-content: center; }
  .stats-row { justify-content: center; }
  nav ul { display: none; }
  header.site-header { padding: 16px 5%; }
  .feat-grid  { grid-template-columns: 1fr; }
  .foods-grid { grid-template-columns: repeat(2,1fr); }
  .art-grid   { grid-template-columns: 1fr; }
  .testi-grid { grid-template-columns: 1fr; }
  .section, .section-alt { padding: 3.5rem 5%; }
  .single-article-title { font-size: 26px; }
}
