/* ============================================================
   HANGJI — Changchun Hangji Trading Co., Ltd.
   Light theme: warm white + deep ink + graphite charcoal + warm stone
   ============================================================ */

:root {
  --paper: #F8F7F3;
  --ink: #22262E;
  --graphite: #3B4351;
  --graphite-deep: #2B323D;
  --stone: #C7B893;
  --stone-soft: #DCD2B8;
  --mist: #E3E6EA;
  --mist-deep: #C7CDD6;
  --line: #D6D2C6;
  --white: #FFFFFF;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

/* --- body rule: literal 16px, solid colors only, strong contrast --- */
body {
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink);
  background-color: var(--paper);
  font-family: "Inter", "Helvetica Neue", Arial, sans-serif;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--graphite);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

ul {
  list-style: none;
}

::selection {
  background: var(--graphite);
  color: var(--white);
}

/* ---------------- Shared layout helpers ---------------- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 28px;
}

/* ---------------- Scroll reveal (safe without JS) ---------------- */
.fade-up {
  opacity: 1;
  transform: none;
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-up.pre {
  opacity: 0;
  transform: translateY(26px);
}

.fade-up.visible {
  opacity: 1;
  transform: none;
}

/* ---------------- Capsule navigation ---------------- */
.capsule-nav {
  position: sticky;
  top: 14px;
  z-index: 100;
  width: calc(100% - 32px);
  max-width: 1200px;
  margin: 14px auto 0;
  background-color: var(--paper);
  border: 1px solid var(--graphite);
  border-radius: 999px;
  padding: 10px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  transition: box-shadow 0.3s ease;
}

.capsule-nav.is-scrolled {
  box-shadow: 0 8px 24px rgba(59, 67, 81, 0.14);
}

.capsule-nav .nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
}

.capsule-nav .brand-mark {
  width: 20px;
  height: 20px;
  background-color: var(--graphite);
  border-radius: 3px;
  flex: 0 0 auto;
}

.capsule-nav .brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.capsule-nav .brand-wordmark {
  font-weight: 800;
  font-size: 16px;
  letter-spacing: 0.18em;
  color: var(--ink);
  font-family: "Space Grotesk", "Inter", sans-serif;
}

.capsule-nav .brand-caption {
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--graphite);
  text-transform: uppercase;
}

.capsule-nav .nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1 1 auto;
  justify-content: center;
}

.capsule-nav .nav-links a {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  padding: 8px 16px;
  border-radius: 999px;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.capsule-nav .nav-links a:hover {
  background-color: var(--mist);
  text-decoration: none;
}

.capsule-nav .nav-links a.active {
  background-color: var(--graphite);
  color: var(--white);
}

.capsule-nav .nav-cta {
  flex: 0 0 auto;
}

.capsule-nav .nav-cta a {
  display: inline-block;
  background-color: var(--graphite);
  color: var(--white);
  font-size: 14px;
  font-weight: 700;
  padding: 10px 20px;
  border-radius: 999px;
  letter-spacing: 0.04em;
  transition: background-color 0.2s ease;
}

.capsule-nav .nav-cta a:hover {
  background-color: var(--graphite-deep);
  text-decoration: none;
}

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  background-color: var(--graphite);
  border: none;
  border-radius: 999px;
  cursor: pointer;
  padding: 0 10px;
  flex: 0 0 auto;
}

.nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background-color: var(--white);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.capsule-nav.open .nav-toggle span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.capsule-nav.open .nav-toggle span:nth-child(2) {
  opacity: 0;
}

.capsule-nav.open .nav-toggle span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile drop panel */
.mobile-panel {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background-color: var(--paper);
  border: 1px solid var(--graphite);
  border-radius: 24px;
  padding: 18px;
  flex-direction: column;
  gap: 6px;
  box-shadow: 0 18px 40px rgba(59, 67, 81, 0.18);
}

.mobile-panel a {
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  padding: 12px 16px;
  border-radius: 14px;
}

.mobile-panel a:hover,
.mobile-panel a.active {
  background-color: var(--graphite);
  color: var(--white);
  text-decoration: none;
}

.mobile-panel .panel-cta {
  margin-top: 8px;
  text-align: center;
}

.mobile-panel .panel-cta a {
  display: block;
  background-color: var(--graphite);
  color: var(--white);
}

.capsule-nav.open .mobile-panel {
  display: flex;
}

/* ---------------- Ribbon hero ---------------- */
.ribbon-hero {
  background-color: var(--paper);
  padding: 96px 0 0;
  overflow: hidden;
}

.ribbon-hero .hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 28px 88px;
}

.ribbon-hero .eyebrow-chip {
  display: inline-block;
  background-color: var(--graphite);
  color: var(--white);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 9px 18px;
  border-radius: 999px;
  margin-bottom: 28px;
}

