/* ===== RESET & BASE ===== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --paper: #FAF8F3;
  --paper-deep: #F2EFE7;
  --ink: #1E2A2B;
  --text: #43514F;
  --text-mid: #6E7A76;
  --teal: #1F7674;
  --teal-dark: #14504E;
  --gold: #C9A227;
  --hairline: #DAD5C8;
  --hairline-soft: #E6E2D7;
  --transition: 0.25s ease;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 112px;
}

body {
  font-family: 'Archivo', 'Helvetica Neue', sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* grão de papel */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 999;
  pointer-events: none;
  opacity: 0.5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.035 0'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
}

.container {
  width: 100%;
  margin: 0 auto;
  padding: 0 clamp(20px, 3vw, 52px);
}

h1, h2, h3 {
  font-family: 'Playfair Display', Georgia, serif;
  line-height: 1.12;
  color: var(--ink);
  font-weight: 600;
}

h2 {
  font-size: clamp(2.1rem, 3.8vw, 3.1rem);
  letter-spacing: -0.01em;
}

a {
  color: var(--teal);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--teal-dark);
}

img {
  max-width: 100%;
  height: auto;
}

/* ===== RÓTULOS EDITORIAIS ===== */
.kicker {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--teal);
  margin-bottom: 22px;
}

.section-label {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--ink);
  margin-bottom: 52px;
}

.section-idx {
  font-family: 'Playfair Display', Georgia, serif;
  font-style: italic;
  font-size: 1.45rem;
  color: var(--gold);
}

.section-nome {
  font-size: 0.98rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--ink);
}

.section-header {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 48px;
  align-items: end;
  margin-bottom: 72px;
}

.section-note {
  font-size: 0.95rem;
  color: var(--text-mid);
  max-width: 440px;
  justify-self: start;
  padding-bottom: 8px;
}

/* ===== NAVBAR ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: transparent;
  transition: background var(--transition), box-shadow var(--transition);
}

.navbar.scrolled {
  background: rgba(250, 248, 243, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 var(--hairline), 0 6px 24px rgba(30, 42, 43, 0.05);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100px;
}

.navbar.scrolled .nav-container {
  height: 84px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 14px;
}

.logo-img {
  height: 76px;
  width: auto;
  transition: height var(--transition);
}

.navbar.scrolled .logo-img {
  height: 58px;
}

.logo-text {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.55rem;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.01em;
}

.logo-accent {
  font-family: 'Archivo', sans-serif;
  font-weight: 400;
  color: var(--text-mid);
  font-size: 1rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 38px;
  list-style: none;
}

.nav-links a {
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  position: relative;
}

.nav-links a:not(.nav-cta):hover {
  color: var(--teal);
}

.nav-links a:not(.nav-cta)::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--teal);
  transition: width var(--transition);
}

.nav-links a:not(.nav-cta):hover::after {
  width: 100%;
}

.nav-cta {
  background: var(--teal);
  color: var(--paper) !important;
  padding: 12px 26px;
  font-weight: 600;
  transition: background var(--transition);
}

.nav-cta:hover {
  background: var(--teal-dark);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--ink);
  transition: var(--transition);
}

/* ===== HERO ===== */
.hero {
  position: relative;
  padding: 230px 0 0;
  background: var(--paper);
  overflow: hidden;
}

.hero-arte {
  position: absolute;
  top: 60px;
  right: 10px;
  width: min(46vw, 560px);
  height: auto;
  overflow: visible;
  pointer-events: none;
}

.hero-arte path[stroke-dasharray] {
  animation: dashflow 14s linear infinite;
}

@keyframes dashflow {
  to {
    stroke-dashoffset: -140;
  }
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.9fr 1fr;
  gap: 64px;
  align-items: end;
}

.hero-title {
  font-size: clamp(2.3rem, 4.1vw, 3.9rem);
  font-weight: 600;
  line-height: 1.14;
  letter-spacing: -0.015em;
  max-width: 1150px;
}

.hero-title em {
  font-style: italic;
  font-weight: 500;
  color: var(--teal);
}

.hero-aside {
  padding-left: 32px;
  border-left: 1px solid var(--hairline);
  padding-bottom: 8px;
}

.hero-sub {
  font-size: 1.02rem;
  color: var(--text-mid);
  margin-bottom: 36px;
}

.hero-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
}

.marquee {
  overflow: hidden;
  margin-top: 120px;
  border-top: 1px solid var(--hairline);
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 36s linear infinite;
}

.marquee:hover .marquee-track {
  animation-play-state: paused;
}

.marquee-group {
  display: flex;
  align-items: center;
  gap: 48px;
  padding: 26px 24px 26px 24px;
}

.marquee-group span {
  font-size: 0.8rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--text-mid);
  white-space: nowrap;
}

.marquee-sep {
  color: var(--gold) !important;
  font-size: 0.66rem !important;
}

