﻿/* ==========================================================
   PorchLight Home Page
   Mobile First
   ========================================================== */


/* ==========================================================
   Hero
   ========================================================== */

.home-hero {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    overflow: hidden;
    background: var(--pl-navy);
    color: var(--pl-white);
}


.home-hero__image {
    order: 1;
    width: 100%;
    min-height: 360px;
    background-color: var(--pl-navy);
    background-image: url('/images/banner/home-hero_mobile.jpg');
    background-position: center top;
    background-repeat: no-repeat;
    background-size: cover;
}


.home-hero__content {
    position: relative;
    z-index: 2;
    order: 2;
    display: flex;
    align-items: center;
    width: 100%;
    padding: 3.5rem calc(var(--grid-gutter) / 2);
    background: var(--pl-navy);
}


.home-hero__content-inner {
    width: 100%;
    max-width: 760px;
}


.home-hero__eyebrow {
    margin: 0 0 0.75rem;
    color: var(--pl-gold);
    font-family: var(--font-family-body);
    font-size: 0.875rem;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}


.home-hero h1 {
    margin: 0 0 1rem;
    color: var(--pl-white);
    font-family: var(--font-family-heading);
    font-size: 2.375rem;
    font-style: normal;
    font-weight: 600;
    line-height: 1;
}


.home-hero__subheading {
    margin: 0 0 1rem;
    color: var(--pl-white);
    font-family: var(--font-family-heading);
    font-size: 2rem;
    font-weight: 600;
    line-height: 1;
}


.home-hero__intro {
    max-width: 700px;
    margin: 0 0 1.75rem;
    color: var(--pl-white);
    font-size: 1rem;
    line-height: 1.45;
}


.home-hero__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
}


.home-hero__primary {
    flex-shrink: 0;
}


.home-hero__secondary {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    color: var(--pl-white);
    font-family: var(--font-family-body);
    font-size: 0.875rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-decoration: none;
    text-transform: uppercase;
}


    .home-hero__secondary::after {
        content: "";
        position: absolute;
        left: 0;
        right: 0;
        bottom: 2px;
        height: 1px;
        background: var(--pl-gold);
        transition: bottom 180ms ease, height 180ms ease;
    }


    .home-hero__secondary:hover {
        color: var(--pl-white);
        text-decoration: none;
    }


        .home-hero__secondary:hover::after {
            bottom: 6px;
            height: 3px;
        }


/* ==========================================================
   Section Headings
   ========================================================== */

.home-costs h2,
.home-network h2,
.home-services > .container > h2,
.home-faq__heading,
.home-cta h2 {
    font-family: var(--font-family-heading);
    font-size: 2rem;
    font-weight: 600;
    line-height: 1;
}


/* ==========================================================
   Renting Without a Navigator
   ========================================================== */

.home-costs {
    padding: 3.5rem 0;
    background: var(--pl-white);
}


    .home-costs h2 {
        margin: 0 0 1.75rem;
        color: var(--pl-navy);
    }


    /* ==========================================================
   Cost Slider
   ========================================================== */

    .home-costs .pl-slider__card {
        height: 100%;
        padding-top: 2rem;
        padding-bottom: 2rem;
        background: var(--pl-blue);
        color: var(--pl-white);
    }


    .home-costs .pl-slider__title,
    .home-costs .pl-slider__text {
        color: var(--pl-white);
    }


    .home-costs .pl-slider__icon {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        height: auto;
        margin: 0;
        padding: 0.5rem 0 1.5rem;
    }


        .home-costs .pl-slider__icon img {
            display: block;
            width: auto;
            height: 46px;
            max-width: 100%;
            max-height: none;
            filter: brightness(0) invert(1);
        }


/* ==========================================================
   Network / Review
   ========================================================== */

.home-network {
    position: relative;
    padding: 3.5rem 0;
    overflow: hidden;
    background: var(--pl-navy);
    color: var(--pl-white);
}

    .home-network blockquote {
        background: transparent;
    }

.home-network__quote {
    max-width: 1450px;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--pl-white);
}


.home-network__quote-mark {
    height: 2rem;
    margin-bottom: 0.25rem;
    color: var(--pl-gold);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 4rem;
    font-weight: 700;
    line-height: 1;
}


.home-network__quote p {
    max-width: 1400px;
    margin: 0 0 1rem;
    color: var(--pl-white);
    font-family: var(--font-family-heading);
    font-size: 1.75rem;
    font-weight: 600;
    line-height: 1.05;
}


