/* ============================================================
   XINMAOTRADE — main stylesheet
   Dark trading-gold theme · trading house of Hong Kong
   ============================================================ */

:root {
  --ink: #131014;
  --panel: #211C12;
  --paper: #F2EDF0;
  --gold: #C9A227;
  --gold-deep: #A8861F;
  --pale: #EFE3C4;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background-color: #131014;
  color: #F2EDF0;
  font-size: 16px;
  line-height: 1.7;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  overflow-x: hidden;
}

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

a {
  color: #C9A227;
}

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ------------------------------------------------------------
   Centered-wordmark navigation
   ------------------------------------------------------------ */

.center-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background-color: #131014;
  border-bottom: 1px solid #C9A227;
}

.nav-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: 76px;
}

.nav-group {
  display: flex;
  align-items: center;
  gap: 26px;
}

.nav-group-left {
  justify-self: start;
}

.nav-group-right {
  justify-self: end;
}

.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #F2EDF0;
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  padding: 6px 0;
  letter-spacing: 0.3px;
}

.nav-link::before {
  content: "";
  width: 7px;
  height: 7px;
  background-color: #C9A227;
  display: inline-block;
  flex: none;
}

.nav-link:hover {
  color: #C9A227;
}

.nav-link.active {
  color: #C9A227;
}

.nav-link.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background-color: #C9A227;
}

.brand {
  justify-self: center;
  color: #F2EDF0;
  font-weight: 800;
  letter-spacing: 4px;
  font-size: 21px;
  text-decoration: none;
}

.brand:hover {
  color: #C9A227;
}

.nav-toggle {
  display: none;
  background-color: transparent;
  border: 1px solid #C9A227;
  color: #C9A227;
  cursor: pointer;
  width: 46px;
  height: 42px;
  border-radius: 4px;
  padding: 10px 8px;
}

.nav-toggle-bar {
  display: block;
  height: 2px;
  background-color: #C9A227;
  margin: 5px 0;
  transition: transform 0.2s ease;
}

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

.nav-toggle.open .nav-toggle-bar:nth-child(2) {
  transform: scaleX(0);
}

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

.mobile-menu {
  display: none;
  flex-direction: column;
  background-color: #211C12;
  border-top: 1px solid #C9A227;
  padding: 10px 24px 18px;
}

.mobile-menu.open {
  display: flex;
}

.mobile-menu .nav-link {
  padding: 11px 0;
  border-bottom: 1px solid #3a2f18;
}

/* ------------------------------------------------------------
   Buttons
   ------------------------------------------------------------ */

