/* ==========================================================
   Rusemberg Fernandes — Advogado
   Tema claro, uma única família tipográfica, cantos retos.
   ========================================================== */

:root {
  --gold: #c9a24a;
  --gold-light: #d9c871;
  --gold-dark: #a8843a;
  --paper: #ffffff;
  --cream: #faf9f7;
  --panel: #f4f0e7;
  --line: #e5e3df;
  --heading: #26292e;
  --text: #3d4046;
  --text-muted: #6b6f76;

  --sans: "Barlow", "Helvetica Neue", Arial, sans-serif;

  --container: 1180px;
  --radius: 0px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
  font-weight: 400;
}

h1, h2, h3 {
  font-family: var(--sans);
  font-weight: 500;
  line-height: 1.2;
  margin: 0 0 .5em;
  color: var(--heading);
}

h2 { font-size: clamp(1.8rem, 3vw, 2.35rem); font-weight: 500; }
h3 { font-size: 1.15rem; font-weight: 600; color: var(--heading); }

p { margin: 0 0 1em; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; margin: 0; padding: 0; }
strong { font-weight: 600; color: var(--heading); }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 28px;
}

.eyebrow {
  letter-spacing: .2em;
  text-transform: uppercase;
  font-size: .72rem;
  color: var(--gold-dark);
  font-weight: 600;
  margin: 0 0 .8em;
}

.lead {
  color: var(--text-muted);
  font-size: 1.02rem;
  max-width: 620px;
}

.placeholder-note {
  font-size: .82rem;
  color: var(--text-muted);
  background: rgba(201,162,74,.08);
  border-left: 2px solid var(--gold);
  padding: 8px 14px;
  max-width: 620px;
}

.section { padding: 96px 0; }
.section-head { max-width: 680px; margin: 0 0 52px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 30px;
  font-size: .84rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  font-weight: 600;
  border-radius: var(--radius);
  transition: background .2s ease, color .2s ease, border-color .2s ease;
  border: 1px solid transparent;
  white-space: nowrap;
}
.btn-gold {
  background: var(--gold);
  color: #16181b;
}
.btn-gold:hover { background: var(--gold-dark); }
.btn-outline {
  border-color: var(--line);
  color: var(--heading);
}
.btn-outline:hover { border-color: var(--gold); color: var(--gold-dark); }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(255,255,255,.88);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease, box-shadow .3s ease, padding .3s ease;
  padding: 22px 0;
}
.site-header.scrolled {
  padding: 14px 0;
  border-bottom-color: var(--line);
  box-shadow: 0 2px 12px rgba(38,41,46,.04);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark { width: 32px; height: auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--heading);
  letter-spacing: .01em;
}
.brand-text em {
  font-style: normal;
  font-size: .6rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--gold-dark);
}

.main-nav { display: flex; gap: 32px; }
.main-nav a {
  font-size: .82rem;
  letter-spacing: .02em;
  color: var(--text-muted);
  position: relative;
  padding: 4px 0;
  transition: color .2s ease;
}
.main-nav a:hover { color: var(--heading); }

