/*
Theme Name:  Top Vet Clinic — Elementor
Description: قالب عيادة القمة البيطرية — متوافق مع Elementor بالكامل
Version:     2.0
Author:      Top Vet Clinic
Text Domain: topvet
*/

/* ═══════════════════════════════════════
   TOKENS
═══════════════════════════════════════ */
:root {
  --c-blue:    #0094C8;
  --c-blue-dk: #006E9B;
  --c-blue-lt: #E3F4FB;
  --c-hero:    #0C1F34;
  --c-orange:  #E8741C;
  --c-red:     #E53E3E;
  --c-red-lt:  #FFF0F0;
  --c-green:   #3DAF7A;
  --c-ink:     #0C1B2E;
  --c-ink-2:   #2A3B50;
  --c-muted:   #5B7080;
  --c-border:  #D4E5EE;
  --c-surface: #F4F9FB;
  --c-white:   #FFFFFF;
  --r-sm: 8px; --r-md: 12px; --r-lg: 16px; --r-pill: 100px;
  --sh-sm: 0 2px 6px rgba(0,148,200,.12);
  --sh-md: 0 4px 12px rgba(0,148,200,.16);
  --ease: cubic-bezier(0.23,1,0.32,1);
  --hh: 68px;
}

/* RESET */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body {
  font-family: 'Tajawal', sans-serif;
  color: var(--c-ink-2);
  background: var(--c-white);
  line-height: 1.7;
  overflow-x: hidden;
  direction: rtl;
}
a { text-decoration: none; color: inherit; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
img { display: block; max-width: 100%; }
h1, h2, h3 { text-wrap: balance; }

/* Elementor compatibility */
.elementor-page #main,
.elementor-page .site-content {
  padding: 0 !important;
  margin: 0 !important;
}
.elementor-section-wrap { width: 100%; }

/* ═══ HEADER ═══ */
#hdr {
  position: fixed; inset: 0 0 auto;
  height: var(--hh);
  background: var(--c-hero);
  border-bottom: 1px solid rgba(255,255,255,.08);
  z-index: 9999;
  transition: background 300ms var(--ease), box-shadow 300ms var(--ease);
}
#hdr.light {
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(16px);
  border-bottom-color: var(--c-border);
  box-shadow: var(--sh-sm);
}
.hdr-in {
  max-width: 1160px; margin: 0 auto; padding: 0 24px;
  height: 100%; display: flex; align-items: center;
  justify-content: space-between; gap: 16px;
}
.logo { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.logo-icon { width: 42px; height: 42px; }
.logo-txt { display: flex; flex-direction: column; line-height: 1.15; }
.logo-en {
  font-family: 'Outfit', sans-serif; font-size: 11.5px;
  font-weight: 800; color: var(--c-blue);
  letter-spacing: .1em; text-transform: uppercase;
}
.logo-ar { font-size: 12.5px; font-weight: 700; color: var(--c-orange); }

.nav { display: flex; align-items: center; gap: 2px; list-style: none; }
.nav a {
  font-size: 13px; font-weight: 500; color: rgba(255,255,255,.8);
  padding: 7px 12px; border-radius: var(--r-sm);
  transition: color 180ms, background 180ms;
}
.nav a:hover { background: rgba(255,255,255,.1); color: #fff; }
#hdr.light .nav a { color: var(--c-ink-2); }
#hdr.light .nav a:hover { background: var(--c-blue-lt); color: var(--c-blue); }

.hdr-act { display: flex; align-items: center; gap: 9px; }
.lang-btn {
  display: flex; align-items: center; gap: 5px;
  font-size: 12px; font-weight: 700; color: rgba(255,255,255,.7);
  padding: 6px 13px; border-radius: var(--r-sm);
  border: 1.5px solid rgba(255,255,255,.25);
  transition: all 180ms; background: transparent; font-family: inherit;
}
.lang-btn:hover { color: #fff; border-color: rgba(255,255,255,.6); }
#hdr.light .lang-btn { color: var(--c-muted); border-color: var(--c-border); }
#hdr.light .lang-btn:hover { color: var(--c-blue); border-color: var(--c-blue); }

.btn-hdr {
  background: var(--c-blue); color: #fff;
  font-size: 13px; font-weight: 700; padding: 9px 20px;
  border-radius: var(--r-md); font-family: inherit;
  transition: background 180ms, transform 160ms var(--ease);
}
.btn-hdr:hover { background: var(--c-blue-dk); }
.btn-hdr:active { transform: scale(0.97); }

.ham {
  display: none; flex-direction: column;
  gap: 5px; padding: 7px;
}
.ham span {
  display: block; width: 21px; height: 2px;
  background: rgba(255,255,255,.8); border-radius: 2px;
}
#hdr.light .ham span { background: var(--c-ink); }

/* Mobile menu */
#mmenu {
  display: none; position: fixed;
  top: var(--hh); left: 0; right: 0;
  background: #fff; border-bottom: 1px solid var(--c-border);
  z-index: 9998; flex-direction: column; gap: 4px;
  padding: 14px 20px; box-shadow: var(--sh-md);
}
#mmenu.open { display: flex; }
#mmenu a {
  padding: 11px 14px; border-radius: var(--r-sm);
  font-size: 14px; font-weight: 500; color: var(--c-ink-2);
  transition: background 150ms, color 150ms;
}
#mmenu a:hover { background: var(--c-blue-lt); color: var(--c-blue); }

/* Main content padding for fixed header */
#main {
  padding-top: var(--hh);
  min-height: 60vh;
}
.elementor-page #main { padding-top: var(--hh); }

