/* =========================================================
   LionDev — style.css
   ========================================================= */

:root {
  /* Cor — paleta escura quente ancorada no laranja da marca */
  --bg: #131110;
  --bg-alt: #191613;
  --bg-elevated: #211c18;
  --border: #2e2822;
  --border-soft: #221d19;

  --text: #f5f2ec;
  --text-muted: #a89e91;
  --text-faint: #6f6960;

  --accent: #f2a63c;
  --accent-strong: #f5940a;
  --accent-dark: #b97416;
  --accent-ink: #1a1108; /* texto sobre laranja */

  --radius-s: 6px;
  --radius-m: 10px;
  --radius-l: 16px;

  --font-display: "Space Grotesk", "Segoe UI", sans-serif;
  --font-body: "Inter", "Segoe UI", sans-serif;

  --container: 1180px;
  --header-h: 76px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body, h1, h2, h3, p, ul, figure { margin: 0; padding: 0; }
ul { 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; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

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

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

@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;
  }
}

/* ---------- Botões ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px 28px;
  border-radius: var(--radius-s);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  white-space: nowrap;
  transition: transform 0.15s ease, background-color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}
.btn:active { transform: translateY(1px); }

.btn--primary {
  background: var(--accent-strong);
  color: var(--accent-ink);
}
.btn--primary:hover { background: var(--accent); box-shadow: 0 6px 20px -8px rgba(245, 148, 10, 0.55); }

.btn--ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}
.btn--ghost:hover { border-color: var(--accent-strong); color: var(--accent); }

.btn--small { padding: 11px 20px; font-size: 14px; }
.btn--large { padding: 18px 36px; font-size: 16px; }

/* =========================================================
   HEADER
   ========================================================= */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(19, 17, 16, 0.7);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease, background-color 0.25s ease;
}
/* O blur fica num pseudo-elemento: backdrop-filter no próprio .header
   cria um novo containing block e quebra o position:fixed do menu mobile (#nav). */
.header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.header.is-scrolled {
  background: rgba(19, 17, 16, 0.92);
  border-bottom-color: var(--border-soft);
}

.header__inner {
  display: flex;
  align-items: center;
  gap: 24px;
}

.header__logo { flex-shrink: 0; line-height: 0; }
.header__logo img { width: 44px; height: 44px; border-radius: 50%; }

.nav { flex: 1; }
.nav__list {
  display: flex;
  gap: 32px;
  justify-content: center;
}
.nav__link {
  font-size: 14.5px;
  font-weight: 500;
  color: var(--text-muted);
  position: relative;
  padding: 6px 0;
  transition: color 0.2s ease;
}
.nav__link:hover { color: var(--text); }
.nav__link::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 2px;
  background: var(--accent-strong);
  transition: width 0.2s ease;
}
.nav__link:hover::after { width: 100%; }

.header__cta { flex-shrink: 0; }

.nav__toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  flex-shrink: 0;
}
.nav__toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text);
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.nav__toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle.is-open span:nth-child(2) { opacity: 0; }
.nav__toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* =========================================================
   HERO
   ========================================================= */
.hero {
  padding: 108px 0 96px;
  overflow: hidden;
}
.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 460px);
  align-items: center;
  gap: 56px;
}
.hero__title {
  font-size: clamp(2.1rem, 4.2vw, 3.4rem);
  color: var(--text);
  max-width: 15ch;
}
.hero__subtitle {
  margin-top: 22px;
  font-size: 18px;
  color: var(--text-muted);
  max-width: 46ch;
  line-height: 1.65;
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}
.hero__note {
  margin-top: 22px;
  font-size: 13.5px;
  color: var(--text-faint);
}

