/*
 * Ajustes proprios da versao .NET.
 * Ficam separados de site.css (gerado pelo Lovable) para que aquele arquivo
 * possa ser regerado sem perder estas regras.
 */

/* Ancoras (#servicos, #contato...) nao ficam escondidas atras do menu fixo. */
html {
    scroll-behavior: smooth;
}

[id] {
    scroll-margin-top: 6rem;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
}

/* Link "pular para o conteudo", visivel apenas com foco de teclado. */
.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 100;
    padding: .75rem 1.25rem;
    background: var(--brand-accent);
    color: #fff;
    font-weight: 600;
    border-radius: 0 0 .75rem 0;
}

.skip-link:focus {
    left: 0;
}

/* Foco visivel e consistente em toda a navegacao por teclado. */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
    outline: 2px solid var(--brand-accent);
    outline-offset: 2px;
}

/* Estado de erro dos campos de formulario. */
.input-validation-error {
    border-color: #ef4444 !important;
}

.field-validation-error {
    display: block;
}

/* Area de upload do curriculo quando um arquivo e arrastado por cima. */
[data-upload].is-dragging {
    border-color: var(--brand-accent);
    background-color: rgb(249 115 22 / 0.08);
}

/* Botao de envio enquanto o formulario esta sendo processado. */
button[data-enviando] {
    opacity: .6;
    pointer-events: none;
}

/*
 * Logo do rodape. Para aumentar ou diminuir, mude apenas o "height" abaixo.
 * Referencia: 5rem = 80px, 7rem = 112px, 9rem = 144px.
 */
.footer-logo {
    height: 8rem;
    width: auto;
}

/* Em telas pequenas fica um pouco menor para nao dominar o rodape. */
@media (max-width: 767px) {
    .footer-logo {
        height: 6rem;
    }
}

/*
 * Logos coloridas das redes sociais no rodape (LinkedIn e Instagram).
 * Para aumentar ou diminuir, mude apenas o "--social-icon-tamanho".
 */
.social-icon {
    --social-icon-tamanho: 1.75rem;
    width: var(--social-icon-tamanho);
    height: var(--social-icon-tamanho);
    display: block;
}

/* As cores sao da marca, entao o hover usa transparencia em vez de trocar de cor. */
.social-link {
    display: inline-flex;
    transition: opacity .15s ease-in-out;
}

.social-link:hover {
    opacity: .7;
}

/* =========================================================================
   Botao "Trabalhe Conosco" do menu
   ========================================================================= */
.btn-trabalhe {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: .625rem;
    overflow: hidden;
    padding: .625rem .75rem .625rem 1.25rem;
    border-radius: 9999px;
    background: linear-gradient(135deg, var(--brand-accent) 0%, var(--brand-accent-soft) 100%);
    color: #fff;
    font-size: .875rem;
    font-weight: 700;
    letter-spacing: .01em;
    white-space: nowrap;
    box-shadow:
        0 10px 26px -12px rgb(234 88 12 / .85),
        inset 0 1px 0 rgb(255 255 255 / .28);
    transition: transform .3s ease, box-shadow .3s ease;
}

.btn-trabalhe:hover {
    transform: translateY(-2px);
    box-shadow:
        0 18px 38px -12px rgb(234 88 12 / .95),
        inset 0 1px 0 rgb(255 255 255 / .35);
}

.btn-trabalhe:active {
    transform: translateY(0);
}

/* Halo suave que acende ao redor do botao no hover. */
.btn-trabalhe::before {
    content: "";
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(135deg, rgb(255 255 255 / .55), transparent 55%);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    mask-composite: exclude;
    opacity: .7;
    pointer-events: none;
}

/* Reflexo que atravessa o botao da esquerda para a direita no hover. */
.btn-trabalhe-brilho {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 45%;
    transform: translateX(-160%) skewX(-20deg);
    background: linear-gradient(90deg, transparent, rgb(255 255 255 / .45), transparent);
    transition: transform .65s cubic-bezier(.4, 0, .2, 1);
    pointer-events: none;
}

.btn-trabalhe:hover .btn-trabalhe-brilho {
    transform: translateX(320%) skewX(-20deg);
}

/* A seta fica dentro de um disco translucido que avanca no hover. */
.btn-trabalhe-seta {
    position: relative;
    display: grid;
    place-items: center;
    width: 1.625rem;
    height: 1.625rem;
    flex: none;
    border-radius: 9999px;
    background: rgb(255 255 255 / .22);
    transition: transform .3s ease, background-color .3s ease;
}

.btn-trabalhe:hover .btn-trabalhe-seta {
    transform: translateX(3px);
    background: rgb(255 255 255 / .34);
}

.btn-trabalhe > span:not(.btn-trabalhe-brilho) {
    position: relative;
}

@media (prefers-reduced-motion: reduce) {
    .btn-trabalhe,
    .btn-trabalhe-brilho,
    .btn-trabalhe-seta {
        transition: none;
    }

    .btn-trabalhe:hover {
        transform: none;
    }

    .btn-trabalhe:hover .btn-trabalhe-brilho {
        transform: translateX(-160%) skewX(-20deg);
    }
}

/* =========================================================================
   Seletor de idioma (PT / EN / ES)
   ========================================================================= */
