:root {
  --navy: #00102e;
  --yellow: #ffd00a;
  --gray: #555858;
  --gray-light: #f7f7f8;
  --border: #e6e8ec;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: #ffffff;
  color: var(--navy);
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
  font-weight: 400;
}

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

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

a {
  color: inherit;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: #ffffff;
  border-bottom: 1px solid var(--border);
}

.header-inner {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 18px;
  padding: 20px 0;
}

.brand-logo {
  height: 68px;
  width: auto;
}

.brand-logo-compact {
  display: none;
}

.mobile-menu {
  display: contents;
}

.nav-links {
  display: flex;
  justify-self: center;
  gap: 28px;
  flex-wrap: wrap;
}

.nav-links a {
  text-decoration: none;
  color: var(--gray);
  font-size: 0.95rem;
}

.nav-links a:hover {
  color: var(--navy);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--navy);
  padding: 0;
  cursor: pointer;
}

.menu-toggle svg {
  width: 22px;
  height: 22px;
}

.icon-menu-close {
  display: none;
}

.menu-toggle.is-active .icon-menu-open {
  display: none;
}

.menu-toggle.is-active .icon-menu-close {
  display: block;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  white-space: nowrap;
  transition: opacity 0.15s ease;
}

.button:hover,
.button:focus-visible {
  opacity: 0.85;
}

.button-primary {
  background: var(--yellow);
  color: var(--navy);
}

.button-secondary {
  background: transparent;
  color: var(--navy);
  border: 1px solid var(--border);
}

/* Hero */

.hero {
  padding: 100px 0 88px;
}

.hero-grid {
  display: flex;
  justify-content: center;
}

.hero-copy {
  max-width: 720px;
  text-align: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  color: var(--gray);
  font-weight: 600;
}

.hero h1 {
  margin: 20px 0 20px;
  font-size: clamp(2.4rem, 4vw, 3.4rem);
  line-height: 1.12;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.hero-lead {
  max-width: 560px;
  margin: 0 auto;
  font-size: 1.1rem;
  color: var(--gray);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 32px;
}

.icon-arrow {
  width: 16px;
  height: 16px;
  margin-left: 8px;
  flex-shrink: 0;
}

.icon-left {
  width: 16px;
  height: 16px;
  margin-right: 8px;
  flex-shrink: 0;
}

/* Hero entrance animation (load) */

.hero-headline .word {
  display: inline-block;
}

@media (prefers-reduced-motion: no-preference) {
  .hero-headline .word {
    opacity: 0;
    filter: blur(8px);
    transform: translateY(20px);
    animation: hero-word-in 0.6s ease forwards;
  }

  .hero-headline .word:nth-child(1) { animation-delay: 0.05s; }
  .hero-headline .word:nth-child(2) { animation-delay: 0.16s; }
  .hero-headline .word:nth-child(3) { animation-delay: 0.27s; }
  .hero-headline .word:nth-child(4) { animation-delay: 0.38s; }
  .hero-headline .word:nth-child(5) { animation-delay: 0.49s; }
  .hero-headline .word:nth-child(6) { animation-delay: 0.6s; }

  .hero-fade {
    opacity: 0;
    transform: translateY(16px);
    animation: hero-fade-in 0.6s ease forwards;
  }

  .hero-fade-1 { animation-delay: 0s; }
  .hero-fade-2 { animation-delay: 0.8s; }
  .hero-fade-3 { animation-delay: 1s; }

  @keyframes hero-word-in {
    to {
      opacity: 1;
      filter: blur(0);
      transform: translateY(0);
    }
  }

  @keyframes hero-fade-in {
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
}

/* Reveal on scroll (services, método, diferenciais) */

@media (prefers-reduced-motion: no-preference) {
  .js-reveal .reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
  }

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

  .js-reveal .services-grid .reveal:nth-child(2) { transition-delay: 0.08s; }
  .js-reveal .services-grid .reveal:nth-child(3) { transition-delay: 0.16s; }
  .js-reveal .services-grid .reveal:nth-child(4) { transition-delay: 0.24s; }
  .js-reveal .services-grid .reveal:nth-child(5) { transition-delay: 0.32s; }
  .js-reveal .services-grid .reveal:nth-child(6) { transition-delay: 0.4s; }

  .js-reveal .process-row .reveal:nth-child(3) { transition-delay: 0.08s; }
  .js-reveal .process-row .reveal:nth-child(5) { transition-delay: 0.16s; }
  .js-reveal .process-row .reveal:nth-child(7) { transition-delay: 0.24s; }

  .js-reveal .diferenciais-list .reveal:nth-child(2) { transition-delay: 0.08s; }
  .js-reveal .diferenciais-list .reveal:nth-child(3) { transition-delay: 0.16s; }
  .js-reveal .diferenciais-list .reveal:nth-child(4) { transition-delay: 0.24s; }
}

/* Clients strip */

.clients {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 28px 0;
}

.clients-marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
  mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
}

