/* =====================================================
   ImporteFile — Mobile & UI Improvements
   Design moderno, responsivo e acessível
   ===================================================== */

/* ============================
   SEÇÃO DE VÍDEO
   ============================ */
.video-section {
  background: #041831;
}

.video-section .process_heading span,
.video-section .fs-ten.fw-semibold.p2-color {
  color: #ffb703 !important;
}

.video-section h2 {
  color: #fff !important;
}

.video-section p {
  color: rgba(255,255,255,0.7) !important;
}

.video-section strong {
  color: #ffb703;
}

.video-wrapper {
  filter: drop-shadow(0 20px 60px rgba(0, 89, 232, 0.18));
}

.video-frame {
  border: 3px solid rgba(255, 183, 3, 0.25);
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255,183,3,0.1);
}

.video-glow {
  position: absolute;
  inset: 0;
  border-radius: 16px;
  pointer-events: none;
  background: radial-gradient(ellipse at 50% 100%, rgba(0, 89, 232, 0.08) 0%, transparent 70%);
  z-index: -1;
}

@media (max-width: 768px) {
  .video-section {
    padding-top: 60px !important;
    padding-bottom: 60px !important;
  }

  .video-section .col-lg-8 {
    padding-left: 8px !important;
    padding-right: 8px !important;
  }

  .video-section h2 {
    font-size: 26px !important;
    line-height: 1.3 !important;
  }
}

@media (max-width: 576px) {
  .video-frame {
    border-width: 2px;
  }

  .video-section h2 {
    font-size: 22px !important;
  }

  .video-section p {
    font-size: 14px !important;
  }
}

/* ============================
   HERO — Conversão info
   ============================ */
.hero-conversao-titulo {
  color: rgba(255, 255, 255, 0.7);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 6px;
}

.hero-conversao-titulo i {
  font-size: 14px;
  color: #ffb703;
}

.hero-conversao-sub {
  color: rgba(255, 255, 255, 0.65);
  font-size: 13px;
  margin: 0;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
  line-height: 1.6;
}

.hero-conversao-sub i {
  color: #ffb703;
  font-size: 14px;
}

@media (max-width: 576px) {
  .hero-conversao-titulo {
    font-size: 12px;
  }

  .hero-conversao-sub {
    font-size: 12px;
  }
}

/* ============================
   1. VARIÁVEIS & RESET GLOBAL
   ============================ */
:root {
  --touch-min: 48px;
  --radius-card: 16px;
  --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.08), 0 1px 4px rgba(0, 0, 0, 0.05);
  --shadow-elevated: 0 8px 40px rgba(0, 0, 0, 0.14);
  --transition-smooth: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Scroll suave e padding para anchors fixos */
html {
  scroll-behavior: smooth;
}

section[id] {
  scroll-margin-top: 80px;
}

/* Impede zoom do iOS em inputs */
input,
textarea,
select {
  font-size: 16px !important;
  -webkit-text-size-adjust: 100%;
}

/* ============================
   2. FIX: PARALLAX NO MOBILE
   iOS não suporta background-attachment: fixed
   ============================ */
@media (max-width: 991px) {
  .particial-bg,
  .parallax,
  .testimonial,
  .dicscuss_projects {
    background-attachment: scroll !important;
  }
}

/* ============================
   3. HERO SECTION
   ============================ */
@media (max-width: 992px) {
  .particial-bg {
    height: auto !important;
    min-height: 100svh;
  }

  .particles_hero .container .row {
    padding-top: 110px !important;
    padding-bottom: 60px !important;
  }

  .particles_hero .col-lg-6 {
    width: 100% !important;
    max-width: 100% !important;
  }

  .particles_hero h2.fs-one {
    font-size: 32px !important;
    line-height: 1.25 !important;
  }
}

@media (max-width: 768px) {
  .particles_hero .container .row {
    padding-top: 100px !important;
    padding-bottom: 48px !important;
  }

  .particles_hero h2.fs-one {
    font-size: 28px !important;
    line-height: 1.28 !important;
  }

  .particles_hero .fs-ten {
    font-size: 14px !important;
  }
}

