/* =========================================================
   홈 & 공용 섹션 스타일
   ========================================================= */

/* ---------- 히어로 ---------- */
.hero { background: var(--ivory); padding: var(--sp-6) 0 var(--sp-6); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.25fr .9fr; gap: var(--sp-5); align-items: center; }
.hero-label { display: inline-block; font-weight: 700; color: var(--green); font-size: var(--fs-small); margin-bottom: var(--sp-2); }
.hero h1 { font-size: var(--fs-h1); font-weight: 900; line-height: 1.22; margin-bottom: var(--sp-3); }
.hero-sub { font-size: 1.2rem; color: #374151; max-width: 600px; margin-bottom: var(--sp-4); }
.hero .btn-row { margin-bottom: var(--sp-4); }
.trust-line { display: flex; flex-wrap: wrap; gap: .4rem 1.25rem; font-size: var(--fs-small); color: var(--muted); }
.trust-line li { display: flex; align-items: center; gap: .4rem; }
.trust-line li::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--accent-dark); }
.hero-photo { position: relative; justify-self: center; width: 100%; max-width: 400px; }
.hero-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: center top; border-radius: 20px; background: #E2E8F0; }
.name-tag {
    position: absolute; left: -16px; bottom: 28px; background: var(--white); border-radius: var(--radius);
    padding: .85rem 1.1rem; box-shadow: var(--shadow); line-height: 1.35;
}
.name-tag strong { display: block; color: var(--navy); font-size: 1.1rem; }
.name-tag span { color: var(--muted); font-size: var(--fs-small); }

/* ---------- 고민별 바로가기 ---------- */
.worry-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: var(--sp-2); }
.worry-card {
    display: flex; flex-direction: column; justify-content: space-between; gap: var(--sp-3);
    min-height: 170px; padding: var(--sp-3); background: var(--white); border: 1.5px solid var(--line); border-radius: var(--radius);
    text-decoration: none; color: var(--navy); font-weight: 800; font-size: 1.15rem; line-height: 1.4;
    transition: border-color .2s, transform .2s, box-shadow .2s;
}
.worry-card:hover { border-color: var(--green); transform: translateY(-3px); box-shadow: var(--shadow); }
.worry-card .go { font-size: var(--fs-small); color: var(--green); font-weight: 700; }

/* ---------- 이야기 카드 ---------- */
.story-card { background: var(--white); border-radius: var(--radius); padding: var(--sp-4); border-top: 4px solid var(--accent); }
.story-card h3 { font-size: var(--fs-h3); margin-bottom: var(--sp-2); }
.story-card p { color: #374151; }

/* ---------- 기업 성장 지도 ---------- */
.growth-map { position: relative; }
.stairs { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; align-items: end; margin-bottom: var(--sp-3); }
.stair {
    position: relative; display: flex; flex-direction: column; justify-content: flex-start; text-align: left;
    background: var(--white); border: 1.5px solid var(--line); border-radius: var(--radius); padding: .9rem .8rem;
    color: var(--navy); cursor: pointer; transition: background .2s, border-color .2s, color .2s;
}
.stair .s-no { font-size: .85rem; font-weight: 800; color: var(--green); }
.stair .s-name { font-size: 1.05rem; font-weight: 800; line-height: 1.3; }
.stair:hover { border-color: var(--green); }
.stair[aria-expanded="true"] { background: var(--navy); border-color: var(--navy); color: var(--white); }
.stair[aria-expanded="true"] .s-no { color: var(--accent); }
.stair:nth-child(1) { height: 90px; } .stair:nth-child(2) { height: 120px; } .stair:nth-child(3) { height: 150px; }
.stair:nth-child(4) { height: 180px; } .stair:nth-child(5) { height: 210px; } .stair:nth-child(6) { height: 240px; } .stair:nth-child(7) { height: 270px; }
.stage-panel { background: var(--white); border-radius: var(--radius); padding: var(--sp-4); box-shadow: var(--shadow); }
.stage-panel h3 { font-size: var(--fs-h3); margin-bottom: var(--sp-3); }
.stage-panel-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-3); }
.stage-panel-grid h4 { font-size: var(--fs-small); color: var(--green); margin-bottom: .4rem; font-weight: 800; }
.stage-panel-grid p, .stage-panel-grid li { color: var(--text); }
.stage-panel-grid ul li { margin-bottom: .25rem; }
.map-note { margin-top: var(--sp-3); }
.stage-mobile { display: none; }

/* ---------- 서비스 카드 ---------- */
.service-card { display: flex; flex-direction: column; background: var(--white); border: 1.5px solid var(--line); border-radius: var(--radius); padding: var(--sp-4); }
.service-card .svc-no { font-size: .9rem; font-weight: 800; color: var(--green); margin-bottom: .5rem; }
.service-card h3 { font-size: var(--fs-h3); margin-bottom: .5rem; }
.service-card .svc-for { color: var(--muted); margin-bottom: var(--sp-2); font-size: var(--fs-small); }
.service-card ul { margin-bottom: var(--sp-3); flex: 1; }
.service-card .text-link { margin-top: auto; }

/* ---------- 진행 방식 ---------- */
.process { counter-reset: none; display: grid; grid-template-columns: repeat(5, 1fr); gap: var(--sp-2); }
.process li { background: var(--white); border-radius: var(--radius); padding: var(--sp-3); border: 1px solid var(--line); display: flex; flex-direction: column; }
.process .p-no { font-weight: 900; color: var(--green); font-size: 1.4rem; margin-bottom: .4rem; }
.process h3 { font-size: 1.15rem; margin-bottom: .4rem; }
.process p { color: var(--muted); font-size: var(--fs-small); margin-bottom: var(--sp-2); flex: 1; }
.process .deliverable { background: var(--accent-10); color: var(--navy); border-radius: 8px; padding: .5rem .7rem; font-size: .92rem; font-weight: 700; }

