/* services.css — v0.3 redesign */

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.25rem;
    margin-bottom: 4rem;
}

.service-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.9rem;
    text-align: left;
    transition: all var(--transition-speed);
    position: relative;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-card);
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lift);
    border-color: var(--bg-quaternary);
}

.service-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 1.35rem;
    background: color-mix(in srgb, var(--primary-color) 12%, transparent);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: var(--primary-color);
}

.service-card h3 {
    font-family: var(--font-main);
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.65rem;
    font-size: 1.1rem;
}

.service-card p {
    color: var(--text-secondary);
    margin-bottom: 1.25rem;
    line-height: 1.6;
    font-size: 0.92rem;
}

.service-card ul {
    text-align: left;
    margin: 0 0 1.5rem;
    list-style: none;
    flex-grow: 1;
}

.service-card li {
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    font-size: 0.88rem;
    padding-left: 1.4rem;
    position: relative;
}

.service-card li::before {
    content: '\2713';
    position: absolute;
    left: 0;
    color: var(--accent-color);
    font-weight: 700;
}

.service-card .primary-button { align-self: flex-start; }

.cta-section {
    text-align: center;
    padding: 3.5rem 2rem;
    background:
        radial-gradient(ellipse at 50% 0%, color-mix(in srgb, var(--primary-color) 8%, transparent), transparent 70%),
        var(--bg-secondary);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    margin-bottom: 3rem;
}

.cta-section h2 {
    color: var(--text-primary);
    margin-bottom: 0.85rem;
    font-size: 1.85rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.cta-section p {
    color: var(--text-secondary);
    margin-bottom: 1.75rem;
    font-size: 1.05rem;
    max-width: 540px;
    margin-left: auto;
    margin-right: auto;
}

.primary-button.large {
    padding: 0.85rem 1.9rem;
    font-size: 1rem;
}

/* Service detail sections */
.service-detail {
    margin-bottom: 1.5rem;
    padding: 2rem;
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    scroll-margin-top: 90px; /* keep anchored headings clear of the sticky header */
}

.service-detail h2 {
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-size: 1.35rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.service-detail h2 i {
    color: var(--primary-color);
    font-size: 1.1rem;
}

.service-detail:last-of-type { margin-bottom: 3rem; }

.service-detail .detail-intro {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    max-width: 800px;
    line-height: 1.7;
}

.service-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.feature-icon {
    color: var(--primary-color);
    font-size: 1.2rem;
    margin-top: 0.2rem;
}

.feature-content h4 {
    font-family: var(--font-main);
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.4rem;
}

.feature-content p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.55;
}

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

    .service-card { padding: 1.5rem; }

    .cta-section { padding: 2.5rem 1.5rem; }

    .service-features { grid-template-columns: 1fr; }
}
