/* Veritum Brasil — preview landing (estático, NÃO produção) */
:root {
  --ink: #142e49;
  --navy: #1b3a6f;
  --deep: #102a43;
  --gold: #d4a017;
  --ochre: #8e681d;
  --paper: #f7f5f0;
  --white: #fffefa;
  --muted: #52616b;
  --line: #d9ddd9;
  --bluewash: #eaf0f3;
  --radius: 3px;
  --max: 1120px;
  --serif: "Cormorant Garamond", Cormorant, Georgia, "Times New Roman", serif;
  --sans: Inter, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font: 15px/1.7 var(--sans);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin: 0; }
h1, h2 {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.03em;
}
h1 { font-size: clamp(2.2rem, 5.5vw, 3.6rem); }
h2 { font-size: clamp(1.85rem, 4vw, 2.75rem); }
h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.35rem;
  line-height: 1.25;
}
p { color: var(--muted); }
:focus-visible {
  outline: 3px solid #b58314;
  outline-offset: 4px;
}
::selection { background: #e6cc8b; color: var(--deep); }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.skip {
  position: absolute;
  left: 1rem;
  top: -100px;
  z-index: 100;
  background: var(--white);
  padding: 0.75rem 1rem;
  border: 1px solid var(--line);
}
.skip:focus { top: 0.75rem; }

.wrap {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}
@media (min-width: 768px) {
  .wrap { width: min(100% - 4rem, var(--max)); }
}

.preview-banner { display: none !important; }

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(247, 245, 240, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: 72px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-shrink: 0;
}
.brand img {
  width: 36px;
  height: 36px;
  border-radius: 4px;
}
.brand-word {
  font-family: var(--serif);
  font-size: 1.65rem;
  letter-spacing: -0.02em;
  line-height: 1;
  color: var(--ink);
}
.brand-word small {
  display: block;
  font-family: var(--sans);
  font-size: 0.55rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-top: 0.3rem;
  color: var(--muted);
}
.nav {
  margin-left: auto;
  display: none;
  align-items: center;
  gap: 1.5rem;
}
.nav a {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  padding: 0.5rem 0;
}
.nav a:hover { color: var(--ochre); }
.header-cta { display: none; }
.menu-btn {
  margin-left: auto;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.55rem 0.85rem;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
}
.nav-panel {
  display: none;
  border-top: 1px solid var(--line);
  padding: 0.75rem 0 1.25rem;
}
.nav-panel.is-open { display: block; }
.nav-panel a {
  display: block;
  padding: 0.65rem 0;
  font-size: 0.9rem;
  border-bottom: 1px solid var(--line);
}
.nav-panel .btn { margin-top: 1rem; width: 100%; }