.btn {
  display: inline-block;
  font-weight: 700;
  text-decoration: none;
  border-radius: 4px;
  padding: 14px 28px;
  font-size: 16px;
  border: 2px solid transparent;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn-gold {
  background-color: #C9A227;
  color: #131014;
  border-color: #C9A227;
}

.btn-gold:hover {
  background-color: #EFE3C4;
  border-color: #EFE3C4;
  color: #131014;
}

.btn-outline {
  background-color: transparent;
  color: #EFE3C4;
  border-color: #EFE3C4;
}

.btn-outline:hover {
  background-color: #EFE3C4;
  color: #131014;
}

.btn-gold-dark {
  background-color: #C9A227;
  color: #131014;
  border-color: #131014;
}

.btn-gold-dark:hover {
  background-color: #131014;
  color: #EFE3C4;
}

/* ------------------------------------------------------------
   Mirrored split hero — graphic left, text right
   ------------------------------------------------------------ */

.mirror-hero {
  padding: 76px 0 90px;
  background-color: #131014;
}

.hero-inner {
  display: grid;
  grid-template-columns: 40% 60%;
  gap: 40px;
  align-items: center;
}

.hero-graphic {
  text-align: center;
}

.ingot-stack {
  position: relative;
  width: 240px;
  height: 200px;
  margin: 0 auto;
}

.ingot {
  position: absolute;
  display: block;
  width: 64px;
  height: 26px;
  background-color: #C9A227;
  border-radius: 3px;
  border-bottom: 4px solid #A8861F;
}

.ingot-c {
  left: 24px;
  bottom: 24px;
}

.ingot-b {
  left: 96px;
  bottom: 54px;
}

.ingot-a {
  left: 60px;
  bottom: 84px;
}

.ingot-mark {
  position: absolute;
  left: 77px;
  bottom: 92px;
  width: 24px;
  height: 24px;
  background-color: #131014;
  border: 2px solid #A8861F;
  border-radius: 3px;
}

.ingot-base {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 12px;
  height: 3px;
  background-color: #EFE3C4;
}

.graphic-caption {
  margin-top: 28px;
  color: #EFE3C4;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.hero-text {
  text-align: left;
}

.eyebrow-chip {
  display: inline-block;
  background-color: #C9A227;
  color: #131014;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 8px 14px;
  border-radius: 3px;
  margin-bottom: 20px;
}

.hero-text h1 {
  font-size: 52px;
  line-height: 1.12;
  margin: 0 0 20px;
  color: #F2EDF0;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.hero-sub {
  font-size: 18px;
  color: #F2EDF0;
  margin: 0 0 32px;
  max-width: 640px;
}

.hero-ctas {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* ------------------------------------------------------------
   Ledger table section
   ------------------------------------------------------------ */

.ledger-section {
  padding: 74px 0 90px;
  background-color: #131014;
  border-top: 1px solid #3a2f18;
}

.section-head {
  max-width: 780px;
  margin-bottom: 42px;
}

.eyebrow {
  display: block;
  color: #EFE3C4;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 12px;
}

.section-head h2 {
  color: #F2EDF0;
  font-size: 38px;
  margin: 0 0 16px;
  line-height: 1.15;
  font-weight: 800;
}

.section-head p {
  color: #F2EDF0;
  margin: 0 0 14px;
}

.ledger-table {
  border-top: 2px solid #C9A227;
}

.ledger-row {
  display: grid;
  grid-template-columns: 34% 66%;
  border-bottom: 1px solid #C9A227;
}

.ledger-title {
  padding: 28px 24px 28px 0;
  color: #EFE3C4;
  font-weight: 700;
  font-size: 20px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  line-height: 1.4;
}

.diamond {
  width: 10px;
  height: 10px;
  background-color: #C9A227;
  transform: rotate(45deg);
  flex: none;
  margin-top: 9px;
}

.ledger-text {
  margin: 0;
  padding: 28px 0 28px 28px;
  border-left: 1px solid #C9A227;
  color: #F2EDF0;
}

/* ------------------------------------------------------------
   Metric band — solid trading gold
   ------------------------------------------------------------ */

.metric-band {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background-color: #C9A227;
}

.metric-cell {
  text-align: center;
  padding: 46px 20px;
  border-left: 1px solid #131014;
}

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

.metric-num {
  display: block;
  color: #EFE3C4;
  font-size: 52px;
  font-weight: 800;
  line-height: 1;
}

.metric-label {
  display: block;
  color: #131014;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 12px;
}

/* ------------------------------------------------------------
   CTA band — solid pale gold with dark text
   ------------------------------------------------------------ */

.cta-band {
  background-color: #EFE3C4;
  padding: 72px 0;
}

.cta-inner {
  text-align: center;
  max-width: 760px;
}

.cta-band h2 {
  color: #131014;
  font-size: 36px;
  margin: 0 0 14px;
  line-height: 1.15;
  font-weight: 800;
}

.cta-band p {
  color: #131014;
  margin: 0 0 28px;
  font-size: 17px;
}

/* ------------------------------------------------------------
   Centered stack footer
   ------------------------------------------------------------ */

.stack-footer {
  background-color: #211C12;
  padding: 48px 0 30px;
  text-align: center;
  border-top: 1px solid #C9A227;
}

.footer-brand {
  color: #EFE3C4;
  font-weight: 800;
  letter-spacing: 4px;
  font-size: 22px;
  text-decoration: none;
}

.footer-brand:hover {
  color: #C9A227;
}

.footer-links {
  margin: 20px 0;
  display: flex;
  gap: 26px;
  justify-content: center;
  flex-wrap: wrap;
}

.footer-links a {
  color: #F2EDF0;
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
}

.footer-links a:hover {
  color: #C9A227;
}

.footer-legal {
  color: #EFE3C4;
  font-size: 13px;
  margin: 0;
}

.footer-legal a {
  color: #C9A227;
  text-decoration: none;
}

.footer-legal a:hover {
  color: #EFE3C4;
}

/* ------------------------------------------------------------
   Secondary pages — compact page hero
   ------------------------------------------------------------ */

.page-hero {
  padding: 66px 0 58px;
  background-color: #131014;
  border-bottom: 1px solid #C9A227;
}

.page-hero h1 {
  color: #F2EDF0;
  font-size: 44px;
  margin: 16px 0 12px;
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -0.4px;
}

.page-hero .page-sub {
  color: #F2EDF0;
  font-size: 17px;
  max-width: 700px;
  margin: 0;
}

/* ------------------------------------------------------------
   Services page — numbered blocks and process steps
   ------------------------------------------------------------ */

.services-section {
  padding: 74px 0;
}

.service-list {
  border-top: 2px solid #C9A227;
}

.service-block {
  display: grid;
  grid-template-columns: 90px 1fr;
  border-bottom: 1px solid #C9A227;
  padding: 34px 0;
  gap: 28px;
}

.service-num {
  color: #C9A227;
  font-weight: 800;
  font-size: 22px;
  letter-spacing: 1px;
}

.service-block h2 {
  color: #F2EDF0;
  font-size: 25px;
  margin: 0 0 12px;
  line-height: 1.25;
}

.service-block p {
  color: #F2EDF0;
  margin: 0 0 12px;
}

.process-section {
  background-color: #211C12;
  padding: 74px 0;
  border-top: 1px solid #C9A227;
  border-bottom: 1px solid #C9A227;
}

.process-section h2 {
  color: #F2EDF0;
  font-size: 36px;
  margin: 0 0 12px;
  line-height: 1.15;
  font-weight: 800;
}

.process-section .eyebrow {
  color: #EFE3C4;
}

.process-steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
  margin-top: 36px;
}

.step {
  border-top: 2px solid #C9A227;
  padding-top: 14px;
}

.step h3 {
  color: #C9A227;
  margin: 0 0 8px;
  font-size: 17px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.step p {
  color: #F2EDF0;
  font-size: 15px;
  margin: 0;
}

/* ------------------------------------------------------------
   Contact page — form, details, FAQ accordion
   ------------------------------------------------------------ */

.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 44px;
  padding: 70px 0;
}

.contact-form-wrap {
  background-color: #211C12;
  border: 1px solid #C9A227;
  padding: 32px;
  border-radius: 6px;
}

.form-title {
  color: #EFE3C4;
  font-size: 22px;
  margin: 0 0 22px;
  font-weight: 800;
}

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

.form-field label {
  display: block;
  color: #EFE3C4;
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 6px;
  letter-spacing: 0.3px;
}

.form-field input,
.form-field textarea {
  width: 100%;
  background-color: #131014;
  border: 1px solid #C9A227;
  color: #F2EDF0;
  padding: 12px 14px;
  font-size: 16px;
  border-radius: 4px;
  font-family: inherit;
}

.form-field input:focus,
.form-field textarea:focus {
  outline: 2px solid #C9A227;
  outline-offset: 1px;
}

.form-status {
  margin-top: 14px;
  font-weight: 600;
  font-size: 15px;
}

.form-status.success {
  color: #EFE3C4;
}

.form-status.error {
  color: #C9A227;
}

.contact-info-block h2 {
  color: #F2EDF0;
  font-size: 22px;
  margin: 0 0 24px;
  font-weight: 800;
}

.contact-info-item {
  margin-bottom: 24px;
}

.contact-info-item h3 {
  color: #C9A227;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin: 0 0 6px;
  font-weight: 700;
}

.contact-info-item p {
  color: #F2EDF0;
  margin: 0;
}

.contact-info-item a {
  color: #F2EDF0;
  text-decoration: none;
}

.contact-info-item a:hover {
  color: #C9A227;
}

.faq-section {
  padding: 0 0 74px;
}

.faq-section h2 {
  color: #F2EDF0;
  font-size: 32px;
  margin: 0 0 8px;
  font-weight: 800;
}

.faq-section .eyebrow {
  color: #EFE3C4;
}

.faq-list {
  margin-top: 26px;
}

.faq-item {
  border-bottom: 1px solid #C9A227;
}

.faq-question {
  width: 100%;
  background-color: transparent;
  border: none;
  text-align: left;
  color: #F2EDF0;
  font-weight: 700;
  font-size: 18px;
  padding: 18px 0;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: inherit;
}

.faq-question::after {
  content: "+";
  color: #C9A227;
  font-size: 26px;
  font-weight: 700;
  line-height: 1;
}

.faq-item.open .faq-question::after {
  content: "-";
}

.faq-answer {
  display: none;
  padding: 0 0 18px;
  color: #F2EDF0;
}

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

/* ------------------------------------------------------------
   Scroll reveal
   ------------------------------------------------------------ */

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

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

@media (prefers-reduced-motion: reduce) {
  .fade-up {
    opacity: 1;
    transform: none;
  }
}

/* ------------------------------------------------------------
   Responsive
   ------------------------------------------------------------ */

@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;
  }

  .hero-graphic {
    order: -1;
  }

  .ingot-stack {
    width: 220px;
    height: 190px;
  }

  .hero-text h1 {
    font-size: 38px;
  }

  .nav-inner {
    grid-template-columns: 1fr auto;
    height: 64px;
  }

  .nav-group {
    display: none;
  }

  .brand {
    justify-self: start;
  }

  .nav-toggle {
    display: block;
    justify-self: end;
  }

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

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

@media (max-width: 760px) {
  .ledger-row {
    grid-template-columns: 1fr;
  }

  .ledger-title {
    padding: 22px 0 4px;
  }

  .ledger-text {
    border-left: none;
    padding: 0 0 24px;
  }

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

  .metric-cell {
    border-top: 1px solid #131014;
  }

  .metric-cell:nth-child(odd) {
    border-left: none;
  }

  .metric-num {
    font-size: 42px;
  }

  .service-block {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .service-num {
    font-size: 18px;
  }

  .section-head h2,
  .process-section h2 {
    font-size: 30px;
  }

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

  .cta-band h2 {
    font-size: 30px;
  }
}

@media (max-width: 460px) {
  .hero-text h1 {
    font-size: 32px;
  }

  .hero-ctas .btn {
    padding: 13px 20px;
    font-size: 15px;
  }
}
