/* ============================================================
   Loyal Heart — Computer Systems Design & Integration
   Brand: 遵义吴益忠网络科技有限责任公司
   Design System: Trust & Loyalty
   ============================================================ */

/* --- CSS Custom Properties --- */
:root {
  --deep-blue: #0F1B2D;
  --deep-blue-dark: #0A1522;
  --deep-blue-light: #162840;
  --gold: #C9A84C;
  --gold-dark: #B8942E;
  --gold-light: #D4B96A;
  --cream: #F5F0E8;
  --cream-dark: #EDE6D9;
  --slate: #2D3748;
  --slate-light: #3D4A5E;
  --steel: #4A5568;
  --steel-light: #6B7A90;
  --white: #FFFFFF;
  --black: #0A0F18;
  --text-primary: #1A202C;
  --text-secondary: #2D3748;
  --text-on-dark: #F5F0E8;
  --text-on-gold: #0F1B2D;
  --border-subtle: #D9D2C5;
  --border-strong: #B0A890;

  --font-heading: 'Georgia', 'Times New Roman', 'Noto Serif', serif;
  --font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --font-mono: 'SF Mono', 'Fira Code', 'Cascadia Code', monospace;

  --max-width: 1280px;
  --nav-height: 72px;
}

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

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

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

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

a {
  color: inherit;
  text-decoration: none;
}

ul, ol {
  list-style: none;
}

/* --- Focus Styles --- */
:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}

/* --- Skip Link --- */
.skip-link {
  position: absolute;
  top: -100%;
  left: 16px;
  background: var(--gold);
  color: var(--deep-blue);
  padding: 8px 16px;
  font-weight: 600;
  z-index: 10000;
  border-radius: 0 0 4px 4px;
  transition: top 0.2s ease;
}
.skip-link:focus {
  top: 0;
}

/* ============================================================
   NAVIGATION
   ============================================================ */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--nav-height);
  background: var(--deep-blue);
  z-index: 1000;
  border-bottom: 1px solid rgba(201, 168, 76, 0.15);
  transition: background 0.3s ease, box-shadow 0.3s ease;
}
.site-nav.scrolled {
  background: var(--deep-blue-dark);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 32px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--cream);
  letter-spacing: 0.02em;
}

.nav-brand-icon {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav-links a {
  color: var(--steel-light);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  transition: color 0.2s ease;
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gold);
  transition: width 0.25s ease;
}
.nav-links a:hover,
.nav-links a:focus {
  color: var(--cream);
}
.nav-links a:hover::after,
.nav-links a:focus::after {
  width: 100%;
}

.nav-cta {
  display: inline-block;
  padding: 10px 22px;
  background: var(--gold);
  color: var(--deep-blue) !important;
  font-weight: 700 !important;
  border-radius: 0;
  text-transform: uppercase !important;
  letter-spacing: 0.04em;
  transition: background 0.2s ease, transform 0.2s ease !important;
}
.nav-cta::after {
  display: none !important;
}
.nav-cta:hover {
  background: var(--gold-dark);
  transform: translateY(-1px);
  color: var(--deep-blue) !important;
}

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--cream);
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.nav-toggle.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}
.nav-toggle.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile Nav */
@media (max-width: 900px) {
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--deep-blue-dark);
    flex-direction: column;
    padding: 100px 32px 40px;
    gap: 24px;
    transition: right 0.35s ease;
    box-shadow: -5px 0 30px rgba(0, 0, 0, 0.4);
  }
  .nav-links.open {
    right: 0;
  }
  .nav-toggle {
    display: flex;
  }
}

/* ============================================================
   HERO SECTION — Asymmetric Editorial with Geometric Composition
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  background: var(--deep-blue);
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: var(--nav-height);
}

/* Background dot pattern */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(201, 168, 76, 0.08) 1px, transparent 1px);
  background-size: 32px 32px;
}

/* Geometric shapes */
.hero-geometry {
  position: absolute;
  right: 0;
  top: 0;
  width: 48%;
  height: 100%;
  pointer-events: none;
}

.hero-diamond {
  position: absolute;
  right: 12%;
  top: 18%;
  width: 200px;
  height: 200px;
  background: var(--gold);
  transform: rotate(45deg);
  opacity: 0.9;
}

