/* CCS Advocacia Digital, folha de estilo principal */
:root {
  --navy: #000741;
  --navy-2: #0b1352;
  --gold: #b08155;
  --gold-light: #d9bfa3;
  --red: #8e1b12;
  --text: #4a4a4a;
  --ink: #212121;
  --muted: #6b7280;
  --bg: #fafaf8;
  --white: #ffffff;
  --radius: 4px;
  --max: 1180px;
  --font-body: "Open Sans", system-ui, sans-serif;
  --font-display: "Sen", "Open Sans", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg) url("../img/fundo-linhas.png") repeat;
  background-size: 900px auto;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); }
h1, h2, h3 { font-family: var(--font-display); color: var(--ink); line-height: 1.2; margin: 0 0 .6em; }
h1 { font-size: clamp(2rem, 4vw, 3rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
.container { width: min(var(--max), 92%); margin: 0 auto; }

/* Rótulo de seção com o fio dourado do site original */
.kicker {
  display: inline-block;
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: .08em;
  font-weight: 700;
  color: var(--gold);
  font-size: .95rem;
  margin-bottom: .8rem;
}
.kicker::before {
  content: "";
  display: block;
  width: 56px;
  height: 4px;
  background: var(--gold);
  margin-bottom: .6rem;
}
.center { text-align: center; }
.center .kicker::before { margin-left: auto; margin-right: auto; }

/* Cabeçalho */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid #eee;
}
.site-header .container { display: flex; align-items: center; gap: 1.5rem; min-height: 76px; }
.brand img { height: 52px; width: auto; }
.nav { margin-left: auto; display: flex; align-items: center; gap: 1.6rem; }
.nav a {
  text-decoration: none; color: #444; font-family: var(--font-display); font-size: 1.02rem;
  padding: .4rem 0; border-bottom: 3px solid transparent;
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--navy); border-bottom-color: var(--gold); }
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  background: var(--red); color: #fff !important; text-decoration: none;
  font-family: var(--font-display); font-weight: 700; text-transform: uppercase; letter-spacing: .03em;
  padding: .75rem 1.3rem; border-radius: var(--radius); border: 0; font-size: .9rem;
}
.btn:hover { filter: brightness(1.12); }
.btn-gold { background: var(--gold); }
.btn-outline { background: transparent; border: 2px solid currentColor; color: var(--navy) !important; }
.nav .btn { border-bottom: 0; color: #fff; padding: .6rem 1rem; white-space: nowrap; }
.menu-toggle { display: none; margin-left: auto; background: none; border: 0; font-size: 1.8rem; color: var(--navy); cursor: pointer; }

/* Faixa de abertura com o banner original */
.hero-banner { background: var(--navy); padding: 0; }
.hero-banner picture img { width: 100%; height: auto; }

/* Blocos */
section { padding: 4.5rem 0; position: relative; }
.intro { display: grid; grid-template-columns: 1.1fr .9fr; gap: 3rem; align-items: center; }
.intro .lead { font-size: 1.15rem; color: var(--ink); }
.script-art { max-width: 420px; opacity: .95; }
.dark { background: var(--navy); color: #d8dbe8; }
.dark h2, .dark h3 { color: #fff; }
.dark .kicker { color: var(--gold-light); }
.dark .kicker::before { background: var(--gold-light); }

/* Destaques */
.highlights { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-top: 2rem; }
.highlight {
  background: var(--white); border-top: 4px solid var(--gold); padding: 1.8rem; box-shadow: 0 6px 24px rgba(0,7,65,.06);
}
.highlight img { width: 64px; margin-bottom: 1rem; background: var(--navy); padding: 10px; border-radius: var(--radius); }
.highlight a { font-weight: 700; color: var(--gold); text-decoration: none; }

/* Grade das áreas */
.areas-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; margin-top: 2rem; }
.area-card {
  background: var(--navy); color: #fff; text-decoration: none; text-align: center;
  padding: 2rem 1rem 1.6rem; display: flex; flex-direction: column; align-items: center; gap: .8rem;
  transition: transform .15s ease, background .15s ease;
}
.area-card:hover { transform: translateY(-3px); background: var(--navy-2); }
.area-card img { width: 64px; height: 64px; object-fit: contain; }
.area-card strong { font-family: var(--font-display); text-transform: uppercase; font-size: .88rem; letter-spacing: .03em; }
.area-card span { color: var(--gold-light); font-size: .85rem; }

/* Página de áreas */
.area-detail { display: grid; grid-template-columns: 90px 1fr; gap: 1.5rem; padding: 2rem 0; border-bottom: 1px solid #e6e2dc; }
.area-detail img { width: 72px; background: var(--navy); padding: 12px; border-radius: var(--radius); }
.area-detail h2 { font-size: 1.45rem; margin-bottom: .4rem; }
.area-detail:last-child { border-bottom: 0; }

/* Ajuda */
.help { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.help img { border-radius: 0 0 80px 0; }

/* Faixa com a imagem da Justiça */
.banner-wide { padding: 0; }
.banner-wide img { width: 100%; }

/* Selos */
.seals { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 1.5rem; }
.seal { background: #fff; border-left: 4px solid var(--gold); padding: .9rem 1.2rem; font-family: var(--font-display); font-weight: 700; color: var(--navy); }

/* Equipe */
.team { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.6rem; margin-top: 2rem; }
.member { background: #fff; display: grid; grid-template-columns: 140px 1fr; gap: 1.4rem; padding: 1.6rem; box-shadow: 0 6px 24px rgba(0,7,65,.06); }
.member .photo { width: 140px; height: 170px; object-fit: cover; background: var(--navy); }
.member .initials {
  width: 140px; height: 170px; background: var(--navy); color: var(--gold-light);
  display: grid; place-items: center; font-family: var(--font-display); font-size: 2.4rem; font-weight: 700;
}
.member h3 { margin-bottom: .2rem; }
.member .role { color: var(--gold); font-weight: 700; font-size: .9rem; margin-bottom: .8rem; display: block; }
.member p { font-size: .97rem; }

/* Galeria */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.gallery img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }

/* Blog */
.posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-top: 2rem; }
.post { background: #fff; box-shadow: 0 6px 24px rgba(0,7,65,.06); }
.post img { aspect-ratio: 768/402; object-fit: cover; width: 100%; }
.post div { padding: 1.2rem 1.4rem 1.6rem; }
.post h3 { font-size: 1.05rem; }
.post time { font-size: .85rem; color: var(--muted); }

/* Contato */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; }
.contact dl { margin: 0; }
.contact dt { font-family: var(--font-display); font-weight: 700; color: var(--navy); margin-top: 1rem; }
.contact dd { margin: 0; }

/* Cabeçalho de página interna */
.page-head { background: var(--navy); color: #d8dbe8; padding: 3.5rem 0 3rem; }
.page-head h1 { color: #fff; margin: 0 0 .4rem; }
.page-head p { max-width: 760px; margin: 0; font-size: 1.1rem; }

/* Rodapé */
.site-footer { background: #05082b; color: #b9bdd0; padding: 3rem 0 1.5rem; font-size: .95rem; }
.site-footer .cols { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 2rem; }
.site-footer img { height: 56px; width: auto; margin-bottom: 1rem; }
.site-footer a { color: #e6e8f2; text-decoration: none; }
.site-footer h3 { color: #fff; font-size: 1rem; text-transform: uppercase; letter-spacing: .05em; }
.site-footer .legal { border-top: 1px solid #1d2250; margin-top: 2rem; padding-top: 1rem; font-size: .85rem; }
.social { display: flex; gap: .8rem; }
.social a { border: 1px solid #3a3f6b; border-radius: 50%; width: 38px; height: 38px; display: grid; place-items: center; }
.social svg { width: 18px; height: 18px; fill: currentColor; }

/* Botão flutuante do WhatsApp */
.wa-float {
  position: fixed; right: 22px; bottom: 22px; width: 60px; height: 60px; border-radius: 50%;
  background: #25d366; display: grid; place-items: center; box-shadow: 0 6px 18px rgba(0,0,0,.25); z-index: 60;
}
.wa-float svg { width: 32px; height: 32px; fill: #fff; }

/* Responsivo */
@media (max-width: 960px) {
  .areas-grid { grid-template-columns: repeat(2, 1fr); }
  .highlights, .posts, .team, .help, .intro, .contact, .site-footer .cols { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .menu-toggle { display: block; }
  .nav { display: none; position: absolute; top: 76px; left: 0; right: 0; background: #fff; flex-direction: column; padding: 1rem 0 1.5rem; border-bottom: 1px solid #eee; }
  .nav.open { display: flex; }
  .member { grid-template-columns: 1fr; }
  section { padding: 3rem 0; }
}
