/* 노무법인 아테네 — 메인 초안
   구조·수치: 웹사이트 디자인 시스템 · 컴포넌트 구현 지침서 (토큰 이름 그대로)
   색상 값: 아테네 명함 · 배너의 골드 / 베이지로 교체 */

@font-face { font-family: "Pretendard"; font-weight: 400; font-display: swap; src: url("fonts/Pretendard-Regular.woff2") format("woff2"); }
@font-face { font-family: "Pretendard"; font-weight: 500; font-display: swap; src: url("fonts/Pretendard-Medium.woff2") format("woff2"); }
@font-face { font-family: "Pretendard"; font-weight: 600; font-display: swap; src: url("fonts/Pretendard-SemiBold.woff2") format("woff2"); }
@font-face { font-family: "Pretendard"; font-weight: 700; font-display: swap; src: url("fonts/Pretendard-Bold.woff2") format("woff2"); }

:root {
  /* color tokens */
  --color-text-primary: #26221b;
  --color-text-secondary: #6a6253;
  --color-text-muted: #948a76;
  --color-text-accent: #85722f;
  --color-text-inverse: #ffffff;
  --color-text-inverse-secondary: #f1ead9;
  --color-bg-base: #ffffff;
  --color-bg-surface: #f8f5ee;
  --color-bg-brand: #ece4d9;          /* 배너 베이지 */
  --color-bg-gold: #b09b57;           /* 명함 뒷면 골드 */
  --color-bg-ink: #26221b;
  --color-border-default: #e1d9c8;
  --color-border-soft: #efeae0;
  --color-border-strong: #cfc5ae;
  --color-border-blue: #e3d9b5;       /* 지침서 border/blue 자리 → 골드 틴트 */
  --color-border-accent-soft: #eee6c4;
  --color-action-primary-start: #86712e;
  --color-action-primary-end: #a8924c;
  --color-action-pressed-start: #6f5d24;
  --color-action-pressed-end: #937e3c;

  /* type tokens: size / line-height */
  --type-display: 600 66px/80px var(--font-family);
  --type-heading-1: 500 46px/60px var(--font-family);
  --type-heading-2: 600 26px/32px var(--font-family);
  --type-heading-3: 600 20px/28px var(--font-family);
  --type-body-large: 400 18px/28px var(--font-family);
  --type-body-default: 400 16px/24px var(--font-family);
  --type-body-small: 400 14px/24px var(--font-family);
  --type-question: 500 18px/28px var(--font-family);
  --type-button-large: 600 16px/20px var(--font-family);
  --type-button: 600 14px/20px var(--font-family);
  --type-navigation: 500 14px/20px var(--font-family);
  --type-caption: 400 12px/20px var(--font-family);

  --font-family: "Pretendard", -apple-system, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;

  /* layout */
  --content: 1160px;
  --pad: 80px;
  --header-h: 76px;
  --section-y: 112px;
  --radius-card: 8px;
  --shadow-card: 0 8px 18px rgba(86, 70, 18, 0.1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font: var(--type-body-default); color: var(--color-text-primary); background: var(--color-bg-base);
  letter-spacing: 0; word-break: keep-all; overflow-wrap: anywhere; -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, ul, ol, dl, dd { margin: 0; padding: 0; }
ul, ol { list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--color-text-accent); outline-offset: 3px; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { width: min(var(--content), 100% - var(--pad) * 2); margin-inline: auto; }
.section { padding-block: var(--section-y); }
.section--surface { background: var(--color-bg-surface); }
.section--brand { background: var(--color-bg-brand); }

.sec-head { margin-bottom: 48px; max-width: 760px; }
.eyebrow { font: var(--type-body-small); font-weight: 600; color: var(--color-text-accent); margin-bottom: 12px; }
.sec-head h2 { font: var(--type-heading-1); }
.sec-head p { font: var(--type-body-large); color: var(--color-text-secondary); margin-top: 16px; }

/* ── Button ── */
.btn { display: inline-flex; align-items: center; justify-content: center; white-space: nowrap; cursor: pointer;
  border-radius: 8px; transition: background-color .2s ease-out, box-shadow .2s ease-out, transform .2s ease-out; }
.btn--large { min-width: 186px; height: 54px; padding-inline: 28px; font: var(--type-button-large); }
.btn--medium { min-width: 145px; height: 46px; padding-inline: 20px; border-radius: 6px; font: var(--type-button); }
.btn--primary { color: var(--color-text-inverse); background: linear-gradient(90deg, var(--color-action-primary-start), var(--color-action-primary-end)); }
.btn--primary:hover { box-shadow: 0 6px 14px rgba(134, 113, 46, 0.28); }
.btn--primary:active { background: linear-gradient(90deg, var(--color-action-pressed-start), var(--color-action-pressed-end)); }
.btn--ghost-light, .btn--ghost-dark { min-width: 210px; padding-inline: 22px; }
.btn--ghost-light { color: var(--color-text-inverse); background: rgba(255, 255, 255, 0.4); border: 1px solid var(--color-action-primary-start); }
.btn--ghost-light:active { background: rgba(134, 113, 46, 0.18); }
.btn--ghost-dark { color: var(--color-text-primary); background: rgba(255, 255, 255, 0.2); border: 1px solid var(--color-text-primary); }
.btn--ghost-dark:hover { background: rgba(255, 255, 255, 0.55); }
.btn--ghost-dark:active { background: rgba(38, 34, 27, 0.1); }
.btn--on-ink { color: var(--color-text-inverse); background: rgba(255, 255, 255, 0.12); border: 1px solid rgba(255, 255, 255, 0.55); min-width: 210px; }
.btn--on-ink:hover { background: rgba(255, 255, 255, 0.22); }

/* ── Header / Navigation ── */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, 0.94); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-border-soft); }
.site-header .wrap { height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand img { height: 46px; width: auto; }
.gnb { display: flex; align-items: center; gap: 36px; }
.gnb a { font: var(--type-navigation); font-size: 15px; color: var(--color-text-primary); position: relative; padding-block: 8px; }
.gnb a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 1px; background: var(--color-text-accent);
  transform: scaleX(0); transform-origin: left; transition: transform .3s ease-out; }
