/* ==========================================================================
   CSS Variables
   ========================================================================== */
   :root {
    --primary-color: #2cb1bc;
    --primary-dark: #228b93;
    --dark-color: #0f2a43;
    --light-bg: #f8fafc;
    --white: #ffffff;
    --text-color: #334155;
    --text-muted: #64748b;
    --border-color: #e2e8f0;
    
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    
    --transition-fast: 0.2s ease;
    --border-radius: 8px;
    --box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --box-shadow-hover: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* ==========================================================================
   Reset & Base Styles
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-family);
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--white);
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--dark-color);
    line-height: 1.2;
    margin-bottom: 1rem;
    font-weight: 700;
}

p {
    margin-bottom: 1rem;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--primary-dark);
}

ul {
    list-style: none;
}

/* ==========================================================================
   Layout Utilities
   ========================================================================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

section {
    padding: 80px 0;
}

.bg-light {
    background-color: var(--light-bg);
}

.text-center {
    text-align: center;
}

.section-title {
    text-align: center;
    font-size: 2.25rem;
    margin-bottom: 10px;
}

.section-subtitle {
    text-align: center;
    color: var(--text-muted);
    font-size: 1.125rem;
    margin-bottom: 40px;
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: var(--border-radius);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    text-align: center;
    border: 2px solid transparent;
    transition: all var(--transition-fast);
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    color: var(--white);
}

.btn-dark {
    background-color: var(--dark-color);
    color: var(--white);
}

.btn-dark:hover {
    background-color: #1a3a5a;
    color: var(--white);
}

.btn-outline {
    background-color: transparent;
    border-color: var(--border-color);
    color: var(--text-color);
}

.btn-outline:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.875rem;
}

.btn-lg {
    padding: 16px 32px;
    font-size: 1.125rem;
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.main-header {
    background-color: var(--white);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo a {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark-color);
}

.main-nav ul {
    display: flex;
    gap: 30px;
}

.main-nav a {
    color: var(--text-color);
    font-weight: 500;
}

.main-nav a:hover {
    color: var(--primary-color);
}

.language-switch select {
    padding: 6px 12px;
    border-radius: 4px;
    border: 1px solid var(--border-color);
    background-color: var(--white);
    font-family: var(--font-family);
    cursor: pointer;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
    background-color: var(--light-bg);
    padding: 100px 0;
    text-align: center;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 800px;
    margin: 0 auto 40px;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
}

/* ==========================================================================
   Cards & Grids
   ========================================================================== */
.grid {
    display: grid;
    gap: 30px;
}

.cards-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.category-group {
    margin-bottom: 60px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.category-group:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.category-title {
    font-size: 1.75rem;
    color: var(--primary-dark);
    margin-bottom: 25px;
    padding-left: 10px;
    border-left: 4px solid var(--primary-color);
}

.features-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    margin-top: 40px;
}

.card, .feature-card {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 24px;
    border: 1px solid var(--border-color);
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
    display: flex;
    flex-direction: column;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--box-shadow-hover);
}

.card-image-placeholder {
    width: 100%;
    height: 180px;
    background-color: var(--light-bg);
    border: 2px dashed var(--border-color);
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    margin-bottom: 20px;
    font-weight: 500;
}

.card h3 {
    font-size: 1.25rem;
    margin-bottom: 10px;
}

.card p {
    color: var(--text-muted);
    margin-bottom: 20px;
    flex-grow: 1;
}

.card-actions {
    display: flex;
    gap: 10px;
    margin-top: auto;
    flex-wrap: wrap;
}

/* ==========================================================================
   Informational Section
   ========================================================================== */
.info-block {
    margin-bottom: 50px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.info-block:last-child {
    margin-bottom: 0;
}

.info-block h2, .info-block h3 {
    margin-bottom: 15px;
}

.info-block h3 {
    margin-top: 25px;
    font-size: 1.5rem;
    color: var(--primary-dark);
}

.info-block p {
    font-size: 1.05rem;
}

.info-block ul, .info-block ol {
    padding-left: 20px;
    margin-top: 10px;
    margin-bottom: 20px;
}

.info-block ul li, .info-block ol li {
    margin-bottom: 10px;
}

.os-steps h4 {
    margin-top: 20px;
    font-size: 1.15rem;
    color: var(--dark-color);
}

/* ==========================================================================
   Troubleshooting & Diagnostic Table
   ========================================================================== */
.diagnostic-table-wrapper {
    overflow-x: auto;
    margin-top: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.diagnostic-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--white);
    text-align: left;
}

.diagnostic-table th, .diagnostic-table td {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-color);
}

.diagnostic-table th {
    background-color: var(--dark-color);
    color: var(--white);
    font-weight: 600;
}