@media (max-width: 576px) {
  .particial-bg {
    min-height: 100svh;
  }

  .particles_hero .container .row {
    padding-top: 90px !important;
    padding-bottom: 40px !important;
  }

  .particles_hero h2.fs-one {
    font-size: 24px !important;
    line-height: 1.3 !important;
  }

  .hero_hot {
    font-size: 12px !important;
    padding: 4px 12px !important;
    width: fit-content !important;
  }

  /* Botões hero em coluna no mobile */
  .particles_hero .d-flex.flex-wrap.gap-3.gap-md-6 {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 10px !important;
  }

  .particles_hero .d-flex.flex-wrap.gap-3.gap-md-6 a.btn {
    width: auto !important;
    min-width: 160px !important;
  }
}

/* ============================
   4. FORM POPUP (OVERLAY)
   Reposicionar para mobile
   ============================ */
@media (max-width: 1100px) {
  .overlay {
    padding-right: 10rem !important;
  }
}

@media (max-width: 850px) {
  .overlay {
    padding-right: 0 !important;
    justify-content: center !important;
    align-items: flex-start !important;
    padding-top: 80px !important;
    background: rgba(0, 0, 0, 0.45) !important;
    pointer-events: all !important;
    backdrop-filter: blur(4px) !important;
  }

  .form-popup {
    width: min(420px, 94vw) !important;
    height: auto !important;
    max-height: 88vh;
    overflow-y: auto;
    border-radius: 12px !important;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35) !important;
  }
}

@media (max-width: 480px) {
  .overlay {
    padding-top: 60px !important;
    align-items: flex-start !important;
  }

  .form-popup {
    width: 96vw !important;
    padding: 1.2rem !important;
    border-radius: 10px !important;
    max-height: 90vh;
  }

  .form-popup h4 {
    font-size: 15px !important;
    padding: 0.4rem !important;
  }

  .form-popup label {
    font-size: 14px !important;
    margin-top: 0.7rem !important;
  }

  .form-popup input,
  .form-popup textarea {
    padding: 0.6rem 0.8rem !important;
    font-size: 15px !important;
  }

  .form-popup button {
    width: 100% !important;
    padding: 0.8rem !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    min-height: var(--touch-min) !important;
    border-radius: 8px !important;
    margin-top: 1rem !important;
  }
}

/* ============================
   5. HEADER / NAVEGAÇÃO
   ============================ */
@media (max-width: 991px) {
  /* Tap targets maiores no menu mobile */
  .header-section .navbar .navbar-nav a,
  .header-section .navbar .navbar-nav button {
    padding: 10px 14px !important;
    min-height: var(--touch-min);
    display: flex !important;
    align-items: center;
    border-radius: 8px;
  }

  .header-section .navbar .navbar-nav a:hover {
    background-color: rgba(0, 89, 232, 0.08);
  }

  /* Navbar collapse scroll com mais espaço */
  .header-section .navbar .navbar-collapse .navbar-nav {
    max-height: 65vh !important;
    overflow-y: auto;
    padding: 8px 0 20px;
    -webkit-overflow-scrolling: touch;
  }

  /* Botão dark mode — posição corrigida */
  .header-section .navbar .custom-pos {
    right: 58px !important;
    top: 18px !important;
  }

  /* Hamburger — posição corrigida */
  .header-section .navbar .navbar-toggler {
    top: 22px !important;
    right: 2px !important;
  }
}

@media (max-width: 576px) {
  .header-section .navbar .custom-pos {
    right: 52px !important;
    top: 14px !important;
  }

  .header-section .navbar .navbar-toggler {
    top: 18px !important;
  }

  /* Logo menor no mobile */
  .header-section .navbar-brand img {
    width: 160px !important;
  }
}

/* ============================
   6. BOTÕES — TOUCH TARGETS
   ============================ */