.home-network__quote footer {
    margin-bottom: 0.5rem;
}


.home-network__quote cite {
    color: var(--pl-white);
    font-size: 0.875rem;
    font-style: normal;
    font-weight: 700;
}


.home-network__rating {
    margin: 0 0 3rem;
    color: var(--pl-white);
    font-size: 0.875rem;
    line-height: 1.4;
}


.home-network__heading-row {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 2rem;
}


    .home-network__heading-row h2 {
        margin: 0;
        color: var(--pl-white);
    }


.home-network__button {
    align-self: flex-start;
}


.home-network__stats {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}


.home-network__stat {
    display: flex;
    align-items: baseline;
    gap: 0.75rem;
}


    .home-network__stat strong {
        color: var(--pl-white);
        font-family: var(--font-family-heading);
        font-size: 3.5rem;
        font-weight: 600;
        line-height: 1;
    }


    .home-network__stat span {
        color: var(--pl-white);
        font-size: 0.75rem;
        font-weight: 700;
        letter-spacing: 0.04em;
        text-transform: uppercase;
    }


/* ==========================================================
   Services
   ========================================================== */

.home-services {
    padding: 3.5rem 0;
    background: var(--pl-cream);
}


    .home-services > .container > h2 {
        margin: 0 0 1.75rem;
        color: var(--pl-navy);
    }


.home-services__featured {
    overflow: hidden;
    margin-bottom: 2.5rem;
    border-radius: 20px;
    background: var(--pl-blue);
}


.home-services__featured-image {
    min-height: 240px;
    background-color: var(--pl-blue);
    padding: 20px;
}


.home-services__featured-content {
    padding: 1.75rem;
    color: var(--pl-white);
}


.home-services__eyebrow {
    margin-bottom: 0.25rem;
    color: var(--pl-gold);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}


.home-services__featured h3 {
    margin: 0 0 0.75rem;
    color: var(--pl-white);
    font-family: var(--font-family-heading);
    font-size: 2rem;
    font-weight: 600;
    line-height: 1;
}


.home-services__featured p {
    margin: 0 0 1.25rem;
    color: var(--pl-white);
}


.home-services__more-heading {
    margin: 0 0 1.25rem;
    color: var(--pl-navy);
    font-family: var(--font-family-heading);
    font-size: 1.75rem;
    font-weight: 600;
    line-height: 1;
}


.home-service-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    border-radius: 16px;
    background: var(--pl-blue);
    color: var(--pl-white);
}


.home-service-card__image {
    min-height: 180px;
}


.home-service-card__content {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 1.25rem;
}


.home-service-card h3 {
    margin: 0.5rem 0 0.75rem;
    color: var(--pl-white);
    font-family: var(--font-family-heading);
    font-size: 1.625rem;
    font-weight: 600;
    line-height: 1;
}


.home-service-card p {
    flex: 1;
    margin: 0 0 1.25rem;
    color: var(--pl-white);
}


.home-service-card a {
    color: var(--pl-white);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-decoration: underline;
    text-underline-offset: 0.2rem;
    text-transform: uppercase;
}


    .home-service-card a:hover {
        color: var(--pl-white);
    }


/* ==========================================================
   FAQ
   ========================================================== */

.home-faq {
    padding: 3.5rem 0 4.5rem;
    background: var(--pl-white);
}


.home-faq__heading {
    margin: 0 0 1.5rem;
    color: var(--pl-navy);
}


/* ==========================================================
   Bottom CTA
   ========================================================== */

.home-cta {
    padding: 3rem 0;
    background: var(--pl-navy);
    color: var(--pl-white);
}


.home-cta__inner {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}


.home-cta__content {
    width: 100%;
}


.home-cta h2 {
    margin: 0 0 0.5rem;
    color: var(--pl-white);
}


.home-cta p {
    margin: 0;
    color: var(--pl-white);
}


.home-cta__button {
    align-self: flex-start;
}


/* ==========================================================
   Tablet
   ========================================================== */

