/* Print-only optimizations — applied when exporting the site to PDF.
   Does NOT affect on-screen rendering (loaded with media="print"). */
@media print{
  /* Force background colors/images to print (Chromium strips them by default) */
  *{
    -webkit-print-color-adjust:exact !important;
    print-color-adjust:exact !important;
  }

  @page{ margin:14mm; }

  html{ scroll-behavior:auto; }
  body{ font-size:11.5pt; }

  /* Web nav repeats on every page and can overlap content — drop it for print */
  .site-header,
  .modal,
  .modal-overlay,
  .nav-toggle{ display:none !important; }

  /* Hero: keep the full-bleed image, but cap height and guarantee white text
     stays readable over the image (background + gradient forced to print). */
  .hero{ min-height:56vh; padding:56px 0; }
  .hero-bg{
    position:absolute; inset:0;
    width:100%; height:100%;
    object-fit:cover;
    z-index:0 !important;
  }
  .hero .container{ position:relative; z-index:2; }
  .hero::after{ z-index:1; }

  /* Keep related blocks from splitting awkwardly across pages */
  .section,
  .product,
  .tech-item,
  .contact-card,
  .why-list li{ page-break-inside:avoid; }

  h2,h3{ break-after:avoid; page-break-after:avoid; }
  img{ page-break-inside:avoid; max-width:100% !important; }

  /* Don't leak raw URLs after links in the printed copy */
  a[href]:after{ content:""; }
}
