/* =========================================================================
   올바른 경영솔루션 — 회사소개 · 성공사례 · 상담신청 전용 (sub-company.css) · v3
   - site.css 다음에 로드. 색은 site.css 변수만 사용.
   ========================================================================= */

/* ---------- 공통 ---------- */
.ab-lead { margin-top: 20px; }
@media (min-width: 640px) { .ab-lead { font-size: 18px; } }

/* ---------- about 1. 회사 소개 (사진 + 본문) ---------- */
.ab-intro { display: grid; align-items: start; gap: 40px; }
@media (min-width: 1024px) { .ab-intro { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 56px; } }
.ab-intro__photo {
  position: relative; margin-inline: auto; width: 100%; max-width: 384px; aspect-ratio: 3 / 4;
  overflow: hidden; border-radius: var(--r-3xl); border: 1px solid var(--brand-100); background: var(--white);
  box-shadow: var(--sh-card);
}
@media (min-width: 1024px) { .ab-intro__photo { margin-inline: 0; } }
.ab-intro__photo > .photo-slot { position: absolute; inset: 0; }
.ab-intro__title { color: var(--brand-800); line-height: 1.4; }
.ab-intro__body { margin-top: 28px; display: grid; gap: 20px; font-size: 15px; line-height: 1.7; color: var(--brand-600); }
@media (min-width: 640px) { .ab-intro__body { font-size: 16px; } }
.ab-intro__sign { margin-top: 32px; display: flex; flex-direction: column; align-items: flex-end; gap: 4px; text-align: right; font-size: 14px; font-weight: 700; color: var(--brand-800); }
@media (min-width: 640px) { .ab-intro__sign { font-size: 16px; } }
.ab-intro__kicker { font-size: 11px; font-weight: 800; letter-spacing: .18em; color: var(--accent-600); }

