/* ===== 럭스크레이티브 홈페이지 스타일 =====
   대표 색: 진파랑 #2B59A8 / 연파랑 #588CC9 (로고에서 추출) */

:root {
  --blue: #2B59A8;
  --blue-light: #588CC9;
  --blue-50: #F3F7FC;
  --blue-100: #E3ECF8;
  --ink: #1F2937;
  --ink-2: #4B5563;
  --ink-3: #6B7280;
  --line: #E5E7EB;
  --bg: #FFFFFF;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(31, 41, 55, .04), 0 6px 20px rgba(43, 89, 168, .07);
  --header-h: 72px;
  --font: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", "맑은 고딕", "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  word-break: keep-all;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { line-height: 1.3; margin: 0; letter-spacing: -0.02em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
dl, dd { margin: 0; }

.container { width: min(1120px, 100% - 40px); margin-inline: auto; }
.muted { color: var(--ink-3); }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 12px; top: -48px; z-index: 100;
  background: var(--blue); color: #fff; padding: 8px 14px; border-radius: 8px;
}
.skip-link:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--blue-light); outline-offset: 2px; border-radius: 4px; }

/* ===== 버튼 ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 46px; padding: 0 22px; border-radius: 10px;
  font-weight: 600; font-size: 15px; border: 1px solid transparent;
  transition: background-color .15s, border-color .15s, color .15s;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: #224A8E; }
.btn-ghost { background: #fff; color: var(--blue); border-color: #C9D8EE; }
.btn-ghost:hover { background: var(--blue-50); border-color: var(--blue-light); }

/* ===== 헤더 ===== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(180%) blur(10px);
  -webkit-backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.header-inner { height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 16px; }

.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); }
.brand:hover { text-decoration: none; }
.brand img { width: 46px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-en { font-weight: 800; font-size: 17px; letter-spacing: .04em; color: var(--blue); }
.brand-ko { font-size: 12.5px; color: var(--ink-2); letter-spacing: .02em; }

.site-nav ul { display: flex; align-items: center; gap: 4px; }
.site-nav a {
  display: block; padding: 8px 14px; border-radius: 8px;
  color: var(--ink); font-weight: 500; font-size: 15px;
}
.site-nav a:hover { background: var(--blue-50); color: var(--blue); text-decoration: none; }
.site-nav a.nav-cta { background: var(--blue); color: #fff; margin-left: 6px; }
.site-nav a.nav-cta:hover { background: #224A8E; color: #fff; }

.nav-toggle {
  display: none; width: 44px; height: 44px; border: 0; background: transparent;
  border-radius: 8px; cursor: pointer; padding: 0;
  flex-direction: column; align-items: center; justify-content: center; gap: 5px;
}
.nav-toggle .bar { width: 22px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .2s, opacity .2s; }
.nav-toggle[aria-expanded="true"] .bar:nth-child(2) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .bar:nth-child(3) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .bar:nth-child(4) { transform: translateY(-7px) rotate(-45deg); }

/* ===== 첫 화면 ===== */
.hero {
  background:
    radial-gradient(900px 420px at 85% 10%, var(--blue-100), transparent 70%),
    linear-gradient(180deg, #fff, var(--blue-50));
  padding: 72px 0 56px;
}
.hero-inner { display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: 40px; }
.eyebrow {
  display: inline-block; font-size: 14px; font-weight: 600; color: var(--blue);
  background: #fff; border: 1px solid #C9D8EE; padding: 5px 12px; border-radius: 999px; margin-bottom: 20px;
}
.hero h1 { font-size: clamp(30px, 4.4vw, 48px); font-weight: 800; color: var(--ink); }
.lead { margin-top: 20px; font-size: clamp(16px, 1.6vw, 18px); color: var(--ink-2); max-width: 36em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 32px; }
.hero-illust { justify-self: center; width: min(100%, 540px); }
.hero-illust img { width: 100%; }

.stats {
  margin-top: 56px; display: grid; grid-template-columns: repeat(3, 1fr);
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
}
.stats li { padding: 22px 16px; text-align: center; }
.stats li + li { border-left: 1px solid var(--line); }
.stats strong { display: block; font-size: 28px; font-weight: 800; color: var(--blue); letter-spacing: -0.02em; }
.stats small { font-size: 16px; font-weight: 700; margin-left: 2px; }
.stats span { font-size: 14px; color: var(--ink-3); }

/* ===== 섹션 공통 ===== */
.section { padding: 96px 0; }
.section-tint {
  background-color: var(--blue-50);
  background-image: radial-gradient(#D5E2F3 1.3px, transparent 1.4px);
  background-size: 24px 24px;
}
.section-head { margin-bottom: 44px; max-width: 640px; }
.section-label { font-size: 13px; font-weight: 700; letter-spacing: .16em; color: var(--blue); margin-bottom: 8px; }
.section-head h2[tabindex="-1"]:focus:not(:focus-visible) { outline: none; }
main[tabindex="-1"]:focus { outline: none; }
.section-head h2 { font-size: clamp(26px, 3vw, 34px); font-weight: 800; }
.section-head p:not(.section-label) { margin-top: 12px; color: var(--ink-2); }

/* ===== 회사소개 ===== */
/* 제목 + 일러스트 한 줄, 아래 표와 박스는 높이를 맞춤 */
.about-head { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 32px; margin-bottom: 36px; }
.about-head .section-head { margin-bottom: 0; }
.about-illust { width: 300px; }

.about-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 28px; align-items: stretch; }
.info-table { border-top: 2px solid var(--blue); display: flex; flex-direction: column; }
.info-table > div { flex: 1; display: grid; grid-template-columns: 120px 1fr; border-bottom: 1px solid var(--line); }
.info-table dt, .info-table dd { display: flex; flex-direction: column; justify-content: center; }
.info-table dt { padding: 14px 12px; font-weight: 600; color: var(--ink-2); background: #FAFBFD; }
.info-table dd { padding: 14px 16px; }

.cert-box { background: var(--blue-50); border-radius: var(--radius); padding: 22px 24px; display: flex; flex-direction: column; }
.cert-box .cert-list li { padding-top: 9px; padding-bottom: 9px; }
.cert-box .cert-list li::before { top: 16px; }
.cert-box .cert-list { flex: 1; display: flex; flex-direction: column; justify-content: space-between; }
.cert-box h3 { font-size: 18px; margin-bottom: 14px; }
.cert-list li { display: flex; flex-direction: column; padding: 12px 0 12px 22px; position: relative; }
.cert-list li + li { border-top: 1px solid #D9E4F3; }
.cert-list li::before {
  content: ""; position: absolute; left: 0; top: 19px; width: 10px; height: 10px; border-radius: 50%;
  background: var(--blue); box-shadow: 0 0 0 3px #C9D8EE;
}
.cert-name { font-weight: 600; }
.cert-desc { font-size: 14px; color: var(--ink-3); }

/* ===== 사업분야 ===== */
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.service-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 14px 26px;
  box-shadow: var(--shadow);
}
.service-illust { width: 100%; border-radius: 10px; margin-bottom: 20px; }
.service-card h3 { font-size: 19px; margin: 0 10px 8px; }
.service-card p { color: var(--ink-2); font-size: 15.5px; margin: 0 10px; }

/* ===== 연혁 ===== */
.history-grid { display: grid; grid-template-columns: 1.3fr .7fr; gap: 40px; align-items: center; }
.history-illust { width: 100%; max-width: 360px; justify-self: center; }
.timeline { position: relative; max-width: 760px; }
.timeline::before { content: ""; position: absolute; left: 92px; top: 8px; bottom: 8px; width: 2px; background: var(--blue-100); }
.timeline li { display: grid; grid-template-columns: 92px 1fr; gap: 28px; padding: 14px 0; position: relative; }
.timeline li::after {
  content: ""; position: absolute; left: 86px; top: 22px; width: 14px; height: 14px; border-radius: 50%;
  background: #fff; border: 3px solid var(--blue);
}
.timeline time { font-weight: 700; color: var(--blue); font-variant-numeric: tabular-nums; padding-top: 1px; }
.timeline p { padding-left: 4px; font-size: 17px; }

/* ===== 주요실적 ===== */
.project-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.project-card { background: #fff; border-radius: var(--radius); padding: 28px; border: 1px solid var(--line); box-shadow: var(--shadow); overflow: hidden; }
.project-illust { width: calc(100% + 56px); max-width: none; margin: -28px -28px 22px; }
.tag {
  display: inline-block; font-size: 13px; font-weight: 600; color: var(--blue);
  background: var(--blue-100); padding: 4px 10px; border-radius: 6px; margin-bottom: 14px;
}
.project-card h3 { font-size: 19px; margin-bottom: 18px; }
.project-card dl > div { display: grid; grid-template-columns: 80px 1fr; padding: 8px 0; border-top: 1px solid var(--line); font-size: 15px; }
.project-card dt { color: var(--ink-3); }

/* ===== 문의 ===== */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.contact-card {
  border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow);
  display: flex; flex-direction: column; align-items: flex-start; gap: 14px;
}
.contact-card h3 { font-size: 18px; }
.contact-email { font-size: clamp(18px, 2.2vw, 22px); font-weight: 700; }
.address { color: var(--ink-2); font-size: 16px; }
.map-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: auto; }
.contact-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: auto; }
/* '주소 복사'는 스크립트가 있어야 동작하므로, 스크립트가 없으면 숨김 */
.no-js [data-copy] { display: none; }
.btn { cursor: pointer; font-family: inherit; }
.copy-status { min-height: 1.4em; margin-top: -4px; font-size: 14px; color: var(--ink-2); }
.map-frame {
  margin-top: 20px; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); background: var(--blue-50); height: 380px;
}
.map-frame iframe { display: block; width: 100%; height: 100%; border: 0; }
@media (max-width: 760px) { .map-frame { height: 280px; } }

