/*
 * Henry Brothers Roofing & Siding
 *
 * Contents
 *   1. Fonts
 *   2. Settings (colors, spacing)
 *   3. Base elements
 *   4. Layout helpers
 *   5. Buttons, links, dividers
 *   6. Header, menu, mobile drawer
 *   7. Footer
 *   8. Forms
 *   9. Shared blocks (gallery, lightbox, before/after, blog cards, testimonials)
 *  10. Page sections, in this order:
 *        pages/home.php, includes/components/estimateSteps.php, page heroes,
 *        includes/components/servicesCta.php, pages/about.php, pages/contact.php, pages/community.php,
 *        pages/gallery.php, feature rows, brand logos, pages/roofing.php, pages/vinylsiding.php,
 *        pages/raingutters.php, pages/windows.php, pages/instant-estimator.php, pages/iethanks.php,
 *        pages/projects.php, templates/project.php, pages/newsblog.php, templates/blogPost.php,
 *        pages/privacy.php, templates/notFound.php
 *  11. Motion preferences
 *
 * Each section heading names the file whose HTML it styles. Search for a file name to find its styles.
 *
 * Breakpoints: phones up to 767px, tablets 768px to 1024px, desktop 1025px and up.
 */

/* 1. Fonts ------------------------------------------------------------------ */

@font-face {
    font-family: 'Kumbh Sans';
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url('../fonts/kumbh-sans-100-900.woff2') format('woff2');
}

@font-face {
    font-family: 'Poppins';
    font-style: normal;
    font-weight: 300;
    font-display: swap;
    src: url('../fonts/poppins-300.woff2') format('woff2');
}

@font-face {
    font-family: 'Poppins';
    font-style: italic;
    font-weight: 300;
    font-display: swap;
    src: url('../fonts/poppins-300-italic.woff2') format('woff2');
}

@font-face {
    font-family: 'Poppins';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('../fonts/poppins-400.woff2') format('woff2');
}

@font-face {
    font-family: 'Poppins';
    font-style: italic;
    font-weight: 400;
    font-display: swap;
    src: url('../fonts/poppins-400-italic.woff2') format('woff2');
}

@font-face {
    font-family: 'Poppins';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url('../fonts/poppins-500.woff2') format('woff2');
}

@font-face {
    font-family: 'Poppins';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('../fonts/poppins-600.woff2') format('woff2');
}

@font-face {
    font-family: 'Poppins';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('../fonts/poppins-700.woff2') format('woff2');
}

@font-face {
    font-family: 'Poppins';
    font-style: italic;
    font-weight: 700;
    font-display: swap;
    src: url('../fonts/poppins-700-italic.woff2') format('woff2');
}

/* 2. Settings --------------------------------------------------------------- */

:root {
    --orange: #f37a1f;
    --slate: #2c393f;
    --navy: #1b1f38;
    --lavender: #c5d0f4;
    --yellow: #ffdf00;
    --black: #000;
    --white: #fff;
    --gray-light: #f2f2f2;
    /* Body gray. The live site uses #8a8a8a, darkened here to meet contrast guidelines on white. */
    --gray-text: #707070;

    --font-heading: 'Kumbh Sans', Arial, sans-serif;
    --font-body: 'Poppins', Arial, sans-serif;

    --content-width: 1200px;
    --gutter: 40px;
    --header-height: 138px;
}

@media (max-width: 1024px) {
    :root {
        --gutter: 20px;
        --header-height: 105px;
    }
}

@media (max-width: 767px) {
    :root {
        --gutter: 15px;
        --header-height: 77px;
    }
}

/* 3. Base elements ---------------------------------------------------------- */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-padding-top: var(--header-height);
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    background: var(--white);
    color: var(--gray-text);
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: 300;
    line-height: 1.5;
    overflow-x: hidden;
}

main {
    display: block;
    padding-top: var(--header-height);
}

h1,
h2,
h3,
h4,
h5,
h6 {
    margin: 0;
    color: var(--slate);
    font-family: var(--font-heading);
    font-weight: 400;
    line-height: 1.24;
}

h1 {
    font-size: 50px;
}

h2 {
    font-size: 30px;
}

h3 {
    font-size: 24px;
}

h4 {
    font-size: 18px;
}

p {
    margin: 0;
}

ul,
ol {
    margin: 0;
    padding: 0;
}

img,
video,
iframe {
    max-width: 100%;
}

img {
    height: auto;
    vertical-align: middle;
}

a {
    color: inherit;
}

strong,
b {
    font-weight: 700;
}

address {
    font-style: normal;
}

button {
    font: inherit;
    color: inherit;
}

:focus-visible {
    outline: 3px solid var(--slate);
    outline-offset: 3px;
}

.on-dark :focus-visible,
.site-drawer .drawer-contact :focus-visible {
    outline-color: var(--white);
}

@media (max-width: 767px) {
    h1 {
        font-size: 35px;
    }

    h2 {
        font-size: 24px;
    }

    h3 {
        font-size: 20px;
    }
}

/* 4. Layout helpers --------------------------------------------------------- */

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.skip-link {
    position: absolute;
    top: -100px;
    left: 10px;
    z-index: 300;
    padding: 10px 16px;
    background: var(--white);
    color: var(--black);
    font-weight: 500;
}

.skip-link:focus {
    top: 10px;
}

.section {
    position: relative;
    padding: 100px var(--gutter);
}

.container {
    width: 100%;
    max-width: var(--content-width);
    margin-inline: auto;
}

.container-wide {
    width: 100%;
    max-width: 1340px;
    margin-inline: auto;
}

.text-center {
    text-align: center;
}

.text-black {
    color: var(--black);
}

.text-orange {
    color: var(--orange);
}

/* The orange used for words inside body copy is darkened slightly so it stays readable on white. */
.highlight {
    color: #c75a00;
    font-weight: 700;
}

.lead {
    color: var(--black);
    font-size: 18px;
    line-height: 1.5;
}

.columns {
    display: flex;
    flex-wrap: wrap;
}

.columns > * {
    min-width: 0;
}

.col-2 { width: 16.6667%; }
.col-3 { width: 25%; }
.col-4 { width: 33.3333%; }
.col-5 { width: 41.6667%; }
.col-6 { width: 50%; }
.col-7 { width: 58.3333%; }
.col-8 { width: 66.6667%; }
.col-9 { width: 75%; }
.col-10 { width: 83.3333%; }
.col-12 { width: 100%; }

.hide-on-desktop {
    display: none;
}

@media (max-width: 1024px) {
    .section {
        padding-block: 70px;
    }
}

@media (max-width: 767px) {
    .section {
        padding-block: 50px;
    }

    .columns > [class*='col-'] {
        width: 100%;
    }

    .hide-on-desktop {
        display: block;
    }

    .hide-on-mobile {
        display: none;
    }

    .lead {
        font-size: 14px;
    }
}

/* 5. Buttons, links, dividers ---------------------------------------------- */

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 163px;
    min-height: 55px;
    padding: 8px 30px;
    border: 1px solid var(--orange);
    border-radius: 50px;
    background: var(--orange);
    color: var(--white);
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 400;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.2s, border-color 0.2s, color 0.2s;
}

.button:hover {
    background: transparent;
    color: var(--orange);
}

.button-wide {
    min-width: 274px;
}

.button-slim {
    min-width: 280px;
    min-height: 42px;
}

.button-outline {
    background: transparent;
    color: var(--orange);
}

.button-outline-light {
    border-color: var(--white);
    background: transparent;
    color: var(--white);
}

.button-outline-light:hover {
    background: var(--white);
    color: var(--orange);
}

.button-square {
    border-radius: 3px;
}

.rule {
    width: 108px;
    height: 0;
    margin: 10px auto;
    border: 0;
    border-top: 4px solid var(--yellow);
}

.rule-orange {
    width: 100%;
    margin-inline: 0;
    border-top: 2px solid var(--orange);
}

.rule-white {
    width: 100%;
    margin-inline: 0;
    border-top: 2px solid var(--white);
}

@media (max-width: 767px) {
    .button {
        width: 100%;
    }

    .button-inline {
        width: auto;
    }
}

/* 6. Header, menu, mobile drawer: includes/header.php, includes/components/navigation.php */

.site-header {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    z-index: 100;
    background: var(--white);
    transition: background-color 0.2s;
}

.site-header-bar {
    display: grid;
    grid-template-columns: 2fr 6fr 2fr 2fr;
    align-items: start;
    height: var(--header-height);
    padding: 15px 50px;
    transition: height 0.2s, padding 0.2s;
}

/* After the page scrolls the header becomes shorter and slightly see-through. */
.site-header.is-scrolled {
    background: rgba(255, 255, 255, 0.9);
}

.site-header.is-scrolled .site-header-bar {
    height: 120px;
    padding-block: 6px;
}

.site-logo {
    display: inline-block;
    justify-self: start;
    margin-top: 15px;
}

.site-logo img {
    display: block;
}

.site-logo-mobile {
    display: none !important;
}

.site-nav {
    justify-self: center;
    margin-top: 21px;
}

.menu {
    display: flex;
    list-style: none;
}

.menu-item {
    position: relative;
    display: flex;
    align-items: center;
}

.menu-link {
    display: flex;
    align-items: center;
    height: 33px;
    padding: 0 15px;
    color: var(--slate);
    font-family: var(--font-heading);
    font-size: 15px;
    letter-spacing: 0.45px;
    text-decoration: none;
    white-space: nowrap;
}

.menu-link span {
    position: relative;
    display: inline-block;
    padding: 5px 0;
}

/* Underline bar under the current page and on hover. */
.menu-link span::after {
    content: '';
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 2px;
    background: var(--black);
    transform: scaleX(0);
    transition: transform 0.2s;
}

.menu-item.is-active > .menu-link span,
.menu-link:hover span {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.menu-item.is-active > .menu-link span::after,
.menu-link:hover span::after {
    transform: scaleX(1);
}

.menu-item.has-submenu > .menu-link {
    padding-right: 4px;
}

.submenu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 33px;
    margin-right: 5px;
    padding: 0;
    border: 0;
    background: none;
    color: var(--slate);
    cursor: pointer;
}

.submenu-toggle .icon {
    width: 14px;
    height: 14px;
    transition: transform 0.2s;
}

.submenu-toggle[aria-expanded='true'] .icon {
    transform: rotate(180deg);
}

