/* 振邦装饰 · Atelier Editorial v2 — 建筑工作室 / 石灰石 + 铜绿 */
@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,500;9..144,650;9..144,700&family=Noto+Sans+SC:wght@400;500;700&display=swap');

:root {
  --bg-primary: #e8e4dc;
  --bg-secondary: #f3f0e9;
  --bg-card: #f7f5ef;
  --bg-card-hover: #ffffff;
  --text-primary: #161412;
  --text-secondary: #4a4742;
  --text-muted: #7a756c;
  --accent: #8b6914;
  --accent-light: #a67c2e;
  --accent-dim: rgba(47, 74, 60, 0.1);
  --forest: #2f4a3c;
  --copper: #9a7b4f;
  --ink: #161412;
  --stone: #e8e4dc;
  --border: rgba(22, 20, 18, 0.1);
  --border-hover: rgba(47, 74, 60, 0.35);
  --font-display: 'Fraunces', 'Noto Serif SC', serif;
  --font-main: 'Noto Sans SC', 'PingFang SC', sans-serif;
  --max-width: 1180px;
  --nav-height: 76px;
  --section-padding: 110px 0;
}

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

body {
  font-family: var(--font-main) !important;
  background: var(--bg-primary) !important;
  color: var(--text-primary) !important;
  line-height: 1.75;
}

/* soft paper grain */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9998;
  opacity: 0.035;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

h1, h2, h3, .section-title, .nav-brand, .hero-content h1, .project-card-title {
  font-family: var(--font-display) !important;
  font-optical-sizing: auto;
  letter-spacing: -0.01em;
}

/* NAV — light floating bar */
.nav {
  background: rgba(232, 228, 220, 0.82) !important;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent !important;
}
.nav.scrolled {
  border-bottom-color: var(--border) !important;
  box-shadow: 0 10px 40px rgba(22,20,18,0.06);
}
.nav-brand {
  color: var(--ink) !important;
  font-size: 1.25rem !important;
  font-weight: 650 !important;
}
.nav-brand span {
  display: block;
  font-family: var(--font-main) !important;
  font-size: 0.62rem !important;
  letter-spacing: 0.22em;
  color: var(--forest) !important;
  font-weight: 500 !important;
  margin-top: 2px;
}
.nav-links a {
  color: var(--text-secondary) !important;
  font-size: 0.92rem;
}
.nav-links a:hover { color: var(--forest) !important; }
.nav-phone {
  color: var(--forest) !important;
  border: 1px solid rgba(47,74,60,0.25);
  border-radius: 999px;
  padding: 0.45rem 0.95rem;
  background: rgba(47,74,60,0.06);
}
.nav-phone:hover {
  background: var(--forest);
  color: #f7f5ef !important;
}
.nav-hamburger span { background: var(--ink) !important; }

