/* mobile-polish.css
   Additive layer over the Elementor base. Loaded LAST so it wins on order.
   Global rules are safe at any width; the @media block targets phones. */

/* 1) Kill horizontal overflow (sideways scroll / sliver of empty space). */
html, body { max-width: 100%; overflow-x: hidden; }

/* 2) No image/embed forces the page wider than the screen. */
img, svg, iframe { max-width: 100%; height: auto; }

/* 3) Long words / URLs wrap instead of stretching the layout. */
h1, h2, h3, h4, p, a, li, .elementor-heading-title { overflow-wrap: break-word; }

/* 4) Hero background VIDEO covers its container at every size, without relying
      on Elementor's resize JS (which doesn't run reliably on a static export). */
.elementor-background-video-container { position: absolute; inset: 0; overflow: hidden; }
.elementor-background-video-hosted {
  top: 0 !important; left: 0 !important;
  width: 100% !important; height: 100% !important;
  transform: none !important; object-fit: cover !important;
}

/* 5) Editorial look — square corners (no "AI" rounding), no left accent stripe,
      flat cards, no photo captions. */
.spg-card, .spg-flag, .spg-claim, .spg-sources, .spg-badge, .spg-btn,
.elementor-button, .pgi-photo img { border-radius: 0 !important; }
.spg-card { box-shadow: none !important; }
.spg-claim { border-left: 0 !important; padding-left: 0 !important; }
.pgi-photo { margin: 14px 0; }
.pgi-photo img { width: 100%; height: auto; display: block; }
.pgi-photo figcaption { display: none !important; }

@media (max-width: 767px) {
  /* 6) Comfortable side gutters. */
  .e-con > .e-con-inner { padding-left: 18px; padding-right: 18px; }
  .spg .spg-wrap { padding-left: 18px; padding-right: 18px; }

  /* 7) Tame oversized headings on phones. */
  .elementor-39 .elementor-element-307805b7 h1.elementor-heading-title {
    font-size: clamp(26px, 8vw, 40px); line-height: 1.14;
  }
  .elementor-39 h2.elementor-heading-title,
  .spg h1, .spg h2 { font-size: clamp(21px, 6.2vw, 30px); line-height: 1.2; }

  /* 8) Hero keeps a sensible height so the video fills it. */
  .elementor-39 .elementor-element-2b64f845 { min-height: 78vh; }

  /* 9) Legible body copy + thumb-friendly buttons. */
  html { -webkit-text-size-adjust: 100%; }
  .spg .spg-wrap p, .elementor-widget-text-editor p { font-size: 16px; line-height: 1.6; }
  .elementor-button, .spg-btn { padding: 13px 22px; font-size: 16px; }

  /* 10) Single-column card grids on phones. */
  .spg-grid, .spg-grid.two { grid-template-columns: 1fr !important; }
  .spg-grid > * { width: 100%; }

  /* 11) Remove empty decorative/spacer containers that create phantom white gaps
        on phones (the big blank stretch under the home-page sections). */
  .elementor-39 .elementor-element-24e066ab,
  .elementor-39 .elementor-element-c15fc35,
  .elementor-39 .elementor-element-43cbf773 { display: none !important; }

  /* 12) Mobile nav. The Elementor burger relies on JS that doesn't run on this
        static export, so the dropdown was rendering stuck-open over the hero.
        Replace it with a reliable, always-visible wrapping menu under the logo
        — no JavaScript required. */
  .elementor-24 .e-con-inner { display: block !important; text-align: center; }
  .elementor-24 .elementor-element-31408f11,
  .elementor-24 .elementor-element-5ef83683 { position: static !important; float: none !important; width: 100% !important; max-width: 100% !important; margin: 0 auto !important; inset: auto !important; transform: none !important; }
  .elementor-24 .elementor-element-31408f11 { margin-bottom: 8px !important; }
  .elementor-24 .elementor-element-31408f11 img { width: auto !important; max-width: 200px !important; height: auto !important; display: block; margin: 0 auto !important; }
  .elementor-24 .elementor-menu-toggle { display: none !important; }
  .elementor-24 .elementor-nav-menu--dropdown { display: none !important; }
  .elementor-24 .elementor-nav-menu--main { display: block !important; position: static !important; transform: none !important; inset: auto !important; width: 100% !important; }
  .elementor-24 .elementor-nav-menu--main > .elementor-nav-menu {
    display: flex !important; flex-wrap: wrap; justify-content: center;
    gap: 2px 16px; margin: 0; padding: 8px 6px 2px; list-style: none;
    border-top: 1px solid #e3e7ea;
  }
  .elementor-24 .elementor-nav-menu--main .elementor-nav-menu .elementor-item {
    padding: 6px 2px !important; font-size: 13px; line-height: 1.2;
    white-space: nowrap; color: #1A3142;
  }
  .elementor-24 .elementor-nav-menu--main .elementor-nav-menu .elementor-item:hover {
    color: #00B1DA;
  }
}
