/* ==========================================================================
   Lumix Comunicação Visual — Landing Page
   Design system, layout e microinterações
   ========================================================================== */

:root {
  /* Cores — extraídas da identidade visual da marca */
  --ink: #14181d;
  --ink-soft: #4c5561;
  --ink-faint: #8a97a6;
  --bg: #ffffff;
  --bg-alt: #f4f7f9;
  --border: #e6ebef;

  --dark: #0d1117;
  --dark-2: #171d25;
  --dark-ink: #eef3f7;
  --dark-ink-soft: #9aa7b5;

  --accent: #1596d6;
  --accent-light: #29abe2;
  --accent-dark: #0d6a99;
  --accent-tint: #e7f6fd;

  /* Tipografia */
  --font-heading: "Poppins", "Segoe UI", Arial, sans-serif;
  --font-body: "Inter", "Segoe UI", Arial, sans-serif;

  /* Espaçamento fluido */
  --space-xs: clamp(0.5rem, 0.45rem + 0.25vw, 0.75rem);
  --space-sm: clamp(0.75rem, 0.65rem + 0.5vw, 1.25rem);
  --space-md: clamp(1.5rem, 1.2rem + 1.2vw, 2.5rem);
  --space-lg: clamp(2.5rem, 1.8rem + 2.8vw, 4.5rem);
  --space-xl: clamp(4rem, 3rem + 4vw, 7rem);

  --container-w: 1220px;
  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 28px;

  --shadow-sm: 0 2px 10px rgba(20, 24, 29, 0.06);
  --shadow-md: 0 12px 32px rgba(20, 24, 29, 0.10);
  --shadow-lg: 0 24px 60px rgba(13, 17, 23, 0.28);

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-reveal: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ---------- Reset básico ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body, h1, h2, h3, p, ul, ol, li, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
svg { display: block; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1, h2, h3 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.15;
  color: var(--ink);
  letter-spacing: -0.01em;
}

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: -60px;
  left: 1rem;
  background: var(--accent);
  color: #fff;
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-sm);
  z-index: 1000;
  transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 1rem; }

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

.container {
  width: 100%;
  max-width: var(--container-w);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 2.5rem);
}

