/* ===================== HMI FOOTER (namespaced: hmi-ftr-*) ===================== */
.hmi-ftr * { box-sizing: border-box; }

/* Remove the default focus/click box (outline & tap highlight) inside the footer */
.hmi-ftr a,
.hmi-ftr button {
  outline: none;
  -webkit-tap-highlight-color: transparent;
}
.hmi-ftr a:focus,
.hmi-ftr button:focus,
.hmi-ftr a:active,
.hmi-ftr button:active {
  outline: none;
  box-shadow: none;
}

.hmi-ftr {
  background: #1B3A5C;
  color: #fff;
  font-family: 'Inter', Arial, sans-serif;
}

/* ── TOP SECTION ── */
.hmi-ftr-top {
  display: flex;
  align-items: flex-start;
  padding: 56px 96px 52px 96px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

/* LEFT: logo + contact */
.hmi-ftr-brand {
  flex: 0 0 380px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.hmi-ftr-logo {
  margin-bottom: 8px;
}
.hmi-ftr-logo img {
  max-height: 75px;
  width: auto;
  display: block;
}

.hmi-ftr-address {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: rgba(255, 255, 255, 0.85);
  font-size: 14px;
  line-height: 1.6;
}
.hmi-ftr-address img {
  flex-shrink: 0;
  margin-top: 2px;
  opacity: 0.85;
}

.hmi-ftr-phone {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
}
.hmi-ftr-phone:hover { color: #fff; }
.hmi-ftr-phone img {
  flex-shrink: 0;
  opacity: 0.85;
}

.hmi-ftr-social {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-top: 4px;
}
.hmi-ftr-social a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  transition: opacity 0.15s;
  display: flex;
  align-items: center;
  opacity: 0.85;
}
.hmi-ftr-social a:hover { opacity: 1; }
.hmi-ftr-social img {
  width: 22px;
  height: 22px;
  display: block;
}

/* RIGHT: 3 nav columns */
.hmi-ftr-nav-grid {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding-left: 60px;
}
.hmi-ftr-nav-col {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.hmi-ftr-nav-col a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.5;
  transition: color 0.12s;
}
.hmi-ftr-nav-col a:hover { color: #fff; }

/* ── BOTTOM SECTION ── */
.hmi-ftr-bottom {
  padding: 36px 96px 28px 96px;
}
.hmi-ftr-bottom-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 14px;
}
.hmi-ftr-bottom-desc {
  font-size: 13px;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 28px;
}
.hmi-ftr-copyright {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.55);
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  flex-wrap: wrap;
  gap: 8px;
}
.hmi-ftr-copyright a {
  color: rgba(255, 255, 255, 0.75);
  text-decoration: underline;
}
.hmi-ftr-copyright a:hover { color: #fff; }

/* ── RESPONSIVE ── */

/* Large tablet / small desktop: tighten paddings, shrink brand column */
@media (max-width: 1200px) {
  .hmi-ftr-top {
    padding: 48px 48px 44px 48px;
  }
  .hmi-ftr-brand {
    flex: 0 0 300px;
  }
  .hmi-ftr-nav-grid {
    padding-left: 40px;
  }
  .hmi-ftr-bottom {
    padding: 32px 48px 24px 48px;
  }
}

/* Tablet landscape (up to 1024px wide) */
@media (max-width: 1024px) {
  .hmi-ftr-top {
    padding: 40px 32px 36px 32px;
  }
  .hmi-ftr-brand {
    flex: 0 0 240px;
  }
  .hmi-ftr-nav-grid {
    padding-left: 24px;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
  }
  .hmi-ftr-nav-col a {
    font-size: 13px;
  }
  .hmi-ftr-bottom {
    padding: 28px 32px 20px 32px;
  }
}

/* Phone landscape: any phone rotated sideways — targets height ≤ 700px to cover
   devices like 640px-height landscape (e.g. 949×640, 1024×640 viewports) */
@media (max-height: 700px) and (orientation: landscape) {
  .hmi-ftr-top {
    flex-direction: row;
    align-items: flex-start;
    padding: 20px 28px 16px 28px;
    gap: 0;
  }
  .hmi-ftr-brand {
    flex: 0 0 220px;
    gap: 12px;
  }
  .hmi-ftr-logo img { max-height: 44px; }
  .hmi-ftr-nav-grid {
    flex: 1;
    padding-left: 24px;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px 16px;
    width: auto;
  }
  .hmi-ftr-nav-col a { font-size: 12px; }
  .hmi-ftr-bottom {
    padding: 14px 28px 12px 28px;
  }
  .hmi-ftr-bottom-desc {
    font-size: 12px;
    line-height: 1.5;
    margin-bottom: 12px;
  }
  .hmi-ftr-bottom-label { margin-bottom: 8px; }
}

/* Tablet portrait: stacks at 768px */
@media (max-width: 768px) {
  .hmi-ftr-top {
    flex-direction: column;
    padding: 36px 28px 32px 28px;
    gap: 32px;
  }
  .hmi-ftr-brand {
    flex: none;
    width: 100%;
  }
  .hmi-ftr-nav-grid {
    width: 100%;
    padding-left: 0;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px 20px;
  }
  .hmi-ftr-bottom {
    padding: 24px 28px 20px 28px;
  }
  .hmi-ftr-copyright {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }
}

/* Mobile portrait (≤ 479px): single column */
@media (max-width: 479px) {
  .hmi-ftr-top {
    padding: 32px 20px 28px 20px;
    gap: 28px;
  }
  .hmi-ftr-nav-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .hmi-ftr-logo img { max-height: 56px; }
  .hmi-ftr-social { gap: 18px; }
  .hmi-ftr-bottom {
    padding: 20px 20px 16px 20px;
  }
  .hmi-ftr-bottom-label { font-size: 10px; }
  .hmi-ftr-bottom-desc { font-size: 12px; }
  .hmi-ftr-copyright { font-size: 12px; }
}

/* Very small phones (≤ 360px) */
@media (max-width: 360px) {
  .hmi-ftr-top { padding: 24px 16px 20px 16px; }
  .hmi-ftr-bottom { padding: 16px 16px 12px 16px; }
}
