/* =========================================================
   MELHADO & JULIÃO - Landing Page
   ========================================================= */

/* ---------- 1. TOKENS ---------- */
:root {
  --color-bg-base: #0A0A0A;
  --color-bg-elevated: #141414;
  --color-bg-deeper: #060606;

  --color-accent: #F56A1E;
  --color-accent-hover: #FF7D30;
  --color-accent-muted: rgba(245, 106, 30, 0.15);

  --color-text-primary: #FFFFFF;
  --color-text-secondary: #A0A0A0;
  --color-text-tertiary: #666666;
  --color-text-dim: #404040;

  --color-line: rgba(255, 255, 255, 0.08);
  --color-line-accent: rgba(245, 106, 30, 0.4);

  --font-display: 'Archivo', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --font-logo: 'Advent Pro', 'Archivo', system-ui, sans-serif;

  --container-max: 1440px;
  --pad-x-desktop: 80px;
  --pad-x-mobile: 24px;

  --ease-soft: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ---------- 2. RESET ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  overflow-x: clip;
  width: 100%;
}
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
  color: var(--color-text-primary);
  background: var(--color-bg-base);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
  width: 100%;
  max-width: 100vw;
  position: relative;
}

/* Camadas de profundidade no fundo, não usar #000000 chapado */
body::before {
  content: "";
  position: fixed; inset: 0;
  background: radial-gradient(ellipse at top, rgba(20,20,20,0.45) 0%, rgba(10,10,10,0) 55%);
  pointer-events: none;
  z-index: 0;
}
body::after {
  content: "";
  position: fixed; inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.05 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  opacity: 0.04;
  pointer-events: none;
  z-index: 0;
  mix-blend-mode: overlay;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; background: none; border: 0; color: inherit; cursor: pointer; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, p { margin: 0; }

/* ---------- 3. UTILITÁRIOS ---------- */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--pad-x-mobile);
  position: relative;
  z-index: 2;
}
@media (min-width: 1024px) {
  .container { padding: 0 var(--pad-x-desktop); }
}

.label {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-text-secondary);
  display: inline-block;
}
.label--accent { color: var(--color-accent); }

.link-arrow {
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--color-accent);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: gap 0.3s var(--ease-soft), color 0.3s;
}
.link-arrow:hover { gap: 14px; color: var(--color-accent-hover); }

/* ---------- 4. BOTÕES ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 15px;
  letter-spacing: 0.05em;
  padding: 16px 32px;
  border-radius: 999px;
  cursor: pointer;
  transition: transform 0.3s var(--ease-soft), background-color 0.3s, box-shadow 0.3s, color 0.3s;
  white-space: nowrap;
}
.btn span { transition: transform 0.3s var(--ease-soft); }
.btn:hover { transform: translateY(-2px); }
.btn:hover span { transform: translateX(4px); }

.btn--primary {
  background: var(--color-accent);
  color: #FFFFFF;
  box-shadow: 0 8px 24px rgba(245, 106, 30, 0.25);
}
.btn--primary:hover {
  background: var(--color-accent-hover);
  box-shadow: 0 14px 32px rgba(245, 106, 30, 0.4);
}

.btn--outline {
  background: transparent;
  color: var(--color-accent);
  border: 1px solid var(--color-accent);
}
.btn--outline:hover {
  background: var(--color-accent);
  color: #FFFFFF;
}

.btn--xl {
  font-size: 16px;
  padding: 20px 48px;
}

@media (max-width: 639px) {
  .btn { font-size: 14px; padding: 14px 26px; }
  .btn--xl { font-size: 15px; padding: 18px 36px; }
}

/* ---------- 5. LOGO ---------- */
.logo-img { display: block; height: 40px; width: auto; max-width: none; align-self: flex-start; }
.logo-img--footer { height: 52px; }

