/* Estilos para a página Sobre - GLM Finanças */

:root {
    --glm-bg-primary: #091A30;       /* Fundo principal (azul petróleo) */
    --glm-bg-secondary: #ffffff;     /* Fundo secundário agora branco */
    --glm-accent-orange: #F05026;    /* Laranja vibrante (CTAs, atenção) */
    --glm-accent-green: #BDD63D;     /* Verde-limão (Highlights, positivo) */
    --glm-accent-blue: #8ED8F7;      /* Azul céu/ciano (Links, hover, secundário) */
    --glm-text-light: #091A30;       /* Texto claro principal agora azul petróleo */
    --glm-text-medium: #6c757d;      /* Texto escuro secundário/médio */
    --glm-text-dark: #ffffff;        /* Texto escuro principal agora branco */
    --glm-border-light: #dee2e6;     /* Bordas em fundos claros */
    --glm-card-bg: #091A30;          /* Fundo para cards agora azul petróleo */
    --glm-dark-blue: #17314F;        /* Azul-marinho escuro para fundos secundários */
}

body.sobre-page {
    background-color: var(--glm-bg-primary) !important;
    color: var(--glm-text-dark);
}

/* Hero Section com imagem específica para a página Sobre */
.hero-with-bg.sobre-hero {
    background-image: url('../images/sobre_background.jpg');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    position: relative;
}

/* Estilos específicos para a seção Mensagem Principal na página sobre */
.sobre-page .mission-statement-section {
    /* Manter apenas o essencial para não interferir com o efeito original */
    background-color: var(--glm-bg-primary);
}

/* Garantir que o texto seja branco na página sobre */
.sobre-page .mission-statement-text {
    color: #ffffff !important;
}

.sobre-page .quote-line-faded {
    color: rgba(255, 255, 255, 0.3) !important;
}

.sobre-page .quote-line-fill {
    color: #ffffff !important;
}

/* Títulos e seções */

/* Títulos e seções */
.section-title {
    color: var(--glm-text-dark); /* Texto escuro para títulos */
    position: relative;
    margin-bottom: 2.5rem;
    font-weight: 500;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 0;
    width: 80px;
    height: 3px;
    background: var(--glm-accent-orange);
    transition: width 0.3s ease;
}

.section-title.text-center::after {
    left: 50%;
    transform: translateX(-50%);
}

.section-title:hover::after {
    width: 120px;
}

.section-padding {
    padding: 7rem 0;
    background-color: var(--glm-bg-primary) !important;
    border-top: none !important;
    border-bottom: none !important;
    position: relative;
    overflow: hidden;
}

.section-padding::after,
.section-padding::before {
    display: none !important;
    content: none !important;
}

.section-padding.section-historia,
.section-padding.section-valores {
    background-color: var(--glm-bg-primary) !important;
}

.section-padding.section-missao {
    background-color: var(--glm-bg-primary) !important;
    position: relative;
    overflow: hidden;
}



.section-padding.section-valores {
    padding-top: 0 !important;
    margin-top: 5rem !important;
}

/* Remove the border specifically for the Nossa Missão section */
section.section-padding.section-missao {
    border-top: none;
}

/* Elementos decorativos para criar continuidade visual */
.section-decorator {
    position: absolute;
    width: 15vw;
    height: 15vw;
    max-width: 250px;
    max-height: 250px;
    z-index: 0;
    opacity: 0.07;
    transition: all 0.5s ease;
}

.section-decorator.top-right {
    top: -5vw;
    right: -5vw;
    background: radial-gradient(circle, var(--glm-accent-orange) 0%, rgba(255,255,255,0) 70%);
    animation: pulse-slow 6s infinite alternate;
}

.section-decorator.top-left {
    top: -5vw;
    left: -5vw;
    background: radial-gradient(circle, var(--glm-accent-green) 0%, rgba(255,255,255,0) 70%);
    animation: pulse-slow 8s infinite alternate-reverse;
}

.section-decorator.bottom-left {
    bottom: -5vw;
    left: -5vw;
    background: radial-gradient(circle, var(--glm-accent-blue) 0%, rgba(255,255,255,0) 70%);
    animation: pulse-slow 7s infinite alternate;
}

.section-decorator.accent {
    opacity: 0.15;
}

@keyframes pulse-slow {
    0% { transform: scale(1); }
    100% { transform: scale(1.2); }
}

