/* =========================================================
   Rodrigues e Silva Advogados — estilos
   ========================================================= */

:root {
  --bg: #0b1a2e;
  --bg-alt: #0e2038;
  --surface: rgba(255, 255, 255, .03);
  --line: rgba(255, 255, 255, .1);
  --text: #e8edf4;
  --muted: #9aa8bb;
  --gold: #cfae66;
  --gold-light: #e6cf94;

  --font-title: "Cinzel", Georgia, serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --radius: 10px;
  --header-h: 72px;
  --ease: cubic-bezier(.2, .6, .2, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.65 var(--font-body);
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
strong { color: #fff; font-weight: 600; }

.container { width: min(1120px, 100% - 3rem); margin-inline: auto; }
.container--narrow { width: min(820px, 100% - 3rem); }

.skip-link {
  position: absolute; left: 1rem; top: -100px; z-index: 100;
  padding: .6rem 1rem; background: #fff; color: var(--bg); border-radius: 6px;
}
.skip-link:focus { top: 1rem; }

:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

/* Biblioteca de ícones SVG da página (fica invisível; os ícones são usados com <use href="#...">) */
.svg-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: .85rem 1.5rem;
  border: 1px solid transparent; border-radius: 999px;
  background: none; color: inherit;
  font: 500 .95rem/1 var(--font-body); letter-spacing: .01em;
  cursor: pointer;
  transition: background-color .2s, border-color .2s, color .2s, transform .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn:disabled { opacity: .6; cursor: wait; transform: none; }

.btn--primary { background: var(--gold); color: var(--bg); }
.btn--primary:hover { background: var(--gold-light); }

.btn--ghost { border-color: rgba(255, 255, 255, .35); color: #fff; }
.btn--ghost:hover { border-color: #fff; background: rgba(255, 255, 255, .06); }

/* ---------- Cabeçalho ---------- */
.header {
  position: sticky; top: 0; z-index: 50;
  height: var(--header-h);
  background: rgba(11, 26, 46, .85);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s;
}
.header.is-scrolled { border-bottom-color: var(--line); }

.header__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; }
.header__logo img { width: 200px; }

.nav { display: flex; gap: 2.25rem; }
.nav a {
  position: relative;
  font-size: .8rem; font-weight: 500; letter-spacing: .12em; text-transform: uppercase;
  color: var(--muted);
  transition: color .2s;
}
.nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -6px;
  height: 1px; background: var(--gold);
  transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease);
}
.nav a:hover, .nav a.is-active { color: #fff; }
.nav a:hover::after, .nav a.is-active::after { transform: scaleX(1); }
@media (min-width: 768px) and (max-width: 1023px) {
  .nav { gap: 1.25rem; }
  .nav a { letter-spacing: .06em; }
}
.header__logo { flex-shrink: 0; }
.nav a.nav__highlight { color: var(--gold); }
.nav a.nav__highlight:hover { color: var(--gold-light); }

.menu-toggle { display: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative; isolation: isolate;
  min-height: calc(100svh - var(--header-h));
  display: grid; place-items: center;
  text-align: center;
  overflow: hidden;
}
.hero__bg {
  position: absolute; inset: 0; z-index: -2;
  width: 100%; height: 100%;
  object-fit: cover; object-position: 50% 45%;
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(11, 26, 46, .55) 0%, rgba(11, 26, 46, .7) 60%, var(--bg) 100%);
}
.hero__content { padding-block: 4rem; display: flex; flex-direction: column; align-items: center; }
.hero__symbol { width: 52px; margin-bottom: 2rem; }
.hero__title {
  font: 500 clamp(1.9rem, 4.5vw, 3.25rem)/1.2 var(--font-title);
  color: #fff; letter-spacing: .01em;
}
.hero__text { margin-top: 1.25rem; max-width: 36rem; color: rgba(255, 255, 255, .8); font-size: 1.05rem; }
.hero__actions { margin-top: 2.5rem; display: flex; flex-wrap: wrap; justify-content: center; gap: .75rem; }

/* ---------- Seções ---------- */
.section { padding-block: clamp(4.5rem, 10vw, 7.5rem); }
.section--alt { background: var(--bg-alt); }

.section__head { max-width: 40rem; margin-bottom: 3rem; }

.eyebrow {
  margin-bottom: .9rem;
  font-size: .75rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase;
  color: var(--gold);
}
.section__title {
  font: 500 clamp(1.6rem, 3vw, 2.2rem)/1.25 var(--font-title);
  color: #fff;
}
.section__title + p { margin-top: 1rem; }

.lead { margin-top: 1.25rem; font-size: 1.05rem; color: var(--text); }
.muted { color: var(--muted); }
.lead + .muted { margin-top: 1rem; }

.split { display: grid; gap: 3rem; align-items: start; }
@media (min-width: 900px) { .split { grid-template-columns: 1.15fr 1fr; gap: 5rem; } }

.grid { display: grid; gap: 1.25rem; }
@media (min-width: 640px) { .grid--2, .grid--3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .grid--3 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 640px) { .grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .grid--4 { grid-template-columns: repeat(4, 1fr); } }

/* ---------- Sobre ---------- */
.values {
  list-style: none; padding: 0; margin-top: 2.5rem;
  display: grid; gap: 1.5rem;
}
@media (min-width: 640px) { .values { grid-template-columns: repeat(3, 1fr); } }
.values li { padding-top: 1rem; border-top: 1px solid var(--gold); }
.values strong { display: block; font-size: .95rem; }
.values span { display: block; margin-top: .35rem; font-size: .875rem; color: var(--muted); }

.panel {
  padding: 2.25rem;
  background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius);
}
.panel__title { font: 500 1.2rem/1.3 var(--font-title); color: #fff; }

.steps { list-style: none; counter-reset: step; padding: 0; margin: 1.75rem 0 2rem; }
.steps li {
  counter-increment: step;
  display: flex; gap: 1rem; align-items: baseline;
  padding-block: .9rem;
  border-bottom: 1px solid var(--line);
  color: var(--text); font-size: .95rem;
}
.steps li::before {
  content: counter(step, decimal-leading-zero);
  font: 500 .8rem/1 var(--font-title); color: var(--gold);
}

/* ---------- Cards de área ---------- */
.card {
  padding: 1.75rem;
  border: 1px solid var(--line); border-radius: var(--radius);
  transition: border-color .25s;
}
.card:hover { border-color: rgba(207, 174, 102, .5); }
.card h3 { font-size: 1.05rem; font-weight: 600; color: #fff; }
.card p { margin-top: .5rem; font-size: .9rem; color: var(--muted); }

/* ---------- Posts ---------- */
.post {
  display: flex; flex-direction: column;
  border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden;
  transition: border-color .25s;
}
.post:hover { border-color: rgba(207, 174, 102, .5); }
.post img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: var(--surface); }
.post__cover {
  aspect-ratio: 16 / 9;
  display: flex; flex-direction: column; justify-content: center; gap: .6rem;
  padding: 1.5rem 1.75rem;
  background:
    linear-gradient(135deg, rgba(207, 174, 102, .14), transparent 55%),
    var(--bg-alt);
  border-bottom: 1px solid var(--line);
}
.post__cover-badge {
  align-self: flex-start;
  padding: .25rem .65rem;
  font-size: .65rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--bg); background: var(--gold); border-radius: 999px;
}
.post__cover-title { font: 500 1.55rem/1.2 var(--font-title); color: #fff; }
.post__cover { overflow: hidden; }
@media (min-width: 1100px) {
  .grid--4 .post__cover { padding: 1.25rem; gap: .45rem; }
  .grid--4 .post__cover-title { font-size: 1.2rem; }
}
.post__cover-sub { font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.post__body { flex: 1; display: flex; flex-direction: column; padding: 1.5rem; }

/* Destaque: artigo mais recente, ocupa a linha inteira da grade */
.post--featured { grid-column: 1 / -1; }
.post--featured .post__cover { aspect-ratio: auto; min-height: 210px; }
.grid--4 .post--featured .post__cover { padding: 1.75rem; gap: .7rem; }
.grid--4 .post--featured .post__cover-title { font-size: clamp(1.7rem, 3vw, 2.4rem); }
.post--featured h3 { font: 500 clamp(1.3rem, 2.4vw, 1.7rem)/1.3 var(--font-title); }
.post__cover--mark { position: relative; }
.post__cover--mark::after {
  content: ""; position: absolute; top: 50%; right: 1.75rem;
  width: 26%; height: 72%; transform: translateY(-50%);
  background: url("../img/simbolo.webp") no-repeat center / contain;
  opacity: .14; pointer-events: none;
}
.post__cover--mark > * { position: relative; z-index: 1; }
.post__list { list-style: none; padding: 0; margin: 1.1rem 0 0; display: grid; gap: .45rem; font-size: .88rem; color: var(--text); }
.post__list li { position: relative; padding-left: 1.1rem; }
.post__list li::before { content: ""; position: absolute; left: 0; top: .6em; width: .4rem; height: .4rem; border-radius: 50%; background: var(--gold); }
.post__icons { display: flex; flex-wrap: wrap; gap: .55rem; margin-top: .5rem; }
.post__icons > span {
  display: grid; place-items: center;
  width: 2.4rem; height: 2.4rem;
  color: var(--gold);
  border: 1px solid rgba(207, 174, 102, .55); border-radius: 50%;
}
.post__icons svg { width: 1.15rem; height: 1.15rem; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
@media (min-width: 760px) {
  .post--featured { flex-direction: row; }
  .post--reverse { flex-direction: row-reverse; }
  .post--reverse .post__cover { border-right: 0; border-left: 1px solid var(--line); }
  .post--featured .post__cover { flex: 0 0 44%; min-height: 300px; border-bottom: 0; border-right: 1px solid var(--line); }
  .grid--4 .post--featured .post__cover { padding: 2.5rem; }
  .post--featured .post__body { padding: 2.25rem 2.5rem; justify-content: center; }
  .post--featured .post__list { grid-template-columns: 1fr 1fr; gap: .45rem 1.5rem; }
}
.post__tag { font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); }
.post h3 { margin-top: .6rem; font-size: 1.05rem; font-weight: 600; line-height: 1.4; color: #fff; }
.post p { margin-top: .5rem; font-size: .9rem; color: var(--muted); }
.post__more { margin-top: auto; padding-top: 1.25rem; font-size: .875rem; font-weight: 500; color: var(--gold); }

/* ---------- Depoimentos ---------- */
.quote { padding-left: 1.5rem; border-left: 1px solid var(--gold); }
.quote blockquote { font: 400 1.2rem/1.55 var(--font-body); color: #fff; }
.quote figcaption { margin-top: 1rem; font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }

/* ---------- Equipe ---------- */
.person { display: block; }
.person img {
  width: 100%; aspect-ratio: 3 / 4; object-fit: cover;
  border-radius: var(--radius);
  filter: grayscale(.25);
  transition: filter .4s;
}
.person:hover img { filter: none; }
.person__name { display: block; margin-top: 1.1rem; font: 500 1.05rem/1.3 var(--font-title); color: #fff; }
.person__link { display: block; margin-top: .3rem; font-size: .85rem; color: var(--muted); transition: color .2s; }
.person:hover .person__link { color: var(--gold); }

/* ---------- Formulário ---------- */
.form { margin-top: 2.25rem; display: grid; gap: 1.1rem; }
.form__row { display: grid; gap: 1.1rem; }
@media (min-width: 640px) { .form__row { grid-template-columns: 1fr 1fr; } }

.field { display: grid; gap: .4rem; }
.field span { font-size: .8rem; color: var(--muted); }
.field input, .field textarea {
  width: 100%;
  padding: .8rem 1rem;
  font: inherit; font-size: .95rem; color: #fff;
  background: rgba(255, 255, 255, .04);
  border: 1px solid var(--line); border-radius: 8px;
  transition: border-color .2s, background-color .2s;
}
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--gold); background: rgba(255, 255, 255, .06); }

.check { display: flex; gap: .75rem; align-items: flex-start; font-size: .85rem; color: var(--muted); cursor: pointer; }
.check input { margin-top: .25rem; accent-color: var(--gold); }

.form .btn { justify-self: start; }
.form__status { min-height: 1.5em; font-size: .9rem; }
.form__status.is-ok { color: #8fd6a8; }
.form__status.is-error { color: #f0a0a0; }

.hp { position: absolute; left: -9999px; }

/* ---------- Contato ---------- */
.info { margin: 1.5rem 0 2rem; display: grid; gap: 1rem; }
.info dt { font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
.info dd { margin-top: .2rem; font-size: .95rem; }
.info a { border-bottom: 1px solid var(--line); transition: border-color .2s; }
.info a:hover { border-color: var(--gold); }

/* ---------- Rodapé ---------- */
.footer { padding-block: 2rem; border-top: 1px solid var(--line); font-size: .8rem; color: var(--muted); }
.footer__inner { display: flex; flex-wrap: wrap; gap: .5rem 2rem; justify-content: space-between; }

/* ---------- WhatsApp flutuante ---------- */
.fab {
  position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 40;
  display: grid; place-items: center;
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--gold); color: var(--bg);
  box-shadow: 0 6px 20px rgba(0, 0, 0, .35);
  transition: transform .2s, background-color .2s;
}
.fab:hover { transform: scale(1.06); background: var(--gold-light); }
.fab svg { width: 24px; height: 24px; }

/* Selo "1" e anel pulsante enquanto há notificação */
.fab.has-badge::before {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  border: 2px solid var(--gold);
  animation: fab-ping 1.8s var(--ease) infinite;
}
.fab.has-badge::after {
  content: "1"; position: absolute; top: -2px; right: -2px;
  display: grid; place-items: center;
  width: 20px; height: 20px; border-radius: 50%;
  font: 600 .7rem/1 var(--font-body); color: #fff;
  background: #e5484d; border: 2px solid var(--bg);
}
@keyframes fab-ping { from { transform: scale(1); opacity: .8; } to { transform: scale(1.6); opacity: 0; } }

/* ---------- Notificação ---------- */
.notif {
  position: fixed; z-index: 70;
  right: 1.25rem; bottom: calc(1.25rem + 52px + 14px);
  width: min(380px, calc(100vw - 2.5rem));
  background: rgba(14, 32, 56, .92);
  backdrop-filter: blur(16px) saturate(1.4); -webkit-backdrop-filter: blur(16px) saturate(1.4);
  border: 1px solid rgba(207, 174, 102, .35); border-radius: 16px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, .45);
  opacity: 0; visibility: hidden;
  transform: translateY(14px) scale(.96); transform-origin: bottom right;
  transition: opacity .3s, transform .45s cubic-bezier(.2, .9, .3, 1.15), visibility .45s;
}
.notif.is-open { opacity: 1; visibility: visible; transform: none; }

.notif__body { display: flex; gap: .85rem; align-items: flex-start; padding: 1rem 2.4rem 1rem 1rem; }
.notif__icon {
  flex-shrink: 0; display: grid; place-items: center;
  width: 42px; height: 42px; border-radius: 11px;
  background: var(--bg); border: 1px solid var(--line);
}
.notif__icon img { width: auto; height: 26px; }
.notif__text { min-width: 0; }
.notif__head { display: flex; align-items: baseline; justify-content: space-between; gap: .75rem; }
.notif__head strong { font-size: .85rem; font-weight: 600; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.notif__head time { flex-shrink: 0; font-size: .75rem; color: var(--muted); }
.notif__msg { display: block; margin-top: .2rem; font-size: .875rem; line-height: 1.45; color: var(--text); }

.notif__close {
  position: absolute; top: .55rem; right: .55rem;
  display: grid; place-items: center;
  width: 24px; height: 24px; border-radius: 50%;
  font-size: 1rem; line-height: 1; color: var(--muted);
  background: rgba(255, 255, 255, .06); border: 0; cursor: pointer;
  transition: color .2s, background-color .2s;
}
.notif__close:hover { color: #fff; background: rgba(255, 255, 255, .14); }

/* Celular: banner estilo iPhone, desce do topo */
@media (max-width: 767px) {
  .notif {
    top: max(.5rem, env(safe-area-inset-top)); bottom: auto; left: .5rem; right: .5rem;
    width: auto;
    background: rgba(28, 36, 50, .82);
    border: 1px solid rgba(255, 255, 255, .1); border-radius: 22px;
    opacity: 1;
    transform: translateY(calc(-100% - 2rem)); transform-origin: top center;
    transition: transform .55s cubic-bezier(.2, 1, .3, 1), visibility .55s;
  }
  .notif.is-open { transform: none; }
  .notif__body { padding: .8rem 2.3rem .8rem .8rem; }
  .notif__icon { width: 38px; height: 38px; border-radius: 9px; }
  .notif__icon img { height: 23px; }
}

@media (prefers-reduced-motion: reduce) {
  .notif, .notif.is-open { transform: none !important; transition: opacity .2s, visibility .2s !important; }
  .notif { opacity: 0; }
  .notif.is-open { opacity: 1; }
  .fab.has-badge::before { animation: none; }
}

/* ---------- Animação de entrada ---------- */
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Mobile ---------- */
@media (max-width: 767px) {
  :root { --header-h: 64px; }
  .header__logo img { width: 160px; }

  .menu-toggle {
    display: grid; place-content: center; gap: 6px;
    width: 44px; height: 44px; margin-right: -10px;
    background: none; border: 0; cursor: pointer;
  }
  .menu-toggle span { display: block; width: 22px; height: 1.5px; background: #fff; transition: transform .25s; }
  .menu-toggle[aria-expanded="true"] span:first-child { transform: translateY(3.75px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:last-child { transform: translateY(-3.75px) rotate(-45deg); }

  .nav {
    position: fixed; inset: var(--header-h) 0 auto 0;
    flex-direction: column; gap: 0;
    padding: .5rem 1.5rem 1.5rem;
    background: var(--bg); border-bottom: 1px solid var(--line);
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity .2s, transform .2s, visibility .2s;
  }
  .nav.is-open { opacity: 1; visibility: visible; transform: none; }
  .nav a { padding-block: 1rem; font-size: .9rem; border-bottom: 1px solid var(--line); }
  .nav a::after { display: none; }

  .panel { padding: 1.75rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}
