/* ============================================================
   site.css — 대원정보통신(주) 홈페이지(공개 사이트) 디자인
   업무지원시스템(dw.css)과 통일감을 위한 네이비 + 로고 오렌지 포인트
   ============================================================ */

@import url("https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/variable/pretendardvariable.min.css");

:root {
  /* ⚠️ 색은 업무포털 시안(`대원 디자인 개편/업무포털 시안.dc.html`)의 팔레트다.
         inc/portal_theme.css 와 같은 값을 쓴다 — 한쪽만 고치면 공개면과 업무면 색이 갈린다. */
  --navy:       #16325C;   /* 구조·주요 동작 */
  --navy-deep:  #0B1F3A;
  --navy-700:   #1D4B8F;   /* 링크 */
  --navy-soft:  #EEF2F8;
  --navy-line:  #D6E0EF;

  /* 강조 주황 — 시안 값. 로고 SVG(#f39200)는 브랜드 자산이라 그대로 둔다(사용자 확정 2026-09-17).
     로고는 단독으로 놓이고, 버튼·배지 등 UI 강조에만 아래 색을 쓴다. */
  --orange:     #E8722A;
  --orange-2:   #F39200;   /* 로고와 맞닿는 그라데이션용 — 로고 원색 */
  --orange-soft:#FDF7EF;

  --ink:    #1B2230;
  --ink-2:  #39404D;
  --ink-3:  #5C6675;
  --ink-4:  #A8B0BB;

  --bg:      #ffffff;
  --bg-soft: #F4F5F7;
  --line:    #E2E5EA;
  --surface: #ffffff;

  --r:    10px;   /* 카드 — 시안 규칙 */
  --r-lg: 14px;
  --shadow:    0 1px 2px rgba(27,34,48,.04), 0 8px 24px rgba(27,34,48,.05);
  --shadow-lg: 0 18px 50px rgba(16,42,86,.11);
  --wrap: 1200px;   /* 공개면 본문 폭 — 시안 값 */
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Pretendard Variable", Pretendard, -apple-system, "Apple SD Gothic Neo",
               "Malgun Gothic", system-ui, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
@media (max-width: 1024px) { .wrap { padding: 0 20px; } }
@media (max-width: 768px)  { .wrap { padding: 0 14px; } }

/* ── 헤더 / 내비게이션 ────────────────────────────────── */
/* ── 헤더 틀 ───────────────────────────────────────────
   높이를 변수로 뺐다. 모바일 메뉴 패널이 헤더 바로 아래 붙어야 해서
   두 곳이 같은 값을 봐야 한다 — 한 곳만 고치면 메뉴가 뜨거나 겹친다. */
:root { --hd-h: 72px; }
@media (max-width: 1024px) { :root { --hd-h: 64px; } }
@media (max-width: 768px)  { :root { --hd-h: 56px; } }

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.94);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; height: var(--hd-h);
}
/* 로고 (텍스트 + 마크) — 폰트 일관성을 위해 인라인 구성 */
.brand { display: flex; align-items: center; gap: 9px; }
.brand .word {
  font-size: 23px; font-weight: 800; letter-spacing: -0.5px;
  color: var(--ink); line-height: 1;
}
.brand .mark { width: 26px; height: 26px; margin-top: -8px; }
.brand .sub {
  font-size: 9.5px; font-weight: 700; letter-spacing: 2px;
  color: var(--ink-4); margin-top: 3px;
}
.brand-text { display: flex; flex-direction: column; }

.nav-menu { display: flex; align-items: center; gap: 4px; }
.nav-menu a {
  display: inline-flex; align-items: center; min-height: 40px;
  padding: 8px 14px; border-radius: 8px; font-size: 15px; font-weight: 600;
  color: var(--ink-2); transition: background .15s, color .15s;
}
.nav-menu a:hover { background: var(--bg-soft); color: var(--navy); }
.nav-menu a.active { color: var(--navy); background: var(--navy-soft); }
.nav-menu a.cta {
  background: var(--navy); color: #fff; margin-left: 8px; padding-left: 18px; padding-right: 18px;
}
.nav-menu a.cta:hover { background: var(--navy-700); color: #fff; }

.nav-toggle {
  display: none; background: none; border: 0; cursor: pointer;
  width: 42px; height: 42px; border-radius: 9px; color: var(--navy);
}
.nav-toggle svg { width: 26px; height: 26px; }

/* ── 히어로 ───────────────────────────────────────────── */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(1100px 400px at 85% -10%, rgba(243,146,0,.10), transparent 60%),
    linear-gradient(160deg, var(--navy-deep) 0%, var(--navy) 55%, var(--navy-700) 100%);
  color: #fff;
}
.hero .wrap { padding-top: 92px; padding-bottom: 96px; }
.hero h1 {
  font-size: clamp(30px, 5vw, 50px); font-weight: 800; letter-spacing: -1px;
  line-height: 1.18; margin: 0 0 18px;
}
.hero h1 .accent { color: var(--orange-2); }
.hero p { font-size: clamp(16px, 2.2vw, 19px); color: #C9D6E8; max-width: 600px; margin: 0 0 30px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ── 버튼 ─────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 24px; border-radius: 11px; font-size: 15.5px; font-weight: 700;
  cursor: pointer; border: 1px solid transparent; transition: transform .12s, background .15s, box-shadow .15s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--orange); color: #fff; }
