:root {
  --brown: #5f3711;
  --brown-deep: #3d230a;
  --gold: #d4c098;
  --gold-soft: #e8dcc4;
  --cream: #f3f2f0;
  --paper: #faf9f7;
  --text: #4a4a4a;
  --muted: #7a7a7a;
  --heading: #5f3711;
  --white: #ffffff;
  --overlay-dark: rgba(12, 2, 0, 0.55);
  --container: 1140px;
  --radius: 2px;
}

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

html { scroll-behavior: smooth; overflow-x: clip; }

body {
  margin: 0;
  font-family: Roboto, system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background: var(--white);
  overflow-x: clip;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--brown); text-decoration: none; }
a:hover { color: var(--gold); }

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--brown);
  color: #fff;
  padding: 8px 12px;
  z-index: 1000;
}
.skip-link:focus { left: 8px; }

.container {
  width: min(100% - 40px, var(--container));
  margin-inline: auto;
}

.kicker {
  margin: 0 0 6px;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
}

h1, h2, h3, h4 {
  font-family: Roboto, sans-serif;
  color: var(--heading);
  line-height: 1.25;
  margin: 0 0 0.6em;
}

/* Topbar */
.topbar {
  background: var(--brown);
  color: #fff;
  font-size: 13px;
}
.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 45px;
  padding: 8px 0;
}
.topbar-phones {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.topbar-phones a,
.topbar-social {
  color: #fff;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.topbar-phones a:hover,
.topbar-social:hover { color: var(--gold); }
.topbar svg { width: 13px; height: 13px; fill: currentColor; flex-shrink: 0; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 5px 30px rgba(0, 0, 0, 0.1);
}
.nav-bar {
  background: #fff url("/assets/img/topo.webp") center / cover no-repeat;
  min-height: 168px;
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 168px;
}
.logo img {
  width: 126px;
  height: auto;
}
.nav-desktop {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-desktop a {
  color: var(--brown);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.02em;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
}
.nav-desktop a:hover,
.nav-desktop a[aria-current="page"] {
  color: var(--brown-deep);
  border-bottom-color: var(--gold);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  background: #fff;
  cursor: pointer;
  margin-left: auto;
}
.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: var(--brown);
}
.mobile-panel {
  display: none;
  background: #fff;
  border-top: 1px solid var(--gold-soft);
}
.mobile-panel.open { display: block; }
.mobile-panel ul { list-style: none; margin: 0; padding: 12px 20px 20px; }
.mobile-panel a {
  display: block;
  padding: 12px 0;
  color: var(--brown);
  font-weight: 500;
  border-bottom: 1px solid #eee;
}

/* Hero */
.hero {
  position: relative;
  min-height: 600px;
  display: flex;
  align-items: center;
  background: #000 url("/assets/img/banner.webp") center / cover no-repeat;
  color: #fff;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0.28) 55%, rgba(0, 0, 0, 0.15) 100%);
}
.hero-content {
  position: relative;
  z-index: 1;
  max-width: 720px;
  padding: 72px 0;
}
.hero h1 {
  color: #fff;
  font-size: clamp(28px, 3.4vw, 42px);
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin: 0 0 18px;
}
.hero-list {
  margin: 0;
  padding: 0;
  list-style: none;
  font-family: "Roboto Slab", serif;
  font-size: 18px;
  line-height: 1.7;
  color: #f4f4f4;
}

/* About */
.about {
  position: relative;
  padding: 72px 0 40px;
  background: #fff url("/assets/img/bg-triangle.webp") top center / 100% auto no-repeat;
}
.about-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 40px;
  align-items: start;
}
.about h2 {
  font-size: clamp(26px, 3vw, 34px);
  text-transform: uppercase;
  letter-spacing: 0.01em;
  margin-bottom: 18px;
}
.about p { margin: 0 0 14px; }
.about .kicker { color: #b9a57a; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 28px;
  background: var(--brown);
  color: #fff;
  font-size: 15px;
  font-weight: 500;
  border: 0;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, transform 0.2s;
}
.btn:hover { background: var(--gold); color: var(--brown-deep); }
.btn-gold {
  background: var(--gold);
  color: #fff;
}
.btn-gold:hover { background: var(--brown); color: #fff; }
.btn-ghost {
  background: transparent;
  border: 1px solid #fff;
  color: #fff;
}
.btn-ghost:hover { background: var(--gold); border-color: var(--gold); color: var(--brown); }

.team-box {
  background: var(--brown);
  color: var(--gold);
  padding: 28px 22px 18px;
}
.team-box h2 {
  color: var(--gold);
  text-align: center;
  font-size: 22px;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}
.team-box .lead {
  text-align: center;
  font-size: 13px;
  color: var(--gold-soft);
  margin: 0 0 20px;
  line-height: 1.45;
}
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.team-card {
  color: #fff;
  text-align: center;
}
.team-card img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: top;
  border: 2px solid var(--gold);
  background: #2a1808;
}
.team-card span {
  display: block;
  margin-top: 8px;
  font-size: 12px;
  line-height: 1.3;
  color: #fff;
}
.team-card:hover img { opacity: 0.92; }

/* Parallax + soluções */
.parallax-lamp {
  position: relative;
  background: #1a120c url("/assets/img/lampada.webp") center / cover no-repeat;
  background-attachment: fixed;
  padding: 88px 0 96px;
}
.parallax-lamp::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(12, 8, 4, 0.52);
}
.parallax-inner { position: relative; z-index: 1; }
.parallax-lamp .kicker,
.parallax-lamp h2,
.parallax-lamp h3 { color: #fff; text-align: center; }
.parallax-lamp h2 {
  font-size: 14px;
  letter-spacing: 0.28em;
  font-weight: 500;
  margin-bottom: 8px;
}
.parallax-lamp h3 {
  font-size: clamp(26px, 3.2vw, 36px);
  letter-spacing: 0.06em;
  margin-bottom: 18px;
}
.gold-line {
  width: 72px;
  height: 3px;
  background: var(--gold);
  margin: 0 auto 40px;
}

.solucoes-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 22px;
}
.solucao-card {
  grid-column: span 2;
  background: rgba(255, 255, 255, 0.96);
  overflow: hidden;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.18);
  display: flex;
  flex-direction: column;
  min-height: 100%;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.solucao-card:nth-child(4) { grid-column: 2 / span 2; }
