/* ========================================================================
   RESET E CONFIGURAÇÕES GLOBAIS
   ======================================================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Variáveis CSS personalizadas */
:root {
    --color-primary: #71c031;
    --color-primary-light: #8cdd4a;
    --color-primary-lighter: #75d626;
    --color-text-primary: #64ad29;
    --color-text-dark: #344634;
    --color-text-light: #777;
    --color-text-lighter: #888;
    --color-text-lightest: #999;
    --color-border: #f0f0f0;
    --color-border-dark: #e8e8e8;
    --color-bg-light: #f8f8f8;
    --color-bg-white: #ffffff;
    --color-bg-black: #000;
}

/* Configurações base do HTML e Body */
html {
    font-size: 16px;
    height: 100%;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--color-text-dark);
    background-color: var(--color-bg-black);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Reset de elementos básicos */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

button {
    border: none;
    background: none;
    cursor: pointer;
    font-family: inherit;
}

/* ========================================================================
   CABEÇALHO E NAVEGAÇÃO
   ======================================================================== */

.header {
    background-color: var(--color-bg-white);
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
}

.navbar {
    padding: 1rem 0;
}

.navbar .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

/* Logo */
.navbar_logo {
    flex-shrink: 0;
}

.navbar_logo a {
    display: flex;
    align-items: center;
}

.navbar_logo img {
    width: 200px;
}

/* Menu de navegação */
.navbar_menu {
    display: flex;
    align-items: center;
    gap: 2.5rem;
    flex: 1;
    justify-content: center;
}

.navbar_link {
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-text-dark);
    padding: .75rem 0;
    position: relative;
    display: inline-block;
}

/* Animação de underline nos links */
.navbar_link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background-color: var(--color-primary);
    transition: width .3s ease;
}

.navbar_link:hover::after,
.navbar_link--active::after {
    width: 100%;
}

/* Botão especial de franquia */
.navbar_link--franchise {
    font-size: 1.05rem;
    color: #619135;
    padding: .75rem 1.25rem;
    border: 2px solid var(--color-primary);
    border-radius: 15px;

    transition: transform .3s ease, color .3s ease, border-color .3s ease;
}

.navbar_link--franchise::after {
    display: none;
}

.navbar_link--franchise:hover {
    transform: translateY(-2px);
    color: #699b3a;
    border-color: #78c936;
}

.navbar_cta {
    flex-shrink: 0;
    margin-left: 1rem;
}

/* ========================================================================
   MAIN CONTENT
   ======================================================================== */

main {
    flex: 1;
    display: flex;
    flex-direction: column;
    width: 100%;
}

/* ========================================================================
   CARROSSEL HERO (Banner Principal)
   ======================================================================== */

.hero-carousel {
    flex: 1;
    position: relative;
    overflow: hidden;
    background-color: var(--color-bg-black);
    width: 100%;
    min-height: calc(100vh - 90px);
    contain: layout style paint;
}

.carousel {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: calc(100vh - 90px);
}

.carousel_track {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: calc(100vh - 90px);
}

/* Slides individuais do carrossel */
.carousel_slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity .6s ease-in-out, visibility .6s ease-in-out;
    pointer-events: none;
}

.carousel_slide--active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.carousel_image {
    width: 100%;
    height: 100%;
    min-height: calc(100vh - 90px);
    max-width: none;
    object-fit: cover;
    object-position: center;
    transform: translateZ(0);
    backface-visibility: hidden;
}

/* Overlay escuro sobre as imagens */
.carousel_overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, .5);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Conteúdo textual do carrossel */
.carousel_content {
    text-align: center;
    color: var(--color-bg-white);
    padding: 2rem;
    max-width: 1500px;
    animation: fadeInUp .8s ease-out;
}

.carousel_title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.carousel_description {
    font-size: clamp(1rem, 2.5vw, 1.5rem);
    font-weight: 500;
    opacity: .95;
}

/* Botões de navegação (anterior/próximo) */
.carousel_button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%) translateZ(0);
    background-color: transparent;
    border: 3px solid white;
    color: var(--color-bg-white);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: background-color .3s ease;
}

.carousel_button:hover {
    background-color: rgba(113, 192, 49, .3);
}

.carousel_button--bouncing {
    animation: buttonBounce .5s ease forwards;
}

.carousel_button--prev {
    left: 2rem;
}

.carousel_button--next {
    right: 2rem;
}

/* Indicadores (bullets) do carrossel */
.carousel_indicators {
    position: absolute;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%) translateZ(0);
    display: flex;
    gap: .75rem;
    z-index: 10;
}

.carousel_indicator {
    width: 17px;
    height: 17px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, .8);
    background-color: transparent;
    transition: transform .3s ease, background-color .3s ease;
    cursor: pointer;
}

