/* ===================================================================
 * WiderMatrix - Cotton Candy Case Studies (case-studies.css)
 * Loaded only on is_page_template('page-cotton-candy-case-studies.php')
 * =================================================================== */

/* Screen-reader only utility */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
.center { text-align: center; }


/* ===================================================================
 * 1. Hero
 * =================================================================== */
.cs-hero {
    background: linear-gradient(160deg, #1f1320 0%, #3a1d34 50%, #5c2d50 100%);
    padding: 100px 0 80px;
    position: relative;
    overflow: hidden;
}
.cs-hero::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 120px;
    background: linear-gradient(to bottom, transparent, var(--color-bg-soft));
    pointer-events: none;
}
.cs-hero-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}
.cs-hero-text .breadcrumb { margin-bottom: 24px; }
.cs-hero-text .breadcrumb a,
.cs-hero-text .breadcrumb .sep { color: rgba(255,255,255,0.5); }
.cs-hero-text .breadcrumb a:hover { color: #fff; }
.cs-hero-title {
    font-size: clamp(32px, 5vw, 52px);
    font-weight: 800;
    color: #fff;
    line-height: 1.15;
    margin: 0 0 20px;
    letter-spacing: -0.03em;
}
.cs-hero-sub {
    font-size: 18px;
    line-height: 1.7;
    color: rgba(255,255,255,0.75);
    margin: 0 0 24px;
    max-width: 520px;
}
.cs-hero-tags {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 32px;
}
.cs-tag {
    display: inline-block;
    padding: 8px 18px;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    color: rgba(255,255,255,0.9);
    backdrop-filter: blur(6px);
}
.cs-hero-cta {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}
.cs-hero-media {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
}
.cs-hero-media img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: var(--radius-lg);
}


/* ===================================================================
 * 2. Key Metrics
 * =================================================================== */
.cs-metrics {
    padding: 0;
    margin-top: -50px;
    position: relative;
    z-index: 2;
}
.cs-metrics-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
.cs-metric-card {
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 32px 20px;
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: transform 0.3s, box-shadow 0.3s;
}
.cs-metric-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}
.cs-metric-icon { font-size: 36px; display: block; margin-bottom: 12px; }
.cs-metric-num {
    display: block;
    font-size: 28px;
    font-weight: 800;
    color: var(--brand-primary);
    margin-bottom: 6px;
}
.cs-metric-label {
    font-size: 14px;
    color: var(--color-text-muted);
}


/* ===================================================================
 * 3. Filter + Case Cards
 * =================================================================== */
.cs-cases {
    padding: 100px 0 80px;
    background: var(--color-bg);
}
.cs-filter {
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 48px;
}
.cs-filter-btn {
    padding: 10px 24px;
    border: 2px solid var(--color-border);
    background: var(--color-bg);
    color: var(--color-text-muted);
    border-radius: 999px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s;
}
.cs-filter-btn:hover {
    border-color: var(--brand-primary);
    color: var(--brand-primary);
}
.cs-filter-btn.active {
    background: var(--brand-gradient);
    color: #fff;
    border-color: transparent;
}
.cs-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}
.cs-card {
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}
.cs-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}
.cs-card-img {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
}
.cs-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}
.cs-card:hover .cs-card-img img { transform: scale(1.06); }
.cs-card-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 5px 14px;
    background: var(--brand-primary);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    border-radius: 999px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}
.cs-card-body { padding: 24px; }
.cs-card-tags {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}
.cs-card-tag {
    font-size: 12px;
    padding: 4px 12px;
    border-radius: 999px;
    font-weight: 600;
}
.cs-tag-loc {
    background: rgba(136, 62, 116, 0.08);
    color: var(--brand-primary);
}
.cs-tag-type {
    background: rgba(46, 125, 50, 0.08);
    color: #2e7d32;
}
.cs-card-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--color-text);
    margin: 0 0 16px;
    line-height: 1.35;
}
.cs-card-metrics {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    padding: 16px 0;
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
    margin-bottom: 14px;
    text-align: center;
}
.cs-cm-label {
    display: block;
    font-size: 11px;
    color: var(--color-text-muted);
    margin-bottom: 4px;
}
.cs-cm-val {
    display: block;
    font-size: 16px;
    font-weight: 700;
    color: var(--brand-primary);
}
.cs-card-desc {
    font-size: 14px;
    line-height: 1.65;
    color: var(--color-text-muted);
    margin: 0;
}
.cs-card.hidden-by-filter { display: none; }


