/*
Theme Name: Hongxin Clean WordPress Theme
Theme URI: http://127.0.0.1/hongxin-wp-fresh/
Author: Codex
Description: Clean WordPress + WooCommerce integration for the Hongxin Technology frontend.
Version: 1.0.0
Text Domain: hongxin-clean-theme
*/

html,
body {
  margin: 0;
  min-height: 100%;
}

#root {
  min-height: 100vh;
}

/* Image-only homepage banner. */
.hongxin-minimal .home-hero {
  min-height: clamp(380px, 48vw, 720px);
  background-color: #071a35;
  background-image: url("dist/assets/images/home/hongxin-industrial-sensing-banner.png");
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
}

.hongxin-minimal .home-hero > * {
  display: none;
}

@media (max-width: 767px) {
  .hongxin-minimal .home-hero {
    min-height: 420px;
    background-position: 66% center;
  }
}

/* Contact-only footer layout. The React bundle still provides the contact
   details, while the theme removes the redundant sitemap columns. */
.hongxin-minimal footer > div:first-child {
  display: block;
  max-width: 1180px;
  padding-top: 48px;
  padding-bottom: 48px;
}

.hongxin-minimal footer > div:first-child > div:not(:first-child) {
  display: none;
}

.hongxin-minimal footer > div:first-child > div:first-child {
  display: grid;
  grid-template-columns: minmax(220px, 0.8fr) minmax(320px, 1.35fr) minmax(260px, 1fr);
  grid-template-rows: auto auto;
  align-items: center;
  column-gap: 56px;
  width: 100%;
}

.hongxin-minimal footer > div:first-child > div:first-child > button {
  grid-column: 1;
  grid-row: 1 / 3;
  margin-bottom: 0;
}

.hongxin-minimal footer > div:first-child > div:first-child > p {
  grid-column: 2;
  margin: 0;
}

.hongxin-minimal footer > div:first-child > div:first-child > p:first-of-type {
  margin-bottom: 10px;
  color: rgba(255, 255, 255, 0.92);
  font-size: 14px;
  font-weight: 600;
}

.hongxin-minimal footer > div:first-child > div:first-child > p:nth-of-type(2) {
  color: rgba(255, 255, 255, 0.58);
  line-height: 1.7;
}

.hongxin-minimal footer > div:first-child > div:first-child > div {
  grid-column: 3;
  grid-row: 1 / 3;
  margin-top: 0;
  padding-left: 32px;
  border-left: 1px solid rgba(255, 255, 255, 0.12);
}

.hongxin-minimal footer > div:first-child > div:first-child > div > div {
  padding: 5px 0;
  font-size: 13px;
}

@media (max-width: 767px) {
  .hongxin-minimal footer > div:first-child {
    padding-top: 36px;
    padding-bottom: 36px;
  }

  .hongxin-minimal footer > div:first-child > div:first-child {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
  }

  .hongxin-minimal footer > div:first-child > div:first-child > button {
    margin-bottom: 24px;
  }

  .hongxin-minimal footer > div:first-child > div:first-child > p:first-of-type {
    margin-bottom: 8px;
  }

  .hongxin-minimal footer > div:first-child > div:first-child > div {
    width: 100%;
    margin-top: 24px;
    padding-top: 18px;
    padding-left: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    border-left: 0;
  }
}
