/* PrivaLock RJ | Ajustes responsivos de desktop
   Escopo: telas a partir de 769px. Mantem a camada mobile original. */

@media screen and (min-width: 769px) {
  html { scroll-padding-top: 102px; }
  body { max-width: 100%; overflow-x: clip; }
  *, *::before, *::after { box-sizing: border-box; }
  img, svg, video, iframe { max-width: 100%; }
  img, video { height: auto; }

  /* Navegacao: logo, links e redes sociais sem cortes. */
  header { width: 100%; max-width: 100%; }
  header :is(.container, .header-inner, .header-container,
             .nav-container, .header-content) {
    max-width: 1360px;
    min-width: 0;
    margin-left: auto;
    margin-right: auto;
    column-gap: clamp(10px, 1.15vw, 22px);
  }
  header nav { max-width: 100%; min-width: 0; }
  header nav :is(ul, .nav-links, .menu, .links) {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
    column-gap: clamp(9px, 1.1vw, 20px);
    row-gap: 7px;
  }
  header nav a { white-space: nowrap; }
  header a[href*="instagram.com"],
  header a[href*="facebook.com"] { flex-shrink: 0; }
  header a[href*="facebook.com"] svg {
    display: block;
    width: 20px;
    height: 20px;
  }
  header .pl-mobile-controls,
  header .pl-mobile-toggle { display: none !important; }

  /* Hierarquia visual e espacamento, preservando o hero original. */
  main, main > section, main > div { min-width: 0; }
  section[id] { scroll-margin-top: 102px; }
  .hero, .hero-section, section#inicio, section#home {
    max-width: 100%;
    min-width: 0;
  }
  .hero :is(.container, .hero-inner, .hero-grid, .hero-layout,
            .hero-content, .hero-copy, .hero-text),
  .hero-section :is(.container, .hero-inner, .hero-grid) { min-width: 0; }
  .hero :is(h1, h2), .hero-section :is(h1, h2) {
    text-wrap: balance;
    overflow-wrap: normal;
  }
  .hero :is(p, .hero-subtitle), .hero-section p {
    line-height: 1.6;
  }
  .hero :is(.hero-actions, .hero-buttons, .cta-buttons, .action-buttons),
  .hero-section :is(.hero-actions, .hero-buttons) {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
  }

  /* Cards e planos: colunas fluidas, sem largura estourada. */
  :is(.plans-grid, .pricing-grid, .planos-grid,
      .cards-grid, .benefits-grid, .steps-grid, .stats-grid,
      .how-grid, .recursos-grid, .vantagens-grid) {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 270px), 1fr));
    gap: clamp(14px, 1.5vw, 24px);
  }
  :is(.plan-card, .pricing-card, .feature-card, .benefit-card,
      .app-card, .step-card, .faq-item, .stat-card) {
    min-width: 0;
    max-width: 100%;
    overflow-wrap: anywhere;
  }
  :is(.plan-card, .pricing-card, .feature-card, .benefit-card,
      .app-card, .step-card) {
    transition: transform .2s ease, box-shadow .2s ease;
  }
  @media (hover: hover) and (prefers-reduced-motion: no-preference) {
    :is(.plan-card, .pricing-card, .feature-card, .benefit-card,
        .app-card, .step-card):hover {
      transform: translateY(-3px);
      box-shadow: 0 12px 28px rgba(13, 19, 34, .09);
    }
  }

  /* Destaques em uma unica faixa quando couber. */
  :is(.features-strip, .feature-strip, .benefits-bar, .benefit-strip,
      .features-bar, .hero-features, .feature-highlights) > * { min-width: 0; }

  /* Telas de aplicativo e FAQ. */
  :is(.app-grid, .app-showcase, .app-preview,
      .app-content, .faq-grid, .contact-grid, .about-grid) > * { min-width: 0; }
  :is(.app-grid, .app-showcase, .app-preview) img {
    max-width: 100%;
    object-fit: contain;
  }
  table { max-width: 100%; }

  /* Rodape: marcas e credito do desenvolvedor legiveis no desktop. */
  footer { max-width: 100%; overflow-wrap: anywhere; }
  footer :is(.container, .footer-inner, .footer-container) {
    max-width: 1360px;
    min-width: 0;
    margin-inline: auto;
  }
  footer :is(.footer-grid, .footer-columns) {
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    column-gap: clamp(22px, 4vw, 66px);
    row-gap: 28px;
  }
  footer img[alt*="PrivaLock" i] {
    width: min(170px, 100%);
    height: auto;
  }
  footer .pl-footer-social-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 18px;
  }
  footer .pl-developer-credit {
    display: inline-block;
    margin-left: 12px;
    line-height: 1.6;
  }
  footer .pl-developer-credit a {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 3px;
  }

  /* WhatsApp flutuante acima do canto do navegador. */
  :is(.whatsapp-float, .floating-whatsapp, .float-whatsapp,
      .whatsapp-fixed, .whatsapp-floating) {
    right: 22px;
    bottom: 22px;
  }
}

/* Tablet horizontal e notebooks compactos: a navegacao pode quebrar linha.
   O menu mobile continua reservado para <= 768px. */
@media screen and (min-width: 769px) and (max-width: 1099px) {
  header :is(.container, .header-inner, .header-container,
             .nav-container, .header-content) {
    flex-wrap: wrap;
    row-gap: 10px;
    padding-block: 10px;
  }
  header nav { flex: 1 1 auto; }
  header nav a { font-size: 13px; }
  :is(.features-strip, .feature-strip, .benefits-bar,
      .benefit-strip, .features-bar, .hero-features,
      .feature-highlights) {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
  }
  :is(.plans-grid, .pricing-grid, .planos-grid) {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 245px), 1fr));
  }
}

/* Monitor grande: evitar conteudo esticado de ponta a ponta. */
@media screen and (min-width: 1440px) {
  header :is(.container, .header-inner, .header-container,
             .nav-container, .header-content),
  footer :is(.container, .footer-inner, .footer-container),
  main > section > .container,
  main > section > .section-container,
  main > section > .content-container {
    max-width: 1320px;
    margin-left: auto;
    margin-right: auto;
  }
  .hero :is(.hero-copy, .hero-text, .hero-content) {
    max-width: 620px;
  }
}

/* Respeita configuracao de movimento reduzido. */
@media (prefers-reduced-motion: reduce) and (min-width: 769px) {
  :is(.plan-card, .pricing-card, .feature-card, .benefit-card,
      .app-card, .step-card) { transition: none !important; }
}