.btn-primary:hover { background: #D4641F; box-shadow: 0 8px 20px rgba(232,114,42,.28); }
.btn-ghost { background: rgba(255,255,255,.08); color: #fff; border-color: rgba(255,255,255,.28); }
.btn-ghost:hover { background: rgba(255,255,255,.16); }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-700); }
.btn-lg { padding: 15px 30px; font-size: 16.5px; }

/* ── 섹션 공통 ────────────────────────────────────────── */
.section { padding: 78px 0; }
.section.alt { background: var(--bg-soft); }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 48px; }
.eyebrow {
  display: inline-block; font-size: 13px; font-weight: 800; letter-spacing: 1.5px;
  color: var(--orange); text-transform: uppercase; margin-bottom: 12px;
}
.section-head h2 { font-size: clamp(25px, 3.4vw, 34px); font-weight: 800; letter-spacing: -.6px; margin: 0 0 14px; color: var(--ink); }
.section-head p { font-size: 16.5px; color: var(--ink-3); margin: 0; }

/* 페이지 상단 배너 (서브 페이지) */
.page-banner {
  background: linear-gradient(160deg, var(--navy-deep), var(--navy));
  color: #fff; padding: 64px 0 58px; text-align: center;
}
.page-banner h1 { font-size: clamp(27px, 4vw, 40px); font-weight: 800; margin: 0 0 10px; letter-spacing: -.6px; }
.page-banner p { color: #C9D6E8; font-size: 16px; margin: 0; }
.crumb { font-size: 13px; color: var(--orange-2); font-weight: 700; letter-spacing: 1px; margin-bottom: 14px; }

/* ── 카드 그리드 ─────────────────────────────────────── */
.grid { display: grid; gap: 22px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 30px 26px; box-shadow: var(--shadow); transition: transform .15s, box-shadow .15s, border-color .15s;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: var(--navy-line); }
.card .ico {
  width: 52px; height: 52px; border-radius: 13px; display: flex; align-items: center; justify-content: center;
  background: var(--orange-soft); color: var(--orange); margin-bottom: 18px;
}
.card .ico svg { width: 27px; height: 27px; }
.card h3 { font-size: 19px; font-weight: 700; margin: 0 0 9px; color: var(--ink); }
.card p { font-size: 15px; color: var(--ink-3); margin: 0; }

/* 통계 스트립 */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; text-align: center; }
.stat .num { font-size: clamp(28px, 4vw, 40px); font-weight: 800; color: var(--navy); letter-spacing: -1px; }
.stat .num .u { color: var(--orange); }
.stat .lab { font-size: 14.5px; color: var(--ink-3); margin-top: 4px; }

/* 2단 텍스트+박스 */
.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: 50px; align-items: center; }
.split h2 { font-size: clamp(24px, 3.2vw, 32px); font-weight: 800; letter-spacing: -.6px; margin: 0 0 18px; }
.split p { color: var(--ink-2); font-size: 16px; margin: 0 0 16px; }
.feature-box {
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-deep) 100%);
  border-radius: var(--r-lg); padding: 38px 32px; color: #fff;
}
.feature-box ul { list-style: none; margin: 0; padding: 0; }
.feature-box li { display: flex; gap: 12px; align-items: flex-start; padding: 11px 0; border-bottom: 1px solid rgba(255,255,255,.1); font-size: 15.5px; }
.feature-box li:last-child { border-bottom: 0; }
.feature-box li .dot { color: var(--orange-2); font-weight: 800; }

/* 정의 리스트 (회사개요 표) */
.info-table { width: 100%; border-collapse: collapse; border-top: 2px solid var(--navy); }
.info-table th, .info-table td { text-align: left; padding: 16px 18px; border-bottom: 1px solid var(--line); font-size: 15.5px; vertical-align: top; }
.info-table th { width: 180px; background: var(--bg-soft); color: var(--ink); font-weight: 700; }
.info-table td { color: var(--ink-2); }

