/* #151 home-about styles
 * Homepage (front page, body.home) + About (body.page-template-tpl-about).
 * Figma 6106:3 (home) and 6107:121 (about). Everything is scoped to those two body classes
 * or to .ss151-* classes that only these templates output.
 */

/* ---------- shared bits ---------- */
.ss151-faq,
.home .ss151-intro,
.home .ss151-serviceBlock,
.home .ss151-apart,
.page-template-tpl-about .site-inner section {
    font-family: 'PT Sans', sans-serif;
}

.home .ss151-apart .ss-btn,
.page-template-tpl-about .ss151-aboutBanner .ss-btn {
    padding: 18px 28px;
    font-size: 14px;
    line-height: 14px;
    letter-spacing: 0;
}

/* ---------- FAQ accordion (home + about) ---------- */
.ss151-faq {
    background: #ffffff;
    padding-top: 48px;
    padding-bottom: 48px;
}

.ss151-faq .ss151-faq__header {
    margin-bottom: 24px;
}

.ss151-faq .ss151-faq__header h2 {
    margin: 0;
    color: #000000;
    font-size: 30px;
    line-height: 1.2;
    font-weight: 700;
    text-transform: uppercase;
}

.ss151-faq .ssAccordion {
    max-width: 1022px;
    margin: 0 auto;
}

.ss151-faq .ssAccordion-item {
    background: #ffffff;
    border: 1px solid rgba(13, 57, 66, .25);
}

.ss151-faq .ssAccordion-item:not(:last-child) {
    margin-bottom: 16px;
}

.ss151-faq .ssAccordionBtn {
    position: relative;
    display: block;
    width: 100%;
    margin: 0;
    padding: 18px 52px 18px 18px;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    color: #000000;
    font-family: inherit;
    font-size: 18px;
    font-weight: 700;
    line-height: 26px;
    letter-spacing: 0;
    text-align: left;
    text-transform: none;
    white-space: normal;
    cursor: pointer;
}

.ss151-faq .ssAccordionBtn:hover,
.ss151-faq .ssAccordionBtn:focus {
    background: transparent;
    color: #000000;
}

.ss151-faq .ssAccordionBtn:focus-visible {
    outline: 2px solid #cc0f20;
    outline-offset: -2px;
}

/* "+" closed / "–" open (Figma uses an en dash glyph at 26px) */
.ss151-faq .ssAccordionBtn:after,
.ss151-faq .ssAccordionBtn.active:after {
    content: '+';
    position: absolute;
    top: 18px;
    right: 18px;
    width: 18px;
    font-family: inherit;
    font-size: 26px;
    font-weight: 400;
    line-height: 26px;
    color: #000000;
    text-align: center;
    transform: none;
}

.ss151-faq .ssAccordionBtn.active:after {
    content: '\2013';
}

.ss151-faq .ssAccordionBtn.active {
    padding-bottom: 0;
}

.ss151-faq .ssAccordionBody {
    padding: 12px 18px 18px;
    color: rgba(17, 17, 17, .75);
    font-size: 16px;
    line-height: 26px;
}

.ss151-faq .ssAccordionBody.is-collapsed {
    display: none;
}

.ss151-faq .ssAccordionBody p {
    margin: 0 0 12px;
}

.ss151-faq .ssAccordionBody p:last-child {
    margin-bottom: 0;
}

.ss151-faq .ssAccordionBody a,
.home .ss151-intro a,
.page-template-tpl-about .ss151-aboutIntro a,
.page-template-tpl-about .ss151-card a {
    color: #cc0f20;
    text-decoration: underline;
}

.ss151-faq .ssAccordionBody a:hover,
.home .ss151-intro a:hover,
.page-template-tpl-about .ss151-aboutIntro a:hover,
.page-template-tpl-about .ss151-card a:hover {
    color: #950606;
}