.item-description {
    color: var(--glm-text-dark) !important;
}

/* Efeito hover laranja sólido de fundo para strategy-item */
.strategy-item {
    background-color: transparent;
    transition: background 0.3s, color 0.3s;
    position: relative;
    padding-bottom: 20px;
    margin-bottom: 20px;
}
.strategy-item:hover {
    background-color: #F05026 !important;
    opacity: 1 !important;
    box-shadow: 0 4px 24px 0 rgba(0,0,0,0.04);
}

.strategy-item:hover .item-title,
.strategy-item:hover .item-description,
.strategy-item:hover .list-number {
    color: #fff !important;
}

.strategy-item .list-number {
    color: var(--glm-accent-orange);
    transition: color 0.3s;
    font-size: 1.5rem;
    font-weight: 800;
    min-width: 3.5rem;
    text-align: center;
}

.strategy-item:hover .list-number {
    color: #fff !important;
}

.strategy-item::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background-color: var(--glm-accent-green);
    opacity: 0.3;
}

.strategy-item:last-child::after {
    display: none;
}

/* Estilos específicos para cada seção */
.section-historia {
    position: relative;
}

.section-historia::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background-color: var(--glm-accent-orange);
    opacity: 0.5;
}

.section-missao {
    position: relative;
    overflow: hidden; /* Ensure the circle doesn't overflow */
    border-top: none; /* Remove the top border line */
}

.section-missao::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 15%;
    width: 100px;
    height: 3px;
    background-color: var(--glm-accent-green);
    opacity: 0.5;
}

.section-padding:nth-child(even) { /* Ajustado para que a primeira seção (Nossa História) seja branca se for ímpar no DOM */
    background-color: var(--glm-bg-primary);
}

/* Se a primeira seção de conteúdo for .section-padding, ela deve ser branca */
.hero-about + .section-padding {
    background-color: var(--glm-bg-primary);
}

/* Linha conectora entre seções - simplificada */
.connector-line {
    position: absolute;
    top: 0;
    left: 5%;
    width: 2px;
    height: 100%;
    background: linear-gradient(to bottom, transparent, var(--glm-accent-orange), transparent);
    z-index: 0; /* Reduzido para ficar atrás do conteúdo */
    opacity: 0.5;
}

.connector-line-right {
    left: auto;
    right: 5%;
}

.small-title {
    color: var(--glm-accent-orange);
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 1.5px;
    margin-bottom: 1rem;
    display: inline-block;
    position: relative;
}

