/* ==============================================
   صفحات خدمات — services.css
   خدمات مطب + خدمات جراحی
   دکتر وحید عبدالرحیمی
============================================== */

/* ===== متغیرهای رنگ (همان home.css) ===== */
:root {
    --primary:       #1a56db;
    --primary-dark:  #1241a8;
    --primary-light: #e8f0fe;
    --accent:        #0ea5e9;
    --text-dark:     #1e293b;
    --text-muted:    #64748b;
    --bg-light:      #f8fafc;
    --border:        #e2e8f0;
    --shadow-md:     0 4px 20px rgba(0,0,0,.09);
    --shadow-lg:     0 10px 40px rgba(0,0,0,.13);
}

/* ===========================
   عنوان بخش‌ها
=========================== */
.sec-head {
    margin-bottom: 56px;
    text-align: center;
}

.sec-head .pre-title {
    display: inline-block;
    background: var(--primary-light);
    color: var(--primary);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
    padding: 5px 16px;
    border-radius: 50px;
    margin-bottom: 14px;
}

.sec-head h2 {
    font-size: 34px !important;
    font-weight: 800 !important;
    color: var(--text-dark) !important;
    margin-bottom: 14px !important;
}

.sec-head p {
    color: var(--text-muted);
    font-size: 15px;
    max-width: 560px;
    margin: 0 auto;
    line-height: 1.75;
}

.sec-divider {
    width: 56px;
    height: 4px;
    background: linear-gradient(to left, var(--primary), var(--accent));
    border-radius: 2px;
    margin: 14px auto;
}

