/* Custom Premium Styles - Weblium Flat & Geometric Aesthetic */

html {
    scroll-behavior: smooth;
}

/* Evita overflow horizontal / "vazamento" lateral no mobile.
   Usamos overflow-x: clip (não overflow-x: hidden) porque "hidden" cria um
   container de rolagem e quebraria o position: sticky do navbar. "clip" corta
   o excesso sem criar esse container, mantendo o navbar fixo no topo. */
html,
body {
    overflow-x: clip;
    max-width: 100%;
}

body {
    -webkit-font-smoothing: antialiased;
    width: 100%;
}

/* Scrollbar Clean */
body::-webkit-scrollbar {
    width: 8px;
}
body::-webkit-scrollbar-track {
    background: #F5F5F5; 
}
body::-webkit-scrollbar-thumb {
    background: #212121; 
}
body::-webkit-scrollbar-thumb:hover {
    background: #EBBC34; 
}

/* Diagonals */
.diagonal-right {
    clip-path: polygon(0 0, 100% 0, 75% 100%, 0% 100%);
}
@media (max-width: 1024px) {
    .diagonal-right {
        clip-path: polygon(0 0, 100% 0, 100% 50%, 0% 65%);
    }
}

.diagonal-left {
    clip-path: polygon(15% 0, 100% 0, 100% 100%, 0% 100%);
}
@media (max-width: 1024px) {
    .diagonal-left {
        clip-path: polygon(0 0, 100% 0, 100% 100%, 0% 100%);
    }
}

/* Keyframes */
.animate-float {
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-12px); }
    100% { transform: translateY(0px); }
}

/* Reveal Animations
   As revelações são feitas pelo ScrollReveal (script.js). Aqui apenas
   pré-ocultamos os elementos enquanto o JS não inicializa, evitando o
   "flash" de conteúdo. Se o JS falhar/estiver desativado, removemos a
   classe .sr (ver script.js) e tudo permanece visível. */
.sr .slide-up,
.sr .slide-right,
.sr .slide-left,
.sr .fade-in {
    visibility: hidden;
}

/* ============================================================
   Marquee de logos de clientes (prova social)
   ============================================================ */
.aw-marquee {
    width: 100%;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.aw-marquee-track {
    display: flex;
    align-items: center;
    gap: 64px;
    width: max-content;
    animation: aw-marquee 40s linear infinite;
}
.aw-marquee:hover .aw-marquee-track {
    animation-play-state: paused;
}
.aw-marquee-track img {
    height: 56px;
    width: auto;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.55;
    transition: filter 0.3s, opacity 0.3s;
}
.aw-marquee-track img:hover {
    filter: grayscale(0%);
    opacity: 1;
}
@keyframes aw-marquee {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

/* ============================================================
   Formulário de captação de lead
   ============================================================ */
.aw-input {
    width: 100%;
    border: 2px solid #e5e5e5;
    background: #fff;
    padding: 12px 14px;
    font-size: 0.95rem;
    font-weight: 500;
    color: #212121;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.aw-input::placeholder { color: #b0b0b0; font-weight: 400; }
.aw-input:focus {
    outline: none;
    border-color: #ffae00;
    box-shadow: 0 0 0 3px rgba(255, 174, 0, 0.18);
}

/* intl-tel-input: ocupa toda a largura e combina com o estilo do form */
.iti {
    width: 100%;
    display: block;
}
.iti .aw-input {
    width: 100%;
}
.iti__selected-flag {
    border-radius: 0;
}
.iti--separate-dial-code .iti__selected-flag {
    background-color: #f5f5f5;
}

/* ============================================================
   Botão flutuante de WhatsApp
   ============================================================ */
.aw-whatsapp-float {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 60;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #25d366;
    color: #fff;
    font-size: 34px;
    border-radius: 50%;
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.45);
    transition: transform 0.25s, box-shadow 0.25s;
    animation: aw-pulse 2.4s ease-in-out infinite;
}
.aw-whatsapp-float:hover {
    transform: scale(1.08);
    box-shadow: 0 10px 30px rgba(37, 211, 102, 0.6);
}
@keyframes aw-pulse {
    0%   { box-shadow: 0 8px 24px rgba(37, 211, 102, 0.45), 0 0 0 0 rgba(37, 211, 102, 0.5); }
    70%  { box-shadow: 0 8px 24px rgba(37, 211, 102, 0.45), 0 0 0 16px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 8px 24px rgba(37, 211, 102, 0.45), 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* ============================================================
   Micro-interações (engajamento & conversão)
   ============================================================ */
/* Seta dos botões "desliza" no hover */
.ph-arrow-right { display: inline-block; transition: transform 0.25s ease; }
a:hover .ph-arrow-right,
button:hover .ph-arrow-right { transform: translateX(5px); }

/* Cards de Insights: elevação suave no hover */
#insights article {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    will-change: transform;
}
#insights article:hover {
    transform: translateY(-8px);
    box-shadow: 0 22px 44px rgba(33, 33, 33, 0.14);
}

/* Cards de Depoimentos: realce no hover */
#depoimentos figure {
    transition: transform 0.3s ease, background-color 0.3s ease;
}
#depoimentos figure:hover {
    transform: translateY(-6px);
    background-color: #323232;
}

