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

:root {
    --bg-color: #F5F7F6;
    --primary-color: #1E1E1E;
    --accent-color: #4CAF50;
    --accent-dark-color: #1F7A4C;
    --primary-font: "Lato";
}

.hero {
    min-height: 100svh;
    background-image: url("./Assets/bg.webp");
    background-size: cover;
    background-position: center;
}

.header {
    width: 100%;
}

.top-header {
    width: 100%;
    min-height: 135px;
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    justify-items: center;
    align-items: center;
    background-color: var(--bg-color);
}

.title {
    color: var(--primary-color);
    font-size: 48px;
    font-family: var(--primary-font);
}

.header-nav>ul {
    display: flex;
    flex-direction: row;
    gap: 2rem;
    list-style: none;
}

.header-nav a,
.header-nav a:visited {
    text-decoration: none;
    color: var(--primary-color);
    font-size: 32px;
    font-family: var(--primary-font);
}

.header-nav a:hover {
    border-bottom: 3px solid var(--accent-color);
}

.header-cta-box {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.cta-phonenumber {
    color: var(--primary-color);
    font-size: 20px;
    font-family: var(--primary-font);
}

.cta-button {
    width: 216px;
    height: 56px;
    background-color: var(--accent-color);
    border: 2px solid var(--accent-dark-color);
    color: var(--bg-color);
    font-size: 32px;
    font-family: var(--primary-font);
}

.bottom-header {
    height: 28px;
    background-color: var(--accent-color);
    border-top: 2px solid var(--accent-dark-color);
    border-bottom: 2px solid var(--accent-dark-color);
    display: flex;
    justify-content: center;
    align-items: center;
}

.bottom-header>h2 {
    font-size: 20px;
    color: var(--primary-color);
    font-family: var(--primary-font);
}

.hero-content {
    width: 728px;
    position: relative;
    top: 4rem;
    margin-left: 2rem;
}

.hero-content>h2 {
    font-size: clamp(40px, 5vw, 64px);
    color: var(--bg-color);
    font-family: var(--primary-font);
    text-shadow: 4px 4px 5px rgba(0, 0, 0, 0.8);
}

.preview-overlay {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    padding: 0 1rem 1rem;
    pointer-events: none;
}

.preview-modal {
    background-color: rgba(76, 175, 80, .90);
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .25rem;
    width: min(100%, 70rem);
    min-height: 5rem;
    padding: .75rem 1.5rem;
    text-align: center;
    pointer-events: auto;
}

.preview-modal h2 {
    font-family: var(--primary-font);
    color: var(--primary-color);
    font-size: 36px;
}

.preview-modal a {
    font-family: var(--primary-font);
    color: var(--primary-color);
    font-size: 16px;
    line-height: 1.5;
}

.about-us {
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: var(--bg-color);
}

.about-us > h2 {
    margin-top: 4rem;
    font-family: var(--primary-font);
    font-size: 48px;
}

.about-container {
    margin-top: 4rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    max-width: 75%;
}

.about-container > img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.about-content > p {
    font-family: var(--primary-font);
    font-size: 20px;
    margin-bottom: 2rem;
}

.services {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: var(--bg-color);
    padding-bottom: 4rem;
}

.services > h2 {
    font-family: var(--primary-font);
    font-size: 36px;
    margin-top: 4rem;
}

.services-container {
    display: grid;
    grid-template-columns: 1fr 2fr;
    max-width: 50%;
    row-gap: 4rem;
    margin-top: 4rem;
}

.services-container > img{
    border: 4px solid var(--accent-color);
}

.service-contents {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    font-family: var(--primary-font);
    gap: 1rem;
}

.service-contents > p {
    font-size: 18px;
    font-weight: 400;
}

.reviews {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 5rem 1.5rem;
    background-color: var(--primary-color);
    color: var(--bg-color);
}

.reviews > h2 {
    font-family: var(--primary-font);
    font-size: 36px;
    text-align: center;
}

.reviews-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    width: min(100%, 75rem);
    margin-top: 3rem;
}

.review-card {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 2rem;
    border: 2px solid var(--accent-color);
    background-color: var(--bg-color);
    color: var(--primary-color);
    font-family: var(--primary-font);
}

.review-rating {
    color: var(--accent-dark-color);
    font-size: 1.5rem;
    letter-spacing: .125rem;
}

.review-card blockquote {
    font-size: 18px;
    line-height: 1.5;
}

.review-author {
    margin-top: auto;
    font-weight: 700;
}

.footer {
    background-color: var(--primary-color);
    border-top: 4px solid var(--accent-color);
    color: var(--bg-color);
    padding: 2rem 1.5rem 7rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: start;
    gap: 2rem;
    width: min(100%, 75rem);
    margin: 0 auto;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: .5rem;
}

.footer-brand h2 {
    font-family: var(--primary-font);
    font-size: 32px;
}

.footer-brand p,
.footer-nav a,
.footer-contact {
    font-family: var(--primary-font);
    font-size: 16px;
}

.footer-nav ul {
    display: flex;
    gap: 1rem;
    list-style: none;
}

.footer-nav a,
.footer-nav a:visited,
.footer-contact a,
.footer-contact a:visited {
    color: var(--bg-color);
    text-decoration: none;
}

.footer-nav a:hover,
.footer-nav a:focus-visible {
    color: var(--accent-color);
}

.footer-contact {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 1rem;
    text-align: right;
}

.footer-contact address {
    font-style: normal;
}

.footer-contact a {
    border: 2px solid var(--accent-color);
    padding: 13px 20px;
}

.footer-contact a:hover,
.footer-contact a:focus-visible {
    background-color: var(--accent-color);
    color: var(--primary-color);
}



@media (max-width: 1600px) {

    .hero-content {
        max-width: 728px;
    }

    .top-header {
        white-space: nowrap;
    }

    .title {
        font-size: clamp(18px, 4vw, 48px);
    }

    .about-us > h2 {
        font-size: clamp(18px, 4vw, 48px);
        white-space: nowrap;
    }

    .about-container {
        display: flex;
        flex-direction: column;
        align-items: center;
        max-width: 90%;
    }

    .about-container > img{
        width: 70%;
    }

    .services-container {
        grid-template-columns: 1fr;
        max-width: 90%;
    }

    .services-container > img {
        justify-self: center;
    }

    .services-container h3 {
        text-align: center;
    }
}

@media (max-width: 1270px) {
    .top-header {
        display: flex;
        flex-direction: column;
        gap: .5rem;
        padding-bottom: .5rem;
    }

    .title {
        font-size: clamp(16px, 8vw, 48px);
    }

    .bottom-header>h2 {
        white-space: nowrap;
        font-size: min(20px, 2.4vw);
    }

    .header-nav>ul {
        gap: clamp(1rem, 1.5vw, 2rem);
    }

    .header-nav a {
        font-size: clamp(8px, 5vw, 32px);
    }

    .hero-content {
        display: none;
    }

    .reviews-container {
        grid-template-columns: 1fr;
        max-width: 40rem;
    }
}

@media (max-width: 760px) {
    .footer-grid {
        grid-template-columns: 1fr;
        justify-items: center;
        gap: 1.5rem;
        text-align: center;
    }

    .footer-nav ul {
        justify-content: center;
        flex-wrap: wrap;
    }

    .footer-contact {
        align-items: center;
        text-align: center;
    }
}