.diagnostic-table tbody tr:hover {
    background-color: var(--light-bg);
}

/* ==========================================================================
   Brands Section
   ========================================================================== */
.brand-logos {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 40px;
    margin-top: 40px;
}

.brand-logo-placeholder {
    width: 160px;
    height: 80px;
    background-color: var(--white);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: var(--text-muted);
}

/* ==========================================================================
   FAQ Section
   ========================================================================== */
.accordion {
    max-width: 800px;
    margin: 0 auto;
}

.accordion-item {
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    margin-bottom: 15px;
    overflow: hidden;
}

.accordion-header {
    width: 100%;
    text-align: left;
    padding: 20px;
    background-color: var(--white);
    border: none;
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--dark-color);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: var(--font-family);
}

.accordion-header::after {
    content: '+';
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--primary-color);
    transition: transform var(--transition-fast);
}

.accordion-header.active::after {
    content: '-';
    transform: rotate(180deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, padding 0.3s ease-out;
    background-color: var(--white);
    padding: 0 20px;
}

.accordion-header.active + .accordion-content {
    padding: 0 20px 20px;
}

/* ==========================================================================
   CTA Section
   ========================================================================== */
.cta {
    background-color: var(--dark-color);
    color: var(--white);
    padding: 100px 0;
}

.cta h2 {
    color: var(--white);
    font-size: 2.5rem;
}

.cta p {
    font-size: 1.25rem;
    opacity: 0.9;
    margin-bottom: 30px;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.main-footer {
    background-color: var(--white);
    border-top: 1px solid var(--border-color);
    padding: 60px 0 20px;
}

.footer-container {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    justify-content: space-between;
    margin-bottom: 40px;
}

.footer-col {
    flex: 1;
    min-width: 250px;
}

.footer-col h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.footer-col h4 {
    font-size: 1.125rem;
    margin-bottom: 20px;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul li a {
    color: var(--text-color);
}

.footer-col ul li a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
    color: var(--text-muted);
}

/* ==========================================================================
   Print Styles
   ========================================================================== */
#print-area {
    display: none;
}

@media print {
    body * {
        visibility: hidden;
    }
    
    #print-area {
        display: block;
        visibility: visible;
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
        margin: 0;
        padding: 0;
    }
    
    #print-area * {
        visibility: visible;
    }

    /* Test Page Content Styles within Print Area */
    .print-content {
        padding: 20px;
        text-align: center;
    }

    .print-title {
        font-size: 24pt;
        margin-bottom: 20px;
        font-weight: bold;
    }

    .print-blocks {
        display: flex;
        flex-direction: column;
        gap: 20px;
        margin-top: 30px;
    }
    
    .print-row {
        display: flex;
        height: 100px;
        width: 100%;
    }

    .color-block {
        flex: 1;
        border: 1px solid #000;
    }

    /* Basic color setup for printing */
    .c-cyan { background-color: cyan; }
    .c-magenta { background-color: magenta; }
    .c-yellow { background-color: yellow; }
    .c-black { background-color: black; }
    .c-gray { background-color: gray; }
    .c-red { background-color: red; }
    .c-green { background-color: green; }
    .c-blue { background-color: blue; }

    .bw-gradient {
        background: linear-gradient(to right, white, black);
        height: 50px;
        border: 1px solid #000;
        margin-top: 20px;
    }

    .color-gradient {
        background: linear-gradient(to right, red, orange, yellow, green, blue, indigo, violet);
        height: 50px;
        border: 1px solid #000;
        margin-top: 20px;
    }

    .text-sample {
        text-align: left;
        margin-top: 30px;
        font-family: serif;
    }

    .text-sample p {
        font-size: 10pt;
        line-height: 1.2;
    }
    .text-sample h4 {
        font-size: 12pt;
        margin-bottom: 5px;
    }
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        height: auto;
        padding: 20px;
        gap: 20px;
    }

    .main-nav ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .hero-buttons .btn {
        width: 100%;
        max-width: 300px;
    }

    .diagnostic-table th, .diagnostic-table td {
        padding: 12px 10px;
        font-size: 0.875rem;
    }
}

/* ==========================================================================
   Forms
   ========================================================================== */
.contact-form {
    background-color: var(--white);
    padding: 40px;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    box-shadow: var(--box-shadow);
    max-width: 600px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--dark-color);
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-family: var(--font-family);
    font-size: 1rem;
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(44, 177, 188, 0.2);
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

.form-error {
    color: #dc2626;
    font-size: 0.875rem;
    margin-top: 5px;
    display: none;
}

.form-control.invalid {
    border-color: #dc2626;
}

.form-success-message {
    display: none;
    background-color: #dcfce7;
    color: #166534;
    padding: 15px;
    border-radius: var(--border-radius);
    margin-bottom: 20px;
    border: 1px solid #bbf7d0;
}

