/* ===================================================================
   PRINT STYLES - Optimized for Professional PDF Generation
   =================================================================== */

@media print {
  /* Reset for print */
  * {
    background: white !important;
    color: black !important;
    box-shadow: none !important;
    text-shadow: none !important;
  }

  /* Page setup */
  @page {
    size: A4;
    margin: 2cm;
  }

  /* Hide interactive elements */
  .section-nav,
  .btn,
  button,
  input,
  select,
  textarea {
    display: none !important;
  }

  /* Ensure sections start on new page */
  .proposal-section {
    page-break-before: always;
    page-break-after: always;
  }

  /* Prevent breaks inside elements */
  .card,
  .feature-card,
  .pricing-card,
  .timeline-item,
  .content-block,
  h1, h2, h3, h4, h5, h6,
  p, li {
    page-break-inside: avoid;
  }

  /* Keep headers with following content */
  h1, h2, h3, h4, h5, h6 {
    page-break-after: avoid;
    page-break-inside: avoid;
  }

  /* Optimize typography for print */
  body {
    font-size: 11pt;
    line-height: 1.5;
    font-family: Georgia, 'Times New Roman', serif;
  }

  h1 { font-size: 24pt; }
  h2 { font-size: 20pt; }
  h3 { font-size: 16pt; }
  h4 { font-size: 14pt; }
  h5 { font-size: 12pt; }
  h6 { font-size: 11pt; }

  /* Show URLs for links */
  a[href]:after {
    content: " (" attr(href) ")";
    font-size: 9pt;
    color: #666;
  }

  /* Remove URL display for anchor links */
  a[href^="#"]:after {
    content: "";
  }

  /* Optimize images */
  img {
    max-width: 100% !important;
    page-break-inside: avoid;
  }

  /* Table optimization */
  table {
    border-collapse: collapse;
    width: 100%;
  }

  thead {
    display: table-header-group;
  }

  tr {
    page-break-inside: avoid;
  }

  th, td {
    border: 1px solid #ddd;
    padding: 8pt;
  }

  /* Header and footer for each page */
  .section-header {
    position: static;
    background: none;
    backdrop-filter: none;
    box-shadow: none;
    border-bottom: 2px solid #333;
    padding-bottom: 10pt;
    margin-bottom: 20pt;
  }

  .section-footer {
    position: static;
    background: none;
    border-top: 2px solid #333;
    padding-top: 10pt;
    margin-top: 20pt;
  }

  /* Page numbers */
  .page-number:before {
    content: "Page ";
  }

  /* Optimize spacing */
  .container {
    max-width: 100%;
    padding: 0;
  }

  /* Remove hover effects */
  *:hover {
    transform: none !important;
  }

  /* Simplify shadows and effects */
  .card,
  .feature-card {
    border: 1px solid #ddd;
    padding: 15pt;
    box-shadow: none !important;
  }

  /* Timeline adjustments */
  .timeline::before {
    background: #333;
  }

  .timeline-marker {
    border: 2px solid #333;
  }

  /* Pricing cards */
  .pricing-card {
    border: 1px solid #333;
    box-shadow: none !important;
  }

  /* Hero section adjustments */
  .hero {
    min-height: auto;
    padding: 40pt 0;
    border-bottom: 3px solid #333;
  }

  /* Ensure visibility */
  .text-white {
    color: black !important;
  }

  /* Grid adjustments */
  .grid-2,
  .grid-3,
  .grid-4 {
    display: block;
  }

  .grid-2 > *,
  .grid-3 > *,
  .grid-4 > * {
    margin-bottom: 15pt;
  }
}
