/* Paleta de Cores */
:root {
    --verde_escuro: #1A3C34;
    --cinza_escuro: #828282;
    --laranja_suave: #16741C;
    --branco: #FFFFFF;
    --cinza_claro: #EDEDED;
    --preto: #303030;
    --texto_principal: #1F1F1F;
    --texto_titulo_inicial: #bfbfbf;
    --texto_paragrafo_inicial: #D3D3D3;
    --texto_botao: #97bc94;
    --rodape_fundo: #16520A;
    --rodape_texto: #E0E0E0;
    --verde_musgo: #A8C3BC;
    --verde_musgo_claro: #C2D6D0;
}

/* Estilos base */
body {
    font-family: 'Open Sans', sans-serif;
    color: var(--texto_principal);
    margin: 0;
    overflow-x: hidden;
    background-color: var(--cinza_claro);
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
}

.navbar {
    background: var(--verde_escuro);
    padding: 1rem 0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    margin-bottom: 0 !important;
}

.navbar-brand img {
    transition: transform 0.3s ease;
}

.navbar-brand img:hover {
    transform: scale(1.1);
}

.nav-link {
    color: var(--branco) !important;
    font-family: 'Montserrat', sans-serif;
    font-weight: 400;
    position: relative;
    padding: 0.5rem 1rem;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--laranja_suave) !important;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    background-color: var(--laranja_suave);
    transition: width 0.3s ease, left 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
    left: 0;
}

.btn-primary {
    background-color: var(--laranja_suave);
    border-color: var(--laranja_suave);
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.btn-primary:hover {
    background-color: #E68A44;
    border-color: #E68A44;
}

footer {
    background: var(--rodape_fundo);
    color: var(--rodape_texto);
    padding: 2rem 0;
}

/* Estilos para ícones de redes sociais */
.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons .nav-link, .social-icons a {
    font-size: 1.2rem;
    transition: color 0.3s ease;
}

.social-icons .nav-link:hover, .social-icons a:hover {
    color: var(--laranja_suave) !important;
}

/* Estilos do Hero */
.hero {
    position: relative;
    min-height: 100vh;
    height: 100%;
    background-size: cover;
    background-position: center;
    margin-top: 0 !important;
    padding-top: 0 !important;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1;
}

.hero .container {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    width: 100%;
}

.hero .row {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    width: 100%;
    max-width: 1200px;
}

.hero .content {
    margin: 0;
    padding: 20px 0;
    text-align: left !important;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero .content-inner {
    width: 100%;
}

.hero .content h1 {
    font-family: 'Playfair Display', serif;
    font-weight: 900;
    font-size: 2.5rem;
    color: var(--texto_titulo_inicial);
    margin-bottom: 1rem;
    letter-spacing: 0.05em;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.hero .content .lead {
    color: var(--texto_paragrafo_inicial);
    margin-bottom: 1rem;
}

.hero .content .btn-primary {
    margin-bottom: 1rem;
    align-self: flex-start;
}

.hero .below-text-banner {
    margin-top: 20px;
    text-align: left !important;
    width: 100%;
    margin-left: 0;
}

.hero .banner-box {
    margin: 0;
    padding: 20px 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.banner-media, .banner-text {
    width: 100%;
    border-radius: 8px;
}

.banner-text {
    padding: 20px;
    text-align: left !important;
    font-size: 1.2rem;
}

.cta-banner {
    background: linear-gradient(135deg, var(--verde_musgo), var(--verde_musgo_claro));
    padding: 20px;
    text-align: center;
    border-radius: 8px;
}

.cta-banner a {
    background-color: var(--laranja_suave);
    color: var(--verde_escuro);
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
}

.cta-banner a:hover {
    background-color: #E68A44;
}

.interactive-banner {
    position: relative;
    overflow: hidden;
}

.interactive-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(var(--verde_escuro), 0.7);
    color: var(--branco);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    text-align: center;
    padding: 20px;
    border-radius: 8px;
}

.interactive-banner:hover .interactive-overlay {
    opacity: 1;
}

.highlight-banner {
    background-size: cover;
    background-position: center;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--branco);
    border-radius: 8px;
    position: relative;
}

.highlight-overlay {
    background: rgba(var(--verde_escuro), 0.5);
    padding: 20px;
    border-radius: 8px;
}

.carousel-img {
    border-radius: 8px;
    max-height: 400px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

/* Estilos para o carrossel de produtos em destaque */
#carouselProdutosDestaque .carousel-inner {
    padding: 0 10px;
}

#carouselProdutosDestaque .carousel-item {
    transition: transform 1.5s ease-in-out;
}

.product-card {
    position: relative;
    margin: 0 auto;
    transition: transform 0.3s ease;
}

.product-card:hover {
    transform: translateY(-5px);
}

.product-img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 8px;
}

