:root {
    /* General colors */
    --red: hsla(0, 100%, 50%, 1);
    --orange: hsla(30, 100%, 50%, 1);
    --yellow: hsla(60, 100%, 50%, 1);
    --green: hsla(120, 100%, 50%, 1);
    --light-blue: hsla(180, 100%, 50%, 1);
    --blue: hsla(240, 100%, 50%, 1);
    --purple: hsla(270, 100%, 50%, 1);
    --pink: hsla(300, 100%, 50%, 1);

    /* Website colors */
    /* --main-color: hsla(220, 100%, 30%, 1); */
    --main-color: hsla(0, 0%, 2.7%, 1);
    /* --main-hover-color: hsla(220, 100%, 20%, 1); */
    --main-hover-color: #595959;
    --white: hsla(0, 0%, 97.3%, 1);
    --light-gray: hsla(0, 0%, 87.3%, 1);
    --gray: hsla(0, 0%, 21%, 1);
    --black: hsla(0, 0%, 2.7%, 1);
    --shadow-color: hsla(0, 0%, 0%, 0.2);
    --input-border-gray: hsla(0, 0%, 76.5%, 1);
    --input-placeholder-gray: hsla(0, 0%, 33%, 1);

    /* Website sizes */
    --card-width: 26.5rem;
    --card-width-no-padding: 24rem;
}

* {
    transition: 0.75s;
}

body {
    margin: 0;
    font-family: Arial, sans-serif;
    background-color: var(--gray);
    color: var(--black);
    transition: 0s;
}

/* ------------------------------------------------------------------------------------------------------------------------------------------ */

/* Main */
main {
    margin: 0;
    min-height: 65vh;
}

p,
a {
    font-size: 1rem;
    margin: 0;
}

p:hover {
    font-size: calc(1rem * 1.0416);
}

a {
    text-decoration: underline var(--main-color);
    color: var(--white);
    font-size: 1rem;
}

a:hover {
    text-decoration: underline var(--white);
    font-size: calc(1rem * 1.0416);
}

h4 {
    margin: 0;
    font-size: calc(1.5rem * 1.0416);
    font-weight: bold;
    width: fit-content;
}

h4:hover {
    font-size: calc(1.5rem * 1.0416 * 1.0416);
}

h1 {
    font-size: 2.25rem;
    margin: 0;
    width: fit-content;
    text-align: center;
}

h1:hover {
    font-size: calc(2.25rem * 1.0416);
}

.button {
    background-color: var(--main-color);
    color: var(--white);
    padding: 0.75rem 1.25rem;
    border-radius: 0.5rem;
    text-decoration: underline var(--main-color);
    display: inline-block;
    border: none;
    font-size: 1rem;
    cursor: pointer;
    box-shadow: 0 0.2rem 0.4rem var(--shadow-color);
    max-width: calc(100vw - 4vw * 2 - 1.25rem * 2);
    margin: 0;
}

.button:hover {
    text-decoration: underline var(--white);
    font-size: 1rem;
    background-color: var(--main-hover-color);
    scale: 1.0416;
}

textarea {
    resize: none;
}

/* Footer */
footer {
    background-color: var(--black);
    color: var(--white);
    text-align: center;
    font-size: 1rem;
    padding: 2rem 0 0;
    width: 100%;
    transition: 0s;
}

.footer-section {
    display: flex;
    justify-content: center;
    padding: 1.7vh 1.2vw;
}

.footer-div {
    display: flex;
    flex-direction: column;
    justify-content: top;
    align-items: center;
    margin: 0;
    text-align: center;
    width: 100%;
    height: 100%;
}

.footer-div iframe {
    width: 100%;
}

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

#footer-bottom-section {
    padding: 0 11vw 2.6vh;
    margin-top: calc((0rem - 20rem * 9 / 16) / 32);
}

.footer-div a {
    margin: 0;
    font-size: 1.25rem;
    text-decoration: underline var(--black);
}

.footer-div a:hover {
    font-size: calc(1.25rem * 1.0416);
    text-decoration: underline var(--white);
}

.footer-bottom-div p,
.footer-bottom-div a {
    font-size: 1rem;
    margin: 0;
    width: 100%;
}

.footer-bottom-div p:hover,
.footer-bottom-div a:hover {
    font-size: calc(1rem * 1.0416);
}

.footer-bottom-div {
    width: 50%;
}

.footer-div-image {
    position: relative;
    width: 20rem;
    aspect-ratio: 16/9;
    margin-top: 0.5rem;
    border-radius: 2rem;
}

#footer-google-maps-link:hover {
    .footer-div-image {
        scale: 1.0416;
    }
}

#footer-top-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(24rem, 1fr));
    place-items: center;
    gap: 2.5rem;
}

/* Header */
header {
    background-color: var(--main-color);
    height: 13rem;
    width: 90vw;
    padding: 0 5vw;
    margin: 0;
    display: flex;
    justify-content: center;
    text-align: center;
    transition: 0s;
}

