:root {
  --yh-blue-950: #052f49;
  --yh-blue-900: #063855;
  --yh-blue-800: #0a4667;
  --yh-blue-700: #0e5b83;
  --yh-orange-600: #f7931e;
  --yh-orange-700: #d87010;
  --yh-slate-700: #405866;
  --yh-slate-500: #647583;
  --yh-slate-200: #dce5ea;
  --yh-slate-100: #edf4f7;
  --yh-slate-50: #f7fafb;
  --yh-white: #ffffff;
  --yh-shadow-soft: 0 16px 42px rgba(6, 56, 85, 0.12);
  --yh-shadow-card: 0 18px 54px rgba(6, 56, 85, 0.14);
  --yh-radius: 8px;
  --yh-section-x: clamp(20px, 5vw, 72px);
  --yh-section-y: clamp(64px, 9vw, 112px);
}

body {
  color: var(--yh-blue-950);
  background:
    linear-gradient(180deg, rgba(247, 250, 251, 0.82), rgba(255, 255, 255, 0) 260px),
    var(--yh-white);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body::selection {
  color: var(--yh-white);
  background: var(--yh-blue-800);
}

.site-header {
  min-height: 80px;
  padding-inline: var(--yh-section-x);
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid rgba(220, 229, 234, 0.86);
  box-shadow: 0 8px 28px rgba(6, 56, 85, 0.06);
}

.brand {
  width: min(238px, 54vw);
  min-width: 168px;
}

.brand img,
.site-footer img {
  height: auto;
  filter: drop-shadow(0 6px 12px rgba(6, 56, 85, 0.08));
}

.nav {
  gap: clamp(20px, 2.7vw, 36px);
  color: var(--yh-blue-800);
  font-size: 15px;
}

.nav a {
  padding: 10px 0;
  white-space: nowrap;
}

.nav a::after {
  height: 3px;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--yh-orange-600), #ffb24d);
}

.nav a:hover,
.nav a:focus-visible {
  color: var(--yh-blue-950);
}

.nav a:focus-visible,
.button:focus-visible,
.nav-toggle:focus-visible {
  outline: 3px solid rgba(247, 147, 30, 0.35);
  outline-offset: 4px;
}

.hero {
  position: relative;
  grid-template-columns: minmax(0, 1.04fr) minmax(330px, 0.74fr);
  overflow: hidden;
  padding: clamp(58px, 8vw, 100px) var(--yh-section-x) clamp(46px, 6vw, 74px);
  background:
    linear-gradient(110deg, rgba(255, 255, 255, 0.99) 0%, rgba(255, 255, 255, 0.91) 55%, rgba(237, 244, 247, 0.74) 100%),
    linear-gradient(90deg, rgba(6, 56, 85, 0.05) 1px, transparent 1px),
    linear-gradient(0deg, rgba(6, 56, 85, 0.04) 1px, transparent 1px);
  background-size: auto, 92px 92px, 92px 92px;
}

.hero::before {
  position: absolute;
  inset: auto -8% 0 auto;
  width: min(520px, 52vw);
  height: min(520px, 52vw);
  content: "";
  background: radial-gradient(circle, rgba(247, 147, 30, 0.13), rgba(247, 147, 30, 0) 68%);
  pointer-events: none;
}

.hero-copy,
.hero-media {
  position: relative;
  z-index: 1;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  color: var(--yh-orange-700);
  font-size: 12px;
  line-height: 1.3;
}

.eyebrow::before {
  width: 28px;
  height: 3px;
  content: "";
  background: var(--yh-orange-600);
  border-radius: 99px;
}

h1 {
  max-width: 760px;
  margin-bottom: 24px;
  color: var(--yh-blue-950);
  font-size: clamp(40px, 6.5vw, 78px);
  line-height: 1.04;
}

h2 {
  color: var(--yh-blue-950);
  font-size: clamp(28px, 3.8vw, 44px);
}

h3 {
  color: inherit;
  font-size: clamp(20px, 2vw, 23px);
}

.hero-lead {
  max-width: 690px;
  color: var(--yh-slate-700);
  font-size: clamp(17px, 1.8vw, 21px);
  line-height: 1.78;
}

.hero-actions {
  gap: 12px;
  margin-bottom: 38px;
}

.button {
  min-height: 50px;
  padding-inline: 24px;
  border-radius: 7px;
  box-shadow: none;
}

