/* ==========================================================================
   YOUMING — Computer Systems Design & Integrated Systems
   Dark theme: deep warm-black with tangerine-orange accent
   ========================================================================== */

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

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

body {
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  background-color: #120D0B;
  color: #F2EDE8;
  overflow-x: hidden;
}

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

a {
  color: #F26B1D;
  text-decoration: none;
}

a:hover {
  color: #FFB37A;
}

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

h1, h2, h3, h4 {
  line-height: 1.2;
  font-weight: 700;
  color: #F2EDE8;
}

/* ==========================================================================
   LEDGER HEADER NAV
   ========================================================================== */

.ledger-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: #1A130E;
  border-bottom: 1px solid #2A201A;
}

.ledger-nav-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  gap: 20px;
}

.ledger-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.ledger-brand-mark {
  width: 32px;
  height: 32px;
  background-color: #F26B1D;
  color: #120D0B;
  font-weight: 800;
  font-size: 16px;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ledger-brand-word {
  font-weight: 800;
  letter-spacing: 3px;
  font-size: 18px;
  color: #F2EDE8;
}

.ledger-links {
  display: flex;
  align-items: center;
  gap: 0;
  flex: 1;
}

.ledger-links a {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #E8D5C0;
  padding: 6px 12px;
  border-right: 1px solid #3A2D24;
  transition: color 0.2s ease;
}

.ledger-links a:last-of-type {
  border-right: none;
}

.ledger-links a:hover {
  color: #FFB37A;
}

.ledger-links a.ledger-active {
  background-color: #F26B1D;
  color: #120D0B;
  border-right: none;
}

.ledger-cta {
  flex-shrink: 0;
  background-color: #F26B1D;
  color: #120D0B;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.5px;
  padding: 9px 18px;
  border-radius: 2px;
  transition: background-color 0.2s ease;
}

.ledger-cta:hover {
  background-color: #FFB37A;
  color: #120D0B;
}

.ledger-toggle {
  display: none;
  flex-shrink: 0;
  background: none;
  border: 1px solid #3A2D24;
  color: #F2EDE8;
  width: 40px;
  height: 40px;
  cursor: pointer;
  font-size: 20px;
  line-height: 1;
}

/* ==========================================================================
   DONUT CHART HERO
   ========================================================================== */

.donut-hero {
  padding: 88px 0 80px;
  background-color: #120D0B;
}

.donut-hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}

.eyebrow-chip {
  display: inline-block;
  background-color: #F26B1D;
  color: #FFB37A;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 7px 14px;
  border-radius: 2px;
}

.hero-title {
  font-size: 52px;
  line-height: 1.08;
  letter-spacing: -1px;
  margin: 24px 0 20px;
  color: #F2EDE8;
}

.hero-sub {
  font-size: 17px;
  color: #D9CFC6;
  max-width: 540px;
  margin-bottom: 32px;
}

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

.btn-primary {
  display: inline-block;
  background-color: #F26B1D;
  color: #120D0B;
  font-weight: 700;
  font-size: 15px;
  padding: 14px 28px;
  border-radius: 2px;
  letter-spacing: 0.5px;
  transition: background-color 0.2s ease;
}

.btn-primary:hover {
  background-color: #FFB37A;
  color: #120D0B;
}