.clients-track {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 56px;
  width: max-content;
}

.clients-track img {
  height: 40px;
  width: 120px;
  object-fit: contain;
  filter: grayscale(1);
  opacity: 0.55;
  transition: filter 0.25s ease, opacity 0.25s ease;
}

.clients-track img.logo-lg {
  height: 52px;
}

.clients-track img.logo-xl {
  height: 64px;
}

.clients-track img:hover {
  filter: grayscale(0);
  opacity: 1;
}

@media (prefers-reduced-motion: no-preference) {
  .clients-track {
    animation: clients-scroll 60s linear infinite;
  }

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

  @keyframes clients-scroll {
    from {
      transform: translateX(0);
    }
    to {
      transform: translateX(-50%);
    }
  }
}

/* Sections */

.section {
  padding: 96px 0;
  scroll-margin-top: 100px;
}

.section-alt {
  background: var(--gray-light);
}

.section-dark {
  background: var(--navy);
  color: #ffffff;
}

.section-header {
  max-width: 640px;
  margin-bottom: 52px;
}

.section-header h2 {
  margin: 16px 0 12px;
  font-size: clamp(1.9rem, 2.4vw, 2.4rem);
  font-weight: 700;
  letter-spacing: -0.01em;
}

.section-header p {
  color: var(--gray);
  font-size: 1.05rem;
}

/* Services */

.services-grid {
  display: grid;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  grid-template-columns: repeat(3, 1fr);
}

.service-card {
  background: #ffffff;
  padding: 36px 32px;
}

.service-index {
  display: block;
  color: var(--yellow);
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 16px;
  letter-spacing: 0.04em;
}

.service-card h3 {
  margin: 0 0 12px;
  font-size: 1.1rem;
  font-weight: 600;
}

.service-card p {
  margin: 0;
  color: var(--gray);
  font-size: 0.96rem;
}

/* Process (método) */

.process-row {
  display: flex;
  align-items: flex-start;
}

.process-step {
  flex: 1 1 0%;
  padding: 0 28px;
  position: relative;
}

.process-step:first-child {
  padding-left: 0;
}

.process-step:last-child {
  padding-right: 0;
}

