/* ========================================
   DMC Group — Professional Consulting Site
   ======================================== */

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

:root {
  /* Palette — Navy + Warm Gold */
  --navy-900: #0f1a2e;
  --navy-800: #162340;
  --navy-700: #1d2d52;
  --navy-600: #263966;
  --slate-50: #f8f9fb;
  --slate-100: #eef1f5;
  --slate-200: #dce1e9;
  --slate-300: #b8c1d0;
  --slate-400: #8d97ab;
  --slate-500: #6b7689;
  --slate-600: #4a5568;
  --gold-400: #c9a84c;
  --gold-500: #b8942f;
  --gold-600: #9a7a22;
  --white: #ffffff;
  --text-primary: #1a1f2e;
  --text-secondary: #4a5568;
  --text-light: #8d97ab;

  /* Typography */
  --font-heading: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-body: 'DM Sans', 'Segoe UI', system-ui, sans-serif;

  /* Spacing */
  --section-pad: clamp(4rem, 8vw, 7rem);
  --container: min(1200px, 90vw);

  /* Transitions */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

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

body {
  font-family: var(--font-body);
  color: var(--text-primary);
  background: var(--white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.container { width: var(--container); margin: 0 auto; }

/* --- Typography --- */
h1, h2, h3, h4 { font-family: var(--font-heading); font-weight: 600; line-height: 1.2; }
h1 { font-size: clamp(2.2rem, 4vw, 3.4rem); }
h2 { font-size: clamp(1.8rem, 3vw, 2.6rem); }
h3 { font-size: clamp(1.3rem, 2vw, 1.7rem); }
h4 { font-size: 1.15rem; }

.section-label {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-500);
  margin-bottom: 0.75rem;
}

.section-title { margin-bottom: 1rem; }

.section-desc {
  color: var(--text-secondary);
  font-size: 1.05rem;
  max-width: 600px;
  line-height: 1.8;
}

/* --- Header / Nav --- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--slate-200);
  transition: background 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out);
}

.site-header.scrolled {
  box-shadow: 0 1px 20px rgba(15,26,46,0.08);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--navy-800);
  letter-spacing: -0.02em;
}

.logo-mark {
  width: 60px;
  height: 60px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-right: 0.4rem;
  background: rgba(2, 35, 64, 0.06);
  box-shadow: 0 2px 8px rgba(22, 35, 64, 0.08);
  transition: background 0.3s, box-shadow 0.3s;
}

.logo-mark:hover {
  background: rgba(2, 35, 64, 0.1);
  box-shadow: 0 4px 12px rgba(22, 35, 64, 0.12);
}

.footer-brand .logo-mark {
  width: 100px;
  height: 100px;
  background: rgba(255, 255, 255, 0.04);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  transition: background 0.3s, box-shadow 0.3s;
}

.footer-brand .logo-mark:hover {
  background: rgba(255, 255, 255, 0.12);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}


.logo-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

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

.nav-links a {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-secondary);
  position: relative;
  transition: color 0.3s;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gold-500);
  transition: width 0.3s var(--ease-out);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--navy-800);
}

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

.nav-cta {
  padding: 0.6rem 1.4rem;
  background: var(--navy-800);
  color: var(--white) !important;
  border-radius: 6px;
  font-size: 0.88rem;
  font-weight: 600;
  transition: background 0.3s, transform 0.2s;
}

.nav-cta::after { display: none !important; }
.nav-cta:hover { background: var(--navy-700); transform: translateY(-1px); color: var(--white) !important; }

/* Mobile menu toggle */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--navy-800);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

/* --- Hero --- */
.hero {
  padding-top: calc(72px + var(--section-pad));
  padding-bottom: var(--section-pad);
  background: var(--slate-50);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -200px;
  right: -200px;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201,168,76,0.08) 0%, transparent 70%);
  pointer-events: none;
}

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

.hero-text { max-width: 560px; }

.hero-text .section-label { margin-bottom: 1rem; }

.hero-text h1 {
  margin-bottom: 1.5rem;
  color: var(--navy-800);
}

.hero-text h1 .accent { color: var(--gold-500); }

.hero-text p {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  line-height: 1.8;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.8rem;
  border-radius: 6px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.3s var(--ease-out);
}

.btn-primary {
  background: var(--navy-800);
  color: var(--white);
}

.btn-primary:hover { background: var(--navy-700); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(15,26,46,0.18); }

.btn-outline {
  background: transparent;
  color: var(--navy-800);
  border: 1.5px solid var(--slate-300);
}

.btn-outline:hover { border-color: var(--navy-800); background: var(--navy-800); color: var(--white); }

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
}

.hero-card {
  background: var(--white);
  border-radius: 12px;
  padding: 2.5rem;
  box-shadow: 0 20px 60px rgba(15,26,46,0.08);
  max-width: 420px;
  width: 100%;
}

.hero-card h4 {
  color: var(--navy-800);
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
}

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

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

.stat-num {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  color: var(--navy-800);
  line-height: 1;
}

