/*
Theme Name: دکتر میلانی (بازطراحی)
Theme URI: https://dr-milani.com/
Description: قالب فارسی راست‌به‌چپ مطب دکتر شاهین روشن میلانی، متخصص گوش، حلق و بینی و جراحی زیبایی بینی — فرزند Hello Elementor با بخش‌های معرفی پزشک، نمونه‌کارها و رزرو آنلاین نوبت.
Author: Qoder
Version: 1.0.0
License: GPL-2.0
Template: hello-elementor
Text Domain: drmilani
*/

/* ------------------------------------------------------------------ tokens */
:root {
	--dm-teal: #0e7c86;
	--dm-teal-dark: #075a63;
	--dm-teal-soft: #e8f4f5;
	--dm-ink: #0f1f26;
	--dm-body: #33464f;
	--dm-muted: #6b7f88;
	--dm-line: #dfe7ea;
	--dm-bg: #ffffff;
	--dm-bg-alt: #f5f8f9;
	--dm-gold: #b48b3c;
	--dm-radius: 18px;
	--dm-radius-sm: 12px;
	--dm-shadow: 0 18px 40px rgba(15, 31, 38, .10);
	--dm-shadow-soft: 0 6px 18px rgba(15, 31, 38, .06);
	--dm-max: 1180px;
	--dm-font: "Vazirmatn", "IRANSans", Tahoma, "Segoe UI", sans-serif;
}

@font-face {
	font-family: "Vazirmatn";
	src: url("fonts/Vazirmatn-Regular.woff2") format("woff2");
	font-weight: 400;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: "Vazirmatn";
	src: url("fonts/Vazirmatn-Medium.woff2") format("woff2");
	font-weight: 500;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: "Vazirmatn";
	src: url("fonts/Vazirmatn-SemiBold.woff2") format("woff2");
	font-weight: 600;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: "Vazirmatn";
	src: url("fonts/Vazirmatn-Bold.woff2") format("woff2");
	font-weight: 700;
	font-style: normal;
	font-display: swap;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }
body {
	margin: 0;
	background: var(--dm-bg);
	color: var(--dm-body);
	font-family: var(--dm-font);
	font-size: 16px;
	line-height: 2;
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}
h1, h2, h3, h4 { color: var(--dm-ink); line-height: 1.6; margin: 0 0 14px; font-weight: 700; }
h1 { font-size: clamp(28px, 4.2vw, 46px); }
h2 { font-size: clamp(23px, 3vw, 33px); }
h3 { font-size: 19px; }
p { margin: 0 0 14px; }
a { color: var(--dm-teal-dark); text-decoration: none; transition: color .16s ease; }
a:hover { color: var(--dm-teal); }
img { max-width: 100%; height: auto; display: block; }
ul { margin: 0 0 14px; padding-inline-start: 22px; }
:focus-visible { outline: 3px solid rgba(14, 124, 134, .45); outline-offset: 2px; }