/* ---------- 하지 않는 일 ---------- */
.dont-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: var(--sp-5); align-items: start; }
.dont-foot { margin-top: var(--sp-3); padding-top: var(--sp-3); border-top: 1px solid rgba(255,255,255,.15); color: #DCE6F2; font-weight: 600; }

/* ---------- 대표 소개 ---------- */
.ceo-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: var(--sp-5); align-items: center; }
.ceo-grid img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: center top; border-radius: 20px; background: #E2E8F0; }
.ceo-story p { margin-bottom: var(--sp-2); font-size: 1.1rem; }
.ceo-facts { margin: var(--sp-3) 0; padding: var(--sp-3); background: var(--ivory); border-radius: var(--radius); }
.ceo-facts li { margin-bottom: .35rem; font-size: var(--fs-small); }

/* ---------- 사례 ---------- */
.case-card { background: var(--white); border: 1.5px dashed #CBD5E1; border-radius: var(--radius); padding: var(--sp-4); }
.case-card .case-meta { font-size: var(--fs-small); color: var(--green); font-weight: 800; margin-bottom: var(--sp-2); }
.case-card dl dt { font-size: var(--fs-small); font-weight: 800; color: var(--navy); margin-top: var(--sp-2); }
.case-card dl dd { color: var(--muted); }

/* ---------- 인사이트 / 영상 ---------- */
.video-card { background: var(--white); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.video-frame { position: relative; aspect-ratio: 16 / 9; background: #0F172A; }
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-empty { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; color: #94A3B8; gap: .5rem; text-align: center; padding: 1rem; font-size: var(--fs-small); }
.video-empty i { font-size: 2rem; color: #FF4E45; }
.video-card .v-title { padding: var(--sp-2); font-weight: 700; color: var(--navy); }

/* ---------- 위촉·수료·언론 ---------- */
.cred-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--sp-2); }
.cred-item { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: var(--sp-2); display: flex; flex-direction: column; }
.cred-thumb { border: 0; background: var(--ivory); border-radius: 8px; padding: 0; overflow: hidden; aspect-ratio: 4 / 3; margin-bottom: var(--sp-2); }
.cred-thumb img { width: 100%; height: 100%; object-fit: contain; }
.cred-item .c-type { font-size: .85rem; font-weight: 800; color: var(--green); }
.cred-item h3 { font-size: 1.02rem; margin: .2rem 0 .35rem; }
.cred-item p { font-size: .92rem; color: var(--muted); line-height: 1.55; }
.press-item { justify-content: space-between; text-decoration: none; }
.press-item .press-src { font-weight: 800; color: var(--navy); }
.press-item h3 { font-size: 1.05rem; margin: var(--sp-2) 0; }

/* ---------- 마지막 CTA ---------- */
.final-cta { text-align: center; }
.final-cta h2 { font-size: var(--fs-h2); margin-bottom: var(--sp-2); }
.final-cta p { color: #C3D2E5; margin-bottom: var(--sp-4); }
.final-cta .btn-row { justify-content: center; }

/* ---------- 반응형 ---------- */
@media (max-width: 1024px) {
    .worry-grid { grid-template-columns: repeat(3, 1fr); }
    .process { grid-template-columns: repeat(3, 1fr); }
    .cred-row { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
    .hero { padding: var(--sp-4) 0 var(--sp-5); }
    .hero-grid { grid-template-columns: 1fr; gap: var(--sp-4); }
    .hero-photo { max-width: 300px; justify-self: start; }
    .hero-photo img { aspect-ratio: 1 / 1; }
    .worry-grid { grid-template-columns: 1fr 1fr; }
    .worry-card { min-height: 130px; font-size: 1.05rem; }
    .stairs, .stage-panel { display: none; }
    .stage-mobile { display: block; }
    .stage-mobile details { background: var(--white); border-radius: var(--radius); margin-bottom: 8px; border: 1.5px solid var(--line); }
    .stage-mobile details:nth-child(1) { margin-left: 0; }
    .stage-mobile summary { list-style: none; display: flex; align-items: center; gap: .75rem; padding: 1rem; cursor: pointer; font-weight: 800; color: var(--navy); font-size: 1.1rem; }
    .stage-mobile summary::-webkit-details-marker { display: none; }
    .stage-mobile summary .s-no { width: 34px; height: 34px; border-radius: 50%; background: var(--green-10); color: var(--green-dark); display: flex; align-items: center; justify-content: center; font-size: .95rem; flex-shrink: 0; }
    .stage-mobile summary::after { content: '+'; margin-left: auto; color: var(--green); font-size: 1.4rem; font-weight: 400; }
    .stage-mobile details[open] summary::after { content: '−'; }
    .stage-mobile .sm-body { padding: 0 1rem 1rem; }
    .stage-mobile .sm-body h4 { font-size: .9rem; color: var(--green); margin-top: .75rem; }
    .stage-panel-grid { grid-template-columns: 1fr; }
    .process { grid-template-columns: 1fr; }
    .dont-grid, .ceo-grid { grid-template-columns: 1fr; gap: var(--sp-4); }
    .ceo-grid img { max-width: 320px; }
}
@media (max-width: 560px) {
    .worry-grid { grid-template-columns: 1fr; }
    .worry-card { min-height: auto; flex-direction: row; align-items: center; }
    .cred-row { grid-template-columns: 1fr 1fr; }
    .name-tag { left: 12px; }
}
@media (max-width: 400px) {
    .cred-row { grid-template-columns: 1fr; }
}
