:root {
  --ink: #16191c;
  --ink-2: #3a4148;
  --muted: #6b747d;
  --line: #dfe3e7;
  --bg: #ffffff;
  --bg-alt: #f3f5f7;
  /* 로고 색: 남색 #35455C, 빨강 #B23838 */
  --navy: #35455c;
  --steel: #263345;
  --steel-2: #30405a;
  --accent: #b23838;
  --accent-ink: #8e2a2b;
  --accent-soft: #f7e4e4;
  --accent-on-dark: #f2a09b;
  --radius: 14px;
  --wrap: 1180px;
  --font: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  word-break: keep-all;
  overflow-wrap: anywhere;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.3; letter-spacing: -0.02em; margin: 0; }
p { margin: 0; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.wrap.narrow { max-width: 820px; }
.muted { color: var(--muted); }

/* ── buttons ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 10px 18px; border-radius: 999px; font: inherit; font-weight: 600;
  text-decoration: none; border: 1.5px solid transparent; cursor: pointer; white-space: nowrap;
  transition: background .15s, color .15s, border-color .15s;
}
.btn-lg { padding: 14px 24px; font-size: 1.05rem; }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: var(--accent-ink); }
.btn-ghost { border-color: rgba(255,255,255,.4); color: #fff; background: transparent; }
.btn-ghost:hover { border-color: #fff; }
.btn-ghost-dark { border-color: rgba(255,255,255,.35); color: #fff; background: transparent; }
.btn-outline { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-outline:hover { background: var(--ink); color: #fff; }
.linklike { background: none; border: 0; padding: 0; font: inherit; color: inherit; cursor: pointer; text-align: left; text-decoration: underline; text-underline-offset: 3px; }

/* ── header ── */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(16,23,34,.96); color: #fff;
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.header-inner { display: flex; align-items: center; gap: 24px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-mark { width: 53px; height: 48px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text strong { font-size: 1.15rem; color: #fff; }
.brand-text small { font-size: .68rem; letter-spacing: .18em; color: var(--accent-on-dark); font-weight: 700; }
.site-nav { display: flex; gap: 22px; margin-left: auto; font-size: .95rem; }
.site-nav a { text-decoration: none; color: #c3cbd4; }
.site-nav a:hover { color: #fff; }
.header-call { padding: 8px 16px; }

/* 900px 이하: 햄버거 메뉴(<details>라 JS 없이도 열고 닫힌다) */
.mobile-nav { display: none; }
.mobile-nav summary {
  list-style: none; cursor: pointer; width: 44px; height: 44px; display: grid; place-items: center;
  border-radius: 10px; -webkit-tap-highlight-color: transparent;
}
.mobile-nav summary::-webkit-details-marker { display: none; }
.mobile-nav summary:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.burger, .burger::before, .burger::after {
  display: block; width: 22px; height: 2px; border-radius: 2px; background: #fff;
  transition: transform .2s, opacity .2s;
}
.burger { position: relative; }
.burger::before, .burger::after { content: ""; position: absolute; left: 0; }
.burger::before { top: -7px; }
.burger::after { top: 7px; }
.mobile-nav[open] .burger { background: transparent; }
.mobile-nav[open] .burger::before { transform: translateY(7px) rotate(45deg); }
.mobile-nav[open] .burger::after { transform: translateY(-7px) rotate(-45deg); }
.mobile-nav-panel {
  position: absolute; left: 0; right: 0; top: 100%;
  background: rgba(16,23,34,.98); border-bottom: 1px solid rgba(255,255,255,.08);
  padding: 4px 20px 20px; display: flex; flex-direction: column;
  box-shadow: 0 16px 32px rgba(0,0,0,.35);
}
.mobile-nav-panel > a {
  color: #e9edf1; text-decoration: none; font-size: 1.05rem; font-weight: 600;
  padding: 15px 2px; border-bottom: 1px solid rgba(255,255,255,.08);
}
.mobile-nav-contact {
  margin: 16px 2px 0; display: flex; flex-wrap: wrap; gap: 4px 18px;
  font-size: .9rem; color: #9aa4ae;
}
.mobile-nav-contact a, .mobile-nav-contact button { color: #e9edf1; font-weight: 600; }
section[id] { scroll-margin-top: var(--header-h); }   /* 메뉴로 이동할 때 제목이 헤더에 가리지 않게 */

/* ── hero ── */
/* 대문 사진: Greg Evans / Unsplash (Unsplash License), 좌우 반전·남색-빨강 듀오톤 가공 */
.hero {
  --hero-photo: url("img/hero-1200.jpg");
  position: relative; color: #fff; overflow: hidden;
  background-color: #101722;
  background-image:
    linear-gradient(90deg, rgba(16,23,34,.94) 0%, rgba(16,23,34,.78) 36%, rgba(16,23,34,.15) 68%, rgba(16,23,34,0) 100%),
    var(--hero-photo);
  background-size: cover;
  background-position: 70% center;
}
@media (min-width: 1200px) { .hero { --hero-photo: url("img/hero.jpg"); } }

/* 홈: 헤더를 대문 위에 투명하게 겹치고, 스크롤하면 남색으로 채운다(main.js가 .is-solid).
   JS가 없으면(.js 없음) 다른 페이지처럼 남색 헤더 그대로. */
:root { --header-h: 68px; }
.site-header { transition: background-color .25s, border-color .25s, backdrop-filter .25s; }
.js .home .site-header:not(.is-solid):not(:has(.mobile-nav[open])) { background: transparent; border-bottom-color: transparent; backdrop-filter: none; }
.js .home .hero { margin-top: calc(-1 * var(--header-h)); }
.js .home .hero-inner { padding-top: calc(96px + var(--header-h)); }
.js .home .hero::before {   /* 투명 헤더 밑을 살짝 어둡게: 오른쪽 사진 위 메뉴 글씨가 읽히게 */
  content: ""; position: absolute; inset: 0 0 auto 0; height: 160px; pointer-events: none;
  background: linear-gradient(180deg, rgba(16,23,34,.75), rgba(16,23,34,0));
}
.hero-inner { position: relative; }
.hero-inner { padding: 96px 20px 80px; }
.eyebrow { font-size: .85rem; font-weight: 700; letter-spacing: .08em; color: var(--accent); margin-bottom: 12px; }
.hero h1 { font-size: clamp(2rem, 10.5vw, 4.4rem); font-weight: 800; letter-spacing: -0.035em; line-height: 1.12; }
.hero-sub { margin-top: 22px; font-size: clamp(1.15rem, 2.4vw, 1.5rem); font-weight: 600; line-height: 1.5; color: #e9edf1; }
.hero h1 em { font-style: normal; color: var(--accent-on-dark); }
.hero .eyebrow, .section-dark .eyebrow { color: var(--accent-on-dark); }
.lead { font-size: 1.1rem; color: var(--ink-2); max-width: 44em; margin-top: 18px; }
.hero .lead { color: #c8cfd5; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-stats { display: flex; flex-wrap: wrap; gap: 40px; margin: 56px 0 0; padding-top: 28px; border-top: 1px solid rgba(255,255,255,.12); }
.hero-stats dt { font-size: .85rem; color: #9aa3ab; }
.hero-stats dd { margin: 4px 0 0; font-size: 1.9rem; font-weight: 800; }

/* ── sections ── */
.section { padding: 88px 0; }
.section.tight { padding: 40px 0 72px; }
.section-alt { background: var(--bg-alt); }
.section-dark { background: var(--steel); color: #fff; }
.section-head { margin-bottom: 40px; }
.section-head h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 800; }
.section-head.row { display: flex; justify-content: space-between; align-items: end; gap: 20px; flex-wrap: wrap; }
h2.sub { font-size: 1.3rem; margin-bottom: 20px; }

.services { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.service {
  border: 1px solid var(--line); border-radius: var(--radius); padding: 26px;
  display: flex; flex-direction: column; gap: 10px; background: #fff;
}
.service h3 { font-size: 1.2rem; }
.service h3::before { content: ""; display: block; width: 28px; height: 4px; background: var(--accent); margin-bottom: 14px; border-radius: 2px; }
.service p { color: var(--ink-2); flex: 1; }
.service a { font-weight: 600; text-decoration: none; color: var(--accent-ink); }

.strengths { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; }
.strengths li { background: #fff; border-radius: var(--radius); padding: 26px; border: 1px solid var(--line); }
.strengths h3 { font-size: 1.15rem; margin-bottom: 8px; }
.strengths p { color: var(--ink-2); }
.industries { margin-top: 40px; }
.industries h3 { font-size: 1rem; margin-bottom: 12px; color: var(--muted); font-weight: 600; }
.industries ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.industries li { background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; font-size: .95rem; }

/* ── cards ── */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.card {
  display: flex; flex-direction: column; text-decoration: none; border-radius: var(--radius);
  overflow: hidden; background: #fff; border: 1px solid var(--line);
  transition: transform .15s, box-shadow .15s;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 12px 30px rgba(20,25,30,.1); }
.card[hidden] { display: none; }
.more-wrap { display: flex; justify-content: center; margin-top: 32px; }
.more-wrap .btn[hidden] { display: none; }
.more-wrap .btn { min-width: 220px; font-variant-numeric: tabular-nums; }
.card-media { aspect-ratio: 4 / 3; background: var(--bg-alt); overflow: hidden; }
.card-img { width: 100%; height: 100%; object-fit: cover; }
.img-ph { width: 100%; height: 100%; background: repeating-linear-gradient(45deg, #e6e9ec 0 10px, #eef0f2 10px 20px); }
.card-body { padding: 18px 20px 22px; display: flex; flex-direction: column; gap: 8px; }
.card-body h3 { font-size: 1.05rem; font-weight: 700; }
.card-meta { font-size: .85rem; color: var(--muted); display: flex; align-items: center; gap: 4px; }
.card-spec { font-size: .9rem; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.chip {
  display: inline-block; font-size: .78rem; font-weight: 600; padding: 2px 10px; border-radius: 999px;
  background: var(--accent-soft); color: var(--accent-ink);
}

/* ── process ── */
.process { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.process li { border: 1px solid rgba(255,255,255,.12); border-radius: var(--radius); padding: 26px; background: var(--steel-2); }
.step-no { font-weight: 800; color: var(--accent-on-dark); font-size: 1.4rem; }
.process h3 { margin: 8px 0; font-size: 1.2rem; }
.process p { color: #b9c1c8; }

/* ── faq ── */
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding: 20px 36px 20px 0; font-weight: 700; font-size: 1.08rem; position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 16px; font-size: 1.5rem; font-weight: 400; color: var(--muted); }
.faq details[open] summary::after { content: "−"; }
.faq details p { padding: 0 0 22px; color: var(--ink-2); }

/* ── contact ── */
.contact { display: grid; grid-template-columns: 1.3fr 1fr; gap: 48px; align-items: start; }
.contact h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 800; margin-bottom: 10px; }
.contact-list { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 14px; }
.contact-list li { display: flex; gap: 16px; align-items: baseline; font-size: 1.1rem; }
.contact-list span { width: 80px; flex: none; color: var(--muted); font-size: .95rem; }
.contact-list a { font-weight: 600; }
.contact-list .hours { width: auto; color: var(--ink); font-size: 1.1rem; font-weight: 600; display: flex; flex-direction: column; }
.contact-list .hours small { font-size: .88rem; font-weight: 400; color: var(--muted); }
.address-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; display: grid; gap: 10px; justify-items: start; }
.address { font-size: 1.1rem; font-weight: 600; }
.map-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }

/* ── page head / case ── */
.page-head { background: var(--bg-alt); padding: 48px 0 40px; border-bottom: 1px solid var(--line); }
.page-head h1 { font-size: clamp(1.6rem, 3.5vw, 2.3rem); font-weight: 800; }
.crumbs { font-size: .9rem; color: var(--muted); margin-bottom: 10px; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.filter {
  font: inherit; font-size: .95rem; padding: 8px 16px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--line); background: #fff; color: var(--ink-2);
}
.filter.is-active { background: var(--ink); color: #fff; border-color: var(--ink); }

.case-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; padding-top: 40px; padding-bottom: 40px; }
.case-media { display: flex; flex-direction: column; gap: 10px; align-self: start; min-width: 0; }
.case-thumbs { display: grid; grid-template-columns: repeat(var(--n, 4), 1fr); gap: 10px; }
.case-thumb-btn {
  padding: 0; border: 0; cursor: pointer; aspect-ratio: 1; border-radius: 10px; overflow: hidden;
  background: var(--bg-alt); opacity: .6; outline: 3px solid transparent; outline-offset: 2px;
  transition: opacity .15s, outline-color .15s;
}
.case-thumb-btn:hover { opacity: .9; }
.case-thumb-btn.is-active { opacity: 1; outline-color: var(--accent); }
.case-thumb-btn:focus-visible { outline-color: var(--navy); }
.case-thumb { width: 100%; height: 100%; object-fit: cover; }
.case-figure { margin: 0; border-radius: var(--radius); overflow: hidden; background: var(--bg-alt); }
.case-img { width: 100%; height: auto; }
.case-info { display: flex; flex-direction: column; gap: 24px; align-items: flex-start; }
.spec-table { width: 100%; border-collapse: collapse; }
.spec-table th, .spec-table td { text-align: left; padding: 12px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.spec-table th { width: 120px; color: var(--muted); font-weight: 500; font-size: .95rem; }
.spec-table td { font-variant-numeric: tabular-nums; }
.spec-table .chip { margin: 0 4px 4px 0; }
.case-text { color: var(--ink-2); }
.cta-box {
  display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap;
  background: var(--steel); color: #fff; border-radius: var(--radius); padding: 36px 40px; margin-bottom: 24px;
  max-width: calc(var(--wrap) - 40px);
}
.cta-box h2 { font-size: 1.5rem; margin-bottom: 6px; }
.cta-box p { color: #b9c1c8; }
.cta-actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* ── footer ── */
.site-footer { background: #1b2533; color: #9aa3ab; padding: 48px 0 96px; font-size: .92rem; }
.footer-inner { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.footer-inner p { margin-bottom: 6px; }
.footer-brand { color: #e6eaee; }
.footer-links { display: flex; gap: 18px; flex-wrap: wrap; }
.site-footer a { color: #d4d9de; }
.copyright { margin-top: 28px; font-size: .82rem; color: #6b747d; }

/* ── mobile CTA ── */
.mobile-cta { display: none; }

.toast {
  position: fixed; left: 50%; bottom: 90px; transform: translateX(-50%);
  background: var(--ink); color: #fff; padding: 10px 18px; border-radius: 999px; font-size: .95rem;
  z-index: 50; opacity: 0; transition: opacity .2s; pointer-events: none;
}
.toast.show { opacity: 1; }

@media (max-width: 900px) {
  .site-nav { display: none; }
  .header-call { margin-left: auto; }
  .mobile-nav { display: block; margin-left: 4px; }
  .contact, .case-grid { grid-template-columns: 1fr; }
  .contact { gap: 32px; }
}
@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  .header-call { display: none; }
  .mobile-nav { margin-left: auto; margin-right: -8px; }
  .mobile-nav-panel { padding: 4px 16px 20px; }
  .hero-inner { padding: 64px 16px 56px; }
  .js .home .hero-inner { padding-top: calc(64px + var(--header-h)); }
  .hero {
    background-image: linear-gradient(180deg, rgba(16,23,34,.62) 0%, rgba(16,23,34,.74) 45%, rgba(16,23,34,.45) 72%, rgba(16,23,34,.9) 100%), var(--hero-photo);
    background-position: 74% center;
  }
  .hero-stats { gap: 24px; }
  .hero-stats dd { font-size: 1.5rem; }
  .section { padding: 64px 0; }
  .cta-box { width: auto; padding: 28px 22px; margin: 0 16px 24px; }
  .cta-actions { width: 100%; }
  .cta-actions .btn { flex: 1 1 auto; }
  .case-grid { gap: 28px; padding: 24px 16px 40px; }   /* .wrap의 padding: 0 16px가 위아래 여백을 지우지 않게 */
  .contact-list li { flex-direction: column; gap: 2px; }
  .mobile-cta {
    display: grid; grid-template-columns: 1fr 1fr; position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
    background: var(--steel); border-top: 1px solid rgba(255,255,255,.1);
  }
  .mobile-cta a, .mobile-cta button {
    font: inherit; font-weight: 700; color: #fff; background: none; border: 0; padding: 16px 8px;
    text-align: center; text-decoration: none; cursor: pointer;
  }
  .mobile-cta a { background: var(--accent); }
}