.solucao-card:nth-child(5) { grid-column: 4 / span 2; }
.solucao-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
}
.solucao-card img {
  width: 100%;
  height: 168px;
  object-fit: cover;
}
.solucao-card .body {
  padding: 18px 16px 22px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}
.solucao-card h4 {
  font-size: 15px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin: 0;
  min-height: 2.6em;
}
.solucao-card .btn { align-self: center; margin-top: auto; }

/* Book */
.book {
  position: relative;
  background: #0c0200 url("/assets/img/banner-central.webp") center / cover no-repeat;
  color: #fff;
  text-align: center;
  padding: 88px 0;
}
.book::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(12, 2, 0, 0.62);
}
.book-inner { position: relative; z-index: 1; max-width: 820px; margin: 0 auto; }
.book h2 {
  color: #fff;
  font-size: clamp(28px, 3.4vw, 40px);
  margin-bottom: 10px;
}
.book h3 {
  color: var(--gold);
  font-size: 18px;
  font-weight: 400;
  margin-bottom: 6px;
}
.book .author {
  color: #fff;
  font-size: 16px;
  margin-bottom: 18px;
}
.book p {
  color: #ececec;
  font-size: 16px;
  margin: 0 0 28px;
}

/* CTA trio */
.cta-trio {
  position: relative;
  background: #282828 url("/assets/img/textura-escura.webp") center / cover no-repeat;
  padding: 72px 0 80px;
}
.cta-trio::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(40, 40, 40, 0.82);
}
.cta-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.cta-card {
  background: rgba(20, 14, 8, 0.35);
  border: 1px solid rgba(212, 192, 152, 0.25);
  padding: 36px 22px;
  text-align: center;
  color: #fff;
}
.cta-icon {
  width: 58px;
  height: 58px;
  margin: 0 auto 16px;
  background: var(--gold);
  color: var(--brown);
  display: grid;
  place-items: center;
}
.cta-icon svg { width: 26px; height: 26px; fill: currentColor; }
.cta-card h3 {
  color: #fff;
  letter-spacing: 0.08em;
  font-size: 16px;
  margin-bottom: 14px;
}
.cta-card .gold-line { margin-bottom: 22px; }

/* Page banner */
.page-banner {
  background: var(--brown);
  color: #fff;
  padding: 22px 0;
}
.page-banner h1 {
  color: #fff;
  font-size: 18px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0;
}

.page-intro {
  padding: 56px 0 24px;
}
.page-intro h2 {
  font-size: clamp(26px, 3vw, 34px);
  text-transform: uppercase;
}
.page-intro p,
.prose p { margin: 0 0 14px; }
.prose { padding-bottom: 24px; }

/* Split inner */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
  padding: 28px 0 56px;
}

/* Gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.gallery-grid a {
  display: block;
  overflow: hidden;
  background: #eee;
}
.gallery-grid img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  transition: transform 0.35s ease;
}
.gallery-grid a:hover img { transform: scale(1.06); }
.gallery-grid a:nth-child(1) img,
.gallery-grid a:nth-child(7) img,
.gallery-grid a:nth-child(8) img,
.gallery-grid a:nth-child(9) img,
.gallery-grid a:nth-child(10) img,
.gallery-grid a:nth-child(11) img { height: 200px; }

.estrutura {
  background: var(--cream);
  padding: 64px 0;
}
.estrutura-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}
.estrutura h2 { text-transform: none; font-size: 32px; }
.estrutura img {
  width: 100%;
  cursor: zoom-in;
}

/* Lawyers */
.lawyer {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 36px;
  align-items: start;
  padding: 36px 0;
  border-bottom: 1px solid #ece7dc;
}
.lawyer:last-child { border-bottom: 0; }
.lawyer img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: top;
  border: 3px solid var(--gold);
  cursor: zoom-in;
}
.lawyer h2 {
  font-size: 22px;
  margin-bottom: 6px;
}
.lawyer .oab {
  color: var(--gold);
  font-weight: 500;
  margin-bottom: 12px;
}

