/*
 * Roofing one-page template
 * Bootstrap 4.6 compatible
 */

:root {
    --roof-black: #0b0b0d;
    --roof-dark: #131316;
    --roof-grey: #9b9ba1;
    --roof-white: #ffffff;
    --roof-red: #dc1f31;
    --roof-red-dark: #aa1421;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--roof-black);
    color: var(--roof-white);
    font-family: "Inter", Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
}

body.menu-open {
    overflow: hidden;
}

a {
    transition:
        color .2s ease,
        background-color .2s ease,
        border-color .2s ease,
        opacity .2s ease,
        transform .2s ease;
}

.site-header {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    z-index: 50;

    border-bottom: 1px solid rgba(255, 255, 255, .08);

    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, .72),
        rgba(0, 0, 0, .12)
    );

    transition:
        background .25s ease,
        box-shadow .25s ease,
        border-color .25s ease;
}

.site-header--scrolled {
    background: rgba(5, 5, 6, .96);
    border-bottom-color: rgba(255, 255, 255, .1);
    box-shadow:
        0 8px 30px rgba(0, 0, 0, .25);
}

.site-header__inner {
    position: relative;
    display: flex;
    min-height: 92px;
    align-items: center;
    justify-content: space-between;
    padding-right: 28px;
    padding-left: 28px;
}

.hero--short {
    min-height: 500px;
}

.hero--short .hero__container {
    padding-top: 180px;
    padding-bottom: 80px;
}

.hero--short h1 {
    font-size: clamp(48px, 6vw, 80px);
}

.roofing-trust-bar {
    background: var(--roof-red);
    color: #fff;
}

