:root {
  --orange: #c85a24;
  --orange-2: #e06d2f;
  --orange-dark: #a9471c;
  --blue: #142234;
  --blue-2: #1f3148;
  --ink: #1d1d1f;
  --muted: rgba(20, 34, 52, .68);
  --paper: #f5f1ec;
  --ivory: #fffaf4;
  --warm-sand: #f7ede3;
  --orange-wash: #fff2e9;
  --white: #fffefc;
  --line: rgba(20, 34, 52, .12);
  --orange-line: rgba(200, 90, 36, .22);
  --shadow-image: 0 42px 100px rgba(20, 34, 52, .16);
  --shadow-panel: 0 30px 90px rgba(20, 34, 52, .11);
  --radius-sm: 12px;
  --radius-md: 30px;
  --radius-lg: 20px;
  --radius-pill: 999px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--ivory);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; }
img { max-width: 100%; display: block; }
p { color: var(--muted); font-size: clamp(1rem, 1.1vw, 1.12rem); line-height: 1.75; }
.skip-link { position: absolute; left: -999px; top: 8px; z-index: 1000; background: var(--white); padding: 8px 12px; }
.skip-link:focus { left: 8px; }
.container { width: min(1120px, calc(100% - 48px)); margin: 0 auto; }
.section { padding: clamp(104px, 12vw, 178px) 0; scroll-margin-top: 92px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
  padding: 10px max(22px, calc((100vw - 1120px) / 2));
  background: rgba(255, 250, 244, .78);
  color: var(--ink);
  backdrop-filter: saturate(180%) blur(22px);
  border-bottom: 1px solid rgba(20, 34, 52, .07);
}
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; font-weight: 700; letter-spacing: .02em; }
.brand img { height: 43px; width: auto; filter: none; }
.brand-text { display: none; font-family: Spectral, "Libre Baskerville", Georgia, serif; font-weight: 700; }
.nav { display: flex; align-items: center; gap: 24px; font-size: .92rem; }
.nav a { text-decoration: none; color: rgba(20, 34, 52, .72); transition: color .2s ease; }
.nav a:hover { color: var(--orange); }
.nav a[aria-current="true"] { color: var(--orange-dark); font-weight: 600; }
.nav-cta {
  border: 1px solid rgba(200, 90, 36, .35);
  color: var(--orange-dark) !important;
  padding: 9px 17px;
  border-radius: var(--radius-pill);
  background: rgba(255, 254, 252, .46);
}
.nav-cta:hover { background: rgba(200, 90, 36, .08); }
.menu-toggle { display: none; background: rgba(255, 254, 252, .6); color: var(--ink); border: 1px solid rgba(20, 34, 52, .12); border-radius: var(--radius-pill); padding: 8px 13px; }

.hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  color: var(--ink);
  min-height: calc(100vh - 72px);
  padding: clamp(72px, 8vw, 126px) 0 clamp(96px, 10vw, 150px);
  display: grid;
  place-items: center;
  background:
    radial-gradient(ellipse at 78% 42%, rgba(200, 90, 36, .155) 0%, rgba(200, 90, 36, .075) 27%, transparent 58%),
    radial-gradient(ellipse at 17% 10%, rgba(20, 34, 52, .145) 0%, rgba(20, 34, 52, .055) 36%, transparent 66%),
    linear-gradient(135deg, #fffaf4 0%, #f7eadc 43%, #eef1f3 100%);
}
.hero::before,
.hero::after {
  content: "";
  position: absolute;
  pointer-events: none;
}
.hero::before {
  inset: -18%;
  z-index: -2;
  opacity: .72;
  background:
    linear-gradient(115deg, transparent 0%, rgba(255, 255, 255, .48) 33%, rgba(255, 255, 255, .12) 49%, transparent 67%),
    linear-gradient(125deg, transparent 0 58%, rgba(20, 34, 52, .055) 58.3% 58.8%, transparent 59.1% 100%),
    linear-gradient(118deg, transparent 0 72%, rgba(200, 90, 36, .07) 72.2% 72.8%, transparent 73.1% 100%);
  transform: rotate(-2deg);
}
.hero::after {
  inset: 0;
  z-index: -1;
  opacity: .17;
  background-image: radial-gradient(rgba(20, 34, 52, .065) .68px, transparent .72px);
  background-size: 3px 3px;
  mix-blend-mode: multiply;
}
.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(390px, .95fr);
  align-items: center;
  gap: clamp(48px, 7vw, 104px);
}
.hero-copy { position: relative; min-width: 0; }
h1, h2, h3 { margin: 0; color: var(--blue); letter-spacing: -.02em; text-wrap: balance; overflow-wrap: break-word; }
h1, h2 { font-family: Spectral, "Libre Baskerville", Georgia, serif; font-weight: 700; }
h3 { font-family: Spectral, "Libre Baskerville", Georgia, serif; font-weight: 600; }
h1 { font-size: clamp(2.95rem, 5vw, 5rem); line-height: .98; max-width: 720px; }
h2 { font-size: clamp(2.25rem, 4.1vw, 4.45rem); line-height: 1; max-width: 900px; }
h3 { font-size: clamp(1.45rem, 2.3vw, 2.25rem); line-height: 1.05; }
.lead { margin-top: 24px; font-size: clamp(1.08rem, 1.5vw, 1.32rem); max-width: 660px; color: rgba(20, 34, 52, .72); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 22px;
  border-radius: var(--radius-pill);
  text-decoration: none;
  border: 1px solid transparent;
  font-weight: 700;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease, background .2s ease, color .2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { color: #fff; background: linear-gradient(135deg, var(--orange), var(--orange-2)); box-shadow: 0 14px 34px rgba(200, 90, 36, .24); }
.btn-primary:hover { background: linear-gradient(135deg, var(--orange-dark), var(--orange)); }
.btn-secondary { color: var(--blue); background: var(--white); border-color: rgba(20, 34, 52, .16); }
.btn-secondary:hover { border-color: rgba(200, 90, 36, .45); color: var(--orange-dark); }
.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 30px;
  margin-top: 38px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
  max-width: 660px;
  list-style: none;
}
.hero-points li {
  position: relative;
  padding-left: 16px;
  color: rgba(20, 34, 52, .82);
  font-weight: 600;
  font-size: .95rem;
  line-height: 1.3;
}
.hero-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .5em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--orange);
}
.hero-media {
  position: relative;
  margin: 0;
}
.hero-media::before {
  content: "";
  position: absolute;
  inset: 8% -10% 4% -14%;
  z-index: -1;
  pointer-events: none;
  border-radius: 42%;
  opacity: .72;
  filter: blur(22px);
  background: radial-gradient(ellipse at center, rgba(200, 90, 36, .18) 0%, rgba(20, 34, 52, .08) 42%, transparent 72%);
}
.hero-media img {
  width: 100%;
  height: auto;
  aspect-ratio: 1600 / 1160;
  object-fit: cover;
  object-position: center;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-image);
  filter: saturate(.96) contrast(1.02) brightness(1);
}

.two-col { display: grid; grid-template-columns: .95fr 1.05fr; gap: clamp(52px, 8vw, 112px); align-items: center; }
.institutional {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 7% 18%, rgba(200, 90, 36, .08), transparent 26%),
    linear-gradient(180deg, var(--ivory) 0%, #fff7f0 100%);
}
.image-frame {
  position: relative;
  min-height: 430px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: linear-gradient(135deg, rgba(200, 90, 36, .12), rgba(216, 199, 176, .22));
  box-shadow: var(--shadow-image);
}
.image-frame img { width: 100%; height: 100%; min-height: 430px; object-fit: cover; transform: scale(1.02); }
.image-frame.image-missing::after { content: "Imagem institucional indisponível no servidor antigo"; position: absolute; inset: 0; display: grid; place-items: center; padding: 30px; color: var(--muted); text-align: center; }
.editorial-copy { max-width: 620px; min-width: 0; }
.editorial-copy p:not(.statement) { max-width: 600px; }
.statement {
  margin-top: 30px;
  padding: 22px 26px;
  border-radius: var(--radius-sm);
  background: var(--orange-wash);
  color: var(--blue);
  font-size: clamp(1.15rem, 1.65vw, 1.55rem);
  line-height: 1.45;
  font-weight: 600;
}
.section-heading { max-width: 900px; margin-bottom: clamp(48px, 7vw, 84px); position: relative; }

