/* ============================================
   Hainan Jhono Industry and Trade Co., Ltd
   China Sourcing Agent - Static Site
   ============================================ */

/* --- Variables --- */
:root {
  --primary: #1a3a5c;
  --primary-light: #2c5f8a;
  --accent: #e8a838;
  --accent-hover: #d4922a;
  --text-dark: #222;
  --text-light: #666;
  --bg-light: #f5f7fa;
  --bg-white: #fff;
  --border: #e0e4e8;
  --shadow: 0 2px 12px rgba(0,0,0,0.08);
  --radius: 8px;
}

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  color: var(--text-dark);
  line-height: 1.6;
  background: var(--bg-white);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; transition: color .2s; }
a:hover { color: var(--accent); }
ul { list-style: none; }

/* --- Typography --- */
h1,h2,h3,h4,h5,h6 {
  font-weight: 700;
  line-height: 1.3;
  color: var(--primary);
}
h1 { font-size: 2.4rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.2rem; }
p { margin-bottom: 1rem; }
.section-title {
  text-align: center;
  margin-bottom: 3rem;
}
.section-title h2 {
  font-size: 2.2rem;
  margin-bottom: .5rem;
}
.section-title p {
  color: var(--text-light);
  font-size: 1.1rem;
}

/* --- Buttons --- */
.btn-primary {
  background: var(--accent);
  color: #fff;
  padding: .75rem 2rem;
  border-radius: var(--radius);
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: background .2s, transform .1s;
  display: inline-block;
}
.btn-primary:hover {
  background: var(--accent-hover);
  color: #fff;
  transform: translateY(-1px);
}
.btn-outline {
  border: 2px solid var(--primary);
  color: var(--primary);
  padding: .65rem 1.8rem;
  border-radius: var(--radius);
  font-weight: 600;
  background: transparent;
  cursor: pointer;
  transition: all .2s;
  display: inline-block;
}
.btn-outline:hover {
  background: var(--primary);
  color: #fff;
}

/* --- Container --- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* --- Navbar --- */
.navbar {
  background: var(--bg-white);
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 1000;
}
.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .8rem 1rem;
}
.navbar-brand {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary);
  white-space: nowrap;
}
.navbar-brand span {
  color: var(--accent);
}
.navbar-nav {
  display: flex;
  align-items: center;
  gap: .3rem;
}
.navbar-nav a {
  color: var(--text-dark);
  padding: .5rem .9rem;
  border-radius: var(--radius);
  font-size: .95rem;
  font-weight: 500;
  transition: all .2s;
}
.navbar-nav a:hover,
.navbar-nav a.active {
  background: var(--primary);
  color: #fff;
}
.nav-get-quote {
  background: var(--accent) !important;
  color: #fff !important;
  font-weight: 700;
}
.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--primary);
}

/* --- Hero --- */
.hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: #fff;
  padding: 5rem 0 4rem;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: rgba(255,255,255,0.04);
  border-radius: 50%;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 400px;
  height: 400px;
  background: rgba(255,255,255,0.03);
  border-radius: 50%;
}
.hero .container {
  position: relative;
  z-index: 1;
}
.hero-content {
  max-width: 700px;
}
.hero-badge {
  display: inline-block;
  background: rgba(255,255,255,0.15);
  padding: .3rem 1rem;
  border-radius: 50px;
  font-size: .85rem;
  margin-bottom: 1.2rem;
  border: 1px solid rgba(255,255,255,0.2);
}
.hero h1 {
  color: #fff;
  font-size: 2.6rem;
  margin-bottom: 1rem;
}
.hero h1 span { color: var(--accent); }
.hero p {
  font-size: 1.15rem;
  opacity: .9;
  margin-bottom: 2rem;
  max-width: 580px;
}
.hero-btns {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}
.hero-stats {
  display: flex;
  gap: 2.5rem;
  margin-top: 3rem;
  flex-wrap: wrap;
}
.hero-stat-item h3 {
  color: var(--accent);
  font-size: 2rem;
}
.hero-stat-item p {
  color: rgba(255,255,255,0.8);
  font-size: .9rem;
  margin: 0;
}

/* --- Section padding --- */
.section {
  padding: 4.5rem 0;
}
.bg-light { background: var(--bg-light); }
.bg-white { background: var(--bg-white); }

