/*-- -------------------------- -->
<---           Hero             -->
<--- -------------------------- -*/

/* Mobile - 360px */
@media only screen and (min-width: 0rem) {
    #hero-998 {
        min-height: 100vh;
        /* 144px - 280px */
        padding: clamp(9rem, 25.95vw, 17.5rem) 1rem;
        /* prevents padding and border from affecting height and width */
        box-sizing: border-box;
        position: relative;
    }

    #hero-998 .cs-container {
        width: 100%;
        max-width: 80rem;
        margin: auto;
    }

    #hero-998 .cs-content {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }

    #hero-998 .cs-topper {
        /* 16px - 31px */
        font-size: clamp(1rem, 4.3vw, 1.9375rem);
        white-space: nowrap;
        line-height: 1.2em;
        width: 100%;
        /* 12px - 24px */
        margin: 0 0 clamp(0.75rem, 3vw, 1.5rem);
        color: var(--bodyTextColorWhite);
        display: inline-flex;
        justify-content: center;
        align-items: center;
        text-align: center;
        position: relative;
        gap: 1rem;
    }

    #hero-998 .cs-topper:before {
        /* left line */
        content: "";
        width: 100%;
        max-width: 6.25rem;
        height: 2px;
        background: var(--primary);
        opacity: 1;
        position: relative;
        display: block;
    }

    #hero-998 .cs-topper:after {
        /* right line */
        content: "";
        width: 100%;
        max-width: 6.25rem;
        height: 2px;
        background: var(--primary);
        opacity: 1;
        position: relative;
        display: block;
    }

    #hero-998 .cs-logo {
        width: 100%;
        max-width: 38.375rem;
        margin: 0 0 1.5rem 0;
        display: block;
    }

    #hero-998 .cs-logo img {
        width: 100%;
        height: auto;
    }

    #hero-998 .cs-text {
        /* 16px - 20px */
        font-size: clamp(1rem, 1vw, 1.25rem);
        line-height: 1.5em;
        text-align: center;
        max-width: 32.375rem;
        /* 24px - 48px */
        margin: 0 0 clamp(1.5rem, 3vw, 3rem) 0;
        color: var(--bodyTextColorWhite);
    }

    #hero-998 .cs-button-solid {
        font-size: 1rem;
        /* 46px - 56px */
        line-height: clamp(2.875em, 5.5vw, 3.5em);
        text-decoration: none;
        font-weight: 700;
        text-align: center;
        margin: auto;
        color: #fff;
        min-width: 9.375rem;
        padding: 0 2rem;
        background-color: var(--primary);
        display: inline-block;
        position: relative;
        z-index: 1;
        /* prevents padding from adding to the width */
        box-sizing: border-box;
        transition: color 0.3s;
    }

    #hero-998 .cs-button-solid:before {
        content: "";
        position: absolute;
        height: 100%;
        width: 0%;
        background: #fff;
        opacity: 1;
        top: 0;
        left: 0;
        z-index: -1;
        transition: width 0.3s;
    }

    #hero-998 .cs-button-solid:hover {
        color: #1a1a1a;
    }

    #hero-998 .cs-button-solid:hover:before {
        width: 100%;
    }

    #hero-998 .cs-background {
        width: 100%;
        height: 100%;
        display: block;
        position: absolute;
        top: 0;
        left: 0;
        z-index: -1;
        /* FORCE BACKGROUND FILL - PLACEHOLDER, PLEASE FIX LATER - Emma */
        background-image: var(--hero-bg, url("../img/cc_hero.jpg"));
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
    }

    #hero-998 .cs-background:before {
        /* background color overlay */
        content: "";
        position: absolute;
        display: block;
        height: 100%;
        width: 100%;
        background: #000;
        opacity: 0.8;
        top: 0;
        left: 0;
        z-index: 1;
    }

    #hero-998 .cs-background img {
        display: none;
    }
}

/* Desktop Parallax - 1400px */
@media only screen and (min-width: 87.5rem) {
    #hero-998 .cs-background {
        background-attachment: fixed;
    }
}

