/* ==========================================================================
   HEXIAOLI — Trading & Supply · Xianning
   Light market theme: soft paper, deep ink, fresh olive accents
   ========================================================================== */

:root {
  --paper: #F7F6EF;
  --ink: #2A2B23;
  --olive: #6A6F3C;
  --olive-deep: #555A30;
  --olive-line: #B6B98D;
  --pale: #D9DBB8;
  --mist: #F0F0E2;
  --white: #FFFFFF;
  --line: #D8D8C2;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  background: var(--paper);
  color: var(--ink);
  overflow-x: hidden;
}

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

img {
  max-width: 100%;
}

.wrap {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ==========================================================================
   BASKET GLYPH — small market basket (trapezoid body + thin handle arc)
   ========================================================================== */

.basket-glyph,
.basket-solid {
  position: relative;
  display: inline-block;
  width: 14px;
  height: 12px;
  background: var(--olive);
  clip-path: polygon(0 0, 100% 0, 90% 100%, 10% 100%);
  flex-shrink: 0;
}

.basket-glyph::before,
.basket-solid::before {
  content: "";
  position: absolute;
  inset: 1.5px;
  background: var(--paper);
  clip-path: polygon(0 0, 100% 0, 90% 100%, 10% 100%);
}

.basket-glyph::after,
.basket-solid::after {
  content: "";
  position: absolute;
  top: -5px;
  left: 2px;
  width: 10px;
  height: 6px;
  border: 1.5px solid var(--olive);
  border-bottom: none;
  border-radius: 8px 8px 0 0;
  background: transparent;
}

.basket-glyph.basket-glyph--fill::before,
.basket-solid::before {
  inset: 0;
  background: var(--olive);
}

/* ==========================================================================
   NAVIGATION — BASKET NAV (slim sticky strip)
   ========================================================================== */

.basket-nav {
  position: sticky;
  top: 0;
  z-index: 60;
  background: var(--paper);
  border-bottom: 1px solid var(--olive-line);
}

.basket-nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  max-width: 1160px;
  margin: 0 auto;
  padding: 14px 24px;
}

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

.brand__square {
  width: 22px;
  height: 22px;
  background: var(--olive);
  flex-shrink: 0;
}

.brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand__word {
  font-size: 19px;
  font-weight: 800;
  letter-spacing: 3px;
  color: var(--ink);
}

.brand__cap {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--olive);
  margin-top: 3px;
}

.basket-nav__menu {
  display: flex;
  align-items: center;
  gap: 22px;
}

.basket-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--ink);
  padding: 4px 0;
  border-bottom: 2px solid transparent;
}

.basket-link:hover {
  color: var(--olive);
}

.basket-link.active {
  color: var(--olive);
  border-bottom-color: var(--olive);
}

.basket-link.active .basket-glyph::before {
  inset: 0;
  background: var(--olive);
}

.basket-nav__toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 38px;
  padding: 0 9px;
  background: transparent;
  border: 1px solid var(--olive-line);
  border-radius: 2px;
  cursor: pointer;
}

.basket-nav__toggle span {
  display: block;
  height: 2px;
  background: var(--olive);
}

.basket-nav__drop {
  display: none;
  background: var(--paper);
  border-top: 1px solid var(--olive-line);
  padding: 10px 24px 22px;
}

.basket-nav__drop a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 0;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
}

.basket-nav__drop a:last-child {
  border-bottom: none;
}

.basket-nav__drop a:hover {
  color: var(--olive);
}

.basket-nav.basket-nav--open .basket-nav__drop {
  display: block;
}

/* ==========================================================================
   HERO — MARKET HERO
   ========================================================================== */

.market-hero {
  background: var(--paper);
}

.market-hero__inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 84px 24px 0;
}

.market-hero__body {
  max-width: 780px;
}

.hero-eyebrow {
  display: inline-block;
  background: var(--olive);
  color: var(--white);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  padding: 8px 14px;
  border-radius: 2px;
}