/* --- Cards --- */
.card {
  background: var(--bg-white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 2rem;
  transition: transform .2s, box-shadow .2s;
  border: 1px solid var(--border);
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}
.card-icon {
  width: 60px;
  height: 60px;
  background: rgba(26,58,92,0.08);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 1.2rem;
}
.card h4 {
  margin-bottom: .6rem;
}
.card p {
  color: var(--text-light);
  font-size: .95rem;
  margin: 0;
}

/* --- Services Grid --- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

/* --- Products Section --- */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}
.product-card {
  background: var(--bg-white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}
.product-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}
.product-card-body {
  padding: 1.5rem;
}
.product-card-body h4 {
  margin-bottom: .5rem;
}
.product-card-body p {
  color: var(--text-light);
  font-size: .9rem;
  margin: 0;
}

/* --- Process Steps --- */
.process-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}
.process-step {
  text-align: center;
  padding: 2rem 1.5rem;
}
.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  background: var(--primary);
  color: #fff;
  border-radius: 50%;
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 1rem;
}
.process-step h4 { margin-bottom: .6rem; }
.process-step p {
  color: var(--text-light);
  font-size: .9rem;
  margin: 0;
}

/* --- Testimonials --- */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}
.testimonial-card {
  background: var(--bg-white);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}
.testimonial-stars {
  color: #f5a623;
  font-size: 1rem;
  margin-bottom: .8rem;
}
.testimonial-card p {
  font-style: italic;
  color: var(--text-light);
  margin-bottom: 1rem;
}
.testimonial-author {
  font-weight: 600;
  color: var(--primary);
}

/* --- Stats --- */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.5rem;
}
.stat-item {
  text-align: center;
  padding: 2rem;
  background: rgba(255,255,255,0.08);
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,0.15);
}
.stat-item h3 {
  color: var(--accent);
  font-size: 2.2rem;
  margin-bottom: .3rem;
}
.stat-item p {
  color: rgba(255,255,255,0.8);
  margin: 0;
  font-size: .9rem;
}

/* --- Promises --- */
.promises-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}
.promise-card {
  background: var(--bg-white);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
  border-left: 4px solid var(--accent);
}
.promise-card h4 {
  margin-bottom: .8rem;
}
.promise-card p {
  color: var(--text-light);
  margin: 0;
}

/* --- About Section --- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}
.about-img {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  border-radius: var(--radius);
  height: 350px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.4);
  font-size: 5rem;
}

/* --- FAQ --- */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
}
.faq-item {
  background: var(--bg-white);
  border-radius: var(--radius);
  margin-bottom: 1rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  overflow: hidden;
}
.faq-question {
  padding: 1.2rem 1.5rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--bg-white);
  transition: background .2s;
}
.faq-question:hover { background: var(--bg-light); }
.faq-question .faq-toggle {
  color: var(--accent);
  font-size: 1.2rem;
  transition: transform .3s;
}
.faq-item.open .faq-toggle { transform: rotate(45deg); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height .3s ease;
  background: var(--bg-light);
}
.faq-answer-inner {
  padding: 1rem 1.5rem;
  color: var(--text-light);
  font-size: .95rem;
}
.faq-item.open .faq-answer { max-height: 400px; }

