/* ==========================================================================
   Rdash: componentes públicos compartilhados (home e páginas de exemplo)
   Menu, faixa de demonstração, chamado final, rodapé, WhatsApp flutuante,
   botões e a forma-assinatura da marca.

   Tudo usa o prefixo rd- para não colidir com o CSS dos painéis de demo.
   Linguagem visual: docs/Identidade-Visual.pdf (blocos de cor sólida,
   dois cantos opostos cortados a 45°, ícones em pixel art).
   ========================================================================== */

:root {
    --rd-graphite: #1B2C30;
    --rd-graphite-deep: #122125;
    --rd-mint: #85E0BE;
    --rd-blue: #2E27F3;
    --rd-lime: #C7FF00;
    --rd-grey: #6A6E79;
    --rd-light: #F5F5F5;
    --rd-white: #FFFFFF;
    --rd-on-dark: #F5F5F5;
    --rd-on-dark-soft: rgba(245, 245, 245, 0.74);
    --rd-line-dark: rgba(245, 245, 245, 0.14);
    --rd-ease: cubic-bezier(0.2, 0, 0, 1);
    --rd-font: 'Sora', system-ui, -apple-system, sans-serif;
}

.rd-nav, .rd-nav *, .rd-demo-bar, .rd-demo-bar *, .rd-cta, .rd-cta *,
.rd-footer, .rd-footer *, .rd-wa, .rd-btn, .rd-btn * { box-sizing: border-box; }

/* Trava a rolagem lateral em todas as páginas públicas.
   "overflow-x: hidden" no body só esconde a barra: a página ainda pode ser
   deslocada para o lado (gesto no trackpad, foco, DevTools) quando algum
   elemento decorativo passa da borda. "clip" corta sem criar área rolável. */
@supports (overflow-x: clip) {
    html body { overflow-x: clip; }
}

.rd-container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* Forma-assinatura: cantos superior-esquerdo e inferior-direito cortados */
.rd-cut {
    --cut: 26px;
    --r: 18px;
    border-radius: 0 var(--r) 0 var(--r);
    clip-path: polygon(var(--cut) 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%, 0 var(--cut));
}
.rd-cut--sm { --cut: 10px; --r: 8px; }
.rd-cut--lg { --cut: 40px; --r: 26px; }

.rd-px { width: 24px; height: 24px; shape-rendering: crispEdges; flex: 0 0 auto; display: block; }

/* ---------- Botões ---------- */
.rd-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 17px 26px;
    font-family: var(--rd-font);
    font-size: 16px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.01em;
    text-decoration: none;
    cursor: pointer;
    border: 0;
    white-space: nowrap;
    transition: background 160ms var(--rd-ease), color 160ms var(--rd-ease), transform 160ms var(--rd-ease);
}
.rd-btn svg { width: 20px; height: 20px; flex: 0 0 auto; transition: transform 160ms var(--rd-ease); }
.rd-btn:hover svg { transform: translateX(3px); }
.rd-btn:active { transform: translateY(1px); }
.rd-btn:focus-visible { outline: 3px solid var(--rd-graphite); outline-offset: -4px; }
.rd-btn--lime { background: var(--rd-lime); color: var(--rd-graphite); }
.rd-btn--lime:hover { background: #D8FF3D; color: var(--rd-graphite); }
.rd-btn--dark { background: var(--rd-graphite); color: var(--rd-on-dark); }
.rd-btn--dark:hover { background: var(--rd-graphite-deep); color: var(--rd-on-dark); }
.rd-btn--dark:focus-visible { outline-color: var(--rd-lime); }
.rd-btn--small { padding: 12px 18px; font-size: 15px; }

.rd-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    text-decoration: none;
    color: inherit;
    border-bottom: 2px solid currentColor;
    padding-bottom: 2px;
}
.rd-link svg { width: 16px; height: 16px; transition: transform 160ms var(--rd-ease); }
.rd-link:hover svg { transform: translateX(3px); }