.carousel_indicator:hover {
    transform: scale(1.2);
}

.carousel_indicator--active {
    background-color: rgba(113, 192, 49, .25);
    border-color: #7dd137;
    transform: scale(1.3);
}

/* Animações do carrossel */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px) translateZ(0);
    }

    to {
        opacity: 1;
        transform: translateY(0) translateZ(0);
    }
}

@keyframes buttonBounce {

    0%,
    100% {
        transform: translateY(-50%) scale(1) translateZ(0);
    }

    30% {
        transform: translateY(-55%) scale(.95) translateZ(0);
    }

    50% {
        transform: translateY(-50%) scale(1.05) translateZ(0);
    }
}

/* ========================================================================
   SEÇÃO SOBRE NÓS
   ======================================================================== */

.about-us {
    width: 100%;
    min-height: max(1530px, 100vh);
    background: linear-gradient(135deg, #f5f7fa 0%, #e8f5e9 100%);
}

/* ========================================================================
   TIMELINE (Linha do Tempo)
   ======================================================================== */

.timeline {
    width: 100%;
    background: transparent;
    padding: 5rem 0;
    overflow: hidden;
}

/* Cabeçalho da timeline */
.timeline_header {
    text-align: center;
    max-width: 1700px;
    margin: 0 auto;
}

.timeline_header-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3rem;
    z-index: 1;
}

.timeline_main-title {
    font-size: clamp(1.5rem, 3vw, 5rem);
    font-weight: 800;
    color: #3d473c;
    line-height: 1;
    white-space: nowrap;
}

/* Texto destacado "Nossa História" */
.timeline_highlight {
    color: #3d473c;
    transition: color .5s ease, filter .5s ease;
}

.timeline_highlight--active {
    display: inline-block;
    color: var(--color-primary-light);
}

/* Decoração do título */
.timeline_title-decoration {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}

.decoration-line {
    width: 80px;
    height: 2px;
    background: linear-gradient(90deg, transparent 0%, var(--color-primary-light) 50%, transparent 100%);
    border-radius: 10px;
}

.decoration-line.left {
    background: linear-gradient(90deg, transparent 0%, var(--color-primary-light) 100%);
}

.decoration-line.right {
    background: linear-gradient(90deg, var(--color-primary-light) 0%, transparent 100%);
}

.decoration-center {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.dot {
    width: 6px;
    height: 6px;
    background: var(--color-primary-light);
    border-radius: 50%;
}

.dot:nth-child(2) {
    width: 8px;
    height: 8px;
}

/* Container horizontal da timeline */
.timeline_container {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0;
    margin-top: 6rem;
}

.timeline_items {
    display: flex;
    align-items: center;
    position: relative;
    width: fit-content;
    gap: 1.5rem;
}

/* Itens (dots) da timeline */
.timeline_item {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    cursor: pointer;
    flex-shrink: 0;
}

.timeline_item--active,
.timeline_item:hover {
    z-index: 3;
}

/* Dots clicáveis da timeline */
.timeline_dot {
    width: 70px;
    height: 70px;
    background: var(--color-bg-white);
    border: 3px solid #d0d0d0;
    border-radius: 10px;
    z-index: 2;
    transition: transform .4s cubic-bezier(.68, -.55, .265, 1.55),
        background .4s ease,
        border-color .4s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.timeline_dot img {
    filter: grayscale(100%);
    width: 40px;
    height: 40px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: filter .5s ease, transform .4s cubic-bezier(.68, -.55, .265, 1.55);
}

/* Dot ativo (selecionado) */
.timeline_item--active .timeline_dot {
    background: #fff;
    border-color: var(--color-primary-light);
    border-radius: 5px;
    transform: rotate(45deg) scale(1.7);
}

.timeline_item--active .timeline_dot img {
    filter: none;
    transform: translate(-50%, -50%) rotate(-45deg);
}

.timeline_dot:hover {
    transform: scale(1.15);
}

.timeline_item--active .timeline_dot:hover {
    transform: rotate(45deg) scale(1.9);
}

/* Linhas conectoras entre os dots */
.timeline_line {
    width: 200px;
    height: 5px;
    background: #d0d0d0;
    border-radius: 5px;
    position: relative;
    z-index: 1;
    overflow: hidden;
}

/* Camada verde que preenche a linha */
.timeline_line::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--color-primary-light);
    border-radius: 5px;
    transform: scaleX(0);
    transition: none;
}

/* Animações de preenchimento das linhas */
.timeline_line--filling-right::after {
    transform-origin: left center;
    animation: fillLine 0.5s ease-out forwards;
}

.timeline_line--filling-left::after {
    transform-origin: right center;
    animation: fillLine 0.5s ease-out forwards;
}

.timeline_line--filling-inward-left::after {
    transform-origin: right center;
    animation: fillLine 0.5s ease-out forwards;
}