.stat-num .gold { color: var(--gold-500); }

.stat-label {
  font-size: 0.82rem;
  color: var(--text-light);
  margin-top: 0.35rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* --- Services Grid --- */
.services-section {
  padding: var(--section-pad) 0;
}

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

.services-section .section-desc { margin: 0 auto; }

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

.service-card {
  padding: 2rem;
  border: 1px solid var(--slate-200);
  border-radius: 10px;
  transition: all 0.4s var(--ease-out);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 3px;
  background: var(--gold-500);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease-out);
}

.service-card:hover {
  border-color: var(--slate-300);
  box-shadow: 0 12px 36px rgba(15,26,46,0.06);
  transform: translateY(-4px);
}

.service-card:hover::before { transform: scaleX(1); }

.service-icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: var(--slate-100);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  font-size: 1.3rem;
}

.service-card h4 { color: var(--navy-800); margin-bottom: 0.6rem; }

.service-card p {
  color: var(--text-secondary);
  font-size: 0.93rem;
  line-height: 1.7;
}

.service-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 1rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--gold-500);
  transition: gap 0.3s var(--ease-out);
}

.service-link:hover { gap: 0.6rem; }

/* --- Why Choose Us --- */
.why-section {
  padding: var(--section-pad) 0;
  background: var(--navy-800);
  color: var(--white);
}

.why-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.why-text .section-label { color: var(--gold-400); }
.why-text .section-title { color: var(--white); }

.why-text p {
  color: rgba(255,255,255,0.65);
  font-size: 1.05rem;
  margin-bottom: 2rem;
}

.why-features { display: flex; flex-direction: column; gap: 1.5rem; }

.why-feature {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.why-feature-icon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: rgba(201,168,76,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--gold-400);
  font-size: 1.1rem;
}

.why-feature h4 {
  color: var(--white);
  margin-bottom: 0.25rem;
  font-size: 1rem;
}

.why-feature p {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.55);
  margin: 0;
}

/* --- Client Logos Marquee --- */
.clients-section {
  padding: 3.5rem 0 3rem;
  background: var(--white);
  overflow: hidden;
}

.clients-track-wrapper {
  position: relative;
  mask-image: linear-gradient(
    to right,
    transparent,
    black 8%,
    black 92%,
    transparent
  );
  -webkit-mask-image: linear-gradient(
    to right,
    transparent,
    black 8%,
    black 92%,
    transparent
  );
  overflow: hidden;
}

.clients-track {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  animation: marquee 40s linear infinite;
  width: max-content;
}

.client-logo {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  width: 180px;
  height: 72px;
  margin-right: 3.5rem;
}

/* 两组之间无缝连接：第8个不加margin */
.client-logo:nth-child(8) {
  margin-right: 0;
}

.client-logo img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  filter: none;
}

@keyframes marquee {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.clients-section:hover .clients-track {
  animation-play-state: paused;
}


/* --- CTA Banner --- */
.cta-section {
  padding: var(--section-pad) 0;
  background: var(--slate-50);
}

.cta-card {
  background: linear-gradient(135deg, var(--navy-800), var(--navy-700));
  border-radius: 16px;
  padding: clamp(2.5rem, 5vw, 4rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  position: relative;
  overflow: hidden;
}

.cta-card::after {
  content: '';
  position: absolute;
  top: -60px; right: -60px;
  width: 300px; height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201,168,76,0.1) 0%, transparent 70%);
}

.cta-card h2 { color: var(--white); margin-bottom: 0.5rem; }
.cta-card p { color: rgba(255,255,255,0.6); font-size: 1.05rem; }

.cta-card .btn-primary {
  background: var(--gold-500);
  flex-shrink: 0;
}

.cta-card .btn-primary:hover {
  background: var(--gold-400);
}

/* --- Footer --- */
.site-footer {
  background: var(--navy-900);
  color: rgba(255,255,255,0.6);
  padding: 4rem 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-brand p {
  margin-top: 1rem;
  font-size: 0.9rem;
  line-height: 1.7;
  max-width: 320px;
}

.footer-col h5 {
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1.25rem;
}

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

.footer-col ul a {
  font-size: 0.9rem;
  transition: color 0.3s;
}

.footer-col ul a:hover { color: var(--gold-400); }

.footer-contact li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  margin-bottom: 0.8rem;
  font-size: 0.9rem;
}

.footer-contact .icon { color: var(--gold-400); flex-shrink: 0; }

.footer-bottom {
  padding: 1.5rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.82rem;
}

.footer-bottom a { color: var(--gold-400); }

/* --- Page Hero (sub-pages) --- */
.page-hero {
  padding: calc(72px + 3rem) 0 3rem;
  background: var(--slate-50);
  border-bottom: 1px solid var(--slate-200);
}

.page-hero h1 { color: var(--navy-800); margin-bottom: 0.5rem; }
.page-hero p { color: var(--text-secondary); font-size: 1.05rem; }

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-light);
  margin-bottom: 1rem;
}

