/* ==========================================================
   LP Software · Ajustes de Responsividade & Visual Premium
   ========================================================== */

/* ----------------------------------------------------------
   1. HERO MOBILE (menu transparente + foto do desktop + degradê escuro)
   ---------------------------------------------------------- */
@media (max-width: 900px) {
  /* Menu 100% transparente sobre a foto no mobile */
  .header {
    background: transparent !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border-bottom: 1px solid transparent !important;
    box-shadow: none !important;
  }
  /* Gaveta do menu mobile aberta: fundo preto grafite luxo #0A0A0B com blur de alta classe */
  .menu-open .header {
    background: rgba(10, 10, 11, 0.98) !important;
    backdrop-filter: blur(20px) saturate(1.4) !important;
    -webkit-backdrop-filter: blur(20px) saturate(1.4) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
  }
  .nav {
    background: rgba(10, 10, 11, 0.98) !important;
    backdrop-filter: blur(20px) saturate(1.4) !important;
    -webkit-backdrop-filter: blur(20px) saturate(1.4) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.9) !important;
  }
  .nav a:not(.btn) {
    color: #F1F3F9 !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06) !important;
    transition: color .2s var(--ease) !important;
  }
  .nav a:not(.btn):hover,
  .nav a:not(.btn):active {
    color: #7C9BFF !important;
  }
  /* Só ganha fundo com blur quando rolar fora da hero (seção de serviços em diante) */
  .header.is-scrolled:not(.menu-open) {
    background: rgba(10, 10, 11, 0.88) !important;
    backdrop-filter: blur(14px) saturate(1.3) !important;
    -webkit-backdrop-filter: blur(14px) saturate(1.3) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
  }

  /* Hero no mobile com fundo #0A0A0B + brilho dourado nobre sutil + linha divisória discreta embaixo */
  .hero {
    background:
      radial-gradient(ellipse 90% 55% at 50% 68%, rgba(216, 183, 126, 0.08) 0%, rgba(216, 183, 126, 0.02) 45%, rgba(10, 10, 11, 0) 75%),
      #0A0A0B !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
    padding-top: 0 !important; /* foto encosta no topo da tela, atrás do menu transparente */
    overflow: hidden !important;
  }
  .hero-grid {
    display: flex !important;
    flex-direction: column !important;
    gap: 0 !important;
  }
  /* Foto mais alta para destacar o rosto e presença */
  .hero-media {
    order: -1 !important; /* foto no topo antes dos textos */
    width: 100vw !important;
    margin-left: calc(-1 * var(--gutter)) !important;
    margin-right: calc(-1 * var(--gutter)) !important;
    max-width: none !important;
    height: clamp(480px, 64vh, 580px) !important;
    border-radius: 0 !important;
    border: none !important;
    background: #0A0A0B !important;
    position: relative !important;
    overflow: hidden !important;
  }
  .hero-media picture {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
  }
  .hero-media img {
    width: 100% !important;
    height: 100% !important;
    display: block !important;
    object-fit: cover !important;
    object-position: 50% 8% !important; /* rosto centralizado com o topo da cabeça bem respirado e logo visível */
  }
  /* Degradê premium: transição suave e gradual começando nos ~56% para conectar com os textos */
  .hero-media::after {
    content: "" !important;
    position: absolute !important;
    inset: 0 !important;
    background: linear-gradient(180deg,
      rgba(10, 10, 11, 0.4) 0%,    /* leve véu no topo para ler o logotipo */
      rgba(10, 10, 11, 0) 15%,
      rgba(10, 10, 11, 0) 56%,    /* rosto e peito 100% limpos e iluminados */
      rgba(10, 10, 11, 0.35) 68%, /* começa o degradê suave para conectar com o texto */
      rgba(10, 10, 11, 0.78) 82%,
      #0A0A0B 94%,
      #0A0A0B 100%
    ) !important;
    pointer-events: none !important;
  }
  /* Textos da hero posicionados para conectar com o degradê escuro */
  .hero-text {
    position: relative !important;
    z-index: 2 !important;
    margin-top: -85px !important;
    padding-top: 0 !important;
    padding-bottom: 52px !important;
  }
  /* Fontes e respiros (gaps) aumentados para leitura ampla e elegante */
  .hero .eyebrow {
    font-size: 11.5px !important;
    margin-bottom: 20px !important;
  }
  .hero .display {
    font-size: clamp(26px, 6.8vw, 33px) !important;
    line-height: 1.22 !important;
    letter-spacing: -0.02em !important;
    margin-bottom: 22px !important;
  }
  .hero .lead {
    font-size: 15px !important;
    line-height: 1.65 !important;
    color: var(--fg-2) !important;
    margin-bottom: 32px !important;
  }
  .hero-actions {
    gap: 14px !important;
  }
  .hero .hero-note {
    font-size: 13px !important;
    line-height: 1.45 !important;
    margin-top: 20px !important;
    color: var(--muted) !important;
  }
  .niches-empty {
    min-height: 12px !important;
  }
}