.gnb a:hover::after { transform: scaleX(1); }
.header-cta { display: flex; align-items: center; gap: 12px; }
.menu-btn { display: none; width: 44px; height: 44px; border-radius: 10px; align-items: center; justify-content: center; color: var(--color-text-primary); }
.menu-btn svg { width: 20px; height: 20px; }
.menu-btn .ic-close { display: none; }
.menu-btn[aria-expanded="true"] .ic-open { display: none; }
.menu-btn[aria-expanded="true"] .ic-close { display: block; }
.menu-panel { position: absolute; left: 0; right: 0; top: 100%; background: var(--color-bg-base); padding: 24px 48px;
  filter: drop-shadow(0 8px 12px rgba(0, 0, 0, 0.12)); opacity: 0; transform: translateY(-8px); visibility: hidden;
  transition: opacity .2s ease-out, transform .2s ease-out, visibility 0s linear .2s; }
.menu-panel.is-open { opacity: 1; transform: none; visibility: visible; transition-delay: 0s; }
.menu-panel li + li { border-top: 1px solid var(--color-border-default); }
.menu-panel a { height: 56px; display: flex; align-items: center; justify-content: space-between; font: 500 18px/28px var(--font-family); }
.menu-panel a span { font-weight: 400; }

/* ── Hero ── */
.hero { position: relative; background: var(--color-bg-brand); overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0 0 0 auto; width: min(46%, 620px); background: url("img/hero.jpg") center 20% / cover no-repeat; opacity: .9; -webkit-mask-image: linear-gradient(90deg, transparent, #000 40%); mask-image: linear-gradient(90deg, transparent, #000 40%); }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--color-bg-brand) 0%, var(--color-bg-brand) 44%, rgba(236, 228, 217, 0.9) 58%, rgba(236, 228, 217, 0.35) 78%, rgba(236, 228, 217, 0.15) 100%); }
.hero .wrap { position: relative; z-index: 1; padding-block: 124px 108px; }
.hero-en { font: var(--type-body-small); font-weight: 600; letter-spacing: .18em; color: var(--color-text-accent); margin-bottom: 24px; }
.hero h1 { font: var(--type-display); max-width: 820px; }
.hero h1 em { font-style: normal; color: var(--color-text-accent); }
.hero-lead { font: var(--type-body-large); color: var(--color-text-secondary); margin-top: 28px; max-width: 560px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 44px; }
.hero-quick { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 56px; }
.hero-quick li { display: flex; align-items: center; gap: 10px; height: 48px; padding: 0 20px 0 8px; background: var(--color-bg-base);
  border: 1px solid var(--color-border-strong); border-radius: 999px; font: var(--type-body-small); font-weight: 600; }
.hero-quick svg { width: 32px; height: 32px; padding: 7px; border-radius: 50%; background: var(--color-bg-surface); color: var(--color-text-accent); }

/* ── 숫자 대신 신뢰 요소 ── */
.trust { border-bottom: 1px solid var(--color-border-soft); }
.trust ul { display: grid; grid-template-columns: repeat(3, 1fr); }
.trust li { padding: 36px 32px 36px 0; }
.trust li + li { padding-left: 32px; border-left: 1px solid var(--color-border-soft); }
.trust strong { display: block; font: var(--type-heading-3); margin-bottom: 6px; }
.trust span { font: var(--type-body-small); color: var(--color-text-secondary); }

/* ── Service Card ── */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.service-card { position: relative; display: block; min-height: 285px; padding: 23px 28px 56px 23px; background: var(--color-bg-surface);
  border: 1px solid var(--color-border-soft); border-radius: var(--radius-card); box-shadow: var(--shadow-card); overflow: hidden;
  transition: transform .25s ease-out, box-shadow .25s ease-out; }
.service-card:hover { transform: translateY(-4px); box-shadow: 0 14px 26px rgba(86, 70, 18, 0.14); }
.service-icon { width: 44px; height: 44px; border-radius: 8px; display: grid; place-items: center; color: #fff;
  background: linear-gradient(90deg, var(--color-action-primary-start), #c2ad63); }
.service-icon svg { width: 22px; height: 22px; }
.service-card .num { position: absolute; top: 33px; right: 22px; width: 40px; font: 500 14px/20px var(--font-family); color: var(--color-text-muted); }
.service-card h3 { font: var(--type-heading-3); margin-top: 23px; }
.service-card .sub { font: var(--type-caption); color: var(--color-text-muted); margin-top: 9px; }
.service-card .desc { font: var(--type-body-default); color: var(--color-text-secondary); margin-top: 21px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.service-card .arrow { position: absolute; right: 23px; bottom: 18px; width: 24px; height: 24px; color: var(--color-text-accent); }

/* ── 진행 절차 ── */
.process { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; counter-reset: step; }
.process li { position: relative; padding: 28px 24px 0 0; border-top: 1px solid var(--color-border-strong); }
.process li::before { content: ""; position: absolute; top: -5px; left: 0; width: 9px; height: 9px; border-radius: 50%; background: var(--color-bg-gold); }
.process .no { font: 600 26px/32px var(--font-family); color: var(--color-bg-gold); }
.process h3 { font: var(--type-heading-3); margin-top: 10px; }
.process p { font: var(--type-body-small); color: var(--color-text-secondary); margin-top: 8px; }

/* ── Case Card (블로그 · 영상) ── */
.case-card { position: relative; display: block; min-height: 330px; background: var(--color-bg-base); border: 1px solid var(--color-border-blue);
  border-radius: var(--radius-card); overflow: hidden; transition: border-color .25s ease-out, transform .25s ease-out; }
.case-card:hover { border-color: var(--color-bg-gold); transform: translateY(-4px); }
.case-card .thumb { height: 100px; background: var(--color-text-primary); position: relative; overflow: hidden; }
.case-card .thumb::after { content: ""; position: absolute; inset: 0; background: url("img/hero.jpg") center 30% / cover; opacity: .28; }
.case-card .thumb--video { display: grid; place-items: center; }
.case-card .thumb--video svg { position: relative; z-index: 1; width: 36px; height: 36px; color: #fff; }
.case-card .body { padding: 19px 23px 22px; }
.case-card .cat { font: var(--type-body-small); color: var(--color-text-accent); }
.case-card h3 { font: var(--type-heading-3); margin-top: 9px; min-height: 56px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.case-card .desc { font: var(--type-body-small); color: var(--color-text-secondary); margin-top: 12px; min-height: 48px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.case-card .foot { display: flex; align-items: center; justify-content: space-between; margin-top: 13px; }
.case-card .tag { font: var(--type-caption); color: var(--color-text-accent); }
.case-card .foot svg { width: 24px; height: 24px; color: var(--color-text-accent); }
.sub-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin: 0 0 20px; }
.sub-head h3 { font: var(--type-heading-2); }
.sub-head a { font: var(--type-button); color: var(--color-text-accent); white-space: nowrap; }
.feed-block + .feed-block { margin-top: 64px; }
.note { font: var(--type-caption); color: var(--color-text-muted); margin-top: 16px; }

/* ── FAQ Item ── */
.faq { display: grid; gap: 12px; }
.faq-item { border-block: 1px solid var(--color-border-strong); background: var(--color-bg-base); padding: 19px 35px 19px 30px; min-height: 72px;
  display: flex; flex-direction: column; justify-content: center; transition: background-color .2s ease-out; }
.faq-item.is-open { background: var(--color-bg-surface); }
.faq-q { display: flex; gap: 16px; align-items: flex-start; width: 100%; text-align: left; font: var(--type-question); color: var(--color-text-primary); }
.faq-q .q-text { flex: 1; display: flex; gap: 14px; }
.faq-q .q-text b, .faq-a b { font-weight: 500; color: var(--color-text-accent); flex: none; width: 14px; }
.faq-q .toggle { flex: none; width: 13px; font: 400 20px/28px var(--font-family); text-align: center; }
.faq-a { display: none; gap: 14px; margin-top: 12px; font: var(--type-body-default); color: var(--color-text-secondary); padding-right: 29px; }
.faq-item.is-open .faq-a { display: flex; }

/* ── 상담 CTA ── */
.cta { background: var(--color-bg-gold); color: var(--color-text-inverse); }
.cta .wrap { display: grid; grid-template-columns: 1.1fr 1fr; gap: 64px; align-items: center; }
.cta h2 { font: var(--type-heading-1); }
.cta p { font: var(--type-body-large); color: var(--color-text-inverse-secondary); margin-top: 16px; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.cta .btn--primary { background: var(--color-bg-base); color: var(--color-text-primary); }
.cta .btn--primary:hover { box-shadow: 0 6px 14px rgba(0, 0, 0, 0.16); }
.cta .btn--primary:active { background: var(--color-bg-surface); }
.contact-list { border-top: 1px solid rgba(255, 255, 255, 0.45); }
.contact-list div { display: grid; grid-template-columns: 96px 1fr; gap: 16px; padding: 18px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.45); }
.contact-list dt { font: var(--type-body-small); color: var(--color-text-inverse-secondary); }
.contact-list dd { font: var(--type-body-default); font-weight: 500; }
.contact-list dd a { border-bottom: 1px solid rgba(255, 255, 255, 0.6); }

/* ── Footer ── */
.site-footer { background: var(--color-bg-ink); color: #cfc8ba; padding-block: 56px 40px; }
.site-footer .top { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.site-footer .name { font: var(--type-heading-3); color: #fff; }
.site-footer .name small { display: block; font: var(--type-caption); letter-spacing: .16em; color: #b9a769; margin-top: 4px; }
.site-footer nav ul { display: flex; flex-wrap: wrap; gap: 8px 28px; }
.site-footer nav a { font: var(--type-navigation); }
.site-footer nav a:hover { color: #fff; }
.site-footer .info { margin-top: 36px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, 0.14); font: var(--type-body-small); color: #a59d8c; }
.site-footer .info span { display: inline-block; margin-right: 20px; }
.site-footer .copy { margin-top: 12px; font: var(--type-caption); color: #827b6c; }

/* ── 준비중 페이지 ── */
.preparing { min-height: calc(100vh - var(--header-h)); display: grid; place-items: center; background: var(--color-bg-brand); text-align: center; padding: 80px 24px; }
.preparing img { width: 76px; margin: 0 auto 28px; mix-blend-mode: multiply; }
.preparing h1 { font: var(--type-heading-1); }
.preparing p { font: var(--type-body-large); color: var(--color-text-secondary); margin-top: 16px; }
.preparing .btn { margin-top: 40px; }

/* ── 등장 모션 ── */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease-out, transform .6s ease-out; }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ── Tablet (본문 672 / 패널 768) ── */
@media (max-width: 1239px) {
  :root { --pad: 48px; --section-y: 88px; --type-display: 600 52px/64px var(--font-family); --type-heading-1: 500 38px/50px var(--font-family); }
  .gnb, .header-cta .btn { display: none; }
  .menu-btn { display: inline-flex; }
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .process { grid-template-columns: repeat(3, 1fr); row-gap: 40px; }
  .cta .wrap { grid-template-columns: 1fr; gap: 48px; }
  .hero::before { width: 52%; }
  .hero .wrap { padding-block: 96px 84px; }
}
/* ── Duo (본문 530 / 패널 626) ── */
@media (max-width: 767px) {
  :root { --section-y: 72px; --type-display: 600 42px/54px var(--font-family); --type-heading-1: 500 32px/44px var(--font-family); }
  .trust ul { grid-template-columns: 1fr; }
  .trust li, .trust li + li { padding: 22px 0; border-left: 0; }
  .trust li + li { border-top: 1px solid var(--color-border-soft); }
  .hero::before { inset: 0; width: auto; opacity: .5; -webkit-mask-image: none; mask-image: none; }
  .hero::after { background: linear-gradient(180deg, rgba(236, 228, 217, 0.92), rgba(236, 228, 217, 0.8)); }
}
/* ── Mobile (본문 342 / 패널 390) ── */
@media (max-width: 559px) {
  :root { --pad: 24px; --section-y: 64px; --header-h: 64px; --type-display: 600 34px/46px var(--font-family); --type-heading-1: 500 28px/40px var(--font-family);
    --type-body-large: 400 16px/26px var(--font-family); }
  .brand img { height: 38px; }
  .menu-panel { padding: 16px 24px; }
  .card-grid { grid-template-columns: 1fr; }
  .process { grid-template-columns: 1fr; row-gap: 0; }
  .process li { padding: 22px 0 22px 24px; border-top: 0; border-left: 1px solid var(--color-border-strong); }
  .process li::before { top: 30px; left: -5px; }
  .hero .wrap { padding-block: 64px 56px; }
  .hero-actions .btn, .cta-actions .btn { width: 100%; }
  .hero-quick { margin-top: 40px; }
  .faq-item { padding: 16px 18px; }
  .faq-a { padding-right: 0; }
  .contact-list div { grid-template-columns: 76px 1fr; }
  .sec-head { margin-bottom: 32px; }
}
