/* =============================================================
   LP Builder — Responsive Styles
   Applies to: GrapesJS canvas preview + public standalone pages
   ============================================================= */

/* ── Navbar ── */
@media (max-width: 768px) {
  header[style*="font-family:'Inter'"] > div {
    flex-wrap: wrap !important;
    height: auto !important;
    padding-top: 14px !important;
    padding-bottom: 14px !important;
    gap: 12px !important;
  }
  header[style*="font-family:'Inter'"] nav {
    flex-wrap: wrap !important;
    gap: 10px !important;
    justify-content: center !important;
    width: 100% !important;
  }

  /* ── Section padding ── */
  section[style*="font-family:'Inter'"] {
    padding-top: 52px !important;
    padding-bottom: 52px !important;
    padding-left: 20px !important;
    padding-right: 20px !important;
  }
  footer[style*="font-family:'Inter'"] {
    padding-left: 20px !important;
    padding-right: 20px !important;
  }

  /* ── Headings ── */
  h1[style*="font-size:52px"],
  h1[style*="font-size:46px"],
  h1[style*="font-size:44px"] {
    font-size: 30px !important;
    line-height: 1.25 !important;
  }
  h2[style*="font-size:44px"],
  h2[style*="font-size:42px"],
  h2[style*="font-size:40px"],
  h2[style*="font-size:38px"],
  h2[style*="font-size:36px"] {
    font-size: 26px !important;
    line-height: 1.3 !important;
  }
  p[style*="font-size:19px"],
  p[style*="font-size:18px"],
  p[style*="font-size:17px"] {
    font-size: 15px !important;
  }

  /* ── 2-col grid → 1 col (Hero Claro, Imagem+Texto) ── */
  div[style*="grid-template-columns:1fr 1fr"] {
    grid-template-columns: 1fr !important;
    gap: 28px !important;
  }

  /* ── 3-col grid → 1 col (Features, Depoimentos, Galeria) ── */
  div[style*="grid-template-columns:repeat(3,1fr)"] {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }

  /* ── 4-col stats → 2 col ── */
  div[style*="grid-template-columns:repeat(4,1fr)"] {
    grid-template-columns: 1fr 1fr !important;
    gap: 0 !important;
  }
  p[style*="font-size:54px"] {
    font-size: 36px !important;
  }

  /* ── Footer 4-col → 1 col ── */
  div[style*="grid-template-columns:2fr 1fr 1fr 1fr"] {
    grid-template-columns: 1fr !important;
    gap: 28px !important;
  }

  /* ── Pricing 3-col → 1 col ── */
  div[style*="grid-template-columns:repeat(3,1fr)"][style*="align-items:start"] {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
    max-width: 400px !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  /* ── CTA hero buttons ── */
  div[style*="display:flex"][style*="justify-content:center"][style*="flex-wrap:wrap"] {
    flex-direction: column !important;
    align-items: center !important;
    gap: 12px !important;
  }
  div[style*="display:flex"][style*="justify-content:center"][style*="flex-wrap:wrap"] a {
    width: 100% !important;
    max-width: 320px !important;
    text-align: center !important;
    padding-left: 24px !important;
    padding-right: 24px !important;
  }

  /* ── Hero image placeholder ── */
  div[style*="min-height:380px"],
  div[style*="min-height:360px"] {
    min-height: 220px !important;
  }

  /* ── Max-width container paddings ── */
  div[style*="max-width:1160px"],
  div[style*="max-width:1100px"],
  div[style*="max-width:1080px"],
  div[style*="max-width:1000px"],
  div[style*="max-width:860px"] {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  /* ── Testimonial card content ── */
  div[style*="display:grid"][style*="grid-template-columns:repeat(3,1fr)"] > div {
    break-inside: avoid;
  }
}
