@import url('https://fonts.googleapis.com/css2?family=Lora:ital,wght@0,400..700;1,400..700&family=Montserrat:ital,wght@0,100..900;1,100..900&family=Open+Sans:ital,wght@0,300..800;1,300..800&family=Saira:ital,wght@0,100..900;1,100..900&display=swap');

* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    font-family: "Montserrat", sans-serif;
}

header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 10; 
    display: flex;
    flex-direction: column;
}

.top-header-infos {
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    gap: 0px;
    padding: 16px;
    background-color: rgba(104, 102, 102, 0.459);
    color: white;
    box-shadow: 0 0.5px 0 white;
}

.top-header-info-card {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    padding: 0px;
    font-size: 0.8rem;
}

.top-header-info-card img {
    width: 6%;
}

main {
    position: relative;
    background-image: url('../assets/hero-image.jpeg');
    height: 100vh;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 1;
}

main > * {
    position: relative;
    z-index: 1;
}

main::before {
    content: "";
    position: absolute;
    top: 0; 
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 0;
}

.bottom-header-infos {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-around;
    gap: 0px;
    padding: 16px;
    background-color: rgba(104, 102, 102, 0.459);
    color: white;
}

.bottom-header-infos nav {
    display: flex;
    flex-direction: row;
    gap: 20px;
}

.bottom-header-infos nav a {
    font-family: "Saira", sans-serif;
    cursor: pointer;
    font-weight: 500;
    color: white;
    text-decoration: none;
}

.header-icon {
    width: 180px;
}

.hero-section {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin-top: 10%;
}

.hero-section p {
    color: white;
    font-size: 1.4rem;
    font-family: "Lora", serif;
}

.hero-section button {
    width: 14%;
    padding: 14px;
    margin-top: 14px;
    font-size: 1.2rem;
    font-weight: 400;
    background-color: rgb(255, 208, 0);
    border: none;
    color: white;
    border-radius: 4px;
    cursor: pointer;
}

button:hover {
    opacity: 0.8;
}

h1 {
    margin-left: auto;
    margin-right: auto;
    font-weight: bolder;
    font-size: 4rem;
    font-family: 'Montserrat', sans-serif;
    background: linear-gradient(90deg, #fac61a, #ffffff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
}

.services {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    margin-top: 80px;
}

.services h2::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 30%;
    height: 3px;
    background-color: #FFC925;
}

h2 {
    position: relative;
    font-weight: 400;
    font-size: 1.8rem;
    color: rgb(39, 38, 38);
    text-align: center;
    padding-bottom: 16px;
}

.service-card-container {
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
    gap: 16px;
    padding: 80px;
    row-gap: 40px;
}

.service-card {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    flex: 0 0 calc(33.333% - 10.67px);
    box-sizing: border-box;
}

.service-card h4 {
    margin-bottom: 10px;
    color: rgb(39, 38, 38);
}

.service-card p {
    color: rgba(39, 38, 38, 0.671);
}

.service-card img {
    width: 30%;
}

.about-us {
    display: flex;
    flex-direction: column;
    padding: 80px;
    gap: 20px;
}

.about-us h2::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 10%;
    height: 3px;
    background-color: #FFC925;
}

.about-section-wrapper {
    display: flex;
    flex-direction: row;
    gap: 20px;
}

.about-section-wrapper > div {
    display: flex;
    flex-direction: column;
    align-items: top;
}

.about-section-wrapper > div h4 {
    background-color: #FFC925;
    color: white;
    padding: 10px;
    margin-bottom: 20px;
    width: 51rem;
}

.about-section-wrapper > div p {
    margin-left: 20px;
    margin-bottom: 20px;
    color: rgba(39, 38, 38, 0.671);
    max-width: 45rem;
}

.about-section-wrapper img {
    width: 400px;
    height: 300px;
}

footer {
    background-color: #2c2c2c;
    color: #ccc;
    padding: 60px 80px 20px;
    display: flex;
    flex-direction: column;
    margin-top: 80px;
}

.footer-content {
    display: flex;
    gap: 60px;
    margin-bottom: 40px;
}

.footer-content > div {
    flex: 1;
}

footer h4 {
    color: white;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

footer h4::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background-color: #FFC925;
}

footer p {
    color: #aaa;
    line-height: 1.6;
    font-size: 0.9rem;
    margin-bottom: 15px;
}

footer h6 {
    color: white;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 8px;
    margin-top: 20px;
}

footer h6:first-of-type {
    margin-top: 0;
}

footer div div {
    margin-bottom: 20px;
}

footer div div p {
    margin-bottom: 0;
    color: #bbb;
}

.footer-credit {
    width: 100%;
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #444;
    color: #888;
    font-size: 0.8rem;
}

.footer-credit a {
    color: #FFC925;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.footer-credit a:hover {
    color: #fff;
}

