/**
 * Why Choose Synergy Section Styles
 * Synergy Health Theme
 * Animated statistics with circular progress indicators
 */

/* ========================================
   SECTION BASE
   ======================================== */

.why-choose-synergy-section {
    position: relative;
    width: 100%;
    padding: var(--spacing-4xl) var(--spacing-lg);
    background-color: var(--off-white);
    overflow: hidden;
}

/* Container */
.wcs-container {
    position: relative;
    max-width: var(--container-max-width);
    margin: 0 auto;
    z-index: 2;
}

/* ========================================
   HEADER
   ======================================== */

.wcs-header {
    text-align: center;
    margin-bottom: 80px;
}

.wcs-eyebrow {
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--teal);
    margin: 0 0 20px 0;
}

.wcs-heading {
    font-size: 48px;
    font-weight: 600;
    line-height: 1.2;
    color: var(--primary-blue);
    margin: 0 0 20px 0;
}

.wcs-subheading {
    font-size: 16px;
    line-height: 1.6;
    color: #272727;
    margin: 0;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.wcs-subheading .highlight-text {
    color: var(--teal);
    font-weight: 600;
}

/* ========================================
   CTA BUTTONS
   ======================================== */

.wcs-cta-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.wcs-cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: var(--btn-padding-md);
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    border-radius: var(--radius-pill);
    border: 3px solid transparent;
    transition: all var(--transition-base);
    cursor: pointer;
    white-space: nowrap;
}

.wcs-cta-button.primary {
    background-color: var(--red);
    color: var(--white);
    border-color: var(--red);
}

.wcs-cta-button.primary:hover {
    background-color: var(--red-dark);
    border-color: var(--red-dark);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-button);
}

.wcs-cta-button.primary:active {
    transform: translateY(0);
}

.wcs-cta-button.primary:focus {
    outline: 3px solid var(--red);
    outline-offset: 2px;
}

.wcs-cta-button.secondary {
    background-color: transparent;
    color: var(--red);
    border-color: var(--red);
}

.wcs-cta-button.secondary:hover {
    background-color: var(--red);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-button);
}

.wcs-cta-button.secondary:active {
    transform: translateY(0);
}

.wcs-cta-button.secondary:focus {
    outline: 3px solid var(--red);
    outline-offset: 2px;
}

/* ========================================
   STATISTICS GRID
   ======================================== */

.wcs-statistics-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 60px;
    align-items: start;
    justify-items: center;
}

/* Center 2 items */
.wcs-statistics-grid:has(.wcs-statistic:nth-child(2):last-child) {
    grid-template-columns: repeat(2, 1fr);
    max-width: 800px;
    margin: 0 auto;
}

/* Center 3 items */
.wcs-statistics-grid:has(.wcs-statistic:nth-child(3):last-child) {
    grid-template-columns: repeat(3, 1fr);
    max-width: 1200px;
    margin: 0 auto;
}

/* 4 items - full width */
.wcs-statistics-grid:has(.wcs-statistic:nth-child(4):last-child) {
    grid-template-columns: repeat(4, 1fr);
}