/* ===== 푸터 ===== */
.site-footer { background: #17233A; color: #C4CEDD; padding: 40px 0; font-size: 14px; }
.footer-inner { display: grid; gap: 12px; }
.footer-brand { display: flex; align-items: center; gap: 10px; color: #fff; font-weight: 700; font-size: 16px; }
.footer-brand img { width: 40px; background: #fff; border-radius: 8px; padding: 4px; }
.footer-info { display: flex; row-gap: 2px; }
.footer-info li:not(:last-child)::after { content: "|"; margin: 0 10px; color: #5B6B85; }
.footer-info a { color: #C4CEDD; }
@media (max-width: 1040px) {
  .footer-info { flex-direction: column; }
  .footer-info li::after { display: none; }
}
.copyright { color: #8494AE; font-size: 13px; }

/* ===== 없는 주소 안내 (404.html) ===== */
.not-found { min-height: 56vh; display: flex; align-items: center; }
.not-found h1 { font-size: clamp(26px, 3vw, 34px); font-weight: 800; }
.not-found .section-head { margin-bottom: 28px; }

/* ===== 반응형 ===== */
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; gap: 28px; }
  .hero-illust { width: min(100%, 440px); }
  .about-grid { grid-template-columns: 1fr; }
  .history-grid { grid-template-columns: 1fr; gap: 24px; }
  .history-illust { max-width: 300px; order: -1; }
  .service-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 760px) {
  :root { --header-h: 64px; }

  /* ── 스크립트 정상(html.js): ☰ 버튼을 누르면 펼쳐지는 접이식 메뉴 ── */
  .js .nav-toggle { display: inline-flex; }
  .js .site-nav {
    position: absolute; left: 0; right: 0; top: var(--header-h);
    background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 12px 24px rgba(31, 41, 55, .08);
    display: none;
    /* 화면 높이가 낮아도(가로 화면) 메뉴 안에서 스크롤되도록 */
    max-height: calc(100vh - var(--header-h));
    max-height: calc(100dvh - var(--header-h));
    overflow-y: auto;
    overscroll-behavior: contain;
  }
  .js .site-nav.is-open { display: block; }
  html.nav-open, html.nav-open body { overflow: hidden; }
  .js .site-nav ul { flex-direction: column; align-items: stretch; padding: 8px 20px 16px; gap: 2px; }
  .js .site-nav a { padding: 13px 12px; font-size: 16px; }
  .js .site-nav a.nav-cta { margin: 8px 0 0; text-align: center; }

  /* ── 스크립트 없음(html.no-js): ☰ 버튼 없이 섹션 링크를 로고 아래에 바로 표시 ── */
  .no-js .site-header { position: static; }  /* 머리글이 높아져도 본문을 가리지 않도록 고정 해제 */
  .no-js .header-inner { height: auto; flex-wrap: wrap; padding: 12px 0; row-gap: 8px; }
  .no-js .site-nav { width: 100%; }
  .no-js .site-nav ul { flex-wrap: wrap; gap: 4px 2px; }
  .no-js .site-nav a { padding: 7px 10px; font-size: 15px; }
  .no-js .site-nav a.nav-cta { margin-left: 2px; }

  .hero { padding: 48px 0 40px; }
  .stats { margin-top: 40px; }
  .stats li { padding: 18px 8px; }
  .stats strong { font-size: 24px; }
  .stats span { font-size: 13px; }

  .section { padding: 68px 0; }
  .section-head { margin-bottom: 32px; }
  .project-list, .contact-grid { grid-template-columns: 1fr; }
  .project-card, .contact-card { padding: 24px; }
  /* 모바일 사업 카드: 제목을 먼저 보여주고 그림 높이를 줄임 */
  .service-card { display: flex; flex-direction: column; padding: 20px 14px 22px; }
  .service-card h3 { order: -1; margin-bottom: 12px; }
  /* 그림은 자르지 않고 원본 비율로 줄여 넣고, 남는 공간은 그림 배경색으로 채움 */
  .service-illust { height: 130px; object-fit: contain; background: #EEF4FB; margin-bottom: 14px; }
  .project-illust { width: calc(100% + 48px); margin: -24px -24px 20px; }

  .about-head { grid-template-columns: 1fr; gap: 20px; margin-bottom: 28px; }
  .about-illust { width: min(100%, 280px); justify-self: center; }
  .info-table > div { grid-template-columns: 92px 1fr; }
  .info-table dt, .info-table dd { padding: 14px 10px; font-size: 15px; }

  .timeline::before { left: 7px; }
  .timeline li { grid-template-columns: 1fr; gap: 2px; padding: 12px 0 12px 32px; }
  .timeline li::after { left: 1px; top: 18px; }
}

/* 좁은 화면(560px 이하)에서만 사업 카드를 1열로 (561~760px 태블릿은 2열 유지) */
@media (max-width: 560px) {
  .service-grid { grid-template-columns: 1fr; }
}
