/* Luis Henrique Advogados – Advocacia Previdenciária */
:root {
  --gold: #c0b845;
  --gold-dark: #8f8a2c;
  --black: #0b0b0b;
  --dark: #1b1b1b;
  --text: #ececec;
  --muted: #b9b9b9;
  --ink: #3f3d40;
  --green: #4dc247;
  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --sans: "Montserrat", "Segoe UI", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--sans); font-size: 16px; line-height: 1.6; color: var(--text); background: var(--black); }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); line-height: 1.2; margin: 0 0 .6em; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); }
p { margin: 0 0 1em; }

.wrap { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 820px; }
.center { text-align: center; }
.gold { color: var(--gold); }
.dark-gold { color: var(--gold-dark); }
.strong { font-weight: 700; font-family: var(--serif); font-size: 1.05rem; }
.muted { color: var(--muted); }
.muted-dark { color: #666; }
.ic { width: 18px; height: 18px; flex: none; }

/* Botões */
.btn { display: inline-flex; align-items: center; gap: .55em; padding: .8em 1.6em; border-radius: 999px; font-weight: 700; font-size: .95rem; text-decoration: none; transition: transform .15s, filter .15s; }
.btn svg { width: 20px; height: 20px; }
.btn:hover { transform: translateY(-2px); filter: brightness(1.08); }
.btn--whats { background: var(--green); color: #fff; box-shadow: 0 6px 18px rgba(77,194,71,.35); }
.btn--insta { background: #1f6fe5; color: #fff; padding: .6em 1.4em; font-size: .9rem; border-radius: 8px; }
.btn--outline { border: 2px solid var(--gold-dark); color: var(--gold-dark); padding: .55em 1.3em; font-size: .9rem; }
.btn--outline:hover { background: var(--gold-dark); color: #fff; }

/* Barra do topo */
.topbar { position: sticky; top: 0; z-index: 50; background: #d9d9d9; color: #333; box-shadow: 0 2px 10px rgba(0,0,0,.25); }
.topbar__in { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; min-height: 64px; gap: 12px; }
.topbar__phone { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font-weight: 600; font-size: .95rem; }
.topbar__phone .ic { color: var(--gold-dark); }
.topbar__logo img { width: 230px; }
.topbar__social { display: flex; justify-content: flex-end; gap: 8px; }
.topbar__social a { width: 36px; height: 36px; display: grid; place-items: center; background: var(--gold); color: #fff; border-radius: 6px; transition: background .15s; }
.topbar__social a:hover { background: var(--gold-dark); }
.topbar__social svg { width: 19px; height: 19px; }

/* Topo com foto */
.hero { position: relative; z-index: 3; background: #000; min-height: 560px; display: flex; align-items: center; }
.hero__photo { position: absolute; right: 0; top: 0; height: 100%; width: auto; max-width: none; object-fit: cover; object-position: left top;
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 22%); mask-image: linear-gradient(to right, transparent 0, #000 22%); }
.hero__in { position: relative; z-index: 1; padding-top: 60px; padding-bottom: 90px; }
.hero__text { max-width: 520px; }
.hero h1 { color: var(--gold); font-size: clamp(2.2rem, 4.6vw, 3.4rem); }
.hero__sub { font-family: var(--serif); font-weight: 700; font-size: 1.25rem; color: #fff; }
.hero__text > p:not(.hero__sub) { color: #ddd; text-align: justify; }
.hero__down { position: absolute; left: 50%; bottom: -34px; transform: translateX(-50%); width: 80px; height: 80px; border-radius: 50%; background: #111; color: var(--gold); display: grid; place-items: start center; padding-top: 10px; z-index: 2; }
.hero__down svg { width: 34px; height: 34px; animation: bob 1.8s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(5px); } }

/* Seções escuras com textura */
.dark { background: #1b1b1b url("/img/textura.jpg") repeat; padding: 70px 0; }
.pains { list-style: none; padding: 0; margin: 0 0 1.4em; font-size: .97rem; }
.pains li::before { content: "•"; color: var(--gold); margin-right: .4em; }
.pains li { margin: .25em 0; }

/* Avaliações */
.reviews { position: relative; margin-top: 40px; margin-bottom: 70px; }
.reviews__title { text-align: center; color: var(--muted); font-size: .9rem; letter-spacing: .04em; text-transform: uppercase; }
.reviews__track { display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 6px 4px 14px; scrollbar-width: none; }
.reviews__track::-webkit-scrollbar { display: none; }
.review { flex: 0 0 calc((100% - 40px) / 3); scroll-snap-align: start; background: #fff; color: #333; border-radius: 8px; padding: 18px; font-size: .9rem; box-shadow: 0 4px 16px rgba(0,0,0,.3); }
.review header { display: flex; gap: 10px; align-items: center; margin-bottom: 10px; }
.review header div { display: flex; flex-direction: column; flex: 1; line-height: 1.3; }
.review header b { font-size: .88rem; }
.avatar { width: 38px; height: 38px; border-radius: 50%; background: var(--c); color: #fff; display: grid; place-items: center; font-weight: 700; flex: none; }
.stars { display: flex; gap: 1px; color: #f6bb06; margin-top: 3px; }
.stars svg { width: 15px; height: 15px; }
.g { font-weight: 700; font-family: Arial, sans-serif; font-size: 1.15rem; background: conic-gradient(from -45deg, #ea4335 0 25%, #4285f4 0 50%, #34a853 0 75%, #fbbc05 0); -webkit-background-clip: text; background-clip: text; color: transparent; align-self: flex-start; }
.review p { margin: 0; }
.reviews__nav { position: absolute; top: 55%; transform: translateY(-50%); z-index: 2; width: 38px; height: 38px; border: 0; border-radius: 50%; background: rgba(0,0,0,.6); color: #fff; font-size: 1.6rem; line-height: 1; cursor: pointer; }
.reviews__nav--prev { left: 2px; }
.reviews__nav--next { right: 2px; }

/* Áreas de atuação (sanfona) */
.faq { margin-top: 26px; background: var(--gold); border-radius: 4px; overflow: hidden; }
.faq details { border-bottom: 1px solid rgba(0,0,0,.12); }
.faq details:last-child { border-bottom: 0; }
.faq summary { cursor: pointer; list-style: none; padding: 13px 18px; font-family: var(--serif); font-weight: 700; color: #111; font-size: .98rem; display: flex; gap: 10px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before { content: "▸"; transition: transform .2s; }
.faq details[open] summary::before { transform: rotate(90deg); }
.faq details > div { background: #f7f5e4; color: #2b2b2b; padding: 16px 22px 6px; }
.faq h3 { font-size: 1.05rem; color: var(--gold-dark); margin-bottom: .4em; }

/* Diferenciais */
.light { background: #f4f4f4; color: var(--ink); padding: 60px 0; }
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.card { background: #fff; border-radius: 18px; padding: 26px 18px; text-align: center; box-shadow: 0 8px 22px rgba(0,0,0,.12); }
.card svg { width: 58px; height: 58px; color: var(--gold); margin: 0 auto 12px; }
.card h3 { font-size: 1.2rem; color: #4a484b; }
.card p { font-size: .88rem; color: #666; margin: 0; }

/* Equipe e sobre */
.team { background: linear-gradient(#f4f4f4, #f4f4f4 40%, #1b1b1b); }
.team img { width: 100%; max-width: 1600px; margin: 0 auto; }
.about { padding-top: 30px; }
.about p { font-size: 1rem; }
.about .btn { margin: 10px 0 40px; }
.insta { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 26px; }
.insta a { display: block; overflow: hidden; border-radius: 6px; aspect-ratio: 4 / 5; }
.insta img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.insta a:hover img { transform: scale(1.05); }
.insta a { position: relative; }
.insta a.is-video::after { content: ""; position: absolute; top: 10px; right: 10px; border-style: solid; border-width: 9px 0 9px 15px; border-color: transparent transparent transparent #fff; filter: drop-shadow(0 1px 3px rgba(0,0,0,.6)); }

/* Unidades */
.units h2 { color: var(--gold-dark); }
.units__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; margin: 28px auto 0; max-width: 920px; }
.unit { background: #fff; border-radius: 14px; padding: 22px; box-shadow: 0 6px 18px rgba(0,0,0,.08); border-top: 4px solid var(--gold); display: flex; flex-direction: column; }
.unit h3 { font-size: 1.15rem; color: #333; }
.unit p { display: flex; gap: 8px; font-size: .9rem; color: #555; margin-bottom: .8em; }
.unit p .ic { color: var(--gold-dark); margin-top: 3px; }
.unit small { color: #888; }
.unit a:not(.btn) { color: #333; }
.unit .btn { margin-top: auto; align-self: flex-start; }

/* Rodapé */
.footer { background: #fff; color: #555; padding: 40px 0 90px; border-top: 1px solid #e3e3e3; font-size: .9rem; }
.footer__in { display: grid; grid-template-columns: 240px 1fr; gap: 32px; align-items: center; }
.footer__in img { width: 220px; }
.footer p { margin: 0 0 .5em; }
.footer a { color: #333; }
.legal { font-size: .8rem; color: #888; }

/* WhatsApp flutuante */
.float-whats { position: fixed; right: 18px; bottom: 18px; z-index: 60; width: 58px; height: 58px; border-radius: 50%; background: var(--green); color: #fff; display: grid; place-items: center; box-shadow: 0 6px 18px rgba(0,0,0,.35); }
.float-whats svg { width: 32px; height: 32px; }

/* Tablet */
@media (max-width: 960px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .units__grid { grid-template-columns: 1fr; max-width: 560px; margin-left: auto; margin-right: auto; }
  .review { flex-basis: calc((100% - 20px) / 2); }
}

/* Celular */
@media (max-width: 680px) {
  .topbar__in { grid-template-columns: 1fr auto; min-height: 56px; }
  .topbar__phone { display: none; }
  .topbar__logo img { width: 190px; }
  .topbar__social { gap: 6px; }
  .topbar__social a { width: 32px; height: 32px; }

  .hero { flex-direction: column; align-items: stretch; min-height: 0; }
  .hero__photo { position: relative; width: 100%; height: auto; -webkit-mask-image: linear-gradient(to bottom, #000 70%, transparent); mask-image: linear-gradient(to bottom, #000 70%, transparent); }
  .hero__in { margin-top: -90px; padding-top: 0; padding-bottom: 70px; }
  .hero__text { max-width: none; text-align: center; }
  .hero__text > p:not(.hero__sub) { text-align: center; }

  .dark { padding: 56px 0; }
  .review { flex-basis: 86%; }
  .reviews__nav { display: none; }
  .cards { grid-template-columns: 1fr 1fr; gap: 12px; }
  .card { padding: 18px 10px; }
  .card h3 { font-size: 1rem; }
  .insta { grid-template-columns: repeat(2, 1fr); }
  .footer__in { grid-template-columns: 1fr; text-align: center; }
  .footer__in img { margin: 0 auto; width: 180px; }
}
