/* ==========================================================
   한국복지직업능력개발협회 — 공통 스타일
   컨셉: 공적 인증기관의 신뢰감 + 복지 현장의 온기
   ========================================================== */

:root{
  --bg:            #EEF0EA;   /* 차분한 세이지 그레이 배경 */
  --bg-panel:      #F7F8F4;   /* 패널/카드용 밝은 배경 */
  --ink:           #262622;   /* 본문 텍스트 */
  --ink-soft:      #55564E;   /* 보조 텍스트 */
  --teal:          #1F3D3A;   /* 주 색상: 짙은 틸(신뢰) */
  --teal-soft:     #3F5F58;   /* 보조 틸 */
  --gold:          #B4832E;   /* 강조색: 인증/자격의 금색 */
  --gold-soft:     #D9B87A;
  --line:          #D3D2C4;   /* 구분선 */
  --line-strong:   #B9B8A8;

  --serif: "Apple SD Gothic Neo", "Malgun Gothic", "맑은 고딕", Dotum, 돋움, sans-serif;
  --sans:  "Apple SD Gothic Neo", "Malgun Gothic", "맑은 고딕", Dotum, 돋움, sans-serif;

  --maxw: 1080px;
}

*{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }

body{
  margin:0;
  background:var(--bg);
  color:var(--ink);
  font-family:var(--sans);
  font-size:16px;
  line-height:1.7;
  -webkit-font-smoothing:antialiased;
}

img{ max-width:100%; display:block; }
a{ color:inherit; text-decoration:none; }

h1,h2,h3{
  font-family:var(--serif);
  font-weight:600;
  color:var(--teal);
  margin:0 0 .5em;
  letter-spacing:-0.01em;
}

.wrap{
  max-width:var(--maxw);
  margin:0 auto;
  padding:0 28px;
}

/* ---------- 상단 정보바 ---------- */
.topbar{
  background:var(--teal);
  color:#E9E7DC;
  font-size:13.5px;
}
.topbar .wrap{
  display:flex;
  justify-content:flex-end;
  gap:22px;
  padding-top:8px;
  padding-bottom:8px;
}
.topbar a{ opacity:.92; }
.topbar a:hover{ color:var(--gold-soft); }

/* ---------- 헤더 / 내비게이션 ---------- */
header.site{
  background:var(--bg-panel);
  border-bottom:1px solid var(--line-strong);
  position:sticky;
  top:0;
  z-index:40;
}
.nav-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:16px 0;
}
.brand{
  display:flex;
  align-items:center;
  gap:14px;
}
.seal{
  width:52px; height:52px;
  flex:none;
}
.seal img{
  width:100%; height:100%;
  object-fit:contain;
  display:block;
}
.brand-text .kr-name{
  font-family:var(--serif);
  font-size:18px;
  font-weight:700;
  color:var(--teal);
  line-height:1.25;
}
.brand-text .en-name{
  font-size:11.5px;
  color:var(--ink-soft);
  letter-spacing:.03em;
}

nav.main{
  display:flex;
  gap:34px;
}
nav.main a{
  font-size:15.5px;
  color:var(--ink);
  padding:6px 2px;
  border-bottom:2px solid transparent;
}
nav.main a:hover,
nav.main a.active{
  color:var(--teal);
  border-bottom-color:var(--gold);
}

.nav-toggle{
  display:none;
  background:none;
  border:1px solid var(--line-strong);
  border-radius:6px;
  width:40px; height:36px;
  cursor:pointer;
  flex:none;
}
.nav-toggle span{
  display:block;
  width:18px; height:2px;
  margin:4px auto;
  background:var(--teal);
}

/* ---------- 히어로 (홈) ---------- */
.hero{
  padding:76px 0 64px;
  border-bottom:1px solid var(--line);
  background-color:var(--bg);
  background-image:url('images/pattern-care-light.svg');
  background-repeat:repeat;
  background-size:240px 240px;
}
.hero .eyebrow{
  color:var(--gold);
  font-family:var(--serif);
  font-weight:bold;
  font-size:15px;
  margin-bottom:14px;
}
.hero h1{
  font-size:clamp(30px, 4vw, 44px);
  max-width:15ch;
  line-height:1.32;
}
.hero p.lead{
  max-width:56ch;
  color:var(--ink-soft);
  font-size:17px;
  margin-top:18px;
}
.hero-actions{
  margin-top:32px;
  display:flex;
  gap:14px;
  flex-wrap:wrap;
}

