:root {
    --laranja-primario: #FF8C00;
    --azul-escuro-primario: #2C3E50;
    --cinza-texto-principal: #444444;
    --cinza-claro-fundo: #f8f9fa;
    --cor-texto-claro: #f1f1f1;
    --fonte-principal: 'Poppins', sans-serif;
    /* Se você tiver um verde que quer usar para destaque, defina ele aqui: */
    /* --verde-destaque: #28a745; */
}

body {
    font-family: var(--fonte-principal);
    background-color: var(--cinza-claro-fundo);
    color: var(--cinza-texto-principal);
    display: flex;
    flex-direction: column;
    line-height: 1.7;
    min-height: 100vh;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    color: var(--azul-escuro-primario);
}

.text-laranja-primario {
    color: var(--laranja-primario) !important;
}

.conteudo-principal {
    flex-grow: 1;
}

.navbar {
    background-color: var(--azul-escuro-primario) !important;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
}

.navbar-brand {
    font-weight: 700;
    color: var(--laranja-primario) !important;
}

.navbar-nav .nav-link {
    color: var(--cor-texto-claro);
    transition: color 0.3s ease;
}

.navbar-nav .nav-link.active,
.navbar-nav .nav-link:hover {
    color: var(--laranja-primario) !important;
}

.btn-primary {
    background-color: var(--laranja-primario);
    border-color: var(--laranja-primario);
    font-weight: 600;
    padding: 10px 25px;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.btn-primary:hover {
    background-color: #e07b00;
    border-color: #e07b00;
    transform: translateY(-2px);
}

.btn-outline-primary {
    color: var(--laranja-primario);
    border-color: var(--laranja-primario);
    transition: all 0.3s ease;
}

.btn-outline-primary:hover {
    background-color: var(--laranja-primario);
    color: white;
}

.hero-gradient-bg .btn-light {
    background-color: transparent;
    border: 2px solid var(--laranja-primario);
    color: var(--laranja-primario);
    font-weight: 600;
    transition: all 0.3s ease;
}

.hero-gradient-bg .btn-light:hover {
    background-color: var(--laranja-primario);
    color: white;
    border-color: var(--laranja-primario);
    transform: translateY(-2px);
}

.card {
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.2);
}

.card-title {
    color: var(--laranja-primario);
}

.accordion-button:not(.collapsed) {
    background-color: var(--laranja-primario);
    color: white;
    box-shadow: inset 0 -1px 0 rgba(0, 0, 0, .125);
}

.accordion-button:not(.collapsed)::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23ffffff'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}

.accordion-button:focus {
    box-shadow: none;
    border-color: var(--laranja-primario);
}

.animar-entrada {
    opacity: 0;
}

#voltarAoTopoBtn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    width: 50px;
    height: 50px;
    padding: 0;
    border-radius: 50%;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);

    display: flex;
    align-items: center;
    justify-content: center;

    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: opacity 0.4s ease, transform 0.4s ease, visibility 0.4s ease;
}

#voltarAoTopoBtn.visivel {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

#voltarAoTopoBtn i {
    font-size: 1.8rem;
    line-height: 1;
}

.footer {
    background-color: var(--azul-escuro-primario);
    color: var(--cor-texto-claro);
    padding: 50px 0 20px 0;
}

.footer-title {
    font-weight: 600;
    color: white;
    margin-bottom: 20px;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.7);
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--laranja-primario);
}

.footer-hr {
    border-color: rgba(255, 255, 255, 0.1);
}

.footer-social-icons .social-icon {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.8rem;
    text-decoration: none;
    margin-right: 20px;
    transition: color 0.3s ease;
}

.footer-social-icons .social-icon:hover {
    color: var(--laranja-primario);
}

.card-icon {
    font-size: 3rem;
    color: var(--laranja-primario);
    margin-bottom: 1rem;
}

.chart-container {
    position: relative;
    height: 300px;
    width: 100%;
}