.hero-diamond-sm {
  position: absolute;
  right: 35%;
  top: 55%;
  width: 80px;
  height: 80px;
  background: var(--slate-light);
  transform: rotate(45deg);
}

.hero-rect {
  position: absolute;
  right: 8%;
  bottom: 22%;
  width: 160px;
  height: 100px;
  background: var(--deep-blue-light);
  border: 2px solid var(--gold);
  opacity: 0.8;
}

.hero-accent-line {
  position: absolute;
  right: 5%;
  top: 10%;
  width: 3px;
  height: 120px;
  background: var(--gold);
}

.hero-accent-line-2 {
  position: absolute;
  right: 32%;
  bottom: 15%;
  width: 180px;
  height: 2px;
  background: var(--gold);
  opacity: 0.5;
}

.hero-circuit-dot {
  position: absolute;
  width: 6px;
  height: 6px;
  background: var(--gold);
  border-radius: 50%;
}
.hero-circuit-dot:nth-child(6) { right: 18%; top: 32%; }
.hero-circuit-dot:nth-child(7) { right: 40%; top: 48%; }
.hero-circuit-dot:nth-child(8) { right: 22%; bottom: 38%; }
.hero-circuit-dot:nth-child(9) { right: 45%; bottom: 25%; }

.hero-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 60px 32px;
  width: 100%;
  position: relative;
  z-index: 2;
}

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

.hero-eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 28px;
  padding-left: 48px;
  position: relative;
}
.hero-eyebrow::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  width: 36px;
  height: 1px;
  background: var(--gold);
}

.hero-headline {
  font-family: var(--font-heading);
  font-size: clamp(3rem, 6.5vw, 5.5rem);
  font-weight: 700;
  line-height: 1.08;
  color: var(--cream);
  margin-bottom: 12px;
}

.hero-headline .gold {
  color: var(--gold);
  display: block;
}

.hero-divider {
  width: 80px;
  height: 4px;
  background: var(--gold);
  margin: 24px 0 28px;
}

.hero-subtitle {
  font-size: clamp(1.05rem, 1.5vw, 1.25rem);
  color: var(--steel-light);
  line-height: 1.6;
  max-width: 480px;
  margin-bottom: 36px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  border: none;
  border-radius: 0;
  transition: all 0.25s ease;
  text-align: center;
  line-height: 1.2;
}

.btn-primary {
  background: var(--gold);
  color: var(--deep-blue);
}
.btn-primary:hover {
  background: var(--gold-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(201, 168, 76, 0.3);
}

.btn-outline {
  background: transparent;
  color: var(--cream);
  border: 2px solid var(--steel);
}
.btn-outline:hover {
  border-color: var(--gold);
  color: var(--gold);
  transform: translateY(-2px);
}

@media (max-width: 768px) {
  .hero-geometry {
    display: none;
  }
  .hero-content {
    max-width: 100%;
  }
  .hero {
    min-height: auto;
    padding: 120px 0 80px;
  }
  .hero-actions {
    flex-direction: column;
  }
  .btn {
    width: 100%;
    justify-content: center;
  }
}

/* ============================================================
   TRUST PILLARS — Stepped / Cascade Layout
   ============================================================ */
.trust-pillars {
  padding: 100px 0;
  background: var(--cream);
}

.trust-pillars-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 32px;
}

.trust-section-head {
  margin-bottom: 64px;
}

.trust-section-label {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin-bottom: 12px;
}

.trust-section-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  color: var(--deep-blue);
  line-height: 1.2;
  max-width: 600px;
}

.trust-cascade {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.trust-pillar {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 32px;
  padding: 40px 0;
  border-top: 1px solid var(--border-subtle);
  align-items: start;
  transition: transform 0.3s ease;
}
.trust-pillar:last-child {
  border-bottom: 1px solid var(--border-subtle);
}
.trust-pillar:hover {
  transform: translateX(8px);
}

.trust-pillar:nth-child(2) {
  padding-left: 80px;
}
.trust-pillar:nth-child(3) {
  padding-left: 40px;
}

.trust-pillar-number {
  font-family: var(--font-heading);
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
  opacity: 0.85;
}

.trust-pillar-body h3 {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  color: var(--deep-blue);
  margin-bottom: 8px;
}

.trust-pillar-body p {
  color: var(--slate);
  font-size: 1rem;
  line-height: 1.65;
  max-width: 520px;
}

@media (max-width: 768px) {
  .trust-pillar {
    grid-template-columns: 60px 1fr;
    gap: 20px;
  }
  .trust-pillar:nth-child(2),
  .trust-pillar:nth-child(3) {
    padding-left: 0;
  }
  .trust-pillar-number {
    font-size: 2.5rem;
  }
}

/* ============================================================
   SERVICES — Hero Card + Offset Stack
   ============================================================ */
.services {
  padding: 100px 0 80px;
  background: var(--white);
}

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

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

.services-label {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin-bottom: 12px;
}

.services-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  color: var(--deep-blue);
  line-height: 1.2;
  max-width: 550px;
}

