/* 홈 전용 — PRECISION FLOW ENGINEERING (2026-10 리뉴얼). 공통 변수는 style.css 의 :root 사용 */
.rh { --rh-ink: #162226; --rh-copper-text: #9A6232; }
.rh a { text-decoration: none; }
.rh img { max-width: 100%; height: auto; }

/* ---------- 공통 섹션 ---------- */
.rh-sec { padding: 88px 24px; }
.rh-sec--alt { background: var(--color-bg-alt); }
.rh-sec--teal { background: var(--color-primary); color: #fff; }
.rh-sec--dark { background: var(--color-dark); color: #fff; }
.rh-wrap { max-width: var(--container-max); margin: 0 auto; }
.rh-head { max-width: 720px; margin-bottom: 44px; }
.rh-eyebrow { display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--rh-copper-text); margin-bottom: 12px; }
.rh-sec--teal .rh-eyebrow, .rh-sec--dark .rh-eyebrow { color: var(--color-accent); }
.rh-h2 { font-size: clamp(1.65rem, 3vw, 2.3rem); font-weight: 800; letter-spacing: -.5px; line-height: 1.25; color: var(--rh-ink); position: relative; padding-bottom: 18px; }
.rh-h2::after { content: ""; position: absolute; left: 0; bottom: 0; width: 44px; height: 3px; background: var(--color-accent); }
.rh-sec--teal .rh-h2, .rh-sec--dark .rh-h2 { color: #fff; }
.rh-head p { margin-top: 16px; color: var(--color-text-muted); font-size: 1.02rem; }
.rh-sec--teal .rh-head p, .rh-sec--dark .rh-head p { color: rgba(255,255,255,.74); }
.rh-more { display: inline-flex; align-items: center; gap: 8px; margin-top: 28px; padding: 13px 22px; border: 1px solid var(--color-primary); color: var(--color-primary); font-weight: 700; font-size: .92rem; transition: background .2s, color .2s; }
.rh-more:hover { background: var(--color-primary); color: #fff; }
.rh-sec--teal .rh-more, .rh-sec--dark .rh-more { border-color: rgba(255,255,255,.4); color: #fff; }
.rh-sec--teal .rh-more:hover, .rh-sec--dark .rh-more:hover { background: var(--color-accent); border-color: var(--color-accent); color: var(--color-dark); }

/* ---------- SECTION 01 히어로 ---------- */
.rh-hero { position: relative; background: var(--color-dark); color: #fff; overflow: hidden; }
.rh-hero__inner > :not(.rh-hero__media) { position: relative; z-index: 3; }
.rh-hero__inner { max-width: var(--container-max); margin: 0 auto; padding: 150px 24px 76px; display: flex; flex-direction: column; min-height: 700px; justify-content: center; pointer-events: none; }
.rh-hero__inner > * { pointer-events: auto; }
.rh-hero__label { order: 1; font-size: .8rem; font-weight: 700; letter-spacing: .24em; color: var(--color-accent); margin-bottom: 14px; }
.rh-hero__title { order: 2; font-size: clamp(3rem, 5.2vw, 4.6rem); font-weight: 800; line-height: 1.08; letter-spacing: -1.5px; color: #fff; max-width: 46%; word-break: keep-all; margin-bottom: 18px; }
.rh-hero__title em { font-style: normal; color: var(--color-accent); }
.rh-hero__tag { order: 3; font-size: 1.25rem; font-weight: 600; color: #fff; max-width: 46%; margin-bottom: 14px; padding-left: 14px; border-left: 3px solid var(--color-accent); }
.rh-hero__desc { order: 4; max-width: min(500px, 42%); font-size: 1rem; line-height: 1.85; color: rgba(255,255,255,.78); margin-bottom: 34px; }
.rh-hero__ctas { order: 5; display: flex; flex-wrap: wrap; gap: 12px; }
.rh-hero__media { position: absolute; z-index: 1; top: 0; right: 0; bottom: 0; width: 56%; background: #0d2328; }
.rh-hero__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.rh-hero__media::before { content: ""; position: absolute; inset: 0; z-index: 2; background: linear-gradient(90deg, var(--color-dark) 0, rgba(9,26,32,.78) 14%, rgba(9,26,32,.2) 42%, transparent 62%), linear-gradient(180deg, rgba(9,26,32,.55) 0, transparent 24%, transparent 72%, rgba(9,26,32,.5) 100%); }
.rh-hero__svg { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 3; pointer-events: none; }
.rh-hero__svg .ln { stroke: rgba(255,255,255,.8); stroke-width: 1.6; fill: none; }
.rh-hero__svg .dot { fill: var(--color-accent); }
.rh-hero__svg .txt { fill: #fff; font-size: 34px; font-weight: 700; font-family: var(--font-body); paint-order: stroke; stroke: rgba(9,26,32,.75); stroke-width: 6px; }
.rh-hero__svg .flow { stroke: var(--color-accent); stroke-width: 3; fill: none; stroke-dasharray: 16 22; opacity: .85; animation: rhFlow 2.4s linear infinite; }
@keyframes rhFlow { to { stroke-dashoffset: -76; } }
@media (prefers-reduced-motion: reduce) { .rh-hero__svg .flow { animation: none; } }

/* 핵심 특징 4개 */
.rh-feat { position: relative; z-index: 4; background: var(--color-dark); border-top: 1px solid rgba(255,255,255,.1); }
.rh-feat__list { max-width: var(--container-max); margin: 0 auto; padding: 0 24px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.rh-feat__item { display: flex; gap: 16px; align-items: center; padding: 28px 22px; border-left: 1px solid rgba(255,255,255,.1); }
.rh-feat__item:first-child { border-left: 0; padding-left: 0; }
.rh-feat__ico { flex: 0 0 44px; width: 44px; height: 44px; color: var(--color-accent); }
.rh-feat__item b { display: block; font-size: 1.02rem; color: #fff; margin-bottom: 3px; }
.rh-feat__item span { display: block; font-size: .85rem; line-height: 1.55; color: rgba(255,255,255,.66); }

/* ---------- SECTION 02 서비스 6 ---------- */
.rh-svc { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.rh-svc__card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--color-border); color: var(--rh-ink); transition: border-color .25s, transform .25s; }
.rh-svc__card:hover { border-color: var(--color-accent); transform: translateY(-3px); }
.rh-svc__img { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: #e9e8e2; }
.rh-svc__img img { width: 100%; height: 100%; object-fit: cover; }
.rh-svc__body { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.rh-svc__body h3 { font-size: 1.1rem; display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.rh-svc__body h3::after { content: "→"; flex: 0 0 auto; color: var(--rh-copper-text); font-weight: 700; }
.rh-svc__body p { font-size: .92rem; color: var(--color-text-muted); line-height: 1.65; }

/* ---------- SECTION 03 전후 ---------- */
.rh-ba { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px; }
.rh-ba__pair { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0; position: relative; }
.rh-ba__fig { position: relative; margin: 0; aspect-ratio: 1 / 1; overflow: hidden; background: #ddd; }
.rh-ba__fig img { width: 100%; height: 100%; object-fit: cover; }
.rh-ba__fig figcaption { position: absolute; left: 12px; bottom: 12px; padding: 6px 14px; font-size: .8rem; font-weight: 800; letter-spacing: .06em; background: var(--color-primary); color: #fff; }
.rh-ba__fig--after figcaption { background: var(--color-accent); color: var(--color-dark); }
.rh-ba__arrow { position: absolute; z-index: 2; left: 50%; top: 50%; width: 44px; height: 44px; margin: -22px 0 0 -22px; display: grid; place-items: center; background: #fff; color: var(--color-primary); font-weight: 800; border-radius: 50%; box-shadow: 0 2px 10px rgba(9,26,32,.3); }
.rh-ba__info h3 { font-size: 1.1rem; margin: 18px 0 6px; }
.rh-ba__info p { font-size: .93rem; color: var(--color-text-muted); }
.rh-note { margin-top: 28px; font-size: .88rem; color: var(--color-text-muted); }

/* ---------- SECTION 04 증상 ---------- */
.rh-sym { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.rh-sym__card { background: #fff; border: 1px solid var(--color-border); display: flex; flex-direction: column; }
.rh-sym__img { aspect-ratio: 4 / 3; overflow: hidden; background: #e9e8e2; }
.rh-sym__img img { width: 100%; height: 100%; object-fit: cover; }
.rh-sym__body { padding: 20px 20px 24px; }
.rh-sym__body h3 { font-size: 1.08rem; margin-bottom: 8px; display: flex; gap: 10px; align-items: baseline; }
.rh-sym__body h3 span { color: var(--rh-copper-text); font-size: .9rem; font-weight: 800; }
.rh-sym__body p { font-size: .92rem; color: var(--color-text-muted); line-height: 1.7; }
.rh-callout { margin-top: 30px; padding: 22px 26px; background: #fff; border-left: 4px solid var(--color-accent); font-size: .96rem; color: var(--rh-ink); }

/* ---------- SECTION 05 과정 ---------- */
.rh-step { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; counter-reset: rhs; }
.rh-step__item { background: #fff; border: 1px solid var(--color-border); display: flex; flex-direction: column; }
.rh-step__img { aspect-ratio: 4 / 3; overflow: hidden; background: #e9e8e2; }
.rh-step__img img { width: 100%; height: 100%; object-fit: cover; }
.rh-step__body { padding: 16px 16px 20px; }
.rh-step__body h3 { font-size: 1rem; margin-bottom: 6px; }
.rh-step__body h3::before { counter-increment: rhs; content: counter(rhs, decimal-leading-zero) " "; color: var(--rh-copper-text); font-weight: 800; margin-right: 4px; }
.rh-step__body p { font-size: .88rem; color: var(--color-text-muted); line-height: 1.65; }
.rh-check { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 8px 10px; align-items: center; font-size: .92rem; }
.rh-check b { margin-right: 6px; }
.rh-check span { padding: 6px 14px; border: 1px solid var(--color-border); background: #fff; font-size: .86rem; }

/* ---------- SECTION 06 비교 ---------- */
.rh-guide { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; align-items: start; }
.rh-guide__media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; margin-bottom: 26px; }
.rh-guide__media img { width: 100%; height: 100%; object-fit: cover; }
.rh-guide__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(20,45,50,.55), transparent 55%); }
.rh-guide__text p { color: rgba(255,255,255,.8); font-size: .97rem; line-height: 1.85; margin-bottom: 14px; }
.rh-guide__text h3 { color: #fff; font-size: 1.08rem; margin: 22px 0 8px; }
.rh-guide__text h3::before { content: ""; display: inline-block; width: 18px; height: 2px; background: var(--color-accent); vertical-align: middle; margin-right: 10px; }
.rh-guide__text ul { margin: 0 0 10px; padding-left: 0; }
.rh-guide__text li { position: relative; padding-left: 16px; color: rgba(255,255,255,.8); font-size: .94rem; margin-bottom: 6px; }
.rh-guide__text li::before { content: ""; position: absolute; left: 0; top: .72em; width: 6px; height: 1px; background: var(--color-accent); }
.rh-table { width: 100%; border-collapse: collapse; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.14); }
.rh-table caption { text-align: left; padding: 0 0 12px; font-weight: 700; color: #fff; font-size: 1.02rem; }
.rh-table th, .rh-table td { padding: 14px 16px; text-align: left; vertical-align: top; font-size: .9rem; line-height: 1.65; border-bottom: 1px solid rgba(255,255,255,.12); color: rgba(255,255,255,.86); }
.rh-table thead th { background: rgba(255,255,255,.08); color: #fff; font-weight: 800; }
.rh-table tbody th { width: 17%; color: var(--color-accent); font-weight: 700; white-space: nowrap; }
.rh-table td { width: 41.5%; }
.rh-guide__warn { margin-top: 16px; font-size: .88rem; color: rgba(255,255,255,.66); }

/* ---------- SECTION 07 서비스·지역 ---------- */
.rh-two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 56px; }
.rh-links { border-top: 1px solid var(--color-border); }
.rh-links li { border-bottom: 1px solid var(--color-border); }
.rh-links a { display: flex; justify-content: space-between; gap: 12px; padding: 14px 4px; font-size: .96rem; font-weight: 600; color: var(--rh-ink); background: #fff; }
.rh-links a::after { content: "→"; color: var(--rh-copper-text); }
.rh-links a:hover { background: var(--color-bg-alt); }
.rh-sub { margin: 26px 0 10px; font-size: .82rem; font-weight: 800; letter-spacing: .1em; color: var(--rh-copper-text); }
.rh-area { border-top: 1px solid var(--color-border); }
.rh-area details { border-bottom: 1px solid var(--color-border); }
.rh-area summary { display: flex; align-items: center; gap: 12px; padding: 14px 4px; cursor: pointer; list-style: none; font-weight: 800; min-height: 48px; }
.rh-area summary::-webkit-details-marker { display: none; }
.rh-area summary::after { content: "+"; margin-left: auto; color: var(--rh-copper-text); font-weight: 700; font-size: 1.1rem; }
.rh-area details[open] summary::after { content: "−"; }
.rh-area summary small { font-weight: 500; color: var(--color-text-muted); font-size: .8rem; }
.rh-area ul { display: flex; flex-wrap: wrap; gap: 8px; padding: 2px 4px 18px; }
.rh-area li { font-size: .88rem; padding: 6px 12px; border: 1px solid var(--color-border); color: var(--color-text-muted); background: #fff; }
.rh-area li a { color: var(--rh-copper-text); font-weight: 700; border-bottom: 1px solid currentColor; }
.rh-area__note { margin-top: 16px; font-size: .86rem; color: var(--color-text-muted); }

/* ---------- SECTION 08 FAQ + CTA ---------- */
.rh-faq { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 56px; align-items: start; }
.rh-faq .faq { max-width: none; margin: 0; border-top: 1px solid rgba(255,255,255,.18); }
.rh-faq .faq-item { border-bottom: 1px solid rgba(255,255,255,.18); }
.rh-faq .faq-q { color: #fff; padding: 22px 4px; font-size: 1.02rem; }
.rh-faq .faq-q > span:first-child::before { content: attr(data-n); color: var(--color-accent); font-weight: 800; margin-right: 14px; }
.rh-faq .faq-a p { color: rgba(255,255,255,.76); }
.rh-cta { position: relative; overflow: hidden; background: var(--color-primary); color: #fff; padding: 84px 24px; text-align: center; }
.rh-cta__bg { position: absolute; inset: 0; }
.rh-cta__bg img { width: 100%; height: 100%; object-fit: cover; opacity: .28; }
.rh-cta__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(20,45,50,.94), rgba(20,45,50,.7)); }
.rh-cta__inner { position: relative; z-index: 2; max-width: 760px; margin: 0 auto; }
.rh-cta h2 { color: #fff; font-size: clamp(1.5rem, 3.2vw, 2.2rem); line-height: 1.35; margin-bottom: 14px; }
.rh-cta p { color: rgba(255,255,255,.78); margin-bottom: 30px; }

/* ---------- 반응형 ---------- */
@media (max-width: 1100px) {
  .rh-sym { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rh-step { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .rh-guide, .rh-two, .rh-faq { grid-template-columns: 1fr; gap: 36px; }
  .rh-hero__title, .rh-hero__tag { max-width: 50%; }
  .rh-hero__desc { max-width: 44%; }
}
@media (max-width: 860px) {
  .rh-sec { padding: 64px 20px; }
  /* 히어로: 라벨 → H1 → 한 줄 설명 → 이미지 → CTA → 긴 설명 */
  .rh-hero__inner { padding: 96px 20px 34px; min-height: 0; justify-content: flex-start; }
  .rh-hero__title, .rh-hero__tag, .rh-hero__desc { max-width: none; }
  .rh-hero__title { font-size: clamp(2.6rem, 11vw, 3.6rem); margin-bottom: 12px; }
  .rh-hero__tag { font-size: 1rem; margin-bottom: 20px; }
  .rh-hero__label { margin-bottom: 10px; font-size: .72rem; }
  .rh-hero__media { position: relative !important; z-index: auto !important; order: 4; width: auto; margin: 0 -20px 22px; aspect-ratio: 4 / 3; max-height: 62vh; inset: auto; }
  .rh-hero__media::before { background: linear-gradient(180deg, rgba(9,26,32,.35) 0, transparent 22%, transparent 78%, rgba(9,26,32,.4) 100%); }
  .rh-hero__svg { display: none; }
  .rh-hero__ctas { order: 5; }
  .rh-hero__desc { order: 6; margin: 24px 0 0; font-size: .95rem; }
  .rh-feat__list { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 0 20px; }
  .rh-feat__item { padding: 20px 14px 20px 0; border-left: 0; border-top: 1px solid rgba(255,255,255,.1); }
  .rh-feat__item:nth-child(-n+2) { border-top: 0; }
  .rh-feat__item:nth-child(even) { padding-left: 14px; border-left: 1px solid rgba(255,255,255,.1); }
  .rh-feat__ico { flex-basis: 34px; width: 34px; height: 34px; }
  .rh-feat__item { gap: 12px; }
  .rh-feat__item b { font-size: .92rem; }
  .rh-feat__item span { display: none; }
  .rh-svc { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .rh-svc__body { padding: 14px 14px 16px; }
  .rh-svc__body h3 { font-size: .95rem; }
  .rh-svc__body p { font-size: .84rem; }
  .rh-ba { grid-template-columns: 1fr; gap: 36px; }
  .rh-sym { gap: 12px; }
  .rh-sym__body { padding: 14px 14px 18px; }
  .rh-sym__body h3 { font-size: .98rem; flex-wrap: wrap; gap: 2px 8px; }
  .rh-sym__body p { font-size: .84rem; }
  .rh-step { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .rh-step__item:last-child { grid-column: 1 / -1; }
  /* 비교표 → 카드 */
  .rh-table, .rh-table tbody, .rh-table tr, .rh-table th, .rh-table td { display: block; width: auto !important; }
  .rh-table { border: 0; background: none; }
  .rh-table caption { display: block; width: 100%; }
  .rh-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .rh-table tbody tr { margin-bottom: 14px; border: 1px solid rgba(255,255,255,.16); background: rgba(255,255,255,.05); }
  .rh-table tbody th { padding: 12px 16px; background: rgba(255,255,255,.08); border-bottom: 1px solid rgba(255,255,255,.12); white-space: normal; }
  .rh-table td { padding: 11px 16px; border-bottom: 1px solid rgba(255,255,255,.08); }
  .rh-table td:last-child { border-bottom: 0; }
  .rh-table td::before { content: attr(data-label); display: block; font-size: .74rem; font-weight: 800; letter-spacing: .08em; color: var(--color-accent); margin-bottom: 3px; }
  .rh-cta { padding: 64px 20px; }
}
@media (max-width: 480px) {
  .rh-hero__ctas { flex-direction: column; }
  .rh-hero__ctas a { width: 100%; }
  .rh-ba__arrow { width: 36px; height: 36px; margin: -18px 0 0 -18px; }
  .rh-ba__fig figcaption { left: 8px; bottom: 8px; padding: 4px 10px; font-size: .72rem; }
  .rh-svc__body h3 { font-size: .9rem; }
}
@media (max-width: 360px) {
  .rh-svc__body p { font-size: .8rem; line-height: 1.55; }
}
