/* ============================================================
   MesYucai — Computer Systems Design and Related Services
   Warm Brown / Light Cream theme
   Accent: #92400E  Supports: #78350F / #B45309
   ============================================================ */

:root {
  --cream: #FAF6EF;
  --cream-soft: #F4ECDD;
  --cream-deep: #EEE2CC;
  --cream-border: #E3D4B6;
  --paper: #FFFDF8;
  --paper-warm: #FBF6EA;
  --ink: #241D14;
  --ink-soft: #5C4A33;
  --ink-mute: #7A6649;
  --brown: #92400E;
  --brown-dark: #78350F;
  --brown-light: #B45309;
  --amber: #D97706;
  --gold-line: #C8923E;
  --shadow-sm: 0 2px 10px rgba(36, 29, 20, 0.06);
  --shadow-md: 0 10px 30px rgba(36, 29, 20, 0.10);
  --shadow-lg: 0 24px 60px rgba(36, 29, 20, 0.14);
  --radius: 16px;
  --radius-sm: 10px;
  --max: 1180px;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

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

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

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

a:hover {
  color: var(--brown-dark);
}

h1, h2, h3, h4 {
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 28px;
}

/* ============================================================
   HEADER — right-aligned stacked (two rows)
   ============================================================ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: var(--cream);
  border-bottom: 1px solid var(--cream-border);
}

.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 28px;
}

.brand-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0 14px;
}

.brand {
  font-size: 1.6rem;
  font-weight: 900;
  letter-spacing: -0.03em;
  color: var(--ink);
  display: inline-flex;
  align-items: baseline;
}

.brand .brand-dot {
  color: var(--brown);
}

.brand .brand-tag {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-left: 10px;
}

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

.cta-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: var(--brown);
  color: #FFFDF8;
  font-weight: 700;
  font-size: 0.92rem;
  padding: 12px 22px;
  border-radius: 999px;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.cta-button:hover {
  background-color: var(--brown-dark);
  color: #FFFDF8;
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--cream-border);
  border-radius: 10px;
  width: 46px;
  height: 46px;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.nav-toggle .bar {
  display: block;
  width: 22px;
  height: 2px;
  background-color: var(--ink);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.main-nav {
  border-top: 1px solid var(--cream-border);
  padding: 12px 0;
}

.nav-links {
  list-style: none;
  display: flex;
  justify-content: flex-end;
  gap: 30px;
}

.nav-links a {
  color: var(--ink-soft);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 6px 2px;
  position: relative;
  transition: color 0.2s ease;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background-color: var(--brown);
  transition: width 0.25s ease;
}

.nav-links a:hover {
  color: var(--brown);
}

.nav-links a:hover::after {
  width: 100%;
}

/* ============================================================
   HERO — horizontal timeline
   ============================================================ */

.hero {
  padding: 88px 0 96px;
  background-color: var(--paper-warm);
  background-image:
    radial-gradient(circle at 12% 8%, #F0E2C6 0%, transparent 40%),
    radial-gradient(circle at 92% 18%, #EBD9B4 0%, transparent 42%);
  border-bottom: 1px solid var(--cream-border);
}

.hero-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 28px;
}

.hero-eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brown);
  background-color: #F1E3C4;
  padding: 8px 16px;
  border-radius: 999px;
  margin-bottom: 26px;
}

