/*
 * print.css — GSIEM Website
 * Applied only when printing: @media print
 */

@media print {

  /* ─── Hide navigation, interactive & decorative elements ─── */
  #navbar,
  #scroll-progress,
  .hero-scroll,
  .hero-deco,
  #menu-toggle,
  .clients-marquee,
  .btn-submit,
  .btn-whatsapp,
  .contact-map,
  .footer-social,
  footer {
    display: none !important;
  }

  /* ─── Page setup ─── */
  @page {
    margin: 2cm;
    size: A4;
  }

  /* ─── Reset colors — white background, black text ─── */
  *,
  *::before,
  *::after {
    background:       white !important;
    background-color: white !important;
    background-image: none  !important;
    color:            #000  !important;
    box-shadow:       none  !important;
    text-shadow:      none  !important;
    animation:        none  !important;
    transition:       none  !important;
    opacity:          1     !important;
    transform:        none  !important;
  }

  /* ─── Typography ─── */
  body {
    font-size: 11pt;
    line-height: 1.5;
  }

  h1 { font-size: 22pt; }
  h2 { font-size: 17pt; page-break-after: avoid; }
  h3 { font-size: 13pt; page-break-after: avoid; }

  p, li { orphans: 3; widows: 3; }

  /* ─── Sections ─── */
  .section {
    padding-block: 1cm;
    page-break-inside: avoid;
  }

  /* ─── Print links inline ─── */
  a[href]::after {
    content: " (" attr(href) ")";
    font-size: 0.8em;
    color: #444 !important;
  }

  /* Suppress anchor-only and mailto/tel links from appending */
  a[href^="#"]::after,
  a[href^="mailto:"]::after,
  a[href^="tel:"]::after {
    content: "";
  }

  /* ─── Images ─── */
  img {
    max-width: 100%;
    page-break-inside: avoid;
  }

  /* ─── Borders ─── */
  .card,
  .service-card,
  .cert-card,
  .proj-card {
    border: 1px solid #ccc !important;
    page-break-inside: avoid;
  }
}
