@import url("https://fonts.googleapis.com/css2?family=Vazirmatn:wght@300;400;500;600;700;800;900&display=swap");

:root {
    color-scheme: light;
    --bg: #f1f7f5;
    --surface: rgba(255, 255, 255, .86);
    --surface-solid: #ffffff;
    --text: #15332d;
    --muted: #6f837f;
    --line: rgba(22, 91, 78, .12);
    --primary: #0f6b5d;
    --primary-dark: #0a5046;
    --primary-soft: rgba(15, 107, 93, .09);
    --gold: #d7a746;
    --shadow: 0 24px 70px rgba(27, 83, 72, .13);
    --shadow-soft: 0 14px 38px rgba(27, 83, 72, .08);
    --radius-xl: 34px;
    --radius-lg: 24px;
}

html[data-theme="dark"] {
    color-scheme: dark;
    --bg: #0b1714;
    --surface: rgba(17, 36, 31, .88);
    --surface-solid: #12241f;
    --text: #edf8f5;
    --muted: #a1b5b0;
    --line: rgba(220, 246, 238, .1);
    --primary: #47c9af;
    --primary-dark: #2aa98f;
    --primary-soft: rgba(71, 201, 175, .1);
    --gold: #e4ba5d;
    --shadow: 0 24px 70px rgba(0, 0, 0, .3);
    --shadow-soft: 0 14px 38px rgba(0, 0, 0, .22);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: "Vazirmatn", Tahoma, sans-serif;
    background:
        radial-gradient(circle at 8% 6%, rgba(19, 144, 122, .16), transparent 31rem),
        radial-gradient(circle at 92% 12%, rgba(215, 167, 70, .13), transparent 27rem),
        var(--bg);
    color: var(--text);
    transition: background .25s ease, color .25s ease;
}

body::before,
body::after {
    content: "";
    position: fixed;
    z-index: -1;
    border-radius: 50%;
    pointer-events: none;
}

body::before {
    width: 300px;
    height: 300px;
    top: 32%;
    right: -150px;
    background: rgba(19, 144, 122, .08);
}

body::after {
    width: 240px;
    height: 240px;
    bottom: 4%;
    left: -100px;
    background: rgba(215, 167, 70, .09);
}

a {
    color: inherit;
}

svg {
    display: block;
    width: 1.4em;
    height: 1.4em;
    fill: currentColor;
}

.page {
    width: min(1220px, calc(100% - 32px));
    margin: 0 auto;
    padding: 22px 0 34px;
}

.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 8px 4px 22px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 13px;
    text-decoration: none;
}

.logo {
    width: 54px;
    height: 54px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    overflow: hidden;
    border-radius: 18px;
    background: linear-gradient(145deg, var(--primary), var(--primary-dark));
    color: #fff;
    box-shadow: 0 12px 25px rgba(15, 107, 93, .24);
}

.logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cross {
    position: relative;
    width: 27px;
    height: 27px;
}

.cross::before,
.cross::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    border-radius: 5px;
    background: #fff;
    transform: translate(-50%, -50%);
}

.cross::before {
    width: 27px;
    height: 9px;
}

.cross::after {
    width: 9px;
    height: 27px;
}

.brand > span:last-child {
    display: grid;
    gap: 3px;
}

.brand-name {
    font-size: 1.08rem;
    font-weight: 900;
}

.brand-sub {
    direction: ltr;
    color: var(--muted);
    font-size: .72rem;
    text-align: right;
}

.top-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.date-box,
.theme-toggle {
    min-height: 46px;
    border: 1px solid var(--line);
    border-radius: 15px;
    background: rgba(255, 255, 255, .52);
    backdrop-filter: blur(14px);
}

html[data-theme="dark"] .date-box,
html[data-theme="dark"] .theme-toggle {
    background: rgba(17, 36, 31, .65);
}

.date-box {
    display: flex;
    align-items: center;
    padding: 0 14px;
    color: var(--muted);
    font-size: .78rem;
}

.theme-toggle {
    width: 46px;
    display: grid;
    place-items: center;
    padding: 0;
    color: var(--text);
    cursor: pointer;
    transition: transform .2s ease;
}

.theme-toggle:hover {
    transform: translateY(-2px);
}

.theme-sun {
    display: none;
}

html[data-theme="dark"] .theme-moon {
    display: none;
}