.roofing-trust-bar__inner {
    display: flex;
    min-height: 72px;
    align-items: center;
    justify-content: center;
    gap: 22px;

    font-size: 15px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.roofing-trust-bar a {
    color: #fff;
    text-decoration: none;
}

.roofing-trust-bar a:hover,
.roofing-trust-bar a:focus {
    color: #fff;
    text-decoration: underline;
}

.roofing-trust-bar a i {
    margin-right: 7px;
}

.roofing-trust-bar__dot {
    opacity: .55;
}

.service-sidebar__image {
    margin-top: 30px;
}

@media (max-width: 767.98px) {
    .roofing-trust-bar__inner {
        min-height: auto;
        padding: 16px 0;
        gap: 8px 14px;
        flex-wrap: wrap;

        font-size: 13px;
        text-align: center;
    }
}

.site-logo {
    display: inline-flex;
    align-items: center;
    color: #fff;
    text-decoration: none !important;
}

.site-logo:hover {
    color: #fff;
}

.site-logo img {
    display: block;
    width: auto;
    max-width: 180px;
    max-height: 62px;
}

@media (max-width: 991.98px) {
    .site-logo img {
        max-width: 145px;
        max-height: 52px;
    }
}

.site-logo__mark {
    display: flex;
    width: 42px;
    height: 42px;
    margin-right: 11px;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(255,255,255,.8);
    border-radius: 50%;
    font-size: 16px;
}

.site-logo__text {
    display: flex;
    flex-direction: column;
    line-height: 1;
}

.site-logo__text strong {
    font-family: "Archivo Black", sans-serif;
    font-size: 14px;
    letter-spacing: .04em;
}

.site-logo__text small {
    margin-top: 6px;
    color: rgba(255,255,255,.68);
    font-size: 7px;
    letter-spacing: .2em;
}

.desktop-nav {
    position: absolute;
    left: 50%;
    align-items: center;
    transform: translateX(-50%);
}

.desktop-nav a {
    position: relative;
    margin: 0 17px;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .08em;
    text-decoration: none;
    text-transform: uppercase;
}

.desktop-nav a::after {
    position: absolute;
    right: 0;
    bottom: -8px;
    left: 0;
    width: 0;
    height: 2px;
    margin: auto;
    background: var(--roof-red);
    content: "";
    transition: width .2s ease;
}

.desktop-nav a:hover::after {
    width: 100%;
}

.header-icon {
    display: inline-flex;
    width: 46px;
    height: 46px;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: #fff;
    font-size: 18px;
    text-decoration: none !important;
}

.header-icon:hover {
    background: rgba(255,255,255,.08);
    color: var(--roof-red);
}

.header-menu {
    outline: 0 !important;
    cursor: pointer;
}

.mobile-drawer {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 100;
    width: 320px;
    max-width: 84vw;
    padding: 105px 30px 30px;
    background: #0b0b0d;
    box-shadow: 14px 0 45px rgba(0,0,0,.45);
    transform: translateX(-105%);
    transition: transform .28s ease;
}

.mobile-drawer.is-open {
    transform: translateX(0);
}

.mobile-drawer__nav a {
    display: block;
    padding: 18px 0;
    border-bottom: 1px solid rgba(255,255,255,.1);
    color: #fff;
    font-family: "Archivo Black", sans-serif;
    font-size: 20px;
    text-decoration: none;
    text-transform: uppercase;
}

.mobile-drawer__nav a:hover {
    color: var(--roof-red);
}


/* Hero */

.hero {
    position: relative;
    min-height: 760px;
    overflow: hidden;

    background:
        linear-gradient(
            90deg,
            #08080a 0%,
            rgba(8, 8, 10, .83) 34%,
            rgba(8, 8, 10, .28) 72%
        ),
        var(--hero-image) center center / cover no-repeat;
}

.hero::before {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background:
        radial-gradient(circle at 75% 44%, transparent 0, rgba(0,0,0,.18) 38%, rgba(0,0,0,.55) 100%);
    content: "";
}

.hero__overlay {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 34%;
    background: linear-gradient(to top, #0b0b0d, transparent);
}

.hero__container {
    position: relative;
    z-index: 2;
    padding-top: 180px;
    padding-bottom: 90px;
}

.hero__eyebrow,
.section-kicker,
.section-heading span {
    display: inline-block;
    margin-bottom: 15px;
    color: var(--roof-red);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .18em;
    text-transform: uppercase;
}

.hero h1 {
    margin: 0;
    font-family: "Archivo Black", sans-serif;
    font-size: clamp(54px, 7.3vw, 104px);
    line-height: .88;
    letter-spacing: -.045em;
    text-transform: uppercase;
}

.hero__rule {
    width: 100%;
    max-width: 430px;
    height: 4px;
    margin: 31px 0 26px;
    background:
        linear-gradient(
            90deg,
            var(--roof-red) 0,
            var(--roof-red) 27%,
            rgba(255,255,255,.94) 27%,
            rgba(255,255,255,.94) 100%
        );
}

.guarantees {
    display: flex;
    max-width: 800px;
    align-items: stretch;
}

.guarantee {
    display: flex;
    flex: 1 1 0;
    min-width: 0;
    padding: 7px 24px;
    align-items: center;
    border-left: 1px solid rgba(255,255,255,.17);
}

.guarantee:first-child {
    padding-left: 0;
    border-left: 0;
}

.guarantee__icon {
    flex: 0 0 auto;
    width: 42px;
    margin-right: 13px;
    color: var(--roof-red);
    font-size: 31px;
    text-align: center;
}

.guarantee__copy {
    display: flex;
    flex-direction: column;
    min-width: 0;
    font-size: 13px;
    line-height: 1.35;
}

.guarantee__copy strong {
    color: var(--roof-red);
    font-size: 15px;
    font-weight: 800;
}

.guarantee__copy span {
    color: rgba(255,255,255,.86);
}

.hero__actions {
    display: flex;
    margin-top: 34px;
    align-items: center;
}

.btn {
    border-radius: 2px;
    font-weight: 800;
}

.btn-danger {
    border-color: var(--roof-red);
    background: var(--roof-red);
}

.btn-danger:hover,
.btn-danger:focus {
    border-color: var(--roof-red-dark);
    background: var(--roof-red-dark);
}

.hero__secondary {
    margin-left: 25px;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none !important;
    text-transform: uppercase;
}

.hero__secondary:hover {
    color: var(--roof-red);
}


/* Services */

.services-section {
    padding: 95px 0 0;
    background: #0b0b0d;
}

.services-container {
    max-width: 1680px;
}

.section-heading {
    max-width: 680px;
    margin: 0 auto 45px;
    padding: 0 15px;
}

.section-heading h2,
.intro-section h2,
.contact-strip h2 {
    font-family: "Archivo Black", sans-serif;
    text-transform: uppercase;
}

.section-heading h2 {
    margin-bottom: 15px;
    font-size: 40px;
}

.section-heading p {
    color: #aaaab0;
}

.service-grid {
    background: #09090b;
}

.service-card {
    position: relative;
    display: flex;
    height: 310px;
    overflow: hidden;
    align-items: flex-end;
    background-color: #1b1b1f;
    background-position: center;
    background-size: cover;
    color: #fff;
    text-decoration: none !important;
}

.service-card::before {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background:
        linear-gradient(to top, rgba(0,0,0,.92), rgba(0,0,0,.16) 70%);
    content: "";
    transition: background .25s ease;
}

.service-card::after {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 4px;
    background: var(--roof-red);
    content: "";
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .25s ease;
}

.service-card:hover {
    color: #fff;
}

.service-card:hover::before {
    background:
        linear-gradient(to top, rgba(0,0,0,.96), rgba(220,31,49,.10) 72%);
}

.service-card:hover::after {
    transform: scaleX(1);
}

.service-card__title {
    position: relative;
    z-index: 2;
    padding: 30px;
    font-family: "Archivo Black", sans-serif;
    font-size: 22px;
    line-height: 1.04;
    text-transform: uppercase;
}

.service-card__arrow {
    position: absolute;
    right: 28px;
    bottom: 29px;
    z-index: 2;
    color: var(--roof-red);
}

/* Content + CTA */

.intro-section {
    padding: 95px 0;
    background: #f3f3f4;
    color: #16161a;
}

.intro-section h2 {
    margin-bottom: 0;
    font-size: 43px;
    line-height: 1.02;
}

.intro-section p {
    color: #58585e;
    font-size: 17px;
    line-height: 1.75;
}

.about-roofing {
    padding: 100px 0;
    background: #ffffff;
    color: #16161a;
}

.about-roofing h2 {
    margin-bottom: 30px;
    font-family: "Archivo Black", sans-serif;
    font-size: 43px;
    line-height: 1.05;
    text-transform: uppercase;
}

.about-roofing p {
    color: #58585e;
    font-size: 17px;
    line-height: 1.75;
}

.about-roofing__areas {
    padding: 35px;
    border-left: 4px solid var(--roof-red);
    background: #f3f3f4;
}

.about-roofing__areas span {
    display: block;
    margin-bottom: 20px;
    color: var(--roof-red);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .18em;
    text-transform: uppercase;
}

.about-roofing__areas strong {
    display: block;
    padding: 13px 0;
    border-bottom: 1px solid #d7d7da;
    font-size: 16px;
}

.about-roofing__areas strong:last-child {
    border-bottom: 0;
}

.contact-strip {
    padding: 65px 0;
    background: var(--roof-red);
}

.contact-strip__small {
    display: block;
    margin-bottom: 7px;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .13em;
    text-transform: uppercase;
}

.contact-strip h2 {
    margin: 0;
    font-size: 35px;
}

.contact-strip .btn-light {
    padding: 14px 22px;
    color: #111;
}

.site-footer {
    padding: 28px 0;
    background: #050506;
    color: #77777c;
}

.site-footer__inner {
    display: flex;
    align-items: center;
    justify-content: center;
}

.site-footer__copyright,
.site-footer__credit {
    font-size: 12px;
}

.site-footer__divider {
    display: block;
    width: 1px;
    height: 18px;
    margin: 0 18px;

    background: rgba(255, 255, 255, .14);
}

.site-footer__credit a {
    display: inline-flex;
    align-items: center;

    color: #77777c;
    text-decoration: none;
}

.site-footer__credit a:hover {
    color: #fff;
    text-decoration: none;
}

.site-footer__credit img {
    display: block;
    width: auto;
    max-width: 70px;
    max-height: 22px;
    margin-left: 7px;

    opacity: .65;

    transition: opacity .2s ease;
}

.site-footer__credit a:hover img {
    opacity: 1;
}


/* Tablet and below */

@media (max-width: 991.98px) {
    .site-header__inner {
        min-height: 78px;
        padding-right: 14px;
        padding-left: 14px;
    }

    .site-logo {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
    }

    .site-logo__mark {
        width: 35px;
        height: 35px;
        margin-right: 8px;
        font-size: 13px;
    }

    .site-logo__text strong {
        font-size: 11px;
    }

    .site-logo__text small {
        font-size: 5.5px;
    }

    .header-phone {
        margin-left: auto;
    }

    .hero {
        min-height: 700px;
        background:
            linear-gradient(90deg, rgba(8,8,10,.91), rgba(8,8,10,.58)),
            var(--hero-image) center center / cover no-repeat; 
    }

    .hero__container {
        padding-top: 155px;
        padding-bottom: 65px;
    }

    .hero h1 {
        font-size: 66px;
    }

    /*
     * Desktop = three guarantee items in one horizontal row.
     * Tablet/mobile = each item becomes full-width.
     */
    .guarantees {
        display: block;
        max-width: 560px;
    }

    .guarantee,
    .guarantee:first-child {
        width: 100%;
        padding: 14px 0;
        border-top: 1px solid rgba(255,255,255,.16);
        border-left: 0;
    }

    .guarantee:first-child {
        border-top: 0;
    }

    .service-card {
        height: 270px;
    }
}

#scroll-to-top {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 100;

    display: flex;
    width: 46px;
    height: 46px;
    align-items: center;
    justify-content: center;

    border: 1px solid rgba(255, 255, 255, .15);
    border-radius: 2px;

    background: var(--roof-red);
    color: #fff;

    font-size: 15px;
    text-decoration: none;

    box-shadow: 0 8px 25px rgba(0, 0, 0, .25);

    transition:
        background-color .2s ease,
        transform .2s ease,
        box-shadow .2s ease;
}

#scroll-to-top:hover,
#scroll-to-top:focus {
    background: var(--roof-red-dark);
    color: #fff;
    text-decoration: none;

    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, .35);
}

