/* COLOR PALETTE
WHITE - #ffffff
OFF YELLOW - #faf2d9
GOLD - #d5af31
*/

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', 'Lato', sans-serif, serif;
    background-color: #faf2d9;
}



/* HEADER */

.hamburger img {
    width: 26px;
}

.logo {
    width: 100px;
}

nav {
    background-color: #000;
    position: fixed;
    z-index: 99;
    width: 100%;
}

nav ul {
    width: 100%;
    list-style: none;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 10px 0;
    padding-right: 20px;
}

nav li {
    height: auto;
}

nav a {
    height: 100%;
    padding: 0 10px;
    text-decoration: none;
    display: flex;
    align-items: center;
    color: #d5af31;
}

.header-contact {
    display: flex;
    align-items: center;
    min-width: fit-content;
    white-space: nowrap;
    padding-right: 15px;
}

.header-contact img {
    width: 14px;
}

.header-contact a {
    font-size: 12px;
    color: #d5af31;
}

nav li:first-child {
    margin-right: auto;
}

nav .header-contact {
    margin: 0 auto;
}

.navmenu {
    position: fixed;
    z-index: 100;
    height: 100%;
    width: 100%;
    background-color: #fff;
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    font-size: 20px;
    gap: 20px;
    text-align: center;
}

.close-navmenu {
    width: 100%;
    display: flex;
    justify-content: flex-end;
    position: absolute;
    top: 20px;
    right: 20px;
    width: auto;
}

.close-navmenu img {
    width: 26px;
}

.navbar-get-a-quote {
    border: 1px solid #000;
    color: #000;
    background-color: #d5af31;
    border-radius: 20px;
    padding: 6px;
    padding-left: 15px;
    padding-right: 15px;
    margin-left: 10px;
    font-weight: 600;
}

.hide {
    display: none;
}

.gold-font {
    color: #d5af31;
}

section p {
    font-size: 12px;
}

h1,h2 {
    font-size: 20px;
}

/* Hero Section */

#hero-img-normal {
    width: 250px;
    padding-bottom: 20px;
}

#hero-img-cut {
    display: none;
}

.hero-section {
    display: flex;
    flex-direction: column-reverse;
    background-color: #fff;
    padding-top: 80px;
    padding-bottom: 30px;
    align-items: center;
    padding-left: 30px;
    padding-right: 30px;
}

.hero-content {
    max-width: 400px;
}

.hero-content h1 {
    padding-bottom: 10px;
}

.hero-content p {
    text-align: justify;
    padding-bottom: 15px;
}

/* Services Section */

.services-section {
    padding-top: 30px;
    padding-bottom: 30px;
}

.services-content {
    text-align: center;
    padding-left: 30px;
    padding-right: 30px;
    max-width: 500px;
    margin: 0 auto;
}

.services-content h2 {
    padding-bottom: 15px;
}

.services-content p {
    padding-bottom: 10px;
}

.services-wrapper {
    display: flex;
    justify-content: flex-start;
    align-items: stretch;
    overflow-x: scroll;
    scroll-snap-type: x mandatory;
    column-gap: 20px;
    margin: 0 auto;
    padding-left: 10px;
    padding-right: 10px;
    scroll-padding: 0 50px;
    padding-top: 30px;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.services-card {
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    scroll-snap-align: center;
    width: 300px;
    box-shadow: 1px 3px 4px gray;
    border-radius: 40px;
    overflow: hidden;
    z-index: 10;
    position: relative;
}

.services-card img {
    width: 100%;
    display: block;
    flex-shrink: 0;
    object-fit: cover;
}

.gradient {
    background-color: #000;
    height: 100%;
    width: 100%;
    opacity: 0.5;
    position: absolute;
    top: 0;
    z-index: 1;
}

.services-container {
    background-color: #fff;
    display: flex;
    flex-direction: column;
    padding: 15px 40px;
    font-size: 12px;
    flex-grow: 1;
    justify-content: space-between;
}

#services-container-center {
    padding: 25px;
}

#services-card-center p {
    padding-bottom: 10px;
}

.modal {
    margin: auto;
    border: none;
    border-radius: 20px;
    padding: 10px;
    text-align: justify;
    max-width: 500px;
}

.modal::backdrop {
    background-color: rgb(0,0,0,0.8);
}

.open-modal {
    cursor: pointer;
    text-align: center;
    padding: 5px 60px;
    box-shadow: 1px 3px 4px gray;
    margin: 0 auto;
    background-color: #faf2d9;
    border-radius: 20px;
    border: none;
}

#close-modal {
    width: 30px;
    cursor: pointer;
    display: block;
    margin-left: auto;
}