#about-split, #services-tiles, #categories-grid, #install-repair, #cta-bottom {
    padding: clamp(3rem, 6vw, 6rem) 1rem;
}

#about-split .wrap, #install-repair .wrap {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    gap: clamp(1.25rem, 2.5vw, 2rem);
    grid-template-columns: 1fr;
    align-items: center;
}

#about-split .text h2, #services-tiles h3, #categories-grid h3, #install-repair h3, #cta-bottom h3 {
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    line-height: 1.2;
    margin: 0 0 .75rem;
    text-align: left;
}

#about-split .text p, #install-repair .text p, #cta-bottom p {
    font-size: clamp(0.95rem, 1.2vw, 1rem);
    color: #333;
    margin: 0 0 1rem;
}

#about-split .media .img-cover, #install-repair .media .img-cover {
    width: 100%;
    aspect-ratio: 16/10;
    border-radius: 16px;
    background-size: cover;
    background-position: center;
}

#about-split .text .btn-primary, #install-repair .text .btn-outline, #cta-bottom .btn-primary {
    display: inline-block;
    padding: .9rem 1.25rem;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 700;
}

#about-split .text .btn-primary, #cta-bottom .btn-primary {
    background: #111;
    color: #fff;
}

#install-repair .text .btn-outline {
    border: 2px solid #111;
    color: #111;
}

#services-tiles .wrap, #categories-grid .wrap, #cta-bottom .wrap {
    max-width: 1200px;
    margin: 0 auto;
}

#services-tiles h3, #categories-grid h3, #cta-bottom h3 {
    text-align: center;
    margin-bottom: clamp(1rem, 2.5vw, 2rem);
}

#services-tiles .grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: clamp(1rem, 2vw, 1.5rem);
}

#services-tiles .tile {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, .06);
    padding: 1rem;
    display: grid;
    gap: .75rem;
}

#services-tiles .tile .img-cover {
    width: 100%;
    aspect-ratio: 4/3;
    border-radius: 12px;
    background-size: cover;
    background-position: center;
}

#services-tiles .tile h4 {
    margin: .25rem 0 0;
    font-size: 1.125rem;
}

#services-tiles .tile p {
    margin: 0;
    color: #444;
    font-size: .98rem;
}

#categories-grid .grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(.75rem, 2vw, 1rem);
}

#categories-grid .cat {
    display: grid;
    gap: .5rem;
    text-decoration: none;
    color: inherit;
}

#categories-grid .cat .img-cover {
    width: 100%;
    aspect-ratio: 1/1;
    border-radius: 14px;
    background-size: cover;
    background-position: center;
}

#categories-grid .cat span {
    font-weight: 600;
    text-align: center;
}

#install-repair .wrap {
    grid-template-columns: 1fr;
}

#cta-bottom {
    text-align: center;
    background: #f7f7f8;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

#cta-bottom p {
    max-width: 800px;
    margin: .25rem auto 1rem;
}

@media (min-width: 900px) {
    #about-split .wrap {
        grid-template-columns: 1.1fr .9fr;
    }

    #install-repair .wrap {
        grid-template-columns: .9fr 1.1fr;
    }

    #services-tiles .grid {
        grid-template-columns: repeat(3, 1fr);
    }

    #categories-grid .grid {
        grid-template-columns: repeat(6, 1fr);
    }
}

:root, body {
    font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display",
    "Segoe UI", Roboto, "Noto Sans", "Helvetica Neue", Arial,
    "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei",
    "Noto Sans CJK SC", "Source Han Sans SC", "Apple Color Emoji", "Segoe UI Emoji";
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

#hero-998 .cs-topper {
    letter-spacing: .02em;
}

#hero-998 .cs-content .cs-text {
    line-height: 1.7;
}


#about-split h2,
#services-tiles h3,
#services-tiles h4,
#categories-grid h3,
#install-repair h3,
#cta-bottom h3 {
    font-weight: 800;
}


#categories-grid .cat span {
    font-weight: 700;
}


