/* ==================== PRINT & PAGE SETUP ==================== */
@page {
    size: A4;
    margin: 18mm 16mm 20mm 16mm;
}
@page :first {
    margin: 0;
}

* {
    box-sizing: border-box;
}

:root {
    --bw-blue: #00A3E0;
    --bw-black: #1a1a1a;
    --bw-white: #ffffff;
    --bw-light: #f0f6fa;
    --bw-accent: #00689d;
    --bw-gold: #c5a558;
    --bw-grey: #555555;
    --bw-light-grey: #e0e0e0;
    --bw-border: #d4d4d4;
    --shadow: 0 2px 8px rgba(0,0,0,0.08);
}

html {
    font-size: 11pt;
}

body {
    font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
    line-height: 1.65;
    color: #2a2a2a;
    margin: 0 auto;
    padding: 0;
    background: #ffffff;
    width: 210mm;
    max-width: 210mm;
}

/* ==================== COVER PAGE ==================== */
.cover {
    page-break-after: always;
    background: linear-gradient(160deg, var(--bw-black) 0%, #0d0d0d 50%, var(--bw-accent) 100%);
    color: white;
    min-height: 297mm;
    padding: 35mm 22mm 25mm 22mm;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.cover::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 8px;
    background: var(--bw-blue);
}

.cover::after {
    content: "";
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 8px;
    background: var(--bw-blue);
}

.cover-top { text-align: center; }
.cover-eyebrow { font-size: 9pt; letter-spacing: 4px; text-transform: uppercase; color: var(--bw-blue); margin-bottom: 2rem; font-weight: 600; }
.cover h1 { font-size: 30pt; font-weight: 800; line-height: 1.2; margin: 0 0 1.5rem 0; letter-spacing: -0.5px; }
.cover h1 .highlight { color: var(--bw-blue); }
.cover-subtitle { font-size: 13pt; font-weight: 300; color: #b0b0b0; line-height: 1.5; max-width: 520px; margin: 0 auto 2rem auto; }
.cover-divider { width: 60px; height: 3px; background: var(--bw-blue); margin: 2rem auto; border: none; }
.cover-badges { display: flex; justify-content: center; gap: 2rem; margin-top: 1.5rem; }
.cover-badge { text-align: center; }
.cover-badge .num { font-size: 22pt; font-weight: 800; color: var(--bw-blue); display: block; }
.cover-badge .label { font-size: 8pt; text-transform: uppercase; letter-spacing: 1px; color: #999; }
.cover-bottom { text-align: center; }
.cover-meta { font-size: 9.5pt; color: #888; line-height: 1.8; }
.cover-meta strong { color: var(--bw-blue); font-weight: 600; }
.cover-confidential { margin-top: 1.5rem; font-size: 7.5pt; letter-spacing: 2px; text-transform: uppercase; color: #555; border-top: 1px solid #333; padding-top: 1rem; }

/* ==================== TABLE OF CONTENTS ==================== */
.toc { page-break-after: always; padding: 2rem 0; }
.toc h2 { font-size: 18pt; color: var(--bw-black); border-bottom: 3px solid var(--bw-blue); padding-bottom: 0.5rem; margin-bottom: 1.5rem; }
.toc ol { list-style: none; padding: 0; counter-reset: toc; }
.toc li { counter-increment: toc; padding: 0.6rem 0; border-bottom: 1px dotted var(--bw-border); font-size: 11pt; display: flex; justify-content: space-between; align-items: baseline; }
.toc li::before { content: counter(toc, decimal-leading-zero); font-weight: 700; color: var(--bw-blue); margin-right: 1rem; min-width: 2rem; }
.toc li .toc-title { flex: 1; }
.toc li .toc-page { color: var(--bw-grey); font-weight: 600; }

/* ==================== CONTENT SECTIONS ==================== */
.section { page-break-inside: auto; padding-top: 1rem; }
.section + .section { page-break-before: always; }
.section-header { margin-bottom: 1.5rem; }
.section-number { font-size: 9pt; font-weight: 700; letter-spacing: 3px; text-transform: uppercase; color: var(--bw-blue); display: block; margin-bottom: 0.3rem; }
h2.section-title { font-size: 20pt; font-weight: 800; color: var(--bw-black); margin: 0 0 0.5rem 0; line-height: 1.2; border-bottom: 2px solid var(--bw-light-grey); padding-bottom: 0.6rem; }
h3 { font-size: 13pt; font-weight: 700; color: var(--bw-accent); margin-top: 1.8rem; margin-bottom: 0.6rem; }
p { margin: 0.6rem 0; text-align: justify; }
ul, ol { padding-left: 1.3rem; margin: 0.6rem 0; }
li { margin-bottom: 0.4rem; }
strong { color: var(--bw-black); }

/* ==================== COMPONENTS ==================== */
.callout { background: var(--bw-light); border-left: 4px solid var(--bw-blue); padding: 1rem 1.2rem; margin: 1.2rem 0; border-radius: 0 6px 6px 0; page-break-inside: avoid; }
.callout-title { font-weight: 700; color: var(--bw-accent); font-size: 10.5pt; margin-bottom: 0.4rem; }
.stat-row { display: flex; gap: 1rem; margin: 1.5rem 0; page-break-inside: avoid; }
.stat-card { flex: 1; background: var(--bw-light); border-radius: 8px; padding: 1.2rem 1rem; text-align: center; border-bottom: 3px solid var(--bw-blue); }
.stat-card .stat-value { font-size: 24pt; font-weight: 800; color: var(--bw-accent); display: block; line-height: 1; }
.stat-card .stat-label { font-size: 8.5pt; text-transform: uppercase; letter-spacing: 1px; color: var(--bw-grey); margin-top: 0.4rem; display: block; }
table { width: 100%; border-collapse: collapse; margin: 1rem 0; font-size: 10pt; page-break-inside: auto; }
thead { background: var(--bw-black); color: white; }
th { padding: 0.7rem 0.8rem; text-align: left; font-weight: 600; font-size: 9.5pt; text-transform: uppercase; letter-spacing: 0.5px; }
tbody tr:nth-child(even) { background: var(--bw-light); }
td { padding: 0.6rem 0.8rem; border-bottom: 1px solid var(--bw-border); vertical-align: top; }
.solution-card { border: 1px solid var(--bw-border); border-radius: 8px; padding: 1.2rem; margin: 1rem 0; page-break-inside: avoid; background: white; box-shadow: var(--shadow); }
.solution-card-header { display: flex; align-items: center; gap: 0.8rem; margin-bottom: 0.6rem; }
.solution-icon { width: 36px; height: 36px; background: var(--bw-blue); color: white; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 13pt; flex-shrink: 0; }
.solution-card h3 { margin: 0; font-size: 12pt; }
.solution-card .mandate-tag { display: inline-block; background: var(--bw-light); color: var(--bw-accent); font-size: 8pt; font-weight: 600; padding: 0.15rem 0.6rem; border-radius: 12px; margin-bottom: 0.5rem; text-transform: uppercase; letter-spacing: 0.5px; }
.solution-tech { margin-top: 0.6rem; padding-top: 0.6rem; border-top: 1px dashed var(--bw-border); font-size: 9pt; color: var(--bw-grey); }
.solution-tech strong { color: var(--bw-accent); }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin: 1rem 0; }
.grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 0.8rem; margin: 1rem 0; }
.info-box { background: var(--bw-light); border-radius: 8px; padding: 1rem; border-top: 3px solid var(--bw-blue); }
.info-box h4 { margin: 0 0 0.4rem 0; font-size: 10pt; color: var(--bw-accent); font-weight: 700; }
.info-box p { font-size: 9.5pt; margin: 0; text-align: left; }
.compliance-badge { display: inline-block; background: #e8f5e9; color: #2e7d32; font-size: 8pt; font-weight: 700; padding: 0.2rem 0.6rem; border-radius: 4px; margin: 0.15rem 0.15rem 0.15rem 0; border: 1px solid #c8e6c9; }
.council-list { columns: 3; column-gap: 1.5rem; font-size: 9.5pt; line-height: 2; }
.council-list li { break-inside: avoid; }
.timeline { position: relative; padding-left: 2rem; margin: 1.5rem 0; }
.timeline::before { content: ""; position: absolute; left: 8px; top: 0; bottom: 0; width: 2px; background: var(--bw-blue); }
.timeline-item { position: relative; margin-bottom: 1.2rem; page-break-inside: avoid; }
.timeline-item::before { content: ""; position: absolute; left: -1.6rem; top: 0.3rem; width: 10px; height: 10px; background: var(--bw-blue); border-radius: 50%; border: 2px solid white; box-shadow: 0 0 0 2px var(--bw-blue); }
.timeline-week { font-weight: 800; color: var(--bw-accent); font-size: 10pt; }
.timeline-desc { font-size: 10pt; color: #444; }
.pricing-table th:first-child { width: 35%; }
.pricing-table .save { color: #2e7d32; font-weight: 700; }
.pricing-table .old { color: #c62828; text-decoration: line-through; }
.signature-block { margin-top: 3rem; page-break-inside: avoid; }
.signature-line { border-top: 1px solid var(--bw-black); width: 280px; margin-top: 3rem; padding-top: 0.4rem; font-size: 9pt; color: var(--bw-grey); }
.quote-large { font-size: 14pt; font-style: italic; color: var(--bw-accent); text-align: center; margin: 2rem 1rem; line-height: 1.5; page-break-inside: avoid; }
.quote-large::before { content: "\201C"; font-size: 36pt; color: var(--bw-blue); display: block; line-height: 0.5; margin-bottom: 0.5rem; }
.checklist { list-style: none; padding-left: 0; }
.checklist li { padding-left: 1.8rem; position: relative; margin-bottom: 0.5rem; }
.checklist li::before { content: "\2713"; position: absolute; left: 0; top: 0; color: var(--bw-blue); font-weight: 800; font-size: 11pt; }
.no-break { page-break-inside: avoid; }

/* ==================== COVER LETTER ==================== */
.letterhead { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 2rem; padding-bottom: 1.5rem; border-bottom: 3px solid var(--bw-blue); }
.letterhead-logo { font-size: 16pt; font-weight: 800; color: var(--bw-accent); line-height: 1.2; }
.letterhead-logo .tagline { font-size: 8pt; font-weight: 400; color: var(--bw-grey); letter-spacing: 1px; text-transform: uppercase; display: block; margin-top: 0.2rem; }
.letterhead-contact { font-size: 8.5pt; color: var(--bw-grey); text-align: right; line-height: 1.6; }
.letter-date { font-size: 10pt; margin-bottom: 1.5rem; }
.letter-address { font-size: 10pt; margin-bottom: 1.5rem; line-height: 1.5; }
.letter-subject { font-size: 11pt; font-weight: 700; color: var(--bw-black); margin-bottom: 1.2rem; text-transform: uppercase; letter-spacing: 0.5px; }
.letter-body p { font-size: 10.5pt; line-height: 1.7; margin-bottom: 0.8rem; }
.letter-signoff { margin-top: 2rem; }
.letter-signoff .closing { font-size: 10.5pt; margin-bottom: 0.3rem; }
.letter-signoff .name { font-weight: 700; font-size: 11pt; color: var(--bw-black); margin-top: 2rem; }
.letter-signoff .title { font-size: 9.5pt; color: var(--bw-grey); }
.letter-signoff .company { font-size: 9.5pt; color: var(--bw-accent); font-weight: 600; }

/* ==================== PRINT OVERRIDES ==================== */
@media print {
    body { background: white; width: auto; margin: 0; }
    .section + .section { page-break-before: always; }
    .no-break { page-break-inside: avoid; }
    a { color: var(--bw-accent); text-decoration: none; }
}