header div {
    display: flex;
    width: 50%;
    align-items: center;
}

#header-company {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 0.5rem;
}

#header-navbar {
    position: relative;
    display: flex;
    justify-content: right;
    gap: 1.5vw;
    z-index: 0;
}

header p,
header a {
    font-size: 1.25rem;
    margin: 0;
    color: var(--white);
    text-decoration: underline var(--main-color);
}

header img:hover {
    scale: 1.0416;
}

header p:hover {
    font-size: calc(1.25rem * 1.0416);
}

header a:hover {
    font-size: calc(1.25rem * 1.0416);
    text-decoration: underline var(--white);
}

#header-company-logo {
    height: 10rem;
}

#header-company-license {
    text-align: center;
    font-size: 0.9rem;
    width: 10rem;
}

.header-navbar-chosen {
    font-weight: bold;
    padding: 0.25rem 0.5rem;
    background-color: var(--white);
    color: var(--main-color);
    border-radius: 100vw;
    width: min-content;
    height: min-content;
    text-decoration: underline var(--white);
}

.header-navbar-chosen:hover {
    text-decoration: underline var(--main-color);
}

#header-navbar-hamburger-menu-icon {
    font-size: 2.5rem;
}

#header-navbar-hamburger-menu-icon:hover {
    font-size: calc(2.5rem * 1.0416);
}

#header-hamburger-div {
    padding: 12.5vh 25vw;
    width: calc(100vw - 25vw * 2);
    height: calc(100vh - 12.5vh * 2);
    display: grid;
    grid-template-columns: 1fr 1fr;
    background-color: var(--main-color);
}

.header-hamburger-page {
    width: 100%;
    display: block;
    text-align: center;
    line-height: 25vh;
}

/* Hero */
.hero {
    margin-top: 0;
    margin-bottom: 0;
    background-color: var(--white);
    background-image: url(/images/hero-background-image.jpg);
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    text-align: center;
    padding: 5rem 1.25rem;
    box-shadow: inset 0 0.1875rem 0.375rem var(--shadow-color);
    transition: 0s;
}

.hero h1 {
    margin: 0 auto 0.625rem;
}

.hero p {
    font-size: 1.125rem;
    margin: 0 auto 1.25rem;
}

.hero p:hover {
    font-size: calc(1.125rem * 1.0416);
}

/* Sections */
.section {
    padding: 5vh 3vw;
    width: 94vw;
    height: fit-content;
    margin: 0;
    justify-content: center;
    transition: 0s;
}

.page-section {
    padding: calc(10vh - 1.25rem) 4vw 10vh;
    width: calc(100vw - 4vw * 2);
}

.section-button-div,
.section-button {
    text-align: center;
}

.section-button {
    width: var(--card-width-no-padding);
    margin-top: 1.25rem;
}

.section h2 {
    text-align: center;
    font-size: 1.75rem;
    width: fit-content;
    margin: 0 auto 1.875rem;
}

.section h2:hover {
    font-size: calc(1.75rem * 1.0416);
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(var(--card-width), 1fr));
    gap: 1.25rem;
    width: 100%;
    place-items: center;
    margin: 0;
    padding: 0;
}

.card {
    background-color: var(--white);
    padding: 1.25rem;
    border-radius: 0.625rem;
    box-shadow: 0 0.2rem 0.4rem var(--shadow-color);
    margin: 0;
    width: var(--card-width-no-padding);
    height: max-content;
    transition: width 0s;
    transition: scale 0.75s;
    max-width: calc(100vw - 1.25rem * 2);
    box-shadow: var(--white) 0rem 0rem 7rem;
}

.card:hover {
    scale: 1.0416;
}

.card h3 {
    margin: 0 0 0.625rem;
    font-size: 1.25rem;
    width: 100%;
}

.card p:hover {
    font-size: 1rem;
}

#about-card {
    text-align: center;
    padding: calc(1.25rem * 2);
    width: 42rem;
    max-width: calc(100vw - 1.25rem * 4 - 8vw);
}

#about-card p {
    font-size: 1.125rem;
}

#about-card p:hover {
    font-size: 1.125rem;
}

.page-section h1 {
    margin: 0 auto 1.875rem;
}

#service-cards-div {
    display: grid;
    grid-template-columns: repeat(auto-fit,
            minmax(calc(var(--card-width-no-padding)), 1fr));
    gap: 2.75rem 2.75rem;
    width: 100%;
    max-width: 100vw;
    justify-items: center;
    margin: 0;
}

.service-card {
    margin: 0;
    width: var(--card-width-no-padding);
    height: calc(var(--card-width-no-padding) * 3 / 4 * 1.5);
}

.service-card img {
    width: 100%;
    aspect-ratio: 4 / 3;
    border-radius: 0.5rem;
    object-fit: cover;
}

