@page {
  size: A4;
  margin: 0;
}

* {
  box-sizing: border-box;
}

:root {
  --brand-red: #ff0000;
  --border-gray: #d8d8d8;
  --text-black: #000000;
  --ink-navy: #13273d;
  --ink-slate: #46586b;
  --text-soft: #54616d;
  --paper-white: #fafafa;
  --paper-blue: #fafafa;
  --paper-screen: #ffffff;
  --paper-muted: #fafafa;
  --type-title: 13.4pt;
  --type-subtitle: 10.1pt;
  --type-label: 7.7pt;
  --type-body: 7.8pt;
  --hero-height: 84mm;
}

html,
body {
  margin: 0;
  padding: 0;
  background: var(--paper-screen);
  color: var(--text-black);
  -webkit-print-color-adjust: exact;
  print-color-adjust: exact;
  font-family: "Avenir Next", "Segoe UI", Arial, sans-serif;
  text-rendering: optimizeLegibility;
}

body {
  min-height: 100vh;
  padding: 12mm 0;
}

.page {
  width: 210mm;
  min-height: 297mm;
  margin: 0 auto;
  padding: 8mm 18mm;
  background: #ffffff;
  box-shadow: 0 3mm 10mm rgba(21, 36, 55, 0.08);
  page-break-after: always;
}

.closing-sheet {
  width: 174mm;
  height: 281mm;
  display: grid;
  grid-template-rows: auto var(--hero-height) auto 1fr;
  gap: 3.2mm;
  align-content: start;
}

.closing-brand {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 3.4mm;
  min-height: 14.8mm;
  padding: 1.35mm 2.1mm;
  border: 0.35mm solid var(--border-gray);
  background: var(--paper-white);
  border-radius: 3.2mm;
  overflow: hidden;
}

.closing-brand::after {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 1.1mm;
  background: linear-gradient(90deg, var(--brand-red) 0%, rgba(255, 0, 0, 0.8) 35%, rgba(255, 0, 0, 0.4) 70%, transparent 100%);
}

.closing-brand__meta {
  min-width: 0;
  flex: 1 1 auto;
  display: grid;
  gap: 0.7mm;
}

.closing-brand__logos {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5mm;
}

.closing-brand__logo {
  display: block;
  width: 10.5mm;
  height: auto;
  opacity: 0.95;
}

.closing-brand__banner {
  display: block;
  width: 25mm;
  height: auto;
}

.closing-brand__eyebrow {
  color: var(--brand-red);
  font-size: var(--type-label);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin: 0;
}

.closing-brand__title {
  margin: 0;
  color: var(--ink-navy);
  font-size: var(--type-title);
  line-height: 1.04;
  font-weight: 700;
  text-wrap: balance;
}

.closing-brand__subtitle {
  margin: 0;
  color: var(--text-soft);
  font-size: var(--type-body);
  line-height: 1.2;
  text-wrap: pretty;
}

.section-label {
  margin: 0 0 0.45mm;
  color: var(--brand-red);
  font-size: var(--type-label);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.section-title {
  margin: 0;
  color: var(--ink-navy);
  font-size: var(--type-subtitle);
  line-height: 1.08;
  font-weight: 700;
  text-wrap: balance;
}

.contact-cta-panel,
.contact-panel {
  border: 0.35mm solid var(--border-gray);
  border-radius: 3.2mm;
}

.contact-cta-panel {
  display: grid;
  gap: 1mm;
  padding: 4mm 5mm;
  background: var(--paper-white);
  justify-items: center;
  text-align: center;
}

.contact-panel {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  min-height: 54mm;
  padding: 4mm 4.4mm;
  background: var(--paper-white);
}

.contact-panel__main {
  min-width: 0;
  height: 100%;
  display: grid;
  grid-template-rows: auto auto 1fr;
  align-content: stretch;
}

.contact-capsule {
  display: grid;
  grid-template-columns: 1.25fr 1.05fr 0.8fr 0.92fr;
  gap: 0;
  margin-top: 2.5mm;
  border: 0.35mm solid rgba(19, 39, 61, 0.12);
  border-radius: 2.8mm;
  background: var(--paper-muted);
  overflow: hidden;
}

.contact-capsule__block {
  min-width: 0;
  padding: 2.8mm 3.1mm;
  display: grid;
  align-content: center;
  justify-items: start;
  gap: 1.2mm;
}

.contact-capsule__block--social,
.contact-capsule__block--web {
  justify-items: center;
  text-align: center;
}

.contact-capsule__block + .contact-capsule__block {
  border-left: 0.25mm solid rgba(19, 39, 61, 0.1);
}

.contact-capsule__header {
  display: flex;
  align-items: center;
  gap: 1.1mm;
}

.contact-capsule__icon {
  display: inline-flex;
  width: 5.1mm;
  height: 5.1mm;
  flex: 0 0 auto;
  color: var(--brand-red);
}

.contact-capsule__icon svg {
  width: 100%;
  height: 100%;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.contact-capsule__label,
.contact-web__label {
  margin: 0;
  color: var(--ink-slate);
  font-size: 6.2pt;
  line-height: 1;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.contact-capsule__body {
  display: grid;
  gap: 0.9mm;
  width: 100%;
}

.contact-capsule__link {
  display: block;
  color: var(--ink-navy);
  font-size: 7.3pt;
  line-height: 1.18;
  font-weight: 700;
  text-decoration: none;
  word-break: break-word;
  text-align: left;
}

.contact-capsule__link--secondary {
  color: var(--text-soft);
  font-size: 6.5pt;
  font-weight: 600;
}

.contact-capsule__socials {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.8mm;
  width: 100%;
}

.contact-capsule__social-icon-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--brand-red);
  text-decoration: none;
}

.contact-capsule__social-icon-link svg {
  width: 4.7mm;
  height: 4.7mm;
  flex: 0 0 auto;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.contact-qr {
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 0.8mm;
  padding: 0;
  width: 100%;
}

.contact-qr__image {
  display: block;
  width: 22mm;
  height: 22mm;
  object-fit: contain;
  background: #ffffff;
}

.contact-web {
  display: grid;
  gap: 0.8mm;
  align-content: start;
  justify-items: center;
  width: 100%;
}

.contact-web__link {
  color: var(--ink-navy);
  font-size: 6.8pt;
  line-height: 1.18;
  font-weight: 700;
  text-decoration: none;
  word-break: break-word;
  text-align: center;
}

.contact-quote {
  margin: 0;
  max-width: 118mm;
  color: var(--ink-navy);
  font-size: 9.2pt;
  line-height: 1.46;
  font-weight: 600;
  font-style: italic;
  text-align: center;
}

.contact-visual {
  margin: 0;
  width: 100%;
  min-height: var(--hero-height);
  border: 0.35mm solid var(--border-gray);
  border-radius: 3.2mm;
  overflow: hidden;
  background: var(--paper-blue);
}

.contact-visual__image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

@media print {
  body {
    background: white;
    padding: 0;
  }

  .page {
    min-height: 297mm;
    box-shadow: none;
  }
}