.ribbon-hero h1 {
  font-family: "Space Grotesk", "Inter", sans-serif;
  font-size: 64px;
  line-height: 1.05;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
  max-width: 980px;
  margin-bottom: 26px;
}

.ribbon-hero h1 .accent-line {
  color: var(--graphite);
}

.ribbon-hero .hero-sub {
  font-size: 19px;
  line-height: 1.75;
  color: var(--ink);
  max-width: 720px;
  margin-bottom: 38px;
}

.ribbon-hero .hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 10px;
}

.btn {
  display: inline-block;
  font-size: 16px;
  font-weight: 700;
  padding: 15px 30px;
  border-radius: 999px;
  border: 2px solid var(--graphite);
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.btn-solid {
  background-color: var(--graphite);
  color: var(--white);
}

.btn-solid:hover {
  background-color: var(--graphite-deep);
  color: var(--white);
  text-decoration: none;
}

.btn-outline {
  background-color: transparent;
  color: var(--graphite);
}

.btn-outline:hover {
  background-color: var(--graphite);
  color: var(--white);
  text-decoration: none;
}

.btn-white {
  background-color: var(--white);
  color: var(--graphite);
  border-color: var(--white);
}

.btn-white:hover {
  background-color: var(--stone);
  color: var(--ink);
  text-decoration: none;
}

/* Slanted graphite ribbon at the bottom of the hero */
.hero-ribbon {
  transform: skewY(-1.5deg);
  background-color: var(--graphite);
  padding: 30px 0;
}

.hero-ribbon p {
  transform: skewY(1.5deg);
  color: var(--white);
  font-family: "Space Grotesk", "Inter", sans-serif;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-align: center;
}

/* ---------------- Section headings ---------------- */
.section-head {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 28px;
  margin-bottom: 46px;
}

.section-kicker {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--graphite);
  background-color: var(--stone);
  padding: 7px 14px;
  border-radius: 999px;
  margin-bottom: 16px;
}

.section-head h2 {
  font-family: "Space Grotesk", "Inter", sans-serif;
  font-size: 42px;
  line-height: 1.15;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 14px;
}

.section-head p {
  font-size: 17px;
  color: var(--ink);
  max-width: 780px;
}

/* ---------------- Lane rows section ---------------- */
.lane-section {
  background-color: var(--paper);
  padding: 96px 0;
}

.lane-rows {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 28px;
}

.lane-row {
  padding: 40px 0;
  display: flex;
  align-items: flex-start;
  gap: 24px;
  position: relative;
}

.lane-row + .lane-row {
  border-top: 2px dashed var(--graphite);
}

.lane-row .lane-mark {
  width: 14px;
  height: 14px;
  background-color: var(--graphite);
  border-radius: 2px;
  flex: 0 0 auto;
  margin-top: 9px;
}

.lane-row .lane-body {
  flex: 1 1 auto;
}

.lane-row h3 {
  font-family: "Space Grotesk", "Inter", sans-serif;
  font-size: 24px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 8px;
}

.lane-row p {
  font-size: 16px;
  color: var(--ink);
  max-width: 880px;
}

.lane-row .lane-tag {
  flex: 0 0 auto;
  background-color: var(--stone);
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 8px 16px;
  border-radius: 999px;
  margin-top: 6px;
}

/* ---------------- Tabbed block section ---------------- */
.tab-section {
  background-color: var(--mist);
  padding: 96px 0;
}

.tab-block {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 28px;
}

.tab-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 30px;
  border-bottom: 1px solid var(--mist-deep);
  padding-bottom: 22px;
}

.tab-btn {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  background-color: transparent;
  border: 1px solid var(--graphite);
  border-radius: 999px;
  padding: 12px 24px;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.tab-btn:hover {
  background-color: var(--stone);
  border-color: var(--graphite);
}

.tab-btn.active {
  background-color: var(--graphite);
  color: var(--white);
}

.tab-panel {
  display: none;
  background-color: var(--paper);
  border: 1px solid var(--graphite);
  border-radius: 18px;
  padding: 40px;
}

.tab-panel.active {
  display: block;
}

.tab-panel h3 {
  font-family: "Space Grotesk", "Inter", sans-serif;
  font-size: 26px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 12px;
}

.tab-panel > p {
  font-size: 16px;
  color: var(--ink);
  margin-bottom: 22px;
  max-width: 880px;
}

.tab-panel ul {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px 28px;
}

.tab-panel li {
  position: relative;
  padding-left: 26px;
  font-size: 15px;
  color: var(--ink);
}

.tab-panel li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 12px;
  height: 12px;
  background-color: var(--graphite);
  border-radius: 2px;
}

