/* Brochure sheets and page chrome. Site header, type, and buttons come from styles.css.
   Print size: A5 portrait, 148mm × 210mm. */

@page {
  size: A5;
  margin: 0;
}

.brochure-toolbar {
  padding: 1.6rem 0 0.4rem;
}

.brochure-toolbar .crumbs {
  color: var(--muted);
  margin-bottom: 1rem;
}

.brochure-toolbar .crumbs a { color: var(--violet); }

.brochure-toolbar-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.2rem 1.6rem;
}

.brochure-toolbar h1 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  margin-bottom: 0.35rem;
}

.brochure-toolbar .muted { max-width: 38rem; }

.brochure-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.brochure-actions .brochure-quiet {
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--line);
  box-shadow: none;
}

.sheets {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.6rem;
  width: 100%;
  max-width: 100%;
  padding: 1.4rem 1rem 3.5rem;
}

.sheet {
  position: relative;
  width: min(100%, 148mm);
  min-width: 0;
  max-width: 100%;
  height: 210mm;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 18px 48px rgba(22, 35, 57, 0.12);
  container-type: inline-size;
}

.sheet-inner {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 210mm;
  overflow: hidden;
  background: #fff;
  color: var(--ink);
  font-family: Manrope, "Segoe UI", sans-serif;
}

.hero {
  position: relative;
  flex: 1;
  min-height: 0;
}

.hero-photo,
.photo-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-photo {
  position: absolute;
  inset: 0;
  max-width: none;
}

.pos-01 { object-position: center 22%; }
.pos-03 { object-position: center 30%; }
.pos-09 { object-position: center 42%; }
.pos-07 { object-position: center 38%; }
.pos-contact { object-position: center 32%; }

.hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(20, 16, 40, 0.08) 20%, rgba(20, 16, 40, 0.28) 100%);
}

.hero-card {
  position: absolute;
  left: 8mm;
  right: 8mm;
  bottom: 8mm;
  z-index: 1;
  background: #fff;
  border-radius: 1.1rem;
  padding: 5mm 5.5mm 4.5mm;
  box-shadow: 0 18px 40px rgba(14, 23, 38, 0.16);
}

.hero-logo {
  width: auto;
  height: 9mm;
  max-width: 42mm;
  object-fit: contain;
  margin-bottom: 2.5mm;
}