/* Hero service card */
.service-hero-card {
  background: var(--deep-blue);
  color: var(--cream);
  padding: 48px 48px 48px 56px;
  margin-bottom: 28px;
  position: relative;
  overflow: hidden;
}
.service-hero-card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 6px;
  height: 100%;
  background: var(--gold);
}
.service-hero-card::after {
  content: '';
  position: absolute;
  right: 60px;
  top: -40px;
  width: 180px;
  height: 180px;
  border: 2px solid rgba(201, 168, 76, 0.15);
  transform: rotate(45deg);
}

.service-hero-icon {
  width: 56px;
  height: 56px;
  margin-bottom: 24px;
  color: var(--gold);
}

.service-hero-card h3 {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  margin-bottom: 12px;
  color: var(--cream);
}

.service-hero-card p {
  font-size: 1.05rem;
  color: var(--steel-light);
  max-width: 580px;
  line-height: 1.65;
  margin-bottom: 20px;
}

.service-hero-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--gold);
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  transition: gap 0.25s ease;
}
.service-hero-link:hover {
  gap: 14px;
}

/* Offset service cards */
.services-grid-offset {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.services-grid-offset > .service-card:nth-child(2) {
  margin-top: -20px;
}
.services-grid-offset > .service-card:nth-child(3) {
  margin-top: -60px;
}
.services-grid-offset > .service-card:nth-child(4) {
  margin-top: -40px;
}

.service-card {
  background: var(--cream);
  padding: 36px 32px;
  border-top: 4px solid var(--gold);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(15, 27, 45, 0.1);
}

.service-card-icon {
  width: 40px;
  height: 40px;
  margin-bottom: 20px;
  color: var(--gold-dark);
}

.service-card h3 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  color: var(--deep-blue);
  margin-bottom: 8px;
}

.service-card p {
  font-size: 0.9rem;
  color: var(--slate);
  line-height: 1.6;
}

@media (max-width: 768px) {
  .services-grid-offset {
    grid-template-columns: 1fr;
  }
  .services-grid-offset > .service-card:nth-child(n) {
    margin-top: 0;
  }
  .service-hero-card {
    padding: 36px 28px 36px 32px;
  }
}

/* ============================================================
   ENGAGEMENT MODEL — Vertical Alternating Steps
   ============================================================ */
.engagement {
  padding: 100px 0;
  background: var(--deep-blue);
  position: relative;
}

.engagement::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(201, 168, 76, 0.04) 1px, transparent 1px);
  background-size: 24px 24px;
  pointer-events: none;
}

.engagement-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 32px;
  position: relative;
  z-index: 1;
}

.engagement-head {
  text-align: center;
  margin-bottom: 72px;
}

.engagement-label {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}

.engagement-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  color: var(--cream);
  line-height: 1.2;
}

/* Vertical alternating steps */
.engagement-steps {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

/* Center line */
.engagement-steps::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 1px;
  background: linear-gradient(to bottom, var(--gold), transparent);
  transform: translateX(-50%);
}

.engagement-step {
  display: grid;
  grid-template-columns: 1fr 60px 1fr;
  align-items: start;
  margin-bottom: 64px;
  gap: 0;
}
.engagement-step:last-child {
  margin-bottom: 0;
}

.engagement-step-left {
  text-align: right;
  padding-right: 40px;
}

.engagement-step-right {
  text-align: left;
  padding-left: 40px;
}

.engagement-step-num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border: 2px solid var(--gold);
  border-radius: 50%;
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--gold);
  background: var(--deep-blue);
  position: relative;
  z-index: 2;
  margin: 0 auto;
}