@media (max-width: 575.98px) {
    #scroll-to-top {
        right: 15px;
        bottom: 15px;

        width: 42px;
        height: 42px;
    }
}

/* Mobile */

@media (max-width: 575.98px) {
    .site-logo__text small {
        display: none;
    }

    .hero {
        min-height: 100vh;
    }

    .hero__container {
        padding-top: 136px;
    }

    .hero__eyebrow {
        margin-bottom: 12px;
        font-size: 10px;
    }

    .hero h1 {
        font-size: 52px;
        line-height: .91;
    }

    .hero__rule {
        margin: 24px 0 17px;
    }

    .guarantee__icon {
        width: 35px;
        font-size: 26px;
    }

    .guarantee__copy {
        font-size: 12px;
    }

    .hero__actions {
        display: block;
        margin-top: 25px;
    }

    .hero__actions .btn {
        display: block;
        width: 100%;
    }

    .hero__secondary {
        display: inline-block;
        margin: 20px 0 0;
    }

    .services-section {
        padding-top: 70px;
    }

    .section-heading h2,
    .intro-section h2 {
        font-size: 32px;
    }

    .service-card {
        height: 220px;
    }

    .service-card__title {
        padding: 24px;
        font-size: 20px;
    }

    .service-card__arrow {
        right: 22px;
        bottom: 24px;
    }

    .intro-section {
        padding: 70px 0;
    }

    .contact-strip h2 {
        font-size: 29px;
    }
}
