﻿@import url(fontiran.css);
:root {
  --a: #0d9488;
  --b: #14b8a6;
  --c: #06b6d4;
  --font-main: IRANSans, Vazirmatn, Tahoma, sans-serif;
  --bg: #f8fafc;
  --ink: #0f172a;
  --muted: #475569;
  --card: rgba(255, 255, 255, 0.92);
  --stroke: rgba(15, 23, 42, 0.09);
  --shadow: 0 16px 40px -10px rgba(15, 23, 42, 0.08);
}
:root[data-theme='dark'] {
  --bg: #090d16;
  --ink: #f1f5f9;
  --muted: #94a3b8;
  --card: rgba(15, 23, 42, 0.86);
  --stroke: rgba(255, 255, 255, 0.09);
  --shadow: 0 16px 40px -10px rgba(0, 0, 0, 0.45);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  direction: rtl;
  font-family: var(--font-main);
  color: var(--ink);
  background:
    radial-gradient(1000px 500px at 15% 5%, rgba(13, 148, 136, 0.12), transparent 60%),
    radial-gradient(900px 500px at 85% 15%, rgba(20, 184, 166, 0.10), transparent 60%),
    var(--bg);
  min-height: 100vh;
}
a { color: inherit; text-decoration: none; }
.container { width: min(1140px, 92%); margin: 0 auto; }
.header {
  position: sticky; top: 0; z-index: 30;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--stroke);
}
:root[data-theme='dark'] .header { background: rgba(9, 13, 22, 0.82); }
.nav { display: flex; align-items: center; justify-content: space-between; padding: 12px 0; gap: 12px; }
.brand { display: flex; align-items: center; gap: 12px; }
.logo {
  width: 44px; height: 44px; border-radius: 14px;
  background: linear-gradient(135deg, var(--a), var(--b));
  display: flex; align-items: center; justify-content: center;
  color: #fff; box-shadow: var(--shadow); overflow: hidden;
}
.logo img { width: 100%; height: 100%; object-fit: cover; }
.title strong { display: block; font-weight: 800; font-size: 16px; }
.title span { display: block; color: var(--muted); font-size: 12px; }
.menu { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.menu a { padding: 8px 12px; border-radius: 12px; font-size: 14px; transition: background .15s; }
.menu a:hover { background: rgba(15, 23, 42, 0.06); }
:root[data-theme='dark'] .menu a:hover { background: rgba(255, 255, 255, 0.08); }
.themeToggleBtn { font-size: 12px; padding: 8px 12px; }

.hero { padding: 28px 0; }
.heroCard {
  display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 24px; align-items: center;
  padding: 28px; border: 1px solid var(--stroke); border-radius: 24px;
  background: var(--card); box-shadow: var(--shadow);
}
.heroBadge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; border-radius: 99px;
  background: rgba(13, 148, 136, 0.1); color: var(--a);
  font-size: 13px; font-weight: 700; margin-bottom: 12px;
}
.pulseDot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--a); box-shadow: 0 0 0 0 rgba(13, 148, 136, 0.7);
  animation: pulse 1.8s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(13, 148, 136, 0.6); }
  70% { box-shadow: 0 0 0 8px rgba(13, 148, 136, 0); }
  100% { box-shadow: 0 0 0 0 rgba(13, 148, 136, 0); }
}
.heroCard h1 { margin: 0 0 10px; font-size: 26px; line-height: 1.5; font-weight: 900; }
.heroCard p { margin: 0 0 18px; color: var(--muted); line-height: 1.9; font-size: 15px; }
.heroImgWrap {
  width: 100%; max-width: 480px; border-radius: 24px; overflow: hidden;
  box-shadow: 0 20px 40px -15px rgba(0,0,0,0.18); border: 1px solid var(--stroke);
}
.heroImg { width: 100%; height: 320px; object-fit: cover; display: block; transition: transform 0.5s ease; }
.heroImgWrap:hover .heroImg { transform: scale(1.04); }

