/* Approach Section - Quote + Values */
#approach {
    width: 100%;
    background-color: #fafafa;
}

/* Header Section - White Background */
#approach .approach-header {
    width: 100%;
    background-color: #fafafa;
    display: grid;
    place-items: center;
    padding: var(--spacing-xl) var(--spacing-md) var(--spacing-md);
}

#approach .approach-header h2 {
    font-size: var(--font-size-2xl);
    font-weight: var(--font-weight-light);
    color: var(--color-black);
    text-align: center;
    margin: 0 0 var(--spacing-md) 0;
    letter-spacing: -0.02em;
    line-height: var(--line-height-tight);
}

#approach .approach-header p {
    font-size: var(--font-size-base);
    line-height: var(--line-height-loose);
    color: var(--color-text-light);
    max-width: 60ch;
    margin: 0;
    text-align: center;
}

/* Core Values Section */
#approach .approach-values {
    background-color: #fafafa;
    width: 100%;
    padding: var(--spacing-md) var(--spacing-md) var(--spacing-2xl);
    border-bottom: 1px solid var(--color-border);
}

#approach .approach-values ul {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-xl) var(--spacing-lg);
    list-style: none;
    padding: 0;
    margin: 0;
    max-width: 900px;
    margin: 0 auto;
}

#approach .approach-values li {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-self: center;
}

/* Animated Gradient Border Icons */
#approach .value-icon {
    position: relative;
    margin-bottom: var(--spacing-md);
    color: white;
    width: 80px;
    height: 80px;
    display: grid;
    place-items: center;
    border-radius: 0 var(--border-radius-lg) 0 var(--border-radius-lg);
    overflow: hidden;
}

/* Gradient background layer */
#approach .value-icon::before {
    content: "";
    position: absolute;
    inset: -50%;
    border-radius: 0 var(--border-radius-lg) 0 var(--border-radius-lg);
    background: var(--gradient);
    z-index: 0;
}

/* Inner background */
#approach .value-icon::after {
    content: "";
    position: absolute;
    inset: 4px;
    background-color: var(--color-primary);
    border-radius: 0 calc(var(--border-radius-lg) - 4px) 0
        calc(var(--border-radius-lg) - 4px);
    z-index: 1;
}

/* Animated state */
#approach .value-icon.animate::before {
    animation: rotateGradient 2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Keyframe for gradient rotation */
@keyframes rotateGradient {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Simple conic gradients for each value - starting from upper left */
#approach .approach-values li:nth-child(1) .value-icon {
    --gradient: conic-gradient(from -45deg, black, #3b82f6);
}

#approach .approach-values li:nth-child(2) .value-icon {
    --gradient: conic-gradient(from -45deg, black, #8b5cf6);
}

#approach .approach-values li:nth-child(3) .value-icon {
    --gradient: conic-gradient(from -45deg, black, #f59e0b);
}

#approach .approach-values li:nth-child(4) .value-icon {
    --gradient: conic-gradient(from -45deg, black, #10b981);
}

#approach .approach-values li:nth-child(5) .value-icon {
    --gradient: conic-gradient(from -45deg, black, #06b6d4);
}

#approach .value-icon svg {
    width: 32px;
    height: 32px;
    stroke-width: 1.3px;
    position: relative;
    z-index: 3;
}

#approach .approach-values h3 {
    font-size: var(--font-size-lg);
    margin-bottom: var(--spacing-md);
    color: var(--color-primary);
    font-weight: var(--font-weight-light);
}

#approach .approach-values li p {
    font-size: var(--font-size-base);
    color: var(--color-text-light);
    line-height: var(--line-height-loose);
    margin: 0;
}

/* Responsive */
@media (max-width: 768px) {
    #approach .approach-header {
        padding: var(--spacing-lg) var(--spacing-md) var(--spacing-md);
    }

    #approach .approach-header h2 {
        font-size: var(--font-size-xl);
    }

    #approach .approach-values {
        padding: var(--spacing-md) var(--spacing-md);
    }

    #approach .approach-values ul {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }

    #approach .approach-values li {
        max-width: 500px;
    }
}

@media (max-width: 480px) {
    #approach .approach-header h2 {
        font-size: var(--font-size-lg);
    }

    #approach .approach-values h3 {
        font-size: var(--font-size-md);
    }
}
