/* FONTE HOME PAGE*/
@import url('https://fonts.googleapis.com/css2?family=Jost:wght@300;400;500;600;700&display=swap');

html, body {
    width: 100%;
    overflow-x: hidden;
}

:root {
    --font-base: 'Jost', sans-serif;
    --font-title: 'Jost', serif;

    --color-text: #222;
    --color-soft: #777;
    --primary: #115b66;
}
/* HEADER */

.home-header {
    background-image: url('../home/header-pic.svg');
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    height: 800px;
    padding: 70px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* HEADER OVERLAY */
.home-header .overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(0,0,0,0.545);
    z-index: 0;
}

.home-header .header-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 900px;
}

.home-header h1 {
    margin-bottom: 30px;
    font-family: var(--font-title);
    color: #fff;
    font-size: 80px;
    letter-spacing: -1px;
    font-weight: 400;
}

.home-header p {
    font-size: 26px;
    font-weight: 300;
    line-height: 1.6;
    color: #f2f2f2;
}

/* CONTENT  DISPLAY */


.vidros-home {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
}

.content{
    margin-left: 300px;
}

/* LINHA DE PRODUTOS*/

.vidros-home{
    padding-top: 100px;
    margin-bottom: 50px;
}

.vidros-home a {
    color: black;
    text-decoration: none;
    font-weight: 700;
}

.info p{
    font-size: 25px;
    font-family: 'jost', 'sans-serif';
}

.vidros-home .content .info h1{
    margin-bottom: 60px;
    font-size: 40px;
    margin-top: 50px;
    font-weight: 300;
}

h3{
    text-align: center;
}


/*LINHA DE PRODUTOS SLIDER*/

.produtos-section {
    max-width: 1300px;
    margin: 80px auto;
    padding: 0 20px;
    font-family: var(--font-base);
    display: flex;
    align-items: center;
    gap: 30px;  
}

/* TEXTO */
.produtos-texto {
    flex: 1;
}

.produtos-texto h1 {
    font-size: 40px;
    font-weight: 300;
    margin-bottom: 20px;
}

.produtos-texto p {
    font-weight: 200;
    font-size: 25px;
    line-height: 1.6;
    color: var(--color-text);
}

/* CARROSSEL MENOR */
.produtos-carousel {
    flex: 0.8;  
    width: 80%; 
}

.carousel.manual {
    width: 100%;
    overflow: hidden;
    position: relative;
    border-radius: 12px; 
}

.carousel.manual .carousel-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.carousel.manual .slide {
    min-width: 100%;
    position: relative;
}

.carousel.manual img {
    width: 100%;
    height: 300px; 
    object-fit: cover;
}

/* OVERLAY */
.carousel.manual .overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.65);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    text-align: center;

    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s ease;
}

.carousel.manual .slide:hover .overlay {
    opacity: 1;
    visibility: visible;
}

.carousel.manual .overlay h2 {
    color: #fff;
    font-family: var(--font-base);
    font-weight: 400;
    font-size: 26px;  
}

.carousel.manual .overlay a {
    background: #115b66;
    color: #fff;
    padding: 10px 22px;  
    border-radius: 8px;
    text-decoration: none;
    font-size: 13px;  
    font-weight: 500;
    font-family: var(--font-base);
}

/* BOTÕES DO CARROSSEL */
.carousel.manual .carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 46px;
    height: 46px;
    background: #fff;
    border: none;
    border-radius: 50%;
    color: #115b66;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease, background 0.2s ease;
}

/* MOSTRA NO HOVER */
.carousel.manual:hover .carousel-btn {
    opacity: 1;
    pointer-events: auto;
}

/* POSIÇÃO */
.carousel.manual .carousel-btn.prev {
    left: 16px;
}

.carousel.manual .carousel-btn.next {
    right: 16px;
}

/* HOVER DO BOTÃO */
.carousel.manual .carousel-btn:hover {
    background: rgba(0, 0, 0, 0.9);
}

/* LINK SOBRE */

.sobre{
    margin-bottom: 50px;
}
.sobre h1{
    margin-left: 150px;
    margin-bottom: 30px;
    font-size: 40px;
    font-weight: 300;
}

.sobre p{
    font-family: var(--font-base);
    color: var(--color-soft);
    font-weight: 200;
    margin-left: 200px;
    font-size: 25px;
}
.sobre p strong{
    font-family: var(--font-base);
}
.sobre a{
    color: black;
}

/* SAIBA MAIS HOME */

/* CARROSSEL AUTOMÁTICO */
.carousel.auto {
    width: 100%;
    max-width: 1200px;
    margin: 80px auto;
    overflow: hidden;
    border-radius: 16px;
    position: relative;
}

.carousel.auto .carousel-track {
    display: flex;
    transition: transform 0.6s ease-in-out;
}

.carousel.auto .slide {
    min-width: 100%;
}

.carousel.auto img {
    width: 100%;
    height: 600px;
    object-fit: cover;
    display: block;
}

.carousel.auto h1{
    font-family: var(--font-base);
    margin-bottom: 20px;
    font-size: 40px;
    font-weight: 300;
    text-align: center;
}

/* COMENTARIOS*/

.comentarios{
    margin-bottom: 100px;
}
.comentarios h1{
    margin-left: 100px;
    margin-bottom: 50px;
}

.comentarios #texto-comentario{
    margin-left: 100px;
    margin-bottom: 50px;
}

