challenge-landing-page-humb.../assets/style/main.css

332 lines
6.1 KiB
CSS

* {
margin:0;
padding: 0;
box-sizing: border-box;
}
body{
font-family: 'Inter', sans-serif;
color:#000000
}
.page-header{
background: #000000;
display:flex;
justify-content: center;
padding: 29px 0;
}
.header-logo{
display: block;
width: 100%;
}
.main-banner-desktop {
display: block;
width: 100%;
}
.main-banner-mobile {
display: none;
}
@media (max-width: 1024px) {
.main-banner-desktop {
display: none;
}
.main-banner-mobile {
display: block;
width: 100%;
}
}
@media screen and (max-width:1024px) {
.top-infocard{
padding: 65px 0 90px;
flex-direction: column;
}
.top-infocard-subtitle{
font-size: 20px;
}
.top-infocard-title{
font-size: 28px;
margin-bottom: 20px;
}
.top-infocard-test{
margin: 0 0 66px
}
.top-infocard-image{
max-width: 240px;
width: 100%;
}
}
.top-infocard{
display: flex;
align-items: center;
justify-content: center;
gap: 72px;
flex-direction: column;
padding: 84px 38px 179px;
}
.top-infocard-test{
width: 40%;
margin: 0 auto;
}
.top-infocard-subtitle{
text-transform: uppercase;
font-size: 32px;
font-weight: 400;
}
.top-infocard-description{
font-size: 16px;
line-height: 24px;
text-align: center;
font-weight: 400;
}
.top-infocard-title{
text-transform: uppercase;
font-size: 48px;
font-weight: 500;
margin-bottom: 24px;
}
.top-infocard-title,
.top-infocard-subtitle{
text-align: center;
}
.top-cards{
display: grid;
grid-template-columns: repeat(3, max-content);
justify-content: center;
padding: 178px 0 80px 0;
}
.top-card{
background: #FFFFFF;
box-shadow: 0px 4px 20px rgba(0, 0, 0, 0.23);
display: flex;
flex-direction: column;
align-items: center;
padding: 26px 26px 34px;
}
.top-card-image{
display: block;
margin-bottom: 26px;
}
.top-card-description{
max-width: 300px;
text-align: center;
line-height: 24px;
font-size: 16px;
}
@media screen and (max-width:1024px){
.top-cards{
grid-template-columns: 1fr;
padding: 90px 32px 80px;
}
.card-dentro{
display: grid;
grid-template-columns: 1fr;
grid-template-rows: 1fr 1fr 1fr;
gap: 16px 0px;
grid-auto-flow: column dense;
grid-template-areas:
"card-desktop card-02 card-desktop card-01"
"card-desktop card-03 card-desktop card-03"
}
.texto-imagem{
grid-template-areas:
"bottom-banner bottom-banner-mobile""bottom-text"
}
}
.texto-imagem{
grid-template-areas: "bottom-text" "bottom-banner bottom-banner-desktop";
}
.cards-desktop{
padding: 0 72px;
margin: 80px 0 190px;
background-color: #E0E0E0;
}
.card-dentro{
align-items: center;
display: grid;
grid-template-columns: 1fr 1fr 1fr;
width: 100%;
justify-content: center;
position: relative;
margin: 0 auto;
gap: 40px;
transform: translateY(4rem);
grid-template-areas:
"card-desktop card-01 card-desktop card-02 card-desktop card-03";
}
.image-card-desktop{
height: auto;
width: 100%;
display: block;
}
.card-02 {
grid-row: 1;
}
.card-03{
grid-column: initial;
}
.bottom-cards{
display: grid;
grid-template-columns: 1fr 1fr 1fr 1fr;
grid-template-rows: 1fr;
grid-template-areas: "bottom-card" "bottom-card" "bottom-card" "bottom-card" ;
gap: 16px;
justify-content: center;
padding: 130px 0 108px 0;
}
.bottom-card{
background: #FFFFFF;
box-shadow: 0px 4px 16px rgba(0, 0, 0, 0.15);
display: flex;
flex-direction: column;
align-items: center;
padding: 35px 32px 65px;
}
.bottom-card-image{
display: block;
margin-bottom: 14px;
}
.bottom-card-description {
max-width: 368px;
text-align: center;
line-height: 24px;
font-size: 16px;
}
.bottom-text{
display: flex;
justify-content: center;
align-items: center;
margin-top: 50px;
margin-bottom: 50px;
}
.bottom-description{
max-width: 600px;
color: #000;
}
.bottom-subtitle{
font-weight: 600;
font-size: 32px;
line-height: 39px;
text-align: center;
}
.bottom-descriptions{
font-weight: 400;
font-size: 16px;
line-height: 24px;
text-align: center;
}
@media screen and (max-width: 1024px){
.bottom-cards{
grid-template-columns: 1fr;
padding: 80px 24px 98px;
}
.texto-imagem{
display: flex;
flex-direction: column-reverse;
}
}
@media screen and (min-width: 1024px) and (max-width: 2048px){
.bottom-cards{
grid-template-columns: 1fr 1fr;
padding: 80px 24px 98px;
}
.page-footer{
padding-bottom: 26px;
}
.footer-text{
max-width: 280px;
text-align: center;
}
}
.bottom-text{
display: flex;
justify-content: center;
align-items: center;
}
.bottom-description{
max-width: 550px;
}
.bottom-subtitle{
font-weight: 600;
font-size: 32px;
line-height: 39px;
text-align: center;
}
.bottom-descriptions{
font-weight: 400;
font-size: 16px;
line-height: 24px;
text-align: center;
}
.bottom-banner-desktop {
display: block;
width: 71%;
text-align: center;
margin: auto;
}
.bottom-banner-mobile{
display: none;
}
@media (max-width: 1024px) {
.bottom-banner-desktop {
display: none;
}
.bottom-banner-mobile {
display: block;
width: 100%;
}
.bottom-text{
display: flex;
flex-direction: column-reverse
}
}
.page-footer{
background-color: #000000;
display: flex;
flex-direction: column;
align-items: center;
padding: 38px 0;
}
.footer-text{
font-size: 10px;
line-height: 12px;
text-transform: uppercase;
color: #BDBDBD;
}
.footer-icons {
display: flex;
list-style: none;
margin-bottom: 16px;
}
.footer-icon {
margin: 0 12px;
}
@media (max-width: 1024px) {
.bottom-text{
display: flex;
flex-direction: column-reverse
}
}