/* کلینیک میرعماد — طراحی تمیز و مینیمال، RTL، بدون وابستگی خارجی */
:root {
    --ink: #16283a;
    --muted: #5a6b7b;
    --ivory: #f5f9fc;
    --paper: #ffffff;
    --tint: #e9f2f9;
    --teal: #0f4c81;
    --teal-2: #1a78b8;
    --gold: #1a9ad6;
    --gold-2: #a9d8f0;
    --line: #d9e6f0;
    --radius: 18px;
    --shadow: 0 10px 30px rgba(15, 76, 129, .08);
    --font: WebmehrazFont, Tahoma, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
    margin: 0; font-family: var(--font); color: var(--ink); background: var(--ivory);
    line-height: 1.9; font-size: 16px; -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--teal-2); text-decoration: none; }
h1, h2, h3, h4 { line-height: 1.5; margin: 0 0 .5em; color: var(--teal); font-weight: 800; }
h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.5rem, 3.4vw, 2.1rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
.wrap { width: min(1160px, 100% - 32px); margin-inline: auto; }
.narrow { width: min(820px, 100% - 32px); }

/* دکمه‌ها */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .4rem; cursor: pointer;
    font: inherit; font-weight: 700; padding: .8rem 1.5rem; border-radius: 999px; border: 1.5px solid transparent;
    transition: transform .15s, box-shadow .2s, background .2s, color .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--teal); color: #fff; box-shadow: 0 8px 20px rgba(15, 76, 129, .25); }
