/* ═══════════════════════════════════════
   RESPONSIVE.CSS — HMC GROUP
═══════════════════════════════════════ */


/* ══════════════════════════════════════
   1440px
══════════════════════════════════════ */
@media (min-width: 1441px) {
  .navbar { padding: 0 24px 0 8px; }
  .hero-content { padding: 0 60px; max-width: 760px; }
  .hero-scroll-indicator { left: 60px; }
  .intro-section { padding: 112px 120px 0; }
  .intro-top { gap: 100px; }
  .ecosystem-header { padding: 0 120px; }
  .eco-carousel { padding: 16px 120px 24px; }
  .journey-section { padding: 112px 120px; }
  .why-section { padding: 112px 120px; }
  .news-section { padding: 112px 120px; }
  .partners-header { padding: 0 120px; }
  .footer-top { padding: 72px 120px; }
  .footer-bottom { padding: 24px 120px; }
  .page-header { padding: 0 120px; }
}


/* ══════════════════════════════════════
   1280px
══════════════════════════════════════ */
@media (max-width: 1280px) {
  .navbar { padding: 0 32px; }
  .navbar-links a { font-size: 13px; padding: 6px 10px; }
  .hero-content { padding: 0 60px; }
  .hero-scroll-indicator { left: 60px; }
  .hero-title { font-size: 50px; }
  .intro-section { padding: 80px 60px 0; }
  .intro-top { gap: 60px; }
  .ecosystem-header { padding: 0 60px; }
  .eco-carousel { padding: 16px 60px 24px; }
  .journey-section { padding: 80px 60px; }
  .why-section { padding: 80px 60px; }
  .why-grid { gap: 60px; }
  .news-section { padding: 80px 60px; }
  .partners-header { padding: 0 60px; }
  .cta-half { padding: 60px 48px; }
  .footer-top { padding: 48px 60px; }
  .footer-bottom { padding: 20px 60px; }
  .page-header { padding: 0 60px; }
}


