:root {
    --page-padding: clamp(15px, 3vw, 30px);
    --page-width: 1280px;
    --red: #ed1c24;
    --light-blue: #00aeef;
    --blue: #003471;
    --white: #fafafa;
    --black: #1e1e1e;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    letter-spacing: 0.06rem;
    font-family: "Space Grotesk", sans-serif;
    font-optical-sizing: auto;
    font-style: normal;
}

a {
    color: inherit;
    cursor: pointer;
    text-decoration: inherit;
}

img,
video {
    display: flex;
    max-width: 100%;
    height: auto;
    object-fit: contain;
}

svg {
    width: 100%;
    height: 100%;
}

ul {
    padding-left: 16px;
}

ul li {
    padding-left: 5px;
    margin-bottom: 5px;
}

ul li::marker {
    content: '✓';
    color: var(--red);
}

iframe {
    display: flex;
    border: none;
}

/* reset */
input,
select,
textarea,
fieldset,
optgroup,
label {
    font-family: inherit;
    font-size: 100%;
    color: inherit;
    border: none;
    border-radius: 0;
    display: block;
    width: 100%;
    padding: 0;
    margin: 0;
}

label,
legend,
form ::placeholder {
    font-size: 0.825rem;
    margin-bottom: 0.5rem;
    padding-top: 0.2rem;
    display: flex;
    align-items: baseline;
}

/* border, padding, margin, width */
input,
select,
textarea {
    border: 1px solid rgba(0, 0, 0, 0.2);
    background-color: rgba(255, 255, 255, 0.9);
    padding: 0.75em 1rem;
    margin-bottom: 1.5rem;
}

select {
    text-transform: none;
}

textarea {
    width: 100% !important;
}

input:focus,
select:focus,
textarea:focus {
    background-color: var(--white);
    outline-style: solid;
    outline-width: thin;
    outline-color: gray;
    outline-offset: -1px;
}

[type="text"],
[type="email"] {
    width: 100%;
}

form [type="button"],
form [type="submit"],
form [type="reset"] {
    width: auto;
    cursor: pointer;
    -webkit-appearance: button;
    -moz-appearance: button;
    appearance: button;
    margin-bottom: 0;
}

form [type="button"]:focus,
form [type="submit"]:focus,
form [type="reset"]:focus {
    outline: none;
}

[type="checkbox"] {
    -webkit-appearance: checkbox;
    -moz-appearance: checkbox;
    appearance: checkbox;
    display: inline-block;
    width: auto;
    margin: 0 0.5em 0 0 !important;
}

[type="radio"] {
    -webkit-appearance: radio;
    -moz-appearance: radio;
    appearance: radio;
}

/* address, locale */
fieldset.locale input[name="city"],
fieldset.locale select[name="state"],
fieldset.locale input[name="postal-code"] {
    display: inline;
}

fieldset.locale input[name="city"] {
    width: 52%;
}

fieldset.locale select[name="state"],
fieldset.locale input[name="postal-code"] {
    width: 20%;
}

fieldset.locale input[name="city"],
fieldset.locale select[name="state"] {
    margin-right: 3%;
}

.page-width {
    margin: 0 auto;
    padding: 0 var(--page-padding);
    max-width: var(--page-width);
}