/* HERO — full bleed architectural */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: var(--ink) !important;
  overflow: hidden;
}
.hero-bg, .hero-overlay {
  position: absolute;
  inset: 0;
}
.hero-content {
  position: relative;
  z-index: 2;
  padding: calc(var(--nav-height) + 48px) 24px 80px;
  max-width: var(--max-width);
  margin: 0 auto;
  width: 100%;
}
.hero-bg {
  background:
    linear-gradient(120deg, rgba(22,20,18,0.55), rgba(47,74,60,0.25)),
    url('/images/hero.webp?v=20') center/cover no-repeat !important;
  transform: scale(1.02);
  animation: heroDrift 18s ease-in-out infinite alternate;
}
.hero-overlay {
  background:
    linear-gradient(105deg, rgba(22,20,18,0.92) 0%, rgba(22,20,18,0.62) 42%, rgba(22,20,18,0.35) 100%) !important;
}
.hero-content { color: #f7f5ef; max-width: 680px; }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: #d8c9a8 !important;
  border: 1px solid rgba(216,201,168,0.35);
  background: rgba(255,255,255,0.04);
  border-radius: 999px;
  padding: 0.4rem 0.95rem;
  letter-spacing: 0.12em;
  font-size: 0.75rem;
  text-transform: uppercase;
  animation: fadeUp 0.8s ease both;
}
.hero-badge .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: #c4a46a;
  box-shadow: 0 0 12px rgba(196,164,106,0.7);
}
.hero h1, .hero-content h1 {
  font-size: clamp(2.8rem, 6.5vw, 4.8rem) !important;
  line-height: 1.08 !important;
  color: #f7f5ef !important;
  margin: 1.2rem 0 1rem !important;
  animation: fadeUp 0.85s 0.1s ease both;
}
.hero h1 .accent, .hero-content .accent {
  color: #d4bc96 !important;
  font-style: italic;
  font-weight: 500;
}
.hero-desc {
  color: rgba(247,245,239,0.72) !important;
  font-size: 1.08rem !important;
  animation: fadeUp 0.85s 0.18s ease both;
}
.hero-buttons { animation: fadeUp 0.85s 0.26s ease both; gap: 0.85rem; }
.btn {
  border-radius: 999px !important;
  padding: 0.9rem 1.6rem !important;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease, box-shadow 0.25s ease !important;
}
.btn-primary {
  background: #d4bc96 !important;
  color: #161412 !important;
  border: none !important;
}
.btn-primary:hover {
  background: #e4d0ad !important;
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(212,188,150,0.28);
}
.btn-outline {
  background: transparent !important;
  color: #f7f5ef !important;
  border: 1px solid rgba(247,245,239,0.35) !important;
}
.btn-outline:hover {
  border-color: #d4bc96 !important;
  color: #d4bc96 !important;
}
.hero-scroll { color: rgba(247,245,239,0.55) !important; }
.hero-scroll .arrow {
  border-color: rgba(247,245,239,0.45) !important;
}

