/* Print Styles for Building Construction Website - SEO Optimized */
/* أنماط الطباعة لموقع تشييد المباني - محسن لـ SEO */

@media print {
    /* Reset and base styles */
    * {
        background: transparent !important;
        color: black !important;
        box-shadow: none !important;
        text-shadow: none !important;
    }
    
    /* Page setup */
    @page {
        margin: 2cm;
        size: A4;
    }
    
    /* Typography for better readability */
    body {
        font-family: "Times New Roman", serif;
        font-size: 12pt;
        line-height: 1.4;
        color: #000;
        background: #fff;
    }
    
    /* Headers */
    h1, h2, h3, h4, h5, h6 {
        color: #000;
        page-break-after: avoid;
        font-weight: bold;
    }
    
    h1 { font-size: 18pt; }
    h2 { font-size: 16pt; }
    h3 { font-size: 14pt; }
    h4, h5, h6 { font-size: 12pt; }
    
    /* Paragraphs and Text */
    p {
        orphans: 3;
        widows: 3;
        margin-bottom: 12pt;
    }
    
    /* Links */
    a {
        color: #000;
        text-decoration: underline;
    }
    
    a[href]:after {
        content: " (" attr(href) ")";
        font-size: 10pt;
        color: #666;
    }
    
    a[href^="#"]:after,
    a[href^="javascript:"]:after,
    a[href^="mailto:"]:after,
    a[href^="tel:"]:after {
        content: "";
    }
    
    /* Images */
    img {
        max-width: 100% !important;
        height: auto !important;
        page-break-inside: avoid;
    }
    
    /* Logo */
    .logo img {
        max-height: 60px;
        width: auto;
    }
    
    /* Tables */
    table {
        border-collapse: collapse;
        width: 100%;
        margin-bottom: 12pt;
    }
    
    th, td {
        border: 1px solid #000;
        padding: 6pt;
        text-align: left;
    }
    
    th {
        background: #f0f0f0 !important;
        font-weight: bold;
    }
    
    /* Lists */
    ul, ol {
        margin-bottom: 12pt;
    }
    
    li {
        margin-bottom: 3pt;
    }
    
    /* Hide Elements */
    .no-print,
    .btn,
    button,
    input[type="submit"],
    input[type="button"],
    .navbar,
    .navigation,
    .sidebar,
    .footer-social,
    .whatsapp-float,
    .scroll-top,
    .modal,
    .dropdown-menu,
    .tooltip,
    .popover,
    .alert,
    .breadcrumb,
    .pagination,
    .carousel-control,
    .carousel-indicators,
    video,
    iframe,
    .embed-responsive,
    .hidden-print {
        display: none !important;
    }
    
    /* Show Print-Only Elements */
    .print-only {
        display: block !important;
    }
    
    /* Header Adjustments */
    .header {
        border-bottom: 2px solid #000;
        padding-bottom: 12pt;
        margin-bottom: 24pt;
    }
    
    /* Footer Adjustments */
    .footer {
        border-top: 1px solid #000;
        padding-top: 12pt;
        margin-top: 24pt;
        font-size: 10pt;
    }
    
    /* Contact Information */
    .contact-info {
        font-size: 11pt;
        margin-bottom: 12pt;
    }
    
    /* Services and Projects */
    .service-item,
    .project-item {
        page-break-inside: avoid;
        margin-bottom: 18pt;
        border: 1px solid #ccc;
        padding: 12pt;
    }
    
    /* Company Information */
    .company-info {
        background: #f9f9f9 !important;
        border: 1px solid #000;
        padding: 12pt;
        margin: 12pt 0;
    }
    
    /* Page Breaks */
    .page-break {
        page-break-before: always;
    }
    
    .page-break-after {
        page-break-after: always;
    }
    
    .no-page-break {
        page-break-inside: avoid;
    }
    
    /* Print Header */
    .print-header {
        display: block !important;
        text-align: center;
        margin-bottom: 24pt;
        border-bottom: 2px solid #000;
        padding-bottom: 12pt;
    }
    
    .print-header h1 {
        font-size: 20pt;
        margin-bottom: 6pt;
    }
    
    .print-header p {
        font-size: 11pt;
        margin-bottom: 3pt;
    }
    
    /* Print Footer */
    .print-footer {
        display: block !important;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        text-align: center;
        font-size: 10pt;
        border-top: 1px solid #000;
        padding-top: 6pt;
        background: #fff;
    }
    
    /* Arabic Text Support */
    .arabic-text {
        direction: rtl;
        text-align: right;
        font-family: "Traditional Arabic", "Arial Unicode MS", serif;
    }
    
    /* English Text Support */
    .english-text {
        direction: ltr;
        text-align: left;
        font-family: "Times New Roman", serif;
    }
    
    /* Utility Classes */
    .text-center { text-align: center !important; }
    .text-right { text-align: right !important; }
    .text-left { text-align: left !important; }
    .font-bold { font-weight: bold !important; }
    .font-italic { font-style: italic !important; }
    .underline { text-decoration: underline !important; }
    
    /* Responsive Print Layout */
    .container {
        width: 100% !important;
        max-width: none !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    
    .row {
        margin: 0 !important;
    }
    
    .col-md-6,
    .col-lg-4,
    .col-lg-6,
    .col-lg-8,
    .col-lg-12 {
        width: 100% !important;
        float: none !important;
        margin: 0 !important;
        padding: 0 !important;
    }
}

/* Print Button Styles (visible on screen) */
@media screen {
    .print-btn {
        background: #B48A34;
        color: white;
        border: none;
        padding: 10px 20px;
        border-radius: 5px;
        cursor: pointer;
        font-size: 14px;
        margin: 10px 0;
        transition: background-color 0.3s;
    }
    
    .print-btn:hover {
        background: #9a7429;
    }
    
    .print-only {
        display: none;
    }
}