/* ===================================================================
 * 4. Featured Case
 * =================================================================== */
.cs-featured {
    padding: 100px 0;
    background: var(--color-bg-soft);
}
.cs-featured-card {
    background: var(--color-bg);
    border-radius: var(--radius-lg);
    padding: 48px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--color-border);
}
.cs-featured-header {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
    margin-bottom: 48px;
    padding-bottom: 48px;
    border-bottom: 1px solid var(--color-border);
}
.cs-featured-img { border-radius: var(--radius-md); overflow: hidden; }
.cs-featured-img img { width: 100%; height: auto; display: block; }
.cs-featured-intro h3 {
    font-size: 28px;
    font-weight: 800;
    color: var(--color-text);
    margin: 0 0 16px;
}
.cs-featured-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}
.cs-featured-tags span {
    padding: 5px 14px;
    background: rgba(46, 125, 50, 0.08);
    color: #2e7d32;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
}
.cs-featured-story {
    font-size: 16px;
    line-height: 1.8;
    color: var(--color-text-muted);
}
.cs-story-block {
    margin-bottom: 48px;
}
.cs-story-block h4 {
    font-size: 22px;
    font-weight: 700;
    color: var(--color-text);
    margin: 0 0 20px;
}
.cs-story-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.cs-story-list li {
    padding: 14px 0;
    font-size: 15px;
    line-height: 1.75;
    color: var(--color-text-muted);
    border-bottom: 1px solid var(--color-border);
}
.cs-story-list li:last-child { border-bottom: none; }
.cs-story-list strong { color: var(--brand-primary); }

/* Timeline */
.cs-timeline { position: relative; padding-left: 48px; }
.cs-timeline::before {
    content: '';
    position: absolute;
    left: 14px; top: 0; bottom: 0;
    width: 2px;
    background: var(--brand-gradient);
    border-radius: 2px;
}
.cs-tl-item { position: relative; margin-bottom: 28px; }
.cs-tl-item:last-child { margin-bottom: 0; }
.cs-tl-marker {
    position: absolute;
    left: -44px;
    width: 30px; height: 30px;
    background: var(--brand-gradient);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 13px;
}
.cs-tl-content h5 {
    font-size: 16px;
    font-weight: 700;
    color: var(--color-text);
    margin: 0 0 8px;
}
.cs-tl-content p {
    font-size: 14px;
    line-height: 1.7;
    color: var(--color-text-muted);
    margin: 0;
}

/* Performance Table */
.cs-perf-table-wrap { margin-bottom: 32px; }
.cs-perf-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 15px;
}
.cs-perf-table th,
.cs-perf-table td {
    padding: 14px 18px;
    text-align: left;
    border-bottom: 1px solid var(--color-border);
}
.cs-perf-table th {
    background: var(--color-bg-soft);
    font-weight: 700;
    color: var(--color-text);
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}
.cs-perf-table td:last-child {
    font-weight: 700;
    color: var(--brand-primary);
}

/* Revenue Chart */
.cs-revenue-chart { margin-top: 16px; }
.cs-revenue-chart h5 {
    font-size: 16px;
    font-weight: 700;
    color: var(--color-text);
    margin: 0 0 20px;
}
.cs-chart-bars {
    display: flex;
    gap: 16px;
    align-items: flex-end;
    height: 220px;
    padding-bottom: 40px;
    padding-left: 16px;
    padding-right: 16px;
    position: relative;
}
.cs-bar {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
    justify-content: flex-end;
    position: relative;
}
.cs-bar-val {
    font-size: 12px;
    font-weight: 700;
    color: var(--brand-primary);
    margin-bottom: 6px;
    white-space: nowrap;
}
.cs-bar-fill {
    width: 100%;
    max-width: 48px;
    height: var(--bar-h, 0%);
    background: var(--brand-gradient);
    border-radius: 6px 6px 0 0;
    transition: height 0.6s ease;
}
.cs-bar-label {
    font-size: 11px;
    color: var(--color-text-muted);
    margin-top: 8px;
    text-align: center;
    white-space: nowrap;
}

