@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.3.0/css/all.min.css');
@import url('https://fonts.googleapis.com/css2?family=Merriweather:opsz@18..144&family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');

/* #region GLOBAL STYLES */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    height: 100%;
    margin: 0;
    display: flex;
    flex-direction: column;
    font-size: 18px;
    color: #393938;
}

body {
    height: 100%;
    margin: 0;
    display: flex;
    flex-direction: column;
    font-family: 'Montserrat', sans-serif;
    font-weight: 300;
    padding: 0;
    background-color: #f6f1eb;
}

main {
    flex: 1;
    margin: 40px;
}

@media (max-width: 768px) {
  main {
    margin: 20px; 
  }
}

h1,
h2,
h3,
h4 {
    font-family: 'Merriweather', serif;
    font-weight: 400;
}

html[lang="zh-Hans"] h1,
html[lang="zh-Hans"] h2,
html[lang="zh-Hans"] h3,
html[lang="zh-Hans"] h4 {
  font-weight: 900;
  text-shadow: 0.1px 0 0 currentColor, 
               -0.1px 0 0 currentColor;
}

html[lang="zh-Hans"] .title-text h1 {
    font-weight: 400;
    text-shadow: none;
}

h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.behavelikeh1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

h2 {
    font-size: 2rem;
    margin-bottom: 15px;
}

.behavelikeh2 {
    font-size: 2rem;
    margin-bottom: 15px;
}

h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.behavelikeh3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

h4 {
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.behavelikeh4 {
    font-size: 1.2rem;
    margin-bottom: 5px;
}

p {
    margin-bottom: 15px;
}

/* #endregion */

/* #region HEADER */

header {
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 4px #d4d4d430;
}

/* NAVIGATION - my-nav.js */

/* --- A11y helper for the button label --- */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: white;
    padding: 20px 40px;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: inherit;
    gap: 10px;
    height: 50px;
}

.logo:hover {
    transform: scale(1.02);
}

.logo-text {
    display: flex;
    flex-direction: column;
    font-size: 14px;
    line-height: 1.2;
}

.tagline {
    font-weight: 400;
}

nav.site-nav {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: white;
    padding: 20px 40px;
}

/* Hamburger button (hidden on desktop by default) */
.nav-toggle {
    display: none;
    /* shown only on small screens */
    background: none;
    border: 0;
    padding: 8px;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    gap: 5px;
    flex-direction: column;
}

/* 3-line icon using pure CSS */
.nav-toggle .bar {
    display: block;
    width: 24px;
    height: 2px;
    background: #393938;
}

.nav-links {
    display: flex;
    gap: 60px;
    list-style-type: none;
}

.nav-links a {
    position: relative;
    text-decoration: none;
    color: #393938;
    font-weight: 400;
    font-size: 18px;
}

.nav-links a:hover {
    color: #aa0000;
    font-weight: 500;
    /* text-decoration: underline; */
}

.nav-links a.active::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 100%;
  height: 1px;
  background-color: currentColor;
}

@media (max-width: 768px) {
    .nav-toggle {
        display: inline-flex;
        /* show hamburger */
    }

    /* Stack the links in a dropdown panel */
    .nav-links {
        position: absolute;
        top: 100%;
        /* directly under the nav bar */
        left: 0;
        right: 0;
        display: grid;
        /* vertical stack with gaps */
        gap: 12px;
        background: rgba(255, 255, 255, 1);
        /* slight transparency */
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
        border-top: 1px solid rgba(0, 0, 0, 0.06);
        padding: 16px 40px;
        border-top: 1px solid #eee;

        /* collapsed state */
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        pointer-events: none;
        transition: max-height .3s ease, opacity .2s ease;
    }

    /* opened by JS toggle */
    .nav-links.open {
        max-height: 50vh;
        opacity: 1;
        pointer-events: auto;
    }
}

/* #endregion */

/* #region LANGUAGE TOGGLE */

.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px; /* small space between nav and language button */
}

.lang-switcher button {
  display: flex;
  align-items: center;
  gap: 4px;
  background-color: #d4d4d430;
  border: 1px solid #393938;
  padding: 5px 8px;
  cursor: pointer;
  font-size: 20px;
  border-radius: 5px;
  margin-left: 20px;
}

.lang-switcher .arrow {
  font-size: 0.8em;
  transition: transform 0.2s ease;
}

