/* ==========================================================================
   Impact & Statistics Counter Section - SS Healing Rays
   Positioned directly after the Founders Profile / Team section
   Matches Brand Theme:
     - Background: Pure White (#ffffff)
     - Numbers: Marcellus Serif (#82387a) with Playfair / Rose Magenta Accent
     - Labels: Lato Clean Copy (#4b5563)
     - Dividers: Subtle Amethyst Tinted 1px Horizontal Rules
     - Responsive Container: Fits all desktop screens (max-width: 960px)
   ========================================================================== */

:root {
    --counter-border-color: rgba(130, 56, 122, 0.16);
    --counter-number-color: var(--primary-color, #82387a);
    --counter-suffix-color: var(--secondary-color, #ba436c);
    --counter-label-color: #4b5563;
}

.counter-section {
    position: relative;
    padding: 0rem 0 5rem;
    background-color: #ffffff;
    overflow: hidden;
}

/* 1. Desktop Responsive Container */
.counter-container {
    max-width: 960px;
    margin: 0 auto;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

/* 2. Grid Wrapper (No Top or Bottom Border, Only Middle Borders) */
.counter-grid {
    position: relative;
}

/* 3. Horizontal Row with Inter-Row Dividers (Middle Borders Only) */
.counter-row {
    position: relative;
    padding: 2.25rem 0;
    border-bottom: 1px solid var(--counter-border-color);
    transition: background-color 0.3s ease;
}

.counter-row:last-child {
    border-bottom: none;
}

.counter-row:hover {
    background-color: rgba(130, 56, 122, 0.015);
}

/* 4. Column Spacing & Balance */
.counter-col {
    position: relative;
    padding: 0 1.5rem;
}

@media (min-width: 768px) {
    .counter-col-left {
        padding-right: 2rem;
        padding-left: 1rem;
    }

    .counter-col-right {
        padding-left: 2rem;
        padding-right: 1rem;
    }
}

/* 5. Counter Item Hierarchy (Center Aligned) */
.counter-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    justify-content: center;
    width: 100%;
}

/* 6. Counter Number Display */
.counter-number {
    font-family: var(--brand-font-marcellus, 'Marcellus', Georgia, serif);
    font-size: clamp(2.6rem, 4.2vw, 3.6rem);
    font-weight: 400;
    line-height: 1.1;
    color: var(--counter-number-color);
    letter-spacing: -0.015em;
    margin-bottom: 0.45rem;
    display: inline-flex;
    align-items: baseline;
    justify-content: center;
    text-align: center;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.counter-item:hover .counter-number {
    transform: translateY(-2px);
}

.counter-count {
    display: inline-block;
    font-variant-numeric: tabular-nums;
}

.counter-suffix {
    font-family: var(--brand-font-marcellus, 'Marcellus', Georgia, serif);
    font-size: 0.9em;
    color: var(--counter-suffix-color);
    margin-left: 2px;
    font-weight: 400;
}

/* 7. Counter Label (Center Aligned) */
.counter-label {
    font-family: var(--brand-font-sans, 'Lato', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif);
    font-size: clamp(1rem, 1.25vw, 1.125rem);
    font-weight: 400;
    line-height: 1.45;
    color: var(--counter-label-color);
    margin: 0 auto;
    text-align: center;
    max-width: 400px;
    letter-spacing: 0.005em;
}

/* ==========================================================================
   Responsive Adaptations
   ========================================================================== */

/* Laptops & Desktops (Wide Balance) */
@media (min-width: 1200px) {
    .counter-container {
        max-width: 940px; /* Perfectly matches .team-cards-wrapper */
    }

    .counter-row {
        padding: 2.5rem 0;
    }
}

/* Medium Desktop & Tablet Landscape (992px - 1199.98px) */
@media (min-width: 992px) and (max-width: 1199.98px) {
    .counter-container {
        max-width: 900px;
    }

    .counter-row {
        padding: 2.25rem 0;
    }
}

/* Tablet Portrait (768px - 991.98px) */
@media (min-width: 768px) and (max-width: 991.98px) {
    .counter-section {
        padding: 1.75rem 0 4.5rem;
    }

    .counter-row {
        padding: 2rem 0;
    }

    .counter-col-left {
        padding-right: 1.75rem;
    }

    .counter-col-right {
        padding-left: 1.75rem;
    }
}

/* Mobile Screens (< 768px) */
@media (max-width: 767.98px) {
    .counter-section {
        padding: 1.25rem 0 3.75rem;
    }

    .counter-row {
        padding: 1.75rem 0;
    }

    .counter-col-left {
        margin-bottom: 1.5rem;
    }

    .counter-number {
        font-size: clamp(2.3rem, 7vw, 2.85rem);
        margin-bottom: 0.35rem;
    }

    .counter-label {
        font-size: 0.98rem;
    }
}

/* Small Mobile Screens (< 400px) */
@media (max-width: 399.98px) {
    .counter-section {
        padding: 3rem 0 3.75rem;
    }

    .counter-number {
        font-size: 2.15rem;
    }

    .counter-label {
        font-size: 0.92rem;
    }
}