/* Why Choose Section */

.why-choose-section {
    text-align: center;
    display: flex;
    flex-direction: column-reverse;
    text-align: center;
    align-items: center;
    background-color: #fff;
    padding-top: 30px;
    margin: 0 auto;
}

.why-choose-section h2 {
    padding-bottom: 20px;
}

.why-choose-content {
    padding-left: 10px;
    padding-right: 10px;
    max-width: 340px;
    margin: 0 auto;
    padding-bottom: 20px;
}

.why-choose-img img {
    width: 300px;
    display: block;
    margin: 0 auto;
}

/* Numbers Section */

.numbers-section {
    text-align: center;
    padding: 30px 20px;
}

.numbers-content {
    max-width: 340px;
    margin: 0 auto;
    padding-bottom: 20px;
}

.numbers-content h2 {
    max-width: 280px;
    margin: 0 auto;
    padding-bottom: 20px;
}

.numbers-wrapper {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.numbers-container {
    margin: 0 auto;
}

.numbers-count {
    font-size: 25px;
    font-weight: 700;
}

.numbers-description {
    max-width: 130px;
}

.numbers-footnote {
    padding-top: 20px;
}

.numbers-footnote p {
    font-size: 12px;
    font-style: italic;
    color: #d5af31;
}

/* Trusted By Section */

.trusted-by-section {
    background-color: #fff;
    padding: 30px 20px;
}

.trusted-by-content {
    text-align: center;
    margin-bottom: 30px;
}

.trusted-by-content h2 {
    max-width: 200px;
    margin: 0 auto;
}

.trusted-by-wrapper {
    display: flex;
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    width: 100%;
    margin: 20px 0;
}

.trusted-by-track {
    display: flex;
    animation: scroll 20s linear infinite;
    gap: 30px;
}

.trusted-by-container {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
}

.trusted-by-container img {
    width: 100px;
    height: auto;
    object-fit: contain;
    display: block;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }

}
/* Footer */

.footer-wrapper {
    display: flex;
    padding: 20px;
    font-size: 12px;
}

.footer-content {
    display: flex;
    flex-direction: column;
    width: min(50vw, 500px);
}

.footer-content-top {
    margin-bottom: auto;
    border-bottom: 1px solid #000;
    padding-bottom: 5px;
}

.footer-content-top img {
    margin-bottom: 5px;
}

.footer-content-bottom {
    width: min(57vw, 300px);
    max-width: 240px;
    margin-top: 30px;
}

.footer-buttons {
    text-align: right;
    margin-left: auto;
    display: flex;
    flex-direction: column;
}

.footer-buttons ul {
    list-style: none;
    display: flex;
    flex-direction: column;
}

.footer-buttons a {
    text-decoration: none;
    color: #000;
}

.footer-buttons-top ul {
    gap: 15px;
}


.footer-buttons-top {
    margin-bottom: auto;
}

.footer-buttons-bottom ul {
    gap: 5px;
}

@media (min-width: 398px) {
    .numbers-wrapper {
        flex-direction: row-reverse;
    }
}


/* -------------------- Medium devices (tablets, 768px and up) -------------------- */
@media (min-width: 768px) {
    
    /* Header */

    .hamburger img {
        width: 40px;
    }

    .logo {
        width: 180px;
    }

    nav ul {
        padding: 20px 50px;
    }

    .navmenu {
        font-size: 26px;
        gap: 30px;
    }

    .close-navmenu img {
        width: 40px;
    }

    .header-contact img {
        width: 20px;
    }

    .header-contact a {
        font-size: 16px;
        color: #d5af31;
    }

    section p {
        font-size: 16px;
    }

    h1,h2 {
        font-size: 35px;
    }

    /* Hero Section */

    #hero-img-normal {
        width: 450px;
    }

    .hero-section {
        flex-direction: row;
        padding-top: 120px;
        padding-bottom: 50px;
        padding-left: 20px;
        padding-right: 20px;
        justify-content: center;
    }

    .hero-content p {
        max-width: 280px;
    }

    /* Services Section */

    .services-content {
        max-width: none;
    }

    .services-card {
        width: 450px;
    }

    .services-container h3 {
        font-size: 20px;
        padding-bottom: 10px;
    }

    .services-card:first-child .services-container p {
        padding-bottom: 70px;
    }

    .services-card:last-child .services-container p {
        padding-bottom: 30px;
    }

    #services-container-center {
        padding: 25px;
    }

    #services-card-center p {
        margin-bottom: 10px;
    }

    .open-modal {
        padding: 5px 70px;
    }

    /* Why Choose Section */

    .why-choose-section {
        padding-top: 200px;
    }

    .why-choose-img img {
        width: 600px;
    }

    .why-choose-content {
        max-width: 540px;
        padding-bottom: 40px;
    }

    /* Numbers Section */

    .numbers-section {
        padding-top: 50px;
        padding-bottom: 50px;
    }

    .numbers-content {
        max-width: 800px;
        padding-bottom: 50px;
    }

    .numbers-content h2 {
        max-width: 800px;
    }

    .numbers-count {
        font-size: 50px;
    }

    .numbers-description {
        max-width: 180px;
    }

    .numbers-footnote p {
        font-size: 16px;
    }

    /* Trusted By Section */

    .trusted-by-content h2 {
        max-width: 300px;
    }
            
    .trusted-by-container img {
        width: 150px;
    }
            
    .trusted-by-track {
        gap: 50px;
    }

    /* Footer */

    .footer-wrapper {
        font-size: 16px;
    }

    .footer-content-bottom {
        max-width: none;
        width: auto;
    }

    .footer-buttons-top ul {
        flex-direction: row-reverse;
        gap: 10px;
    }

}