@media (min-width: 880px) {
  .menu-btn { display: none; }
  .nav { display: flex; }
  .header-cta { display: inline-flex; margin-left: 0.25rem; }
  .nav-panel { display: none !important; }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  min-height: 46px;
  padding: 0.7rem 1.2rem;
  border: 1px solid transparent;
  border-radius: var(--radius);
  background: var(--navy);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: background 0.2s, transform 0.2s, border-color 0.2s, color 0.2s;
  cursor: pointer;
}
.btn:hover { background: #102a50; transform: translateY(-1px); }
.btn.outline {
  background: transparent;
  border-color: #b9c1c6;
  color: var(--ink);
}
.btn.outline:hover { border-color: var(--ochre); color: var(--ochre); background: transparent; }
.btn.outline-light {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.45);
  color: #fff;
}
.btn.outline-light:hover {
  border-color: #e7c671;
  color: #e7c671;
  background: transparent;
}
.btn.wa { background: #1a5c3a; }
.btn.wa:hover { background: #144a2e; }
.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.75rem;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-transform: uppercase;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--ochre);
  margin-bottom: 1.25rem;
}
.eyebrow::before {
  content: "";
  width: 1.4rem;
  height: 1px;
  background: currentColor;
}
.eyebrow-light { color: #e7c671; }

/* Hero — vídeo + overlay escuro */
.hero {
  position: relative;
  isolation: isolate;
  padding: 3.5rem 0 4rem;
  color: #f4f7f9;
  overflow: hidden;
  min-height: min(88vh, 820px);
  display: flex;
  align-items: center;
}
.hero-media {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--deep);
}
.hero-poster,
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-video {
  opacity: 0;
  transition: opacity 0.6s ease;
}
.hero-video.is-ready { opacity: 1; }
.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(105deg, rgba(10, 22, 36, 0.92) 0%, rgba(10, 22, 36, 0.78) 42%, rgba(16, 42, 67, 0.62) 100%),
    linear-gradient(to top, rgba(10, 22, 36, 0.75) 0%, transparent 40%);
}
.hero-inner {
  display: grid;
  gap: 2.25rem;
  align-items: end;
  width: min(100% - 2rem, var(--max));
}
@media (min-width: 768px) {
  .hero-inner { width: min(100% - 4rem, var(--max)); }
}
@media (min-width: 960px) {
  .hero-inner {
    grid-template-columns: 1.2fr 0.8fr;
    gap: 2.5rem;
    align-items: center;
  }
}
.hero-copy { max-width: 36rem; }
.hero h1 { color: #fffefa; }
.hero .lead {
  margin-top: 1.35rem;
  font-size: 1.02rem;
  line-height: 1.75;
  max-width: 34rem;
  color: #c5d2da;
}

/* Word rotate (estilo giro CF — implementação própria) */
.word-rotate {
  display: inline-grid;
  vertical-align: baseline;
  position: relative;
  min-width: 11ch;
  color: #e7c671;
  font-style: italic;
}
.word-rotate-track {
  display: grid;
  grid-template-areas: "stack";
}
.word-rotate-item {
  grid-area: stack;
  opacity: 0;
  transform: translateY(0.55em);
  transition: opacity 0.45s ease, transform 0.45s ease;
  pointer-events: none;
  white-space: nowrap;
}
.word-rotate-item.is-active {
  opacity: 1;
  transform: translateY(0);
}
.word-rotate-item.is-exit {
  opacity: 0;
  transform: translateY(-0.45em);
}

.ecosystem-strip {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  margin-top: 1.5rem;
  padding: 0.45rem 0.85rem;
  background: var(--bluewash);
  border-left: 2px solid var(--navy);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  color: var(--muted);
}
.ecosystem-strip-dark {
  background: rgba(255, 255, 255, 0.08);
  border-left-color: #e7c671;
  color: #d5e0e7;
  backdrop-filter: blur(6px);
}

/* Glass stats panel */
.hero-stats {
  padding: 1.5rem 1.35rem 1.35rem;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.25);
}
.hero-stats .panel-label {
  font-size: 0.65rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #e7c671;
  margin-bottom: 0.4rem;
}
.stats-attribution {
  font-size: 0.72rem;
  color: #9eb0be;
  margin-bottom: 1.15rem;
  line-height: 1.45;
}
.tag-unverified {
  font-size: 0.62rem;
  letter-spacing: 0.04em;
  color: #c9a24a;
  font-weight: 600;
}
.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem 1rem;
  margin: 0;
}
.stat {
  padding: 0.7rem 0.55rem;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}