.container {
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.container.load-in {
    opacity: 1;
}

.page-width--narrow {
    max-width: calc(var(--page-width) * 0.8);
}

.no-scrollbar {
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.no-scrollbar::-webkit-scrollbar {
    background: transparent;
    width: 0px;
}

h1,
h2,
h3,
h4,
h5,
.h1,
.h2,
.h3,
.h4,
.h5 {
    font-weight: 600;
    letter-spacing: -1px;
    word-break: keep-all;
}

.bigger-margin {
    margin: 5rem 0;
}

.no-top-margin {
    margin-top: 0;
}

.no-bottom-margin {
    margin-bottom: 0;
}

.no-margin {
    margin: 0;
}

.text-left {
    text-align: left;
}

.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

h1,
.h1 {
    font-size: 2.4rem;
}

h2,
.h2 {
    font-size: 2.5rem;
}

h3,
.h3 {
    font-size: 2.4rem;
}

h4,
.h4 {
    font-size: 2rem;
}

h5,
.h5 {
    font-size: 1.6rem;
}

.section-title {
    text-align: center;
    margin-inline: auto;
    margin-bottom: 4rem;
    padding-bottom: 5px;
    border-bottom: 4px solid var(--red);
    width: max-content;
    font-size: clamp(22px, 5vw, 48px);
}

.section-subtitle {
    text-align: center;
    margin-inline: auto;
    margin-top: -1.75rem;
    margin-bottom: 3rem;
}

[theme="blue"] {
    background: var(--blue);
    color: var(--white);
}

[theme="white"] {
    background: var(--white);
    color: var(--black);
}

announcement-bar,
footer {
    display: block;
    background: var(--black);
    color: #929292;
}

.announcement-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
}

.ab-logo,
.header-logo {
    max-width: 37.1796px;
}

.header-logo {
    margin: auto;
    padding: 10px 0;
}

.footer-logo {
    display: block;
    max-width: 60px;
    margin-bottom: 15px;
}

.ab-item-content h3 {
    font-size: 14px;
    font-weight: 400;
}

.ab-item-content p {
    font-size: 13px;
    color: var(--light-blue);
    font-weight: 600;
    line-height: 1.25;
    letter-spacing: 0;
}

header {
    position: sticky;
    top: 0;
    z-index: 999;
    background: var(--white);
    border-bottom: 1px solid var(--black);
}

.header {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    align-items: center;
}

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

.header-links a {
    display: inline-block;
    padding: 20px 30px;
    font-size: 14px;
    border-right: 1px solid #e8e8e8;
}

.header-links a:first-of-type {
    border-left: 1px solid #e8e8e8;
}

.appointment {
    margin-left: auto;
    width: 35px;
}

.hamburger {
    cursor: pointer;
}

.hamburger div {
    width: 35px;
    height: 2px;
    background-color: var(--black);
    margin: 6px 0;
}

.hamburger div:nth-of-type(2) {
    width: 20px;
}

.menu-drawer {
    position: fixed;
    top: 0;
    left: calc(-1 * var(--width, 340px));
    width: 100%;
    height: 100%;
    max-width: 340px;
    background: var(--white);
    z-index: 9999;
    transition: left 0.35s ease-in-out, box-shadow 0.35s ease-in-out;
    font-size: 14px;
    line-height: 1.625;
}

.menu-drawer.open-drawer {
    left: 0;
    box-shadow: 20px 0 15px rgb(0 0 0 / 10%);
}

.drawer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f7f7f7;
}

.drawer-heading {
    padding: 20px 0;
    border-bottom: 2px solid var(--red);
}

.close-drawer {
    width: 30px;
    height: 30px;
    text-align: center;
    line-height: 30px;
    font-size: 24px;
    cursor: pointer;
}

.menu-drawer a {
    display: block;
    border-bottom: 1px solid var(--black);
    padding: 15px 0;
}

.drawer-header,
.drawer-body,
.drawer-footer {
    padding: 0 30px;
}

.btn {
    display: flex;
    width: max-content;
    font-size: 14px;
    padding: 20px 30px;
    background-color: var(--black);
    background-image: linear-gradient(90deg, transparent 0%, var(--red) 0%);
    background-size: 100%;
    background-position: 150%;
    background-repeat: no-repeat;
    text-transform: uppercase;
    transition: background-size 0.5s ease-in-out, color 0.5s ease-in-out;
    color: var(--white);
    font-weight: 600;
    white-space: nowrap;
    text-align: center;
    cursor: pointer;
}

.btn:hover {
    background-size: 0;
    color: #fff;
}

.btn\:white {
    color: var(--black);
    background-color: var(--red);
    background-image: linear-gradient(90deg, transparent 0%, var(--white) 0%);
}

.btn\:blue {
    background: var(--light-blue);
    color: var(--white);
}

.hero {
    position: relative;
}

