﻿.products-page {
    width: 100%;
    background: var(--kcl-surface-soft);
    padding: 0;
    font-family: Inter, sans-serif;
    overflow-x: hidden;
    margin-top: 40px;
}

/* SECTION BLOCKS */
.section-block {
    width: 100%;
    max-width: 1500px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}

.container {
    width: 88%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
    
}

/* INTRO SECTION */
.intro-section {
    background: var(--kcl-surface-soft);
    margin-top: 30px;
    border-radius: var(--kcl-radius-xxl) var(--kcl-radius-xxl) var(--kcl-radius-xxl) var(--kcl-radius-xxl);
    padding: 30px 0 60px;
    position: relative;
    z-index: 4;
    box-shadow: var(--kcl-shadow-bottom);
    border-top-left-radius: 0;
    border-top-right-radius: 0;
}

.section-eyebrow {
    display: inline-block;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 700;
    color: var(--kcl-primary);
    background: color-mix(in srgb, var(--kcl-primary) 8%, transparent);
    padding: 0.3rem 0.9rem;
    border-radius: var(--kcl-radius-pill);
}

.intro-title {
    font-size: clamp(2rem, 5vw, 3.8rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--kcl-text);
}

.accent-text {
    color: var(--kcl-primary);
}

/* Ethos card */
.ethos-card {
    background: var(--kcl-surface);
    border-radius: var(--kcl-radius-lg);
    padding: 2rem;
    box-shadow: var(--kcl-shadow-bottom);
    border: 1px solid color-mix(in srgb, var(--kcl-border) 30%, transparent);
    transition: transform 0.5s;
    margin-top: 38px;
    overflow-wrap: break-word;
    word-break: break-word;
   
}

    .ethos-card:hover {
        transform: translateY(-5px);
        background: #dbdbdb; /* service page hover color */

    }

    .ethos-card .ethos-text {
        margin-bottom: 0.75rem;
    }

    .ethos-card .row.g-4.my-4 {
        margin-top: 0.25rem !important;
        margin-bottom: 0.25rem !important;
        --bs-gutter-y: 0.5rem;
    }

        .ethos-card .row.g-4.my-4 > [class*="col-"] {
            margin-bottom: 0.25rem;
        }

/* Stats group – iPad overflow fixed */
.stats-group {
    display: flex;
    flex-wrap: wrap;
    gap: 1.2rem;
    justify-content: space-between;
    margin-top: 2rem;
}

.stat-item {
    flex: 1;
    min-width: 150px;
    background: var(--kcl-surface);
    border-radius: var(--kcl-radius-md);
    padding: 1.2rem 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    transition: all 0.35s ease;
    box-shadow: var(--kcl-shadow-bottom), 0 -6px 12px -5px rgba(0, 0, 0, 0.05);
    border: 1px solid color-mix(in srgb, var(--kcl-border) 30%, transparent);
    cursor: default;
    overflow: hidden;
    overflow-wrap: break-word;
    word-break: break-word;
    hyphens: auto;
}

    .stat-item:hover {
        transform: translateY(-5px);
        background: #dbdbdb; /* service page hover color */
    }

    .stat-item .stat-icon-circle {
        width: 48px;
        height: 48px;
        background: color-mix(in srgb, var(--kcl-primary) 8%, transparent);
        border-radius: 60px;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
    }

        .stat-item .stat-icon-circle i {
            font-size: 1.3rem;
            color: var(--kcl-primary);
        }

    .stat-item div:last-child {
        text-align: left;
        flex: 1;
        min-width: 0;
    }

.stat-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    color: var(--kcl-text-muted);
    margin-bottom: 0.2rem;
    max-width: 100%;
    white-space: normal;
}

.stat-value {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--kcl-text);
    line-height: 1.2;
    max-width: 100%;
    white-space: normal;
    word-break: break-word;
}

@media (max-width: 768px) {
    .stats-group {
        flex-direction: column;
        gap: 1rem;
    }

    .stat-item {
        width: 100%;
    }
}

/* PRODUCTS SHOWCASE */
.products-showcase {
    background: var(--kcl-surface);
    border-bottom-left-radius: var(--kcl-radius-xxl);
    border-bottom-right-radius: var(--kcl-radius-xxl);
    padding: 140px 0 60px;
    position: relative;
    z-index: 3;
    box-shadow: var(--kcl-shadow-bottom);
    margin-top: -80px;
    
    
}

.section-header {
    text-align: center;
    margin-bottom: 70px;
}