.submenu {
    list-style: none;
}

.site-nav .submenu,
.site-footer-nav .submenu {
    position: absolute;
    top: 100%;
    left: 15px;
    z-index: 110;
    min-width: 138px;
    background: #faf9f9;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity 0.1s, transform 0.3s, visibility 0s 0.3s;
}

.site-nav .menu-item.has-submenu:hover > .submenu,
.site-nav .menu-item.is-open > .submenu,
.site-footer-nav .menu-item.has-submenu:hover > .submenu,
.site-footer-nav .menu-item.is-open > .submenu {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition-delay: 0s;
}

.submenu-link {
    display: block;
    padding: 15px 30px 15px 15px;
    color: #6f6f6f;
    font-size: 15px;
    font-weight: 400;
    letter-spacing: 0.45px;
    text-decoration: none;
    white-space: nowrap;
}

.submenu-link:hover,
.submenu-link:focus-visible {
    background: var(--black);
    color: var(--white);
}

.site-header-phone {
    justify-self: center;
    display: flex;
    align-items: center;
    height: 50px;
    margin-top: 10px;
    color: var(--slate);
    font-family: var(--font-heading);
    font-size: 14px;
    text-decoration: none;
}

.site-header-phone:hover {
    color: var(--orange);
}

.site-header-estimate {
    min-width: 0;
    min-height: 50px;
    margin-top: 10px;
    padding-inline: 10px;
    white-space: nowrap;
}

.site-header-estimate:hover {
    background: var(--orange);
    color: var(--white);
}

.site-header.is-scrolled .site-logo {
    margin-top: 8px;
}

.drawer-open {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 40px;
    height: 40px;
    padding: 13px 9px;
    border: 0;
    background: none;
    cursor: pointer;
}

.drawer-open-bar {
    display: block;
    height: 2px;
    background: #666;
}

.drawer-overlay {
    position: fixed;
    inset: 0;
    z-index: 190;
    background: rgba(0, 0, 0, 0.4);
}

.site-drawer {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 200;
    display: flex;
    flex-direction: column;
    width: min(312px, 80vw);
    background: var(--white);
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform 0.3s linear;
}

.site-drawer[hidden],
.drawer-overlay[hidden] {
    display: none;
}

.site-drawer.is-open {
    transform: none;
}

.drawer-close {
    position: absolute;
    top: 19px;
    right: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 0;
    background: none;
    color: #555;
    cursor: pointer;
}

.drawer-close .icon {
    width: 26px;
    height: 26px;
}

.drawer-nav {
    flex: 1;
    padding: 80px 20px 15px;
}

.drawer-nav .menu {
    flex-direction: column;
}

.drawer-nav .menu-item {
    flex-wrap: wrap;
}

.drawer-nav .menu-link {
    height: 48px;
    padding: 7px 0;
    color: #646464;
    font-size: 16px;
    letter-spacing: 0.48px;
}

.drawer-nav .menu-item.is-active > .menu-link span,
.drawer-nav .menu-link:hover span {
    text-decoration: none;
}

.drawer-nav .submenu-toggle {
    width: 44px;
    height: 48px;
    color: #646464;
}

.drawer-nav .submenu {
    display: none;
    width: 100%;
}

.drawer-nav .menu-item.is-open > .submenu {
    display: block;
}

.drawer-nav .submenu-link {
    padding: 5px 12px;
    color: #707070;
    font-family: var(--font-heading);
    font-size: 16px;
    letter-spacing: 0.48px;
}

.drawer-nav .submenu-link:hover,
.drawer-nav .submenu-link:focus-visible {
    background: none;
    color: var(--black);
    text-decoration: underline;
}

.drawer-contact {
    padding: 35px 20px 45px;
    background: var(--orange);
    color: var(--white);
    font-size: 15px;
    line-height: 1.55;
}

.drawer-contact-title {
    margin-bottom: 10px;
    font-size: 16px;
    font-weight: 500;
}

.drawer-contact a {
    text-decoration: none;
    overflow-wrap: anywhere;
}

@media (max-width: 1024px) {
    .site-header-bar {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 10px 20px 10px 30px;
    }

    .site-header.is-scrolled .site-header-bar {
        height: var(--header-height);
        padding-block: 10px;
    }

    .site-nav,
    .site-header-phone,
    .site-header-estimate,
    .site-logo-desktop {
        display: none !important;
    }

    .site-logo,
    .site-header.is-scrolled .site-logo {
        margin-top: 0;
    }

    .site-logo-mobile {
        display: block !important;
    }

    .drawer-open {
        display: flex;
    }
}

@media (max-width: 767px) {
    .site-header-bar {
        padding: 10px 10px;
    }

    .site-logo-mobile {
        width: 88px;
        height: auto;
    }
}

/* 7. Footer: includes/footer.php ------------------------------------------- */

.site-footer {
    padding: 10px 40px;
    color: var(--slate);
}

.site-footer-inner {
    display: grid;
    grid-template-columns: 2fr 6fr 2fr 2fr;
    align-items: start;
    max-width: 1360px;
    margin-inline: auto;
}

.site-footer-logo {
    display: inline-block;
    margin-top: 22px;
}

.site-footer-main {
    padding-left: 10px;
    text-align: center;
}

.site-footer-nav {
    display: flex;
    justify-content: center;
    padding: 7px 15px;
}

.site-footer-nav .menu-link {
    height: 51px;
}

.site-footer-nav .menu-item.is-active > .menu-link span::after,
.site-footer-nav .menu-link:hover span::after {
    transform: scaleX(0);
}

/* Footer submenus open upward so they stay on screen. */
.site-footer-nav .submenu {
    top: auto;
    bottom: 100%;
}

.site-footer-offices {
    margin: 8px 0;
    font-size: 16px;
    line-height: 24px;
}

.site-footer-offices a {
    text-decoration: none;
}

.site-footer-offices a:hover {
    text-decoration: underline;
}

.site-footer-contact {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.site-footer-phone {
    display: flex;
    align-items: center;
    height: 55px;
    margin: 10px 0;
    font-family: var(--font-heading);
    font-size: 14px;
    text-decoration: none;
}

.site-footer-phone:hover {
    color: var(--orange);
}

.site-footer-social {
    margin-top: 22px;
    text-align: right;
}

.site-footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 31px;
    height: 31px;
    color: var(--orange);
}

.site-footer-social .icon {
    width: 24px;
    height: 24px;
}

@media (max-width: 1024px) {
    .site-footer {
        padding: 30px 20px;
    }

    .site-footer-inner {
        grid-template-columns: 1fr 3fr 1fr;
    }

    .site-footer-nav .menu {
        flex-wrap: wrap;
        justify-content: center;
    }

    .site-footer-social {
        grid-column: 1 / -1;
        text-align: center;
    }
}

@media (max-width: 767px) {
    .site-footer {
        padding: 50px 15px;
    }

    .site-footer-inner {
        display: block;
        text-align: center;
    }

    .site-footer-logo {
        margin: 0 0 20px;
    }

    .site-footer-logo img {
        width: 137px;
    }

    .site-footer-main {
        padding-left: 0;
    }

    .site-footer-nav {
        padding: 0;
    }

    .site-footer-nav .menu {
        flex-direction: column;
        align-items: center;
    }

    .site-footer-nav .menu-item {
        flex-wrap: wrap;
        justify-content: center;
    }

    .site-footer-nav .menu-link {
        height: 54px;
        font-size: 16px;
    }

    .site-footer-nav .submenu {
        position: static;
        display: none;
        width: 100%;
        background: none;
        opacity: 1;
        visibility: visible;
        transform: none;
    }

    .site-footer-nav .menu-item.is-open > .submenu {
        display: block;
    }

    .site-footer-nav .submenu-link {
        padding: 8px 15px;
    }

    .site-footer-offices {
        margin: 25px 0;
    }

    .site-footer-review img {
        width: 250px;
    }

    .site-footer-social {
        margin-top: 40px;
        text-align: center;
    }
}

/* 8. Forms: includes/components/form.php ----------------------------------- */

.form {
    width: 100%;
    text-align: left;
}

.form-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0 20px;
}

.form-field {
    flex: 1 1 100%;
    margin-bottom: 18px;
    padding: 0 15px;
}

.form-field-half {
    flex: 0 1 calc(50% - 10px);
}

.form-field label {
    display: block;
    margin-bottom: 4px;
    color: var(--gray-text);
    font-size: 16px;
}

.form-field input,
.form-field select,
.form-field textarea {
    display: block;
    width: 100%;
    height: 40px;
    padding: 4px 0;
    border: 0;
    border-bottom: 1px solid #5c5c5c;
    border-radius: 0;
    background: transparent;
    color: var(--black);
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: 300;
}

.form-field textarea {
    height: 110px;
    resize: vertical;
}

.form-field input:focus-visible,
.form-field select:focus-visible,
.form-field textarea:focus-visible {
    outline-offset: 2px;
}

.form-required {
    color: inherit;
}

.form-error {
    display: block;
    margin-top: 4px;
    color: #b00020;
    font-size: 14px;
    font-weight: 400;
}

.form-field.has-error input,
.form-field.has-error select,
.form-field.has-error textarea {
    border-bottom-color: #b00020;
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    padding: 30px 15px 0;
}

.form-actions .button {
    min-width: 250px;
}

.form-message {
    margin: 0 15px 20px;
    padding: 14px 18px;
    border: 1px solid;
    color: var(--black);
    font-weight: 400;
}

.form-message-success {
    border-color: #1c7c3a;
    background: #eef7f0;
}

.form-message-error {
    border-color: #b00020;
    background: #fdf0f2;
}

.form-note {
    margin: 0 15px 20px;
    font-size: 14px;
}

/* A field that real visitors never see or fill in. Automated spam tools usually do. */
.form-trap {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.form-on-dark .form-field label,
.form-on-dark .form-note {
    color: var(--white);
}

.form-on-dark .form-field input,
.form-on-dark .form-field select,
.form-on-dark .form-field textarea {
    border-bottom-color: rgba(255, 255, 255, 0.55);
    color: var(--white);
}

.form-on-dark .form-error {
    color: #ffb4b4;
}

.form-on-dark select option {
    color: var(--black);
}

@media (max-width: 767px) {
    .form-field-half {
        flex-basis: 100%;
    }

    .form-actions .button {
        width: 100%;
    }
}

/* 9. Shared blocks ---------------------------------------------------------- */

/* Large headings used as section titles. */
.title-display {
    font-size: 60px;
}

.title-large {
    font-size: 50px;
}

@media (max-width: 767px) {
    .title-display {
        font-size: 36px;
    }

    .title-large {
        font-size: 35px;
    }
}

/* Photo gallery (includes/components/gallery.php) */

.gallery-list {
    display: grid;
    gap: 10px;
    list-style: none;
}

.gallery-item {
    position: relative;
    overflow: hidden;
}

.gallery-link,
.gallery-url {
    display: block;
    width: 100%;
    height: 100%;
}

.gallery-item img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s;
}

