/* ==========================================================================
   solution.css — 솔루션 소개 페이지 (/solutions/*)
   ========================================================================== */

:root {
    --sol-navy: #0f2a52;
    --sol-navy-dark: #081a35;
    --sol-blue: #046bd2;
    --sol-blue-light: #4A90E2;
    --sol-line: #e2e8f0;
    --sol-bg-soft: #f6f9fd;
}

/* WiLaw 랜딩 — 인디고/바이올렛 테마 (wilaw-banner.css 색상과 정합) */
body[data-page="solution-wilaw"] {
    --sol-navy: #2d1b69;
    --sol-navy-dark: #1a1a4e;
    --sol-blue: #6366f1;
    --sol-blue-light: #a5b4fc;
    --sol-bg-soft: #f7f6fd;
}
body[data-page="solution-wilaw"] .sol-hero h1 em { color: #a5b4fc; }
body[data-page="solution-wilaw"] .sol-chip i,
body[data-page="solution-wilaw"] .sol-arch-zone h4 { color: #a5b4fc; }
body[data-page="solution-wilaw"] .sol-arch-zone--inner {
    border-color: rgba(165, 180, 252, .6);
    background: rgba(99, 102, 241, .16);
}
body[data-page="solution-wilaw"] .sol-card:hover,
body[data-page="solution-wilaw"] .sol-case:hover { border-color: #cdc9f5; }
body[data-page="solution-wilaw"] .sol-table .sol-td-group { background: #f4f2fd; }
body[data-page="solution-wilaw"] .sol-badge { background: rgba(99, 102, 241, .12); color: #4f46e5; }
body[data-page="solution-wilaw"] .sol-section--dark .sol-badge,
body[data-page="solution-wilaw"] .sol-hero .sol-badge { background: rgba(255, 255, 255, .16); color: #fff; }
body[data-page="solution-wilaw"] code {
    background: rgba(99, 102, 241, .1);
    color: #4f46e5;
    padding: 1px 6px;
    border-radius: 5px;
    font-size: .93em;
}

.sol-section { padding: 84px 0; }
.sol-section--soft { background: var(--sol-bg-soft); }
.sol-section--dark { background: var(--sol-navy); color: #fff; }

.sol-head { text-align: center; max-width: 780px; margin: 0 auto 48px; }
.sol-head--left { text-align: left; margin-left: 0; }
.sol-badge {
    display: inline-block;
    background: rgba(4, 107, 210, .1);
    color: var(--sol-blue);
    padding: 6px 16px;
    border-radius: 999px;
    font-size: .82rem;
    font-weight: 700;
    margin-bottom: 14px;
}
.sol-section--dark .sol-badge { background: rgba(255, 255, 255, .16); color: #fff; }
.sol-head h2 {
    font-size: clamp(1.6rem, 3.2vw, 2.3rem);
    font-weight: 800;
    line-height: 1.35;
    margin: 0 0 12px;
    color: var(--text-dark);
}
.sol-section--dark .sol-head h2 { color: #fff; }
.sol-head p { color: var(--text-light); font-size: 1.03rem; margin: 0; }
.sol-section--dark .sol-head p { color: rgba(255, 255, 255, .82); }

/* ── 히어로 ───────────────────────────────────────── */
.sol-hero {
    background: linear-gradient(135deg, var(--sol-navy) 0%, var(--sol-navy-dark) 100%);
    color: #fff;
    padding: 108px 0 72px;
    position: relative;
    overflow: hidden;
}
.sol-hero::after {
    content: "";
    position: absolute;
    right: -120px;
    top: -120px;
    width: 460px;
    height: 460px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(74, 144, 226, .28), transparent 68%);
}
.sol-hero-inner { position: relative; z-index: 1; max-width: 900px; }
.sol-hero .sol-badge { background: rgba(255, 255, 255, .16); color: #fff; }
.sol-hero h1 {
    font-size: clamp(1.9rem, 4.4vw, 3rem);
    font-weight: 800;
    line-height: 1.3;
    margin: 0 0 16px;
}
.sol-hero h1 em { font-style: normal; color: #7bb8ff; }
.sol-hero-sub {
    font-size: clamp(1rem, 1.9vw, 1.16rem);
    color: rgba(255, 255, 255, .88);
    line-height: 1.75;
    margin: 0 0 28px;
    max-width: 700px;
}
.sol-hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 34px; }
.sol-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 999px;
    font-weight: 700;
    text-decoration: none;
    transition: var(--transition);
    border: 1.5px solid transparent;
}
.sol-btn--primary { background: #fff; color: var(--sol-navy); }
.sol-btn--primary:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(0, 0, 0, .28); }
.sol-btn--ghost { background: rgba(255, 255, 255, .1); color: #fff; border-color: rgba(255, 255, 255, .45); }
.sol-btn--ghost:hover { background: rgba(255, 255, 255, .2); }
.sol-hero-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.sol-chip {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: rgba(255, 255, 255, .1);
    border: 1px solid rgba(255, 255, 255, .2);
    padding: 8px 15px;
    border-radius: 999px;
    font-size: .87rem;
    color: rgba(255, 255, 255, .94);
}
.sol-chip i { color: #7bb8ff; }

/* ── 지표 바 ──────────────────────────────────────── */
.sol-metrics { background: #fff; border-bottom: 1px solid var(--sol-line); padding: 44px 0; }
.sol-metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 22px;
    text-align: center;
}
.sol-metric-num {
    font-size: clamp(1.7rem, 3.4vw, 2.4rem);
    font-weight: 800;
    color: var(--sol-blue);
    line-height: 1.2;
}
.sol-metric-label { color: var(--text-light); font-size: .92rem; margin-top: 4px; }

/* ── 카드 그리드 ──────────────────────────────────── */
.sol-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(288px, 1fr));
    gap: 22px;
}
.sol-card {
    background: #fff;
    border: 1px solid var(--sol-line);
    border-radius: 16px;
    padding: 28px 26px;
    transition: var(--transition);
}
.sol-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: #c9dcf5; }
.sol-card-icon {
    width: 48px;
    height: 48px;
    border-radius: 13px;
    background: var(--gradient-primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    margin-bottom: 16px;
}
.sol-card h3 { font-size: 1.1rem; font-weight: 700; margin: 0 0 9px; color: var(--text-dark); }
.sol-card p { color: var(--text-light); font-size: .95rem; line-height: 1.72; margin: 0; }
.sol-card strong { color: var(--sol-blue); font-weight: 700; }

/* ── 구성도 ───────────────────────────────────────── */
.sol-arch {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 18px;
    align-items: stretch;
}
.sol-arch-zone {
    border: 1.5px dashed rgba(255, 255, 255, .3);
    border-radius: 16px;
    padding: 22px 20px;
    background: rgba(255, 255, 255, .05);
}
.sol-arch-zone h4 {
    font-size: .95rem;
    font-weight: 700;
    color: #7bb8ff;
    margin: 0 0 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.sol-arch-zone--inner { border-style: solid; border-color: rgba(123, 184, 255, .55); background: rgba(74, 144, 226, .12); }
.sol-arch-item {
    background: rgba(255, 255, 255, .1);
    border-radius: 9px;
    padding: 10px 14px;
    font-size: .89rem;
    color: rgba(255, 255, 255, .93);
    margin-bottom: 8px;
}
.sol-arch-item:last-child { margin-bottom: 0; }
.sol-arch-note {
    margin-top: 22px;
    font-size: .9rem;
    color: rgba(255, 255, 255, .72);
    text-align: center;
}

/* ── 표 ───────────────────────────────────────────── */
.sol-table-wrap {
    overflow-x: auto;
    border: 1px solid var(--sol-line);
    border-radius: 14px;
    background: #fff;
    -webkit-overflow-scrolling: touch;
}
.sol-table { width: 100%; border-collapse: collapse; min-width: 640px; }
.sol-table th,
.sol-table td {
    padding: 14px 18px;
    text-align: left;
    border-bottom: 1px solid var(--sol-line);
    font-size: .94rem;
    line-height: 1.7;
    vertical-align: top;
}
.sol-table thead th {
    background: var(--sol-navy);
    color: #fff;
    font-weight: 700;
    font-size: .9rem;
    white-space: nowrap;
}
.sol-table tbody tr:last-child td { border-bottom: none; }
.sol-table tbody tr:hover { background: #f8fbff; }
.sol-table .sol-td-group {
    font-weight: 700;
    color: var(--sol-navy);
    background: #f4f8fd;
    white-space: nowrap;
}
.sol-table .sol-td-name { font-weight: 600; color: var(--text-dark); white-space: nowrap; }
.sol-table td small { color: var(--text-light); }

.sol-tag {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: .76rem;
    font-weight: 700;
    margin-left: 6px;
    vertical-align: middle;
}
.sol-tag--base { background: #e6f0fb; color: var(--sol-blue); }
.sol-tag--option { background: #fff3e0; color: #d97706; }

.sol-note {
    margin-top: 16px;
    font-size: .89rem;
    color: var(--text-light);
    line-height: 1.75;
    padding-left: 4px;
}
.sol-note i { color: var(--sol-blue-light); margin-right: 6px; }

/* ── 도입 형태 비교 ───────────────────────────────── */
.sol-deploy-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 22px;
}
.sol-deploy-card {
    background: #fff;
    border: 1px solid var(--sol-line);
    border-radius: 16px;
    padding: 30px 26px;
    position: relative;
}
.sol-deploy-card--best { border: 2px solid var(--sol-blue); box-shadow: 0 12px 30px rgba(4, 107, 210, .12); }
.sol-deploy-flag {
    position: absolute;
    top: -13px;
    left: 26px;
    background: var(--gradient-primary);
    color: #fff;
    padding: 5px 15px;
    border-radius: 999px;
    font-size: .78rem;
    font-weight: 700;
}
.sol-deploy-card h3 { font-size: 1.15rem; font-weight: 800; margin: 6px 0 6px; color: var(--sol-navy); }
.sol-deploy-card > p { color: var(--text-light); font-size: .93rem; margin: 0 0 18px; }
.sol-deploy-list { list-style: none; padding: 0; margin: 0; }
.sol-deploy-list li {
    display: flex;
    gap: 10px;
    font-size: .93rem;
    color: var(--text-dark);
    padding: 7px 0;
    line-height: 1.65;
}
.sol-deploy-list li i { color: var(--success); margin-top: 5px; flex-shrink: 0; }
.sol-deploy-list li.is-off { color: var(--text-light); }
.sol-deploy-list li.is-off i { color: #cbd5e1; }

/* ── 구축 절차 ────────────────────────────────────── */
.sol-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 18px; }
.sol-step {
    background: #fff;
    border: 1px solid var(--sol-line);
    border-radius: 14px;
    padding: 24px 20px;
    position: relative;
}
.sol-step-no {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--gradient-primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: .9rem;
    margin-bottom: 13px;
}
.sol-step h4 { font-size: 1rem; margin: 0 0 7px; color: var(--text-dark); }
.sol-step p { font-size: .89rem; color: var(--text-light); margin: 0; line-height: 1.7; }
.sol-step-dur {
    display: inline-block;
    margin-top: 10px;
    font-size: .8rem;
    color: var(--sol-blue);
    font-weight: 700;
}

/* ── 사례 카드 ────────────────────────────────────── */
.sol-case-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 20px; }
.sol-case {
    display: block;
    background: #fff;
    border: 1px solid var(--sol-line);
    border-radius: 14px;
    padding: 24px 22px;
    text-decoration: none;
    transition: var(--transition);
}
.sol-case:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: #c9dcf5; }
.sol-case-org { font-size: .8rem; font-weight: 700; color: var(--sol-blue); letter-spacing: .02em; }
.sol-case h3 { font-size: 1.05rem; margin: 6px 0 8px; color: var(--text-dark); }
.sol-case p { font-size: .92rem; color: var(--text-light); margin: 0 0 12px; line-height: 1.7; }
.sol-case-more { font-size: .87rem; font-weight: 700; color: var(--sol-blue); }

/* ── FAQ ──────────────────────────────────────────── */
.sol-faq { max-width: 860px; margin: 0 auto; }
.sol-faq-item {
    background: #fff;
    border: 1px solid var(--sol-line);
    border-radius: 13px;
    margin-bottom: 12px;
    overflow: hidden;
}
.sol-faq-q {
    padding: 20px 24px;
    font-weight: 700;
    color: var(--text-dark);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    font-size: 1rem;
    list-style: none;
}
.sol-faq-q::-webkit-details-marker { display: none; }
.sol-faq-q::after {
    content: "\f078";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    color: var(--sol-blue);
    font-size: .85rem;
    transition: var(--transition);
    flex-shrink: 0;
}
.sol-faq-item[open] .sol-faq-q::after { transform: rotate(180deg); }
.sol-faq-a {
    padding: 0 24px 22px;
    color: var(--text-light);
    line-height: 1.85;
    font-size: .95rem;
}

/* ── 문의 CTA ─────────────────────────────────────── */
.sol-cta {
    background: linear-gradient(135deg, var(--sol-navy) 0%, var(--sol-blue) 130%);
    color: #fff;
    padding: 74px 0;
    text-align: center;
}
.sol-cta h2 { font-size: clamp(1.5rem, 3.2vw, 2.2rem); font-weight: 800; margin: 0 0 12px; }
.sol-cta p { color: rgba(255, 255, 255, .88); margin: 0 0 28px; font-size: 1.02rem; line-height: 1.75; }
.sol-cta-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ── 반응형 ───────────────────────────────────────── */
@media (max-width: 768px) {
    .sol-section { padding: 60px 0; }
    .sol-hero { padding: 92px 0 56px; }
    .sol-hero-actions .sol-btn { flex: 1 1 100%; justify-content: center; }
    .sol-table th, .sol-table td { padding: 12px 14px; font-size: .89rem; }
}