.hero-headline {
  font-size: 54px;
  line-height: 1.08;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--ink);
  margin: 26px 0 24px;
}

.hero-subcopy {
  font-size: 18px;
  line-height: 1.75;
  color: var(--ink);
  max-width: 700px;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 32px;
}

.btn {
  display: inline-block;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 14px 26px;
  border-radius: 2px;
  border: 2px solid transparent;
  cursor: pointer;
}

.btn--primary {
  background: var(--olive);
  color: var(--white);
}

.btn--primary:hover {
  background: var(--olive-deep);
}

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

.btn--outline:hover {
  background: var(--olive);
  color: var(--white);
}

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

.btn--white:hover {
  background: var(--pale);
}

/* Supply row graphic — barrels on a baseline */

.supply-row {
  margin-top: 64px;
}

.supply-row__deck {
  display: flex;
  align-items: flex-end;
  gap: 88px;
}

.supply-row__station {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.supply-row__cap {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--ink);
}

.supply-row__line {
  height: 2px;
  background: var(--olive);
  border-radius: 2px;
  margin-top: 2px;
}

/* Barrel shape — rounded rectangle with two thin bands */

.barrel {
  position: relative;
  display: block;
  width: 28px;
  height: 38px;
  border: 1.5px solid var(--olive);
  border-radius: 7px 7px 5px 5px;
  background: transparent;
  flex-shrink: 0;
}

.barrel::before,
.barrel::after {
  content: "";
  position: absolute;
  left: 4px;
  right: 4px;
  height: 1.5px;
  background: var(--olive);
}

.barrel::before {
  top: 11px;
}

.barrel::after {
  top: 24px;
}

.barrel--solid {
  background: var(--olive);
}

.barrel--solid::before,
.barrel--solid::after {
  background: var(--paper);
}

/* ==========================================================================
   SECTIONS — shared titles and section lead
   ========================================================================== */

.section {
  background: var(--paper);
}

.section--mist {
  background: var(--mist);
}

.section__inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 72px 24px;
}

.section-title {
  font-size: 34px;
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: -0.3px;
  color: var(--ink);
  margin-bottom: 14px;
}

.section-title--center {
  text-align: center;
}

.section-lead {
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink);
  max-width: 720px;
  margin-bottom: 38px;
}

.section-lead--center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

/* ==========================================================================
   BASKET ROWS — four full-width rows with hairline separators
   ========================================================================== */

.basket-row {
  display: flex;
  align-items: flex-start;
  gap: 26px;
  padding: 34px 0;
  border-top: 1px solid var(--olive-line);
}

.basket-row__icon {
  margin-top: 5px;
}

.basket-row__body {
  flex: 1;
  min-width: 0;
}

.basket-row__title {
  font-size: 24px;
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 8px;
}

.basket-row__text {
  font-size: 16px;
  line-height: 1.75;
  color: var(--ink);
  max-width: 820px;
}

.chip {
  display: inline-block;
  background: var(--olive);
  color: var(--white);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 7px 12px;
  border-radius: 2px;
  white-space: nowrap;
  margin-top: 4px;
}

.chip--pale {
  background: var(--pale);
  color: var(--ink);
}

.basket-row:last-child {
  border-bottom: 1px solid var(--olive-line);
}

/* ==========================================================================
   STOCK STRIP — four compact barrel tiles
   ========================================================================== */

.stock-strip__tiles {
  display: flex;
  border-top: 1px solid var(--olive-line);
  border-bottom: 1px solid var(--olive-line);
}

.stock-tile {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 38px 20px;
  text-align: center;
  border-left: 1px solid var(--olive-line);
}

.stock-tile:first-child {
  border-left: none;
}

.stock-tile__barrel {
  width: 26px;
  height: 34px;
}

.stock-tile__name {
  font-size: 19px;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: var(--ink);
}

.stock-tile__line {
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink);
}

/* ==========================================================================
   PLAIN ROWS — three rows with outlined basket glyphs
   ========================================================================== */

