:root {
    --white: rgb(255 255 255);
    --light-gray: rgb(240 241 242);
    --gray: rgb(90 90 92);
    --dark-gray: rgb(52 52 54);

    --blue: rgb(0 69 89);
    --light-blue: rgb(45 181 193);
    --faint-blue: rgb(213 240 243);
    --aqua: rgb(0 70 81);
    --green: rgb(0 73 52);
}

body {
    font-size: max(18px, 1.1vw);
    font-family: 'Open Sans', sans-serif;
    line-height: 1.3;
}

header {
    box-sizing: border-box;
    position: fixed;
    top: 0;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25em 16vw;
    background: transparent linear-gradient(270deg, var(--blue) 0%, var(--aqua) 68%, var(--green) 100%) 0% 0% no-repeat padding-box;
    z-index: 3;
}

header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    box-shadow: 0 0.1em 0.75em rgba(0, 0, 0, 0.25);
    opacity: 0;
    transition: opacity 0.15s;
    z-index: -1;
}

header.scrolled::before {
    opacity: 1;
}

.header-logos {
    display: flex;
    justify-content: space-between;
}

.header-logos a {
    display: flex;
}

.header-logos img {
    height: 2.6em;
}

.divider {
    width: 1px;
    background-color: rgba(240, 255, 255, 0.6);
    margin: 0 1em;
}

nav {
    text-transform: uppercase;
    font-size: 0.7em;
}

nav a {
    color: white;
    letter-spacing: 0.12em;
    margin-left: 3em;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s, text-shadow 0.2s;
}

nav a:hover,
nav a.active {
    color: var(--light-blue);
    text-shadow: 0 0 2px rgba(45, 181, 193, 0.45);
}

.header-spacing {
    height: 99px;
}

h1 {
    color: var(--blue);
    font: normal 3.25em 'Arima', cursive;
    margin-bottom: 0.3em;
    line-height: 1;
}

h2 {
    color: var(--blue);
    font: normal 2.3em 'Arima', cursive;
    margin-bottom: 0.5em;
    margin-top: 0;
    line-height: 1;
}

h3 {
    color: var(--dark-gray);
    font: normal 2em 'Arima', cursive;
    margin-bottom: 0.5em;
    margin-top: 0;
    line-height: 1;
}

h4 {
    font-weight: 800;
    font-size: 1em;
    color: var(--light-blue);
    text-transform: uppercase;
    letter-spacing: 0.2em;
}

p {
    color: var(--gray);
    font-weight: 500;
    margin-top: 0;
}

b {
    font-weight: 700;
}

button,
.btn,
input[type='submit'],
input[type='button'] {
    font-weight: 800;
    color: var(--white);
    text-transform: uppercase;
    letter-spacing: 0.2em;
    cursor: pointer;
    border-radius: 0;
}

.btn {
    text-decoration: none;
}

section {
    overflow: hidden;
}

section h1 {
    text-align: center;
}

section a {
    color: var(--light-blue);
    font-weight: 700;
}

.stone-bg {
    background: url('/assets/Stone-texture-ghosted.png') center / 100% auto;
    padding: 1em;
    box-shadow: inset 0 0 0.3em rgba(0, 0, 0, 0.3);
}

.stone-bg > :is(h1, p),
.stone-bg .container > :is(h1, p) {
    text-shadow: -0.04em 0.02em 0 rgb(255, 255, 255, 0.8);
    text-align: center;
}

.stone-bg p {
    font-size: 1.2em;
    line-height: 1.7;
}

.gray-bg {
    background-color: var(--gray);
}

.gray-bg :is(h1, p, ul) {
    color: var(--white);
}

.container > p {
    text-align: center;
    line-height: 1.7;
    margin-top: 1.5em;
}

.basic-flex {
    display: flex;
    margin-top: 2.5em;
    margin-bottom: 3em;
}

.basic-flex img {
    max-width: 100%;
}

.basic-flex p {
    line-height: 1.8;
}

.callout {
    background-color: var(--light-blue);
    padding: 0.1em 1em;
    text-align: center;
}

.callout h4 {
    color: white;
    margin: 0.5em;
    font-size: 1.2em;
    font-weight: 700;
}