/* ---------- 6. NAV ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: 60px;
  transition: background-color 0.3s, backdrop-filter 0.3s, height 0.3s;
}
.nav.is-scrolled {
  background: rgba(10, 10, 10, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-line);
}
.nav__inner {
  height: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--pad-x-mobile);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav__links {
  display: none;
  align-items: center;
  gap: 32px;
}
.nav__links a {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 14px;
  color: var(--color-text-primary);
  opacity: 0.8;
  transition: opacity 0.3s, color 0.3s;
}
.nav__links a:hover { opacity: 1; color: var(--color-accent); }
.nav__whats {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  border: 1px solid var(--color-line);
  border-radius: 50%;
  opacity: 0.75;
}
.nav__whats:hover { border-color: var(--color-accent); color: var(--color-accent); opacity: 1; }

.nav__burger {
  width: 32px; height: 32px;
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-end;
  gap: 6px;
}
.nav__burger span {
  display: block;
  height: 1px;
  width: 22px;
  background: #FFFFFF;
  transition: transform 0.3s, opacity 0.3s, width 0.3s;
}
.nav__burger span:last-child { width: 14px; }
.nav__burger.is-open span:first-child { transform: translateY(3.5px) rotate(45deg); width: 22px; }
.nav__burger.is-open span:last-child { transform: translateY(-3.5px) rotate(-45deg); width: 22px; }

.nav__mobile {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: var(--color-bg-base);
  z-index: 99;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s, visibility 0.4s;
}
.nav__mobile.is-open { opacity: 1; visibility: visible; }
.nav__mobile-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
}
.nav__mobile-inner a {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 28px;
  color: var(--color-text-primary);
}
.nav__mobile-inner a.btn { font-size: 14px; }

@media (min-width: 1024px) {
  .nav { height: 72px; }
  .nav__inner { padding: 0 var(--pad-x-desktop); }
  .nav__links { display: flex; }
  .nav__burger { display: none; }
  .logo-img { height: 44px; }
}

/* ---------- 7. HERO (V2 - fullscreen overlay) ---------- */
/* Texto sobre a imagem em todas as resoluções */
.hero {
  position: relative;
  display: block;
  height: 100vh;
  min-height: 560px;
  background: var(--color-bg-base);
  overflow: hidden;
}
.hero__media {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.hero__carousel { position: absolute; inset: 0; }
.hero__slide {
  position: absolute; inset: 0;
  opacity: 0;
  transition: opacity 1.2s ease-in-out;
}
.hero__slide.is-active { opacity: 1; }
.hero__slide img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
}
.hero__slide.is-active img {
  animation: kenBurns 7.5s linear forwards;
}
@keyframes kenBurns {
  from { transform: scale(1) translate(0, 0); }
  to   { transform: scale(1.08) translate(-1%, -1%); }
}

.hero__gradient {
  position: absolute; inset: 0;
  background: linear-gradient(
    to top,
    rgba(0,0,0,0.92) 0%,
    rgba(0,0,0,0.7) 25%,
    rgba(0,0,0,0.35) 55%,
    rgba(0,0,0,0.15) 80%,
    transparent 100%
  );
  pointer-events: none;
  z-index: 2;
}
.hero__noise {
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.05 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  opacity: 0.06;
  pointer-events: none;
  z-index: 3;
}

.hero__content {
  position: absolute;
  left: 0; right: 0;
  bottom: 14%;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
}
.hero__content .label { color: var(--color-accent); }
.hero__headline {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(36px, 8vw, 88px);
  letter-spacing: -0.02em;
  line-height: 1.05;
  color: var(--color-text-primary);
  max-width: 720px;
  text-wrap: balance;
}
.hero__micro {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 13px;
  color: var(--color-text-secondary);
}

.hero__tag {
  position: absolute;
  right: var(--pad-x-mobile);
  bottom: 36px;
  z-index: 5;
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.7);
  letter-spacing: 0.02em;
}

.hero__dots {
  position: absolute;
  left: 0; right: 0; bottom: 20px;
  z-index: 5;
  display: flex;
  justify-content: center;
  gap: 10px;
}
.hero__dot {
  width: 24px; height: 4px;
  background: rgba(255,255,255,0.25);
  border-radius: 0;
  padding: 0;
  transition: background-color 0.3s, width 0.3s;
}
.hero__dot.is-active { background: var(--color-accent); width: 36px; }

.hero__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 44px; height: 44px;
  display: none;
  align-items: center; justify-content: center;
  color: #FFFFFF;
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 50%;
  opacity: 0;
  transition: opacity 0.3s, background-color 0.3s, border-color 0.3s;
}
.hero__arrow--prev { left: 32px; }
.hero__arrow--next { right: 32px; }
.hero__arrow:hover { background: var(--color-accent); border-color: var(--color-accent); }
.hero:hover .hero__arrow { opacity: 0.7; }
.hero:hover .hero__arrow:hover { opacity: 1; }