/* Quote */
.cs-quote {
    background: var(--color-bg-soft);
    border-left: 4px solid var(--brand-primary);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    padding: 28px 32px;
    margin: 0;
}
.cs-quote p {
    font-size: 16px;
    line-height: 1.8;
    color: var(--color-text);
    font-style: italic;
    margin: 0 0 16px;
}
.cs-quote-author {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.cs-author-info strong {
    display: block;
    font-size: 15px;
    color: var(--color-text);
}
.cs-author-info span {
    font-size: 13px;
    color: var(--color-text-muted);
}
.cs-stars {
    color: #f59e0b;
    font-size: 18px;
    letter-spacing: 2px;
}

/* Gallery */
.cs-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.cs-gallery figure { margin: 0; }
.cs-gallery img {
    width: 100%;
    height: auto;
    border-radius: var(--radius-sm);
    display: block;
}
.cs-gallery figcaption {
    font-size: 13px;
    color: var(--color-text-muted);
    margin-top: 8px;
    text-align: center;
}

/* Featured CTA */
.cs-featured-cta {
    text-align: center;
    padding: 40px;
    background: var(--color-bg-soft);
    border-radius: var(--radius-md);
    margin-top: 16px;
}
.cs-featured-cta h4 {
    font-size: 22px;
    font-weight: 700;
    color: var(--color-text);
    margin: 0 0 10px;
}
.cs-featured-cta p {
    color: var(--color-text-muted);
    margin: 0 0 20px;
}


/* ===================================================================
 * 5. Videos
 * =================================================================== */
.cs-videos {
    padding: 100px 0;
    background: var(--color-bg-dark);
}
.cs-videos .section-eyebrow { color: #fff; background: rgba(255,255,255,0.1); }
.cs-videos .section-title { color: #fff; }
.cs-videos .section-sub { color: rgba(255,255,255,0.7); }
.cs-video-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}
.cs-video-card h4 {
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    margin: 16px 0 6px;
}
.cs-video-card p {
    font-size: 14px;
    color: rgba(255,255,255,0.6);
    margin: 0;
}
.cs-video-thumb {
    position: relative;
    aspect-ratio: 16 / 9;
    border-radius: var(--radius-md);
    overflow: hidden;
    cursor: pointer;
}
.cs-video-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s;
}
.cs-video-thumb:hover img { transform: scale(1.05); }
.cs-play-btn {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    background: none;
    border: none;
    cursor: pointer;
    transition: transform 0.3s;
}
.cs-play-btn:hover { transform: translate(-50%, -50%) scale(1.15); }
.cs-play-btn svg { filter: drop-shadow(0 4px 12px rgba(0,0,0,0.3)); }


/* ===================================================================
 * 6. Applications
 * =================================================================== */
.cs-apps {
    padding: 100px 0;
    background: var(--color-bg);
}
.cs-apps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.cs-app-card {
    background: var(--color-bg-soft);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 36px 28px;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
}
.cs-app-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}
.cs-app-icon { font-size: 44px; display: block; margin-bottom: 16px; }
.cs-app-card h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--color-text);
    margin: 0 0 8px;
}
.cs-app-count {
    display: inline-block;
    padding: 4px 14px;
    background: var(--brand-gradient);
    color: #fff;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 12px;
}
.cs-app-card p {
    font-size: 14px;
    line-height: 1.65;
    color: var(--color-text-muted);
    margin: 0;
}


/* ===================================================================
 * 7. Testimonials
 * =================================================================== */
.cs-testimonials {
    padding: 100px 0;
    background: var(--color-bg-soft);
}
.cs-testi-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.cs-testi-card {
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 32px 28px;
    transition: transform 0.3s, box-shadow 0.3s;
}
.cs-testi-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-sm);
}
.cs-testi-card .cs-stars {
    display: block;
    margin-bottom: 14px;
}
.cs-testi-card p {
    font-size: 15px;
    line-height: 1.75;
    color: var(--color-text);
    margin: 0 0 18px;
    font-style: italic;
}
.cs-testi-card footer {
    border-top: 1px solid var(--color-border);
    padding-top: 14px;
}
.cs-testi-card footer strong {
    display: block;
    font-size: 14px;
    color: var(--color-text);
}
.cs-testi-card footer span {
    font-size: 13px;
    color: var(--color-text-muted);
}