/* ---------- Menu ---------- */
.rd-nav {
    position: sticky;
    top: 0;
    z-index: 80;
    background: var(--rd-graphite);
    color: var(--rd-on-dark);
    border-bottom: 1px solid var(--rd-line-dark);
    font-family: var(--rd-font);
    line-height: 1.5;
}
:where(.rd-nav) a { color: inherit; }   /* :where = especificidade zero, para não vencer a cor dos botões */
.rd-nav :focus-visible { outline: 3px solid var(--rd-lime); outline-offset: 2px; }
.rd-nav__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 74px; }
.rd-nav__logo { display: block; }
.rd-nav__logo img { height: 28px; width: auto; display: block; }
.rd-nav__links { display: flex; align-items: center; gap: 30px; list-style: none; margin: 0; padding: 0; }
.rd-nav__links a, .rd-drop__trigger {
    font: inherit;
    font-size: 15px;
    font-weight: 500;
    color: var(--rd-on-dark-soft);
    text-decoration: none;
    background: none;
    border: 0;
    padding: 6px 0;
    cursor: pointer;
    transition: color 160ms var(--rd-ease);
}
.rd-nav__links a:hover, .rd-drop__trigger:hover, .rd-drop.is-open .rd-drop__trigger { color: var(--rd-lime); }
.rd-drop { position: relative; }
.rd-drop__trigger { display: inline-flex; align-items: center; gap: 6px; }
.rd-drop__trigger svg { width: 12px; height: 12px; transition: transform 160ms var(--rd-ease); }
.rd-drop.is-open .rd-drop__trigger svg { transform: rotate(180deg); }
.rd-drop__panel {
    position: absolute;
    top: calc(100% + 14px);
    left: -18px;
    width: 330px;
    background: var(--rd-graphite-deep);
    padding: 10px;
    display: none;
}
/* Ponte invisível no item pai (o painel tem clip-path e cortaria um pseudo-elemento dele) */
.rd-drop.is-open::after { content: ''; position: absolute; left: -18px; width: 330px; top: 100%; height: 20px; }
.rd-drop.is-open .rd-drop__panel { display: block; }
.rd-drop__panel a { display: block; padding: 11px 14px; color: var(--rd-on-dark); }
.rd-drop__panel a:hover { background: rgba(245, 245, 245, 0.06); color: var(--rd-on-dark); }
.rd-drop__panel a[aria-current="page"] { background: rgba(199, 255, 0, 0.1); }
.rd-drop__panel a[aria-current="page"] strong { color: var(--rd-lime); }
.rd-drop__panel strong { display: block; font-size: 15px; font-weight: 600; }
.rd-drop__panel span { display: block; font-size: 13px; color: var(--rd-on-dark-soft); line-height: 1.4; }
.rd-nav__actions { display: flex; align-items: center; gap: 22px; }
.rd-nav__client { font-size: 14px; font-weight: 500; color: var(--rd-on-dark-soft) !important; text-decoration: none; }
.rd-nav__client:hover { color: var(--rd-on-dark) !important; }
.rd-nav__burger {
    display: none;
    width: 46px;
    height: 46px;
    background: rgba(245, 245, 245, 0.08);
    border: 0;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--rd-on-dark);
}
.rd-nav__burger svg { width: 22px; height: 22px; }
.rd-menu { display: none; background: var(--rd-graphite); border-top: 1px solid var(--rd-line-dark); padding: 6px 0 26px; }
.rd-menu.is-open { display: block; }
.rd-menu a { display: block; padding: 14px 0; font-weight: 500; text-decoration: none; border-bottom: 1px solid var(--rd-line-dark); color: var(--rd-on-dark); }
.rd-menu__title { margin: 20px 0 2px; font-size: 13px; font-weight: 600; color: var(--rd-mint); }
.rd-menu a.rd-menu__sub { padding: 11px 0 11px 14px; font-size: 15px; color: var(--rd-on-dark-soft); }
.rd-menu a.rd-menu__sub[aria-current="page"] { color: var(--rd-lime); }
.rd-menu .rd-btn { width: 100%; margin-top: 22px; border: 0; color: var(--rd-graphite); }