@media (min-width: 1024px) {
  .hero { min-height: 640px; }
  .hero__content {
    bottom: 16%;
    max-width: calc(720px + var(--pad-x-desktop) * 2);
    gap: 24px;
  }
  .hero__headline { font-size: clamp(48px, 6vw, 88px); }
  .hero__tag { right: var(--pad-x-desktop); bottom: 32px; font-size: 12px; }
  .hero__arrow { display: inline-flex; }
}

/* ---------- 8. MANIFESTO ---------- */
.manifesto {
  padding: 64px 0 72px;
  position: relative;
  z-index: 2;
}
.manifesto__inner {
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
}
.manifesto__headline {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(32px, 7vw, 52px);
  letter-spacing: -0.015em;
  line-height: 1.15;
  color: var(--color-text-primary);
  text-wrap: balance;
}
.manifesto__body {
  display: flex;
  flex-direction: column;
  gap: 18px;
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.65;
  color: var(--color-text-secondary);
  text-wrap: pretty;
}
.manifesto__body p { margin: 0; }
@media (min-width: 1024px) {
  .manifesto { padding: 160px 0; }
  .manifesto__body { font-size: 18px; }
}

/* ---------- 9. NUMBERS ---------- */
.numbers {
  padding: 72px 0;
  position: relative;
  z-index: 2;
}
.numbers__row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 48px 24px;
  text-align: center;
}
.numbers__item {
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: relative;
  padding: 0 16px;
}
/* 5 itens em grid 2 colunas: o último sozinho ocupa a linha inteira centralizado */
.numbers__item:nth-child(5) { grid-column: 1 / -1; }
.numbers__value {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(56px, 8vw, 120px);
  letter-spacing: -0.04em;
  line-height: 0.9;
  color: var(--color-text-primary);
  white-space: nowrap;
}
.numbers__label {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 14px;
  color: var(--color-text-secondary);
  letter-spacing: 0.02em;
}
.numbers__awards {
  margin-top: 64px;
  text-align: center;
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 13px;
  color: var(--color-text-secondary);
  letter-spacing: 0.05em;
}
.numbers__cta {
  margin-top: 40px;
  display: flex;
  justify-content: center;
}

@media (min-width: 1024px) {
  .numbers { padding: 160px 0; }
  .numbers__row {
    grid-template-columns: repeat(5, 1fr);
    gap: 0;
  }
  .numbers__item:nth-child(5) { grid-column: auto; }
  .numbers__item + .numbers__item::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 48px;
    background: var(--color-line-accent);
  }
}

/* ---------- 10. SECTION HEAD ---------- */
.section-head {
  text-align: center;
  margin-bottom: 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}
@media (min-width: 1024px) {
  .section-head { margin-bottom: 72px; gap: 24px; }
}
.section-head__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(32px, 6vw, 48px);
  letter-spacing: -0.015em;
  line-height: 1.1;
  color: var(--color-text-primary);
  text-wrap: balance;
}

/* ---------- 11. PORTFOLIO ---------- */
.portfolio {
  padding: 72px 0;
  position: relative;
  z-index: 2;
}
.portfolio__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
.project-card {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  color: inherit;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.project-card:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 4px;
}
.project-card--extra { display: none; }
.portfolio__grid.is-expanded .project-card--extra { display: block; }
.project-image {
  display: block;
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--color-bg-elevated);
}
.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-soft);
}
.project-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.45), rgba(0,0,0,0));
  opacity: 0;
  transition: opacity 0.5s var(--ease-soft);
  pointer-events: none;
}
.project-card:hover .project-image img { transform: scale(1.04); }
.project-card:hover .project-overlay { opacity: 1; }

.portfolio__actions {
  margin-top: 40px;
  display: flex;
  justify-content: center;
}
.portfolio__grid.is-expanded + .portfolio__actions .portfolio-toggle__icon {
  transform: rotate(180deg);
}
.portfolio-toggle__icon {
  display: inline-block;
  transition: transform 0.3s var(--ease-soft);
}

.portfolio__more {
  margin-top: 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  text-align: center;
}

@media (min-width: 640px) {
  .portfolio__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .portfolio { padding: 160px 0; }
  .portfolio__grid { grid-template-columns: repeat(3, 1fr); gap: 32px; }
}