.opinioes{
    width: 1200px;
    margin-left: 300px;
}
.comentario{
    display: flex;
}

/* CATALOGO */

.catalogo { 
  padding: 28px 0; 
  text-align:center; 
}
.catalogo p { 
  font-size:18px; 
  color:var(--color-soft); 
}

.link-pdf {
    background: none;
    border: none;
    color: #115b66;
    text-decoration: underline;
    cursor: pointer;
    padding: 0;
    font: inherit;
}

.link-pdf:hover {
    opacity: 0.8;
}

.pdf-container {
    display: none;
    margin-top: 20px;
    width: 100%;
    height: 80vh;
    border-radius: 12px;
    overflow: hidden;
}

.pdf-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.catalogo-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

.catalogo-modal.active {
    display: flex;
}

.catalogo-box {
    position: relative;
    width: 90%;
    height: 90%;
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    animation: zoomIn 0.3s ease;
}

.catalogo-box iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.close-catalogo {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(0,0,0,0.6);
    color: #fff;
    border: none;
    font-size: 18px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 2;
}

@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.96);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/*Whatsapp link*/
.whatsapp{
    margin: 20px auto;
    text-align: center;
}
.whatsapp-fixed {
    padding: 10px;
    background-color: #25D366;
    color: #fff;
    font-size: 32px;
    text-decoration: none;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.4);
    animation: blink 3.3s infinite ease-in-out;
    border-radius: 5px;
}

/* Keyframe for whats link */
@keyframes blink {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.15);
        opacity: 0.6;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* hover effect */
.whatsapp-float:hover {
    transform: scale(1.2);
    transition: 0.3s;
}

/* Fade-in */
.fade-in {
    opacity: 0;
    transform: translateY(25px);
    transition: all 0.7s ease-out;
}

.fade-in.show {
    opacity: 1;
    transform: translateY(0);
}

/* RESPONSIVIDADE*/

/* 1024px */

@media (max-width: 1024px) {

    .content {
        margin-left: 0;
    }

    .vidros-home {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
}

/* TABLET 768px */
@media (max-width: 768px) {

    .home-header {
        height: 600px;
        padding: 40px 20px;
    }

    .home-header h1 {
        font-size: 38px;
        margin-bottom: 20px;
    }

    .home-header p {
        font-size: 20px;
        padding: 0 10px;
    }

    .produtos-section {
        flex-direction: column;     /* TEXTO EM CIMA */
        align-items: center;
        text-align: center;
        gap: 30px;
    }

    .produtos-texto {
        max-width: 600px;
    }


    .produtos-carousel {
        width: 100%;
        max-width: 600px;
    }

    .carousel.manual {
        border-radius: 10px;
    }

    .carousel.manual img {
        height: 260px;
    }

    .carousel.manual .overlay h2 {
        font-size: 22px;
    }

    .carousel.manual .overlay a {
        font-size: 13px;
        padding: 10px 16px;
    }

    /* Botões maiores para touch */
    .carousel.manual .carousel-btn {
        width: 44px;
        height: 44px;
        font-size: 24px;
        opacity: 1;
        pointer-events: auto;
    }

    

    .produtos-texto p {
        font-size: 20px;
    }

    .produtos-carousel {
        max-width: 100%;
    }
    
    .carousel.auto {
        max-width: 100%;
        border-radius: 12px;
        margin: 50px auto;
    }

    .carousel.auto img {
        height: 260px;
    }

    .sobre h1, .saiba-mais h1 {
        text-align: center;
        margin-left: 0;
    }

    .sobre p {
        margin-left: 0;
        padding: 0 20px;
        text-align: center;
    }

    
}

/* CELULAR 480px */
@media (max-width: 480px) {

    .home-header h1 {
        font-size: 32px;
    }

    .home-header p {
        font-size: 18px;
    }

    .info p {
        font-size: 18px;
    }

    .carousel.manual img {
        height: 220px;
    }

    .carousel.manual .overlay {
        padding: 15px;
    }

    .carousel.manual .overlay h2 {
        font-size: 18px;
    }

    .carousel.manual .overlay a {
        font-size: 12px;
        padding: 8px 14px;
        max-width: 100%;
    }

    /* Botões mais próximos das bordas */
    .carousel.manual .carousel-btn.prev {
        left: 8px;
    }

    .carousel.manual .carousel-btn.next {
        right: 8px;
    }

    .carousel.auto {
        border-radius: 10px;
        margin: 40px auto;
    }

    .carousel.auto img {
        height: 210px;
    }

    .catalogo {
        font-size: 20px;
    }

    footer .content-ft {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
}

/* CELULAR PEQUENO 360px */
@media (max-width: 360px) {

    header h1 { 
        font-size: 26px; 
    }

    header p, .info p, .sobre p {
        text-align: justify;
    }

    .carousel.manual img {
        height: 190px;
    }

    /* Simplifica overlay */
    .carousel.manual .overlay h2 {
        font-size: 16px;
    }

    .carousel.manual .overlay a {
        font-size: 11px;
        padding: 7px 12px;
    }

    .carousel.manual .carousel-btn {
        width: 38px;
        height: 38px;
        font-size: 20px;
    }

    .carousel.auto {
        border-radius: 8px;
        margin: 30px auto;
    }

    .carousel.auto img {
        height: 180px;
    }

    .catalogo {
        font-size: 16px;
    }
    
}