/*
 * The public services pages: the overview (templates/public/services.html) and the page of every
 * single service below it (templates/public/services/*.html), which the topbar dropdown links to
 * directly. They describe what a service does; what it costs lives on the pricing page and is
 * styled by public/pricing.css.
 *
 * The pages follow the home page's rhythm - a large centred section title over a grid - with the
 * cards kept flat: the panel color, no gradient or shadow. The button is the shared component.
 */
.service {
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto 150px;
    padding: 0 1.5rem;
}

.service:first-of-type {
    margin-top: var(--hero-top);
}

/* Typography comes from .page-title in public/base.css. */
.service__title {
    text-align: center;
}

.service__lead {
    max-width: 60ch;
    margin: 24px auto 0;
    color: var(--text-dim);
    font-size: var(--font-size-small);
    line-height: 1.6;
    text-align: center;
}

.service__image {
    display: block;
    width: 100%;
    max-width: 900px;
    height: auto;
    margin: 80px auto 0;
    border: 1px solid var(--bar-border);
    border-radius: 14px;
}

.service__actions {
    display: flex;
    justify-content: center;
    margin-top: 48px;
}

/* The overview: one card per service, each linking to that service's own page. */
.service-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 32px;
    padding-top: 80px;
}

.service-card {
    display: block;
    padding: 1.75rem;
    background: var(--panel);
    border: 1px solid transparent;
    border-radius: 14px;
    color: inherit;
    text-decoration: none;
    transition: border-color 0.15s ease;
}

.service-card:hover {
    border-color: var(--text-dim);
}

.service-card__name {
    font-family: var(--display);
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    margin: 0 0 15px;
}

.service-card__text {
    margin: 0;
    color: var(--text-dim);
    font-size: 1rem;
    line-height: 1.6;
}

@media (max-width: 900px) {
    .service-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 24px;
        padding-top: 48px;
    }
}