/* ---------- Reveal on scroll ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 1.3s var(--ease-reveal), transform 1.3s var(--ease-reveal);
}
[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Botões ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  border-radius: 999px;
  padding: 1rem 2rem;
  white-space: normal;
  text-align: center;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), background 0.3s var(--ease);
  will-change: transform;
}
.btn-primary {
  background: linear-gradient(135deg, var(--accent-light), var(--accent));
  color: #fff;
  box-shadow: 0 10px 24px rgba(21, 150, 214, 0.35);
  animation: btn-pulse 2.4s ease-in-out infinite;
}
.btn-primary:hover,
.btn-primary:focus-visible {
  animation-play-state: paused;
  transform: translateY(-3px) scale(1.04);
  box-shadow: 0 16px 34px rgba(21, 150, 214, 0.45);
}
.btn-primary:active { transform: translateY(-1px) scale(1.01); }

@keyframes btn-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.035); }
}
.btn-large { padding: 1.15rem 2.6rem; font-size: 1rem; }
.btn-small {
  padding: 0.6rem 1.25rem;
  font-size: 0.78rem;
}

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 500;
  height: 84px;
  background: var(--bg-alt);
  box-shadow: 0 1px 0 var(--border);
  transition: height 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.site-header.is-scrolled {
  height: 68px;
  box-shadow: 0 4px 16px rgba(20, 24, 29, 0.1);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  height: 100%;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
}
.brand-logo {
  width: 60px;
  height: 60px;
  object-fit: contain;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: clamp(1.25rem, 2vw, 2.25rem);
}
.nav-menu a {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.92rem;
  font-weight: 500;
  position: relative;
  padding-block: 0.25rem;
}
.nav-menu a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 2px;
  background: var(--accent-light);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}
.nav-menu a:hover::after,
.nav-menu a:focus-visible::after { transform: scaleX(1); }

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}
.header-whatsapp-btn { display: none; }

@media (min-width: 900px) {
  .header-whatsapp-btn { display: inline-flex; }
}

.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 899px) {
  .nav-menu {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: min(78vw, 320px);
    background: var(--dark-2);
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 1.75rem;
    padding-inline: 2.25rem;
    transform: translateX(100%);
    transition: transform 0.4s var(--ease);
    box-shadow: -20px 0 50px rgba(0, 0, 0, 0.35);
  }
  .nav-menu[data-open="true"] { transform: translateX(0); }
  .nav-menu a { font-size: 1.15rem; }
}

@media (min-width: 900px) {
  .site-nav { display: block; }
  .nav-toggle { display: none; }
  .nav-menu a { font-size: 1.05rem; color: var(--ink-soft); }
  .nav-menu a:hover,
  .nav-menu a:focus-visible { color: var(--ink); }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  color: #fff;
  overflow: hidden;
  padding-top: 6rem;
}
.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(6, 9, 13, 0.8) 0%, rgba(6, 9, 13, 0.45) 55%, rgba(6, 9, 13, 0.15) 100%),
    linear-gradient(0deg, rgba(6, 9, 13, 0.96) 0%, rgba(6, 9, 13, 0.78) 45%, rgba(6, 9, 13, 0.55) 100%);
}
.hero-content {
  position: relative;
  z-index: 2;
  padding-bottom: clamp(3rem, 6vw, 5.5rem);
  max-width: 900px;
}
.eyebrow, .section-eyebrow {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-light);
  margin-bottom: var(--space-sm);
}
.hero h1 {
  font-size: clamp(2.1rem, 1.55rem + 3vw, 3.75rem);
  color: #fff;
  margin-bottom: var(--space-md);
}
.hero-subhead {
  font-size: clamp(1.05rem, 1rem + 0.5vw, 1.35rem);
  color: rgba(255, 255, 255, 0.92);
  line-height: 1.5;
  max-width: 680px;
  margin-bottom: var(--space-sm);
}
.hero-desc {
  font-size: 1rem;
  color: var(--dark-ink-soft);
  line-height: 1.6;
  max-width: 620px;
  margin-bottom: var(--space-md);
}
.hero-desc strong { color: #fff; font-weight: 600; }
.hero-actions { margin-bottom: var(--space-md); }

.hero-checks {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.4rem;
}
.hero-checks li {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.85);
  display: flex;
  align-items: center;
  gap: 0.55rem;
}
.hero-checks li::before {
  content: "\2713";
  flex: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  line-height: 1;
  color: #0d1117;
  background: linear-gradient(135deg, var(--accent-light), var(--accent));
}

.scroll-cue {
  position: absolute;
  bottom: 1.75rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  width: 26px;
  height: 42px;
  border: 2px solid rgba(255, 255, 255, 0.5);
  border-radius: 999px;
  display: none;
}
.scroll-cue span {
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 8px;
  border-radius: 2px;
  background: #fff;
  animation: scrollcue 1.8s ease-in-out infinite;
}
@keyframes scrollcue {
  0% { opacity: 1; top: 6px; }
  70% { opacity: 0; top: 20px; }
  100% { opacity: 0; top: 20px; }
}
@media (min-width: 700px) { .scroll-cue { display: block; } }

/* ---------- Seções — base ---------- */
section { position: relative; }
section[id] { scroll-margin-top: 96px; }
.services, .differentials, .process { padding-block: var(--space-xl); }
.problem { padding-block: var(--space-xl); background: var(--bg-alt); }

h2 {
  font-size: clamp(1.7rem, 1.4rem + 1.6vw, 2.5rem);
  max-width: 720px;
  margin-bottom: var(--space-lg);
}