.gallery-link:hover img,
.gallery-url:hover img {
    transform: scale(1.04);
}

.gallery.is-collapsed .gallery-item.is-extra {
    display: none;
}

.gallery-more {
    display: block;
    margin-top: 14px;
    padding: 4px 0;
    border: 0;
    background: none;
    color: var(--slate);
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: 300;
    cursor: pointer;
}

.gallery-more:hover {
    text-decoration: underline;
}

.gallery-caption {
    margin-top: 8px;
    color: var(--slate);
    font-family: var(--font-heading);
    font-size: 24px;
    text-align: center;
}

/* Equal tiles */
.gallery-grid .gallery-list {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.gallery-grid.gallery-columns-2 .gallery-list { grid-template-columns: repeat(2, 1fr); }
.gallery-grid.gallery-columns-4 .gallery-list { grid-template-columns: repeat(4, 1fr); }
.gallery-grid.gallery-columns-5 .gallery-list { grid-template-columns: repeat(5, 1fr); }

.gallery-grid .gallery-item img {
    aspect-ratio: 7 / 8;
}

.gallery-rounded .gallery-item {
    border-radius: 10px;
}

/* Mixed sizes: a repeating pattern of eight photos across ten columns. */
.gallery-mosaic .gallery-list {
    grid-template-columns: repeat(10, 1fr);
    grid-auto-rows: min(334px, 23.2vw);
    grid-auto-flow: dense;
}

.gallery-mosaic .gallery-item:nth-child(8n + 1) { grid-column: 1 / span 4; grid-row: span 2; }
.gallery-mosaic .gallery-item:nth-child(8n + 2) { grid-column: 5 / span 3; }
.gallery-mosaic .gallery-item:nth-child(8n + 3) { grid-column: 8 / span 3; }
.gallery-mosaic .gallery-item:nth-child(8n + 4) { grid-column: 5 / span 6; }
.gallery-mosaic .gallery-item:nth-child(8n + 5) { grid-column: 1 / span 3; }
.gallery-mosaic .gallery-item:nth-child(8n + 6) { grid-column: 4 / span 3; }
.gallery-mosaic .gallery-item:nth-child(8n + 7) { grid-column: 1 / span 6; }
.gallery-mosaic .gallery-item:nth-child(8n + 8) { grid-column: 7 / span 4; grid-row: span 2; }

@media (max-width: 767px) {
    .gallery-grid .gallery-list,
    .gallery-grid.gallery-columns-4 .gallery-list,
    .gallery-grid.gallery-columns-5 .gallery-list {
        grid-template-columns: repeat(2, 1fr);
        gap: 7px;
    }

    .gallery-grid.gallery-stack-on-mobile .gallery-list {
        grid-template-columns: 1fr;
    }

    /* On phones the pattern becomes one large photo, two small, one wide. */
    .gallery-mosaic .gallery-list {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 46vw;
        grid-auto-flow: row;
        gap: 7px;
    }

    .gallery-mosaic .gallery-item:nth-child(n) {
        grid-column: auto;
        grid-row: auto;
    }

    .gallery-mosaic .gallery-item:nth-child(4n + 1) {
        grid-column: 1 / -1;
        grid-row: span 2;
    }

    .gallery-mosaic .gallery-item:nth-child(4n + 4) {
        grid-column: 1 / -1;
    }

    .gallery.is-collapsed .gallery-item:nth-child(n + 5) {
        display: none;
    }

    .gallery-more {
        margin-inline: auto;
    }
}

/* Full-screen photo viewer */

.lightbox {
    position: fixed;
    inset: 0;
    z-index: 400;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
    color: #fff;
}

.lightbox[hidden] {
    display: none;
}

.lightbox-figure {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 46px 0;
}

.lightbox-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.lightbox-caption {
    padding: 8px 16px 0;
    font-size: 14px;
}

.lightbox-caption:empty {
    display: none;
}

.lightbox-count {
    position: absolute;
    top: 12px;
    left: 12px;
    font-family: Georgia, serif;
    font-size: 13px;
    font-weight: 400;
}

.lightbox-button {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    background: rgba(0, 0, 0, 0.35);
    color: #fff;
    cursor: pointer;
}

.lightbox-button svg {
    width: 22px;
    height: 22px;
}

.lightbox-close {
    top: 0;
    right: 0;
}

.lightbox-previous {
    top: 50%;
    left: 0;
    transform: translateY(-50%);
}

.lightbox-next {
    top: 50%;
    right: 0;
    transform: translateY(-50%);
}

.lightbox.is-single .lightbox-previous,
.lightbox.is-single .lightbox-next,
.lightbox.is-single .lightbox-count {
    display: none;
}

.lightbox :focus-visible {
    outline-color: #fff;
}

/* Before and after slider (pages/home.php) */

.before-after {
    position: relative;
    aspect-ratio: 1200 / 666;
    overflow: hidden;
    cursor: ew-resize;
    touch-action: pan-y;
    user-select: none;
}

.before-after-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
}

.before-after-clip {
    position: absolute;
    inset: 0;
    clip-path: inset(0 calc(100% - var(--position)) 0 0);
}

.before-after-handle {
    position: absolute;
    top: 0;
    bottom: 0;
    left: var(--position);
    width: 4px;
    margin-left: -2px;
    background: var(--white);
    pointer-events: none;
}

.before-after-handle .icon {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 44px;
    height: 44px;
    padding: 7px;
    border: 4px solid var(--white);
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.25);
    color: var(--white);
    transform: translate(-50%, -50%);
}

/* The range input is invisible but takes keyboard focus, so arrow keys move the slider. */
.before-after-range {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    opacity: 0;
    cursor: ew-resize;
}

.before-after:focus-within {
    outline: 3px solid var(--slate);
    outline-offset: 3px;
}

/* Blog cards (includes/components/blogList.php) */

.blog-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    list-style: none;
}

.blog-list-2 .blog-cards {
    grid-template-columns: repeat(2, 1fr);
    gap: 50px;
}

.blog-card {
    display: flex;
    flex-direction: column;
    border-radius: 4px;
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
    overflow: hidden;
}

.blog-card[hidden] {
    display: none;
}

.blog-card-image {
    display: block;
    overflow: hidden;
}

.blog-card-image img {
    display: block;
    width: 100%;
    height: 190px;
    object-fit: cover;
    transition: transform 0.4s;
}

.blog-card:hover .blog-card-image img {
    transform: scale(1.06);
}

.blog-card-body {
    padding: 15px;
}

.blog-card-title {
    margin-bottom: 15px;
    font-size: 18px;
    font-weight: 700;
    line-height: 27px;
}

.blog-card-title a {
    text-decoration: none;
}

.blog-card-title a:hover {
    text-decoration: underline;
}

.blog-card-excerpt {
    display: -webkit-box;
    max-height: 84px;
    overflow: hidden;
    font-size: 15px;
    line-height: 21px;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
    line-clamp: 4;
}

.blog-more {
    margin-top: 20px;
    text-align: center;
}

.blog-empty {
    padding: 30px 0;
    text-align: center;
}

.blog-search {
    position: relative;
    max-width: 387px;
    margin: 0 0 30px;
}

.blog-search input {
    width: 100%;
    height: 44px;
    padding: 0 44px 0 14px;
    border: 1px solid #c9c9c9;
    border-radius: 4px;
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: 300;
}

.blog-search .icon {
    position: absolute;
    top: 12px;
    right: 14px;
    width: 20px;
    height: 20px;
    color: #777;
    pointer-events: none;
}

@media (max-width: 1024px) {
    .blog-list-2 .blog-cards {
        gap: 20px;
    }
}

@media (max-width: 767px) {
    .blog-cards,
    .blog-list-2 .blog-cards {
        grid-template-columns: 1fr;
        padding-inline: 15px;
    }

    .blog-card-image img {
        height: 245px;
    }

    .blog-card-title {
        font-size: 20px;
    }
}

/* Testimonials (pages/home.php) */

.testimonial {
    margin: 0 0 30px;
}

.testimonial blockquote {
    margin: 0;
}

.testimonial-stars {
    display: block;
    width: 140px;
    height: 20px;
    margin-bottom: 14px;
    color: var(--orange);
}

.testimonial figcaption {
    margin-top: 14px;
    color: var(--slate);
    font-family: var(--font-heading);
    font-size: 18px;
}

.testimonial figcaption a {
    text-decoration: none;
}

.testimonial figcaption a:hover {
    text-decoration: underline;
}

/* Fade-up entrance used by a few pictures. */
.will-reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s, transform 0.8s;
}

.will-reveal.is-revealed {
    opacity: 1;
    transform: none;
}

/* 10. Page sections --------------------------------------------------------- */

/* Homepage: video hero. The text sits on a solid panel and the video plays beside it,
   cut on a roof-pitch diagonal, so nothing is ever printed over moving footage. */

.hero-video {
    position: relative;
    background: var(--slate);
    color: var(--white);
    overflow: hidden;
}

.hero-video-stage {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 600px;
    padding: 70px var(--gutter);
}

.hero-video-stage::before,
.hero-video-media {
    position: absolute;
    top: 0;
    right: 0;
    width: 54%;
    height: 100%;
    clip-path: polygon(22% 0, 100% 0, 100% 100%, 0 100%);
}

/* An orange edge that follows the diagonal */
.hero-video-stage::before {
    content: '';
    background: var(--orange);
    transform: translateX(-10px);
}

.hero-video-media {
    object-fit: cover;
    filter: saturate(0.8);
}

.hero-video-content {
    position: relative;
    width: 100%;
    max-width: var(--content-width);
    margin-inline: auto;
}

.hero-video-main {
    width: min(520px, 42vw);
}

