/* ==========================================================================
   HUMIND VENTURE PLATFORM - RESPONSIVE BREAKPOINTS & RTL STYLES
   ========================================================================== */

/* --- Standard Desktop (1200px - 1439px) --- */
@media (max-width: 1439px) {
  :root {
    --container-padding: 40px;
  }
}

/* --- Small Desktop / Laptop (1024px - 1199px) --- */
@media (max-width: 1199px) {
  :root {
    --container-padding: 32px;
  }
  
  .hm-grid-2col {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
    gap: 40px !important;
  }
  
  .hm-matrix-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 12px;
  }
}

/* --- Tablet Devices (768px - 1023px) --- */
@media (max-width: 1023px) {
  :root {
    --container-padding: 24px;
  }

  /* Navigation */
  .hm-nav-desktop {
    display: none !important;
  }

  .hm-hamburger {
    display: flex !important;
  }
  
  /* Hero section adjustments */
  .hm-hero-grid {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 36px !important;
  }
  
  .hm-hero-cta {
    justify-content: flex-start !important;
  }

  /* Section headers sidebar breakdown */
  .hm-sec-split {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 24px !important;
  }

  /* Lifecycle 2-column breakdown */
  .hm-lifecycle-grid {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 48px !important;
  }

  /* Audience split */
  .hm-audience-grid {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 40px !important;
  }

  /* Portfolio grid */
  .pf-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  /* Careers roles */
  .cr-split {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 32px !important;
  }
  
  .cr-vals, .cr-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 32px !important;
  }

  /* Contact and Apply grids */
  .hm-form-grid {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 48px !important;
    border-inline-start: none !important;
    padding-inline-start: 0 !important;
  }

  /* Footer grid */
  .hm-footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 40px !important;
  }
}

/* --- Mobile Devices (< 768px) --- */
@media (max-width: 767px) {
  :root {
    --container-padding: 20px;
  }

  /* Fluid headings */
  h1, .hm-h1 {
    font-size: clamp(38px, 10vw, 64px) !important;
    line-height: 1.1 !important;
  }

  h2, .hm-h2 {
    font-size: clamp(30px, 8vw, 44px) !important;
    line-height: 1.15 !important;
  }

  /* Hero buttons */
  .hm-hero-cta {
    flex-direction: column !important;
    align-items: stretch !important;
    width: 100%;
  }

  .hm-hero-cta a, .hm-hero-cta button {
    justify-content: center !important;
    text-align: center !important;
    width: 100% !important;
  }

  /* Matrix table card fallback or mobile scroll hint */
  .hm-matrix-table {
    min-width: 650px;
  }

  /* Orbit diagram responsive scaling */
  .hm-orbit-wrapper {
    max-width: 340px !important;
  }

  .hm-orbit-node {
    width: 40px !important;
    height: 40px !important;
    font-size: 11px !important;
  }

  /* Portfolio grid */
  .pf-grid {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  /* Careers steps & values */
  .cr-vals, .cr-steps {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  /* Form column inputs */
  .hm-form-row {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 28px !important;
  }

  /* Footer */
  .hm-footer-grid {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 32px !important;
  }

  .hm-giant-brand {
    font-size: clamp(60px, 18vw, 120px) !important;
  }
}

/* --- Mobile Portrait Small (< 480px) --- */
@media (max-width: 479px) {
  .hm-header-inner {
    height: 64px;
  }
  
  .hm-brand-logo svg {
    width: 46px;
    height: 52px;
  }
  
  .hm-brand-logo span {
    font-size: 18px;
  }

  .hm-btn-apply {
    padding: 8px 16px;
    font-size: 12.5px;
  }

  .hm-btn-lang {
    padding: 7px 12px;
    font-size: 12px;
  }
}