@keyframes marquee {
  to {
    transform: translateX(-50%);
  }
}

/* ===== BOTÕES & LINKS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: 'Archivo', sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 16px 34px;
  border: none;
  cursor: pointer;
  background: var(--teal);
  color: var(--paper);
  transition: background var(--transition);
}

.btn::after {
  content: '\2192';
  transition: transform var(--transition);
}

.btn:hover {
  background: var(--teal-dark);
  color: var(--paper);
}

.btn:hover::after {
  transform: translateX(4px);
}

.btn-full {
  width: 100%;
}

.link-arrow {
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid var(--hairline);
  padding-bottom: 4px;
}

.link-arrow::after {
  content: '\2193';
  color: var(--teal);
}

.link-arrow:hover {
  color: var(--teal);
  border-color: var(--teal);
}

/* ===== ATUAÇÃO ===== */
.atuacao {
  padding: 160px 0 170px;
  background: var(--paper-deep);
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
}

.servicos {
  border-top: 1px solid var(--hairline);
}

.servico-row {
  display: grid;
  grid-template-columns: 72px 1fr 1.35fr;
  gap: 40px;
  align-items: center;
  padding: 60px 0;
  border-bottom: 1px solid var(--hairline);
  transition: background var(--transition);
}

.servico-row:hover {
  background: rgba(31, 118, 116, 0.035);
}

.servico-num {
  font-family: 'Playfair Display', Georgia, serif;
  font-style: italic;
  font-size: 2.2rem;
  font-weight: 500;
  color: var(--gold);
  line-height: 1;
}

.servico-titulo {
  font-size: 2rem;
  font-weight: 600;
}

.servico-itens {
  list-style: none;
  columns: 2;
  column-gap: 48px;
}

.servico-itens li {
  font-size: 1.12rem;
  color: var(--text);
  padding: 9px 0;
  break-inside: avoid;
  line-height: 1.5;
}

/* ===== SETORES ===== */
.setores {
  padding: 160px 0 170px;
  background: var(--paper);
}

.setores-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 56px 32px;
}

.setor-card {
  display: block;
}

.setor-img {
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: var(--paper-deep);
}

.setor-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.55) contrast(0.98);
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1), filter 0.5s ease;
}

.setor-card:hover .setor-img img {
  transform: scale(1.04);
  filter: saturate(1) contrast(1);
}

.setor-card figcaption {
  border-top: 1px solid var(--ink);
  margin-top: 16px;
  padding-top: 12px;
}

.setor-card h3 {
  font-family: 'Archivo', sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink);
  margin-bottom: 4px;
}

.setor-idx {
  font-family: 'Playfair Display', Georgia, serif;
  font-style: italic;
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0;
  color: var(--gold);
  margin-right: 10px;
}

.setor-card figcaption p {
  font-size: 0.85rem;
  color: var(--text-mid);
  line-height: 1.5;
}

/* ===== CLIENTES ===== */
.clientes {
  padding: 150px 0;
  background: var(--paper-deep);
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
}

.clientes .section-header {
  margin-bottom: 56px;
}

.clientes-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
  flex-wrap: wrap;
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  padding: 44px 8px;
}

.cliente-logo {
  max-height: 72px;
  max-width: 230px;
  object-fit: contain;
  filter: grayscale(1) opacity(0.6);
  transition: filter var(--transition);
}

.cliente-logo:hover {
  filter: grayscale(0) opacity(1);
}

.cliente-logo-mono {
  filter: brightness(0) opacity(0.5);
}

.cliente-logo-mono:hover {
  filter: brightness(0) opacity(0.8);
}

.cliente-logo-tall {
  max-height: 100px;
}

/* ===== CONTATO ===== */
.contato {
  padding: 160px 0 170px;
  background: var(--paper);
}

.contato-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 80px;
  align-items: start;
}

.contato-info h2 {
  margin-bottom: 22px;
}

.contato-texto {
  font-size: 0.95rem;
  color: var(--text-mid);
  max-width: 380px;
  margin-bottom: 44px;
}

.contato-dados {
  list-style: none;
}

.contato-dados li {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 20px;
  align-items: baseline;
  padding: 14px 0;
  border-top: 1px solid var(--hairline-soft);
  font-size: 0.95rem;
}

.contato-dados li:last-child {
  border-bottom: 1px solid var(--hairline-soft);
}

.dado-label {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--text-mid);
}

.contato-dados a {
  color: var(--ink);
}

.contato-dados a:hover {
  color: var(--teal);
}

.contato-form {
  padding-left: 56px;
  border-left: 1px solid var(--hairline);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

.form-group {
  margin-bottom: 26px;
}

.form-group label {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-mid);
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 10px 2px;
  border: none;
  border-bottom: 1px solid var(--hairline);
  font-family: 'Archivo', sans-serif;
  font-size: 0.98rem;
  color: var(--ink);
  background: transparent;
  transition: border-color var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-bottom-color: var(--teal);
}

