@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Manrope:wght@500;600;700;800&display=swap');

:root {
  --ink: #091118;
  --navy-950: #061019;
  --navy-900: #0a1822;
  --navy-850: #0d202b;
  --navy-800: #112936;
  --ivory: #f3f0e9;
  --ivory-2: #e9e4dc;
  --paper: #faf8f3;
  --white: #ffffff;
  --muted: #9eabb3;
  --muted-dark: #54616a;
  --copper: #c98345;
  --copper-light: #e2a063;
  --cyan: #56b9d8;
  --line-dark: rgba(255, 255, 255, 0.13);
  --line-light: rgba(9, 17, 24, 0.14);
  --glass: rgba(10, 24, 34, 0.68);
  --shadow: 0 24px 70px rgba(2, 9, 14, 0.2);
  --radius: 4px;
  --container: 1180px;
  --display: "Manrope", "Segoe UI", Arial, sans-serif;
  --sans: "Inter", "Segoe UI", Arial, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--ivory);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

body.nav-open {
  overflow: hidden;
}

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

figure {
  margin: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 3px solid var(--cyan);
  outline-offset: 4px;
}

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

.skip-link {
  position: fixed;
  z-index: 9999;
  top: 12px;
  left: 12px;
  padding: 10px 16px;
  color: var(--ink);
  background: var(--white);
  transform: translateY(-150%);
  transition: transform 180ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  color: var(--copper);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  line-height: 1.2;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 30px;
  height: 1px;
  background: currentColor;
  content: "";
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
.display-title {
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 1.02;
}

h1 {
  font-size: clamp(2.85rem, 6vw, 5.6rem);
}

h2 {
  font-size: clamp(2.1rem, 4.2vw, 4rem);
}

h3 {
  font-size: 1.18rem;
  line-height: 1.3;
}

.lead {
  max-width: 680px;
  color: inherit;
  font-size: clamp(1.04rem, 1.45vw, 1.24rem);
  line-height: 1.65;
}

.section {
  padding: clamp(78px, 9vw, 132px) 0;
}

.section--paper {
  color: var(--ink);
  background:
    radial-gradient(circle at 16% 10%, rgba(201, 131, 69, 0.08), transparent 28%),
    var(--ivory);
}

.section--dark {
  color: var(--white);
  background:
    radial-gradient(circle at 90% 20%, rgba(86, 185, 216, 0.08), transparent 30%),
    var(--navy-950);
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(280px, 0.55fr);
  align-items: end;
  gap: 72px;
  margin-bottom: 54px;
}

.section-heading h2 {
  max-width: 780px;
  margin-bottom: 0;
}

.section-heading p {
  margin-bottom: 0;
  color: var(--muted-dark);
}

.section--dark .section-heading p {
  color: var(--muted);
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 13px;
}

.button {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 20px;
  border: 1px solid transparent;
  border-radius: 2px;
  font-size: 0.83rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  line-height: 1.25;
  text-align: center;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, color 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button--primary {
  color: var(--white);
  border-color: var(--copper-light);
  background: linear-gradient(135deg, #9e5929, var(--copper));
  box-shadow: 0 12px 32px rgba(201, 131, 69, 0.22);
}

.button--secondary {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.45);
  background: rgba(6, 16, 25, 0.36);
}

.button--dark {
  color: var(--white);
  background: var(--navy-950);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--copper);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.text-link::after {
  content: "→";
  transition: transform 180ms ease;
}

.text-link:hover::after {
  transform: translateX(5px);
}

/* Header */
.site-header {
  position: sticky;
  z-index: 1000;
  top: 0;
  color: var(--white);
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
  background: rgba(3, 8, 12, 0.94);
  backdrop-filter: blur(18px);
}

.header-inner {
  display: grid;
  min-height: 76px;
  grid-template-columns: 220px 1fr auto;
  align-items: center;
  gap: 30px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  justify-self: start;
}

.brand img {
  width: 49px;
  height: 49px;
  border-radius: 50%;
  object-fit: cover;
}

.brand-copy {
  display: grid;
  line-height: 1;
}

.brand-copy strong {
  font-size: 1.06rem;
  font-weight: 500;
  letter-spacing: 0.025em;
}

.brand-copy small {
  margin-top: 7px;
  color: #aeb6bc;
  font-size: 0.58rem;
  letter-spacing: 0.03em;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
}

.site-nav a {
  position: relative;
  padding: 27px 0 24px;
  color: #d7dde0;
  font-size: 0.78rem;
  font-weight: 600;
}

.site-nav a::after {
  position: absolute;
  right: 0;
  bottom: 17px;
  left: 0;
  height: 1px;
  background: var(--copper);
  content: "";
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 180ms ease;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--white);
}

.site-nav a:hover::after,
.site-nav a[aria-current="page"]::after {
  transform: scaleX(1);
}

.header-cta {
  min-height: 42px;
  padding: 10px 17px;
  border: 1px solid rgba(226, 160, 99, 0.72);
  color: var(--white);
  font-size: 0.72rem;
  font-weight: 800;
  box-shadow: inset 0 0 18px rgba(201, 131, 69, 0.08);
}

.nav-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border: 1px solid var(--line-dark);
  color: var(--white);
  background: transparent;
}