.hero__visual { min-width: 0; }
.hero__svg { width: 100%; height: auto; }
.hv-panel { fill: var(--bg-elevated); stroke: var(--border); stroke-width: 1.5; }
.hv-panel--accent { fill: var(--accent-strong); stroke: none; }
.hv-dot { fill: var(--border); }
.hv-dot--accent { fill: var(--accent); }
.hv-line { stroke: var(--border); stroke-width: 1.5; }
.hv-line--soft { stroke: var(--border-soft); stroke-dasharray: 3 4; }
.hv-block { fill: var(--text); opacity: 0.85; }
.hv-block--muted { fill: var(--text-faint); opacity: 0.6; }
.hv-block--onaccent { fill: var(--accent-ink); opacity: 0.85; }
.hv-block--onaccent-muted { fill: var(--accent-ink); opacity: 0.55; }
.hv-cta { fill: transparent; stroke: var(--accent-strong); stroke-width: 1.5; }
.hv-pill { fill: var(--accent-ink); opacity: 0.9; }
.hv-ring { fill: none; stroke: var(--border); stroke-width: 1.5; }

/* =========================================================
   BENEFÍCIOS
   ========================================================= */
.benefits {
  padding: 40px 0;
  border-top: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
}
.benefits__list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px 32px;
}
.benefit {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.benefit__mark {
  flex-shrink: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-strong);
  margin-top: 9px;
}
.benefit p {
  font-size: 15px;
  color: var(--text);
}

/* =========================================================
   SEÇÃO — cabeçalho reutilizável
   ========================================================= */
.section-head {
  max-width: 620px;
  margin-bottom: 52px;
}
.section-head__title {
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  color: var(--text);
}
.section-head__desc {
  margin-top: 14px;
  font-size: 16px;
  color: var(--text-muted);
}

/* =========================================================
   SERVIÇOS — layout de lista aberta, sem cards
   ========================================================= */
.services { padding: 108px 0; }
.services__list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
}
.service {
  padding: 32px 28px 32px 0;
  border-top: 1px solid var(--border-soft);
}
.service:nth-child(odd) { padding-right: 40px; border-right: 1px solid var(--border-soft); padding-left: 0; }
.service:nth-child(even) { padding-left: 40px; }
.service:nth-last-child(-n+2) { border-bottom: 1px solid var(--border-soft); }
.service__title {
  font-size: 19px;
  color: var(--text);
  margin-bottom: 10px;
}
.service__desc {
  font-size: 15px;
  color: var(--text-muted);
  max-width: 42ch;
}

/* =========================================================
   PROJETOS
   ========================================================= */
.projects { padding: 108px 0; background: var(--bg-alt); }

.project {
  display: grid;
  grid-template-columns: minmax(0, 380px) minmax(0, 1fr);
  gap: 56px;
  align-items: center;
}
.project__category {
  display: inline-block;
  font-size: 13px;
  color: var(--accent);
  margin-bottom: 12px;
}
.project__name {
  font-size: clamp(1.6rem, 2.8vw, 2.1rem);
  color: var(--text);
  margin-bottom: 16px;
}
.project__desc {
  font-size: 15.5px;
  color: var(--text-muted);
  max-width: 40ch;
  margin-bottom: 24px;
}
.project__features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px 18px;
  margin-bottom: 32px;
}
.project__features li {
  font-size: 14px;
  color: var(--text);
  padding-left: 16px;
  position: relative;
}
.project__features li::before {
  content: "";
  position: absolute;
  left: 0; top: 8px;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--accent-strong);
}

.project__media { display: grid; gap: 18px; }
.project__desktop {
  border: 1px solid var(--border);
  border-radius: var(--radius-m);
  overflow: hidden;
  background: var(--bg-elevated);
}
.project__mobiles {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}
.project__mobiles img {
  border: 1px solid var(--border);
  border-radius: var(--radius-m);
  overflow: hidden;
  background: var(--bg-elevated);
}

/* =========================================================
   PROJETOS PERSONALIZADOS
   ========================================================= */
