:root {
  --bs-primary: #27594a;
  --bs-primary-rgb: 39, 89, 74;
  --bs-link-color: #27594a;
  --bs-link-hover-color: #1d4338;
  --bs-dark: #1f1b16;
  --bs-dark-rgb: 31, 27, 22;
  --xm-surface: #fffdf8;
  --xm-surface-alt: #f4efe5;
  --xm-line: #ddd4c6;
  --xm-muted: #6b6458;
}

body {
  background-color: #f8f6f1;
  color: #1f1b16;
  letter-spacing: 0;
}

.brand-text {
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.06em;
}

#mainNav.navbar-shrink .brand-text {
  color: var(--bs-primary);
}

.nav-language-item {
  margin-left: 0.5rem;
}

.language-switch {
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 999px;
  padding: 0.4rem 0.9rem;
}

#mainNav.navbar-shrink .language-switch {
  border-color: rgba(39, 89, 74, 0.28);
}

.masthead .masthead-subheading {
  max-width: 44rem;
  margin-left: auto;
  margin-right: auto;
}

html[lang="zh-CN"] .masthead .masthead-heading {
  white-space: nowrap;
  font-size: clamp(2.25rem, 4.2vw, 4rem);
}

.masthead {
  background-image: linear-gradient(rgba(20, 29, 24, 0.38), rgba(20, 29, 24, 0.66)), url("/agency/assets/img/hero-harlan-v1.png");
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

.page-section {
  background: transparent;
}

#about,
#portfolio,
#contact .contact-panel,
.strength-card {
  box-shadow: 0 18px 40px rgba(31, 27, 22, 0.08);
}

#about {
  background: var(--xm-surface);
}

.case-study-section {
  background: #1c2e26;
  color: #fffdf8;
}

.case-study-card {
  padding: clamp(2rem, 5vw, 4.5rem);
  border: 1px solid rgba(255, 253, 248, 0.22);
  border-radius: 1rem;
  background: linear-gradient(135deg, rgba(58, 92, 75, 0.94), rgba(23, 38, 31, 0.96));
  box-shadow: 0 24px 54px rgba(15, 24, 19, 0.22);
}

.case-study-kicker {
  margin-bottom: 1.5rem;
  color: #e4bc54;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.case-study-title {
  margin: 0;
  font-size: clamp(1.8rem, 3.5vw, 3.1rem);
  line-height: 1.08;
}

.case-study-subtitle {
  margin: 1rem 0 0;
  color: rgba(255, 253, 248, 0.72);
}

.case-study-card h3 {
  font-size: 1.35rem;
}

.case-study-copy {
  margin: 1rem 0 1.5rem;
  color: rgba(255, 253, 248, 0.86);
  font-size: 1.05rem;
  line-height: 1.85;
}

.case-study-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.case-study-tags span {
  padding: 0.45rem 0.75rem;
  border: 1px solid rgba(255, 253, 248, 0.28);
  border-radius: 999px;
  color: #fffdf8;
  font-size: 0.9rem;
}

#services.bg-light,
#strengths.bg-light {
  background-color: var(--xm-surface-alt) !important;
}

#portfolio {
  background: var(--xm-surface);
}

#portfolio .portfolio-item {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  border-radius: 0.5rem;
}

#portfolio .portfolio-item .portfolio-link {
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

#portfolio .portfolio-item .portfolio-link img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

#portfolio .portfolio-item .portfolio-caption {
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: center;
  min-height: 8.5rem;
}

.timeline > li .timeline-image {
  overflow: hidden;
}

.timeline > li .timeline-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.section-subheading {
  max-width: 50rem;
  margin-left: auto;
  margin-right: auto;
}

.portfolio-item .static-link {
  display: block;
  cursor: default;
}

.portfolio-item .static-link img {
  display: block;
}

.strength-card {
  padding: 2rem 1.5rem;
  border: 1px solid var(--xm-line);
  border-radius: 0.75rem;
  background: var(--xm-surface);
}

.strength-card h4 {
  margin-bottom: 0.85rem;
}