html[data-theme="dark"] .theme-sun {
    display: block;
}

.hero {
    position: relative;
    overflow: hidden;
    display: grid;
    grid-template-columns: minmax(0, .86fr) minmax(520px, 1.14fr);
    gap: 34px;
    align-items: stretch;
    padding: clamp(26px, 4.5vw, 58px);
    border: 1px solid var(--line);
    border-radius: var(--radius-xl);
    background: linear-gradient(135deg, rgba(255, 255, 255, .88), rgba(255, 255, 255, .58));
    box-shadow: var(--shadow);
    backdrop-filter: blur(20px);
}

html[data-theme="dark"] .hero {
    background: linear-gradient(135deg, rgba(17, 36, 31, .94), rgba(17, 36, 31, .73));
}

.hero::before {
    content: "";
    position: absolute;
    width: 390px;
    height: 390px;
    top: -210px;
    left: -140px;
    border-radius: 50%;
    background: linear-gradient(145deg, rgba(19, 144, 122, .16), rgba(215, 167, 70, .1));
}

.hero-copy,
.contact-panel {
    position: relative;
    z-index: 1;
}

.hero-copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.eyebrow {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 8px 12px;
    border-radius: 999px;
    background: var(--primary-soft);
    color: var(--primary);
    font-size: .74rem;
    font-weight: 800;
}

.eyebrow-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--primary);
    box-shadow: 0 0 0 6px var(--primary-soft);
}

h1 {
    margin: 23px 0 10px;
    font-size: clamp(2.4rem, 5.2vw, 4.45rem);
    line-height: 1.16;
    letter-spacing: -2.4px;
}

.tagline {
    max-width: 540px;
    margin: 0;
    color: var(--muted);
    font-size: .96rem;
    line-height: 2;
}

.doctor-card {
    display: flex;
    align-items: center;
    gap: 13px;
    width: fit-content;
    margin-top: 24px;
    padding: 11px 13px;
    border: 1px solid var(--line);
    border-radius: 17px;
    background: rgba(255, 255, 255, .44);
}

html[data-theme="dark"] .doctor-card {
    background: rgba(255, 255, 255, .035);
}

.doctor-icon {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    border-radius: 13px;
    background: var(--primary-soft);
    color: var(--primary);
}

.doctor-card > span:last-child {
    display: grid;
    gap: 2px;
}

.doctor-card small {
    color: var(--muted);
    font-size: .68rem;
}

.doctor-card strong {
    font-size: .87rem;
}

.hero-actions {
    display: grid;
    gap: 11px;
    margin-top: 27px;
}

.action-button {
    display: flex;
    align-items: center;
    gap: 13px;
    min-height: 75px;
    padding: 13px 15px;
    border: 1px solid var(--line);
    border-radius: 19px;
    text-decoration: none;
    transition: transform .2s ease, box-shadow .2s ease;
}

.action-button:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-soft);
}


.action-button.store {
    border-color: transparent;
    background: linear-gradient(145deg, var(--gold), #b98627);
    color: #2e2108;
}

.action-button.store .action-icon,
.action-button.store .action-arrow {
    background: rgba(255, 255, 255, .22);
}

html[data-theme="dark"] .action-button.store {
    background: linear-gradient(145deg, var(--gold), #c8912c);
    color: #211703;
}

.action-button.primary {
    border-color: transparent;
    background: linear-gradient(145deg, var(--primary), var(--primary-dark));
    color: #fff;
}

html[data-theme="dark"] .action-button.primary {
    background: linear-gradient(145deg, var(--primary), #70ddc7);
    color: #06251e;
}

.action-button.secondary {
    background: var(--surface-solid);
}

.action-icon {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    border-radius: 14px;
    background: rgba(255, 255, 255, .14);
}

.secondary .action-icon {
    background: var(--primary-soft);
    color: var(--primary);
}

.action-button > span:nth-child(2) {
    display: grid;
    flex: 1;
    gap: 3px;
}

.action-button small {
    opacity: .72;
    font-size: .66rem;
}

.action-button strong {
    font-size: .86rem;
}

.action-arrow {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 11px;
    background: rgba(255, 255, 255, .12);
    transform: rotate(180deg);
}

.secondary .action-arrow {
    background: var(--primary-soft);
    color: var(--primary);
}

.contact-panel {
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: 27px;
    background: rgba(255, 255, 255, .56);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .55);
}

html[data-theme="dark"] .contact-panel {
    background: rgba(5, 20, 17, .24);
}

.contact-panel-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 17px;
}

.panel-kicker,
.section-kicker {
    display: block;
    margin-bottom: 5px;
    color: var(--primary);
    font-size: .68rem;
    font-weight: 800;
}

.contact-panel-head h2,
.section-head h2 {
    margin: 0;
    font-size: 1.28rem;
}

.availability {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 10px;
    border-radius: 999px;
    background: var(--primary-soft);
    color: var(--primary);
    white-space: nowrap;
    font-size: .65rem;
    font-weight: 700;
}

.availability i {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--primary);
    box-shadow: 0 0 0 5px var(--primary-soft);
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 11px;
}

