/* ============================================================
 * CK Social Section — front end
 * Pure CSS grid, no JS, no hover animation. Constrained to the
 * site's content width (matches .ck-cav-wrap / product tabs).
 * ============================================================ */

.ck-social {
    --ck-social-green: #2e7d32;
    --ck-social-green-dark: #1b4332;
    --ck-social-leaf: #9ccc65;
    --ck-social-text: #1a1a1a;
    --ck-social-muted: #5f6b60;
    --ck-social-border: #e7e8e3;
    --ck-social-tile-bg: #f4f4f2;

    box-sizing: border-box;
    width: 100%;
    max-width: 1320px;
    margin: 2rem auto 3rem;
    padding: 0 6px;
}
.ck-social *,
.ck-social *::before,
.ck-social *::after {
    box-sizing: border-box;
}

.ck-social__inner {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

/* ---------- Header ---------- */
.ck-social__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.ck-social__title {
    margin: 0;
    color: var(--ck-social-text);
    font-size: clamp(1.4rem, 2.4vw, 2rem);
    font-weight: 600;
    line-height: 1.3;
}

.ck-social__follow {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    text-decoration: none;
    color: var(--ck-social-text);
    font-size: 14px;
    font-weight: 600;
    line-height: 1;
    padding: 9px 14px;
    border: 1px solid var(--ck-social-border);
    border-radius: 999px;
    white-space: nowrap;
}
.ck-social__follow-icon {
    flex: 0 0 auto;
}
.ck-social__follow:focus-visible {
    outline: 2px solid var(--ck-social-green);
    outline-offset: 2px;
}

/* ---------- Tile grid ---------- */
.ck-social__grid {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}
@media (min-width: 560px) {
    .ck-social__grid {
        grid-template-columns: repeat(3, 1fr);
    }
}
@media (min-width: 900px) {
    .ck-social__grid {
        grid-template-columns: repeat(6, 1fr);
        gap: 14px;
    }
}

.ck-social__cell {
    list-style: none;
    margin: 0;
}

.ck-social__tile {
    position: relative;
    display: block;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border: 1px solid var(--ck-social-border);
    border-radius: 12px;
    background: var(--ck-social-tile-bg);
    text-decoration: none;
}
a.ck-social__tile:focus-visible {
    outline: 2px solid var(--ck-social-green);
    outline-offset: 2px;
}

.ck-social__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.ck-social__icon {
    position: absolute;
    top: 0px;
    right: 0px;
    width: 30px;
    height: 30px;
    border-radius: 5px;
    overflow: hidden;
    line-height: 0;
    box-shadow: 0 1px 4px rgba(0, 0, 0, .22);
}
.ck-social__icon-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ---------- Stats banner ---------- */
.ck-social__stats {
    position: relative;
    overflow: hidden;
    margin-top: .5rem;
    padding: clamp(2rem, 5vw, 3.25rem) 1.5rem;
    border-radius: 18px;
    background: var(--ck-social-green-dark);
    text-align: center;
    color: #fff;
}

.ck-social__stat-number {
    position: relative;
    z-index: 1;
    font-size: clamp(2.2rem, 6vw, 3.8rem);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.01em;
}

.ck-social__stat-text {
    position: relative;
    z-index: 1;
    margin-top: .5rem;
    font-size: clamp(1rem, 2vw, 1.4rem);
    font-weight: 600;
    opacity: .95;
}

/* Decorative leaf clusters — clipped by the banner's overflow:hidden */
.ck-social__leaf {
    position: absolute;
    z-index: 0;
    color: var(--ck-social-leaf);
    line-height: 0;
    pointer-events: none;
}
.ck-social__leaf svg {
    display: block;
    width: clamp(90px, 14vw, 150px);
    height: auto;
}
.ck-social__leaf--tl {
    top: -40px;
    left: -4px;
    transform: rotate(203deg);
}
.ck-social__leaf--br {
    right: -18px;
    bottom: -32px;
    transform: rotate(291deg);
}

@media (prefers-reduced-motion: no-preference) {
    .ck-social__follow {
        transition: border-color .15s ease;
    }
}