@media (min-width: 992px) {
    .ss151-faq {
        padding-top: 64px;
        padding-bottom: 64px;
    }

    .ss151-faq .ss151-faq__header {
        margin-bottom: 40px;
    }

    .ss151-faq .ss151-faq__header h2 {
        font-size: 44px;
        line-height: 53px;
    }

    .ss151-faq .ssAccordionBtn {
        padding: 26px 64px 26px 28px;
        font-size: 20px;
    }

    .ss151-faq .ssAccordionBtn.active {
        padding-bottom: 0;
    }

    .ss151-faq .ssAccordionBtn:after,
    .ss151-faq .ssAccordionBtn.active:after {
        top: 26px;
        right: 28px;
    }

    .ss151-faq .ssAccordionBody {
        padding: 12px 64px 26px 28px;
    }

    .ss151-faq--about {
        padding-top: 96px;
        padding-bottom: 96px;
    }
}

/* ---------- HOME: intro ---------- */
.home .ss151-intro {
    background: linear-gradient(180deg, #faf3e0 0%, #ffffff 100%);
    padding-top: 48px;
    padding-bottom: 48px;
}

.home .ss151-intro:before {
    display: none;
}

.home .ss151-intro > .ss-container {
    max-width: 1130px;
}

.home .ss151-intro p {
    margin: 0 0 24px;
    color: #111111;
    font-size: 16px;
    line-height: 26px;
}

.home .ss151-intro p:last-child {
    margin-bottom: 0;
}

@media (min-width: 992px) {
    .home .ss151-intro {
        padding-top: 80px;
        padding-bottom: 80px;
    }
}

/* ---------- HOME: Residential Electrical Services ---------- */
.home .ss151-serviceBlock .ss-serviceBlock__head {
    max-width: 1150px;
    margin-bottom: 38px;
}

.home .ss151-serviceBlock .ss-serviceBlock__head h2 {
    margin: 0;
    font-size: 26px;
    line-height: 1.2;
    font-weight: 700;
    text-transform: uppercase;
}

.home .ss151-serviceBlock .ss-serviceBlock__head p {
    margin: 0;
    padding: 15px 0 31px;
    font-size: 16px;
    line-height: 26px;
}

.home .ss151-serviceBlock .ss-serviceBlock__head h3 {
    margin: 0;
    font-size: 18px;
    line-height: 29px;
    font-weight: 700;
    text-transform: uppercase;
}

.home .ss151-serviceBlock .ss-serviceCard__title {
    font-weight: 400;
}

@media (min-width: 992px) {
    .home .ss151-serviceBlock .ss-serviceBlock__head h2 {
        font-size: 30px;
        line-height: 36px;
    }

    .home .ss151-serviceBlock .ss-serviceBlock__head h3 {
        font-size: 20px;
    }
}

/* ---------- HOME: What Sets Us Apart ---------- */
.home .ss151-apart .ss-twoCol {
    color: #111111;
}

.home .ss151-apart h2 {
    margin: 0 0 20px;
    color: #000000;
    font-size: 30px;
    line-height: 1.2;
    font-weight: 700;
    text-transform: uppercase;
}

.home .ss151-apart .ss-item-content p {
    margin: 0 0 20px;
    font-size: 16px;
    line-height: 26px;
}

.home .ss151-apart .ss-item-content p:last-of-type {
    margin-bottom: 0;
}

.home .ss151-apart .ss-item-content .ss-btn {
    margin-top: 20px;
}

.home .ss151-apart .ss-item-media img {
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
}

@media (min-width: 992px) {
    .home .ss151-apart .ss-twoCol {
        flex-wrap: nowrap;
        column-gap: 48px;
    }

    .home .ss151-apart .ss-item-media {
        width: 44%;
    }

    .home .ss151-apart .ss-item-content {
        flex: 1 1 auto;
        width: auto;
        padding: 0;
    }
}

@media (min-width: 1310px) {
    .home .ss151-apart {
        max-width: 1210px;
    }

    .home .ss151-apart .ss-twoCol {
        column-gap: 64px;
    }

    .home .ss151-apart .ss-item-media {
        flex: 0 0 520px;
        width: 520px;
    }

    .home .ss151-apart .ss-item-content {
        padding-right: 0;
    }

    .home .ss151-apart h2 {
        font-size: 44px;
        line-height: 53px;
    }
}

/* ---------- ABOUT ---------- */
.page-template-tpl-about .site-inner {
    padding: 0;
    margin: 0;
    max-width: none;
    background: #ffffff;
}

.page-template-tpl-about .site-inner h2 {
    margin: 0 0 20px;
    color: #000000;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 30px;
    line-height: 1.2;
}

.page-template-tpl-about .ss151-aboutIntro p,
.page-template-tpl-about .ss151-card p,
.page-template-tpl-about .ss151-aboutLicensed p,
.page-template-tpl-about .ss151-aboutReviews p {
    margin: 0 0 20px;
    font-size: 16px;
    line-height: 26px;
}

.page-template-tpl-about .ss151-aboutIntro p:last-child,
.page-template-tpl-about .ss151-card p:last-child,
.page-template-tpl-about .ss151-aboutLicensed p:last-child,
.page-template-tpl-about .ss151-aboutReviews p:last-child {
    margin-bottom: 0;
}

/* banner */
.ss151-aboutBanner {
    position: relative;
    z-index: 0;
    display: flex;
    align-items: center;
    min-height: 320px;
    padding: 56px 0;
    background-color: #2b2b2b;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    color: #ffffff;
}

.ss151-aboutBanner:before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background: rgba(0, 0, 0, .55);
}