/* ===================================================================
 * 8. FAQ
 * =================================================================== */
.cs-faq {
    padding: 100px 0;
    background: var(--color-bg);
}
.cs-faq-list {
    max-width: 800px;
    margin: 0 auto;
}
.cs-faq-item {
    border-bottom: 1px solid var(--color-border);
}
.cs-faq-q {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 22px 0;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    font-size: 17px;
    font-weight: 600;
    color: var(--color-text);
    transition: color 0.2s;
}
.cs-faq-q:hover { color: var(--brand-primary); }
.cs-faq-icon {
    font-size: 22px;
    font-weight: 300;
    color: var(--brand-primary);
    transition: transform 0.3s;
    flex-shrink: 0;
    margin-left: 16px;
}
.cs-faq-item.open .cs-faq-icon { transform: rotate(45deg); }
.cs-faq-a {
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.35s ease, padding 0.35s ease;
}
.cs-faq-item.open .cs-faq-a {
    max-height: 300px;
    padding-bottom: 22px;
}
.cs-faq-a p {
    font-size: 15px;
    line-height: 1.8;
    color: var(--color-text-muted);
    margin: 0;
}


/* ===================================================================
 * 9. Contact CTA
 * =================================================================== */
.cs-contact {
    padding: 100px 0;
    background: var(--color-bg-soft);
}
.cs-contact .section-title { text-align: center; margin-bottom: 48px; }
.cs-contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: start;
}
.cs-contact-info h3 {
    font-size: 22px;
    font-weight: 700;
    color: var(--color-text);
    margin: 0 0 12px;
}
.cs-contact-info > p {
    font-size: 15px;
    line-height: 1.7;
    color: var(--color-text-muted);
    margin: 0 0 28px;
}
.cs-features { display: grid; gap: 20px; }
.cs-feat {
    display: flex;
    gap: 14px;
    align-items: flex-start;
}
.cs-feat > span {
    font-size: 28px;
    flex-shrink: 0;
    line-height: 1;
    margin-top: 2px;
}
.cs-feat strong {
    display: block;
    font-size: 15px;
    color: var(--color-text);
    margin-bottom: 2px;
}
.cs-feat p {
    font-size: 13px;
    color: var(--color-text-muted);
    margin: 0;
}
.cs-contact-form {
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 36px;
    box-shadow: var(--shadow-md);
}
.cs-form-header {
    text-align: center;
    margin-bottom: 24px;
}
.cs-form-header h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--color-text);
    margin: 0 0 6px;
}
.cs-form-header p {
    font-size: 14px;
    color: var(--color-text-muted);
    margin: 0;
}
.cs-form-note {
    text-align: center;
    font-size: 13px;
    color: var(--color-text-muted);
    margin-top: 16px;
}


/* ===================================================================
 * 10. Products
 * =================================================================== */
.cs-products {
    padding: 100px 0;
    background: var(--color-bg);
}
.cs-products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}
.cs-product-card {
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    overflow: hidden;
    text-align: center;
    padding-bottom: 28px;
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
}
.cs-product-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}
.cs-product-card img {
    width: 100%;
    height: 240px;
    object-fit: contain;
    background: var(--color-bg-soft);
}
.cs-product-card h3 {
    font-size: 17px;
    font-weight: 700;
    color: var(--color-text);
    margin: 20px 20px 8px;
}
.cs-product-card p {
    font-size: 14px;
    color: var(--color-text-muted);
    line-height: 1.65;
    padding: 0 20px;
    margin: 0 0 16px;
}
.cs-product-link {
    display: inline-block;
    font-size: 14px;
    font-weight: 600;
    color: var(--brand-primary);
    transition: color 0.2s;
}
.cs-product-link:hover { color: var(--brand-primary-dark); }
.cs-product-featured {
    border-color: var(--brand-primary);
    box-shadow: 0 0 0 2px rgba(136, 62, 116, 0.15);
}
.cs-product-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 5px 14px;
    background: var(--brand-gradient);
    color: #fff;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}


/* ===================================================================
 * 11. Gallery Infinite Scroll
 * =================================================================== */
