/* ==========================================================================
   Unified SaaS Card Design – Services (Packages) + Plans - RESPONSIVE
   Stripe / Vercel / Linear quality: alignment, hierarchy, fintech premium
   ========================================================================== */

/* Import Spacing System */
@import url('./spacing-system.css');

/* MASTER OVERRIDE - Fix all heading color conflicts with highest specificity */
.services-section .section-header .section-title,
.services-section .section-title,
body.user-layout .services-section .section-header .section-title,
body.frontend .services-section .section-header .section-title {
    background: none;
    background-image: none;
    -webkit-background-clip: unset;
    background-clip: unset;
}

.services-section .section-header .section-title .blue-half,
.services-section .section-title .blue-half,
body.user-layout .services-section .section-header .section-title .blue-half,
body.frontend .services-section .section-header .section-title .blue-half {
    color: #0B2578;
    -webkit-text-fill-color: #0B2578;
}

.services-section .section-header .section-title .green-half,
.services-section .section-title .green-half,
body.user-layout .services-section .section-header .section-title .green-half,
body.frontend .services-section .section-header .section-title .green-half {
    color: #1A9464;
    -webkit-text-fill-color: #1A9464;
}

/* ---------- Section wrapper - Responsive ---------- */
.services-section {
    padding: var(--section-padding-lg) 0;
}

.products-page .services-section {
    padding-top: var(--section-padding-md);
    padding-bottom: var(--section-padding-lg);
}


.services-section .section-header {
    margin-bottom: var(--space-lg);
}

.services-section .section-title {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    font-weight: 700;
    text-align: center;
    margin-bottom: var(--space-sm);
    display: inline-block;
    color: #0B2578;
    line-height: 1;
}

.services-section .section-title .blue-half {
    color: #0B2578;
}

.services-section .section-title .green-half {
    color: #1A9464;
}

.services-section .section-subtitle {
    font-size: clamp(0.9375rem, 2.5vw, 1.0625rem);
    color: var(--text-gray, #64748B);
    text-align: center;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
    line-height: 1;
}

@media (min-width: 768px) {
    .services-section .section-subtitle {
        max-width: 480px;
    }
}

/* ---------- Grid: Responsive - 4 → 2 → 1, equal height ---------- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr));
    gap: var(--grid-gap-md);
    align-items: stretch;
    margin-top: 0;
}

@media (min-width: 1025px) {
    .services-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .services-grid {
        grid-template-columns: 1fr;
        gap: var(--grid-gap-md);
    }
}

/* ---------- Card wrapper (no 3d needed for clean look) ---------- */
.services-grid .card-3d-wrapper {
    display: flex;
    min-height: 0;
}

/* ---------- Service card: white, rounded, soft shadow - Responsive ---------- */
.services-section .service-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 100%;
    padding: var(--card-padding);
    background: #fff;
    border-radius: 14px;
    border: 1px solid var(--border-color, #E5E7EB);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    position: relative;
    overflow: visible;
    min-height: 100%;
    min-height: clamp(300px, 40vw, 400px);
}

.services-section .service-card::before {
    display: none;
}

.services-section .service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08), 0 4px 8px rgba(0, 0, 0, 0.04);
    border-color: rgba(0, 0, 0, 0.08);
}

body.user-layout .services-section .service-card:hover {
    border-color: rgba(0, 123, 255, 0.35);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08), 0 0 0 1px rgba(0, 123, 255, 0.15);
}

/* Featured service card (e.g. Popular) */
.services-section .service-card.service-card--featured {
    border-color: rgba(0, 123, 255, 0.4);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06), 0 0 0 1px rgba(0, 123, 255, 0.2);
}

.services-section .service-card.service-card--featured:hover {
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08), 0 0 0 1px rgba(0, 123, 255, 0.25);
}


