/* 공통 스타일 — tools/build-site.mjs 가 아트보드 <helmet> 에서 추출. 직접 수정하지 마세요. */
body{margin:0}
html{scroll-behavior:smooth;scroll-padding-top:84px}
.ttc-top{position:fixed;right:24px;bottom:24px;z-index:60;width:52px;height:52px;display:flex;align-items:center;justify-content:center;background:#13489D;color:#FFFFFF;border-radius:50%;box-shadow:0 6px 18px rgba(15,26,46,.25);text-decoration:none}
.ttc-top:hover{background:#0B2550;color:#FFFFFF}
.ttc-top:focus-visible{outline:3px solid #EF781E;outline-offset:3px}
@supports (animation-timeline: scroll()){.ttc-top{animation:ttcShow linear both;animation-timeline:scroll(root);animation-range:0 480px}}
@keyframes ttcShow{from{opacity:0;visibility:hidden;transform:translateY(12px)}to{opacity:1;visibility:visible;transform:none}}
a{color:#0F1A2E}a:hover{color:#4B5563}

/* ── 헤더 ─────────────────────────────────────────────────────────
   넓은 화면: 로고 · 메뉴 · CTA 가 한 줄. (아트보드 원본 레이아웃)
   1300px 미만: 한 줄 바(로고 + [메뉴] 버튼)로 접고, 메뉴는 펼침 패널로. */
.ttc-menu {
  display: flex; flex: 1 1 auto; min-width: 0;
  flex-wrap: wrap; align-items: center; gap: 12px 40px;
}
.ttc-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 40px }
.ttc-burger { display: none }

@media (max-width: 1299px) {
  .ttc-headbar {
    flex-wrap: nowrap !important;
    min-height: 60px !important;
    gap: 12px !important;
    position: relative;
  }
  .ttc-logo img { height: 30px !important }

  .ttc-burger {
    display: flex; align-items: center; gap: 8px;
    flex: none; margin-left: auto;
    min-height: 44px; padding: 0 12px 0 10px;
    border: 1px solid #0F1A2E; background: #FFFFFF; color: #0F1A2E;
    font: inherit; font-size: 15px; font-weight: 600; cursor: pointer;
  }
  .ttc-burger:focus-visible { outline: 3px solid #EF781E; outline-offset: 2px }
  .ttc-burger__close { display: none }
  .ttc-header.is-open .ttc-burger { background: #13489D; color: #FFFFFF; border-color: #13489D }
  .ttc-header.is-open .ttc-burger__open { display: none }
  .ttc-header.is-open .ttc-burger__close { display: block }

  /* 펼침 패널 — 헤더 높이를 늘리지 않도록 헤더 바 아래에 띄웁니다. */
  .ttc-menu {
    display: none;
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; flex-wrap: nowrap; gap: 0;
    align-items: stretch;
    background: #FFFFFF;
    border-top: 1px solid #0F1A2E; border-bottom: 1px solid #0F1A2E;
    box-shadow: 0 14px 28px rgba(15, 26, 46, .16);
    max-height: calc(100vh - 60px); overflow-y: auto;
    overscroll-behavior: contain;
  }
  .ttc-header.is-open .ttc-menu { display: flex }

  /* 원본 인라인 스타일의 flex-wrap: wrap 이 세로 배치에서 열 넘김을 일으키므로 끕니다. */
  .ttc-nav {
    flex: none !important;
    flex-direction: column !important;
    flex-wrap: nowrap !important;
    align-items: stretch !important;
    gap: 0 !important;
  }
  .ttc-nav > a {
    display: flex !important; align-items: center;
    min-height: 52px; padding: 0 clamp(20px, 4vw, 48px) !important;
    border-bottom: 1px solid #D4DCE8;
    font-size: 16px !important; font-weight: 600 !important;
  }
  .ttc-nav > a[aria-current="page"] {
    border-bottom: 1px solid #D4DCE8 !important;
    border-left: 4px solid #EF781E;
    padding-left: calc(clamp(20px, 4vw, 48px) - 4px) !important;
    background: #F3F6FA;
  }

  .ttc-cta { flex-direction: column; flex-wrap: nowrap; align-items: stretch; gap: 0 !important }
  .ttc-cta > a {
    justify-content: center;
    min-height: 56px !important;
    padding: 0 clamp(20px, 4vw, 48px) !important;
    border-top: 0 !important; border-left: 0 !important; border-right: 0 !important;
  }
}

/* ── 고객사 로고 ──────────────────────────────────────────────
   로고마다 가로세로 비율이 제각각이라, 같은 높이의 칸에 넣고 가운데
   맞춤으로 담아야 줄이 가지런해 보입니다. */
.ttc-clients {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px 10px;
  margin-top: 2px;
}
.ttc-client {
  display: flex; align-items: center; justify-content: center;
  height: 46px; padding: 6px 8px;
  border: 1px solid #E7ECF4; background: #FFFFFF;
}
.ttc-client img {
  max-width: 100%; max-height: 100%;
  object-fit: contain; display: block;
}
@media (max-width: 480px) {
  .ttc-clients { grid-template-columns: repeat(2, minmax(0, 1fr)) }
}

/* ── 소개 영상: 누르기 전까지 YouTube 를 부르지 않는 썸네일 ──
   바로 iframe 을 넣으면 방문만 해도 외부 추적이 시작되므로, 자체 호스팅한
   미리보기를 먼저 보여 주고 클릭할 때 youtube-nocookie 를 불러옵니다. */
.ttc-video { position: relative }
.ttc-video img { transition: transform .35s ease, filter .35s ease }
.ttc-video:hover img, .ttc-video:focus-visible img { transform: scale(1.03); filter: brightness(.9) }
.ttc-video__play {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 64px; height: 64px; border-radius: 50%;
  background: rgba(11, 37, 80, .82);
  box-shadow: 0 4px 20px rgba(15, 26, 46, .35);
  transition: background .25s ease, transform .25s ease;
}
.ttc-video__play::after {
  content: ""; position: absolute; left: 52%; top: 50%; transform: translate(-50%, -50%);
  border-style: solid; border-width: 11px 0 11px 18px;
  border-color: transparent transparent transparent #FFFFFF;
}
.ttc-video:hover .ttc-video__play { background: #EF781E; transform: translate(-50%, -50%) scale(1.06) }
.ttc-video:hover .ttc-video__play::after { border-left-color: #0F1A2E }
.ttc-video:focus-visible { outline: 3px solid #EF781E; outline-offset: 3px }
.ttc-video iframe { width: 100%; height: 100%; border: 0; display: block }

/* ── 도입 문의: 관심 사업 선택 칩 ── */
.ttc-chips { display: flex; flex-wrap: wrap; gap: 8px }
.ttc-chip {
  min-height: 44px; padding: 0 18px; font: inherit; font-size: 14px; cursor: pointer;
  background: #FFFFFF; color: #0F1A2E; border: 1.5px solid #8A919C; font-weight: 500;
}
.ttc-chip:hover { border-color: #13489D }
.ttc-chip[aria-pressed="true"] { background: #13489D; color: #FFFFFF; border-color: #13489D; font-weight: 700 }
.ttc-chip:focus-visible, .ttc-form :focus-visible { outline: 3px solid #EF781E; outline-offset: 2px }
.ttc-form { border: 0; margin: 0; position: relative }
.ttc-form button[disabled] { opacity: .55; cursor: progress }

/* ── 도입 문의: 전송 결과 안내 ── */
.ttc-formstatus {
  flex: 1 1 100%; margin: 0;
  padding: 14px 18px; font-size: 14.5px; line-height: 1.6;
  border-left: 3px solid #8A919C; background: #F3F6FA; color: #374151;
}
.ttc-formstatus.is-sending { border-left-color: #13489D }
.ttc-formstatus.is-ok      { border-left-color: #4F8C1F; background: #F1F8EA; color: #28510F }
.ttc-formstatus.is-error   { border-left-color: #B4322A; background: #FDF2F1; color: #7C241E }

/* ── 맨 위로 버튼: animation-timeline 미지원 브라우저는 site.js 가 토글 ── */
.ttc-top--js {
  opacity: 0; visibility: hidden; transform: translateY(12px);
  transition: opacity .2s ease, transform .2s ease, visibility .2s ease;
}
.ttc-top--js.is-visible { opacity: 1; visibility: visible; transform: none }
