/**
 * Print Stylesheet for SAGE STRATEGIES
 * Optimized for printing web pages
 */

@media print {
    /* Reset margins and padding */
    * {
        margin: 0;
        padding: 0;
        box-sizing: border-box;
    }
    
    /* Hide non-essential elements */
    .navbar,
    .footer,
    .btn,
    .social-icons,
    .newsletter-form,
    .admin-nav,
    .no-print {
        display: none !important;
    }
    
    /* Page setup */
    @page {
        margin: 2cm;
        size: A4;
    }
    
    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;
        margin-top: 1em;
        margin-bottom: 0.5em;
    }
    
    h1 {
        font-size: 24pt;
        border-bottom: 2px solid #1a5f3f;
        padding-bottom: 0.5em;
    }
    
    h2 {
        font-size: 18pt;
        border-bottom: 1px solid #ccc;
        padding-bottom: 0.3em;
    }
    
    h3 {
        font-size: 14pt;
    }
    
    /* Links */
    a {
        color: #000;
        text-decoration: underline;
    }
    
    a[href^="http"]:after {
        content: " (" attr(href) ")";
        font-size: 10pt;
        color: #666;
    }
    
    /* Images */
    img {
        max-width: 100% !important;
        height: auto !important;
        page-break-inside: avoid;
    }
    
    /* Avoid breaking inside elements */
    p, li, blockquote {
        orphans: 3;
        widows: 3;
    }
    
    /* Lists */
    ul, ol {
        margin-left: 1.5em;
    }
    
    /* Tables */
    table {
        border-collapse: collapse;
        width: 100%;
        page-break-inside: avoid;
    }
    
    th, td {
        border: 1px solid #ccc;
        padding: 0.5em;
    }
    
    th {
        background-color: #f0f0f0;
        font-weight: bold;
    }
    
    /* Cards and sections */
    .card,
    .content-section,
    section {
        page-break-inside: avoid;
        margin-bottom: 1em;
        border: 1px solid #ddd;
        padding: 1em;
    }
    
    /* Hero sections */
    .hero-section,
    .page-hero {
        background: #fff !important;
        color: #000 !important;
        padding: 1em 0 !important;
        border-bottom: 2px solid #1a5f3f;
    }
    
    /* Contact information */
    .contact-info {
        border-top: 2px solid #1a5f3f;
        margin-top: 2em;
        padding-top: 1em;
    }
    
    /* Page breaks */
    .page-break {
        page-break-before: always;
    }
    
    .no-break {
        page-break-inside: avoid;
    }
    
    /* Logo */
    .navbar-brand img,
    .footer-logo {
        max-width: 150px;
        height: auto;
    }
    
    /* Colors - convert to grayscale-friendly */
    .text-primary,
    .btn-primary-custom {
        color: #000 !important;
        background: transparent !important;
        border: 1px solid #000 !important;
    }
    
    /* Hide decorative elements */
    .bg-light,
    .bg-gradient {
        background: #fff !important;
    }
    
    /* Statistics */
    .stat-card {
        border: 1px solid #ddd;
        padding: 1em;
        margin-bottom: 1em;
    }
    
    /* Footer information */
    footer {
        border-top: 2px solid #1a5f3f;
        margin-top: 2em;
        padding-top: 1em;
        font-size: 10pt;
    }
    
    /* Print header/footer */
    @page {
        @top-center {
            content: "SAGE STRATEGIES";
            font-size: 10pt;
            color: #666;
        }
        
        @bottom-right {
            content: "Page " counter(page) " of " counter(pages);
            font-size: 10pt;
            color: #666;
        }
    }
    
    /* Avoid breaking between sections */
    section {
        page-break-before: auto;
    }
    
    /* Service cards */
    .service-card {
        border: 1px solid #ddd;
        margin-bottom: 1em;
        padding: 1em;
        page-break-inside: avoid;
    }
    
    /* Team member cards */
    .team-card {
        border: 1px solid #ddd;
        margin-bottom: 1em;
        padding: 1em;
        page-break-inside: avoid;
    }
}