/* ---------- Icon: centered, soft circular container - Responsive ---------- */
.services-section .service-icon-wrap {
    width: clamp(48px, 6vw, 56px);
    height: clamp(48px, 6vw, 56px);
    margin: 0 auto clamp(1rem, 2vw, 1.25rem);
    border-radius: 50%;
    background: rgba(0, 123, 255, 0.15);
    color: #007BFF;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* Frontend layout: ensure card-icon-wrap matches service-icon-wrap styling */
body.frontend .services-section .card-icon-wrap {
    width: clamp(48px, 6vw, 56px);
    height: clamp(48px, 6vw, 56px);
    margin: 0 auto clamp(1rem, 2vw, 1.25rem);
    border-radius: 50%;
    background: rgba(0, 123, 255, 0.15);
    color: #007BFF;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

body.frontend .services-section .card-icon-wrap i,
body.frontend .services-section .card-icon-wrap svg {
    width: clamp(24px, 3vw, 28px);
    height: clamp(24px, 3vw, 28px);
    color: #007BFF;
    stroke-width: 2;
}

body.user-layout .services-section .service-icon-wrap {
    background: rgba(0, 123, 255, 0.15);
    color: #007BFF;
}

.services-section .service-icon-wrap .service-icon,
.services-section .service-icon-wrap i {
    width: clamp(24px, 3vw, 28px);
    height: clamp(24px, 3vw, 28px);
    display: block;
}

.services-section .service-icon-wrap svg {
    width: clamp(24px, 3vw, 28px);
    height: clamp(24px, 3vw, 28px);
}

/* Legacy: if .service-icon is direct child without wrap, still center */
.services-section .service-card > .service-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 1.25rem;
    border-radius: 50%;
    background: rgba(0, 123, 255, 0.15);
    color: #007BFF;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: none;
}

.services-section .service-card > .service-icon svg {
    width: 28px;
    height: 28px;
}

.services-section .service-card:hover > .service-icon {
    transform: none;
}

/* ---------- Typography: title, description - Responsive ---------- */
.services-section .service-title {
    font-size: clamp(1rem, 3vw, 1.125rem);
    font-weight: 600;
    line-height: 1.3;
    text-align: center;
    margin: 0 0 var(--space-sm);
    color: var(--text-primary, #0F172A);
}

.services-section .service-description {
    font-size: clamp(0.875rem, 2.5vw, 0.9375rem);
    color: var(--text-gray, #64748B);
    line-height: 1.55;
    text-align: center;
    margin: 0 0 var(--space-md);
    flex-grow: 1;
    max-width: 100%;
}

/* ---------- Button: bottom of card - Responsive ---------- */
.services-section .service-btn {
    margin-top: auto;
    width: 100%;
    min-height: 44px;
    padding: var(--button-padding-y) var(--button-padding-x);
    border-radius: 10px;
    font-weight: 600;
    font-size: clamp(0.875rem, 2.5vw, 0.9375rem);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    line-height: 1;
}

.services-section .service-btn:hover {
    transform: scale(1.02);
}

.services-section .service-btn .inline-icon {
    width: 1rem;
    height: 1rem;
}

.services-section .service-btn svg {
    width: 1rem;
    height: 1rem;
    margin-top: auto;
}

.services-section .review-link-container {
    text-align: center;
}

.services-section .review-link {
    font-size: 0.875rem;
    color: #1e3a8a;
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    margin-top: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 6px;
    line-height: 1;
}

.services-section .review-link:hover {
    color: #0f2744;
    text-decoration: underline;
    transform: translateY(-1px);
}

/* Legacy: service-card-actions for backward compatibility */
.services-section .service-card-actions {
    display: none;
}

/* View more: centered below cards - Responsive */
.services-view-more-wrap {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: var(--space-md);
}

.services-view-more-btn {
    min-height: 44px;
    padding: clamp(0.5rem, 2vw, 0.625rem) clamp(1rem, 3vw, 1.5rem);
    border-radius: 10px;
    font-weight: 600;
    font-size: clamp(0.875rem, 2.5vw, 0.9375rem);
    line-height: 1;
}