.breadcrumb a { color: var(--gold-500); }
.breadcrumb a:hover { color: var(--gold-600); }

/* --- About Page --- */
.about-content { padding: var(--section-pad) 0; }

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  margin-bottom: 4rem;
}

.about-grid.reverse { direction: rtl; }
.about-grid.reverse > * { direction: ltr; }

.about-image {
  border-radius: 12px;
  overflow: hidden;
  background: var(--slate-100);
  aspect-ratio: 4/3;
  display: flex;
  align-items: center;
  justify-content: center;
}

.about-image-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--navy-800), var(--navy-600));
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.3);
  font-size: 3rem;
}

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

.value-card {
  text-align: center;
  padding: 2rem 1.5rem;
}

.value-icon {
  width: 56px; height: 56px;
  border-radius: 12px;
  background: var(--slate-100);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  font-size: 1.5rem;
}

.value-card h4 { color: var(--navy-800); margin-bottom: 0.5rem; }
.value-card p { color: var(--text-secondary); font-size: 0.93rem; }

/* --- Services Page --- */
.services-list { padding: var(--section-pad) 0; }

.service-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  padding: 3rem 0;
  border-bottom: 1px solid var(--slate-200);
}

.service-detail:last-child { border-bottom: none; }

.service-detail.reverse { direction: rtl; }
.service-detail.reverse > * { direction: ltr; }

.service-detail-content .service-icon {
  margin-bottom: 1rem;
}

.service-detail-content h3 { color: var(--navy-800); margin-bottom: 0.75rem; }
.service-detail-content p { color: var(--text-secondary); margin-bottom: 1rem; }

.service-detail-content ul {
  list-style: none;
  padding: 0;
}

.service-detail-content ul li {
  padding: 0.4rem 0;
  padding-left: 1.5rem;
  position: relative;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.service-detail-content ul li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--gold-500);
  font-weight: 700;
}

.service-detail-visual {
  border-radius: 12px;
  overflow: hidden;
  background: var(--slate-100);
  aspect-ratio: 4/3;
  display: flex;
  align-items: center;
  justify-content: center;
}

.service-detail-visual-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--slate-100), var(--slate-200));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  color: var(--slate-400);
}

/* --- Contact Page --- */
.contact-section { padding: var(--section-pad) 0; }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
}

.contact-info h3 { color: var(--navy-800); margin-bottom: 1rem; }
.contact-info > p { color: var(--text-secondary); margin-bottom: 2rem; }

.contact-methods { display: flex; flex-direction: column; gap: 1.5rem; }

.contact-method {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.contact-method-icon {
  width: 44px; height: 44px;
  border-radius: 10px;
  background: var(--slate-100);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.1rem;
}

.contact-method h4 { font-size: 0.95rem; margin-bottom: 0.15rem; }
.contact-method p { font-size: 0.9rem; color: var(--text-secondary); }

.contact-form {
  background: var(--slate-50);
  padding: 2.5rem;
  border-radius: 12px;
  border: 1px solid var(--slate-200);
}

.contact-form h3 { color: var(--navy-800); margin-bottom: 1.5rem; }

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

.form-group label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.4rem;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--slate-200);
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  background: var(--white);
  color: var(--text-primary);
  transition: border-color 0.3s, box-shadow 0.3s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--gold-500);
  box-shadow: 0 0 0 3px rgba(184,148,47,0.12);
}

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

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

/* --- Animations --- */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

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

/* Staggered children */
.stagger > *:nth-child(1) { transition-delay: 0ms; }
.stagger > *:nth-child(2) { transition-delay: 80ms; }
.stagger > *:nth-child(3) { transition-delay: 160ms; }
.stagger > *:nth-child(4) { transition-delay: 240ms; }
.stagger > *:nth-child(5) { transition-delay: 320ms; }
.stagger > *:nth-child(6) { transition-delay: 400ms; }

/* --- Responsive --- */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; gap: 3rem; }
  .hero-visual { order: -1; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .why-inner { grid-template-columns: 1fr; gap: 2.5rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .about-grid { grid-template-columns: 1fr; gap: 2rem; }
  .about-grid.reverse { direction: ltr; }
  .service-detail { grid-template-columns: 1fr; gap: 2rem; }
  .service-detail.reverse { direction: ltr; }
  .contact-grid { grid-template-columns: 1fr; gap: 2.5rem; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 72px;
    left: 0; right: 0;
    background: var(--white);
    padding: 1.5rem;
    border-bottom: 1px solid var(--slate-200);
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    gap: 0.5rem;
  }
  .nav-links.open a { padding: 0.6rem 0; }
  .menu-toggle { display: flex; }
  .services-grid { grid-template-columns: 1fr; }
  .values-grid { grid-template-columns: 1fr; }
  .cta-card { flex-direction: column; text-align: center; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; gap: 0.5rem; text-align: center; }
  .stat-row { grid-template-columns: 1fr 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .hero-card { max-width: 100%; }
}
