/* ============================================================
   حكايات الطيور — التنسيق العام
   ============================================================ */
:root {
  --emerald-950: #06231d;
  --emerald-900: #0a3a30;
  --emerald-800: #0f5142;
  --emerald-600: #1a7a62;
  --emerald-500: #23997b;
  --gold: #e8b64c;
  --gold-dark: #c8952c;
  --cream: #faf6ee;
  --cream-dark: #f1ead9;
  --ink: #1d2a27;
  --ink-soft: #56655f;
  --white: #ffffff;
  --red: #e05252;
  --radius: 18px;
  --shadow: 0 12px 40px rgba(6, 35, 29, 0.12);
  --font: "Cairo", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--cream);
  overflow-x: hidden;
  line-height: 1.8;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
.container { width: min(1160px, 92%); margin-inline: auto; }

/* ---------- الأزرار ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 30px; border-radius: 999px;
  font-family: var(--font); font-weight: 700; font-size: 1rem;
  cursor: pointer; border: 2px solid transparent;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}
.btn:hover { transform: translateY(-3px); }
.btn-gold {
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: var(--emerald-950);
  box-shadow: 0 8px 24px rgba(232, 182, 76, 0.4);
}
.btn-outline { border-color: rgba(255, 255, 255, 0.5); color: var(--white); }
.btn-outline:hover { background: rgba(255, 255, 255, 0.12); }
.btn-whatsapp { background: #25d366; color: #fff; padding: 10px 22px; font-size: 0.95rem; }
.btn-whatsapp:hover { box-shadow: 0 8px 20px rgba(37, 211, 102, 0.4); }

/* ---------- شريط التنقل ---------- */
.navbar {
  position: fixed; inset-inline: 0; top: 0; z-index: 100;
  padding: 18px 0; transition: all 0.35s ease;
}
.navbar.scrolled {
  background: rgba(6, 35, 29, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding: 10px 0;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.25);
}
.nav-inner { display: flex; align-items: center; gap: 28px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 900; font-size: 1.35rem; color: var(--white); }
.brand-icon { font-size: 1.7rem; filter: drop-shadow(0 2px 6px rgba(0,0,0,0.3)); }
.brand em { font-style: normal; color: var(--gold); }
.nav-links { display: flex; gap: 6px; list-style: none; margin-inline-start: auto; }
.nav-links a {
  color: rgba(255, 255, 255, 0.85); font-weight: 600; font-size: 0.98rem;
  padding: 8px 16px; border-radius: 999px; transition: all 0.25s;
}
.nav-links a:hover, .nav-links a.active { color: var(--gold); background: rgba(255, 255, 255, 0.08); }
.nav-toggle { display: none; background: none; border: none; color: var(--white); font-size: 1.6rem; cursor: pointer; }

/* ---------- الواجهة ---------- */
.hero {
  position: relative; min-height: 100vh;
  display: flex; align-items: center;
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(35, 153, 123, 0.35), transparent 60%),
    radial-gradient(900px 500px at 10% 110%, rgba(232, 182, 76, 0.15), transparent 60%),
    linear-gradient(160deg, var(--emerald-950), var(--emerald-900) 55%, var(--emerald-800));
  color: var(--white);
  overflow: hidden;
  padding: 130px 0 120px;
}
.hero-content { position: relative; z-index: 3; text-align: center; }
.hero-kicker {
  display: inline-block; padding: 8px 22px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.09); border: 1px solid rgba(255, 255, 255, 0.18);
  color: var(--gold); font-weight: 700; font-size: 0.95rem; margin-bottom: 24px;
  letter-spacing: 0.5px;
}
.hero-title {
  font-family: "Amiri", var(--font);
  font-size: clamp(2.2rem, 5.5vw, 4rem);
  font-weight: 700; line-height: 1.5; margin-bottom: 20px;
  text-shadow: 0 4px 30px rgba(0, 0, 0, 0.35);
}
.grad {
  background: linear-gradient(90deg, var(--gold), #f7dfa0, var(--gold));
  background-size: 200% auto;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: shine 4s linear infinite;
}
@keyframes shine { to { background-position: 200% center; } }
.hero-sub {
  max-width: 640px; margin-inline: auto; font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.82); margin-bottom: 36px;
}
.hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-bottom: 60px; }
.hero-stats {
  display: flex; justify-content: center; gap: clamp(24px, 6vw, 80px); flex-wrap: wrap;
}
.stat strong { display: block; font-size: 2.4rem; font-weight: 900; color: var(--gold); line-height: 1.2; }
.stat span { color: rgba(255, 255, 255, 0.75); font-size: 0.95rem; }