.btn-secondary {
  display: inline-block;
  background: transparent;
  border: 2px solid #FFB37A;
  color: #FFB37A;
  font-weight: 700;
  font-size: 15px;
  padding: 12px 26px;
  border-radius: 2px;
  letter-spacing: 0.5px;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.btn-secondary:hover {
  border-color: #F2EDE8;
  color: #F2EDE8;
}

.donut-chart {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.donut-ring {
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: conic-gradient(
    #F26B1D 0deg 248deg,
    #E8D5C0 248deg 300deg,
    #2A201A 300deg 340deg,
    #FFB37A 340deg 360deg
  );
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.donut-ring::before {
  content: "";
  position: absolute;
  width: 210px;
  height: 210px;
  border-radius: 50%;
  background-color: #120D0B;
}

.donut-center {
  position: relative;
  z-index: 2;
  text-align: center;
}

.donut-numeral {
  font-size: 72px;
  font-weight: 800;
  color: #F2EDE8;
  letter-spacing: -2px;
  line-height: 1;
}

.donut-label {
  font-size: 13px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #E8D5C0;
  margin-top: 6px;
}

.donut-legend {
  display: flex;
  gap: 24px;
  margin-top: 28px;
  flex-wrap: wrap;
  justify-content: center;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #E8D5C0;
}

.legend-swatch {
  width: 12px;
  height: 12px;
  display: inline-block;
  flex-shrink: 0;
}

.legend-swatch.tangerine { background-color: #F26B1D; }
.legend-swatch.sand { background-color: #E8D5C0; }
.legend-swatch.cream { background-color: #FFB37A; }

/* ==========================================================================
   STATEMENT ROW
   ========================================================================== */

.statement-row {
  padding: 72px 0;
  border-top: 1px solid #2A201A;
  background-color: #120D0B;
}

.statement-text {
  font-size: 30px;
  line-height: 1.35;
  font-weight: 600;
  color: #F2EDE8;
  max-width: 900px;
  letter-spacing: -0.3px;
}

.statement-text em {
  font-style: normal;
  color: #F26B1D;
}

/* ==========================================================================
   SPEC CARDS
   ========================================================================== */

.spec-cards {
  padding: 72px 0;
  background-color: #120D0B;
}

.section-heading {
  font-size: 34px;
  letter-spacing: -0.5px;
  margin-bottom: 12px;
}

.section-sub {
  color: #D9CFC6;
  font-size: 16px;
  max-width: 640px;
  margin-bottom: 40px;
}

.spec-card {
  display: flex;
  gap: 24px;
  padding: 28px 0;
  border-bottom: 1px solid #2A201A;
  align-items: flex-start;
}

.spec-card:first-of-type {
  border-top: 1px solid #2A201A;
}

.spec-icon {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  background-color: #F26B1D;
  color: #120D0B;
  font-weight: 800;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 2px;
}

.spec-title {
  font-size: 22px;
  font-weight: 700;
  color: #F2EDE8;
  margin-bottom: 8px;
}

.spec-text {
  color: #D9CFC6;
  font-size: 16px;
  max-width: 820px;
}

/* ==========================================================================
   DEAL ROWS
   ========================================================================== */

.deal-rows {
  padding: 72px 0;
  background-color: #120D0B;
  border-top: 1px solid #2A201A;
}

.deal-row {
  display: grid;
  grid-template-columns: 70px 1fr 140px;
  gap: 20px;
  align-items: center;
  padding: 24px 0;
  border-bottom: 1px solid #2A201A;
}

.deal-row:first-of-type {
  border-top: 1px solid #2A201A;
}

.deal-num {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 2px;
  color: #E8D5C0;
}

.deal-name {
  font-size: 20px;
  font-weight: 700;
  color: #F2EDE8;
  margin-bottom: 4px;
}

.deal-desc {
  color: #D9CFC6;
  font-size: 15px;
}

.status-chip {
  display: inline-block;
  justify-self: end;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 2px;
  background-color: #2A201A;
  color: #E8D5C0;
}

.status-chip.status-active { background-color: #F26B1D; color: #120D0B; }
.status-chip.status-shipped { background-color: #FFB37A; color: #120D0B; }
.status-chip.status-new { background-color: #E8D5C0; color: #120D0B; }
.status-chip.status-done { background-color: #2A201A; color: #FFB37A; }

/* ==========================================================================
   REGION GRID
   ========================================================================== */

.region-grid-section {
  padding: 72px 0;
  background-color: #120D0B;
  border-top: 1px solid #2A201A;
}

.region-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px 56px;
}

.region-block {
  border-top: 4px solid #F26B1D;
  padding-top: 18px;
}

.region-name {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 1px;
  color: #F2EDE8;
  margin-bottom: 8px;
}

.region-desc {
  color: #D9CFC6;
  font-size: 15px;
  margin-bottom: 10px;
}

.region-num {
  font-size: 34px;
  font-weight: 800;
  color: #FFB37A;
  letter-spacing: -1px;
}

/* ==========================================================================
   FAQ ACCORDION
   ========================================================================== */

.faq-section {
  padding: 72px 0;
  background-color: #120D0B;
  border-top: 1px solid #2A201A;
}

.faq-list {
  max-width: 820px;
}

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

.faq-item:first-child {
  border-top: 1px solid #2A201A;
}

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

.faq-question:hover {
  color: #FFB37A;
}

.faq-toggle-icon {
  flex-shrink: 0;
  color: #F26B1D;
  font-size: 24px;
  font-weight: 700;
  transition: transform 0.2s ease;
}

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

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

.faq-answer-inner {
  padding: 0 0 24px;
  color: #D9CFC6;
  font-size: 16px;
}

.faq-item.open .faq-answer {
  max-height: 500px;
}

/* ==========================================================================
   CTA BAND
   ========================================================================== */

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

.cta-band-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}

.cta-band h2 {
  color: #120D0B;
  font-size: 34px;
  letter-spacing: -0.5px;
}

.cta-band p {
  color: #120D0B;
  margin-top: 10px;
  font-size: 16px;
}

.btn-dark {
  display: inline-block;
  background-color: #120D0B;
  color: #F2EDE8;
  font-weight: 700;
  font-size: 15px;
  padding: 14px 28px;
  border-radius: 2px;
  letter-spacing: 0.5px;
  transition: background-color 0.2s ease;
}

.btn-dark:hover {
  background-color: #2A201A;
  color: #FFB37A;
}

/* ==========================================================================
   CABINET FOOTER
   ========================================================================== */

.cabinet-footer {
  background-color: #120D0B;
  border-top: 4px solid #F26B1D;
}

.footer-panel {
  background-color: #1C1612;
  padding: 56px 0 48px;
}

.footer-cols {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.6fr;
  gap: 48px;
}

.footer-brand-word {
  font-weight: 800;
  letter-spacing: 3px;
  font-size: 22px;
  color: #F2EDE8;
  margin-bottom: 12px;
}

.footer-brand-desc {
  color: #D9CFC6;
  font-size: 15px;
  max-width: 300px;
}

.footer-col h4 {
  font-size: 13px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #E8D5C0;
  margin-bottom: 16px;
}

.footer-links a {
  display: block;
  color: #D9CFC6;
  font-size: 15px;
  padding: 6px 0;
}

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

.footer-contact p {
  color: #D9CFC6;
  font-size: 15px;
  margin-bottom: 10px;
}

.footer-contact a {
  color: #F26B1D;
}

.footer-legal {
  border-top: 1px solid #3A2D24;
  padding: 22px 0;
}

.footer-legal-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  color: #E8D5C0;
  font-size: 13px;
}

.footer-legal a {
  color: #F26B1D;
}

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

/* ==========================================================================
   GENERIC SECTION / PAGE HELPERS
   ========================================================================== */

.section-pad {
  padding: 72px 0;
}

.bg-panel {
  background-color: #1C1612;
}

/* ==========================================================================
   SERVICES PAGE
   ========================================================================== */

.page-hero {
  padding: 72px 0 48px;
  border-bottom: 1px solid #2A201A;
  background-color: #120D0B;
}

.page-hero h1 {
  font-size: 44px;
  letter-spacing: -0.5px;
  margin-bottom: 16px;
}

.page-hero p {
  color: #D9CFC6;
  font-size: 17px;
  max-width: 720px;
}

.service-block {
  padding: 36px 0;
  border-bottom: 1px solid #2A201A;
}

.service-block:last-of-type {
  border-bottom: none;
}

.service-block h2 {
  font-size: 24px;
  margin-bottom: 12px;
}

.service-block h2 span {
  color: #F26B1D;
}

.service-block p {
  color: #D9CFC6;
  font-size: 16px;
  margin-bottom: 12px;
}

.process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 32px;
}

.process-step {
  border-top: 4px solid #F26B1D;
  padding-top: 16px;
}

.process-step .step-num {
  font-size: 28px;
  font-weight: 800;
  color: #FFB37A;
}

.process-step h3 {
  font-size: 18px;
  margin: 8px 0;
}

.process-step p {
  color: #D9CFC6;
  font-size: 15px;
}

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

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

.contact-info h2 {
  font-size: 22px;
  margin-bottom: 16px;
}

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

.contact-info-item h3 {
  font-size: 13px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #E8D5C0;
  margin-bottom: 6px;
}

.contact-info-item p,
.contact-info-item a {
  color: #D9CFC6;
  font-size: 16px;
}

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

.contact-form label {
  display: block;
  font-size: 13px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #E8D5C0;
  margin-bottom: 6px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  background-color: #1C1612;
  border: 1px solid #3A2D24;
  color: #F2EDE8;
  font-size: 16px;
  padding: 12px 14px;
  border-radius: 2px;
  margin-bottom: 18px;
  font-family: inherit;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: #F26B1D;
}

.contact-form textarea {
  min-height: 140px;
  resize: vertical;
}

.form-note {
  color: #E8D5C0;
  font-size: 14px;
  margin-top: 12px;
}

.form-success {
  background-color: #F26B1D;
  color: #120D0B;
  padding: 14px 18px;
  border-radius: 2px;
  font-weight: 700;
  margin-top: 12px;
  display: none;
}

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

/* ==========================================================================
   SCROLL REVEAL
   ========================================================================== */

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

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

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

@media (max-width: 920px) {
  .donut-hero-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .hero-title {
    font-size: 40px;
  }

  .donut-ring {
    width: 260px;
    height: 260px;
  }

  .donut-ring::before {
    width: 170px;
    height: 170px;
  }

  .donut-numeral {
    font-size: 56px;
  }

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

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

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

  .deal-row {
    grid-template-columns: 50px 1fr;
  }

  .status-chip {
    grid-column: 2;
    justify-self: start;
  }
}

@media (max-width: 760px) {
  .ledger-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .ledger-links {
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background-color: #1A130E;
    flex-direction: column;
    align-items: stretch;
    display: none;
    border-bottom: 1px solid #2A201A;
    padding: 12px 0;
  }

  .ledger-links.open {
    display: flex;
  }

  .ledger-links a {
    border-right: none;
    padding: 14px 24px;
    border-bottom: 1px solid #2A201A;
  }

  .ledger-links a:last-of-type {
    border-bottom: none;
  }

  .ledger-cta {
    margin-left: auto;
  }

  .ledger-nav-inner {
    position: relative;
  }

  .hero-title {
    font-size: 34px;
  }

  .statement-text {
    font-size: 24px;
  }

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

  .cta-band-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 28px;
  }

  .donut-ring {
    width: 220px;
    height: 220px;
  }

  .donut-ring::before {
    width: 140px;
    height: 140px;
  }

  .donut-numeral {
    font-size: 48px;
  }

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