.dm-container { width: 100%; max-width: var(--dm-max); margin-inline: auto; padding-inline: 20px; }
.dm-section { padding: 76px 0; }
.dm-section--alt { background: var(--dm-bg-alt); }
.dm-section--teal { background: linear-gradient(135deg, #0b6e77, #0e7c86 60%, #10909b); color: #e9f6f7; }
.dm-section--teal h2, .dm-section--teal h3 { color: #fff; }
.dm-eyebrow {
	display: inline-block;
	background: var(--dm-teal-soft);
	color: var(--dm-teal-dark);
	border-radius: 999px;
	padding: 4px 14px;
	font-size: 13px;
	font-weight: 600;
	margin-bottom: 14px;
}
.dm-section--teal .dm-eyebrow { background: rgba(255, 255, 255, .16); color: #fff; }
.dm-head { max-width: 720px; margin-bottom: 34px; }
.dm-head p { color: var(--dm-muted); font-size: 17px; }
.dm-center { text-align: center; margin-inline: auto; }

/* ---------------------------------------------------------------- header */
.dm-header {
	position: sticky;
	top: 0;
	z-index: 60;
	background: rgba(255, 255, 255, .92);
	backdrop-filter: blur(10px);
	border-bottom: 1px solid var(--dm-line);
}
.dm-header.is-solid { box-shadow: var(--dm-shadow-soft); }
.dm-bar { display: flex; align-items: center; gap: 18px; min-height: 74px; }
.dm-logo { display: flex; align-items: center; gap: 10px; }
.dm-logo img { height: 46px; width: auto; }
.dm-logo-text { font-weight: 700; color: var(--dm-ink); font-size: 17px; line-height: 1.4; }
.dm-logo-text small { display: block; font-weight: 400; font-size: 12px; color: var(--dm-muted); }
.dm-nav { margin-inline-start: auto; }
.dm-nav ul { display: flex; gap: 6px; list-style: none; margin: 0; padding: 0; }
.dm-nav a {
	display: block;
	padding: 9px 14px;
	border-radius: 999px;
	color: var(--dm-ink);
	font-size: 15px;
	font-weight: 500;
}
.dm-nav a:hover, .dm-nav .current-menu-item > a { background: var(--dm-teal-soft); color: var(--dm-teal-dark); }
.dm-header-cta { display: flex; align-items: center; gap: 10px; }
.dm-phone { font-weight: 700; color: var(--dm-ink); direction: ltr; font-size: 15px; white-space: nowrap; }
.dm-phone span { display: block; font-size: 11px; font-weight: 400; color: var(--dm-muted); }
.dm-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	background: var(--dm-teal);
	color: #fff;
	border: 0;
	border-radius: 999px;
	padding: 13px 26px;
	font-family: inherit;
	font-size: 15px;
	font-weight: 700;
	cursor: pointer;
	transition: .18s background, .18s transform, .18s box-shadow;
}
.dm-btn:hover { background: var(--dm-teal-dark); color: #fff; transform: translateY(-1px); box-shadow: 0 10px 22px rgba(14, 124, 134, .28); }
.dm-btn--ghost { background: transparent; color: var(--dm-teal-dark); border: 1.5px solid var(--dm-teal); }
.dm-btn--ghost:hover { background: var(--dm-teal); color: #fff; }
.dm-btn--light { background: #fff; color: var(--dm-teal-dark); }
.dm-btn--light:hover { background: var(--dm-teal-soft); }
.dm-burger {
	display: none;
	background: #fff;
	border: 1px solid var(--dm-line);
	border-radius: 10px;
	width: 44px;
	height: 44px;
	font-size: 20px;
	cursor: pointer;
	color: var(--dm-ink);
}

/* ---------------------------------------------------------------- hero */
.dm-hero { padding: 56px 0 66px; background: radial-gradient(1200px 460px at 82% -8%, #e8f4f5 0%, rgba(232, 244, 245, 0) 70%); }
.dm-hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 44px; align-items: center; }
.dm-hero h1 { margin-bottom: 16px; }
.dm-hero h1 em { font-style: normal; color: var(--dm-teal); }
.dm-hero-lead { font-size: 18px; color: var(--dm-body); max-width: 540px; }
.dm-hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 24px 0 8px; }
.dm-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; padding: 0; list-style: none; }
.dm-chips li {
	background: #fff;
	border: 1px solid var(--dm-line);
	border-radius: 999px;
	padding: 7px 15px;
	font-size: 13.5px;
	color: var(--dm-ink);
	display: flex;
	align-items: center;
	gap: 7px;
}
.dm-chips b { color: var(--dm-teal-dark); }
.dm-hero-media { position: relative; }
.dm-hero-img {
	border-radius: 26px;
	overflow: hidden;
	box-shadow: var(--dm-shadow);
	background: var(--dm-bg-alt);
}
.dm-hero-img img { width: 100%; height: 520px; object-fit: cover; object-position: top center; }
.dm-hero-card {
	position: absolute;
	inset-inline-start: -18px;
	bottom: 22px;
	background: #fff;
	border-radius: 16px;
	box-shadow: var(--dm-shadow);
	padding: 14px 18px;
	display: flex;
	align-items: center;
	gap: 12px;
	max-width: 290px;
}
.dm-hero-card span { font-size: 12.5px; color: var(--dm-muted); line-height: 1.6; }
.dm-hero-card strong { display: block; color: var(--dm-ink); font-size: 15px; }
.dm-hero-card .dm-dot { width: 42px; height: 42px; border-radius: 50%; background: var(--dm-teal-soft); display: grid; place-items: center; color: var(--dm-teal-dark); font-size: 20px; flex: 0 0 auto; }

/* ---------------------------------------------------------------- feature grids */
.dm-grid { display: grid; gap: 18px; }
.dm-grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.dm-grid-3 { grid-template-columns: repeat(auto-fit, minmax(268px, 1fr)); }
.dm-grid-4 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

.dm-card {
	background: #fff;
	border: 1px solid var(--dm-line);
	border-radius: var(--dm-radius);
	padding: 26px;
	transition: .2s box-shadow, .2s transform, .2s border-color;
}
.dm-card:hover { box-shadow: var(--dm-shadow); transform: translateY(-3px); border-color: #cfe1e4; }
.dm-card-ico {
	width: 48px;
	height: 48px;
	border-radius: 14px;
	background: var(--dm-teal-soft);
	color: var(--dm-teal-dark);
	display: grid;
	place-items: center;
	font-size: 22px;
	margin-bottom: 14px;
}
.dm-card h3 { margin-bottom: 8px; }
.dm-card p { font-size: 15px; color: var(--dm-muted); margin: 0; }
.dm-card-meta { display: flex; gap: 10px; align-items: center; margin-top: 14px; font-size: 13px; color: var(--dm-teal-dark); font-weight: 600; }

/* about doctor */
.dm-about { display: grid; grid-template-columns: .9fr 1.1fr; gap: 40px; align-items: center; }
.dm-about-media { border-radius: 24px; overflow: hidden; box-shadow: var(--dm-shadow); }
.dm-about-media img { width: 100%; height: 460px; object-fit: cover; object-position: top center; }
.dm-list { list-style: none; padding: 0; margin: 18px 0 22px; display: grid; gap: 10px; }
.dm-list li { display: flex; gap: 10px; align-items: flex-start; color: var(--dm-body); }
.dm-list li::before {
	content: "✓";
	flex: 0 0 auto;
	width: 22px;
	height: 22px;
	border-radius: 50%;
	background: var(--dm-teal-soft);
	color: var(--dm-teal-dark);
	display: grid;
	place-items: center;
	font-size: 13px;
	font-weight: 700;
	margin-top: 4px;
}

/* steps */
.dm-steps { counter-reset: dmstep; display: grid; gap: 18px; }
.dm-step { position: relative; background: #fff; border-radius: var(--dm-radius); border: 1px solid var(--dm-line); padding: 24px 24px 22px; }
.dm-step::before {
	counter-increment: dmstep;
	content: counter(dmstep, persian);
	position: absolute;
	inset-inline-start: 22px;
	top: -16px;
	width: 34px;
	height: 34px;
	border-radius: 10px;
	background: var(--dm-teal);
	color: #fff;
	display: grid;
	place-items: center;
	font-weight: 700;
	font-size: 15px;
}
.dm-step h3 { margin-top: 12px; }
.dm-step p { margin: 0; }

/* testimonials / quote */
.dm-quote { background: #fff; border-radius: var(--dm-radius); padding: 24px; border: 1px solid var(--dm-line); }
.dm-quote p { color: var(--dm-ink); font-size: 16px; }
.dm-quote cite { display: block; font-style: normal; color: var(--dm-muted); font-size: 13.5px; }

/* ---------------------------------------------------------------- portfolio */
.dm-folio-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.dm-empty-notice {
	background: #fffaf0;
	border: 1px solid #f0e0bd;
	border-radius: var(--dm-radius-sm);
	padding: 18px 22px;
	color: #6b5320;
	font-size: 15px;
}

/* ---------------------------------------------------------------- contact / hours */
.dm-info { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.dm-info-card { background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .22); border-radius: var(--dm-radius); padding: 22px; }
.dm-info-card h3 { color: #fff; font-size: 16px; margin-bottom: 8px; }
.dm-info-card, .dm-info-card a { color: #e6f4f5; font-size: 15.5px; }
.dm-info-card a:hover { color: #fff; }
.dm-hours-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: 15px; }
.dm-hours-list li { display: flex; justify-content: space-between; gap: 12px; border-bottom: 1px dashed rgba(255, 255, 255, .2); padding-bottom: 5px; }
.dm-hours-list li:last-child { border-bottom: 0; }
.dm-map { margin-top: 22px; border-radius: var(--dm-radius); overflow: hidden; border: 1px solid rgba(255, 255, 255, .25); }
.dm-map iframe { display: block; width: 100%; height: 320px; border: 0; }

/* ---------------------------------------------------------------- footer */
.dm-footer { background: #0b1a20; color: #9db2b9; padding: 54px 0 26px; font-size: 14.5px; }
.dm-footer a { color: #cfe2e6; }
.dm-footer a:hover { color: #fff; }
.dm-footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 30px; }
.dm-footer h4 { color: #fff; font-size: 15px; margin-bottom: 12px; }
.dm-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.dm-footer .dm-logo-text { color: #fff; }
.dm-footer .dm-logo-text small { color: #8ea6ad; }
.dm-footbar {
	margin-top: 34px;
	padding-top: 18px;
	border-top: 1px solid rgba(255, 255, 255, .12);
	display: flex;
	justify-content: space-between;
	gap: 16px;
	flex-wrap: wrap;
	font-size: 13px;
}

/* ---------------------------------------------------------------- content pages */
.dm-page-head { padding: 48px 0 10px; }
.dm-single { max-width: 860px; margin-inline: auto; padding: 40px 0 70px; }
.dm-single h1 { margin-bottom: 10px; }
.dm-entry { font-size: 16.5px; }
.dm-entry h2, .dm-entry h3 { margin-top: 34px; }
.dm-entry img { border-radius: var(--dm-radius-sm); margin: 18px 0; }
.dm-archive-grid .dm-folio-card { background: #fff; }
.dm-archive-head { padding: 46px 0 26px; }
.term-chip { display: inline-block; background: var(--dm-teal-soft); color: var(--dm-teal-dark); border-radius: 999px; padding: 3px 12px; font-size: 12.5px; font-weight: 600; }

/* archive cards */
.dm-case {
	border: 1px solid var(--dm-line);
	border-radius: var(--dm-radius);
	overflow: hidden;
	background: #fff;
	display: flex;
	flex-direction: column;
}
.dm-case img { width: 100%; height: 220px; object-fit: cover; }
.dm-case-body { padding: 18px 20px 22px; }
.dm-case-body h3 { margin-bottom: 6px; font-size: 17px; }
.dm-case-body p { font-size: 14.5px; color: var(--dm-muted); margin: 0; }

/* ---------------------------------------------------------------- mobile */
@media (max-width: 980px) {
	.dm-hero-grid, .dm-about, .dm-footer-grid { grid-template-columns: 1fr; }
	.dm-hero-img img, .dm-about-media img { height: 400px; }
	.dm-hero-card { inset-inline-start: 12px; }
	.dm-nav {
		position: fixed;
		inset: 0;
		background: rgba(255, 255, 255, .98);
		z-index: 70;
		padding: 84px 24px 24px;
		display: none;
	}
	.dm-nav.is-open { display: block; }
	.dm-nav ul { flex-direction: column; gap: 4px; }
	.dm-nav a { font-size: 18px; padding: 12px 14px; }
	.dm-burger { display: grid; place-items: center; margin-inline-start: auto; }
	.dm-header-cta .dm-phone { display: none; }
	.dm-section { padding: 54px 0; }
}
@media (max-width: 560px) {
	.dm-header-cta .dm-btn { padding: 11px 18px; font-size: 14px; }
	.dm-logo img { height: 38px; }
	.dm-hero { padding-top: 30px; }
}
@media print { .dm-header, .dm-footer, .dm-hero-actions { display: none; } }