.ss151-aboutBanner h1 {
    max-width: 1180px;
    margin: 0 auto;
    color: #ffffff;
    font-size: 34px;
    line-height: 1.2;
    font-weight: 700;
    text-transform: none;
}

.ss151-aboutBanner .ss-btn {
    margin-top: 24px;
}

/* two-column split (intro + reviews) */
.ss151-split {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.ss151-split__media {
    margin: 0;
}

.ss151-split__media img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
}

.ss151-aboutIntro,
.ss151-aboutCards,
.ss151-aboutLicensed,
.ss151-aboutReviews {
    padding: 56px 0;
}

.ss151-aboutIntro {
    background: #ffffff;
    color: #111111;
}

/* cards */
.ss151-aboutCards {
    background: linear-gradient(180deg, #faf3e0 0%, #ffffff 100%);
}

.ss151-cards {
    display: grid;
    gap: 24px;
}

.ss151-card {
    padding: 28px 24px;
    background: #ffffff;
    border: 2px solid #faf3e0;
    color: #111111;
}

.ss151-card:before {
    content: '';
    display: block;
    width: 56px;
    height: 4px;
    margin-bottom: 18px;
    background: #cc0f20;
}

.page-template-tpl-about .ss151-card h2 {
    margin-bottom: 18px;
    font-size: 26px;
    line-height: 1.2;
}

.page-template-tpl-about .ss151-card p {
    margin-bottom: 18px;
}

/* licensing */
.ss151-aboutLicensed {
    background: #ffffff;
    color: #111111;
}

.ss151-aboutLicensed .ss-container {
    max-width: 930px;
}

.page-template-tpl-about .ss151-aboutLicensed h2 {
    margin-bottom: 24px;
}

/* reviews */
.ss151-aboutReviews {
    position: relative;
    z-index: 0;
    background-color: #2b2b2b;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    color: #ffffff;
}

.ss151-aboutReviews:before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background: rgba(43, 43, 43, .9);
}

.page-template-tpl-about .ss151-aboutReviews h2 {
    color: #ffffff;
}

.ss151-aboutReviews a {
    color: #ffffff;
    text-decoration: underline;
}

.ss151-aboutReviews a:hover {
    color: #dfb748;
}

.ss151-aboutReviews .ss151-split__media {
    border: 15px solid rgba(0, 0, 0, .3);
}