.custom { padding: 100px 0; }
.custom__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 380px);
  gap: 56px;
  align-items: start;
}
.custom__title {
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  color: var(--text);
  max-width: 18ch;
  margin-bottom: 22px;
}
.custom__text p {
  font-size: 16px;
  color: var(--text-muted);
  max-width: 52ch;
  margin-bottom: 16px;
}
.custom__text .btn { margin-top: 12px; }

.custom__tags {
  display: flex;
  flex-wrap: wrap;
  align-content: flex-start;
  gap: 10px;
  padding-top: 6px;
}
.custom__tags span {
  font-size: 13.5px;
  color: var(--text-muted);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 8px 16px;
}

/* =========================================================
   COMO FUNCIONA
   ========================================================= */
.process { padding: 108px 0; background: var(--bg-alt); }
.process__list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}
.step {
  padding: 0 24px 0 0;
  border-left: 1px solid var(--border-soft);
  padding-left: 24px;
}
.step:first-child { border-left: none; padding-left: 0; }
.step__index {
  display: block;
  font-family: var(--font-display);
  font-size: 14px;
  color: var(--accent);
  margin-bottom: 18px;
  letter-spacing: 0.02em;
}
.step__title {
  font-size: 18px;
  color: var(--text);
  margin-bottom: 8px;
}
.step__desc {
  font-size: 14.5px;
  color: var(--text-muted);
  max-width: 26ch;
}

/* =========================================================
   TECNOLOGIA E QUALIDADE
   ========================================================= */
.quality { padding: 100px 0; }
.quality__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 340px);
  gap: 56px;
}
.quality__title {
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  color: var(--text);
  max-width: 20ch;
  margin-bottom: 18px;
}
.quality__text p {
  font-size: 16px;
  color: var(--text-muted);
  max-width: 48ch;
}
.quality__list {
  display: grid;
  gap: 14px;
  align-content: start;
}
.quality__list li {
  font-size: 14.5px;
  color: var(--text);
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border-soft);
}
.quality__list li:last-child { border-bottom: none; }

/* =========================================================
   FAQ
   ========================================================= */
.faq { padding: 108px 0; background: var(--bg-alt); }
.accordion { max-width: 760px; }
.accordion__item { border-bottom: 1px solid var(--border-soft); }
.accordion__item:first-child { border-top: 1px solid var(--border-soft); }

.accordion__trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 4px;
  text-align: left;
  font-size: 16.5px;
  font-weight: 500;
  color: var(--text);
}

.accordion__icon {
  position: relative;
  flex-shrink: 0;
  width: 18px; height: 18px;
}
.accordion__icon::before,
.accordion__icon::after {
  content: "";
  position: absolute;
  background: var(--accent-strong);
  transition: transform 0.25s ease;
}
.accordion__icon::before { top: 8px; left: 0; width: 18px; height: 2px; }
.accordion__icon::after { top: 0; left: 8px; width: 2px; height: 18px; }
.accordion__trigger[aria-expanded="true"] .accordion__icon::after { transform: rotate(90deg); }

.accordion__panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.28s ease;
}
.accordion__panel > p {
  overflow: hidden;
  font-size: 15px;
  color: var(--text-muted);
  max-width: 62ch;
  padding-bottom: 0;
}
.accordion__item.is-open .accordion__panel { grid-template-rows: 1fr; }
.accordion__item.is-open .accordion__panel > p { padding-bottom: 22px; }
.accordion__panel { overflow: hidden; }

/* =========================================================
   CTA FINAL
   ========================================================= */
.cta-final {
  padding: 120px 0;
  text-align: center;
}
.cta-final__inner { display: grid; justify-items: center; }
.cta-final__title {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  color: var(--text);
  max-width: 18ch;
}
.cta-final__text {
  margin-top: 18px;
  font-size: 16px;
  color: var(--text-muted);
  max-width: 46ch;
}
.cta-final .btn { margin-top: 34px; }

