/* ============================================================
   Oversend — dark minimal, typography-forward
   ============================================================ */

:root {
  --bg: #0a0a0b;
  --bg-2: #101012;
  --panel: #16161a;
  --text: #f5f5f4;
  --muted: #9a9a9e;
  --muted-dim: #6d6d72;
  --accent: #64c839;
  --accent-ink: #06210a;
  --line: rgba(245, 245, 244, 0.1);

  --font: "Inter", system-ui, -apple-system, sans-serif;

  --container: 1280px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --section-pad: clamp(6rem, 12vw, 11rem);

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Reset ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

ul,
ol {
  list-style: none;
}

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

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

.skip-link {
  position: fixed;
  top: -100px;
  left: 1rem;
  z-index: 200;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 600;
  padding: 0.75rem 1.25rem;
  border-radius: 0 0 8px 8px;
  transition: top 0.2s var(--ease-out);
}

.skip-link:focus {
  top: 0;
}

/* Film grain overlay — very subtle */
.grain {
  position: fixed;
  inset: -50%;
  width: 200%;
  height: 200%;
  z-index: 99;
  pointer-events: none;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 3.1rem;
  padding: 0.8rem 1.9rem;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: -0.01em;
  cursor: pointer;
  transition:
    transform 0.25s var(--ease-out),
    background-color 0.25s var(--ease-out),
    border-color 0.25s var(--ease-out),
    box-shadow 0.25s var(--ease-out);
}

.btn svg {
  width: 1.15rem;
  height: 1.15rem;
  flex: none;
}

.btn:active {
  transform: scale(0.97);
}

.btn-accent {
  background: var(--accent);
  color: var(--accent-ink);
}

.btn-accent:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 34px rgba(100, 200, 57, 0.25);
}

.btn-ghost {
  border: 1px solid rgba(245, 245, 244, 0.18);
  color: var(--text);
}

.btn-ghost:hover {
  border-color: rgba(245, 245, 244, 0.4);
  background: rgba(245, 245, 244, 0.05);
}

.btn-sm {
  min-height: 2.6rem;
  padding: 0.55rem 1.35rem;
  font-size: 0.85rem;
}

.btn-lg {
  min-height: 3.5rem;
  padding: 1rem 2.3rem;
  font-size: 1rem;
}

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  transition:
    background-color 0.35s var(--ease-out),
    border-color 0.35s var(--ease-out),
    backdrop-filter 0.35s var(--ease-out);
  border-bottom: 1px solid transparent;
}

.site-header.scrolled {
  background: rgba(10, 10, 11, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}

.header-inner {
  max-width: var(--container);
  margin-inline: auto;
  padding: 1.1rem var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.brand {
  display: flex;
  align-items: center;
}

.brand-name {
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.nav-desktop {
  display: flex;
  gap: 2.4rem;
}

.nav-desktop a {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--muted);
  padding: 0.5rem 0;
  position: relative;
  transition: color 0.25s var(--ease-out);
}

.nav-desktop a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0.2rem;
  width: 100%;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.35s var(--ease-out);
}

.nav-desktop a:hover {
  color: var(--text);
}

.nav-desktop a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 7px;
  width: 48px;
  height: 48px;
  align-items: center;
  border-radius: 50%;
}

.menu-line {
  display: block;
  width: 26px;
  height: 1.5px;
  background: var(--text);
  transition: transform 0.35s var(--ease-out), opacity 0.35s;
}