.header-cta { padding: 10px 22px; font-size: .76rem; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span {
  width: 24px; height: 1.5px;
  background: var(--heading);
  transition: transform .25s ease, opacity .25s ease;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  background: var(--panel);
  padding-top: 90px;
  border-bottom: 1px solid var(--line);
}
.hero-inner { max-width: 720px; }
.hero h1 {
  font-size: clamp(2.2rem, 4.4vw, 3.4rem);
  font-weight: 500;
  color: var(--heading);
  margin-bottom: .45em;
}
.hero-lead {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 540px;
  margin-bottom: 2.2em;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

.scroll-cue {
  position: absolute;
  bottom: 34px; left: 50%;
  transform: translateX(-50%);
  width: 22px; height: 36px;
  border: 1px solid var(--line);
  border-radius: 20px;
}
.scroll-cue span {
  position: absolute;
  top: 6px; left: 50%;
  width: 3px; height: 8px;
  margin-left: -1.5px;
  background: var(--gold);
  border-radius: 2px;
  animation: scrollcue 1.8s ease infinite;
}
@keyframes scrollcue {
  0% { opacity: 1; transform: translateY(0); }
  70% { opacity: 0; transform: translateY(12px); }
  100% { opacity: 0; }
}

/* ---------- Sobre ---------- */
.sobre { background: var(--paper); }
.sobre-grid {
  display: grid;
  grid-template-columns: .7fr 1.3fr;
  gap: 64px;
  align-items: center;
}
.sobre-visual { display: flex; justify-content: center; }
.sobre-badge { width: 100%; max-width: 300px; }

.sobre-bio p { text-align: justify; }

.sobre-values { margin-top: 1.8em; display: flex; flex-direction: column; gap: 14px; }
.sobre-values li {
  padding-left: 18px;
  border-left: 2px solid var(--gold);
  color: var(--text-muted);
  font-size: .95rem;
}
.sobre-values span {
  display: block;
  font-size: 1rem;
  color: var(--heading);
  font-weight: 600;
}

/* ---------- Áreas ---------- */
.areas { background: var(--cream); }
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.card {
  background: var(--paper);
  padding: 40px 32px;
  border-top: 2px solid transparent;
  transition: border-color .2s ease;
}
.card:hover { border-top-color: var(--gold); }
.card-icon {
  display: inline-flex;
  width: 40px; height: 40px;
  color: var(--gold-dark);
  margin-bottom: 18px;
}
.card-icon svg { width: 100%; height: 100%; }
.card h3 { margin-bottom: .4em; }
.card p { color: var(--text-muted); font-size: .92rem; margin: 0; }

/* ---------- Notícias ---------- */
.noticias { background: var(--paper); }
.news-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.news-card {
  background: var(--paper);
  padding: 28px;
  display: flex;
  flex-direction: column;
}
.news-date {
  font-size: .72rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin-bottom: .8em;
  font-weight: 600;
}
.news-card h3 {
  font-size: 1.08rem;
  margin-bottom: .5em;
}
.news-card p {
  color: var(--text-muted);
  font-size: .9rem;
  flex: 1;
}
.news-card .news-link {
  margin-top: 1em;
  font-size: .78rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--heading);
  border-bottom: 1px solid var(--gold);
  align-self: flex-start;
  padding-bottom: 2px;
}

.news-skeleton {
  height: 200px;
  background: linear-gradient(100deg, var(--paper) 30%, var(--cream) 50%, var(--paper) 70%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite;
}
@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.news-error {
  grid-column: 1 / -1;
  text-align: center;
  padding: 40px;
  color: var(--text-muted);
  border: 1px dashed var(--line);
  background: var(--paper);
}
.news-error a { color: var(--gold-dark); border-bottom: 1px solid var(--gold); }

.news-source {
  margin-top: 24px;
  font-size: .82rem;
  color: var(--text-muted);
}
.news-source a { color: var(--gold-dark); border-bottom: 1px solid var(--gold); }

/* ---------- Diferenciais ---------- */
.diferenciais {
  background: var(--panel);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.diff-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
}
.diff-num {
  font-size: 2rem;
  font-weight: 300;
  color: var(--gold-dark);
  display: block;
  margin-bottom: .3em;
}
.diff-item h3 { color: var(--heading); }
.diff-item p { color: var(--text-muted); font-size: .93rem; }

/* ---------- Contato ---------- */
.contato { background: var(--paper); }
.contato-grid {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 64px;
  align-items: start;
}
.contato-list { margin-top: 2em; display: flex; flex-direction: column; gap: 20px; }
.contato-list li {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}
.contato-label {
  font-size: .72rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--gold-dark);
  font-weight: 600;
}
.contato-list a, .contato-list span:not(.contato-label) { font-size: 1rem; color: var(--heading); }
.contato-list a:hover { color: var(--gold-dark); }

.contato-card {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--line);
  border-left: 3px solid var(--gold);
  padding: 44px 36px;
  overflow: hidden;
}
.contato-mark {
  position: absolute;
  right: -16px; bottom: -14px;
  width: 140px;
  opacity: .18;
}
.contato-card h3 { position: relative; }
.contato-card p { color: var(--text-muted); font-size: .92rem; position: relative; margin-bottom: 2em; }
.contato-card .btn { position: relative; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--cream);
  color: var(--text-muted);
  border-top: 1px solid var(--line);
  padding: 52px 0 28px;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 28px;
  padding-bottom: 30px;
  border-bottom: 1px solid var(--line);
}
.brand-footer .brand-text strong { color: var(--heading); }
.footer-nav { display: flex; gap: 26px; flex-wrap: wrap; }
.footer-nav a { font-size: .82rem; }
.footer-nav a:hover { color: var(--gold-dark); }

.footer-meta {
  margin-top: 20px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  font-size: .78rem;
}

/* ---------- Reveal animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal.in-view { opacity: 1; transform: translateY(0); }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .sobre-grid, .contato-grid { grid-template-columns: 1fr; }
  .sobre-visual { margin: 0 auto; }
  .cards-grid { grid-template-columns: repeat(2, 1fr); }
  .diff-grid { grid-template-columns: 1fr; gap: 32px; }
  .news-grid { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .main-nav, .header-cta { display: none; }
  .nav-toggle { display: flex; }
  .cards-grid { grid-template-columns: 1fr; }
  .section { padding: 70px 0; }
  .hero { padding-top: 110px; }

  .site-header.nav-open { border-bottom-color: var(--line); box-shadow: 0 2px 12px rgba(38,41,46,.06); }
  .site-header.nav-open .main-nav {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: var(--paper);
    padding: 20px 28px 28px;
    gap: 18px;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 12px 24px rgba(38,41,46,.08);
  }
  .site-header.nav-open .header-cta {
    display: inline-flex;
    position: absolute;
    top: 100%;
    right: 28px;
    margin-top: 190px;
  }
  .nav-toggle.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
  .nav-toggle.open span:nth-child(2) { opacity: 0; }
  .nav-toggle.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }
}