#hero-998 .cs-content .cs-text,
#about-split .text p,
#services-tiles .tile p,
#install-repair .text p,
#cta-bottom p {
    font-size: clamp(1.05rem, 1.2vw, 1.15rem);
    line-height: 1.8;
}


#about-split h2,
#services-tiles h3,
#categories-grid h3,
#install-repair h3,
#cta-bottom h3 {
    letter-spacing: .01em;
    margin-bottom: .75rem;
}


#categories-grid .marquee {
    position: relative;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
    mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
    padding-block: .25rem;
}


#categories-grid .track {
    display: flex;
    gap: clamp(.75rem, 2vw, 1rem);
    will-change: transform;
    animation: categories-marquee var(--marquee-duration, 40s) linear infinite;
}

#categories-grid .marquee:hover .track {
    animation-play-state: paused;
}

#categories-grid .cat {
    flex: 0 0 auto;
    width: clamp(160px, 20vw, 220px);
    text-decoration: none;
    color: inherit;
    display: grid;
    gap: .5rem;
}

#categories-grid .cat .img-cover {
    width: 100%;
    aspect-ratio: 1/1;
    border-radius: 14px;
    background-size: cover;
    background-position: center;
}

#categories-grid .cat span {
    display: block;
    text-align: center;
    font-weight: 700;
    font-size: .95rem;
}

@keyframes categories-marquee {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-50%);
    }
}


@media (prefers-reduced-motion: reduce) {
    #categories-grid .track {
        animation: none;
    }
}

#services-tiles h3 {
    font-size: clamp(1.75rem, 3.2vw, 2.25rem);
    font-weight: 800;
    letter-spacing: .01em;
    margin-bottom: clamp(.75rem, 1.5vw, 1rem);
}

#services-tiles .tile h4 {
    font-size: clamp(1.15rem, 1.9vw, 1.4rem);
    font-weight: 800;
    letter-spacing: .04em;
    margin: .35rem 0 .25rem;
}

#services-tiles .tile p {
    font-size: clamp(1.05rem, 1.3vw, 1.15rem);
    line-height: 1.8;
}

#services-tiles .tile {
    transition: transform .28s cubic-bezier(.2, .7, .2, 1), box-shadow .28s ease;
    transform: translateZ(0);
}

#services-tiles .tile:hover {
    transform: translateY(-6px);
    box-shadow: 0 14px 30px rgba(0, 0, 0, .12), 0 6px 12px rgba(0, 0, 0, .08);
}

#services-tiles .tile .img-cover {
    transition: transform .45s cubic-bezier(.2, .7, .2, 1);
}

#services-tiles .tile:hover .img-cover {
    transform: scale(1.04);
}

#categories-grid .cat {
    transition: transform .28s cubic-bezier(.2, .7, .2, 1), box-shadow .28s ease;
    transform: translateZ(0);
}

#categories-grid .cat:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 26px rgba(0, 0, 0, .10), 0 5px 10px rgba(0, 0, 0, .07);
}

#categories-grid .cat .img-cover {
    transition: transform .45s cubic-bezier(.2, .7, .2, 1);
}

#categories-grid .cat:hover .img-cover {
    transform: scale(1.06);
}

#services-tiles .tile:focus-within,
#categories-grid .cat:focus-within {
    outline: none;
    transform: translateY(-6px);
    box-shadow: 0 14px 30px rgba(0, 0, 0, .12), 0 6px 12px rgba(0, 0, 0, .08);
}

#services-tiles .tile:active,
#categories-grid .cat:active {
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(0, 0, 0, .10), 0 3px 8px rgba(0, 0, 0, .06);
}

@media (prefers-reduced-motion: reduce) {
    #services-tiles .tile,
    #services-tiles .tile .img-cover,
    #categories-grid .cat,
    #categories-grid .cat .img-cover {
        transition: none;
    }
}

#services-tiles .tile {
    transition: transform .28s cubic-bezier(.2, .7, .2, 1), box-shadow .28s ease;
    transform: translateZ(0);
}

