/* ============================================================
   LIMATECH — institutional site
   Palette: cold paper / ink / stamp blue
   Type: Archivo (variable width) + Fragment Mono
   ============================================================ */

:root {
  --paper: #f5f6f3;
  --surface: #fdfdfb;
  --ink: #10181f;
  --ink-soft: #5a6470;
  --line: #d9dcd4;
  --accent: #2038c8;
  --accent-soft: rgba(32, 56, 200, 0.07);

  --font-display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "Fragment Mono", "Courier New", monospace;

  --container: 1120px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink);
  background-color: var(--paper);
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: var(--accent);
  color: var(--paper);
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* ============ Topbar ============ */

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem var(--gutter);
  border-bottom: 1px solid var(--line);
  background: rgba(245, 246, 243, 0.85);
  backdrop-filter: blur(8px);
}

.topbar__brand {
  font-family: var(--font-display);
  font-weight: 800;
  font-stretch: 115%;
  font-size: 1.05rem;
  letter-spacing: 0.04em;
  text-decoration: none;
  color: var(--ink);
}

.topbar__dot {
  color: var(--accent);
}

.topbar__nav {
  display: flex;
  gap: 1.75rem;
}

.topbar__nav a {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  text-decoration: none;
  color: var(--ink-soft);
  transition: color 0.15s ease;
}

.topbar__nav a:hover {
  color: var(--accent);
}

/* ============ Hero ============ */

.hero {
  position: relative;
  max-width: var(--container);
  margin: 0 auto;
  padding: clamp(4rem, 10vh, 7rem) var(--gutter) clamp(3rem, 8vh, 5rem);
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 88px 88px;
  background-position: center top;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 30%, var(--paper) 96%);
  pointer-events: none;
}

.hero > * {
  position: relative;
  z-index: 1;
}

.hero__eyebrow {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--ink-soft);
  margin-bottom: 1.5rem;
}

.tick {
  display: inline-block;
  width: 0.55rem;
  height: 0.55rem;
  border: 1.5px solid var(--accent);
  border-radius: 50%;
}

.hero__wordmark {
  font-family: var(--font-display);
  font-weight: 850;
  font-stretch: 125%;
  font-size: clamp(3rem, 12.5vw, 9.5rem);
  line-height: 0.95;
  letter-spacing: -0.015em;
  text-transform: uppercase;
  color: var(--ink);
}

.hero__base {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem 3rem;
  margin-top: 2.25rem;
}

.hero__tagline {
  max-width: 34rem;
  font-size: clamp(1.05rem, 1.8vw, 1.3rem);
  line-height: 1.5;
  color: var(--ink);
}

.hero__tagline em {
  font-style: normal;
  color: var(--accent);
}

.hero__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  text-decoration: none;
  color: var(--ink);
  border: 1px solid var(--ink);
  padding: 0.7rem 1.25rem;
  border-radius: 999px;
  white-space: nowrap;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.hero__cta:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--paper);
}

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 2.5rem;
  margin-top: clamp(2.5rem, 6vh, 4rem);
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--ink-soft);
}

/* ============ Sections ============ */

.section-head {
  margin-bottom: 2.5rem;
}

.section-head h2 {
  font-family: var(--font-display);
  font-weight: 750;
  font-stretch: 115%;
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  letter-spacing: -0.01em;
}

.section-head p {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--ink-soft);
  margin-top: 0.35rem;
}

/* ============ Services ============ */

.services {
  max-width: var(--container);
  margin: 0 auto;
  padding: clamp(3rem, 8vh, 5.5rem) var(--gutter);
}

.services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
}

.service {
  padding-left: 1.25rem;
  border-left: 1px solid var(--line);
  transition: border-color 0.2s ease;
}

.service:hover {
  border-left-color: var(--accent);
}

.service__tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 0.2rem 0.55rem;
  border-radius: 3px;
  margin-bottom: 0.9rem;
}

.service h3 {
  font-family: var(--font-display);
  font-weight: 650;
  font-size: 1.15rem;
  letter-spacing: -0.005em;
  margin-bottom: 0.5rem;
}

.service p {
  font-size: 0.92rem;
  color: var(--ink-soft);
}

/* ============ Registry (signature) ============ */

.registry {
  max-width: var(--container);
  margin: 0 auto;
  padding: clamp(2rem, 5vh, 3.5rem) var(--gutter) clamp(4rem, 10vh, 6.5rem);
}