/* =========================================================
   FOOTER
   ========================================================= */
.footer {
  border-top: 1px solid var(--border-soft);
  padding-top: 48px;
}
.footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 32px;
  flex-wrap: wrap;
  padding-bottom: 40px;
}
.footer__brand { display: flex; align-items: center; gap: 14px; max-width: 360px; }
.footer__brand img { width: 40px; height: 40px; border-radius: 50%; flex-shrink: 0; }
.footer__brand p { font-size: 14px; color: var(--text-muted); }

.footer__contact { display: grid; gap: 8px; }
.footer__label { font-size: 12.5px; color: var(--text-faint); }
.footer__contact a {
  font-size: 15px;
  color: var(--text);
  transition: color 0.2s ease;
}
.footer__contact a:hover { color: var(--accent); }

.footer__bottom {
  border-top: 1px solid var(--border-soft);
  padding: 20px 24px 28px;
}
.footer__bottom p { font-size: 13px; color: var(--text-faint); }

/* =========================================================
   WHATSAPP FLUTUANTE
   ========================================================= */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 90;
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--accent-strong);
  color: var(--accent-ink);
  padding: 14px 18px;
  border-radius: 999px;
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.6);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.whatsapp-float:hover { transform: translateY(-2px); box-shadow: 0 14px 34px -10px rgba(0, 0, 0, 0.7); }
.whatsapp-float__icon { width: 22px; height: 22px; fill: var(--accent-ink); flex-shrink: 0; }
.whatsapp-float__label { font-size: 14px; font-weight: 600; }

/* =========================================================
   REVEAL — animação única de entrada por seção
   ========================================================= */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* =========================================================
   RESPONSIVO
   ========================================================= */
@media (max-width: 1024px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__visual { order: -1; max-width: 380px; margin-inline: auto; }
  .services__list { grid-template-columns: 1fr; }
  .service:nth-child(odd) { border-right: none; padding-right: 0; }
  .service:nth-child(even) { padding-left: 0; }
  .service:nth-last-child(-n+2) { border-bottom: none; }
  .service:last-child { border-bottom: 1px solid var(--border-soft); }
  .project { grid-template-columns: 1fr; }
  .custom__grid { grid-template-columns: 1fr; }
  .quality__grid { grid-template-columns: 1fr; }
  .process__list { grid-template-columns: repeat(2, 1fr); gap: 32px 24px; }
  .step { border-left: none; padding-left: 0; }
}

@media (max-width: 860px) {
  :root { --header-h: 68px; }

  .nav { position: fixed; inset: 68px 0 0 0; z-index: 99; }
  .nav__list {
    flex-direction: column;
    gap: 0;
    background: var(--bg);
    height: 100%;
    padding: 12px 24px;
    transform: translateX(100%);
    transition: transform 0.3s ease;
  }
  .nav.is-open .nav__list { transform: translateX(0); }
  .nav__link {
    display: block;
    padding: 18px 0;
    border-bottom: 1px solid var(--border-soft);
    font-size: 17px;
  }
  .nav__link::after { display: none; }

  .header__cta { display: none; }
  .nav__toggle { display: flex; }

  .hero { padding: 64px 0 72px; }
  .benefits__list { grid-template-columns: 1fr; }
  .project__features { grid-template-columns: 1fr; }
  .project__mobiles { grid-template-columns: repeat(2, 1fr); }
  .process__list { grid-template-columns: 1fr; gap: 28px; }
  .services, .projects, .custom, .process, .quality, .faq { padding: 72px 0; }
  .cta-final { padding: 88px 0; }

  .whatsapp-float__label { display: none; }
  .whatsapp-float { padding: 14px; }
}

@media (max-width: 480px) {
  .container { padding-inline: 18px; }
  .hero__title { max-width: none; }
  .hero__actions { flex-direction: column; align-items: stretch; }
  .hero__actions .btn { width: 100%; }
}