/* ---------------- Partner strip ---------------- */
.partner-strip {
  background-color: var(--paper);
  padding: 96px 0;
}

.partner-track {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 28px;
  display: flex;
  justify-content: center;
  gap: 22px;
  flex-wrap: wrap;
}

.partner-tile {
  width: 168px;
  height: 168px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-family: "Space Grotesk", "Inter", sans-serif;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 12px;
}

.partner-tile.solid {
  background-color: var(--graphite);
  color: var(--white);
}

.partner-tile.stone {
  background-color: var(--stone);
  color: var(--ink);
}

/* ---------------- CTA band ---------------- */
.cta-band {
  background-color: var(--graphite);
  padding: 88px 0;
}

.cta-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 28px;
  text-align: center;
}

.cta-inner h2 {
  font-family: "Space Grotesk", "Inter", sans-serif;
  font-size: 40px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 16px;
}

.cta-inner p {
  font-size: 17px;
  color: var(--white);
  max-width: 640px;
  margin: 0 auto 32px;
}

/* ---------------- Lane footer ---------------- */
.lane-footer {
  background-color: var(--paper);
  border-top: 2px solid var(--graphite);
  padding: 46px 0 26px;
}

.lane-footer .footer-row-1 {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 28px 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  flex-wrap: wrap;
}

.lane-footer .footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.lane-footer .brand-mark {
  width: 18px;
  height: 18px;
  background-color: var(--graphite);
  border-radius: 3px;
}

.lane-footer .brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.lane-footer .brand-wordmark {
  font-family: "Space Grotesk", "Inter", sans-serif;
  font-weight: 800;
  font-size: 16px;
  letter-spacing: 0.18em;
  color: var(--ink);
}

.lane-footer .brand-caption {
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--graphite);
  text-transform: uppercase;
}