.sheet-kicker {
  margin: 0 0 1.4mm;
  color: var(--violet);
  font-size: 2.8mm;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero-card h2,
.intro h2 {
  margin: 0 0 2mm;
  font-family: Outfit, Manrope, "Segoe UI", sans-serif;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.02;
  color: var(--ink);
}

.hero-card h2 { font-size: 6.4mm; max-width: 18ch; }

.hero-card > p,
.intro > p {
  margin: 0;
  font-size: 3.5mm;
  line-height: 1.35;
  color: var(--muted);
}

.place {
  margin-top: 2.4mm !important;
  color: var(--violet) !important;
  font-size: 2.8mm !important;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 1.4mm;
  margin: 2.6mm 0 0;
  padding: 0;
  list-style: none;
}

.chips li {
  border: 1px solid #e4def3;
  background: #f7f4ff;
  border-radius: 999px;
  padding: 1mm 2.6mm;
  color: var(--ink);
  font-size: 2.9mm;
  font-weight: 800;
}

.proof {
  display: grid;
  flex: 0 0 18mm;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  padding: 0 5mm;
  background: linear-gradient(90deg, #6240f2 0%, #3d74f2 52%, #14d0dc 100%);
  color: #fff;
}

.proof div {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 2mm 3mm;
}

.proof div + div { border-left: 1px solid rgba(255, 255, 255, 0.28); }

.proof strong {
  font-family: Outfit, Manrope, sans-serif;
  font-size: 3.4mm;
  line-height: 1.1;
}

.proof span {
  margin-top: 0.6mm;
  font-size: 2.6mm;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.bar {
  display: flex;
  flex: 0 0 14mm;
  align-items: center;
  justify-content: space-between;
  gap: 4mm;
  padding: 0 8mm;
  background: linear-gradient(90deg, #6240f2 0%, #3d74f2 52%, #14d0dc 100%);
  color: #fff;
}

.bar img {
  width: auto;
  height: 7mm;
  max-width: 36mm;
  object-fit: contain;
}

.bar p {
  display: flex;
  align-items: center;
  gap: 3mm;
  margin: 0;
  font-size: 3mm;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.bar span { opacity: 0.8; }

.sheet-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 3.2mm;
  min-height: 0;
  padding: 4.5mm 8mm 3.5mm;
}

.intro h2 { font-size: 6.2mm; max-width: 16ch; }

.photo-card {
  flex: 1.25 1 44mm;
  min-height: 42mm;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 1.15rem;
  overflow: hidden;
  box-shadow: 0 10px 28px rgba(28, 36, 80, 0.06);
  position: relative;
}

.photo-card img {
  position: absolute;
  inset: 0;
  max-width: none;
}

.photo-card.tall { flex: 1.4 1 52mm; min-height: 48mm; }

.sheet-industries .photo-card {
  flex: 0.45 1 24mm;
  min-height: 24mm;
}

.sheet-industries .cards { flex: 1.8 1 auto; }

.sheet-industries .intro h2 { max-width: 22ch; }

.cards {
  display: grid;
  flex: 1 1 auto;
  min-height: 0;
  grid-template-columns: 1fr 1fr;
  grid-auto-rows: 1fr;
  gap: 2.4mm;
  align-content: stretch;
}

.card:last-child:nth-child(odd) { grid-column: 1 / -1; }

.card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 1rem;
  padding: 3.2mm 3.6mm;
  box-shadow: 0 8px 20px rgba(28, 36, 80, 0.04);
}

.card h3 {
  margin: 0 0 0.8mm;
  font-family: Outfit, Manrope, sans-serif;
  font-size: 3.5mm;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.card p {
  margin: 0;
  color: var(--muted);
  font-size: 3.3mm;
  line-height: 1.3;
}

.contact-sheet { gap: 3.4mm; }

.contact-split {
  display: grid;
  flex: 1;
  grid-template-columns: 0.92fr 1.08fr;
  gap: 3.2mm;
  min-height: 0;
}

.photo-card.side { min-height: 0; height: 100%; }

.contact-stack {
  display: flex;
  flex-direction: column;
  gap: 2.6mm;
  min-height: 0;
  height: 100%;
}

.contact-card {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 1.5mm;
  margin: 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 1.15rem;
  padding: 3.6mm 4mm 3.2mm;
  box-shadow: 0 10px 28px rgba(28, 36, 80, 0.05);
}

.contact-card .addr {
  margin: 0;
  font-size: 3.4mm;
  font-weight: 800;
  line-height: 1.3;
  color: var(--ink);
}

.contact-card p { margin: 0; font-weight: 700; font-size: 3.5mm; }

.phone {
  font-family: Outfit, Manrope, sans-serif;
  font-size: 5.2mm !important;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.phone a { color: var(--violet); }

.contact-card .hours {
  margin: 1.4mm 0 0;
  padding: 0;
  list-style: none;
}

.contact-card .hours li {
  display: flex;
  justify-content: space-between;
  gap: 2mm;
  padding: 1.1mm 0;
  border-bottom: 1px solid var(--line);
  font-size: 3.3mm;
  font-weight: 600;
}

.contact-card .hours li span:last-child { font-weight: 800; }

.web { margin-top: 1.6mm !important; }
.web a { color: var(--cyan-deep); font-weight: 800; }

.qr-block {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-end;
  gap: 1.8mm;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 1.15rem;
  box-shadow: 0 10px 28px rgba(28, 36, 80, 0.05);
  padding: 2.4mm 3mm 3mm;
}

.qr-block img {
  display: block;
  position: static;
  width: 100%;
  height: auto;
  flex: 0 0 auto;
  min-height: 0;
  max-width: 100%;
  aspect-ratio: 1;
  object-fit: contain;
  background: #fff;
}

.qr-label {
  margin: 0;
  font-size: 3.2mm;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
  text-align: center;
}

.qr-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  max-width: 100%;
  background: var(--violet);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 3.2mm;
  line-height: 1.1;
  padding: 1.8mm 3mm;
  border-radius: 999px;
  text-align: center;
}

.sheet-foot {
  display: flex;
  flex: 0 0 9mm;
  align-items: center;
  justify-content: space-between;
  gap: 3mm;
  padding: 0 8mm;
  border-top: 1px solid #e4def3;
  color: var(--muted);
  font-size: 3.2mm;
  font-weight: 700;
}

@media screen and (max-width: 640px) {
  .sheets { padding-bottom: 5.5rem; }

  .brochure-actions { width: 100%; }

  .brochure-actions .btn { flex: 1 1 auto; }

  .sheet {
    width: 100%;
    max-width: 100%;
    height: auto;
    min-height: 0;
    aspect-ratio: 148 / 210;
  }

  .sheet-inner {
    position: absolute;
    top: 0;
    left: 0;
    width: 148mm;
    height: 210mm;
    transform: scale(calc(100cqw / 148mm));
    transform-origin: top left;
  }
}

@media print {
  @page {
    size: A5 portrait;
    size: 148mm 210mm;
    margin: 0;
  }

  html, body {
    background: #fff !important;
    print-color-adjust: exact;
    -webkit-print-color-adjust: exact;
  }

  .site-header,
  .site-footer,
  .brochure-toolbar,
  .whatsapp-chat,
  .skip {
    display: none !important;
  }

  main { margin: 0; padding: 0; }

  .sheets {
    display: block;
    gap: 0;
    margin: 0;
    padding: 0;
  }

  .sheet,
  .sheet-inner {
    position: static;
    width: 148mm;
    height: 210mm;
    min-height: 210mm;
    max-height: 210mm;
    transform: none;
    aspect-ratio: auto;
  }

  .sheet {
    box-shadow: none;
    break-after: page;
    page-break-after: always;
    break-inside: avoid;
  }

  .sheet:last-child {
    break-after: auto;
    page-break-after: auto;
  }

  .bar,
  .proof,
  .hero-shade,
  .hero-photo,
  .photo-card img {
    print-color-adjust: exact;
    -webkit-print-color-adjust: exact;
  }
}
