/* ============================================================
   SICOMP — SERVICES.CSS
   استایل صفحات خدمات (لیست + تک)
   نسخه: 1.0
   ============================================================ */

/* ==================== Subhero ==================== */
.subhero {
    height: 265px;
    position: relative;
    overflow: hidden;
    background: #eaf3ff;
}
.subhero--services .subhero__art {
    position: absolute;
    inset: 0;
    background-image: url('../images/software-illustration.jpg');
    background-position: left center;
    background-size: cover;
    filter: saturate(.9);
}
.subhero--service .subhero__art {
    position: absolute;
    inset: 0;
    background-image: url('../images/siteseo.png');
    background-position: left 47%;
    background-size: cover;
}
.subhero__veil {
    position: absolute;
    inset: 0;
    background: linear-gradient(270deg, #f7faff 0%, #f7faffed 23%, #f7faff85 48%, #f7faff08 78%);
}
.subhero__inner {
    height: 100%;
    display: flex;
    align-items: center;
    position: relative;
}
.subhero__copy {
    width: 100%;
    margin-right: auto;
    text-align: right;
    border-right: 4px solid var(--red);
    padding: 8px 18px 8px 0;
}
.subhero__copy h1 {
    font-size: clamp(26px, 3vw, 36px);
    font-weight: 900;
    margin: 0 0 8px;
    line-height: 1.5;
}
.subhero__copy p {
    font-size: 14px;
    font-weight: 600;
    margin: 0;
    color: #19345f;
}

/* ==================== Breadcrumbs ==================== */
.breadcrumbs {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-top: 17px;
    font-size: 10px;
    color: #24456f;
}
.breadcrumbs a:hover { color: var(--blue); }
.breadcrumbs b { font-weight: 700; }

/* ==================== لیست خدمات ==================== */
.services-catalog { padding: 30px 0; }

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.service-box {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    padding: 24px 20px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: transform .2s, box-shadow .2s, border-color .2s;
    display: flex;
    flex-direction: column;
}
.service-box:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: #b9d4f7;
}
.service-box__icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 14px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, #e8f3ff, #d0e7ff);
    color: var(--blue);
    font-size: 28px;
    border-radius: 50%;
}
.service-box h3 {
    font-size: 15px;
    margin: 0 0 8px;
    font-weight: 800;
    line-height: 1.5;
}
.service-box h3 a { color: var(--navy); }
.service-box h3 a:hover { color: var(--blue); }
.service-box p {
    font-size: 11px;
    color: var(--muted);
    line-height: 1.9;
    margin: 0 0 14px;
    flex: 1;
}
.service-box .read-more {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 8px;
    background: #eef6ff;
    color: #075db7;
    font-size: 11px;
    font-weight: 800;
    transition: background .2s;
}
.service-box .read-more:hover { background: #dceeff; }

/* ==================== CTA ==================== */
.services-cta {
    margin: 30px auto;
    padding: 24px 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    background: linear-gradient(100deg, #eaf3ff, #fff);
    border: 1px solid #d4e4fa;
    border-radius: var(--radius-lg);
    flex-wrap: wrap;
}
.services-cta h2 { font-size: 18px; margin: 0 0 4px; color: var(--navy); }
.services-cta p { font-size: 12px; margin: 0; color: var(--muted); }

/* ==================== صفحه تک خدمت ==================== */
.service-detail { padding: 40px 0; }
.service-detail-grid {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 30px;
    align-items: start;
}
.service-detail__hero {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--line);
}
.service-detail__icon {
    width: 60px;
    height: 60px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, #e8f3ff, #d0e7ff);
    color: var(--blue);
    font-size: 28px;
    border-radius: 50%;
    flex-shrink: 0;
}
.service-detail__hero h2 { font-size: 22px; margin: 0; color: var(--navy); }

.service-detail__image {
    margin-bottom: 20px;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}
.service-detail__image img {
    width: 100%;
    height: auto;
    max-height: 400px;
    object-fit: cover;
    display: block;
}

.service-detail__body {
    font-size: 13px;
    line-height: 2.2;
    color: #293e5d;
}
.service-detail__body h2,
.service-detail__body h3 {
    color: var(--navy);
    margin: 22px 0 8px;
    font-size: 19px;
}
.service-detail__body p { margin: 0 0 14px; }
.service-detail__body ul,
.service-detail__body ol { padding-right: 22px; margin: 0 0 14px; }
.service-detail__body li { margin: 0 0 6px; }
.service-detail__body img { max-width: 100%; border-radius: 10px; margin: 10px 0; }
.service-detail__body blockquote {
    margin: 20px 0;
    padding: 14px 18px;
    border-right: 3px solid var(--blue);
    border-radius: 8px;
    background: #f0f6ff;
    color: #244c7c;
    font-size: 13px;
    font-weight: 700;
    line-height: 2;
}

.service-detail__sidebar { position: sticky; top: 100px; }
.service-contact-box {
    background: linear-gradient(135deg, #eaf3ff, #fff);
    border: 1px solid #d4e4fa;
    border-radius: var(--radius-lg);
    padding: 22px;
    text-align: center;
}
.service-contact-box h3 { font-size: 16px; margin: 0 0 6px; color: var(--navy); }
.service-contact-box p { font-size: 12px; color: var(--muted); margin: 0 0 14px; line-height: 1.9; }

.related-services { padding: 30px 0; }

/* ==================== ریسپانسیو ==================== */
@media (max-width: 1100px) {
    .services-grid { grid-template-columns: repeat(2, 1fr); }
    .service-detail-grid { grid-template-columns: 1fr; gap: 22px; }
    .service-detail__sidebar { position: static; }
}
@media (max-width: 760px) {
    .subhero { height: 225px; }
    .subhero__inner { align-items: flex-end; padding-bottom: 24px; }
    .subhero__copy { width: 100%; text-align: center; border: 0; padding: 0; }
    .subhero__copy h1 { font-size: 25px; }
    .subhero__copy p { font-size: 11px; }
    .breadcrumbs { justify-content: center; margin-top: 9px; }

    .services-grid { grid-template-columns: 1fr; gap: 12px; }
    .service-box { padding: 18px 16px; }
    .services-cta { flex-direction: column; text-align: center; padding: 20px; }
    .services-cta h2 { font-size: 15px; }

    .service-detail { padding: 24px 0; }
    .service-detail__hero h2 { font-size: 19px; }
    .service-detail__icon { width: 50px; height: 50px; font-size: 22px; }
}