.contact-card {
    display: flex;
    gap: 12px;
    min-height: 145px;
    padding: 15px;
    border: 1px solid var(--line);
    border-radius: 19px;
    background: var(--surface-solid);
    transition: transform .2s ease, border-color .2s ease;
}

.contact-card:hover {
    transform: translateY(-3px);
    border-color: rgba(15, 107, 93, .25);
}

.contact-card.wide {
    grid-column: span 2;
    min-height: auto;
}

.contact-icon {
    width: 41px;
    height: 41px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    border-radius: 13px;
    background: var(--primary-soft);
    color: var(--primary);
}

.contact-content {
    min-width: 0;
    flex: 1;
}

.contact-content h3 {
    margin: 1px 0 8px;
    font-size: .77rem;
}

.contact-lines {
    display: flex;
    flex-wrap: wrap;
    gap: 5px 11px;
}

.contact-lines a,
.contact-lines span {
    color: var(--text);
    font-size: .86rem;
    font-weight: 800;
    line-height: 1.85;
    text-decoration: none;
}

.phone-numbers,
.work-hours {
    flex-direction: column;
    gap: 0;
}

.contact-lines a:hover,
.text-link:hover {
    color: var(--primary);
}

.contact-content p {
    margin: 6px 0 0;
    color: var(--muted);
    font-size: .63rem;
    line-height: 1.7;
}

.text-link {
    color: var(--primary);
    font-weight: 800;
    text-decoration: none;
}

.messenger-area {
    display: grid;
    gap: 10px;
    margin-top: 12px;
}

.messenger-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
}

.messenger-row a {
    padding: 11px;
    border: 1px solid var(--line);
    border-radius: 13px;
    background: var(--surface-solid);
    text-align: center;
    text-decoration: none;
    font-size: .72rem;
    font-weight: 800;
    transition: background .2s ease, color .2s ease, transform .2s ease;
}

.messenger-row a:hover {
    background: var(--primary);
    color: #fff;
    transform: translateY(-2px);
}

.message-note {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 11px 13px;
    border: 1px solid var(--line);
    border-radius: 15px;
    background: linear-gradient(135deg, var(--primary-soft), transparent);
}

.message-note-icon {
    width: 39px;
    height: 39px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    border-radius: 12px;
    background: var(--surface-solid);
    color: var(--primary);
}

.message-note > span:last-child {
    display: grid;
    gap: 3px;
}

.message-note strong {
    font-size: .73rem;
}

.message-note small {
    color: var(--muted);
    font-size: .63rem;
    line-height: 1.7;
}

.notice-strip {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 18px;
    padding: 18px 20px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: var(--surface);
    box-shadow: var(--shadow-soft);
}

.notice-icon {
    width: 45px;
    height: 45px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    border-radius: 14px;
    background: var(--primary-soft);
    color: var(--primary);
}

.notice-strip strong {
    font-size: .82rem;
}

.notice-strip p {
    margin: 4px 0 0;
    color: var(--muted);
    font-size: .72rem;
    line-height: 1.8;
}

.section {
    margin-top: 36px;
}

.section-head {
    display: flex;
    justify-content: space-between;
    padding: 0 4px;
    margin-bottom: 17px;
}

.section-head p {
    margin: 7px 0 0;
    color: var(--muted);
    font-size: .76rem;
}