.btn{
  display:inline-block;
  padding:13px 26px;
  font-size:15px;
  border-radius:3px;
  border:1px solid var(--teal);
}
.btn-primary{
  background:var(--teal);
  color:#F4F3EC;
}
.btn-primary:hover{ background:#152B28; }
.btn-ghost{
  background:transparent;
  color:var(--teal);
}
.btn-ghost:hover{ background:rgba(31,61,58,.06); }

/* ---------- 섹션 공통 ---------- */
section{ padding:64px 0; }
section + section{ border-top:1px solid var(--line); }

.section-head{
  display:flex;
  justify-content:space-between;
  align-items:flex-end;
  gap:24px;
  margin-bottom:36px;
  flex-wrap:wrap;
}
.section-head h2{ font-size:27px; margin:0; }
.section-head .desc{ color:var(--ink-soft); max-width:46ch; }

/* ---------- 협회 개요 통계열 ---------- */
.stat-row{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  border:1px solid var(--line-strong);
  border-radius:4px;
  overflow:hidden;
  background:var(--bg-panel);
}
.stat{
  padding:24px 20px;
  text-align:center;
  border-right:1px solid var(--line);
}
.stat:last-child{ border-right:none; }
.stat .num{
  font-family:var(--serif);
  font-size:26px;
  color:var(--teal);
  font-weight:700;
}
.stat .label{
  font-size:13.5px;
  color:var(--ink-soft);
  margin-top:4px;
}

/* ---------- 자격증 목록 (원장부 스타일) ---------- */
.cert-ledger{
  border-top:1px solid var(--line-strong);
}
.cert-row{
  display:grid;
  grid-template-columns:96px 1fr auto;
  align-items:center;
  gap:24px;
  padding:26px 4px;
  border-bottom:1px solid var(--line);
}
.cert-row .cert-no{
  font-family:var(--serif);
  font-size:14px;
  color:var(--gold);
}
.cert-row .cert-no small{
  display:block;
  color:var(--ink-soft);
  font-size:11px;
  margin-top:3px;
}
.cert-row h3{
  font-size:19px;
  margin:0 0 6px;
}
.cert-row p{
  margin:0;
  color:var(--ink-soft);
  font-size:14.5px;
}
.cert-status{
  font-size:12.5px;
  color:var(--ink-soft);
  border:1px solid var(--line-strong);
  padding:6px 12px;
  border-radius:3px;
  white-space:nowrap;
}

/* ---------- 홈: 자격증 요약 리스트 ---------- */
.cert-inline-list{
  list-style:none;
  margin:0; padding:0;
  columns:2;
  column-gap:40px;
}
.cert-inline-list li{
  break-inside:avoid;
  padding:10px 0;
  border-bottom:1px dotted var(--line-strong);
  font-size:15.5px;
}
.cert-inline-list li::before{
  content:"·";
  color:var(--gold);
  margin-right:10px;
  font-weight:700;
}

/* ---------- 인용/인사말 블록 ---------- */
.greeting{
  background:var(--bg-panel);
  border-left:3px solid var(--gold);
  padding:32px 36px;
  font-size:16.5px;
  color:var(--ink);
}
.greeting p + p{ margin-top:1em; }
.sign{
  margin-top:22px;
  font-family:var(--serif);
  color:var(--teal);
}

/* ---------- 정보 테이블 (협회소개/오시는길) ---------- */
.info-table{
  width:100%;
  border-collapse:collapse;
}
.info-table th,
.info-table td{
  text-align:left;
  padding:16px 0;
  border-bottom:1px solid var(--line);
  vertical-align:top;
}
.info-table th{
  width:160px;
  color:var(--ink-soft);
  font-weight:500;
  font-size:14.5px;
}
.info-table td{ font-size:15.5px; }

/* ---------- 구성원 목록 ---------- */
.member-tags{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin-top:18px;
}
.member-tags span{
  border:1px solid var(--line-strong);
  padding:8px 16px;
  border-radius:3px;
  font-size:14.5px;
  background:var(--bg-panel);
  color:var(--teal-soft);
}

/* ---------- 연락처 카드 (오시는길) ---------- */
.contact-grid{
  display:grid;
  grid-template-columns:1.1fr .9fr;
  gap:48px;
}
.contact-block .btn{ margin-top:22px; }

/* ---------- 준비중 안내 배너 ---------- */
.notice-banner{
  background:var(--bg-panel);
  border:1px dashed var(--line-strong);
  padding:16px 20px;
  font-size:14px;
  color:var(--ink-soft);
  border-radius:4px;
  margin-bottom:30px;
}

/* ---------- 푸터 ---------- */
footer.site{
  background-color:var(--teal);
  background-image:url('images/pattern-care-dark.svg');
  background-repeat:repeat;
  background-size:240px 240px;
  color:#CFD6D1;
  margin-top:40px;
}
footer.site .wrap{
  padding:44px 28px 30px;
  display:flex;
  justify-content:space-between;
  gap:40px;
  flex-wrap:wrap;
}
footer.site .foot-brand{
  font-family:var(--serif);
  color:#F4F3EC;
  font-size:17px;
  margin-bottom:10px;
}
footer.site .foot-meta{
  font-size:13px;
  line-height:1.9;
  color:#B9C2BC;
}
footer.site nav{
  display:flex;
  gap:22px;
  font-size:14px;
}
footer.site nav a:hover{ color:#F4F3EC; }
.copyright{
  border-top:1px solid rgba(255,255,255,.12);
  text-align:center;
  font-size:12.5px;
  color:#9AA5A0;
  padding:16px 0 22px;
}

/* ---------- 반응형 ---------- */
@media (max-width:820px){
  .contact-grid{ grid-template-columns:1fr; }
  .stat-row{ grid-template-columns:repeat(2,1fr); }
  .stat:nth-child(2){ border-right:none; }
  .cert-inline-list{ columns:1; }
}

@media (max-width:720px){
  .topbar .wrap{ justify-content:center; gap:16px; flex-wrap:wrap; }
  .nav-toggle{ display:block; }
  nav.main{
    position:absolute;
    top:100%; left:0; right:0;
    background:var(--bg-panel);
    border-bottom:1px solid var(--line-strong);
    flex-direction:column;
    gap:0;
    padding:6px 28px 14px;
    display:none;
  }
  nav.main.open{ display:flex; }
  nav.main a{ padding:12px 0; border-bottom:1px solid var(--line); width:100%; }
  .cert-row{ grid-template-columns:56px 1fr; }
  .cert-status{ grid-column:2; justify-self:start; margin-top:6px; }
}
