:root {
  --ink: #151515;
  --charcoal: #20201d;
  --muted: #6c6a62;
  --line: #ded8ca;
  --paper: #f7f3ea;
  --ivory: #fffdf8;
  --gold: #b58a43;
  --gold-dark: #866632;
  --green: #34463e;
  --green-soft: #e6ebe4;
  --shadow: 0 18px 44px rgba(20, 20, 18, 0.1);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, Arial, sans-serif;
  line-height: 1.6;
}

img {
  max-width: 100%;
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: nowrap;
  gap: 20px;
  padding: 9px clamp(18px, 4vw, 64px);
  background: rgba(12, 12, 11, 0.5);
  border-top: 3px solid var(--green);
  border-bottom: 1px solid rgba(181, 138, 67, 0.24);
  box-shadow: 0 10px 30px rgba(20, 20, 18, 0.04);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  text-decoration: none;
}

.brand-logo {
  display: block;
  width: clamp(174px, 19.4vw, 248px);
  height: auto;
}

.calculator-header {
  padding-top: 8px;
  padding-bottom: 8px;
  border-top-width: 2px;
}

.calculator-header .calculator-brand-logo {
  width: clamp(172px, 18vw, 230px);
  max-height: none;
  height: auto;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  padding: 0;
  color: #d7ad57;
  background: rgba(255, 253, 248, 0.08);
  border: 1px solid rgba(255, 253, 248, 0.28);
  border-radius: 6px;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 19px;
  height: 2px;
  background: currentColor;
  border-radius: 999px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.site-header.nav-open .menu-toggle span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.site-header.nav-open .menu-toggle span:nth-child(2) {
  opacity: 0;
}

.site-header.nav-open .menu-toggle span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex: 1;
  gap: clamp(18px, 2.4vw, 34px);
  color: var(--ivory);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.main-nav a {
  color: #d7ad57;
  white-space: nowrap;
}

.main-nav a,
.button,
.service-panel a,
.pillar a {
  text-decoration: none;
}

.hero {
  position: relative;
  min-height: min(820px, calc(100vh - 75px));
  display: grid;
  align-items: center;
  overflow: hidden;
  background: var(--charcoal);
}

.hero-media,
.hero-shade {
  position: absolute;
  inset: 0;
}

.hero-media {
  background-image: url("assets/hero-arremate-juridico-corrigido-ai.png");
  background-position: center right;
  background-size: cover;
  opacity: 0.92;
}

.hero-shade {
  background:
    linear-gradient(90deg, rgba(18, 18, 17, 0.94) 0%, rgba(18, 18, 17, 0.74) 38%, rgba(18, 18, 17, 0.12) 72%),
    linear-gradient(0deg, rgba(18, 18, 17, 0.58), rgba(18, 18, 17, 0.04) 45%);
}

.hero-content {
  position: relative;
  width: min(820px, calc(100% - 36px));
  margin-left: clamp(18px, 8vw, 112px);
  padding: 88px 0 104px;
  color: var(--ivory);
}

.eyebrow,
.section-kicker,
.tag,
.article-card span {
  margin: 0 0 14px;
  color: var(--gold);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: "Playfair Display", Georgia, serif;
  line-height: 1.04;
  letter-spacing: 0;
}

h1 {
  max-width: 760px;
  font-size: clamp(2.45rem, 4.35vw, 4.35rem);
  line-height: 1.08;
}

h2 {
  font-size: clamp(2rem, 4vw, 3.45rem);
}

h3 {
  font-size: clamp(1.35rem, 2vw, 2rem);
}

.hero-copy {
  max-width: 660px;
  margin: 24px 0 0;
  color: rgba(255, 253, 248, 0.82);
  font-size: clamp(1.02rem, 1.5vw, 1.2rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 22px;
  font-weight: 800;
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.button.primary {
  color: var(--ink);
  background: linear-gradient(135deg, #b58a43 0%, #d6b05f 48%, #a7782e 100%);
  box-shadow: 0 10px 24px rgba(181, 138, 67, 0.16);
}

.button.primary::before {
  content: "";
  position: absolute;
  inset: -40% auto -40% -70%;
  width: 48%;
  transform: skewX(-24deg);
  background: linear-gradient(90deg, transparent, rgba(255, 247, 201, 0.74), transparent);
  opacity: 0;
}

.button.primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 30px rgba(181, 138, 67, 0.3);
}

.button.primary:hover::before {
  left: 125%;
  opacity: 1;
  transition: left 0.72s ease, opacity 0.2s ease;
}

.button.secondary {
  color: var(--ivory);
  border: 1px solid rgba(255, 253, 248, 0.46);
}

.hero-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 42px;
}

.hero-proof span {
  padding: 9px 13px;
  color: rgba(255, 253, 248, 0.82);
  border: 1px solid rgba(255, 253, 248, 0.2);
  background: rgba(255, 253, 248, 0.08);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.section {
  padding: clamp(64px, 9vw, 118px) clamp(18px, 5vw, 72px);
}

.section-heading {
  display: grid;
  gap: 10px;
  max-width: 860px;
  margin-bottom: 36px;
}

.intro {
  background: var(--ivory);
  border-bottom: 1px solid var(--line);
}

.intro-grid {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(220px, 0.42fr);
  gap: clamp(24px, 5vw, 72px);
  align-items: center;
}

.intro-grid p,
.authority-copy p,
.contact p,
.section-heading + p {
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
}

.intro-copy {
  display: grid;
  gap: 18px;
}

.intro-copy h2 {
  margin-bottom: 4px;
}

.intro-button {
  width: fit-content;
  margin-top: 6px;
}

.intro-profile {
  position: relative;
  width: min(100%, 320px);
  margin: 0;
  justify-self: end;
  overflow: hidden;
  background: var(--green);
  border: 1px solid rgba(181, 138, 67, 0.42);
  border-radius: 8px;
  box-shadow: 0 20px 54px rgba(20, 20, 18, 0.16);
}

.intro-profile img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center top;
}

.intro-profile figcaption {
  display: grid;
  gap: 4px;
  padding: 18px 20px;
  color: var(--ivory);
  background: linear-gradient(155deg, var(--green), #1d2b25);
}

.intro-profile strong {
  color: #d7ad57;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.35rem;
}

.intro-profile span {
  color: rgba(255, 253, 248, 0.78);
  font-size: 0.92rem;
}

.intro-capability {
  margin: clamp(34px, 5vw, 56px) 0 16px;
  color: var(--green);
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(1.6rem, 3vw, 2.25rem);
  font-weight: 700;
}

.intro-highlights {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin-top: 0;
  background: var(--line);
  border: 1px solid var(--line);
}

.intro-highlights div {
  min-height: 0;
  padding: 16px 22px 18px;
  background: var(--paper);
}

.step-title {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 4px;
}

.intro-highlights strong {
  display: block;
  color: var(--gold-dark);
  font-family: "Playfair Display", Georgia, serif;
  font-size: 2rem;
  line-height: 1;
}

.intro-highlights h3 {
  margin: 0;
  font-size: 1.08rem;
}

.intro-highlights p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.5;
}

.services {
  background: var(--paper);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.service-panel {
  padding: clamp(26px, 4vw, 46px);
  background: var(--ivory);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 14px 36px rgba(20, 20, 18, 0.08);
}

.service-panel.featured {
  color: var(--ivory);
  background: linear-gradient(155deg, var(--charcoal), #2d332d);
  border-color: rgba(181, 138, 67, 0.45);
}

.service-panel.ai-panel {
  background: #f0f2ec;
  border-color: rgba(52, 70, 62, 0.22);
}

.service-panel p:not(.tag) {
  color: var(--muted);
}

.service-panel.featured p:not(.tag),
.service-panel.featured li {
  color: rgba(255, 253, 248, 0.75);
}

.service-panel ul {
  display: grid;
  gap: 10px;
  margin: 24px 0;
  padding: 0;
  list-style: none;
}

.service-panel li {
  position: relative;
  padding-left: 22px;
  color: #4d4b44;
}

.service-panel li::before {
  content: "";
  position: absolute;
  top: 0.75em;
  left: 0;
  width: 8px;
  height: 8px;
  background: var(--gold);
}

.service-panel a,
.pillar a {
  display: inline-flex;
  margin-top: 4px;
  color: var(--gold);
  font-weight: 800;
}

.authority {
  position: relative;
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(280px, 0.82fr);
  gap: clamp(28px, 6vw, 84px);
  align-items: center;
  color: var(--ivory);
  background:
    linear-gradient(90deg, rgba(18, 18, 17, 0.92), rgba(18, 18, 17, 0.72) 45%, rgba(18, 18, 17, 0.36)),
    url("assets/autoridade-escritorio-advocacia.png") center right / cover;
  border-top: 1px solid rgba(181, 138, 67, 0.3);
  border-bottom: 1px solid rgba(181, 138, 67, 0.3);
}

.authority .section-kicker {
  color: var(--gold);
}

.authority-copy p {
  color: rgba(255, 253, 248, 0.78);
}

.metric-strip {
  display: grid;
  gap: 12px;
}

.metric-strip div {
  display: grid;
  grid-template-columns: 76px 1fr;
  align-items: center;
  min-height: 92px;
  padding: 20px;
  background: rgba(255, 253, 248, 0.92);
  border-left: 4px solid var(--gold);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.18);
}

.metric-strip strong {
  color: var(--green);
  font-family: "Playfair Display", Georgia, serif;
  font-size: 2rem;
}

.metric-strip span {
  color: var(--charcoal);
  font-weight: 800;
}

.blog {
  background: var(--paper);
}

.blog-hero {
  padding: clamp(76px, 10vw, 132px) clamp(18px, 5vw, 72px);
  color: var(--ivory);
  background:
    linear-gradient(90deg, rgba(18, 18, 17, 0.94), rgba(18, 18, 17, 0.76) 48%, rgba(18, 18, 17, 0.24)),
    url("assets/cidade-imoveis-noite.png") center / cover;
}

.pillar-hero {
  padding: clamp(82px, 11vw, 146px) clamp(18px, 5vw, 72px);
  color: var(--ivory);
  background:
    linear-gradient(90deg, rgba(18, 18, 17, 0.94), rgba(18, 18, 17, 0.74) 50%, rgba(18, 18, 17, 0.2)),
    url("assets/guia-leilao-martelo-casa-duvida.png") center right / cover;
}

.pillar-hero h1 {
  max-width: 820px;
  font-size: clamp(2.7rem, 5.4vw, 5rem);
}

.pillar-hero p:not(.section-kicker) {
  max-width: 720px;
  margin: 24px 0 0;
  color: rgba(255, 253, 248, 0.82);
  font-size: 1.12rem;
}

.pillar-guide {
  background: var(--ivory);
}

.pillar-content {
  max-width: 900px;
  margin: 0 auto;
}

.pillar-content h2 {
  margin-top: 44px;
}

.pillar-content h2:first-child {
  margin-top: 0;
}

.pillar-content p,
.pillar-content li {
  color: var(--muted);
  font-size: 1.06rem;
}

.pillar-content ul {
  display: grid;
  gap: 10px;
  padding-left: 22px;
}

.guide-callout {
  display: grid;
  gap: 6px;
  margin: 30px 0;
  padding: 22px;
  color: var(--ivory);
  background: var(--green);
  border-left: 4px solid var(--gold);
  border-radius: 8px;
}

.guide-callout span {
  color: rgba(255, 253, 248, 0.8);
}

.guide-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 28px 0;
}

.guide-grid div {
  padding: 22px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.guide-grid h3 {
  font-size: 1.35rem;
}

.pillar-articles {
  background: var(--paper);
}

.blog-hero h1 {
  max-width: 860px;
  font-size: clamp(2.4rem, 5vw, 4.8rem);
}

.blog-hero p:not(.section-kicker) {
  max-width: 680px;
  margin: 24px 0 0;
  color: rgba(255, 253, 248, 0.8);
  font-size: 1.08rem;
}

.blog-directory {
  background: var(--paper);
}

.blog-featured-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.blog-featured-card {
  display: grid;
  grid-template-columns: minmax(180px, 0.72fr) 1fr;
  overflow: hidden;
  min-height: 320px;
  color: var(--ink);
  background: var(--ivory);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 14px 36px rgba(20, 20, 18, 0.08);
}

.blog-featured-card.dark {
  color: var(--ivory);
  background: var(--green);
  border-color: var(--green);
}

.blog-featured-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.blog-featured-card div {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(24px, 3vw, 38px);
}

.blog-featured-card p:not(.tag) {
  color: var(--muted);
}

.blog-featured-card.dark p:not(.tag) {
  color: rgba(255, 253, 248, 0.76);
}

.blog-featured-card a {
  margin-top: 18px;
  color: var(--gold);
  font-weight: 800;
  text-decoration: none;
}

.blog-latest {
  padding-top: 0;
}

.blog-tools {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(280px, 420px);
  gap: 24px;
  align-items: end;
  margin-bottom: 30px;
}

.blog-search {
  color: var(--charcoal);
}

.blog-search input {
  margin-top: 8px;
  color: var(--ink);
  background: var(--ivory);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.blog-post-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.blog-post-card {
  overflow: hidden;
  background: var(--ivory);
  border: 1px solid var(--line);
  border-radius: 8px;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.blog-post-card:hover {
  transform: translateY(-4px);
  border-color: rgba(181, 138, 67, 0.58);
  box-shadow: var(--shadow);
}

.blog-post-card[hidden] {
  display: none;
}

.blog-post-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
}

.blog-post-card div {
  padding: 22px;
}

.blog-post-card span {
  display: block;
  margin-bottom: 10px;
  color: var(--gold-dark);
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
}

.blog-post-card h3 {
  font-size: clamp(1.25rem, 1.7vw, 1.58rem);
  line-height: 1.16;
}

.blog-post-card p {
  margin: 14px 0 0;
  color: var(--muted);
}

.post-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 4px;
  margin: 6px 0 0;
}

.post-tags a {
  display: inline-flex;
  align-items: center;
  min-height: 18px;
  padding: 1px 6px;
  color: var(--green);
  background: var(--green-soft);
  border: 1px solid rgba(52, 70, 62, 0.14);
  border-radius: 999px;
  font-size: 0.6rem;
  font-weight: 400;
  line-height: 1.15;
  text-decoration: none;
}

.post-tags a:hover {
  color: var(--ivory);
  background: var(--green);
}

.blog-post-card a {
  display: inline-flex;
  margin-top: 10px;
  color: var(--gold-dark);
  font-weight: 800;
  text-decoration: none;
}

.blog-post-card .post-tags a {
  margin-top: 0;
  color: var(--green);
  background: var(--green-soft);
  border: 1px solid rgba(52, 70, 62, 0.14);
  font-size: 0.6rem;
  font-weight: 400;
}

.blog-post-card .post-tags a:hover {
  color: var(--ivory);
  background: var(--green);
}

.blog-empty {
  padding: 24px;
  color: var(--muted);
  background: var(--ivory);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.blog-pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-top: 30px;
}

.blog-pagination .page-status,
.blog-pagination button,
.blog-pagination .page-ellipsis {
  min-height: 38px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 800;
}

.blog-pagination .page-status {
  display: inline-flex;
  align-items: center;
  padding: 0 16px;
  color: var(--ivory);
  background: var(--green);
}

.blog-pagination button {
  min-width: 38px;
  padding: 0 13px;
  color: var(--green);
  background: transparent;
  border: 1px solid var(--green);
}

.blog-pagination button.active,
.blog-pagination button:hover {
  color: var(--ivory);
  background: var(--green);
}

.blog-pagination button:disabled {
  opacity: 0.42;
  cursor: not-allowed;
}

.blog-pagination .page-ellipsis {
  display: inline-flex;
  align-items: center;
  padding: 0 5px;
  color: var(--green);
}

.blog-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-bottom: 22px;
}

.pillar {
  padding: clamp(24px, 3vw, 36px);
  background: var(--ivory);
  border: 1px solid var(--line);
  border-radius: 8px;
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.pillar:hover {
  transform: translateY(-3px);
  border-color: rgba(181, 138, 67, 0.55);
  box-shadow: var(--shadow);
}

.pillar.dark {
  color: var(--ivory);
  background: var(--green);
  border-color: var(--green);
}

.pillar p:not(.tag) {
  color: var(--muted);
}

.pillar.dark p:not(.tag) {
  color: rgba(255, 253, 248, 0.77);
}

.article-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.article-card {
  min-height: 235px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 22px;
  text-decoration: none;
  background: var(--ivory);
  border: 1px solid var(--line);
  border-radius: 8px;
  position: relative;
  overflow: hidden;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.article-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(181, 138, 67, 0.11), rgba(52, 70, 62, 0.08));
  opacity: 0;
  transition: opacity 180ms ease;
}

.article-card > * {
  position: relative;
  z-index: 1;
}

.article-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: rgba(181, 138, 67, 0.58);
}

.article-card:hover::before {
  opacity: 1;
}

.article-card h3 {
  font-size: 1.28rem;
}

.article-card p {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.article-page {
  max-width: 900px;
  margin: 0 auto;
  padding: clamp(72px, 10vw, 120px) clamp(20px, 5vw, 48px);
}

.article-page h1 {
  max-width: 780px;
  margin: 0 0 22px;
  font-size: clamp(2.35rem, 5vw, 4.6rem);
}

.article-page h2 {
  margin-top: 44px;
}

.article-page p,
.article-page li {
  color: var(--muted);
  font-size: 1.05rem;
}

.article-lead {
  max-width: 760px;
  color: var(--charcoal);
  font-size: 1.2rem;
}

.article-page ul {
  display: grid;
  gap: 10px;
  margin: 22px 0;
  padding-left: 22px;
}

.article-hero-image {
  width: 100%;
  aspect-ratio: 16 / 8;
  object-fit: cover;
  display: block;
  margin: 34px 0;
  border-radius: 8px;
  border: 1px solid var(--line);
}

.article-cta {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: center;
  margin-top: 48px;
  padding: clamp(24px, 4vw, 38px);
  color: var(--ivory);
  background: var(--charcoal);
  border: 1px solid rgba(181, 138, 67, 0.45);
  border-radius: 10px;
  box-shadow: 0 18px 44px rgba(20, 20, 18, 0.12);
}

.article-cta h2 {
  margin: 0 0 10px;
}

.article-cta p:not(.section-kicker) {
  color: rgba(255, 253, 248, 0.76);
}

.article-cta-actions {
  display: grid;
  gap: 12px;
  min-width: min(280px, 100%);
}

.article-cta .button.secondary {
  color: var(--gold);
  border-color: rgba(181, 138, 67, 0.58);
}

.article-cta .button.secondary:hover {
  color: var(--ivory);
  border-color: var(--gold);
  background: rgba(255, 253, 248, 0.08);
}

.faq {
  color: var(--ivory);
  background:
    linear-gradient(90deg, rgba(18, 18, 17, 0.9), rgba(18, 18, 17, 0.7) 52%, rgba(18, 18, 17, 0.35)),
    url("assets/cidade-imoveis-horizonte.png") center / cover;
  border-top: 1px solid rgba(181, 138, 67, 0.24);
  border-bottom: 1px solid rgba(181, 138, 67, 0.24);
}

.faq .section-kicker {
  color: var(--gold);
}

.faq-list {
  display: grid;
  gap: 12px;
  max-width: 940px;
}

details {
  padding: 22px 24px;
  background: rgba(255, 253, 248, 0.7);
  border: 1px solid rgba(255, 253, 248, 0.32);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.16);
}

summary {
  cursor: pointer;
  color: var(--charcoal);
  font-weight: 800;
}

details p {
  margin: 14px 0 0;
  color: var(--muted);
}

.contact {
  display: grid;
  grid-template-columns: minmax(260px, 0.9fr) minmax(280px, 1fr);
  gap: clamp(24px, 5vw, 72px);
  color: var(--ink);
  background: var(--ivory);
  border-top: 1px solid var(--line);
}

.contact p {
  color: var(--muted);
  margin-top: 18px;
}

.contact-form {
  display: grid;
  gap: 14px;
  padding: clamp(22px, 3vw, 32px);
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.contact label {
  color: var(--charcoal);
}

.contact input,
.contact select,
.contact textarea {
  color: var(--ink);
  background: var(--ivory);
  border: 1px solid rgba(108, 106, 98, 0.28);
}

.contact ::placeholder {
  color: rgba(108, 106, 98, 0.62);
}

label {
  display: grid;
  gap: 6px;
  color: rgba(255, 253, 248, 0.82);
  font-size: 0.9rem;
  font-weight: 700;
}

input,
select,
textarea {
  width: 100%;
  min-height: 46px;
  padding: 12px 14px;
  color: var(--ivory);
  background: rgba(255, 253, 248, 0.08);
  border: 1px solid rgba(255, 253, 248, 0.22);
  border-radius: 0;
  font: inherit;
}

textarea {
  resize: vertical;
}

::placeholder {
  color: rgba(255, 253, 248, 0.48);
}

button {
  min-height: 50px;
  color: var(--ink);
  background: var(--gold);
  border: 0;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.form-success {
  margin: 4px 0 0;
  padding: 14px 16px;
  color: var(--ivory);
  background: rgba(52, 70, 62, 0.86);
  border: 1px solid rgba(255, 253, 248, 0.22);
  font-size: 0.94rem;
}

.contact .form-success {
  color: #fff;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 36px;
  padding: 34px clamp(18px, 5vw, 72px);
  color: #d7ad57;
  background: #263c34;
}

.footer-brand {
  max-width: 660px;
}

.footer-logo {
  width: min(250px, 72vw);
  height: auto;
  display: block;
  margin-bottom: 14px;
}

.site-footer p {
  margin: 0;
  color: rgba(255, 232, 178, 0.9);
  line-height: 1.7;
}

.footer-contact {
  display: grid;
  gap: 16px;
  min-width: min(360px, 100%);
}

.footer-contact-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-contact-list li,
.footer-social {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255, 232, 178, 0.94);
  font-size: 0.95rem;
  line-height: 1.45;
}

.footer-contact a,
.footer-social {
  color: rgba(255, 232, 178, 0.94);
  text-decoration: none;
}

.footer-contact a:hover,
.footer-social:hover {
  color: var(--ivory);
}

.footer-icon {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  fill: none;
  stroke: #d7ad57;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.footer-icon.instagram {
  width: 22px;
  height: 22px;
  flex-basis: 22px;
}

.calculator-hero {
  padding-top: clamp(72px, 7vw, 88px);
  padding-bottom: clamp(42px, 5vw, 68px);
  color: var(--ivory);
  background:
    linear-gradient(90deg, rgba(18, 18, 17, 0.1), rgba(18, 18, 17, 0.1)),
    url("assets/hero-calculadora-viabilidade.png") center / cover;
}

.calculator-hero .section-kicker {
  color: var(--gold);
}

.calculator-hero h1 {
  max-width: 840px;
  color: var(--gold);
}

.calculator-hero p:not(.section-kicker) {
  max-width: 720px;
  color: rgba(255, 253, 248, 0.78);
  font-size: 1.08rem;
  line-height: 1.75;
}

.calculator {
  background: var(--paper);
}

.calculator-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.32fr) minmax(280px, 0.68fr);
  gap: 24px;
  align-items: start;
  min-width: 0;
}

