@font-face { font-family: "IRANSansX"; src: url("../assets/fonts/IRANSansX-Light.woff2") format("woff2"); font-weight: 300; font-display: swap; }
@font-face { font-family: "IRANSansX"; src: url("../assets/fonts/IRANSansX-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "IRANSansX"; src: url("../assets/fonts/IRANSansX-Medium.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "IRANSansX"; src: url("../assets/fonts/IRANSansX-DemiBold.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "IRANSansX"; src: url("../assets/fonts/IRANSansX-Bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "IRANSansX"; src: url("../assets/fonts/IRANSansX-Black.woff2") format("woff2"); font-weight: 900; font-display: swap; }

:root {
  --navy: #004878;
  --navy-2: #00609a;
  --blue: #1479c9;
  --sky: #e8f4fb;
  --green: #8cc63f;
  --ink: #17324a;
  --muted: #5a7389;
  --radius: 22px;
  --shadow: 0 10px 30px rgba(0, 72, 120, .10);
  --grad: linear-gradient(135deg, var(--navy), var(--blue) 60%, #3fb0e0);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: "IRANSansX", Tahoma, sans-serif;
  background: #f5f9fd;
  background-image: radial-gradient(rgba(20, 121, 201, .07) 1px, transparent 1px);
  background-size: 22px 22px;
  color: var(--ink);
  line-height: 1.9;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { transition: color .2s, background .2s, transform .2s, box-shadow .2s; }

/* ---------- Header ---------- */
header {
  position: sticky; top: 0; z-index: 50;
  background: var(--grad);
  color: #fff;
  padding: 10px 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  box-shadow: 0 6px 22px rgba(0, 72, 120, .28);
}
header::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -3px; height: 3px;
  background: linear-gradient(90deg, transparent, var(--green), transparent);
}
.brand { display: flex; align-items: center; gap: 12px; }
.logo-wrap {
  background: #fff; border-radius: 50%; width: 58px; height: 58px;
  display: grid; place-items: center; box-shadow: 0 0 0 3px var(--green), 0 6px 14px rgba(0,0,0,.15);
  flex: 0 0 auto; animation: spin-in 1s ease both;
}
.logo-wrap img { width: 46px; height: 46px; object-fit: contain; }
.brand h1 { font-size: 15px; font-weight: 700; }
.brand small { display: block; font-size: 12px; color: #cfeaf6; font-weight: 400; }
.header-phone {
  background: var(--green); color: var(--navy); font-weight: 700;
  padding: 8px 16px; border-radius: 999px; text-decoration: none; direction: ltr; font-size: 14px;
  box-shadow: 0 4px 10px rgba(140, 198, 63, .4);
}
.header-phone:hover { transform: translateY(-2px) scale(1.03); }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 460px; overflow: hidden;
  background: url('../assets/images/clinic.webp') center/cover no-repeat;
  display: flex; align-items: flex-end; justify-content: center;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0, 72, 120, .25) 0%, rgba(0, 72, 120, .90) 100%);
}
.blob { position: absolute; border-radius: 50%; filter: blur(2px); opacity: .35; animation: float 9s ease-in-out infinite; pointer-events: none; }
.blob.b1 { width: 260px; height: 260px; background: var(--green); top: -80px; right: -60px; }
.blob.b2 { width: 180px; height: 180px; background: #3fb0e0; bottom: 40px; left: -50px; animation-delay: -3s; }
.blob.b3 { width: 90px; height: 90px; background: #fff; top: 40%; left: 12%; opacity: .15; animation-delay: -6s; }
.hero-content {
  position: relative; text-align: center; color: #fff;
  padding: 0 20px 84px; max-width: 840px;
  animation: rise .9s ease both;
}
.tag {
  display: inline-block; background: rgba(140, 198, 63, .95); color: var(--navy);
  font-weight: 700; font-size: 13px; padding: 4px 16px; border-radius: 999px; margin-bottom: 14px;
  box-shadow: 0 4px 14px rgba(140, 198, 63, .45);
}
.hero-content h2 {
  font-size: 34px; font-weight: 900; margin-bottom: 12px; line-height: 1.6;
  text-shadow: 0 3px 14px rgba(0, 0, 0, .35);
}
.hero-content h2 span { color: var(--green); }
.hero-content p { font-size: 15px; color: #e6f5fb; max-width: 620px; margin: 0 auto; }
.hero-actions { margin-top: 22px; display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; gap: 8px; text-decoration: none; padding: 12px 24px; border-radius: 14px;
  font-weight: 700; font-size: 14px; border: 0; cursor: pointer; font-family: inherit;
}
.btn-primary { background: var(--green); color: var(--navy); box-shadow: 0 8px 18px rgba(140, 198, 63, .4); }
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 12px 24px rgba(140, 198, 63, .5); }
.btn-ghost { background: rgba(255, 255, 255, .14); color: #fff; border: 1px solid rgba(255, 255, 255, .5); backdrop-filter: blur(6px); }
.btn-ghost:hover { background: rgba(255, 255, 255, .26); transform: translateY(-3px); }

.wave { margin-top: -1px; }
.wave svg { display: block; width: 100%; height: 80px; }

/* ---------- Quick info strip ---------- */
.strip {
  max-width: 1000px; margin: -50px auto 10px; position: relative; z-index: 2;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; padding: 0 16px;
}
.strip div {
  background: rgba(255, 255, 255, .92); backdrop-filter: blur(8px);
  border-radius: 18px; padding: 18px 16px; text-align: center;
  box-shadow: 0 12px 30px rgba(0, 72, 120, .14); border: 1px solid rgba(255,255,255,.8);
  position: relative; overflow: hidden; transition: transform .3s;
}
.strip div::before {
  content: ""; position: absolute; top: 0; right: 0; left: 0; height: 4px; background: var(--grad);
}
.strip div:hover { transform: translateY(-5px); }
.strip b { display: block; color: var(--navy); font-size: 15px; font-weight: 700; }
.strip span { font-size: 13px; color: var(--muted); }

/* ---------- Section titles ---------- */
.section-title { text-align: center; margin: 64px 0 30px; }
.section-title .eyebrow {
  display: inline-block; font-size: 12px; font-weight: 700; color: var(--blue);
  background: var(--sky); padding: 3px 12px; border-radius: 999px; margin-bottom: 6px;
}
.section-title h2 { font-size: 28px; font-weight: 900; color: var(--navy); }
.section-title p { color: var(--muted); font-size: 14px; }
.title-line {
  width: 90px; height: 5px; margin: 12px auto 0; border-radius: 6px;
  background: linear-gradient(90deg, var(--blue), var(--green));
  position: relative;
}
.title-line::after {
  content: ""; position: absolute; top: -4px; left: 50%; transform: translateX(-50%);
  width: 10px; height: 10px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(140,198,63,.25);
}

/* ---------- Services ---------- */
.services {
  max-width: 1120px; margin: 0 auto; padding: 0 20px;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 22px;
}
.card {
  position: relative; overflow: hidden;
  background: #fff; border-radius: var(--radius); padding: 28px 22px 24px;
  box-shadow: 0 6px 22px rgba(0, 72, 120, .08);
  transition: transform .35s ease, box-shadow .35s ease;
  text-align: center;
}
.card .num {
  position: absolute; top: 12px; left: 14px; font-size: 12px; font-weight: 700;
  color: rgba(20, 121, 201, .35);
}
.card::before {
  content: ""; position: absolute; width: 140px; height: 140px; border-radius: 50%;
  background: radial-gradient(circle, rgba(140,198,63,.18), transparent 70%);
  top: -60px; right: -60px; transition: transform .5s;
}
.card::after {
  content: ""; position: absolute; bottom: 0; left: 0; right: 0; height: 4px;
  background: linear-gradient(90deg, var(--blue), var(--green));
  transform: scaleX(0); transform-origin: right; transition: transform .4s ease;
}
.card:hover { transform: translateY(-8px); box-shadow: 0 20px 40px rgba(0, 72, 120, .16); }
.card:hover::before { transform: scale(1.6); }
.card:hover::after { transform: scaleX(1); }
.icon {
  position: relative; width: 88px; height: 88px; margin: 0 auto 16px; border-radius: 28px;
  background: linear-gradient(135deg, #ffffff, var(--sky));
  display: grid; place-items: center;
  box-shadow: 0 8px 18px rgba(20, 121, 201, .15), inset 0 0 0 1px rgba(20, 121, 201, .12);
  transition: transform .45s cubic-bezier(.3,1.4,.6,1);
}
.card:hover .icon { transform: rotate(-8deg) scale(1.1); }
.icon img { width: 58px; height: 58px; }
.card h3 { font-size: 15.5px; font-weight: 700; margin-bottom: 6px; color: var(--navy); }
.card p { font-size: 13px; color: var(--muted); line-height: 1.8; }

/* ---------- Insurance ---------- */
.insurance { max-width: 1000px; margin: 64px auto 0; padding: 0 20px; }
.insurance-inner {
  background: var(--grad);
  color: #fff; border-radius: 26px; padding: 30px 34px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  box-shadow: 0 16px 34px rgba(0, 72, 120, .28); position: relative; overflow: hidden;
}
.insurance-inner::after {
  content: ""; position: absolute; left: -60px; top: -60px; width: 220px; height: 220px;
  border-radius: 50%; background: rgba(140, 198, 63, .28);
}
.insurance-inner::before {
  content: ""; position: absolute; right: 30%; bottom: -80px; width: 180px; height: 180px;
  border-radius: 50%; background: rgba(255,255,255,.08);
}
.insurance-inner h3 { font-size: 21px; font-weight: 900; position: relative; z-index: 1; }
.insurance-inner p { font-size: 14px; color: #d7eef8; position: relative; z-index: 1; }
.badge {
  background: #fff; color: var(--navy); font-weight: 700; padding: 10px 20px;
  border-radius: 14px; position: relative; z-index: 1; font-size: 14px;
  box-shadow: 0 6px 16px rgba(0,0,0,.15);
}

/* ---------- Contact ---------- */
.contact {
  max-width: 1120px; margin: 0 auto 56px; padding: 0 20px;
  display: grid; grid-template-columns: 1fr 1.2fr; gap: 22px;
}
.info-card { background: #fff; border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); }
.info-row { display: flex; gap: 14px; align-items: flex-start; padding: 14px 0; border-bottom: 1px dashed #d5e6ef; }
.info-row:last-of-type { border-bottom: 0; }
.info-row .ico {
  flex: 0 0 46px; height: 46px; border-radius: 15px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--sky), #d4eef8);
}
.info-row .ico svg { width: 22px; height: 22px; stroke: var(--navy); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.info-row h4 { font-size: 14px; font-weight: 700; color: var(--navy); margin-bottom: 2px; }
.info-row p { font-size: 13.5px; color: var(--muted); line-height: 1.8; }
.phones { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.phones a {
  background: var(--sky); color: var(--navy); text-decoration: none; padding: 5px 11px;
  border-radius: 10px; font-size: 13px; direction: ltr; font-weight: 700;
}
.phones a:hover { background: var(--green); transform: translateY(-2px); }
.info-card .btn { margin-top: 14px; background: linear-gradient(90deg, var(--blue), var(--navy)); color: #fff; box-shadow: 0 8px 18px rgba(20, 121, 201, .35); }
.info-card .btn:hover { transform: translateY(-3px); }
.map { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); border: 6px solid #fff; min-height: 380px; }
.map iframe { width: 100%; height: 100%; min-height: 380px; border: 0; display: block; }

/* ---------- Footer ---------- */
footer {
  background: linear-gradient(180deg, var(--navy-2), var(--navy)); color: #d7eef8;
  text-align: center; padding: 28px 18px 24px; font-size: 13px; position: relative;
}
footer::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: linear-gradient(90deg, var(--green), #a8c030, var(--green));
}
footer .disclaimer {
  display: inline-block; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2);
  padding: 8px 18px; border-radius: 12px; margin-bottom: 12px; color: #fff; font-weight: 500;
}
footer .copy { color: #a9d6ea; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }
@keyframes rise { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-18px); } }
@keyframes spin-in { from { transform: rotate(-180deg) scale(.5); opacity: 0; } to { transform: none; opacity: 1; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

@media (max-width: 760px) {
  .contact { grid-template-columns: 1fr; }
  .strip { grid-template-columns: 1fr; }
  .hero-content h2 { font-size: 24px; }
  .header-phone { display: none; }
  .brand h1 { font-size: 13px; }
  .insurance-inner { padding: 24px; }
}

.btn-link {
  display: inline-flex; align-items: center; justify-content: center; margin-top: 14px; margin-right: 8px;
  padding: 11px 20px; border-radius: 14px; font-weight: 700; font-size: 14px; color: var(--navy);
  background: var(--sky); text-decoration: none; border: 1px solid #c7e3f2;
}
.btn-link:hover { background: var(--green); transform: translateY(-2px); }
