/**
 * Print Stylesheet
 *
 * Clean layout when printing service pages, blog posts, etc.
 * Hides navigation, footer, animations, and decorative elements.
 */

@media print {
  /* Reset dark theme for print */
  *, *::before, *::after {
    background: #fff !important;
    color: #000 !important;
    box-shadow: none !important;
    text-shadow: none !important;
    border-color: #ccc !important;
  }

  /* Hide non-essential elements */
  .iw-header,
  .iw-mobile-nav,
  .iw-mobile-overlay,
  .iw-footer,
  .iw-skip-link,
  .iw-breadcrumbs,
  .iw-share,
  .iw-toc,
  #iw-back-to-top,
  #iw-cookie-banner,
  #iw-progress-bar,
  .iw-btn,
  .iw-orb,
  .iw-particles-canvas,
  .global-cta,
  nav[aria-label="Post navigation"],
  .iw-hero-gradient::before,
  .iw-hero-gradient::after {
    display: none !important;
  }

  /* Reset hero sections for print */
  .iw-service-hero,
  .iw-hero-gradient {
    min-height: auto !important;
    padding: 1rem 0 !important;
    position: static !important;
  }

  /* Content readability */
  body {
    font-size: 12pt !important;
    line-height: 1.6 !important;
    font-family: Georgia, 'Times New Roman', serif !important;
  }

  h1 { font-size: 22pt !important; }
  h2 { font-size: 18pt !important; }
  h3 { font-size: 14pt !important; }

  h1, h2, h3 {
    page-break-after: avoid;
    font-family: 'Helvetica Neue', Arial, sans-serif !important;
  }

  p, li {
    orphans: 3;
    widows: 3;
  }

  /* Images */
  img {
    max-width: 100% !important;
    page-break-inside: avoid;
    border-radius: 0 !important;
  }

  /* Links — show URL */
  a[href^="http"]::after {
    content: " (" attr(href) ")";
    font-size: 9pt;
    color: #666 !important;
    word-break: break-all;
  }
  a[href^="#"]::after,
  a[href^="javascript"]::after,
  .iw-btn::after {
    content: "" !important;
  }

  /* Cards → simple bordered boxes */
  .iw-glass-card,
  .iw-card {
    border: 1px solid #ddd !important;
    padding: 12px !important;
    page-break-inside: avoid;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }

  /* Grid layouts → stack for print */
  .iw-grid,
  .iw-grid--3,
  .iw-grid--4 {
    display: block !important;
  }
  .iw-grid > * {
    margin-bottom: 1rem !important;
  }

  /* Container width */
  .iw-container {
    max-width: 100% !important;
    padding: 0 !important;
  }

  /* Tables */
  table {
    border-collapse: collapse !important;
  }
  td, th {
    border: 1px solid #ccc !important;
    padding: 6px 10px !important;
  }

  /* Page margins */
  @page {
    margin: 2cm;
  }

  /* Print header with site name */
  body::before {
    content: "InfiWits — infiwits.com";
    display: block;
    text-align: center;
    font-size: 9pt;
    color: #999 !important;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #eee !important;
  }
}
