/*
Theme Name: Dr Taati
Theme URI: https://drtaati.ir/
Author: drtaati.ir
Description: قالب اختصاصی سایت دکتر ریحانه طاعتی، متخصص قلب و عروق. سبک، بدون صفحه‌ساز.
Version: 1.0.1
Requires at least: 6.4
Requires PHP: 7.4
Text Domain: drtaati
*/

@font-face {
	font-family: "Vazirmatn";
	src: url("assets/fonts/Vazirmatn-Variable.woff2") format("woff2");
	font-weight: 100 900;
	font-style: normal;
	font-display: swap;
}

:root {
	--navy: #12324a;
	--navy-d: #0b2233;
	--ink: #1c2b35;
	--muted: #566773;
	--line: #dce4ea;
	--soft: #f3f6f8;
	--tint: #e8eff4;
	--red: #b3262d;
	--red-d: #8e1c22;
	--red-soft: #fbf0f0;
	--r: 14px;
	--r-s: 10px;
	--shadow: 0 8px 28px rgba(18, 50, 74, .08);
	--wrap: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 100px; }
body {
	margin: 0;
	font-family: "Vazirmatn", Tahoma, Arial, sans-serif;
	font-size: 17px;
	line-height: 1.95;
	color: var(--ink);
	background: #fff;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; height: auto; }
svg.ic { vertical-align: middle; flex: none; }
a { color: var(--navy); text-decoration-thickness: 1px; text-underline-offset: 4px; }
a:hover { color: var(--red); }
h1, h2, h3 { line-height: 1.5; color: var(--navy); margin: 0 0 .6em; font-weight: 800; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-inline-start: 1.4em; }
bdi { unicode-bidi: isolate; }
:focus-visible { outline: 3px solid #e9a6a9; outline-offset: 2px; border-radius: 4px; }

.wrap { width: min(100% - 40px, var(--wrap)); margin-inline: auto; }
.wrap--narrow { --wrap: 860px; }
.center { text-align: center; }
.sr, .screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; inset-inline-start: -999px; top: 8px; background: #fff; color: var(--navy); padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { inset-inline-start: 8px; }

/* ---------- top bar and header ---------- */
.topbar { background: var(--navy-d); color: #d6e2ea; font-size: 14px; }
.topbar__in { display: flex; align-items: center; gap: 24px; min-height: 40px; flex-wrap: wrap; }
.topbar__item { display: inline-flex; align-items: center; gap: 7px; color: inherit; text-decoration: none; line-height: 1.6; }
.topbar__tel { margin-inline-start: auto; color: #fff; font-weight: 700; }
.topbar__tel:hover { color: #fff; text-decoration: underline; }

.site-header { position: sticky; top: 0; z-index: 50; background: #fff; border-bottom: 1px solid var(--line); }
.site-header__in { display: flex; align-items: center; gap: 16px; min-height: 78px; position: relative; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--navy); flex: none; }
.brand__mark svg { display: block; }
.brand__txt strong { display: block; font-size: 19px; font-weight: 800; line-height: 1.45; }
.brand__txt small { display: block; font-size: 13px; color: var(--muted); line-height: 1.45; }
.site-nav { margin-inline-start: auto; }
.site-nav__list { display: flex; gap: 2px; list-style: none; margin: 0; padding: 0; }
.site-nav__list a { display: block; padding: 9px 10px; border-radius: 9px; font-size: 15px; font-weight: 600; color: var(--ink); text-decoration: none; white-space: nowrap; }
.site-nav__list a:hover { background: var(--soft); color: var(--navy); }
.site-nav__list a[aria-current="page"] { color: var(--red); background: var(--red-soft); }
.nav-toggle { display: none; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 8px; color: var(--navy); cursor: pointer; line-height: 0; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; white-space: nowrap; flex: none; padding: 10px 20px; border-radius: 11px; font: inherit; font-weight: 700; font-size: 16px; line-height: 1.6; text-decoration: none; border: 1.5px solid transparent; cursor: pointer; transition: background .15s, color .15s, border-color .15s; }
.btn--call { background: var(--red); color: #fff; }
.btn--call:hover { background: var(--red-d); color: #fff; }
.btn--line { background: #fff; color: var(--navy); border-color: var(--navy); }
.btn--line:hover { background: var(--navy); color: #fff; }
.btn--lg { padding: 13px 26px; font-size: 17px; }
.btn--block { display: flex; width: 100%; }
.more { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--red); text-decoration: none; }
.more:hover { text-decoration: underline; color: var(--red-d); }

/* ---------- hero ---------- */
.hero { position: relative; background: linear-gradient(180deg, #f4f7f9 0%, #e9eff3 100%); padding: 56px 0 84px; overflow: hidden; }
.hero__in { display: grid; grid-template-columns: 1.25fr .9fr; gap: 52px; align-items: center; position: relative; z-index: 1; }
.eyebrow { display: inline-block; font-size: 14px; font-weight: 700; color: var(--red); background: #fff; border: 1px solid #efd3d5; padding: 3px 14px; border-radius: 999px; margin-bottom: 18px; }
.hero__title { font-size: clamp(34px, 5vw, 54px); font-weight: 900; line-height: 1.35; margin: 0 0 8px; }
.hero__title span { display: block; font-size: clamp(20px, 2.6vw, 28px); font-weight: 700; color: var(--red); margin-top: 4px; }
.hero__fellow { font-size: 17px; font-weight: 600; color: var(--navy); margin-bottom: 16px; }
.hero__lead { font-size: 18px; color: #33444f; max-width: 60ch; margin-bottom: 0; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero__line { position: absolute; inset-inline: 0; bottom: 16px; width: 100%; height: 46px; color: #c6d4dd; }
.hero__photo { margin: 0 0 18px; border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow); }
.hero__photo img { display: block; width: 100%; }
.facts { background: #fff; border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); padding: 24px 26px; }
.facts__title { font-weight: 800; color: var(--navy); font-size: 18px; margin: 0 0 14px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.facts__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.facts__list li { display: flex; gap: 12px; align-items: flex-start; }
.facts__list .ic { color: var(--red); margin-top: 5px; }
.facts__list strong { display: block; font-size: 14px; color: var(--muted); font-weight: 600; line-height: 1.6; }
.facts__list span { display: block; font-weight: 600; line-height: 1.8; }
.tel { font-weight: 800; text-decoration: none; color: var(--navy); }
.tel:hover { color: var(--red); }

/* ---------- sections ---------- */
.section { padding: 72px 0; }
.section--soft { background: var(--soft); }
.section__head { max-width: 760px; margin-bottom: 34px; }
.section__head h2, .about__text h2 { font-size: clamp(24px, 3.2vw, 32px); position: relative; padding-inline-start: 16px; margin-bottom: 8px; }
.section__head h2::before, .about__text h2::before, .content h2::before { content: ""; position: absolute; inset-inline-start: 0; top: .35em; bottom: .35em; width: 5px; border-radius: 3px; background: var(--red); }
.section__head p { color: var(--muted); margin: 0; }

.focus { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.focus__card { background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--navy); border-radius: var(--r); padding: 28px 26px; display: flex; flex-direction: column; }
.focus__icon { width: 60px; height: 60px; border-radius: 14px; background: var(--tint); color: var(--navy); display: grid; place-items: center; margin-bottom: 16px; }
.focus__card h3 { font-size: 21px; margin-bottom: 8px; }
.focus__card h3 a { color: inherit; text-decoration: none; }
.focus__card h3 a:hover { color: var(--red); }
.focus__card > p { color: #33444f; margin-bottom: 0; }
.focus__card .more { margin-top: auto; }
.ticks { list-style: none; padding: 0; margin: 16px 0 22px; display: grid; gap: 8px; }
.ticks li { position: relative; padding-inline-start: 28px; line-height: 1.85; }
.ticks li::before { content: ""; position: absolute; inset-inline-start: 0; top: .5em; width: 18px; height: 18px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23b3262d' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") no-repeat center / contain; }

.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.tile { display: flex; flex-direction: column; gap: 6px; background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 22px 20px; text-decoration: none; color: var(--ink); transition: border-color .15s, box-shadow .15s; }
.tile:hover { border-color: var(--navy); box-shadow: var(--shadow); color: var(--ink); }
.tile__icon { width: 46px; height: 46px; border-radius: 12px; background: var(--tint); color: var(--navy); display: grid; place-items: center; margin-bottom: 6px; }
.tile strong { font-size: 17px; color: var(--navy); line-height: 1.6; }
.tile span { font-size: 15px; color: var(--muted); line-height: 1.8; }
.tile--all { background: var(--navy); border-color: var(--navy); }
.tile--all strong, .tile--all > span { color: #fff; }
.tile--all .tile__icon { background: rgba(255, 255, 255, .14); color: #fff; }
.tile--all:hover { background: var(--navy-d); }

.about { display: grid; grid-template-columns: 1.1fr .9fr; gap: 52px; align-items: start; }
.about__text p { color: #33444f; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.steps li { display: flex; gap: 16px; background: var(--soft); border: 1px solid var(--line); border-radius: var(--r); padding: 18px 20px; }
.steps__n { flex: none; width: 42px; height: 42px; border-radius: 50%; background: var(--navy); color: #fff; font-weight: 800; font-size: 18px; display: grid; place-items: center; }
.steps strong { color: var(--navy); font-size: 17px; }
.steps p { margin: 2px 0 0; color: var(--muted); font-size: 15.5px; }

.faqs { display: grid; gap: 12px; margin-bottom: 24px; }
.faq { background: #fff; border: 1px solid var(--line); border-radius: var(--r-s); }
.faq summary { cursor: pointer; list-style: none; padding: 15px 20px; font-weight: 700; color: var(--navy); display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; font-size: 26px; line-height: 1; font-weight: 400; color: var(--red); }
.faq[open] summary::after { content: "−"; }
.faq__a { padding: 0 20px 16px; color: #33444f; }
.faq__a p:last-child { margin-bottom: 0; }

.contact-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.contact-item { display: flex; gap: 16px; background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 22px; }
.contact-item .ic { color: var(--red); margin-top: 6px; }
.contact-item h3 { font-size: 17px; margin: 0 0 4px; }
.contact-item p { margin: 0 0 4px; }
.contact-item .tel { font-size: 21px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px !important; }
.chip { display: inline-block; padding: 4px 14px; border: 1px solid var(--navy); border-radius: 999px; font-size: 14.5px; font-weight: 600; text-decoration: none; color: var(--navy); }
.chip:hover { background: var(--navy); color: #fff; }

/* ---------- inner pages ---------- */
.page-head { background: var(--navy); color: #fff; padding: 36px 0 42px; }
.crumb { display: flex; flex-wrap: wrap; gap: 8px; font-size: 14px; color: #b7c9d5; margin-bottom: 10px; }
.crumb a { color: #dbe6ee; text-decoration: none; }
.crumb a:hover { color: #fff; text-decoration: underline; }
.page-head h1 { color: #fff; font-size: clamp(28px, 4vw, 40px); margin: 0; }
.page-head__lead { color: #dbe6ee; font-size: 18px; max-width: 72ch; margin: 12px 0 0; }
.page-grid { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 52px; padding: 48px 0 76px; align-items: start; }
.aside { position: sticky; top: 100px; display: grid; gap: 18px; }

.content { font-size: 17.5px; }
.content > *:first-child { margin-top: 0; }
.content h2 { font-size: clamp(22px, 2.8vw, 28px); margin: 1.9em 0 .6em; padding-inline-start: 14px; position: relative; }
.content h3 { font-size: 20px; margin: 1.5em 0 .4em; }
.content .lead { font-size: 19px; color: #2a3b46; }
.content ul { list-style: none; padding: 0; }
.content ul li { position: relative; padding-inline-start: 22px; margin-bottom: 6px; }
.content ul li::before { content: ""; position: absolute; inset-inline-start: 3px; top: .82em; width: 8px; height: 8px; border-radius: 50%; background: var(--red); }
.content ol { list-style: persian; padding-inline-start: 1.6em; }
.content ol li { margin-bottom: 8px; padding-inline-start: 4px; }
.content ol li::marker { font-weight: 800; color: var(--navy); }
.note, .warn { border-radius: var(--r-s); padding: 16px 20px; margin: 1.5em 0; }
.note { background: var(--tint); border-inline-start: 4px solid var(--navy); }
.warn { background: var(--red-soft); border-inline-start: 4px solid var(--red); }
.warn strong { color: var(--red-d); }
.note p:last-child, .warn p:last-child { margin-bottom: 0; }
.cols { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin: 1.4em 0; }
.box { border: 1px solid var(--line); border-radius: var(--r); padding: 20px 22px; background: #fff; }
.box h3 { margin-top: 0; }
.box > *:last-child { margin-bottom: 0; }
.content .faq { margin-bottom: 10px; }
.content figure { margin: 1.6em 0; }
.content figure img { border-radius: var(--r); display: block; }
.content figcaption { font-size: 14.5px; color: var(--muted); margin-top: 8px; }
.content .contact-grid { margin: 1.2em 0 1.6em; }
.content .contact-item p { font-size: 16.5px; }
.linklist li { margin-bottom: 8px; }
.post-row { border-bottom: 1px solid var(--line); padding: 18px 0; }
.post-row h2 { margin: 0 0 6px; padding: 0; font-size: 21px; }
.post-row h2::before { display: none; }

.book { background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--red); border-radius: var(--r); padding: 22px; box-shadow: var(--shadow); }
.book__title { font-size: 19px !important; margin: 0 0 12px !important; padding: 0 !important; }
.book__title::before { display: none; }
.book__line { display: flex; gap: 10px; align-items: flex-start; margin: 0 0 8px; font-size: 15.5px; color: #33444f; }
.book__line .ic { color: var(--red); margin-top: 6px; }
.book .btn { margin-top: 10px; }
.content .book { max-width: 460px; margin: 2em 0 0; }
@media (min-width: 981px) { .content .book { display: none; } }   /* on wide screens the side column already has it */
@media (max-width: 980px) { .aside .book { display: none; } }
.aside__nav { background: var(--soft); border: 1px solid var(--line); border-radius: var(--r); padding: 18px 20px; }
.aside__h { font-weight: 800; color: var(--navy); margin-bottom: 6px; }
.aside__nav ul { list-style: none; margin: 0; padding: 0; }
.aside__nav a { display: flex; gap: 8px; align-items: center; padding: 7px 0; text-decoration: none; color: var(--ink); font-weight: 600; font-size: 15.5px; border-bottom: 1px dashed var(--line); }
.aside__nav li:last-child a { border-bottom: 0; }
.aside__nav a:hover { color: var(--red); }
.aside__nav .ic { color: var(--red); }

/* ---------- footer ---------- */
.site-footer { background: var(--navy-d); color: #c6d5df; padding: 54px 0 30px; font-size: 15.5px; }
.site-footer__grid { display: grid; grid-template-columns: 1.2fr .7fr 1.3fr; gap: 44px; }
.site-footer p { margin: 0 0 6px; }
.site-footer__name { font-size: 20px; font-weight: 800; color: #fff; }
.site-footer__h { font-weight: 800; color: #fff; margin-bottom: 10px !important; }
.site-footer a { color: #e6eef3; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer .tel { color: #fff; font-size: 18px; }
.site-footer__links { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.site-footer__note { margin-top: 34px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .12); font-size: 14px; color: #9db2c0; }

.callbar { display: none; }

/* ---------- smaller screens ---------- */
.site-nav__list li:first-child { display: none; }   /* «خانه» is only shown in the phone menu; the name at the top links home */
@media (max-width: 1140px) {
	.nav-toggle { display: inline-flex; order: 3; }
	.site-header__call { margin-inline-start: auto; order: 2; }
	.site-nav { display: none; position: absolute; top: 100%; inset-inline: -20px; background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); padding: 8px 20px 16px; margin: 0; }
	.nav-open .site-nav { display: block; }
	.site-nav__list { flex-direction: column; gap: 0; }
	.site-nav__list li:first-child { display: block; }
	.site-nav__list a { padding: 12px 8px; border-bottom: 1px solid var(--soft); border-radius: 0; font-size: 16.5px; }
}
@media (max-width: 980px) {
	.hero__in, .about, .page-grid { grid-template-columns: 1fr; }
	.hero__in { gap: 30px; }
	.focus { grid-template-columns: 1fr; }
	.tiles { grid-template-columns: repeat(2, 1fr); }
	.aside { position: static; }
	.site-footer__grid { grid-template-columns: 1fr; gap: 26px; }
	.page-grid { gap: 36px; padding: 36px 0 56px; }
}
@media (max-width: 860px) {
	body { padding-bottom: 72px; }
	.site-header__call { display: none; }
	.nav-toggle { margin-inline-start: auto; }
	.callbar { display: flex; gap: 8px; position: fixed; inset-inline: 0; bottom: 0; z-index: 60; background: #fff; border-top: 1px solid var(--line); padding: 8px 10px calc(8px + env(safe-area-inset-bottom)); box-shadow: 0 -6px 20px rgba(18, 50, 74, .10); }
	.callbar__btn { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 8px; border-radius: 11px; font-weight: 700; font-size: 15.5px; line-height: 1.6; text-decoration: none; border: 1.5px solid var(--navy); color: var(--navy); background: #fff; }
	.callbar__btn--call { flex: 1.35; background: var(--red); border-color: var(--red); color: #fff; }
	.contact-grid, .cols { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
	body { font-size: 16px; }
	.wrap { width: min(100% - 32px, var(--wrap)); }
	.topbar__in { gap: 14px; min-height: 36px; font-size: 13px; }
	.topbar__item:first-child { display: none; }
	.site-header__in { min-height: 68px; }
	.brand__txt strong { font-size: 17px; }
	.section { padding: 52px 0; }
	.hero { padding: 34px 0 70px; }
	.hero__lead { font-size: 16.5px; }
	.hero__cta .btn { width: 100%; }
	.tiles { grid-template-columns: 1fr; gap: 12px; }
	.tile { display: grid; grid-template-columns: 46px 1fr; column-gap: 14px; row-gap: 2px; padding: 16px; align-items: start; }
	.tile__icon { grid-row: 1 / span 2; margin: 0; }
	.topbar__tel { display: none; }
	.topbar__in { justify-content: center; }
	.facts { padding: 20px; }
	.content { font-size: 16.5px; }
	.page-head { padding: 26px 0 30px; }
	.page-head__lead { font-size: 16.5px; }
}
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	* { transition: none !important; }
}
@media print {
	.topbar, .site-header, .callbar, .aside, .hero__line { display: none !important; }
	body { padding: 0; }
}