.btn,
.btn-outline,
.btn2 {
  min-height: var(--touch-min);
  transition: var(--transition-smooth) !important;
}

@media (max-width: 576px) {
  .btn,
  .btn-outline {
    width: 145px !important;
    height: 46px !important;
  }

  .btn2 {
    width: 170px !important;
    height: 46px !important;
  }
}

/* Botão de planos — melhor toque */
.price_btn {
  min-height: var(--touch-min) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: var(--transition-smooth) !important;
  border-radius: 50px !important;
}

.price_btn button {
  pointer-events: none;
}

/* ============================
   7. SERVICE CARDS
   ============================ */
.service_card_hover {
  border-radius: var(--radius-card);
  transition: var(--transition-smooth) !important;
  border: 1px solid transparent;
}

.service_card_hover:hover {
  border-color: rgba(0, 89, 232, 0.15);
  box-shadow: var(--shadow-card);
  transform: translateY(-4px);
}

@media (max-width: 575px) {
  .service_card_hover {
    padding: 28px 20px !important;
  }
}

/* ============================
   8. PROCESS FLOW
   ============================ */
@media (max-width: 576px) {
  .process_icon_bg {
    width: 88px !important;
    height: 88px !important;
  }

  .process_icon_num {
    right: -8px !important;
    width: 40px !important;
    height: 40px !important;
    font-size: 13px !important;
  }

  .text-center.px-5.px-lg-15 {
    padding-left: 12px !important;
    padding-right: 12px !important;
  }
}

/* ============================
   9. CHOOSE US / CARRO-CHEFE
   ============================ */
@media (max-width: 991px) {
  .choose_us {
    max-width: 100% !important;
    height: auto !important;
    width: 100%;
    border-radius: var(--radius-card);
    object-fit: cover;
  }
}

@media (max-width: 576px) {
  .choose_icon_width {
    width: 44px !important;
    height: 44px !important;
    flex-shrink: 0;
  }
}

/* ============================
   10. COUNTER / ESTATÍSTICAS
   ============================ */
.counter_right_side {
  width: 100% !important;
  border-radius: var(--radius-card) !important;
  overflow: hidden;
}

@media (max-width: 768px) {
  .parallax .row.py-10.py-md-20 {
    padding-top: 50px !important;
    padding-bottom: 50px !important;
  }
}

@media (max-width: 576px) {
  .counter_right_side .col-sm-6 > div {
    padding: 20px 10px !important;
  }

  .display-two {
    font-size: 36px !important;
  }

  .display-nine {
    font-size: 52px !important;
  }
}

/* ============================
   11. PRICING CARDS
   ============================ */
.pricing_section {
  border-radius: var(--radius-card) !important;
  transition: var(--transition-smooth) !important;
}

.pricing_section > div {
  border-radius: var(--radius-card) !important;
  height: 100%;
}

@media (hover: none) {
  /* Desativa hover scale em dispositivos touch */
  .pricing_section:hover {
    transform: none !important;
  }
}

/* Ícones dos planos centralizados */
.pricing_section .price_icon {
  margin-left: auto;
  margin-right: auto;
}

/* ============================
   PLANO DESTAQUE — Mais Contratado
   ============================ */
.border-destaque {
  border: 2px solid #ffb703 !important;
  box-shadow: 0 6px 28px rgba(255, 183, 3, 0.18);
}

.badge-mais-contratado {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #ffb703;
  color: #111;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 4px 14px;
  border-radius: 20px;
  margin-bottom: 16px;
  line-height: 1.4;
}

.badge-mais-contratado i {
  font-size: 12px;
}

@media (max-width: 480px) {
  .col-md-6.col-xl-4 {
    width: 100% !important;
    max-width: 100% !important;
    flex: 0 0 100% !important;
  }
}


/* ============================
   12. TESTIMONIALS
   ============================ */
@media (max-width: 576px) {
  .testimonial_img {
    width: 56px !important;
    height: 56px !important;
    flex-shrink: 0;
  }

  .swiper-slide .d-flex.gap-4.gap-lg-8 {
    gap: 12px !important;
  }

  .px-4.px-sm-8.py-5.py-sm-10 {
    padding: 20px 16px !important;
  }
}