.timeline_line--filling-inward-right::after {
    transform-origin: left center;
    animation: fillLine 0.5s ease-out forwards;
}

.timeline_line--active::after {
    transform: scaleX(1);
}

@keyframes fillLine {
    from {
        transform: scaleX(0);
    }

    to {
        transform: scaleX(1);
    }
}

/* ========================================================================
   ÁREA DE CONTEÚDO DA TIMELINE
   ======================================================================== */

.timeline_content-area {
    width: 100%;
    max-width: 1400px;
    margin: 1rem auto 0;
    padding: 0 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Caixa de conteúdo estilizada */
.timeline_content-box {
    background: linear-gradient(145deg, #fff 0%, #f9f9f9 100%);
    border-radius: 32px;
    border: 1px solid rgba(113, 192, 49, .15);
    padding: 4.5rem 5rem;
    position: relative;
    margin-bottom: 5rem;
    width: 100%;
    overflow: hidden;
    transition: transform .4s cubic-bezier(.4, 0, .2, 1);
}

/* Linha decorativa no topo */
.timeline_content-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent 0%, var(--color-primary-light) 50%, transparent 100%);
    opacity: .6;
}

.timeline_content-box:hover {
    transform: translateY(-2px);
}

/* Cantos decorativos */
.content-box_corner {
    position: absolute;
    width: 60px;
    height: 60px;
    border: 2px solid var(--color-primary-light);
    opacity: .25;
    transition: opacity .4s ease, width .4s ease, height .4s ease;
}

.content-box_corner--top {
    top: 20px;
    left: 20px;
    border-right: none;
    border-bottom: none;
    border-radius: 12px 0 0 0;
}

.content-box_corner--bottom {
    bottom: 20px;
    right: 20px;
    border-left: none;
    border-top: none;
    border-radius: 0 0 12px 0;
}

.timeline_content-box:hover .content-box_corner {
    opacity: .5;
    width: 70px;
    height: 70px;
}

/* Textos da timeline */
.text-content {
    position: relative;
    z-index: 1;
}

.timeline_text--default .text-content {
    text-align: center;
}

.timeline_text {
    display: none;
    opacity: 0;
    animation: fadeInContent .6s cubic-bezier(.4, 0, .2, 1) forwards;
}

.timeline_text--active {
    display: block;
}

/* Título do conteúdo */
.timeline_text h3 {
    font-size: 3.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #8cdd4a 0%, #71c031 50%, #5a9928 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-align: center;
    letter-spacing: -.03em;
    line-height: 1.1;
    position: relative;
    padding-bottom: 2rem;
    text-align: center;
}

.timeline_text h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, transparent 0%, var(--color-primary-light) 50%, transparent 100%);
    border-radius: 10px;
}

/* Área de texto com scroll */
.text-body {
    max-height: 800px;
    overflow-y: auto;
    padding-right: 1.5rem;
    scrollbar-width: thin;
    scrollbar-color: var(--color-primary-light) transparent;
}

.text-body::-webkit-scrollbar {
    width: 6px;
}

.text-body::-webkit-scrollbar-track {
    background: rgba(113, 192, 49, .05);
    border-radius: 10px;
}

.text-body::-webkit-scrollbar-thumb {
    background: var(--color-primary-light);
    border-radius: 10px;
}

.text-body::-webkit-scrollbar-thumb:hover {
    background: var(--color-primary);
}

/* Parágrafos do conteúdo */
.timeline_text p {
    font-size: 1.1rem;
    line-height: 1.85;
    color: #2d3a2e;
    font-weight: 400;
    text-align: justify;
    margin-top: 2rem;
    margin-bottom: 1.75rem;
    padding: 0 .5rem;
}

.timeline_text p:last-child {
    margin-bottom: 0;
}

.timeline_text p strong {
    color: var(--color-primary);
    font-weight: 700;
}

.timeline_text p em {
    color: var(--color-text-primary);
    font-style: italic;
}

/* Caixa de destaque */
.text-highlight {
    background: linear-gradient(135deg, rgba(113, 192, 49, .08) 0%, rgba(117, 214, 38, .12) 100%);
    border-left: 4px solid var(--color-primary-light);
    padding: 1.5rem 2rem;
    border-radius: 8px;
    margin-top: 2rem !important;
    font-size: 1.15rem !important;
    font-weight: 600 !important;
    color: var(--color-primary) !important;
}

@keyframes fadeInContent {
    from {
        opacity: 0;
        transform: translateY(30px) scale(.98);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* ========================================================================
   FOOTER (Rodapé)
   ======================================================================== */

.footer {
    background-color: #1a1a1a;
    color: var(--color-bg-white);
    padding: 2rem 0;
    text-align: center;
    width: 100%;
}