/* Sections on stone paper */
.section {
  background: var(--bg-primary) !important;
  padding: var(--section-padding) !important;
}
.section.projects { background: var(--bg-secondary) !important; }
.section.process { background: #ddd8ce !important; }
.section-label {
  color: var(--forest) !important;
  letter-spacing: 0.2em !important;
  font-size: 0.75rem !important;
  text-transform: uppercase;
  font-weight: 600;
}
.section-title {
  color: var(--ink) !important;
  font-size: clamp(1.9rem, 3.5vw, 2.8rem) !important;
  font-weight: 650 !important;
}
.section-desc { color: var(--text-secondary) !important; }
.section-line {
  width: 56px !important;
  height: 2px !important;
  background: var(--forest) !important;
  margin: 1rem auto 0 !important;
  border-radius: 0 !important;
}

/* Project mosaic — editorial, less cardy */
.project-grid {
  gap: 18px !important;
}
.project-card {
  border-radius: 4px !important;
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(22,20,18,0.08) !important;
  border: 1px solid rgba(22,20,18,0.06);
}
.project-card img {
  filter: saturate(0.92) contrast(1.04);
  transition: transform 0.7s ease, filter 0.7s ease;
}
.project-card:hover img {
  transform: scale(1.05);
  filter: saturate(1.05) contrast(1.06);
}
.project-card-overlay {
  background: linear-gradient(transparent 20%, rgba(22,20,18,0.88)) !important;
}
.project-card-number {
  color: #d4bc96 !important;
  font-family: var(--font-display) !important;
}
.project-card-title { color: #f7f5ef !important; }
.project-card-meta, .project-card-desc { color: rgba(247,245,239,0.7) !important; }
.view-all a {
  color: var(--forest) !important;
  border-bottom: 1px solid rgba(47,74,60,0.35);
  padding-bottom: 2px;
}
.view-all a:hover { color: var(--ink) !important; }

/* Service panels */
.services-grid { gap: 1.25rem !important; }
.service-card {
  background: var(--bg-card) !important;
  border: 1px solid var(--border) !important;
  border-radius: 6px !important;
  box-shadow: none !important;
  transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease !important;
}
.service-card:hover {
  border-color: var(--border-hover) !important;
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(22,20,18,0.08) !important;
  background: var(--bg-card-hover) !important;
}
.service-icon {
  background: var(--accent-dim) !important;
  color: var(--forest) !important;
  border-radius: 4px !important;
}
.service-num {
  color: var(--copper) !important;
  font-family: var(--font-display) !important;
}
.service-card h3 { color: var(--ink) !important; }
.service-card > p { color: var(--text-secondary) !important; }
.service-item {
  background: rgba(47,74,60,0.06) !important;
  border: 1px solid rgba(47,74,60,0.08) !important;
  border-radius: 4px !important;
}
.service-item span { color: var(--text-secondary) !important; }

/* Process / contact / footer */
.process-step, .contact-card, .advantage-card {
  background: rgba(247,245,239,0.7) !important;
  border: 1px solid var(--border) !important;
  border-radius: 6px !important;
}
.contact, #contact {
  background: var(--ink) !important;
  color: #f7f5ef !important;
}
.contact h2, #contact h2, .contact .section-title {
  color: #f7f5ef !important;
}
.contact .section-label { color: #d4bc96 !important; }
.contact input, .contact textarea {
  background: rgba(255,255,255,0.06) !important;
  border: 1px solid rgba(255,255,255,0.14) !important;
  color: #f7f5ef !important;
  border-radius: 4px !important;
}
.contact input:focus, .contact textarea:focus {
  border-color: #d4bc96 !important;
  box-shadow: 0 0 0 3px rgba(212,188,150,0.2) !important;
  outline: none;
}
.footer, footer {
  background: #12100e !important;
  color: rgba(247,245,239,0.65) !important;
  border-top: 1px solid rgba(212,188,150,0.15);
}
.footer a { color: rgba(247,245,239,0.75) !important; }
.footer a:hover { color: #d4bc96 !important; }

.mobile-menu {
  background: rgba(232,228,220,0.98) !important;
}
.mobile-menu a { color: var(--ink) !important; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: none; }
}
@keyframes heroDrift {
  from { transform: scale(1.02) translate3d(0,0,0); }
  to { transform: scale(1.06) translate3d(-1.2%, -0.8%, 0); }
}

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

@media (max-width: 768px) {
  .hero h1, .hero-content h1 { font-size: 2.45rem !important; }
  .nav-phone { display: none; }
}


/* ===== Layout fix v21: keep structure intact ===== */
.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
  height: 100%;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 24px;
}
.nav-links {
  display: flex !important;
  align-items: center;
  gap: 28px;
  flex: 1;
  justify-content: center;
}
.nav-brand {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  white-space: nowrap;
  flex-shrink: 0;
}
.hero {
  min-height: 100vh !important;
  display: flex !important;
  align-items: center !important;
  position: relative !important;
  overflow: hidden !important;
  padding-top: var(--nav-height) !important;
}
.hero-bg {
  position: absolute !important;
  inset: 0 !important;
  opacity: 1 !important;
  filter: none !important;
  z-index: 0;
}
.hero-overlay {
  position: absolute !important;
  inset: 0 !important;
  z-index: 1;
}
.hero-content {
  position: relative !important;
  z-index: 2 !important;
  max-width: var(--max-width) !important;
  margin: 0 auto !important;
  width: 100% !important;
  padding: 60px 24px !important;
}
.hero-scroll {
  position: absolute;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
}
.section {
  position: relative;
  z-index: 1;
}
.section-header {
  text-align: center;
  margin-bottom: 48px;
}
.project-grid {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}
.services-grid {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}
.view-all {
  text-align: center;
  margin-top: 36px;
}
@media (max-width: 900px) {
  .project-grid, .services-grid { grid-template-columns: 1fr; }
  .nav-links { display: none !important; }
}

/* ===== Services bento + Contact contrast fix v22 ===== */
#services .services-grid { display: none !important; }

.services-bento {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.svc {
  position: relative;
  display: grid;
  grid-template-rows: 150px auto;
  background: #f7f5ef;
  border: 1px solid rgba(22,20,18,0.08);
  border-radius: 10px;
  overflow: hidden;
  min-height: 0;
  height: auto;
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

.svc:hover {
  transform: translateY(-5px);
  box-shadow: 0 18px 40px rgba(22,20,18,0.1);
  border-color: rgba(47,74,60,0.28);
}

/* 01 横贯整行：左图右文，无大块留白 */
.svc-a {
  grid-column: 1 / -1;
  grid-row: auto;
  display: flex;
  flex-direction: row;
  align-items: stretch;
  min-height: 0;
  height: auto;
  max-height: none;
}

.svc-a .svc-media {
  flex: 0 0 40%;
  width: 40%;
  min-height: 0;
  height: auto;
  align-self: stretch;
}

.svc-a .svc-body {
  flex: 1 1 auto;
  justify-content: flex-start;
  gap: 8px;
  padding: 18px 22px 16px;
}

.svc-a h3 {
  font-size: 1.75rem !important;
  margin: 0 !important;
}

.svc-a p {
  max-width: 36em;
  margin: 0 0 4px !important;
}

.svc-media {
  background-size: cover;
  background-position: center;
  position: relative;
}
.svc-media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(22,20,18,0.45) 100%);
}