/* ============================
   13. FAQ
   ============================ */
.faq {
  border-radius: 12px !important;
  transition: var(--transition-smooth);
}

.faq:hover {
  border-color: rgba(0, 89, 232, 0.3) !important;
}

@media (max-width: 576px) {
  .faq_icon_width {
    flex-shrink: 0;
    width: 22px !important;
    height: 22px !important;
  }

  .faq .question {
    gap: 8px;
    align-items: flex-start !important;
  }

  .faq .question h3 {
    font-size: 14px !important;
    line-height: 1.5 !important;
  }

  .p-4.p-md-8 {
    padding: 14px !important;
  }
}

/* ============================
   14. DISCUSS PROJECTS / CTA
   ============================ */
@media (max-width: 768px) {
  .dicscuss_projects .dicscuss-content {
    width: 100% !important;
    padding: 0 16px !important;
  }

  .dicscuss_projects .pt-120.pb-120 {
    padding-top: 60px !important;
    padding-bottom: 60px !important;
  }

  .dicscuss_projects .col-xl-6:first-child {
    display: none;
  }

  .dicscuss_projects .col-xl-6:last-child {
    flex: 0 0 100%;
    max-width: 100%;
  }
}

/* ============================
   15. BANKS / CLIENTS SLIDER
   ============================ */
@media (max-width: 576px) {
  .clients_slider .swiper-slide > div {
    padding: 12px 16px !important;
  }
}

/* ============================
   16. FOOTER
   ============================ */
@media (max-width: 768px) {
  .footer_section .row.g-12 {
    row-gap: 24px !important;
  }
}

/* ============================
   17. WHATSAPP WIDGET — MOBILE
   ============================ */
@media (max-width: 576px) {
  .whatswidget-widget-wrapper {
    right: 12px !important;
    bottom: 16px !important;
  }

  .whatswidget-button {
    transform: scale(0.9) !important;
  }
}

/* ============================
   18. SCROLL TO TOP BUTTON
   Não sobrepor com WhatsApp
   ============================ */
.scrollToTop {
  bottom: 100px !important;
  z-index: 1000 !important;
  transition: var(--transition-smooth) !important;
}

@media (max-width: 576px) {
  .scrollToTop {
    bottom: 90px !important;
    right: 12px !important;
    width: 42px !important;
    height: 42px !important;
  }
}

/* ============================
   19. TIPOGRAFIA — MICRO-AJUSTES
   ============================ */
@media (max-width: 360px) {
  h2,
  h2 > a,
  .fs-two {
    font-size: 24px !important;
    line-height: 1.3 !important;
  }

  h3,
  .fs-three {
    font-size: 20px !important;
  }

  .display-three {
    font-size: 22px !important;
  }

  p,
  span,
  li,
  a {
    font-size: 14px !important;
  }
}

/* Service slider text — mobile */
@media (max-width: 576px) {
  .display-three {
    font-size: 24px !important;
    line-height: 1.3 !important;
  }
}

/* ============================
   20. ACESSIBILIDADE — FOCUS
   ============================ */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid rgba(0, 89, 232, 0.7) !important;
  outline-offset: 3px !important;
  border-radius: 4px;
}

/* ============================
   21. SCROLLBAR REFINADA
   ============================ */
::-webkit-scrollbar {
  width: 5px;
  height: 5px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: rgba(0, 89, 232, 0.4);
  border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 89, 232, 0.7);
}

/* ============================
   22. CARDS — MELHORIAS VISUAIS
   ============================ */
.rounded-4 {
  border-radius: var(--radius-card) !important;
}

/* Pricing card — borda de hover */
.pricing_section > div {
  transition: var(--transition-smooth) !important;
  border-width: 1.5px !important;
}

.pricing_section:hover > div {
  border-color: rgba(0, 89, 232, 0.5) !important;
  box-shadow: var(--shadow-elevated) !important;
}