.lane-footer .footer-links {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.lane-footer .footer-links a {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}

.lane-footer .footer-links a:hover {
  color: var(--graphite);
  text-decoration: underline;
}

.lane-footer .footer-diamond {
  width: 8px;
  height: 8px;
  background-color: var(--graphite);
  transform: rotate(45deg);
  flex: 0 0 auto;
}

.lane-footer .footer-contact {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: 0.02em;
}

.lane-footer .footer-row-2 {
  border-top: 1px solid var(--line);
}

.lane-footer .footer-legal {
  max-width: 1200px;
  margin: 0 auto;
  padding: 22px 28px 0;
  text-align: center;
  font-size: 13px;
  color: var(--ink);
}

.lane-footer .footer-legal a {
  color: var(--graphite);
  font-weight: 600;
}

/* ---------------- Secondary page hero (services / contact) ---------------- */
.page-hero {
  background-color: var(--paper);
  padding: 84px 0 64px;
}

.page-hero .page-heading {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 28px;
}

.page-hero .eyebrow-chip {
  display: inline-block;
  background-color: var(--graphite);
  color: var(--white);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 9px 18px;
  border-radius: 999px;
  margin-bottom: 24px;
}

.page-hero h1 {
  font-family: "Space Grotesk", "Inter", sans-serif;
  font-size: 52px;
  line-height: 1.08;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 20px;
  max-width: 880px;
}

.page-hero p {
  font-size: 18px;
  color: var(--ink);
  max-width: 760px;
}

/* ---------------- Services page ---------------- */
.services-list {
  background-color: var(--paper);
  padding: 70px 0 40px;
}

.service-block {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 28px;
}

.service-item {
  display: flex;
  gap: 26px;
  padding: 46px 0;
  border-top: 2px dashed var(--graphite);
}

.service-item:first-child {
  border-top: none;
}

.service-item .service-index {
  flex: 0 0 auto;
  width: 46px;
  height: 46px;
  background-color: var(--graphite);
  color: var(--white);
  font-family: "Space Grotesk", "Inter", sans-serif;
  font-size: 18px;
  font-weight: 700;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.service-item .service-body {
  flex: 1 1 auto;
}

.service-item h2 {
  font-family: "Space Grotesk", "Inter", sans-serif;
  font-size: 28px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 10px;
}

.service-item p {
  font-size: 16px;
  color: var(--ink);
  max-width: 900px;
}

/* Process overview band */
.process-band {
  background-color: var(--mist);
  padding: 88px 0;
}

.process-steps {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 28px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.process-step {
  background-color: var(--paper);
  border: 1px solid var(--graphite);
  border-radius: 14px;
  padding: 26px;
}

.process-step .step-num {
  display: inline-block;
  background-color: var(--graphite);
  color: var(--white);
  font-family: "Space Grotesk", "Inter", sans-serif;
  font-size: 14px;
  font-weight: 700;
  border-radius: 999px;
  padding: 4px 14px;
  margin-bottom: 14px;
}

.process-step h3 {
  font-family: "Space Grotesk", "Inter", sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 8px;
}

.process-step p {
  font-size: 14px;
  color: var(--ink);
}

/* ---------------- Contact page ---------------- */
.contact-section {
  background-color: var(--paper);
  padding: 70px 0 90px;
}

.contact-grid {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 28px;
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 44px;
  align-items: start;
}

.contact-info h2,
.contact-form-wrap h2 {
  font-family: "Space Grotesk", "Inter", sans-serif;
  font-size: 30px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 18px;
}

.contact-info p {
  font-size: 16px;
  color: var(--ink);
  margin-bottom: 18px;
}

.info-card {
  background-color: var(--mist);
  border: 1px solid var(--graphite);
  border-radius: 14px;
  padding: 24px;
  margin-bottom: 18px;
}

.info-card h3 {
  font-family: "Space Grotesk", "Inter", sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--graphite);
  margin-bottom: 8px;
  letter-spacing: 0.04em;
}

.info-card p {
  font-size: 15px;
  margin-bottom: 4px;
}

.info-card a {
  color: var(--graphite);
  font-weight: 600;
}

.contact-form-wrap {
  background-color: var(--mist);
  border: 1px solid var(--graphite);
  border-radius: 18px;
  padding: 36px;
}

.form-field {
  margin-bottom: 18px;
}

.form-field label {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 8px;
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  background-color: var(--paper);
  border: 1px solid var(--graphite);
  border-radius: 10px;
  padding: 13px 16px;
  font-size: 15px;
  color: var(--ink);
  font-family: inherit;
}

.form-field input:focus,
.form-field textarea:focus {
  outline: 2px solid var(--graphite);
  outline-offset: 1px;
}

.form-field textarea {
  min-height: 150px;
  resize: vertical;
}

.form-note {
  font-size: 13px;
  color: var(--ink);
  margin-top: 14px;
}

.form-status {
  display: none;
  margin-top: 16px;
  padding: 14px 18px;
  border-radius: 10px;
  background-color: var(--stone);
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
  border: 1px solid var(--graphite);
}

.form-status.show {
  display: block;
}

/* FAQ on contact page */
.faq-block {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 28px;
}

.faq-block h2 {
  font-family: "Space Grotesk", "Inter", sans-serif;
  font-size: 30px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 24px;
}

.faq-item {
  border: 1px solid var(--graphite);
  border-radius: 12px;
  background-color: var(--paper);
  margin-bottom: 12px;
  overflow: hidden;
}

.faq-question {
  width: 100%;
  text-align: left;
  background-color: transparent;
  border: none;
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  padding: 18px 22px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
}

.faq-question .faq-icon {
  flex: 0 0 auto;
  width: 26px;
  height: 26px;
  background-color: var(--graphite);
  color: var(--white);
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 700;
  transition: transform 0.3s ease;
}

.faq-item.open .faq-question .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  display: none;
  padding: 0 22px 20px;
  font-size: 15px;
  color: var(--ink);
}

.faq-item.open .faq-answer {
  display: block;
}

/* ---------------- Responsive ---------------- */
@media (max-width: 1024px) {
  .ribbon-hero h1 {
    font-size: 52px;
  }

  .page-hero h1 {
    font-size: 44px;
  }

  .process-steps {
    grid-template-columns: repeat(2, 1fr);
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

@media (max-width: 860px) {
  .capsule-nav .nav-links,
  .capsule-nav .nav-cta {
    display: none;
  }

  .capsule-nav {
    position: sticky;
    top: 0;
    margin-top: 0;
    width: 100%;
    border-radius: 0;
    border-left: none;
    border-right: none;
    border-top: none;
  }

  .nav-toggle {
    display: flex;
  }
}

@media (max-width: 640px) {
  .ribbon-hero h1 {
    font-size: 40px;
  }

  .ribbon-hero .hero-sub {
    font-size: 17px;
  }

  .section-head h2,
  .cta-inner h2,
  .page-hero h1 {
    font-size: 34px;
  }

  .lane-row {
    flex-direction: column;
    gap: 14px;
  }

  .lane-row .lane-mark {
    margin-top: 2px;
  }

  .tab-panel {
    padding: 26px;
  }

  .tab-panel ul {
    grid-template-columns: 1fr;
  }

  .partner-tile {
    width: 132px;
    height: 132px;
    font-size: 17px;
  }

  .lane-footer .footer-row-1 {
    flex-direction: column;
    align-items: flex-start;
  }

  .process-steps {
    grid-template-columns: 1fr;
  }

  .service-item {
    flex-direction: column;
    gap: 14px;
  }

  .contact-form-wrap {
    padding: 24px;
  }
}