@media (min-width: 768px) {
    .ss151-cards {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 992px) {
    .ss151-aboutBanner {
        min-height: 420px;
        padding: 80px 0;
    }

    .ss151-aboutBanner h1 {
        font-size: 48px;
    }

    .ss151-aboutIntro,
    .ss151-aboutCards,
    .ss151-aboutLicensed,
    .ss151-aboutReviews {
        padding: 80px 0;
    }

    .ss151-split {
        flex-direction: row;
        align-items: center;
        gap: 48px;
    }

    .ss151-split__copy {
        flex: 1 1 auto;
        min-width: 0;
    }

    .ss151-aboutIntro .ss151-split__media {
        flex: 0 0 42%;
    }

    .ss151-aboutIntro .ss151-split__media img {
        aspect-ratio: 500 / 460;
    }

    .ss151-aboutReviews .ss151-split__media {
        flex: 0 0 45%;
        border-width: 30px;
        margin: -30px 0;
    }

    .ss151-aboutReviews .ss151-split__media img {
        aspect-ratio: 4 / 3;
    }

    .ss151-cards {
        gap: 32px;
    }

    .ss151-card {
        padding: 40px;
    }

    /* Generic About H2 first; the card and FAQ headings below override it (Figma: cards 32px, FAQ 44px). */
    .page-template-tpl-about .site-inner h2 {
        font-size: 36px;
    }

    .page-template-tpl-about .ss151-card h2 {
        font-size: 32px;
        line-height: 38px;
    }

    .page-template-tpl-about .ss151-faq .ss151-faq__header h2 {
        font-size: 44px;
        line-height: 53px;
    }
}

@media (min-width: 1310px) {
    .page-template-tpl-about .site-inner .ss-container {
        max-width: 1210px;
    }

    .page-template-tpl-about .ss151-aboutLicensed .ss-container {
        max-width: 930px;
    }

    .ss151-aboutBanner {
        min-height: 514px;
    }

    .ss151-aboutBanner h1 {
        font-size: 60px;
        line-height: 72px;
    }

    .ss151-aboutIntro,
    .ss151-aboutCards,
    .ss151-aboutLicensed,
    .ss151-aboutReviews {
        padding: 96px 0;
    }

    .ss151-split {
        gap: 64px;
    }

    .ss151-aboutIntro .ss151-split__media {
        flex: 0 0 500px;
    }

    .ss151-aboutReviews .ss151-split__media {
        flex: 0 0 560px;
    }

    .page-template-tpl-about .ss151-aboutIntro h2,
    .page-template-tpl-about .ss151-aboutLicensed h2 {
        font-size: 44px;
        line-height: 53px;
    }

    .page-template-tpl-about .ss151-aboutReviews h2 {
        font-size: 36px;
        line-height: 43px;
    }
}

/* Homepage testimonials: Figma has no extra spacing of its own - the 96px above comes from
   "What Sets Us Apart" padding and the 64px below from the FAQ padding. Drop the doubled margin. */
.home .ss-testimonials.ss-space-my {
    margin-top: 0;
    margin-bottom: 0;
}

/* ---------- Homepage: Areas We Serve (Figma 6106:233) ---------- */
.home .ss-area-section {
    padding-top: 60px;
    padding-bottom: 60px;
}

.home .ss-area-section .ss-header-mb {
    margin-bottom: 32px;
}

.home .ss-area-section .ss-area-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    max-width: 1180px;
    margin: 0 auto;
}

.home .ss-area-section .area-chips {
    margin: 0;
    padding: 10px 16px;
    font-size: 14px;
    line-height: 18px;
    font-weight: 700;
}

.home .ss-area-section .area-chips a {
    font-size: inherit;
    line-height: inherit;
}

@media (min-width: 992px) {
    .home .ss-area-section .ss-title h2 {
        font-size: 44px;
        line-height: 53px;
    }
}
