/* ==========================================================================
   Print Stylesheet for USSM LLC
   ========================================================================== */

@media print {
    /* Reset colors for printing */
    * {
        background: transparent !important;
        color: #000 !important;
        box-shadow: none !important;
        text-shadow: none !important;
    }

    /* Hide non-essential elements */
    .header,
    .footer,
    .mobile-nav,
    .mobile-toggle,
    .mobile-overlay,
    .skip-link,
    .cta-section,
    .hero__scroll,
    .hero__stats,
    nav[aria-label="Main navigation"],
    .btn:not(.btn--print) {
        display: none !important;
    }

    /* Page setup */
    @page {
        margin: 2cm;
        size: letter;
    }

    /* Body styles */
    body {
        font-size: 12pt;
        line-height: 1.5;
        font-family: Georgia, "Times New Roman", serif;
    }

    /* Main content adjustments */
    main {
        padding-top: 0 !important;
    }

    /* Headings */
    h1, h2, h3, h4, h5, h6 {
        page-break-after: avoid;
        page-break-inside: avoid;
        font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    }

    h1 {
        font-size: 24pt;
        margin-bottom: 12pt;
    }

    h2 {
        font-size: 18pt;
        margin-bottom: 10pt;
    }

    h3 {
        font-size: 14pt;
        margin-bottom: 8pt;
    }

    /* Paragraphs and text */
    p {
        orphans: 3;
        widows: 3;
    }

    /* Links */
    a {
        text-decoration: underline;
    }

    /* Show URL after links */
    a[href^="http"]:after,
    a[href^="mailto"]:after {
        content: " (" attr(href) ")";
        font-size: 9pt;
        font-weight: normal;
    }

    /* Don't show URL for internal links */
    a[href^="/"]:after,
    a[href^="#"]:after {
        content: "";
    }

    /* Images */
    img {
        max-width: 100% !important;
        page-break-inside: avoid;
    }

    /* Tables */
    table {
        border-collapse: collapse;
        width: 100%;
    }

    th, td {
        border: 1px solid #000;
        padding: 8pt;
        text-align: left;
    }

    th {
        font-weight: bold;
        background: #f0f0f0 !important;
    }

    /* Sections */
    .section {
        padding: 20pt 0;
        page-break-inside: avoid;
    }

    /* Hero section */
    .hero {
        min-height: auto !important;
        padding: 20pt 0 !important;
    }

    .hero__title {
        font-size: 28pt;
    }

    .hero__subtitle,
    .hero__description {
        font-size: 12pt;
    }

    /* Cards */
    .capability-card,
    .product-card,
    .industry-card {
        page-break-inside: avoid;
        border: 1px solid #ccc;
        margin-bottom: 12pt;
        padding: 12pt;
    }

    /* Container */
    .container {
        max-width: 100%;
        padding: 0;
    }

    /* Forms - hide interactive elements */
    form {
        display: none !important;
    }

    /* Show company info prominently */
    .footer__contact-item {
        display: block !important;
        margin-bottom: 8pt;
    }

    /* Grid layouts - stack vertically */
    .capabilities__grid,
    .industries__grid,
    .product-catalog,
    .why-choose__layout,
    .service-layout,
    .footer__grid {
        display: block !important;
    }

    /* Ensure content is readable */
    .section--dark {
        background: #f5f5f5 !important;
    }

    /* Add print-specific header */
    body::before {
        content: "USSM LLC - Custom Injection Molding Specialists | (937) 894-8776 | info@ussmllc.com";
        display: block;
        text-align: center;
        font-size: 10pt;
        padding-bottom: 12pt;
        border-bottom: 1px solid #000;
        margin-bottom: 12pt;
    }

    /* Add print date */
    body::after {
        content: "Printed on: " attr(data-print-date);
        display: block;
        text-align: center;
        font-size: 9pt;
        padding-top: 12pt;
        border-top: 1px solid #ccc;
        margin-top: 12pt;
    }
}
