html, body {
  height: 100%;
  min-height: 100%;
}

body {
  display: flex;
  background-color: #1c3d56;
  align-items: center;
  flex-direction: column;
  min-height: 100vh;
}


@import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100..900;1,100..900&display=swap');

body, footer, footer *, header, main {
  font-family: "Roboto", sans-serif !important;
}

* {
  font-family: "Roboto", sans-serif;
  font-weight: 400;
  font-style: normal;
}

header {
    width: 100%;
    display: flex;
    background-color: #f4f4f4;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 10;
}

#navbar-ul {
    display: flex;
    gap: 50px;
    margin: 25px;
    color: #1c3d56;
    text-decoration: none;
    transition: max-height 0.3s;
}

#menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 44px;
    height: 44px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 20;
}
#menu-toggle .bar {
    width: 28px;
    height: 4px;
    background: #1c3d56;
    margin: 4px 0;
    border-radius: 2px;
    display: block;
    transition: 0.3s;
}


#navbar-ul a {
    color: #1c3d56;
    text-decoration: none;
    font-weight: bold;
    position: relative;
    overflow: hidden;
}

#navbar-ul a::after {
    content: '';
    display: block;
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 0;
    height: 2px;
    background: #1c3d56;
    transition: width 0.3s cubic-bezier(0.4,0,0.2,1);
}

#navbar-ul a:hover::after {
    width: 100%;
}


header img {
    width: 60px;
    height: auto;
    max-width: 100%;
    object-fit: contain;
}


a{
    text-decoration: none;

}

main{
    display: flex;
    flex-direction: column;
    width: 90%;
    padding-top: 50px;
}

h1{
    color: white;
    text-align: center;
    font-size: 1.5em;
    font-weight: 700;
    padding-bottom: 25px;
}
main h2{
    color: #C9CFD4;
    text-align: center;
    font-size: 1.2rem;
    font-weight: 700;

}

#produtos {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    margin-top: 60px;
    margin-bottom: 50px;
    
}


.card{
    max-width: 16rem;
    padding: 30px 30px 0px 30px;
    background-color: transparent;
    border: 2.4px solid white;
    color: white;
    text-align: center;
    cursor: pointer;
}
.card:hover{
    transform: scale(110%);
    transition: 0.3s;
}
.card-img-top{
    width: 192px;
    height: 192px;
    object-fit: cover;
}

#verMais{
    margin-bottom: 50px;
    width: 120px;
    height: 40px;
    border: none;
    border-radius: 6px;
    color: #1c3d56;
    background-color: white;
    align-self: center;
    font-size: 0.9rem;
    font-weight: 500;

}


.fade-in {
    animation: fadeInCard 0.5s;
}



@keyframes fadeInCard {
    from { opacity: 0; transform: translateY(20px);}
    to   { opacity: 1; transform: translateY(0);}
}



@media (max-width: 600px) {
    #produtos {
        grid-template-columns: 1fr;
        gap: 16px;
        justify-items: center;
    }
}

@media (max-width: 900px) and (min-width: 601px) {
    #produtos {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }
}

@media (min-width: 1400px) {
    #produtos {
        gap: 48px;
        max-width: 1600px;
        margin-left: auto;
        margin-right: auto;
    }
}

/*CSS FOOTER*/

footer
{
    background-color: #262626;
    width: 100%;
    padding-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    color: white;
}

footer>div
{
    display: flex;
    padding: 30px;
    justify-content: space-between;
    width: 90%;
    border-bottom: 10px solid #404040;
}

#footer-sobre
{
    display: flex;
    flex-direction: column;
}

#footer-sobre>div
{
    display: flex;
}

#footer-sobre>div>img
{
    width: 100px;

}

#footer-sobre>div>h2
{
    align-self: flex-end;
    font-size: 1.3rem;
    font-weight: 700;

}

#footer-sobre>p
{
    width: 300px;
    margin-top: 30px;
}

#footer-links
{
    text-align: center;
}

#footer-links>h2
{
    font-size: 1.2rem;
    font-weight: 600;
    padding-top: 33px;
}

#footer-links>ul
{
    line-height: 35px;
    text-align: center;
    margin: 0px;
    padding: 0px;
    width: 100%;
    list-style-type: none;
}

footer a,
footer p,
footer li {
    text-decoration: none;
    color: #b0b0b0;
}

#footer-contatos
{
    display: flex;
    flex-direction: column;
}

#footer-contatos>h2
{
    font-size: 1.2rem;
    margin-bottom: 10px;
}

#footer-contatos li
{
    margin-bottom: 10px;
    display: flex;
    align-items: center;

}

#footer-contatos>h2
{
    padding-top: 32px;
    padding-left: 30px;
    font-weight: 700;
}

footer>p
{
    margin-top: 13px;
    width: 85%;
}

footer a:hover
{
    color: white;
}

.icon
{
    width: 20px;
    height: 20px;
    margin-right: 10px;
    vertical-align: middle;
}



@media (max-width: 900px) {
    
    footer>div{
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }
}

@media (max-width: 600px) {
     #menu-toggle {
        display: block;
        margin-right: 5px;
        
    }
    nav {
        width: 100%;
    }
    #navbar-ul {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #f4f4f4;
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        margin: 0;
        padding: 0;
        width: 100vw;
        max-height: 0;
        overflow: hidden;
        box-shadow: 0 4px 16px rgba(0,0,0,0.07);
        border-bottom: 1px solid #e0e0e0;
        z-index: 15;
        transition: max-height 0.3s;
    }
    #navbar-ul.open {
        max-height: 300px;
        padding: 10px 0 10px 0;
    }
    #navbar-ul li {
        width: 100%;
        padding: 0;
        margin: 0;
        border-bottom: 1px solid #e0e0e0;
    }
    #navbar-ul li:last-child {
        border-bottom: none;
    }
    #navbar-ul a {
        display: block;
        width: 100%;
        padding: 14px 24px;
        font-size: 1.1rem;
        color: #1c3d56;
        background: none;
        border: none;
        text-align: left;
    }
    #navbar-ul a:hover {
        background: #e7e7e7;
        color: #497496;
    }
    header {
        flex-wrap: wrap;
        padding: 0 0 0 8px;
    }
    footer>div {
        flex-direction: column;
        align-items: center;
        padding: 10px 0;
        width: 90%;
       
    }
    #footer-sobre, #footer-links, #footer-contatos {
        width: 100%;
        align-items: center;
        text-align: center;
        margin-bottom: 18px;
    }
    #footer-sobre>div {
        flex-direction: column;
        align-items: center;
        gap: 6px;
    }
    #footer-sobre>div>img {
        width: 60px;
    }
    #footer-sobre>div>h2 {
        display: none;
    }
    #footer-sobre>p {
        width: 90%;
        margin: 12px auto 0 auto;
        font-size: 0.95rem;
    }
    #footer-links>h2, #footer-contatos>h2 {
        font-size: 1rem;
        padding-top: 10px;
    }
    #footer-links>ul, #footer-contatos ul {
        padding: 0;
        margin: 0 auto;
        width: 100%;
        font-size: 0.95rem;
    }
    #footer-links>ul li, #footer-contatos li {
        margin-bottom: 8px;
        justify-content: center;
        font-size: 0.95rem;
    }
    .icon {
        width: 18px;
        height: 18px;
        margin-right: 6px;
    }
    footer>p {
        width: 95%;
        font-size: 0.85rem;
        margin: 10px auto 0 auto;
        text-align: center;
    }
}