.form-group textarea {
  resize: vertical;
  min-height: 96px;
}

.contato-form .btn {
  margin-top: 10px;
}

.contato-form .btn:disabled {
  opacity: 0.6;
  cursor: default;
}

.form-ok {
  padding: 40px 0;
  border-top: 1px solid var(--teal);
}

.form-ok h3 {
  font-size: 1.5rem;
  margin-bottom: 10px;
  color: var(--teal);
}

.form-ok p {
  font-size: 0.98rem;
  color: var(--text-mid);
}

.form-erro {
  margin-top: 16px;
  font-size: 0.9rem;
  color: #9B3B2F;
}

.form-erro a {
  color: #9B3B2F;
  text-decoration: underline;
}

/* ===== FOOTER ===== */
.footer {
  background: var(--ink);
  padding: 52px 0 0;
}

.footer-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 40px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 16px;
}

.footer-logo {
  height: 40px;
  width: auto;
}

.footer-name {
  display: block;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--paper);
  line-height: 1.3;
}

.footer-tagline {
  display: block;
  font-size: 0.8rem;
  color: rgba(250, 248, 243, 0.5);
}

.footer-links {
  display: flex;
  gap: 36px;
}

.footer-links a {
  color: rgba(250, 248, 243, 0.7);
  font-size: 0.85rem;
}

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

.footer-bottom {
  border-top: 1px solid rgba(250, 248, 243, 0.14);
  padding-top: 20px;
  padding-bottom: 26px;
}

.footer-bottom span {
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  color: rgba(250, 248, 243, 0.42);
}

/* ===== ANIMAÇÕES ===== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(22px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes drawIn {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
}

.hero .kicker {
  animation: fadeInUp 0.8s ease both;
}

.hero-title {
  animation: fadeInUp 0.8s ease 0.1s both;
}

.hero-aside {
  animation: fadeInUp 0.8s ease 0.25s both;
}

.hero-meta {
  animation: fadeInUp 0.8s ease 0.4s both;
}

.hero-arte {
  animation: drawIn 1.4s ease 0.3s both;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.setores-grid .setor-card:nth-child(4n+2) { transition-delay: 0.08s; }
.setores-grid .setor-card:nth-child(4n+3) { transition-delay: 0.16s; }
.setores-grid .setor-card:nth-child(4n+4) { transition-delay: 0.24s; }

/* ===== RESPONSIVO ===== */
@media (max-width: 1200px) {
  .clientes-row {
    gap: 32px;
  }

  .cliente-logo {
    max-height: 54px;
    max-width: 150px;
  }

  .cliente-logo-tall {
    max-height: 76px;
  }
}

@media (max-width: 1024px) {
  .hero-arte {
    opacity: 0.5;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .hero-aside {
    padding-left: 0;
    border-left: none;
    max-width: 480px;
  }

  .hero-actions {
    flex-direction: row;
    align-items: center;
    gap: 28px;
  }

  .section-header {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .section-note {
    justify-self: start;
  }

  .servico-row {
    grid-template-columns: 64px 1fr;
  }

  .servico-itens {
    grid-column: 2;
  }

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

  .contato-grid {
    grid-template-columns: 1fr;
    gap: 64px;
  }

  .contato-form {
    padding-left: 0;
    border-left: none;
  }
}

@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 100px;
    left: 0;
    right: 0;
    background: rgba(250, 248, 243, 0.98);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    flex-direction: column;
    padding: 28px 24px;
    gap: 24px;
    border-bottom: 1px solid var(--hairline);
    transform: translateY(-130%);
    opacity: 0;
    transition: transform var(--transition), opacity var(--transition);
  }

  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
  }

  .hero {
    padding-top: 150px;
  }

  .hero-arte {
    display: none;
  }

  .marquee {
    margin-top: 64px;
  }

  .marquee-group {
    gap: 28px;
    padding: 16px 14px;
  }

  .servico-row {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 32px 0;
  }

  .servico-num {
    padding-top: 0;
  }

  .servico-itens {
    grid-column: 1;
    columns: 1;
  }

  .setores-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px 20px;
  }

  .clientes-row {
    justify-content: center;
    gap: 36px;
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .atuacao, .setores, .clientes, .contato {
    padding: 84px 0;
  }

  .footer-container {
    flex-direction: column;
    gap: 24px;
    text-align: center;
  }

  .footer-brand {
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .setores-grid {
    grid-template-columns: 1fr;
  }

  .setor-img {
    aspect-ratio: 16 / 10;
  }
}

@media (prefers-reduced-motion: reduce) {
  .marquee-track,
  .hero-arte path[stroke-dasharray],
  .hero .kicker,
  .hero-title,
  .hero-aside,
  .hero-arte {
    animation: none;
  }

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