/* ==========================================================================
   Variáveis de Cores (para fácil manutenção)
   ========================================================================== */
:root {
    --primary-color: #A42C2D; /* Vermelho Isadora */
    --secondary-color: #FDBC2D; /* Laranja/Amarelo Dourado */
    --black-color: #000000;
    --yellow-100-color: #FFFF00;
    --text-light: #f8f9fa;
    --text-dark: #212529;
}

/* ==========================================================================
   Estilos Gerais do Corpo e Tipografia
   ========================================================================== */
body {
    font-family: 'Open Sans', sans-serif;
    color: var(--text-dark);
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    color: var(--primary-color);
}

/* ==========================================================================
   Cabeçalho Principal (Fixo e Logo Sobresalente)
   ========================================================================== */
#mainHeader {
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1030;
    transition: all 0.3s ease-in-out;
    padding: 15px 0;
    position: relative;
    /* A altura do cabeçalho é maior que a logo para que ela não seja cortada */
    height: 90px;
}

#mainHeader.scrolled {
    padding: 10px 0;
    background-color: rgba(255, 255, 255, 0.98);
    height: 50px; /* Altura menor ao rolar */
}

/* NOVO POSICIONAMENTO DA LOGO */
.header-logo {
    position: absolute;
    /* Posiciona o logo mais abaixo para que ele não seja cortado */
    top: 20px;
    left: 20px;
    z-index: 1040; /* Z-index alto para a logo sempre estar por cima */
    transition: all 0.3s ease-in-out;
    filter: drop-shadow(0 0 5px rgba(0, 0, 0, 0.3));
}

.header-logo img {
    height: 100px; /* Mantém a altura original do logo */
    transition: all 0.3s ease-in-out;
    display: block;
}

#mainHeader.scrolled .header-logo img {
    height: 70px;
}

.navbar {
    width: 100%;
}

.navbar-collapse {
    padding-left: 150px;
}

.navbar-nav .nav-link {
    color: var(--primary-color);
    font-weight: 600;
    padding: 10px 15px;
    transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--secondary-color);
}

/* Estilos para o contêiner dos boxes de Visão, Missão e Valores */
#mvv-boxes-container {
    position: absolute;
    bottom: -10px; /* Coloca os boxes na parte de baixo do slide e sobrepõe metade da altura */
    left: 0;
    width: 100%;
    z-index: 10; /* Garante que os boxes fiquem na frente do slide */
}

.mvv-box {
    background-color: #fff;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    height: 200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.mvv-box i {
    font-size: 3em;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.mvv-box h3 {
    font-size: 1.5em;
    font-weight: bold;
    color: var(--text-dark);
}

.mvv-box p {
    font-size: 1em;
    color: #6c757d;
    height: 75px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

/* Ajuste o carrossel para acomodar os boxes */
#heroCarousel {
    /* Adicione uma margem inferior para dar espaço aos boxes */
    padding-bottom: 100px;
}

/* ==========================================================================
   Carrossel Principal (Hero Carousel)
   ========================================================================== */
#heroCarousel {
    margin-top: -0px;
    position: relative;
    z-index: 1;
    overflow: hidden;
    perspective: 1200px;
    box-shadow: none;
}

#heroCarousel .carousel-inner {
    width: 100%;
    height: 600px;
    position: relative;
    overflow: visible;
}

#heroCarousel .carousel-item {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
    position: absolute;
    top: 0;
    left: 0;
    transition: transform 1.5s ease-in-out, opacity 0.5s ease;
    transform-origin: center bottom;
    backface-visibility: hidden;

    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 0px), calc(100% - 0px) calc(100% - 0px), 0px calc(100% - 0px), 0 calc(100% - 0px));  /*Cantos inferiores arredondados */
	border-radius: 0 0 200px 200px; /* Adiciona border-radius para garantir o arredondamento */
}

#heroCarousel .carousel-item.active {
    position: relative;
    transform: none;
    z-index: 1;
    opacity: 1;
}

#heroCarousel .carousel-item.carousel-item-prev {
    transform: rotateX(80deg);
    opacity: 0;
}

#heroCarousel .carousel-item.carousel-item-next {
    transform: rotateX(-80deg);
    opacity: 0;
}

#heroCarousel .carousel-item.carousel-item-next.active,
#heroCarousel .carousel-item.carousel-item-prev.active {
    transform: none;
    opacity: 1;
}

#heroCarousel .carousel-caption {
    background-color: transparent;
    padding: 30px;
    border-radius: 10px;
    max-width: 80%;
    z-index: 10;
    bottom: unset;
    top: 50%;
    transform: translateY(-50%);
    box-shadow: none;
}

#heroCarousel .carousel-caption h2 {
    color: var(--secondary-color);
    font-size: 3em;
    margin-bottom: 15px;
    -webkit-text-stroke: 1px #fff;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.8);
}

#heroCarousel .carousel-caption p {
    font-size: 1.5em;
    -webkit-text-stroke: 0.5px #fff;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.8);
}

/* ==========================================================================
   Seções de Conteúdo (Quem Somos Breve e Produtos)
   ========================================================================== */
#quemSomosBreve {
    padding-top: 50px;
}
#quemSomosBreve .btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    transition: background-color 0.3s ease, border-color 0.3s ease;
}
#quemSomosBreve .btn-primary:hover {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
}

/* Seção Produtos em Destaque */
#produtosDestaque {
    background-color: #fff;
}