/* Progress bar */
#pbar { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 99999; pointer-events: none; }
#pb { height: 3px; width: 0%; background: var(--c-orange); transition: width 80ms linear; }

/* Toast */
#toast {
  position: fixed; bottom: 28px; left: 28px; z-index: 9990;
  background: var(--c-ink); color: #fff;
  padding: 13px 20px; border-radius: var(--r-md);
  font-size: 13.5px; font-weight: 600;
  opacity: 0; transform: translateY(12px) scale(.95);
  pointer-events: none;
  transition: opacity 250ms var(--ease), transform 250ms var(--ease);
  display: flex; align-items: center; gap: 9px;
}
#toast.show { opacity: 1; transform: none; }

/* FABs */
.fab-stack {
  position: fixed; bottom: 26px; left: 26px;
  z-index: 9990; display: flex; flex-direction: column; gap: 10px;
}
.fab-w { position: relative; }
.fab {
  width: 52px; height: 52px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 18px rgba(0,0,0,.22);
  transition: transform 200ms var(--ease);
}
.fab:hover { transform: scale(1.08) translateY(-2px); }
.fab:active { transform: scale(.94); }
.fab-wa { background: #25D366; }
.fab-ph { background: var(--c-blue); }
.fab svg { width: 24px; height: 24px; display: block; }
.fab-tip {
  position: absolute; right: calc(100% + 10px); top: 50%;
  transform: translateY(-50%); white-space: nowrap;
  background: var(--c-ink); color: #fff;
  font-size: 11.5px; padding: 5px 10px;
  border-radius: 6px; opacity: 0; pointer-events: none;
  transition: opacity 180ms;
}
.fab-w:hover .fab-tip { opacity: 1; }

/* ═══ ELEMENTOR CUSTOM STYLES ═══
   هذه الأنماط تُستخدم عند بناء الصفحة في Elementor
   يمكنك الاستعانة بها عند تخصيص أي قسم
═══════════════════════════════════════ */

/* أزرار موحدة */
.topvet-btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 14px; font-weight: 700; padding: 12px 24px;
  border-radius: var(--r-md); font-family: inherit;
  transition: all 200ms var(--ease); cursor: pointer;
  white-space: nowrap;
}
.topvet-btn:active { transform: scale(.97); }
.btn-blue { background: var(--c-blue); color: #fff; }
.btn-blue:hover { background: var(--c-blue-dk); box-shadow: var(--sh-md); }
.btn-green { background: #25D366; color: #fff; }
.btn-green:hover { background: #1BAD54; }
.btn-red { background: var(--c-red); color: #fff; }
.btn-red:hover { background: #C53030; }
.btn-white { background: #fff; color: var(--c-blue); }
.btn-white:hover { box-shadow: var(--sh-md); }

/* بطاقة الطوارئ */
.emrg-pulse-ico {
  width: 80px; height: 80px; background: var(--c-red);
  border-radius: 50%; display: flex; align-items: center;
  justify-content: center; font-size: 36px; margin: 0 auto 16px;
  position: relative;
}
.emrg-pulse-ico::before, .emrg-pulse-ico::after {
  content: ''; position: absolute; inset: -8px;
  border-radius: 50%; border: 2px solid rgba(229,62,62,.35);
  animation: eRing 2.2s ease-out infinite;
}
.emrg-pulse-ico::after { inset: -18px; animation-delay: .7s; }
@keyframes eRing { 0%{opacity:1} 100%{opacity:0;transform:scale(1.3)} }

/* بطاقة خدمة */
.topvet-service-card {
  background: #fff; border-radius: var(--r-lg);
  padding: 24px 20px; border: 1px solid var(--c-border);
  transition: all 280ms var(--ease);
}
.topvet-service-card:hover {
  border-color: var(--c-blue); transform: translateY(-4px);
  box-shadow: var(--sh-md);
}

/* تقييم نجوم */
.topvet-stars { color: #F59E0B; letter-spacing: 2px; font-size: 16px; }

/* شريط الإحصائيات */
.topvet-stat-num {
  font-size: 2.2rem; font-weight: 900; color: #fff; line-height: 1;
}
.topvet-stat-num.orange { color: #F4A24A; }
.topvet-stat-num.blue   { color: #7ECBE8; }

/* Reveal animation */
.js .rv {
  opacity: 0; transform: translateY(18px);
  transition: opacity 550ms var(--ease), transform 550ms var(--ease);
}
.js .rv.vis { opacity: 1; transform: none; }

/* ═══ RESPONSIVE ═══ */
@media (max-width: 768px) {
  .nav { display: none; }
  .ham { display: flex; }
  .fab-stack { bottom: 16px; left: 16px; }
  .fab { width: 46px; height: 46px; }
  .fab svg { width: 20px; height: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .rv { opacity: 1 !important; transform: none !important; }
}