.section-title {
    font-size: 54px;
    line-height: 1.2;
    letter-spacing: -1px;
    color: var(--kcl-text);
    margin-bottom: 15px;
}

.section-subtitle {
    color: var(--kcl-text-muted);
    font-size: 17px;
    max-width: 600px;
    margin: 0 auto;
}

.products-horizontal-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.product-horizontal-card {
    background: var(--kcl-surface-soft);
    border-radius: 28px;
    cursor: pointer;
    transition: all 0.35s ease;
    box-shadow: var(--kcl-shadow-bottom), 0 -10px 20px -5px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    overflow-wrap: break-word;
    word-break: break-word;
}

    .product-horizontal-card:hover {
        transform: translateY(-5px);
        background: #dbdbdb; /* service page hover color */
    }

.product-card-inner {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.product-image-area {
    background: var(--kcl-surface);
    padding: 30px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid color-mix(in srgb, var(--kcl-border) 30%, transparent);
}

    .product-image-area img {
        width: 90px;
        height: 90px;
        object-fit: contain;
    }

.product-info-area {
    padding: 20px 20px 24px;
    text-align: center;
}

    .product-info-area h3 {
        font-size: 1.5rem;
        font-weight: 700;
        margin-bottom: 8px;
        color: var(--kcl-text);
    }

.product-badge {
    display: inline-block;
    background: color-mix(in srgb, var(--kcl-primary) 12%, transparent);
    color: var(--kcl-primary);
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 0.2rem 0.8rem;
    border-radius: var(--kcl-radius-pill);
    margin-bottom: 12px;
}

.product-info-area p {
    font-size: 0.85rem;
    line-height: 1.4;
    color: var(--kcl-text-soft);
    margin-bottom: 16px;
}

.product-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

    .product-actions a {
        font-size: 0.9rem; 
        font-weight: 600;
        color: var(--kcl-primary);
        text-decoration: none;
        transition: 0.2s;
        padding: 8px 12px;
        line-height: 1.2; 
        display: inline-flex;
        align-items: center; 
        justify-content: center;
    }

        .product-actions a:hover {
            color: var(--kcl-primary-dark);
            text-decoration: underline;
        }


/* MODAL – same structure as team modal */
.product-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s;
}

    .product-modal.active {
        opacity: 1;
        visibility: visible;
    }

.modal-card {
    width: 480px;
    max-width: calc(100vw - 2rem);
    max-height: 85vh;
    background: var(--kcl-surface);
    border-radius: var(--kcl-radius-lg);
    box-shadow: var(--kcl-shadow-md);
    overflow-y: auto;
    position: relative;
    transform: translateY(30px) scale(0.95);
    opacity: 0;
    transition: transform 0.35s cubic-bezier(0.2, 0.9, 0.4, 1.2), opacity 0.25s ease;
    overflow-wrap: break-word;
    word-break: break-word;
}

.product-modal.active .modal-card {
    transform: translateY(0) scale(1);
    opacity: 1;
}

.modal-card::-webkit-scrollbar {
    width: 4px;
}

.modal-card::-webkit-scrollbar-track {
    background: var(--kcl-surface-soft);
    border-radius: 10px;
}

.modal-card::-webkit-scrollbar-thumb {
    background: var(--kcl-primary);
    border-radius: 10px;
}

.modal-inner {
    padding: 1.8rem 1.8rem 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.modal-header {
    display: flex;
    gap: 1.2rem;
    align-items: center;
    flex-wrap: wrap;
    border-bottom: 1px solid var(--kcl-border);
    padding-bottom: 1rem;
}

.modal-icon-lg {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: contain;
    background: var(--kcl-surface-soft);
    padding: 12px;
    border: 2px solid var(--kcl-primary);
}

.modal-title h3 {
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: -0.01em;
    color: var(--kcl-text);
    line-height: 1.2;
}

.modal-role-badge {
    background: color-mix(in srgb, var(--kcl-primary) 12%, transparent);
    color: var(--kcl-primary);
    display: inline-block;
    padding: 0.2rem 0.9rem;
    border-radius: var(--kcl-radius-pill);
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-top: 0.3rem;
}

.modal-bio {
    background: var(--kcl-surface-soft);
    padding: 0.9rem 1.1rem;
    border-radius: var(--kcl-radius-md);
    font-size: 0.85rem;
    line-height: 1.5;
    color: var(--kcl-text-soft);
    border-left: 4px solid var(--kcl-primary);
    overflow-wrap: break-word;
    word-break: break-word;
}

    .modal-bio i {
        color: var(--kcl-primary);
        margin-right: 5px;
    }

.modal-details-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.7rem 1rem;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.8rem;
    color: var(--kcl-text-soft);
    overflow-wrap: break-word;
    word-break: break-word;
}

    .detail-item i {
        width: 24px;
        color: var(--kcl-primary);
        font-size: 0.95rem;
        flex-shrink: 0;
    }

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: 0.3rem;
}

