/* === ExportComplianceHub Main Stylesheet === */

/* Reset & Base */
body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; line-height: 1.8; color: #2d3748; background: #f7fafc; margin: 0; }

/* Header & Navigation */
header { background: #1a365d; color: white; padding: 1rem 2rem; box-shadow: 0 2px 4px rgba(0,0,0,0.1); }
nav { display: flex; justify-content: space-between; max-width: 1200px; margin: 0 auto; flex-wrap: wrap; align-items: center; }
.logo { font-weight: bold; font-size: 1.5rem; text-decoration: none; color: white; }
.nav-links { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.nav-links a { color: #cbd5e0; text-decoration: none; margin-left: 1.5rem; font-size: 0.95rem; white-space: nowrap; }
.nav-links a:hover { color: white; }

/* Layout */
.container { max-width: 1200px; margin: 2rem auto; padding: 0 1rem; display: flex; gap: 2rem; }
.main-content { flex: 3; min-width: 0; }
.sidebar { flex: 1; min-width: 250px; }

/* Article / Content Area */
.article-content { background: white; padding: 3rem; border-radius: 8px; box-shadow: 0 1px 3px rgba(0,0,0,0.05); }

/* Typography */
h1 { color: #1a365d; border-bottom: 3px solid #c05621; padding-bottom: 0.5rem; font-size: 2.2rem; line-height: 1.3; }
h2 { color: #1a365d; margin-top: 2.5rem; font-size: 1.6rem; border-left: 4px solid #c05621; padding-left: 0.8rem; }
h3 { color: #2c5282; margin-top: 1.5rem; font-size: 1.2rem; }
p { margin-bottom: 1.2rem; }

/* Lists */
ul, ol { padding-left: 1.5rem; margin-bottom: 1.2rem; }
li { margin-bottom: 0.8rem; }

/* Highlight & Warning Boxes */
.highlight-box { background: #fffaf0; border-left: 4px solid #c05621; padding: 1.5rem; margin: 2rem 0; border-radius: 0 4px 4px 0; }
.warning-box { background: #fff5f5; border-left: 4px solid #c53030; padding: 1.5rem; margin: 2rem 0; border-radius: 0 4px 4px 0; }
.info-box { background: #ebf8ff; border-left: 4px solid #3182ce; padding: 1.5rem; margin: 2rem 0; border-radius: 0 4px 4px 0; }

/* Meta Info */
.meta-info { color: #718096; font-size: 0.9rem; margin-bottom: 2rem; }

/* Article List (Homepage) */
.article-list { list-style: none; padding: 0; }
.article-list li { margin-bottom: 1.5rem; padding-bottom: 1.5rem; border-bottom: 1px solid #e2e8f0; }
.article-list li:last-child { border-bottom: none; }
.article-list a { color: #2c5282; text-decoration: none; font-weight: 600; font-size: 1.2rem; }
.article-list a:hover { color: #c05621; }

/* Sidebar Widgets */
.ad-placeholder { background: #edf2f7; border: 2px dashed #cbd5e0; padding: 2rem; text-align: center; color: #718096; border-radius: 8px; margin-bottom: 2rem; }
.widget { background: white; padding: 1.5rem; border-radius: 8px; box-shadow: 0 1px 3px rgba(0,0,0,0.05); margin-bottom: 2rem; }
.widget h3 { margin-top: 0; color: #1a365d; border-bottom: 2px solid #e2e8f0; padding-bottom: 0.5rem; }

/* Table of Contents */
.toc { background: #f7fafc; border: 1px solid #e2e8f0; padding: 1.5rem 2rem; margin: 1.5rem 0 2.5rem; border-radius: 8px; }
.toc h3 { margin-top: 0; color: #1a365d; }
.toc ol { margin-bottom: 0; padding-left: 1.2rem; }
.toc ol li { margin-bottom: 0.4rem; }
.toc a { color: #2c5282; text-decoration: none; }
.toc a:hover { color: #c05621; text-decoration: underline; }

/* FAQ Section */
.faq-section { margin-top: 3rem; }
.faq-item { margin-bottom: 1.5rem; padding-bottom: 1.5rem; border-bottom: 1px solid #e2e8f0; }
.faq-item:last-child { border-bottom: none; }
.faq-item h3 { color: #1a365d; margin-top: 0; font-size: 1.1rem; cursor: pointer; }
.faq-item h3::before { content: "Q: "; color: #c05621; font-weight: bold; }
.faq-item p { color: #4a5568; margin-top: 0.5rem; }

/* TL;DR / Key Takeaways */
.key-takeaways { background: #f0fff4; border: 1px solid #c6f6d5; border-left: 4px solid #38a169; padding: 1.5rem; margin: 2.5rem 0; border-radius: 0 4px 4px 0; }
.key-takeaways h3 { color: #276749; margin-top: 0; }

/* Author Card */
.author-card { background: #f7fafc; border: 1px solid #e2e8f0; padding: 1.5rem; margin: 2.5rem 0; border-radius: 8px; display: flex; gap: 1rem; align-items: center; }
.author-card img { width: 60px; height: 60px; border-radius: 50%; object-fit: cover; }
.author-info h4 { margin: 0 0 0.3rem; color: #1a365d; }
.author-info p { margin: 0; color: #718096; font-size: 0.9rem; }

/* Related Guides */
.related-guides { margin-top: 3rem; padding-top: 2rem; border-top: 2px solid #e2e8f0; }
.related-guides h3 { color: #1a365d; }
.related-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem; margin-top: 1rem; }
.related-card { background: #f7fafc; padding: 1rem 1.2rem; border-radius: 6px; border: 1px solid #e2e8f0; }
.related-card a { color: #2c5282; text-decoration: none; font-weight: 600; }
.related-card a:hover { color: #c05621; }
.related-card p { margin: 0.3rem 0 0; font-size: 0.85rem; color: #718096; }

/* Comparison Table */
.comparison-table { width: 100%; border-collapse: collapse; margin: 1.5rem 0; font-size: 0.95rem; }
.comparison-table th { background: #1a365d; color: white; padding: 0.8rem 1rem; text-align: left; }
.comparison-table td { padding: 0.8rem 1rem; border-bottom: 1px solid #e2e8f0; }
.comparison-table tr:nth-child(even) { background: #f7fafc; }

/* Breadcrumb */
.breadcrumb { color: #718096; font-size: 0.9rem; margin-bottom: 1.5rem; }
.breadcrumb a { color: #2c5282; text-decoration: none; }
.breadcrumb a:hover { color: #c05621; }

/* CTA Button */
.cta-button { display: inline-block; background: #c05621; color: white; padding: 0.7rem 1.5rem; border-radius: 6px; text-decoration: none; font-weight: 600; margin-top: 1rem; }
.cta-button:hover { background: #9c4221; }

/* === V3 CTA Touchpoints (6 per page) === */
/* (1) Inline CTA Box — appears at ~30% of article */
.inline-cta-box { background: linear-gradient(135deg, #fffaf0 0%, #fff5e6 100%); border: 1px solid #fbd38d; border-left: 4px solid #c05621; padding: 1.5rem 1.8rem; margin: 2.5rem 0; border-radius: 6px; box-shadow: 0 2px 6px rgba(192,86,33,0.08); }
.inline-cta-box .cta-tag { display: inline-block; background: #c05621; color: white; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.05em; padding: 0.2rem 0.6rem; border-radius: 3px; text-transform: uppercase; margin-bottom: 0.6rem; }
.inline-cta-box h3 { color: #1a365d; margin: 0 0 0.4rem; font-size: 1.15rem; border: none; padding: 0; }
.inline-cta-box p { color: #4a5568; margin: 0 0 0.8rem; font-size: 0.92rem; }
.inline-cta-box .cta-button { margin-top: 0; }

/* (2)(3)(4) H2-end CTA — compact button block at end of cost/process/mistakes sections */
.h2-end-cta { background: #f7fafc; border: 1px dashed #cbd5e0; padding: 1rem 1.2rem; margin: 1.5rem 0 0; border-radius: 6px; display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.h2-end-cta .h2-end-cta-text { font-size: 0.9rem; color: #2d3748; font-weight: 500; }
.h2-end-cta .h2-end-cta-text strong { color: #c05621; }
.h2-end-cta .cta-button { margin-top: 0; padding: 0.55rem 1.1rem; font-size: 0.9rem; white-space: nowrap; }

/* (5) Bottom Main CTA Section — after FAQ, before Author Card */
.cta-section { background: linear-gradient(135deg, #1a365d 0%, #2c5282 100%); color: white; padding: 2.5rem 2rem; margin: 3rem 0; border-radius: 10px; text-align: center; box-shadow: 0 4px 14px rgba(26,54,93,0.2); }
.cta-section h3 { color: white; margin-top: 0; font-size: 1.5rem; border: none; padding: 0; }
.cta-section p { color: #e2e8f0; font-size: 0.95rem; max-width: 600px; margin: 0 auto 1.2rem; }
.cta-section .cta-button { background: #c05621; color: white; font-size: 1.05rem; padding: 0.9rem 2.2rem; margin-top: 0; }
.cta-section .cta-button:hover { background: #dd6b20; }
.cta-section .cta-note { display: block; color: #a0aec0; font-size: 0.8rem; margin-top: 0.8rem; }

/* (6) Desktop Sticky CTA — fixed bottom-right, desktop only */
.sticky-cta { position: fixed; bottom: 1.5rem; right: 1.5rem; background: white; border: 1px solid #fbd38d; border-left: 4px solid #c05621; padding: 1rem 1.2rem; border-radius: 8px; box-shadow: 0 6px 20px rgba(0,0,0,0.15); max-width: 260px; z-index: 1000; }
.sticky-cta .sticky-cta-close { position: absolute; top: 0.3rem; right: 0.5rem; background: none; border: none; color: #a0aec0; font-size: 1.1rem; cursor: pointer; line-height: 1; padding: 0; }
.sticky-cta .sticky-cta-close:hover { color: #2d3748; }
.sticky-cta .sticky-cta-title { color: #1a365d; font-weight: 700; font-size: 0.95rem; margin: 0 0 0.3rem; padding-right: 1rem; }
.sticky-cta .sticky-cta-text { color: #4a5568; font-size: 0.8rem; margin: 0 0 0.7rem; }
.sticky-cta .cta-button { display: block; text-align: center; margin-top: 0; padding: 0.55rem 1rem; font-size: 0.88rem; }
.sticky-cta.hidden { display: none; }

/* Hide sticky CTA on mobile (use bottom main CTA instead) */
@media (max-width: 768px) {
    .sticky-cta { display: none; }
}

/* Footer */
footer { text-align: center; padding: 2rem; color: #718096; border-top: 1px solid #e2e8f0; margin-top: 2rem; background: white; }
footer a { color: #718096; text-decoration: underline; }

/* Blockquote */
blockquote { border-left: 4px solid #a0aec0; padding-left: 1rem; margin: 1.5rem 0; color: #4a5568; font-style: italic; }

/* Contact Form */
.contact-form { max-width: 600px; }
.form-group { margin-bottom: 1.2rem; }
.form-group label { display: block; font-weight: 600; margin-bottom: 0.3rem; color: #1a365d; }
.form-group input, .form-group textarea { width: 100%; padding: 0.7rem; border: 1px solid #e2e8f0; border-radius: 4px; font-size: 1rem; font-family: inherit; box-sizing: border-box; }
.form-group textarea { min-height: 150px; resize: vertical; }
.submit-btn { background: #c05621; color: white; border: none; padding: 0.8rem 2rem; border-radius: 6px; font-size: 1rem; font-weight: 600; cursor: pointer; }
.submit-btn:hover { background: #9c4221; }

/* Responsive */
@media (max-width: 768px) { 
    .container { flex-direction: column; }
    nav { flex-direction: column; gap: 0.5rem; }
    .nav-links a { margin-left: 0; margin-right: 1rem; }
    .article-content { padding: 1.5rem; }
    h1 { font-size: 1.6rem; }
    h2 { font-size: 1.3rem; }
    .author-card { flex-direction: column; text-align: center; }
}

/* Print Styles */
@media print {
    header, footer, .sidebar, .nav-links { display: none; }
    .container { display: block; }
    .article-content { box-shadow: none; padding: 0; }
}
