/*
 * Shared "services grid" card component.
 * Used by index.html, services.html, and products.html
 * (previously duplicated inline in each page).
 */

/* Section */
.services {
    background: #f8fafc;
    padding: 72px 16px;
}

/* Heading */
.services-heading {
    margin: 0 auto 56px;
    text-align: center;
    font-size: 2rem;
    color: #003366;
    line-height: 1.35;
}

/* Grid */
.services-grid {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

/* Card */
.service-item {
    background: #ffffff;
    border-radius: 12px;
    padding: 22px;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.06);
    display: flex;
    flex-direction: column;
}

/* Header */
.service-header {
    display: grid;
    grid-template-columns: 44px 1fr;
    align-items: center;
    gap: 14px;
    margin-bottom: 14px;
}

.service-icon {
    width: 44px;
    height: 44px;
    background: #e6f6f6;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #03a3a3;
    font-size: 1.25rem;
}

.service-title {
    font-size: 1.05rem;
    font-weight: bold;
    color: #003366;
    line-height: 1.3;
}

/* Body */
.service-description {
    font-size: 0.9rem;
    line-height: 1.6;
    color: #555;
    max-width: 92%;
    margin-bottom: 18px;
}

/* Footer */
.service-link {
    align-self: flex-start;
    font-size: 0.8rem;
    font-weight: 500;
    background-color: #03a3a3;
    color: white;
    padding: 8px 14px;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: 0.5s ease;
}

.service-link:hover {
    background-color: #004e4e;
}

/* Desktop */
@media (min-width: 768px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 32px;
    }
}

/* Large screens */
@media (min-width: 1100px) {
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}
