/* ============================================
   PRINT STYLESHEET - TNS Answering Service
   Makes pages look good when printed
   ============================================ */

@media print {
    /* Reset colors for printing */
    * {
        background: white !important;
        color: black !important;
        box-shadow: none !important;
        text-shadow: none !important;
    }

    /* Hide non-essential elements */
    .navbar,
    .nav-toggle,
    .skip-link,
    .hero-bg-fullwidth,
    .hero-overlay,
    .world-map-pattern,
    .btn,
    .footer-brand .nav-logo svg,
    .testimonials-section,
    .promo-banner,
    .flexible-solutions-section::before,
    .flexible-solutions-section::after,
    .flexible-card::before,
    .flexible-card::after,
    .flexible-card-icon::before,
    .phone-mockup::before,
    .map-container,
    .form-section,
    .quote-form,
    iframe {
        display: none !important;
    }

    /* Ensure content is visible */
    body {
        font-size: 12pt;
        line-height: 1.5;
        opacity: 1 !important;
    }

    /* Remove fixed positioning */
    .navbar {
        position: static;
    }

    /* Hero adjustments */
    .hero {
        min-height: auto !important;
        padding: 1rem 0 !important;
        background: none !important;
    }

    .hero h1 {
        font-size: 24pt;
        margin-bottom: 0.5rem;
    }

    .hero p {
        font-size: 12pt;
    }

    /* Section padding */
    .section {
        padding: 1rem 0 !important;
        page-break-inside: avoid;
    }

    /* Headers */
    h1, h2, h3, h4, h5, h6 {
        page-break-after: avoid;
        page-break-inside: avoid;
    }

    h1 { font-size: 22pt; }
    h2 { font-size: 18pt; }
    h3 { font-size: 14pt; }
    h4 { font-size: 12pt; }

    /* Paragraphs */
    p {
        orphans: 3;
        widows: 3;
    }

    /* Links - show URL after link text */
    a[href^="http"]::after,
    a[href^="mailto"]::after,
    a[href^="tel"]::after {
        content: " (" attr(href) ")";
        font-size: 10pt;
        font-weight: normal;
    }

    /* Don't show URL for internal navigation */
    .nav-link::after,
    .footer-links a::after,
    .btn::after {
        content: none !important;
    }

    /* Images */
    img {
        max-width: 100% !important;
        page-break-inside: avoid;
    }

    /* Cards and grids - single column for print */
    .services-grid,
    .features-grid,
    .industries-grid,
    .flexible-grid,
    .promo-grid,
    .footer-grid,
    .stats-grid {
        display: block !important;
    }

    .service-card,
    .feature-item,
    .industry-item,
    .flexible-card,
    .stat-item {
        page-break-inside: avoid;
        margin-bottom: 1rem;
        border: 1px solid #ddd;
        padding: 1rem;
    }

    /* Footer - show contact info clearly */
    .footer {
        padding: 1rem 0 !important;
        border-top: 2px solid black;
    }

    .footer h4 {
        font-size: 12pt;
        margin-bottom: 0.5rem;
    }

    .footer-contact-item {
        margin-bottom: 0.5rem;
    }

    .footer-contact-item svg {
        display: none;
    }

    .footer-bottom {
        border-top: 1px solid #ccc;
        padding-top: 0.5rem;
        margin-top: 0.5rem;
    }

    /* Legal pages - optimize for reading */
    .legal-content {
        max-width: 100%;
    }

    .legal-content h2 {
        margin-top: 1.5rem;
    }

    /* Service detail pages */
    .service-detail-grid {
        display: block !important;
    }

    .service-detail-sidebar {
        position: static;
        margin-top: 1rem;
        border-top: 1px solid #ddd;
        padding-top: 1rem;
    }

    /* Chamber of Commerce badge */
    .footer-brand img[alt*="Chamber"] {
        max-width: 150px;
    }

    /* Page breaks */
    .section-dark,
    .section-light {
        page-break-before: auto;
    }

    /* Ensure gold text (brand color) prints as dark */
    .text-gold,
    .accent-gold,
    [style*="gold"] {
        color: #333 !important;
    }

    /* Table of contents style for legal pages */
    .legal-content ul {
        margin-left: 1rem;
    }

    .legal-content li {
        margin-bottom: 0.25rem;
    }
}

/* Specific page size adjustments */
@page {
    margin: 2cm;
    size: letter;
}

@page :first {
    margin-top: 1cm;
}
