/**
 * IFS Elevate - Print Styles
 * Optimized for printing feasibility reports and pages
 */

@media print {
    /* Hide non-essential elements */
    .navbar,
    .footer,
    .floating-cta,
    .back-to-top,
    #theme-toggle,
    .carousel-control-prev,
    .carousel-control-next,
    .scroll-indicator,
    .btn,
    form,
    .contact-form-wrapper,
    .social-links,
    video,
    iframe {
        display: none !important;
    }
    
    /* Reset backgrounds and colors */
    body {
        background: white !important;
        color: black !important;
        font-size: 12pt;
        line-height: 1.5;
    }
    
    /* Ensure all text is black */
    * {
        color: black !important;
        background: transparent !important;
        box-shadow: none !important;
        text-shadow: none !important;
    }
    
    /* Show URLs after links */
    a[href]::after {
        content: " (" attr(href) ")";
        font-size: 0.8em;
        font-weight: normal;
    }
    
    /* Don't show URL for internal links */
    a[href^="#"]::after,
    a[href^="javascript:"]::after {
        content: "";
    }
    
    /* Page breaks */
    h1, h2, h3, h4, h5, h6 {
        page-break-after: avoid;
        page-break-inside: avoid;
    }
    
    img, table, figure {
        page-break-inside: avoid;
    }
    
    p, blockquote {
        orphans: 3;
        widows: 3;
    }
    
    /* Ensure images print */
    img {
        max-width: 100% !important;
    }
    
    /* Print header */
    @page {
        margin: 2cm;
    }
    
    /* First page */
    @page :first {
        margin-top: 3cm;
    }
    
    /* Container width */
    .container {
        max-width: 100% !important;
        width: 100% !important;
        padding: 0 !important;
    }
    
    /* Hero section simplification */
    .hero-section,
    .page-hero {
        padding: 1rem 0 !important;
        min-height: auto !important;
    }
    
    .hero-slide {
        min-height: auto !important;
        background: none !important;
    }
    
    .hero-overlay {
        display: none !important;
    }
    
    .hero-title,
    .page-title {
        color: black !important;
        font-size: 24pt !important;
    }
    
    /* Service cards */
    .service-card {
        border: 1px solid #ccc !important;
        padding: 10pt !important;
        margin-bottom: 10pt !important;
        page-break-inside: avoid;
    }
    
    /* FAQ section */
    .accordion-collapse {
        display: block !important;
        height: auto !important;
    }
    
    .accordion-button::after {
        display: none !important;
    }
    
    /* Tables */
    table {
        border-collapse: collapse !important;
    }
    
    th, td {
        border: 1px solid #ccc !important;
        padding: 5pt !important;
    }
    
    /* Footer info for print */
    body::after {
        content: "Printed from ifselevate.com - © " attr(data-year) " IFS Elevate";
        display: block;
        text-align: center;
        font-size: 10pt;
        margin-top: 2cm;
        border-top: 1px solid #ccc;
        padding-top: 10pt;
    }
}