.lang-menu {
  position: absolute;
  right: 0;
  top: 100%;
  background: white;
  border: 1px solid #ccc;
  list-style: none;
  padding: 0;
  margin: 0;
}

.lang-menu li a {
  display: block;
  padding: 5px 10px;
  text-decoration: none;
}

.lang-menu li a:hover {
  background: #f0f0f0;
}

/* #endregion */

/* #region FOOTER */

footer {
    font-family: 'Montserrat', sans-serif;
    color: #393938;
    width: 100%;
    background-color: white;
    display: block;
}

.footer-content {
    display: flex;
    flex-direction: column;
    /* align-items: center; */
}

.footer-content a {
    text-decoration: none;
    color: #393938;
}

.footer-content a:hover {
    color: #aa0000;
    text-decoration: underline;
}

.footer-top {
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    /* align-items: center; */
    margin-top: 20px;
    width: 100%;
    /* max-width: 900px; */
    gap: 10px;
}

/* keep your bottom line centered */
.footer-bottom {
    font-size: 12px;
    margin: 20px 0;
    text-align: center;
}

@media (max-width: 918px) {
    .footer-top {
        flex-direction: column;
        /* stack on small screens */
        align-items: center;
    }

    .footer-top div {
        margin-bottom: 10px;
        /* space between stacked items */
    }
}

/* #endregion */

/* #region HOME/INDEX */

.home-container {
    display: flex;
    flex-direction: column;
    justify-content: space-evenly; /* distributes sections evenly */
    min-height: 100vh;            /* make it fill the viewport */
    text-align: center;
    margin: 0 auto;
    max-width: 100%;   
}

.home-container section {
    margin: 40px;
}

.title-text {
    align-content: center;
    text-align: center;
}

.title-text h2 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}


.intro-heading {
    background-color: #d4d4d430;
    margin: 0 auto;
    box-shadow: 0 0 2px 2px #d4d4d430;
    padding: 15px;
    font-weight: 500;
}

.mission {
    margin: 0 auto;
    text-align: center;
    /* font-weight: 500; */
    width: 70%;
}

button {
    margin: 10px;
    padding: 5px;
    font-size: 20px;
    border-radius: 5px;
    border: 2px solid #aa0000;
}

button a {
    color: #aa0000;
    text-decoration: none;
}

button:hover {
    transform: scale(1.02);
}

.core {
    text-align: center;
}

.core-card-container {
    display: flex;
    gap: 50px;
    margin-top: 20px;
    flex-wrap: wrap;
    justify-content: center;
}

.core-card {
    background-color: #d4d4d430;
    padding: 20px;
    box-shadow: 0 0 2px 2px #d4d4d430;
    max-width: 250px;
    font-weight: 500;
    align-content: center;
}

.core-card p {
    margin-bottom: 0px;
}

.centered-list {
  list-style: circle;
  padding: 0;
  margin: 2rem auto; 
  width: fit-content;   
}

.centered-list li {
  white-space: wrap;
  margin: 0.5rem 0;
  list-style-position: inside;
}

.centered-list li::marker {
    content: "✓ ";
}

/* #endregion */

/* #region ABOUT US */

.people {
    text-decoration: underline;
}

.about {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 20px;
}

