:root {
    --color-primary: #00bfff; /* AZUL do site */
    --color-dark: #0f0f0f;
    --color-light: #f7f7f7;
    --color-gray-soft: #E9E9E9;
    --color-text-gray: #4b5563;
    --font-main: 'Inter', sans-serif;

    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

* {
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    background-color: var(--color-light);
    color: var(--color-dark);
    margin: 0;
    padding: 0;
}

/* Garante que o scroll bar não apareça ao abrir o menu mobile */
body.no-scroll {
    overflow: hidden;
}

/* ----------------------------------------------- */
/* HEADER CARREIRAS */
/* ----------------------------------------------- */

/* ESTADO INICIAL (Transparente sobre Hero Section escura) */
.top-nav-carreiras .main-nav a,
.top-nav-carreiras .main-nav .dropdown-icon {
    color: white; 
}

/* Regras para o HEADER PRINCIPAL */
.top-nav-carreiras { 
    display: flex;
    justify-content: center;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 15px 40px;
    background: transparent;
    transition: background 0.3s, box-shadow 0.3s;
    z-index: 999;
}

/* ESTADO ROLADO: Header transparente para PRETO */
.top-nav-carreiras.scrolled {
    background: var(--color-dark); /* Fundo PRETO solicitado */
    box-shadow: 0 2px 10px rgba(0,0,0,0.4); 
}

/* Cor dos links ROLADOS: BRANCO */
.top-nav-carreiras.scrolled .main-nav a,
.top-nav-carreiras.scrolled .dropdown-icon {
    color: white; 
}

/* LOGO: AUMENTO DE TAMANHO */
.logo-img {
    height: 100px; /* AUMENTADO */
    width: auto;
    object-fit: contain;
    transition: filter 0.3s;
}

/* LOGO: Inverte a cor do logo para BRANCO ao rolar */
.top-nav-carreiras.scrolled .logo-itau-style .logo-img {
    filter: brightness(0) invert(1); 
}

.header-content-wrapper {
    width: 100%;
    max-width: 1300px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Novo container para ações móveis (lupa e hamburger) */
.header-action-icons {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-itau-style {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-text {
    font-size: 20px;
    font-weight: bold;
    color: #000;
}


/* NAV MENU */

.main-nav {
    display: flex;
    gap: 30px;
    align-items: center;
}

/* BOTÃO HAMBÚRGUER (Invisível no Desktop) */
.hamburger-menu {
    display: none; /* Desktop */
    background: none;
    border: none;
    color: white;
    font-size: 1.8rem;
    cursor: pointer;
    z-index: 1000;
}

/* ANIMAÇÃO HAMBURGER */
.hamburger-menu i {
    transition: transform 0.3s ease-in-out;
    display: inline-block;
}

/* Aplica rotação ao ícone quando o menu está ativo (is-active é adicionado pelo JS) */
.hamburger-menu.is-active i {
    transform: rotate(90deg); 
}

.nav-link {
    text-decoration: none;
    font-weight: 500;
}

.nav-item {
    position: relative;
}

/* DROPDOWN (ANIMADO) */

.has-dropdown {
    cursor: pointer;
}

/* Animação do ícone de seta: Gira 180 graus quando aberto */
.has-dropdown.open .dropdown-icon {
    transform: rotate(180deg);
}

.dropdown-icon {
    margin-left: 4px;
    font-size: 0.7rem;
    transition: transform 0.3s ease-out;
}

.dropdown-menu {
    /* Estado inicial: Invisível e com altura 0, mas posicionado */
    display: block; 
    position: absolute;
    background: #ffffff;
    top: 38px;
    left: 0;
    min-width: 200px;
    border-radius: 10px;
    
    /* Propriedades de Animação */
    max-height: 0;
    opacity: 0;
    padding: 0;
    overflow: hidden;
    box-shadow: 0 6px 18px rgba(0,0,0,0.15);
    transition: max-height 0.3s ease-in-out, opacity 0.2s ease-in-out, padding 0.3s ease-in-out; 
}

/* ESTADO ABERTO: Menu desliza e aparece */
.has-dropdown.open .dropdown-menu {
    max-height: 300px;
    opacity: 1;
    padding: 10px 0;
    pointer-events: auto;
}

.dropdown-item {
    display: block;
    padding: 12px 20px;
    color: var(--color-dark) !important;
    text-decoration: none;
    font-size: 15px;
}

.dropdown-item:hover {
    background: #f5f5f5;
}


/* BOTÃO BUSCAR - Cor FIXA AZUL */

.btn-buscar-vagas {
    background: var(--color-primary);
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none;
    color: white !important;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background 0.3s;
}

.btn-buscar-vagas:hover {
    background: #0099cc;
}


/* ----------------------------------------------- */
/* RESPONSIVIDADE (MOBILE / TABLET) */
/* ----------------------------------------------- */

/* Ajustes gerais de padding e container */
@media (max-width: 1024px) {
    .container {
        padding-left: 20px;
        padding-right: 20px;
    }
}

/* Tablet (max-width: 900px) e Mobile (max-width: 768px) */
@media (max-width: 900px) {

    /* HEADER */
    .top-nav-carreiras {
        padding: 0px 20px; /* Ajuste o padding vertical */
        position: fixed; 
        
        /* CORREÇÃO: Força a transparência no mobile, permitindo o efeito de scroll */
        background-color: transparent !important;
        box-shadow: none !important;
    }
    
    .top-nav-carreiras.scrolled {
        /* Garante que, ao rolar, ele fique sólido e preto */
        background-color: var(--color-dark) !important;
        box-shadow: 0 2px 10px rgba(0,0,0,0.4);
    }
    
    .top-nav-carreiras .logo-img {
        /* Logo branco no estado transparente E no estado scrolled */
        filter: brightness(0) invert(1);
    }

    /* 1. BOTÃO BUSCAR VAGAS (Lupa Apenas) */
    .btn-buscar-vagas {
        padding: 0.6rem 0.8rem;
        font-size: 1.2rem;
        line-height: 1;
        min-width: unset;
        gap: 0;
    }
    
    /* Esconder o texto do botão Buscar Vagas */
    .btn-buscar-vagas .search-text {
        display: none;
    }


    /* 2. MENU HAMBURGER E NAVEGAÇÃO (SLIDE-IN MODERNO) */

    /* Oculta a navegação principal (desktop) e mostra o menu hambúrguer */
    .main-nav {
        display: block; /* Mantém o display para a transição */
        position: fixed;
        top: 0;
        right: 0;
        width: 80%; /* Largura do menu */
        max-width: 300px;
        height: 100vh;
        background-color: var(--color-dark); /* Fundo sólido do menu */
        box-shadow: -5px 0 15px rgba(0,0,0,0.3);
        z-index: 999;
        
        /* Estado inicial: Escondido fora da tela */
        transform: translateX(100%);
        transition: transform 0.4s ease-in-out;
        
        /* Adiciona flexbox para alinhar os itens internamente */
        display: flex; 
        flex-direction: column;
        padding-top: 5rem;
    }

    /* Estado VISÍVEL do menu slide-in */
    .main-nav.open {
        transform: translateX(0);
    }
    
    /* Estilo dos links no menu slide-in */
    .main-nav a {
        color: white !important;
        width: 100%;
        padding: 15px 25px; /* Padding interno */
        text-align: left;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        font-size: 1.1rem;
    }
    
    .main-nav .nav-item {
        width: 100%;
    }
    
    /* O dropdown menu no mobile deve ser expandido in-line */
    .dropdown-menu {
        position: static; 
        box-shadow: none;
        background-color: rgba(255, 255, 255, 0.1); /* Fundo um pouco diferente */
        min-width: auto;
        border-radius: 0;
        padding: 0; /* Remove padding vertical */
    }

    .dropdown-item {
        color: white !important;
        padding: 8px 35px; /* Recuo para sub-itens */
    }
    
    .dropdown-item:hover {
        background-color: rgba(255, 255, 255, 0.2);
    }
    
    /* Ícone Hamburger */
    .hamburger-menu {
        display: block; 
        color: white; 
    }


    /* HERO SECTION */
    .search-box {
        padding: 0.5rem;
        border-radius: 0.75rem;
        display: flex;
        gap: 0.75rem;
        width: 100% !important;
        margin-left: auto;
        margin-right: auto;
        flex-direction: row !important;
        justify-content: space-between;
    }

    .hero-container {
        height: auto; 
        padding-top: 100px;
        padding-bottom: 50px;
    }

    .hero-title {
        font-size: 2rem;
        margin-top: 2rem;
        margin-top: 9rem !important;
    }
    
    /* Aumenta o tamanho do input e do botão de busca */
    .search-input {
        padding: 1rem 1.25rem;
    }
    .search-btn {
        width: 40% !important;
        padding: 1rem 2rem;
    }


    /* CULTURE SECTION */
    
    .blob-background {
        position: absolute;
        width: 108%;
        height: 108%;
        background-color: var(--color-dark);
        border-top-right-radius: 150px;
        border-bottom-left-radius: 100px;
        left: -4% !important;
        top: -5%;
        z-index: 0;
        transform: rotate(3deg);
    }
    
    .comp-img-container img{
        width: 75% !important;
        height: 70% !important;
        object-fit: cover;
        border-radius: 1rem;
    }

    .img-top-right {
        top: 6%;
        right: -12% !important;
        width: 16rem;
        height: 12rem;
        transform: translateX(1rem);
    }

    .img-center {
        position: relative;
        right: -10% !important;
        margin-top: 4rem !important;
        z-index: 20;
        width: 20rem;
        height: 14rem;
        transform: rotate(-3deg);
        transition: transform 0.5s;
    }

    .img-bottom-left {
        bottom: -5% !important;
        right: 33% !important;
        width: 16rem;
        height: 12rem;
        transform: translateX(-1rem) translateY(1rem);
    }
    
    .culture-grid {
        flex-direction: column;
        gap: 2rem !important;
    }

    .visual-composition-wrapper {
        width: 100%;
        min-height: 400px;
    }

    /* Reduz o tamanho das imagens na composição visual */
    .img-center, .img-top-right, .img-bottom-left {
        width: 14rem;
        height: 10rem;
    }

    .img-center {
        right: 0;
    }

    .culture-text-content {
        width: 100%;
        padding: 0;
    }

    .action-buttons {
        flex-direction: column;
    }

    /* VAGAS SECTION */
    .cards-grid {
        grid-template-columns: 1fr; /* Uma coluna no mobile */
    }

    .culture-section{
        padding: 4rem 0 !important;
    }
}



@media (max-width: 376px) {
    .img-bottom-left {
        bottom: -5% !important;
        right: 24% !important;
}
}

/* Mobile Pequeno (max-width: 480px) */
@media (max-width: 480px) {
    .hero-title {
        font-size: 1.5rem;
    }
    
    .search-box {
        width: 95%;
        flex-direction: column;
    }
    
    .search-btn {
        width: 100%;
    }

    .section-title {
        font-size: 1.5rem;
    }
    
    .culture-section {
        padding: 3rem 0;
    }
}

/* ----------------------------------------------- */
/* ESTILIZAÇÃO PADRÃO (DESKTOP E BASE) */
/* ----------------------------------------------- */

.container {
    width: 100%;
    margin-right: auto;
    margin-left: auto;
    padding-right: 1rem;
    padding-left: 1rem;
}

@media (min-width: 640px) { .container { max-width: 640px; } }
@media (min-width: 768px) { .container { max-width: 768px; } }
@media (min-width: 1024px) { .container { max-width: 1024px; } }
@media (min-width: 1280px) { .container { max-width: 1280px; } }

/* SEÇÃO HERO */
.hero-section {
    background-color: var(--color-primary);
    color: white;
}

.hero-container {
    background-image: url('image/2148817096.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    max-width: 1920px;
    height: 600px;
}

.hero-banner::before {
    background-image: url('image/2148817096.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-title {
    font-size: 2.25rem;
    line-height: 2.5rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 1rem;
    margin-top: 15rem; 
}

@media (min-width: 768px) { .hero-title { font-size: 3rem; line-height: 1; } }

.highlight-dark { color: var(--color-light); }

.hero-subtitle {
    font-size: 1.25rem;
    text-align: center;
    margin-bottom: 2rem;
    font-weight: 300;
}

/* Busca */

.search-box {
    padding: 0.5rem;
    border-radius: 0.75rem;
    display: flex;
    gap: 0.75rem;
    width: 35%;
    margin-left: auto;
    margin-right: auto;
}

@media (min-width: 768px) { .search-box { flex-direction: row; } }

.search-input {
    width: 100%;
    padding: 0.75rem 1.25rem;
    color: var(--color-dark);
    border-radius: 0.5rem;
    border: 1px solid #e5e7eb;
    outline: none;
    transition: box-shadow 0.2s;
}

@media (min-width: 768px) { .search-input { flex: 1; } }

.search-input:focus {
    box-shadow: 0 0 0 2px var(--color-primary);
    border-color: transparent;
}

.search-btn {
    width: 100%;
    background-color: var(--color-primary);
    color: white;
    font-weight: 600;
    padding: 0.75rem 2rem;
    border-radius: 0.5rem;
    border: none;
    cursor: pointer;
    transition: background 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

@media (min-width: 768px) { .search-btn { width: auto; } }

.search-btn:hover { background-color: #374151; }

.hero-footer {
    margin-top: 2rem;
    text-align: center;
    font-size: 0.875rem;
    font-weight: 500;
}

.hero-footer a { color: white; text-decoration: none; }
.hero-footer a:hover { text-decoration: underline; }

/* SEÇÃO CULTURA */

.culture-section {
    background-color: white;
    padding: 5rem 0;
    overflow: hidden;
    position: relative;
}

.culture-container { max-width: 1280px; margin: 0 auto; padding: 0 1rem; }

.culture-grid {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4rem;
}

@media (min-width: 1024px) { .culture-grid { flex-direction: row; } }

.visual-composition-wrapper {
    width: 100%;
    position: relative;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (min-width: 1024px) { .visual-composition-wrapper { width: 50%; } }

.blob-background {
    position: absolute;
    width: 108%;
    height: 108%;
    background-color: var(--color-dark);
    border-top-right-radius: 150px;
    border-bottom-left-radius: 100px;
    left: 0%;
    top: -5%;
    z-index: 0;
    transform: rotate(3deg);
}

.comp-img-container { position: absolute; z-index: 10; }

.comp-img-container img {
    width: 90%;
    height: 85%;
    object-fit: cover;
    border-radius: 1rem;
}

.img-top-right {
    top: 6%;
    right: -6%;
    width: 16rem;
    height: 12rem;
    transform: translateX(1rem);
}

.img-top-right img {
    box-shadow: var(--shadow-xl);
    border: 4px solid white;
}

.img-bottom-left {
    bottom: 0;
    right: 52%;
    width: 16rem;
    height: 12rem;
    transform: translateX(-1rem) translateY(1rem);
}

.img-bottom-left img {
    box-shadow: var(--shadow-xl);
    border: 4px solid white;
}

.img-center {
    position: relative;
    right: -5%;
    margin-top: 2rem;
    z-index: 20;
    width: 20rem;
    height: 14rem;
    transform: rotate(-3deg);
    transition: transform 0.5s;
}

.img-center:hover { transform: rotate(0); }

.featured-img {
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    border: 4px solid var(--color-primary);
}

.dots-decoration {
    position: absolute;
    bottom: 2.5rem;
    right: 2.5rem;
    color: var(--color-primary);
    z-index: 30;
    opacity: 0.8;
}

/* TEXTO */

.culture-text-content {
    width: 100%;
    padding: 1rem;
    position: relative;
    z-index: 10;
}

@media (min-width: 1024px) {
    .culture-text-content {
        width: 50%;
        padding-left: 2rem;
    }
}

.badge-pill {
    display: inline-block;
    background-color: #ffedd5;
    color: var(--color-primary);
    padding: 0.25rem 1rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1.5rem;
}

.section-title {
    font-size: 2rem;
    font-weight: 800;
    color: var(--color-dark);
    line-height: 1.2;
    margin-bottom: 2rem;
}

@media (min-width: 768px) { .section-title { font-size: 2rem; } }

.highlight-underline {
    position: relative;
    display: inline-block;
    color: var(--color-primary);
}

.text-body {
    font-size: 1.125rem;
    color: var(--color-text-gray);
    line-height: 1.625;
}

.text-body p { margin-bottom: 1rem; }

.orange-text {
    color: var(--color-primary);
    font-weight: 500;
}

.action-buttons {
    margin-top: 2.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

@media (min-width: 640px) {
    .action-buttons {
        flex-direction: row;
    }
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 2rem;
    font-weight: bold;
    border-radius: 0.5rem;
    text-decoration: none;
    transition: all 0.2s;
}

.btn-primary {
    background-color: var(--color-dark);
    color: white;
}

.btn-primary:hover {
    background-color: #1f2937;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--color-dark);
    color: var(--color-dark);
}

.btn-outline:hover {
    background-color: var(--color-dark);
    color: white;
}

/* SEÇÃO VAGAS */

.vagas-section {
    padding: 3rem 0;
    padding-bottom: 8rem;
    background-color: var(--color-gray-soft);
}

.vagas-container {
    max-width: 1152px;
    margin: 0 auto;
    padding: 0 1rem;
}

.section-header-center {
    text-align: center;
    margin-bottom: 4rem;
}

.title-dark {
    font-size: 1.875rem;
    font-weight: bold;
    color: var(--color-dark);
    margin-bottom: 1rem;
}

@media (min-width: 768px) { .title-dark { font-size: 2.25rem; } }

.subtitle-gray {
    color: var(--color-text-gray);
    max-width: 42rem;
    margin: 0 auto;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

@media (min-width: 640px) and (max-width: 900px) {
    .cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 900px) {
    .cards-grid {
        grid-template-columns: 1fr;
    }
}

/* CARDS */

.job-card {
    background-color: white;
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: var(--shadow-lg);
    border-top: 4px solid var(--color-primary);
    transition: box-shadow 0.3s, transform 0.3s;
}

.job-card:hover {
    box-shadow: var(--shadow-xl);
    transform: translateY(-2px);
}

.icon-box {
    width: 3rem;
    height: 3rem;
    background-color: #efefef;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: var(--color-primary);
    transition: background 0.3s, color 0.3s;
}

.job-card:hover .icon-box {
    background-color: var(--color-primary);
    color: white;
}

.icon-box i { font-size: 1.25rem; }

.card-title {
    font-size: 1.25rem;
    font-weight: bold;
    margin-bottom: 0.75rem;
    color: var(--color-dark);
}

.card-desc {
    font-size: 0.875rem;
    color: var(--color-text-gray);
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.card-link {
    display: inline-flex;
    align-items: center;
    font-weight: bold;
    color: var(--color-primary);
    text-decoration: none;
    transition: gap 0.2s;
}

.card-link i { margin-left: 0.5rem; }

.card-link:hover {
    gap: 0.5rem;
}

/* ANIMAÇÕES */

.reveal-on-scroll {
    opacity: 0;
    transform: translateY(40px);
    transition: all 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.delay-200 { transition-delay: 200ms; }
.delay-300 { transition-delay: 300ms; }
.delay-400 { transition-delay: 400ms; }
.delay-600 { transition-delay: 600ms; }