/**
 * Print Stylesheet
 * Optimizes pages for printing
 */

@media print {
    /* Hide non-essential elements */
    nav,
    footer,
    .no-print,
    #back-to-top,
    #floating-cta,
    #exit-intent-popup,
    #quick-quote-modal,
    .dark-mode-toggle,
    button,
    .mobile-menu,
    .social-share-buttons {
        display: none !important;
    }
    
    /* Page setup */
    @page {
        margin: 1.5cm;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.5;
        color: #000;
        background: #fff;
    }
    
    /* Typography */
    h1, h2, h3, h4, h5, h6 {
        page-break-after: avoid;
        color: #000;
    }
    
    h1 {
        font-size: 24pt;
        margin-bottom: 0.5em;
    }
    
    h2 {
        font-size: 18pt;
        margin-top: 1em;
        margin-bottom: 0.5em;
    }
    
    h3 {
        font-size: 14pt;
        margin-top: 0.75em;
        margin-bottom: 0.5em;
    }
    
    /* Links */
    a {
        color: #000;
        text-decoration: underline;
    }
    
    a[href^="http"]:after {
        content: " (" attr(href) ")";
        font-size: 10pt;
        color: #666;
    }
    
    /* Images */
    img {
        max-width: 100%;
        height: auto;
        page-break-inside: avoid;
    }
    
    /* Tables */
    table {
        border-collapse: collapse;
        width: 100%;
        page-break-inside: avoid;
    }
    
    table th,
    table td {
        border: 1px solid #000;
        padding: 8pt;
    }
    
    table th {
        background: #f0f0f0;
        font-weight: bold;
    }
    
    /* Lists */
    ul, ol {
        margin-left: 1.5em;
    }
    
    /* Page breaks */
    .page-break {
        page-break-before: always;
    }
    
    .no-break {
        page-break-inside: avoid;
    }
    
    /* Product details specific */
    .product-detail {
        page-break-inside: avoid;
    }
    
    .product-gallery {
        display: none;
    }
    
    .product-main-image {
        max-width: 50%;
        float: left;
        margin-right: 1em;
        margin-bottom: 1em;
    }
    
    /* Contact forms - hide */
    form {
        display: none;
    }
    
    /* Show URL and date */
    .print-url {
        display: block;
        font-size: 10pt;
        color: #666;
        margin-top: 1em;
        border-top: 1px solid #ccc;
        padding-top: 0.5em;
    }
    
    .print-date {
        display: block;
        font-size: 10pt;
        color: #666;
        margin-bottom: 1em;
    }
    
    /* Avoid breaking inside important sections */
    .testimonial,
    .faq-item,
    .blog-post {
        page-break-inside: avoid;
    }
    
    /* Colors - convert to grayscale friendly */
    .primary-color,
    .text-primary {
        color: #000 !important;
    }
    
    .bg-primary,
    .bg-secondary {
        background: #f0f0f0 !important;
        color: #000 !important;
    }
}

