/* =====================================================
   SCREEN (NORMAL SITE DISPLAY)
   ===================================================== */

/* Hide print-only logo on screen */
.print-logo {
  display: none !important;
}

/* Ensure nav remains clickable */
.elementor-nav-menu--main,
.elementor-nav-menu--main * {
  pointer-events: auto !important;
}

/* Hide Elementor sticky spacer clone only (safe) */
.elementor-sticky__spacer {
  display: none !important;
  visibility: hidden !important;
}


/* =====================================================
   PRINT PAGE MARGINS (ALL PAGES)
   ===================================================== */
@page {
  margin: 1.5in;
}


/* =====================================================
   PRINT STYLES
   ===================================================== */
@media print {

  /* ---------- Print-only logo ---------- */
  .print-logo {
    display: block !important;
    margin: 0 0 0.35in 0 !important;
    break-inside: avoid !important;
  }

  .print-logo img {
    max-height: 0.75in !important;
    width: auto !important;
    height: auto !important;
  }

  /* Remove printed link URLs */
  a[href]:after {
    content: "" !important;
  }

  /* ---------- Hide header/nav/search/buttons ---------- */
  header,
  .screen-header,
  .elementor-location-header,
  nav,
  .elementor-nav-menu,
  .elementor-widget-nav-menu,
  .elementor-widget-search,
  .elementskit-header-search,
  .elementor-widget-button {
    display: none !important;
  }

  /* ---------- Remove hero background gaps ---------- */
  .elementor-section {
    background: none !important;
    min-height: auto !important;
    height: auto !important;
    padding-top: 0 !important;
    padding-bottom: 12px !important;
  }

  .elementor-background-overlay {
    display: none !important;
  }

  /* ---------- Headings and text ---------- */
  h1,
  .elementor-heading-title {
    color: #000 !important;
    margin-top: 0 !important;
    margin-bottom: 6px !important;
  }

  h2,
  h3 {
    margin-top: 8px !important;
  }

  p {
    margin-top: 6px !important;
  }

  /* ---------- Remove spacers ---------- */
  .elementor-widget-spacer,
  .elementor-spacer,
  .elementor-spacer-inner,
  .wp-block-spacer {
    display: none !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  /* ---------- Team page: keep titles with first row ---------- */
  .team-title-section {
    page-break-after: avoid !important;
    margin-bottom: 10px !important;
  }

  .team-first-row {
    page-break-before: avoid !important;
  }

  /* ---------- Team page: keep cards together ---------- */
  .team-print-row,
  .team-print-row * {
    page-break-inside: avoid !important;
  }

  /* ---------- Team page: preserve grid layout ---------- */
  .team-print-row > .elementor-container {
    display: grid !important;
    gap: 18px !important;
  }

  .team-print-row.team-cols-1 > .elementor-container {
    grid-template-columns: 1fr !important;
  }

  .team-print-row.team-cols-2 > .elementor-container {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  .team-print-row.team-cols-3 > .elementor-container {
    grid-template-columns: repeat(3, 1fr) !important;
  }

  /* ---------- Hide newsletter / CTAs in print ---------- */
  .no-print {
    display: none !important;
  }

  /* ---------- Footer + cookie cleanup ---------- */
  footer,
  .cookie,
  .cookie-notice,
  #cookie-notice,
  .cky-consent-container {
    display: none !important;
  }
}
