/**
 * Print-oriented brochure styles — Mr Cybersafe marketing.
 * Open HTML in Chrome/Edge → Print → Save as PDF (A4, default margins OK).
 */
:root {
  --primary: #1b4f8a;
  --accent: #2e75b6;
  --light-blue: #d6e4f0;
  --text: #1a1a1a;
  --muted: #4a5568;
  --white: #fff;
  --amber: #d97706;
}

* {
  box-sizing: border-box;
}

@page {
  size: A4;
  margin: 12mm;
}

html {
  font-size: 11pt;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  line-height: 1.45;
  background: #e8ecf1;
}

.page {
  width: 210mm;
  min-height: 297mm;
  margin: 0 auto 1rem;
  padding: 14mm 16mm;
  background: var(--white);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.12);
  page-break-after: always;
}

.page:last-child {
  page-break-after: auto;
  margin-bottom: 0;
}

.brand {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 700;
  font-size: 1.35rem;
  color: var(--primary);
  letter-spacing: -0.02em;
}

.tagline {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--amber);
  margin: 0.35rem 0 0;
}

h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.65rem;
  line-height: 1.15;
  color: var(--primary);
  margin: 0.75rem 0 0.5rem;
}

h2 {
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
  border-bottom: 2px solid var(--light-blue);
  padding-bottom: 0.25rem;
  margin: 1rem 0 0.5rem;
}

p {
  margin: 0.4rem 0;
  color: var(--muted);
  font-size: 0.88rem;
}

ul {
  margin: 0.35rem 0 0;
  padding-left: 1.1rem;
  color: var(--muted);
  font-size: 0.88rem;
}

li {
  margin-bottom: 0.35rem;
}

.hero-bar {
  height: 5px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  border-radius: 2px;
  margin-bottom: 0.75rem;
}

.cta-box {
  margin-top: 1rem;
  padding: 0.75rem 1rem;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: var(--white);
  border-radius: 8px;
  font-size: 0.9rem;
}

.cta-box strong {
  display: block;
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

.cta-box a {
  color: #fff;
  font-weight: 600;
}

.footer-mini {
  margin-top: 1.25rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--light-blue);
  font-size: 0.65rem;
  color: #64748b;
  line-height: 1.4;
}

.cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.pill {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 600;
  padding: 0.2rem 0.5rem;
  background: var(--light-blue);
  color: var(--primary);
  border-radius: 999px;
  margin: 0.15rem 0.15rem 0 0;
}

/* Screen-only toolbar — hidden when printing / saving as PDF */
body.has-brochure-toolbar {
  padding-top: 3.25rem;
}

.brochure-toolbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.75rem 1rem;
  padding: 0.65rem 1rem;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: var(--white);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 0.8125rem;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.18);
}

.brochure-toolbar__hint {
  margin: 0;
  max-width: 36rem;
  line-height: 1.35;
  opacity: 0.95;
}

.brochure-toolbar__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.brochure-toolbar button {
  font: inherit;
  cursor: pointer;
  border: none;
  border-radius: 0.5rem;
  padding: 0.45rem 0.95rem;
  font-weight: 700;
  background: var(--white);
  color: var(--primary);
}

.brochure-toolbar button:hover {
  filter: brightness(1.05);
}

.brochure-toolbar a {
  color: var(--white);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.brochure-toolbar a:hover {
  opacity: 0.92;
}

@media print {
  body {
    background: #fff;
  }

  body.has-brochure-toolbar {
    padding-top: 0;
  }

  .brochure-toolbar {
    display: none !important;
  }

  .page {
    box-shadow: none;
    margin: 0;
    width: 100%;
    min-height: auto;
  }
}