.empty-state {
    display: grid;
    place-items: center;
    min-height: 210px;
    padding: 28px;
    border: 1px dashed rgba(15, 107, 93, .25);
    border-radius: var(--radius-lg);
    background: var(--surface);
    text-align: center;
}

.empty-icon {
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;
    margin-bottom: 13px;
    border-radius: 19px;
    background: var(--primary-soft);
    color: var(--primary);
}

.empty-state strong {
    font-size: .88rem;
}

.empty-state p {
    max-width: 560px;
    margin: 8px auto 0;
    color: var(--muted);
    font-size: .73rem;
    line-height: 1.9;
}

.groups {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.group-card {
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: var(--surface);
    box-shadow: var(--shadow-soft);
}

.group-card-head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--line);
}

.group-card-icon {
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    border-radius: 15px;
    background: var(--primary-soft);
    color: var(--primary);
}

.group-card-icon svg {
    width: 23px;
    height: 23px;
}

.group-card-head > span:last-child {
    min-width: 0;
    display: grid;
    gap: 4px;
}

.group-card h3 {
    margin: 0;
    font-size: .88rem;
}

.group-card-head small {
    color: var(--muted);
    font-size: .63rem;
    line-height: 1.7;
}

.link-list {
    display: grid;
    gap: 9px;
}

.quick-link {
    display: flex;
    align-items: center;
    gap: 11px;
    min-height: 68px;
    padding: 12px;
    border: 1px solid transparent;
    border-radius: 15px;
    text-decoration: none;
    transition: background .2s ease, transform .2s ease, border-color .2s ease;
}

.quick-link:hover {
    background: var(--primary-soft);
    border-color: var(--line);
    transform: translateX(-3px);
}

.quick-link > span:first-child {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    border-radius: 12px;
    background: var(--primary-soft);
    color: var(--primary);
}

.quick-link > span:nth-child(2) {
    display: grid;
    flex: 1;
    gap: 3px;
}

.quick-link strong {
    font-size: .76rem;
}

.quick-link small {
    color: var(--muted);
    font-size: .65rem;
}

.quick-link i {
    color: var(--muted);
    transform: rotate(180deg);
}

.footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-top: 30px;
    padding: 22px 5px 0;
    color: var(--muted);
    font-size: .69rem;
}

.footer > div {
    display: grid;
    gap: 4px;
}

.footer strong {
    color: var(--text);
    font-size: .76rem;
}

@media (max-width: 980px) {
    .hero {
        grid-template-columns: 1fr;
    }

    .hero-copy {
        align-items: center;
        text-align: center;
    }

    .eyebrow {
        align-self: center;
    }

    .tagline {
        max-width: 650px;
    }

    .hero-actions {
        width: min(100%, 620px);
        grid-template-columns: repeat(2, 1fr);
    }

    .action-button {
        text-align: right;
    }
}

@media (max-width: 700px) {
    .page {
        width: min(100% - 20px, 1220px);
        padding-top: 11px;
    }

    .topbar {
        padding-bottom: 15px;
    }

    .brand-sub,
    .date-box {
        display: none;
    }

    .logo {
        width: 48px;
        height: 48px;
        border-radius: 16px;
    }

    .hero {
        padding: 23px 16px;
        border-radius: 27px;
    }

    h1 {
        font-size: clamp(2.1rem, 12vw, 3.2rem);
        letter-spacing: -1.4px;
    }

    .tagline {
        font-size: .86rem;
    }

    .doctor-card {
        width: 100%;
        justify-content: center;
    }

    .hero-actions {
        grid-template-columns: 1fr;
    }

    .contact-panel {
        padding: 15px;
        border-radius: 22px;
    }

    .contact-panel-head {
        align-items: center;
    }

    .availability {
        display: none;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .contact-card.wide {
        grid-column: auto;
    }

    .contact-card {
        min-height: auto;
    }

    .messenger-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .notice-strip {
        align-items: flex-start;
    }

    .groups {
        grid-template-columns: 1fr;
    }

    .footer {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 410px) {
    .brand-name {
        font-size: .98rem;
    }

    .theme-toggle {
        width: 43px;
        min-height: 43px;
    }

    .hero {
        padding-inline: 13px;
    }

    .contact-card {
        padding: 13px;
    }

    .contact-lines a,
    .contact-lines span {
        font-size: .8rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    * {
        scroll-behavior: auto !important;
        transition: none !important;
    }
}