/* ---------- Serviços ---------- */
.services-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
}
.services-grid .service-card {
  flex: 1 1 100%;
  max-width: 100%;
}
@media (min-width: 700px) {
  .services-grid .service-card { flex: 1 1 calc(50% - 1rem); max-width: calc(50% - 1rem); }
}
@media (min-width: 960px) {
  .services-grid .service-card { flex: 1 1 calc(25% - 1.5rem); max-width: calc(25% - 1.5rem); }
}
.services-grid + .services-grid {
  margin-top: clamp(1.25rem, 2vw, 2rem);
}
.services-grid-centered {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}
.services-grid-centered .service-card {
  flex: 0 1 250px;
}
.service-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  color: inherit;
  text-decoration: none;
  transition:
    opacity 1.3s var(--ease-reveal),
    transform 1.3s var(--ease-reveal),
    translate 0.4s var(--ease),
    box-shadow 0.4s var(--ease),
    border-color 0.4s var(--ease);
}
.service-card:hover {
  translate: 0 -6px;
  box-shadow: 0 16px 36px rgba(21, 150, 214, 0.22);
  border-color: var(--accent-light);
}
.service-photo {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--dark);
}
.service-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}
.service-card:hover .service-photo img { transform: scale(1.06); }
.service-card h3 {
  font-size: 1.05rem;
  margin: 1.25rem 1.25rem 0.4rem;
}
.service-card p {
  font-size: 0.92rem;
  color: var(--ink-soft);
  line-height: 1.5;
  margin: 0 1.25rem 1.5rem;
}
.service-card-cta {
  display: flex;
  width: calc(100% - 2.5rem);
  margin: auto 1.25rem 1.25rem;
  animation: none;
}

.services-note {
  max-width: 640px;
  margin-inline: auto;
  margin-top: var(--space-lg);
  color: var(--ink-soft);
  line-height: 1.6;
  text-align: center;
}
.services-note strong { color: var(--ink); }

.section-cta { margin-top: var(--space-md); }
.services .section-cta { text-align: center; }

/* ---------- Problema ---------- */
.problem-grid { display: flex; justify-content: center; }
.problem-copy {
  max-width: 700px;
  border-left: 3px solid var(--accent-light);
  padding-left: clamp(1.25rem, 3vw, 2.25rem);
}
.problem-copy p {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--ink-soft);
  margin-bottom: 1.1rem;
}
.problem-copy h2 { margin-bottom: var(--space-md); }

/* ---------- Diferenciais ---------- */
.differentials-grid {
  border-top: 1px solid var(--border);
}
.differentials-grid li {
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 1.25rem;
  padding-block: 1.75rem;
  border-bottom: 1px solid var(--border);
}
.differentials-grid li::before {
  counter-increment: diff;
  content: counter(diff, decimal-leading-zero);
  grid-column: 1;
  grid-row: 1 / -1;
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--accent-light);
}
.differentials-grid { counter-reset: diff; }
.differentials-grid h3 {
  grid-column: 2;
  font-size: 1.15rem;
  margin-bottom: 0.4rem;
}
.differentials-grid p {
  grid-column: 2;
  color: var(--ink-soft);
  line-height: 1.6;
  max-width: 620px;
}

@media (min-width: 700px) {
  .differentials-grid li {
    grid-template-columns: 80px minmax(0, 620px);
    align-items: start;
  }
}

/* ---------- Como funciona ---------- */
.process-steps {
  display: grid;
  gap: 2.5rem;
  position: relative;
}
.process-steps li {
  position: relative;
  padding-left: 4.25rem;
}
.step-number {
  position: absolute;
  left: 0;
  top: 0;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.15rem;
  color: #fff;
  background: linear-gradient(135deg, var(--accent-light), var(--accent));
  box-shadow: 0 8px 20px rgba(21, 150, 214, 0.3);
  z-index: 1;
}
.process-steps li:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 26px;
  top: 52px;
  width: 2px;
  height: calc(100% + 2.5rem - 52px);
  background: var(--border);
}
.process-steps h3 {
  font-size: 1.1rem;
  margin-bottom: 0.35rem;
  padding-top: 0.6rem;
}
.process-steps p { color: var(--ink-soft); line-height: 1.55; }