.engagement-step h3 {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  color: var(--cream);
  margin-bottom: 6px;
}

.engagement-step p {
  font-size: 0.9rem;
  color: var(--steel-light);
  line-height: 1.6;
}

.engagement-step-empty {
  visibility: hidden;
}

@media (max-width: 768px) {
  .engagement-steps::before {
    left: 28px;
  }
  .engagement-step {
    grid-template-columns: 60px 1fr;
    gap: 20px;
  }
  .engagement-step-num {
    width: 48px;
    height: 48px;
    font-size: 1.1rem;
  }
  .engagement-step-left {
    text-align: left;
    padding-right: 0;
    grid-column: 2;
    grid-row: 1;
  }
  .engagement-step-right {
    padding-left: 0;
    grid-column: 2;
    grid-row: 1;
  }
  .engagement-step-empty {
    display: none;
  }
}

/* ============================================================
   CAPABILITIES — Dense Tag Cloud / Masonry
   ============================================================ */
.capabilities {
  padding: 100px 0;
  background: var(--white);
}

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

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

.capabilities-label {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin-bottom: 12px;
}

.capabilities-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  color: var(--deep-blue);
  line-height: 1.2;
}

/* Masonry grid */
.capabilities-masonry {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
  grid-auto-rows: minmax(100px, auto);
}

.cap-tile {
  background: var(--cream);
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-left: 3px solid transparent;
  transition: border-color 0.3s ease, background 0.3s ease, transform 0.3s ease;
}
.cap-tile:hover {
  border-left-color: var(--gold);
  background: var(--cream-dark);
  transform: translateY(-2px);
}

.cap-tile-lg {
  grid-column: span 3;
  grid-row: span 2;
}
.cap-tile-md {
  grid-column: span 2;
}
.cap-tile-sm {
  grid-column: span 2;
}

.cap-tile-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin-bottom: 4px;
}

.cap-tile-name {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  color: var(--deep-blue);
  margin-bottom: 4px;
}
.cap-tile-lg .cap-tile-name {
  font-size: 1.4rem;
}

.cap-tile-desc {
  font-size: 0.85rem;
  color: var(--steel);
  line-height: 1.5;
  margin-top: 6px;
}

@media (max-width: 900px) {
  .capabilities-masonry {
    grid-template-columns: repeat(2, 1fr);
  }
  .cap-tile-lg,
  .cap-tile-md,
  .cap-tile-sm {
    grid-column: span 2;
  }
}
@media (max-width: 500px) {
  .capabilities-masonry {
    grid-template-columns: 1fr;
  }
  .cap-tile-lg,
  .cap-tile-md,
  .cap-tile-sm {
    grid-column: span 1;
  }
}

/* ============================================================
   TRUST METRICS — Dynamic Scatter Layout
   ============================================================ */
.trust-metrics {
  padding: 100px 0;
  background: var(--cream);
  position: relative;
  overflow: hidden;
}

.trust-metrics-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 32px;
}

.metrics-head {
  text-align: center;
  margin-bottom: 64px;
}

.metrics-label {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin-bottom: 12px;
}

.metrics-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  color: var(--deep-blue);
  line-height: 1.2;
}

/* Scattered number layout */
.metrics-scatter {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-template-rows: auto auto auto;
  gap: 24px;
  align-items: end;
}

.metric-item {
  display: flex;
  flex-direction: column;
}
.metric-item:nth-child(1) {
  grid-column: 1 / span 4;
  grid-row: 1;
}
.metric-item:nth-child(2) {
  grid-column: 6 / span 4;
  grid-row: 1;
  margin-top: 40px;
}
.metric-item:nth-child(3) {
  grid-column: 3 / span 4;
  grid-row: 2;
  margin-top: -20px;
}
.metric-item:nth-child(4) {
  grid-column: 8 / span 5;
  grid-row: 2;
  margin-top: 30px;
}

.metric-number {
  font-family: var(--font-heading);
  font-size: clamp(3rem, 6vw, 5.5rem);
  font-weight: 700;
  color: var(--deep-blue);
  line-height: 1;
  margin-bottom: 8px;
}

.metric-suffix {
  color: var(--gold);
}

.metric-label-text {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--slate);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  max-width: 180px;
}

