/* ============================================================
   SERVICES PAGE CSS — Fully Responsive
   ============================================================ */

:root {
    --orange: #687EFF;
    --orange-light: #687EFF;
    --orange-pale: #fff9f4;
    --orange-border: #ffe5cc;
    --text-dark: #222;
    --text-mid: #444;
    --text-soft: #666;
    --radius: 16px;
    --shadow: 0 8px 28px rgba(255, 122, 0, 0.12);
    --shadow-hover: 0 20px 48px rgba(255, 122, 0, 0.24);
}

/* ---------- Section ---------- */
.services-page-section {
    padding: 40px 0 10px;
    background: #fafafa;
    font-family: "DM Sans", sans-serif;
}

/* ---------- Page Header ---------- */
.services-page-header {
    text-align: center;
    margin-bottom: 55px;
}

.services-page-header .section-tag {
    display: inline-block;
    padding: 6px 20px;
    background: var(--orange-pale);
    border: 1px solid var(--orange-border);
    border-radius: 50px;
    font-size: 13px;
    font-weight: 700;
    color: var(--orange);
    letter-spacing: 0.8px;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.services-page-header h2 {
    font-size: 42px;
    font-weight: 800;
    text-align: center;
    color: var(--text-dark);
    margin-bottom: 16px;
    line-height: 1.2;
}

.services-page-header h2 span {
    color: var(--orange);
}

.services-page-header p {
    font-size: 17px;
    color: var(--text-soft);
    max-width: 580px;
    margin: 0 auto;
    line-height: 1.7;
}

/* ---------- Filter Tabs ---------- */
.services-filter-wrap {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 50px;
}

.services-filter-wrap button {
    padding: 10px 26px;
    border: 2px solid var(--orange-border);
    background: #fff;
    color: var(--text-mid);
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: "DM Sans", sans-serif;
    outline: none;
    white-space: nowrap;
}

.services-filter-wrap button:hover,
.services-filter-wrap button.active {
    background: linear-gradient(135deg, var(--orange), var(--orange-light));
    color: #fff;
    border-color: transparent;
    box-shadow: 0 6px 20px rgba(255, 122, 0, 0.32);
    transform: translateY(-2px);
}

/* ---------- Services Grid ---------- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

/* ---------- Service Card ---------- */
.service-card {
    background: #fff;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--orange-border);
    box-shadow: var(--shadow);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
    display: flex;
    flex-direction: column;
    position: relative;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}

/* Card image */
.service-card-img {
    position: relative;
    width: 100%;
    height: 220px;
    overflow: hidden;
    flex-shrink: 0;
}

.service-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.45s ease;
}

.service-card:hover .service-card-img img {
    transform: scale(1.07);
}

/* Category badge on image */
.service-card-img .svc-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    padding: 5px 14px;
    background: var(--orange);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 2;
}

/* Image overlay on hover */
.service-card-img::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 50%, rgba(255, 90, 0, 0.18) 100%);
    opacity: 0;
    transition: opacity 0.35s ease;
}

.service-card:hover .service-card-img::after {
    opacity: 1;
}

/* Icon overlay button */
.service-card-img .svc-view-btn {
    position: absolute;
    bottom: 14px;
    right: 14px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #fff;
    color: var(--orange);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    text-decoration: none;
    box-shadow: 0 4px 14px rgba(0,0,0,0.15);
    transform: scale(0);
    transition: transform 0.3s ease;
    z-index: 3;
}

.service-card:hover .svc-view-btn {
    transform: scale(1);
}

