:root {
  --bg: #f6f5f2;
  --surface: #ffffff;
  --ink: #111318;
  --muted: #5d6677;
  --line: #dde2eb;
  --accent: #b08d57;
  --accent-strong: #8d6b3c;
  --accent-soft: #f2eadc;
  --shadow: 0 24px 64px rgba(17, 19, 24, 0.12);
  --content-max: min(94vw, 1840px);
  --gutter: clamp(0.9rem, 1.6vw, 1.4rem);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Manrope", sans-serif;
  color: var(--ink);
  background: radial-gradient(circle at 85% 0%, var(--accent-soft) 0, transparent 37%),
    radial-gradient(circle at 10% 20%, #efe7d8 0, transparent 38%),
    var(--bg);
  line-height: 1.7;
  padding-bottom: 0;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: "DM Serif Display", serif;
  line-height: 1.12;
}

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

main img {
  box-shadow: 0 18px 42px rgba(16, 24, 39, 0.18);
}

.hero img {
  box-shadow: none;
}

.topbar {
  width: var(--content-max);
  max-width: none;
  margin: 0 auto;
  padding: 1.4rem var(--gutter);
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 1rem;
}

.brand {
  text-decoration: none;
  color: var(--ink);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.9rem;
}

.menu-toggle {
  display: none;
  border: 1px solid var(--line);
  border-radius: 0.62rem;
  background: rgba(255, 255, 255, 0.9);
  color: var(--ink);
  padding: 0.42rem 0.74rem;
  font-size: 0.84rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
}

.section-nav {
  display: flex;
  justify-content: center;
  gap: 0.35rem;
  flex-wrap: wrap;
}

.section-nav a {
  text-decoration: none;
  color: var(--muted);
  border-radius: 999px;
  padding: 0.4rem 0.7rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1;
}

.section-nav a:hover,
.section-nav a:focus-visible {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.78);
}

