/* 솔루션 (v2, 2026-10-28) — pages/solution.php · solutions.php(첫 화면). 공통 틀(sub.css) 위에 얹는 것만. 이름은 sl- */

/* ── 소개 + 이럴 때 필요합니다 ── */
.sl-intro { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 4.5vw, 72px); align-items: center; }
.sl-intro-copy h2 { font-size: clamp(30px, 3vw, 44px); line-height: 1.22; letter-spacing: -0.03em; font-weight: 700; }
.sl-intro-copy p { margin-top: 20px !important; font-size: 17px; line-height: 1.8; color: var(--wm2-ink2); }
.sl-feats-t { margin-bottom: 14px !important; font-size: 15px; font-weight: 700; color: var(--wm2-blue); }
.sl-feats .wm2-card { padding: 22px 24px; background: var(--wm2-light); border-color: transparent; }
.sl-feats .wm2-card h3 { position: relative; padding-left: 16px; font-size: 18px; }
.sl-feats .wm2-card h3::before { content: ''; position: absolute; left: 0; top: 50%; width: 6px; height: 6px; margin-top: -3px; border-radius: 50%; background: var(--wm2-blue); }
.sl-feats .wm2-card p { font-size: 15px; }

/* ── 구성 ── */
.sl-cf-card { display: flex; flex-direction: column; padding: 12px 12px 26px; }
.sl-cf-img { position: relative; height: clamp(150px, 24vh, 260px); margin-bottom: 20px; border-radius: 12px; background: #E9EEF2; overflow: hidden; }
.sl-cf-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .5s var(--wm2-ease); }
.sl-cf-img img[hidden] { display: block; opacity: 0; }
/* 기기 화면 갈무리: 자르지 않고 짙은 베젤 안에 전체를 */
.sl-cf-img.is-device { background: linear-gradient(160deg, #EEF1F4, #E1E6EB); }   /* 왼쪽 제품 사진 바탕과 같은 밝은 회색 */
.sl-cf-img.is-device img { inset: auto; left: 50%; top: 50%; width: auto; height: 78%; max-width: 86%; aspect-ratio: 5 / 3; transform: translate(-50%, -50%); object-fit: cover; border-radius: 6px; box-shadow: 0 0 0 9px #1B2128, 0 0 0 10px #9AA4AE, 0 28px 40px -18px rgba(20, 32, 43, .45); }
.sl-dots { position: absolute; right: 12px; bottom: 12px; display: flex; gap: 6px; padding: 6px 8px; border-radius: 99px; background: rgba(14, 21, 28, .45); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.sl-dots button { all: unset; cursor: pointer; width: 7px; height: 7px; border-radius: 50%; background: rgba(255, 255, 255, .5); transition: background-color .2s, transform .2s; }
.sl-dots button.on { background: #fff; transform: scale(1.25); }
.sl-cf-k, .sl-cf-card > p, .sl-check, .sl-more { margin-left: 14px !important; margin-right: 14px !important; }
.sl-cf-k { font-size: 19px; font-weight: 700; letter-spacing: -0.02em; color: var(--wm2-ink); }
.sl-cf-card > p { margin-top: 8px !important; font-size: 15px; line-height: 1.7; color: var(--wm2-ink2); }
.sl-check { display: grid; gap: 7px; margin-top: 14px !important; }
.sl-check li { position: relative; padding-left: 26px; font-size: 14.5px; font-weight: 600; line-height: 1.5; color: var(--wm2-ink); }
.sl-check li::before { content: ''; position: absolute; left: 0; top: 2px; width: 17px; height: 17px; border-radius: 50%; background: #EAF2FA
  url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 6.2l2.3 2.3 4.7-5' fill='none' stroke='%232370B4' stroke-width='1.7'/%3E%3C/svg%3E") center / 10px no-repeat; }
.sl-more { display: inline-flex; align-items: center; gap: 8px; margin-top: 16px !important; font-size: 15px; font-weight: 650; color: var(--wm2-blue) !important; }

/* ── 적용 현장(짙은 바탕, 사진 카드) ── */
.sl-use-img { display: block; aspect-ratio: 4 / 3; margin-bottom: 18px; border-radius: 14px; background: rgba(255, 255, 255, .06); overflow: hidden; }
.sl-use-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--wm2-ease); }
.sl-use:hover .sl-use-img img { transform: scale(1.04); }
.sl-use h3 { font-size: 19px; font-weight: 700; letter-spacing: -0.02em; color: #fff; }
.sl-use p { margin-top: 6px !important; font-size: 15px; line-height: 1.65; color: var(--wm2-ink-d2); }

/* ── 요점·사양(사진 + 글) ── */
.sl-pt { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: clamp(32px, 4.5vw, 72px); align-items: center; }
.sl-pt-img { border-radius: var(--wm2-r); overflow: hidden; background: #E9EEF2; }
.sl-pt-img img { display: block; width: 100%; height: auto; }
.sl-pt-t { font-size: clamp(28px, 2.8vw, 40px); line-height: 1.25; letter-spacing: -0.03em; font-weight: 700; }
.sl-pt-lead { margin-top: 14px !important; font-size: 16.5px; line-height: 1.75; color: var(--wm2-ink2); }
.sl-pt-list { display: grid; gap: 10px; margin-top: 22px !important; }
.sl-pt-list li { padding: 14px 18px; border-radius: 12px; background: var(--wm2-light); }
.is-light .sl-pt-list li { background: #fff; }
.sl-pt-list b { display: block; font-size: 16.5px; font-weight: 700; }
.sl-pt-list span { display: block; margin-top: 3px; font-size: 14.5px; line-height: 1.6; color: var(--wm2-ink2); }
.sl-note { margin-top: 14px !important; font-size: 13.5px; line-height: 1.6; color: var(--wm2-ink3); }
.sl-spec { margin-top: 18px !important; border-top: 2px solid var(--wm2-ink); }
.sl-spec > div { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 16px; padding: 11px 2px; border-bottom: 1px solid var(--wm2-line); font-size: 15px; }
.sl-spec dt { font-weight: 600; color: var(--wm2-ink3); }

/* ── 지역별 체감온도 ── */
.sl-heat-in { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 20px; align-items: stretch; }
.sl-heat-regions { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; align-content: start; }
.sl-heat-regions button { all: unset; box-sizing: border-box; cursor: pointer; display: flex; align-items: center; justify-content: center; height: 54px; border-radius: 12px; background: var(--wm2-light); font-size: 16px; font-weight: 650; color: var(--wm2-ink); transition: background-color .2s, color .2s, transform .2s; -webkit-user-select: none; user-select: none; }
.sl-heat-regions button:hover { background: #E3EBF2; }
.sl-heat-regions button.on { background: var(--wm2-blue); color: #fff; }
.sl-heat-regions button:focus-visible { outline: 2px solid var(--wm2-acc); outline-offset: 2px; }
.sl-heat-regions button[disabled] { opacity: .55; cursor: progress; }
.sl-heat-out { display: flex; flex-direction: column; padding: 26px 28px; background: linear-gradient(160deg, #1D5D96, #2370B4); border: 0; color: #fff; }
.sl-heat-where { font-size: 15px; font-weight: 650; color: rgba(255, 255, 255, .82); }
.sl-heat-val { display: block; margin-top: 6px; font-size: clamp(56px, 5vw, 76px); font-weight: 700; letter-spacing: -0.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.sl-heat-val small { margin-left: 4px; font-size: 26px; font-weight: 600; }
.sl-heat-meta { display: grid; gap: 6px; margin-top: 22px !important; padding-top: 16px; border-top: 1px solid rgba(255, 255, 255, .22); }
.sl-heat-meta > div { display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 10px; font-size: 14px; }
.sl-heat-meta dt { color: rgba(255, 255, 255, .7); }
.sl-heat-meta dd { color: #fff; }
.sl-heat-msg { margin-top: auto !important; padding-top: 14px; font-size: 13px; color: rgba(255, 255, 255, .72); }
.sl-heat-out.is-busy .sl-heat-val { opacity: .4; }

/* ── 더 알아보기 ── */
.sl-go .wm2-card { height: 100%; }
.sl-others { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 28px; }
.sl-others span { margin-right: 6px; font-size: 14.5px; font-weight: 700; color: var(--wm2-ink2); }
.sl-others a { padding: 8px 14px; border-radius: 99px; background: #fff; border: 1px solid var(--wm2-line); font-size: 14.5px; font-weight: 600; color: var(--wm2-ink) !important; transition: border-color .2s, color .2s; }
.sl-others a:hover { border-color: var(--wm2-blue); color: var(--wm2-blue) !important; }
.sl-ask-note { margin-top: 18px !important; font-size: 14px !important; color: rgba(255, 255, 255, .72) !important; }

/* ── 솔루션 첫 화면: 솔루션 카드 ── */
.sl-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.sl-item { position: relative; display: flex; flex-direction: column; justify-content: flex-end; min-height: clamp(150px, 19vh, 220px); padding: 22px 24px; border-radius: var(--wm2-r); overflow: hidden; color: #fff !important; isolation: isolate; }
.sl-item img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--wm2-ease); }
.sl-item::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(14, 21, 28, .88) 0%, rgba(14, 21, 28, .45) 55%, rgba(14, 21, 28, .15) 100%); transition: background-color .4s; }
.sl-item:hover img { transform: scale(1.05); }
.sl-item b { font-size: 19px; font-weight: 700; letter-spacing: -0.02em; }
.sl-item span { margin-top: 4px; font-size: 14px; line-height: 1.5; color: rgba(255, 255, 255, .82); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.sl-item .wm2-ar { position: absolute; right: 22px; top: 22px; color: #fff; }
.sl-flow > li { position: relative; display: flex; flex-direction: column; padding: 28px 26px; }
.sl-flow > li:not(:last-child)::after { content: ''; position: absolute; z-index: 2; right: -22px; top: 50%; width: 28px; height: 28px; margin-top: -14px; border-radius: 50%; background: var(--wm2-blue)
  url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 10'%3E%3Cpath d='M0 5h14M10 1l4 4-4 4' fill='none' stroke='white' stroke-width='1.8'/%3E%3C/svg%3E") center / 13px 9px no-repeat; box-shadow: 0 6px 14px -6px rgba(35, 112, 180, .7); }
.sl-flow-ic { display: flex; align-items: center; justify-content: center; width: 48px; height: 48px; margin-bottom: 18px; border-radius: 14px; background: rgba(79, 163, 227, .16); color: #8CC6F2; }
.sl-flow-ic svg { width: 24px; height: 24px; }

/* ── 한 장씩: 장 높이에 맞추기 ── */
html.m-page .sl-cf-img { height: clamp(110px, calc(100vh - 620px), 260px); }
html.m-page .sl-use-img { aspect-ratio: auto; height: clamp(120px, calc(100vh - 470px), 300px); }
html.m-page .sl-pt-img img { max-height: calc(100vh - 220px - var(--wm2-st)); width: 100%; object-fit: cover; }
html.m-page .sl-feats .wm2-card { padding: clamp(14px, 2vh, 22px) 22px; }

@media (max-width: 1080px) {
  .sl-intro, .sl-pt { grid-template-columns: minmax(0, 1fr); }
  .sl-heat-in { grid-template-columns: minmax(0, 1fr); }
  .sl-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sl-flow > li:not(:last-child)::after { display: none; }
}
@media (max-width: 760px) {
  .sl-feats .wm2-grid.c2, .sl-cf.c2 { grid-template-columns: minmax(0, 1fr); }
  .sl-heat-regions { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .sl-heat-regions button { height: 46px; font-size: 15px; }
  .sl-list { grid-template-columns: minmax(0, 1fr); }
  .sl-spec > div { grid-template-columns: 96px minmax(0, 1fr); }
}
.sl-sim { display: block; padding: 34px 36px; background: linear-gradient(120deg, #1A2430, #24384F); border: 0; color: #fff !important; }
.sl-sim h2 { font-size: clamp(24px, 2.2vw, 30px); font-weight: 700; letter-spacing: -0.02em; color: #fff; }
.sl-sim p { margin-top: 8px !important; color: var(--wm2-ink-d2) !important; }
.sl-sim > .wm2-ar { top: 38px; right: 34px; color: #8CC6F2; }