.contact-form {
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), var(--gray) url('/assets/Kitchen-remodel_HP.jpg') center / cover no-repeat;
    background-attachment: fixed;
    padding: 1.5em 5vw 0.1em;
}

@supports (-webkit-touch-callout: none) {
    .contact-form {
        background-attachment: scroll;
    }
}

.contact-form h1 {
    color: var(--white);
    text-align: center;
    text-shadow: 0 0 0.25em rgba(0, 0, 0, 0.25);
}

.contact-form form {
    width: min(100%, 26em);
    margin: 2.5em auto 3.5em;
}

.contact-form :is(input, textarea) {
    background-color: var(--white);
}

input[type='submit'],
input[type='button'] {
    display: block;
    width: auto;
    margin: 1em auto;
    padding: 1.05em 1.45em 1em;
    white-space: nowrap;
    border: none;
    font-size: 0.74em;
    background-color: var(--light-blue);
    box-shadow: 0.15em 0.15em 0.4em rgba(0, 0, 0, 0.5);
    transition: background-color 0.2s;
}

input[type='submit']:hover {
    background-color: var(--aqua);
}

label {
    color: var(--gray);
    display: block;
    font-weight: 400;
    font-size: 0.92em;
    margin-bottom: 0.1em;
}

.contact-form label {
    color: white;
    font-weight: 700;
}

input, textarea {
    box-sizing: border-box;
    color: var(--gray);
    text-align: left;
    margin-bottom: 1em;
    width: 100%;
    font-size: 1.4em;
    padding: 0.2em 0.4em;
    border: none;
    background-color: var(--light-gray);
}

input[type="checkbox"],
input[type="radio"] {
    width: auto;
}

textarea {
    resize: vertical;
}

.grecaptcha-badge {
    bottom: 4.5em !important;
}

.alert-success,
.alert-failure {
    margin-bottom: 1em;
    font-size: max(0.8em, 12px);
    margin-right: auto;
    margin-left: auto;
}

.alert-success {
    background-color: rgb(171 217 221);
    border: 1px solid var(--light-blue);
    color: rgb(32 124 133);
    padding: 0.5em 1em;
    max-width: 440px;
}

.alert-failure {
    background-color: rgb(224 144 142);
    border: 1px solid rgb(168 81 79);
    color: rgb(117 57 55);
    padding-right: 1em;
    width: min(100%, 31.5em);
}

footer {
    font-size: 0.9em;
}

footer .upper {
    display: flex;
    justify-content: center;
    background-color: var(--gray);
    padding: 5em 1em;
    line-height: 1.6;
}

footer .sec {
    border-right: 1px solid rgba(255 255 255 0.4);
    padding: 0 2.25vw;
}

footer .sec:first-child {
    padding: 0 5vw 0 0;
    max-width: 16.5em;
}

footer .sec:first-child img {
    display: block;
    width: 100%;
    margin-bottom: 2em;
}

footer .sec:last-child {
    border-right: none;
}

footer :is(p, a, address) {
    color: var(--white);
}

footer p {
    font-weight: 400;
}

address {
    font-style: normal;
}

footer a {
    text-decoration: none;
    transition: color 0.2s;
}

footer a:hover {
    color: var(--light-blue);
}

.sec h4 {
    margin-top: 0;
    letter-spacing: 0.15em;
}

footer .lower {
    background-color: var(--dark-gray);
    color: var(--white);
    text-align: center;
    padding: 1em;
}

footer .lower p {
    margin: 0;
}

/* #region UTILITY CLASSES */

.container {
    width: min(calc(40em + 30vw), 100%);
    margin: 0 auto;
    padding: 0 4vw;
    box-sizing: border-box;
}

.spacer {
    width: 4.8vw;
    flex-shrink: 0;
}

.indent {
    margin-left: 2em;
}

.p-lg {
    padding: 3em 1em 7em;
}

.p-md {
    padding: 2.5em 0 5em;
}

.p-sm {
    padding: 0.5em 0;
}

.m-0 {
    margin: 0;
}

.mb-0 {
    margin-bottom: 0;
}

.tablet-show,
.xs-show {
    display: none;
}

/* #endregion */

@media (max-width: 1600px) {
    header {
        padding: 1.25em max(calc(calc(100vw - 1080px) / 2), 1.5em);
    }
}