.nav-toggle span,
.nav-toggle::before,
.nav-toggle::after {
  display: block;
  width: 19px;
  height: 1px;
  margin: 5px auto;
  background: currentColor;
  content: "";
}

/* Home hero */
.home-hero {
  position: relative;
  min-height: 760px;
  overflow: hidden;
  color: var(--white);
  background: var(--navy-950) url("../images/carlos-barreto-planejamento.jpg") center 43% / cover no-repeat;
}

.home-hero::before {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(4, 9, 13, 0.96) 0%, rgba(4, 9, 13, 0.86) 38%, rgba(4, 9, 13, 0.26) 69%, rgba(4, 9, 13, 0.55) 100%),
    linear-gradient(0deg, rgba(6, 16, 25, 0.92) 0%, transparent 42%);
  content: "";
}

.home-hero .container {
  position: relative;
  z-index: 1;
}

.hero-grid {
  display: grid;
  min-height: 610px;
  grid-template-columns: minmax(0, 0.93fr) minmax(340px, 0.52fr);
  align-items: center;
  gap: 80px;
  padding: 72px 0 56px;
}

.hero-copy {
  max-width: 700px;
}

.hero-copy h1 {
  max-width: 690px;
  margin-bottom: 27px;
  font-size: clamp(3.1rem, 5.8vw, 5.8rem);
}

.hero-copy .lead {
  max-width: 590px;
  margin-bottom: 34px;
  color: #d9dfe2;
}

.glass-panel {
  border: 1px solid rgba(255, 255, 255, 0.38);
  background: linear-gradient(135deg, rgba(16, 32, 42, 0.74), rgba(3, 10, 15, 0.48));
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.3), inset 0 1px rgba(255, 255, 255, 0.09);
  backdrop-filter: blur(18px);
}

.loss-map {
  align-self: end;
  margin-bottom: 40px;
  padding: 28px;
}

.loss-map h2 {
  margin-bottom: 17px;
  padding-bottom: 17px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  font-family: var(--sans);
  font-size: 1.02rem;
  font-weight: 650;
  letter-spacing: 0;
}

.loss-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.loss-item {
  min-width: 0;
  padding: 15px 12px 4px;
  text-align: center;
}

.loss-item + .loss-item {
  border-left: 1px solid rgba(255, 255, 255, 0.15);
}

.loss-item strong {
  display: block;
  margin-bottom: 6px;
  color: var(--white);
  font-family: var(--display);
  font-size: 1.2rem;
  font-weight: 400;
}

.loss-item span {
  color: #bfc9cf;
  font-size: 0.73rem;
}

.proof-rail {
  display: grid;
  margin-bottom: 0;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(5, 16, 24, 0.74);
  box-shadow: 0 -1px 25px rgba(86, 185, 216, 0.08);
  backdrop-filter: blur(12px);
}

.proof-item {
  padding: 22px 28px;
}

.proof-item + .proof-item {
  border-left: 1px solid rgba(255, 255, 255, 0.14);
}

.proof-item strong {
  display: block;
  color: var(--white);
  font-family: var(--display);
  font-size: clamp(1.65rem, 2.5vw, 2.2rem);
  font-weight: 400;
  line-height: 1;
}