.menu-toggle[aria-expanded="true"] .menu-line:first-child {
  transform: translateY(4.25px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .menu-line:last-child {
  transform: translateY(-4.25px) rotate(-45deg);
}

/* ---------- Mobile menu overlay ---------- */
.menu-overlay {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(10, 10, 11, 0.97);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 3rem;
  padding: 6rem var(--gutter) 3rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s var(--ease-out), visibility 0s linear 0.4s;
}

.menu-overlay.open {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.4s var(--ease-out);
}

.menu-overlay-nav {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.menu-overlay-nav a {
  font-weight: 700;
  font-size: clamp(2rem, 8vw, 3rem);
  letter-spacing: -0.02em;
  padding: 0.45rem 0;
  display: flex;
  align-items: baseline;
  gap: 1rem;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.5s var(--ease-out), transform 0.5s var(--ease-out), color 0.25s;
}

.menu-overlay-nav a:hover {
  color: var(--accent);
}

.menu-overlay-nav a em {
  font-style: normal;
  font-weight: 500;
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  color: var(--accent);
}

.menu-overlay.open .menu-overlay-nav a {
  opacity: 1;
  transform: translateY(0);
}

.menu-overlay.open .menu-overlay-nav a:nth-child(1) { transition-delay: 0.08s; }
.menu-overlay.open .menu-overlay-nav a:nth-child(2) { transition-delay: 0.14s; }
.menu-overlay.open .menu-overlay-nav a:nth-child(3) { transition-delay: 0.2s; }

.menu-overlay-footer {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.menu-overlay-footer p {
  font-size: 0.8rem;
  color: var(--muted);
  letter-spacing: 0.05em;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.hero-dots {
  position: absolute;
  inset: 0;
}

.hero-dots canvas {
  display: block;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(245, 245, 244, 0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(245, 245, 244, 0.05) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 20%, black 40%, transparent 90%);
}

.hero-orb {
  position: absolute;
  top: -20%;
  right: -10%;
  width: min(60vw, 760px);
  height: min(60vw, 760px);
  border-radius: 50%;
  background: radial-gradient(circle at 50% 50%, rgba(100, 200, 57, 0.28), transparent 70%);
  filter: blur(40px);
  animation: orb-drift 22s var(--ease-out) infinite alternate;
}

@keyframes orb-drift {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(-4%, 6%) scale(1.08); }
}

.hero-content {
  position: relative;
  z-index: 2;
  padding-top: 7rem;
  padding-bottom: 9rem;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.28em;
  color: var(--accent);
}

.eyebrow-rule {
  display: inline-block;
  width: 3rem;
  height: 1px;
  background: var(--accent);
  flex: none;
}

.hero-eyebrow {
  margin-bottom: 2rem;
}

.hero-title {
  font-weight: 800;
  font-size: clamp(2.8rem, 8.8vw, 7.5rem);
  line-height: 0.98;
  letter-spacing: -0.035em;
  max-width: 16ch;
  margin-bottom: 2rem;
}

.hero-sub {
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  font-weight: 400;
  color: var(--muted);
  max-width: 34rem;
  margin-bottom: 3rem;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.hero-footer {
  position: relative;
  z-index: 2;
}

.scroll-cue {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 0 var(--gutter) 1.75rem;
  max-width: var(--container);
  margin-inline: auto;
}

.scroll-cue-line {
  width: 1px;
  height: 3rem;
  background: linear-gradient(to bottom, transparent, var(--accent));
  animation: cue 2.4s var(--ease-out) infinite;
  transform-origin: top;
}

@keyframes cue {
  0% { transform: scaleY(0); }
  45% { transform: scaleY(1); }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

.scroll-cue-label {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  color: var(--muted);
}

/* Marquee */
.marquee {
  border-top: 1px solid var(--line);
  padding: 1.2rem 0;
  overflow: hidden;
  background: rgba(10, 10, 11, 0.5);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

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

.marquee-group {
  font-weight: 500;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  color: var(--muted);
  white-space: nowrap;
  padding-right: 1rem;
}

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

/* ---------- Sections (shared) ---------- */
.section {
  padding-block: var(--section-pad);
  position: relative;
}

.section-alt {
  background: var(--bg-2);
  border-block: 1px solid var(--line);
}

.section-head {
  margin-bottom: clamp(3rem, 7vw, 5.5rem);
  max-width: 46rem;
}

.section-head-center {
  margin-inline: auto;
  text-align: center;
}

.eyebrow-center {
  justify-content: center;
}

.section-index {
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  color: var(--accent);
  padding-right: 1rem;
  border-right: 1px solid var(--line);
  margin-right: 0.25rem;
}

.section-title {
  font-weight: 700;
  font-size: clamp(2rem, 4.6vw, 3.5rem);
  line-height: 1.08;
  letter-spacing: -0.025em;
  margin-top: 1.5rem;
}

.section-title-big {
  font-size: clamp(2.2rem, 5.5vw, 4.2rem);
}

/* ---------- Services ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.service-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: clamp(1.75rem, 2.5vw, 2.25rem);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  transition: transform 0.35s var(--ease-out), border-color 0.35s;
}

.service-card:hover {
  transform: translateY(-6px);
  border-color: rgba(100, 200, 57, 0.35);
}

.service-icon {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 10px;
  background: rgba(100, 200, 57, 0.12);
  color: var(--accent);
  display: grid;
  place-items: center;
}

.service-icon svg {
  width: 1.4rem;
  height: 1.4rem;
}

.service-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.service-card p {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.55;
}

/* ---------- Process ---------- */
.process-list {
  border-top: 1px solid var(--line);
}

.process-step {
  display: grid;
  grid-template-columns: 5rem 1fr;
  gap: clamp(1.25rem, 4vw, 3rem);
  padding: clamp(2rem, 4vw, 2.75rem) 0;
  border-bottom: 1px solid var(--line);
  align-items: start;
}

.process-num {
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: -0.02em;
  color: var(--muted-dim);
}

.process-body h3 {
  font-size: clamp(1.3rem, 2.6vw, 1.8rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.6rem;
}

.process-body p {
  color: var(--muted);
  font-size: 0.98rem;
  max-width: 40rem;
}

/* ---------- Contato ---------- */
.contato-sub {
  color: var(--muted);
  max-width: 32rem;
  margin: 1.75rem auto 0;
}

.contato-ctas {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.25rem;
  margin-top: 3rem;
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 3.5rem 0 2rem;
  background: var(--bg);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding-bottom: 2.5rem;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.8rem;
}

.footer-nav a {
  font-size: 0.85rem;
  color: var(--muted);
  padding: 0.75rem 0;
  display: inline-block;
  transition: color 0.25s;
}

.footer-nav a:hover {
  color: var(--text);
}

.footer-legal {
  border-top: 1px solid var(--line);
  padding-top: 1.75rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.8rem;
  color: var(--muted);
}

/* ---------- WhatsApp float ---------- */
.wa-float {
  position: fixed;
  right: 1.4rem;
  bottom: 1.4rem;
  z-index: 80;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-ink);
  display: grid;
  place-items: center;
  box-shadow: 0 12px 30px rgba(100, 200, 57, 0.35);
  transition: transform 0.3s var(--ease-out);
}

.wa-float:hover {
  transform: scale(1.08);
}

.wa-float:active {
  transform: scale(0.95);
}

.wa-float svg {
  width: 1.6rem;
  height: 1.6rem;
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1023px) {
  .nav-desktop {
    display: none;
  }

  .menu-toggle {
    display: flex;
  }

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

@media (min-width: 1024px) {
  .menu-overlay {
    display: none;
  }
}

@media (max-width: 640px) {
  .header-actions .btn {
    display: none;
  }

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

  .process-step {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }

  .hero-ctas .btn,
  .contato-ctas .btn {
    width: 100%;
  }

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

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .marquee-track {
    animation: none;
  }

  .scroll-cue-line {
    animation: none;
    transform: scaleY(1);
  }

  .hero-orb {
    animation: none;
  }
}
