/* Mobile-only overrides for the homepage hero (Elementor section with background video). */

@media (max-width: 767px) {
  /* Hero section: reserve space for the background video, then flow cards below. */
  body.home .elementor-element-2bce1a8.elementor-section {
    min-height: auto !important;
    --privaat-hero-video-h: clamp(220px, 44vh, 360px);
    padding-top: var(--privaat-hero-video-h) !important;
    padding-bottom: 24px !important;
  }

  body.home .elementor-element-2bce1a8 > .elementor-background-video-container {
    height: var(--privaat-hero-video-h) !important;
  }

  body.home .elementor-element-2bce1a8 > .elementor-background-video-container video {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
  }

  body.home .elementor-element-2bce1a8.elementor-section .elementor-container {
    align-items: flex-start !important;
  }

  /* Stack intro + form cards vertically with comfortable spacing. */
  body.home .elementor-element-3d54d44 > .elementor-container {
    display: flex !important;
    flex-direction: column !important;
    gap: 14px !important;
  }

  body.home .elementor-element-3d54d44 .elementor-column {
    width: 100% !important;
  }

  body.home .elementor-element-53b98ab,
  body.home .elementor-element-e79cbf9 {
    border-radius: 16px !important;
  }

  body.home .elementor-element-53b98ab .elementor-widget-wrap,
  body.home .elementor-element-e79cbf9 .elementor-widget-wrap {
    padding: 12px !important;
  }

  /* Reduce default Elementor widget spacing inside the intro card. */
  body.home .elementor-element-53b98ab .elementor-widget-wrap {
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
    justify-content: flex-start !important;
    align-content: flex-start !important;
    min-height: 0 !important;
    height: auto !important;
  }
  body.home .elementor-element-53b98ab .elementor-widget {
    margin-bottom: 0 !important;
  }
  body.home .elementor-element-53b98ab .elementor-widget-container {
    margin: 0 !important;
  }
  body.home .elementor-element-53b98ab .elementor-widget-heading .elementor-heading-title {
    margin: 0 !important;
  }
  body.home .elementor-element-53b98ab .elementor-widget-divider {
    margin: 2px 0 !important;
  }

  /* Typography: reduce heading sizes so cards don't dominate the viewport. */
  body.home .elementor-element-e7d0a71 .elementor-heading-title {
    font-size: 14px !important;
    line-height: 1.2 !important;
    margin-bottom: 6px !important;
  }

  body.home .elementor-element-db23a51 .elementor-heading-title {
    /* Keep "Privaat Real Estate" on one line by scaling with viewport width. */
    font-size: clamp(22px, 7.2vw, 30px) !important;
    line-height: 1.05 !important;
    margin-bottom: 6px !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }

  body.home .elementor-element-89821bc .elementor-heading-title,
  body.home .elementor-element-a4ae9de .elementor-heading-title {
    /* Subtitle should read like body text on mobile. */
    font-size: 16px !important;
    line-height: 1.35 !important;
    font-weight: 400 !important;
    margin-bottom: 0 !important;
  }

  body.home .elementor-element-c3bf870 .elementor-heading-title {
    font-size: 20px !important;
    line-height: 1.2 !important;
    margin-bottom: 10px !important;
  }

  /* MetForm inside the "Book a Call" card: slightly smaller text and full-width button. */
  body.home .elementor-element-e79cbf9 .mf-form-wrapper {
    font-size: 14px !important;
  }

  body.home .elementor-element-e79cbf9 .elementor-widget-wrap {
    justify-content: flex-start !important;
    align-content: flex-start !important;
    min-height: 0 !important;
    height: auto !important;
  }

  body.home .elementor-element-e79cbf9 .metform-btn,
  body.home .elementor-element-e79cbf9 button[type="submit"] {
    width: 100% !important;
  }
}