.proof-item span {
  display: block;
  margin-top: 8px;
  color: #b4c0c7;
  font-size: 0.76rem;
}

/* Home solutions */
.solutions-layout {
  display: grid;
  grid-template-columns: minmax(320px, 0.88fr) minmax(0, 1.12fr);
  gap: 10px;
}

.integrated-card {
  position: relative;
  min-height: 610px;
  overflow: hidden;
  padding: 52px;
  color: var(--white);
  background:
    linear-gradient(160deg, rgba(15, 36, 48, 0.94), rgba(3, 13, 20, 0.98)),
    var(--navy-900);
  box-shadow: var(--shadow);
}

.integrated-card::after {
  position: absolute;
  width: 420px;
  height: 420px;
  right: -210px;
  bottom: -180px;
  border: 1px solid rgba(201, 131, 69, 0.24);
  border-radius: 50%;
  box-shadow: 0 0 0 65px rgba(201, 131, 69, 0.025), 0 0 0 130px rgba(86, 185, 216, 0.025);
  content: "";
}

.integrated-card h3 {
  max-width: 430px;
  margin: 6px 0 24px;
  font-family: var(--display);
  font-size: clamp(2rem, 3.7vw, 3.6rem);
  font-weight: 400;
}

.integrated-card > p {
  max-width: 490px;
  color: #c6d0d5;
}

.outcome-list {
  display: grid;
  gap: 0;
  margin: 36px 0 44px;
  padding: 0;
  list-style: none;
}

.outcome-list li {
  display: grid;
  grid-template-columns: 42px 1fr;
  align-items: center;
  gap: 15px;
  padding: 17px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: #eef2f3;
}

.outcome-list li:last-child {
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.outcome-list b {
  display: grid;
  width: 35px;
  height: 35px;
  place-items: center;
  border: 1px solid rgba(201, 131, 69, 0.55);
  border-radius: 50%;
  color: var(--copper-light);
  font-size: 0.72rem;
}

.service-directory {
  padding: 48px 50px 38px;
  border: 1px solid var(--line-light);
  background: rgba(255, 255, 255, 0.4);
}

.service-directory h3 {
  max-width: 520px;
  margin: 4px 0 14px;
  font-family: var(--display);
  font-size: clamp(2rem, 3.5vw, 3.35rem);
  font-weight: 400;
}

.service-directory > p {
  max-width: 580px;
  margin-bottom: 30px;
  color: var(--muted-dark);
}

.service-row {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) 26px;
  align-items: center;
  gap: 17px;
  padding: 21px 3px;
  border-top: 1px solid var(--line-light);
  transition: padding 180ms ease, background 180ms ease;
}

.service-row:last-child {
  border-bottom: 1px solid var(--line-light);
}

.service-row:hover {
  padding-right: 12px;
  padding-left: 12px;
  background: rgba(255, 255, 255, 0.6);
}

.service-number {
  color: var(--copper);
  font-family: var(--display);
  font-size: 1.16rem;
}

.service-row strong {
  display: block;
  margin-bottom: 3px;
  color: var(--ink);
  font-size: 1rem;
}

.service-row span:not(.service-number):not(.service-arrow) {
  color: var(--muted-dark);
  font-size: 0.82rem;
}

.service-arrow {
  color: var(--copper);
  font-size: 1.2rem;
}

/* Origin */
.origin-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.94fr) minmax(340px, 0.72fr);
  align-items: center;
  gap: clamp(45px, 8vw, 110px);
}

.origin-copy h2 {
  max-width: 720px;
  margin-bottom: 28px;
}

.origin-copy > p {
  max-width: 650px;
  color: #bcc7cd;
}

.founder-signature {
  margin: 32px 0 31px;
  padding-left: 18px;
  border-left: 2px solid var(--copper);
}

.founder-signature strong {
  display: block;
  color: var(--copper-light);
}

.founder-signature span {
  color: var(--muted);
  font-size: 0.83rem;
}

.origin-photo {
  position: relative;
  min-height: 570px;
}

.origin-photo::before {
  position: absolute;
  z-index: 0;
  inset: 28px -28px -28px 28px;
  border: 1px solid rgba(201, 131, 69, 0.5);
  content: "";
}