/* MEDIA QUERIES PARA RESPONSIVIDADE */

/* Tablets (768px - 1024px) */
@media screen and (max-width: 1024px) {
    .header-icon {
        width: 150px;
    }
    
    .hero-section button {
        width: 20%;
    }
    
    h1 {
        font-size: 3.5rem;
    }
    
    .service-card-container {
        padding: 60px 40px;
    }
    
    .service-card {
        flex: 0 0 calc(50% - 8px);
    }
    
    .about-us {
        padding: 60px 40px;
    }
    
    .about-section-wrapper > div h4 {
        width: 40rem;
    }
    
    .about-section-wrapper img {
        width: 350px;
        height: 250px;
    }
    
    footer {
        padding: 40px 60px 20px;
    }
}

/* Tablets Pequenos (481px - 768px) */
@media screen and (max-width: 768px) {
    .top-header-infos {
        flex-direction: column;
        gap: 10px;
        padding: 12px;
    }
    
    .top-header-info-card {
        font-size: 0.7rem;
        justify-content: center;
    }
    
    .top-header-info-card img {
        width: 20px;
    }
    
    .bottom-header-infos {
        flex-direction: column;
        gap: 15px;
        padding: 12px;
    }
    
    .bottom-header-infos nav {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }
    
    .bottom-header-infos nav a {
        font-size: 0.9rem;
    }
    
    .header-icon {
        width: 120px;
    }
    
    .hero-section {
        margin-top: 20%;
        padding: 0 20px;
    }
    
    .hero-section p {
        font-size: 1.2rem;
        text-align: center;
    }
    
    .hero-section button {
        width: 30%;
        font-size: 1rem;
        padding: 12px;
    }
    
    h1 {
        font-size: 2.8rem;
        text-align: center;
    }
    
    h2 {
        font-size: 1.6rem;
        padding: 0 20px;
    }
    
    .service-card-container {
        padding: 40px 20px;
    }
    
    .service-card {
        flex: 0 0 100%;
        flex-direction: column;
        text-align: center;
        padding: 20px;
    }
    
    .service-card img {
        width: 80px;
    }
    
    .about-us {
        padding: 40px 20px;
    }
    
    .about-section-wrapper {
        flex-direction: column;
    }
    
    .about-section-wrapper > div h4 {
        width: 100%;
        text-align: center;
    }
    
    .about-section-wrapper > div p {
        margin-left: 0;
        text-align: justify;
    }
    
    .about-section-wrapper img {
        width: 100%;
        height: auto;
        margin-top: 20px;
    }
    
    footer {
        padding: 30px 20px 15px;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 30px;
    }
}

/* Smartphones (320px - 480px) */
@media screen and (max-width: 480px) {
    .top-header-info-card {
        font-size: 0.6rem;
    }
    
    .top-header-info-card img {
        width: 16px;
    }
    
    .bottom-header-infos nav a {
        font-size: 0.8rem;
    }
    
    .header-icon {
        width: 100px;
    }
    
    .hero-section {
        margin-top: 25%;
        padding: 0 15px;
    }
    
    .hero-section p {
        font-size: 1rem;
    }
    
    .hero-section button {
        width: 40%;
        font-size: 0.9rem;
        padding: 10px;
    }
    
    h1 {
        font-size: 2.2rem;
    }
    
    h2 {
        font-size: 1.4rem;
    }
    
    .services {
        margin-top: 60px;
    }
    
    .service-card-container {
        padding: 30px 15px;
    }
    
    .service-card {
        padding: 15px;
    }
    
    .service-card img {
        width: 60px;
    }
    
    .service-card h4 {
        font-size: 1rem;
    }
    
    .service-card p {
        font-size: 0.9rem;
    }
    
    .about-us {
        padding: 30px 15px;
    }
    
    .about-section-wrapper > div h4 {
        font-size: 1rem;
        padding: 8px;
    }
    
    .about-section-wrapper > div p {
        font-size: 0.9rem;
    }
    
    footer {
        padding: 20px 15px 10px;
    }
    
    footer h4 {
        font-size: 1.1rem;
    }
    
    footer p {
        font-size: 0.8rem;
    }
    
    footer h6 {
        font-size: 0.8rem;
    }
    
    .footer-credit {
        font-size: 0.7rem;
    }
}

/* Telas muito pequenas (menor que 320px) */
@media screen and (max-width: 320px) {
    .top-header-infos {
        padding: 8px;
    }
    
    .top-header-info-card {
        font-size: 0.5rem;
    }
    
    .header-icon {
        width: 80px;
    }
    
    h1 {
        font-size: 1.8rem;
    }
    
    .hero-section button {
        width: 50%;
        font-size: 0.8rem;
    }
    
    .service-card img {
        width: 50px;
    }
    
    .service-card h4 {
        font-size: 0.9rem;
    }
    
    .service-card p {
        font-size: 0.8rem;
    }
}