/* Card body */
.service-card-body {
    padding: 26px 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

/* Icon + title row */
.service-card-top {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.service-card-icon {
    width: 52px;
    height: 52px;
    min-width: 52px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--orange), var(--orange-light));
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 22px;
    box-shadow: 0 6px 18px rgba(255, 122, 0, 0.28);
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.service-card:hover .service-card-icon {
    transform: rotate(-6deg) scale(1.08);
}

.service-card-title {
    font-size: 20px;
    font-weight: 800 !important;
    color: var(--text-dark);
    line-height: 1.3;
    margin: 0;
    transition: color 0.2s;
}

.service-card:hover .service-card-title {
    color: var(--orange);
}

/* Description */
.service-card-desc {
    font-size: 14px;
    color: var(--text-soft);
    line-height: 1.7;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Features mini-list */
.service-card-features {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.service-card-features li {
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: 13px;
    color: var(--text-mid);
    font-weight: 500;
}

.service-card-features li i {
    color: var(--orange);
    font-size: 11px;
    flex-shrink: 0;
}

/* Divider */
.service-card-divider {
    height: 1px;
    background: var(--orange-border);
    margin: 0;
}

/* Card footer */
.service-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.service-card-footer .svc-meta {
    font-size: 13px;
    color: var(--text-soft);
    display: flex;
    align-items: center;
    gap: 6px;
}

.service-card-footer .svc-meta i {
    color: var(--orange);
}

.service-card-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 9px 20px;
    background: linear-gradient(135deg, var(--orange), var(--orange-light));
    color: #fff;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    white-space: nowrap;
    box-shadow: 0 4px 14px rgba(255, 122, 0, 0.28);
}

.service-card-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(255, 122, 0, 0.4);
    color: #fff;
}

.service-card-link i {
    transition: transform 0.25s ease;
}

.service-card-link:hover i {
    transform: translateX(4px);
}

/* ---------- Featured / Wide Card (spans 2 cols) ---------- */
.service-card.service-card-featured {
    grid-column: span 2;
    flex-direction: row;
}

.service-card.service-card-featured .service-card-img {
    width: 45%;
    height: auto;
    flex-shrink: 0;
}

.service-card.service-card-featured .service-card-body {
    padding: 32px 28px;
}

.service-card.service-card-featured .service-card-title {
    font-size: 24px;
}

/* ---------- Stats Strip ---------- */
.services-stats-strip {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    background: var(--orange-border);
    border-radius: var(--radius);
    overflow: hidden;
    margin-top: 70px;
    box-shadow: var(--shadow);
}

.services-stat-item {
    background: #fff;
    padding: 32px 20px;
    text-align: center;
    transition: background 0.3s ease;
}

.services-stat-item:hover {
    background: var(--orange-pale);
}

.services-stat-item .stat-num {
    font-size: 40px;
    font-weight: 800;
    color: var(--orange);
    line-height: 1;
    margin-bottom: 8px;
}

.services-stat-item .stat-label {
    font-size: 14px;
    color: var(--text-soft);
    font-weight: 500;
}

/* ---------- CTA Bottom Banner ---------- */
.services-cta-banner {
    margin-top: 70px;
    background: linear-gradient(135deg, var(--orange), var(--orange-light));
    border-radius: var(--radius);
    padding: 55px 40px;
    text-align: center;
    color: #fff;
    position: relative;
    overflow: hidden;
    box-shadow: 0 16px 45px rgba(255, 122, 0, 0.35);
}

.services-cta-banner::before {
    content: '';
    position: absolute;
    top: -60px;
    right: -60px;
    width: 240px;
    height: 240px;
    border-radius: 50%;
    background: rgba(255,255,255,0.08);
}

.services-cta-banner::after {
    content: '';
    position: absolute;
    bottom: -80px;
    left: -40px;
    width: 280px;
    height: 280px;
    border-radius: 50%;
    background: rgba(255,255,255,0.06);
}

.services-cta-banner h3 {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 14px;
    position: relative;
    z-index: 1;
}

.services-cta-banner p {
    font-size: 17px;
    opacity: 0.92;
    margin-bottom: 30px;
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.65;
    position: relative;
    z-index: 1;
}

.services-cta-btns {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

.services-cta-btns .btn-white {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 14px 34px;
    background: #fff;
    color: var(--orange);
    border-radius: 50px;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 6px 18px rgba(0,0,0,0.12);
}

.services-cta-btns .btn-white:hover {
    background: var(--text-dark);
    color: #fff;
    transform: translateY(-3px);
}

.services-cta-btns .btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 14px 34px;
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255,255,255,0.6);
    border-radius: 50px;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
}