.svc-body {
  padding: 18px 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: relative;
}

.svc-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.svc-idx {
  font-family: var(--font-display);
  font-size: 1.8rem;
  line-height: 1;
  color: var(--forest);
  font-weight: 650;
  letter-spacing: -0.02em;
}

.svc-a .svc-idx { font-size: 2.1rem; }

.svc-tag {
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--copper);
  border: 1px solid rgba(154,123,79,0.35);
  padding: 0.28rem 0.65rem;
  border-radius: 999px;
  background: rgba(154,123,79,0.08);
}

.svc h3 {
  font-family: var(--font-display) !important;
  font-size: 1.35rem !important;
  color: var(--ink) !important;
  margin: 0 !important;
  font-weight: 650 !important;
}

.svc p {
  color: var(--text-secondary) !important;
  font-size: 0.88rem !important;
  line-height: 1.6 !important;
  margin: 0 !important;
}

.svc-chips {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
  padding: 0;
}

.svc-chips li {
  font-size: 0.75rem;
  color: var(--forest);
  background: rgba(47,74,60,0.07);
  border: 1px solid rgba(47,74,60,0.12);
  border-radius: 999px;
  padding: 0.28rem 0.65rem;
}

@media (max-width: 900px) {
  .services-bento {
    grid-template-columns: 1fr;
  }
  .svc-a {
    grid-column: auto;
    flex-direction: column;
    max-height: none;
    min-height: 0;
  }
  .svc-a .svc-media {
    flex: 0 0 180px;
    width: 100%;
    min-height: 180px;
  }
}

/* Contact contrast — dark panel, light readable text */
#contact.cta,
section.cta#contact {
  background: #161412 !important;
  color: #f7f5ef !important;
}
#contact .cta-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  align-items: stretch;
}
#contact .cta-text h2 {
  color: #f7f5ef !important;
  font-family: var(--font-display) !important;
}
#contact .cta-text h2 span,
#contact .cta-text h2 [style] {
  color: #d4bc96 !important;
}
#contact .cta-text > p {
  color: rgba(247,245,239,0.72) !important;
}
#contact .cta-info-item {
  border-bottom-color: rgba(212,188,150,0.22) !important;
}
#contact .cta-info-item .label {
  color: #d4bc96 !important;
  font-size: 0.78rem !important;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 8px !important;
}
#contact .cta-info-item .value,
#contact .cta-info-item a.value {
  color: #f7f5ef !important;
  font-size: 1.05rem !important;
  font-weight: 600 !important;
  text-decoration: none !important;
  line-height: 1.5;
}
#contact .cta-info-item a.value:hover {
  color: #d4bc96 !important;
}
#contact .cta-phone-box {
  background: rgba(247,245,239,0.04) !important;
  border: 1px solid rgba(212,188,150,0.28) !important;
  border-radius: 12px !important;
  color: #f7f5ef !important;
}
#contact .cta-phone-box svg {
  color: #d4bc96 !important;
  stroke: #d4bc96 !important;
}
#contact .cta-phone-box .phone-num {
  color: #d4bc96 !important;
}
#contact .cta-phone-box .phone-sub {
  color: rgba(247,245,239,0.65) !important;
}
#contact .cta-phone-box .btn-primary {
  background: #d4bc96 !important;
  color: #161412 !important;
}
@media (max-width: 900px) {
  #contact .cta-inner { grid-template-columns: 1fr; }
}

.svc-a .svc-top { margin-bottom: 4px; }
.svc-a h3 { margin-bottom: 4px !important; }
.svc-a p { margin-bottom: 6px !important; }
.svc-a .svc-chips { margin-top: 4px; }