.hero-video-map {
    display: block;
    width: 150px;
    height: auto;
    margin-bottom: 18px;
}

.hero-video h1,
.hero-video h2 {
    color: var(--white);
}

.hero-video h1 {
    font-size: clamp(44px, 4.4vw, 60px);
    line-height: 1.1;
}

.hero-video h1 strong {
    font-weight: 700;
}

.hero-video-tagline {
    margin-top: 16px;
    font-weight: 700;
}

.hero-video-promise {
    margin: 22px 0 32px;
    font-size: 24px;
    font-weight: 700;
}

.hero-video-toggle {
    position: absolute;
    right: 16px;
    bottom: 16px;
    padding: 6px 12px;
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: 50px;
    background: rgba(0, 0, 0, 0.45);
    color: var(--white);
    font-size: 13px;
    font-weight: 400;
    cursor: pointer;
}

/* The strip under the hero: offices and review links */

.hero-video-aside {
    background: rgba(0, 0, 0, 0.25);
}

.hero-video-aside-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 14px 30px;
    max-width: calc(var(--content-width) + var(--gutter) * 2);
    margin-inline: auto;
    padding: 20px var(--gutter);
}

.hero-video-aside h2 {
    font-size: 18px;
    font-weight: 400;
}

.hero-video-aside h2 a {
    text-decoration: none;
}

.hero-video-aside h2 a:hover {
    text-decoration: underline;
}

.hero-video-offices,
.hero-video-reviews {
    display: flex;
    align-items: center;
    list-style: none;
}

.hero-video-offices {
    gap: 22px;
    font-size: 18px;
    font-weight: 700;
}

.hero-video-reviews {
    gap: 18px;
}

.hero-video-reviews img {
    display: block;
    width: auto;
    height: 44px;
}

.hero-video-reviews li:nth-child(3) img {
    height: 24px;
}

.hero-video-aside .rule {
    width: 0;
    height: 40px;
    margin: 0;
    border-top: 0;
    border-left: 2px solid var(--orange);
}

@media (max-width: 1024px) {
    .hero-video-stage {
        display: block;
        min-height: 0;
        padding: 0;
    }

    .hero-video-stage::before {
        content: none;
    }

    .hero-video-media {
        position: static;
        display: block;
        width: 100%;
        height: 300px;
        clip-path: polygon(0 0, 100% 0, 100% 100%, 0 80%);
    }

    .hero-video-content {
        padding: 10px var(--gutter) 50px;
    }

    .hero-video-main {
        width: auto;
        max-width: 560px;
    }

    .hero-video h1 {
        max-width: 420px;
    }

    .hero-video-toggle {
        top: 16px;
        bottom: auto;
    }

    .hero-video-aside .rule {
        flex-basis: 100%;
        height: 0;
        border-top: 2px solid var(--orange);
        border-left: 0;
    }
}

@media (max-width: 767px) {
    /* A straight edge on phones: the diagonal ate too much of the short video */
    .hero-video-media {
        height: 210px;
        clip-path: none;
    }

    .hero-video-map {
        width: 120px;
        margin-bottom: 12px;
    }

    .hero-video h1 {
        font-size: 40px;
    }

    .hero-video-promise {
        font-size: 19px;
    }

    .hero-video-aside-inner {
        flex-direction: column;
        gap: 12px;
    }

    .hero-video-aside h2,
    .hero-video-offices {
        font-size: 17px;
    }

    .hero-video-offices {
        gap: 16px;
    }

    .hero-video-aside .rule {
        flex-basis: auto;
        width: 100%;
    }
}

/* Homepage: services (pages/home.php) */

.home-services {
    padding-block: 120px;
}

.home-services-list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    margin-top: 25px;
    padding: 30px 40px;
    list-style: none;
    text-align: center;
}

.home-services-icon {
    width: auto;
    height: 65px;
    fill: var(--orange);
}

.home-services-list h3 {
    margin: 25px 0 14px;
}

.home-services-list p {
    color: #767676;
}

.home-services-action {
    margin-top: 50px;
}

@media (max-width: 1024px) {
    .home-services-list {
        padding-inline: 0;
    }

    .home-services-list li {
        padding-inline: 8px;
    }
}

@media (max-width: 767px) {
    .home-services {
        padding-block: 50px;
    }

    .home-services-list {
        display: block;
        padding: 0;
    }

    .home-services-list li {
        margin-bottom: 40px;
    }

    .home-services-list h3 {
        margin: 12px 0 8px;
    }

    .home-services-action {
        margin-top: 0;
    }
}

/* Instant estimator steps (includes/components/estimateSteps.php) */

.estimator {
    background: var(--gray-light);
    color: var(--black);
}

.estimator-title {
    color: var(--black);
    font-size: 35px;
}

.estimator .rule {
    margin-block: 20px 22px;
}

.estimator-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    margin-top: 35px;
}

.estimator-column {
    padding: 38px 20px 0;
}

.estimator-column-left {
    text-align: right;
}

.estimator-column-right {
    text-align: left;
}

.estimator-step {
    margin-bottom: 8px;
}

.estimator-column-left .estimator-step p {
    max-width: 316px;
    margin-left: auto;
}

.estimator-column-right .estimator-step p {
    max-width: 316px;
}

.estimator-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    margin: 30px 0 10px;
    border-radius: 50%;
    background: var(--yellow);
    box-shadow: 0 3px 11px rgba(0, 0, 0, 0.1);
}

.estimator-icon .icon {
    width: 40px;
    height: 40px;
    fill: var(--white);
}

.estimator-step h3 {
    margin-bottom: 0;
    color: var(--black);
    font-size: 22px;
    font-weight: 600;
}

.estimator-phone {
    padding-top: 20px;
}

@media (max-width: 767px) {
    .estimator {
        padding-block: 40px;
    }

    .estimator-steps {
        display: block;
    }

    .estimator-column,
    .estimator-column-left,
    .estimator-column-right {
        padding: 0;
        text-align: center;
    }

    .estimator-column .estimator-step p {
        max-width: none;
    }

    .estimator-icon {
        width: 70px;
        height: 70px;
        margin-top: 10px;
    }

    .estimator-phone {
        display: none;
    }
}

/* Homepage: about (pages/home.php) */

.home-about {
    padding: 70px var(--gutter) 150px;
}

.home-about-inner {
    display: flex;
    gap: 20px;
}

.home-about-text {
    flex: 0 0 56.4%;
    padding-right: 29px;
}

.home-about-text p {
    margin-top: 36px;
    font-size: 18px;
    line-height: 36px;
}

.home-about-text .title-display + p {
    margin-top: 12px;
}

.home-about-button {
    min-height: 57px;
    margin-top: 11px;
    font-size: 18px;
}

.home-about-photo {
    flex: 1;
    min-height: 774px;
}

.home-about-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media (max-width: 1024px) {
    .home-about {
        padding-bottom: 70px;
    }
}

@media (max-width: 767px) {
    .home-about {
        padding: 15px 15px 30px;
    }

    .home-about-inner {
        display: block;
    }

    .home-about-text {
        padding-right: 0;
    }

    .home-about-text p {
        margin-top: 28px;
        font-size: 14px;
        line-height: 28px;
    }

    .home-about-text .title-display + p {
        margin-top: 45px;
    }

    .home-about-button {
        width: 209px;
        margin-top: 12px;
    }

    .home-about-photo {
        min-height: 0;
        margin: 70px 20px 0;
    }

    .home-about-photo img {
        aspect-ratio: 320 / 210;
        object-position: center 60%;
    }
}

/* Homepage: gallery (pages/home.php) */

.home-gallery {
    padding: 38px 50px 40px;
}

.home-gallery-intro {
    margin: 18px 0 20px;
}

@media (max-width: 767px) {
    .home-gallery {
        padding: 15px 21px;
    }

    .home-gallery-intro {
        margin-inline: -6px;
    }
}

/* Homepage: testimonials (pages/home.php) */

.home-testimonials {
    padding: 150px 0 70px 50px;
    background: url('../images/roofer.png') right center / auto no-repeat fixed;
}

.home-testimonials-panel {
    width: 600px;
    max-width: 100%;
    margin-left: max(0px, calc((100vw - 1250px) / 2));
    padding: 50px;
    background: var(--white);
}

.home-testimonials-google {
    text-align: center;
}

.home-testimonials-google p {
    margin: 12px 0 24px;
    color: var(--slate);
}

.home-testimonials-write {
    min-width: 200px;
    min-height: 50px;
    border-color: #d98a00;
    background: #febb05;
    color: var(--black);
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 600;
}

.home-testimonials-write:hover {
    background: var(--white);
    color: var(--black);
}

@media (max-width: 1024px) {
    .home-testimonials {
        padding: 70px 20px;
        background-attachment: scroll;
    }
}

@media (max-width: 767px) {
    .home-testimonials {
        padding: 60px 0 250px;
        background-position: center bottom;
        background-size: contain;
    }

    .home-testimonials-panel {
        width: 100%;
        padding: 0 15px 40px;
    }

    .home-testimonials-google img {
        width: 300px;
    }
}

/* Homepage: projects (pages/home.php) */

.home-projects {
    padding: 112px 50px;
}

.home-projects-intro {
    margin: 22px 0 40px;
}

.home-projects-intro a {
    color: var(--slate);
}

@media (max-width: 767px) {
    .home-projects {
        padding: 50px 15px;
    }
}

/* Homepage: blog (pages/home.php) */

.home-blog {
    padding-top: 0;
    padding-bottom: 120px;
}

.home-blog .title-large {
    margin-bottom: 14px;
}

@media (max-width: 767px) {
    .home-blog {
        padding: 15px 0;
    }
}

/* Homepage: newsletter (pages/home.php) */

.home-newsletter {
    padding: 100px 0 100px 50px;
    background: var(--navy);
    color: var(--white);
}

.home-newsletter-inner {
    display: grid;
    grid-template-columns: 5fr 2fr 5fr;
    max-width: 1160px;
    margin-left: max(0px, calc((100vw - 1250px) / 2));
}

.home-newsletter-text {
    padding-top: 50px;
}

.home-newsletter h2 {
    color: var(--lavender);
    font-size: 54px;
}

.home-newsletter-text p {
    max-width: 282px;
    margin-top: 44px;
    font-size: 20px;
    line-height: 30px;
}

.home-newsletter-line {
    padding: 50px 15px;
}