.origin-photo img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 570px;
  object-fit: cover;
  object-position: center 38%;
  filter: saturate(0.8) contrast(1.05);
}

.origin-facts {
  display: grid;
  margin-top: 70px;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line-dark);
  border-bottom: 1px solid var(--line-dark);
}

.origin-facts div {
  padding: 26px 25px;
}

.origin-facts div + div {
  border-left: 1px solid var(--line-dark);
}

.origin-facts strong {
  display: block;
  margin-bottom: 5px;
  color: var(--white);
  font-family: var(--display);
  font-size: 1.2rem;
  font-weight: 400;
}

.origin-facts span {
  color: var(--muted);
  font-size: 0.75rem;
}

/* Method */
.method-shell {
  display: grid;
  grid-template-columns: minmax(280px, 0.58fr) minmax(0, 1fr);
  gap: clamp(45px, 7vw, 92px);
}

.method-intro {
  position: sticky;
  top: 125px;
  align-self: start;
}

.method-intro h2 {
  margin-bottom: 24px;
}

.method-intro p {
  color: var(--muted-dark);
}

.method-steps {
  counter-reset: protect-step;
}

.method-step {
  display: grid;
  grid-template-columns: 82px 1fr;
  gap: 25px;
  padding: 33px 0;
  border-top: 1px solid var(--line-light);
  counter-increment: protect-step;
}

.method-step:last-child {
  border-bottom: 1px solid var(--line-light);
}

.method-step::before {
  color: var(--copper);
  font-family: var(--display);
  font-size: 2.2rem;
  line-height: 1;
  content: "0" counter(protect-step);
}

.method-step h3 {
  margin-bottom: 8px;
  font-family: var(--display);
  font-size: 1.55rem;
  font-weight: 400;
}

.method-step p {
  max-width: 630px;
  margin-bottom: 0;
  color: var(--muted-dark);
}

/* Inner pages */
.page-hero {
  position: relative;
  overflow: hidden;
  color: var(--white);
  background: var(--navy-950) url("../images/carlos-barreto-planejamento.jpg") center 41% / cover no-repeat;
}

.page-hero::before {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(3, 9, 13, 0.97) 0%, rgba(4, 12, 18, 0.9) 52%, rgba(4, 12, 18, 0.48) 100%);
  content: "";
}

.page-hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  min-height: 550px;
  grid-template-columns: minmax(0, 0.8fr) minmax(280px, 0.42fr);
  align-items: end;
  gap: 72px;
  padding: 88px 0 76px;
}

.page-hero h1 {
  max-width: 820px;
  margin-bottom: 24px;
  font-size: clamp(3rem, 5.5vw, 5.2rem);
}

.page-hero .lead {
  margin-bottom: 30px;
  color: #d0d8dc;
}

.page-hero--compact .page-hero__inner {
  min-height: 390px;
  grid-template-columns: minmax(0, 0.85fr);
  padding-top: 72px;
  padding-bottom: 62px;
}

.page-hero--compact h1 {
  max-width: 900px;
  margin-bottom: 18px;
  font-size: clamp(2.8rem, 5vw, 4.6rem);
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-bottom: 25px;
  color: #aeb9bf;
  font-size: 0.73rem;
}

.breadcrumbs a:hover {
  color: var(--white);
}

.hero-side-note {
  margin-bottom: 10px;
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(8, 23, 32, 0.58);
  backdrop-filter: blur(14px);
}

.hero-side-note strong {
  display: block;
  margin-bottom: 10px;
  color: var(--copper-light);
  font-family: var(--display);
  font-size: 1.45rem;
  font-weight: 400;
}

.hero-side-note p {
  margin-bottom: 0;
  color: #cad3d8;
  font-size: 0.87rem;
}

.trust-strip {
  color: var(--white);
  background: var(--navy-900);
}

.trust-strip__inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.trust-strip__inner div {
  padding: 23px 25px;
  border-right: 1px solid var(--line-dark);
}

.trust-strip__inner div:first-child {
  border-left: 1px solid var(--line-dark);
}