/* ---------- about 3. 전문 분야 카드 ---------- */
.xp-grid { margin-top: 48px; display: grid; gap: 16px; }
@media (min-width: 640px) { .xp-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; } }
@media (min-width: 1024px) { .xp-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; } }
@media (min-width: 1280px) { .xp-grid { gap: 20px; } }
.xp-grid > .reveal { min-width: 0; }
.xp-card {
  position: relative; display: flex; height: 100%; flex-direction: column; overflow: hidden;
  border-radius: var(--r-3xl); border: 1px solid var(--brand-100); background: var(--white); padding: 24px;
  box-shadow: var(--sh-card); transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
@media (min-width: 640px) { .xp-card { padding: 28px; } }
@media (min-width: 1024px) and (max-width: 1279px) { .xp-card { padding: 24px 20px; } }
.xp-card::before { content: ""; position: absolute; inset: 0 0 auto; height: 2px; background: var(--accent-400); opacity: 0; transition: opacity .3s; }
.xp-card:hover { transform: translateY(-3px); box-shadow: var(--sh-lift-hover); }
.xp-card:hover::before { opacity: 1; }
.xp-card__head { text-align: center; }
.xp-card__icon {
  margin-inline: auto; display: flex; width: 56px; height: 56px; align-items: center; justify-content: center;
  border-radius: var(--r-2xl); background: var(--brand-800); color: var(--accent-300);
}
.xp-card__icon svg { width: 28px; height: 28px; }
.xp-card__title { margin-top: 16px; font-size: 18px; font-weight: 700; color: var(--brand-800); }
@media (min-width: 640px) { .xp-card__title { font-size: 20px; } }
.xp-card__hero { margin-top: 20px; display: flex; min-height: 8rem; align-items: center; justify-content: center; border-block: 1px solid var(--brand-50); padding-block: 20px; }
.xp-chips { margin-inline: auto; display: grid; width: 100%; max-width: 16.5rem; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.xp-chips li { display: flex; align-items: center; justify-content: center; border-radius: var(--r-md); background: var(--brand-50); padding: 6px 8px; text-align: center; font-size: 12px; font-weight: 700; line-height: 1.25; letter-spacing: -.01em; color: var(--brand-700); }
.xp-words { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 2px 8px; font-family: var(--font-serif); font-size: 24px; font-weight: 700; letter-spacing: -.02em; color: var(--brand-800); }
@media (min-width: 640px) { .xp-words { font-size: 26px; } }
@media (min-width: 1024px) and (max-width: 1279px) { .xp-words { font-size: 21px; } }
.xp-words__dot { font-size: 18px; color: var(--accent-600); }
.xp-card__label { margin-top: 20px; display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 800; letter-spacing: .025em; color: var(--brand-600); }
@media (min-width: 640px) { .xp-card__label { font-size: 13px; } }
.xp-card__label::before { content: ""; width: 14px; height: 1px; background: var(--accent-500); }
.xp-list { margin-top: 8px; }
.xp-list li { display: flex; align-items: flex-start; gap: 8px; border-top: 1px solid var(--brand-50); padding-block: 9px; }
.xp-list li:first-child { border-top: 0; }
.xp-list svg { margin-top: 3px; width: 12px; height: 12px; flex-shrink: 0; fill: none; stroke: var(--accent-500); stroke-width: 3.2; stroke-linecap: round; stroke-linejoin: round; }
.xp-list span { min-width: 0; font-size: 13px; font-weight: 500; line-height: 1.375; color: var(--brand-600); }
.xp-card__foot { margin-top: auto; display: flex; align-items: center; gap: 6px; border-top: 1px solid var(--brand-50); padding-top: 16px; font-size: 13px; font-weight: 700; color: var(--accent-600); }
.xp-list + .xp-card__foot { margin-top: 12px; }
.xp-card__foot span { transition: transform .2s; }
.xp-card:hover .xp-card__foot span { transform: translateX(3px); }
.xp-tagline { font-size: 18px; font-weight: 700; line-height: 1.375; color: var(--brand-800); }
@media (min-width: 640px) { .xp-tagline { font-size: 20px; } }

/* ---------- about 4. 일하는 원칙 (4칸 번호 카드) ---------- */
.pr-grid { display: grid; gap: 16px; }
@media (min-width: 640px) { .pr-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .pr-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; } }
.pr-card { display: flex; flex-direction: column; border-radius: var(--r-3xl); border: 1px solid var(--brand-100); border-top: 2px solid var(--accent-400); background: #fff; padding: 26px 24px; box-shadow: var(--sh-card); }
.pr-card__no { font-family: var(--font-serif); font-size: 28px; font-weight: 700; line-height: 1; color: var(--accent-600); }
.pr-card__title { margin-top: 18px; font-size: 17px; font-weight: 700; line-height: 1.4; color: var(--brand-800); }
.pr-card__text { margin-top: 8px; font-size: 14px; line-height: 1.65; color: var(--brand-500); }

/* ---------- about 5. 사업자 정보 ---------- */
.biz-table { margin-top: 32px; overflow: hidden; border-radius: var(--r-3xl); border: 1px solid var(--brand-100); background: var(--white); box-shadow: var(--sh-card); }
.biz-table__row { display: grid; grid-template-columns: 112px minmax(0, 1fr); align-items: center; border-top: 1px solid var(--brand-50); }
@media (min-width: 640px) { .biz-table__row { grid-template-columns: 180px minmax(0, 1fr); } }
.biz-table__row:first-child { border-top: 0; }
.biz-table dt { align-self: stretch; display: flex; align-items: center; background: var(--brand-50); padding: 16px; font-size: 13px; font-weight: 700; color: var(--brand-600); }
@media (min-width: 640px) { .biz-table dt { padding: 18px 24px; font-size: 14px; } }
.biz-table dd { min-width: 0; padding: 16px; font-size: 15px; font-weight: 700; color: var(--brand-700); overflow-wrap: anywhere; }
@media (min-width: 640px) { .biz-table dd { padding: 18px 24px; font-size: 16px; } }
.biz-table__tel { color: var(--accent-600); text-decoration: underline; text-underline-offset: 4px; }
.biz-table__muted { font-weight: 500 !important; color: var(--muted) !important; }

/* ---------- success 1. 업종별 진행 예시 카드 ---------- */
.sc-notice {
  margin-top: 18px; display: inline-flex; max-width: 100%; flex-wrap: wrap; align-items: center; gap: 6px 8px;
  border-radius: var(--r-btn); border: 1px solid var(--brand-100); background: var(--ivory); padding: 8px 14px;
  font-size: 13px; font-weight: 600; line-height: 1.5; color: var(--brand-600);
}
.case-grid { display: grid; gap: 16px; }
@media (min-width: 640px) { .case-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; } }
@media (min-width: 1024px) { .case-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.case-card {
  position: relative; display: flex; flex-direction: column; overflow: hidden; border-radius: var(--r-3xl);
  border: 1px solid var(--brand-100); background: var(--white); padding: 24px; box-shadow: var(--sh-card);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.case-card::before { content: ""; position: absolute; inset: 0 0 auto; height: 2px; background: var(--accent-400); opacity: 0; transition: opacity .3s; }
.case-card:hover { transform: translateY(-3px); box-shadow: var(--sh-lift-hover); }
.case-card:hover::before { opacity: 1; }
.case-card__top { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.case-card__industry { border-radius: var(--r-md); background: var(--brand-800); padding: 4px 10px; font-size: 12px; font-weight: 700; color: #fff; }
.case-card__field { border-radius: var(--r-md); background: var(--accent-50); padding: 4px 10px; font-size: 12px; font-weight: 700; color: var(--accent-700); box-shadow: inset 0 0 0 1px var(--accent-200); }
.case-card__title { margin-top: 16px; font-size: 17px; font-weight: 700; line-height: 1.45; color: var(--brand-800); text-wrap: balance; }
.case-card__steps { margin-top: 16px; display: grid; gap: 10px; border-top: 1px solid var(--brand-100); padding-top: 16px; }
.case-card__steps li { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 10px; font-size: 14px; line-height: 1.6; color: var(--brand-600); }
.case-card__k { font-size: 12.5px; font-weight: 800; line-height: 1.85; color: var(--accent-600); }
.case-card__foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 8px; border-top: 1px solid var(--brand-50); padding-top: 14px; font-size: 12.5px; font-weight: 700; color: var(--brand-400); }
.case-card__steps + .case-card__foot { margin-top: 18px; }

/* ---------- contact 5. 자주 묻는 질문 ---------- */
.faq { margin-top: 40px; display: grid; gap: 12px; }
.faq__item { overflow: hidden; border-radius: var(--r-2xl); border: 1px solid var(--brand-100); background: var(--white); transition: border-color .2s; }
.faq__item.is-open { border-color: var(--accent-400); }
.faq__q { display: flex; width: 100%; min-height: 64px; align-items: center; gap: 12px; padding: 16px 18px; text-align: left; }
@media (min-width: 640px) { .faq__q { gap: 14px; padding: 18px 24px; } }
.faq__mark { display: flex; width: 28px; height: 28px; flex-shrink: 0; align-items: center; justify-content: center; border-radius: 50%; background: var(--accent-50); font-family: var(--font-serif); font-size: 13px; font-weight: 700; color: var(--accent-700); transition: background-color .2s, color .2s; }
.faq__item.is-open .faq__mark { background: var(--brand-800); color: var(--accent-300); }
.faq__text { min-width: 0; flex: 1; font-size: 15px; font-weight: 700; line-height: 1.45; color: var(--brand-800); }
@media (min-width: 640px) { .faq__text { font-size: 17px; } }
.faq__chev { position: relative; width: 20px; height: 20px; flex-shrink: 0; }
.faq__chev::before, .faq__chev::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 2px; margin: -1px 0 0 -6px; border-radius: 2px; background: var(--brand-400); transition: transform .3s var(--ease); }
.faq__chev::after { transform: rotate(90deg); }
.faq__item.is-open .faq__chev::after { transform: rotate(0deg); }
.faq__a { display: grid; grid-template-rows: 1fr; }
.js .faq__a { grid-template-rows: 0fr; visibility: hidden; transition: grid-template-rows .35s var(--ease), visibility 0s linear .35s; }
.js .faq__item.is-open .faq__a { grid-template-rows: 1fr; visibility: visible; transition: grid-template-rows .35s var(--ease), visibility 0s; }
.faq__a-inner { min-height: 0; overflow: hidden; }
.faq__a-inner p { margin: 0 18px; border-top: 1px solid var(--brand-50); padding: 16px 0 20px 40px; font-size: 14px; line-height: 1.7; color: var(--brand-500); }
@media (min-width: 640px) { .faq__a-inner p { margin: 0 24px; padding-left: 42px; font-size: 15px; } }
@media (max-width: 359px) { .faq__a-inner p { padding-left: 0; } }
.faq__more { font-size: 15px; color: var(--brand-500); }
.faq__more a { font-weight: 800; color: var(--accent-600); text-decoration: underline; text-underline-offset: 4px; }

/* ---------- 동작 줄이기 ---------- */
@media (prefers-reduced-motion: reduce) {
  .xp-card, .case-card, .faq__item, .js .faq__a { transition: none; }
}
