﻿/* Services page: spacious department cards with scoped typography. */
.services-page {
    --service-ink: #183f43;
    --service-muted: #52696c;
    --service-teal: #087c70;
    padding: 120px 24px 64px;
    color: var(--service-ink);
    background: radial-gradient(ellipse at top left, #e0f5ef, transparent 45%), linear-gradient(180deg, #fffaf4, #fff 700px);
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.7;
}

.services-header {
    max-width: 680px;
    margin: 0 auto 44px;
    text-align: center;
}

.services-eyebrow {
    margin-bottom: 12px;
    color: var(--service-teal);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
}

.services-header h2 {
    position: relative;
    padding-bottom: 24px;
    margin-bottom: 20px;
    font-size: clamp(30px, 4vw, 44px);
    line-height: 1.2;
    letter-spacing: -1px;
}

.services-header h2::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 76px;
    height: 4px;
    border-radius: 8px;
    background: linear-gradient(90deg, #029e90 65%, #fb7f20 65%);
    transform: translateX(-50%);
}

.services-header > p:last-child {
    color: var(--service-muted);
    font-size: 17px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px;
    max-width: 1240px;
    margin: 0 auto;
}

.service-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: clamp(24px, 3vw, 34px);
    border: 1px solid #dcece8;
    border-top: 4px solid #029e90;
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 10px 32px rgb(24 63 67 / 6%);
    scroll-margin-top: 100px;
    overflow-wrap: break-word;
}

.service-card:nth-child(even) { border-top-color: #fb7f20; }

.service-card-heading {
    display: flex;
    align-items: center;
    gap: 20px;
    padding-bottom: 24px;
    margin-bottom: 24px;
    border-bottom: 1px solid #e5eeeb;
}

.service-card-heading > div { min-width: 0; }

.service-card-heading img {
    display: block;
    flex: 0 0 88px;
    width: 88px;
    height: 88px;
    object-fit: contain;
    padding: 6px;
    border-radius: 18px;
    background: #f0f8f5;
}

.service-number {
    display: block;
    margin-bottom: 6px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;
    color: var(--service-teal);
}

.service-card h3 {
    font-size: clamp(21px, 2.1vw, 26px);
    line-height: 1.3;
    letter-spacing: -0.4px;
}

.service-points {
    list-style: none;
    margin: 0 0 28px;
    padding: 0;
}

.service-points li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 22px;
}

.service-points li:last-child { margin-bottom: 0; }

.service-points li::before {
    content: "";
    position: absolute;
    left: 3px;
    top: 7px;
    width: 7px;
    height: 12px;
    border: solid var(--service-teal);
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.service-points h4 {
    margin-bottom: 5px;
    font-size: 16px;
    line-height: 1.5;
}

.service-points p {
    color: var(--service-muted);
    font-size: 15px;
    line-height: 1.8;
}

.service-link,
.services-contact a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 18px;
    border-radius: 10px;
    color: var(--service-teal);
    background: #edf8f4;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
}

.service-link { margin-top: auto; }
.service-link:hover { background: #ffe8d5; color: #813707; }

.services-page a:focus-visible {
    outline: 3px solid #b55309;
    outline-offset: 4px;
}

.services-contact {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    max-width: 1240px;
    margin: 40px auto 0;
    padding: clamp(24px, 4vw, 40px);
    border-radius: 22px;
    background: #124942;
    color: #fff;
}

.services-contact h3 { margin-bottom: 8px; font-size: 25px; line-height: 1.3; }
.services-contact p { color: #dcece8; }
.services-contact a { flex-shrink: 0; background: #fff; }
.services-contact a:hover { background: #ffe8d5; }

@media (max-width: 800px) {
    .services-grid { grid-template-columns: minmax(0, 1fr); }
    .services-contact { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 480px) {
    .services-page { padding: 108px 16px 40px; }
    .services-header { margin-bottom: 30px; }
    .services-grid { gap: 22px; }
    .service-card { padding: 22px; }
    .service-card-heading { gap: 14px; }
    .service-card-heading img { flex-basis: 64px; width: 64px; height: 64px; border-radius: 14px; }
    .service-card h3 { font-size: 21px; }
    .service-points li { padding-left: 24px; }
    .services-contact a { width: 100%; }
}