.about-image-container {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.about-img {
    border-radius: 50%;
    box-shadow: 0 0 2px 2px #d4d4d430;
    width: 250px;
    height: 250px;
    object-fit: cover;
}

.about-text-container {
    flex: 2;
    align-content: center;
    text-align: center;
    color: #393938;
}

@media (max-width: 500px) {
    .about-img {
        width: 200px;
        height: 200px;        
    }
}

@media (max-width: 840px) {
  .about {
    flex-direction: column;
    align-items: center; 
  }

  .about-image-container {
    order: 1;
  }

  .about-text-container {
    order: 2;
    text-align: center; 
  }
}

.about-intro {
    background-color: #d4d4d430;
    margin: 0 auto;
    margin-top: 40px;
    box-shadow: 0 0 2px 2px #d4d4d430;
    padding: 20px;
    text-align: center;
    font-weight: 500;
}

.about-intro p {
    margin: 0px;
}

.what-we-bring {
    text-align: center;
}

.bring-card-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.bring-card {
    flex: 1 1 220px;
    max-width: 260px;
    text-align: center;
}

.bring-card p {
    font-weight: 400;
}

.stock_colors {
    text-align: center;
}

.fact_container {
    display: flex;
    justify-content: space-evenly;
}

.fact_box {
    background-color: #d4d4d430;
    width: 600px;
    height: auto;
    padding: 50px;
    text-align: center;
    margin-top: 20px;
    /* margin-bottom: 50px; */
}

/* html[lang="zh-Hans"] .strong {
    font-weight: 500;
    text-shadow: 0.01em 0 0 currentColor, 
               -0.01em 0 0 currentColor;
} */

html[lang="zh-Hans"] .thick {
    font-weight: 500;
    text-shadow: 0.01em 0 0 currentColor, 
               -0.01em 0 0 currentColor;
}

.italic {
    font-style: italic;
}

@media (max-width: 1400px) {
    .fact_box {
        width: 500px;
    }
}

@media (max-width: 1100px) {
    .fact_container {
        flex-direction: column;
        /* stack on small screens */
        align-items: center;
    }
}

@media (max-width: 830px) {
    .about-text-container {
        margin-right: 0;
        text-align: center;
    }
}

@media (max-width: 500px) {
    .fact_box {
        display: flex;
        flex-direction: column;
        width: 300px;
        padding: 20px;
    }

    .china_fact_box {
        width: 250px;
        display: flex;
        flex-direction: column;
        margin-left: 20px;
    }
}

/* #endregion */

/* #region SERVICES */

.services h1 {
    font-size: 2rem;
    margin-bottom: 20px;
    text-align: center;
}

.workwith_container {
    display: flex;
    flex-direction: row;
    justify-content: space-evenly;
}

.workwith-box {
    width: 360px;
    height: auto;
    text-align: left;
    margin-top: 20px;
}

.workwith-box p {
    text-align: center;
}

@media (max-width: 1050px) {
  .workwith_container {
    flex-direction: column;
    align-items: center;
  }

  .workwith-box {
    width: 100%;
    max-width: 360px;
  }
}

.industry-list {
  list-style: none;
  padding: 0;
}

.industry-list li {
  position: relative;
  padding-left: 18px;
  margin-bottom: 10px;
  color: #555;
}

.industry-list li::before {
  content: "–";
  position: absolute;
  left: 0;
  color: #8a6f4e;
}

.thick {
    font-weight: 600;
}

.china-active {
    text-decoration: underline;
}

.china-list {
  max-width: 620px;
  margin: 30px auto;
  list-style: none;
}

.china-list li {
  position: relative;
  padding-bottom: 16px;
  margin-bottom: 16px;
}

.china-list li::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;          /* change to 50% for centered */
  transform: translateX(-50%);
  width: 40px;      /* ← this controls length */
  height: 1px;
  background-color: rgba(0, 0, 0, 0.15);
}

.china-list li:last-child::after {
  display: none;
}

/* .why-choose-us {
    text-align: center;
}

.boxes {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px;
}

.box {
    background-color: #d4d4d430;
    padding: 20px;
    box-shadow: 0 0 2px 2px #d4d4d430;
    flex: 0 0 250px;
    margin-top: 20px;
    color: black;
}

.box h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
} */

/* #endregion */

/* #region CONTACT */

.contact {
    display: flex;
    flex-direction: column;
    justify-content: space-evenly; 
    min-height: 100vh;       
    text-align: center;
    margin: 0 auto;
    max-width: 80%;
}

.contact section {
    margin: 40px;
}

hr {
    border: none;
    border-top: 1px solid #d4d4d4;
    margin: 0;
}

.contact-details {
  max-width: 270px;
  margin-left: auto;
  margin-right: auto;
}

.contact-row {
  display: grid;
  grid-template-columns: 24px auto;
  column-gap: 14px;
  margin: 0 auto 12px auto; 
  text-align: left;       
}

.contact-row i {
  color: #b00000;
  justify-self: start;    
}

.contact-row span,
.contact-row a {
  text-align: left;
  color: inherit;
  text-decoration: none;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 50px;
}

@media (max-width: 768px) {
    .social-icons {
        flex-direction: column;
        align-items: center;
    }
}

.socials i {
    font-size: 3rem;
}

.fa-whatsapp {
    color: #25D366;
}

.socials-img {
    width: 100px;
    height: auto;
    border-radius: 5px;
    box-shadow: 0 0 1px 1px rgba(0, 0, 0, 0.1);
}

/* #endregion */