/* -------------------- Large devices (desktops, 1024px and up) -------------------- */
@media (min-width: 1024px) {

    /* Header */

    header {
        max-width: 1440px;
    }

    .hamburger {
        display: none;
    }

    .hide {
        display: flex;
    }

    .logo {
        width: 150px;
    }

    nav ul {
        padding: 20px 25px;
        max-width: 1500px;
        font-size: 18px;
        margin: 0 auto;
    }

    /* Hero Section */

    .hero-section {
        padding-right: 0;
        padding-left: 50px;
    }

    #hero-img-normal {
        display: none;
    }

    #hero-img-cut {
        display: block;
        width: 600px;
    }

    .hero-content p {
        max-width: 360px;
    }

    /* Services Section */

    .services-wrapper {
        max-width: 1000px;
        margin: 0 auto;
        justify-content: center;
        overflow-x: visible;
        scroll-snap-type: none;
    }

    .services-card {
        width: 320px;
    }

    .services-card:last-child .services-container p {
        padding-bottom: 20px;
    }

    /* Why Choose Section */

    .why-choose-section {
        flex-direction: row;
        justify-content: center;
    }

    .why-choose-img img {
        width: 600px;
    }

    .why-choose-content {
        max-width: 450px;
        margin: 0;
    }

    /* Trusted By Section */

    .trusted-by-content h2 {
        max-width: 500px;
    }
            
    .trusted-by-container img {
        width: 200px;
    }
            
    .trusted-by-track {
        gap: 60px;
        animation-duration: 25s;
    }

    /* Footer */

    footer:not(.hide) {
        display: none;
    }

    footer.hide {
        display: block;
        max-width: 1440px;
        margin: 0 auto;
    }

    .footer-logo-img {
        width: 120px;
        padding-bottom: 10px;
    }

    footer h2,
    p {
        font-size: 16px;
    }

    .footer-wrapper-outer {
        display: flex;
        flex-direction: column;
    }

    .footer-wrapper-inner {
        display: flex;
        flex-direction: row;
        justify-content: space-between;
    }

    .footer-wrapper-inner:first-child {
        border-bottom: 1px solid #000;
    }

    .contact-information {
        padding-top: 10px;
        padding-left: 10px;
    }

    .contact-information h2 {
        padding-bottom: 20px;
    }

    .contact-information-container {
        display: flex;
        max-width: 270px;
        padding: 5px;
    }

    .contact-information-container a {
        text-decoration: none;
    }

    .footer-img {
        width: auto;
        height: 16px;
        padding-right: 10px;
    }
    
    .footer-logo {
        text-align: center;
        margin: 0 auto;
        padding: 30px 0;
    }

    .footer-buttons {
        padding-top: 10px;
        padding-right: 10px;
    }

    .footer-buttons h2 {
        padding-bottom: 20px;
    }

    .footer-buttons-top ul {
        display: flex;
        flex-direction: column;
        align-items: flex-end;
    }
    
    .footer-buttons-bottom {
        padding-top: 70px;
        padding-bottom: 10px;
    }

    .footer-buttons-bottom ul {
        display: flex;
        justify-content: flex-end;
    }

    .back-to-top {
        display: flex;
        align-items: center;
        padding-top: 50px;
    }

    .back-to-top a {
        text-decoration: none;
        color: #000;
    }

    .social-media {
        display: flex;
        flex-direction: column;
        text-align: center;
        padding-top: 20px;
        padding-bottom: 50px;
    }

    .social-media-links {
        gap: 200px;
    }

    .social-media-img {
        width: 30px;
    }
}