.metric-accent {
  grid-column: 10 / span 3;
  grid-row: 1;
  width: 100px;
  height: 100px;
  border: 3px solid var(--gold);
  transform: rotate(45deg);
  align-self: center;
  justify-self: center;
  opacity: 0.6;
}

@media (max-width: 768px) {
  .metrics-scatter {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
    gap: 32px;
  }
  .metric-item:nth-child(n) {
    grid-column: span 1;
    grid-row: auto;
    margin-top: 0;
  }
  .metric-accent {
    display: none;
  }
}

/* ============================================================
   TESTIMONIAL — Pull Quote
   ============================================================ */
.testimonial {
  padding: 120px 0;
  background: var(--white);
  position: relative;
}

.testimonial-inner {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 32px;
  text-align: center;
  position: relative;
}

.testimonial-quote-mark {
  font-family: var(--font-heading);
  font-size: 10rem;
  line-height: 0.2;
  color: var(--gold);
  opacity: 0.3;
  user-select: none;
  margin-bottom: 20px;
}

.testimonial-quote {
  font-family: var(--font-heading);
  font-size: clamp(1.4rem, 2.2vw, 1.85rem);
  color: var(--deep-blue);
  line-height: 1.5;
  margin-bottom: 32px;
  font-style: italic;
}

.testimonial-attribution {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.testimonial-attribution-avatar {
  width: 48px;
  height: 48px;
  background: var(--deep-blue);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  font-weight: 700;
  font-size: 1.1rem;
}

.testimonial-attribution-text {
  text-align: left;
}

.testimonial-name {
  font-weight: 700;
  color: var(--deep-blue);
  font-size: 1rem;
}

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

/* ============================================================
   CONTACT — Asymmetrical Split
   ============================================================ */
.contact {
  padding: 100px 0;
  background: var(--deep-blue);
  position: relative;
}

.contact::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(201, 168, 76, 0.05) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
}

.contact-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 32px;
  position: relative;
  z-index: 1;
}

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

.contact-label {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}

.contact-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  color: var(--cream);
  line-height: 1.2;
}

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 0;
}

/* Form */
.contact-form-wrapper {
  background: var(--cream);
  padding: 48px 44px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

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

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--slate);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 12px 16px;
  border: 1px solid var(--border-subtle);
  border-radius: 0;
  background: var(--white);
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text-primary);
  transition: border-color 0.2s ease;
  width: 100%;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--gold);
  outline: none;
  box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.15);
}

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

.form-submit {
  margin-top: 8px;
}

/* Contact info panel */
.contact-info-panel {
  background: var(--gold);
  padding: 48px 40px;
  color: var(--deep-blue);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.contact-info-panel h3 {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  color: var(--deep-blue);
  margin-bottom: 28px;
}

.contact-info-item {
  margin-bottom: 24px;
}

.contact-info-item-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--deep-blue);
  opacity: 0.7;
  margin-bottom: 4px;
}

.contact-info-item-value {
  font-size: 0.95rem;
  color: var(--deep-blue);
  line-height: 1.5;
  font-weight: 500;
}

.form-success {
  display: none;
  padding: 24px;
  background: var(--cream);
  border-left: 4px solid var(--gold);
  color: var(--deep-blue);
  font-weight: 600;
  font-size: 1.05rem;
}

@media (max-width: 768px) {
  .contact-layout {
    grid-template-columns: 1fr;
  }
  .form-row {
    grid-template-columns: 1fr;
  }
  .contact-form-wrapper {
    padding: 32px 24px;
  }
  .contact-info-panel {
    padding: 32px 24px;
  }
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--deep-blue-dark);
  color: var(--steel-light);
  padding: 72px 0 0;
  border-top: 3px solid var(--gold);
}

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

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand-name {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--cream);
  margin-bottom: 12px;
}

.footer-brand-desc {
  font-size: 0.9rem;
  color: var(--steel-light);
  line-height: 1.65;
  margin-bottom: 20px;
}

.footer-chinese-name {
  font-size: 0.85rem;
  color: var(--steel);
  margin-bottom: 4px;
}

.footer-col-title {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gold);
  margin-bottom: 20px;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col ul a {
  font-size: 0.9rem;
  color: var(--steel-light);
  transition: color 0.2s ease;
}
.footer-col ul a:hover {
  color: var(--cream);
}

.footer-bottom {
  border-top: 1px solid rgba(201, 168, 76, 0.12);
  padding: 20px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.82rem;
}