/* ----------------------------------------------------------
   2. CHAMADA FINAL (CTA / Próximo Passo): 97vh e centralizado
   ---------------------------------------------------------- */
.cta {
  min-height: 97vh !important;
  min-height: 97dvh !important;
}

/* No desktop mantém recuo refinado */
@media (min-width: 901px) {
  .cta .container {
    padding-left: clamp(140px, 15vw, 290px) !important;
  }
}

/* No mobile: altura de 97vh, banner vertical exclusivo e textos centralizados */
@media (max-width: 900px) {
  .cta {
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-start !important;
    align-items: center !important;
    text-align: center !important;
    min-height: 97vh !important;
    min-height: 97dvh !important;
    padding: 175px 0 340px !important; /* espaço inferior para destacar o celular na mesa */
    background: #0A0A0B url('assets/img/cta-banner-mobile.jpg') center bottom / cover no-repeat !important;
    position: relative !important;
    overflow: hidden !important;
  }
  .cta::before {
    content: "" !important;
    position: absolute !important;
    inset: 0 !important;
    z-index: 0 !important;
    background: linear-gradient(180deg,
      rgba(10, 10, 11, 0.94) 0%,
      rgba(10, 10, 11, 0.86) 35%,
      rgba(10, 10, 11, 0.45) 55%,
      rgba(10, 10, 11, 0) 75%
    ) !important;
    pointer-events: none !important;
  }
  .cta .container {
    position: relative !important;
    z-index: 1 !important;
    padding-left: var(--gutter) !important;
    padding-right: var(--gutter) !important;
    width: 100% !important;
    display: flex !important;
    justify-content: center !important;
  }
  .cta-inner {
    max-width: 580px !important;
    margin: 0 auto !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
  }
  .cta-title {
    text-align: center !important;
    margin: 0 auto 33px auto !important;
  }
  .cta p {
    text-align: center !important;
    margin: 0 auto 35px auto !important;
    max-width: 28em !important;
  }
  .cta .eyebrow {
    margin: 0 auto 18px auto !important;
    justify-content: center !important;
    text-align: center !important;
  }
  .cta .btn-lg {
    margin: 0 auto !important;
    display: inline-flex !important;
    justify-content: center !important;
  }
  .cta-note {
    justify-content: center !important;
    text-align: center !important;
    margin: 18px auto 0 !important;
  }
}

/* ----------------------------------------------------------
   3. RODAPÉ (FOOTER): 100% Centralizado no mobile
   ---------------------------------------------------------- */
.footer {
  padding: 38px 0 20px !important;
  font-size: 14px !important;
}

@media (max-width: 900px) {
  .footer {
    text-align: center !important;
    padding: 32px 0 28px !important;
  }
  /* Oculta coluna de Navegação no mobile para deixar o rodapé super enxuto */
  .footer-col.footer-nav,
  .footer-nav {
    display: none !important;
  }
  .footer-grid {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    gap: 20px !important;
    padding-bottom: 18px !important;
  }
  .footer-brand {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
  }
  .footer-logo {
    margin: 0 auto 10px auto !important;
    height: 44px !important;
  }
  .footer-brand p {
    text-align: center !important;
    margin: 0 auto !important;
    max-width: 26em !important;
    font-size: 13.5px !important;
    line-height: 1.5 !important;
  }
  .footer-col:not(.footer-nav) {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    width: 100% !important;
  }
  .footer-col h4 {
    text-align: center !important;
    font-size: 11px !important;
    margin-bottom: 10px !important;
  }
  .footer-col ul {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    padding: 0 !important;
    margin: 0 !important;
  }
  .footer-col li {
    text-align: center !important;
    margin-bottom: 8px !important;
  }
  .footer-bottom {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    gap: 6px !important;
    padding-top: 16px !important;
    font-size: 12.5px !important;
  }
  .footer-bottom span {
    text-align: center !important;
  }
  /* Reforço de segurança: garante que a navegação nunca apareça no mobile */
  .footer-col.footer-nav {
    display: none !important;
  }
}

