/* ============================================================
   static/css/style.css  –  CSS Global do Site
   Usado por: index.php, vagas.php, admin.php
   ============================================================ */

html {
    scroll-behavior: smooth;
}

/* =========================================================
   RESET E INTERAÇÃO
========================================================= */
.swiper,
.swiper-slide,
.swiper-button-next,
.swiper-button-prev,
.swiper-pagination-bullet,
img,
a {
    outline: none !important;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
    -webkit-user-select: none;
}

/* =========================================================
   CONTAINER PADRÃO
========================================================= */
.container-restrito {
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
    padding-left: 50px;
    padding-right: 50px;
    box-sizing: border-box;
}

/* =========================================================
   MENU MOBILE
========================================================= */
#menu-mobile {
    z-index: 9999;
    position: absolute;
    width: 100%;
    left: 0;
}

#menu-mobile:not(.hidden) {
    display: flex !important;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    z-index: 9999;
    background-color: #1E40AF;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.3);
}

/* =========================================================
   SWIPERS — CONFIG GLOBAL
========================================================= */
.swiper {
    width: 100%;
    height: auto;
}

/* ── Hero ── */
.heroSwiper { position: relative; }
.heroSwiper .swiper-slide { overflow: hidden; }
.heroSwiper img { width: 100%; display: block; object-fit: cover; }

.hero-pagination {
    position: absolute;
    bottom: 15px !important;
    left: 0;
    width: 100%;
    z-index: 20;
    text-align: center;
}
.hero-pagination .swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    background: rgba(255,255,255,0.7);
    opacity: 1;
    transition: all 0.3s ease;
}
.hero-pagination .swiper-pagination-bullet-active {
    background: #FB923C;
    transform: scale(1.2);
}

/* ── Carrossel de Produtos ── */
.mySwiper {
    padding-top: 10px;
    padding-bottom: 30px;
    overflow: visible !important;
}
.mySwiper .swiper-wrapper {
    display: flex;
    align-items: stretch;
}
.mySwiper .swiper-slide {
    height: auto;
    display: flex;
    justify-content: center;
}
.mySwiper .swiper-slide > div {
    width: 100%;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background-color: #fff;
}
.mySwiper .swiper-slide > div:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
    z-index: 10;
}

/* ── Encarte ── */
.encarteSwiper {
    width: 100%;
    max-width: 700px;
    margin: 0 auto;
    overflow: hidden;
}
.encarteSwiper .swiper-slide {
    display: flex;
    justify-content: center;
    align-items: center;
    background: #fff;
}
.encarteSwiper img {
    width: 100%;
    height: auto;
    max-height: 80vh;
    object-fit: contain;
}

.encarte-pagination {
    margin-top: 15px;
    position: relative !important;
    bottom: auto !important;
    color: #1E40AF;
    font-weight: bold;
    font-size: 14px;
}

/* =========================================================
   IMAGENS DOS PRODUTOS
========================================================= */
.img-produto {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    transition: transform 0.5s ease;
}
.mySwiper .swiper-slide > div:hover .img-produto {
    transform: scale(1.05);
}

.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.5rem;
}

/* =========================================================
   SETAS DOS SWIPERS
========================================================= */
.swiper-button-next,
.swiper-button-prev {
    width: 40px !important;
    height: 40px !important;
    border-radius: 50%;
    background: rgba(255,255,255,0.95);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    color: #1E40AF !important;
}
.swiper-button-next::after,
.swiper-button-prev::after { font-size: 16px !important; }
.swiper-button-next:hover,
.swiper-button-prev:hover {
    background: #FB923C;
    color: white !important;
    transform: scale(1.08);
}

.produtos-next { right: 5px !important; }
.produtos-prev { left: 5px !important; }
.encarte-next  { right: 10px !important; }
.encarte-prev  { left: 10px !important; }

/* =========================================================
   MAPA
========================================================= */
.map-container iframe {
    width: 100%;
    display: block;
}

/* =========================================================
   CARDS DE VAGAS
========================================================= */
.vaga-card {
    transition: transform 0.3s ease, border-color 0.3s ease;
}
.vaga-card:hover {
    transform: translateX(8px);
    border-left-color: #FB923C !important;
}

/* =========================================================
   RESPONSIVIDADE
========================================================= */

/* Tablets */
@media (max-width: 1024px) {
    .container-restrito {
        padding-left: 25px;
        padding-right: 25px;
    }
    .mySwiper {
        padding-left: 35px !important;
        padding-right: 35px !important;
    }
}

/* Celulares */
@media (max-width: 640px) {
    .container-restrito {
        padding-left: 10px;
        padding-right: 10px;
    }
    .mySwiper {
        padding-left: 0 !important;
        padding-right: 0 !important;
        margin: 0 auto;
    }
    .mySwiper .swiper-slide {
        width: 85% !important;
    }
    .swiper-button-next,
    .swiper-button-prev { display: none !important; }

    .heroSwiper img {
        min-height: 180px;
        object-fit: cover;
    }
    .encarteSwiper img {
        max-height: 65vh;
        object-fit: contain;
    }
    #menu-mobile a {
        padding: 15px 20px;
        font-size: 14px;
        display: block;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }
}

/* Telas grandes */
@media (min-width: 1280px) {
    .container-restrito {
        padding-left: 50px;
        padding-right: 50px;
    }
}