.idiomas {
    display: inline-flex;
    align-items: center;
    gap: .125rem;
    padding: .1875rem;
    border: 1px solid rgb(0 0 0 / .08);
    border-radius: 9999px;
    background: rgb(0 0 0 / .03);
}

.idioma-opcao {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.25rem;
    padding: .3125rem .5rem;
    border-radius: 9999px;
    color: var(--brand-muted);
    font-size: .6875rem;
    font-weight: 700;
    letter-spacing: .08em;
    line-height: 1;
    transition: color .2s ease, background-color .2s ease;
}

.idioma-opcao:hover {
    color: var(--brand-accent);
    background: rgb(255 255 255 / .9);
}

.idioma-opcao[aria-current="true"] {
    background: var(--brand-accent);
    color: #fff;
    box-shadow: 0 6px 16px -8px rgb(234 88 12 / .9);
}

/* No menu mobile o seletor ocupa a largura toda. */
.idiomas-mobile {
    display: flex;
    width: 100%;
}

.idiomas-mobile .idioma-opcao {
    flex: 1;
    padding-top: .5rem;
    padding-bottom: .5rem;
    font-size: .75rem;
}

/* =========================================================================
   Popup de confirmacao dos formularios
   ========================================================================= */
.popup {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: grid;
    place-items: center;
    padding: 1.5rem;
}

.popup[hidden] {
    display: none;
}

.popup-fundo {
    position: absolute;
    inset: 0;
    background: rgb(17 17 17 / .55);
    backdrop-filter: blur(4px);
    animation: popup-fundo-entra .25s ease-out;
}

.popup-caixa {
    position: relative;
    width: 100%;
    max-width: 26rem;
    padding: 2.5rem 2rem 2rem;
    border-radius: 1.5rem;
    background: #fff;
    text-align: center;
    box-shadow: 0 32px 80px -24px rgb(17 17 17 / .45);
    animation: popup-caixa-entra .32s cubic-bezier(.16, 1, .3, 1);
}

/* Disco com o icone. O anel externo pulsa uma vez ao abrir. */
.popup-icone {
    position: relative;
    display: grid;
    place-items: center;
    width: 4rem;
    height: 4rem;
    margin: 0 auto 1.25rem;
    border-radius: 9999px;
    background: linear-gradient(135deg, var(--brand-accent), var(--brand-accent-soft));
    color: #fff;
    box-shadow: 0 14px 30px -10px rgb(234 88 12 / .8);
}

.popup-icone::after {
    content: "";
    position: absolute;
    inset: -.5rem;
    border-radius: 9999px;
    border: 2px solid var(--brand-accent);
    opacity: 0;
    animation: popup-anel .8s ease-out .15s;
}

/* Variante de falha: cinza, sem festa. */
.popup-caixa[data-popup-tipo="falha"] .popup-icone {
    background: linear-gradient(135deg, #b91c1c, #ef4444);
    box-shadow: 0 14px 30px -10px rgb(185 28 28 / .6);
}

.popup-caixa[data-popup-tipo="falha"] .popup-icone::after {
    display: none;
}

.popup-titulo {
    margin-bottom: .5rem;
    font-family: "Plus Jakarta Sans", ui-sans-serif, system-ui, sans-serif;
    font-size: 1.375rem;
    font-weight: 800;
    color: var(--brand-primary);
}

.popup-texto {
    margin-bottom: 1.75rem;
    font-size: .9375rem;
    line-height: 1.6;
    color: var(--brand-muted);
}

.popup-acao {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: .8125rem 1.5rem;
    border: 0;
    border-radius: 9999px;
    background: var(--brand-accent);
    color: #fff;
    font-size: .875rem;
    font-weight: 700;
    cursor: pointer;
    transition: background-color .2s ease;
}

.popup-acao:hover {
    background: var(--brand-primary);
}

/* Botao "x" no canto. */
.popup-x {
    position: absolute;
    top: .875rem;
    right: .875rem;
    display: grid;
    place-items: center;
    width: 2rem;
    height: 2rem;
    border: 0;
    border-radius: 9999px;
    background: transparent;
    color: var(--brand-muted);
    cursor: pointer;
    transition: background-color .2s ease, color .2s ease;
}

.popup-x:hover {
    background: var(--brand-surface);
    color: var(--brand-primary);
}

@keyframes popup-fundo-entra {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes popup-caixa-entra {
    from { opacity: 0; transform: translateY(16px) scale(.96); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes popup-anel {
    from { opacity: .7; transform: scale(.85); }
    to { opacity: 0; transform: scale(1.35); }
}

@media (prefers-reduced-motion: reduce) {
    .popup-fundo,
    .popup-caixa,
    .popup-icone::after {
        animation: none;
    }
}

/* =========================================================================
   Opcoes dos combos (select)
   =========================================================================
   A lista aberta do select e desenhada pelo sistema operacional, sempre sobre
   fundo claro, mas as <option> herdam a cor do proprio <select>. No formulario
   "Trabalhe Conosco", que e escuro e usa texto branco, isso deixava os itens
   brancos no branco — ilegiveis. Fixamos a cor das opcoes para nao depender
   do que o select herdou. */
select option {
    background-color: #fff;
    color: var(--brand-primary);
}

/* A opcao vazia ("Selecione...") fica com a mesma cor de dica dos placeholders. */
select option[value=""] {
    color: var(--brand-muted);
}
