/*
Tema Interinox
CSS principal
*/


:root {

    --accent:#2563eb;

    --blue-dark:#0b1f3a;

    --blue-medium:#1e40af;

    --blue-soft:#eff6ff;

    --steel:#64748b;

    --steel-dark:#0f172a;

    --bg-soft:#f8fafc;

    --border-soft:#dbe3ee;

}



/* =====================
BASE
===================== */


body{

    font-family:'Inter',sans-serif;

    color:var(--steel-dark);

    background:#fff;

}


html{

    scroll-behavior:smooth;

}


.font-display{

    font-family:'Barlow Condensed',sans-serif;

}



img{

    max-width:100%;

    height:auto;

}





/* =====================
HEADER
===================== */


.header-glass{

    background:var(--blue-dark);

    backdrop-filter:blur(12px);

    border-bottom:1px solid rgba(255,255,255,.15);

}



.header-glass .nav-link{

    color:white;

    transition:.3s;

}


.header-glass .nav-link:hover{

    color:#93c5fd;

}


.header-glass .logo{

    color:white!important;

}





/* =====================
BOTÕES
===================== */


.btn-primary{

    background:var(--blue-medium);

    color:white;

    transition:.3s;

}


.btn-primary:hover{

    background:var(--accent);

    transform:translateY(-2px);

}







/* =====================
PRODUTOS
===================== */


.product-card{

    background:white;

    border:1px solid var(--border-soft);

    border-radius:20px;

    overflow:hidden;

    transition:.3s;

}


.product-card:hover{

    border-color:var(--accent);

    transform:translateY(-5px);

    box-shadow:
    0 20px 40px rgba(30,64,175,.12);

}


.product-card img{

    transition:.4s;

}


.product-card:hover img{

    transform:scale(1.05);

}







/* ==================================================
   PROJETOS
================================================== */

#projetos {
    overflow: hidden;
}

.projetos-carrossel-wrapper {
    position: relative;
    padding: 16px 0 76px;
}

.swiper-projetos {
    width: 100%;
    overflow: visible;
    padding: 18px 0 28px;
}

.swiper-projetos .swiper-wrapper {
    align-items: center;
}

.swiper-projetos .swiper-slide {
    display: flex;
    height: auto;
    align-items: stretch;
    transition: transform .4s ease, opacity .4s ease;
}

.swiper-projetos .swiper-slide:not(.swiper-slide-active) {
    opacity: .78;
    transform: scale(.92);
}

.swiper-projetos .swiper-slide-active {
    position: relative;
    z-index: 2;
}

/* Card compacto e premium */
.projeto-card {
    width: 100%;
    background: white;
    border-radius: 22px;
    overflow: hidden;
    border: 1px solid var(--border-soft);
    box-shadow: 0 16px 36px rgba(15, 23, 42, .10);
    transition: .35s ease;
}

.swiper-slide-active .projeto-card {
    box-shadow: 0 24px 52px rgba(15, 23, 42, .16);
    border-color: rgba(37, 99, 235, .28);
}

.projeto-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 26px 54px rgba(15, 23, 42, .18);
}

.projeto-card-media {
    position: relative;
    background: #e9eef5;
}

.swiper-fotos {
    width: 100%;
    height: 250px;
    position: relative;
}

.swiper-fotos .swiper-slide {
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.swiper-fotos img {
    display: block;
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform .5s ease;
}

.projeto-card:hover .swiper-fotos img {
    transform: scale(1.04);
}

.projeto-card-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 20px 20px;
}

.projeto-card-heading {
    min-width: 0;
}

.projeto-card h3 {
    padding: 0;
    margin: 0;
    color: var(--blue-dark);
    font-size: 20px;
    line-height: 1.2;
    font-weight: 700;
}

.projeto-card-location {
    display: block;
    margin-top: 7px;
    color: var(--steel);
    font-size: 13px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.projeto-detalhes {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--blue-medium);
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    transition: .25s ease;
}

.projeto-detalhes:hover {
    color: var(--accent);
    gap: 9px;
}

.projeto-meta,
.projeto-descricao {
    display: none;
}

.projeto-sem-foto {
    height: 250px;
    display: grid;
    place-items: center;
    color: var(--steel);
    background: var(--bg-soft);
}

/* Setas do carrossel interno */
.swiper-fotos .swiper-button-next,
.swiper-fotos .swiper-button-prev {
    width: 34px;
    height: 34px;
    margin-top: -17px;
    border-radius: 50%;
    background: rgba(255,255,255,.94);
    color: var(--blue-medium)!important;
    box-shadow: 0 6px 15px rgba(0,0,0,.15);
}