.hero-wave { position: absolute; bottom: -1px; inset-inline: 0; z-index: 2; }
.hero-wave svg { width: 100%; height: 90px; display: block; }

/* الطيور المتحركة */
.hero-sky { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.bird {
  position: absolute; width: 42px; height: 22px; opacity: 0.7;
  background: none;
}
.bird::before, .bird::after {
  content: ""; position: absolute; top: 50%; width: 22px; height: 10px;
  border: 3px solid rgba(255, 255, 255, 0.75); border-bottom: none; border-left: none;
  border-radius: 0 100% 0 0; transform-origin: 0% 100%;
}
.bird::before { right: 50%; transform: scaleX(-1) rotate(-8deg); animation: flapL 0.6s ease-in-out infinite alternate; }
.bird::after { left: 50%; transform: rotate(-8deg); animation: flapR 0.6s ease-in-out infinite alternate; }
@keyframes flapL { to { transform: scaleX(-1) rotate(24deg); } }
@keyframes flapR { to { transform: rotate(24deg); } }
.bird-1 { top: 18%; animation: fly 26s linear infinite; }
.bird-2 { top: 30%; animation: fly 34s linear infinite 6s; transform: scale(0.7); }
.bird-3 { top: 12%; animation: fly 40s linear infinite 14s; transform: scale(0.55); }
.bird-4 { top: 42%; animation: fly 30s linear infinite 20s; transform: scale(0.85); }
@keyframes fly {
  from { left: -8%; }
  to { left: 108%; }
}

/* فقاعات (لمسة أسماك الزينة) */
.bubbles { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.bubble {
  position: absolute; bottom: -60px;
  border-radius: 50%;
  background: radial-gradient(circle at 32% 30%, rgba(255,255,255,0.55), rgba(255,255,255,0.06) 60%);
  animation: rise linear infinite;
}
@keyframes rise {
  from { transform: translateY(0) translateX(0); opacity: 0; }
  10% { opacity: 0.8; }
  90% { opacity: 0.5; }
  to { transform: translateY(-110vh) translateX(30px); opacity: 0; }
}

/* ---------- الأقسام العامة ---------- */
.section { padding: 90px 0; }
.section-kicker {
  text-align: center; color: var(--emerald-600); font-weight: 800;
  letter-spacing: 1px; margin-bottom: 8px;
}
.section-title {
  text-align: center; font-size: clamp(1.7rem, 3.5vw, 2.5rem);
  font-weight: 900; color: var(--emerald-950); margin-bottom: 14px;
  position: relative;
}
.section-title::after {
  content: ""; display: block; width: 70px; height: 4px; border-radius: 4px;
  background: linear-gradient(90deg, var(--gold), var(--gold-dark));
  margin: 16px auto 0;
}
.section-sub { text-align: center; color: var(--ink-soft); max-width: 620px; margin: 0 auto 52px; }

/* ---------- بطاقات من نحن ---------- */
.cards-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px;
}
.card {
  background: var(--white); border-radius: var(--radius); padding: 36px 26px;
  text-align: center; box-shadow: var(--shadow);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
  border: 1px solid rgba(6, 35, 29, 0.05);
}
.card:hover { transform: translateY(-10px); box-shadow: 0 24px 50px rgba(6, 35, 29, 0.18); }
.card-icon {
  width: 78px; height: 78px; margin: 0 auto 18px; font-size: 2.2rem;
  display: grid; place-items: center; border-radius: 24px;
  background: linear-gradient(135deg, var(--cream-dark), #fff);
  box-shadow: inset 0 0 0 1px rgba(6, 35, 29, 0.06);
  transition: transform 0.35s ease;
}
.card:hover .card-icon { transform: rotate(-8deg) scale(1.1); }
.card h3 { font-size: 1.25rem; font-weight: 800; color: var(--emerald-900); margin-bottom: 10px; }
.card p { color: var(--ink-soft); font-size: 0.95rem; }

/* ---------- الإعلانات ---------- */
.ads { background: linear-gradient(180deg, var(--cream), var(--cream-dark)); }
.ads-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 28px;
}
.ad-card {
  background: var(--white); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); display: flex; flex-direction: column;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.ad-card:hover { transform: translateY(-8px); box-shadow: 0 26px 55px rgba(6, 35, 29, 0.2); }
.ad-media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; }
.ad-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.ad-card:hover .ad-media img { transform: scale(1.08); }
.ad-badge {
  position: absolute; top: 14px; inset-inline-start: 14px;
  padding: 6px 16px; border-radius: 999px; font-weight: 800; font-size: 0.85rem;
  color: #fff; box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse { 50% { transform: scale(1.07); } }
.ad-badge.sale { background: linear-gradient(135deg, #e05252, #b83232); }
.ad-badge.product { background: linear-gradient(135deg, var(--gold), var(--gold-dark)); color: var(--emerald-950); }
.ad-badge.pet { background: linear-gradient(135deg, var(--emerald-500), var(--emerald-800)); }
.ad-body { padding: 24px; display: flex; flex-direction: column; flex: 1; }
.ad-body h3 { font-size: 1.2rem; font-weight: 800; color: var(--emerald-950); margin-bottom: 8px; }
.ad-body p { color: var(--ink-soft); font-size: 0.93rem; flex: 1; }
.ad-footer { display: flex; align-items: center; justify-content: space-between; margin-top: 18px; gap: 10px; flex-wrap: wrap; }
.ad-price { font-weight: 900; color: var(--emerald-800); font-size: 1.1rem; }
.ad-price del { color: #b3b3b3; font-weight: 600; font-size: 0.9rem; margin-inline-start: 8px; }
.ad-cta {
  font-weight: 700; font-size: 0.9rem; color: var(--emerald-600);
  display: inline-flex; align-items: center; gap: 6px; transition: gap 0.25s;
}
.ad-cta:hover { gap: 10px; color: var(--emerald-800); }

/* ---------- المعرض المتحرك ---------- */
.gallery { padding-bottom: 100px; overflow: hidden; }
.marquee { overflow: hidden; padding: 12px 0; position: relative; }
.marquee::before, .marquee::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 120px; z-index: 2; pointer-events: none;
}
.marquee::before { inset-inline-start: 0; background: linear-gradient(to left, transparent, var(--cream)); }
.marquee::after { inset-inline-end: 0; background: linear-gradient(to right, transparent, var(--cream)); }
.marquee-track {
  display: flex; gap: 20px; width: max-content;
  animation: scroll 45s linear infinite;
}
.marquee-reverse .marquee-track { animation-direction: reverse; animation-duration: 55s; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes scroll { to { transform: translateX(50%); } }
.marquee-item {
  width: 300px; height: 210px; border-radius: var(--radius); overflow: hidden;
  flex-shrink: 0; cursor: zoom-in; box-shadow: 0 8px 24px rgba(6, 35, 29, 0.14);
  transition: transform 0.35s ease;
}
.marquee-item:hover { transform: scale(1.05) rotate(-1deg); }
.marquee-item img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- تواصل ---------- */
.contact {
  background:
    radial-gradient(800px 400px at 90% 0%, rgba(35, 153, 123, 0.25), transparent 60%),
    linear-gradient(160deg, var(--emerald-950), var(--emerald-900));
  color: var(--white);
}
.contact .section-title { color: var(--white); }
.contact .section-kicker { color: var(--gold); }
.contact .contact-sub { color: rgba(255, 255, 255, 0.75); }
.branches-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(310px, 1fr)); gap: 26px; }
.branch-card {
  background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius); padding: 32px 28px;
  backdrop-filter: blur(6px); transition: all 0.35s ease;
}
.branch-card:hover { background: rgba(255, 255, 255, 0.11); transform: translateY(-8px); border-color: var(--gold); }
.branch-card h3 {
  font-weight: 800; font-size: 1.25rem; color: var(--gold); margin-bottom: 10px;
  display: flex; align-items: center; gap: 8px;
}
.branch-pin { font-size: 1.4rem; }
.branch-address { color: rgba(255, 255, 255, 0.85); margin-bottom: 6px; }
.branch-line { color: rgba(255, 255, 255, 0.7); font-size: 0.92rem; margin-bottom: 4px; }
.branch-phone {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 12px;
  font-weight: 900; font-size: 1.3rem; color: var(--gold); letter-spacing: 1px;
  transition: color 0.25s ease;
}
.branch-phone:hover { color: #f7dfa0; }
.branch-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
.branch-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 9px 18px; border-radius: 999px; font-weight: 700; font-size: 0.9rem;
  background: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 255, 255, 0.22);
  color: #fff; transition: all 0.25s ease;
}
.branch-btn:hover { background: var(--gold); color: var(--emerald-950); border-color: var(--gold); transform: translateY(-2px); }
.branch-btn-wa { background: rgba(37, 211, 102, 0.2); border-color: rgba(37, 211, 102, 0.45); }
.branch-btn-wa:hover { background: #25d366; color: #fff; border-color: #25d366; }

/* ---------- التذييل ---------- */
.footer { background: var(--emerald-950); color: rgba(255, 255, 255, 0.7); padding: 44px 0; text-align: center; }
.footer-inner { display: flex; flex-direction: column; gap: 10px; align-items: center; }
.footer-brand { font-size: 1.2rem; }
.footer-copy { font-size: 0.85rem; color: rgba(255, 255, 255, 0.45); }

/* ---------- زر مشاركة الموقع ---------- */
.share-float {
  position: fixed; bottom: 100px; inset-inline-start: 26px; z-index: 90;
  width: 52px; height: 52px; border-radius: 50%; border: none; cursor: pointer;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: var(--emerald-950); display: grid; place-items: center;
  box-shadow: 0 10px 26px rgba(232, 182, 76, 0.45);
  transition: transform 0.25s ease;
}
.share-float:hover { transform: scale(1.12) rotate(-8deg); }
.share-toast {
  position: fixed; bottom: 32px; inset-inline: 0; margin-inline: auto;
  width: max-content; max-width: 88vw; z-index: 300;
  background: var(--emerald-950); color: #fff; font-weight: 700; font-size: 0.95rem;
  padding: 13px 26px; border-radius: 999px;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.35);
  opacity: 0; pointer-events: none; transform: translateY(18px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.share-toast.show { opacity: 1; transform: none; }

/* ---------- زر واتساب العائم ---------- */
.whatsapp-float {
  position: fixed; bottom: 26px; inset-inline-start: 26px; z-index: 90;
  width: 60px; height: 60px; border-radius: 50%;
  background: #25d366; color: #fff; display: grid; place-items: center;
  box-shadow: 0 10px 30px rgba(37, 211, 102, 0.5);
  animation: float 3s ease-in-out infinite;
  transition: transform 0.25s ease;
}
.whatsapp-float:hover { transform: scale(1.12); }
@keyframes float { 50% { transform: translateY(-7px); } }

/* ---------- نافذة التكبير ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(4, 20, 17, 0.92);
  display: none; align-items: center; justify-content: center; padding: 4vh 4vw;
}
.lightbox.open { display: flex; animation: fadeIn 0.25s ease; }
@keyframes fadeIn { from { opacity: 0; } }
.lightbox img { max-width: 100%; max-height: 100%; border-radius: 12px; box-shadow: 0 20px 80px rgba(0,0,0,0.6); }
.lightbox-close {
  position: absolute; top: 22px; inset-inline-end: 26px;
  background: rgba(255, 255, 255, 0.12); border: none; color: #fff;
  width: 46px; height: 46px; border-radius: 50%; font-size: 1.2rem; cursor: pointer;
  transition: background 0.25s;
}
.lightbox-close:hover { background: rgba(255, 255, 255, 0.25); }

/* ---------- حركة الظهور عند التمرير ---------- */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.8s ease, transform 0.8s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ---------- الجوال ---------- */
@media (max-width: 860px) {
  .nav-cta { display: none; }
  .nav-toggle { display: block; margin-inline-start: auto; }
  .nav-links {
    position: fixed; top: 0; inset-inline-end: -100%; height: 100vh; width: min(300px, 80vw);
    flex-direction: column; background: var(--emerald-950); padding: 90px 26px;
    gap: 8px; transition: inset-inline-end 0.4s ease; margin: 0;
    box-shadow: -10px 0 40px rgba(0,0,0,0.4);
  }
  .nav-links.open { inset-inline-end: 0; }
  .nav-links a { display: block; font-size: 1.1rem; }
  .marquee-item { width: 230px; height: 160px; }
  .section { padding: 64px 0; }
}