.plain-row {
  display: flex;
  align-items: flex-start;
  gap: 26px;
  padding: 30px 0;
  border-top: 1px solid var(--olive-line);
}

.plain-row__icon {
  margin-top: 6px;
}

.plain-row__title {
  font-size: 22px;
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 6px;
}

.plain-row__text {
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink);
  max-width: 780px;
}

.plain-row:last-child {
  border-bottom: 1px solid var(--olive-line);
}

/* ==========================================================================
   CTA BAND — full solid olive band
   ========================================================================== */

.cta-band {
  background: var(--olive);
}

.cta-band__inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 72px 24px;
  text-align: center;
}

.cta-band__title {
  font-size: 34px;
  font-weight: 800;
  line-height: 1.2;
  color: var(--white);
  margin-bottom: 14px;
}

.cta-band__lead {
  font-size: 17px;
  line-height: 1.7;
  color: var(--white);
  max-width: 640px;
  margin: 0 auto 30px;
}

/* ==========================================================================
   SECONDARY PAGE HERO (services / contact)
   ========================================================================== */

.page-hero {
  background: var(--paper);
  border-bottom: 1px solid var(--olive-line);
}

.page-hero__inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 64px 24px 58px;
}

.page-hero__eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--olive);
  margin-bottom: 16px;
}

.page-hero__title {
  font-size: 44px;
  line-height: 1.12;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--ink);
  max-width: 820px;
}

.page-hero__lead {
  font-size: 18px;
  line-height: 1.7;
  color: var(--ink);
  max-width: 780px;
  margin-top: 18px;
}

/* ==========================================================================
   SERVICES PAGE — service rows, process, counters
   ========================================================================== */

.service-row {
  display: flex;
  align-items: flex-start;
  gap: 28px;
  padding: 36px 0;
  border-top: 1px solid var(--olive-line);
}

.service-row:last-child {
  border-bottom: 1px solid var(--olive-line);
}

.service-row__marker {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: var(--olive);
  color: var(--white);
  font-size: 18px;
  font-weight: 800;
  flex-shrink: 0;
  margin-top: 2px;
}

.service-row__body {
  flex: 1;
  min-width: 0;
}

.service-row__title {
  font-size: 25px;
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 10px;
}

.service-row__text {
  font-size: 16px;
  line-height: 1.75;
  color: var(--ink);
  max-width: 860px;
}

.service-row__text p + p {
  margin-top: 12px;
}

/* Process overview */

.process-grid {
  display: flex;
  border-top: 1px solid var(--olive-line);
  border-bottom: 1px solid var(--olive-line);
}

.process-step {
  flex: 1;
  padding: 34px 24px;
  border-left: 1px solid var(--olive-line);
}

.process-step:first-child {
  border-left: none;
}

.process-step__num {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--olive);
  margin-bottom: 14px;
}

.process-step__num .basket-solid {
  width: 12px;
  height: 10px;
}

.process-step__title {
  font-size: 19px;
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 8px;
}

.process-step__text {
  font-size: 14px;
  line-height: 1.65;
  color: var(--ink);
}

/* Counter strip */

.counter-strip {
  display: flex;
  border-top: 1px solid var(--olive-line);
  border-bottom: 1px solid var(--olive-line);
}

.counter-cell {
  flex: 1;
  text-align: center;
  padding: 40px 20px;
  border-left: 1px solid var(--olive-line);
}

.counter-cell:first-child {
  border-left: none;
}

.counter-cell__value {
  font-size: 40px;
  font-weight: 800;
  color: var(--olive);
  letter-spacing: 1px;
}

.counter-cell__label {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--ink);
  margin-top: 8px;
}

/* ==========================================================================
   CONTACT PAGE
   ========================================================================== */

.contact-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 48px;
  align-items: start;
}

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

.form-field label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 8px;
}

.form-control {
  width: 100%;
  font-family: inherit;
  font-size: 16px;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--olive-line);
  border-radius: 2px;
  padding: 12px 14px;
  outline: none;
}