/* CTA primário: brilho/realce no hover */
.aw-cta-glow { transition: transform 0.25s ease, box-shadow 0.25s ease; }
.aw-cta-glow:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 12px 30px rgba(33, 33, 33, 0.35);
}

/* Cursor do Typed.js no hero */
#typed-hero .typed-cursor,
.typed-cursor {
    color: #212121;
    font-weight: 900;
    opacity: 1;
    animation: aw-blink 0.9s infinite;
}
@keyframes aw-blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

/* Seletor de idioma (top bar) */
.aw-lang-btn {
    background: none;
    border: none;
    font: inherit;
    font-weight: 700;
    letter-spacing: 0.03em;
    color: #9ca3af;
    padding: 2px 4px;
    cursor: pointer;
    transition: color 0.2s ease;
}
.aw-lang-btn:hover {
    color: #fff;
}
.aw-lang-btn.active {
    color: #ffae00;
}

/* ============================================================
   Vagas — cards
   ============================================================ */
.job-card {
    background: #fff;
    border: 1px solid #e5e5e5;
    border-left: 5px solid #ffae00;
    padding: 28px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.job-card:hover,
.job-card:focus-visible {
    transform: translateY(-6px);
    box-shadow: 0 18px 40px rgba(33, 33, 33, 0.12);
    border-left-color: #b88917;
    outline: none;
}
.job-card-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.job-tag {
    background: #fff7e6;
    color: #b88917;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 4px 10px;
    border-radius: 99px;
}
.job-card-title {
    font-size: 1.25rem;
    font-weight: 900;
    text-transform: uppercase;
    color: #212121;
    line-height: 1.2;
    margin-bottom: 12px;
}
.job-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    color: #757575;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 14px;
}
.job-card-meta span { display: inline-flex; align-items: center; gap: 5px; }
.job-card-meta i { color: #b88917; }
.job-card-summary {
    color: #6b6b6b;
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 18px;
    flex: 1;
}
.job-card-cta {
    color: #212121;
    font-weight: 900;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.04em;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border-bottom: 2px solid #ffae00;
    align-self: flex-start;
    padding-bottom: 2px;
}

/* ============================================================
   Modal genérico (vaga / candidatura)
   ============================================================ */
.aw-modal {
    position: fixed;
    inset: 0;
    z-index: 80;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 24px 16px;
    overflow-y: auto;
}
.aw-modal.hidden { display: none; }
.aw-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(20, 20, 20, 0.7);
    backdrop-filter: blur(2px);
}
.aw-modal-card {
    position: relative;
    z-index: 1;
    background: #fff;
    width: 100%;
    max-width: 720px;
    margin: auto;
    padding: 40px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4);
    animation: aw-modal-in 0.3s ease;
}
@keyframes aw-modal-in {
    from { opacity: 0; transform: translateY(24px); }
    to { opacity: 1; transform: translateY(0); }
}
.aw-modal-close {
    position: absolute;
    top: 14px;
    right: 18px;
    background: none;
    border: none;
    font-size: 32px;
    line-height: 1;
    color: #757575;
    cursor: pointer;
    transition: color 0.2s;
}
.aw-modal-close:hover { color: #212121; }

/* Detalhes da vaga */
.job-detail-head { border-bottom: 3px solid #ffae00; padding-bottom: 18px; margin-bottom: 22px; }
.job-detail-title {
    font-size: 1.8rem;
    font-weight: 900;
    text-transform: uppercase;
    color: #212121;
    line-height: 1.15;
    margin-top: 10px;
}
.job-detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 14px;
    margin-bottom: 26px;
}
.job-detail-item { display: flex; align-items: center; gap: 10px; }
.job-detail-item i { color: #b88917; font-size: 22px; }
.job-detail-item span { display: block; font-size: 11px; text-transform: uppercase; color: #999; font-weight: 700; }
.job-detail-item strong { color: #212121; font-size: 0.95rem; }
.job-detail-block { margin-bottom: 22px; }
.job-detail-block h4 {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #b88917;
    font-weight: 800;
    margin-bottom: 8px;
}
.job-detail-block p { color: #555; line-height: 1.6; }

/* Atributos/flags da vaga */
.job-flags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.job-flag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: #fff;
    border: 1.5px solid #b88917;
    color: #8a6a12;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    padding: 3px 10px;
    border-radius: 99px;
}
.job-flag::before { content: "\2713"; font-weight: 900; }

/* Conteúdo rich text (editor) renderizado — restaura marcadores/títulos
   que o reset do Tailwind remove */
.job-rich { color: #555; line-height: 1.65; }
.job-rich p { margin: 7px 0; }
.job-rich ul { list-style: disc; padding-left: 22px; margin: 8px 0; }
.job-rich ol { list-style: decimal; padding-left: 22px; margin: 8px 0; }
.job-rich li { margin: 4px 0; }
.job-rich h2, .job-rich h3, .job-rich h4 { font-weight: 800; color: #212121; margin: 12px 0 6px; line-height: 1.25; }
.job-rich h2 { font-size: 1.2rem; }
.job-rich h3 { font-size: 1.05rem; }
.job-rich a { color: #b88917; text-decoration: underline; font-weight: 600; }
.job-rich strong, .job-rich b { font-weight: 700; color: #333; }
.job-rich blockquote { border-left: 3px solid #ffae00; padding-left: 14px; color: #777; margin: 10px 0; font-style: italic; }

/* Formulário de candidatura (dentro do modal) */
.job-apply {
    background: #faf7f0;
    border: 1px solid #f0e2c0;
    padding: 24px;
    margin-top: 8px;
}
.job-apply-title {
    font-size: 1.1rem;
    font-weight: 900;
    text-transform: uppercase;
    color: #212121;
    margin-bottom: 16px;
}
.job-apply-row { margin-bottom: 14px; }
.job-apply-row.two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.job-apply label {
    display: block;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    color: #212121;
}
.job-apply label span { color: #b88917; }
.job-apply input,
.job-apply textarea {
    width: 100%;
    margin-top: 6px;
    border: 2px solid #e5e5e5;
    background: #fff;
    padding: 10px 12px;
    font-size: 0.95rem;
    font-family: inherit;
    color: #212121;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.job-apply input:focus,
.job-apply textarea:focus {
    outline: none;
    border-color: #ffae00;
    box-shadow: 0 0 0 3px rgba(255, 174, 0, 0.18);
}
.job-apply-btn {
    width: 100%;
    background: #212121;
    color: #fff;
    padding: 14px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-size: 0.85rem;
    cursor: pointer;
    border: none;
    transition: background 0.2s;
}
.job-apply-btn:hover { background: #000; }
.job-apply-btn:disabled { opacity: 0.6; cursor: default; }
.job-apply-feedback { margin-top: 10px; font-size: 0.85rem; font-weight: 700; color: #c0392b; text-align: center; }
.job-apply-success { text-align: center; padding: 16px; }
.job-apply-success i { font-size: 56px; color: #b88917; }
.job-apply-success h4 { font-size: 1.2rem; font-weight: 900; text-transform: uppercase; color: #212121; margin: 8px 0; }
.job-apply-success p { color: #757575; font-size: 0.9rem; }

@media (max-width: 640px) {
    .aw-modal-card { padding: 28px 20px; }
    .job-apply-row.two { grid-template-columns: 1fr; }
}

/* Respeita usuários que preferem menos movimento */
@media (prefers-reduced-motion: reduce) {
    .aw-marquee-track, .aw-whatsapp-float, .animate-float,
    .typed-cursor { animation: none; }
    .ph-arrow-right, #insights article, #depoimentos figure,
    .job-card { transition: none; }
    .aw-modal-card { animation: none; }
}
