/* =========================================================
   Our Roots Page - Hero Section
   ========================================================= */
.roots-hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    width: 100%;
    overflow: hidden;
    display: flex;
    align-items: center; /* Centraliza o texto verticalmente */
    background-color: #1a1a1a; /* Fundo escuro fallback */
}

/* --- Background com Efeito "Echoing History" --- */
.roots-hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center right 15%; /* Mantém o rosto do frade e da freira focados */
    z-index: 1;
    /* Zoom lento e majestoso trazendo a história pra perto */
    animation: echoZoom 22s ease-out forwards;
}

@keyframes echoZoom {
    0% { transform: scale(1); filter: brightness(0.9); }
    100% { transform: scale(1.12); filter: brightness(1); }
}

/* --- Máscara (Scrim) Lateral --- */
.roots-hero-scrim {
    position: absolute;
    inset: 0;
    /* Gradiente vindo da esquerda, escurecendo apenas atrás do texto */
    background: linear-gradient(to right, rgba(20, 20, 20, 0.9) 0%, rgba(20, 20, 20, 0.5) 50%, rgba(20, 20, 20, 0) 100%);
    z-index: 2;
}

/* --- Container e Textos --- */
.roots-hero-container {
    position: relative;
    z-index: 3;
    width: 100%;
    max-width: var(--container-max, 1200px);
    margin: 0 auto;
    padding: 0 40px;
}

.roots-hero-content {
    max-width: 650px; /* Limita a largura para o texto não sobrepor o rosto à direita */
}

/* Eyebrow: "FOUNDERS" */
.roots-eyebrow {
    display: block;
    font-family: var(--font-display), 'Montreal', sans-serif;
    font-size: clamp(0.9rem, 1.2vw, 1.1rem);
    font-weight: 600;
    letter-spacing: 0.15em;
    color: #e0e0e0;
    text-transform: uppercase;
    margin-bottom: 0.8rem;
    text-shadow: 0 2px 10px rgba(0,0,0,0.8);
}

/* Tipografia do Título */
.roots-hero-title {
    font-family: var(--font-display), 'Montreal', sans-serif;
    font-size: clamp(2.4rem, 4.5vw, 4rem);
    font-weight: 500;
    color: #ffffff;
    line-height: 1.15;
    letter-spacing: 0.01em;
    margin-bottom: 1.5rem;
    text-shadow: 0 4px 20px rgba(0,0,0,0.8);
}

/* Tipografia do Subtítulo */
.roots-hero-subtitle {
    font-family: var(--font-body), 'Google Sans', sans-serif;
    font-size: clamp(1.05rem, 1.4vw, 1.25rem);
    color: rgba(255, 255, 255, 0.95);
    line-height: 1.6;
    margin: 0;
    font-weight: 400;
    text-shadow: 0 2px 10px rgba(0,0,0,0.8);
}