/* Tablet */
@media (max-width: 1040px) {
    /* switch to hamburger menu */
    .tablet-show {
        display: initial;
    }

    .tablet-hide,
    .pc-only {
        display: none;
    }

    header {
        display: block;
        padding: 0;
    }

    .header-logos {
        padding: 1.1em 1.5em 0.8em;
    }

    nav {
        height: 0;
        overflow: hidden;
        transition: height 0.3s;
    }

    nav.active {
        height: calc(19.5em + 3.25vw);
    }

    nav a {
        display: block;
        padding: 1.3em 1em 1.3em 11vw;
        border-top: 1px solid rgba(255 255 255 0.4);
        margin-left: 0;
    }

    nav a:last-child {
        border-bottom: 1px solid rgba(255 255 255 0.4);
    }

    .menu-icon {
        display: flex;
    }

    h1 {
        font-size: 2.75em;
    }

    .contact-form form {
        font-size: 1.25em;
    }

    footer {
        font-size: 0.85em;
    }

    footer .upper {
        padding: 2.9em 0 2.9em 1em;
    }

    footer .sec h4 {
        font-size: 0.8em;
    }

    footer .sec:first-child {
        padding-right: 2.5vw;
    }

    .p-lg {
        padding: 1em 1em 5em;
    }

    .indent {
        margin-left: 1em;
    }
}

@media (max-width: 960px) {
    .stone-bg {
        padding: 4vw 8vw;
    }

    .p-md {
        padding: 4vw 0;
    }

    .p-sm {
        padding: 0.5em 0;
    }
}

@media (max-width: 820px) {
    .tablet-sm-show {
        display: initial;
    }

    .tablet-sm-hide {
        display: none;
    }

    .contact-form {
        background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('/assets/Kitchen-remodel_HT-Footer.jpg');
    }

    footer .sec:first-child {
        max-width: 11.1em;
    }

    footer .sec:first-child img {
        margin-bottom: 1em;
    }
}

@media (max-width: 740px) {
    .header-logos img {
        height: 2.3em;
    }

    .menu-icon {
        padding-top: 0.6em;
        padding-bottom: 0.6em;
    }

    footer .upper {
        flex-wrap: wrap;
    }

    footer .sec:first-child {
        width: calc(6.75vw + 28.4em);
        max-width: unset;
        border-right: none;
        margin: 0 4.5vw 2vw;
        padding-right: 0;
    }

    footer .sec:first-child img {
        width: min(15em, 100%);
    }

    footer .lower {
        font-size: 0.79em;
    }

    .p-lg {
        padding-bottom: 3.75em;
    }
}

@media (max-width: 536px) {
    .mobile-show {
        display: initial;
    }

    .mobile-hide {
        display: none;
    }

    .header-logos {
        padding: 4vw 3vw;
    }

    .divider {
        margin: 0 4vw;
    }

    .header-logos img {
        height: 1.8em;
    }

    .menu-icon {
        padding-top: 0.3em;
        padding-bottom: 0.3em;
    }

    h1 {
        font-size: 2.25em;
    }

    h2 {
        font-size: 1.9em;
    }

    section {
        font-size: 0.85em;
    }

    .contact-form {
        background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('/assets/Kitchen-remodel_HM-Footer.jpg');
    }

    footer .upper {
        padding: 2.5em 0.5em 2.5em 0.75em;
    }

    footer .sec:first-child {
        width: 100%;
        margin: 0 0 2vw;
        padding: 0 2.25vw;
    }

    footer .sec {
        flex-grow: 1;
    }

    .indent {
        margin-left: 0.5em;
    }
}

@media (max-width: 500px) {
    footer .sec p {
        font-size: 0.9em;
    }
}

@media (max-width: 476px) {
    .xs-hide {
        display: none;
    }

    .xs-show {
        display: initial;
    }

    footer .upper {
        font-size: 1.2em;
        padding: 2em 6vw 1em 6vw;
    }

    footer .sec {
        width: 100%;
        margin-bottom: 4vw;
        border-right: none;
    }
}

@media (max-width: 400px) {
    :root {
        --icon-size: 5.2vw;
    }

    .header-logos img {
        height: 8vw;
    }

    .menu-icon {
        padding: 1.4vw 2vw;
    }
}
