@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,100..1000;1,9..40,100..1000&&family=Roboto:ital,wght@0,100..900;1,100..900&display=swap');

body {
    font-family: "Roboto";
}

.header {
    display: flex;
    justify-content: center;
    align-items: start;
    margin-bottom: 40px;
}

.header img {
    display: flex;
    justify-content: center;
    align-items: start;
    width: 250px;
}

.botoes {
    display: flex;
    flex-direction: column;
    font-size: 15px;
    font-weight: 600;
}

#primeiro-btn {
    background-color: #8B0C0B;
    padding: 8px 40px;
    text-decoration: none;
    border-radius: 30px;
    color: #fff;
}

#segundo-btn {
    margin-top: 20px;
    background-color: #282828;
    padding: 8px 40px;
    text-decoration: none;
    border-radius: 30px;
    color: #fff;
}

#btn-baixarPodutos {
    background-color: #0a4922;
    color: #fff;
    font-size: 23px;
    margin-top: 50px;
    margin-bottom: 80px;
    padding: 8px 40px;
    text-decoration: none;
    border-radius: 30px;
}

.texto-paragrafo {
    width: 60%;
    font-size: 20px;
}

.folheto {
    width: 100%;
    background-color: #a7a7a7;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.items-nome {
    display: flex;
    flex-direction: row;
    justify-content: center;
    flex-wrap: wrap;
}

.folheto-img {
    max-width: 100%;
    border-radius: 10px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.produto-card {
    background: rgba(255, 255, 255, 0.8);
    padding: 8px 15px;
    border-radius: 8px;
    font-weight: 1000;
    font-size: 22px;
    color: #da1313;
    transition: transform 0.3s ease;
}

.produto-card:hover {
    transform: scale(1.1);
}

.botoes-produtos {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.botoes-produtos h3 {
    color: #da1313;
    margin: 40px 0;
}

.produtos {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    max-width: 800px;
}

.produtos a {
    color: #0115c9;
    font-weight: bold;
    font-size: 22px;
    background-color: #888;
    padding: 9px 20px;
    width: 25%;
    text-decoration: none;
    border-radius: 15px;
    border: 1px solid #777;
    text-align: center;
}

.caixa-produtos {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 20px 50px;
    margin: 50px 0;
    color: #da1313;
    background-color: #bbb;
    border: 1px solid #da1313;
    border-radius: 20px;
}

.footer {
    background: linear-gradient(135deg, #f5f5f5, #e9ecef);
    color: #000;
    padding: 20px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    border-top: 4px solid #da1313;
}

.footer .info {
    font-family: 'DM Sans', sans-serif;
    font-size: 18px;
    line-height: 1.6;
}

.footer .info p {
    margin: 5px 0;
}

.footer .info .telefone {
    font-weight: bold;
    color: #da1313;
    font-size: 18px;
}

.footer .info a {
    color: #0115c9;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.footer .info a:hover {
    color: #da1313;
}

.footer .simbolo img {
    max-width: 140px;
    transition: transform 0.3s ease;
}

.footer .simbolo img:hover {
    transform: scale(1.05);
}

/* Modal Styles */
.modal-content {
    border-radius: 15px;
    border: 3px solid #da1313;
}

.modal-header {
    background: linear-gradient(135deg, #8B0C0B, #da1313);
    color: white;
    border-radius: 12px 12px 0 0;
}

.modal-title {
    font-weight: bold;
    font-size: 24px;
}

.btn-close {
    filter: brightness(0) invert(1);
}

.btn-catalogo {
    font-size: 18px;
    font-weight: 600;
    padding: 15px 20px;
    border-radius: 10px;
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-conexoes {
    background-color: #0a4922;
    color: white;
    border: 2px solid #0a4922;
}

.btn-conexoes:hover {
    background-color: #0d6b30;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(10, 73, 34, 0.3);
}

.btn-valvulas {
    background-color: #0115c9;
    color: white;
    border: 2px solid #0115c9;
}

.btn-valvulas:hover {
    background-color: #0118e6;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(1, 21, 201, 0.3);
}

.btn-flanges {
    background-color: #8B0C0B;
    color: white;
    border: 2px solid #8B0C0B;
}

.btn-flanges:hover {
    background-color: #a51010;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(139, 12, 11, 0.3);
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .header {
        flex-direction: column;
        align-items: center;
        text-align: center;
        margin-bottom: 20px;
    }

    .header img {
        width: 150px; 
        margin-bottom: 20px;
    }

    .header h1 {
        font-size: 1.5rem;
        margin: 0;
        padding: 0 10px;
    }

    .texto-paragrafo {
        width: 90%;
        font-size: 16px;
        padding: 10px;
    }

    .items-nome {
        flex-direction: column;
        gap: 10px;
    }

    .produto-card {
        font-size: 18px;
        padding: 6px 12px;
    }

    .produtos {
        display: flex;
        flex-wrap: wrap; 
        justify-content: center;
        align-items: center;
        gap: 10px;
        max-width: 95%;
    }

    .produtos a {
        width: 48%; /* 2 botoes por linha */
        font-size: 16px;
        padding: 8px 10px; 
        box-sizing: border-box; /* Ensure padding doesn’t affect width */
    }

    .caixa-produtos {
        padding: 15px 20px;
        margin: 20px 10px;
    }

    .caixa-produtos h4 {
        font-size: 16px;
    }

    .botoes {
        align-items: center;
    }

    #primeiro-btn, #segundo-btn {
        padding: 8px 20px;
        font-size: 14px;
    }

    #btn-baixarPodutos {
        font-size: 18px;
        padding: 8px 20px;
        margin: 20px 0;
    }

    .folheto-img {
        width: 90%;
        margin: 0 auto;
    }

    .footer {
        flex-direction: column;
        text-align: center;
        padding: 20px 10px;
    }

    .footer .info {
        font-size: 16px;
    }

    .footer .simbolo img {
        margin-top: 10px;
        max-width: 120px;
    }
}

@media (max-width: 576px) {
    .header h1 {
        font-size: 1.2rem;
    }

    .header img {
        width: 120px;
    }

    .texto-paragrafo {
        font-size: 14px;
    }

    .produto-card {
        font-size: 16px;
    }

    .produtos {
        flex-wrap: wrap; /* Maintain two-per-row layout */
        gap: 20px; /* Slightly smaller gap for smaller screens */
    }

    .produtos a {
        width: 45%; 
        font-size: 14px;
        padding: 6px 8px; /* Tighter padding for small screens */
    }

    .caixa-produtos h4 {
        font-size: 14px;
    }

    #primeiro-btn, #segundo-btn {
        font-size: 12px;
        padding: 6px 15px;
    }

    #btn-baixarPodutos {
        font-size: 16px;
        padding: 6px 15px;
    }

    .footer .info {
        font-size: 14px;
    }

    .footer .simbolo img {
        max-width: 100px;
    }
}