.cs-gallery-section {
    padding: 80px 0;
    background: var(--color-bg-soft);
    overflow: hidden;
}
.cs-scroll-row {
    overflow: hidden;
    margin-bottom: 16px;
}
.cs-scroll-track {
    display: flex;
    gap: 16px;
    width: max-content;
}
.cs-scroll-right .cs-scroll-track { animation: cs-scroll-rtl 35s linear infinite; }
.cs-scroll-left .cs-scroll-track { animation: cs-scroll-ltr 35s linear infinite; }
.cs-scroll-card {
    flex-shrink: 0;
    width: 280px;
    height: 190px;
    border-radius: var(--radius-sm);
    overflow: hidden;
}
.cs-scroll-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
@keyframes cs-scroll-rtl {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}
@keyframes cs-scroll-ltr {
    0% { transform: translateX(-50%); }
    100% { transform: translateX(0); }
}


/* ===================================================================
 * 12. Video Modal
 * =================================================================== */
.cs-video-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    align-items: center;
    justify-content: center;
}
.cs-video-modal.is-open { display: flex; }
.cs-video-modal-bg {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.85);
    cursor: pointer;
}
.cs-video-modal-content {
    position: relative;
    width: 90%;
    max-width: 900px;
    aspect-ratio: 16 / 9;
    z-index: 1;
}
.cs-video-modal-content video {
    width: 100%;
    height: 100%;
    border-radius: var(--radius-md);
}
.cs-video-close {
    position: absolute;
    top: -40px;
    right: 0;
    background: none;
    border: none;
    color: #fff;
    font-size: 32px;
    cursor: pointer;
    line-height: 1;
}


/* ===================================================================
 * 13. Responsive
 * =================================================================== */
@media (max-width: 992px) {
    .cs-hero-inner { grid-template-columns: 1fr; gap: 40px; text-align: center; }
    .cs-hero-sub { margin-left: auto; margin-right: auto; }
    .cs-hero-tags { justify-content: center; }
    .cs-hero-cta { justify-content: center; }
    .cs-hero-media { max-width: 480px; margin: 0 auto; }
    .cs-metrics-grid { grid-template-columns: repeat(2, 1fr); }
    .cs-grid { grid-template-columns: repeat(2, 1fr); }
    .cs-featured-header { grid-template-columns: 1fr; }
    .cs-video-grid { grid-template-columns: repeat(2, 1fr); }
    .cs-apps-grid { grid-template-columns: repeat(2, 1fr); }
    .cs-testi-grid { grid-template-columns: repeat(2, 1fr); }
    .cs-contact-grid { grid-template-columns: 1fr; }
    .cs-products-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
    .cs-hero { padding: 60px 0 50px; }
    .cs-metrics { margin-top: -30px; }
    .cs-metrics-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .cs-metric-card { padding: 20px 10px; }
    .cs-metric-num { font-size: 22px; }
    .cs-cases,
    .cs-featured,
    .cs-videos,
    .cs-apps,
    .cs-testimonials,
    .cs-faq,
    .cs-contact,
    .cs-products { padding: 60px 0; }
    .cs-grid { grid-template-columns: 1fr; }
    .cs-filter { gap: 6px; }
    .cs-filter-btn { padding: 8px 16px; font-size: 13px; }
    .cs-featured-card { padding: 20px 16px; }
    .cs-featured-header { gap: 24px; margin-bottom: 32px; padding-bottom: 32px; }
    .cs-story-block { margin-bottom: 32px; }
    .cs-story-block h4 { font-size: 18px; }
    .cs-gallery { grid-template-columns: 1fr; }
    .cs-video-grid { grid-template-columns: 1fr; }
    .cs-apps-grid { grid-template-columns: 1fr; }
    .cs-testi-grid { grid-template-columns: 1fr; }
    .cs-products-grid { grid-template-columns: 1fr; }
    .cs-contact-grid { gap: 32px; }
    .cs-contact-form { padding: 24px 16px; }
    .cs-perf-table th,
    .cs-perf-table td { padding: 10px 12px; font-size: 14px; }
    .cs-chart-bars { height: 180px; gap: 6px; padding-left: 12px; padding-right: 12px; }
    .cs-bar-val { font-size: 10px; }
    .cs-bar-label { font-size: 9px; }
    .cs-timeline { padding-left: 40px; }
    .cs-tl-marker { left: -36px; width: 26px; height: 26px; font-size: 12px; }
}
