:root {
    --italmed-primary: #48a7b8;
    --italmed-primary-dark: #1d6673;
    --italmed-primary-soft: #eaf7f8;
    --italmed-accent: #ddb431;
    --italmed-accent-dark: #b08b17;
    --italmed-ink: #123943;
    --italmed-muted: #667b80;
    --italmed-bg: #f7fbfc;
    --italmed-border: #b8dce2;
    --italmed-shadow: 0 16px 40px rgba(18, 57, 67, .10);
    --italmed-radius: 22px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: Vazirmatn, Inter, Tahoma, Arial, sans-serif;
    background: var(--italmed-bg);
    color: var(--italmed-ink);
    line-height: 1.75;
}
a { color: var(--italmed-primary-dark); text-decoration: none; }
a:hover { color: var(--italmed-primary); }
img { max-width: 100%; }

.main-navbar {
    min-height: 82px;
    border-bottom: 1px solid rgba(18, 57, 67, .08);
    box-shadow: 0 5px 18px rgba(18, 57, 67, .04);
}
.navbar-brand img { object-fit: contain; }
.brand-word { font-size: 1.3rem; font-weight: 900; color: var(--italmed-primary-dark); letter-spacing: -.02em; }
.navbar .nav-link { color: var(--italmed-ink); font-weight: 650; padding: .7rem .85rem !important; border-radius: 12px; }
.navbar .nav-link:hover, .navbar .nav-link:focus { color: var(--italmed-primary-dark); background: var(--italmed-primary-soft); }
.soft-dropdown { border: 0; border-radius: 16px; padding: .6rem; box-shadow: var(--italmed-shadow); }
.soft-dropdown .dropdown-item { border-radius: 10px; padding: .65rem .85rem; }

