/* ================= GLOBAL ================= */

html, body {
    height: 100%;
    margin: 0;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    font-family: 'Segoe UI', sans-serif;
    caret-color: transparent;
}

input, textarea {
    caret-color: auto;
}

/* ================= NAVBAR ================= */

.custom-navbar {
    background: transparent;
    padding: 20px 40px;
    transition: all 0.4s ease;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar-scrolled {
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(8px);
    padding: 5px 70px;
}

.logo-text {
    font-weight: 800;
    font-size: 24px;
    color: white !important;
}

    .logo-text span {
        color: #00c853;
        margin-left: 5px; /* ajusta a distância entre os dois Biro */
    }

.navbar-nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}

    .navbar-nav .nav-link {
        color: white !important;
        margin: 0 15px;
        font-weight: 500;
        position: relative;
        transition: 0.3s;
    }

        .navbar-nav .nav-link::after {
            content: "";
            position: absolute;
            width: 0%;
            height: 2px;
            left: 0;
            bottom: -5px;
            background: #00c853;
            transition: 0.3s;
        }

        .navbar-nav .nav-link:hover {
            color: #00c853 !important;
        }

            .navbar-nav .nav-link:hover::after {
                width: 100%;
            }

.btn-orcamento {
    background: linear-gradient(45deg, #00c853, #00e676);
    color: #000;
    padding: 8px 20px;
    border-radius: 30px;
    font-weight: 600;
    transition: 0.3s;
}

    .btn-orcamento:hover {
        transform: translateY(-3px);
        box-shadow: 0 8px 20px rgba(0, 200, 83, 0.4);
    }

/* ================= SEARCH ================= */

.search-box {
    position: relative;
    max-width: 400px;
    width: 100%;
}

.search-input {
    width: 100%;
    height: 45px;
    border-radius: 50px;
    border: 1px solid rgba(255,255,255,0.2);
    padding: 0 50px 0 20px;
    background: rgba(255,255,255,0.08);
    backdrop-filter: blur(8px);
    color: white !important;
    transition: all 0.3s ease;
}

    .search-input::placeholder {
        color: rgba(255,255,255,0.7);
    }

    .search-input:focus {
        outline: none;
        border-color: #00c853;
        background: rgba(0,0,0,0.4);
        box-shadow: 0 0 20px rgba(0, 200, 83, 0.4);
    }

.btn-search {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    background: linear-gradient(45deg, #00c853, #00e676);
    border: none;
    border-radius: 50%;
    width: 34px;
    height: 34px;
    color: black;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
}

    .btn-search:hover {
        transform: translateY(-50%) scale(1.1);
        box-shadow: 0 0 15px rgba(0, 200, 83, 0.6);
    }

/* ================= HERO ================= */

.hero {
    height: 40vh;
    padding-top: 170px;
    background: linear-gradient(rgba(0,0,0,0.70), rgba(0,0,0,0.25)), url('/images/hero.png');
    background-size: cover;
    background-position: center;
}

.hero2 {
    height: 1vh;
    padding-top: 150px;
    background: linear-gradient(rgba(0,0,0,0.95), rgba(0,0,0,0.40)), url('/images/hero.png');
    background-size: cover;
    background-position: center;
}

/* ================= SEÇÕES ================= */

main {
    flex: 1;
}

.section-padding {
    padding: 80px 0;
}

.section-dark {
    background: #111;
    color: white;
    padding: 80px 0;
}

.section-title {
    font-weight: 700;
}

/* ================= CARDS ================= */

.service-card {
    background: #fff;
    padding: 40px 20px;
    border-radius: 12px;
    transition: 0.4s;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

    .service-card:hover {
        transform: translateY(-10px);
    }

    .service-card i {
        font-size: 40px;
        color: #00c853;
        margin-bottom: 20px;
    }

.descricao-produto {
    font-size: 0.8rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 38px;
}

.produto-hero {
    border-radius: 12px;
    background: white;
    padding: 10px;
    cursor: pointer;
    transition: all 0.3s;
}

    .produto-hero:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 20px rgba(0,0,0,0.15);
    }

    .produto-hero h6 {
        font-size: 0.85rem;
        height: 32px;
        overflow: hidden;
    }

.modal-produto {
    border-radius: 16px;
    padding: 10px;
}

.produto-imagem-area {
    padding: 10px;
    text-align: center;
}

.produto-imagem {
    max-height: 300px;
    object-fit: contain;
}

.preco-produto {
    color: #28a745;
    font-weight: bold;
}

/* ================= MODAL RESPONSIVO ================= */

.modal-produtos-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
}

    .modal-produtos-container .produto-hero {
        flex: 1 1 calc(33.333% - 10px); /* 3 por linha padrão */
    }

@media (max-width: 992px) {
    .modal-produtos-container .produto-hero {
        flex: 1 1 calc(50% - 10px); /* 2 por linha */
    }
}

@media (max-width: 480px) {
    .modal-produtos-container .produto-hero {
        flex: 1 1 100%; /* 1 por linha */
    }
}

/* animação modal */

.modal.fade .modal-dialog {
    transform: scale(.95);
    transition: all .25s;
}

.modal.show .modal-dialog {
    transform: scale(1);
}

@keyframes modalZoom {
    from {
        transform: scale(.85);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* ================= DEPOIMENTOS ================= */

.testimonial {
    background: #fff;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
}

/* ================= FOOTER ================= */

.footer {
    background: linear-gradient(180deg, #000 0%, #0a0a0a 100%);
    color: #ccc;
    padding: 30px 0 20px 0;
    flex-shrink: 0;
}

.footer-title {
    font-weight: 800;
    font-size: 22px;
    color: white;
}

    .footer-title span {
        color: #00c853;
    }

.footer-subtitle {
    font-weight: 600;
    margin-bottom: 15px;
    color: white;
}

.footer p {
    font-size: 14px;
    line-height: 1.6;
}

.footer-links {
    list-style: none;
    padding: 0;
}

    .footer-links li {
        margin-bottom: 8px;
    }

    .footer-links a {
        text-decoration: none;
        color: #ccc;
        transition: 0.3s;
    }

        .footer-links a:hover {
            color: #00c853;
            padding-left: 5px;
        }

.footer-divider {
    border-color: rgba(255,255,255,0.1);
    margin: 30px 0 20px 0;
}

.footer-copy {
    font-size: 13px;
    color: #777;
}

/* ================= RESPONSIVO ================= */

/* Tablets grandes */
@media (max-width: 992px) {
    .search-box {
        max-width: 250px;
    }

    .navbar-nav .nav-link {
        margin: 0 8px;
        font-size: 14px;
    }

    .btn-orcamento {
        padding: 6px 14px;
        font-size: 14px;
    }

    .hero {
        padding-top: 120px;
    }
}

/* Tablets pequenos e smartphones grandes */
@media (max-width: 768px) {
    .search-box {
        display: none;
    }

    .navbar-nav {
        flex-wrap: wrap;
        justify-content: center;
    }

        .navbar-nav .nav-link {
            font-size: 13px;
            margin: 0 5px;
        }

    .btn-orcamento {
        font-size: 13px;
        padding: 5px 12px;
    }

    .hero {
        padding-top: 100px;
        height: 45vh;
    }

    .service-card, .produto-hero {
        width: 48%;
        margin-bottom: 15px;
    }
}

/* Smartphones pequenos (400x861 e similares) */
@media (max-width: 480px) {
    .navbar-nav {
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
    }

        .navbar-nav .nav-link {
            margin: 5px 0;
            font-size: 12px;
        }

    .btn-orcamento {
        width: 100%;
        text-align: center;
        padding: 6px 0;
        font-size: 12px;
        margin-top: 8px;
    }

    .hero {
        padding-top: 80px;
        height: 50vh;
    }

    .service-card, .produto-hero {
        width: 100%;
        margin-bottom: 20px;
    }
}
