@import url('./global.css');
@import url('./components/header.css');
@import url('./components/footer.css');

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

body {
    font-family: Arial, Helvetica, sans-serif;
    background: #faf8f8;
}

.hero {
    position: relative;
    height: 600px;
    overflow: hidden;
}

.hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero figcaption {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .45);
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 20px;
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: 10px;
}

.hero h5 {
    letter-spacing: 3px;
    margin-bottom: 20px;
}

.hero h2 {
    max-width: 900px;
}

h3 {
    color: var(--cor-texto);
    font-size: 2.5rem;
    text-align: center;
    margin: 50px 0 30px;
}

.projetos {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 25px;
    padding: 50px;
}

.projeto {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.048);
}

.projeto img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.projeto figcaption {
    padding: 20px;
    font-weight: bold;
}

.projeto button {
    margin: 0 20px 20px;
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    background: var(--cor-dourado);
    color: white;
    cursor: pointer;
}

.projeto button:hover {
    opacity: .9;
}

.personalizados {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    padding: 50px;
}

.personalizado {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
}

.personalizado img {
    width: 100%;
    height: 500px;
    object-fit: cover;
}

.personalizado .texto {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .45);
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 30px;
    font-size: 1.3rem;
}

.cta {
    position: relative;
    margin: 50px;
    border-radius: 12px;
    overflow: hidden;
}

.cta img {
    width: 100%;
    height: 450px;
    object-fit: cover;
}

.cta figcaption {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .5);
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    font-size: 2rem;
    padding: 30px;
}

@media (min-width: 768px) {
    .projetos {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    }

    .personalizados {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    }

}