@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

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

body {
    font-family: 'Poppins', sans-serif;
    background-color: #fff;
    color: #000000;
}

/* ── HEADER ── */
.titulo {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    background-color: rgb(10, 76, 199);
}

.titulo h1 {
    font-size: 70px;
    color: #fff;
}

.titulo a {
    text-decoration: none;
    transition: transform 0.2s ease;
    cursor: pointer;
}

.titulo a:hover {
    transform: scale(1.1);
}

.menu-comfotos ul {
    display: flex;
    list-style: none;
    gap: 20px;
}

.menu-comfotos img {
    height: 70px;
    transition: transform 0.2s ease;
    cursor: pointer;
}

#searchInput {
    background-color: rgb(10, 76, 199);
    border: 2px solid #fff;
    border-radius: 25px;
    color: #fff;
    font-family: 'Poppins', sans-serif;
    font-size: 15px;
    outline: none;
    padding: 16px 28px;
    transition: border 0.3s, background-color 0.3s, width 0.3s;
    width: 380px;
    font-size: 17px;
}

#searchInput::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

#searchInput:focus {
    background-color: rgba(255, 255, 255, 0.2);
    border-color: #0056b3;
    width: 460px;
}

/* ── NAV CATEGORIAS ── */
.menu-categoria {
    background-color: rgb(10, 76, 199);
    width: 100%;
}

.menu-categoria > ul {
    display: flex;
    justify-content: center;
    list-style: none;
    margin: 0;
    padding: 0;
}

.menu-categoria > ul > li {
    display: inline-block;
    padding: 14px 30px;
    font-size: 18px;
}

.menu-categoria > ul > li > a {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    position: relative;
    padding: 0.4rem 0.6rem;
    transition: color 0.2s;
}

.menu-categoria > ul > li > a::after {
    content: "";
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0%;
    height: 2px;
    background-color: #fff;
    transition: width 0.3s;
}

.menu-categoria > ul > li > a:hover {
    color: #fff;
}

.menu-categoria > ul > li > a:hover::after {
    width: 100%;
}

/* ── MAIN / PÁGINA DE CATÁLOGO ── */
main {
    padding: 50px 60px;
}

.page-title {
    font-size: 28px;
    font-weight: 700;
    color: #000000;
    margin-bottom: 8px;
    letter-spacing: 1px;
}

.page-subtitle {
    font-size: 14px;
    color: #888;
    margin-bottom: 40px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* ── CARDS ── */
.cards {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.card {
    background-color: rgb(10, 76, 199);
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 0.5s ease forwards;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.7);
}

.card img {
    width: 160px;
    min-width: 160px;
    height: 240px;
    object-fit: cover;
    display: block;
    border-radius: 12px 0 0 12px;
}

.card-info {
    padding: 16px 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.card-info h3 {
    font-size: 17px;
    font-weight: 600;
    color: #fff;
}

.card-info p {
    font-size: 13px;
    color: #ddd;
    line-height: 1.7;
}

.card-info p {
    font-size: 14px;
    color: #aaa;
    line-height: 1.7;
    flex: 1;
}

/* delay escalonado */
.card:nth-child(1) { animation-delay: 0.05s; }
.card:nth-child(2) { animation-delay: 0.15s; }
.card:nth-child(3) { animation-delay: 0.25s; }
.card:nth-child(4) { animation-delay: 0.35s; }
.card:nth-child(5) { animation-delay: 0.45s; }

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ── FOOTER ── */
footer {
    background: rgb(10, 76, 199);
    color: #fff;
    padding: 30px 20px 20px;
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.25);
}

footer h2 {
    color: #fff;
    margin-bottom: 10px;
}

footer p {
    font-size: 15px;
    color: #fff;
}

.redes {
    text-align: center;
    margin-bottom: 20px;
}

.redes a {
    display: inline-block;
    text-decoration: none;
}

.redes img {
    margin: 5px;
    width: 45px;
    filter: brightness(0) invert(1);
    transition: transform 0.2s ease, filter 0.2s ease;
}

.redes img:hover {
    transform: scale(1.15);
    filter: brightness(0) saturate(100%) invert(85%) sepia(80%) saturate(500%) hue-rotate(5deg);
}

.contato {
    color: #fff;
    padding: 10px 5%;
    display: flex;
    justify-content: space-between;
    margin: 15px 0;
    font-size: 14px;
}

.contato .titulo {
    font-weight: 600;
    font-size: 15px;
    background: none;
    border: none;
    padding: 0;
    display: inline;
}

.direitos {
    text-align: center;
    margin-top: 15px;
    font-size: 13px;
}

/* ── RESPONSIVIDADE ── */

/* Tablet: até 1024px */
@media (max-width: 1024px) {
    .titulo {
        padding: 16px 24px;
        flex-wrap: wrap;
        gap: 12px;
    }

    .titulo h1 {
        font-size: 48px;
    }

    #searchInput {
        width: 200px;
    }

    #searchInput:focus {
        width: 240px;
    }

    .menu-categoria > ul > li {
        padding: 12px 16px;
        font-size: 15px;
    }

    main {
        padding: 36px 32px;
    }

    .card img {
        width: 140px;
        min-width: 140px;
        height: 210px;
    }
}

/* Mobile grande: até 768px */
@media (max-width: 768px) {
    .titulo {
        flex-direction: column;
        align-items: flex-start;
        padding: 16px 20px;
        gap: 10px;
    }

    .titulo h1 {
        font-size: 36px;
    }

    #searchInput {
        width: 100%;
    }

    #searchInput:focus {
        width: 100%;
    }

    .menu-comfotos img {
        height: 48px;
    }

    .menu-categoria > ul {
        flex-wrap: wrap;
        justify-content: flex-start;
        padding: 8px 12px;
        gap: 4px;
    }

    .menu-categoria > ul > li {
        padding: 8px 12px;
        font-size: 14px;
    }

    main {
        padding: 24px 16px;
    }

    .page-title {
        font-size: 22px;
    }

    .card {
        flex-direction: row;
    }

    .card img {
        width: 120px;
        min-width: 120px;
        height: 180px;
    }

    .card-info {
        padding: 12px 14px;
        gap: 6px;
    }

    .card-info h3 {
        font-size: 15px;
    }

    .card-info p {
        font-size: 12px;
    }

    .contato {
        flex-direction: column;
        gap: 12px;
    }
}

/* Mobile pequeno: até 480px */
@media (max-width: 480px) {
    .titulo h1 {
        font-size: 28px;
    }

    .menu-comfotos ul {
        gap: 10px;
    }

    .menu-comfotos img {
        height: 38px;
    }

    .menu-categoria > ul > li {
        padding: 6px 10px;
        font-size: 13px;
    }

    .card {
        flex-direction: column;
    }

    .card img {
        width: 100%;
        min-width: unset;
        height: 220px;
        border-radius: 12px 12px 0 0;
    }

    .card-info {
        padding: 14px 16px;
    }

    .redes img {
        width: 36px;
    }
}

/* ── CARD CLICÁVEL ── */
a.card {
    text-decoration: none;
    cursor: pointer;
}

a.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.7);
}

.trailer-btn {
    display: inline-block;
    margin-top: 8px;
    padding: 6px 14px;
    background-color: #fff;
    color: rgb(10, 76, 199);
    font-size: 12px;
    font-weight: 600;
    border-radius: 20px;
    align-self: flex-start;
    transition: background-color 0.2s, transform 0.2s;
}

a.card:hover .trailer-btn {
    background-color: #fff;
    transform: scale(1.05);
}