.home-newsletter-line .icon {
    width: 164px;
    max-width: 100%;
    height: auto;
    fill: var(--lavender);
}

.home-newsletter-form {
    max-width: 484px;
    padding: 10px 0 0 50px;
}

@media (max-width: 1024px) {
    .home-newsletter {
        padding: 70px 20px;
    }

    .home-newsletter-inner {
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }

    .home-newsletter-line {
        display: none;
    }

    .home-newsletter h2 {
        font-size: 43px;
    }

    .home-newsletter-form {
        padding-left: 0;
    }
}

@media (max-width: 767px) {
    .home-newsletter {
        padding: 30px 15px 40px;
    }

    .home-newsletter-inner {
        display: block;
    }

    .home-newsletter-text {
        padding-top: 30px;
    }

    .home-newsletter-text p {
        margin: 26px 0 40px;
        font-size: 16px;
        line-height: 24px;
    }

    .home-newsletter-form {
        max-width: none;
        padding: 0;
    }
}

/* Page hero: a photo banner with white text. The photo is set on the element in the page file.
   --overlay controls how much the photo is darkened. */

.page-hero {
    --overlay: 0.42;
    padding-block: 98px;
    background-color: #333;
    background-position: center;
    background-size: cover;
    color: var(--white);
}

.page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, var(--overlay));
}

.page-hero > .container {
    position: relative;
}

.page-hero h1 {
    margin-top: 8px;
    color: var(--white);
    font-size: 55px;
}

.page-hero-text {
    max-width: 542px;
    margin: 16px 0 8px;
    font-size: 24px;
    line-height: 36px;
}

/* Busy, bright photos: darken the left side behind the text and fade out toward the right. */
.page-hero-scrim::before {
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.78) 0%, rgba(0, 0, 0, 0.62) 40%, rgba(0, 0, 0, 0.15) 75%, rgba(0, 0, 0, 0.1) 100%);
}

.page-hero-scrim h1,
.page-hero-scrim .page-hero-text {
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
}

.page-hero-centered {
    text-align: center;
}

.page-hero-centered .page-hero-text {
    max-width: 722px;
    margin-inline: auto;
    text-align: left;
}

@media (max-width: 767px) {
    .page-hero {
        padding-block: 50px;
    }

    .page-hero h1 {
        font-size: 35px;
    }

    .page-hero-text {
        font-size: 18px;
        line-height: 27px;
    }

    /* On phones the text spans the full width, so darken evenly. */
    .page-hero-scrim::before {
        background: rgba(0, 0, 0, 0.65);
    }
}

/* "Interested in our services?" banner (includes/components/servicesCta.php) */

.services-cta-section {
    padding-block: 100px;
}

.services-cta {
    display: flex;
    padding: 50px;
    background: var(--black);
    color: var(--white);
}

.services-cta h2 {
    flex: 0 0 58.3333%;
    padding-right: 236px;
    color: var(--white);
    font-size: 30px;
}

.services-cta-text {
    flex: 1;
    font-size: 18px;
    line-height: 27px;
}

.services-cta-button {
    min-width: 274px;
    min-height: 60px;
    margin-top: 40px;
    border-color: var(--white);
    font-size: 18px;
}

@media (max-width: 1024px) {
    .services-cta h2 {
        padding-right: 30px;
    }
}

@media (max-width: 767px) {
    .services-cta-section {
        padding-block: 30px;
    }

    .services-cta {
        display: block;
        padding: 60px 20px 45px;
        border-radius: 16px;
        text-align: center;
    }

    .services-cta h2 {
        margin-bottom: 20px;
        padding-right: 0;
        font-size: 24px;
    }

    .services-cta-text {
        font-size: 16px;
        line-height: 24px;
    }

    .services-cta-button {
        margin-top: 24px;
    }
}

/* About (pages/about.php) */

.about-intro {
    padding-block: 39px;
}

.about-intro-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.about-intro h1 {
    margin-top: 8px;
}

.about-intro p {
    max-width: 507px;
    color: var(--slate);
    font-size: 24px;
    line-height: 35px;
}

.about-quality {
    padding-block: 120px;
    background-color: #7d868c;
    background-position: center;
    background-size: cover;
    background-attachment: fixed;
}

.about-quality::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(44, 57, 63, 0.4);
}

.about-quality > .container {
    position: relative;
}

.about-quality h2 {
    color: var(--white);
}

.about-quality-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-top: 75px;
    list-style: none;
    text-align: center;
}

.about-quality-cards li {
    padding: 50px 46px 48px;
    background: var(--white);
    color: var(--slate);
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 400;
    line-height: 27px;
}

.about-quality-icon {
    width: 70px;
    height: 52px;
    fill: var(--orange);
}

.about-quality-cards h3 {
    margin-top: 28px;
    font-size: 18px;
    font-weight: 700;
    line-height: 27px;
}

.about-quality-cards img {
    margin-top: 8px;
}

.about-numbers {
    padding-block: 120px;
}

.about-numbers-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    margin: 53px 0 50px;
    padding: 15px 40px;
    list-style: none;
    color: var(--slate);
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 400;
}

.about-numbers-list strong {
    display: block;
    margin-bottom: 8px;
    color: var(--orange);
    font-size: 80px;
    font-weight: 400;
    line-height: 103px;
}

.about-quote {
    padding: 70px 50px 70px 40px;
    background: #f4f4f4;
}

.about-quote-inner {
    display: grid;
    grid-template-columns: 1fr 2fr;
    max-width: 1200px;
}

.about-quote-figure {
    margin: 0;
    padding-right: 30px;
    text-align: right;
}

.about-quote-figure blockquote {
    max-width: 267px;
    margin: 0 0 0 auto;
    color: #090909;
    font-family: var(--font-heading);
    font-size: 35px;
    font-weight: 700;
    line-height: 44px;
}

.about-quote-figure figcaption {
    margin-top: 12px;
    color: var(--slate);
    font-size: 18px;
    font-weight: 700;
}

.about-quote-inner > p {
    padding-left: 30px;
    border-left: 2px solid var(--black);
    color: #2d2e32;
    font-size: 18px;
    line-height: 27px;
}

.about-quote-inner > p::after {
    content: '';
    display: block;
    width: min(586px, 100%);
}

.about-faq {
    padding-block: 120px;
}

.faq {
    max-width: 788px;
    margin: 63px auto 0;
}

.faq-item {
    border-bottom: 1px solid #ececec;
}

.faq-item summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 21px 20px;
    list-style: none;
    cursor: pointer;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary h3 {
    font-size: 16px;
    line-height: 24px;
}

.faq-icon {
    position: relative;
    flex: 0 0 28px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--orange);
}

.faq-icon::before,
.faq-icon::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 14px;
    height: 2px;
    margin: -1px 0 0 -7px;
    background: var(--white);
}

.faq-icon::after {
    transform: rotate(90deg);
}

.faq-item[open] .faq-icon::after {
    display: none;
}

.faq-item > p {
    padding: 14px 20px 32px;
    border-top: 1px solid #ececec;
}

@media (max-width: 1024px) {
    .about-quality {
        background-attachment: scroll;
    }

    .about-quality-cards {
        gap: 20px;
    }

    .about-quality-cards li {
        padding-inline: 20px;
    }
}

@media (max-width: 767px) {
    .about-intro-inner,
    .about-quality-cards,
    .about-numbers-list,
    .about-quote-inner {
        display: block;
    }

    .about-intro p {
        margin-top: 20px;
        font-size: 18px;
        line-height: 27px;
    }

    .about-quality,
    .about-numbers,
    .about-faq {
        padding-block: 50px;
    }

    .about-quality-cards {
        margin-top: 30px;
    }

    .about-quality-cards li {
        margin-bottom: 20px;
        padding: 30px 20px;
    }

    .about-numbers-list {
        margin-block: 20px 30px;
        padding: 0;
    }

    .about-numbers-list li {
        margin-bottom: 30px;
    }

    .about-numbers-list strong {
        font-size: 60px;
        line-height: 77px;
    }

    .about-quote {
        padding: 40px 15px;
    }

    .about-quote-figure {
        padding-right: 0;
        text-align: left;
    }

    .about-quote-figure blockquote {
        max-width: none;
        font-size: 28px;
        line-height: 36px;
    }

    .about-quote-inner > p {
        margin-top: 24px;
        padding: 20px 0 0;
        border-top: 2px solid var(--black);
        border-left: 0;
        font-size: 16px;
        line-height: 24px;
    }

    .faq {
        margin-top: 30px;
    }

    .faq-item summary {
        padding-inline: 0;
    }

    .faq-item > p {
        padding-inline: 0;
    }
}

/* Contact (pages/contact.php) */

.contact {
    padding-block: 120px;
}

.contact-inner {
    display: flex;
}

.contact-form {
    flex: 0 0 58.3333%;
    padding-right: 146px;
}

.contact-form .form {
    max-width: 454px;
    margin-top: 70px;
}

.contact-form .form-field {
    margin-bottom: 12px;
}

.contact-details {
    flex: 1;
    padding: 99px 50px 80px;
    background: var(--orange);
    color: var(--white);
    font-size: 16px;
    line-height: 25px;
}

.contact-details h2 {
    margin-bottom: 8px;
    color: var(--white);
    font-size: 24px;
}

.contact-details > p {
    max-width: 312px;
    line-height: 29px;
}

.contact-details .rule {
    margin: 35px 0 32px;
}

.contact-details .rule ~ .rule {
    margin-top: 64px;
}

.contact-form,
.contact-details {
    min-width: 0;
}

.contact-details a {
    text-decoration: none;
    overflow-wrap: anywhere;
}

.contact-details a:hover,
.contact-details .contact-email {
    text-decoration: underline;
}

.contact-details address p {
    margin-top: 24px;
}

.contact-mobile-action {
    padding: 15px 0;
}

.contact-map {
    height: 603px;
    margin-top: 130px;
}

.contact-map iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
}

@media (max-width: 1024px) {
    .contact {
        padding-block: 100px;
    }

    .contact-form {
        padding-right: 15px;
    }

    .contact-details {
        flex: 0 0 41.6667%;
    }
}

