/* ===== Tokens ===== */
:root {
  --ink: #1c1a17;
  --charcoal: #231f20;
  --cream: #faf8f4;
  --paper: #f3efe7;
  --rust: #b55403;
  --rust-dark: #944502;
  --line: #e6e0d4;
  --muted: #6b6558;

  --font-display: "Metropolis", sans-serif;
  --font-body: "Inter", sans-serif;

  --container: 1200px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 600; margin: 0 0 .5em; line-height: 1.15; }
p { margin: 0 0 1em; color: var(--ink); line-height: 1.65; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 40px;
}

.eyebrow {
  font-family: var(--font-body);
  font-size: .8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--rust);
  margin: 0 0 .8em;
}
.eyebrow-light { color: #f0b48a; }

.btn {
  display: inline-block;
  padding: .9em 1.8em;
  border-radius: 10px;
  font-weight: 600;
  font-size: .95rem;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn-primary {
  background: var(--rust);
  color: #fff;
}
.btn-primary:hover {
  background: var(--rust-dark);
  transform: translateY(-1px);
}
.btn-light {
  background: #fff;
  color: var(--ink);
}
.btn-light:hover {
  background: #f0ede7;
  transform: translateY(-1px);
}

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: linear-gradient(to bottom, #ffffff, #f5f2ec);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  padding-bottom: 16px;
}
.logo-block {
  display: inline-flex;
  align-items: center;
}
.logo-img {
  display: block;
  height: 40px;
  width: auto;
}

.main-nav {
  display: flex;
  gap: 2.2rem;
}
.main-nav a {
  font-size: .95rem;
  font-weight: 500;
  color: var(--ink);
  position: relative;
}
.main-nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -6px;
  height: 2px;
  background: var(--rust);
  transform: scaleX(0);
  transition: transform .2s ease;
}
.main-nav a:hover::after { transform: scaleX(1); }

.nav-cta { white-space: nowrap; }

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
}
.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  margin: 0 auto;
}

/* ===== Hero ===== */
.hero {
  position: relative;
  overflow: hidden;
  background: #0a0908;
}
.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center right;
}
.hero-pattern {
  position: absolute;
  inset: 0;
  background-image: url("Imagens/hero-pattern.png");
  background-size: cover;
  background-position: left center;
  background-repeat: no-repeat;
}
.hero-inner {
  position: relative;
  z-index: 1;
  padding-top: 132px;
  padding-bottom: 112px;
}
.hero-copy {
  max-width: 640px;
}
.hero-copy h1 {
  color: #fff;
  font-size: clamp(2.1rem, 3.6vw, 3.1rem);
  letter-spacing: -.01em;
}
.hero-copy p {
  font-size: 1.08rem;
  color: #d9d6cf;
  max-width: 48ch;
}

/* ===== Sections ===== */
.section {
  padding: 96px 0;
}
.section-alt {
  background: var(--paper);
}
#servicos {
  background: #fff;
}
#como-funciona {
  position: relative;
  background-color: #fff;
  overflow: hidden;
}
#como-funciona::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: url("Imagens/pattern-light.png");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: top center;
  -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 0%, rgba(0,0,0,1) 35%, rgba(0,0,0,0) 90%);
  mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 0%, rgba(0,0,0,1) 35%, rgba(0,0,0,0) 90%);
}
#como-funciona > .container {
  position: relative;
  z-index: 1;
}
.section h2 {
  font-size: clamp(1.7rem, 2.6vw, 2.3rem);
  max-width: 24ch;
}

/* Sobre */
.about-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.about-media img {
  border-radius: 10px;
  aspect-ratio: 3/2;
  object-fit: cover;
  box-shadow: 0 24px 48px -24px rgba(28,26,23,.28);
}
.about-copy p:not(.eyebrow) { color: var(--muted); font-size: 1.02rem; }

/* Clients */
.clients {
  padding: 40px 0;
  background: #f2f2f2;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.clients-label {
  text-align: center;
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--muted);
  margin-bottom: 24px;
}
.clients-carousel {
  display: flex;
  align-items: center;
  gap: 20px;
}
.clients-arrow {
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: border-color .15s ease, color .15s ease;
}
.clients-arrow:hover { border-color: var(--rust); color: var(--rust); }
.clients-viewport {
  flex: 1;
  position: relative;
  min-height: 100px;
  overflow: hidden;
}
.clients-page {
  position: absolute;
  inset: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 2.2rem 3rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity .5s ease;
}
.clients-page.is-active {
  opacity: 1;
  pointer-events: auto;
}
.client-logo {
  height: 80px;
  width: auto;
  object-fit: contain;
  opacity: .8;
}

/* Serviços */
.services-grid {
  margin-top: 48px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.service-card {
  background: #fff;
  border-radius: 8px;
  padding: 36px 30px;
  box-shadow:
    0 0 0 1px rgba(28,26,23,.09),
    0 20px 40px -20px rgba(28,26,23,.22);
}
.service-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--rust);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
}
.service-icon svg { width: 22px; height: 22px; }
.service-card h3 {
  font-size: 1.2rem;
  margin-bottom: .5em;
}
.service-card p {
  color: var(--muted);
  font-size: .96rem;
}
.service-card ul {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.service-card li {
  font-size: .92rem;
  color: var(--ink);
  padding-left: 18px;
  position: relative;
}
.service-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .55em;
  width: 6px;
  height: 6px;
  background: var(--rust);
  border-radius: 50%;
}

