/* AssistedWay Print Styles - Makes any page look gorgeous when printed to PDF */
@media print {
    /* Hide navigation and non-essential elements */
    .header .back-link,
    .download-btn,
    nav,
    footer,
    .cta-btn,
    button {
        display: none !important;
    }
    
    /* Page setup */
    @page {
        size: A4;
        margin: 20mm 15mm 15mm 15mm;
        color: #000;
        background: white;
    }
    
    * {
        -webkit-print-color-adjust: exact !important;
        color-adjust: exact !important;
        print-color-adjust: exact !important;
    }
    
    body {
        font-family: 'Source Sans 3', -apple-system, BlinkMacSystemFont, sans-serif !important;
        font-size: 11pt !important;
        line-height: 1.4 !important;
        color: #1a1a1a !important;
        background: white !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    
    /* Create beautiful header for PDFs */
    .header {
        background: linear-gradient(135deg, #0a1f3d 0%, #1a3258 100%) !important;
        color: white !important;
        padding: 25mm 15mm 15mm 15mm !important;
        margin: -20mm -15mm 15mm -15mm !important;
        position: relative !important;
        page-break-inside: avoid !important;
    }
    
    .header::before {
        content: url("/logo-horizontal.png") !important;
        position: absolute !important;
        top: 6mm !important;
        left: 15mm !important;
        width: 25mm !important;
        height: 10mm !important;
        object-fit: contain !important;
    }
    
    .header::after {
        display: none !important;
    }
    
    .header h1 {
        font-family: 'Playfair Display', serif !important;
        font-size: 24pt !important;
        font-weight: 600 !important;
        color: white !important;
        margin: 0 !important;
        padding-top: 8mm !important;
        line-height: 1.2 !important;
    }
    
    .header p {
        font-size: 10pt !important;
        color: rgba(255,255,255,0.9) !important;
        margin: 3mm 0 0 0 !important;
        font-weight: 300 !important;
    }
    
    /* Content styling */
    .content,
    main {
        padding: 0 !important;
        margin: 0 !important;
    }
    
    h2 {
        font-family: 'Playfair Display', serif !important;
        font-size: 16pt !important;
        font-weight: 600 !important;
        color: #0a1f3d !important;
        margin: 12mm 0 4mm 0 !important;
        padding-left: 5mm !important;
        border-left: 2mm solid #c49a3c !important;
        page-break-after: avoid !important;
    }
    
    h3 {
        font-family: 'Playfair Display', serif !important;
        font-size: 13pt !important;
        font-weight: 500 !important;
        color: #0a1f3d !important;
        margin: 8mm 0 3mm 0 !important;
        page-break-after: avoid !important;
    }
    
    h4 {
        font-size: 11pt !important;
        font-weight: 600 !important;
        color: #1a1a1a !important;
        margin: 5mm 0 2mm 0 !important;
    }
    
    p {
        margin: 0 0 4mm 0 !important;
        text-align: justify !important;
        font-size: 10pt !important;
        line-height: 1.5 !important;
    }
    
    ul, ol {
        margin: 3mm 0 5mm 5mm !important;
        padding-left: 0 !important;
    }
    
    li {
        margin-bottom: 1.5mm !important;
        font-size: 10pt !important;
        line-height: 1.4 !important;
    }
    
    /* Special boxes and highlights */
    .warning-box,
    .highlight-box,
    .checklist,
    .key-point,
    .tip {
        background: #faf8f4 !important;
        border: 1pt solid rgba(196, 154, 60, 0.3) !important;
        border-left: 2mm solid #c49a3c !important;
        padding: 4mm !important;
        margin: 5mm 0 !important;
        border-radius: 2mm !important;
        page-break-inside: avoid !important;
    }
    
    .warning-box {
        border-left-color: #ea6868 !important;
        background: #fff8f0 !important;
    }
    
    .checklist {
        border-left-color: #5a7247 !important;
        background: #f8faf7 !important;
    }
    
    /* Remove emojis in print */
    .warning-box h3::before,
    .checklist h3::before {
        content: "" !important;
    }
    
    /* Footer for each page */
    .header ~ * {
        position: relative;
    }
    
    body::after {
        content: "AssistedWay • Port St. Lucie, FL • (772) 555-1234 • assistedway.com";
        position: fixed;
        bottom: 8mm;
        left: 15mm;
        right: 15mm;
        font-size: 8pt;
        color: #666666;
        text-align: center;
        border-top: 0.5pt solid #e5e5e5;
        padding-top: 2mm;
    }
    
    /* Page breaks */
    .section {
        page-break-inside: avoid;
        margin-bottom: 8mm !important;
    }
    
    /* Strong text styling */
    strong {
        font-weight: 600 !important;
        color: #0a1f3d !important;
    }
    
    /* Clean up any remaining UI elements */
    .fade-up,
    .download-btn,
    .cta-btn,
    nav,
    .back-link,
    button {
        display: none !important;
    }
}