.stat dt {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(1.45rem, 3.5vw, 1.85rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: #fffefa;
}
.stat dd {
  margin: 0.35rem 0 0;
  font-size: 0.72rem;
  line-height: 1.35;
  color: #b7c6d0;
}

/* Clients marquee */
.clients {
  padding: 3.25rem 0 2.5rem;
  background: var(--white);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.clients-head {
  margin-bottom: 1.75rem;
  max-width: 40rem;
}
.marquee {
  position: relative;
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.marquee-track {
  display: flex;
  width: max-content;
  gap: 0;
  animation: marquee-scroll 42s linear infinite;
}
.marquee-list {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  list-style: none;
  margin: 0;
  padding: 0.75rem 1.25rem;
  flex-shrink: 0;
}
.marquee-list li {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 64px;
  padding: 0 0.5rem;
  opacity: 0.78;
  transition: opacity 0.2s, filter 0.2s;
}
.marquee-list li:hover { opacity: 1; }
.marquee-list img {
  max-height: 48px;
  width: auto;
  max-width: 140px;
  object-fit: contain;
  filter: grayscale(0.15);
}
@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.marquee:hover .marquee-track {
  animation-play-state: paused;
}

/* Reveal / fade-up */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Sections */
.section { padding: 4rem 0; }
.section + .section { border-top: 1px solid var(--line); }
.section-head {
  display: grid;
  gap: 1rem;
  margin-bottom: 2.25rem;
  max-width: 40rem;
}
.section-head .lead { font-size: 0.98rem; }

/* Services */
.services { background: var(--white); border-top: 0; }
.cards {
  display: grid;
  gap: 0;
  border: 1px solid var(--line);
  border-bottom: 0;
  border-right: 0;
}
@media (min-width: 700px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1000px) {
  .cards { grid-template-columns: repeat(3, 1fr); }
}
.card {
  padding: 1.6rem 1.4rem 1.75rem;
  border-bottom: 1px solid var(--line);
  border-right: 1px solid var(--line);
  background: var(--white);
  display: flex;
  flex-direction: column;
  min-height: 11.5rem;
  transition: background 0.25s, transform 0.25s, box-shadow 0.25s;
}
.card:hover {
  background: #f2f4f1;
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(16, 42, 67, 0.08);
  z-index: 1;
}
.card .num {
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  color: var(--ochre);
  margin-bottom: 1.4rem;
}
.card h3 { margin-bottom: 0.55rem; color: var(--ink); }
.card p { font-size: 0.86rem; line-height: 1.7; flex: 1; }
.card .card-link {
  margin-top: 1.1rem;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--navy);
  display: inline-flex;
  gap: 0.5rem;
  align-items: center;
  border-bottom: 1px solid #a3afb5;
  padding-bottom: 0.35rem;
  align-self: flex-start;
}
.card .card-link:hover { color: var(--ochre); border-color: var(--ochre); }

/* Location */
.location-grid {
  display: grid;
  gap: 1.75rem;
}
@media (min-width: 860px) {
  .location-grid {
    grid-template-columns: 1fr 1.15fr;
    gap: 2.5rem;
    align-items: start;
  }
}
.address-block {
  background: var(--bluewash);
  padding: 1.5rem;
  border-left: 2px solid var(--navy);
}
.address-block h3 { margin-bottom: 0.75rem; }
.address-block address {
  font-style: normal;
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--ink);
}
.address-block p { margin-top: 1rem; font-size: 0.88rem; }
.map-frame {
  border: 1px solid var(--line);
  background: var(--white);
  overflow: hidden;
  aspect-ratio: 16 / 11;
  min-height: 260px;
}
.map-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}
.map-caption {
  margin-top: 0.65rem;
  font-size: 0.75rem;
}
.map-caption a {
  color: var(--navy);
  font-weight: 600;
  border-bottom: 1px solid #a3afb5;
}
.map-caption a:hover { color: var(--ochre); border-color: var(--ochre); }

