/* RPPS Brasil — cores tiradas do logotipo (índigo, verde e amarelo) */
:root {
  --indigo: #24206f;
  --indigo-900: #14123f;
  --indigo-700: #2f2a8c;
  --green: #12924a;
  --green-600: #0e7a3d;
  --yellow: #f6c315;
  --ink: #1b1d2a;
  --muted: #5b6075;
  --line: #e3e6ef;
  --bg: #ffffff;
  --bg-soft: #f4f6fb;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(20, 18, 63, .08);
  --wrap: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--indigo-700); }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .6em; color: var(--indigo-900); letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 4.5vw, 3.25rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); font-weight: 800; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: -999px; top: 0; background: var(--yellow); color: var(--ink); padding: 8px 14px; z-index: 100; }
.skip:focus { left: 8px; }

/* Botões */
.btn {
  display: inline-flex; align-items: center; gap: .5em;
  padding: .85em 1.5em; border-radius: 999px;
  background: var(--green); color: #fff; font-weight: 700; text-decoration: none;
  border: 2px solid var(--green); transition: background .2s, transform .2s, color .2s;
  font-size: 1rem; cursor: pointer; font-family: inherit;
}
.btn:hover { background: var(--green-600); border-color: var(--green-600); transform: translateY(-1px); }
.btn--ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.55); }
.btn--ghost:hover { background: rgba(255,255,255,.12); border-color: #fff; }
.btn--yellow { background: var(--yellow); border-color: var(--yellow); color: var(--indigo-900); }
.btn--yellow:hover { background: #e7b40b; border-color: #e7b40b; }
.btn--small { padding: .55em 1.1em; font-size: .92rem; }

/* Topo */
.topbar { background: var(--indigo-900); color: #c9cbe6; font-size: .85rem; }
.topbar__inner { display: flex; justify-content: space-between; gap: 16px; padding-top: 8px; padding-bottom: 8px; }
.topbar a { color: #fff; text-decoration: none; }
.topbar__contacts { display: flex; gap: 20px; }

.header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.96); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.header__inner { display: flex; align-items: center; justify-content: space-between; min-height: 76px; gap: 24px; }
.brand img { width: 230px; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a:not(.btn) {
  color: var(--ink); text-decoration: none; font-weight: 600; font-size: .96rem;
  padding: .5em .8em; border-radius: 8px;
}
.nav a:not(.btn):hover { background: var(--bg-soft); color: var(--indigo-700); }
.nav a[aria-current="page"] { color: var(--green); }
.nav .btn { margin-left: 10px; }
.menu-toggle { display: none; background: none; border: 0; padding: 10px; cursor: pointer; }
.menu-toggle span { display: block; width: 24px; height: 2px; background: var(--indigo-900); transition: .2s; }

/* Hero da home */
.hero {
  position: relative; color: #fff; overflow: hidden;
  background:
    linear-gradient(105deg, rgba(20,18,63,.96) 0%, rgba(36,32,111,.88) 50%, rgba(36,32,111,.55) 100%),
    url("../img/consultoria.jpg") center / cover;
}
.hero::after {
  content: ""; position: absolute; right: -120px; bottom: -160px; width: 420px; height: 420px;
  border-radius: 50%; border: 48px solid var(--yellow); opacity: .14;
}
.hero__inner { position: relative; z-index: 1; padding: 96px 20px 88px; max-width: var(--wrap); margin: 0 auto; }
.hero h1 { color: #fff; max-width: 15em; }
.hero h1 em { font-style: normal; color: var(--yellow); }
.hero p { font-size: 1.15rem; color: #dcdcf3; max-width: 36em; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.eyebrow {
  display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--green); margin-bottom: 12px;
}
.hero .eyebrow, .page-hero .eyebrow { color: var(--yellow); }

.stats { background: #fff; border-bottom: 1px solid var(--line); }
.stats__grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 28px 20px; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat strong { display: block; font-size: 1.9rem; font-weight: 800; color: var(--indigo); line-height: 1.1; }
.stat span { color: var(--muted); font-size: .92rem; }

/* Hero das páginas internas */
.page-hero {
  color: #fff; padding: 72px 0 64px;
  background: linear-gradient(105deg, var(--indigo-900), var(--indigo-700));
  background-size: cover; background-position: center;
}
/* a foto de cada página entra pelo atributo style, sobre este degradê */
.page-hero h1 { color: #fff; max-width: 16em; }
.page-hero p { color: #dcdcf3; font-size: 1.12rem; max-width: 40em; margin: 0; }
.breadcrumb { font-size: .88rem; color: #b9bbe0; margin-bottom: 18px; }
.breadcrumb a { color: #fff; }

/* Seções */
.section { padding: 88px 0; }
.section--soft { background: var(--bg-soft); }
.section__head { max-width: 720px; margin-bottom: 44px; }
.section__head--center { text-align: center; margin-left: auto; margin-right: auto; }
.lead { font-size: 1.12rem; color: var(--muted); }

.split { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: center; }
.split__img { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); position: relative; }
.split__img img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.split__badge {
  position: absolute; left: 20px; bottom: 20px; background: var(--yellow); color: var(--indigo-900);
  padding: 14px 18px; border-radius: 12px; font-weight: 800; line-height: 1.2;
}
.split__badge small { display: block; font-weight: 600; font-size: .8rem; }
.values { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 24px 0 0; list-style: none; }
.values li { background: #fff; border: 1px solid var(--line); padding: 6px 14px; border-radius: 999px; font-size: .9rem; font-weight: 600; color: var(--indigo); }

/* Cards de áreas */
.areas { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.area {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 24px;
  text-decoration: none; color: inherit; transition: transform .2s, box-shadow .2s, border-color .2s;
  display: flex; flex-direction: column;
}
.area:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.area__icon {
  width: 52px; height: 52px; border-radius: 12px; display: grid; place-items: center;
  background: var(--indigo); color: var(--yellow); margin-bottom: 18px;
}
.area p { color: var(--muted); font-size: .96rem; flex: 1; }
.area__more { color: var(--green); font-weight: 700; font-size: .92rem; }

/* Cards de serviços com foto */
.services { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.service { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 5; color: #fff; display: flex; align-items: flex-end; text-decoration: none; }
.service img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.service::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20,18,63,0) 35%, rgba(20,18,63,.92) 100%); z-index: 1; }
.service:hover img { transform: scale(1.06); }
.service h3 { position: relative; z-index: 2; color: #fff; margin: 0; padding: 22px; font-size: 1.08rem; }

/* Blocos de detalhamento dos serviços */
.panels { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; }
.panel--wide { grid-column: 1 / -1; }
.panel h3 { display: flex; align-items: center; gap: 12px; font-size: 1.25rem; }
.panel h3::before { content: ""; width: 10px; height: 26px; border-radius: 4px; background: var(--green); flex: none; }
.panel p, .panel li { color: #3c4054; font-size: .98rem; }
.panel h4 { font-size: 1rem; margin-top: 1.2em; color: var(--indigo); }
.checklist { list-style: none; padding: 0; margin: 0; }
.checklist li { position: relative; padding-left: 28px; margin-bottom: 8px; }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: .45em; width: 16px; height: 16px; border-radius: 50%;
  background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% no-repeat;
}
.checklist--cols { columns: 2; column-gap: 32px; }
.checklist--cols li { break-inside: avoid; }

/* Produtos (tecnologia) */
.product { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.product + .product { margin-top: 72px; padding-top: 72px; border-top: 1px solid var(--line); }
.tag { display: inline-block; background: #e9f6ee; color: var(--green-600); font-weight: 700; font-size: .8rem; padding: 4px 10px; border-radius: 999px; margin-bottom: 12px; }
.mini-cards { display: grid; gap: 16px; }
.mini-card { background: var(--bg-soft); border-radius: 12px; padding: 20px 22px; }
.mini-card h4 { margin: 0 0 6px; font-size: 1.02rem; }
.mini-card p { margin: 0; font-size: .95rem; color: #474b60; }

/* Cursos */
.courses { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.course { background: #fff; border-radius: var(--radius); border: 1px solid var(--line); overflow: hidden; display: flex; flex-direction: column; }
.course__top { background: var(--indigo); color: #fff; padding: 26px 26px 22px; position: relative; }
.course__top h3 { color: #fff; margin: 0; }
.course__top span { color: var(--yellow); font-size: .82rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.course__body { padding: 24px 26px 28px; flex: 1; }
.course__body p { color: var(--muted); font-size: .96rem; }
.course__body h4 { font-size: .9rem; text-transform: uppercase; letter-spacing: .06em; color: var(--indigo); }

/* Faixa de chamada */
.cta {
  background: linear-gradient(110deg, var(--green-600), var(--green)); color: #fff; border-radius: 20px;
  padding: 48px; display: flex; align-items: center; justify-content: space-between; gap: 32px;
}
.cta h2 { color: #fff; margin-bottom: .3em; }
.cta p { margin: 0; color: #e3f5ea; font-size: 1.08rem; }
.cta .btn { flex: none; }

/* Blog */
.posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.post-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; text-decoration: none; color: inherit; display: flex; flex-direction: column; transition: box-shadow .2s, transform .2s; }
.post-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.post-card img { aspect-ratio: 16 / 10; object-fit: cover; width: 100%; }
.post-card__body { padding: 22px 24px 26px; }
.post-card__cat { color: var(--green); font-weight: 700; font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; }
.post-card h3 { margin: 8px 0 10px; font-size: 1.15rem; }
.post-card p { color: var(--muted); font-size: .95rem; margin: 0; }

.article { max-width: 760px; margin: 0 auto; }
.article__cover { border-radius: var(--radius); overflow: hidden; margin: -40px 0 40px; box-shadow: var(--shadow); }
.article h2 { font-size: 1.5rem; margin-top: 1.8em; }
.article h3 { margin-top: 1.5em; }
.article li { margin-bottom: 6px; }
.article blockquote { margin: 1.5em 0; padding: 18px 22px; background: var(--bg-soft); border-left: 4px solid var(--green); border-radius: 0 10px 10px 0; }
.table-wrap { overflow-x: auto; margin: 1.2em 0 1.5em; border: 1px solid var(--line); border-radius: 12px; }
.article table { width: 100%; border-collapse: collapse; font-size: .94rem; min-width: 520px; }
.article th, .article td { padding: 11px 14px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.article th { background: var(--indigo); color: #fff; font-weight: 700; font-size: .86rem; }
.article tbody tr:nth-child(even) { background: var(--bg-soft); }
.article tbody tr:last-child td { border-bottom: 0; }
.article td:first-child { font-weight: 600; color: var(--indigo-900); }
.note { background: #fff8db; border: 1px solid #f3df8f; border-radius: 12px; padding: 18px 22px; font-size: .96rem; }

/* Contato */
.contact { display: grid; grid-template-columns: 1fr 1.2fr; gap: 56px; }
.contact__list { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 18px; }
.contact__list li { display: flex; gap: 14px; align-items: center; }
.contact__list .ico { width: 44px; height: 44px; border-radius: 12px; background: var(--indigo); color: var(--yellow); display: grid; place-items: center; flex: none; }
.contact__list small { display: block; color: var(--muted); font-size: .82rem; }
.contact__list a { color: var(--ink); font-weight: 700; text-decoration: none; }
.form { background: #fff; border-radius: 18px; padding: 32px; box-shadow: var(--shadow); display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form label { display: grid; gap: 6px; font-weight: 600; font-size: .9rem; }
.form .full { grid-column: 1 / -1; }
.form input, .form textarea {
  font: inherit; font-weight: 400; padding: 12px 14px; border: 1px solid #ccd1e0; border-radius: 10px; background: #fbfcfe; width: 100%;
}
.form input:focus, .form textarea:focus { outline: 2px solid var(--indigo-700); outline-offset: 1px; border-color: transparent; }
.form textarea { min-height: 120px; resize: vertical; }
.form__hint { font-size: .82rem; color: var(--muted); margin: 0; }

/* Rodapé */
.footer { background: var(--indigo-900); color: #b9bbe0; padding: 64px 0 0; font-size: .95rem; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.footer__logo { background: #fff; padding: 10px 14px; border-radius: 10px; width: 240px; margin-bottom: 18px; }
.footer h2 { color: #fff; font-size: 1rem; margin-bottom: 14px; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer a { color: #e2e3f5; text-decoration: none; }
.footer a:hover { color: var(--yellow); }
.footer__bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 48px; padding-top: 20px; padding-bottom: 24px; font-size: .85rem; }

.whats-float {
  position: fixed; right: 20px; bottom: 20px; width: 58px; height: 58px; border-radius: 50%;
  background: #25d366; color: #fff; display: grid; place-items: center; z-index: 60;
  box-shadow: 0 8px 24px rgba(0,0,0,.2); transition: transform .2s;
}
.whats-float:hover { transform: scale(1.08); }

/* Responsivo */
@media (max-width: 1020px) {
  .areas, .services { grid-template-columns: repeat(2, 1fr); }
  .posts, .courses { grid-template-columns: 1fr 1fr; }
  .split, .product, .contact { grid-template-columns: 1fr; gap: 36px; }
  .stats__grid { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}
@media (max-width: 900px) {
  .menu-toggle { display: flex; flex-direction: column; gap: 5px; }
  .nav {
    position: absolute; top: 100%; left: 0; right: 0; background: #fff; flex-direction: column; align-items: stretch;
    padding: 12px 20px 20px; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); display: none;
  }
  .nav.is-open { display: flex; }
  .nav .btn { margin: 8px 0 0; justify-content: center; }
  .menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}
@media (max-width: 680px) {
  body { font-size: 16px; }
  .topbar__inner > span:first-child { display: none; }
  .topbar__contacts { width: 100%; justify-content: space-between; gap: 10px; font-size: .8rem; }
  .brand img { width: 180px; }
  .section { padding: 64px 0; }
  .hero__inner { padding: 64px 20px; }
  .areas, .services, .posts, .courses, .panels, .footer__grid { grid-template-columns: 1fr; }
  .services { grid-template-columns: 1fr 1fr; gap: 12px; }
  .service h3 { padding: 14px; font-size: .95rem; }
  .checklist--cols { columns: 1; }
  .cta { flex-direction: column; align-items: flex-start; padding: 32px 24px; }
  .form { grid-template-columns: 1fr; padding: 22px; }
  .panel { padding: 24px; }
}
