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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  line-height: 1.6;
  color: #111827;
  background: #fffbeb; /* 整体偏浅黄 */
}

/* Layout helpers */

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 5rem 0;
  background: #fffbeb; /* 默认浅黄 */
}

.section-alt {
  padding: 5rem 0;
  background: #fef3c7; /* 略深一点的黄，做分区 */
}

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

.section-header h2 {
  font-size: 2.2rem;
  margin-bottom: 0.75rem;
  color: #1f2937;
}

.section-header p {
  color: #4b5563;
  max-width: 34rem;
  margin: 0 auto;
  font-size: 0.98rem;
}

/* Grid */

.grid {
  display: grid;
  gap: 1.75rem;
}

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

.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (max-width: 900px) {
  .grid-2,
  .grid-3 {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Header / Nav */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(254, 243, 199, 0.9); /* 浅黄半透明 */
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(252, 211, 77, 0.6);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
}

.logo {
  font-weight: 700;
  letter-spacing: 0.08em;
  font-size: 1.1rem;
  text-transform: uppercase;
  color: #1f2937;
}

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

.nav a {
  font-size: 0.95rem;
  color: #1f2937;
  text-decoration: none;
  padding: 0.25rem 0;
}

.nav a:hover {
  color: #1d4ed8; /* 蓝色点缀 */
}

.nav-cta {
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  border: 1px solid rgba(251, 191, 36, 0.7);
  background: #fef9c3;
}

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

/* Hero */

.hero {
  padding: 5rem 0 4.5rem;
  background:
    radial-gradient(circle at top left, rgba(250, 204, 21, 0.7), transparent 60%),
    radial-gradient(circle at bottom right, rgba(37, 99, 235, 0.25), transparent 60%),
    linear-gradient(to bottom, #fef9c3, #fffbeb);
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 3rem;
  align-items: center;
}

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

.hero-copy h1 {
  font-size: clamp(2.4rem, 4vw, 3.2rem);
  line-height: 1.1;
  margin-bottom: 1rem;
  color: #111827;
}

.hero-sub {
  color: #374151;
  max-width: 34rem;
  font-size: 1rem;
  margin-bottom: 1.75rem;
}

.eyebrow {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: #1d4ed8; /* 蓝色小标题 */
  margin-bottom: 0.75rem;
}

.hero-tagline {
  font-size: 1.05rem;
  font-weight: 500;
  color: #1d4ed8; /* blue accent */
  margin-bottom: 0.75rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.hero-note {
  font-size: 0.85rem;
  color: #4b5563;
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.2rem;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 500;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, #facc15, #eab308); /* 亮黄为主 */
  color: #111827;
  border-color: rgba(202, 138, 4, 0.8);
  box-shadow: 0 12px 30px rgba(202, 138, 4, 0.45);
}

.btn-primary:hover {
  filter: brightness(1.05);
}

.btn-ghost {
  background: transparent;
  border-color: rgba(37, 99, 235, 0.4);
  color: #1d4ed8;
}

.btn-ghost:hover {
  border-color: #1d4ed8;
  background: rgba(219, 234, 254, 0.6);
}

.btn-full {
  width: 100%;
}

/* Hero side panel */

.hero-panel {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.hero-stat-card {
  background: #fefce8;
  border-radius: 1.25rem;
  padding: 1.5rem 1.6rem;
  border: 1px solid rgba(250, 204, 21, 0.9);
  box-shadow: 0 12px 32px rgba(248, 185, 24, 0.45);
}

.stat-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: #1d4ed8;
  margin-bottom: 0.5rem;
}

.stat-main {
  font-weight: 600;
  color: #111827;
  margin-bottom: 0.5rem;
}

.stat-sub {
  color: #374151;
  font-size: 0.9rem;
}

.hero-tag {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.hero-tag span {
  font-size: 0.78rem;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(251, 191, 36, 0.9);
  color: #92400e;
  background: #fef3c7;
}

/* Cards */

.card {
  background: #ffffff;
  border-radius: 1.1rem;
  padding: 1.5rem 1.6rem;
  border: 1px solid rgba(251, 191, 36, 0.8);
  box-shadow: 0 10px 28px rgba(202, 138, 4, 0.25);
}

.card h3 {
  margin-top: 0;
  margin-bottom: 0.75rem;
  font-size: 1.15rem;
  color: #111827;
}

.card p {
  margin: 0 0 0.6rem;
  color: #374151;
  font-size: 0.96rem;
}

.card ul {
  margin: 0.4rem 0 0;
  padding-left: 1.2rem;
  color: #374151;
  font-size: 0.95rem;
}

.card li + li {
  margin-top: 0.2rem;
}

/* Step cards */

.step-card {
  position: relative;
  overflow: hidden;
}

.step-number {
  position: absolute;
  top: 1.1rem;
  right: 1.4rem;
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #9ca3af;
}

/* Value props */

.value-card {
  min-height: 0;
}

/* Case study */

.case-grid {
  align-items: start;
}

.case-card ul {
  list-style: disc;
}

/* Profiles / who it's for */

.profile-card p {
  min-height: 0;
}

/* Pricing note */

.pricing-note {
  margin-top: 2.5rem;
  text-align: center;
  max-width: 40rem;
  margin-left: auto;
  margin-right: auto;
}

.pricing-note p {
  color: #374151;
}

.pricing-note .muted {
  margin-top: 0.5rem;
}

/* Contact */

.contact-section {
  background: #fef3c7; /* 联系区块稍微深一点黄 */
}

.contact-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  align-items: start;
}

@media (max-width: 900px) {
  .contact-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

.contact-section h2 {
  font-size: 2rem;
  color: #111827;
}

.contact-section p {
  color: #374151;
}

.contact-email a {
  color: #1d4ed8;
  text-decoration: none;
}

.contact-email a:hover {
  text-decoration: underline;
}

.contact-card form {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.contact-card label {
  display: flex;
  flex-direction: column;
  font-size: 0.86rem;
  color: #4b5563;
  gap: 0.25rem;
}

.contact-card input,
.contact-card textarea {
  border-radius: 0.75rem;
  border: 1px solid rgba(209, 213, 219, 1);
  background: #ffffff;
  padding: 0.55rem 0.7rem;
  color: #111827;
  font-size: 0.92rem;
  outline: none;
}

.contact-card input:focus,
.contact-card textarea:focus {
  border-color: #facc15;
}

.contact-card textarea {
  resize: vertical;
}

.form-note {
  margin-top: 0.4rem;
  font-size: 0.8rem;
  color: #6b7280;
}

/* Text helpers */

.muted {
  color: #6b7280;
  font-size: 0.9rem;
}

/* Footer */

.site-footer {
  border-top: 1px solid rgba(252, 211, 77, 0.8);
  background: #fef3c7;
}

.footer-inner {
  padding: 1.1rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #92400e;
  font-size: 0.8rem;
}

@media (max-width: 720px) {
  .footer-inner {
    flex-direction: column;
    gap: 0.4rem;
    text-align: center;
  }
}
/* ---- Case study background using BIM image ---- */

.section-case {
  position: relative;
  overflow: hidden;
  padding: 5rem 0;
  background: transparent; /* 背景交给 ::before 控制 */
}

/* 用图片 + 黄色渐变做整块背景 */
.section-case::before {
  content: "";
  position: absolute;
  inset: 0;
  /* 先画图，再叠一层半透明黄色 */
  background:
    url("case-bim.jpg") center center / cover no-repeat,
    linear-gradient(to right, rgba(254, 243, 199, 0.65), rgba(250, 204, 21, 0.45));
  opacity: 1;
  mix-blend-mode: normal;
  pointer-events: none;
}

.case-inner {
  position: relative;
  z-index: 1; /* 文字浮在背景上面 */
}

/* 在图片背景上用深一点的文字颜色，保证可读性 */
.section-header-on-image h2 {
  color: #111827;
}

.section-header-on-image p {
  color: #374151;
}

/* 调整 case-grid 在这块的显示（保持和其他 section 一致） */
.case-grid {
  align-items: flex-start;
}

/* ---- Speckle 3D embed ---- */

.speckle-embed-wrap {
  position: relative;
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  padding-top: 56.25%; /* 16:9 高宽比，可以改成 60% / 70% */
  border-radius: 1.25rem;
  overflow: hidden;
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.25);
  background: #e5e7eb; /* 加个浅灰底，加载前不突兀 */
}

.speckle-iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