@media (min-width: 960px) {
  .process-steps {
    grid-template-columns: repeat(5, 1fr);
    gap: 1.5rem;
  }
  .process-steps li { padding-left: 0; padding-top: 4.5rem; }
  .step-number { left: 50%; transform: translateX(-50%); }
  .process-steps li:not(:last-child)::after {
    left: calc(50% + 26px);
    top: 26px;
    width: calc(100% - 52px);
    height: 2px;
  }
  .process-steps h3, .process-steps p { text-align: center; }
  .process-steps p { margin-inline: auto; max-width: 220px; }
}

/* ---------- CTA final ---------- */
.final-cta {
  background:
    radial-gradient(720px 420px at 15% 10%, rgba(41, 171, 226, 0.22), transparent 60%),
    radial-gradient(620px 420px at 85% 90%, rgba(21, 150, 214, 0.18), transparent 60%),
    linear-gradient(180deg, var(--dark) 0%, var(--dark-2) 100%);
  padding-block: var(--space-xl);
  color: #fff;
  text-align: center;
}
.final-cta-inner {
  max-width: 700px;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.final-cta h2 { color: #fff; margin-bottom: var(--space-sm); }
.final-cta p {
  color: var(--dark-ink-soft);
  font-size: 1.05rem;
  line-height: 1.6;
  margin-bottom: var(--space-md);
}
.final-cta .microcopy {
  margin-top: var(--space-lg);
  margin-bottom: 0;
  font-size: 0.88rem;
  color: var(--dark-ink-soft);
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--bg-alt);
  color: var(--ink-soft);
  padding-top: var(--space-lg);
  border-top: 1px solid var(--border);
}
.footer-top {
  display: grid;
  gap: var(--space-lg);
  padding-bottom: var(--space-lg);
  border-bottom: 1px solid var(--border);
}
.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.85rem;
}
.footer-brand img {
  width: 52px;
  height: 52px;
  object-fit: contain;
}
.footer-tagline {
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 260px;
}

.footer-col h3 {
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink);
  margin-bottom: 1.1rem;
}
.footer-col ul {
  display: grid;
  gap: 0.75rem;
}
.footer-col li {
  font-size: 0.92rem;
  line-height: 1.5;
}
.footer-col a { color: var(--ink-soft); transition: color 0.25s var(--ease); }
.footer-col a:hover { color: var(--accent); }

.footer-contact li {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
}
.footer-icon {
  flex: none;
  width: 17px;
  height: 17px;
  margin-top: 0.15rem;
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.footer-icon-fill {
  fill: var(--accent);
  stroke: none;
}

.footer-bottom { padding-block: var(--space-sm) var(--space-md); }
.footer-copy { font-size: 0.82rem; text-align: center; }
.footer-copy-spaced { margin-top: 1.55em; }

@media (min-width: 640px) {
  .footer-top { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 960px) {
  .footer-top {
    grid-template-columns: 1.3fr 1fr 1fr;
    gap: var(--space-md);
  }
}


/* ---------- Botão flutuante WhatsApp ---------- */
.whatsapp-float {
  position: fixed;
  right: clamp(1rem, 3vw, 2rem);
  bottom: clamp(1rem, 3vw, 2rem);
  z-index: 400;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #25d366;
  box-shadow: 0 4px 22px rgba(37, 211, 102, 0.45);
  opacity: 0;
  transform: translateY(16px) scale(0.9);
  pointer-events: none;
  transition: opacity 0.4s var(--ease), transform 0.3s ease, box-shadow 0.3s ease;
}
.whatsapp-float.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
  animation: wa-pulse 2.8s infinite;
}
.whatsapp-float.is-visible:hover {
  transform: translateY(0) scale(1.12);
  box-shadow: 0 6px 28px rgba(37, 211, 102, 0.65);
  animation: none;
}
.whatsapp-float svg {
  width: 28px;
  height: 28px;
  fill: #fff;
}
@keyframes wa-pulse {
  0%, 100% { box-shadow: 0 4px 22px rgba(37, 211, 102, 0.45); }
  50% { box-shadow: 0 4px 38px rgba(37, 211, 102, 0.72), 0 0 0 10px rgba(37, 211, 102, 0.1); }
}
