/* Service Cards Section Plugin – ITSWEBER CMS
   Horizontal service/product cards with SVG icon, title, description, price.
   Responsive: 2-col on desktop, 1-col on mobile. */

.service-cards-section {
    padding: 4rem 0;
}

.service-cards-section .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ── Header ─────────────────────────────────────────────────────────────── */

.scs-header {
    text-align: center;
    margin-bottom: 2.5rem;
    max-width: 680px;
    margin-left: auto;
    margin-right: auto;
}

.scs-title {
    font-size: 2rem;
    font-weight: 700;
    margin: 0 0 0.5rem;
    color: inherit;
}

.scs-subtitle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--theme-primary, #C62828);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin: 0 0 12px;
}

.scs-subtitle::before,
.scs-subtitle::after {
    content: '';
    width: 20px;
    height: 1.5px;
    background: var(--theme-primary, #C62828);
    border-radius: 1px;
}

.scs-description {
    font-size: 1.0625rem;
    color: #6b7280;
    margin: 0;
    line-height: 1.6;
}

/* ── Grid ───────────────────────────────────────────────────────────────── */

.scs-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
}

.scs--cols-1 .scs-grid {
    grid-template-columns: 1fr;
}

.scs--cols-3 .scs-grid {
    grid-template-columns: repeat(3, 1fr);
}

/* ── Card ───────────────────────────────────────────────────────────────── */

.scs-card {
    display: flex;
    align-items: stretch;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.scs-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

/* ── Card Visual (Icon area) ────────────────────────────────────────────── */

.scs-card-visual {
    flex: 0 0 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #faf9f7;
    color: var(--theme-primary, #C62828);
    transition: background 0.3s ease;
    padding: 1.5rem;
}

.scs-card:hover .scs-card-visual {
    background: rgba(198, 40, 40, 0.06);
}

.scs-card-visual svg {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    stroke: var(--theme-primary, #C62828);
    fill: none;
}

/* Ensure SVG fills inherit from parent color for non-stroke icons */
.scs-card-visual svg[fill="currentColor"] {
    fill: var(--theme-primary, #C62828);
    stroke: none;
}

/* ── Card Body ──────────────────────────────────────────────────────────── */

.scs-card-body {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.scs-card-title {
    font-size: 1.0625rem;
    font-weight: 700;
    margin: 0 0 0.375rem;
    color: #1a1a2e;
}

.scs-card-text {
    font-size: 0.875rem;
    color: #6b7280;
    line-height: 1.5;
    margin: 0 0 0.625rem;
}

.scs-card-price {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--theme-primary, #C62828);
}

/* ── Color Scheme Variants ──────────────────────────────────────────────── */

.service-cards-section.section--scheme-alt {
    background: #f8fafc;
}

.service-cards-section.section--scheme-primary {
    background: var(--theme-primary, #C62828);
}

.service-cards-section.section--scheme-primary .scs-title {
    color: #fff;
}

.service-cards-section.section--scheme-primary .scs-subtitle {
    color: rgba(255, 255, 255, 0.8);
}

.service-cards-section.section--scheme-dark {
    background: #1e293b;
}

.service-cards-section.section--scheme-dark .scs-title {
    color: #fff;
}

.service-cards-section.section--scheme-dark .scs-subtitle {
    color: #94a3b8;
}

/* ── Section Text Color Overrides ───────────────────────────────────────── */

.service-cards-section.section--text-black .scs-title,
.service-cards-section.section--text-black .scs-card-title {
    color: #1a1a2e !important;
}

.service-cards-section.section--text-black .scs-subtitle,
.service-cards-section.section--text-black .scs-card-text {
    color: #374151 !important;
}

.service-cards-section.section--text-white .scs-title,
.service-cards-section.section--text-white .scs-card-title {
    color: #fff !important;
}

.service-cards-section.section--text-white .scs-subtitle,
.service-cards-section.section--text-white .scs-card-text {
    color: rgba(255, 255, 255, 0.8) !important;
}

.service-cards-section.section--text-theme .scs-title,
.service-cards-section.section--text-theme .scs-card-title {
    color: var(--theme-primary, #C62828) !important;
}

/* ── Responsive ─────────────────────────────────────────────────────────── */

@media (max-width: 768px) {
    .service-cards-section {
        padding: 2.5rem 0;
    }

    .scs-title {
        font-size: 1.5rem;
    }

    .scs-grid,
    .scs--cols-3 .scs-grid {
        grid-template-columns: 1fr;
    }

    .scs-card-visual {
        flex: 0 0 80px;
        padding: 1rem;
    }

    .scs-card-visual svg {
        width: 36px;
        height: 36px;
    }

    .scs-card-body {
        padding: 1rem;
    }

    .scs-card-title {
        font-size: 1rem;
    }

    .scs-card-text {
        font-size: 0.8125rem;
    }
}

@media (max-width: 480px) {
    .scs-card-visual {
        flex: 0 0 64px;
    }

    .scs-card-visual svg {
        width: 28px;
        height: 28px;
    }
}
