/**
 * Services Grid Layout
 * 3-column grid for service categories
 */

.services-grid-section {
    padding: 2rem 2rem 6rem 2rem;
    background: #000000;
    position: relative;
    overflow: hidden;
    display: flex;
    justify-content: center;
    width: 100%;
}

.services-grid-container {
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.services-grid-header {
    text-align: center;
    margin-bottom: 4rem;
}

.services-grid-header h2 {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--color-white);
}

.services-grid-header p {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.7);
    max-width: 600px;
    margin: 0 auto;
}

/* Grid Layout */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 3rem;
}

/* Service Category Card */
.service-category-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 2.5rem 2rem;
    transition: all 0.3s ease;
    position: relative;
}

.service-category-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* Service Icon */
.service-category-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 1.5rem;
    color: #facc15;
    /* Green color matching screenshot */
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-category-icon svg {
    width: 100%;
    height: 100%;
}

/* Service Title */
.service-category-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--color-white);
    margin-bottom: 1rem;
    line-height: 1.3;
}

/* Service Description */
.service-category-card>p {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

/* Service Features List */
.service-features {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem 0;
}

.service-features li {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    line-height: 1.4;
}

.service-features li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #facc15;
    font-weight: 600;
}

/* Learn More Link */
.service-learn-more {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #facc15;
    font-size: 0.95rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
}

.service-learn-more:hover {
    gap: 0.75rem;
    color: #eab308;
}

.service-learn-more svg {
    width: 16px;
    height: 16px;
    transition: transform 0.3s ease;
}

.service-learn-more:hover svg {
    transform: translateX(3px);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .services-grid-section {
        padding: 4rem 1.5rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .service-category-card {
        padding: 2rem 1.5rem;
    }

    .services-grid-header h2 {
        font-size: 2rem;
    }
}

/* Centering the last card when it's alone in the last row (for 3-column layout) */
@media (min-width: 1025px) {
    .services-grid .last-row-centered:last-child {
        grid-column: 2;
    }
}