.footer-bottom-links {
  display: flex;
  gap: 24px;
}
.footer-bottom-links a {
  color: var(--steel);
  transition: color 0.2s ease;
}
.footer-bottom-links a:hover {
  color: var(--cream);
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}
@media (max-width: 500px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   ANIMATIONS
   ============================================================ */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.fade-in-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.fade-in-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.fade-in-right.visible {
  opacity: 1;
  transform: translateX(0);
}

/* ============================================================
   POLICY / TERMS PAGES
   ============================================================ */
.legal-page {
  padding: 140px 0 100px;
  background: var(--white);
}

.legal-page-inner {
  max-width: 780px;
  margin: 0 auto;
  padding: 0 32px;
}

.legal-page h1 {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--deep-blue);
  margin-bottom: 8px;
  line-height: 1.2;
}

.legal-page .legal-meta {
  font-size: 0.9rem;
  color: var(--steel);
  margin-bottom: 40px;
  padding-bottom: 28px;
  border-bottom: 2px solid var(--border-subtle);
}

.legal-page h2 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--deep-blue);
  margin: 40px 0 16px;
  padding-top: 8px;
}

.legal-page h3 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  color: var(--slate);
  margin: 28px 0 10px;
}

.legal-page p {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 16px;
}

.legal-page ul,
.legal-page ol {
  margin: 0 0 20px 24px;
  list-style: disc;
}

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

.legal-page li {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 8px;
}

.legal-page em {
  font-style: italic;
  color: var(--gold-dark);
}

.legal-page strong {
  color: var(--deep-blue);
}

/* Policy layout — sidebar style */
.legal-page-policy {
  padding: 140px 0 100px;
  background: var(--cream);
}

.legal-page-policy .legal-page-inner {
  max-width: 800px;
}

.legal-page-policy h1 {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--deep-blue);
  margin-bottom: 8px;
  padding-left: 20px;
  border-left: 5px solid var(--gold);
}

.legal-page-policy h2 {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  color: var(--deep-blue);
  margin: 36px 0 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-subtle);
}

.legal-page-policy h3 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  color: var(--slate);
  margin: 24px 0 10px;
}

.legal-page-policy p,
.legal-page-policy li {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.75;
}

.legal-page-policy ul,
.legal-page-policy ol {
  margin: 0 0 20px 24px;
  list-style: disc;
}

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

.legal-page-policy .legal-section-accent {
  background: var(--white);
  padding: 24px 28px;
  border-left: 4px solid var(--gold);
  margin: 28px 0;
}

/* Terms layout — different from policy */
.legal-page-terms {
  padding: 140px 0 100px;
  background: var(--white);
}

.legal-page-terms h1 {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--cream);
  background: var(--deep-blue);
  padding: 32px 36px;
  margin-bottom: 32px;
  display: inline-block;
}

.legal-page-terms h2 {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  color: var(--deep-blue);
  margin: 36px 0 14px;
  padding-left: 16px;
  border-left: 3px solid var(--gold);
}

.legal-page-terms h3 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  color: var(--slate);
  margin: 24px 0 10px;
}

.legal-page-terms p,
.legal-page-terms li {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 16px;
}

.legal-page-terms ul,
.legal-page-terms ol {
  margin: 0 0 20px 24px;
  list-style: disc;
}

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

.legal-highlight-box {
  background: var(--cream);
  border: 1px solid var(--border-subtle);
  padding: 28px 32px;
  margin: 28px 0;
}

.legal-company-card {
  background: var(--deep-blue);
  color: var(--cream);
  padding: 32px 36px;
  margin: 32px 0;
}

.legal-company-card h3 {
  color: var(--gold);
  font-family: var(--font-heading);
  font-size: 1.1rem;
  margin-bottom: 16px;
}

.legal-company-card p {
  color: var(--steel-light);
  font-size: 0.95rem;
  margin-bottom: 6px;
  line-height: 1.6;
}

@media (max-width: 768px) {
  .legal-page,
  .legal-page-policy,
  .legal-page-terms {
    padding: 120px 0 60px;
  }
  .legal-page p,
  .legal-page li,
  .legal-page-policy p,
  .legal-page-policy li,
  .legal-page-terms p,
  .legal-page-terms li {
    font-size: 1rem;
  }
}