.product-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(var(--verde_escuro), 0.7);
    color: var(--branco);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 8px;
    text-align: center;
}

.product-card:hover .product-overlay {
    opacity: 1;
}

/* Estilos para o letreiro de clientes */
.clientes-section {
    background-color: var(--cinza_claro);
    overflow: hidden;
}

.marquee-container {
    width: 100%;
    overflow: hidden;
    position: relative;
}

.marquee {
    display: flex;
    white-space: nowrap;
    animation: marquee 30s linear infinite;
}

.marquee:hover {
    animation-play-state: paused;
}

.marquee-item {
    flex: 0 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.client-logo {
    width: auto;
    height: auto;
    max-height: 80px;
    max-width: 200px;
    object-fit: contain;
    display: block;
}

@keyframes marquee {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* Estilos para o modal de produto */
.modal {
    z-index: 2055 !important;
}

.modal-backdrop {
    z-index: 2050 !important;
    opacity: 0.4 !important;
}

.modal-content {
    border-radius: 8px;
    background: var(--branco);
    z-index: 2060;
}

.modal-header {
    background: var(--verde_escuro);
    color: var(--branco);
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
}

.modal-body img {
    max-height: 300px;
    object-fit: cover;
    border-radius: 8px;
}

.modal-body p {
    margin-bottom: 1rem;
}

.modal-footer {
    border-top: none;
}

/* Preloader */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--branco);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

.progress-container {
    width: 50%;
    max-width: 400px;
    height: 10px;
    background: var(--cinza_claro);
    border-radius: 5px;
    overflow: hidden;
}

.progress-bar {
    width: 0;
    height: 100%;
    background: var(--laranja_suave);
    border-radius: 5px;
    animation: progress 1s ease-in-out forwards;
}

@keyframes progress {
    0% { width: 0; }
    100% { width: 100%; }
}

/* Page content */
.page-content {
    opacity: 1;
}

/* Estilos para imagens.php */
.card {
    border: none;
    border-radius: 8px;
    background-color: var(--branco);
}

.card-header {
    background-color: var(--verde_escuro);
    color: var(--branco);
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
}

.table {
    border-collapse: separate;
    border-spacing: 0;
    background-color: var(--branco);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    overflow: hidden;
}

.table th, .table td {
    padding: 12px;
    vertical-align: middle;
}

.table-light th {
    background-color: var(--verde_escuro);
    color: var(--branco);
}

.table-striped tbody tr:nth-of-type(odd) {
    background-color: rgba(var(--cinza_claro), 0.5);
}

.table-hover tbody tr:hover {
    background-color: rgba(var(--laranja_suave), 0.1);
}

.btn-sm {
    padding: 5px 10px;
    font-size: 0.875rem;
}

.btn-success, .btn-secondary, .btn-danger, .btn-warning {
    transition: all 0.3s ease;
}

.btn-success:hover {
    background-color: #4caf50;
}

.btn-secondary:hover {
    background-color: #6c757d;
}

.btn-danger:hover {
    background-color: #dc3545;
}

.btn-warning:hover {
    background-color: #e0a800;
}

.form-control:focus, .form-select:focus {
    border-color: var(--laranja_suave);
    box-shadow: 0 0 0 0.2rem rgba(22, 116, 28, 0.25);
}

.img-thumbnail {
    border-radius: 4px;
    border: 1px solid var(--cinza_claro);
}

/* Responsividade */
@media (max-width: 768px) {
    .hero .row {
        flex-direction: column;
        height: auto;
        padding: 20px 0;
    }

    .hero .content {
        margin-bottom: 20px;
        padding: 10px 0;
    }

    .hero .content h1 {
        font-size: 2rem;
    }

    .hero .banner-box {
        margin-top: 20px;
        padding: 10px 0;
    }

    .hero .below-text-banner {
        margin-top: 10px;
    }

    #carouselProdutosDestaque .carousel-item .row {
        flex-direction: column;
        align-items: center;
    }

    .product-card {
        margin-bottom: 1rem;
        max-width: 150px;
    }

    .product-img {
        height: 120px;
    }

    .client-logo {
        max-height: 60px;
        max-width: 150px;
    }

    .marquee-item {
        padding: 0 10px;
    }

    .table-responsive {
        overflow-x: auto;
    }

    .table th, .table td {
        font-size: 0.85rem;
        padding: 8px;
    }

    .btn-sm {
        padding: 3px 8px;
        font-size: 0.75rem;
    }

    .form-control, .form-select {
        font-size: 0.875rem;
    }

    .social-icons {
        gap: 10px;
    }

    .social-icons .nav-link, .social-icons a {
        font-size: 1rem;
    }
}