.registry__card {
  max-width: 46rem;
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--ink);
  padding: clamp(1.5rem, 4vw, 2.75rem);
}

.registry__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 1.1rem;
  margin-bottom: 0.5rem;
  border-bottom: 3px double var(--ink);
}

.registry__head h2 {
  font-family: var(--font-display);
  font-weight: 750;
  font-stretch: 115%;
  font-size: 1.35rem;
  letter-spacing: -0.01em;
}

.registry__stamp {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.22em;
  color: var(--accent);
  border: 2px solid var(--accent);
  border-radius: 4px;
  padding: 0.3rem 0.7rem 0.3rem 0.9rem;
  transform: rotate(-3deg);
  opacity: 0.85;
}

.registry__list {
  font-size: 0.95rem;
}

.registry__row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 0.85rem 0;
  border-bottom: 1px dotted var(--line);
}

.registry__row:last-child {
  border-bottom: none;
}

.registry__row dt {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink-soft);
  white-space: nowrap;
}

.registry__row dd {
  text-align: right;
  font-weight: 500;
}

.registry__row--cnpj dd {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-mono);
  font-size: 1.05rem;
  color: var(--accent);
}

.copy-btn {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--ink-soft);
  background: none;
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 0.25rem 0.6rem;
  cursor: pointer;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.copy-btn:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.copy-btn.is-copied {
  color: var(--paper);
  background: var(--accent);
  border-color: var(--accent);
}

/* ============ Legal documents ============ */

.doc {
  max-width: 44rem;
  margin: 0 auto;
  padding: clamp(3rem, 8vh, 5rem) var(--gutter) clamp(4rem, 10vh, 6rem);
  counter-reset: doc-section;
}

.doc__eyebrow {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 1rem;
}

.doc h1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-stretch: 118%;
  font-size: clamp(1.9rem, 5vw, 3rem);
  line-height: 1.1;
  letter-spacing: -0.015em;
  margin-bottom: 1rem;
}

.doc__intro {
  color: var(--ink-soft);
  margin-bottom: 2.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--line);
}

.doc h2 {
  counter-increment: doc-section;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: -0.005em;
  margin: 2.25rem 0 0.75rem;
}

.doc h2::before {
  content: counter(doc-section, decimal-leading-zero);
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: 0.8rem;
  color: var(--accent);
  margin-right: 0.75rem;
  vertical-align: 0.1em;
}

.doc p,
.doc li {
  font-size: 0.95rem;
  color: #2c3540;
  margin-bottom: 0.75rem;
}

.doc ul {
  padding-left: 1.25rem;
  margin-bottom: 1rem;
}

.doc__company {
  margin-top: 3rem;
  padding: 1.25rem 1.5rem;
  background: var(--surface);
  border: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  line-height: 1.8;
  color: var(--ink-soft);
}

.doc__company strong {
  color: var(--ink);
}

/* ============ Footer ============ */

.footer {
  background: var(--ink);
  color: var(--paper);
  padding: clamp(2.5rem, 6vh, 4rem) var(--gutter) 2rem;
}

.footer__brand {
  font-family: var(--font-display);
  font-weight: 850;
  font-stretch: 125%;
  font-size: 1.5rem;
  letter-spacing: 0.02em;
  margin-bottom: 1.5rem;
}

.footer__brand span {
  color: var(--accent);
  filter: brightness(1.9);
}

.footer__legal p {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  line-height: 1.9;
  color: rgba(245, 246, 243, 0.65);
}

.footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.75rem;
  margin-top: 1.5rem;
}

.footer__links a {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: rgba(245, 246, 243, 0.85);
  text-decoration: none;
  border-bottom: 1px dotted rgba(245, 246, 243, 0.4);
  padding-bottom: 0.1rem;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.footer__links a:hover {
  color: #8fa0ff;
  border-bottom-color: #8fa0ff;
}

.footer__copy {
  margin-top: 2.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(245, 246, 243, 0.15);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: rgba(245, 246, 243, 0.45);
}

/* ============ Reveal animation ============ */

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

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

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

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

/* ============ Responsive ============ */

@media (max-width: 820px) {
  .services__grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

@media (max-width: 560px) {
  .topbar__nav {
    gap: 1rem;
  }

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

  .registry__row {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
  }

  .registry__row dd {
    text-align: left;
  }
}