@media (max-width: 767px) {
    .contact {
        padding: 50px 0 0;
    }

    .contact-inner {
        display: block;
    }

    .contact-form {
        padding: 0 15px 70px;
    }

    .contact-form .form {
        margin-top: 30px;
    }

    .contact-details {
        padding: 60px 15px 70px;
    }

    .contact-details .rule {
        margin: 18px 0 20px;
    }

    .contact-mobile-action {
        padding: 140px 0 15px;
    }

    .contact-map {
        display: none;
    }
}

/* Community (pages/community.php) */

.community-event {
    padding: 70px var(--gutter) 150px;
}

.community-event-inner {
    display: flex;
    gap: 20px;
}

.community-event-text {
    flex: 0 0 56.4%;
}

.community-event-text p {
    max-width: 413px;
    margin-top: 30px;
    color: #666;
    font-size: 18px;
    line-height: 36px;
}

.community-event-logo {
    display: block;
    margin: 8px 0 0 128px;
}

.community-event-photo {
    flex: 1;
    display: flex;
    align-items: center;
}

.community-organizations {
    padding: 40px var(--gutter) 85px;
    background: var(--gray-light);
}

.community-organizations h2 {
    margin: 8px 0 48px;
    color: #050505;
}

.gallery-logos .gallery-list {
    gap: 0;
}

.gallery-logos .gallery-item {
    padding: 4px;
}

.gallery-logos .gallery-item img {
    aspect-ratio: 272 / 202;
    object-fit: contain;
}

@media (max-width: 767px) {
    .community-event {
        padding: 30px 15px 50px;
    }

    .community-event-inner {
        display: block;
    }

    .community-event-text p {
        max-width: none;
        font-size: 14px;
        line-height: 28px;
    }

    .community-event-logo {
        margin: 20px auto;
    }

    .community-organizations {
        padding: 30px 15px 50px;
    }

    .community-organizations h2 {
        margin-bottom: 24px;
    }
}

/* Gallery page (pages/gallery.php) */

.gallery-page {
    padding: 30px 50px;
}

.gallery-page-intro {
    margin: 8px 0 18px;
    color: #c75a00;
}

@media (max-width: 767px) {
    .gallery-page {
        padding: 20px 15px;
    }
}

/* Page hero variations */

.page-hero-text-small {
    font-size: 18px;
    line-height: 27px;
}

.page-hero-centered .page-hero-text-wide,
.page-hero-text-wide {
    max-width: none;
}

/* Feature rows: photo beside text (pages/roofingservices.php, pages/custom-decks.php) */

.feature-row {
    padding-block: 0 80px;
}

.page-hero + .feature-row {
    padding-top: 80px;
}

.feature-row-inner {
    display: flex;
    align-items: stretch;
    justify-content: space-between;
}

.feature-row-image {
    position: relative;
    flex: 0 0 41.6667%;
    min-height: 500px;
    border-radius: 10px;
    overflow: hidden;
}

/* The photo fills its box without stretching the row taller than the text. */
.feature-row-image img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.feature-row-text {
    flex: 0 0 41.6667%;
    padding: 50px 20px 50px 0;
    color: var(--black);
    font-size: 18px;
    line-height: 27px;
}

.feature-row-image-right .feature-row-inner {
    flex-direction: row-reverse;
}

.feature-row-image-right .feature-row-text {
    flex-basis: 50%;
    padding-right: 40px;
}

.feature-row-text h2 {
    margin: 8px 0 16px;
}

.feature-row-title-large {
    color: var(--black);
    font-size: 36px;
}

.feature-row-text p + p {
    margin-top: 24px;
}

.feature-row-phone a {
    text-decoration: none;
}

.feature-row-button {
    min-width: 221px;
    min-height: 60px;
    margin-top: 35px;
    font-size: 18px;
}

@media (max-width: 767px) {
    .feature-row,
    .page-hero + .feature-row {
        padding-block: 15px 30px;
    }

    /* On phones the text comes first, then the photo. */
    .feature-row-inner,
    .feature-row-image-right .feature-row-inner {
        flex-direction: column-reverse;
    }

    .feature-row-image {
        flex: none;
        min-height: 0;
        aspect-ratio: 36 / 25;
    }

    .feature-row-text,
    .feature-row-image-right .feature-row-text {
        padding: 20px 0 10px;
        font-size: 16px;
        line-height: 24px;
    }

    .feature-row-title-large {
        font-size: 28px;
    }

    .feature-row-button {
        width: 100%;
    }
}

/* Brand logo rows (pages/roofing.php, pages/roofingservices.php, pages/vinylsiding.php) */

.gallery-brands .gallery-list {
    gap: 0;
    align-items: center;
}

.gallery-brands .gallery-item img {
    height: 93px;
    aspect-ratio: auto;
    object-fit: contain;
    padding: 0 20px;
}

.quality-products {
    padding-block: 50px 0;
}

.quality-products h2 {
    margin: 8px 0 29px;
    color: var(--black);
    font-size: 40px;
}

/* Heading and text beside a contained picture (Catch-All System, pages/roofingservices.php) */

.story {
    padding-block: 70px 150px;
}

.story-rule {
    margin: 10px 0;
    border: 0;
    border-top: 2px solid #808080;
}

.story-inner {
    display: flex;
    gap: 20px;
}

.story-text {
    flex: 0 0 56.4%;
}

.story-text h2 {
    max-width: 778px;
    margin-right: -120px;
}

.story-text p {
    max-width: 413px;
    margin-top: 12px;
    color: var(--slate);
    font-size: 18px;
    line-height: 36px;
}

.story-photo {
    flex: 1;
    display: flex;
    align-items: center;
    padding-top: 80px;
}

@media (max-width: 767px) {
    .quality-products h2 {
        font-size: 28px;
    }

    .story {
        padding-block: 30px 50px;
    }

    .story-inner {
        display: block;
    }

    .story-text h2 {
        margin-right: 0;
    }

    .story-text p {
        max-width: none;
        font-size: 14px;
        line-height: 28px;
    }

    .story-photo {
        padding-top: 20px;
    }
}

/* Services overview (pages/roofing.php) */

.services-hero {
    padding-block: 51px;
}

.services-hero h1 {
    font-size: 50px;
}

.services-hero-button {
    min-width: 222px;
    min-height: 60px;
    margin: 33px 0 10px;
}

.services-start {
    background: rgba(243, 106, 9, 0.16);
    color: var(--black);
}

.services-start-title {
    color: var(--black);
    font-size: 55px;
}

.services-start-video {
    display: block;
    width: 650px;
    max-width: 100%;
    aspect-ratio: 650 / 368;
    margin: 10px auto;
    background: #000;
}

.services-start-quote {
    margin: 36px 0 0;
    font-size: 20px;
    line-height: 30px;
}

.services-start-quote blockquote {
    margin: 0;
}

.services-start-quote figcaption {
    margin-top: 12px;
    font-weight: 700;
}

.services-all {
    padding: 70px 0 0;
}

.services-all-title {
    margin: 8px 40px 86px;
    color: #033b5d;
    font-size: 48px;
    font-weight: 800;
    text-align: center;
}

.services-all-inner {
    display: flex;
    max-width: 1440px;
    margin-inline: auto;
    padding-left: 16.6667%;
}

.services-all-photo {
    flex: 0 0 600px;
    max-width: 50%;
    height: 404px;
    border-radius: 8px;
    background: #eff2f6;
}

.services-all-photo img {
    display: block;
    width: 480px;
    max-width: none;
    height: 442px;
    margin: -38px 0 0 -140px;
    object-fit: contain;
    object-position: bottom;
}

.services-all-list {
    flex: 1;
    max-width: 600px;
    margin-left: -100px;
    padding-top: 20px;
    list-style: none;
}

.services-all-list li {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    padding: 12px 15px 12px 0;
    border-radius: 4px;
    background: var(--white);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
    color: #5d7686;
    font-size: 15px;
    line-height: 23px;
}

.services-all-icon {
    flex: 0 0 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    margin: 0 24px;
    border-radius: 50%;
    background: #eff2f6;
}

.services-all-icon .icon {
    width: 28px;
    height: 28px;
    fill: #0095ff;
}

.services-all-list h3 {
    font-size: 18px;
}

.services-all-list h3 a {
    text-decoration: none;
}

.services-all-list p a {
    color: #c75a00;
}

.services-all .gallery-brands {
    max-width: 1200px;
    margin: 50px auto 0;
    padding-inline: 40px;
}

.services-all .gallery-brands .gallery-item img {
    height: 127px;
}

.services-consult {
    margin-top: 50px;
    padding-block: 0;
    background-color: #2e3347;
    background-position: center;
    background-size: cover;
    background-attachment: fixed;
}

.services-consult {
    color: var(--white);
}

.services-consult::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(46, 51, 71, 0.88);
}

.services-consult-inner {
    position: relative;
    display: flex;
}

.services-consult-photo {
    flex: 0 0 50%;
    margin-top: -50px;
}

.services-consult-photo img {
    display: block;
    width: 100%;
    height: auto;
}

.services-consult-form {
    flex: 0 0 50%;
    padding: 70px 0 60px;
}

.services-consult-form h2 {
    padding-left: 15px;
    color: var(--white);
    font-size: 35px;
    font-weight: 600;
}

.services-consult-form > p {
    max-width: 465px;
    margin: 20px 0 40px;
    padding-left: 15px;
    font-size: 18px;
    line-height: 27px;
}

.services-consult-form .form-actions {
    justify-content: flex-start;
    padding-top: 20px;
}

.services-consult-form .form-actions .button {
    min-width: 230px;
    min-height: 42px;
}

@media (max-width: 1024px) {
    .services-all-inner {
        padding-left: 20px;
    }

    .services-all-photo img {
        margin-left: -20px;
    }

    .services-consult {
        background-attachment: scroll;
    }
}

@media (max-width: 767px) {
    .services-start-title {
        font-size: 30px;
    }

    .services-start-quote {
        font-size: 16px;
        line-height: 24px;
    }

    .services-all {
        padding-top: 30px;
    }

    .services-all-title {
        margin: 0 15px 30px;
        font-size: 28px;
    }

    .services-all-inner {
        display: block;
        padding: 0 15px;
    }

    .services-all-photo {
        max-width: none;
        height: auto;
        margin-top: 40px;
    }

    .services-all-photo img {
        width: 100%;
        height: auto;
        margin: -38px 0 0;
    }

    .services-all-list {
        max-width: none;
        margin-left: 0;
    }

    .services-all .gallery-brands {
        padding-inline: 15px;
    }

    .services-consult-inner {
        display: block;
    }

    .services-consult-photo {
        display: none;
    }

    .services-consult-form {
        padding: 40px 0;
    }
}