.form-control:focus {
  border-color: var(--olive);
  box-shadow: 0 0 0 2px var(--pale);
}

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

.form-status {
  display: none;
  margin-top: 16px;
  padding: 12px 16px;
  font-size: 15px;
  font-weight: 700;
  background: var(--pale);
  color: var(--ink);
  border-left: 4px solid var(--olive);
}

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

.contact-panel {
  background: var(--mist);
  border: 1px solid var(--olive-line);
  border-top: 4px solid var(--olive);
  padding: 28px;
}

.contact-panel__title {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--olive);
  margin-bottom: 10px;
}

.contact-panel p {
  font-size: 15px;
  line-height: 1.65;
  color: var(--ink);
  margin-bottom: 12px;
}

.contact-panel__block {
  margin-top: 22px;
}

.contact-panel__block:first-of-type {
  margin-top: 0;
}

.contact-panel__value {
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
}

.contact-panel__note {
  font-size: 14px;
  color: var(--ink);
}

/* FAQ accordion */

.faq-list {
  border-top: 1px solid var(--olive-line);
}

.faq-item {
  border-bottom: 1px solid var(--olive-line);
}

.faq-item__q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: 100%;
  text-align: left;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 22px 4px;
  font-family: inherit;
}

.faq-item__q-text {
  font-size: 19px;
  font-weight: 800;
  color: var(--ink);
}

.faq-item__mark {
  font-size: 22px;
  font-weight: 800;
  color: var(--olive);
  flex-shrink: 0;
  transition: transform 0.25s ease;
}

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

.faq-item__a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-item__a p {
  padding: 0 4px 22px;
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink);
}

/* ==========================================================================
   FOOTER — MARKET FOOTER
   ========================================================================== */

.market-footer {
  background: var(--paper);
  border-top: 1px solid var(--olive);
}

.market-footer__row1 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  max-width: 1160px;
  margin: 0 auto;
  padding: 40px 24px 30px;
}

.market-footer__links {
  display: flex;
  gap: 26px;
}

.market-footer__links a {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--ink);
}

.market-footer__links a:hover {
  color: var(--olive);
}

.market-footer__contact {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}

.market-footer__row2 {
  border-top: 1px solid var(--olive-line);
}

.market-footer__row2-inner {
  position: relative;
  max-width: 1160px;
  margin: 0 auto;
  padding: 20px 24px 26px;
}

.market-footer__legal {
  text-align: center;
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--ink);
}

.market-footer__legal a {
  color: var(--olive);
  font-weight: 700;
}

.market-footer__legal a:hover {
  text-decoration: underline;
}

.market-footer__motif {
  position: absolute;
  left: 24px;
  top: 22px;
}

.market-footer__motif .basket-solid {
  width: 12px;
  height: 10px;
}

/* ==========================================================================
   SCROLL REVEAL — safe without JavaScript
   ========================================================================== */

.fade-up {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

@media (max-width: 900px) {
  .basket-nav__menu {
    display: none;
  }

  .basket-nav__toggle {
    display: flex;
  }

  .hero-headline {
    font-size: 42px;
  }

  .market-footer__row1 {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }

  .process-grid,
  .counter-strip,
  .stock-strip__tiles {
    flex-direction: column;
  }

  .process-step,
  .counter-cell,
  .stock-tile {
    border-left: none;
    border-top: 1px solid var(--olive-line);
  }

  .process-step:first-child,
  .counter-cell:first-child,
  .stock-tile:first-child {
    border-top: none;
  }

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

  .supply-row__deck {
    gap: 44px;
  }
}

@media (max-width: 560px) {
  .hero-headline {
    font-size: 34px;
  }

  .market-hero__inner {
    padding-top: 56px;
  }

  .basket-row,
  .plain-row {
    flex-direction: column;
    gap: 14px;
  }

  .chip {
    align-self: flex-start;
  }

  .section__inner {
    padding: 52px 24px;
  }

  .supply-row__deck {
    gap: 24px;
  }
}