/* ══════════════════════════════════════
   1024px
══════════════════════════════════════ */
@media (max-width: 1024px) {

  .navbar { padding: 0 32px; height: 72px; }

  .navbar-links {
    display: none;
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    bottom: 72px;
    background: rgba(255,255,255,0.98);
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 32px 32px;
    gap: 4px;
    overflow-y: auto;
    z-index: 999;
    border-top: 1px solid var(--border);
    backdrop-filter: blur(8px);
  }

  .navbar-links.mobile-open { display: flex; }
  .navbar-links li { width: 100%; }

  .navbar-links a {
    display: block;
    font-size: 16px;
    font-weight: 500;
    color: var(--near-black);
    padding: 14px 0;
    border-bottom: 1px solid var(--border-light);
    border-radius: 0;
    width: 100%;
  }

  .navbar-links a::after { display: none; }
  .navbar-links a:hover,
  .navbar-links a.active { color: var(--navy); padding-left: 8px; }
  .navbar:not(.scrolled) .navbar-links a { color: var(--near-black); }
  .navbar:not(.scrolled) .navbar-links a:hover,
  .navbar:not(.scrolled) .navbar-links a.active { color: var(--navy); }

  .navbar-actions {
    display: none;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 20px 32px;
    background: var(--white);
    border-top: 1px solid var(--border);
    flex-direction: row;
    gap: 10px;
    z-index: 1000;
  }

  .navbar-actions.mobile-open { display: flex; }
  .navbar-actions .btn-lang,
  .navbar-actions .btn-primary,
  .navbar-actions .btn-primary-hero { flex: 1; text-align: center; justify-content: center; }
  .navbar:not(.scrolled) .btn-lang { color: var(--charcoal); border-color: var(--border); }
  .navbar-actions.mobile-open .btn-primary-hero { background: var(--navy) !important; border-color: var(--navy) !important; }

  .nav-hamburger {
    display: flex;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
  }

  .nav-hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--white);
    border-radius: 2px;
    transition: all 0.3s ease;
    transform-origin: center;
  }

  .navbar.scrolled .nav-hamburger span,
  .navbar--solid .nav-hamburger span { background: var(--navy); }
  .nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
  .nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .nav-hamburger.open span { background: var(--navy); }

  html[dir="rtl"] .navbar-links { flex-direction: column-reverse !important; align-items: flex-end; }
  html[dir="rtl"] .navbar-links a { text-align: right; width: 100%; }

  .hero-title { font-size: 44px; }
  .hero-content { padding: 0 40px; max-width: 560px; }
  .hero-scroll-indicator { left: 40px; }

  .intro-section { padding: 72px 40px 0; }
  .intro-top { grid-template-columns: 1fr; gap: 40px; }
  .intro-img { height: 360px; }

  .stats-strip { flex-wrap: wrap; }
  .stat-item { flex: 0 0 calc(25% - 1px); padding: 32px 20px; }
  .stat-divider { display: none; }

  .ecosystem-header { padding: 0 40px; }
  .eco-carousel { padding: 16px 40px 24px; }
  .eco-prev { left: 8px; }
  .eco-next { right: 8px; }

  .journey-section { padding: 72px 40px; }
  .journey-steps { flex-wrap: wrap; gap: 32px; justify-content: center; }
  .journey-line { display: none; }
  .journey-step { flex: 0 0 calc(25% - 24px); }

  .why-section { padding: 72px 40px; }
  .why-grid { grid-template-columns: 1fr; gap: 48px; }
  .why-img { height: 400px; position: static; }

  .partners-header { padding: 0 40px; }

  .news-section { padding: 72px 40px; }
  .news-grid { grid-template-columns: repeat(2, 1fr); }
  .news-grid .news-card:nth-child(3) { grid-column: span 2; max-width: 560px; margin: 0 auto; width: 100%; }

  .cta-split { grid-template-columns: 1fr; grid-template-rows: auto auto; }
  .cta-divider { width: 80%; height: 1px; margin: 0 auto; }
  .cta-half { padding: 56px 40px; }

  .footer-top { grid-template-columns: 1fr; padding: 48px 40px; gap: 40px; }
  .footer-bottom { padding: 20px 40px; }

  .page-header { padding: 0 40px; height: 220px; }
  .page-header-h1 { font-size: 38px; }

  .about-section { padding: 72px 40px; }
  .about-section--purpose { padding: 48px 40px; }
  .vmv-section { padding: 72px 40px; }
  .milestones-section { padding: 72px 40px; }
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .about-img { height: 360px; }
  .vmv-top { grid-template-columns: 1fr; }
  .vmv-values-grid { grid-template-columns: repeat(3, 1fr); }

  /* ── Milestones — vertical timeline ── */
  .ms-timeline-wrap { padding: 0 40px 0 20px; }
  .ms-items {
    flex-direction: column;
    align-items: flex-start;
    height: auto;
    gap: 0;
    padding-left: 24px;
    position: relative;
  }
  .ms-line {
    left: 20px;
    right: auto;
    width: 2px;
    top: 0;
    bottom: 0;
    height: 100%;
  }
  .ms-line-fill { width: 100% !important; height: 0%; transition: height 1.8s ease; }
  .ms-item {
    flex-direction: row !important;
    align-items: center;
    flex: none;
    width: 100%;
    height: auto;
    gap: 16px;
    padding: 20px 0;
    position: relative;
  }
  .ms-text-top, .ms-text-bottom {
    height: auto !important;
    padding: 0 !important;
    display: flex !important;
    flex-direction: column;
    align-items: flex-start !important;
    text-align: left !important;
    justify-content: center;
    visibility: visible !important;
  }
  .ms-empty { display: none !important; }
  .ms-dot {
    flex-shrink: 0;
    position: absolute;
    left: -23px;
    margin: 0;
  }
  .ms-year { font-size: 20px; margin-bottom: 4px; }
  .ms-title { font-size: 12px; max-width: 220px; }

  html[dir="rtl"] .about-badge { left: auto; right: -16px; }

  .eco-grid-section { padding: 72px 40px; }
  .eco-journey-section { padding: 72px 40px; }
  .eco-sectors-section { padding: 72px 40px; }
  .eco-num-grid { grid-template-columns: repeat(3, 1fr); }
  .sectors-line { display: none; }
  .sector-left { flex-direction: column; padding-right: 0; text-align: center; }
  .sector-right { flex-direction: column; padding-left: 0; text-align: center; }
  .sector-left .sector-content { text-align: center; }
  .sector-right .sector-content { text-align: center; }
  .sector-node { position: static; transform: none; margin: 0 auto; }
  .sector-step { flex-direction: column; align-items: center; gap: 16px; padding: 24px 0; border-bottom: 1px solid var(--border); }
  .sector-content p { margin: 0 auto; }
  .journey-row { flex-wrap: wrap; justify-content: center; }
  .flow-box { white-space: normal; text-align: center; }

  .companies-section { padding: 72px 40px; }
  .companies-grid { grid-template-columns: repeat(3, 1fr); }
  .companies-grid-last { grid-template-columns: repeat(4, 1fr); }

  .sister-section { padding: 72px 40px; }
  .sister-grid { grid-template-columns: 1fr; gap: 48px; }
  .sister-logo-float { max-width: 260px; }
  .sister-name { font-size: 30px; }

  .partners-section { padding: 72px 40px; }
  .partners-grid { grid-template-columns: repeat(3, 1fr); }

  .news-section { padding: 72px 40px; }
  .news-row-last { gap: 24px; }
  .news-row-last .news-card { width: calc(50% - 12px); }

  .careers-intro-section { padding: 72px 40px 48px; }
  .careers-teams-section { padding: 0 40px 72px; }
  .careers-form-section { padding: 72px 40px; }
  .careers-teams-grid { grid-template-columns: repeat(4, 1fr); }

  .contact-section { padding: 72px 40px; }
  .contact-grid { grid-template-columns: 1fr; gap: 48px; }
  .map-section { height: 360px; }
}