#contact {
  background-color: #1f1b16;
  background-image: linear-gradient(rgba(31, 27, 22, 0.78), rgba(31, 27, 22, 0.78)), url("/agency/assets/img/map-image.png");
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

.contact-copy {
  color: rgba(255, 255, 255, 0.82);
}

.contact-panel {
  background: rgba(255, 253, 248, 0.96);
  border: 1px solid rgba(221, 212, 198, 0.85);
  border-radius: 1rem;
  padding: 2rem;
}

.contact-row {
  display: grid;
  gap: 0.35rem;
  margin-bottom: 1rem;
}

.contact-label {
  color: var(--bs-primary);
  font-size: 0.9rem;
}

.contact-note {
  color: var(--xm-muted);
}

.contact-link {
  color: #1f1b16;
  text-decoration: none;
}

.contact-link:hover {
  color: var(--bs-primary);
}

.footer {
  background: #fffdf8;
}

.footer-inner {
  row-gap: 0.5rem;
}

.footer-divider { margin: 0 .55rem; color: var(--xm-muted); }
.footer-icp { color: var(--xm-muted); text-decoration: none; }
.footer-icp:hover { color: var(--bs-primary); text-decoration: underline; }

@media (max-width: 991.98px) {
  .nav-language-item {
    margin-left: 0;
  }
}

@media (max-width: 767.98px) {
  .contact-panel,
  .strength-card {
    padding: 1.5rem;
  }

  .masthead .masthead-heading {
    font-size: 2.8rem;
  }

  html[lang="zh-CN"] .masthead .masthead-heading {
    white-space: normal;
  }
}