/* ---------- 11b. HISTÓRIA / SÓCIOS ---------- */
.story {
  padding: 72px 0;
  position: relative;
  z-index: 2;
  border-top: 1px solid var(--color-line);
}
.story__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
}
.story__media {
  position: relative;
  overflow: hidden;
  background: var(--color-bg-elevated);
  aspect-ratio: 3 / 4;
  max-width: 460px;
}
.story__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.02);
}
.story__content {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.story__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(26px, 4.5vw, 40px);
  line-height: 1.12;
  letter-spacing: -0.015em;
  color: var(--color-text-primary);
  text-wrap: balance;
}
.story__body {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.story__body p {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.7;
  color: var(--color-text-secondary);
  margin: 0;
}
@media (min-width: 900px) {
  .story { padding: 140px 0; }
  .story__inner { grid-template-columns: 0.9fr 1.1fr; gap: 72px; }
  .story__media { max-width: none; }
}

/* ---------- 11c. LIGHTBOX ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(6, 6, 6, 0.94);
  backdrop-filter: blur(6px);
}
.lightbox[hidden] { display: none; }
.lightbox__figure {
  margin: 0;
  max-width: min(1100px, 92vw);
  max-height: 86vh;
  display: flex;
}
.lightbox__figure img {
  max-width: 100%;
  max-height: 86vh;
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.6);
}
.lightbox__btn {
  position: absolute;
  border: 1px solid var(--color-line);
  background: rgba(20, 20, 20, 0.6);
  color: var(--color-text-primary);
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s var(--ease-soft), border-color 0.2s var(--ease-soft);
}
.lightbox__btn:hover { background: var(--color-accent); border-color: var(--color-accent); }
.lightbox__btn:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 3px; }
.lightbox__close {
  top: 20px;
  right: 20px;
  width: 44px;
  height: 44px;
  font-size: 26px;
  line-height: 1;
}
.lightbox__nav {
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
}
.lightbox__nav--prev { left: 16px; }
.lightbox__nav--next { right: 16px; }
.lightbox__counter {
  position: absolute;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: 0.1em;
  color: var(--color-text-secondary);
}
body.is-locked { overflow: hidden; }
@media (max-width: 640px) {
  .lightbox__nav { width: 44px; height: 44px; }
  .lightbox__nav--prev { left: 8px; }
  .lightbox__nav--next { right: 8px; }
}

/* ---------- 12. SOCIAL (Depoimentos + Clientes) ---------- */
.social {
  padding: 72px 0;
  background: var(--color-bg-elevated);
  position: relative;
  z-index: 2;
  border-top: 1px solid var(--color-line);
  border-bottom: 1px solid var(--color-line);
}
.testimonials {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  max-width: 1280px;
  margin: 0 auto;
}
.testimonial-card {
  padding-top: 32px;
  border-bottom: 1px solid var(--color-line);
  padding-bottom: 40px;
  display: flex;
  flex-direction: column;
}
.testimonial-mark {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 72px;
  line-height: 1;
  color: var(--color-accent);
  margin-bottom: 16px;
}
.testimonial-text {
  font-family: var(--font-body);
  font-weight: 300;
  font-style: italic;
  font-size: 17px;
  line-height: 1.6;
  color: var(--color-text-primary);
  max-width: 360px;
  text-wrap: pretty;
}
.testimonial-author {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 32px;
}
.author-name {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-primary);
}
.author-meta {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 12px;
  color: var(--color-text-secondary);
}

@media (min-width: 1024px) {
  .social { padding: 160px 0; }
  .testimonials { grid-template-columns: repeat(3, 1fr); gap: 32px; }
  .testimonial-card {
    border-bottom: 0;
    border-top: 1px solid var(--color-line);
    padding-top: 32px;
    padding-bottom: 0;
  }
}