.featuresStrip { padding: 6px 0 20px; }
.featuresGrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.featureItem {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 18px; border: 1px solid var(--stroke); border-radius: 18px;
  background: var(--card); box-shadow: var(--shadow);
}
.featIcon {
  width: 44px; height: 44px; border-radius: 12px;
  background: rgba(13, 148, 136, 0.12); color: var(--a);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.featText strong { display: block; font-size: 14px; font-weight: 800; }
.featText span { display: block; color: var(--muted); font-size: 12px; }

.actions { display: flex; gap: 10px; flex-wrap: wrap; }
.btn {
  padding: 10px 16px; border-radius: 14px; border: 1px solid var(--stroke);
  background: rgba(255, 255, 255, 0.9); color: var(--ink);
  cursor: pointer; font-family: inherit; font-size: 14px; font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center;
  transition: transform .12s, box-shadow .12s;
}
.btn:hover { transform: translateY(-1px); }
:root[data-theme='dark'] .btn { background: rgba(17, 24, 39, 0.85); color: var(--ink); }
.btn.solid {
  background: linear-gradient(135deg, var(--a), var(--b));
  color: #fff; border-color: transparent;
  box-shadow: 0 8px 20px -4px rgba(13, 148, 136, 0.35);
}
.btn.solid:hover { box-shadow: 0 12px 24px -4px rgba(13, 148, 136, 0.45); }

.section { padding: 24px 0; }
.sectionTitle h1, .sectionTitle h2 { margin: 0 0 6px; font-size: 22px; font-weight: 900; }
.sectionTitle p { margin: 0 0 16px; color: var(--muted); font-size: 14px; }

.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.card {
  border: 1px solid var(--stroke); border-radius: 20px;
  background: var(--card); overflow: hidden; box-shadow: var(--shadow);
  display: flex; flex-direction: column; transition: transform .25s ease, box-shadow .25s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 20px 48px -10px rgba(15, 23, 42, 0.14); }
.cardDeptBadge {
  display: inline-block; font-size: 11px; font-weight: 700; color: var(--a);
  background: rgba(13, 148, 136, 0.08); padding: 3px 8px; border-radius: 6px;
  margin-bottom: 8px; width: fit-content;
}
.thumb {
  position: relative; height: 160px;
  background: linear-gradient(135deg, rgba(13, 148, 136, 0.15), rgba(20, 184, 166, 0.08));
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.thumbIcon { color: var(--a); transform: scale(1.6); }
.thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.card:hover .thumb img { transform: scale(1.06); }
.inner { padding: 16px; display: flex; flex-direction: column; flex: 1; }
.inner h3 { margin: 0 0 8px; font-size: 17px; font-weight: 800; }
.inner p { margin: 0 0 14px; color: var(--muted); line-height: 1.8; font-size: 13px; flex: 1; }
.btnrow { display: flex; gap: 8px; flex-wrap: wrap; margin-top: auto; }

.doctorGrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.doctor {
  display: grid; grid-template-columns: 140px 1fr; gap: 14px; align-items: stretch;
  border: 1px solid var(--stroke); border-radius: 20px;
  background: var(--card); overflow: hidden; box-shadow: var(--shadow);
}
.photo {
  position: relative;
  background: linear-gradient(135deg, rgba(13, 148, 136, 0.15), rgba(20, 184, 166, 0.08));
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.doctor:hover .photo img { transform: scale(1.05); }
.avatar {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  color: var(--a); font-weight: 900; font-size: 18px;
}
.meta { color: var(--muted); font-size: 13px; line-height: 1.8; margin-bottom: 12px; }

.panel {
  border: 1px solid var(--stroke); border-radius: 20px;
  background: var(--card); padding: 20px; box-shadow: var(--shadow); margin-top: 20px;
}
.aboutIntroPanel { background: var(--card); border: 1px solid var(--stroke); border-radius: 20px; padding: 24px; box-shadow: var(--shadow); }
.aboutIntroContent p { color: var(--muted); line-height: 2; font-size: 14.5px; margin: 0 0 10px; }

.aboutBannerWrap { width: 100%; max-height: 380px; border-radius: 20px; overflow: hidden; margin-bottom: 20px; border: 1px solid var(--stroke); }
.aboutBannerWrap img { width: 100%; height: 100%; object-fit: cover; display: block; }
.aboutBody p { color: var(--muted); line-height: 2.1; font-size: 15px; margin-bottom: 14px; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 16px; }
.drCardPanel { text-align: center; }
.drPhotoWrap {
  width: 100%; max-width: 280px; height: 320px; margin: 0 auto 16px;
  border-radius: 20px; overflow: hidden; position: relative;
  border: 1px solid var(--stroke);
  background: linear-gradient(135deg, rgba(13, 148, 136, 0.15), rgba(20, 184, 166, 0.08));
  display: flex; align-items: center; justify-content: center;
}
.drPhotoWrap img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.drActions { display: flex; flex-direction: column; gap: 8px; max-width: 280px; margin: 0 auto; }

.doctorList { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.docRow {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 10px 14px; border: 1px solid var(--stroke); border-radius: 14px;
  background: rgba(255, 255, 255, 0.4);
}
:root[data-theme='dark'] .docRow { background: rgba(0, 0, 0, 0.15); }
.docRowPhoto {
  width: 48px; height: 48px; border-radius: 12px; overflow: hidden;
  position: relative; flex-shrink: 0;
  background: linear-gradient(135deg, var(--a), var(--b));
  display: flex; align-items: center; justify-content: center; color: #fff;
}
.docRowPhoto img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.docRowInfo { flex: 1; }
.docRowInfo strong { display: block; font-size: 14px; }
.docRowInfo span { display: block; color: var(--muted); font-size: 12px; }

.serviceHeroBanner {
  display: grid; grid-template-columns: 240px 1fr; gap: 20px; align-items: center;
  padding: 24px; border: 1px solid var(--stroke); border-radius: 20px;
  background: var(--card); box-shadow: var(--shadow); margin-bottom: 20px;
}
.serviceHeroGraphic {
  height: 180px; border-radius: 18px; position: relative; overflow: hidden;
  background: linear-gradient(135deg, rgba(13, 148, 136, 0.2), rgba(20, 184, 166, 0.1));
  display: flex; align-items: center; justify-content: center; border: 1px solid var(--stroke);
}
.serviceHeroGraphic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.serviceHeroInfo h2 { margin: 0 0 8px; font-size: 20px; font-weight: 900; }
.serviceHeroInfo p { margin: 0 0 12px; color: var(--muted); line-height: 1.9; font-size: 14px; }
.serviceHighlights { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px; border-radius: 10px; font-size: 12px; font-weight: 700;
  background: rgba(13, 148, 136, 0.1); color: var(--a);
}

.faqItem {
  border: 1px solid var(--stroke); border-radius: 14px;
  padding: 12px 16px; margin: 8px 0; background: rgba(255, 255, 255, 0.4);
}
:root[data-theme='dark'] .faqItem { background: rgba(0, 0, 0, 0.15); }
.faqItem summary { font-weight: 800; cursor: pointer; }
.faqItem p { margin: 10px 0 0; color: var(--muted); line-height: 1.9; font-size: 14px; }

.searchRow { margin: 16px 0; }
.searchRow input {
  width: 100%; max-width: 400px; padding: 12px 16px;
  border-radius: 14px; border: 1px solid var(--stroke);
  background: var(--card); color: var(--ink); font-family: inherit; font-size: 14px;
}

.footer {
  margin-top: 40px; padding: 32px 0 20px;
  border-top: 1px solid var(--stroke);
  background: rgba(255, 255, 255, 0.6); backdrop-filter: blur(10px);
}
:root[data-theme='dark'] .footer { background: rgba(9, 13, 22, 0.65); }
.cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 24px; }
.cols h4 { margin: 0 0 12px; font-size: 16px; font-weight: 800; }
.cols p { margin: 0 0 8px; color: var(--muted); font-size: 13px; line-height: 1.9; }
.footerDesc { margin-bottom: 12px !important; }
.footerQuickLinks { margin-top: 12px; color: var(--muted); font-size: 13px; }
.footerNavBtns { display: flex; gap: 8px; margin-top: 8px; }
.mini {
  margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--stroke);
  text-align: center; color: var(--muted); font-size: 12px;
}

@media (max-width: 900px) {
  .heroCard { grid-template-columns: 1fr; }
  .featuresGrid { grid-template-columns: 1fr; }
  .grid { grid-template-columns: 1fr; }
  .doctorGrid { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; }
  .cols { grid-template-columns: 1fr; }
  .serviceHeroBanner { grid-template-columns: 1fr; }
  .doctor { grid-template-columns: 110px 1fr; }
}