@media (min-width: 768px) {

    .home-costs .pl-slider__track,
    .home-services__slider .pl-slider__track {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: var(--slider-gap);
        width: 100%;
        transform: none !important;
    }


    .home-costs .pl-slider__card,
    .home-services__slider .pl-slider__card,
    .home-services__slider .home-service-card {
        width: auto;
        min-width: 0;
        max-width: none;
        flex: none;
    }


    .home-costs .pl-slider__controls,
    .home-services__slider .pl-slider__controls {
        display: none;
    }


    .home-network__stats {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}


/* ==========================================================
   Desktop
   ========================================================== */

@media (min-width: 1165px) {



    /* ------------------------------------------------------
   Desktop Hero
   ------------------------------------------------------ */

    .home-hero {
        display: block;
        min-height: 690px;
    }


    .home-hero__image {
        position: absolute;
        z-index: 1;
        top: 0;
        right: 0;
        bottom: 0;
        left: 0;
        width: auto;
        min-height: 100%;
        background-image: url('/images/banner/home-hero-banner.png');
        background-position: right center;
        background-repeat: no-repeat;
        background-size: auto 100%;
    }



    .home-hero__content {
        position: relative;
        z-index: 2;
        display: flex;
        align-items: center;
        width: 62%;
        min-height: 690px;
        padding-top: 5rem;
        padding-right: 5rem;
        padding-bottom: 5rem;
        padding-left: max( calc((100vw - var(--pl-content-width)) / 2), calc(var(--grid-gutter) / 2) );
        background: linear-gradient( to right, var(--pl-navy) 0%, var(--pl-navy) 84%, rgba(18, 50, 58, 0.95) 88%, rgba(18, 50, 58, 0.7) 92%, rgba(18, 50, 58, 0.35) 96%, rgba(18, 50, 58, 0) 100% );
    }


    .home-hero__content-inner {
        width: 100%;
        max-width: 900px;
    }


    .home-hero__eyebrow {
        font-size: 0.875rem;
    }


    .home-hero h1 {
        font-size: 4.625rem;
        line-height: 0.98;
    }


    .home-hero__subheading {
        font-size: 2rem;
    }


    .home-hero__intro {
        max-width: 820px;
        font-size: 1.125rem;
    }

    /* ------------------------------------------------------
       Shared section headings
       ------------------------------------------------------ */

    .home-costs h2,
    .home-network h2,
    .home-services > .container > h2,
    .home-faq__heading,
    .home-cta h2 {
        font-size: 3rem;
    }


    /* ------------------------------------------------------
       Costs
       ------------------------------------------------------ */

    .home-costs {
        padding: 5rem 0;
    }


        .home-costs .pl-slider__track {
            grid-template-columns: repeat(4, minmax(0, 1fr));
        }


        .home-costs .pl-slider__card {
            padding-top: 2.5rem;
            padding-bottom: 2.5rem;
        }


        .home-costs .pl-slider__icon {
            padding-top: 0.75rem;
            padding-bottom: 1.75rem;
            justify-content: flex-start;
        }


            .home-costs .pl-slider__icon img {
                width: auto;
                height: 77px;
            }


    /* ------------------------------------------------------
       Network
       ------------------------------------------------------ */

    .home-network {
        padding: 5rem 0;
    }


    .home-network__quote p {
        font-size: 2.25rem;
    }


    .home-network__heading-row {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 3rem;
    }


    .home-network__button {
        flex: 0 0 auto;
        align-self: center;
    }


    .home-network__stat strong {
        font-size: 4.625rem;
    }


    /* ------------------------------------------------------
       Services
       ------------------------------------------------------ */

    .home-services {
        padding: 5rem 0;
    }


    .home-services__featured {
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        min-height: 320px;
    }


    .home-services__featured-image {
        min-height: 100%;
    }


    .home-services__featured-content {
        display: flex;
        flex-direction: column;
        justify-content: center;
        padding: 3rem;
    }


    .home-services__featured h3 {
        font-size: 2.5rem;
    }


    .home-services__more-heading {
        font-size: 2rem;
    }


    .home-services__slider .pl-slider__track {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }


    /* ------------------------------------------------------
       FAQ
       ------------------------------------------------------ */

    .home-faq {
        padding: 5rem 0 6rem;
    }


    /* ------------------------------------------------------
       CTA
       ------------------------------------------------------ */

    .home-cta {
        padding: 4rem 0;
    }


    .home-cta__inner {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 3rem;
    }


    .home-cta__content {
        flex: 1 1 auto;
        width: auto;
    }


    .home-cta__button {
        flex: 0 0 auto;
        align-self: center;
    }
}


/* ==========================================================
   Reduced Motion
   ========================================================== */

@media (prefers-reduced-motion: reduce) {

    .home-hero__primary,
    .home-hero__secondary {
        transition: none;
    }
}