.product-card {
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.product-image-container {
    position: relative;
    width: 100%; /* Garante que o container preencha o espaço */
    padding-bottom: 75%; /* Proporção 4:3 para a imagem */
    overflow: hidden;
    margin: 0 auto; /* Centraliza */
}

.product-cut-shape {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%); /* Formato da foto prod isadora.jpg */
	/*clip-path: polygon(0 0, 100% 0, 100% 85%, 85% 100%, 0 100%);*/
    border: 5px solid white; /* Borda branca */
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.2); /* Sombra */
    transition: transform 0.3s ease-in-out;
}

.product-card:hover .product-cut-shape {
    transform: scale(1.05); /* Efeito de leve zoom ao passar o mouse */
}


/* ==========================================================================
   Seção Parallax
   ========================================================================== */
.paralax-section {
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
    height: 400px;
    color: var(--text-light);
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Depoimentos em Carrossel */
#depoimentos .carousel-item {
    padding: 20px 0;
}

.depoimento-item {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    max-width: 700px;
    margin: auto;
}

#depoimentos .carousel-control-prev-icon,
#depoimentos .carousel-control-next-icon {
    background-color: var(--secondary-color);
    border-radius: 50%;
    padding: 15px;
}
#depoimentos .carousel-control-prev,
#depoimentos .carousel-control-next {
    width: 5%;
}

/* ==========================================================================
   Rodapé
   ========================================================================== */
#mainFooter {
    background-color: var(--primary-color);
    color: var(--text-light);
    padding-top: 80px;
    position: relative;
}

.footer-logo-container {
    position: absolute;
    width: 100%;
    top: 0;
    left: 0;
    transform: translateY(-35%);
}

.footer-logo-container .footer-logo {
    height: 180px;
    width: auto;
    display: block;
    margin: 0 auto;
    filter: drop-shadow(0 0 10px rgba(0, 0, 0, 0.3));
}

.slogan {
    font-size: 1.1em;
    color: var(--secondary-color);
    margin-top: 15px;
}

.col-lg-3.col-md-6:nth-child(2),
.col-lg-3.col-md-6:nth-child(3) {
    border-left: 1px solid rgba(255, 255, 255, 0.2);
    padding-left: 15px;
}
.col-lg-3.col-md-6:nth-child(2) h5,
.col-lg-3.col-md-6:nth-child(3) h5 {
    margin-left: 15px;
}
.col-lg-3.col-md-6:nth-child(2) ul,
.col-lg-3.col-md-6:nth-child(3) ul {
    margin-left: 15px;
}

.footer-nav li a {
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-nav li a:hover {
    color: var(--secondary-color);
}

.social-icons a {
    color: var(--text-light);
    font-size: 1.5em;
    margin: 0 5px;
    transition: color 0.3s ease;
}

.social-icons a:hover {
    color: var(--secondary-color);
}

.footer-divider {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.copyright {
    font-size: 0.8em;
    color: rgba(255, 255, 255, 0.6);
}

/* ==========================================================================
   Botões Fixos e Animações
   ========================================================================== */
#scrollToTopBtn, #whatsappBtn {
    position: fixed;
    z-index: 1000;
    width: 50px;
    height: 50px;
    font-size: 1.5em;
    color: #fff;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

#scrollToTopBtn {
    bottom: 20px;
    right: 20px;
    background-color: var(--primary-color);
    display: none;
}
#scrollToTopBtn:hover {
    background-color: var(--secondary-color);
}

#whatsappBtn {
    bottom: 80px;
    right: 20px;
    background-color: #25D366;
}
#whatsappBtn:hover {
    background-color: #1DA851;
}

.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.fade-in.active {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================================================
   Responsividade
   ========================================================================== */
@media (max-width: 991.98px) {
    #heroCarousel .carousel-inner {
        height: 400px;
    }
    #heroCarousel .carousel-caption h2 {
        font-size: 2em;
    }
    #heroCarousel .carousel-caption p {
        font-size: 1em;
    }
    .paralax-section {
        height: 300px;
    }

    /* NOVO: REMOVE A BORDA NO MODO RESPONSIVO */
    .col-lg-3.col-md-6:nth-child(2),
    .col-lg-3.col-md-6:nth-child(3) {
        border-left: none;
        padding-left: 15px;
    }

    #mainFooter {
        padding-top: 50px;
    }
    .footer-logo-container {
        transform: translateY(-30%);
    }
    .footer-logo {
        height: 80px;
    }
    #whatsappBtn {
        bottom: 20px;
        right: 80px;
    }
    #scrollToTopBtn {
        bottom: 20px;
        right: 20px;
    }

    .header-logo {
        left: 10px;
    }
    .navbar-collapse {
        padding-left: 10px;
    }
}

/* Estilo para a tela de preload */
#preload-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #fff; /* Fundo branco para a tela de carregamento */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999; /* Garante que fique por cima de tudo */
    transition: opacity 0.5s ease;
}

/* Estilo para o spinner de carregamento */
.preload-spinner {
    border: 8px solid #f3f3f3; /* Cinza claro */
    border-top: 8px solid #A42C2D; /* Azul */
    border-radius: 50%;
    width: 60px;
    height: 60px;
    animation: spin 1s linear infinite;
}

/* Animação para o spinner */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Esconde o preload após o carregamento da página */
body.loaded #preload-container {
    opacity: 0;
    visibility: hidden;
}