/* ==========================================================================
   Visual Enhancements & Previews
   ========================================================================== */
.card-image-placeholder {
    width: 100%;
    height: 180px;
    background-color: var(--light-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    margin-bottom: 20px;
    font-weight: 500;
    overflow: hidden;
    position: relative;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.05);
}

/* Base Previews */
.preview-bw { background: linear-gradient(135deg, #f1f5f9 0%, #94a3b8 50%, #1e293b 100%); }
.preview-all-black { background-color: #000; }
.preview-grayscale { background: linear-gradient(to right, #fff, #000); }
.preview-text { 
    background-image: repeating-linear-gradient(transparent, transparent 18px, #cbd5e1 19px, #cbd5e1 20px); 
    background-color: white; 
}
.preview-monochrome { 
    background-image: linear-gradient(45deg, #000 25%, transparent 25%, transparent 75%, #000 75%, #000), linear-gradient(45deg, #000 25%, transparent 25%, transparent 75%, #000 75%, #000); 
    background-size: 20px 20px; 
    background-position: 0 0, 10px 10px; 
}

/* Color Previews */
.preview-cmyk { background: conic-gradient(cyan 0deg 90deg, magenta 90deg 180deg, yellow 180deg 270deg, black 270deg 360deg); }
.preview-rgb { background: conic-gradient(red 0deg 120deg, green 120deg 240deg, blue 240deg 360deg); }
.preview-rainbow { background: linear-gradient(to right, red, orange, yellow, green, blue, indigo, violet); }
.preview-cyan { background-color: cyan; }
.preview-magenta { background-color: magenta; }
.preview-yellow { background-color: yellow; }
.preview-red { background-color: red; }
.preview-green { background-color: green; }
.preview-blue { background-color: blue; }

/* Photo Previews */
.preview-photo { background: radial-gradient(circle at center, #fbbf24 0%, #ef4444 50%, #3b82f6 100%); }
.preview-vibrant { background: linear-gradient(45deg, #ff00cc, #333399); }
.preview-gradient { background: linear-gradient(to bottom right, #4facfe 0%, #00f2fe 100%); }

/* Alignment Previews */
.preview-grid { 
    background-image: linear-gradient(#94a3b8 1px, transparent 1px), linear-gradient(90deg, #94a3b8 1px, transparent 1px); 
    background-size: 20px 20px; 
    background-color: white; 
}
.preview-lines { 
    background-image: repeating-linear-gradient(to bottom, #475569, #475569 2px, transparent 2px, transparent 10px); 
    background-color: white; 
}

/* Specialty Previews */
.preview-blank { background-color: white; }
.preview-dtf { background: linear-gradient(to bottom, rgba(255,255,255,0.8), rgba(255,255,255,0.2)), url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" opacity="0.1"><circle cx="50" cy="50" r="40" fill="%23000"/></svg>'); background-color: #3b82f6; }
.preview-document {
    background-color: white;
    box-shadow: inset 0 0 0 10px #f1f5f9;
}
.preview-document::after {
    content: ''; position: absolute; top: 30px; left: 30px; right: 30px; height: 10px; background: #cbd5e1; box-shadow: 0 20px 0 #cbd5e1, 0 40px 0 #cbd5e1, 0 60px 0 #cbd5e1;
}

/* Paper Sizes Previews */
.preview-paper { background-color: #fff; box-shadow: 0 4px 6px rgba(0,0,0,0.1); border: 1px solid #e2e8f0; }
.preview-a4 { width: 90px; height: 127px; }
.preview-a3 { width: 113px; height: 160px; }
.preview-a5 { width: 64px; height: 90px; }
.preview-letter { width: 98px; height: 126px; }
.preview-legal { width: 98px; height: 150px; }
.paper-wrapper { display: flex; align-items: center; justify-content: center; height: 100%; background-color: var(--light-bg); width: 100%; }

/* UI Utilities */
.icon-inline { vertical-align: middle; margin-right: 6px; }
.icon-lg { font-size: 2rem; color: var(--primary-color); margin-bottom: 15px; }
.hero-graphic {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    border-radius: var(--border-radius);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.brand-card {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark-color);
    box-shadow: var(--box-shadow);
    transition: transform var(--transition-fast);
}
.brand-card:hover { transform: translateY(-3px); box-shadow: var(--box-shadow-hover); }

.info-card {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 40px;
    margin-bottom: 30px;
    box-shadow: var(--box-shadow);
}
.info-card h2 { margin-top: 0; color: var(--primary-dark); display: flex; align-items: center; gap: 10px; }
.info-card p:last-child { margin-bottom: 0; }