.calculator-form,
.calculator-results {
  min-width: 0;
  background: var(--ivory);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 16px 38px rgba(20, 20, 18, 0.08);
}

.calculator-form {
  padding: clamp(18px, 3vw, 30px);
}

.calculator-mode {
  display: inline-flex;
  gap: 6px;
  padding: 5px;
  margin-bottom: 22px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 999px;
}

.mode-option {
  min-height: 42px;
  padding: 0 18px;
  color: var(--green);
  background: transparent;
  border: 0;
  border-radius: 999px;
  font-weight: 800;
  cursor: pointer;
}

.mode-option.active {
  color: var(--ivory);
  background: var(--green);
}

.calc-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  min-width: 0;
}

.calc-grid fieldset {
  display: grid;
  gap: 12px;
  min-width: 0;
  margin: 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.calc-grid legend {
  padding: 0 7px;
  color: var(--gold-dark);
  font-weight: 800;
}

.calc-grid label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 700;
}

.calc-grid input {
  width: 100%;
  min-height: 42px;
  padding: 10px 12px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  font: inherit;
}

.calculator-results {
  position: sticky;
  top: 92px;
  display: grid;
  gap: 16px;
  padding: clamp(18px, 3vw, 26px);
}

.result-card.main {
  padding: 22px;
  color: var(--ivory);
  background: linear-gradient(155deg, var(--green), #1d2b25);
  border-radius: 8px;
}

.result-card.main.warning {
  background: linear-gradient(155deg, #4a3522, #241b15);
}

.result-card span,
.result-grid span {
  display: block;
  margin-bottom: 8px;
  color: rgba(255, 232, 178, 0.86);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.result-card strong {
  display: block;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(1.52rem, 3vw, 2.82rem);
  white-space: nowrap;
  overflow-wrap: normal;
}

.result-card p {
  margin: 12px 0 0;
  color: rgba(255, 253, 248, 0.8);
  font-size: 0.94rem;
}

.result-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  min-width: 0;
}

.result-grid div,
.financing-summary {
  min-width: 0;
  padding: 14px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.result-grid span {
  color: var(--gold-dark);
}

.result-grid strong {
  display: block;
  font-size: clamp(0.72rem, 1.6vw, 0.86rem);
  font-weight: 500;
  white-space: nowrap;
  overflow-wrap: normal;
}

.financing-summary h2,
.tax-summary h2,
.benchmark-summary h2,
.sensitivity-summary h2 {
  margin: 0 0 10px;
  font-size: 1rem;
}

.financing-summary dl,
.tax-summary dl,
.benchmark-summary dl {
  display: grid;
  gap: 5px;
  margin: 0;
}

.financing-summary div,
.tax-summary div,
.benchmark-summary div {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 5px;
  border-bottom: 1px solid var(--line);
}

.financing-summary div:last-child,
.tax-summary div:last-child,
.benchmark-summary div:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.financing-summary dt,
.tax-summary dt,
.benchmark-summary dt {
  color: var(--muted);
  font-size: 0.82rem;
}

.financing-summary dd,
.tax-summary dd,
.benchmark-summary dd {
  margin: 0;
  font-size: 0.82rem;
  font-weight: 800;
  text-align: right;
  white-space: nowrap;
  overflow-wrap: normal;
}

.tax-summary,
.benchmark-summary,
.sensitivity-summary {
  padding: 12px;
  background: #fbf7ed;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.tax-summary h2,
.benchmark-summary h2,
.sensitivity-summary h2 {
  margin-bottom: 10px;
  font-size: 1rem;
}

.tax-summary dl,
.benchmark-summary dl {
  gap: 5px;
}

.tax-summary div,
.benchmark-summary div {
  gap: 10px;
  padding-bottom: 5px;
}

.tax-summary dt,
.tax-summary dd,
.benchmark-summary dt,
.benchmark-summary dd {
  font-size: 0.82rem;
}

.benchmark-summary {
  background: #f0f2ec;
}

.sensitivity-summary {
  overflow-x: auto;
}

.sensitivity-summary table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.74rem;
}

.sensitivity-summary th,
.sensitivity-summary td {
  padding: 6px 6px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}

.sensitivity-summary th {
  color: var(--gold-dark);
  font-size: 0.62rem;
  text-transform: uppercase;
}

.sensitivity-summary tr:last-child td {
  border-bottom: 0;
}

.financing-footnote {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.68rem;
  line-height: 1.34;
}

.calculator-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.65;
}

.calculator-cta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(210px, 340px) auto;
  gap: clamp(22px, 4vw, 54px);
  align-items: center;
  color: var(--ink);
  background: var(--ivory);
  border-top: 1px solid var(--line);
}

.calculator-cta h2 {
  max-width: 860px;
  color: var(--ink);
  font-size: clamp(1.8rem, 3.2vw, 3rem);
}

.calculator-cta p:not(.section-kicker) {
  max-width: 820px;
  margin: 16px 0 0;
  color: var(--muted);
}

.calculator-cta-actions {
  display: grid;
  gap: 12px;
  min-width: min(330px, 100%);
}

.calculator-cta-visual {
  margin: 0;
}

.calculator-cta-visual img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 16px 34px rgba(20, 20, 18, 0.12);
}

