/* =========================================================================
   청년뚝딱케어 — 디자인 시스템 (모바일 우선, 경량)
   ========================================================================= */
:root {
  --navy: #0b2a4a;
  --blue: #1a5fb4;
  --blue-600: #1652a0;
  --blue-50: #eaf2fb;
  --teal: #14b8a6;
  --teal-50: #e6f7f4;
  --accent: #ff6b35;       /* 긴급/CTA 강조 */
  --ink: #1c2530;
  --gray: #5b6675;
  --line: #e3e8ef;
  --bg: #ffffff;
  --bg-soft: #f6f8fb;
  --ok: #16a34a;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 6px 24px rgba(11, 42, 74, 0.08);
  --shadow-lg: 0 14px 40px rgba(11, 42, 74, 0.14);
  --wrap: 1120px;
  --font: "Pretendard", "Apple SD Gothic Neo", "Malgun Gothic", "Nanum Gothic",
    system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.7;
  font-size: 16px;
  word-break: keep-all;
  overflow-wrap: anywhere;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { line-height: 1.35; color: var(--navy); font-weight: 800; }
h2 { font-size: 1.5rem; margin: 2.2rem 0 1rem; }
h3 { font-size: 1.18rem; margin: 1.6rem 0 .6rem; }
p { margin: 0 0 1rem; }
ul, ol { margin: 0 0 1rem; padding-left: 1.2rem; }
li { margin: .3rem 0; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 18px; }
.muted { color: var(--gray); }
.center { text-align: center; }

/* ---- 상단 긴급바 ---- */
.topbar {
  background: var(--navy); color: #fff; font-size: .86rem;
  padding: 6px 0; text-align: center;
}
.topbar a { color: #ffd9c7; font-weight: 700; }

/* ---- 헤더 ---- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.96); backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-row { display: flex; align-items: center; gap: 14px; height: 64px; }
.logo { display: flex; align-items: center; gap: 9px; font-weight: 900; font-size: 1.18rem; color: var(--navy); }
.logo:hover { text-decoration: none; }
.logo .mark {
  width: 34px; height: 34px; border-radius: 9px;
  background: linear-gradient(135deg, var(--blue), var(--teal));
  color: #fff; display: grid; place-items: center; font-size: 1rem; font-weight: 900;
}
.logo .sub { font-size: .68rem; font-weight: 600; color: var(--gray); display: block; line-height: 1; margin-top: 2px; }
.nav { margin-left: auto; display: flex; gap: 4px; align-items: center; }
.nav a { color: var(--ink); font-weight: 600; padding: 8px 11px; border-radius: 8px; font-size: .95rem; }
.nav a:hover { background: var(--blue-50); text-decoration: none; }
.header-cta {
  background: var(--accent); color: #fff !important; font-weight: 800;
  padding: 9px 15px !important; border-radius: 999px;
}
.header-cta:hover { background: #e85a26; text-decoration: none; }
.nav-toggle { display: none; }

@media (max-width: 900px) {
  .nav { display: none; position: absolute; top: 64px; left: 0; right: 0;
    background: #fff; flex-direction: column; padding: 10px; gap: 2px;
    border-bottom: 1px solid var(--line); box-shadow: var(--shadow); }
  .nav a { width: 100%; padding: 12px; }
  #nav-check:checked ~ .nav { display: flex; }
  .nav-toggle { display: grid; place-items: center; margin-left: auto; width: 42px; height: 42px;
    border: 1px solid var(--line); border-radius: 9px; cursor: pointer; font-size: 1.3rem; }
  .header-cta { margin-left: 0; }
}

/* ---- 히어로 ---- */
.hero {
  background:
    radial-gradient(1100px 400px at 80% -10%, rgba(20,184,166,.18), transparent),
    linear-gradient(160deg, var(--navy), var(--blue));
  color: #fff; padding: 56px 0 64px;
}
.hero h1 { color: #fff; font-size: clamp(1.7rem, 4.6vw, 2.7rem); margin: 0 0 14px; }
.hero p.lead { font-size: 1.08rem; color: #dbe7f6; max-width: 720px; margin: 0 auto 22px; }
.hero.center .badges { justify-content: center; }
.badges { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0; }
.badge {
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.22);
  color: #fff; padding: 7px 13px; border-radius: 999px; font-size: .85rem; font-weight: 700;
}
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 22px; }
.hero.center .hero-cta { justify-content: center; }

/* ---- 버튼 ---- */
.btn {
  display: inline-flex; align-items: center; gap: 8px; justify-content: center;
  padding: 14px 24px; border-radius: 999px; font-weight: 800; font-size: 1.02rem;
  border: 2px solid transparent; cursor: pointer; transition: transform .05s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-call { background: var(--accent); color: #fff; box-shadow: var(--shadow-lg); }
.btn-call:hover { background: #e85a26; }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.6); }
.btn-blue { background: var(--blue); color: #fff; }
.btn-blue:hover { background: var(--blue-600); }

/* ---- 섹션 ---- */
section { padding: 8px 0; }
.section { padding: 46px 0; }
.section.soft { background: var(--bg-soft); }
.section h2.section-title { text-align: center; font-size: clamp(1.4rem,3.6vw,2rem); margin: 0 0 8px; }
.section .section-sub { text-align: center; color: var(--gray); margin: 0 auto 28px; max-width: 640px; }

/* ---- 카드 그리드 ---- */
.grid { display: grid; gap: 16px; }
.grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
.grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 860px) { .grid.cols-3, .grid.cols-4 { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 540px) { .grid.cols-3, .grid.cols-4, .grid.cols-2 { grid-template-columns: 1fr; } }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px; box-shadow: var(--shadow); transition: transform .08s ease, box-shadow .08s ease;
}
a.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); text-decoration: none; }
.card .ico { font-size: 1.7rem; }
.card h3 { margin: 10px 0 6px; color: var(--navy); }
.card p { margin: 0; color: var(--gray); font-size: .94rem; }
.card .kw { margin-top: 10px; font-size: .8rem; color: var(--blue); font-weight: 700; }

/* 신뢰 포인트 */
.trust { display: grid; grid-template-columns: repeat(3,1fr); gap: 14px; }
@media (max-width: 760px){ .trust { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 460px){ .trust { grid-template-columns: 1fr; } }
.trust .t { background:#fff; border:1px solid var(--line); border-radius:var(--radius); padding:18px; box-shadow:var(--shadow); }
.trust .t .ico { font-size:1.6rem; }
.trust .t b { display:block; color:var(--navy); font-size:1.05rem; margin:8px 0 3px; }
.trust .t span { color:var(--gray); font-size:.9rem; }

/* ---- 본문 article ---- */
.article-head { background: var(--bg-soft); border-bottom: 1px solid var(--line); padding: 30px 0 26px; }
.breadcrumb { font-size: .85rem; color: var(--gray); margin-bottom: 10px; }
.breadcrumb a { color: var(--gray); }
.article-head h1 { font-size: clamp(1.5rem,4vw,2.2rem); margin: 0 0 8px; }
.article-head .kwline { color: var(--blue); font-weight: 700; font-size: .92rem; }
.layout { display: grid; grid-template-columns: 1fr 300px; gap: 36px; padding: 36px 0; }
@media (max-width: 980px){ .layout { grid-template-columns: 1fr; } }
.content { min-width: 0; }
.content .lead-box {
  background: var(--blue-50); border-left: 4px solid var(--blue);
  border-radius: var(--radius-sm); padding: 16px 18px; margin: 0 0 24px; font-size: 1.02rem;
}
.content table { width: 100%; border-collapse: collapse; margin: 1rem 0; font-size: .94rem; }
.content th, .content td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; }
.content th { background: var(--blue-50); color: var(--navy); }
.callout { background: var(--teal-50); border: 1px solid #bdeae3; border-radius: var(--radius-sm); padding: 14px 16px; margin: 1rem 0; }
.callout.warn { background: #fff4ed; border-color: #ffd5bf; }

/* TOC */
.toc { background:#fff; border:1px solid var(--line); border-radius:var(--radius); padding:16px 18px; margin:0 0 22px; }
.toc b { color:var(--navy); }
.toc ol { margin:.5rem 0 0; }
.toc a { color:var(--gray); }

/* 사이드바 */
.sidebar { position: sticky; top: 84px; align-self: start; }
.sidebar .box { background:#fff; border:1px solid var(--line); border-radius:var(--radius); padding:18px; box-shadow:var(--shadow); margin-bottom:16px; }
.sidebar .box h4 { margin:0 0 10px; color:var(--navy); }
.sidebar .callbox { background: linear-gradient(160deg,var(--navy),var(--blue)); color:#fff; text-align:center; }
.sidebar .callbox h4 { color:#fff; }
.sidebar .callbox .num { font-size:1.5rem; font-weight:900; letter-spacing:.5px; }
.sidebar ul.links { list-style:none; padding:0; margin:0; }
.sidebar ul.links li { border-top:1px dashed var(--line); }
.sidebar ul.links li:first-child { border-top:0; }
.sidebar ul.links a { display:block; padding:9px 0; color:var(--ink); font-weight:600; font-size:.94rem; }

/* FAQ */
.faq details { border:1px solid var(--line); border-radius:var(--radius-sm); margin:.6rem 0; background:#fff; }
.faq summary { cursor:pointer; padding:14px 16px; font-weight:700; color:var(--navy); list-style:none; }
.faq summary::-webkit-details-marker { display:none; }
.faq summary::before { content:"Q "; color:var(--blue); font-weight:900; }
.faq details[open] summary { border-bottom:1px solid var(--line); }
.faq .a { padding:14px 16px; color:var(--gray); }

/* 롱테일 지역 키워드 블록 */
.longtail { background: var(--bg-soft); border:1px solid var(--line); border-radius:var(--radius); padding:18px; margin:1.4rem 0; }
.longtail b { color:var(--navy); }
.longtail .terms { font-size:.82rem; color:var(--gray); line-height:1.9; margin-top:8px; }

/* 관련 링크 chips */
.chips { display:flex; flex-wrap:wrap; gap:8px; margin:1rem 0; }
.chips a { background:#fff; border:1px solid var(--line); border-radius:999px; padding:7px 14px; font-size:.88rem; font-weight:600; color:var(--ink); }
.chips a:hover { background:var(--blue-50); border-color:var(--blue); text-decoration:none; }

/* 인라인 CTA 띠 */
.cta-band { background: linear-gradient(160deg,var(--navy),var(--blue)); color:#fff; border-radius:var(--radius); padding:24px; text-align:center; margin:1.6rem 0; }
.cta-band h3 { color:#fff; margin:0 0 6px; }
.cta-band .num { font-size:1.8rem; font-weight:900; }
.cta-band p { color:#dbe7f6; margin:.3rem 0 14px; }

/* 지역 칩 그리드 (홈) */
.region-cloud { display:flex; flex-wrap:wrap; gap:8px; justify-content:center; }
.region-cloud a { background:#fff; border:1px solid var(--line); border-radius:999px; padding:8px 16px; font-weight:700; color:var(--navy); }
.region-cloud a:hover { background:var(--blue); color:#fff; border-color:var(--blue); text-decoration:none; }

/* ---- 푸터 ---- */
.site-footer { background: var(--navy); color: #c4d2e3; padding: 44px 0 90px; font-size: .92rem; }
.site-footer a { color: #c4d2e3; }
.footer-grid { display:grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 28px; }
@media (max-width: 820px){ .footer-grid { grid-template-columns: 1fr; gap:22px; } }
.site-footer h4 { color:#fff; margin:0 0 12px; font-size:1rem; }
.site-footer .cols a { display:block; padding:4px 0; }
.site-footer .nap { line-height:1.9; }
.site-footer .nap b { color:#fff; }
.footer-bottom { border-top:1px solid rgba(255,255,255,.12); margin-top:28px; padding-top:18px; font-size:.84rem; color:#8aa0bb; }

/* ---- 플로팅 콜 버튼 ---- */
.floating-call {
  position: fixed; right: 16px; bottom: 16px; z-index: 60;
  background: var(--accent); color:#fff; font-weight:900;
  padding: 14px 20px; border-radius: 999px; box-shadow: var(--shadow-lg);
  display:flex; align-items:center; gap:8px; font-size:1.02rem;
}
.floating-call:hover { background:#e85a26; text-decoration:none; }
.floating-call .ring { animation: ring 1.6s infinite; }
@keyframes ring { 0%,100%{ transform: rotate(0) } 10%,30%{ transform: rotate(-12deg) } 20%,40%{ transform: rotate(12deg) } }

/* 접근성 */
.visually-hidden { position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 2px; }
