.service-page > section + section { margin-block-start: 60px; }

.service-hero { position: relative; isolation: isolate; overflow: hidden; background: #0f1822; color: var(--white); }
.service-hero > img,
.service-hero::before { position: absolute; inset: 0; width: 100%; height: 100%; }
.service-hero > img { z-index: -2; object-fit: cover; object-position: center; }
.service-hero::before { content: ""; z-index: -1; background: linear-gradient(90deg, #0f1822, rgb(15 24 34 / 50%)); }
.service-hero__inner { display: flex; flex-direction: column; justify-content: space-between; gap: 48px; min-height: 360px; padding-block: 24px 50px; }
.service-hero__copy { display: grid; gap: 24px; max-width: 590px; }
.service-actions { display: flex; flex-wrap: wrap; gap: 12px 20px; }

.service-section { display: grid; gap: 24px; }
.service-section__title { color: var(--color-brand); }
.service-section__text { display: grid; gap: 24px; max-width: 900px; }
.service-section--split .service-section__content { display: grid; grid-template-columns: minmax(0, 900px) minmax(0, 360px); gap: clamp(24px, 5vw, 80px); }
.service-section__image img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius-lg); }
.service-section--split .service-richtext > p { padding: 24px; border-radius: var(--radius-sm); background: var(--color-surface-brand); }
.service-richtext > * + * { margin-block-start: 1.25rem; }
.service-richtext :is(ul, ol) { padding-inline-start: 1.5rem; }
.service-richtext li + li { margin-block-start: 1rem; }
.service-note { display: grid; gap: 16px; padding: 24px; border-radius: var(--radius-sm); background: var(--color-surface-brand); }
.service-note h3, .service-card h3 { font-size: 1.25rem; }

.service-cards { display: grid; align-items: start; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.service-cards--types { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; align-items: stretch; }
.service-card { display: flex; flex-direction: column; gap: 16px; padding: 24px; border-radius: var(--radius-sm); background: var(--color-surface-brand); }
.service-card__image img { width: 100%; aspect-ratio: 3; object-fit: cover; border-radius: var(--radius-sm); }
.service-card .service-actions { margin-top: auto; }
.service-gallery { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.service-gallery a { display: block; overflow: hidden; border-radius: var(--radius-lg); cursor: zoom-in; }
.service-gallery img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.service-page .faq-section { padding-block: 0; }
.service-page .faq-section__eyebrow { margin-bottom: 12px; color: var(--color-brand); font-size: 1.125rem; font-weight: 500; }
.service-page .faq-section__image { overflow: hidden; }
.service-page .faq-section__image img { width: 100%; height: 100%; object-fit: cover; }

@media (max-width: 768px) {
    .service-page > section + section { margin-block-start: 40px; }
    .service-hero__inner { min-height: 342px; padding-block: 24px 40px; }
    .service-hero .page-title { font-size: 1.875rem; }
    .service-hero__copy { width: 100%; }
    .service-actions { display: grid; grid-template-columns: minmax(0, 1fr); }
    .service-page--solar .service-hero > img,
    .service-page--storage .service-hero > img { object-position: 70% center; }
    .service-page--electrical .service-hero > img { object-position: right center; }
    .service-section--split .service-section__content,
    .service-cards, .service-cards--types { grid-template-columns: minmax(0, 1fr); gap: 16px; }
    .service-section--split .service-section__image { order: -1; }
    .service-card, .service-note { padding: 16px; }
    .service-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
}