/* ══════════════════════════════════════
   768px
══════════════════════════════════════ */
@media (max-width: 768px) {

  .navbar { padding: 0 24px; }
  .navbar-links { padding: 24px 24px; top: 72px; }
  .navbar-actions { padding: 16px 24px; }

  .hero-title { font-size: 38px; }
  .hero-desc { font-size: 13px; }
  .hero-content { padding: 0 24px; max-width: 100%; }
  .hero-scroll-indicator { left: 24px; }
  .hero-actions { flex-direction: column; gap: 12px; }
  .hero-actions a { width: fit-content; }

  .intro-section { padding: 60px 24px 0; }
  .intro-img { height: 280px; }

  .stat-item { flex: 0 0 calc(33.33% - 1px); padding: 28px 16px; }
  .stat-num { font-size: 24px; }

  .ecosystem-section { padding: 72px 0; }
  .ecosystem-header { padding: 0 24px; margin-bottom: 36px; }
  .eco-carousel { padding: 16px 24px 24px; gap: 16px; }
  .eco-card { min-width: 220px; max-width: 220px; }

  .journey-section { padding: 60px 24px; }
  .journey-step { flex: 0 0 calc(33.33% - 16px); }
  .journey-icon { width: 64px; height: 64px; }
  .journey-icon img { width: 28px; height: 28px; }

  .why-section { padding: 60px 24px; }
  .why-img { height: 300px; }

  .partners-section { padding: 60px 0; }
  .partners-header { padding: 0 24px; margin-bottom: 36px; }
  .partner-logo { width: 180px; height: 100px; }
  .partner-logo img { max-width: 130px; max-height: 60px; }

  .news-section { padding: 60px 24px; }
  .news-grid { grid-template-columns: 1fr; }
  .news-grid .news-card:nth-child(3) { grid-column: span 1; max-width: 100%; }

  .cta-half { padding: 48px 24px; }
  .cta-title { font-size: 24px; }

  .footer-top { padding: 40px 24px; }
  .footer-nav { grid-template-columns: repeat(2, 1fr); gap: 28px; }
  .footer-bottom { padding: 20px 24px; flex-direction: column; gap: 12px; text-align: center; }
  .footer-social { justify-content: center; }

  .page-header { padding: 0 24px; height: 200px; }
  .page-header-h1 { font-size: 32px; }
  .page-header-sub { font-size: 13px; }

  .section-h2 { font-size: 28px; }

  .about-section { padding: 60px 24px; }
  .about-section--purpose { padding: 40px 24px; }
  .vmv-section { padding: 60px 24px; }
  .milestones-section { padding: 60px 24px; }
  .about-img { height: 280px; }
  .about-badge { bottom: -12px; left: -8px; }
  html[dir="rtl"] .about-badge { right: -8px; }
  .vmv-card { padding: 28px; }
  .vmv-values { padding: 28px; }
  .vmv-values-grid { grid-template-columns: repeat(2, 1fr); }

  /* ── Milestones 768px ── */
  .ms-timeline-wrap { padding: 0 24px 0 16px; }
  .ms-year { font-size: 18px; }
  .ms-title { font-size: 12px; }

  .eco-grid-section { padding: 60px 24px; }
  .eco-journey-section { padding: 60px 24px; }
  .eco-sectors-section { padding: 60px 24px; }
  .eco-num-grid { grid-template-columns: repeat(2, 1fr); }
  .eco-grid-header { margin-bottom: 48px; }

  .companies-section { padding: 60px 24px; }
  .companies-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .companies-grid-last { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .company-card { padding: 20px 12px; }
  .company-card-logo { width: 100%; height: 80px; }
  .company-card-logo img { max-width: 120px; max-height: 60px; }
  .companies-grid .company-card:last-child:nth-child(odd) { grid-column: span 2; }
  .modal-header { flex-direction: column; text-align: center; }
  .modal-logo { width: 100px; height: 100px; }

  .sister-section { padding: 60px 24px; }
  .sister-logo-float { max-width: 220px; }
  .sister-name { font-size: 26px; }

  .partners-section { padding: 60px 24px; }
  .partners-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .partner-item { height: 120px; padding: 20px 16px; }
  .partner-item img { max-height: 70px; }
  .partners-grid .partner-item:last-child:nth-child(odd) { grid-column: span 2; }

  .news-section { padding: 60px 24px; }
  .news-grid { grid-template-columns: 1fr; gap: 20px; }
  .news-row-last { flex-direction: column; gap: 20px; }
  .news-row-last .news-card { width: 100%; }
  .news-card-img { height: 200px; }

  .careers-intro-section { padding: 60px 24px 40px; }
  .careers-teams-section { padding: 0 24px 60px; }
  .careers-form-section { padding: 60px 24px; }
  .careers-teams-grid { grid-template-columns: repeat(2, 1fr); }
  .form-row { grid-template-columns: 1fr; gap: 16px; }

  .contact-section { padding: 60px 24px; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .contact-card { padding: 16px 20px; }
  .map-section { height: 300px; }
}


/* ══════════════════════════════════════
   480px
══════════════════════════════════════ */
@media (max-width: 480px) {

  .navbar { padding: 0 16px; }
  .navbar-logo-img { height: 44px; }
  .navbar-links { padding: 20px 16px; top: 72px; }
  .navbar-links a { font-size: 15px; }
  .navbar-actions { padding: 14px 16px; }

  .hero { min-height: 600px; }
  .hero-content { padding: 0 16px; padding-top: 80px; }
  .hero-scroll-indicator { left: 16px; bottom: 24px; }
  .hero-title { font-size: 32px; }
  .hero-subtitle { font-size: 13px; }
  .hero-desc { font-size: 12px; margin-bottom: 28px; }
  .hero-actions a { font-size: 13px; padding: 10px 20px; }

  .intro-section { padding: 48px 16px 0; }
  .intro-img { height: 240px; }
  .intro-text { font-size: 13px; }

  .stats-strip { border-radius: 12px; }
  .stat-item { flex: 0 0 50%; padding: 24px 16px; }
  .stat-num { font-size: 22px; }
  .stat-label { font-size: 9px; }

  .ecosystem-section { padding: 56px 0; }
  .ecosystem-header { padding: 0 16px; margin-bottom: 28px; }
  .eco-carousel { padding: 12px 16px 20px; gap: 12px; }
  .eco-card { min-width: 200px; max-width: 200px; padding: 24px 18px; }
  .eco-card-title { font-size: 14px; }
  .eco-card-text { font-size: 11px; }
  .eco-prev { left: 4px; width: 36px; height: 36px; }
  .eco-next { right: 4px; width: 36px; height: 36px; }

  .journey-section { padding: 48px 16px; }
  .journey-header { margin-bottom: 40px; }
  .journey-step { flex: 0 0 calc(50% - 12px); }
  .journey-icon { width: 56px; height: 56px; }
  .journey-icon img { width: 24px; height: 24px; }
  .journey-label { font-size: 10px; max-width: 70px; }

  .why-section { padding: 48px 16px; }
  .why-img { height: 240px; }
  .acc-title { font-size: 14px; }
  .acc-body p { font-size: 13px; }

  .partners-section { padding: 48px 0; }
  .partners-header { padding: 0 16px; }
  .partner-logo { width: 160px; height: 88px; }
  .partner-logo img { max-width: 110px; max-height: 50px; }

  .news-section { padding: 48px 16px; }
  .news-card-img { height: 200px; }

  .cta-half { padding: 40px 16px; }
  .cta-title { font-size: 22px; }
  .cta-text { font-size: 13px; }

  .footer-top { padding: 36px 16px; text-align: center; }
  .footer-nav { grid-template-columns: 1fr; gap: 24px; }
  .footer-logo-img { height: 80px; }
  .footer-bottom { padding: 16px; }
  .footer-brand { display: flex; justify-content: center; }
  .footer-nav-col { align-items: center; }
  .footer-contact-item { justify-content: center; }

  .page-header { padding: 0 16px; height: 180px; }
  .page-header-h1 { font-size: 26px; }
  .page-header-sub { font-size: 12px; }

  .section-h2 { font-size: 24px; }
  .section-sub { font-size: 13px; }
  .eyebrow { font-size: 10px; }

  .about-section { padding: 48px 16px; }
  .about-section--purpose { padding: 32px 16px; }
  .vmv-section { padding: 48px 16px; }
  .milestones-section { padding: 48px 16px; }
  .about-img { height: 240px; }
  .vmv-top { gap: 16px; }
  .vmv-card { padding: 24px 20px; }
  .vmv-card-title { font-size: 18px; }
  .vmv-values { padding: 24px 20px; }
  .vmv-values-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .value-item { padding: 18px 8px; }

  /* ── Milestones 480px ── */
  .ms-timeline-wrap { padding: 0 16px 0 12px; }
  .ms-year { font-size: 16px; }
  .ms-title { font-size: 11px; max-width: 180px; }

  .eco-grid-section { padding: 48px 16px; }
  .eco-journey-section { padding: 48px 16px; }
  .eco-sectors-section { padding: 48px 16px; }
  .eco-num-grid { grid-template-columns: repeat(2, 1fr); }
  .num-card { padding: 28px 16px 24px; }
  .num-card-number { font-size: 28px; }
  .num-card-name { font-size: 12px; }

  /* ── Ecosystem Journey Mobile ── */
  .journey-row { flex-direction: column; align-items: center; }
  .flow-item { flex-direction: column; align-items: center; width: 80%; }
  .flow-arrow-h { transform: rotate(90deg); width: 40px !important; height: 40px !important; }
  .flow-arrow-h svg { width: 40px !important; height: 40px !important; transform: rotate(0deg) !important; }
  .flow-arrow-start { width: 40px !important; height: 40px !important; }
  .flow-arrow-start svg { width: 40px !important; height: 40px !important; transform: rotate(90deg) !important; }
  .flow-arrow-start.visible { opacity: 0.4 !important; transform: translateY(0) !important; }
  .flow-arrow-start.active  { opacity: 1 !important; transform: translateY(0) !important; }

  .companies-section { padding: 48px 16px; }
  .companies-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .companies-grid-last { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .company-card { padding: 16px 10px; }
  .company-card-logo { width: 100%; height: 64px; }
  .company-card-logo img { max-width: 100px; max-height: 50px; }
  .companies-hmc-logo { width: 80px; height: 80px; }
  .modal-body { padding: 20px; }
  .modal-header { padding: 24px 20px 16px; }
  .modal-name { font-size: 17px; }

  .sister-section { padding: 48px 16px; }
  .sister-logo-float { max-width: 180px; }
  .sister-name { font-size: 22px; }
  .sister-text { font-size: 13px; }

  .partners-section { padding: 48px 16px; }
  .partners-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .partner-item { height: 100px; padding: 16px 12px; }
  .partner-item img { max-height: 56px; }

  .news-card-img { height: 180px; }
  .news-modal-box { width: 95%; }
  .news-modal-img { max-height: 280px; }

  .careers-intro-section { padding: 48px 16px 32px; }
  .careers-teams-section { padding: 0 16px 48px; }
  .careers-form-section { padding: 48px 16px; }
  .careers-teams-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .team-item { padding: 20px 12px; }
  .form-upload { padding: 28px 16px; }
  .form-btn { width: 100%; text-align: center; }

  .contact-section { padding: 48px 16px; }
  .form-title { font-size: 18px; }
  .contact-card-icon { width: 36px; height: 36px; }
  .contact-card-icon svg { width: 16px; height: 16px; }
  .map-section { height: 260px; }
  .form-submit { width: 100%; text-align: center; }
}


/* ══════════════════════════════════════
   360px
══════════════════════════════════════ */
@media (max-width: 360px) {

  .navbar-logo-img { height: 38px; }
  .hero-title { font-size: 28px; }
  .hero-desc { font-size: 12px; }
  .section-h2 { font-size: 22px; }
  .stat-item { flex: 0 0 50%; padding: 20px 12px; }
  .stat-num { font-size: 20px; }
  .journey-step { flex: 0 0 calc(50% - 8px); }
  .journey-icon { width: 48px; height: 48px; }
  .journey-icon img { width: 20px; height: 20px; }
  .eco-card { min-width: 180px; max-width: 180px; }
  .partner-logo { width: 140px; height: 80px; }
  .cta-half { padding: 32px 16px; }
  .cta-title { font-size: 20px; }
  .footer-top { padding: 28px 16px; }
  .footer-logo-img { height: 64px; }
  .page-header-h1 { font-size: 22px; }
}