.swiper-fotos .swiper-button-next::after,
.swiper-fotos .swiper-button-prev::after {
    font-size: 14px;
    font-weight: 700;
}

.swiper-fotos .swiper-pagination {
    bottom: 10px;
}

.swiper-pagination-bullet {
    background: var(--accent)!important;
    opacity: .35;
}

.swiper-pagination-bullet-active {
    opacity: 1;
}

/* Navegação principal */
.projetos-nav-bottom {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
}

.projeto-nav-btn {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: 1px solid var(--border-soft);
    background: white;
    color: var(--blue-medium);
    cursor: pointer;
    transition: .3s;
}

.projeto-nav-btn:hover {
    background: var(--blue-medium);
    color: white;
}

.projetos-counter {
    font-weight: 700;
    color: var(--blue-dark);
}

/* Tablet */
@media (max-width: 1024px) {
    .swiper-fotos,
    .swiper-fotos img {
        height: 230px;
    }

    .projeto-card-content {
        padding: 16px;
    }

    .projeto-card h3 {
        font-size: 18px;
    }
}

/* Mobile: um projeto por vez, sem ocupar a tela inteira */
@media (max-width: 768px) {
    .projetos-carrossel-wrapper {
        padding-top: 8px;
    }

    .swiper-projetos {
        padding-left: 8px;
        padding-right: 8px;
    }

    .swiper-projetos .swiper-slide:not(.swiper-slide-active) {
        opacity: 1;
        transform: none;
    }

    .swiper-fotos,
    .swiper-fotos img {
        height: 235px;
    }

    .projeto-card-content {
        padding: 16px;
    }

    .projeto-card h3 {
        font-size: 19px;
    }

    .projeto-detalhes {
        font-size: 12px;
    }
}


/* =====================
FOOTER
===================== */


.footer-interinox{

    background:var(--blue-dark);

    color:white;

    padding:60px 0;

}


.footer-interinox p{

    color:#cbd5e1;

}


.footer-link{

    color:#93c5fd;

}


.footer-link:hover{

    color:white;

}








/* =====================
ADMIN PAINEL
===================== */


.adm-card{

    background:white;

    border-radius:20px;

    border:1px solid var(--border-soft);

}



.adm-input{

    width:100%;

    padding:12px 15px;

    border-radius:12px;

    border:1px solid var(--border-soft);

}


.adm-input:focus{

    outline:none;

    border-color:var(--accent);

}



/* Upload galeria */


.gallery-upload{

    border:2px dashed var(--border-soft);

    padding:30px;

    border-radius:20px;

    text-align:center;

    cursor:pointer;

}


.gallery-upload:hover{

    border-color:var(--accent);

    background:var(--blue-soft);

}



.gallery-preview{

    display:grid;

    grid-template-columns:
    repeat(auto-fill,minmax(120px,1fr));

    gap:15px;

}


.gallery-preview img{

    width:100%;

    height:120px;

    object-fit:cover;

    border-radius:14px;

}








/* =====================
MOBILE
===================== */


@media(max-width:768px){


    .swiper-fotos{

        height:300px;

    }



    .swiper-fotos img{

        height:300px;

    }



    .projeto-card h3{

        font-size:24px;

    }


}
/* =====================
   MOBILE DRAWER
===================== */

.drawer{

    transform:translateX(100%);

    transition:.35s ease;

}


.drawer.active{

    transform:translateX(0);

}



.drawer-backdrop{

    display:none;

}



.drawer-backdrop.active{

    display:block;

}



/* Links do menu mobile */

.drawer .nav-link{

    color:var(--blue-dark);

    font-weight:600;

}



.drawer .nav-link:hover{

    color:var(--accent);

}
/* Página individual de projetos */
.projeto-single-card {
    background: #fff;
    border-radius: 28px;
    padding: clamp(1.25rem, 3vw, 3rem);
    box-shadow: 0 20px 60px rgba(15, 23, 42, .10);
}

.projeto-single-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1rem;
}

.projeto-single-image {
    overflow: hidden;
    border-radius: 18px;
    aspect-ratio: 4 / 3;
    background: #f1f5f9;
}

.projeto-single-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.projeto-single-description {
    color: var(--steel);
    line-height: 1.8;
    max-width: 850px;
}
