/* Premium landing — Medify / Doccure inspired · RTL */
:root {
  --primary: #4C51AE;
  --secondary: #03D0B2;
  --dark: #0f172a;
  --text: #1e293b;
  --muted: #64748b;
  --bg: #f8fafc;
  --card: #ffffff;
  --radius: 14px;
  --shadow: 0 4px 24px rgba(15, 23, 42, 0.08);
}
.theme-dark {
  --bg: #0b1120;
  --card: #1e293b;
  --text: #f1f5f9;
  --muted: #94a3b8;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Vazirmatn', Tahoma, sans-serif;
  direction: rtl;
  color: var(--text);
  background: var(--bg);
  line-height: 1.75;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ─── Header ─── */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0,0,0,0.06);
}
.theme-dark .site-header { background: rgba(15,23,42,0.95); border-color: rgba(255,255,255,0.08); }
.header-inner {
  max-width: 1200px; margin: 0 auto;
  padding: 0.85rem 1.5rem;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.logo { font-weight: 700; font-size: 1.15rem; color: var(--primary); }
.logo span { color: var(--secondary); }
.nav { display: flex; gap: 1.5rem; font-size: 0.9rem; }
.nav a:hover { color: var(--primary); }
.header-cta {
  background: var(--primary); color: #fff !important;
  padding: 0.55rem 1.25rem; border-radius: 8px; font-size: 0.85rem; font-weight: 600;
  border: none; cursor: pointer; font-family: inherit;
}
.header-cta:hover { background: var(--secondary); }

/* ─── Hero split (Medify) ─── */
.hero-split {
  max-width: 1200px; margin: 0 auto;
  padding: 3rem 1.5rem 4rem;
  display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center;
}
@media (max-width: 900px) { .hero-split { grid-template-columns: 1fr; } }
.hero-badge {
  display: inline-block; background: rgba(76,81,174,0.1); color: var(--primary);
  padding: 0.35rem 1rem; border-radius: 999px; font-size: 0.8rem; font-weight: 600; margin-bottom: 1rem;
}
.hero-split h1 { font-size: 2.4rem; line-height: 1.35; margin-bottom: 1rem; font-weight: 700; }
.hero-split .sub { color: var(--muted); font-size: 1.05rem; margin-bottom: 1.5rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.btn-primary {
  background: var(--primary); color: #fff; border: none;
  padding: 0.9rem 1.75rem; border-radius: 8px; font-family: inherit;
  font-size: 0.95rem; font-weight: 600; cursor: pointer;
}
.btn-primary:hover { background: var(--secondary); }
.btn-outline {
  background: transparent; color: var(--primary); border: 2px solid var(--primary);
  padding: 0.85rem 1.65rem; border-radius: 8px; font-family: inherit; font-size: 0.95rem; cursor: pointer;
}
.hero-visual {
  position: relative; border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow);
}
.hero-visual img { width: 100%; height: 420px; object-fit: cover; }
.hero-visual .float-card {
  position: absolute; bottom: 1.5rem; right: 1.5rem;
  background: var(--card); padding: 1rem 1.25rem; border-radius: 10px;
  box-shadow: var(--shadow); font-size: 0.85rem;
}
.hero-visual .float-card strong { display: block; color: var(--primary); font-size: 1.1rem; }

/* ─── Stats ─── */
.stats-bar {
  background: var(--primary); color: #fff;
  padding: 2rem 1.5rem;
}
.stats-inner {
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; text-align: center;
}
@media (max-width: 768px) { .stats-inner { grid-template-columns: repeat(2, 1fr); } }
.stat-num { font-size: 2rem; font-weight: 700; }
.stat-label { font-size: 0.85rem; opacity: 0.9; }

/* ─── Sections ─── */
.section { padding: 4rem 1.5rem; max-width: 1200px; margin: 0 auto; }
.section-head { text-align: center; margin-bottom: 2.5rem; }
.section-head .eyebrow {
  color: var(--secondary); font-size: 0.85rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 0.5rem;
}
.section-head h2 { font-size: 1.85rem; margin-bottom: 0.5rem; }
.section-head p { color: var(--muted); max-width: 560px; margin: 0 auto; }

/* ─── Services grid ─── */
.services-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.25rem;
}
.service-card {
  background: var(--card); border-radius: var(--radius); padding: 1.5rem;
  box-shadow: var(--shadow); border: 1px solid rgba(0,0,0,0.04);
  transition: transform 0.2s, box-shadow 0.2s;
}
.theme-dark .service-card { border-color: rgba(255,255,255,0.06); }
.service-card:hover { transform: translateY(-4px); box-shadow: 0 12px 32px rgba(15,23,42,0.12); }
.service-icon {
  width: 52px; height: 52px; border-radius: 12px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; margin-bottom: 1rem;
}
.service-card h3 { font-size: 1.05rem; margin-bottom: 0.4rem; color: var(--primary); }
.service-card p { font-size: 0.88rem; color: var(--muted); }
.service-card .price { color: #059669; font-weight: 700; margin-top: 0.75rem; font-size: 0.9rem; }

/* ─── About split ─── */
.about-split { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
@media (max-width: 900px) { .about-split { grid-template-columns: 1fr; } }
.about-img { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.about-img img { width: 100%; height: 360px; object-fit: cover; }
.about-text h2 { font-size: 1.75rem; margin-bottom: 1rem; }
.about-text p { color: var(--muted); margin-bottom: 1rem; }
.credential-list { list-style: none; margin-top: 1rem; }
.credential-list li {
  padding: 0.5rem 0; padding-right: 1.5rem; position: relative; font-size: 0.9rem;
}
.credential-list li::before {
  content: '✓'; position: absolute; right: 0; color: var(--secondary); font-weight: 700;
}

/* ─── Gallery ─── */
.gallery-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem;
}
@media (max-width: 768px) { .gallery-grid { grid-template-columns: repeat(2, 1fr); } }
.gallery-grid img {
  width: 100%; height: 200px; object-fit: cover; border-radius: 10px;
  transition: transform 0.2s;
}
.gallery-grid img:hover { transform: scale(1.03); }

/* ─── Testimonials ─── */
.testimonials-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.25rem; }
.testimonial-card {
  background: var(--card); border-radius: var(--radius); padding: 1.5rem;
  box-shadow: var(--shadow); border-right: 4px solid var(--secondary);
}
.stars { color: #f59e0b; margin-bottom: 0.75rem; font-size: 0.9rem; }
.testimonial-card p { font-size: 0.92rem; color: var(--muted); font-style: italic; margin-bottom: 1rem; }
.testimonial-card .author { font-weight: 600; font-size: 0.88rem; }

/* ─── FAQ ─── */
.faq-list { max-width: 760px; margin: 0 auto; }
.faq-item {
  background: var(--card); border-radius: 10px; margin-bottom: 0.75rem;
  box-shadow: 0 1px 4px rgba(0,0,0,0.05); overflow: hidden;
}
.faq-q {
  padding: 1.1rem 1.25rem; font-weight: 600; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center;
}
.faq-a { padding: 0 1.25rem 1.1rem; color: var(--muted); font-size: 0.9rem; display: none; }
.faq-item.open .faq-a { display: block; }

/* ─── CTA band ─── */
.cta-band {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff; text-align: center; padding: 3.5rem 1.5rem; margin: 2rem 0;
}
.cta-band h2 { font-size: 1.75rem; margin-bottom: 0.75rem; }
.cta-band p { opacity: 0.92; margin-bottom: 1.5rem; }
.cta-band .btn-primary { background: #fff; color: var(--primary); }

/* ─── Contact ─── */
.contact-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.25rem;
}
.contact-card {
  background: var(--card); border-radius: var(--radius); padding: 1.5rem;
  text-align: center; box-shadow: var(--shadow);
}
.contact-card .icon { font-size: 1.75rem; margin-bottom: 0.75rem; }
.contact-card h3 { font-size: 0.95rem; margin-bottom: 0.35rem; }
.contact-card p { color: var(--muted); font-size: 0.88rem; }

/* ─── Blog ─── */
.blog-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.25rem; }
.blog-card {
  background: var(--card); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); transition: transform 0.2s;
}
.blog-card:hover { transform: translateY(-3px); }
.blog-card img { width: 100%; height: 180px; object-fit: cover; }
.blog-card .body { padding: 1.15rem; }
.blog-card .tag { font-size: 0.75rem; color: var(--secondary); font-weight: 600; }
.blog-card h3 { font-size: 1rem; margin: 0.35rem 0; }
.blog-card p { font-size: 0.85rem; color: var(--muted); }

/* ─── Footer ─── */
.site-footer {
  background: var(--dark); color: #94a3b8; padding: 2.5rem 1.5rem;
  text-align: center; font-size: 0.85rem;
}
.site-footer strong { color: #fff; }

/* ─── Chat ─── */
.chat-widget {
  position: fixed; bottom: 24px; left: 24px; width: 56px; height: 56px;
  background: var(--primary); border-radius: 50%; display: flex; align-items: center;
  justify-content: center; color: white; font-size: 1.5rem; cursor: pointer;
  box-shadow: 0 4px 16px rgba(76,81,174,0.4); z-index: 1000; border: none;
}