/* Animação personalizada (Slide-in vindo da esquerda) */
.roots-hero-content .reveal-on-scroll {
    opacity: 0;
    transform: translateX(-40px);
    transition: opacity 1.2s ease-out, transform 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.roots-hero-content .reveal-on-scroll.revealed {
    opacity: 1;
    transform: translateX(0);
}

/* =========================================================
   Responsividade (Telas Menores)
   ========================================================= */
@media (max-width: 992px) {
    .roots-hero-scrim {
        /* Estende a área escura para tablets */
        background: linear-gradient(to right, rgba(20, 20, 20, 0.95) 0%, rgba(20, 20, 20, 0.7) 60%, rgba(20, 20, 20, 0) 100%);
    }
}

@media (max-width: 768px) {
    .roots-hero {
        align-items: flex-end; /* Posiciona o texto para baixo no celular para mostrar os rostos */
        padding-bottom: 80px;
        min-height: 80vh;
    }

    .roots-hero-bg {
        background-position: center 30%; /* Centraliza o foco nos fundadores no mobile */
    }

    .roots-hero-scrim {
        /* Inverte o gradiente: no mobile vem de baixo para cima */
        background: linear-gradient(to bottom, rgba(20, 20, 20, 0) 0%, rgba(20, 20, 20, 0.7) 40%, rgba(20, 20, 20, 0.95) 100%);
    }

    .roots-hero-container {
        padding: 0 20px;
    }

    .roots-hero-content {
        max-width: 100%;
        text-align: center; /* Centraliza tudo no celular */
    }

    .roots-hero-title br,
    .roots-hero-subtitle br {
        display: none; /* Deixa o texto fluir livremente em telas menores */
    }

    /* Muda a direção do efeito: agora sobe (slide-up) em vez de vir da lateral */
    .roots-hero-content .reveal-on-scroll {
        transform: translateY(30px);
    }
    .roots-hero-content .reveal-on-scroll.revealed {
        transform: translateY(0);
    }
}

/* =========================================================
   Our Roots Page - Founder Section (Sessão 2)
   ========================================================= */
.roots-founder {
    background-color: var(--site-bg, #f8f8f7);
    padding: 120px 20px;
    overflow: hidden;
}

.roots-founder-container {
    max-width: var(--container-max, 1200px);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.15fr 0.85fr; /* O texto toma um pouco mais de espaço */
    gap: 70px;
    align-items: center;
}

/* --- Área de Textos --- */
.founder-text {
    padding-right: 20px;
}

.founder-text p {
    font-family: var(--font-body), 'Google Sans', sans-serif;
    font-size: clamp(0.95rem, 1.1vw, 1.05rem); /* Um pouco menor para acomodar bem o texto denso */
    color: #4a4a4a;
    line-height: 1.7;
    margin-bottom: 1.8rem;
}

.founder-text p:last-child {
    margin-bottom: 0;
}

/* Entrada dos textos (Sobe de baixo pra cima em cascata) */
.founder-text .reveal-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.founder-text .reveal-on-scroll.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* --- Área Visual (Caixa Azul + Foto) --- */
.founder-visual {
    position: relative;
    /* Adiciona padding no bloco para o azul poder expandir enquanto a imagem fica no meio */
    padding: 40px 0 60px 50px; 
    cursor: default; /* Interação visual sem ser um link */
}

/* O fundo azul que fica por trás */
.founder-blue-bg {
    position: absolute;
    top: 0;
    right: -40px; /* Estica para fora à direita */
    bottom: 0;
    left: 50px; /* Começa 50px para dentro, permitindo que a imagem vaze na esquerda */
    background-color: var(--dark-navy, #122235);
    z-index: 1;
}

/* A Mágica de Entrada do Fundo Azul (Desliza da direita) */
.founder-blue-bg.reveal-on-scroll {
    opacity: 0;
    transform: translateX(50px);
    transition: opacity 1s ease-out, transform 1s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.founder-blue-bg.reveal-on-scroll.revealed {
    opacity: 1;
    transform: translateX(0);
}

/* A Foto Vazando */
.founder-photo-wrapper {
    position: relative;
    z-index: 2;
    width: 100%;
    /* Margem negativa na esquerda joga a foto para fora do fundo azul */
    margin-left: -50px; 
    box-shadow: -15px 15px 35px rgba(0,0,0,0.15); /* Sombra focada no lado vazado */
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 0.6s ease;
}

.founder-photo-wrapper img {
    width: 100%;
    height: auto;
    display: block;
    /* Efeito de memória inicial: leve sépia */
    filter: sepia(30%) brightness(0.9);
    transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94), filter 0.8s ease;
}

/* A Legenda dentro do azul */
.founder-caption {
    position: relative;
    z-index: 2;
    color: #ffffff;
    font-family: var(--font-body), 'Google Sans', sans-serif;
    font-size: 0.95rem;
    line-height: 1.5;
    margin-top: 25px;
    padding-left: 20px; /* Alinha com o interior do azul */
}

/* --- A Interação "Memory Lift" no Hover --- */
.founder-visual:hover .founder-photo-wrapper {
    transform: translateY(-10px) translateX(-8px); /* Levita e puxa mais para a esquerda */
    box-shadow: -20px 25px 45px rgba(0,0,0,0.3); /* Sombra intensifica */
}

.founder-visual:hover .founder-photo-wrapper img {
    transform: scale(1.04); /* Zoom suave na foto */
    filter: sepia(0%) brightness(1); /* Tira o sépia, foto ganha "vida" total */
}

/* Entrada da Foto e Legenda (Deslizam da esquerda sobrepondo o azul) */
.founder-photo-wrapper.reveal-on-scroll,
.founder-caption.reveal-on-scroll {
    opacity: 0;
    transform: translateX(-30px);
    transition: opacity 1s ease-out, transform 1s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.founder-photo-wrapper.reveal-on-scroll.revealed,
.founder-caption.reveal-on-scroll.revealed {
    opacity: 1;
    transform: translateX(0);
}

/* =========================================================
   Responsividade (Telas Menores)
   ========================================================= */
@media (max-width: 992px) {
    .roots-founder-container {
        grid-template-columns: 1fr; /* Empilha texto e imagem no tablet */
        gap: 60px;
    }

    .founder-text {
        padding-right: 0;
    }

    .founder-visual {
        max-width: 500px;
        margin: 0 auto;
        padding-left: 30px; /* Diminui o vazamento */
    }

    .founder-blue-bg {
        left: 30px;
        right: -20px;
    }

    .founder-photo-wrapper {
        margin-left: -30px;
    }
}

@media (max-width: 576px) {
    .roots-founder {
        padding: 80px 20px;
    }

    .founder-visual {
        padding: 30px 0 40px 20px;
    }

    .founder-blue-bg {
        left: 20px;
        right: -10px; /* Caixa azul se adapta à tela minúscula */
    }

    .founder-photo-wrapper {
        margin-left: -20px;
        box-shadow: -10px 10px 20px rgba(0,0,0,0.15);
    }
    
    /* Desativa o Hover 3D complexo em touch screens */
    .founder-visual:hover .founder-photo-wrapper {
        transform: none;
        box-shadow: -10px 10px 20px rgba(0,0,0,0.15);
    }
    .founder-visual:hover .founder-photo-wrapper img {
        transform: none;
    }
}

/* =========================================================
   Our Roots Page - Co-foundress Section (Sessão 3)
   ========================================================= */
.roots-cofoundress {
    background-color: var(--site-bg, #f8f8f7);
    padding: 100px 20px 120px 20px;
    overflow: hidden;
}

.roots-cofoundress-container {
    max-width: var(--container-max, 1200px);
    margin: 0 auto;
    display: grid;
    /* Inverte a proporção em relação ao fundador */
    grid-template-columns: 0.85fr 1.15fr; 
    gap: 80px;
    align-items: center;
}

/* --- Área Visual Invertida (Caixa Marrom + Foto) --- */
.cofoundress-visual {
    position: relative;
    /* Adiciona padding na direita para o fundo marrom expandir enquanto a imagem fica no meio */
    padding: 40px 50px 60px 0; 
    cursor: default;
}

/* O fundo marrom escuro que fica por trás */
.cofoundress-brown-bg {
    position: absolute;
    top: 0;
    left: -40px; /* Estica para fora à esquerda */
    bottom: 0;
    right: 50px; /* Começa 50px para dentro, permitindo vazamento da imagem à direita */
    background-color: #2b2522; /* Tom marrom muito escuro da arte */
    z-index: 1;
}

/* A Mágica de Entrada do Fundo Marrom (Desliza da esquerda) */
.cofoundress-brown-bg.reveal-on-scroll {
    opacity: 0;
    transform: translateX(-50px);
    transition: opacity 1s ease-out, transform 1s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.cofoundress-brown-bg.reveal-on-scroll.revealed {
    opacity: 1;
    transform: translateX(0);
}

/* A Foto Vazando para a DIREITA */
.cofoundress-photo-wrapper {
    position: relative;
    z-index: 2;
    width: 100%;
    /* Margem negativa na direita joga a foto para fora do fundo marrom */
    margin-right: -50px; 
    box-shadow: 15px 15px 35px rgba(0,0,0,0.15); /* Sombra focada no lado direito */
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 0.6s ease;
}

.cofoundress-photo-wrapper img {
    width: 100%;
    height: auto;
    display: block;
    /* Efeito de memória inicial: leve sépia */
    filter: sepia(30%) brightness(0.9);
    transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94), filter 0.8s ease;
}

/* A Legenda dentro do marrom */
.cofoundress-caption {
    position: relative;
    z-index: 2;
    color: #e0e0e0;
    font-family: var(--font-body), 'Google Sans', sans-serif;
    font-size: 0.95rem;
    line-height: 1.5;
    margin-top: 25px;
    padding-right: 20px; /* Alinha com o interior do marrom */
}

/* --- A Interação "Memory Lift Invertido" no Hover --- */
.cofoundress-visual:hover .cofoundress-photo-wrapper {
    /* Levita e puxa para a DIREITA dessa vez */
    transform: translateY(-10px) translateX(8px); 
    box-shadow: 20px 25px 45px rgba(0,0,0,0.3); /* Sombra intensifica à direita */
}

.cofoundress-visual:hover .cofoundress-photo-wrapper img {
    transform: scale(1.04); /* Zoom suave na foto */
    filter: sepia(0%) brightness(1); /* Tira o sépia, foto ganha "vida" total */
}

/* Entrada da Foto e Legenda (Deslizam da direita sobrepondo o marrom) */
.cofoundress-photo-wrapper.reveal-on-scroll,
.cofoundress-caption.reveal-on-scroll {
    opacity: 0;
    transform: translateX(30px);
    transition: opacity 1s ease-out, transform 1s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.cofoundress-photo-wrapper.reveal-on-scroll.revealed,
.cofoundress-caption.reveal-on-scroll.revealed {
    opacity: 1;
    transform: translateX(0);
}

/* --- Área de Textos --- */
.cofoundress-text {
    padding-left: 10px;
}

.cofoundress-text p {
    font-family: var(--font-body), 'Google Sans', sans-serif;
    font-size: clamp(0.95rem, 1.1vw, 1.05rem); /* Tamanho compatível com o bloco do fundador */
    color: #4a4a4a;
    line-height: 1.7;
    margin-bottom: 1.8rem;
}

.cofoundress-text p:last-child {
    margin-bottom: 0;
}

/* Entrada dos textos (Sobe e vem da direita) */
.cofoundress-text .reveal-on-scroll {
    opacity: 0;
    transform: translateY(30px) translateX(20px);
    transition: opacity 0.8s ease-out, transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.cofoundress-text .reveal-on-scroll.revealed {
    opacity: 1;
    transform: translateY(0) translateX(0);
}

/* =========================================================
   Responsividade (Telas Menores)
   ========================================================= */
@media (max-width: 992px) {
    .roots-cofoundress-container {
        grid-template-columns: 1fr; /* Empilha no tablet */
        gap: 60px;
    }

    .cofoundress-text {
        padding-left: 0;
    }

    .cofoundress-visual {
        max-width: 500px;
        margin: 0 auto;
        padding-right: 30px; /* Diminui o vazamento */
    }

    .cofoundress-brown-bg {
        left: -20px;
        right: 30px;
    }

    .cofoundress-photo-wrapper {
        margin-right: -30px;
    }
}

@media (max-width: 576px) {
    .roots-cofoundress {
        padding: 60px 20px 80px 20px;
    }

    .cofoundress-visual {
        padding: 30px 20px 40px 0;
    }

    .cofoundress-brown-bg {
        left: -10px;
        right: 20px; /* Caixa marrom se adapta à tela minúscula */
    }

    .cofoundress-photo-wrapper {
        margin-right: -20px;
        box-shadow: 10px 10px 20px rgba(0,0,0,0.15);
    }
    
    /* Desativa o Hover 3D complexo em touch screens */
    .cofoundress-visual:hover .cofoundress-photo-wrapper {
        transform: none;
        box-shadow: 10px 10px 20px rgba(0,0,0,0.15);
    }
    .cofoundress-visual:hover .cofoundress-photo-wrapper img {
        transform: none;
    }
}

/* =========================================================
   Our Roots Page - Living Legacy Section (Sessão 4)
   ========================================================= */
.roots-legacy {
    position: relative;
    width: 100%;
    min-height: 85vh; 
    display: flex;
    align-items: flex-end; 
    background-color: #12181f; 
    overflow: hidden;
    margin-bottom: 0;
    padding-bottom: 0;
}

/* --- Background com Efeito Parallax --- */
.roots-legacy-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center 20%; /* Foca na parte superior da foto onde estão os rostos */
    /* Fixa o fundo criando a ilusão de profundidade ao rolar a página */
    background-attachment: fixed; 
    z-index: 1;
}

/* --- Máscara (Scrim) de Esquinas --- */
.roots-legacy-scrim {
    position: absolute;
    inset: 0;
    /* Combinação de gradientes: Um de baixo pra cima (base) e fumaça preta nas laterais */
    background: 
        linear-gradient(to top, rgba(15, 20, 25, 0.95) 0%, rgba(15, 20, 25, 0.5) 40%, rgba(15, 20, 25, 0) 100%),
        linear-gradient(to right, rgba(15, 20, 25, 0.8) 0%, rgba(15, 20, 25, 0) 30%),
        linear-gradient(to left, rgba(15, 20, 25, 0.8) 0%, rgba(15, 20, 25, 0) 30%);
    z-index: 2;
}

/* --- Container e Textos --- */
.roots-legacy-container {
    position: relative;
    z-index: 3;
    width: 100%;
    max-width: var(--container-max, 1400px); /* Usa uma largura um pouco maior para espaçar bem os textos */
    margin: 0 auto;
    padding: 60px 40px;
    display: flex;
    justify-content: space-between; /* Empurra um bloco pra cada lado */
    align-items: flex-end; /* Alinha ambos pelo fundo */
    gap: 40px;
}

/* --- Lado Esquerdo (Destaque) --- */
.legacy-text-left h2 {
    font-family: var(--font-display), 'Montreal', sans-serif;
    font-size: clamp(1.6rem, 2.8vw, 2.4rem);
    color: #ffffff;
    font-weight: 500;
    line-height: 1.25;
    margin: 0;
    letter-spacing: -0.01em;
    text-shadow: 0 4px 15px rgba(0,0,0,0.8); /* Sombra difusa para separar do fundo */
}

/* --- Lado Direito (Corpo de Texto) --- */
.legacy-text-right p {
    font-family: var(--font-body), 'Google Sans', sans-serif;
    font-size: clamp(1.05rem, 1.2vw, 1.15rem);
    color: rgba(255, 255, 255, 0.95);
    line-height: 1.6;
    margin: 0;
    text-shadow: 0 2px 10px rgba(0,0,0,0.8);
}

/* --- Animação Coreografada (Efeito Embrace / Abraço) --- */
.legacy-text-left.reveal-on-scroll {
    opacity: 0;
    transform: translateX(-50px);
    transition: opacity 1.2s ease-out, transform 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.legacy-text-left.reveal-on-scroll.revealed {
    opacity: 1;
    transform: translateX(0);
}

.legacy-text-right.reveal-on-scroll {
    opacity: 0;
    transform: translateX(50px);
    transition: opacity 1.2s ease-out, transform 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.legacy-text-right.reveal-on-scroll.revealed {
    opacity: 1;
    transform: translateX(0);
}

/* =========================================================
   Responsividade (Telas Menores)
   ========================================================= */
@media (max-width: 992px) {
    .roots-legacy-container {
        flex-direction: column; /* Empilha os blocos no tablet */
        align-items: flex-start; /* Alinha à esquerda */
        justify-content: flex-end;
    }

    .legacy-text-right p br,
    .legacy-text-left h2 br {
        display: none; /* Deixa o texto fluir na tela reduzida */
    }

    .legacy-text-right p {
        max-width: 700px;
    }
}

@media (max-width: 768px) {
    .roots-legacy {
        min-height: 70vh;
    }

    .roots-legacy-bg {
        /* Desliga o parallax no mobile para estabilidade de performance */
        background-attachment: scroll; 
        background-position: 50% 30%; /* Mantém os rostos centralizados */
    }

    .roots-legacy-scrim {
        /* Simplifica o gradiente no mobile, escurecendo mais a base */
        background: linear-gradient(to top, rgba(15, 20, 25, 0.95) 0%, rgba(15, 20, 25, 0.8) 50%, rgba(15, 20, 25, 0) 100%);
    }

    .roots-legacy-container {
        padding: 40px 20px 60px 20px;
        align-items: center; /* Centraliza tudo no celular */
        text-align: center;
    }

    /* Modifica as animações para subirem do chão no mobile, evitando balanço horizontal */
    .reveal-left, .reveal-right {
        transform: translateY(30px);
    }
    .reveal-left.revealed, .reveal-right.revealed {
        transform: translateY(0);
    }
}