/* Vinyl siding (pages/vinylsiding.php) */

.siding-intro {
    color: #383838;
    text-align: center;
}

.siding-intro h2 {
    color: #383838;
    font-weight: 500;
}

.siding-intro-rule {
    width: 68px;
    margin: 30px auto 31px;
    border: 0;
    border-top: 1px solid #383838;
}

.siding-intro p {
    max-width: 774px;
    margin-inline: auto;
    font-size: 24px;
    line-height: 36px;
    text-align: left;
}

.siding-brands {
    padding-block: 50px;
    text-align: center;
}

.siding-brands h2 {
    color: #767676;
    font-weight: 600;
}

.siding-brands-rule {
    width: 43px;
    margin: 6px auto 12px;
    border: 0;
    border-top: 3px solid var(--orange);
}

.siding-brands .gallery-brands .gallery-item img {
    height: 124px;
}

.siding-chat {
    display: flex;
    padding-top: 40px;
    color: var(--black);
}

.siding-chat-text {
    flex: 0 0 58.3333%;
    padding: 40px 20px 70px 70px;
}

.siding-chat-text h2 {
    color: var(--black);
    font-size: 60px;
    font-weight: 800;
}

.siding-chat-text p {
    max-width: 591px;
    margin-top: 16px;
    font-size: 24px;
    line-height: 48px;
}

.siding-chat-photo {
    flex: 1;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.siding-chat-photo img {
    max-height: 448px;
    width: auto;
}

.siding-projects {
    padding: 15px 50px 30px;
}

.siding-projects-title {
    margin: 8px 0 38px;
    color: #c75a00;
    font-family: var(--font-body);
    font-size: 30px;
    font-weight: 700;
    line-height: 45px;
    text-align: center;
}

@media (max-width: 767px) {
    .siding-intro p {
        font-size: 18px;
        line-height: 27px;
    }

    .siding-chat {
        display: block;
        padding-top: 0;
    }

    .siding-chat-text {
        padding: 30px 15px;
    }

    .siding-chat-text h2 {
        font-size: 36px;
    }

    .siding-chat-text p {
        font-size: 18px;
        line-height: 32px;
    }

    .siding-projects {
        padding-inline: 15px;
    }

    .siding-projects-title {
        font-size: 22px;
        line-height: 32px;
    }
}

/* Rain gutters (pages/raingutters.php) */

.gutters-hero {
    padding-block: 85px 35px;
    background-position: left center;
}

.gutters-hero h1 {
    font-size: 60px;
    text-align: center;
}

.gutters-hero-rule {
    width: 50px;
    margin: 18px auto 19px;
    border: 0;
    border-top: 1px solid var(--white);
}

.gutters-hero-button {
    min-width: 214px;
    min-height: 44px;
    margin: 27px 0 10px;
}

.gutters-quote .about-quote-inner > p {
    font-size: 24px;
    line-height: 36px;
}

.gutters-reasons {
    display: flex;
    color: var(--black);
}

.gutters-reasons-photo,
.gutters-reasons-text,
.gutters-clients-photo,
.gutters-clients-text {
    min-width: 0;
}

.gutters-reasons-photo {
    flex: 0 0 41.6667%;
}

.gutters-reasons-photo img {
    display: block;
    width: 100%;
}

.gutters-reasons-text {
    flex: 1;
    padding: 70px 30px;
}

.gutters-reasons-eyebrow {
    color: var(--gray-text);
}

.gutters-reasons-text h2 {
    font-size: 24px;
    font-weight: 700;
}

.gutters-reasons-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 21px 0;
    margin-top: 37px;
    list-style: none;
}

.gutters-reasons-list li {
    display: flex;
}

.gutters-reasons-number {
    flex: 0 0 130px;
    padding: 8px 5px;
    color: #c77700;
    font-family: var(--font-heading);
    font-size: 55px;
    line-height: 72px;
}

.gutters-reasons-list li > div {
    padding: 23px 15px 15px;
}

.gutters-reasons-list h3 {
    margin-bottom: 8px;
    font-size: 18px;
    font-weight: 600;
}

.gutters-reasons-list p {
    line-height: 25px;
}

.gutters-clients {
    display: flex;
    max-width: 1240px;
    margin-inline: auto;
    padding: 80px 20px 0;
}

.gutters-clients-photo {
    flex: 0 0 50%;
    padding: 53px 10px 0;
}

.gutters-clients-photo img {
    display: block;
}

.gutters-clients-text {
    flex: 1;
}

.gutters-clients-text h2 {
    color: #284053;
    font-size: 40px;
    font-weight: 700;
}

.gutters-clients-quotes {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px 20px;
    margin-top: 45px;
    padding-inline: 10px;
}

.gutters-clients-quotes figure {
    margin: 0;
}

.gutters-clients-quotes blockquote {
    margin: 0;
    line-height: 24px;
}

.gutters-clients-quotes figcaption {
    margin-top: 16px;
    color: #284053;
    font-family: var(--font-heading);
    font-weight: 700;
}

.gutters-clients-google {
    display: inline-block;
    margin: 12px 0 0 10px;
}

.gutters-ready {
    padding-block: 30px;
    background: #40434a;
}

.gutters-ready-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
}

.gutters-ready h2 {
    color: var(--white);
    font-weight: 700;
}

.gutters-ready p {
    color: #f3f3f3;
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 400;
}

.gutters-ready p a {
    text-decoration: none;
}

.gutters-ready-button {
    justify-self: center;
    min-width: 258px;
    min-height: 50px;
    margin-top: 12px;
}

@media (max-width: 1024px) {
    .gutters-reasons-list {
        grid-template-columns: 1fr;
    }

    .gutters-reasons-number {
        flex-basis: 80px;
    }

    .gutters-clients-photo img {
        height: auto;
    }

    .gutters-clients-quotes {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767px) {
    .gutters-hero h1 {
        font-size: 40px;
    }

    .gutters-quote .about-quote-inner > p {
        font-size: 18px;
        line-height: 27px;
    }

    .gutters-reasons,
    .gutters-clients {
        display: block;
    }

    .gutters-reasons-text {
        padding: 30px 15px;
    }

    .gutters-reasons-list,
    .gutters-clients-quotes {
        grid-template-columns: 1fr;
    }

    .gutters-clients {
        padding: 30px 15px 0;
    }

    .gutters-clients-photo {
        padding: 0;
    }

    .gutters-clients-text {
        padding-bottom: 30px;
    }

    .gutters-clients-text h2 {
        margin-top: 20px;
        font-size: 30px;
    }

    .gutters-ready-inner {
        display: block;
    }

    .gutters-ready-button {
        margin-top: 20px;
    }
}

/* Windows (pages/windows.php) */

.windows-hero {
    height: 560px;
    background-position: left center;
    background-size: cover;
}

.windows-intro {
    padding-block: 108px 98px;
    background: linear-gradient(45deg, #ebeeff 0, #fcfbff 100%);
    color: #051e60;
}

.windows-intro-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.windows-intro h1 {
    max-width: 506px;
    margin-top: 8px;
    color: #051e60;
}

.windows-intro p {
    font-size: 24px;
    line-height: 36px;
}

.windows-difference {
    padding-left: 100px;
    background-color: #b8c9d9;
    background-position: center;
    background-size: cover;
    background-attachment: fixed;
}

.windows-difference-panel {
    width: 720px;
    max-width: 100%;
    padding: 108px 115px 100px;
    background: rgba(84, 122, 160, 0.9);
    color: var(--white);
    text-align: center;
}

.windows-difference h2 {
    color: var(--white);
    font-weight: 600;
}

.windows-difference-rule {
    width: 69px;
    margin: 18px auto 24px;
    border: 0;
    border-top: 2px solid var(--white);
}

.windows-difference p {
    font-size: 24px;
    line-height: 36px;
}

.windows-difference-button {
    min-width: 249px;
    min-height: 54px;
    margin-top: 34px;
}

@media (max-width: 1024px) {
    .windows-hero {
        height: 360px;
    }

    .windows-difference {
        padding-left: 0;
        background-attachment: scroll;
    }

    .windows-difference-panel {
        padding-inline: 40px;
    }
}

@media (max-width: 767px) {
    .windows-hero {
        height: 240px;
    }

    .windows-intro {
        padding-block: 50px;
    }

    .windows-intro-inner {
        display: block;
    }

    .windows-intro h1 {
        margin-bottom: 20px;
    }

    .windows-intro p,
    .windows-difference p {
        font-size: 18px;
        line-height: 27px;
    }

    .windows-difference-panel {
        width: 100%;
        padding: 50px 15px;
    }
}

/* Instant estimator testimonials (pages/instant-estimator.php) */

.estimator-testimonials {
    padding-block: 116px 100px;
    color: var(--black);
}

.estimator-testimonials-intro {
    margin: 20px 0 56px;
    font-size: 20px;
    line-height: 30px;
    text-align: center;
}

.estimator-testimonials-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    list-style: none;
}

.estimator-testimonials-list li {
    padding: 35px 25px 25px;
    border-radius: 20px;
    background: #f5f5f5;
    text-align: center;
}

.estimator-testimonials-list figure {
    margin: 0;
}

.estimator-testimonials-icon {
    width: 44px;
    height: 44px;
}

.estimator-testimonials-list blockquote {
    margin: 24px 0 30px;
    color: var(--gray-text);
}

.estimator-testimonials-list figcaption {
    margin-bottom: 20px;
    color: var(--slate);
    font-family: var(--font-heading);
    font-size: 18px;
}

.estimator-testimonials-action {
    margin-top: 50px;
    text-align: center;
}

@media (max-width: 767px) {
    .estimator-testimonials {
        padding-block: 50px;
    }

    .estimator-testimonials-list {
        grid-template-columns: 1fr;
    }
}

/* Instant estimator thank-you page (pages/iethanks.php) */

.thanks-hero {
    padding-block: 25px;
}

.thanks-hero h1 {
    font-size: 50px;
}

.thanks-hero p {
    margin: 12px 0 8px;
    font-size: 20px;
    line-height: 30px;
}

.thanks-next {
    padding-block: 51px 8px;
    color: var(--black);
}

.thanks-next p {
    max-width: 689px;
    margin: 16px auto 0;
    line-height: 32px;
}

.thanks-points {
    padding-block: 80px;
}

.thanks-points-list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    list-style: none;
    color: var(--black);
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 400;
    text-align: center;
}