/* Clientes corporativos */
.clients {
  margin-top: 64px;
  text-align: center;
}
.clients__label { margin-bottom: 40px; }
@media (min-width: 1024px) {
  .clients { margin-top: 96px; }
  .clients__label { margin-bottom: 48px; }
}
.clients__grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  max-width: 1100px;
  margin: 0 auto;
}
.client-logo {
  flex: 0 0 calc((100% - 32px) / 3);
  opacity: 0.85;
  transition: opacity 0.3s, border-color 0.3s, transform 0.3s;
  padding: 16px 12px;
  border: 1px solid var(--color-line);
  border-radius: 2px;
  min-height: 96px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.client-logo img {
  max-height: 56px;
  max-width: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}
.client-logo:hover {
  opacity: 1;
  border-color: var(--color-line-accent);
  transform: translateY(-2px);
}
.clients__cta {
  margin-top: 64px;
  display: flex;
  justify-content: center;
}

@media (min-width: 1024px) {
  .clients__grid { gap: 32px 48px; }
  .client-logo { flex: 0 0 calc((100% - 192px) / 5); min-height: 112px; }
  .client-logo img { max-height: 64px; }
}

/* ---------- 13. CTA FINAL ---------- */
.cta-final {
  position: relative;
  height: 80vh;
  min-height: 560px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  z-index: 2;
}
.cta-final__bg { position: absolute; inset: 0; }
.cta-final__bg img {
  width: 100%; height: 100%;
  object-fit: cover;
  transform: scale(1.05);
  filter: brightness(0.45);
}
.cta-final__gradient {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at center, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.9) 80%);
}
.cta-final__diagonal {
  position: absolute;
  bottom: -10%;
  left: -5%;
  width: 130%;
  height: 1px;
  background: rgba(245, 106, 30, 0.3);
  transform: rotate(-26deg);
  transform-origin: left center;
  pointer-events: none;
}
.cta-final__noise {
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.06 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  opacity: 0.06;
  pointer-events: none;
}
.cta-final__content {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 16px;
}
.cta-final__headline {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(36px, 6vw, 56px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: #FFFFFF;
  margin-top: 8px;
  text-wrap: balance;
}
.cta-final__sub {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 17px;
  line-height: 1.6;
  color: rgba(255,255,255,0.7);
  max-width: 560px;
  text-wrap: pretty;
}
.cta-final__content .btn { margin-top: 32px; }
.cta-final__micro {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  margin-top: 8px;
}

/* ---------- 14. FOOTER ---------- */
.footer {
  background: var(--color-bg-deeper);
  padding: 80px 0 0;
  position: relative;
  z-index: 2;
}
.footer__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  padding-bottom: 64px;
}
.footer__col { display: flex; flex-direction: column; gap: 16px; }
.footer__col--brand { gap: 24px; }
.footer__tagline {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 14px;
  color: var(--color-text-secondary);
  max-width: 240px;
}
.footer__social { display: flex; gap: 12px; }
.footer__social a {
  width: 40px; height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--color-line);
  border-radius: 50%;
  color: var(--color-text-secondary);
  transition: color 0.3s, border-color 0.3s;
}
.footer__social a:hover { color: var(--color-accent); border-color: var(--color-line-accent); }

.footer__list { display: flex; flex-direction: column; gap: 10px; margin-top: 8px; }
.footer__list li {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 14px;
  color: var(--color-text-secondary);
}
.footer__list a { transition: color 0.3s; }
.footer__list a:hover { color: var(--color-accent); }

.footer__base {
  border-top: 1px solid rgba(245, 106, 30, 0.1);
  padding: 32px 0;
}
.footer__base p {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 12px;
  color: var(--color-text-tertiary);
  text-align: center;
}

@media (min-width: 1024px) {
  .footer__inner {
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 64px;
    padding-bottom: 64px;
  }
  .footer__base p { text-align: left; }
}

/* ---------- 15. WHATS FLOAT ---------- */
.whats-float {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 90;
  width: 52px; height: 52px;
  border-radius: 50%;
  background: var(--color-accent);
  color: #FFFFFF;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(245, 106, 30, 0.35);
  transition: transform 0.3s var(--ease-soft), box-shadow 0.3s;
  animation: pulse 12s infinite;
}
.whats-float:hover {
  transform: scale(1.05);
  box-shadow: 0 12px 32px rgba(245, 106, 30, 0.55);
}
.whats-float__tip {
  position: absolute;
  right: calc(100% + 12px);
  top: 50%;
  transform: translateY(-50%);
  background: var(--color-bg-base);
  color: #FFFFFF;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 13px;
  padding: 8px 14px;
  border-radius: 4px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
  border: 1px solid var(--color-line);
}
.whats-float__tip::after {
  content: "";
  position: absolute;
  right: -4px;
  top: 50%;
  transform: translateY(-50%) rotate(45deg);
  width: 8px; height: 8px;
  background: var(--color-bg-base);
  border-right: 1px solid var(--color-line);
  border-top: 1px solid var(--color-line);
}
.whats-float:hover .whats-float__tip { opacity: 1; }

@keyframes pulse {
  0%, 92%, 100% { transform: scale(1); }
  94% { transform: scale(1.08); }
  96% { transform: scale(1); }
}

@media (min-width: 1024px) {
  .whats-float {
    right: 24px;
    bottom: 24px;
    width: 56px; height: 56px;
  }
}