.hero-title {
  font-size: clamp(2.3rem, 5.5vw, 4rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  max-width: 15ch;
  margin-bottom: 24px;
}

.hero-title .accent {
  color: var(--brown);
}

.hero-sub {
  font-size: 1.15rem;
  color: var(--ink-soft);
  max-width: 60ch;
  margin-bottom: 52px;
}

/* timeline */

.timeline {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  margin-bottom: 48px;
}

.timeline::before {
  content: "";
  position: absolute;
  top: 24px;
  left: 12%;
  right: 12%;
  height: 3px;
  background: linear-gradient(to right, var(--brown), var(--amber), var(--brown-light), var(--brown));
  border-radius: 3px;
}

.timeline-card {
  position: relative;
  background-color: var(--paper);
  border: 1px solid var(--cream-border);
  border-radius: var(--radius);
  padding: 58px 22px 26px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.timeline-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}

.timeline-dot {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: var(--brown);
  color: #FFFDF8;
  font-weight: 800;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 4px solid var(--paper-warm);
  z-index: 2;
}

.timeline-card h3 {
  font-size: 1.15rem;
  margin-bottom: 10px;
}

.timeline-card p {
  font-size: 0.9rem;
  color: var(--ink-soft);
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background-color: var(--brown);
  color: #FFFDF8;
  font-weight: 700;
  font-size: 1rem;
  padding: 16px 30px;
  border-radius: 12px;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.btn-primary:hover {
  background-color: var(--brown-dark);
  color: #FFFDF8;
  transform: translateY(-2px);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background-color: transparent;
  color: var(--ink);
  font-weight: 700;
  font-size: 1rem;
  padding: 16px 30px;
  border-radius: 12px;
  border: 2px solid var(--cream-border);
  transition: border-color 0.2s ease, color 0.2s ease;
}

.btn-ghost:hover {
  border-color: var(--brown);
  color: var(--brown);
}

/* ============================================================
   STATEMENT — full-width row
   ============================================================ */

.statement-section {
  background-color: var(--ink);
  color: #F4EBDC;
  padding: 96px 0;
}

.statement-section .statement-kicker {
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 22px;
}

.statement-section h2 {
  color: #FFFDF8;
  font-size: clamp(1.8rem, 4vw, 3rem);
  max-width: 26ch;
  margin-bottom: 26px;
}

.statement-section p {
  color: #E7D8BE;
  font-size: 1.1rem;
  max-width: 68ch;
}

.statement-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 48px;
  align-items: center;
}

.statement-side {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.stat-mini {
  background-color: #3A2E1E;
  border: 1px solid #57431F;
  border-radius: var(--radius);
  padding: 26px 22px;
}

.stat-mini .num {
  font-size: 2rem;
  font-weight: 900;
  color: var(--amber);
  display: block;
  margin-bottom: 4px;
}

.stat-mini .lbl {
  font-size: 0.85rem;
  color: #E7D8BE;
  font-weight: 600;
}

/* ============================================================
   SERVICES — numbered list
   ============================================================ */

.services-section {
  background-color: var(--cream);
  padding: 104px 0;
}

.section-head {
  margin-bottom: 56px;
}

.section-eyebrow {
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brown);
  margin-bottom: 14px;
}

.section-head h2 {
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  margin-bottom: 18px;
}

.section-head p {
  font-size: 1.05rem;
  color: var(--ink-soft);
  max-width: 62ch;
}

.services-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border-top: 1px solid var(--cream-border);
}

.service-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 22px;
  padding: 34px 8px;
  border-bottom: 1px solid var(--cream-border);
  transition: background-color 0.2s ease;
}

.service-item:nth-child(odd) {
  padding-right: 34px;
}

.service-item:nth-child(even) {
  padding-left: 34px;
  border-left: 1px solid var(--cream-border);
}

.service-item:hover {
  background-color: var(--paper-warm);
}

.service-num {
  font-size: 2.6rem;
  font-weight: 900;
  color: var(--brown);
  line-height: 1;
  letter-spacing: -0.02em;
}

.service-item h3 {
  font-size: 1.3rem;
  margin-bottom: 10px;
}

.service-item p {
  font-size: 0.97rem;
  color: var(--ink-soft);
}

.service-item .service-tags {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.service-tag {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--brown-dark);
  background-color: #F1E3C4;
  padding: 5px 10px;
  border-radius: 6px;
}

/* ============================================================
   COMPARISON TABLE
   ============================================================ */

.compare-section {
  background-color: var(--cream-soft);
  padding: 104px 0;
  border-top: 1px solid var(--cream-border);
  border-bottom: 1px solid var(--cream-border);
}

.compare-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background-color: var(--paper);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--cream-border);
}

.compare-table thead th {
  background-color: var(--brown-dark);
  color: #FFFDF8;
  text-align: left;
  padding: 20px 24px;
  font-size: 0.95rem;
  font-weight: 700;
}