.button.primary {
  background: linear-gradient(180deg, #ffa737, var(--yh-orange-600));
  border-color: var(--yh-orange-600);
  box-shadow: 0 10px 24px rgba(247, 147, 30, 0.24);
}

.button.secondary {
  color: var(--yh-blue-900);
  background: rgba(255, 255, 255, 0.92);
  border-color: rgba(6, 56, 85, 0.22);
}

.hero-stats {
  max-width: 720px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(220, 229, 234, 0.95);
  border-radius: var(--yh-radius);
  box-shadow: 0 10px 30px rgba(6, 56, 85, 0.07);
  backdrop-filter: blur(10px);
}

.hero-stats div {
  min-width: 0;
  padding: 18px 20px;
}

.hero-stats div + div {
  border-left: 1px solid var(--yh-slate-200);
}

.hero-stats dt {
  color: var(--yh-blue-900);
  font-size: clamp(21px, 2.2vw, 26px);
  line-height: 1.15;
}

.hero-stats dd {
  color: var(--yh-slate-500);
  line-height: 1.45;
}

.hero-media {
  min-height: clamp(310px, 36vw, 440px);
  padding: clamp(26px, 4vw, 44px);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(247, 250, 251, 0.88)),
    linear-gradient(90deg, rgba(6, 56, 85, 0.06) 1px, transparent 1px);
  background-size: auto, 28px 28px;
  border: 1px solid rgba(220, 229, 234, 0.95);
  border-radius: var(--yh-radius);
  box-shadow: var(--yh-shadow-card);
}

.hero-media::before {
  position: absolute;
  inset: 18px;
  content: "";
  border: 1px solid rgba(14, 91, 131, 0.11);
  border-radius: calc(var(--yh-radius) - 2px);
  pointer-events: none;
}

.hero-media img {
  width: min(430px, 100%);
  aspect-ratio: 1 / 1;
  object-fit: contain;
  min-width: 0;
  filter: drop-shadow(0 14px 24px rgba(6, 56, 85, 0.12));
}

.service-band,
.strengths,
.process,
.contact {
  padding: var(--yh-section-y) var(--yh-section-x);
}

.section-heading {
  max-width: 900px;
}

.section-heading .eyebrow {
  margin-bottom: 6px;
}

.service-grid,
.timeline {
  gap: clamp(16px, 2vw, 22px);
}

.service-band .service-tabs {
  gap: 10px;
  margin: -10px 0 26px;
}

.service-band .service-tab {
  min-height: 44px;
  padding: 0 17px;
  color: var(--yh-blue-800);
  background: var(--yh-white);
  border: 1px solid rgba(220, 229, 234, 0.95);
  border-radius: 7px;
  box-shadow: 0 8px 18px rgba(6, 56, 85, 0.06);
}

.service-band .service-tab:hover,
.service-band .service-tab:focus-visible {
  color: var(--yh-blue-950);
  border-color: rgba(247, 147, 30, 0.72);
  box-shadow: 0 12px 24px rgba(6, 56, 85, 0.09);
}

.service-band .service-tab[aria-selected="true"] {
  color: var(--yh-white);
  background: linear-gradient(180deg, var(--yh-blue-800), var(--yh-blue-950));
  border-color: var(--yh-blue-900);
  box-shadow: 0 12px 28px rgba(6, 56, 85, 0.16);
}

.service-detail {
  min-width: 0;
}

.service-detail .service-card,
.service-grid.is-service-switcher .service-card {
  max-width: 780px;
}

.service-card ul,
.service-detail ul,
.faq-list {
  margin: 0;
  padding: 0;
}

.service-card li,
.service-detail li {
  position: relative;
  margin-top: 10px;
  padding-left: 18px;
  color: var(--yh-slate-700);
  line-height: 1.7;
  list-style: none;
}

.service-card li::before,
.service-detail li::before {
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 6px;
  height: 6px;
  content: "";
  background: var(--yh-orange-600);
  border-radius: 50%;
}

.service-card,
.timeline article,
.strength-panel,
.check-list li,
.contact-box {
  border-radius: var(--yh-radius);
}

.service-card {
  position: relative;
  overflow: hidden;
  min-height: 300px;
  padding: 30px;
  border-color: rgba(220, 229, 234, 0.95);
  box-shadow: 0 12px 34px rgba(6, 56, 85, 0.07);
}

.service-card::before {
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  content: "";
  background: linear-gradient(90deg, var(--yh-blue-800), var(--yh-orange-600));
}

.service-card:nth-child(even) {
  background: linear-gradient(180deg, var(--yh-slate-50), var(--yh-white));
}

.service-index {
  margin-bottom: 48px;
  color: var(--yh-orange-600);
  font-size: 13px;
}

.service-card p,
.strength-panel p,
.timeline p,
.contact p {
  line-height: 1.78;
}

.strengths {
  background:
    linear-gradient(135deg, rgba(5, 47, 73, 0.98), rgba(10, 70, 103, 0.96)),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: auto, 76px 76px;
}

