/* =========================================================
   나도티칭코칭 — "따뜻한 동네 선생님" (2026-11-30)
   메인(index)·소개(about) 전용. body.warm 안에서만 적용된다.
   크림 바탕 · 직접 그린 그림 · 말풍선 · 손글씨 메모 · 스티커
   ========================================================= */
body.warm {
  --w-cream: #FFF8EE;
  --w-cream-2: #FCEFD6;
  --w-ink: #2B2622;
  --w-text: #4A433D;
  --w-muted: #85796E;
  --w-mint: #DDF1E8;
  --w-sky: #DCEBFA;
  --w-sun: #F4B942;
  --w-sun-soft: #FFF1C9;
  --w-pink: #FBE3DF;
  --w-line: #2B2622;
  --w-hand: "Gaegu", "Nanum Pen Script", "Pretendard", cursive;
  background: var(--w-cream);
  color: var(--w-text);
}
body.warm main { overflow-x: clip; }
body.warm .site-header { background: rgba(255,248,238,.92) !important; border-bottom: 0 !important; backdrop-filter: blur(10px); }
body.warm .site-header.scrolled { box-shadow: 0 6px 20px rgba(43,38,34,.07); }
body.warm h1, body.warm h2, body.warm h3 { color: var(--w-ink); letter-spacing: -0.035em; }
.w-wrap { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.w-sec { padding: 96px 0; position: relative; }
.w-sec--mint { background: var(--w-mint); }
.w-sec--sun { background: var(--w-sun-soft); }
.w-sec--white { background: #fff; }
.w-wave-top { position: absolute; left: 0; right: 0; top: -1px; height: 40px; width: 100%; display: block; }

/* 손글씨 꼬리표 */
.w-hand { font-family: var(--w-hand); font-weight: 700; }
.w-tag { display: inline-flex; align-items: center; gap: 8px; font-family: var(--w-hand); font-weight: 700; font-size: 22px; color: var(--color-primary); margin-bottom: 10px; }
.w-tag::before { content: ""; width: 26px; height: 3px; border-radius: 3px; background: currentColor; }
.w-title { font-size: clamp(30px, 4vw, 44px); font-weight: 800; line-height: 1.25; margin-bottom: 14px; }
.w-sub { font-size: 17px; color: var(--w-muted); line-height: 1.7; }
.w-head { margin-bottom: 48px; }
.w-head.center { text-align: center; }
.w-head.center .w-tag::before { display: none; }

/* 형광펜 */
.w-mark { background: linear-gradient(transparent 58%, var(--w-sun) 58%, var(--w-sun) 88%, transparent 88%); padding: 0 4px; border-radius: 2px; }
.w-green { color: var(--color-primary); }

/* 단추 */
.w-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 16px 28px; border-radius: 999px; font-weight: 800; font-size: 16px; border: 3px solid var(--w-line); transition: transform .15s, box-shadow .15s; text-decoration: none; }
.w-btn--main { background: var(--color-primary); color: #fff; box-shadow: 4px 4px 0 var(--w-line); }
.w-btn--sub { background: #fff; color: var(--w-ink); box-shadow: 4px 4px 0 var(--w-line); }
.w-btn:hover { transform: translate(-2px,-2px); box-shadow: 6px 6px 0 var(--w-line); }
.w-btn:active { transform: translate(2px,2px); box-shadow: 1px 1px 0 var(--w-line); }

/* ---------- 히어로 ---------- */
.w-hero { padding: 56px 0 90px; position: relative; }
.w-hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center; }
.w-sticker { display: inline-flex; align-items: center; gap: 8px; background: #fff; border: 2.5px solid var(--w-line); border-radius: 999px; padding: 8px 16px 8px 10px; font-weight: 700; font-size: 15px; color: var(--w-ink); box-shadow: 3px 3px 0 var(--w-line); transform: rotate(-2deg); margin-bottom: 26px; }
.w-sticker i { font-style: normal; width: 26px; height: 26px; border-radius: 50%; background: var(--w-sun); display: grid; place-items: center; font-size: 14px; }
.w-hero h1 { font-size: clamp(38px, 5.2vw, 62px); line-height: 1.18; font-weight: 800; margin-bottom: 22px; }
.w-hero .lead { font-size: 18px; line-height: 1.75; color: var(--w-text); margin-bottom: 28px; }
.w-hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }

/* 수업 방식 알약 + 설명 */
.w-modes { margin: 0 0 26px; }
.w-pills { display: inline-flex; background: #fff; border: 2.5px solid var(--w-line); border-radius: 999px; padding: 5px; gap: 4px; }
.w-pills button { border: 0; background: transparent; font: inherit; font-weight: 800; font-size: 15px; color: var(--w-muted); padding: 9px 18px; border-radius: 999px; cursor: pointer; }
.w-pills button[aria-selected="true"] { background: var(--w-ink); color: #fff; }
.w-mode-text { margin-top: 14px; font-size: 16px; color: var(--w-text); min-height: 52px; line-height: 1.6; }
.w-mode-text b { color: var(--w-ink); }

/* 그림 + 말풍선 + 메모 */
.w-art { position: relative; }
.w-art img { width: 100%; height: auto; display: block; }
.w-bubble { position: absolute; background: #fff; border: 3px solid var(--w-line); border-radius: 22px; padding: 10px 18px; font-family: var(--w-hand); font-weight: 700; font-size: 22px; color: var(--w-ink); box-shadow: 3px 3px 0 var(--w-line); white-space: nowrap; }
.w-bubble::after { content: ""; position: absolute; width: 16px; height: 16px; background: #fff; border-right: 3px solid var(--w-line); border-bottom: 3px solid var(--w-line); bottom: -10px; left: 30px; transform: rotate(45deg); }
.w-bubble.b1 { top: 4%; left: 6%; transform: rotate(-3deg); }
.w-bubble.b2 { top: 30%; right: -2%; transform: rotate(3deg); background: var(--w-sun-soft); }
.w-bubble.b2::after { background: var(--w-sun-soft); left: auto; right: 30px; }
.w-note { position: absolute; left: -4%; bottom: 2%; width: 190px; background: #FFF6A8; border: 2.5px solid var(--w-line); border-radius: 6px; padding: 14px 16px 12px; font-family: var(--w-hand); font-size: 20px; line-height: 1.45; color: var(--w-ink); transform: rotate(-4deg); box-shadow: 3px 4px 0 rgba(43,38,34,.85); }
.w-note::before { content: ""; position: absolute; top: -12px; left: 50%; width: 64px; height: 22px; margin-left: -32px; background: rgba(156,195,240,.75); transform: rotate(3deg); }
.w-note b { display: block; font-size: 22px; margin-bottom: 4px; }
.w-note s { color: var(--w-muted); text-decoration-thickness: 2px; }

/* 센터 검색 */
.w-search { margin-top: 30px; background: #fff; border: 2.5px solid var(--w-line); border-radius: 22px; padding: 14px; box-shadow: 4px 4px 0 var(--w-line); position: relative; max-width: 560px; }
.w-search label { display: block; font-weight: 800; font-size: 14px; color: var(--w-ink); margin: 2px 4px 10px; }
.w-search .row { display: flex; gap: 8px; }
.w-search input { flex: 1; min-width: 0; border: 2px solid #E7DCCB; background: var(--w-cream); border-radius: 14px; padding: 13px 14px; font: inherit; font-size: 15px; }
.w-search input:focus { outline: none; border-color: var(--color-primary); background: #fff; }
.w-search button { border: 0; background: var(--w-ink); color: #fff; font: inherit; font-weight: 800; border-radius: 14px; padding: 0 20px; cursor: pointer; }
.w-search .home-results { position: absolute; left: 0; right: 0; top: calc(100% + 8px); z-index: 20; }

/* ---------- 고민 말풍선 ---------- */
.w-worries { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.w-worry { display: flex; flex-direction: column; gap: 16px; }
.w-worry .q { position: relative; background: #fff; border: 3px solid var(--w-line); border-radius: 24px; padding: 22px 22px; font-size: 18px; font-weight: 700; color: var(--w-ink); line-height: 1.5; box-shadow: 4px 4px 0 var(--w-line); }
.w-worry .q::after { content: ""; position: absolute; left: 34px; bottom: -11px; width: 18px; height: 18px; background: #fff; border-right: 3px solid var(--w-line); border-bottom: 3px solid var(--w-line); transform: rotate(45deg); }
.w-worry .q small { display: block; font-family: var(--w-hand); font-size: 18px; font-weight: 700; color: var(--w-muted); margin-bottom: 6px; }
.w-worry .a { margin-top: 10px; padding-left: 22px; font-size: 16px; line-height: 1.65; color: var(--w-text); }
.w-worry .a b { display: block; font-size: 17px; color: var(--color-primary); margin-bottom: 4px; }

/* ---------- 티칭 + 코칭 ---------- */
.w-tc { display: grid; grid-template-columns: 1fr auto 1fr; gap: 22px; align-items: stretch; }
.w-tc .plus { align-self: center; width: 56px; height: 56px; border-radius: 50%; background: var(--w-sun); border: 3px solid var(--w-line); display: grid; place-items: center; font-size: 30px; font-weight: 800; color: var(--w-ink); }
.w-card { background: #fff; border: 3px solid var(--w-line); border-radius: 26px; padding: 30px; box-shadow: 5px 5px 0 var(--w-line); }
.w-card h3 { font-size: 24px; font-weight: 800; margin-bottom: 6px; }
.w-card .en { font-family: var(--w-hand); font-weight: 700; font-size: 20px; color: var(--w-muted); }
.w-card p { font-size: 16px; line-height: 1.7; margin-top: 12px; }
.w-paper { margin-top: 20px; background: repeating-linear-gradient(#fff, #fff 31px, #DCEBFA 31px, #DCEBFA 33px); border: 2px solid #E7DCCB; border-radius: 12px; padding: 6px 18px; font-family: var(--w-hand); font-size: 21px; line-height: 33px; color: var(--w-ink); }
.w-paper .red { color: #D9534F; }
.w-check { margin-top: 20px; display: grid; gap: 10px; }
.w-check div { display: flex; align-items: center; gap: 12px; background: var(--w-cream); border-radius: 12px; padding: 10px 14px; font-family: var(--w-hand); font-size: 21px; color: var(--w-ink); }
.w-check i { flex: none; width: 24px; height: 24px; border: 2.5px solid var(--w-line); border-radius: 7px; background: #fff; display: grid; place-items: center; font-style: normal; font-size: 16px; font-weight: 800; color: var(--color-primary); }
.w-check .done span { text-decoration: line-through; text-decoration-color: var(--color-primary); text-decoration-thickness: 2px; color: var(--w-muted); }

/* ---------- 수업 방식 3 ---------- */
.w-ways { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.w-way { background: #fff; border: 3px solid var(--w-line); border-radius: 28px; padding: 28px; box-shadow: 5px 5px 0 var(--w-line); display: flex; flex-direction: column; }
.w-way .ico { width: 84px; height: 84px; border-radius: 24px; border: 3px solid var(--w-line); display: grid; place-items: center; margin-bottom: 18px; }
.w-way .ico svg { width: 50px; height: 50px; }
.w-way:nth-child(1) .ico { background: var(--w-mint); }
.w-way:nth-child(2) .ico { background: var(--w-sun-soft); }
.w-way:nth-child(3) .ico { background: var(--w-sky); }
.w-way h3 { font-size: 23px; font-weight: 800; margin-bottom: 10px; }
.w-way p { font-size: 16px; line-height: 1.7; flex: 1; }
.w-way .go { margin-top: 18px; font-weight: 800; color: var(--color-primary); text-decoration: none; }
.w-way .go:hover { text-decoration: underline; }
.w-way .fit { margin-top: 14px; font-family: var(--w-hand); font-size: 19px; color: var(--w-muted); }

/* ---------- 시작 4단계 (점선 길) ---------- */
.w-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; position: relative; counter-reset: st; }
.w-steps::before { content: ""; position: absolute; left: 8%; right: 8%; top: 34px; border-top: 3px dashed var(--w-line); opacity: .35; }
.w-step { position: relative; text-align: center; padding: 0 6px; }
.w-step .n { width: 68px; height: 68px; margin: 0 auto 18px; border-radius: 50%; background: #fff; border: 3px solid var(--w-line); display: grid; place-items: center; font-size: 26px; font-weight: 800; color: var(--w-ink); box-shadow: 3px 3px 0 var(--w-line); position: relative; z-index: 1; }
.w-step:nth-child(1) .n { background: var(--w-mint); }
.w-step:nth-child(2) .n { background: var(--w-sun-soft); }
.w-step:nth-child(3) .n { background: var(--w-sky); }
.w-step:nth-child(4) .n { background: var(--w-pink); }
.w-step h3 { font-size: 19px; font-weight: 800; margin-bottom: 8px; }
.w-step p { font-size: 15px; line-height: 1.6; color: var(--w-text); }

/* ---------- 학년 메모지 ---------- */
.w-notes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; padding-top: 10px; }
.w-memo { position: relative; border: 3px solid var(--w-line); border-radius: 8px; padding: 34px 26px 26px; box-shadow: 4px 5px 0 var(--w-line); }
.w-memo::before { content: ""; position: absolute; top: -13px; left: 50%; width: 76px; height: 24px; margin-left: -38px; background: rgba(255,255,255,.75); border: 2px solid rgba(43,38,34,.15); }
.w-memo:nth-child(1) { background: #FFF6A8; transform: rotate(-1.5deg); }
.w-memo:nth-child(2) { background: #D9F2E5; transform: rotate(1deg); }
.w-memo:nth-child(3) { background: #DCEBFA; transform: rotate(-.8deg); }
.w-memo h3 { font-family: var(--w-hand); font-size: 34px; font-weight: 700; margin-bottom: 10px; }
.w-memo p { font-size: 16px; line-height: 1.7; color: var(--w-ink); }
.w-memo ul { margin-top: 12px; padding-left: 0; list-style: none; display: grid; gap: 6px; }
.w-memo li { font-family: var(--w-hand); font-size: 20px; color: var(--w-ink); }
.w-memo li::before { content: "✓ "; color: var(--color-primary); font-weight: 800; }

/* ---------- 선생님 찾기 ---------- */
.w-find { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.w-find .w-search { max-width: none; }
.w-find .chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.w-find .chips a { background: #fff; border: 2px solid var(--w-line); border-radius: 999px; padding: 8px 14px; font-weight: 700; font-size: 14px; color: var(--w-ink); text-decoration: none; }
.w-find .chips a:hover { background: var(--w-ink); color: #fff; }

/* ---------- 상담 ---------- */
.w-cta { background: var(--color-primary); color: #fff; border: 3px solid var(--w-line); border-radius: 34px; padding: 56px 48px; box-shadow: 6px 6px 0 var(--w-line); display: grid; grid-template-columns: 1.3fr 1fr; gap: 30px; align-items: center; position: relative; overflow: hidden; }
.w-cta::after { content: ""; position: absolute; right: -60px; top: -60px; width: 220px; height: 220px; border-radius: 50%; background: rgba(255,255,255,.1); }
.w-cta h2 { color: #fff; font-size: clamp(28px, 3.6vw, 40px); font-weight: 800; line-height: 1.3; margin-bottom: 12px; }
.w-cta p { color: rgba(255,255,255,.88); font-size: 17px; line-height: 1.6; }
.w-cta .side { display: grid; gap: 12px; position: relative; z-index: 1; }
.w-cta .tel { display: block; background: #fff; color: var(--w-ink); border: 3px solid var(--w-line); border-radius: 20px; padding: 16px 20px; text-decoration: none; box-shadow: 4px 4px 0 var(--w-line); }
.w-cta .tel small { display: block; font-size: 13px; font-weight: 700; color: var(--w-muted); }
.w-cta .tel b { font-size: 26px; font-weight: 800; letter-spacing: -0.02em; }
.w-cta .w-btn--sub { width: 100%; }

/* ---------- 소개 페이지 ---------- */
.w-name { background: #fff; border: 3px solid var(--w-line); border-radius: 30px; padding: 40px; box-shadow: 5px 5px 0 var(--w-line); display: grid; grid-template-columns: auto 1fr; gap: 36px; align-items: center; }
.w-name .big { font-size: clamp(44px, 6vw, 72px); font-weight: 800; line-height: 1.05; color: var(--w-ink); letter-spacing: -0.05em; }
.w-name .big span { display: block; }
.w-name .big .g { color: var(--color-primary); }
.w-name dl { display: grid; gap: 16px; }
.w-name dt { font-family: var(--w-hand); font-weight: 700; font-size: 24px; color: var(--color-primary); }
.w-name dd { font-size: 16px; line-height: 1.7; margin: 2px 0 0; }
.w-promise { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.w-promise > div { display: flex; gap: 16px; background: #fff; border: 3px solid var(--w-line); border-radius: 22px; padding: 22px; box-shadow: 4px 4px 0 var(--w-line); }
.w-promise .no { flex: none; width: 46px; height: 46px; border-radius: 14px; background: var(--w-sun); border: 3px solid var(--w-line); display: grid; place-items: center; font-weight: 800; font-size: 20px; color: var(--w-ink); }
.w-promise h3 { font-size: 19px; font-weight: 800; margin-bottom: 6px; }
.w-promise p { font-size: 15px; line-height: 1.65; }

/* ---------- 반응형 ---------- */
@media (max-width: 980px) {
  .w-hero-grid, .w-find, .w-cta { grid-template-columns: 1fr; }
  .w-art { max-width: 520px; margin: 10px auto 0; }
  .w-worries, .w-ways, .w-notes { grid-template-columns: 1fr; }
  .w-tc { grid-template-columns: 1fr; }
  .w-tc .plus { justify-self: center; }
  .w-steps { grid-template-columns: repeat(2, 1fr); row-gap: 34px; }
  .w-steps::before { display: none; }
  .w-name { grid-template-columns: 1fr; }
  .w-promise { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .w-sec { padding: 68px 0; }
  .w-hero { padding: 28px 0 60px; }
  .w-hero .lead { font-size: 16px; }
  .w-hero .lead br { display: none; }
  .w-bubble { font-size: 18px; padding: 8px 14px; }
  .w-note { width: 150px; font-size: 17px; left: 0; padding: 12px; }
  .w-note b { font-size: 18px; }
  .w-pills button { padding: 8px 13px; font-size: 14px; }
  .w-cta { padding: 36px 24px; border-radius: 26px; }
  .w-card, .w-way, .w-name { padding: 24px; }
  .w-btn { width: 100%; }
  .w-hero-cta { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) { .w-btn { transition: none; } }

/* 상단 상담 단추도 같은 느낌으로 */
body.warm .header-cta .btn--primary { background: var(--color-primary); border: 3px solid var(--w-line); border-radius: 999px; box-shadow: 3px 3px 0 var(--w-line); }
body.warm .header-cta .btn--primary:hover { transform: translate(-1px,-1px); box-shadow: 4px 4px 0 var(--w-line); }
/* 소개 페이지 첫 화면 */
.w-hero.sm { padding: 40px 0 70px; }
.w-hero.sm h1 { font-size: clamp(34px, 4.6vw, 54px); }
.w-crumb { font-size: 14px; color: var(--w-muted); margin-bottom: 18px; }
.w-crumb a { color: inherit; }
@media (max-width: 640px) {
  .w-art { margin-bottom: 40px; }
  .w-note { width: 128px; font-size: 15px; left: -2%; bottom: -12%; padding: 10px 12px; }
  .w-note b { font-size: 16px; }
  .w-bubble.b1 { top: -4%; left: 0; }
  .w-bubble.b2 { top: 22%; }
}