.skill-tag {
    background: var(--kcl-border);
    padding: 0.2rem 0.7rem;
    border-radius: var(--kcl-radius-pill);
    font-size: 0.7rem;
    font-weight: 500;
    color: var(--kcl-text);
}

.close-modal-btn {
    position: absolute;
    top: 0.8rem;
    right: 1rem;
    background: rgba(0, 0, 0, 0.05);
    width: 30px;
    height: 30px;
    border-radius: var(--kcl-radius-pill);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: 0.2s;
    color: var(--kcl-text-muted);
    z-index: 10;
}

    .close-modal-btn:hover {
        background: rgba(0, 0, 0, 0.1);
        color: var(--kcl-text);
    }

/* CTA SECTION */
.cta-products-section {
    background: var(--kcl-surface-soft);
    margin-top: -70px;
    border-radius: var(--kcl-radius-xxl);
    padding: 100px 0 30px;
    position: relative;
    z-index: 2;
}

.cta-icon-wrap {
    width: 95px;
    height: 95px;
    background: var(--kcl-surface);
    border-radius: 50%;
    margin: 0 auto 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    color: var(--kcl-primary);
    box-shadow: var(--kcl-shadow-sm);
}

.cta-products-section h2 {
    font-size: 68px;
    line-height: 1.08;
    letter-spacing: -2px;
    color: var(--kcl-text);
    margin-bottom: 20px;
}

.cta-buttons-group {
    display: flex;
    justify-content: center;
    gap: 18px;
    flex-wrap: wrap;
}

.btn-dark, .btn-light {
    padding: 16px 34px;
    border-radius: var(--kcl-radius-pill);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.25s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: var(--kcl-shadow-sm);
}

.btn-dark {
    background: var(--kcl-text);
    color: var(--kcl-surface);
}

    /* Service page dark button hover style */
    .btn-dark:hover {
        transform: translateY(-3px);
        background: #000 !important;
        box-shadow: 0 12px 25px rgba(0,0,0,0.18);
        color: #fff;
    }

.btn-light {
    background: var(--kcl-surface);
    color: var(--kcl-text);
    border: 1px solid var(--kcl-border);
}

    /* Service page light button hover style (WhatsApp green) */
    .btn-light:hover {
        transform: translateY(-3px);
        background: #25D366 !important;
        color: #fff !important;
        box-shadow: 0 12px 25px rgba(0,0,0,0.10);
    }

.cta-note {
    margin-top: 2rem;
    font-size: 0.85rem;
    color: var(--kcl-text-muted);
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 1200px) {
    .products-horizontal-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }

    .intro-section {
        border-bottom-left-radius: var(--kcl-radius-tablet);
        border-bottom-right-radius: var(--kcl-radius-tablet);
    }

    .products-showcase {
        border-bottom-left-radius: var(--kcl-radius-tablet);
        border-bottom-right-radius: var(--kcl-radius-tablet);
    }

    .cta-products-section {
        border-radius: var(--kcl-radius-tablet);
    }

    .modal-card {
        border-radius: var(--kcl-radius-tablet);
    }
}

@media (max-width: 768px) {
    .products-horizontal-grid {
        grid-template-columns: 1fr;
    }

    .modal-card {
        width: calc(100% - 2rem);
        border-radius: var(--kcl-radius-mobile);
    }

    .modal-header {
        flex-direction: column;
        text-align: center;
    }

    .modal-details-grid {
        grid-template-columns: 1fr;
    }

    .cta-products-section h2 {
        font-size: 38px;
    }
   
    .intro-section {
        border-radius: 0 0 var(--kcl-radius-mobile) var(--kcl-radius-mobile);
    }

    .products-showcase {
        border-bottom-left-radius: var(--kcl-radius-mobile);
        border-bottom-right-radius: var(--kcl-radius-mobile);
    }

    .cta-products-section {
        border-radius: var(--kcl-radius-mobile);
    }
}

/* Bootstrap column safety */
.row > [class*="col-"] {
    min-width: 0;
}

body.modal-open {
    overflow: hidden;
}
