/* ============================================================
   ADVERITAS - Landing extras (Hotfix 2)
   ============================================================ */

/* Banner ético — agora em fluxo normal, fixed no topo */
.ethics-banner {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1100;
    background: linear-gradient(90deg, #B58B30, #D4A744);
    color: #0B2447;
    font-size: .85rem;
    line-height: 1.4;
    padding: 8px 0;
    box-shadow: 0 1px 3px rgba(0,0,0,.06);
}
.ethics-banner__inner {
    display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
    justify-content: center;
}
.ethics-banner__icon { font-size: 1rem; }
.ethics-banner__text { opacity: .85; }
.ethics-banner__close {
    background: transparent; border: 0; cursor: pointer; color: #0B2447;
    font-size: 1.4rem; line-height: 1; padding: 0 4px; margin-left: 6px;
    font-weight: 700;
}

/* Quando o banner ético está presente, empurra o header e o conteúdo */
body.has-ethics-banner .site-header,
body.has-ethics-banner .site-header--floating {
    top: 38px !important;
}
body.has-ethics-banner.page--landing .site-main { padding-top: 38px; }
body.has-ethics-banner.page--public  .site-main { padding-top: 38px; }

@media (max-width: 600px) {
    .ethics-banner { font-size: .78rem; padding: 6px 0; }
    .ethics-banner__text { display: none; }     /* tira frase secundária para caber */
    body.has-ethics-banner .site-header,
    body.has-ethics-banner .site-header--floating { top: 34px !important; }
    body.has-ethics-banner.page--landing .site-main { padding-top: 34px; }
}

/* Skip link a11y */
.skip-link {
    position: absolute; left: -9999px; top: 8px;
    background: #B58B30; color: #fff; padding: 8px 14px;
    border-radius: 6px; font-weight: 600; z-index: 1200;
    text-decoration: none;
}
.skip-link:focus { left: 12px; outline: 3px solid #fff; }

/* ===== Prova social (hero) ===== */
.proof-bar {
    display: flex; gap: 22px; justify-content: center; flex-wrap: wrap;
    margin: 28px 0; padding: 14px 18px;
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 14px;
    color: #fff;
}
.proof-bar__item { text-align: center; }
.proof-bar__num  { font-size: 1.6rem; font-weight: 700; color: #B58B30; line-height: 1; }
.proof-bar__lbl  { font-size: .82rem; opacity: .85; display: block; margin-top: 2px; }

/* Depoimentos */
.testimonials { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit,minmax(260px,1fr)); margin-top: 32px; }
.testimonial {
    background: #fff; border: 1px solid #e8e8e8; border-radius: 14px;
    padding: 20px; box-shadow: 0 4px 14px rgba(0,0,0,.04);
}
.testimonial__quote { color: #333; line-height: 1.55; font-size: .95rem; margin: 0 0 14px; }
.testimonial__head  { display: flex; align-items: center; gap: 10px; }
.testimonial__avatar { width: 40px; height: 40px; border-radius: 50%; background: #0B2447; color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: .85rem; }
.testimonial__name  { font-weight: 600; color: #0B2447; }
.testimonial__oab   { font-size: .78rem; color: #888; display: block; }

/* ===== Comparativo Adveritas x LinkedIn ===== */
.compare {
    margin: 60px 0;
    background: #f8f9fb; padding: 36px 24px; border-radius: 16px;
}
.compare h2 { text-align: center; margin: 0 0 24px; }
.compare__table {
    max-width: 720px; margin: 0 auto; background: #fff;
    border: 1px solid #eee; border-radius: 12px; overflow: hidden;
}
.compare__row {
    display: grid; grid-template-columns: 2fr 1fr 1fr;
    border-bottom: 1px solid #f0f0f0;
}
.compare__row:last-child { border-bottom: 0; }
.compare__row > div { padding: 14px 18px; line-height: 1.5; }
.compare__row--head { background: #0B2447; color: #fff; font-weight: 700; }
.compare__row--head .compare__col--us { background: #B58B30; }
.compare__col--us  { background: #fff7ec; font-weight: 600; color: #0B2447; }
.compare__col--them { color: #888; }
.compare__check { color: #2E7D32; font-weight: 700; }
.compare__cross { color: #B23A48; font-weight: 700; }

/* ===== FAQ ===== */
.faq-section { margin: 60px 0; }
.faq-section h2 { text-align: center; margin: 0 0 24px; }
.faq-list { max-width: 760px; margin: 0 auto; display: grid; gap: 8px; }
.faq-item {
    background: #fff; border: 1px solid #eee; border-radius: 10px;
    overflow: hidden;
}
.faq-item__q {
    padding: 16px 18px; cursor: pointer; user-select: none;
    display: flex; justify-content: space-between; align-items: center;
    font-weight: 600; color: #0B2447;
    background: transparent; border: 0; width: 100%; text-align: left; font-size: 1rem;
}
.faq-item__q::after { content: '+'; font-size: 1.4rem; color: #B58B30; transition: transform .2s; margin-left: 12px; }
.faq-item.is-open .faq-item__q::after { transform: rotate(45deg); }
.faq-item__a {
    padding: 0 18px; max-height: 0; overflow: hidden;
    transition: max-height .25s ease, padding .25s ease;
    color: #444; line-height: 1.6;
}
.faq-item.is-open .faq-item__a { padding: 0 18px 16px; max-height: 800px; }

/* AOS-lite */
[data-aos] { opacity: 0; transform: translateY(18px); transition: opacity .55s ease, transform .55s ease; }
[data-aos].is-visible { opacity: 1; transform: none; }
[data-aos="fade-left"]  { transform: translateX(-18px); }
[data-aos="fade-right"] { transform: translateX(18px); }
[data-aos="zoom-in"]    { transform: scale(.96); }
[data-aos].is-visible[data-aos="fade-left"],
[data-aos].is-visible[data-aos="fade-right"],
[data-aos].is-visible[data-aos="zoom-in"] { transform: none; }

/* ===== Página /como-funciona ===== */
.howit { display: grid; gap: 22px; grid-template-columns: repeat(auto-fit,minmax(220px,1fr)); margin: 40px 0; }
.howit-step {
    background: #fff; border: 1px solid #eee; border-radius: 14px;
    padding: 24px; text-align: center;
}
.howit-step__num {
    width: 44px; height: 44px; border-radius: 50%;
    background: linear-gradient(135deg,#0B2447,#B58B30);
    color: #fff; display: inline-flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 1.2rem; margin-bottom: 14px;
}

/* ===== CTA primary do header SEMPRE visível (corrige modo escuro) ===== */
.btn--cta-register, .btn--cta-register:hover, .btn--cta-register:focus {
    background: #B58B30 !important;
    color: #0B2447 !important;
    border-color: #B58B30 !important;
    font-weight: 700;
}
body.is-dark .btn--cta-register {
    background: #fff !important;
    color: #0B2447 !important;
    border-color: #fff !important;
}