.compare-table thead th:first-child {
  background-color: var(--ink);
}

.compare-table tbody td {
  padding: 18px 24px;
  border-bottom: 1px solid var(--cream-border);
  color: var(--ink-soft);
  font-size: 0.93rem;
  vertical-align: top;
}

.compare-table tbody tr:last-child td {
  border-bottom: none;
}

.compare-table tbody td:first-child {
  font-weight: 700;
  color: var(--ink);
  background-color: var(--paper-warm);
  width: 28%;
}

.mark-yes {
  color: var(--brown-dark);
  font-weight: 800;
}

.mark-no {
  color: var(--ink-mute);
}

.compare-note {
  margin-top: 20px;
  font-size: 0.9rem;
  color: var(--ink-mute);
}

/* ============================================================
   RESULTS — counters
   ============================================================ */

.results-section {
  background-color: var(--brown);
  padding: 96px 0;
}

.results-section .section-eyebrow {
  color: #F4D89B;
}

.results-section .section-head h2 {
  color: #FFFDF8;
}

.results-section .section-head p {
  color: #F0E0C2;
}

.counter-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.counter-card {
  background-color: #7A3510;
  border: 1px solid #B45309;
  border-radius: var(--radius);
  padding: 34px 24px;
  text-align: center;
}

.counter-value {
  font-size: 3rem;
  font-weight: 900;
  color: #FFFDF8;
  letter-spacing: -0.02em;
  line-height: 1;
}

.counter-suffix {
  color: #F4D89B;
}

.counter-label {
  margin-top: 10px;
  font-size: 0.9rem;
  font-weight: 700;
  color: #F0E0C2;
}

/* ============================================================
   FAQ — accordion
   ============================================================ */

.faq-section {
  background-color: var(--cream);
  padding: 104px 0;
}

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

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

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

.faq-question .faq-icon {
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background-color: #F1E3C4;
  color: var(--brown);
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.25s ease, background-color 0.25s ease;
}

.faq-item.open .faq-icon {
  transform: rotate(45deg);
  background-color: var(--brown);
  color: #FFFDF8;
}

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

.faq-answer-inner {
  padding: 0 24px 22px;
  color: var(--ink-soft);
  font-size: 0.97rem;
}

/* ============================================================
   TESTIMONIALS
   ============================================================ */

.testimonials-section {
  background-color: var(--cream-deep);
  padding: 104px 0;
  border-top: 1px solid var(--cream-border);
}

.testimonial-slider {
  position: relative;
  max-width: 860px;
  margin: 0 auto;
}

.testimonial-slide {
  display: none;
  text-align: center;
}

.testimonial-slide.active {
  display: block;
}

.testimonial-quote {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.4;
  margin-bottom: 26px;
}

.testimonial-author {
  font-size: 0.95rem;
  color: var(--ink-soft);
  font-weight: 600;
}

.testimonial-role {
  font-size: 0.85rem;
  color: var(--ink-mute);
}

.testimonial-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 30px;
}

.testimonial-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background-color: var(--cream-border);
  border: none;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.testimonial-dot.active {
  background-color: var(--brown);
}

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

.contact-section {
  background-color: var(--paper-warm);
  padding: 104px 0;
  border-top: 1px solid var(--cream-border);
}

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

.contact-info-list {
  list-style: none;
  margin-top: 28px;
}

.contact-info-list li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 20px;
  color: var(--ink-soft);
}