.hero-image img {
    margin: 0 calc(-50vw + 50%);
    width: 100vw;
    max-width: inherit;
    height: 50vh;
    object-fit: cover;
}

.hero-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    margin: 0 calc(-50vw + 50%);
    width: 100vw;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0));
    pointer-events: none;
    z-index: 1;
}

.hero-image::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    margin: 0 calc(-50vw + 50%);
    width: 100vw;
    height: 25%;
    background: linear-gradient(to top, rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0));
    pointer-events: none;
    z-index: 1;
}

.hero-content {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translate(0, -50%);
    text-transform: uppercase;
    z-index: 2;
}

.hero-content p {
    color: var(--red);
    font-weight: 600;
}

.hero-content h1 {
    white-space: nowrap;
    color: var(--white);
    font-size: clamp(30px, 6vw, 84px);
    margin: 5px 0 15px 0;
}

.stroke {
    color: transparent;
    -webkit-text-stroke: 1px var(--white);
    font-weight: 600;
}

.hero-overlay {
    display: flex;
    flex-direction: column;
    margin-top: -50px;
    position: relative;
    z-index: 2;
    background: var(--white);
    box-shadow: 0 10px 15px rgb(0 0 0 / 10%);
}

.hero-overlay-left,
.hero-overlay-right {
    padding: clamp(20px, 5vw, 50px) clamp(15px, 3vw, 30px);
}

.hero-overlay h2 {
    font-size: clamp(22px, 5vw, 34px);
    margin-bottom: 15px;
}

.hero-overlay-right {
    background: var(--blue);
}

.hero-overlay-right h2 {
    color: var(--white);
}

.hero-overlay-right p {
    max-width: 280px;
}

.hero-overlay-right p span {
    background: var(--white);
}

.hero-overlay .phone-number,
.contact-left .phone-number {
    font-size: 24px;
    margin-bottom: 25px;
}

.phone-number {
    display: block;
    color: var(--red);
    font-weight: bold;
}

#our-story {
    padding: 60px 0;
}

#our-services {
    padding: 60px 0;
}

#our-projects {
    padding: 60px 0 70px;
}

footer {
    padding: 30px 0;
    font-size: 14px;
}

.our-story,
.services {
    display: grid;
    gap: 25px;
}

.our-story {
    line-height: 1.25;
}

.our-story-right {
    display: flex;
    align-items: center;
}

.our-story-right img {
    width: 55%;
    aspect-ratio: 1;
    object-fit: cover;
}

.our-story-right img:nth-child(1) {
    margin-right: auto;
    margin-left: 7.5%;
    margin-bottom: -20%;
}

.our-story-right img:nth-child(2) {
    margin-left: auto;
    margin-right: 7.5%;
}

.services-card {
    text-align: center;
    padding: 50px 30px;
    line-height: 1.25;
}

.services-card img {
    max-width: 75px;
    height: auto;
    margin-inline: auto;
}

.services-card h3 {
    text-transform: uppercase;
    font-size: clamp(26px, 3vw, 32px);
    margin-block: 20px 5px;
}

.services-card p {
    font-size: 14px;
    margin-bottom: 10px;
}

.services-card .modal-btn {
    text-transform: uppercase;
    font-weight: bold;
    color: var(--light-blue);
    letter-spacing: 2px;
}

/* .modal:is(#residential-roofing-modal, #commercial-roofing-modal, #windows-doors-modal, #privacy-policy-modal, #areas-we-serve-modal) :is(h4, h5) {
    color: var(--light-blue);
} */

.modal:is(#residential-roofing-modal, #commercial-roofing-modal, #windows-doors-modal, #privacy-policy-modal, #areas-we-serve) .modal-content :is(p, img, h5) {
    margin-bottom: 15px;
}

.project-type {
    text-align: center;
    margin-bottom: 25px;
}

.project-type span {
    display: inline-block;
    text-align: center;
    cursor: pointer;
    padding: 10px 20px;
    transition: background 0.3s ease-in-out, color 0.3s ease-in-out;
}

.project-selected {
    background: var(--light-blue);
    color: var(--white);
}