/* Individual Statistic */
.wcs-statistic {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

/* ========================================
   CIRCULAR PROGRESS
   ======================================== */

.wcs-circle-wrapper {
    position: relative;
    width: 280px;
    height: 280px;
    margin-bottom: 30px;
}

.wcs-circle-svg {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

/* Light Blue Background Circle */
.wcs-circle-bg {
    fill: none;
    stroke: #C7D4EC;
    stroke-width: 24;
    stroke-linecap: round;
}

/* Dark Blue Progress Circle */
.wcs-circle-progress {
    fill: none;
    stroke: #4464AD;
    stroke-width: 24;
    stroke-linecap: round;
    stroke-dasharray: 0 1000;
    transition: stroke-dasharray 2s ease-out;
}

/* Animated state - will be triggered by JavaScript when in view */
.wcs-circle-wrapper.animate .wcs-circle-progress {
    animation: none; /* Let JS control the dasharray */
}

/* Number in Center of Circle */
.wcs-number {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 72px;
    font-weight: 600;
    line-height: 1;
    color: #4464AD;
    display: flex;
    align-items: baseline;
    font-family: rubik, sans-serif;
}

.wcs-number-value {
    font-size: inherit;
    font-weight: inherit;
    font-family: inherit;
}

.wcs-number-suffix {
    font-size: 72px;
    font-weight: 600;
    margin-left: 4px;
    font-family: inherit;
}

/* ========================================
   STATISTIC LABELS
   ======================================== */

.wcs-stat-label {
    font-size: 20px;
    font-weight: 400;
    line-height: 1.4;
    margin: 0;
}

.wcs-stat-sublabel {
    font-size: 20px;
    font-weight: 400;
    line-height: 1.4;
    margin: 0;
}

/* ========================================
   DATA SOURCE
   ======================================== */

.wcs-data-source {
    text-align: center;
    margin-top: 60px;
    font-size: 14px;
    line-height: 1.6;
    color: var(--teal);
    font-weight: 600;
    margin-bottom: 0;
}

.wcs-source {
    text-align: center;
    margin-top: 30px;
}

.wcs-source-text {
    font-size: 14px;
    line-height: 1.6;
    color: var(--teal);
    margin: 0;
    font-weight: 600;
}

/* ========================================
   DECORATIVE ELEMENT
   ======================================== */

.wcs-decorative-paperclip {
    position: absolute;
    bottom: -50px;
    right: 0;
    width: 300px;
    height: auto;
    opacity: 0.5;
    pointer-events: none;
    z-index: 1;
}

/* ========================================
   RESPONSIVE STYLES
   ======================================== */

/* Desktop Large (1200px) */
@media (max-width: 1200px) {
    .wcs-statistics-grid {
        gap: 40px;
    }
    
    /* Maintain 3-column centered layout for 3 items */
    .wcs-statistics-grid:has(.wcs-statistic:nth-child(3):last-child) {
        grid-template-columns: repeat(3, 1fr);
        max-width: 1000px;
    }
    
    .wcs-circle-wrapper {
        width: 240px;
        height: 240px;
    }
    
    .wcs-number {
        font-size: 60px;
    }
    
    .wcs-number-suffix {
        font-size: 42px;
    }
}

/* Tablet Landscape (1024px) */
@media (max-width: 1024px) {
    .wcs-header {
        margin-bottom: 60px;
    }
    
    .wcs-heading {
        font-size: 42px;
    }
    
    .wcs-subheading {
        font-size: 18px;
    }
    
    .wcs-statistics-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }
    
    /* Override all special cases on mobile */
    .wcs-statistics-grid:has(.wcs-statistic:nth-child(2):last-child) {
        grid-template-columns: 1fr;
        max-width: none;
    }
    
    .wcs-statistics-grid:has(.wcs-statistic:nth-child(3):last-child) {
        grid-template-columns: 1fr;
        max-width: none;
    }
    
    .wcs-statistics-grid:has(.wcs-statistic:nth-child(4):last-child) {
        grid-template-columns: 1fr;
    }
    
    .wcs-circle-wrapper {
        width: 220px;
        height: 220px;
    }
    
    .wcs-number {
        font-size: 56px;
    }
    
    .wcs-number-suffix {
        font-size: 38px;
    }
    
    .wcs-stat-label {
        font-size: 18px;
    }
    
    .wcs-stat-sublabel {
        font-size: 15px;
    }
}

/* Tablet Portrait (768px) */
@media (max-width: 768px) {
    .wcs-header {
        margin-bottom: 50px;
    }
    
    .wcs-eyebrow {
        font-size: 12px;
    }
    
    .wcs-heading {
        font-size: 36px;
        margin-bottom: 16px;
    }
    
    .wcs-subheading {
        font-size: 17px;
    }
    
    .wcs-statistics-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }
    
    .wcs-circle-wrapper {
        width: 260px;
        height: 260px;
    }
    
    .wcs-number {
        font-size: 64px;
    }
    
    .wcs-number-suffix {
        font-size: 44px;
    }
    
    .wcs-cta-wrapper {
        flex-direction: column;
        gap: 16px;
    }
    
    .wcs-cta-button {
        width: 100%;
        max-width: 400px;
    }
}

/* Mobile (480px) */
@media (max-width: 480px) {
    .why-choose-synergy-section {
        padding: 50px 16px;
    }
    
    .wcs-header {
        margin-bottom: 40px;
    }
    
    .wcs-heading {
        font-size: 32px;
    }
    
    .wcs-subheading {
        font-size: 16px;
    }
    
    .wcs-statistics-grid {
        gap: 40px;
    }
    
    .wcs-circle-wrapper {
        width: 220px;
        height: 220px;
    }
    
    .wcs-number {
        font-size: 54px;
    }
    
    .wcs-number-suffix {
        font-size: 36px;
    }
    
    .wcs-stat-label {
        font-size: 17px;
    }
    
    .wcs-stat-sublabel {
        font-size: 14px;
    }
    
    .wcs-cta-button {
        padding: 14px 32px;
        font-size: 16px;
    }
    
    .wcs-source {
        margin-top: 50px;
    }
    
    .wcs-source-text {
        font-size: 13px;
    }
    
    .wcs-data-source {
        margin-top: 50px;
        font-size: 13px;
    }
}

/* ========================================
   ACCESSIBILITY
   ======================================== */

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    .wcs-circle-progress {
        transition: none;
    }
    
    .wcs-cta-button {
        transition: none;
    }
}

/* Focus Styles for Keyboard Navigation */
.wcs-cta-button:focus {
    outline: 3px solid var(--red);
    outline-offset: 4px;
}
