/* ===== 디자인 토큰 (Figma variable defs) ===== */
:root {
  --raven: #343940;       /* 본문 강조 텍스트 */
  --ebony: #565e68;
  --cloud: #e4eaf2;       /* 보더 */
  --primary: #24498d;     /* 네이비 메인 */
  --secondary: #2f5df4;   /* 블루 포인트 */
  --ash: #909cac;         /* 보조 텍스트 */
  --ghost: #f7f8fb;       /* 퀵메뉴 배경 */
  --bg: #eef4ff;          /* 서비스 카드 영역 배경 */
  --look: #ff7b7b;
  --gray-555: #555;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--raven);
  background: #fff;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: 'cv02' 1, 'cv03' 1, 'cv04' 1, 'cv09' 1;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { display: block; }
button { background: none; border: 0; cursor: pointer; font-family: inherit; }

/* 콘텐츠 폭: 1920 - (260*2) = 1400 */
.container {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}

/* ===== 로그인 상태 토글 ===== */
[data-auth="guest"] .auth-member { display: none !important; }
[data-auth="member"] .auth-guest { display: none !important; }

/* ===== 헤더 ===== */
.header {
  border-bottom: 1px solid var(--cloud);
  padding: 24px 0;
}
.header .container { display: flex; flex-direction: column; gap: 24px; }

.header__top { display: flex; align-items: center; justify-content: space-between; }
.header__logo img { width: 192px; height: 36px; object-fit: contain; }

.header__util { display: flex; align-items: center; gap: 16px; }
.util-link { display: flex; align-items: center; gap: 4px; font-size: 14px; font-weight: 500; color: var(--raven); }
.util-link img { width: 20px; height: 20px; }
.greeting { font-size: 14px; font-weight: 500; color: var(--raven); }
.greeting b { font-weight: 700; }
.greeting span { color: var(--ash); }

.header__gnb { display: flex; align-items: center; justify-content: space-between; padding: 0 4px; }
.gnb { display: flex; align-items: center; gap: 48px; }
.gnb a { display: block; padding: 8px 0; font-size: 20px; font-weight: 600; color: var(--raven); }
.gnb a:hover { color: var(--secondary); }
.gnb__menu img { width: 32px; height: 32px; }

/* ===== 히어로 ===== */
.hero { padding: 100px 0; }
.hero__inner { display: flex; align-items: stretch; gap: 80px; }

.hero__left { position: relative; flex: 1 1 0; min-width: 0; min-height: 406px; }
.hero__title { font-size: 40px; font-weight: 800; line-height: 1.3; color: var(--primary); }
.hero__subtitle { margin-top: 16px; font-size: 20px; font-weight: 500; line-height: 1.3; color: var(--ash); }

.hero__controls { position: absolute; left: 0; bottom: 0; display: flex; align-items: center; gap: 8px; }
.hero__count { display: flex; align-items: center; gap: 4px; font-size: 16px; line-height: 1; }
.hero__count b { color: var(--secondary); font-weight: 700; }
.hero__count i { color: #bbb; font-weight: 500; font-style: normal; }
.hero__controls button img { width: 24px; height: 24px; }

.hero__deco { position: absolute; top: 4px; right: 192px; width: 183px; height: 173px; object-fit: contain; pointer-events: none; }
.hero__laptop { position: absolute; bottom: 8px; right: 0; width: 323px; height: 263px; object-fit: contain; pointer-events: none; }

.hero__right { flex: 0 0 480px; width: 480px; display: flex; flex-direction: column; gap: 32px; }

/* 로그인 패널 */
.login-panel { display: flex; flex-direction: column; gap: 24px; }
.login-panel__title { padding: 0 4px; font-size: 22px; font-weight: 700; color: var(--raven); }
.login-panel__buttons { display: flex; gap: 16px; }
.btn {
  flex: 1 1 0; height: 80px; border-radius: 24px;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  font-size: 20px; font-weight: 600; color: #fff;
  transition: filter .15s;
}
.btn:hover { filter: brightness(1.07); }
.btn img { width: 32px; height: 32px; }
.btn--primary { background: var(--secondary); }
.btn--navy { background: var(--primary); }

/* 나의 신청 현황 (로그인 후) */
.status-panel { display: flex; flex-direction: column; gap: 24px; }
.status-panel__title { padding: 0 4px; font-size: 22px; font-weight: 700; color: var(--raven); }
.status-bar {
  display: flex; width: 100%; overflow: hidden;
  background: var(--bg); border: 1px solid rgba(36, 73, 141, .1); border-radius: 24px;
}
.status-bar__item {
  flex: 1 1 0; min-width: 0; height: 80px; padding: 0 20px;
  display: flex; align-items: center; justify-content: space-between;
}
.status-bar__item span { font-size: 14px; font-weight: 600; color: var(--primary); }
.status-bar__item strong { font-size: 22px; font-weight: 800; color: var(--secondary); }

/* 퀵메뉴 */
.quick { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.quick__item { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.quick__icon {
  width: 100%; height: 88px; border-radius: 24px; background: var(--ghost);
  display: flex; align-items: center; justify-content: center;
  transition: background .15s;
}
.quick__item:hover .quick__icon { background: #eef1f7; }
.quick__icon img { width: 36px; height: 36px; object-fit: contain; }
.quick__item em { font-size: 16px; font-weight: 600; font-style: normal; color: var(--gray-555); }

/* ===== 서비스 카드 ===== */
.services { background: var(--bg); padding: 48px 0; }
.services__inner { display: flex; align-items: flex-end; gap: 0; }
.card {
  position: relative; flex: 1 1 0; min-width: 0;
  padding: 0 24px; border-radius: 24px;
  display: flex; flex-direction: column; gap: 16px;
}
.card__icon { width: 48px; height: 48px; }
.card__arrow { position: absolute; top: 12px; right: 24.33px; width: 24px; height: 24px; }
.card__arrow--big { width: 32px; height: 32px; top: 8px; }
.card__title { font-size: 24px; font-weight: 400; line-height: 1.3; color: var(--raven); white-space: nowrap; }
.card__desc { font-size: 14px; font-weight: 500; line-height: 1.5; color: var(--ash); white-space: nowrap; }
.card__tag { font-size: 14px; font-weight: 600; line-height: 1.3; color: var(--raven); }

/* 강조 카드(공동법률사무소) — 위로 솟는 블루 카드 */
.card--featured {
  background: var(--secondary); color: #fff;
  padding: 48px 24px;
  box-shadow: 0 20px 40px rgba(47, 93, 244, .25);
}
.card--featured .card__icon { filter: brightness(0) invert(1); }
.card--featured .card__title { font-weight: 600; color: #fff; }
.card--featured .card__desc { color: rgba(255, 255, 255, .5); }
.card--featured .card__tag { color: #fff; }
.card--featured .card__arrow { filter: brightness(0) invert(1); right: 24px; }

/* ===== 공지 / FAQ ===== */
.boards { padding: 80px 0; }
.boards__inner { display: flex; align-items: flex-start; gap: 80px; }
.board { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 32px; }
.board__head { display: flex; align-items: center; justify-content: space-between; }
.board__title { font-size: 22px; font-weight: 700; color: var(--raven); }
.board__more img { width: 24px; height: 24px; }

.board__list { display: flex; flex-direction: column; gap: 24px; padding: 0 4px; }
.board__list li { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 20px; }
.board__text {
  display: flex; align-items: center; gap: 8px;
  font-size: 16px; font-weight: 500; color: var(--raven);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  font-feature-settings: 'ss01' 1, 'cv02' 1, 'cv03' 1, 'cv04' 1, 'cv09' 1, 'lnum' 1, 'tnum' 1;
}
.board__text:hover { color: var(--secondary); }
.board__badge { width: 18px; height: 18px; flex-shrink: 0; }
.board__list time { font-size: 16px; font-weight: 500; color: var(--ash); white-space: nowrap; }

/* ===== 푸터 ===== */
.footer { background: var(--primary); padding: 40px 0; }
.footer__inner { position: relative; display: flex; align-items: center; justify-content: space-between; }
.footer__info { display: flex; flex-direction: column; gap: 12px; font-size: 14px; }
.footer__addr { color: #fff; font-weight: 500; }
.footer__contact { display: flex; gap: 8px; font-weight: 600; line-height: 1; }
.footer__contact span { color: #fff; }
.footer__contact .dim { color: rgba(255, 255, 255, .5); }

.footer__center {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 384px; display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center;
}
.footer__logo { width: 170px; height: 32px; object-fit: contain; }
.footer__copy { font-size: 14px; font-weight: 500; color: rgba(255, 255, 255, .5); }

.footer__sns { display: flex; align-items: center; gap: 16px; }
.footer__sns img { width: 48px; height: 48px; }

/* ===== 반응형 ===== */
@media (max-width: 1180px) {
  .hero__inner { flex-direction: column; gap: 48px; }
  .hero__left { min-height: 340px; }
  .hero__right { flex-basis: auto; width: 100%; }
  .services__inner { flex-wrap: wrap; gap: 24px 0; align-items: stretch; }
  .card { flex: 0 0 33.333%; padding: 24px; }
  .card--featured { padding: 32px 24px; box-shadow: none; }
  .gnb { gap: 24px; }
}
@media (max-width: 760px) {
  .header__gnb { overflow-x: auto; }
  .gnb a { font-size: 16px; }
  .card { flex: 0 0 50%; }
  .boards__inner { flex-direction: column; gap: 48px; }
  .footer__inner { flex-direction: column; gap: 24px; text-align: center; }
  .footer__center { position: static; transform: none; width: auto; order: -1; }
}