/* ---------- Faixa das páginas de exemplo ---------- */
.rd-demo-bar {
    background: var(--rd-lime);
    color: var(--rd-graphite);
    font-family: var(--rd-font);
    font-size: 14px;
    line-height: 1.4;
}
.rd-demo-bar__inner { display: flex; align-items: center; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap; padding-top: 10px; padding-bottom: 10px; }
.rd-demo-bar__text { display: flex; align-items: center; gap: 10px; margin: 0; font-weight: 500; }
.rd-demo-bar__text strong { font-weight: 700; }
.rd-demo-bar__text .rd-px { width: 18px; height: 18px; }
.rd-demo-bar a { color: var(--rd-graphite); font-weight: 700; text-decoration: none; border-bottom: 2px solid currentColor; white-space: nowrap; }

/* ---------- Chamado final (bloco lima) ---------- */
.rd-cta {
    position: relative;
    overflow: hidden;
    background: var(--rd-lime);
    color: var(--rd-graphite);
    padding: 120px 0;
    font-family: var(--rd-font);
    line-height: 1.6;
}
.rd-cta__shape { position: absolute; right: -80px; top: 50%; width: 520px; transform: translateY(-50%); color: var(--rd-graphite); opacity: 0.14; pointer-events: none; }
.rd-cta__inner { position: relative; max-width: 46rem; }
.rd-cta h2 {
    font-family: var(--rd-font);
    font-size: clamp(2.4rem, 5vw, 4rem);
    font-weight: 700;
    letter-spacing: -0.035em;
    line-height: 1.06;
    margin: 0 0 20px;
    color: var(--rd-graphite);
}
.rd-cta p { margin: 0 0 36px; font-size: 1.15rem; max-width: 30em; color: var(--rd-graphite); }
.rd-cta__row { display: flex; flex-wrap: wrap; align-items: center; gap: 22px; }
.rd-cta__mail { font-size: 15px; }
.rd-cta__mail a { font-weight: 700; color: var(--rd-graphite); }

/* ---------- Rodapé ---------- */
.rd-footer { background: var(--rd-graphite); color: var(--rd-on-dark-soft); padding: 72px 0 36px; font-family: var(--rd-font); font-size: 15px; line-height: 1.6; }
.rd-footer__inner { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 44px; border-bottom: 1px solid var(--rd-line-dark); }
.rd-footer__brand img { height: 30px; width: auto; margin-bottom: 20px; display: block; }
.rd-footer__brand p { margin: 0; max-width: 22em; }
.rd-footer h4 { font-family: var(--rd-font); font-size: 13px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--rd-mint); margin: 0 0 16px; }
.rd-footer ul { list-style: none; margin: 0; padding: 0; }
.rd-footer li { margin-bottom: 10px; }
:where(.rd-footer) a { color: inherit; text-decoration: none; }
.rd-footer a:hover { color: var(--rd-lime); }
.rd-footer a[aria-current="page"] { color: var(--rd-on-dark); }
.rd-footer__bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding-top: 26px; font-size: 13px; }

/* ---------- WhatsApp flutuante ---------- */
.rd-wa {
    position: fixed; right: 20px; bottom: 20px; z-index: 90;
    width: 58px; height: 58px; border-radius: 50%;
    background: #25D366; color: #fff;
    display: grid; place-items: center;
    box-shadow: 0 10px 24px -8px rgba(0, 0, 0, 0.45);
    transition: transform 160ms var(--rd-ease);
}
.rd-wa:hover { transform: scale(1.06); }
.rd-wa svg { width: 26px; height: 26px; }

/* ---------- Responsivo ---------- */
@media (max-width: 1080px) {
    .rd-nav__links, .rd-nav__actions .rd-btn, .rd-nav__client { display: none !important; }
    .rd-nav__burger { display: inline-flex; }
}
@media (max-width: 760px) {
    .rd-cta { padding: 84px 0; }
    .rd-cta__shape { width: 340px; right: -140px; }
    .rd-cta__row .rd-btn { width: 100%; }
    .rd-btn { white-space: normal; text-align: center; }
    .rd-footer__inner { grid-template-columns: 1fr 1fr; }
    .rd-footer__brand { grid-column: 1 / -1; }
    .rd-demo-bar__inner { font-size: 13px; }
}