.calculator-cta .button.secondary {
  color: var(--green);
  border-color: rgba(52, 70, 62, 0.32);
  background: transparent;
}

.calculator-cta .button.secondary:hover {
  color: var(--ink);
  border-color: var(--gold);
  background: rgba(181, 138, 67, 0.08);
}

@media (min-width: 1280px) {
  .hero-content {
    margin-left: clamp(72px, 7vw, 118px);
  }

  h1 {
    font-size: 4.05rem;
  }
}

@media (max-width: 980px) {
  .site-header {
    gap: 16px;
  }

  .main-nav {
    justify-content: flex-end;
    gap: 18px;
    padding-top: 2px;
  }

  .intro-grid,
  .service-grid,
  .authority,
  .blog-layout,
  .blog-featured-grid,
  .blog-featured-card,
  .blog-tools,
  .pillar-guide,
  .guide-grid,
  .article-cta,
  .contact,
  .calculator-shell,
  .calculator-cta {
    grid-template-columns: 1fr;
  }

  .article-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .blog-post-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .intro-highlights {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .calculator-results {
    position: static;
  }

  .calculator-cta-actions {
    min-width: 0;
  }

  .hero {
    min-height: 760px;
  }
}

@media (max-width: 640px) {
  .site-header {
    align-items: center;
    flex-wrap: wrap;
    gap: 10px 14px;
    padding: 8px 16px;
  }

  .menu-toggle {
    display: inline-flex;
    margin-left: auto;
  }

  .main-nav {
    flex: 0 0 100%;
    display: none;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    width: 100%;
    overflow: hidden;
    padding: 6px 0 2px;
    font-size: 0.72rem;
    letter-spacing: 0.06em;
  }

  .site-header.nav-open .main-nav {
    display: flex;
  }

  .main-nav a {
    padding: 11px 0;
    border-top: 1px solid rgba(255, 253, 248, 0.16);
  }

  .brand-logo {
    width: 160px;
  }

  .hero {
    min-height: 720px;
  }

  .hero-media {
    background-position: center;
    opacity: 0.48;
  }

  .hero-shade {
    background: linear-gradient(90deg, rgba(18, 18, 17, 0.95), rgba(18, 18, 17, 0.76));
  }

  .hero-content {
    width: calc(100% - 36px);
    margin: 0 auto;
    padding-top: 62px;
  }

  .button {
    width: 100%;
  }

  .article-grid {
    grid-template-columns: 1fr;
  }

  .blog-post-grid {
    grid-template-columns: 1fr;
  }

  .calc-grid,
  .result-grid {
    grid-template-columns: 1fr;
  }

  .calculator-mode {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
    border-radius: 8px;
  }

  .intro-highlights {
    grid-template-columns: 1fr;
  }

  .site-footer {
    display: grid;
    gap: 24px;
    padding: 30px 18px;
  }

  .footer-logo {
    width: min(224px, 76vw);
  }

  .footer-contact {
    min-width: 0;
  }

  .footer-contact-list li,
  .footer-social {
    align-items: flex-start;
  }
}

@media (max-width: 420px) {
  .brand-logo {
    width: 164px;
  }

  .main-nav {
    font-size: 0.68rem;
  }

  .result-card strong {
    font-size: clamp(1.35rem, 9vw, 2.1rem);
  }

  .result-grid strong {
    font-size: 0.82rem;
    font-weight: 500;
  }

  .financing-summary dd,
  .tax-summary dd,
  .benchmark-summary dd {
    font-size: 0.78rem;
    font-weight: 500;
  }

  .result-grid div {
    padding: 12px;
  }

  .result-grid {
    grid-template-columns: 1fr;
  }

  .result-grid span {
    font-size: 0.7rem;
  }
}