.btn-primary:hover { background: var(--teal-2); }
.btn-gold { background: var(--gold); color: #fff; }
.btn-gold:hover { background: #1583ba; }
.btn-outline { border-color: var(--teal); color: var(--teal); background: transparent; }
.btn-outline:hover { background: var(--teal); color: #fff; }
.btn-sm { padding: .5rem 1.1rem; font-size: .9rem; }
.btn-block { width: 100%; }
.link-arrow { font-weight: 700; color: var(--gold); }
.link-arrow::after { content: " ←"; }

/* هدر */
.site-header {
    position: sticky; top: 0; z-index: 50; background: rgba(250, 247, 242, .88);
    backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s;
}
.site-header.scrolled { border-color: var(--line); box-shadow: 0 6px 20px rgba(15, 76, 129, .06); }
.header-in { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 72px; }
.brand { display: flex; align-items: center; gap: .7rem; color: var(--teal); }
.brand-logo { height: 58px; width: auto; }
.site-footer .brand-logo { height: 64px; }
.brand-light .brand-logo { background: #fff; border-radius: 10px; padding: 4px 6px; }
.brand-mark {
    width: 42px; height: 42px; border-radius: 14px; background: linear-gradient(135deg, var(--teal), var(--teal-2));
    color: var(--gold-2); display: grid; place-items: center; font-weight: 900; font-size: 1.3rem;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.3; }
.brand-text strong { font-size: 1.1rem; }
.brand-text small { font-size: .75rem; color: var(--muted); }
.brand-light, .brand-light small { color: #fff; }
.brand-light .brand-logo { height: 58px; width: auto; }
.site-footer .brand-logo { height: 64px; }
.brand-light .brand-logo { background: #fff; border-radius: 10px; padding: 4px 6px; }
.brand-mark { background: rgba(255, 255, 255, .12); }
.main-nav { display: flex; gap: 1.3rem; }
.main-nav a { color: var(--ink); font-weight: 600; font-size: .95rem; padding: .3rem 0; border-bottom: 2px solid transparent; }
.main-nav a:hover { border-color: var(--gold); }
.header-actions { display: flex; align-items: center; gap: .8rem; }
.header-phone { font-weight: 700; color: var(--teal); direction: ltr; }
.menu-toggle { display: none; width: 42px; height: 42px; border: 0; background: transparent; cursor: pointer; flex-direction: column; justify-content: center; gap: 5px; align-items: center; }
.menu-toggle span { width: 22px; height: 2px; background: var(--teal); border-radius: 2px; transition: .2s; }
.mobile-menu { position: fixed; inset: 72px 0 auto 0; z-index: 49; background: var(--paper); border-bottom: 1px solid var(--line); padding: .5rem 16px 1rem; box-shadow: var(--shadow); }
.mobile-menu[hidden] { display: none; }
.mobile-menu a { display: block; padding: .8rem 0; border-bottom: 1px solid var(--line); color: var(--ink); font-weight: 600; }

/* هیرو */
.hero { padding: clamp(2rem, 6vw, 5rem) 0; background:
    radial-gradient(900px 400px at 85% -10%, rgba(26, 154, 214, .18), transparent 60%),
    radial-gradient(700px 400px at 0% 100%, rgba(26, 120, 184, .12), transparent 60%); }
.hero-in { display: grid; grid-template-columns: 1.1fr .9fr; gap: 3rem; align-items: center; }
.eyebrow { display: inline-block; font-size: .85rem; font-weight: 700; color: var(--gold); letter-spacing: .02em; margin-bottom: .6rem; }
.hero h1 em { font-style: normal; color: var(--gold); }
.lead { font-size: 1.1rem; color: var(--muted); }
.hero-cta { display: flex; flex-wrap: wrap; gap: .8rem; margin: 1.6rem 0; }
.hero-points { list-style: none; padding: 0; margin: 0; display: grid; gap: .4rem; color: var(--muted); font-size: .95rem; }
.hero-points li::before { content: "✓"; color: var(--gold); font-weight: 800; margin-inline-end: .5rem; }
.hero-visual img { border-radius: 28px; box-shadow: var(--shadow); aspect-ratio: 4/5; object-fit: cover; width: 100%; }
.hero-art { position: relative; aspect-ratio: 4/5; border-radius: 28px; overflow: hidden; background: linear-gradient(160deg, var(--teal), var(--teal-2)); box-shadow: var(--shadow); }
.orb { position: absolute; border-radius: 50%; filter: blur(2px); }
.o1 { width: 60%; aspect-ratio: 1; background: radial-gradient(circle at 30% 30%, #d3edfb, var(--gold)); top: 12%; right: 14%; opacity: .9; }
.o2 { width: 34%; aspect-ratio: 1; background: rgba(255, 255, 255, .14); bottom: 10%; left: 10%; }
.o3 { width: 18%; aspect-ratio: 1; background: rgba(217, 195, 154, .5); bottom: 28%; right: 8%; }
.hero-badge { position: absolute; inset-inline: 1.2rem; bottom: 1.2rem; background: rgba(255, 255, 255, .95); border-radius: 18px; padding: 1rem 1.2rem; display: flex; flex-direction: column; }
.hero-badge strong { color: var(--teal); font-size: 1.3rem; }
.hero-badge small { color: var(--muted); }

/* بخش‌ها */
.section { padding: clamp(2.5rem, 6vw, 5rem) 0; }
.section-tint { background: var(--tint); }
.section-dark { background: linear-gradient(160deg, var(--teal), #0a3560); color: #e8efef; }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-dark .eyebrow { color: var(--gold-2); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 2.4rem; }
.section-head p { color: var(--muted); }

.service-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.2rem; }
.service-card, .area-card, .article-card, .testi {
    background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem;
    transition: transform .2s, box-shadow .2s, border-color .2s; display: block; color: var(--ink);
}
.service-card:hover, .area-card:hover, .article-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--gold-2); }
.service-icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; background: var(--tint); color: var(--gold); font-size: 1.2rem; margin-bottom: 1rem; }
.service-card p, .article-card p { color: var(--muted); font-size: .95rem; }

.doctor-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.4rem; max-width: 900px; margin-inline: auto; }
.doctor-card { display: flex; gap: 1.2rem; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.3rem; box-shadow: var(--shadow); }
.doctor-photo { flex: 0 0 110px; height: 130px; border-radius: 16px; background: linear-gradient(160deg, var(--teal), var(--teal-2)); overflow: hidden; display: grid; place-items: center; }
.doctor-photo img { width: 100%; height: 100%; object-fit: cover; }
.doctor-photo.big { flex-basis: 180px; height: 220px; }
.doctor-initial { color: var(--gold-2); font-size: 2.6rem; font-weight: 900; }
.doctor-title { color: var(--gold); font-weight: 700; margin-bottom: .3rem; }
.doctor-nezam { font-size: .85rem; color: var(--muted); }
.doctor-hero { display: flex; gap: 2rem; align-items: center; flex-wrap: wrap; }
.tags { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem; padding: 0; margin: .4rem 0 .8rem; }
.tags li { background: var(--tint); color: var(--teal); border-radius: 999px; padding: .15rem .8rem; font-size: .8rem; }

/* باشگاه */
.club-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; }
.club-info p { color: #cfdcdc; }
.club-perks { list-style: none; padding: 0; display: grid; gap: .6rem; margin: 1.2rem 0; }
.club-perks i { font-style: normal; color: var(--gold-2); margin-inline-end: .5rem; }
.bot-links { display: flex; gap: .7rem; flex-wrap: wrap; }
.section-dark .btn-outline { border-color: var(--gold-2); color: var(--gold-2); }
.section-dark .btn-outline:hover { background: var(--gold-2); color: var(--teal); }

/* فرم‌ها */
.card { background: var(--paper); border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow); }
.form-card { padding: 1.6rem; color: var(--ink); }
.form-card h3 { color: var(--teal); margin-bottom: 1rem; }
.field { margin-bottom: 1rem; display: flex; flex-direction: column; gap: .3rem; flex: 1; }
.field-row { display: flex; gap: 1rem; flex-wrap: wrap; }
.field-row > .field { min-width: 180px; }
label { font-weight: 700; font-size: .9rem; color: var(--teal); }
input, select, textarea {
    font: inherit; padding: .75rem 1rem; border: 1.5px solid var(--line); border-radius: 12px; background: var(--ivory); color: var(--ink);
    width: 100%; transition: border-color .15s, box-shadow .15s;
}
input:focus, select:focus, textarea:focus { outline: 0; border-color: var(--gold); box-shadow: 0 0 0 4px rgba(26, 154, 214, .18); }
.hint { color: var(--muted); font-size: .8rem; }
.captcha-row { display: flex; gap: .8rem; align-items: center; }
.captcha-row input { max-width: 140px; }
.captcha-row img { border-radius: 10px; cursor: pointer; border: 1px solid var(--line); }
.form-msg { margin: .8rem 0 0; font-weight: 700; min-height: 1.4em; }
.form-msg.ok { color: #1d7a4a; }
.form-msg.err { color: #b3261e; }
.day-chips { display: flex; gap: .5rem; overflow-x: auto; padding: .2rem 0 .6rem; scroll-snap-type: x proximity; }
.day-chip { scroll-snap-align: start; flex: 0 0 auto; min-width: 92px; border: 1.5px solid var(--line); background: var(--ivory); border-radius: 14px; padding: .55rem .5rem; text-align: center; cursor: pointer; font: inherit; color: var(--ink); }
.day-chip small { display: block; color: var(--muted); font-size: .75rem; }
.day-chip strong { display: block; font-size: 1rem; }
.day-chip[aria-pressed="true"] { background: var(--teal); border-color: var(--teal); color: #fff; }
.day-chip[aria-pressed="true"] small { color: var(--gold-2); }

/* سایر */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 1rem; }
.gallery-item { margin: 0; border-radius: var(--radius); overflow: hidden; aspect-ratio: 1; background: var(--tint); }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.gallery-item:hover img { transform: scale(1.06); }
.testi-grid, .article-grid, .area-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.2rem; }
.testi p { font-size: 1rem; }
.testi footer { color: var(--gold); font-weight: 700; font-size: .9rem; }
.faq-list { display: grid; gap: .8rem; }
.faq-item { background: var(--paper); border: 1px solid var(--line); border-radius: 16px; padding: 0 1.2rem; }
.faq-item summary { cursor: pointer; font-weight: 700; padding: 1rem 0; color: var(--teal); list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.faq-item summary::after { content: "+"; color: var(--gold); font-size: 1.4rem; line-height: 1; }
.faq-item[open] summary::after { content: "−"; }
.faq-a { padding: 0 0 1.1rem; color: var(--muted); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2.4rem; align-items: start; }
.contact-list { margin: 1rem 0; display: grid; gap: .7rem; }
.contact-list div { display: flex; gap: 1rem; }
.contact-list dt { font-weight: 800; color: var(--teal); min-width: 80px; }
.contact-list dd { margin: 0; color: var(--muted); }
.contact-actions { display: flex; gap: .6rem; flex-wrap: wrap; margin-bottom: 1rem; }
.map { width: 100%; height: 260px; border: 0; border-radius: var(--radius); }
.page-hero { padding: clamp(2rem, 5vw, 4rem) 0; background: linear-gradient(180deg, var(--tint), var(--ivory)); }
.crumbs { font-size: .85rem; color: var(--muted); margin-bottom: 1rem; }
.prose h2 { margin-top: 1.4rem; }
.prose p, .check-list { color: #2c4257; }
.check-list { list-style: none; padding: 0; display: grid; gap: .5rem; }
.check-list li::before { content: "✓"; color: var(--gold); font-weight: 800; margin-inline-end: .6rem; }

/* فوتر */
.site-footer { background: #0a3560; color: #c5d3d3; padding: 3rem 0 6rem; margin-top: 2rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1.3fr 1.3fr; gap: 2rem; }
.site-footer h4 { color: #fff; font-size: 1rem; }
.site-footer a { display: block; color: #c5d3d3; padding: .15rem 0; }
.site-footer a:hover { color: var(--gold-2); }
.footer-about { margin-top: 1rem; font-size: .9rem; }
.footer-bottom { margin-top: 2rem; padding-top: 1rem; border-top: 1px solid rgba(255, 255, 255, .1); font-size: .85rem; }

/* داک موبایل */
.dock { display: none; }

/* ورود نرم */
[data-reveal] { opacity: 0; transform: translateY(16px); transition: opacity .6s, transform .6s; }
[data-reveal].in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { [data-reveal] { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

@media (max-width: 960px) {
    .main-nav, .header-phone { display: none; }
    .menu-toggle { display: flex; }
    .hero-in, .club-grid, .contact-grid { grid-template-columns: 1fr; gap: 2rem; }
    .hero-visual { max-width: 460px; }
    .hero-art, .hero-visual img { aspect-ratio: 16/10; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
    .footer-grid { grid-template-columns: 1fr; }
    .doctor-card { flex-direction: column; }
    .doctor-photo { flex-basis: auto; height: 160px; }
    .dock {
        display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; z-index: 60; inset-inline: 0; bottom: 0;
        background: rgba(255, 255, 255, .96); backdrop-filter: blur(12px); border-top: 1px solid var(--line);
        padding: .35rem .3rem calc(.35rem + env(safe-area-inset-bottom));
    }
    .dock a { display: flex; flex-direction: column; align-items: center; gap: 2px; color: var(--muted); font-size: .7rem; }
    .dock svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
    .dock .dock-main { color: #fff; background: var(--teal); border-radius: 16px; margin-top: -14px; padding: .5rem 0; box-shadow: 0 8px 18px rgba(15, 76, 129, .3); }
}

/* مقالات و صفحه‌بندی */
.muted { color: var(--muted); }
.h3 { font-size: 1.15rem; }
.article-thumb { width: 100%; aspect-ratio: 16/9; object-fit: cover; border-radius: 12px; margin-bottom: .8rem; }
.article-hero-img { width: 100%; border-radius: var(--radius); margin-bottom: 1.4rem; }
.pagination { display: flex; gap: .4rem; justify-content: center; margin-top: 2rem; flex-wrap: wrap; }
.pagination a { min-width: 40px; text-align: center; padding: .4rem .8rem; border-radius: 10px; border: 1px solid var(--line); background: var(--paper); }
.pagination a.active { background: var(--teal); color: #fff; border-color: var(--teal); }
.cta-box { margin-top: 2rem; padding: 1.4rem; border-radius: var(--radius); background: var(--tint); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; }
.prose h2, .prose h3 { margin-top: 1.6rem; }
.prose ul { padding-inline-start: 1.4rem; }