.hero-gradient-bg {
    background-image: linear-gradient(to right, var(--azul-escuro-primario), #4e6a85);
}

.filter-btn.active, .epi-step-item.active, .five-s-tab-button.active, .lean-tab-button.active, .nav-pills .nav-link.active {
    background-color: var(--azul-escuro-primario);
    color: white;
    border-color: var(--azul-escuro-primario);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.epi-step-item, .five-s-tab-button, .lean-tab-button, .nav-pills .nav-link {
    transition: all 0.2s ease-in-out;
    color: var(--azul-escuro-primario);
}

.nav-pills .nav-link:not(.active):hover {
    background-color: #e9ecef;
}

#hero-dds .display-4,
#hero-cuidado-ativo .display-4,
#hero-epi .display-4,
#hero-eficiencia .display-4,
#hero-blog .display-4,
#hero-melhoria .display-4,
#hero-5s .display-4,
#hero-lean .display-4,
#hero-pilares .display-4,
#hero-tps .display-4,
#hero .display-4 {
    color: var(--cinza-claro-fundo) !important;
}

.kpi-card {
    background-color: white;
    border-radius: 0.75rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
    padding: 1.5rem;
    text-align: center;
    border: 1px solid #eee;
    transition: all 0.3s ease;
    height: 100%;
}

.kpi-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.1);
}

.kpi-value {
    font-size: 2.5rem;
    font-weight: 800;
}

.kpi-label {
    color: #6c757d;
    margin-top: 0.5rem;
}

.timeline .timeline-item {
    position: relative;
    padding-left: 3rem;
    padding-bottom: 1.5rem;
    border-left: 2px solid #e9ecef;
}

.timeline .timeline-item:last-child {
    border-left: 2px solid transparent;
    padding-bottom: 0;
}

.timeline .timeline-marker {
    position: absolute;
    left: -1rem;
    top: 0;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    background-color: var(--laranja-primario);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.five-s-tab-content {
    display: none;
}

.five-s-tab-content.active {
    display: block;
}

.five-s-cycle-diagram {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 1rem;
}

.cycle-item {
    background-color: var(--azul-escuro-primario);
    color: white;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-weight: 600;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.cycle-item.shitsuke {
    background-color: var(--laranja-primario);
    position: relative;
}

.cycle-arrow {
    font-size: 2rem;
    color: #6c757d;
}

.cycle-arrow-return {
    position: absolute;
    bottom: -1.5rem;
    left: 50%;
    transform: translateX(-50%);
    font-size: 1.5rem;
}

.waste-card {
    cursor: pointer;
    height: auto !important;
}

.waste-card .description {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease-out, margin-top 0.5s ease-out;
    margin-top: 0;
}

.waste-card.open .description {
    max-height: 200px;
    margin-top: 1rem;
}

.waste-arrow {
    color: #ced4da;
    font-size: 1.2rem;
    transition: transform 0.3s ease-in-out;
}

.waste-card.open .waste-arrow {
    transform: rotate(180deg);
}

.lean-cycle-diagram {
    gap: 1rem;
}

.lean-cycle-item {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease;
}

.lean-cycle-item:hover {
    transform: scale(1.05);
}

.lean-cycle-item.gemba {
    background-color: #1ABC9C;
}

.lean-cycle-item.nemawashi {
    background-color: #F39C12;
}

.lean-cycle-item.hansei {
    background-color: #3498DB;
    position: relative;
}

.lean-cycle-arrow {
    font-size: 2.5rem;
    color: #6c757d;
}

.lean-cycle-arrow-return {
    position: absolute;
    bottom: -2rem;
    left: 50%;
    transform: translateX(-50%);
    font-size: 2rem;
}

@media (max-width: 767px) {
    .cycle-arrow, .lean-cycle-arrow {
        transform: rotate(90deg);
    }

    .cycle-arrow-return, .lean-cycle-arrow-return {
        bottom: auto;
        top: 50%;
        left: -2.5rem;
        transform: translateY(-50%) rotate(90deg);
    }
}

.tps-pillar-card {
    border: 0;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.tps-pillar-card .card-icon {
    font-size: 3.5rem;
}

.principle-card {
    border: 1px solid #e9ecef;
    border-top: 4px solid var(--laranja-primario);
    transition: all 0.3s ease;
}

.principle-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.principle-card .card-title {
    color: var(--azul-escuro-primario);
}

.benefits-section-tps {
    background-color: var(--azul-escuro-primario);
    color: var(--cor-texto-claro);
}

.benefit-card-tps {
    background-color: rgba(255, 255, 255, 0.05);
    padding: 1.5rem;
    border-radius: 8px;
    width: 100%;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.benefit-card-tps:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-5px);
}

.benefit-card-tps p {
    color: rgba(255, 255, 255, 0.7);
}

.benefits-section-tps .lead {
    color: var(--laranja-primario);
    font-weight: 600;
    font-size: 1.25rem;
    opacity: 1;
}

.benefit-card-tps h4 {
    color: var(--laranja-primario);
}