/* Public Services pages. Uses the same palette as the existing portfolio cards. */

.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.25rem;
    margin-top: 1.5rem;
}

.service-card {
    text-align: left;
}

.service-card__platforms {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    justify-content: center;
    margin-bottom: 0.85rem;
}

.service-card__platform {
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 999px;
    padding: 0.1rem 0.5rem;
    font-size: 0.7rem;
    color: var(--text-dim, #c9ced6);
}

.service-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.85rem;
    padding: 3rem 1rem;
    text-align: center;
}

.service-state--error h1 {
    font-size: 1.5rem;
}

.service-state--error p,
.service-state--notice p {
    color: var(--text-dim, #c9ced6);
}

.service-state__spinner {
    width: 32px;
    height: 32px;
    border: 3px solid rgba(255, 255, 255, 0.2);
    border-top-color: #ff003c;
    border-radius: 50%;
    animation: service-spin 0.8s linear infinite;
}

@keyframes service-spin {
    to { transform: rotate(360deg); }
}

.service-detail {
    max-width: 1100px;
    margin: 0 auto;
}

.service-breadcrumb {
    font-size: 0.85rem;
    color: var(--text-dim, #c9ced6);
    margin-bottom: 1.5rem;
}

.service-breadcrumb a {
    color: inherit;
    text-decoration: none;
}

.service-breadcrumb a:hover {
    color: #ff003c;
}

.service-detail__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(260px, 0.9fr);
    gap: 2rem;
    align-items: start;
}

.service-detail__image {
    width: 100%;
    border-radius: 14px;
    margin-bottom: 1.5rem;
}

.service-detail__category {
    color: #ff003c;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.service-detail__summary {
    font-size: 1.1rem;
    margin: 0.75rem 0;
}

.service-detail__description {
    color: var(--text-dim, #c9ced6);
    white-space: pre-line;
}

.service-detail__tags,
.service-detail__listings {
    margin-top: 1.75rem;
}

.service-detail__tags h2,
.service-detail__listings h2,
.service-detail__cta-card h2 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1rem;
    margin-bottom: 0.75rem;
}

.service-detail__tags ul,
.service-detail__listings ul {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    list-style: none;
    padding: 0;
}

.service-detail__tags li {
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 999px;
    padding: 0.25rem 0.65rem;
    font-size: 0.8rem;
}

.service-detail__listings li a {
    display: block;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 8px;
    padding: 0.6rem 0.75rem;
    color: var(--text-light, #fff);
    text-decoration: none;
}

.service-detail__listings li a span {
    display: block;
    font-size: 0.75rem;
    color: var(--text-dim, #c9ced6);
}

.service-detail__cta-card {
    border: 1px solid rgba(255, 0, 60, 0.25);
    border-radius: 12px;
    padding: 1.25rem;
    background: rgba(255, 255, 255, 0.04);
}

.service-detail__cta-card p {
    color: var(--text-dim, #c9ced6);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.service-detail__listing-label {
    font-size: 0.8rem;
    color: var(--text-dim, #c9ced6);
    margin-top: 0.5rem;
}

.service-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.service-section {
    margin-top: 1.75rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.service-section h2 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.05rem;
    margin-bottom: 0.65rem;
}

.service-section__intro {
    color: var(--text-dim, #c9ced6);
    margin-bottom: 0.9rem;
}

.service-section p {
    color: var(--text-dim, #c9ced6);
    line-height: 1.7;
}

.service-section a {
    color: #ff003c;
    text-decoration: underline;
}

.service-section ul,
.service-section ol {
    margin: 0.5rem 0 0;
    padding-left: 1.25rem;
}

.service-section li {
    margin-bottom: 0.35rem;
}

.service-section__features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 0.85rem;
    margin-top: 0.9rem;
}

.service-section__feature {
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 10px;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.03);
}

.service-section__feature h3 {
    font-size: 0.95rem;
    margin: 0.45rem 0;
}

.service-section__feature-icon {
    color: #ff003c;
}

.service-section__callout {
    border-left: 3px solid #ff003c;
    border-radius: 8px;
    padding: 0.85rem 1rem;
    background: rgba(255, 255, 255, 0.05);
}

.service-section__callout--highlight {
    border-left-color: #ffcc00;
    background: rgba(255, 204, 0, 0.08);
}

.service-section__callout--note {
    border-left-color: var(--accent, #4f8cff);
    background: rgba(79, 140, 255, 0.08);
}

.service-section__figure {
    margin: 0.9rem 0 0;
}

.service-section__figure img {
    display: block;
    width: 100%;
    border-radius: 10px;
}

.service-section__figure figcaption {
    margin-top: 0.5rem;
    font-size: 0.8rem;
    color: var(--text-dim, #c9ced6);
}

@media (max-width: 800px) {
    .service-detail__grid {
        grid-template-columns: 1fr;
    }

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