.areas {
  background:
    radial-gradient(circle at 88% 8%, rgba(200, 90, 36, .12), transparent 24%),
    linear-gradient(180deg, var(--warm-sand) 0%, var(--orange-wash) 100%);
}
.practice-list { border-top: 1px solid var(--line); }
.practice-item {
  display: grid;
  grid-template-columns: minmax(240px, .85fr) minmax(280px, 1.15fr);
  gap: clamp(20px, 4vw, 56px);
  align-items: start;
  padding: clamp(24px, 3.2vw, 38px) 0;
  border-bottom: 1px solid var(--line);
  transition: color .25s ease, transform .25s ease, border-color .25s ease;
}
.practice-item:hover { transform: translateX(10px); border-color: rgba(200, 90, 36, .34); }
.practice-item h3 { letter-spacing: -.035em; }
.practice-item p { margin: 0; max-width: 560px; color: rgba(20, 34, 52, .66); }
.practice-item:hover h3 { color: var(--orange-dark); }

.team {
  background:
    radial-gradient(circle at 14% 12%, rgba(200, 90, 36, .08), transparent 28%),
    linear-gradient(180deg, #fffaf5 0%, #f8eee5 100%);
}
.team-list { display: grid; gap: clamp(70px, 10vw, 118px); }
.team-member {
  display: grid;
  grid-template-columns: minmax(280px, 410px) minmax(0, 1fr);
  gap: clamp(38px, 7vw, 92px);
  align-items: center;
}
.team-member:nth-child(even) { grid-template-columns: minmax(0, 1fr) minmax(280px, 410px); }
.team-member:nth-child(even) .team-photo { order: 2; }
.team-photo {
  margin: 0;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: linear-gradient(135deg, var(--blue), var(--orange));
  box-shadow: var(--shadow-image);
}
.team-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.team-member:hover .team-photo img { transform: scale(1.035); }
.team-bio { max-width: 650px; min-width: 0; }
.team-bio h3 { font-size: clamp(2rem, 3.25vw, 3.5rem); line-height: 1; }
.person-role {
  display: inline-flex;
  width: fit-content;
  margin: 20px 0 10px;
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  background: var(--orange-wash);
  color: var(--orange-dark);
  font-size: .82rem;
  font-weight: 800;
  letter-spacing: .02em;
}
.portrait-missing { opacity: .16; }

.location {
  background:
    radial-gradient(circle at 82% 22%, rgba(200, 90, 36, .18), transparent 28%),
    linear-gradient(135deg, var(--blue) 0%, #101b2b 100%);
  color: #fffaf4;
}
.location h2 { color: #fffaf4; }
.location p, .location address { color: rgba(255, 250, 244, .76); }
.location .btn-secondary { color: #fffaf4; border-color: rgba(255, 250, 244, .24); background: rgba(255, 250, 244, .08); }
.location .btn-secondary:hover { color: #fff; border-color: rgba(255, 178, 139, .55); }
address { font-style: normal; font-size: 1.08rem; margin: 24px 0 26px; }
.map-card {
  position: relative;
  min-height: 400px;
  overflow: hidden;
  background: linear-gradient(135deg, #fffaf5, #f1dfd1);
  color: var(--ink);
  border-radius: var(--radius-lg);
  box-shadow: 0 42px 110px rgba(0, 0, 0, .28);
}
.map-card > img { width: 100%; height: 100%; min-height: 400px; object-fit: cover; filter: saturate(.88) contrast(.96); }
.map-badge {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 24px;
  display: grid;
  gap: 4px;
  padding: 20px 22px;
  border-radius: 24px;
  background: var(--white);
  box-shadow: var(--shadow-panel);
}
.map-card strong { font-size: clamp(1.25rem, 2.2vw, 1.85rem); color: var(--orange-dark); letter-spacing: -.03em; }
.map-card small, .map-card span { color: rgba(30, 35, 41, .72); }
.map-credit { position: absolute; right: 14px; top: 12px; padding: 4px 8px; border-radius: var(--radius-pill); background: rgba(255, 254, 252, .82); font-size: .72rem; }

.contact {
  background:
    radial-gradient(circle at 82% 18%, rgba(200, 90, 36, .15), transparent 26%),
    linear-gradient(135deg, var(--orange-wash) 0%, #f5e7dd 100%);
}
.contact-grid { display: grid; grid-template-columns: minmax(0, .95fr) minmax(430px, 1fr); gap: clamp(42px, 5.8vw, 72px); align-items: start; }
.contact-grid > div { min-width: 0; }
.contact h2 { font-size: clamp(2.35rem, 3.8vw, 4.05rem); max-width: 700px; }
.phone a { color: var(--orange-dark); font-weight: 800; }
.contact-form {
  width: 100%;
  max-width: 540px;
  justify-self: end;
  padding: clamp(28px, 3vw, 40px);
  display: grid;
  gap: 16px;
  border-radius: var(--radius-lg);
  background: var(--ivory);
  box-shadow: var(--shadow-panel);
  border: 1px solid var(--orange-line);
}
.contact-form label { display: grid; gap: 7px; font-weight: 760; color: var(--blue); }
input, textarea {
  width: 100%;
  border: 1px solid rgba(20, 34, 52, .12);
  border-radius: var(--radius-sm);
  padding: 15px 16px;
  font: inherit;
  background: var(--white);
}
input:focus, textarea:focus { outline: 3px solid rgba(200, 90, 36, .18); border-color: rgba(200, 90, 36, .55); }
input { min-height: 54px; }
textarea { min-height: 150px; resize: vertical; }
.form-note { margin: 0; color: var(--muted); font-size: .92rem; }
.footer { background: var(--blue); color: rgba(255, 255, 255, .82); padding: 44px 0; border-top: 5px solid var(--orange); }
.footer-grid { display: grid; grid-template-columns: 1fr 1.3fr .8fr; gap: 32px; }
.footer strong { color: var(--white); }
.footer p { margin: 8px 0 0; color: rgba(255, 255, 255, .76); }
.footer a { color: #ffd8c6; text-decoration-color: rgba(255, 216, 198, .45); text-underline-offset: 3px; }
.footer a:hover { color: #ffb28b; }

@media (max-width: 920px) {
  .section { padding: 84px 0; }
  .hero {
    min-height: auto;
    background:
      radial-gradient(ellipse at 70% 18%, rgba(200, 90, 36, .11) 0%, transparent 56%),
      linear-gradient(180deg, #fffaf4 0%, #eef1f3 100%);
  }
  .hero::before { opacity: .46; }
  .hero::after { opacity: .12; }
  .hero-media::before { opacity: .45; filter: blur(14px); }
  .hero-grid, .two-col, .contact-grid, .footer-grid { grid-template-columns: 1fr; }
  .contact-form { justify-self: stretch; max-width: none; }
  .nav { position: fixed; inset: 72px 16px auto 16px; display: none; flex-direction: column; align-items: stretch; background: var(--ivory); padding: 18px; border-radius: 22px; box-shadow: var(--shadow-panel); border: 1px solid rgba(200, 90, 36, .18); }
  .nav.is-open { display: flex; }
  .menu-toggle { display: inline-flex; }
  .hero-grid { gap: 38px; }
  .practice-item { grid-template-columns: 1fr; gap: 8px; }
  .team-member, .team-member:nth-child(even) { grid-template-columns: 1fr; }
  .team-member:nth-child(even) .team-photo { order: 0; }
}
@media (max-width: 620px) {
  .container { width: min(100% - 28px, 1120px); }
  .site-header { min-height: 64px; padding: 10px 14px; }
  .brand img { height: 34px; max-width: 188px; }
  .hero { padding-top: 58px; padding-bottom: 74px; }
  h1 { font-size: clamp(2.55rem, 11.5vw, 3.55rem); letter-spacing: -.03em; }
  h2 { font-size: clamp(2.1rem, 9vw, 2.9rem); letter-spacing: -.03em; }
  .lead { font-size: 1rem; }
  .hero-actions { display: grid; gap: 10px; }
  .hero-actions .btn { width: 100%; }
  .hero-points { gap: 10px 24px; margin-top: 30px; padding-top: 22px; }
  .hero-media img, .image-frame, .team-photo, .map-card, .contact-form { border-radius: 16px; }
  .image-frame, .image-frame img { min-height: 300px; }
  .practice-list { margin-top: 8px; }
  .practice-item { grid-template-columns: 1fr; gap: 8px; padding: 26px 0; }
  .team-list { gap: 60px; }
  .team-bio h3 { font-size: clamp(2rem, 11vw, 3rem); }
  .team-photo { max-height: 420px; }
  .map-card { min-height: 320px; }
  .map-card > img { min-height: 320px; }
  .map-badge { left: 14px; right: 14px; bottom: 14px; padding: 16px; border-radius: 20px; }
}