/* ----------------------------------------------------------
   4. BOTÕES DE CTA INTERMEDIÁRIOS NAS SEÇÕES
   ---------------------------------------------------------- */
.section-cta,
.works-cta,
.quotes-cta {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 48px;
}
.about-cta {
  margin-top: 34px;
}
.section-cta .btn,
.works-cta .btn,
.quotes-cta .btn,
.about-cta .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
@media (max-width: 900px) {
  .section-cta,
  .works-cta,
  .quotes-cta {
    margin-top: 36px;
    width: 100%;
  }
  .section-cta .btn,
  .works-cta .btn,
  .quotes-cta .btn,
  .about-cta .btn {
    width: 100% !important;
    max-width: 440px;
  }
  .about-cta {
    display: flex;
    justify-content: center;
    margin-top: 28px;
  }
}

/* ----------------------------------------------------------
   5. ANIMAÇÃO DE ENTRADA SUAVE NA HERO (Desktop & Mobile)
   ---------------------------------------------------------- */
@keyframes heroFadeUp {
  0% {
    opacity: 0;
    transform: translateY(22px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes heroMediaFade {
  0% {
    opacity: 0;
    transform: scale(0.97) translateY(12px);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

/* Entrada escalonada dos textos da Hero ao carregar a página */
.hero-text .eyebrow {
  animation: heroFadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
  animation-delay: 0.15s;
}

.hero-text .display {
  animation: heroFadeUp 0.85s cubic-bezier(0.16, 1, 0.3, 1) both;
  animation-delay: 0.3s;
}

.hero-text .lead {
  animation: heroFadeUp 0.85s cubic-bezier(0.16, 1, 0.3, 1) both;
  animation-delay: 0.45s;
}

.hero-text .hero-actions {
  animation: heroFadeUp 0.85s cubic-bezier(0.16, 1, 0.3, 1) both;
  animation-delay: 0.6s;
}

.hero-text .hero-note {
  animation: heroFadeUp 0.85s cubic-bezier(0.16, 1, 0.3, 1) both;
  animation-delay: 0.75s;
}

/* Entrada suave da foto do Lucas no desktop */
@media (min-width: 901px) {
  .hero-media {
    animation: heroMediaFade 1s cubic-bezier(0.16, 1, 0.3, 1) both;
    animation-delay: 0.35s;
  }
}

/* Acessibilidade: respeita quem prefere animação reduzida */
@media (prefers-reduced-motion: reduce) {
  .hero-text .eyebrow,
  .hero-text .display,
  .hero-text .lead,
  .hero-text .hero-actions,
  .hero-text .hero-note,
  .hero-media {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}

/* ----------------------------------------------------------
   6. SEÇÃO SOBRE NO MOBILE (Foto nativa 4:5 Full HD + largura 100% preenchendo tudo)
   ---------------------------------------------------------- */
@media (max-width: 900px) {
  .about2 {
    display: flex !important;
    flex-direction: column !important;
    background: #0A0A0B !important;
    width: 100% !important;
    overflow: hidden !important;
  }
  .about2-img {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    aspect-ratio: 4 / 5 !important;
    max-height: none !important; /* remove a trava que limitava a largura da imagem */
    position: relative !important;
    overflow: hidden !important;
  }
  .about2-img picture {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
  }
  .about2-img img {
    width: 100% !important;
    height: 100% !important;
    display: block !important;
    object-fit: cover !important;
    object-position: 50% 10% !important; /* enquadramento centralizado, nítido e com respiro no topo */
  }
  .about2-img::after {
    background: linear-gradient(180deg,
      rgba(10, 10, 11, 0) 58%,
      rgba(10, 10, 11, 0.5) 78%,
      #0A0A0B 98%
    ) !important;
  }
  /* Aproxima os textos da foto suavemente sobre o fundo grafite escuro */
  .about2-text {
    width: 100% !important;
    background: #0A0A0B !important;
    padding-top: 14px !important;
    margin-top: -18px !important;
    position: relative !important;
    z-index: 2 !important;
  }
}