.trust-strip strong {
  display: block;
  font-family: var(--display);
  font-size: 1.28rem;
  font-weight: 400;
}

.trust-strip span {
  color: var(--muted);
  font-size: 0.73rem;
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(320px, 0.55fr);
  gap: clamp(50px, 8vw, 110px);
}

.content-copy h2 {
  margin-bottom: 26px;
}

.content-copy p {
  color: var(--muted-dark);
}

.dark-copy p {
  color: var(--muted);
}

.content-aside {
  align-self: start;
  padding: 34px;
  border: 1px solid var(--line-light);
  background: rgba(255, 255, 255, 0.48);
}

.section--dark .content-aside {
  border-color: var(--line-dark);
  background: rgba(255, 255, 255, 0.035);
}

.content-aside h3 {
  margin-bottom: 22px;
  font-family: var(--display);
  font-size: 1.55rem;
  font-weight: 400;
}

.check-list {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding: 14px 0 14px 28px;
  border-top: 1px solid var(--line-light);
  color: var(--muted-dark);
}

.check-list li::before {
  position: absolute;
  top: 14px;
  left: 0;
  color: var(--copper);
  content: "✓";
}

.section--dark .check-list li {
  border-color: var(--line-dark);
  color: #c6d0d5;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

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

.info-card {
  min-height: 230px;
  padding: 32px;
  border: 1px solid var(--line-light);
  background: rgba(255, 255, 255, 0.43);
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

a.info-card:hover {
  transform: translateY(-4px);
  border-color: rgba(201, 131, 69, 0.65);
  background: rgba(255, 255, 255, 0.72);
}

.section--dark .info-card {
  border-color: var(--line-dark);
  background: rgba(255, 255, 255, 0.035);
}

.info-card .card-number {
  display: block;
  margin-bottom: 38px;
  color: var(--copper);
  font-family: var(--display);
  font-size: 1.25rem;
}

.info-card h3 {
  margin-bottom: 12px;
  font-family: var(--display);
  font-size: 1.45rem;
  font-weight: 400;
}

.info-card p {
  margin-bottom: 0;
  color: var(--muted-dark);
  font-size: 0.9rem;
}

.section--dark .info-card p {
  color: var(--muted);
}

.service-catalog {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.service-card {
  position: relative;
  min-height: 330px;
  padding: 38px;
  overflow: hidden;
  color: var(--white);
  background: linear-gradient(145deg, var(--navy-800), var(--navy-950));
}

.service-card--feature {
  grid-column: 1 / -1;
  min-height: 390px;
  padding-right: 42%;
  background:
    linear-gradient(90deg, rgba(6, 16, 25, 1) 0%, rgba(6, 16, 25, 0.95) 50%, rgba(6, 16, 25, 0.42) 100%),
    url("../images/carlos-barreto-planejamento.jpg") 82% 47% / cover no-repeat;
}

.service-card .card-number {
  display: block;
  margin-bottom: 45px;
  color: var(--copper-light);
  font-family: var(--display);
  font-size: 1.3rem;
}

.service-card h2,
.service-card h3 {
  max-width: 560px;
  margin-bottom: 14px;
  font-family: var(--display);
  font-size: clamp(1.8rem, 3.2vw, 3rem);
  font-weight: 400;
}

.service-card p {
  max-width: 560px;
  color: #bfcbd1;
}

.service-card .text-link {
  position: absolute;
  bottom: 34px;
  left: 38px;
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line-light);
  border-bottom: 1px solid var(--line-light);
}

.process-card {
  min-height: 280px;
  padding: 32px 28px;
}

.process-card + .process-card {
  border-left: 1px solid var(--line-light);
}

.process-card span {
  display: block;
  margin-bottom: 55px;
  color: var(--copper);
  font-family: var(--display);
  font-size: 1.8rem;
}

.process-card h3 {
  font-family: var(--display);
  font-size: 1.45rem;
  font-weight: 400;
}

.process-card p {
  margin-bottom: 0;
  color: var(--muted-dark);
  font-size: 0.86rem;
}

.impact-table {
  border-top: 1px solid var(--line-dark);
}

.impact-row {
  display: grid;
  grid-template-columns: 0.55fr 1fr 1fr;
  border-bottom: 1px solid var(--line-dark);
}

.impact-row > * {
  padding: 22px 24px;
}

.impact-row > * + * {
  border-left: 1px solid var(--line-dark);
}

.impact-row strong {
  color: var(--white);
  font-family: var(--display);
  font-size: 1.1rem;
  font-weight: 400;
}

.impact-row span {
  color: var(--muted);
  font-size: 0.87rem;
}

.faq-list {
  max-width: 920px;
  margin: 0 auto;
  border-top: 1px solid var(--line-light);
}

.faq-list details {
  border-bottom: 1px solid var(--line-light);
}

.faq-list summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 24px 0;
  cursor: pointer;
  font-family: var(--display);
  font-size: 1.25rem;
  list-style: none;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::after {
  color: var(--copper);
  font-family: var(--sans);
  content: "+";
}

.faq-list details[open] summary::after {
  content: "−";
}

.faq-list details p {
  max-width: 760px;
  padding: 0 0 25px;
  color: var(--muted-dark);
}

.story-timeline {
  display: grid;
  grid-template-columns: 220px 1fr;
  border-top: 1px solid var(--line-light);
}

.story-timeline > * {
  padding: 28px 0;
  border-bottom: 1px solid var(--line-light);
}

.story-timeline time {
  color: var(--copper);
  font-family: var(--display);
  font-size: 1.5rem;
}

.story-timeline p {
  margin-bottom: 0;
  color: var(--muted-dark);
}

/* Contact */
.contact-layout {
  display: grid;
  grid-template-columns: minmax(300px, 0.65fr) minmax(0, 1fr);
  gap: clamp(45px, 8vw, 100px);
}

.contact-panel {
  color: var(--white);
  padding: 42px;
  background: var(--navy-900);
}

.contact-panel h2 {
  margin-bottom: 21px;
  font-size: 2.25rem;
}

.contact-panel p {
  color: var(--muted);
}

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

.contact-list li {
  padding: 18px 0;
  border-top: 1px solid var(--line-dark);
}

.contact-list span {
  display: block;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.contact-list a,
.contact-list strong {
  color: var(--white);
  font-weight: 500;
}

.contact-form {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.field {
  display: grid;
  gap: 7px;
}

.field--full {
  grid-column: 1 / -1;
}

.field label {
  font-size: 0.76rem;
  font-weight: 800;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 50px;
  padding: 13px 14px;
  border: 1px solid rgba(9, 17, 24, 0.25);
  border-radius: 0;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.58);
}

.field textarea {
  min-height: 130px;
  resize: vertical;
}

.form-note,
.form-status {
  grid-column: 1 / -1;
  margin-bottom: 0;
  color: var(--muted-dark);
  font-size: 0.78rem;
}

.form-status {
  min-height: 1.3em;
  color: #17663b;
  font-weight: 700;
}

.legal-copy {
  max-width: 860px;
}

.legal-copy h2 {
  margin: 50px 0 18px;
  font-size: 2rem;
}

.legal-copy h3 {
  margin-top: 30px;
}

.legal-copy p,
.legal-copy li {
  color: var(--muted-dark);
}

/* Closing banner + footer */
.footer-stage {
  position: relative;
  overflow: hidden;
  color: var(--white);
  background: var(--navy-950) url("../images/carlos-barreto-planejamento.jpg") center 64% / cover no-repeat;
}

.footer-stage::before {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(4, 11, 16, 0.94), rgba(5, 16, 24, 0.81), rgba(4, 11, 16, 0.95)),
    linear-gradient(0deg, rgba(3, 8, 12, 0.98), transparent 70%);
  content: "";
}

.closing-banner,
.site-footer {
  position: relative;
  z-index: 1;
}

.closing-banner {
  padding: clamp(82px, 9vw, 128px) 0 clamp(70px, 8vw, 105px);
  text-align: center;
}

.closing-banner .eyebrow::before {
  display: none;
}

.closing-banner h2 {
  max-width: 920px;
  margin: 0 auto 23px;
}

.closing-banner p {
  max-width: 690px;
  margin: 0 auto 31px;
  color: #c7d0d5;
}

.closing-banner .button-row {
  justify-content: center;
}

.site-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.13);
  background: rgba(2, 7, 11, 0.5);
  backdrop-filter: blur(8px);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.72fr 0.9fr 1.05fr;
  gap: 55px;
  padding: 55px 0 44px;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.footer-brand img {
  width: 55px;
  height: 55px;
  border-radius: 50%;
}

.footer-brand strong {
  font-size: 1.08rem;
  letter-spacing: 0.04em;
}

.footer-about p {
  max-width: 330px;
  color: #aeb8be;
  font-size: 0.84rem;
}

.footer-column h2 {
  margin-bottom: 19px;
  color: var(--white);
  font-family: var(--sans);
  font-size: 0.73rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.footer-links {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  color: #b5c0c5;
  font-size: 0.8rem;
  list-style: none;
}

.footer-links a:hover {
  color: var(--copper-light);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
  padding: 20px 0 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
  color: #859198;
  font-size: 0.7rem;
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 17px;
}

.whatsapp-float {
  position: fixed;
  z-index: 950;
  right: 20px;
  bottom: 20px;
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: 50%;
  color: var(--white);
  background: #18794e;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  font-size: 0.73rem;
  font-weight: 900;
}

.cookie-banner {
  position: fixed;
  z-index: 1100;
  right: 18px;
  bottom: 18px;
  display: none;
  width: min(430px, calc(100% - 36px));
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: var(--white);
  background: rgba(6, 16, 25, 0.97);
  box-shadow: var(--shadow);
}

.cookie-banner.is-visible {
  display: block;
}

.cookie-banner p {
  margin-bottom: 13px;
  color: #c8d1d6;
  font-size: 0.78rem;
}

.cookie-actions {
  display: flex;
  gap: 9px;
}

.cookie-actions button {
  min-height: 37px;
  padding: 8px 13px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: var(--white);
  background: transparent;
  cursor: pointer;
  font-size: 0.73rem;
}

.cookie-actions button:first-child {
  color: var(--ink);
  border-color: var(--copper);
  background: var(--copper-light);
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 650ms ease, transform 650ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (max-width: 1040px) {
  .header-inner {
    grid-template-columns: 1fr auto auto;
  }

  .nav-toggle {
    display: block;
    grid-column: 3;
    grid-row: 1;
  }

  .header-cta {
    grid-column: 2;
    grid-row: 1;
  }

  .site-nav {
    position: fixed;
    inset: 76px 0 auto;
    display: grid;
    padding: 20px;
    border-top: 1px solid var(--line-dark);
    background: rgba(3, 8, 12, 0.99);
    transform: translateY(-140%);
    transition: transform 220ms ease;
  }

  .site-nav.is-open {
    transform: translateY(0);
  }

  .site-nav a {
    padding: 13px 0;
    font-size: 0.92rem;
  }

  .site-nav a::after {
    bottom: 7px;
    right: auto;
    width: 30px;
  }

  .hero-grid,
  .page-hero__inner {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .hero-grid {
    padding-top: 85px;
  }

  .loss-map {
    width: min(520px, 100%);
    margin: 0 0 5px auto;
  }

  .solutions-layout,
  .origin-layout,
  .method-shell,
  .content-grid,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .origin-photo {
    width: min(640px, calc(100% - 28px));
  }

  .method-intro {
    position: static;
  }

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

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

  .process-card:nth-child(3) {
    border-left: 0;
    border-top: 1px solid var(--line-light);
  }

  .process-card:nth-child(4) {
    border-top: 1px solid var(--line-light);
  }

  .footer-grid {
    grid-template-columns: 1.2fr repeat(2, 1fr);
  }

  .footer-about {
    grid-column: 1 / -1;
  }
}

@media (max-width: 720px) {
  .container {
    width: min(calc(100% - 28px), var(--container));
  }

  .eyebrow {
    max-width: 100%;
    letter-spacing: 0.12em;
    overflow-wrap: anywhere;
  }

  .eyebrow::before {
    flex: 0 0 22px;
    width: 22px;
  }

  .header-inner {
    min-height: 68px;
    grid-template-columns: 1fr auto;
  }

  .brand img {
    width: 43px;
    height: 43px;
  }

  .brand-copy small,
  .header-cta {
    display: none;
  }

  .nav-toggle {
    grid-column: 2;
  }

  .site-nav {
    inset: 68px 0 auto;
  }

  .home-hero {
    min-height: auto;
    background-position: 60% 42%;
  }

  .home-hero::before {
    background: linear-gradient(180deg, rgba(3, 9, 13, 0.92), rgba(3, 9, 13, 0.78) 50%, rgba(5, 16, 24, 0.97));
  }

  .hero-grid {
    min-height: 0;
    padding: 72px 0 36px;
  }

  .hero-copy h1 {
    font-size: clamp(2.7rem, 13.2vw, 4.1rem);
  }

  .loss-map {
    margin-top: 12px;
    padding: 22px 17px;
  }

  .loss-item {
    padding-inline: 7px;
  }

  .loss-item strong {
    font-size: 1.03rem;
  }

  .proof-rail {
    grid-template-columns: repeat(2, 1fr);
  }

  .proof-item {
    padding: 19px 18px;
  }

  .proof-item:nth-child(3) {
    border-top: 1px solid var(--line-dark);
    border-left: 0;
  }

  .proof-item:nth-child(4) {
    border-top: 1px solid var(--line-dark);
  }

  .section-heading {
    grid-template-columns: 1fr;
    gap: 18px;
    margin-bottom: 34px;
  }

  .integrated-card,
  .service-directory,
  .contact-panel {
    padding: 32px 24px;
  }

  .integrated-card {
    min-height: auto;
  }

  .service-row {
    grid-template-columns: 40px minmax(0, 1fr) 18px;
    gap: 10px;
  }

  .origin-photo,
  .origin-photo img {
    min-height: 460px;
    height: 460px;
  }

  .origin-facts,
  .trust-strip__inner {
    grid-template-columns: repeat(2, 1fr);
  }

  .origin-facts div:nth-child(3),
  .trust-strip__inner div:nth-child(3) {
    border-top: 1px solid var(--line-dark);
    border-left: 0;
  }

  .trust-strip__inner div:nth-child(3),
  .trust-strip__inner div:nth-child(4) {
    border-top: 1px solid var(--line-dark);
  }

  .method-step {
    grid-template-columns: 55px 1fr;
    gap: 12px;
  }

  .page-hero__inner {
    min-height: 510px;
    padding: 65px 0 50px;
  }

  .page-hero h1 {
    font-size: clamp(2.7rem, 12vw, 4rem);
  }

  .card-grid,
  .card-grid--2,
  .service-catalog,
  .process-grid {
    grid-template-columns: 1fr;
  }

  .service-card--feature {
    grid-column: auto;
    min-height: 420px;
    padding-right: 32px;
    background:
      linear-gradient(180deg, rgba(6, 16, 25, 0.92), rgba(6, 16, 25, 0.78)),
      url("../images/carlos-barreto-planejamento.jpg") 62% 45% / cover no-repeat;
  }

  .process-card + .process-card,
  .process-card:nth-child(3),
  .process-card:nth-child(4) {
    border-top: 1px solid var(--line-light);
    border-left: 0;
  }

  .process-card {
    min-height: 0;
  }

  .process-card span {
    margin-bottom: 25px;
  }

  .impact-row {
    grid-template-columns: 1fr;
  }

  .impact-row > * + * {
    padding-top: 0;
    border-left: 0;
  }

  .story-timeline {
    grid-template-columns: 85px 1fr;
  }

  .contact-form {
    grid-template-columns: 1fr;
  }

  .field--full {
    grid-column: auto;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 38px 25px;
  }

  .footer-about {
    grid-column: 1 / -1;
  }

  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
  }

  .whatsapp-float {
    width: 49px;
    height: 49px;
  }
}

@media (max-width: 470px) {
  .button-row .button {
    width: 100%;
  }

  .loss-list {
    grid-template-columns: 1fr;
  }

  .loss-item + .loss-item {
    border-top: 1px solid var(--line-dark);
    border-left: 0;
  }

  .origin-facts {
    grid-template-columns: 1fr;
  }

  .origin-facts div + div,
  .origin-facts div:nth-child(3) {
    border-top: 1px solid var(--line-dark);
    border-left: 0;
  }

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

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