@media (max-width: 1023px) {
  .whats-float__tip { display: none; }
}

/* ---------- 16. ANIMAÇÕES REVEAL ---------- */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.55s var(--ease-soft), transform 0.55s var(--ease-soft);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
  .hero__slide.is-active img { animation: none; }
}

/* ---------- 17. SELEÇÃO ---------- */
::selection { background: var(--color-accent); color: #FFFFFF; }

/* ---------- 18. MINI-FORM MODAL ---------- */
.lead-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.lead-modal[aria-hidden="false"] { display: flex; }

.lead-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(6, 6, 6, 0.82);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.lead-modal__card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 440px;
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  background: var(--color-bg-elevated);
  border: 1px solid var(--color-line);
  border-radius: 12px;
  padding: 40px 28px 28px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.lead-modal__x {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  line-height: 1;
  color: var(--color-text-secondary);
  border-radius: 50%;
  transition: color 0.3s, background-color 0.3s;
}
.lead-modal__x:hover { color: #FFFFFF; background: rgba(255, 255, 255, 0.08); }

.lead-modal__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(22px, 4vw, 26px);
  letter-spacing: -0.01em;
  color: var(--color-text-primary);
  padding-right: 24px;
}

.lead-modal__card label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 13px;
  color: var(--color-text-secondary);
}

.lead-modal__card input[type="text"],
.lead-modal__card input[type="tel"] {
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--color-text-primary);
  background: var(--color-bg-base);
  border: 1px solid var(--color-line);
  border-radius: 8px;
  padding: 12px 14px;
  transition: border-color 0.3s;
}
.lead-modal__card input[type="text"]:focus,
.lead-modal__card input[type="tel"]:focus {
  outline: none;
  border-color: var(--color-line-accent);
}

.lead-modal__card fieldset {
  border: 0;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.lead-modal__card legend {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 13px;
  color: var(--color-text-secondary);
  padding: 0;
  margin-bottom: 4px;
}
.lead-modal__card fieldset label {
  flex-direction: row;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--color-text-primary);
}
.lead-modal__card input[type="radio"] {
  accent-color: var(--color-accent);
  width: 16px;
  height: 16px;
}

.lead-modal__err {
  font-family: var(--font-body);
  font-size: 13px;
  color: #FF7D7D;
  margin: 0;
}

.lead-modal__card .btn { justify-content: center; width: 100%; }
.lead-modal__card .btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

/* Honeypot: escondido de usuários humanos, visível a bots que preenchem tudo */
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

@media (min-width: 640px) {
  .lead-modal__card { padding: 48px 40px 36px; }
}

/* ---------- 19. PÁGINA QUESTIONÁRIO ---------- */
.q-page {
  min-height: 100vh;
  display: flex;
  align-items: flex-start;   /* topo-alinhado: nao "dança" quando o teclado abre ou surge erro */
  justify-content: center;
  padding: 48px 24px 64px;
}
.q-page__inner {
  width: 100%;
  max-width: 480px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}
/* na pagina, o card do form nao tem teto de altura nem scroll interno */
.q-page .lead-modal__card {
  max-height: none;
  overflow-y: visible;
}

.q-page__intro { display: flex; flex-direction: column; }
.q-page__back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--color-text-secondary);
  transition: color 0.3s;
}
.q-page__back:hover { color: var(--color-accent); }

.q-page__logo {
  height: 40px;
  width: auto;
  align-self: flex-start;   /* nao esticar na coluna flex (senao a logo distorce) */
  margin: 24px 0 0;
}
.q-page__headline {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(26px, 5vw, 34px);
  line-height: 1.12;
  letter-spacing: -0.015em;
  color: var(--color-text-primary);
  margin: 20px 0 0;
  text-wrap: balance;
}
.q-page__lead {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 15px;
  line-height: 1.6;
  color: var(--color-text-secondary);
  margin: 14px 0 0;
}

@media (min-width: 900px) {
  .q-page { padding: 72px 40px; }
  .q-page__inner {
    max-width: 940px;
    flex-direction: row;
    align-items: flex-start;
    gap: 64px;
  }
  .q-page__intro {
    flex: 1 1 0;
    position: sticky;
    top: 72px;
    padding-top: 4px;
  }
  .q-page__inner > .lead-modal__card {
    flex: 1 1 0;
    max-width: 440px;
    margin: 0;
  }
}