.process-step::before {
  content: "";
  position: absolute;
  top: 0;
  left: 28px;
  right: 28px;
  height: 2px;
  background: var(--yellow);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.process-step:first-child::before {
  left: 0;
}

.process-step:last-child::before {
  right: 0;
}

.process-step:hover::before {
  transform: scaleX(1);
}

.process-index {
  display: block;
  color: var(--yellow);
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 18px;
  letter-spacing: 0.04em;
  transition: transform 0.25s ease;
}

.process-step:hover .process-index {
  transform: translateX(3px);
}

.process-step h3 {
  margin: 0 0 10px;
  font-size: 1.05rem;
  font-weight: 600;
}

.process-step p {
  margin: 0;
  color: var(--gray);
  font-size: 0.95rem;
}

.process-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  margin-top: -2px;
  background: rgba(255, 208, 10, 0.14);
  border: 1.5px solid rgba(255, 208, 10, 0.45);
  color: var(--navy);
  transition: background-color 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

.process-arrow svg {
  width: 20px;
  height: 20px;
}

.process-step:hover + .process-arrow {
  background: var(--yellow);
  border-color: var(--yellow);
  transform: translateX(5px) scale(1.08);
}

/* Diferenciais */

.diferenciais-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.diferenciais-cta {
  background: var(--navy);
  color: #ffffff;
  padding: 40px;
}

.diferenciais-cta .eyebrow {
  color: var(--yellow);
}

.diferenciais-cta h2 {
  margin: 16px 0 12px;
  font-size: clamp(1.7rem, 2.2vw, 2.2rem);
  font-weight: 700;
  letter-spacing: -0.01em;
}

.diferenciais-cta p {
  margin: 0 0 28px;
  color: #c7d0e8;
  font-size: 1.02rem;
}

.diferenciais-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.diferencial-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.icon-check {
  width: 18px;
  height: 18px;
  color: var(--yellow);
  flex-shrink: 0;
}

.diferenciais-list strong {
  display: block;
  font-size: 1.02rem;
  font-weight: 600;
}

.diferenciais-list p {
  margin: 0;
  color: var(--gray);
  font-size: 0.96rem;
}

/* Contato */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 56px;
  align-items: start;
}

.contact-intro h2 {
  margin: 16px 0 14px;
  font-size: clamp(1.8rem, 2.6vw, 2.3rem);
  font-weight: 700;
}

.contact-intro > p {
  color: #c7d0e8;
  font-size: 1.05rem;
  margin: 0;
}

.contact-alt {
  margin-top: 36px;
  display: grid;
  gap: 20px;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.icon-contact {
  width: 18px;
  height: 18px;
  margin-top: 3px;
  color: var(--yellow);
  flex-shrink: 0;
}

.contact-alt p {
  margin: 0;
  color: #c7d0e8;
}

.contact-alt a {
  text-decoration: none;
  font-weight: 600;
  color: #ffffff;
}

.contact-form {
  display: grid;
  gap: 18px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.14);
  padding: 32px;
}

.contact-form label {
  display: grid;
  gap: 8px;
  font-size: 0.9rem;
  color: #c7d0e8;
}

.contact-form input,
.contact-form textarea {
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--navy);
  background: #ffffff;
  border: 1px solid transparent;
  padding: 11px 14px;
  resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: 2px solid var(--yellow);
  outline-offset: 1px;
}

.form-honeypot {
  display: none;
}

.form-status {
  margin: 0;
  font-size: 0.88rem;
  color: #c7d0e8;
  min-height: 1.2em;
}

/* Footer */

.site-footer {
  padding: 32px 0;
  background: var(--navy);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

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

.footer-inner p {
  margin: 0;
  font-size: 0.88rem;
  color: #8d96b8;
}

/* Responsive */

@media (max-width: 900px) {
  .header-inner {
    display: flex;
    justify-content: space-between;
  }

  .brand-logo-full {
    display: none;
  }

  .brand-logo-compact {
    display: block;
  }

  .menu-toggle {
    display: flex;
  }

  .mobile-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 20px;
    background: #ffffff;
    border-bottom: 1px solid var(--border);
    padding: 20px;
  }

  .mobile-menu.is-open {
    display: flex;
  }

  .nav-links {
    display: none;
  }

  .header-actions {
    flex-direction: column;
    gap: 12px;
  }

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

  .process-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 36px;
  }

  .process-arrow {
    display: none;
  }

  .process-step {
    padding: 0;
  }

  .process-step::before {
    left: 0;
    right: 0;
  }

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

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

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

@media (max-width: 640px) {
  .hero {
    padding: 64px 0 48px;
  }

  .section {
    padding: 64px 0;
  }

  .services-grid,
  .process-row {
    grid-template-columns: 1fr;
  }

  .process-step {
    border-top: 1px solid var(--border);
    padding-top: 24px;
  }

  .process-step:first-child {
    border-top: none;
    padding-top: 0;
  }

  .button {
    width: 100%;
  }
}