/* Areas page */
.areas-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  padding: 12px 0 64px;
}
.area-block {
  background: var(--paper);
  border-left: 4px solid var(--gold);
  padding: 22px 24px;
}
.area-block h3 {
  font-size: 18px;
  margin-bottom: 10px;
}
.area-block ul {
  margin: 0;
  padding-left: 18px;
  color: var(--text);
}
.area-block li { margin-bottom: 4px; }

/* Local */
.map-wrap {
  width: 100%;
  min-height: 380px;
  margin: 18px 0 28px;
  border: 0;
}
.map-wrap iframe {
  width: 100%;
  height: 380px;
  border: 0;
  display: block;
}
.local-photo { margin: 0 0 56px; }

/* Contact */
.contato-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 48px;
  padding: 48px 0 72px;
}
.contato-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.contato-list li { margin-bottom: 12px; }
.contato-list a,
.contato-list span {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
}
.contato-list svg { width: 16px; height: 16px; fill: var(--brown); }

.form label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin: 0 0 6px;
  color: var(--brown);
}
.form input,
.form textarea {
  width: 100%;
  border: 1px solid #d9d2c6;
  background: #fff;
  padding: 12px 14px;
  font: inherit;
  color: var(--text);
  margin-bottom: 16px;
}
.form input:focus,
.form textarea:focus {
  outline: 2px solid var(--gold);
  border-color: var(--gold);
}
.hp { position: absolute; left: -9999px; height: 0; overflow: hidden; }
.form-feedback {
  display: none;
  margin-top: 12px;
  padding: 10px 12px;
  font-size: 14px;
}
.form-feedback.ok { display: block; background: #e8f6ea; color: #1d6b32; }
.form-feedback.err { display: block; background: #fdecec; color: #8a1f1f; }

/* Footer */
.site-footer { background: var(--cream); }
.footer-main {
  display: grid;
  grid-template-columns: 1.1fr 0.8fr 1fr;
  gap: 24px;
  padding: 50px 0;
  align-items: center;
}
.footer-list {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 14px;
}
.footer-list li { margin-bottom: 8px; }
.footer-list a,
.footer-list span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
}
.footer-list svg { width: 14px; height: 14px; fill: var(--brown); }
.footer-mark {
  min-height: 180px;
  background: url("/assets/img/marca-dagua.webp") center / contain no-repeat;
  display: grid;
  place-items: center;
}
.footer-mark a { color: var(--brown); }
.footer-mark svg { width: 28px; height: 28px; fill: var(--brown); }
.footer-bar {
  background: var(--brown);
  color: #fff;
  text-align: center;
  padding: 28px 16px;
  font-size: 13px;
}
.footer-bar a { color: #fff; }
.footer-bar a:hover { color: var(--gold); }

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(12, 8, 4, 0.92);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 80;
  padding: 24px;
}
.lightbox.open { display: flex; }
.lightbox img {
  max-width: min(92vw, 1100px);
  max-height: 88vh;
  object-fit: contain;
}
.lightbox-close {
  position: absolute;
  top: 16px;
  right: 20px;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 32px;
  cursor: pointer;
}

/* WhatsApp */
.wa-float {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 60;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}
.wa-float svg { width: 30px; height: 30px; fill: currentColor; }
.wa-float:hover { color: #fff; transform: scale(1.06); }

@media (max-width: 1024px) {
  .about-grid,
  .split,
  .estrutura-grid,
  .contato-grid,
  .lawyer { grid-template-columns: 1fr; }
  .lawyer { max-width: 420px; }
  .nav-desktop { gap: 18px; }
  .hero { min-height: 480px; }
}

@media (max-width: 900px) {
  .nav-desktop { display: none; }
  .nav-toggle { display: block; }
  .nav-bar,
  .nav-inner { min-height: 110px; }
  .logo img { width: 88px; }
  .solucoes-grid { grid-template-columns: 1fr 1fr; }
  .solucao-card,
  .solucao-card:nth-child(4),
  .solucao-card:nth-child(5) { grid-column: auto; }
  .cta-grid,
  .footer-main { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr 1fr; }
  .parallax-lamp { background-attachment: scroll; }
}

@media (max-width: 640px) {
  .topbar-phones { font-size: 12px; gap: 6px 12px; }
  .hero { min-height: 420px; }
  .hero-content { padding: 48px 0; }
  .team-grid { grid-template-columns: 1fr 1fr; }
  .solucoes-grid,
  .areas-grid,
  .gallery-grid { grid-template-columns: 1fr; }
  .container { width: min(100% - 28px, var(--container)); }
}