.strengths h2,
.strengths h3 {
  color: var(--yh-white);
}

.strength-panel,
.check-list li {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.16);
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.08);
}

.strength-panel {
  padding: clamp(28px, 4vw, 40px);
}

.check-list {
  gap: 12px;
}

.check-list li {
  min-height: 62px;
  padding: 18px 20px 18px 50px;
  color: rgba(255, 255, 255, 0.92);
}

.check-list li::before {
  left: 20px;
  top: 22px;
}

.process {
  background:
    linear-gradient(180deg, var(--yh-slate-50), #ffffff);
}

.timeline article {
  min-height: 232px;
  padding: 30px;
  border-color: rgba(220, 229, 234, 0.95);
  box-shadow: 0 12px 32px rgba(6, 56, 85, 0.07);
}

.timeline span {
  width: 42px;
  height: 42px;
  margin-bottom: 38px;
  background: linear-gradient(180deg, var(--yh-blue-800), var(--yh-blue-950));
  box-shadow: 0 8px 18px rgba(6, 56, 85, 0.18);
}

.contact {
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.7fr);
  background:
    linear-gradient(135deg, rgba(5, 47, 73, 0.98), rgba(14, 91, 131, 0.92)),
    url("assets/yuanheng-logo-optimized.svg");
  background-size: cover, min(560px, 74vw);
  background-position: center, right 8% center;
}

.quote,
.faq {
  padding: var(--yh-section-y) var(--yh-section-x);
}

.quote {
  background: var(--yh-white);
}

.quote .section-heading p,
.faq .section-heading p {
  max-width: 690px;
  color: var(--yh-slate-700);
  line-height: 1.75;
}

.quote-form {
  display: grid;
  max-width: 940px;
  gap: 18px;
  padding: clamp(22px, 3vw, 32px);
  background: linear-gradient(180deg, var(--yh-white), var(--yh-slate-50));
  border: 1px solid rgba(220, 229, 234, 0.95);
  border-radius: var(--yh-radius);
  box-shadow: var(--yh-shadow-soft);
}

.quote-form__grid,
.quote-form {
  min-width: 0;
}

.quote .quote-form label,
.quote-form label {
  min-width: 0;
}

.quote .quote-form label > span,
.quote-form label > span,
.quote .quote-form legend {
  color: var(--yh-blue-800);
  font-size: 13px;
  font-weight: 900;
}

.quote .quote-form input,
.quote .quote-form select,
.quote .quote-form textarea,
.quote-form input,
.quote-form select,
.quote-form textarea {
  min-height: 46px;
  padding: 10px 12px;
  color: var(--yh-blue-950);
  background: var(--yh-white);
  border: 1px solid rgba(220, 229, 234, 0.98);
  border-radius: 7px;
  box-shadow: inset 0 1px 0 rgba(6, 56, 85, 0.03);
}

.quote .quote-form textarea,
.quote-form textarea {
  min-height: 104px;
}

.quote .quote-form fieldset {
  display: grid;
  gap: 10px;
  min-width: 0;
  padding: 16px;
  border: 1px solid rgba(220, 229, 234, 0.98);
  border-radius: 7px;
}

.quote .quote-form fieldset label {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--yh-slate-700);
}

.quote .quote-form input[type="checkbox"] {
  width: 16px;
  min-height: 16px;
  accent-color: var(--yh-orange-600);
}

.quote-actions,
.quote-form__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.quote-form__mailto {
  min-height: 48px;
  padding: 0 16px;
  color: var(--yh-blue-800);
  background: var(--yh-white);
  border-color: rgba(6, 56, 85, 0.18);
  border-radius: 7px;
}

.form-status,
.quote-form__status {
  min-height: 24px;
  margin: 0;
  color: var(--yh-slate-500);
}

.faq {
  background: linear-gradient(180deg, #ffffff, var(--yh-slate-50));
}

.faq-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  list-style: none;
}

.faq-list article,
.faq-list details,
.faq-list > div {
  min-width: 0;
  padding: 24px;
  background: var(--yh-white);
  border: 1px solid rgba(220, 229, 234, 0.95);
  border-radius: var(--yh-radius);
  box-shadow: 0 12px 30px rgba(6, 56, 85, 0.06);
}

.faq-list h3,
.faq-list summary,
.faq-question {
  color: var(--yh-blue-900);
  font-size: 18px;
  font-weight: 900;
  line-height: 1.35;
}

.faq-question {
  display: flex;
  justify-content: space-between;
  width: 100%;
  padding: 0;
  text-align: left;
  font-family: inherit;
  background: transparent;
  border: 0;
  cursor: pointer;
}