#services-tiles .tile:hover {
    transform: translateY(-6px);
    box-shadow: 0 14px 30px rgba(0, 0, 0, .12), 0 6px 12px rgba(0, 0, 0, .08);
}

#services-tiles .tile .img-cover {
    transition: transform .45s cubic-bezier(.2, .7, .2, 1);
}

#services-tiles .tile:hover .img-cover {
    transform: scale(1.04);
}

#categories-grid .cat {
    position: relative;
    display: grid;
    gap: .6rem;
    border-radius: 16px;
    background: #fff;
    padding: .5rem;
    transition: transform .28s cubic-bezier(.2, .7, .2, 1), box-shadow .28s ease, background-color .28s ease;
    transform: translateZ(0);
}

#categories-grid .cat .img-cover {
    border-radius: 12px;
    transition: transform .45s cubic-bezier(.2, .7, .2, 1);
}

#categories-grid .cat:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 26px rgba(0, 0, 0, .10), 0 5px 10px rgba(0, 0, 0, .07);
    background: #fafafa;
}

#categories-grid .cat:hover .img-cover {
    transform: scale(1.06);
}

.btn-primary,
.btn-outline {
    transition: transform .24s cubic-bezier(.2, .7, .2, 1), box-shadow .24s ease, background-color .24s ease, color .24s ease, border-color .24s ease, filter .24s ease;
    will-change: transform;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, .12), 0 4px 10px rgba(0, 0, 0, .07);
    filter: brightness(.95);
}

.btn-outline:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, .12), 0 4px 10px rgba(0, 0, 0, .07);
    background: #111;
    color: #fff;
    border-color: #111;
}

.btn-primary:active,
.btn-outline:active {
    transform: translateY(-1px);
    box-shadow: 0 6px 14px rgba(0, 0, 0, .10), 0 3px 8px rgba(0, 0, 0, .06);
}

@media (prefers-reduced-motion: reduce) {
    #services-tiles .tile,
    #services-tiles .tile .img-cover,
    #categories-grid .cat,
    #categories-grid .cat .img-cover,
    .btn-primary,
    .btn-outline {
        transition: none;
    }
}

#install-repair .btn-outline {
    background: transparent;
    color: #111;
    border: 2px solid #111;
}

#install-repair .btn-outline:hover {
    background: transparent;
    color: #111;
    border-color: #111;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, .12), 0 4px 10px rgba(0, 0, 0, .07);
}

#install-repair .btn-outline:active {
    background: transparent;
    color: #111;
    border-color: #111;
    transform: translateY(-1px);
    box-shadow: 0 6px 14px rgba(0, 0, 0, .10), 0 3px 8px rgba(0, 0, 0, .06);
}

#hero-998 .cs-text p,
#hero-998 .cs-text li {
    font-weight: 700;
    font-size: clamp(1.125rem, 2.2vw, 1.75rem);
    line-height: 1.7;

    color: #fff;

    background: linear-gradient(
        0deg,
        rgba(255, 140, 0, 0.30) 0%,
        rgba(255, 140, 0, 0.30) 60%,
        transparent 60%
    );
    border-radius: .2em;
    padding: 0 .15em;
    -webkit-box-decoration-break: clone;
    box-decoration-break: clone;

    text-shadow: 0 1px 2px rgba(0,0,0,0.35);
}

#hero-998 .cs-text a {
    color: #fff;
    text-decoration-color: rgba(255,255,255,0.75);
}
#hero-998 .cs-text a:hover {
    text-decoration-color: #fff;
}

#hero-998 .cs-logo { max-width: 30rem; }

#hero-998 .cs-topper{
    font-size: clamp(1.25rem, 5vw, 2.75rem);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: .04em;
}

#hero-998 .cs-topper:before,
#hero-998 .cs-topper:after{
    height: 3px;
    max-width: 8rem;
}

#hero-998 .cs-text p,
#hero-998 .cs-text li {
    font-weight: 400;
}

#hero-998 .cs-text a {
    font-weight: 400;
}