/* 사업영역 번호 리스트 */
.biz-list { display: grid; gap: 18px; }
.biz-item { display: flex; gap: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 26px 28px; box-shadow: var(--shadow); }
.biz-item .no { font-size: 26px; font-weight: 800; color: var(--orange); min-width: 46px; }
.biz-item h3 { margin: 0 0 6px; font-size: 19px; color: var(--ink); }
.biz-item p { margin: 0; color: var(--ink-3); font-size: 15px; }

/* 가족기업 카드 */
.partner-card { text-align: center; }
.partner-card .logo-ph {
  height: 90px; display: flex; align-items: center; justify-content: center;
  background: var(--bg-soft); border-radius: var(--r); margin-bottom: 16px;
  font-size: 19px; font-weight: 800; color: var(--navy); letter-spacing: -.5px;
}
.partner-card h3 { margin: 0 0 6px; font-size: 17px; }
.partner-card p { margin: 0; font-size: 14px; color: var(--ink-3); }

/* CTA 배너 */
.cta-band {
  background:
    radial-gradient(800px 300px at 90% 120%, rgba(243,146,0,.16), transparent 60%),
    linear-gradient(160deg, var(--navy) 0%, var(--navy-deep) 100%);
  color: #fff; border-radius: 22px; padding: 54px 40px; text-align: center;
}
.cta-band h2 { font-size: clamp(24px, 3.4vw, 32px); font-weight: 800; margin: 0 0 12px; letter-spacing: -.6px; }
.cta-band p { color: #C9D6E8; margin: 0 0 26px; font-size: 16.5px; }

/* ── 폼 ───────────────────────────────────────────────── */
.form-card { max-width: 720px; margin: 0 auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 38px 34px; box-shadow: var(--shadow); }
.form-row { margin-bottom: 20px; }
.form-row.two { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-row label { display: block; font-size: 14.5px; font-weight: 700; color: var(--ink); margin-bottom: 8px; }
.form-row label .req { color: var(--orange); margin-left: 3px; }
.form-row input, .form-row select, .form-row textarea {
  width: 100%; padding: 13px 14px; border: 1px solid var(--line); border-radius: 11px;
  font-size: 15.5px; font-family: inherit; color: var(--ink); background: #fff; transition: border-color .15s, box-shadow .15s;
}
.form-row input:focus, .form-row select:focus, .form-row textarea:focus {
  outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px var(--navy-soft);
}
.form-row textarea { min-height: 130px; resize: vertical; }
.form-note { font-size: 13.5px; color: var(--ink-4); margin-top: 6px; }
.form-card .btn { width: 100%; justify-content: center; }

.alert { padding: 15px 18px; border-radius: 12px; font-size: 15px; margin-bottom: 22px; font-weight: 600; }
.alert-ok  { background: #EFF8F3; color: #1F7A4D; border: 1px solid #CFE8DA; }   /* 시안 완료·검수 */
.alert-err { background: #FDF2F0; color: #B23B2E; border: 1px solid #F3D3CD; }   /* 시안 지연·위험 */

/* 연락 정보 박스 */
.contact-strip { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; margin-bottom: 36px; }
.contact-strip .c { background: var(--bg-soft); border-radius: var(--r); padding: 22px; text-align: center; }
.contact-strip .c .ic { color: var(--orange); margin-bottom: 8px; }
.contact-strip .c .ic svg { width: 24px; height: 24px; }
.contact-strip .c .t { font-size: 13px; color: var(--ink-4); font-weight: 700; letter-spacing: .5px; }
.contact-strip .c .v { font-size: 16px; color: var(--ink); font-weight: 700; margin-top: 2px; }

/* ── 공지사항 ─────────────────────────────────────────── */
.notice-list { border-top: 2px solid var(--navy); }
.notice-row { display: flex; align-items: center; gap: 18px; padding: 20px 8px; border-bottom: 1px solid var(--line); transition: background .12s; }
.notice-row:hover { background: var(--bg-soft); }
.notice-row .no { color: var(--ink-4); font-size: 14px; min-width: 36px; text-align: center; }
.notice-row .ti { flex: 1; font-size: 16px; font-weight: 600; color: var(--ink); }
.notice-row .pin { font-size: 11px; font-weight: 800; color: #fff; background: var(--orange); padding: 2px 8px; border-radius: 6px; margin-right: 8px; }
.notice-row .dt { color: var(--ink-4); font-size: 14px; white-space: nowrap; }
.notice-empty { text-align: center; color: var(--ink-4); padding: 60px 0; }

.notice-detail { max-width: 820px; margin: 0 auto; }
.notice-detail .nd-head { border-top: 2px solid var(--navy); border-bottom: 1px solid var(--line); padding: 24px 4px; }
.notice-detail .nd-head h1 { font-size: 24px; margin: 0 0 10px; color: var(--ink); }
.notice-detail .nd-head .meta { font-size: 14px; color: var(--ink-4); }
.notice-detail .nd-body { padding: 30px 4px; font-size: 16px; color: var(--ink-2); line-height: 1.8; white-space: pre-wrap; word-break: break-word; min-height: 160px; }

/* 관리자 공지 테이블 */
.admin-table { width: 100%; border-collapse: collapse; }
.admin-table th, .admin-table td { padding: 13px 12px; border-bottom: 1px solid var(--line); font-size: 14.5px; text-align: left; }
.admin-table th { background: var(--bg-soft); font-weight: 700; color: var(--ink); }
.admin-table td a { color: var(--navy); font-weight: 600; }
.admin-bar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 22px; gap: 12px; flex-wrap: wrap; }
.chip { display: inline-flex; gap: 6px; align-items: center; padding: 7px 13px; border-radius: 9px; font-size: 13.5px; font-weight: 700; border: 1px solid var(--line); color: var(--ink-2); background: #fff; cursor: pointer; }
.chip.danger { color: #B23B2E; border-color: #F3D3CD; }
.chip.danger:hover { background: #FDF2F0; }

/* ── 푸터 ─────────────────────────────────────────────── */
/* ── 푸터 틀 — PC 는 넉넉히, 모바일은 낮게 ── */
.site-footer { background: var(--navy-deep); color: #B9CBE8; padding: 52px 0 28px; font-size: 14px; }
.footer-top { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; padding-bottom: 28px; border-bottom: 1px solid rgba(255,255,255,.1); }
.footer-brand .word { font-size: 21px; font-weight: 800; color: #fff; letter-spacing: -.5px; }
.footer-brand .sub { font-size: 9px; letter-spacing: 2px; color: #9FB3D1; font-weight: 700; margin-top: 2px; }
.footer-brand p { margin: 14px 0 0; max-width: 360px; color: #9FB3D1; }
.footer-links { display: flex; gap: 50px; flex-wrap: wrap; }
.footer-links h4 { font-size: 13px; color: #fff; margin: 0 0 14px; letter-spacing: .5px; }
.footer-links a { display: block; padding: 5px 0; color: #B9CBE8; }
.footer-links a:hover { color: var(--orange-2); }
.footer-bot { padding-top: 24px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; color: #9FB3D1; font-size: 13px; }

/* ── 반응형 ───────────────────────────────────────────
   1200 : 본문 폭 최대 · 헤더 72 · 섹션 여백 최대
   1024 : 여백 20 · 헤더 64 · 2열 격자
    768 : 여백 14 · 헤더 56 · 1열 · 햄버거 메뉴
    390 : 글자 살짝 키우고 버튼은 가로 전체            */
@media (max-width: 1024px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); gap: 28px 20px; }
  .split { grid-template-columns: 1fr; gap: 32px; }
  .contact-strip { grid-template-columns: 1fr; }
  .section { padding: 64px 0; }
  .hero .wrap { padding-top: 72px; padding-bottom: 76px; }
  .footer-links { gap: 36px; }
}
@media (max-width: 768px) {
  .nav-menu {
    position: fixed; top: var(--hd-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 2px;
    background: #fff; border-bottom: 1px solid var(--line);
    padding: 10px 14px 16px; box-shadow: var(--shadow-lg);
    transform: translateY(-12px); opacity: 0; pointer-events: none; transition: .2s;
    max-height: calc(100vh - var(--hd-h)); overflow-y: auto;
  }
  .nav-menu.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .nav-menu a { padding: 13px 12px; font-size: 16px; min-height: 48px; }
  .nav-menu a.cta { margin-left: 0; margin-top: 8px; justify-content: center; }
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .brand .word { font-size: 20px; }
  .brand .sub  { font-size: 8.5px; letter-spacing: 1.6px; }
  .brand .mark { width: 22px; height: 22px; }

  .grid-3, .grid-4, .grid-2 { grid-template-columns: 1fr; }
  .form-row.two { grid-template-columns: 1fr; }
  .section { padding: 44px 0; }
  .hero .wrap { padding-top: 52px; padding-bottom: 56px; }
  .section-head { margin-bottom: 32px; }
  .cta-band { padding: 32px 20px; }
  .info-table th { width: 104px; }

  /* 푸터 — 모바일은 한 열로 낮게 */
  .site-footer { padding: 36px 0 22px; font-size: 13.5px; }
  .footer-top { flex-direction: column; gap: 26px; padding-bottom: 22px; }
  .footer-links { gap: 28px; }
  .footer-brand p { max-width: none; }
  .footer-bot { flex-direction: column; gap: 6px; padding-top: 18px; font-size: 12.5px; }
}
@media (max-width: 420px) {
  .btn, .btn-primary { width: 100%; justify-content: center; }
  .stats { grid-template-columns: 1fr; }
}