/* ============================
   23. PROCESSO — LINHA DO TEMPO
   Visual melhorado entre os 3 passos
   ============================ */
@media (min-width: 992px) {
  .col-xl-4:not(:last-child) .text-center.px-5 {
    position: relative;
  }

  .col-xl-4:not(:last-child) .text-center.px-5::after {
    content: "";
    position: absolute;
    top: 60px;
    right: -10%;
    width: 40%;
    height: 2px;
    background: linear-gradient(90deg, rgba(0, 89, 232, 0.3), rgba(255, 183, 3, 0.3));
  }
}

/* ============================
   24. DARK MODE — BTN REFINADO
   ============================ */
.dark_btn {
  transition: var(--transition-smooth) !important;
  min-width: var(--touch-min) !important;
  min-height: var(--touch-min) !important;
}

.dark_btn:hover {
  background-color: rgba(0, 89, 232, 0.8) !important;
  transform: scale(1.05);
}

/* ============================
   25. IMAGENS — LAZY + SMOOTH
   ============================ */
img {
  transition: opacity 0.3s ease;
}

/* ============================
   26. HEADER MENU MOBILE CLOSE
   Garante que o menu fecha ao clicar
   ============================ */
@media (max-width: 991px) {
  .header-section .navbar .navbar-collapse.show {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 8px;
  }
}

/* ============================
   27. SERVICE SECTION HEADING
   Melhor organização em telas menores
   ============================ */
@media (max-width: 576px) {
  .service_heading {
    width: 100% !important;
  }

  .d-flex.flex-wrap.gap-5.justify-content-between {
    gap: 12px !important;
  }
}

/* ============================
   28. ANIMAÇÕES — PERFORMANCE
   Reduz animações em preferência do usuário
   ============================ */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ============================
   29. FOOTER COPYRIGHT FIX
   ============================ */
.footer_section .container .sm\:fs-ten {
  font-size: 14px !important;
}

@media (max-width: 576px) {
  .footer_section .container.d-flex {
    flex-direction: column !important;
    align-items: center !important;
    gap: 8px !important;
    text-align: center !important;
  }
}

/* ============================
   30. SECTION SPACING — MOBILE
   Espaçamentos mais proporcionais
   ============================ */
@media (max-width: 576px) {
  .pt-120 {
    padding-top: 50px !important;
  }

  .pb-120 {
    padding-bottom: 50px !important;
  }

  .mt-8.mt-lg-15 {
    margin-top: 24px !important;
  }
}

/* ============================
   31. TESTIMONIAL SECTION BG
   Legibilidade melhorada no mobile
   ============================ */
@media (max-width: 576px) {
  .testimonial {
    background-image: linear-gradient(
      rgba(4, 24, 49, 0.95),
      rgba(4, 24, 49, 0.95)
    ),
    url("../images/testimonial.png") !important;
  }
}

/* ============================
   32. COUNTER ANIMATION
   Números mais proporcionais
   ============================ */
@media (max-width: 576px) {
  .counter_right_side .col-sm-6 {
    width: 50% !important;
    flex: 0 0 50% !important;
    max-width: 50% !important;
  }
}

/* ============================
   33. GRID GAP MOBILE
   ============================ */
@media (max-width: 576px) {
  .row.g-2.g-lg-5 {
    gap: 16px 8px !important;
    row-gap: 16px !important;
  }

  .row.g-5 {
    gap: 20px 12px !important;
  }
}

/* ============================
   34. SERVIÇOS — CARDS MOBILE
   ============================ */
@media (max-width: 576px) {
  /* Cada card de serviço ocupa largura total */
  #id2 .col-md-6,
  #id2 .col-lg-4 {
    width: 100% !important;
    max-width: 100% !important;
  }

  /* Títulos de seção */
  .service_heading h2,
  .process_heading h2 {
    font-size: 22px !important;
    line-height: 1.3 !important;
  }

  .process_heading p {
    font-size: 14px !important;
  }
}