/* Destacar visualmente a seção Nossa Missão */
.section-missao {
    padding-top: 5rem;
    padding-bottom: 15rem;
    min-height: 60vh;
    padding-left: 0;
    padding-right: 0;
}
.section-missao > .container {
    max-width: 1140px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

.section-missao .small-title {
    font-family: 'AvenirLTStd-Light' !important;
    font-weight: 700 !important;
    font-size: 5rem !important;
    text-align: left !important;
    margin-bottom: 2.5rem !important;
    letter-spacing: 2px !important;
    display: block !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    align-self: flex-start !important;
}

/* Textos */
.about-text p {
    color: var(--glm-text-medium);
    line-height: 1.8;
    font-size: 1.05rem;
    margin-bottom: 0;
}

.small-title {
    color: var(--glm-accent-orange); /* Laranja para small-titles */
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

/* Destacar o título 'Sobre nós' */
.section-historia .small-title,
.section-valores .small-title {
    font-size: 4.2rem;
    font-family: 'AvenirLTStd-Light';
    font-weight: 900;
    line-height: 1.05;
    letter-spacing: 1.5px;
    color: var(--glm-text-dark);
    margin-bottom: 2.2rem;
    text-transform: uppercase;
}

/* Fundo branco garantido para section-header132 */
.section-header132 {
    background: #fff !important;
}

/* --- Section Header 132 Image Wrapper (sobreposição de imagens) --- */
.header132_image-wrapper1 {
    position: relative;
    width: 100%;
    max-width: 760px;
    margin: 3rem auto 0 auto;
    min-height: 330px;
}
.header132_img-main {
    width: 100%;
    max-width: 540px;
    display: block;
    margin-left: auto;
    margin-right: auto;
    border-radius: 10px;
    box-shadow: 0 8px 32px rgba(9,26,48,0.10);
    position: relative;
    z-index: 1;
}
.header132_img-overlap {
    position: absolute;
    left: -90px;
    top: 50px;
    width: 270px;
    max-width: 48vw;
    border-radius: 8px;
    box-shadow: 0 6px 24px rgba(9,26,48,0.12);
    z-index: 2;
    background: #fff;
    border: 2px solid #fff;
}
@media (max-width: 991px) {
    .header132_image-wrapper1 {
        max-width: 98vw;
        min-height: 220px;
    }
    .header132_img-main {
        max-width: 96vw;
    }
    .header132_img-overlap {
        left: -30px;
        top: 30px;
        width: 140px;
    }
}
@media (max-width: 600px) {
    .header132_image-wrapper1 {
        min-height: 140px;
    }
    .header132_img-main {
        max-width: 98vw;
    }
    .header132_img-overlap {
        left: 0;
        top: 18px;
        width: 90px;
    }
}


/* Títulos dos itens de valor */
.item-title {
    font-size: 1.5rem;
    font-family: 'AvenirLTStd-Light';
    font-weight: 700;
    text-transform: uppercase;
    color: var(--glm-text-dark);
    letter-spacing: 1px;
    margin-left: 1rem;
}

.highlight-box {
    background-color: var(--glm-bg-secondary);
    border-left: 4px solid var(--glm-accent-orange);
    padding: 2rem;
    margin: 2rem 0;
    border: 1px solid var(--glm-border-light);
    border-left-width: 4px; /* Ensure left border is prominent */
}

.highlight-box p {
    font-style: italic;
    color: var(--glm-text-dark);
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 0;
}

/* Timeline */
.history-timeline {
    position: relative;
    padding: 2rem 0;
}

/* Estilização da Lista Numerada de Princípios */
.numbered-principles-list {
    list-style: none;
    padding-left: 0;
    margin-top: 3rem;
}

.numbered-principles-list li {
    display: flex;
    align-items: flex-start; /* Alinha o número com o topo do texto */
    margin-bottom: 2.5rem; /* Aumenta o espaçamento entre os itens */
    padding: 1.5rem;
    background-color: var(--glm-bg-secondary);
    border-radius: 4px;
    border: 1px solid var(--glm-border-light);
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.numbered-principles-list li:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}

.numbered-principles-list .list-number {
    font-size: 2rem; /* Tamanho do número */
    font-weight: 700;
    color: var(--glm-accent-orange); /* Cor de destaque para o número */
    margin-right: 1.5rem;
    line-height: 1.2; /* Ajusta a linha-altura para alinhar melhor com o texto */
    min-width: 60px; /* Garante espaço para números de dois dígitos */
}

.numbered-principles-list p {
    font-size: 1.1rem; /* Tamanho do texto do princípio */
    color: var(--glm-text-dark);
    line-height: 1.7;
    margin-bottom: 0; /* Remove margem inferior do parágrafo dentro do li */
}

.section-missao .container {
    position: relative;
    z-index: 10;
}

/* Responsividade */
@media (max-width: 991.98px) {
    .hero-about {
        padding: 6rem 0 4rem;
        min-height: auto;
    }
    
    .hero-about h1 {
        font-size: 2rem;
    }
    
    .connector-line, .connector-line-right {
        display: none;
    }
    
    .history-visual {
        margin-top: 3rem;
    }
    
    .section-padding {
        padding: 5rem 0;
    }
    
    .value-card {
        margin-bottom: 2rem;
    }
}

@media (max-width: 767.98px) {
    .hero-about h1 {
        font-size: 1.8rem;
    }
    
    .scroll-indicator {
        display: none;
    }
    
    .stat-item {
        flex: 1 0 100%;
        margin-bottom: 2rem;
    }
    
    .numbered-principles-list li {
        padding: 1.5rem 1.5rem 1.5rem 5rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
}

.history-timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    width: 2px;
    height: 100%;
    background-color: var(--glm-border-light);
    transform: translateX(-50%);
}



/* Media Queries */
@media (max-width: 767px) {
    .hero-about {
        padding: 6rem 0 3rem;
    }
    
    .section-padding {
        padding: 3rem 0;
    }
}

/* Seção de Princípios - Ondas Interativas */
.principios-section {
    position: relative;
    background-color: var(--glm-bg-primary);
    padding: 8rem 0;
    overflow: hidden;
    min-height: 60vh;
    display: flex;
    align-items: center;
}

.principios-container {
    position: relative;
    z-index: 2;
}

.ondas-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

/* Ponto central (pingo) */
.pingo-central {
    position: absolute;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: var(--glm-accent-orange);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 3;
    box-shadow: 0 0 15px rgba(240, 80, 38, 0.6);
}

/* Ondas que se propagam */
.onda {
    position: absolute;
    border-radius: 50%;
    border: 2px solid transparent;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    opacity: 0.8;
}

.onda-1 {
    width: 100px;
    height: 100px;
    border-color: var(--glm-accent-orange);
    animation-delay: 0s;
}

.onda-2 {
    width: 200px;
    height: 200px;
    border-color: #BADD59;
    animation-delay: 0.5s;
}

.onda-3 {
    width: 300px;
    height: 300px;
    border-color: var(--glm-accent-blue);
    animation-delay: 1s;
}

.onda-4 {
    width: 400px;
    height: 400px;
    border-color: var(--glm-accent-orange);
    animation-delay: 1.5s;
}

.onda-5 {
    width: 500px;
    height: 500px;
    border-color: #BADD59;
    animation-delay: 2s;
}

.principios-text {
    position: relative;
    z-index: 3;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
}

.principio-item {
    max-width: 300px;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.principio-item.left {
    text-align: right;
    margin-right: 2rem;
    transition-delay: 0.3s;
}

.principio-item.right {
    text-align: left;
    margin-left: 2rem;
    transition-delay: 0.5s;
}

.principio-item h3 {
    color: #ffffff;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    font-family: 'AvenirLTStd-Light';
    position: relative;
}

/* Ocultar qualquer pseudo-elemento que possa estar gerando a seta */
.principio-item h3::before,
.principio-item h3::after,
.principio-item p::before,
.principio-item p::after,
.principio-item::before,
.principio-item::after {
    display: none !important;
    content: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
}

.principio-item p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.85rem;
    line-height: 1.6;
}

/* Animações quando visível */
/* Animação das ondas */
@keyframes propagar-onda {
    0% {
        transform: translate(-50%, -50%) scale(0);
        opacity: 0.8;
    }
    70% {
        opacity: 0.5;
    }
    100% {
        transform: translate(-50%, -50%) scale(3);
        opacity: 0;
    }
}

/* Animação do pingo central */
@keyframes pulsar {
    0% {
        transform: translate(-50%, -50%) scale(1);
        box-shadow: 0 0 15px rgba(240, 80, 38, 0.6);
    }
    50% {
        transform: translate(-50%, -50%) scale(1.2);
        box-shadow: 0 0 20px rgba(240, 80, 38, 0.8);
    }
    100% {
        transform: translate(-50%, -50%) scale(1);
        box-shadow: 0 0 15px rgba(240, 80, 38, 0.6);
    }
}

.principios-section.visible .pingo-central {
    animation: pulsar 2s infinite ease-in-out;
}

.principios-section.visible .onda {
    animation: propagar-onda 4s infinite ease-out;
}

.principios-section.visible .onda-1 {
    animation-delay: 0s;
}

.principios-section.visible .onda-2 {
    animation-delay: 1s;
}

.principios-section.visible .onda-3 {
    animation-delay: 2s;
}

.principios-section.visible .onda-4 {
    animation-delay: 3s;
}

.principios-section.visible .onda-5 {
    animation-delay: 4s;
}

.principios-section.visible .principio-item {
    opacity: 1;
    transform: translateY(0);
}

/* Responsividade */
@media (max-width: 991px) {
    .principios-text {
        flex-direction: column;
        padding: 0 1rem;
    }
    
    .principio-item {
        max-width: 100%;
        margin: 1.5rem 0;
    }
    
    .principio-item.left {
        text-align: center;
        margin-right: 0;
    }
    
    .principio-item.right {
        text-align: center;
        margin-left: 0;
    }
    
    .circle-outer {
        width: 400px;
        height: 400px;
    }
    
    .circle-inner {
        width: 150px;
        height: 150px;
    }
}

@media (max-width: 576px) {
    .principios-section {
        padding: 6rem 0;
    }
    
    .principio-item h3 {
        font-size: 1.0rem;
    }
    
    .principio-item p {
        font-size: 0.7rem;
    }
    
    .circle-outer {
        width: 300px;
        height: 300px;
    }
    
    .circle-inner {
        width: 120px;
        height: 120px;
    }
}
