:root {
    --primary-color: #FBD77E;
    --text-color: #000000;
    --text-light: #00000066;
    --white: #ffffff;
    --white-text: #ffffff;
    --ff: Raleway;
}

* {
    box-sizing: border-box;
    font-family: var(--ff);
}

p {
    margin: 0;
}
h2 {
    margin: 0.5rem 0;
}

body {
    background-color: var(--white);
    margin: 0;
    padding: 0;
}

.container {
    max-width: 100vw;
    margin: 0 auto;
    overflow: hidden;
}

/* Hero Section */

.hero {
    width: 100vw;
    height: 57.5rem;
    background-image: url('/home/hero.jpg');
    background-size: cover;
    background-position: center;
    position: relative;
}

.hero-content {
    position: absolute;
    top: 15.625rem;
    left: calc((100vw - 1218px)/2);
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: flex-start;
}

.hero-content p {
    width: 100%;
    font-size: 3rem;
    font-weight: 500;
    text-align: left;
    color: var(--white-text);
    margin: 0;
}

.hero-content p.highlighted {
    color: var(--primary-color);
}

.hero-content button {
    margin: 10px 0;
}

.contact-btn {
    all: unset;
    border-bottom: 2px solid var(--white);
    background: transparent;
    color: var(--white-text);
    font-weight: 800;
    font-size: 1rem;
    cursor: pointer;
    width: fit-content;
    height: fit-content;
    padding: 7.5px 0px;
    position: relative;
    display: inline-block;
}

.contact-btn.dark {
    border-color: var(--text-color);
    color: var(--text-color);
}

.contact-btn:after {
    content: '';
    position: absolute;
    width: 100%;
    transform: scaleX(0);
    height: 3px;
    bottom: -3px;
    left: 0;
    background-color: var(--primary-color);
    transition: transform 0.35s ease-out;
    transform-origin: bottom right;
}

.contact-btn:hover::after {
    transform: scaleX(1);
    transform-origin: bottom left;
}

/* About Section */
.about {
    padding: 7.3125rem calc((100vw - 90rem)/2);
    background: var(--white);
}

.subtitle {
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 10px;
    width: 560px;
}

.about-content {
    display: flex;
    justify-content: space-between;
    gap: 2.5rem;
}

.about-text {
    max-width: 56.25rem;
}

.about-text h2 {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 2rem;
}

.about-text p {
    font-size: 1rem;
}

.cards {
    display: flex;
    gap: 1rem;
    margin: 2.5rem 0;
}

.card {
    flex: 1;
    max-width: 26rem;
}

.card h3 {
    margin-bottom: 1.25rem;
}

.about-image {
    position: relative;
    min-width: 20.8125rem;
    height: 31.25rem;
}

.rectangle {
    position: absolute;
    width: 5.9375rem;
    height: 4.0625rem;
}

.rectangle.top {
    top: -.0625rem;
    left: -.0625rem;
}

.rectangle.bottom {
    bottom: -.0625rem;
    right: -.0625rem;
}

/* Services Section */
.services {
    margin: 0 auto;
    background: linear-gradient(to bottom, var(--primary-color) 50%, white 50%);
    max-height: 920px;
    max-width: 90rem;
    width: 100%;
}

.services-small-title {
    font-size: 0.75rem;
    font-weight: 600;
}

.services-messages {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    padding: 4rem 8.125rem;
    gap: 2rem;
}

.title {
    padding: 2rem 0 0 0;
    width: 45rem;
}

.services-big-message {
    font-size: 2rem;
    color: var(--text-color);
    text-align: left;
    flex: 1;
}

.services-message {
    max-width: 21.25rem;
}

.white {
    font-size: 2rem;
    color: var(--white);
}

.carousel-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.625rem;
    width: 100%;
    max-width: 90rem;
    margin: auto;
    height: 32.5rem;
}

/* TEAM SECTION */

.team {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    padding: 117px calc((100vw - 90rem)/2);
    justify-content: center;
    align-items: center;
    gap: 3.125rem;
}

.team-photo {
    padding: 0 10px;
    flex: 1;
    width: 40%;
}

.text {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 1.25rem;
}

.text-title {
    font-size: 2rem;

}

.text-titles h2 {
    margin-top: 0;
}

.yellow {
    color: #F1BD34;
}



/* Responsive Design */

@media (max-width: 93.9375rem) {
    .about {
        padding: 117px 2rem;
    }

    .hero {
        padding: 0 2rem;
    }
}

@media (max-width: 1440px) {

    .carousel {
        width: 56.25rem;
        overflow: hidden;
    }

    .services {
        margin: 0 auto;
        padding: 0 2rem;
    }
}


@media (max-width: 1250px) {

    .hero-content {
        left: 2rem;
    }

}
@media (max-width: 1024px) {
    .about-text {
        max-width: 37.5rem;
    }

    .services {
        padding: 0 2rem;
    }

    .services-messages {
        gap: 2rem;
        padding: 1rem 2rem;
    }

    .title {
        width: 35.625rem;
    }

    .services-grid {
        grid-template-columns: repeat(4, 1fr);
        padding: 0;
        margin: 0;
    }

}

@media (max-width: 900px) {
    
    .team {
        flex-direction: column;
        padding: 1.25rem;
        margin-top: 2rem;
    }

    .team-photo {
        width: 90%;
    }
}

@media (max-width: 768px) {
    .about {
        padding: 2rem 1.25rem;
    }

    .about-subtitle {
        flex-direction: column;
    }

    .hero-content {
        left: 50%;
        transform: translateX(-50%);
        top: 8.5rem;
        min-width: 23.75rem;
        align-items: center;
    }
    
    .hero-content p {
        font-size: 2.5rem;
        text-align: center;
    }   
    
    .about-content {
        flex-direction: column;
    }

    .about-image {
        display: none;
    }

    .about-content .subtitle {
        font-size: 0.75rem;
        font-weight: 400;
    }

    .cards {
        flex-direction: column;
    }

    .carousel-container {
        height: 25rem;
        gap: 0.9375rem;
    }

    .services-messages {
        padding: 0;
    }

    .services-small-title {
        font-weight: 400;
    }

    .services-cards {
        padding: 0;
        grid-template-columns: repeat(6, 11.25rem);
        grid-template-rows: repeat(2, 11.25rem);
        gap: 0.625rem;
    }

    .team {
        padding: 1.25rem;
        margin-top: 2rem;
    }

    .subtitle {
        font-weight: 400;
    }
}

@media (max-width: 572px) {
    .services-big-message {
        font-size: 1.5rem;
    }
}

@media (max-width: 540px) {
    .carousel-container {
        height: 20rem;
        gap: 0.625rem;
    }

    .services {
        margin-top: 2rem;
        padding: 0 0.625rem;
    }

    .services-messages {
        padding: 0 1rem;
    }

    .services-message {
        display: none;
    }

    .services-cards {
        padding: 0;
        grid-template-columns: repeat(6, 6.25rem);
        grid-template-rows: repeat(2, 6.25rem);
        gap: 0.625rem;
    }

    .team {
        margin-top: 0;
    }

}

@media (max-width: 400px) {
    .hero-content p {
        font-size: 2rem;
    }
}