/* Ecosystem */
.ecosystem {
  background: var(--deep);
  color: var(--paper);
  border-top: 0 !important;
}
.ecosystem .section-head { max-width: 44rem; }
.ecosystem h2 { color: var(--paper); }
.ecosystem h2 em { color: #e7c671; font-style: italic; }
.ecosystem p { color: #bdcbd5; }
.ecosystem .lead { color: #c5d2da; }

/* About CF */
.about-cf-inner {
  display: grid;
  gap: 1.5rem;
  align-items: center;
}
@media (min-width: 700px) {
  .about-cf-inner {
    grid-template-columns: auto 1fr;
    gap: 2rem;
  }
}
.cf-logo-wrap {
  opacity: 0.55;
  filter: grayscale(0.15);
}
.cf-logo-wrap img {
  height: 22px;
  width: auto;
}
.about-cf p { font-size: 0.92rem; max-width: 36rem; }
.about-cf .ext-link {
  display: inline-flex;
  margin-top: 1rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--navy);
  border-bottom: 1px solid #a3afb5;
  padding-bottom: 0.3rem;
  gap: 0.45rem;
}
.about-cf .ext-link:hover { color: var(--ochre); border-color: var(--ochre); }

/* Contact band */
.contact-band {
  background: var(--white);
  border-top: 1px solid var(--line);
  padding: 3rem 0;
}
.contact-band h2 { margin-bottom: 0.75rem; }
.contact-band .lead { margin-bottom: 0.25rem; }

/* Footer */
.footer {
  background: var(--deep);
  color: #dfe6ea;
  padding: 3rem 0 2rem;
  font-size: 0.85rem;
}
.footer a { color: #e7c671; }
.footer a:hover { color: #f0d89a; }
.footer-grid {
  display: grid;
  gap: 2rem;
}
@media (min-width: 800px) {
  .footer-grid {
    grid-template-columns: 1.3fr 1fr 1fr;
    gap: 2.5rem;
  }
}
.footer h3 {
  font-family: var(--sans);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #9aafbd;
  margin-bottom: 1rem;
}
.footer .brand-word {
  color: #fff;
  font-size: 1.5rem;
}
.footer .brand-word small { color: #9aafbd; }
.footer p, .footer li { color: #bdcbd5; font-size: 0.82rem; line-height: 1.7; }
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer li + li { margin-top: 0.35rem; }
.footer-bottom {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid #2a4258;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
}
.footer-cf {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  opacity: 0.45;
}
.footer-cf img {
  height: 22px;
  width: auto;
}
.footer-cf span {
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #9aafbd;
}
.footer-meta {
  font-size: 0.72rem;
  color: #7a93a5;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-video { display: none !important; }
  .word-rotate-item {
    transition: none;
  }
  .word-rotate-item:not(.is-active) {
    display: none;
  }
  .marquee-track {
    animation: none;
    flex-wrap: wrap;
    width: 100%;
    justify-content: center;
    max-width: var(--max);
    margin-inline: auto;
    gap: 0.5rem 1.5rem;
  }
  .marquee-list[aria-hidden="true"] { display: none; }
  .marquee-list {
    flex-wrap: wrap;
    justify-content: center;
    padding: 0.5rem 1rem 1rem;
  }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .card:hover { transform: none; }
  .btn:hover { transform: none; }
}

.address-stack {
  display: grid;
  gap: 1rem;
}
.address-block .loc-label {
  margin: 0 0 0.35rem;
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--muted, #5c6b75);
}
.address-block-subtle {
  background: transparent;
  border-left: 2px solid #c5d0d6;
  padding-top: 1.1rem;
  padding-bottom: 1.1rem;
}
.address-block-subtle h3 {
  font-size: 1.05rem;
  color: #3d4f5c;
}
.address-block-subtle address {
  font-size: 0.86rem;
  color: #4a5c68;
}

.address-card {
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, transform 0.15s ease;
  outline: none;
}
.address-card:hover {
  border-left-color: var(--ochre, #c4a35a);
  box-shadow: 0 6px 18px rgba(16, 42, 67, 0.08);
}
.address-card:focus-visible {
  box-shadow: 0 0 0 3px rgba(231, 198, 113, 0.55);
}
.address-card.is-active {
  border-left-color: var(--ochre, #c4a35a);
  box-shadow: 0 8px 22px rgba(16, 42, 67, 0.12);
  background: #fff;
}
.address-card.address-block-subtle.is-active {
  background: #f7fafc;
  border-left-color: var(--ochre, #c4a35a);
}
.address-card .loc-hint {
  margin-top: 0.85rem;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #7a8b96;
  font-weight: 600;
}
.address-card.is-active .loc-hint {
  color: var(--ochre, #c4a35a);
}