.thanks-points-icon {
    display: block;
    width: 70px;
    height: 70px;
    margin: 0 auto 10px;
    fill: #282e34;
}

.thanks-review {
    padding-block: 120px;
}

.thanks-review-panel {
    position: relative;
    margin: 0;
    padding: 73px 50px 50px;
    background: #131c2d;
    color: var(--white);
    font-family: var(--font-heading);
    font-weight: 400;
}

.thanks-review-icon {
    position: absolute;
    top: -51px;
    left: 50px;
    width: 111px;
    height: 94px;
    fill: #f86b61;
}

.thanks-review-panel blockquote {
    margin: 0;
    font-size: 24px;
    line-height: 30px;
}

.thanks-review-footer {
    display: flex;
    align-items: center;
    gap: 17px;
    margin-top: 38px;
    font-size: 20px;
    line-height: 28px;
}

.thanks-review-photo {
    border-radius: 50%;
    object-fit: cover;
}

.thanks-review-button {
    min-width: 327px;
    min-height: 59px;
    margin-left: auto;
    border-color: var(--orange);
}

@media (max-width: 767px) {
    .thanks-points {
        padding-block: 40px;
    }

    .thanks-points-list {
        grid-template-columns: 1fr 1fr;
        gap: 30px 10px;
    }

    .thanks-review {
        padding-block: 70px 50px;
    }

    .thanks-review-panel {
        padding-inline: 20px;
    }

    .thanks-review-icon {
        left: 20px;
    }

    .thanks-review-panel blockquote {
        font-size: 20px;
    }

    .thanks-review-footer {
        flex-wrap: wrap;
    }

    .thanks-review-button {
        min-width: 0;
        width: 100%;
    }
}

/* Projects index (pages/projects.php) */

.projects-list {
    padding-block: 100px 120px;
}

.projects-intro {
    margin-top: 16px;
}

.project-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px 80px;
    margin-top: 47px;
    list-style: none;
}

.project-card {
    color: var(--slate);
    text-align: center;
}

.project-card-image {
    display: block;
}

.project-card-image img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.project-card:first-child .project-card-image img {
    aspect-ratio: 16 / 9;
}

.project-card h2 {
    margin: 40px 0 0;
    text-align: left;
}

.project-card p {
    margin: 25px 0 18px;
    text-align: left;
}

.projects-contact {
    padding-block: 12px 80px;
}

.projects-contact-title {
    margin: 8px 0 100px;
    color: #c75a00;
    font-family: var(--font-body);
    font-size: 24px;
    font-weight: 700;
    line-height: 36px;
    text-align: center;
}

.projects-contact-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    list-style: none;
    text-align: center;
}

.projects-contact-cards li {
    padding: 50px 20px;
    box-shadow: 0 3px 11px rgba(0, 0, 0, 0.25);
    color: var(--black);
}

.projects-contact-icon {
    width: 80px;
    height: 80px;
    fill: #fe763a;
}

.projects-contact-cards h3 {
    margin: 30px 0 22px;
    font-size: 22px;
    font-weight: 600;
}

.projects-contact-cards p {
    margin-bottom: 16px;
}

.projects-contact-phone {
    color: #1565c0;
    font-weight: 600;
    text-decoration: none;
}

@media (max-width: 767px) {
    .projects-list {
        padding-block: 40px 50px;
    }

    .project-cards,
    .projects-contact-cards {
        grid-template-columns: 1fr;
    }

    .project-cards {
        gap: 50px;
    }

    .projects-contact-title {
        margin-bottom: 40px;
    }
}

/* Single project (templates/project.php) */

.project {
    padding: 0 var(--gutter) 60px;
}

.project-title {
    padding: 15px 24px 0;
    font-size: 52px;
    text-align: center;
}

.project-summary {
    margin: 23px 0 0;
    color: var(--slate);
    font-size: 18px;
    line-height: 27px;
}

.project-feature {
    display: grid;
    grid-template-columns: 1fr 1fr;
    padding-block: 25px;
}

.project-video {
    width: 575px;
    max-width: 100%;
    aspect-ratio: 575 / 345;
}

.project-video iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

.project-intro {
    padding-top: 8px;
    color: var(--slate);
}

.project-gallery {
    margin-top: 68px;
    padding-inline: 20px;
}

.project-feature + .project-gallery {
    margin-top: 60px;
}

.project-photo .gallery-item img {
    height: 427px;
    aspect-ratio: auto;
}

.project-photo-caption {
    margin: 14px 0 0 30px;
    color: var(--black);
    font-size: 24px;
}

.project-photo-description {
    max-width: 300px;
    margin: 0 0 0 30px;
    color: var(--black);
    line-height: 23px;
}

@media (max-width: 767px) {
    .project {
        padding-bottom: 30px;
    }

    .project-title {
        padding-inline: 0;
        font-size: 30px;
    }

    .project-feature {
        display: block;
    }

    .project-intro {
        padding-top: 20px;
    }

    /* Photos run edge to edge on phones. */
    .project-gallery {
        margin: 30px calc(var(--gutter) * -1) 0;
        padding-inline: 0;
    }

    .project-gallery .gallery-list {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .project-photo .gallery-item img {
        height: 200px;
    }

    .project-photo-caption,
    .project-photo-description {
        margin-left: 15px;
    }

    .project-photo-description {
        margin-bottom: 20px;
    }
}

/* Blog index (pages/newsblog.php) */

.blog-index {
    padding-block: 100px 120px;
}

.blog-index-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 100px;
}

.blog-index-header .blog-search {
    width: 360px;
    margin: 0;
}

.blog-index .blog-card {
    box-shadow: none;
}

.blog-index .blog-card-image img,
.post-more .blog-card-image img {
    height: 263px;
}

.blog-card-more {
    margin-top: 15px;
    color: var(--black);
    opacity: 0.8;
}

.blog-card-more a {
    text-decoration: none;
}

.blog-card-more a:hover {
    text-decoration: underline;
}

.blog-index .blog-card-excerpt,
.post-more .blog-card-excerpt {
    max-height: 90px;
    color: var(--black);
    font-size: 16px;
    line-height: 22.4px;
}

.post-more .blog-card-excerpt {
    max-height: 67px;
    -webkit-line-clamp: 3;
    line-clamp: 3;
}

@media (max-width: 767px) {
    .blog-index {
        padding-block: 40px 50px;
    }

    .blog-index-header {
        display: block;
        margin-bottom: 30px;
    }

    .blog-index-header .blog-search {
        width: 100%;
        margin-top: 20px;
    }

    .blog-index .blog-cards {
        padding-inline: 0;
    }
}

/* Blog post (templates/blogPost.php) */

.post-hero {
    padding: 180px 50px;
    text-align: center;
}

.post-hero h1 {
    max-width: 860px;
    margin-inline: auto;
    font-size: 50px;
}

.post-meta {
    margin-top: 17px;
}

.post-body {
    max-width: 1140px;
    margin-inline: auto;
    padding: 135px 20px 30px;
    line-height: 24px;
}

.post-image {
    display: block;
    width: 100%;
    margin-bottom: 12px;
}

/* The three oldest posts use a narrower column with black text and headings tight to their paragraphs. */
.post-narrow .post-body {
    max-width: 824px;
    color: var(--black);
}

.post-narrow .post-body h2 {
    margin-bottom: 0;
    color: var(--black);
}

.post-narrow .post-image {
    margin-bottom: 24px;
}

.post-body p,
.post-body ul,
.post-body ol {
    margin-bottom: 24px;
}

.post-body h2 {
    margin: 0 0 24px;
    color: var(--gray-text);
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: 700;
    line-height: 24px;
}

.post-body ul,
.post-body ol {
    padding-left: 40px;
}

.post-body a {
    color: #c75a00;
}

.post-figure {
    margin: 0 0 24px;
}

.post-quote {
    max-width: 1020px;
    margin: 40px auto;
    padding: 90px 40px 70px;
    background: var(--orange) url('../images/icons/quote-small.svg') center 50px / 36px no-repeat;
    color: var(--white);
    text-align: center;
}

.post-quote p {
    max-width: 570px;
    margin: 0 auto 19px;
    font-family: var(--font-heading);
    font-size: 30px;
    font-style: italic;
    font-weight: 400;
    line-height: 39px;
}

.post-quote cite {
    font-family: var(--font-heading);
    font-size: 18px;
    font-style: normal;
    font-weight: 400;
}

.post-more {
    padding-block: 0 120px;
}

.post-more .container {
    max-width: 1100px;
}

.post-more h2 {
    margin-bottom: 25px;
}

.post-more .blog-card {
    box-shadow: none;
}

@media (max-width: 767px) {
    .post-hero {
        padding: 80px 15px;
    }

    .post-hero h1 {
        font-size: 30px;
    }

    .post-body {
        padding: 40px 15px 20px;
    }

    .post-quote {
        padding-inline: 20px;
    }

    .post-quote p {
        font-size: 22px;
        line-height: 30px;
    }

    .post-more {
        padding-bottom: 50px;
    }

    .post-more .blog-cards {
        padding-inline: 0;
    }
}

/* Privacy policy (pages/privacy.php) */

.privacy {
    font-size: 15px;
    line-height: 25px;
}

.privacy h1 {
    margin-bottom: 30px;
    font-size: 24px;
    font-weight: 700;
}

.privacy h2 {
    margin: 28px 0 8px;
    font-size: 16px;
}

/* Template text that was never filled in. Shown in red, as on the old site, so it is easy to find. */
.privacy-unfinished {
    color: #c4002b;
}

/* Page not found (templates/notFound.php) */

.not-found {
    padding-block: 110px 140px;
}

.not-found-art {
    width: min(100%, 720px);
    height: auto;
}

.not-found-title {
    margin-top: 10px;
    font-size: 30px;
}

.not-found-text {
    margin: 10px 0 26px;
    font-size: 18px;
}

.not-found-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 26px;
    justify-content: center;
    margin-top: 26px;
    list-style: none;
    color: var(--slate);
    font-weight: 400;
}

/* 11. Motion preferences ---------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .will-reveal {
        opacity: 1;
        transform: none;
    }

    .home-testimonials {
        background-attachment: scroll;
    }
}