.inner-hero {
  padding: 11rem 0 5.5rem;
  background: linear-gradient(135deg, #1b2f26, #405f50);
  color: #fffdf8;
}

.inner-hero .container { max-width: 58rem; }
.inner-hero-kicker { margin: 0 0 1rem; color: #e4bc54; font-size: .8rem; font-weight: 700; letter-spacing: .15em; }
.inner-hero h1 { max-width: 13ch; font-size: clamp(2.5rem, 5vw, 4.5rem); font-weight: 700; line-height: 1.08; }
.inner-hero p:not(.inner-hero-kicker) { max-width: 42rem; margin: 1.5rem 0 0; color: rgba(255,253,248,.82); font-size: 1.1rem; line-height: 1.8; }
html[lang="zh-CN"] .case-hero h1 { max-width: none; white-space: nowrap; font-size: clamp(2.35rem, 4.4vw, 4.1rem); }
html[lang="zh-CN"] .inner-hero h1 { max-width: none; white-space: nowrap; font-size: clamp(2.2rem, 4vw, 3.85rem); }
html[lang="en"] .inner-hero h1 { max-width: 31ch; font-size: clamp(2.1rem, 3.45vw, 3.45rem); }
html[lang="en"] .case-hero h1 { max-width: 30ch; font-size: clamp(2.25rem, 3.8vw, 3.65rem); }
.case-feature-section { background: var(--xm-surface); }
.section-intro { max-width: 47rem; margin-bottom: 2.5rem; }
.section-intro .section-label { color: var(--bs-primary); font-weight: 700; letter-spacing: .1em; }
.section-intro h2 { font-size: clamp(2rem, 3.5vw, 3.25rem); line-height: 1.15; }
.section-intro > p:not(.section-label) { color: var(--xm-muted); line-height: 1.8; }
.featured-case { display: grid; grid-template-columns: minmax(15rem, .8fr) minmax(0, 1.2fr); overflow: hidden; border-radius: 1rem; background: #1d3027; color: #fffdf8; box-shadow: 0 25px 56px rgba(22, 34, 27, .18); }
.featured-case-identity, .featured-case-content { padding: clamp(2rem, 5vw, 4.5rem); }
.featured-case-identity { background: linear-gradient(145deg, #345f4d, #274435); }
.featured-case-identity > span { color: #e4bc54; font-size: .85rem; font-weight: 700; letter-spacing: .1em; }
.featured-case-identity h3 { margin: 1.25rem 0 .8rem; font-size: clamp(2rem, 3.4vw, 3.4rem); line-height: 1.05; }
.featured-case-identity p, .featured-case-content > p { color: rgba(255,253,248,.76); line-height: 1.85; }
.featured-case-content h3 { font-size: 1.5rem; }
.case-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin: 2rem 0 0; }
.case-facts div { padding-top: 1rem; border-top: 1px solid rgba(255,253,248,.22); }
.case-facts dt { color: #e4bc54; font-size: .82rem; font-weight: 700; }
.case-facts dd { margin: .45rem 0 0; font-size: .95rem; line-height: 1.5; }
.case-list-section { background: #f4efe5; }
.small-case-card { padding: 2rem; border: 1px solid var(--xm-line); border-radius: .75rem; background: #fffdf8; box-shadow: 0 16px 34px rgba(31,27,22,.06); }
.small-case-number { color: var(--bs-primary); font-size: .85rem; font-weight: 700; letter-spacing: .1em; }
.small-case-card h3 { margin: 1.3rem 0 .8rem; font-size: 1.35rem; }
.small-case-card p { margin: 0; color: var(--xm-muted); line-height: 1.8; }
.case-cta-section { padding: 4.5rem 0; background: #1d3027; color: #fffdf8; }
.case-cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.case-cta-inner p { margin: 0 0 .6rem; color: #e4bc54; font-size: .9rem; font-weight: 700; }
.case-cta-inner h2 { margin: 0; font-size: clamp(1.7rem, 3vw, 2.5rem); }
@media (max-width: 991.98px) { .featured-case { grid-template-columns: 1fr; } .case-facts { grid-template-columns: 1fr; } }
@media (max-width: 767.98px) { .inner-hero { padding: 9rem 0 4rem; } html[lang="zh-CN"] .inner-hero h1 { white-space: normal; } html[lang="en"] .inner-hero h1 { max-width: 20ch; } .case-cta-inner { align-items: flex-start; flex-direction: column; } }

.service-hero { background: linear-gradient(135deg, #183228, #47715e); }
 .contact-hero { background: linear-gradient(135deg, #263b31, #6a6047); }
 .advantage-hero { background: linear-gradient(135deg, #1d3027, #6e5e3d); }
html[lang="zh-CN"] .service-hero h1 { max-width: none; white-space: nowrap; font-size: clamp(2.2rem, 4vw, 3.85rem); }
.service-overview { background: var(--xm-surface); }
.service-detail-card { height: 100%; padding: 2rem; border: 1px solid var(--xm-line); border-radius: .8rem; background: #fffdf8; }
.service-detail-card i { color: var(--bs-primary); font-size: 1.65rem; }.service-detail-card h3 { margin: 1.25rem 0 .7rem; font-size: 1.35rem; }.service-detail-card p { margin: 0; color: var(--xm-muted); line-height: 1.8; }
.service-models { background: #f4efe5; }.model-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }.model-grid article { padding: 1.6rem; border-top: 3px solid var(--bs-primary); background: #fffdf8; }.model-grid strong { display: block; margin-bottom: .7rem; font-size: 1.2rem; }.model-grid span { color: var(--xm-muted); line-height: 1.7; }
.service-advantage { background: #20362c; color: #fffdf8; }.service-advantage .section-label { color: #e4bc54; font-weight: 700; }.service-advantage h2 { font-size: clamp(2rem,3.5vw,3.3rem); line-height: 1.15; }.advantage-list { display: grid; gap: 1.25rem; }.advantage-list div { padding: 1.25rem 0; border-bottom: 1px solid rgba(255,253,248,.2); }.advantage-list b { font-size: 1.2rem; }.advantage-list p { margin: .6rem 0 0; color: rgba(255,253,248,.78); line-height: 1.75; }
.price-section { background: var(--xm-surface); }.price-heading { max-width: 50rem; }.price-heading h2 { font-size: clamp(2rem,3.5vw,3.25rem); }.price-heading > p:last-child, .rate-key { color: var(--xm-muted); line-height: 1.8; }.price-summary { display: grid; grid-template-columns: auto 1fr; gap: .4rem 2rem; align-items: baseline; margin: 2rem 0; padding: 1.5rem 2rem; border-left: 4px solid #e4bc54; background: #f4efe5; }.price-summary strong { color: var(--bs-primary); }.price-summary span { font-size: 1.5rem; font-weight: 700; }.price-summary p { grid-column: 1 / -1; margin: .4rem 0 0; color: var(--xm-muted); }
.rate-comparison { width: 100%; min-width: 1260px; border-collapse: collapse; background: #fffdf8; }.rate-comparison th, .rate-comparison td { padding: .8rem .7rem; border: 1px solid var(--xm-line); text-align: left; vertical-align: middle; }.rate-comparison thead { background: #20362c; color: #fffdf8; }.rate-comparison thead tr:last-child th { font-size: .78rem; font-weight: 500; }.rate-comparison tbody th { width: 13%; color: #20362c; }.rate-comparison td { color: var(--xm-muted); font-size: .86rem; white-space: nowrap; }
@media (max-width: 991.98px) { .model-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 575.98px) { .model-grid { grid-template-columns: 1fr; }.price-summary { grid-template-columns: 1fr; }.price-summary span { font-size: 1.25rem; } }
@media (max-width: 767.98px) { html[lang="zh-CN"] .service-hero h1 { white-space: normal; } }

.contact-page { background: #f4efe5; }.contact-form-wrap, .contact-details { height: 100%; padding: clamp(1.8rem,4vw,3.25rem); border-radius: 1rem; }.contact-form-wrap { background: #fffdf8; box-shadow: 0 18px 42px rgba(31,27,22,.08); }.contact-form-wrap h2, .contact-details h2 { font-size: clamp(1.8rem,3vw,2.6rem); line-height: 1.2; }.form-intro { color: var(--xm-muted); line-height: 1.8; }.contact-form { margin-top: 2rem; }.contact-form label { display:block; margin-bottom:.45rem; font-weight:700; }.contact-form .form-control { padding:.75rem .9rem; border-color:var(--xm-line); }.contact-form textarea { resize:vertical; }.contact-details { background:#20362c; color:#fffdf8; }.contact-details .section-label { color:#e4bc54; font-weight:700; }.contact-detail { display:grid; gap:.35rem; padding:1rem 0; border-bottom:1px solid rgba(255,253,248,.18); }.contact-detail span { color:#e4bc54; font-size:.85rem; font-weight:700; }.contact-detail a { color:#fffdf8; font-size:1.1rem; }.contact-side-note { margin:1.5rem 0 0; color:rgba(255,253,248,.76); line-height:1.75; }
.advantage-problem { background: var(--xm-surface); }.pain-card { height:100%; padding:2rem; border-left:4px solid #d6ad45; background:#f4efe5; }.pain-card b { font-size:1.3rem; }.pain-card p { margin: .8rem 0 0; color:var(--xm-muted); line-height:1.8; }.advantage-value { background:#20362c; color:#fffdf8; }.advantage-value .section-label { color:#e4bc54; font-weight:700; }.advantage-value h2 { font-size:clamp(2rem,3.5vw,3.3rem); line-height:1.15; }.value-stack { display:grid; gap:1.3rem; }.value-stack > div { display:grid; grid-template-columns:3rem 1fr; gap:1rem; padding-bottom:1.3rem; border-bottom:1px solid rgba(255,253,248,.18); }.value-stack span { color:#e4bc54; font-weight:700; }.value-stack b { font-size:1.2rem; }.value-stack p { margin:.45rem 0 0; color:rgba(255,253,248,.78); line-height:1.75; }.advantage-proof { background:#f4efe5; }.proof-panel { max-width:62rem; margin:0 auto; padding:clamp(2rem,5vw,4.5rem); text-align:center; border-radius:1rem; background:#fffdf8; box-shadow:0 18px 42px rgba(31,27,22,.08); }.proof-panel p { color:var(--bs-primary); font-weight:700; letter-spacing:.08em; }.proof-panel h2 { font-size:clamp(2rem,4vw,3.3rem); line-height:1.18; }.proof-panel span { display:block; color:var(--xm-muted); line-height:1.75; }.proof-panel .btn { margin-top:1.8rem; }