.services-cta-btns .btn-outline:hover {
    background: rgba(255,255,255,0.15);
    border-color: #fff;
    transform: translateY(-3px);
    color: #fff;
}

/* ---------- No services ---------- */
.services-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 80px 20px;
}

.services-empty i {
    font-size: 56px;
    color: var(--orange-border);
    display: block;
    margin-bottom: 20px;
}

.services-empty h4 {
    font-size: 22px;
    color: var(--text-mid);
    margin-bottom: 10px;
}

.services-empty p {
    font-size: 15px;
    color: var(--text-soft);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 1199px) {
    .services-grid { grid-template-columns: repeat(3, 1fr); gap: 22px; }
    .services-page-header h2 { font-size: 36px; }
}

@media (max-width: 991px) {
    .services-page-section { padding: 50px 0 30px; }
    .services-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
    .service-card.service-card-featured { grid-column: span 2; }
    .services-stats-strip { grid-template-columns: repeat(2, 1fr); }
    .services-page-header h2 { font-size: 32px; }
    .services-cta-banner h3 { font-size: 28px; }
}

@media (max-width: 768px) {
    .services-page-section { padding: 40px 0 20px; }
    .services-page-header h2 { font-size: 28px; }
    .services-page-header p { font-size: 15px; }
    .services-page-header { margin-bottom: 40px; }
    .services-filter-wrap { gap: 8px; margin-bottom: 35px; }
    .services-filter-wrap button { padding: 9px 20px; font-size: 13px; }
    .service-card.service-card-featured {
        grid-column: span 2;
        flex-direction: column;
    }
    .service-card.service-card-featured .service-card-img {
        width: 100%;
        height: 220px;
    }
    .services-cta-banner { padding: 42px 28px; }
    .services-cta-banner h3 { font-size: 24px; }
    .services-cta-banner p { font-size: 15px; }
}

@media (max-width: 640px) {
    .services-grid { grid-template-columns: 1fr; gap: 18px; }
    .service-card.service-card-featured { grid-column: span 1; flex-direction: column; }
    .service-card.service-card-featured .service-card-img { width: 100%; height: 200px; }
    .services-stats-strip { grid-template-columns: repeat(2, 1fr); }
    .services-stat-item .stat-num { font-size: 32px; }
    .services-stat-item { padding: 24px 16px; }
}

@media (max-width: 576px) {
    .services-page-section { padding: 30px 0 20px; }
    .services-page-header h2 { font-size: 24px; }
    .services-page-header .section-tag { font-size: 11px; }
    .service-card-img { height: 190px; }
    .service-card-body { padding: 20px 18px; gap: 12px; }
    .service-card-icon { width: 44px; height: 44px; min-width: 44px; font-size: 18px; }
    .service-card-title { font-size: 18px; }
    .services-cta-banner { padding: 34px 20px; margin-top: 50px; }
    .services-cta-banner h3 { font-size: 22px; }
    .services-cta-btns .btn-white,
    .services-cta-btns .btn-outline { padding: 12px 24px; font-size: 14px; }
    .services-stats-strip { margin-top: 50px; }
}

@media (max-width: 400px) {
    .services-grid { gap: 14px; }
    .service-card-top { gap: 12px; }
    .services-stats-strip { grid-template-columns: 1fr 1fr; }
}

/* Touch devices */
@media (hover: none) and (pointer: coarse) {
    .service-card:hover { transform: none; }
    .service-card-link:hover { transform: none; }
    .svc-view-btn { transform: scale(1) !important; }
    .service-card-img::after { opacity: 1; }
}
.service-card {
    cursor: pointer;
}