.market-switch {
  display: flex;
  gap: 0.55rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.market-switch a {
  text-decoration: none;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.44rem 0.78rem;
  background: rgba(255, 255, 255, 0.8);
  font-size: 0.85rem;
  font-weight: 700;
}

.market-switch a.active {
  background: var(--ink);
  color: #ffffff;
  border-color: var(--ink);
}

main {
  width: var(--content-max);
  max-width: none;
  margin: 0 auto;
  padding: 0 var(--gutter) 0.4rem;
}

.hero {
  position: relative;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  border-radius: 0;
  overflow: hidden;
  height: auto;
  min-height: 0;
  background-image: url("https://images.unsplash.com/photo-1600585154340-be6161a56a0c?auto=format&fit=crop&w=1800&q=80");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero img {
  display: none;
}

.hero-overlay {
  position: relative;
  inset: auto;
  background: linear-gradient(100deg, rgba(11, 16, 28, 0.76) 0%, rgba(11, 16, 28, 0.36) 42%, rgba(11, 16, 28, 0.12) 100%);
  color: #ffffff;
  padding-block: clamp(1.3rem, 3.8vw, 3rem);
  padding-inline-start: max(var(--gutter), calc((100vw - var(--content-max)) / 2 + var(--gutter)));
  padding-inline-end: var(--gutter);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  max-width: min(62rem, 60%);
  z-index: 1;
}

.eyebrow {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.72rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.88);
}

.hero-overlay h1 {
  margin-top: 1rem;
  font-size: clamp(1.9rem, 4.2vw, 4.2rem);
  max-width: 11.8ch;
}

.hero-overlay p {
  margin-top: 1.3rem;
  font-size: clamp(1rem, 1.15vw, 1.25rem);
  max-width: 54ch;
  color: rgba(255, 255, 255, 0.92);
}

.hero-actions {
  margin-top: 1.9rem;
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.hero-actions.hero-main-ctas {
  width: min(100%, 30rem);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem;
}

.hero-actions.hero-main-ctas .btn {
  width: 100%;
  text-align: center;
  white-space: nowrap;
}

.hero-actions.hero-main-ctas .hero-doc-link {
  grid-column: 1 / -1;
  margin-top: 0.05rem;
  white-space: normal;
}

.hero-actions.stacked {
  flex-direction: column;
  align-items: flex-start;
  width: min(100%, 18.5rem);
}

.hero-actions.stacked .btn {
  width: 100%;
  text-align: center;
  white-space: normal;
}

.btn {
  text-decoration: none;
  border-radius: 0.78rem;
  padding: 0.84rem 1.05rem;
  font-weight: 700;
  font-size: clamp(0.9rem, 0.95vw, 1rem);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 14px 28px rgba(14, 22, 41, 0.2);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 20px 36px rgba(14, 22, 41, 0.24);
}

.btn:active {
  transform: translateY(0);
}

.btn.primary {
  background: linear-gradient(130deg, #c6a36a, var(--accent-strong));
  color: #ffffff;
}

.btn.ghost {
  border: 1px solid rgba(255, 255, 255, 0.38);
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
}

.btn.ghost.dark {
  color: var(--ink);
  border-color: var(--line);
  background: #f8f2e8;
}

.process {
  margin-top: 3.4rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2rem;
}

.process,
.paraguay-story,
.intent,
.docs,
.final-cta,
.site-footer {
  max-width: min(100%, 74rem);
  margin-left: auto;
  margin-right: auto;
}

.process-intro {
  grid-column: 1 / -1;
  padding-bottom: 0.8rem;
  text-align: center;
}

.process-intro h2 {
  margin-top: 0.72rem;
  font-size: clamp(2rem, 3.6vw, 3rem);
  max-width: 18ch;
  margin-left: auto;
  margin-right: auto;
}

.process-intro p {
  margin-top: 0.85rem;
  color: var(--muted);
  max-width: 72ch;
  margin-left: auto;
  margin-right: auto;
}

.process article {
  padding: 1rem 0 0.2rem;
  border-top: 1px solid var(--line);
}

.process span {
  display: inline-block;
  border-radius: 999px;
  padding: 0.3rem 0.52rem;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  font-weight: 800;
  color: var(--accent-strong);
  background: var(--accent-soft);
}

.process h3 {
  margin-top: 0.65rem;
  font-size: 1.4rem;
}

.process p {
  margin-top: 0.55rem;
  color: var(--muted);
}

.paraguay-story {
  margin-top: 4.2rem;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 2.4rem;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 3rem 0;
}

.story-head {
  grid-column: 1 / 13;
  text-align: center;
}

.story-lead {
  grid-column: 1 / 8;
  align-self: start;
}

.story-points {
  grid-column: 8 / 13;
}

.story-media {
  grid-column: 1 / 13;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 1rem;
}

.story-media img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 0.95rem;
}

.story-media img:first-child {
  height: 235px;
}

.paraguay-story .eyebrow {
  margin: 0 auto;
  width: fit-content;
  color: #7e6642;
  font-size: 0.76rem;
  letter-spacing: 0.16em;
}

.paraguay-story h2 {
  margin-top: 0.8rem;
  font-size: clamp(1.3rem, 2.1vw, 2rem);
  max-width: none;
  white-space: nowrap;
  margin-left: auto;
  margin-right: auto;
}

.paraguay-story .story-lead {
  margin-top: 1rem;
  font-size: 1.12rem;
  color: var(--muted);
  max-width: 52ch;
}

.paraguay-story-en h2 {
  white-space: normal;
  max-width: 46ch;
  font-size: clamp(1.65rem, 2.35vw, 2.35rem);
  line-height: 1.16;
  text-wrap: balance;
}

.story-points {
  margin: 0;
  padding: 0;
  list-style: none;
  align-self: start;
}

.story-points li {
  margin: 0;
  padding: 0.8rem 0;
  font-size: 1.03rem;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
}

.intent {
  margin-top: 3.4rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  align-items: start;
}

.intent-card {
  padding: 1.3rem 0 1.1rem;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 1.6rem;
  align-items: center;
}

.intent-card.reverse .intent-copy {
  order: 2;
}

.intent-card.reverse .intent-media {
  order: 1;
}

.intent-media img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 0.9rem;
}

.intent-tag {
  margin: 0;
  color: var(--accent-strong);
  font-size: 0.76rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 800;
}

.intent-card h2 {
  margin-top: 0.7rem;
  font-size: 2.05rem;
}

.intent-card p {
  margin-top: 0.85rem;
  color: var(--muted);
}

.intent-card ul {
  margin: 1rem 0 0;
  padding-left: 1.1rem;
}

.intent-card li {
  margin-top: 0.55rem;
  color: var(--muted);
}

.docs {
  margin-top: 3.4rem;
  display: block;
  border-top: 0;
  padding: 1.25rem 0 0.75rem;
}

.docs .eyebrow {
  color: #7e6642;
  text-align: center;
}

.docs h2 {
  margin-top: 0.8rem;
  font-size: 2.4rem;
  text-align: center;
}

.docs p {
  margin-top: 0.9rem;
  color: var(--muted);
  text-align: center;
  max-width: 58ch;
  margin-left: auto;
  margin-right: auto;
}

.docs-copy {
  max-width: 64rem;
  margin-left: auto;
  margin-right: auto;
}

.docs-points {
  margin: 1.1rem 0 0;
  padding-left: 1.25rem;
  list-style: decimal;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem 1.1rem;
  max-width: 60rem;
  margin-left: auto;
  margin-right: auto;
}

.docs-points li {
  margin: 0;
  padding: 0.2rem 0;
  color: var(--muted);
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.docs-points li::before {
  content: none;
}

.final-cta {
  margin-top: 3.6rem;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  padding: 1.2rem 0 0.8rem;
  text-align: center;
}

.final-cta h2 {
  font-size: 2.6rem;
  max-width: 13ch;
  margin-left: auto;
  margin-right: auto;
}

.final-cta p {
  margin-top: 0.95rem;
  color: #4a3d2d;
  max-width: 62ch;
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.final-cta .hero-actions.final-links {
  margin-top: 1.2rem;
  width: min(100%, 30rem);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  margin-left: auto;
  margin-right: auto;
}

.final-cta .final-links .btn {
  width: 100%;
  text-align: left;
  justify-content: flex-start;
  white-space: normal;
}

.contact-action {
  flex-direction: column;
  align-items: flex-start;
  gap: 0.2rem;
  min-height: 4.4rem;
}

.contact-action .btn-label {
  font-weight: 800;
  line-height: 1.1;
}

.contact-action .btn-hint {
  font-size: 0.76rem;
  font-weight: 600;
  line-height: 1.25;
  opacity: 0.92;
}

.final-cta .final-links .whatsapp-main {
  background: linear-gradient(130deg, #c6a36a, var(--accent-strong));
  color: #ffffff;
  border: 1px solid rgba(141, 107, 60, 0.42);
}

.final-cta .final-links .sms-main {
  background: linear-gradient(130deg, #4d4133, #1d1814);
  color: #ffffff;
  border: 1px solid rgba(29, 24, 20, 0.45);
}

.site-footer {
  margin-top: 1.4rem;
  border-top: 1px solid var(--line);
  padding: 0.45rem 0 0.35rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 0.75rem;
  align-items: start;
}

.site-footer h3 {
  font-size: 1.48rem;
}

.site-footer p {
  margin: 0.45rem 0 0;
  color: var(--muted);
}

.footer-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.55rem;
}

.footer-list li {
  color: var(--muted);
}

.language-select-row {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.language-select {
  border: 1px solid var(--line);
  border-radius: 0.5rem;
  background: transparent;
  color: var(--ink);
  padding: 0.18rem 0.5rem;
  font: inherit;
  font-size: 0.9rem;
}

.footer-list a {
  color: var(--accent-strong);
  text-decoration: none;
  font-weight: 700;
}

.footer-list a:hover {
  text-decoration: underline;
}

.footer-note {
  margin-top: 0.35rem;
  padding-top: 0.35rem;
  border-top: 1px dashed var(--line);
  color: #69583f;
}

.floating-contact {
  position: fixed;
  right: 1rem;
  bottom: max(0.8rem, env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
  gap: 0.58rem;
  z-index: 1000;
}

.floating-btn {
  text-decoration: none;
  width: 3.05rem;
  height: 3.05rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  box-shadow: 0 16px 34px rgba(22, 18, 13, 0.35);
}

.floating-btn svg {
  width: 1.5rem;
  height: 1.5rem;
  fill: currentColor;
}

.floating-btn.whatsapp {
  background: linear-gradient(130deg, #c8a66d, #8d6b3c);
}

.floating-btn.sms {
  background: linear-gradient(130deg, #4d4133, #1d1814);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

#quero-mudar,
#quero-investir,
#i-want-to-move,
#i-want-to-invest,
#como-trabalhamos,
#por-que-paraguai,
#contato-direto,
#how-we-work,
#why-paraguay,
#direct-contact,
#inicio,
#home,
#informacoes-uteis,
#useful-info,
#documentacao,
#documentation {
  scroll-margin-top: 1.5rem;
}

@media (min-width: 2100px) {
  :root {
    --content-max: min(92vw, 2200px);
  }

  .hero-actions.stacked {
    width: min(100%, 20rem);
  }

  .story-media img {
    height: 250px;
  }

  .story-media img:first-child {
    height: 300px;
  }
}

@media (max-width: 1020px) {
  .hero-overlay {
    max-width: 100%;
    padding-inline-start: var(--gutter);
    padding-inline-end: var(--gutter);
  }

  .paraguay-story,
  .docs,
  .process {
    grid-template-columns: 1fr;
  }

  .hero,
  .hero img {
    height: auto;
    min-height: 0;
  }

  .process {
    gap: 1.3rem;
  }

  .story-head,
  .story-lead,
  .story-points,
  .story-media {
    grid-column: 1 / -1;
  }

  .story-media {
    grid-template-columns: 1fr 1fr;
  }

  .story-media img {
    height: 190px;
  }

  .story-media img:first-child {
    grid-column: 1 / -1;
    height: 230px;
  }

  .paraguay-story h2 {
    white-space: normal;
  }

  .final-cta .hero-actions.final-links {
    max-width: 100%;
  }

  .docs-points {
    grid-template-columns: 1fr;
    max-width: 100%;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

@media (max-width: 760px) {
  .topbar {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.7rem;
    padding: 1rem var(--gutter);
    display: grid;
  }

  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .topbar .section-nav,
  .topbar .market-switch {
    display: none;
    grid-column: 1 / -1;
    width: 100%;
  }

  .topbar.menu-open .section-nav {
    display: flex;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 0.45rem;
    padding-top: 0.15rem;
  }

  .topbar.menu-open .market-switch {
    display: flex;
    justify-content: flex-start;
    gap: 0.45rem;
    padding-top: 0.15rem;
  }

  .section-nav a {
    white-space: nowrap;
    flex: 0 0 auto;
  }

  .hero,
  .hero img {
    height: auto;
    min-height: 0;
  }

  .hero-overlay {
    max-width: 100%;
    justify-content: flex-end;
    padding: 1rem;
  }

  .hero-overlay h1 {
    max-width: 14ch;
    font-size: clamp(1.55rem, 6.7vw, 2.2rem);
  }

  .hero-overlay p {
    margin-top: 0.72rem;
    font-size: 0.92rem;
    max-width: 42ch;
  }

  .hero-overlay .hero-actions {
    margin-top: 1.1rem;
  }

  .hero-actions.stacked {
    width: min(100%, 14.5rem);
  }

  .hero-actions.hero-main-ctas {
    grid-template-columns: 1fr;
    width: min(100%, 18rem);
  }

  .hero-actions.hero-main-ctas .btn {
    white-space: normal;
    font-size: 0.9rem;
    padding: 0.72rem 0.82rem;
  }

  .hero-actions.hero-main-ctas .hero-doc-link {
    grid-column: auto;
  }

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

  .intent-card {
    grid-template-columns: 1fr;
    gap: 0.9rem;
  }

  .intent-card.reverse .intent-copy,
  .intent-card.reverse .intent-media {
    order: initial;
  }

  .hero-overlay,
  .process article,
  .intent-card {
    padding: 1.2rem;
  }

  .process-intro {
    padding-bottom: 0.2rem;
  }

  .paraguay-story,
  .docs {
    padding: 1.6rem 0;
  }

  .final-cta {
    padding: 1.6rem 0.8rem;
  }

  .contact-action {
    min-height: 4.7rem;
    padding: 0.74rem 0.78rem;
    gap: 0.14rem;
  }

  .contact-action .btn-hint {
    font-size: 0.71rem;
  }

  .story-media {
    grid-template-columns: 1fr;
  }

  .story-media img,
  .story-media img:first-child {
    height: 170px;
    grid-column: auto;
  }

  .floating-contact {
    right: 0.7rem;
    gap: 0.5rem;
  }

  .floating-btn {
    width: 2.85rem;
    height: 2.85rem;
  }
}