.language-button { display: inline-flex; align-items: center; justify-content: space-between; gap: .55rem; border: 1px solid #d8e7ea; background: #f8fbfc; border-radius: 14px; min-width: 130px; }
.language-menu { min-width: 190px; border: 0; border-radius: 16px; box-shadow: var(--italmed-shadow); padding: .55rem; }
.language-option { display: flex; align-items: center; justify-content: space-between; gap: .6rem; border-radius: 10px; }
.flag-circle { width: 27px; height: 27px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; border: 1px solid #d8e7ea; background: white; font-size: 16px; }

.btn { border-radius: 13px; font-weight: 750; padding: .65rem 1.15rem; }
.btn-lg { padding: .85rem 1.35rem; }
.btn-primary { background: var(--italmed-primary); border-color: var(--italmed-primary); color: #fff; }
.btn-primary:hover, .btn-primary:focus { background: var(--italmed-primary-dark); border-color: var(--italmed-primary-dark); }
.btn-outline-primary { color: var(--italmed-primary-dark); border-color: var(--italmed-primary); }
.btn-outline-primary:hover { background: var(--italmed-primary); border-color: var(--italmed-primary); }
.btn-accent { background: var(--italmed-accent); border-color: var(--italmed-accent); color: #fff; }
.btn-accent:hover { background: var(--italmed-accent-dark); border-color: var(--italmed-accent-dark); color: #fff; }
.text-primary { color: var(--italmed-primary-dark) !important; }

.section { padding: 88px 0; }
.section-title { max-width: 760px; margin: 0 auto 42px; text-align: center; }
.section-title > span, .eyebrow { display: inline-block; color: var(--italmed-accent-dark); font-weight: 850; margin-bottom: .65rem; letter-spacing: .02em; }
.section-title h2 { font-size: clamp(1.8rem, 3vw, 2.7rem); font-weight: 900; letter-spacing: -.03em; margin-bottom: .75rem; }
.section-title p { color: var(--italmed-muted); margin: 0; }

.content-card { background: #fff; border: 1px solid rgba(72, 167, 184, .16); border-radius: var(--italmed-radius); box-shadow: var(--italmed-shadow); }
.form-control, .form-select { min-height: 50px; border-radius: 13px; border-color: #ccdde1; }
.form-control:focus, .form-select:focus { border-color: var(--italmed-primary); box-shadow: 0 0 0 .25rem rgba(72, 167, 184, .15); }

.inner-hero { padding: 80px 0 68px; background: linear-gradient(135deg, #e9f7f8 0%, #f9fcfd 68%, #fff8e4 100%); text-align: center; }
.inner-hero h1 { font-size: clamp(2.1rem, 5vw, 3.5rem); font-weight: 900; letter-spacing: -.04em; }
.inner-hero p { max-width: 760px; margin: 1rem auto 0; color: var(--italmed-muted); font-size: 1.12rem; }

.site-footer { background: #fff; border-top: 1px solid #dcebed; }
.footer-brand { font-size: 1.6rem; font-weight: 900; color: var(--italmed-primary-dark); }
.footer-copy { max-width: 620px; color: #536a70; }
.footer-heading { font-size: 1.05rem; font-weight: 900; color: var(--italmed-primary-dark); margin-bottom: 1rem; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: .55rem; }
.footer-links a { color: #496269; }
.country-pills { display: flex; flex-wrap: wrap; gap: .5rem; }
.country-pills a { background: #718f94; color: #fff; border-radius: 999px; padding: .25rem .75rem; font-size: .85rem; }
.footer-bottom { background: var(--italmed-primary); color: #fff; }

.floating-support { position: fixed; right: 18px; bottom: 28px; z-index: 1030; display: flex; flex-direction: column; gap: 10px; align-items: flex-end; }
.support-pill { display: flex; align-items: center; flex-direction: row-reverse; background: var(--italmed-primary-dark); color: #fff; border-radius: 999px; box-shadow: 0 10px 24px rgba(18,57,67,.22); overflow: hidden; min-height: 54px; }
.support-pill:hover { color: #fff; transform: translateY(-2px); }
.support-icon { width: 54px; height: 54px; display: grid; place-items: center; border-radius: 50%; background: var(--italmed-primary); font-size: 1.35rem; }
.support-label { max-width: 0; opacity: 0; white-space: nowrap; transition: max-width .3s ease, opacity .2s ease, padding .3s ease; }
.support-pill:hover .support-label, .support-pill:focus .support-label { max-width: 180px; opacity: 1; padding: 0 .4rem 0 1rem; }

.doctor-list-card { background: #fff; border: 1px solid var(--italmed-border); border-radius: var(--italmed-radius); padding: 1.4rem; box-shadow: 0 12px 30px rgba(18,57,67,.08); }
.doctor-list-top { display: flex; gap: 1rem; align-items: center; }
.doctor-list-top img { width: 92px; height: 92px; border-radius: 22px; object-fit: cover; background: #e9eff2; }
.doctor-list-top h2 { font-size: 1.3rem; font-weight: 900; margin: 0; }
.doctor-list-top p { margin: .2rem 0; color: var(--italmed-muted); }
.verified-badge { display: inline-flex; background: #388b5e; color: #fff; border-radius: 8px; padding: .22rem .6rem; font-size: .8rem; font-weight: 800; }
.doctor-list-details { display: grid; gap: .6rem; padding: 1.2rem 0; color: #546a70; }

.profile-hero { padding: 72px 0; background: linear-gradient(135deg, #effafb, #f8fbfc); }
.profile-main-card, .booking-card { background: #fff; border-radius: var(--italmed-radius); padding: clamp(1.5rem, 4vw, 2.5rem); box-shadow: var(--italmed-shadow); border: 1px solid rgba(72,167,184,.15); }
.profile-head { display: flex; gap: 1.5rem; align-items: center; }
.profile-head img { width: 142px; height: 142px; border-radius: 28px; object-fit: cover; background: #e6eef1; }
.profile-head h1 { font-weight: 900; }
.profile-head p { color: var(--italmed-muted); font-size: 1.1rem; }
.profile-divider { height: 1px; background: #d7e4e7; margin: 1.8rem 0; }
.profile-main-card h2 { font-size: 1.25rem; font-weight: 900; margin-top: 1.4rem; }
.booking-card { text-align: center; display: flex; flex-direction: column; justify-content: center; }
.booking-card > span { color: var(--italmed-muted); font-weight: 700; }
.booking-price { font-size: 3rem; font-weight: 900; color: var(--italmed-primary-dark); margin: .5rem 0 1.2rem; }
.booking-card ul { list-style: none; padding: 0; text-align: start; margin: 0 0 1.5rem; }
.booking-card li { margin: .65rem 0; }
.booking-card li::before { content: "✓"; color: #2f8d62; margin-inline-end: .55rem; font-weight: 900; }

.contact-info-card { background: var(--italmed-primary-dark); color: #fff; border-radius: var(--italmed-radius); padding: 2.2rem; }
.contact-info-card p { color: rgba(255,255,255,.78); }
.contact-channel { display: flex; align-items: center; gap: .7rem; color: #fff; border: 1px solid rgba(255,255,255,.25); border-radius: 14px; padding: .8rem 1rem; margin-top: .8rem; }
.contact-channel:hover { color: #fff; background: rgba(255,255,255,.08); }
.mini-value { border: 1px solid var(--italmed-border); border-radius: 16px; padding: 1rem; height: 100%; }
.mini-value strong { display: block; color: var(--italmed-primary); font-size: 1.4rem; }
.emergency-card { background: #fff7df; border: 1px solid #edd790; border-radius: var(--italmed-radius); padding: 2.4rem; }
.emergency-icon { width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; background: var(--italmed-accent); color: #fff; font-size: 2rem; font-weight: 900; margin-bottom: 1rem; }
.resource-number { color: var(--italmed-primary); font-size: 2rem; font-weight: 900; margin-bottom: 1rem; }

.reveal { opacity: 0; transform: translateY(22px); transition: opacity .65s ease, transform .65s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }
