/* Rangel Advocacia e Consultoria — tema claro
   Marca: verde #20362B, bege #C3AF95, branco */
:root {
  --bg: #ffffff;
  --surface: #f6f3ee;        /* bege bem claro */
  --surface-green: #eef2ef;  /* verde bem claro */
  --green: #20362b;
  --green-2: #2f5242;
  --green-3: #3f6a56;
  --beige: #c3af95;
  --beige-dark: #8a7458;     /* bege com contraste para texto */
  --ink: #1f2a24;
  --muted: #5f6b65;
  --line: #e6e1d8;
  --white: #ffffff;

  --font-display: "Cormorant Garamond", "Quiche Display", Georgia, serif;
  --font-body: "Open Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  --wrap: 1140px;
  --radius: 10px;
  --shadow: 0 10px 30px rgba(32, 54, 43, .08);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--bg);
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 500; line-height: 1.15; margin: 0 0 .5em; color: var(--green); }
h1 { font-size: clamp(2.4rem, 4.6vw, 3.7rem); }
h2 { font-size: clamp(1.9rem, 3.2vw, 2.6rem); }
h3 { font-size: 1.45rem; }
p { margin: 0 0 1em; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.section { padding: 96px 0; }
.section.alt { background: var(--surface); }
.section.tint { background: var(--surface-green); }
.eyebrow {
  display: inline-block;
  font-size: .74rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
  color: var(--beige-dark);
  margin-bottom: .9rem;
}
.section-head { max-width: 640px; margin-bottom: 44px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head p { color: var(--muted); }
.muted { color: var(--muted); }
.small { font-size: .86rem; }

/* Botões e links */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  padding: 14px 26px;
  font-family: var(--font-body); font-size: .9rem; font-weight: 600;
  text-decoration: none; border-radius: 6px; border: 1px solid transparent;
  transition: background .2s, color .2s, border-color .2s, box-shadow .2s;
  cursor: pointer;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-green { background: var(--green); color: var(--white); }
.btn-green:hover { background: var(--green-2); box-shadow: var(--shadow); }
.btn-outline { border-color: var(--green); color: var(--green); background: transparent; }
.btn-outline:hover { background: var(--green); color: var(--white); }
.btn-light { background: var(--white); color: var(--green); }
.btn-light:hover { background: var(--surface); }
.link {
  color: var(--green); font-weight: 600; font-size: .92rem;
  text-decoration: underline; text-decoration-color: var(--beige); text-underline-offset: 5px; text-decoration-thickness: 1px;
}
.link:hover { color: var(--beige-dark); }

/* Cabeçalho */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 76px; gap: 24px; }
.brand img { height: 38px; width: auto; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav a { text-decoration: none; font-size: .9rem; color: var(--ink); }
.nav a:not(.btn):hover { color: var(--beige-dark); }
.nav .btn { padding: 10px 18px; font-size: .86rem; }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; color: var(--green); }
.nav-toggle svg { width: 28px; height: 28px; }

/* Hero */
.hero { padding: 72px 0 88px; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr .95fr; gap: 64px; align-items: center; }
.hero h1 { margin-bottom: .45em; }
.hero .lead { font-size: 1.08rem; color: var(--muted); max-width: 520px; margin-bottom: 2rem; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 22px; }
.hero-note { margin-top: 1.1rem; font-size: .84rem; color: var(--muted); }
.rating-line { margin-top: 1.6rem; display: flex; align-items: center; gap: 10px; font-size: .88rem; color: var(--muted); }
.rating-line[hidden] { display: none; }
.stars { color: #e3a62f; letter-spacing: 2px; font-size: 1rem; }
.rating-line strong { color: var(--ink); }
.hero-figure { margin: 0; }
.hero-figure img { width: 100%; aspect-ratio: 5 / 5.4; object-fit: cover; object-position: 50% 62%; border-radius: var(--radius); box-shadow: var(--shadow); }
.hero-figure figcaption { margin-top: 12px; font-size: .82rem; color: var(--muted); }
.hero-figure figcaption strong { color: var(--ink); font-weight: 600; }

/* Serviços (cards) */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.service {
  border-radius: var(--radius); padding: 30px 28px 26px; min-height: 230px;
  display: flex; flex-direction: column; text-decoration: none;
  background: var(--surface); color: var(--ink);
  transition: transform .2s, box-shadow .2s;
}
.service:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.service h3 { font-size: 1.55rem; margin-bottom: .35em; color: inherit; }
.service p { font-size: .93rem; opacity: .85; margin: 0; }
.service .go { margin-top: auto; padding-top: 22px; display: flex; justify-content: space-between; align-items: center; font-size: .84rem; font-weight: 600; }
.service .go::after { content: "→"; font-size: 1.1rem; }
.service.s1 { background: var(--green); color: var(--white); }
.service.s2 { background: var(--green-3); color: var(--white); }
.service.s3 { background: var(--beige); color: var(--green); }
.service.s1 h3, .service.s2 h3 { color: var(--white); }
.service.s3 h3 { color: var(--green); }
.service.light { background: var(--surface); }
.service.light h3 { color: var(--green); }
.also {
  margin-top: 26px; padding: 22px 26px; border: 1px solid var(--line); border-radius: var(--radius);
  display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap;
}
.also p { margin: 0; }
.also strong { color: var(--green); }

/* Passo a passo */
.two-col { display: grid; grid-template-columns: .85fr 1.15fr; gap: 72px; align-items: start; }
.steps { list-style: none; margin: 0; padding: 0; }
.steps li { display: grid; grid-template-columns: 52px 1fr; gap: 10px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.steps li:first-child { padding-top: 0; }
.steps li:last-child { border-bottom: 0; }
.steps .n { font-family: var(--font-display); font-size: 1.7rem; color: var(--beige-dark); line-height: 1.1; }
.steps h3 { font-size: 1.3rem; margin-bottom: .2em; }
.steps p { margin: 0; color: var(--muted); font-size: .95rem; }

/* Faixa "Atenção" */
.notice { background: var(--surface-green); }
.notice .grid { display: grid; grid-template-columns: 1fr 1fr; align-items: stretch; }
.notice-photo { position: relative; min-height: 440px; }
.notice-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 62%; }
.notice-text { padding: 72px 8% 72px 64px; align-self: center; max-width: 600px; }
.notice-text p { color: var(--muted); }

/* Especialistas (abas) */
.tabs { display: flex; justify-content: center; gap: 10px; margin-bottom: 40px; flex-wrap: wrap; }
.tab {
  font-family: var(--font-body); font-size: .9rem; font-weight: 600;
  padding: 11px 22px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--green); background: transparent; color: var(--green);
}
.tab[aria-selected="true"] { background: var(--green); color: var(--white); }
.panel { display: grid; grid-template-columns: 360px 1fr; gap: 56px; align-items: center; max-width: 980px; margin: 0 auto; }
.panel[hidden] { display: none; }
.panel img { width: 100%; aspect-ratio: 4 / 4.6; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow); }
.panel h3 { font-size: 2.2rem; margin-bottom: .1em; }
.panel .oab { display: block; font-size: .8rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--beige-dark); margin-bottom: 1.3rem; }
.panel p { color: var(--muted); }
.panel .mission { font-family: var(--font-display); font-style: italic; font-size: 1.35rem; line-height: 1.4; color: var(--green); border-left: 2px solid var(--beige); padding-left: 18px; margin-top: 1.4rem; }

/* Avaliações do Google */
.reviews-box {
  background: var(--surface); border-radius: 18px; padding: 48px;
  display: grid; grid-template-columns: .8fr 1.2fr; gap: 40px; align-items: center;
}
.reviews-box > *, .two-col > *, .contact-grid > *, .hero .wrap > * { min-width: 0; }
.g-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 1rem; font-weight: 600; color: var(--ink); }
.g-brand svg { width: 28px; height: 28px; }
.reviews-summary .big { font-family: var(--font-display); font-size: 3.2rem; color: var(--green); line-height: 1; }
.reviews-summary .stars { font-size: 1.2rem; }
.reviews-summary h2 { font-size: 1.9rem; margin-top: .6rem; }
.reviews-track-wrap { position: relative; }
.reviews-track { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 4px; }
.reviews-track::-webkit-scrollbar { display: none; }
.review {
  flex: 0 0 calc(50% - 8px); scroll-snap-align: start;
  background: var(--white); border-radius: var(--radius); padding: 22px; box-shadow: 0 4px 14px rgba(32,54,43,.06);
  display: flex; flex-direction: column; gap: 8px; font-size: .9rem;
}
.review header { display: flex; align-items: center; gap: 10px; }
.review .avatar { width: 38px; height: 38px; border-radius: 50%; background: var(--green-3); color: var(--white); display: grid; place-items: center; font-weight: 600; flex: none; }
.review .name { font-weight: 600; line-height: 1.2; }
.review .date { font-size: .78rem; color: var(--muted); }
.review p { margin: 0; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 6; -webkit-box-orient: vertical; overflow: hidden; }
.review.open p { -webkit-line-clamp: unset; display: block; }
.review .more { align-self: flex-start; background: none; border: 0; padding: 0; font: inherit; font-size: .84rem; font-weight: 600; color: var(--green); cursor: pointer; text-decoration: underline; text-decoration-color: var(--beige); text-underline-offset: 4px; }
.reviews-track { align-items: flex-start; }
.review.placeholder { border: 1px dashed var(--beige); box-shadow: none; }
.review.placeholder .avatar { background: var(--line); color: var(--muted); }
.track-btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line); background: var(--white);
  color: var(--green); cursor: pointer; display: grid; place-items: center; box-shadow: var(--shadow);
}
.track-btn.prev { left: -18px; }
.track-btn.next { right: -18px; }

/* Blog */
.posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.post-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 26px; text-decoration: none; display: flex; flex-direction: column; transition: box-shadow .2s, transform .2s; }
.post-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.post-card .tag { font-size: .72rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--beige-dark); margin-bottom: .8rem; }
.post-card h3 { font-size: 1.4rem; }
.post-card p { font-size: .92rem; color: var(--muted); }
.post-card .read { margin-top: auto; font-size: .86rem; font-weight: 600; color: var(--green); }
.center { text-align: center; }
.mt { margin-top: 40px; }

/* FAQ */
.faq details { border-bottom: 1px solid var(--line); padding: 18px 0; }
.faq details:first-child { padding-top: 0; }
.faq summary { cursor: pointer; list-style: none; font-weight: 600; color: var(--green); display: flex; justify-content: space-between; gap: 20px; font-size: .98rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-weight: 300; color: var(--beige-dark); font-size: 1.4rem; line-height: 1; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 12px 0 0; color: var(--muted); font-size: .95rem; }

/* Chamada final */
.cta-final { text-align: center; }
.cta-final p { color: var(--muted); max-width: 560px; margin: 0 auto 1.8rem; }
.cta-final .actions { display: flex; justify-content: center; align-items: center; gap: 22px; flex-wrap: wrap; }

/* Contato + mapa */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.contact-list { list-style: none; padding: 0; margin: 1.4rem 0 2rem; }
.contact-list li { padding: 14px 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 100px 1fr; gap: 14px; }
.contact-list .label { font-size: .74rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--beige-dark); padding-top: 3px; }
.contact-list a { text-decoration: none; color: var(--green); font-weight: 600; }
.map { width: 100%; aspect-ratio: 4 / 3; border: 0; border-radius: var(--radius); box-shadow: var(--shadow); }

/* Rodapé */
.site-footer { background: var(--green); color: #c9d2cc; padding: 64px 0 28px; font-size: .88rem; }
.footer-cols { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 36px; }
.site-footer h4 { font-family: var(--font-body); font-size: .9rem; font-weight: 600; color: var(--white); margin: 0 0 1rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: .5rem; }
.site-footer a { color: #c9d2cc; text-decoration: none; }
.site-footer a:hover { color: var(--beige); }
.site-footer .logo { height: 34px; width: auto; margin-bottom: 1.2rem; }
.footer-bottom { margin-top: 44px; padding-top: 20px; border-top: 1px solid rgba(195,175,149,.25); font-size: .78rem; color: #9fb0a6; }

/* WhatsApp flutuante */
.wa-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 60;
  width: 58px; height: 58px; border-radius: 50%;
  background: #25d366; color: #fff; display: grid; place-items: center;
  box-shadow: 0 6px 20px rgba(0,0,0,.2); transition: transform .2s;
}
.wa-float:hover { transform: scale(1.06); }
.wa-float svg { width: 30px; height: 30px; }

/* Artigos do blog */
.article-hero { background: var(--surface); padding: 72px 0 56px; border-bottom: 1px solid var(--line); }
.article-hero h1 { font-size: clamp(2.1rem, 4.2vw, 3.2rem); max-width: 860px; }
.article-meta { font-size: .86rem; color: var(--muted); margin: 0; }
.back { display: inline-block; margin-bottom: 1.4rem; font-size: .86rem; font-weight: 600; color: var(--green); text-decoration: none; }
.article { padding: 56px 0 96px; }
.article .wrap { max-width: 760px; }
.article p, .article li { font-size: 1.02rem; }
.article h2 { font-size: 2rem; margin-top: 2em; }
.article h3 { font-size: 1.45rem; margin-top: 1.5em; }
.article ul { padding-left: 1.2em; margin: 0 0 1.2em; }
.article li { margin-bottom: .5em; }
.article table { width: 100%; border-collapse: collapse; margin: 1.2em 0 1.8em; font-size: .95rem; }
.article th, .article td { text-align: left; padding: 12px 14px; border: 1px solid var(--line); }
.article th { background: var(--surface-green); color: var(--green); font-weight: 600; }
.callout { background: var(--surface-green); border-radius: var(--radius); padding: 28px 30px; margin: 2.4em 0; }
.callout p:last-child { margin-bottom: 0; }

/* Animação suave */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* Responsivo */
@media (max-width: 980px) {
  .hero .wrap, .two-col, .contact-grid, .reviews-box { grid-template-columns: 1fr; gap: 40px; }
  .hero-figure { max-width: 520px; }
  .services, .posts { grid-template-columns: 1fr 1fr; }
  .notice .grid { grid-template-columns: 1fr; }
  .notice-photo { min-height: 0; aspect-ratio: 16 / 11; }
  .notice-text { padding: 48px 24px; max-width: none; }
  .panel { grid-template-columns: 1fr; gap: 28px; }
  .panel img { max-width: 360px; }
  .footer-cols { grid-template-columns: 1fr 1fr; }
  .section { padding: 72px 0; }
  .reviews-box { padding: 32px; }
}
@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav {
    position: absolute; top: 76px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--white); border-bottom: 1px solid var(--line);
    padding: 8px 24px 24px; display: none;
  }
  .nav.open { display: flex; }
  .nav a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .nav .btn { margin-top: 16px; }
}
@media (max-width: 600px) {
  .wrap { padding: 0 16px; }
  .brand img { height: 30px; }
  .hero { padding: 48px 0 64px; }
  .services, .posts, .footer-cols { grid-template-columns: 1fr; }
  .service { min-height: 0; }
  .review { flex-basis: 88%; }
  .track-btn { display: none; }
  .reviews-box { padding: 26px 18px; border-radius: 14px; }
  .contact-list li { grid-template-columns: 1fr; gap: 2px; }
  .hero-actions .btn { width: 100%; }
}