.contact-info-list .ico {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background-color: #F1E3C4;
  color: var(--brown);
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-info-list strong {
  display: block;
  color: var(--ink);
}

.contact-form {
  background-color: var(--paper);
  border: 1px solid var(--cream-border);
  border-radius: var(--radius);
  padding: 34px;
  box-shadow: var(--shadow-sm);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

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

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

.form-field input,
.form-field textarea,
.form-field select {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid var(--cream-border);
  border-radius: 10px;
  font-size: 0.97rem;
  color: var(--ink);
  background-color: #FFFDF8;
  font-family: inherit;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
  outline: none;
  border-color: var(--brown);
  box-shadow: 0 0 0 3px #F1E3C4;
}

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

.form-submit {
  width: 100%;
  background-color: var(--brown);
  color: #FFFDF8;
  font-weight: 700;
  font-size: 1rem;
  padding: 15px;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.form-submit:hover {
  background-color: var(--brown-dark);
}

.form-status {
  margin-top: 14px;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--brown-dark);
  display: none;
}

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

/* ============================================================
   FOOTER — multi-column with newsletter band
   ============================================================ */

.site-footer {
  background-color: var(--ink);
  color: #E7D8BE;
}

.newsletter-band {
  background-color: var(--brown-dark);
  padding: 40px 0;
}

.newsletter-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  flex-wrap: wrap;
}

.newsletter-inner h3 {
  color: #FFFDF8;
  font-size: 1.4rem;
}

.newsletter-inner p {
  color: #F0E0C2;
  font-size: 0.92rem;
}

.newsletter-form {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.newsletter-form input {
  padding: 13px 16px;
  border-radius: 999px;
  border: 1px solid #C8923E;
  background-color: #FFFDF8;
  color: var(--ink);
  font-size: 0.95rem;
  min-width: 260px;
  font-family: inherit;
}

.newsletter-form input:focus {
  outline: none;
  border-color: #FFFDF8;
}

.newsletter-form button {
  padding: 13px 26px;
  border-radius: 999px;
  border: none;
  background-color: #FFFDF8;
  color: var(--brown-dark);
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.newsletter-form button:hover {
  transform: translateY(-1px);
}

.footer-main {
  padding: 64px 0 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: 40px;
}

.footer-brand .brand {
  color: #FFFDF8;
}

.footer-brand p {
  color: #C9B892;
  font-size: 0.9rem;
  margin-top: 14px;
  max-width: 30ch;
}

.footer-col h4 {
  color: #FFFDF8;
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-col ul a {
  color: #C9B892;
  font-size: 0.92rem;
  transition: color 0.2s ease;
}

.footer-col ul a:hover {
  color: #FFFDF8;
}

.footer-contact {
  list-style: none;
}

.footer-contact li {
  color: #C9B892;
  font-size: 0.92rem;
  margin-bottom: 12px;
}

.footer-bottom {
  border-top: 1px solid #4A3D27;
  padding: 22px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-bottom p {
  font-size: 0.85rem;
  color: #A8936B;
}

.footer-bottom .footer-legal {
  display: flex;
  gap: 22px;
}

.footer-bottom .footer-legal a {
  font-size: 0.85rem;
  color: #C9B892;
}

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

/* ============================================================
   Scroll reveal
   ============================================================ */

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

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

/* ============================================================
   Responsive
   ============================================================ */

@media (max-width: 960px) {
  .timeline {
    grid-template-columns: repeat(2, 1fr);
  }
  .timeline::before {
    display: none;
  }
  .statement-grid {
    grid-template-columns: 1fr;
  }
  .services-list {
    grid-template-columns: 1fr;
  }
  .service-item:nth-child(odd),
  .service-item:nth-child(even) {
    padding: 30px 8px;
    border-left: none;
  }
  .counter-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .container,
  .header-inner,
  .hero-inner {
    padding-left: 20px;
    padding-right: 20px;
  }

  .nav-toggle {
    display: flex;
  }

  .brand-tag {
    display: none;
  }

  .main-nav {
    display: none;
  }

  .main-nav.open {
    display: block;
  }

  .nav-links {
    flex-direction: column;
    gap: 0;
    justify-content: flex-start;
  }

  .nav-links li {
    border-bottom: 1px solid var(--cream-border);
  }

  .nav-links li:last-child {
    border-bottom: none;
  }

  .nav-links a {
    display: block;
    padding: 14px 0;
    font-size: 1rem;
  }

  .hero {
    padding: 60px 0 70px;
  }

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

  .counter-grid {
    grid-template-columns: 1fr 1fr;
    gap: 14px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

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

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

  .newsletter-form input {
    min-width: 100%;
  }

  .compare-section {
    overflow-x: auto;
  }
}