#service-card-text-container {
    height: calc(calc(var(--card-width-no-padding) * 3 / 4 * 1.5) - calc(var(--card-width-no-padding) * 3 / 4));
    display: grid;
    place-items: center;
}

#service-card-text {
    width: 100%;
    text-align: left;
}

#service-card-text h3 {
    margin: 0 0 0.375rem;
}

.experience-card {
    margin: 0;
    width: var(--card-width-no-padding);
    height: calc(var(--card-width-no-padding) * 3 / 4 * 1.25);
}

.experience-card img {
    width: 100%;
    aspect-ratio: 4 / 3;
    border-radius: 0.5rem;
    object-fit: cover;
}

#experience-card-text-container {
    height: calc(calc(var(--card-width-no-padding) * 3 / 4 * 1.25) - calc(var(--card-width-no-padding) * 3 / 4));
    display: grid;
    place-items: center;
}

#contact-main {
    background-color: var(--gray);
}

#contact-main h1 {
    color: var(--black);
    position: relative;
    z-index: 10;
}

#contact-card {
    width: 21rem;
    max-width: calc(100vw - 1.25rem * 4 - 8vw);
    text-align: center;
    box-shadow: var(--white) 0rem 0rem 7rem;
}

.name-input,
.email-input,
.phone-input,
.address-input {
    width: calc(100% - 0.5rem * 2);
    padding: 0.5rem;
    border: 0.125rem solid var(--input-border-gray);
    border-radius: 0.5rem;
    font-size: 1rem;
}

.name-input:focus,
.email-input:focus,
.phone-input:focus,
.address-input:focus {
    outline: none;
    border: 0.125rem solid var(--main-color);
    box-shadow: 0 0 0.5rem var(--main-color);
}

.name-input::placeholder,
.email-input::placeholder,
.phone-input::placeholder,
.address-input::placeholder {
    color: var(--input-placeholder-gray);
}

textarea {
    width: calc(100% - 0.5rem * 2);
    height: 10rem;
    padding: 0.5rem;
    border: 0.125rem solid var(--input-border-gray);
    border-radius: 0.5rem;
    font-size: 1rem;
}

textarea:focus {
    outline: none;
    border: 0.125rem solid var(--main-color);
    box-shadow: 0 0 0.5rem var(--main-color);
}

textarea::placeholder {
    color: var(--input-placeholder-gray);
}

.name-input,
.email-input,
.phone-input,
.address-input,
textarea {
    margin-top: 0;
    margin-bottom: 1.25rem;
    transition: 0.25s;
}

label {
    font-size: 1.125rem;
    margin-top: 0;
    display: block;
    text-align: left;
}

.first-label {
    margin-top: 0;
}

#why-choose-us .card img {
    border-radius: 0.5rem;
    margin-bottom: 0.625rem;
    object-fit: cover;
    width: 100%;
    aspect-ratio: 4 / 3;
}

.card p {
    width: 100%;
}

#who-are-we-card {
    box-shadow: var(--white) 0rem 0rem 7rem;
    margin: 0 auto;
}

.center-div {
    display: flex;
    justify-content: center;
}

.reviews-div {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    justify-content: center;
    gap: 2.5rem;
}

.review-card {
    padding: 1.25rem;
    flex-basis: 25%;
    height: fit-content;
}

.review-card p {
    text-align: left;
}

.stars-rating {
    height: 2rem;
}

.review-images-div {
    display: grid;
    grid-auto-flow: column;
    width: 100%;
    grid-template-columns: repeat(auto-fit, 1fr);
    justify-content: center;
    gap: 0.625rem;
}

.review-image {
    margin-top: 1.25rem;
    width: 100%;
    aspect-ratio: 1/1;
    border-radius: 0.5rem;
}

h1 {
    position: relative;
    z-index: 10;
}

h2 {
    position: relative;
    z-index: 10;
}

h3 {
    position: relative;
    z-index: 10;
}

.button {
    position: relative;
    z-index: 10;
}

@media screen and (max-width: 41rem) {
    .header-navbar-page {
        display: none;
    }

    #header-navbar-hamburger-menu-icon {
        display: block;
    }

    .section {
        padding-right: 0;
        padding-left: 0;
        width: 100vw;
    }

    .grid {
        place-items: initial;
        padding: 0;
        width: 100vw;
    }

    #footer-top-section {
        grid-template-columns: 1fr;
        place-items: start;
        text-align: left;
    }

    .footer-div {
        align-items: flex-start;
        text-align: left;
        padding: 0 2rem;
        width: calc(100% - 4rem);
    }

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

@media screen and (min-width: 41.01rem) {
    .header-navbar-page {
        display: block;
    }

    #header-navbar-hamburger-menu-icon {
        display: none;
    }
}

@supports (-webkit-touch-callout: none) {
    .hero {
        background-attachment: scroll;
    }
}