/* Como funciona */
.steps-grid {
  margin-top: 48px;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: stretch;
}
.step-card {
  flex: 1 1 260px;
  min-width: 0;
  background: linear-gradient(180deg, rgba(35,31,32,1) 0%, rgba(35,31,32,.8) 100%);
  color: #fff;
  border-radius: 4px;
  padding: 28px 26px 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 190px;
}
.step-card p {
  color: #d9d6cf;
  font-size: .98rem;
  font-weight: 500;
  margin: 0;
}
.step-number {
  font-family: var(--font-display);
  font-size: 2.6rem;
  font-weight: 800;
  color: #fff;
  line-height: 1;
  order: 2;
  margin-top: 18px;
}
.step-arrow {
  flex: 0 0 auto;
  align-self: center;
  color: var(--rust);
  font-size: 1.3rem;
}

/* CTA */
.cta-section {
  position: relative;
  overflow: hidden;
  background-color: #fff;
  background-image: url("Imagens/pattern-light-wide.png");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: top center;
  padding: 96px 0 140px;
}
.cta-inner {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 720px;
}
.cta-section h2 {
  color: var(--ink);
  font-size: clamp(1.6rem, 2.6vw, 2.1rem);
  margin-bottom: 1.1em;
}
.cta-inner .btn { margin-top: 8px; }

.cta-diagonals {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 130px;
  z-index: 0;
}
.cta-diagonals span {
  position: absolute;
  bottom: 0;
  width: 55%;
  height: 100%;
  background: #e7c6a0;
}
.cta-diagonals span:first-child {
  left: 0;
  clip-path: polygon(0 100%, 0 0, 100% 100%);
}
.cta-diagonals span:last-child {
  right: 0;
  clip-path: polygon(100% 100%, 100% 0, 0 100%);
}

/* ===== Footer ===== */
.site-footer {
  background: #060807;
  color: #d9d6cf;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 48px;
  padding: 40px;
}
.footer-brand .logo-img {
  height: 46px;
  margin-bottom: 14px;
}
.footer-copy, .footer-cnpj {
  color: #a8a398;
  font-size: .88rem;
}
.footer-social {
  display: flex;
  gap: 14px;
  margin-top: 20px;
}
.footer-social a {
  width: 36px; height: 36px;
  border: 1px solid #4a473f;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #d9d6cf;
}
.footer-social svg { width: 16px; height: 16px; }
.footer-social a:hover { border-color: var(--rust); color: var(--rust); }

.footer-links h4, .footer-contact h4 {
  color: #fff;
  font-size: .85rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 18px;
}
.footer-links a, .footer-contact a {
  display: block;
  font-size: .92rem;
  color: #a8a398;
  margin-bottom: 12px;
}
.footer-links a:hover, .footer-contact a:hover { color: #fff; }

.footer-bottom {
  border-top: 1px solid #34322c;
  padding: 40px 0;
}
.footer-bottom-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}
.footer-bottom-inner p, .footer-bottom-inner a {
  font-size: .82rem;
  color: #8a8578;
}
.footer-bottom-inner a:hover { color: #fff; }

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .about-inner {
    grid-template-columns: 1fr;
  }
  .about-media { order: -1; }
  .services-grid { grid-template-columns: 1fr; }
  .steps-grid { flex-direction: column; }
  .step-arrow { transform: rotate(90deg); margin: -4px 0; text-align: center; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .hero-inner { padding-top: 100px; padding-bottom: 88px; }
  .hero-copy { max-width: 100%; }
}

@media (max-width: 1150px) {
  .clients-page {
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 0 4px;
  }
  .clients-page::-webkit-scrollbar { display: none; }
  .client-logo { flex: 0 0 auto; }
}

@media (max-width: 720px) {
  .main-nav, .nav-cta { display: none; }
  .menu-toggle { display: flex; }
  .header-inner { position: relative; }

  .main-nav.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: var(--cream);
    padding: 20px 24px;
    border-bottom: 1px solid var(--line);
    gap: 1.2rem;
  }
  .nav-cta.open {
    display: block;
    position: absolute;
    top: calc(100% + 168px);
    left: 24px; right: 24px;
    text-align: center;
  }
  .footer-inner { grid-template-columns: 1fr; }
}

/* ===== Política de Privacidade ===== */
.policy-page {
  padding-top: 132px;
}
.policy-container {
  max-width: 740px;
  margin: 0 auto;
}
.policy-meta {
  font-size: .8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--rust);
  margin: 0 0 .8em;
}
.policy-container h1 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  margin-bottom: 1em;
}
.policy-container h2 {
  font-size: 1.2rem;
  margin-top: 1.8em;
}
.policy-container p {
  color: var(--muted);
  font-size: 1rem;
}
.policy-container ul {
  margin: 0 0 1em;
  padding-left: 0;
}
.policy-container li {
  font-size: 1rem;
  color: var(--muted);
  padding-left: 18px;
  margin-bottom: 8px;
  position: relative;
}
.policy-container li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .6em;
  width: 6px;
  height: 6px;
  background: var(--rust);
  border-radius: 50%;
}
