/* ============================================================
   Great Zheng — Computer Systems Design
   Warm Terracotta + Charcoal Scheme
   ============================================================ */

/* --- Reset & Base ----------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: 'Segoe UI', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: #44403c;
  background-color: #faf6f3;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: #b45309;
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: #ea580c;
}

ul {
  list-style: none;
}

/* --- Typography ------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
  color: #1c1917;
  font-weight: 700;
  line-height: 1.2;
}

h1 {
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  letter-spacing: -0.01em;
  margin-bottom: 1rem;
}

h3 {
  font-size: clamp(1.25rem, 2.5vw, 1.5rem);
  margin-bottom: 0.75rem;
}

h4 {
  font-size: 1.125rem;
  margin-bottom: 0.5rem;
}

p {
  margin-bottom: 1rem;
}

.section-label {
  display: inline-block;
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #b45309;
  margin-bottom: 0.5rem;
}

.section-intro {
  font-size: 1.125rem;
  max-width: 640px;
  color: #57534e;
  margin-bottom: 2.5rem;
}

/* --- Container -------------------------------------------- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.container--narrow {
  max-width: 800px;
}

/* --- Header / Navigation ---------------------------------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: #ffffff;
  border-bottom: 1px solid #e7e5e4;
  transition: box-shadow 0.3s ease;
}

.site-header--scrolled {
  box-shadow: 0 2px 20px rgba(28, 25, 23, 0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-size: 1.375rem;
  font-weight: 800;
  color: #1c1917;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.logo:hover {
  color: #1c1917;
}

.logo-icon {
  width: 38px;
  height: 38px;
  background-color: #b45309;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 1.125rem;
  font-weight: 800;
  flex-shrink: 0;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.main-nav a {
  display: inline-block;
  padding: 0.5rem 1rem;
  font-size: 0.9375rem;
  font-weight: 500;
  color: #57534e;
  border-radius: 6px;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.main-nav a:hover,
.main-nav a:focus {
  color: #b45309;
  background-color: #fef7f2;
}

.nav-cta {
  margin-left: 0.75rem;
  background-color: #b45309 !important;
  color: #ffffff !important;
  padding: 0.5rem 1.25rem !important;
  font-weight: 600 !important;
}

.nav-cta:hover {
  background-color: #ea580c !important;
  color: #ffffff !important;
}

.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.mobile-menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: #1c1917;
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* --- Hero Section ----------------------------------------- */
.hero {
  padding: 160px 0 100px;
  background-color: #faf6f3;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -300px;
  right: -200px;
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(180, 83, 9, 0.06) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -200px;
  left: -150px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(234, 88, 12, 0.04) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-content {
  max-width: 600px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background-color: #ffffff;
  border: 1px solid #e7e5e4;
  border-radius: 100px;
  padding: 0.375rem 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: #b45309;
  margin-bottom: 1.5rem;
}

.hero-badge-dot {
  width: 8px;
  height: 8px;
  background-color: #ea580c;
  border-radius: 50%;
}

.hero h1 {
  margin-bottom: 1.25rem;
}

.hero-tagline {
  font-size: 1.25rem;
  color: #57534e;
  line-height: 1.6;
  margin-bottom: 2rem;
  font-weight: 400;
}

.hero-ctas {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.25s ease, transform 0.15s ease, box-shadow 0.25s ease;
  line-height: 1.4;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background-color: #b45309;
  color: #ffffff;
}

.btn-primary:hover {
  background-color: #ea580c;
  color: #ffffff;
  box-shadow: 0 4px 16px rgba(180, 83, 9, 0.25);
}

.btn-secondary {
  background-color: #ffffff;
  color: #1c1917;
  border: 2px solid #d6d3d1;
}

.btn-secondary:hover {
  border-color: #b45309;
  color: #b45309;
  background-color: #fef7f2;
}

.hero-visual {
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-illustration {
  width: 100%;
  max-width: 500px;
  aspect-ratio: 1 / 1;
  background-color: #ffffff;
  border-radius: 24px;
  border: 1px solid #e7e5e4;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.hero-illustration-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(3, 1fr);
  gap: 8px;
  padding: 24px;
  width: 100%;
  height: 100%;
}

.hero-illustration-grid .cell {
  border-radius: 12px;
  background-color: #faf6f3;
}

.hero-illustration-grid .cell:nth-child(1) { background-color: #b45309; }
.hero-illustration-grid .cell:nth-child(2) { background-color: #ea580c; }
.hero-illustration-grid .cell:nth-child(3) { background-color: #fef7f2; border: 2px solid #e7e5e4; background-color: #ffffff; }
.hero-illustration-grid .cell:nth-child(4) { background-color: #fef7f2; border: 2px solid #e7e5e4; background-color: #ffffff; }
.hero-illustration-grid .cell:nth-child(5) { background-color: #1c1917; }
.hero-illustration-grid .cell:nth-child(6) { background-color: #fef7f2; border: 2px solid #e7e5e4; background-color: #ffffff; }
.hero-illustration-grid .cell:nth-child(7) { background-color: #fef7f2; border: 2px solid #e7e5e4; background-color: #ffffff; }
.hero-illustration-grid .cell:nth-child(8) { background-color: #ea580c; }
.hero-illustration-grid .cell:nth-child(9) { background-color: #b45309; }

/* --- Section Common --------------------------------------- */
.section {
  padding: 96px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.section-header .section-intro {
  margin-left: auto;
  margin-right: auto;
}

.section--alt {
  background-color: #ffffff;
}

/* --- About Section ---------------------------------------- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-image {
  background-color: #faf6f3;
  border-radius: 16px;
  border: 1px solid #e7e5e4;
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.about-image-decoration {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background-color: #b45309;
  opacity: 0.12;
  position: absolute;
  top: 24px;
  right: 24px;
}

.about-image-decoration-2 {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background-color: #ea580c;
  opacity: 0.10;
  position: absolute;
  bottom: 32px;
  left: 40px;
}

.about-image-inner {
  position: relative;
  z-index: 1;
  text-align: center;
}

.about-image-inner .large-icon {
  font-size: 4rem;
  display: block;
  margin-bottom: 0.5rem;
}

.about-image-inner .image-label {
  font-size: 1rem;
  font-weight: 600;
  color: #78716c;
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}

.stat-item {
  text-align: center;
}

.stat-number {
  display: block;
  font-size: 2rem;
  font-weight: 800;
  color: #b45309;
  line-height: 1.1;
  margin-bottom: 0.25rem;
}

.stat-label {
  font-size: 0.875rem;
  color: #78716c;
  font-weight: 500;
}

/* --- Services Section ------------------------------------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.service-card {
  background-color: #ffffff;
  border: 1px solid #e7e5e4;
  border-radius: 12px;
  padding: 2rem;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
  border-color: #b45309;
  box-shadow: 0 8px 30px rgba(180, 83, 9, 0.08);
}

.service-icon {
  width: 52px;
  height: 52px;
  background-color: #fef7f2;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.25rem;
}

.service-card h3 {
  margin-bottom: 0.625rem;
}

.service-card p {
  color: #57534e;
  font-size: 0.9375rem;
  margin-bottom: 0;
}

/* --- Industries Section ----------------------------------- */
.industries-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.industry-card {
  background-color: #ffffff;
  border: 1px solid #e7e5e4;
  border-radius: 10px;
  padding: 1.5rem;
  text-align: center;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.industry-card:hover {
  border-color: #b45309;
  box-shadow: 0 4px 16px rgba(180, 83, 9, 0.06);
}

.industry-icon {
  font-size: 2rem;
  display: block;
  margin-bottom: 0.75rem;
}

.industry-card h4 {
  margin-bottom: 0.375rem;
  font-size: 1rem;
}

.industry-card p {
  font-size: 0.8125rem;
  color: #78716c;
  margin-bottom: 0;
}

/* --- Process Section -------------------------------------- */
.process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  position: relative;
}

.process-steps::before {
  content: '';
  position: absolute;
  top: 36px;
  left: calc(12.5% + 24px);
  right: calc(12.5% + 24px);
  height: 2px;
  background-color: #e7e5e4;
  z-index: 0;
}

.process-step {
  text-align: center;
  position: relative;
  z-index: 1;
}

.step-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  background-color: #ffffff;
  border: 2px solid #b45309;
  border-radius: 50%;
  margin: 0 auto 1.25rem;
  font-size: 1.5rem;
  font-weight: 800;
  color: #b45309;
}

.process-step h3 {
  margin-bottom: 0.5rem;
}

.process-step p {
  font-size: 0.9375rem;
  color: #57534e;
  margin-bottom: 0;
}

/* --- Capabilities Section --------------------------------- */
.capabilities-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.capability-card {
  background-color: #ffffff;
  border: 1px solid #e7e5e4;
  border-radius: 10px;
  padding: 1.5rem;
  text-align: center;
  transition: border-color 0.3s ease;
}

.capability-card:hover {
  border-color: #b45309;
}

.capability-card .tech-icon {
  font-size: 2rem;
  display: block;
  margin-bottom: 0.625rem;
}

.capability-card h4 {
  font-size: 0.9375rem;
  margin-bottom: 0.25rem;
}

.capability-card p {
  font-size: 0.8125rem;
  color: #78716c;
  margin-bottom: 0;
}

/* --- Why Great Zheng Section ------------------------------ */
.why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.why-item {
  display: flex;
  gap: 1.25rem;
  padding: 1.75rem;
  background-color: #ffffff;
  border: 1px solid #e7e5e4;
  border-radius: 12px;
  transition: border-color 0.3s ease;
}

.why-item:hover {
  border-color: #b45309;
}

.why-icon {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  background-color: #fef7f2;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.375rem;
}

.why-text h3 {
  margin-bottom: 0.375rem;
  font-size: 1.125rem;
}

.why-text p {
  font-size: 0.9375rem;
  color: #57534e;
  margin-bottom: 0;
}

/* --- Contact Section -------------------------------------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 3rem;
  align-items: start;
}

.contact-info h2 {
  margin-bottom: 1rem;
}

.contact-details {
  margin-top: 2rem;
}

.contact-detail {
  display: flex;
  gap: 0.875rem;
  margin-bottom: 1.25rem;
}

.contact-detail-icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  background-color: #fef7f2;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.125rem;
}

.contact-detail h4 {
  margin-bottom: 0.125rem;
  font-size: 0.9375rem;
}

.contact-detail p {
  font-size: 0.9375rem;
  color: #57534e;
  margin-bottom: 0;
}

.contact-form-wrapper {
  background-color: #ffffff;
  border: 1px solid #e7e5e4;
  border-radius: 16px;
  padding: 2.5rem;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: #1c1917;
  margin-bottom: 0.375rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  font-family: inherit;
  color: #1c1917;
  background-color: #faf6f3;
  border: 1px solid #d6d3d1;
  border-radius: 8px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #b45309;
  box-shadow: 0 0 0 3px rgba(180, 83, 9, 0.1);
}

.form-group textarea {
  min-height: 120px;
  resize: vertical;
}

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

.form-submit {
  margin-top: 0.5rem;
}

.form-submit .btn {
  width: 100%;
  padding: 1rem 2rem;
}

/* --- CTA Banner ------------------------------------------- */
.cta-banner {
  padding: 80px 0;
  background-color: #1c1917;
  text-align: center;
}

.cta-banner h2 {
  color: #ffffff;
  margin-bottom: 0.75rem;
}

.cta-banner p {
  color: #a8a29e;
  font-size: 1.125rem;
  margin-bottom: 2rem;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

.cta-banner .btn-primary {
  background-color: #ea580c;
  font-size: 1.0625rem;
  padding: 1rem 2.5rem;
}

.cta-banner .btn-primary:hover {
  background-color: #b45309;
}

.cta-banner .btn-secondary {
  background-color: transparent;
  color: #ffffff;
  border-color: #57534e;
  font-size: 1.0625rem;
  padding: 1rem 2.5rem;
}

.cta-banner .btn-secondary:hover {
  border-color: #ea580c;
  color: #ea580c;
  background-color: transparent;
}

.cta-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* --- Footer ----------------------------------------------- */
.site-footer {
  background-color: #1c1917;
  color: #a8a29e;
  padding: 64px 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand .logo {
  color: #ffffff;
  margin-bottom: 0.75rem;
}

.footer-brand .logo:hover {
  color: #ffffff;
}

.footer-brand p {
  font-size: 0.9375rem;
  color: #a8a29e;
  margin-bottom: 0;
}

.footer-col h4 {
  color: #ffffff;
  font-size: 0.9375rem;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.footer-col ul li {
  margin-bottom: 0.5rem;
}

.footer-col ul li a {
  color: #a8a29e;
  font-size: 0.9375rem;
  transition: color 0.2s ease;
}

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

.footer-bottom {
  border-top: 1px solid #292524;
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-bottom p {
  font-size: 0.875rem;
  color: #78716c;
  margin-bottom: 0;
}

.footer-legal {
  display: flex;
  gap: 1.5rem;
}

.footer-legal a {
  font-size: 0.875rem;
  color: #78716c;
}

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

/* --- Legal Pages ------------------------------------------ */
.legal-page {
  padding: 144px 0 80px;
}

.legal-page h1 {
  margin-bottom: 0.75rem;
}

.legal-page .last-updated {
  font-size: 0.9375rem;
  color: #78716c;
  margin-bottom: 2.5rem;
}

.legal-page h2 {
  font-size: 1.375rem;
  margin-top: 2.5rem;
  margin-bottom: 0.75rem;
}

.legal-page p,
.legal-page li {
  color: #57534e;
}

.legal-page ul,
.legal-page ol {
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
  list-style: disc;
}

.legal-page ol {
  list-style: decimal;
}

.legal-page ul li,
.legal-page ol li {
  margin-bottom: 0.5rem;
}

.legal-contact {
  margin-top: 3rem;
  padding: 2rem;
  background-color: #ffffff;
  border: 1px solid #e7e5e4;
  border-radius: 12px;
}

.legal-contact h3 {
  margin-bottom: 0.5rem;
}

.legal-contact p {
  margin-bottom: 0.25rem;
}

/* --- Toast Notification ----------------------------------- */
.toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background-color: #1c1917;
  color: #ffffff;
  padding: 1rem 1.5rem;
  border-radius: 10px;
  font-size: 0.9375rem;
  font-weight: 500;
  z-index: 9999;
  opacity: 0;
  transform: translateY(1rem);
  transition: opacity 0.3s ease, transform 0.3s ease;
  pointer-events: none;
}

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

.toast--success {
  background-color: #1c1917;
  border-left: 4px solid #ea580c;
}

/* --- Responsive ------------------------------------------- */
@media (max-width: 1024px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .hero-visual {
    order: -1;
  }

  .hero-illustration {
    max-width: 300px;
  }

  .hero {
    padding: 120px 0 64px;
  }

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

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

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

  .process-steps::before {
    display: none;
  }

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

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

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

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

@media (max-width: 768px) {
  .main-nav {
    display: none;
  }

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

  .main-nav--open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background-color: #ffffff;
    border-bottom: 1px solid #e7e5e4;
    padding: 1rem 1.5rem;
    box-shadow: 0 8px 24px rgba(28, 25, 23, 0.08);
  }

  .nav-cta {
    margin-left: 0;
    margin-top: 0.5rem;
    text-align: center;
    width: 100%;
    justify-content: center;
  }

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

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

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

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

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

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

  .about-stats {
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
  }

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

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .section {
    padding: 64px 0;
  }
}

@media (max-width: 480px) {
  .hero-ctas {
    flex-direction: column;
  }

  .hero-ctas .btn {
    width: 100%;
    justify-content: center;
  }

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

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

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

  .contact-form-wrapper {
    padding: 1.5rem;
  }

  .cta-buttons {
    flex-direction: column;
  }
}