.faq-question::after {
  flex: 0 0 auto;
  margin-left: 16px;
  color: var(--yh-orange-600);
  content: "+";
  font-size: 22px;
  line-height: 1;
}

.faq-question[aria-expanded="true"]::after {
  content: "-";
}

.faq-answer {
  margin-top: 12px;
}

.faq-list p {
  margin: 10px 0 0;
  color: var(--yh-slate-700);
  line-height: 1.75;
}

.hero-badges {
  position: absolute;
  left: clamp(18px, 3vw, 30px);
  right: clamp(18px, 3vw, 30px);
  bottom: clamp(18px, 3vw, 30px);
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

.hero-badges span,
.hero-badges a,
.hero-badges div {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  color: var(--yh-blue-800);
  font-size: 12px;
  font-weight: 900;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(220, 229, 234, 0.9);
  border-radius: 999px;
  box-shadow: 0 8px 18px rgba(6, 56, 85, 0.08);
}

.contact h2 {
  color: var(--yh-white);
}

.contact-box {
  padding: clamp(24px, 4vw, 34px);
  box-shadow: 0 18px 54px rgba(0, 0, 0, 0.18);
}

.contact-box > a:not(.button) {
  color: var(--yh-blue-900);
  font-size: clamp(22px, 2.6vw, 31px);
  line-height: 1.18;
}

.contact-method__value {
  color: var(--yh-blue-900);
  line-height: 1.2;
}

.site-footer {
  min-height: 92px;
  padding: 24px var(--yh-section-x);
  background: var(--yh-white);
}

.site-footer img {
  width: min(190px, 54vw);
}

.site-footer a {
  color: var(--yh-blue-800);
  font-weight: 800;
  overflow-wrap: anywhere;
}

@media (max-width: 1080px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 34px;
    min-height: auto;
  }

  .hero-media {
    width: min(680px, 100%);
    justify-self: stretch;
  }

  .service-card,
  .timeline article {
    min-height: 250px;
  }

  .faq-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  :root {
    --yh-section-x: clamp(16px, 5vw, 24px);
    --yh-section-y: 58px;
  }

  .site-header {
    min-height: 68px;
  }

  .brand {
    width: min(210px, 62vw);
  }

  .nav-toggle {
    border-color: rgba(220, 229, 234, 0.95);
    box-shadow: 0 8px 18px rgba(6, 56, 85, 0.08);
  }

  .nav {
    top: 78px;
    gap: 4px;
    padding: 12px;
  }

  .nav a {
    padding: 12px;
    border-radius: 6px;
  }

  .nav a:hover,
  .nav a:focus-visible {
    background: var(--yh-slate-50);
  }

  .nav a::after {
    display: none;
  }

  .hero {
    padding-top: 42px;
    background-size: auto, 64px 64px, 64px 64px;
  }

  h1 {
    font-size: clamp(36px, 11vw, 48px);
  }

  .hero-lead {
    font-size: 17px;
  }

  .hero-actions {
    grid-template-columns: 1fr;
  }

  .hero-stats {
    grid-template-columns: 1fr;
  }

  .hero-stats div + div {
    border-top: 1px solid var(--yh-slate-200);
    border-left: 0;
  }

  .hero-media {
    min-height: 220px;
    padding: 22px;
  }

  .hero-media::before {
    inset: 12px;
  }

  .service-card,
  .timeline article {
    min-height: auto;
    padding: 24px;
  }

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

  .service-band .service-tab {
    width: 100%;
    padding-inline: 12px;
  }

  .service-index,
  .timeline span {
    margin-bottom: 24px;
  }

  .strength-panel {
    padding: 24px;
  }

  .check-list li {
    padding-right: 16px;
  }

  .contact {
    grid-template-columns: 1fr;
    gap: 24px;
    background-size: cover, 420px;
    background-position: center, right -160px center;
  }

  .contact-box {
    padding: 22px;
  }

  .quote-form {
    padding: 20px;
  }

  .quote-actions,
  .quote-form__actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .quote-form__mailto {
    width: 100%;
    overflow-wrap: anywhere;
  }

  .faq-list article,
  .faq-list details,
  .faq-list > div {
    padding: 20px;
  }

  .site-footer {
    gap: 12px;
  }
}

@media (max-width: 420px) {
  .eyebrow {
    align-items: flex-start;
    font-size: 11px;
  }

  .eyebrow::before {
    margin-top: 6px;
    flex: 0 0 22px;
    width: 22px;
  }

  .brand {
    width: min(190px, 60vw);
  }

  h1 {
    font-size: 34px;
  }

  .button {
    padding-inline: 18px;
  }

  .contact-box > a:not(.button) {
    font-size: 21px;
  }
}