.sec-divider-light {
    background: linear-gradient(to left, #60a5fa, #0ea5e9);
}

/* رنگ عنوان بخش روی پس‌زمینه تاریک */
.dark-head h2 { color: #fff !important; }
.dark-head p  { color: #94a3b8; }
.dark-head .pre-title {
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.12);
    color: #93c5fd;
}

/* grad text */
.grad-text {
    background: linear-gradient(90deg, #60a5fa, #0ea5e9);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ===========================
   هیرو صفحات خدمات
   پس‌زمینه navy dark
=========================== */
.services-hero-section {
    margin-top: 123px; /* header-top(47px) + #header(76px) */
    background: linear-gradient(140deg, #071a35 0%, #0d2b55 60%, #0a3d72 100%);
    position: relative;
    overflow: hidden;
    padding: 70px 0 90px;
}

/* دایره دکوراتیو پس‌زمینه */
.services-hero-section::before {
    content: '';
    position: absolute;
    width: 550px; height: 550px;
    border-radius: 50%;
    background: rgba(26,86,219,.05);
    top: -180px; left: -120px;
    pointer-events: none;
}

.services-hero-section::after {
    content: '';
    position: absolute;
    width: 320px; height: 320px;
    border-radius: 50%;
    background: rgba(14,165,233,.05);
    bottom: -80px; right: -60px;
    pointer-events: none;
}

/* محتوای متنی */
.services-hero-content { position: relative; z-index: 2; }

/* breadcrumb */
.services-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
    font-size: 13px;
}

.services-breadcrumb a { color: #94a3b8; text-decoration: none; transition: color .25s; }
.services-breadcrumb a:hover { color: #60a5fa; }
.services-breadcrumb .sep { color: #475569; font-size: 11px; }
.services-breadcrumb .current { color: #60a5fa; }

/* تگ بالای عنوان */
.services-tag {
    display: inline-block;
    background: rgba(26,86,219,.22);
    border: 1px solid rgba(96,165,250,.3);
    color: #93c5fd;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    padding: 5px 16px;
    border-radius: 50px;
    margin-bottom: 18px;
}

.services-hero-content h1 {
    font-size: 44px;
    font-weight: 900;
    color: #fff;
    line-height: 1.2;
    margin-bottom: 16px;
}

.services-hero-content p {
    color: #94a3b8;
    font-size: 14px;
    line-height: 1.9;
    margin-bottom: 28px;
    max-width: 560px;
    text-align: justify;
}

/* بج‌های سریع در هیرو */
.hero-service-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.service-badge-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 8px;
    padding: 8px 16px;
    font-size: 12px;
    color: #cbd5e1;
    font-weight: 600;
}

.service-badge-item i { color: #60a5fa; font-size: 13px; }

/* آیکون دکوراتیو سمت چپ هیرو */
.hero-deco-circle {
    position: relative;
    z-index: 2;
    width: 220px; height: 220px;
    border-radius: 50%;
    background: rgba(26,86,219,.12);
    border: 1px dashed rgba(96,165,250,.2);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

.hero-deco-circle::before {
    content: '';
    position: absolute;
    width: 280px; height: 280px;
    border-radius: 50%;
    border: 1px dashed rgba(96,165,250,.09);
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
}

.hero-deco-circle i {
    font-size: 80px;
    color: rgba(96,165,250,.25);
}

/* ===========================
   گرید کارت‌های خدمات
   پس‌زمینه سفید
=========================== */
.services-grid-section {
    padding: 100px 0;
    background: #fff;
    position: relative;
    overflow: hidden;
    clip-path: polygon(0 60px, 100% 0, 100% 100%, 0 100%);
    margin-top: -60px;
}

/* کارت خدمت — تصویر + عنوان + توضیح کوتاه */
.service-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 20px;
    overflow: hidden;
    /* ارتفاع ثابت — مستقل از طول متن */
    height: 340px;
    display: flex;
    flex-direction: column;
    transition: all .32s;
    box-shadow: 0 2px 12px rgba(0,0,0,.05);
}

.service-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-6px);
    border-color: rgba(26,86,219,.18);
}

/* ناحیه تصویر — ارتفاع ثابت */
.svc-img-wrap {
    position: relative;
    height: 190px;
    flex-shrink: 0;
    overflow: hidden;
    background: linear-gradient(135deg, #dbeafe 0%, #e8f0fe 100%);
}

.svc-img-wrap img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s ease;
}

.service-card:hover .svc-img-wrap img { transform: scale(1.07); }

/* overlay کم‌رنگ روی تصویر در hover */
.svc-img-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(26,86,219,.25) 0%, transparent 55%);
    z-index: 3;
    opacity: 0;
    transition: opacity .3s;
}

.service-card:hover .svc-img-overlay { opacity: 1; }

/* بدنه متنی کارت — ارتفاع باقیمانده، متن کوتاه‌شده */
.svc-body {
    padding: 16px 20px 18px;
    flex: 1;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.svc-body h3 {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 8px;
    line-height: 1.45;
    /* جلوگیری از سرریز عنوان */
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.svc-body p {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.75;
    margin: 0;
    text-align: justify;
    /* نمایش حداکثر ۳ خط — بقیه با ... */
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

/* ===========================
   بخش "چرا جراحی با دکتر"
   ویژه صفحه جراحی — navy dark
=========================== */
.surgery-why-section {
    padding: 100px 0;
    background: linear-gradient(140deg, #071a35 0%, #0d2b55 55%, #0a3d72 100%);
    position: relative;
    overflow: hidden;
    clip-path: polygon(0 60px, 100% 0, 100% 100%, 0 100%);
    margin-top: -60px;
}

.surgery-why-section::before {
    content: '';
    position: absolute;
    width: 450px; height: 450px;
    border-radius: 50%;
    background: rgba(26,86,219,.05);
    top: -100px; left: -80px;
    pointer-events: none;
}

/* ستون تصویر */
.why-img-wrap {
    position: relative;
    z-index: 2;
}

.why-img-inner {
    border-radius: 24px;
    overflow: hidden;
    border: 2px solid rgba(96,165,250,.2);
    box-shadow: 0 24px 64px rgba(0,0,0,.4);
}

.why-img-inner img {
    width: 100%;
    display: block;
    height: 480px;
    object-fit: cover;
    object-position: top center;
}

/* ستون متن */
.why-text-wrap {
    position: relative;
    z-index: 2;
    padding-right: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.why-text-wrap .pre-title {
    display: inline-block;
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.12);
    color: #93c5fd;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    padding: 5px 16px;
    border-radius: 50px;
    margin-bottom: 16px;
}

.why-text-wrap h2 {
    font-size: 32px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 6px;
    line-height: 1.3;
}

.why-divider {
    width: 56px;
    height: 4px;
    background: linear-gradient(to left, #60a5fa, #0ea5e9);
    border-radius: 2px;
    margin-bottom: 22px;
}

.why-text-wrap p {
    color: #94a3b8;
    font-size: 14px;
    line-height: 1.95;
    margin-bottom: 24px;
    text-align: justify;
}

/* لیست ویژگی‌ها */
.why-checklist {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 34px;
}

.why-check-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    color: #cbd5e1;
    font-weight: 500;
}

.why-check-item .check-icon {
    width: 30px; height: 30px;
    border-radius: 8px;
    background: rgba(26,86,219,.2);
    border: 1px solid rgba(96,165,250,.2);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.why-check-item .check-icon i {
    font-size: 13px;
    color: #60a5fa;
}

/* ===========================
   CTA نهایی
=========================== */
.services-cta-section {
    padding: 90px 0;
    background: var(--bg-light);
    position: relative;
    overflow: hidden;
    clip-path: polygon(0 60px, 100% 0, 100% 100%, 0 100%);
    margin-top: -60px;
    text-align: center;
}

.services-cta-section.dark-cta {
    background: linear-gradient(140deg, #071a35 0%, #0d2b55 55%, #0a3d72 100%);
    clip-path: polygon(0 60px, 100% 0, 100% 100%, 0 100%);
    margin-top: -60px;
}

.cta-wrap { position: relative; z-index: 2; }

.services-cta-section h2 {
    font-size: 34px;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 14px;
}

.services-cta-section.dark-cta h2 { color: #fff; }

.services-cta-section p {
    font-size: 15px;
    color: var(--text-muted);
    max-width: 480px;
    margin: 0 auto 36px;
    line-height: 1.85;
}

.services-cta-section.dark-cta p { color: #94a3b8; }

/* دکمه اصلی */
.btn-svc-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #1a56db, #0ea5e9);
    color: #fff !important;
    padding: 14px 36px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    transition: all .3s;
    box-shadow: 0 8px 26px rgba(26,86,219,.4);
}

.btn-svc-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 36px rgba(26,86,219,.55);
    color: #fff !important;
}

/* دکمه ghost */
.btn-svc-ghost {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: transparent;
    color: var(--primary) !important;
    padding: 13px 28px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    border: 1.5px solid var(--primary);
    transition: all .3s;
    margin-right: 12px;
}

.btn-svc-ghost:hover {
    background: var(--primary-light);
    color: var(--primary-dark) !important;
}

.dark-cta .btn-svc-ghost {
    color: #cbd5e1 !important;
    border-color: rgba(255,255,255,.2);
}

.dark-cta .btn-svc-ghost:hover {
    background: rgba(255,255,255,.07);
    color: #fff !important;
    border-color: rgba(255,255,255,.4);
}

/* دکمه رزرو در why section */
.btn-why-book {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #1a56db, #0ea5e9);
    color: #fff !important;
    padding: 13px 30px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    transition: all .3s;
    box-shadow: 0 6px 20px rgba(26,86,219,.4);
    align-self: flex-start;
}

.btn-why-book:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(26,86,219,.5);
    color: #fff !important;
}

/* ===========================
   تم سبز — صفحه جراحی
=========================== */

/* هیرو جراحی */
.surgery-hero {
    background: linear-gradient(140deg, #052e16 0%, #064e3b 60%, #065f46 100%) !important;
}
.surgery-hero::before { background: rgba(5,150,105,.07); }
.surgery-hero::after  { background: rgba(52,211,153,.06); }

/* گرادیان متن سبز */
.grad-text-green {
    background: linear-gradient(90deg, #34d399, #059669);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* تگ برچسب جراحی */
.surgery-tag {
    background: rgba(5,150,105,.22) !important;
    border-color: rgba(52,211,153,.3) !important;
    color: #6ee7b7 !important;
}

/* بج‌های هیرو جراحی */
.surgery-badge {
    background: rgba(5,150,105,.12) !important;
    border-color: rgba(52,211,153,.2) !important;
    color: #a7f3d0 !important;
}
.surgery-badge i { color: #34d399 !important; }

/* کارت سرویس جراحی */
.surgery-card { border-color: rgba(5,150,105,.15); }
.surgery-card:hover { border-color: rgba(5,150,105,.35); }

/* placeholder آیکون جراحی */
.svc-img-placeholder.surgery-placeholder {
    background: linear-gradient(135deg, #dcfce7 0%, #d1fae5 100%);
}
.svc-img-placeholder.surgery-placeholder i { color: rgba(5,150,105,.22); }

/* دایره دکوراتیو جراحی */
.surgery-deco {
    background: rgba(5,150,105,.12) !important;
    border-color: rgba(52,211,153,.2) !important;
}
.surgery-deco i { color: rgba(52,211,153,.28) !important; }

/* ===========================
   Responsive
=========================== */
@media (max-width: 991.98px) {
    .services-hero-section {
        margin-top: 29px;
        padding: 50px 0 70px;
    }

    .services-hero-content h1 { font-size: 32px; }
    .why-text-wrap { padding-right: 0; padding-top: 30px; }
}

@media (max-width: 767.98px) {
    .services-hero-section {
        margin-top: 112px; /* هدر ۱۱۲px (76px + ۳۶px نوار زبان) */
        padding: 40px 0 60px;
    }

    .services-hero-content h1 { font-size: 26px; }
    .services-hero-content { text-align: center; }
    .services-breadcrumb { justify-content: center; }
    .hero-service-badges { justify-content: center; }

    .services-grid-section { clip-path: none; margin-top: 0; }
    .surgery-why-section  { clip-path: none; margin-top: 0; }
    .services-cta-section { clip-path: none; margin-top: 0; }

    .services-cta-section h2 { font-size: 26px; }
    .btn-svc-ghost { margin-right: 0; margin-top: 12px; }

    .why-img-inner img { height: 260px; }
    .why-text-wrap { padding-right: 0; }

    /* کارت‌های خدمات — ۲ ستون در موبایل */
    .services-grid-section .row > .col-md-6 {
        flex: 0 0 50%;
        max-width: 50%;
        padding-right: 8px;
        padding-left: 8px;
    }
}