.project-gallery {
    position: relative;
    display: none;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 175px), 1fr));
    gap: 20px;
}

.project-gallery.active {
    display: grid;
}

.project-gallery a img {
    aspect-ratio: 1;
    object-fit: cover;
}

.load-more {
    padding: 10px 20px!important;
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translate(-50%, 20px);
    border: none;
    text-transform: capitalize!important;
}

.contact-right {
    padding: 30px 0;
}

.contact-left {
    position: relative;
}

.contact-left .contact-left-content {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: calc(100% - clamp(15px, 3vw, 30px));
    color: var(--white);
}

.contact-left img {
    filter: brightness(0.7);
    width: 100vw;
    max-width: inherit;
    object-fit: cover;
    height: 50vh;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
}

.contact-left h3 {
    margin-bottom: 25px;
}

.footer {
    display: grid;
    row-gap: 20px;
    grid-template-areas:
        "description"
        "links1"
        "links2"
        "map";
        margin-bottom: 50px;
}

.footer-item:not([footer="map"]) {
    padding-right: 20px;
}

.footer-item[footer="description"] {
    grid-area: description;
}

.footer-item[footer="links1"] {
    grid-area: links1;
}

.footer-item[footer="links2"] {
    grid-area: links2;
}

.footer-item[footer="map"] {
    grid-area: map;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

footer h4 {
    color: var(--white);
    font-size: 22px;
    margin-bottom: 15px;
}

.schedule {
    display: grid;
    grid-template-columns: repeat(2, auto) 1fr;
    width: max-content;
    margin-top: 10px;
}

.week-day__day,
.address {
    color: #595959;
}

.week-day__separator {
    margin: 0 10px;
    text-align: center;
}

.week-day__time.closed {
    color: var(--red);
}

.copyright {
    font-size: 12px;
    text-align: center;
}

@media (max-width: 768px) {
    .section-title {
        margin-bottom: 2.5rem;
    }

    .hide\:sm {
        display: none;
    }

    .text-left\:sm {
        text-align: left;
    }

    .text-center\:sm {
        text-align: center;
    }

    .text-right\:sm {
        text-align: right;
    }

    .our-story {
        grid-template-areas:
        "images" "story";
    }

    .our-story-left {
        grid-area: story;
    }

    .our-story-right {
        grid-area: images;
    }

    .contact-left .btn {
        margin: auto;
    }

    .contact-left img {
        min-height: 410px;
    }

    .footer iframe {
        aspect-ratio: 1;
        max-width: 350px;
    }
}

@media (min-width: 769px) {
    .hide\:md {
        display: none;
    }

    .text-left\:md {
        text-align: left;
    }

    .text-center\:md {
        text-align: center;
    }

    .text-right\:md {
        text-align: right;
    }

    .our-story .section-title {
        margin-left: 0;
        text-align: left;
    }

    .ab-item-content h3 {
        font-size: 16px;
    }

    .ab-item-content p {
        font-size: 16px;
    }

    .hero-overlay {
        flex-direction: row;
    }

    .hero-overlay-left {
        width: 60%;
    }

    .hero-overlay-right {
        width: 40%;
    }

    .our-story {
        grid-template-columns: repeat(2, 1fr);
    }

    .contact-container {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        column-gap: 30px;
    }

    .contact-left img {
        position: absolute;
        width: 50vw;
        margin: 0;
        right: 0;
        top: 0;
        height: 100%;
    }

    .footer {
        grid-template-columns: repeat(2, 1fr);
        grid-template-areas:
            "description map"
            "links1 links2";
    }
}

@media (min-width: 991px) {
    .hide\:lg {
        display: none;
    }

    .show\:lg {
        display: block;
    }

    .header {
        display: flex;
        justify-content: space-between;
    }

    .services {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .footer {
        grid-template-columns: repeat(4, auto) 1fr;
        grid-template-areas: "description links1 links2 map";
    }

    .footer iframe {
        min-width: 300px;
    }
}

@media (max-width: 990px) {
    .header-links {
        display: none;
    }
}