/* ============================
   35. PLANOS — FULL WIDTH MOBILE
   ============================ */
@media (max-width: 767px) {
  #id4 .col-md-6,
  #id4 .col-xl-4 {
    width: 100% !important;
    max-width: 100% !important;
    flex: 0 0 100% !important;
  }

  .pricing_section .px-4.px-lg-8 {
    padding: 24px 20px !important;
  }

  .badge-mais-contratado {
    font-size: 11px !important;
    padding: 3px 12px !important;
  }
}

/* ============================
   36. FAQ — MOBILE
   ============================ */
@media (max-width: 576px) {
  #id7 .col-lg-8 {
    width: 100% !important;
    max-width: 100% !important;
    padding-left: 8px !important;
    padding-right: 8px !important;
  }

  .faq .question h3 {
    font-size: 13px !important;
  }
}

/* ============================
   37. TESTIMONIALS — MOBILE
   ============================ */
@media (max-width: 576px) {
  #id5 .process_heading h2 {
    font-size: 22px !important;
  }

  .testimonial .swiper-slide {
    padding: 0 8px !important;
  }
}

/* ============================
   38. BANCOS SLIDER — MOBILE
   ============================ */
@media (max-width: 576px) {
  .our_clients .process_heading h2 {
    font-size: 20px !important;
  }

  .our_clients .process_heading p {
    font-size: 13px !important;
  }
}

/* ============================
   39. FOOTER — MOBILE
   ============================ */
@media (max-width: 576px) {
  .footer_section .col-xl-3,
  .footer_section .col-xl-2,
  .footer_section .col-sm-6 {
    width: 100% !important;
    max-width: 100% !important;
    text-align: center !important;
  }

  .footer_section .d-flex.gap-4 {
    justify-content: center !important;
  }

  .footer_section img {
    margin: 0 auto 12px !important;
    display: block !important;
  }
}

/* ============================
   40. CONTAINER PADDING MOBILE
   ============================ */
@media (max-width: 576px) {
  .container {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }
}

/* ============================
   41. NAVBAR MOBILE — REFINAMENTOS
   ============================ */
@media (max-width: 991px) {
  /* Menu collapse com fundo sólido */
  .header-section .navbar-collapse {
    background: rgba(4, 24, 49, 0.98) !important;
    backdrop-filter: blur(12px);
    border-radius: 0 0 16px 16px;
    padding: 12px 16px 20px !important;
    margin-top: 4px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.25);
  }

  .header-section .navbar-nav .dropdown > a {
    border-bottom: 1px solid rgba(255,255,255,0.06) !important;
    margin-bottom: 2px !important;
  }

  .header-section .navbar-nav .dropdown:last-child > a {
    border-bottom: none !important;
  }
}

/* ============================
   42. ESTATÍSTICAS — TEXTO MENOR
   ============================ */
@media (max-width: 576px) {
  .counter_right_side span.p6-color {
    font-size: 12px !important;
    line-height: 1.3 !important;
  }

  .display-two {
    font-size: 30px !important;
    line-height: 1 !important;
  }
}

/* ============================
   43. CHOOSE US — LAYOUT MOBILE
   ============================ */
@media (max-width: 991px) {
  #id3 .col-lg-6:last-child {
    width: 100% !important;
    max-width: 100% !important;
  }

  #id3 .row.g-5 {
    row-gap: 16px !important;
  }
}

/* ============================
   44. IMAGENS — MAX WIDTH MOBILE
   ============================ */
@media (max-width: 768px) {
  .choose_us,
  #id3 img {
    width: 100% !important;
    height: auto !important;
    max-height: 280px !important;
    object-fit: cover !important;
    border-radius: 12px;
  }
}

/* ============================
   45. OVERFLOW HORIZONTAL — FIX GLOBAL
   ============================ */
body {
  overflow-x: hidden;
}

@media (max-width: 576px) {
  section,
  .container,
  .row {
    overflow-x: hidden;
  }
}