/* --- Contact --- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}
.contact-info-card {
  background: var(--primary);
  color: #fff;
  border-radius: var(--radius);
  padding: 2.5rem;
}
.contact-info-card h3 {
  color: #fff;
  margin-bottom: 1.5rem;
}
.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.2rem;
}
.contact-info-item .ci-icon {
  font-size: 1.2rem;
  margin-top: .1rem;
}
.contact-info-item p { margin: 0; color: rgba(255,255,255,0.85); }

/* --- Form --- */
.contact-form-wrapper {
  display: flex;
  justify-content: center;
  align-items: flex-start;
}
.contact-form-card {
  background: var(--bg-white);
  border-radius: 12px;
  padding: 2.5rem;
  box-shadow: 0 4px 24px rgba(0,0,0,0.10);
  border: 1px solid var(--border);
  width: 100%;
  max-width: 540px;
}
.contact-form-card h3 {
  margin-bottom: 1.5rem;
  color: var(--primary);
}
.form-group {
  margin-bottom: 1.25rem;
}
.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: .5rem;
  font-size: .9rem;
  color: var(--text-dark);
}
.form-control {
  width: 100%;
  height: 44px;
  padding: .65rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: 6px;
  font-size: .95rem;
  font-family: inherit;
  transition: border-color .2s, box-shadow .2s;
  background: var(--bg-white);
  color: var(--text-dark);
}
.form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(26,58,92,0.1);
}
textarea.form-control {
  height: auto;
  min-height: 120px;
  resize: vertical;
}
select.form-control {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23666' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}
.form-submit-btn {
  width: 100%;
  height: 48px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: background .2s;
  margin-top: .5rem;
}
.form-submit-btn:hover {
  background: var(--accent-hover);
}

/* --- Footer --- */
.footer {
  background: var(--primary);
  color: rgba(255,255,255,0.85);
  padding: 3rem 0 1.5rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 2rem;
}
.footer-brand h4 {
  color: #fff;
  font-size: 1.2rem;
  margin-bottom: .8rem;
}
.footer-brand p {
  font-size: .9rem;
  opacity: .7;
}
.footer-col h5 {
  color: #fff;
  margin-bottom: 1rem;
  font-size: 1rem;
}
.footer-col a {
  display: block;
  color: rgba(255,255,255,0.7);
  font-size: .9rem;
  padding: .3rem 0;
  transition: color .2s;
}
.footer-col a:hover { color: var(--accent); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 1.5rem;
  text-align: center;
  font-size: .85rem;
  opacity: .6;
}

/* --- WhatsApp Float --- */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  align-items: center;
  gap: 8px;
}
.whatsapp-float a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  background: #25D366;
  border-radius: 50%;
  box-shadow: 0 4px 16px rgba(37,211,102,0.4);
  transition: transform .2s, box-shadow .2s;
  color: #fff;
  font-size: 1.8rem;
  text-decoration: none;
}
.whatsapp-float a:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 20px rgba(37,211,102,0.5);
  color: #fff;
}

/* --- Page Header --- */
.page-header {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: #fff;
  padding: 3.5rem 0;
  text-align: center;
}
.page-header h1 {
  color: #fff;
  font-size: 2.2rem;
  margin-bottom: .5rem;
}
.page-header p {
  color: rgba(255,255,255,0.8);
  margin: 0;
  font-size: 1rem;
}
.breadcrumb {
  display: flex;
  justify-content: center;
  gap: .5rem;
  font-size: .9rem;
  margin-top: .8rem;
}
.breadcrumb a { color: rgba(255,255,255,0.7); }
.breadcrumb span { color: rgba(255,255,255,0.4); }

/* --- CTA Banner --- */
.cta-banner {
  background: linear-gradient(135deg, var(--accent) 0%, #f0b44a 100%);
  color: #fff;
  padding: 3rem 0;
  text-align: center;
}
.cta-banner h2 {
  color: #fff;
  margin-bottom: 1rem;
}
.cta-banner p {
  opacity: .9;
  margin-bottom: 1.5rem;
}

/* --- Responsive --- */
@media (max-width: 991px) {
  .navbar-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-white);
    flex-direction: column;
    padding: 1rem;
    box-shadow: var(--shadow);
    gap: .3rem;
  }
  .navbar-nav.open { display: flex; }
  .navbar-nav a { width: 100%; text-align: center; }
  .nav-toggle { display: block; }
  .about-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 767px) {
  h1 { font-size: 1.9rem; }
  h2 { font-size: 1.6rem; }
  .hero { padding: 3rem 0 2.5rem; }
  .hero h1 { font-size: 2rem; }
  .hero-stats { gap: 1.5rem; }
  .section { padding: 3rem 0; }
  .footer-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .form-row { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .contact-form-card {
    padding: 1.5rem;
  }
}
@media (max-width: 480px) {
  .hero-btns { flex-direction: column; }
  .hero-btns .btn-primary,
  .hero-btns .btn-outline { width: 100%; text-align: center; }
  .stats-grid { grid-template-columns: 1fr; }
}

/* ============================================
   Language Switcher
   ============================================ */
.lang-switcher {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-left: 1rem;
}
.lang-btn {
  padding: .3rem .6rem;
  border-radius: 4px;
  font-size: .85rem;
  font-weight: 600;
  cursor: pointer;
  border: 1.5px solid var(--primary);
  background: transparent;
  color: var(--primary);
  text-decoration: none;
  transition: all .2s;
  line-height: 1.4;
}
.lang-btn:hover {
  background: var(--primary);
  color: #fff;
}
.lang-btn.active {
  background: var(--primary);
  color: #fff;
}
