/* Print Styles for HandyGo Website */

@media print {
    /* Reset and Base */
    * {
        background: transparent !important;
        color: black !important;
        box-shadow: none !important;
        text-shadow: none !important;
    }
    
    body {
        font-family: 'Cairo', Arial, sans-serif;
        font-size: 12pt;
        line-height: 1.4;
        margin: 0;
        padding: 0;
    }
    
    /* Hide unnecessary elements */
    .header,
    .nav-toggle,
    .hero-background,
    .whatsapp-float,
    .btn,
    .hero-buttons,
    .cta-buttons,
    .footer,
    nav,
    .nav-menu {
        display: none !important;
    }
    
    /* Page breaks */
    .hero,
    .about,
    .services,
    .why-us,
    .contact {
        page-break-inside: avoid;
        margin-bottom: 2cm;
    }
    
    /* Headers */
    h1, h2, h3, h4, h5, h6 {
        page-break-after: avoid;
        font-weight: bold;
        margin-top: 1cm;
        margin-bottom: 0.5cm;
    }
    
    h1 {
        font-size: 24pt;
        text-align: center;
        border-bottom: 2pt solid black;
        padding-bottom: 0.5cm;
    }
    
    h2 {
        font-size: 18pt;
        color: black;
    }
    
    h3 {
        font-size: 14pt;
    }
    
    /* Paragraphs */
    p {
        margin-bottom: 0.5cm;
        orphans: 3;
        widows: 3;
    }
    
    /* Links */
    a {
        text-decoration: underline;
        color: black;
    }
    
    a[href^="tel:"]:after {
        content: " (" attr(href) ")";
        font-size: 10pt;
        color: #666;
    }
    
    a[href^="mailto:"]:after {
        content: " (" attr(href) ")";
        font-size: 10pt;
        color: #666;
    }
    
    /* Hero Section */
    .hero {
        text-align: center;
        margin-bottom: 2cm;
    }
    
    .hero-title {
        font-size: 28pt;
        margin-bottom: 1cm;
    }
    
    .brand-highlight {
        font-weight: bold;
    }
    
    .hero-subtitle {
        font-size: 16pt;
        margin-bottom: 0.5cm;
    }
    
    .hero-description {
        font-size: 12pt;
        margin-bottom: 1cm;
    }
    
    /* Services Grid */
    .services-grid {
        display: block;
    }
    
    .service-card {
        display: block;
        margin-bottom: 1cm;
        padding: 0.5cm;
        border: 1pt solid black;
        page-break-inside: avoid;
    }
    
    .service-title {
        font-weight: bold;
        font-size: 14pt;
        margin-bottom: 0.3cm;
    }
    
    .service-description {
        font-size: 11pt;
    }
    
    /* Contact Information */
    .contact-info {
        margin-bottom: 1cm;
    }
    
    .contact-item {
        margin-bottom: 0.5cm;
        padding: 0.3cm;
        border: 1pt solid #ccc;
    }
    
    .contact-details h4 {
        font-weight: bold;
        margin-bottom: 0.2cm;
    }
    
    .phone-numbers a {
        display: block;
        margin-bottom: 0.1cm;
    }
    
    /* About Features */
    .about-features {
        display: block;
    }
    
    .feature-item {
        margin-bottom: 1cm;
        padding: 0.5cm;
        border: 1pt solid #ccc;
        page-break-inside: avoid;
    }
    
    .feature-text h4 {
        font-weight: bold;
        margin-bottom: 0.3cm;
    }
    
    /* Why Us */
    .why-us-grid {
        display: block;
    }
    
    .why-us-item {
        margin-bottom: 0.8cm;
        padding: 0.4cm;
        border: 1pt solid #ccc;
        page-break-inside: avoid;
    }
    
    .why-us-item h3 {
        font-weight: bold;
        margin-bottom: 0.3cm;
    }
    
    /* Images */
    img {
        max-width: 100% !important;
        height: auto !important;
    }
    
    .logo {
        max-height: 3cm;
        display: block;
        margin: 0 auto 1cm;
    }
    
    /* Icons - replace with text */
    .service-icon i:before,
    .contact-icon i:before,
    .why-us-icon i:before,
    .feature-item i:before {
        content: "• ";
        font-weight: bold;
    }
    
    /* Footer replacement */
    .print-footer {
        position: fixed;
        bottom: 1cm;
        left: 0;
        right: 0;
        text-align: center;
        font-size: 10pt;
        border-top: 1pt solid black;
        padding-top: 0.3cm;
    }
    
    /* Page numbering */
    @page {
        margin: 2cm;
        
        @bottom-right {
            content: "صفحة " counter(page) " من " counter(pages);
            font-size: 10pt;
        }
        
        @top-center {
            content: "HandyGo - أقرب صنايعي ليك";
            font-size: 12pt;
            font-weight: bold;
        }
    }
    
    /* First page */
    @page :first {
        @top-center {
            content: "";
        }
    }
    
    /* Avoid breaking inside these elements */
    .section-header,
    .contact-item,
    .service-card,
    .feature-item,
    .why-us-item {
        page-break-inside: avoid;
    }
    
    /* Force page breaks before major sections */
    .services,
    .contact {
        page-break-before: always;
    }
}