/* ============================================================
   InstallX — shared stylesheet
   Single source of truth for the site chrome (header/footer),
   layout primitives, and ALL responsive behavior.

   Rules of the road:
   - Layout that must change at a breakpoint lives HERE, in a
     class. Never in an inline style (inline always wins), and
     never matched via [style*="…"] selectors.
   - One-off decorative styles (colors, one-off spacing) may
     stay inline in the page.
   - Page-specific responsive tweaks go in a small <style>
     block in that page, using classes — same breakpoints.
   Breakpoints: 1024px (tablet) · 768px (mobile) · 480px (small)
   ============================================================ */

/* ---------- base ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: clip; }
body {
  margin: 0;
  background: #f4f5f8;
  color: #16213a;
  font-family: 'Pretendard Variable', 'Pretendard', sans-serif;
  overflow-wrap: break-word;
}
img, video, svg { max-width: 100%; height: auto; }
::selection { background: #004070; color: #fff; }
/* auto line-balancing on main headings only; subheads & body wrap by width */
h1, h2 { text-wrap: balance; }

/* ---------- keyframes ---------- */
@keyframes ix-blink { 0%,100% { opacity: 0.35; } 50% { opacity: 1; } }
@keyframes ix-pulse { 0% { transform: scale(1); opacity: 0.55; } 70% { opacity: 0; } 100% { transform: scale(4.2); opacity: 0; } }
@keyframes ix-core  { 0%,100% { opacity: 0.75; } 50% { opacity: 1; } }
@keyframes ix-dash  { to { stroke-dashoffset: -22; } }

/* ---------- typography helpers ---------- */
.mono { font-family: 'Pretendard Variable','Pretendard',sans-serif; }
.eyebrow {
  font-family: 'Pretendard Variable','Pretendard',sans-serif;
  font-size: 12px; font-weight: 500;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: #004070;
}
.eyebrow--light { color: #9aa6c2; }
.eyebrow--sky   { color: #88BCE7; }

/* ---------- buttons & links ---------- */
.btn-primary {
  display: inline-flex; align-items: center; gap: 10px;
  background: #004070; color: #fff;
  padding: 12px 20px; border-radius: 8px;
  font-size:15px; font-weight: 600;
  text-decoration: none; white-space: nowrap;
}
.link-arrow {
  display: inline-flex; align-items: center; gap: 10px;
  color: #004070; text-decoration: none;
  font-family: 'Pretendard Variable','Pretendard',sans-serif;
  font-size: 12px; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase;
}
.link-arrow--sky { color: #88BCE7; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(244,245,248,0.88);
  border-bottom: 1px solid rgba(18,28,55,0.08);
}
.site-header__bar {
  width: 100%; padding: 19px 30px;
  display: flex; align-items: center; gap: 34px;
}
.site-header__logo { display: flex; align-items: center; text-decoration: none; flex: none; }
.site-header__logo img { height: 46px; width: auto; display: block; }
.site-nav { display: flex; align-items: center; gap: 30px; font-size:17px; font-weight: 500; }
.site-nav a { color: #3a4664; text-decoration: none; white-space: nowrap; flex: none; position: relative; padding: 8px 0; transition: color .15s ease; }
.site-nav a:hover { color: #16213a; }
.site-nav a.active { color: #004070; font-weight: 600; }
.site-nav a.active::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2.5px; background: #004070; border-radius: 2px; }
.site-header__actions { margin-left: auto; display: flex; align-items: center; gap: 14px; }
/* hamburger (mobile only — hidden on desktop) */
.nav-toggle {
  display: none;
  width: 40px; height: 40px; flex: none; padding: 0;
  border: 1px solid rgba(18,28,55,0.16); border-radius: 8px;
  background: transparent; cursor: pointer;
  flex-direction: column; align-items: center; justify-content: center; gap: 5px;
}
.nav-toggle span {
  display: block; width: 18px; height: 2px; border-radius: 2px;
  background: #3a4664;
  transition: transform 0.25s ease, opacity 0.2s ease;
}
.menu-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-open .nav-toggle span:nth-child(2) { opacity: 0; }
.menu-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- footer ---------- */
.site-footer { background: #eef1f6; border-top: 1px solid rgba(18,28,55,0.08); }
.site-footer__inner { max-width: 1320px; margin: 0 auto; padding: 48px 40px; }
.site-footer__top { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 40px; }
.site-footer__brand { display: flex; align-items: center; gap: 16px; }
.site-footer__brand img { height: 48px; width: auto; display: block; margin-left: -8px; }
.site-footer__tagline { font-size: 15px; color: #5d6b8a; border-left: 1px solid rgba(18,28,55,0.16); padding-left: 16px; }
.site-footer__right { display: flex; flex-direction: column; align-items: flex-end; gap: 20px; }
.site-footer__nav { display: flex; align-items: center; gap: 28px; font-size:15px; font-weight: 600; }
.site-footer__nav a { color: #16213a; text-decoration: none; }
.site-footer__contact { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.site-footer__contact-label {
  font-family: 'Pretendard Variable','Pretendard',sans-serif; font-size: 11px;
  letter-spacing: 0.18em; color: #9aa6c2; text-transform: uppercase;
}
.site-footer__contact a { font-size: 15px; color: #3a4664; text-decoration: none; }
.site-footer__legal {
  margin-top: 32px; border-top: 1px solid rgba(18,28,55,0.1); padding-top: 24px;
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px;
  font-family: 'Pretendard Variable','Pretendard',sans-serif; font-size: 11px;
  letter-spacing: 0.06em; color: #9aa6c2;
}

/* ---------- layout primitives ---------- */
.wrap {
  max-width: 1320px; margin-left: auto; margin-right: auto;
  padding-left: 40px; padding-right: 40px;
  /* vertical rhythm: pages set --pt/--pb inline; mobile scales them down */
  padding-top: var(--pt, 0px); padding-bottom: var(--pb, 0px);
}

.grid { display: grid; gap: 24px; }
.grid > * { min-width: 0; } /* prevent long/nowrap content from blowing out fr tracks */
.cols-2 { grid-template-columns: repeat(2, 1fr); }
.cols-3 { grid-template-columns: repeat(3, 1fr); }
.cols-4 { grid-template-columns: repeat(4, 1fr); }
.cols-5 { grid-template-columns: repeat(5, 1fr); }
/* asymmetric splits */
.split-145   { grid-template-columns: 1.45fr 1fr; }
.split-155   { grid-template-columns: 1.55fr 1fr; }
.split-105   { grid-template-columns: 1.05fr 1fr; }
.split-09-11 { grid-template-columns: 0.9fr 1.1fr; }
.split-09-13 { grid-template-columns: 0.9fr 1.3fr; }

/* landing "We don't just deliver" intro — 제목을 한 줄로 두고 옆 본문 폭을 줄인다 */
.diff-intro { grid-template-columns: 1.95fr 1fr; align-items: start; }

/* 섹션 제목 공통 크기 — 페이지마다 52/46/42/38px로 흩어져 있던 것을 한 곳으로 모음.
   Contact 페이지는 폼 위 제목이라 의도적으로 36px을 유지한다. */
.sec-h2 { font-size: clamp(28px, 3.6vw, 46px); }

/* 섹션 제목 공통 서체 — 굵기 700 / 자간 -0.03em / 행간 1.04.
   기존에 700·800이 섞이고 행간이 1.02~1.06으로 흩어져 있던 것을 맞춤.
   Contact 은 크기만 36px 예외이고(.sec-h2--sm) 서체는 동일하다. */
.sec-h2, .sec-h2 > span {
  font-weight: 700; letter-spacing: -0.03em; line-height: 1.04;
}
.sec-h2--sm { font-size: clamp(24px, 2.8vw, 36px); }
/* card → arrow → card → arrow → card flows */
.flow-3 { grid-template-columns: 1fr auto 1fr auto 1fr; }
.flow-arrow { display: flex; align-items: center; justify-content: center; }

/* dark full-bleed section */
.sec-dark {
  background: #0a0e1b;
  background-image: radial-gradient(120% 100% at 50% -10%, rgba(98,118,152,0.16), transparent 55%);
}

/* hairline-divided white cell grids (difference / service stack) */
.cell-grid { gap: 1px; background: rgba(18,28,55,0.09); border: 1px solid rgba(18,28,55,0.09); border-radius: 6px; overflow: hidden; }
.cell { background: #fff; padding: 34px 30px 38px; display: flex; flex-direction: column; }
.cell--min190 { min-height: 190px; }
.cell--min230 { min-height: 230px; }

/* hover cards */
.aud-card { transition: transform 0.3s ease, background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease; }
.aud-card:hover { transform: translateY(-6px); background: rgba(255,255,255,0.07); border-color: rgba(136,188,231,0.55); box-shadow: 0 18px 40px rgba(0,0,0,0.35); }
.svc-card { transition: background 0.25s ease; }
.svc-card:hover { background: #f3f5fb; }

/* news cards */
.news-card {
  display: flex; flex-direction: column; text-decoration: none;
  background: #fff; border: 1px solid rgba(18,28,55,0.10); border-radius: 12px; overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.news-card:hover { transform: translateY(-4px); box-shadow: 0 16px 36px rgba(18,28,55,0.12); border-color: rgba(136,188,231,0.6); }
.news-thumb { aspect-ratio: 16 / 10; background-size: cover; background-position: center; background-color: #0a0e1b; }

/* newsroom filter chips */
.filter-chip {
  font-family: 'Pretendard Variable','Pretendard',sans-serif; font-size: 12px; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase;
  padding: 9px 18px; border-radius: 30px;
  border: 1px solid rgba(18,28,55,0.18); background: #fff; color: #3a4664;
  cursor: pointer; transition: all 0.2s ease;
}
.filter-chip:hover { border-color: rgba(136,188,231,0.7); }
.filter-chip.active { background: #004070; color: #fff; border-color: #004070; }

/* coverage panels (index + About): desktop padding via --pad, compact on mobile */
.cov-panel { padding: var(--pad, 40px); }
/* stat row inside coverage panels (hidden on mobile via .m-hide) */
.stat-row { display: flex; gap: 40px; flex-wrap: wrap; margin-bottom: 30px; }

/* pill chips (hub / region lists) */
.chip { display: inline-flex; align-items: center; gap: 7px; border-radius: 30px; padding: 7px 14px; font-size:12px; font-weight: 500; }
.chip .dot { width: 6px; height: 6px; border-radius: 50%; flex: none; }
.chip--dark { background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.12); color: #dbe4fb; }
.chip--dark .dot { background: #88BCE7; }
.chip--light { background: rgba(0,64,112,0.05); border: 1px solid rgba(0,64,112,0.14); color: #3a4664; }
.chip--light .dot { background: #004070; }

/* chip rows: wrap on desktop, one-line swipe row on mobile */
.chip-row { display: flex; flex-wrap: wrap; gap: 10px; }

/* mobile card carousel (grid on desktop, swipe row on mobile) */
.carousel-dots { display: none; justify-content: center; gap: 8px; margin-top: 18px; }
.carousel-dots button { width: 8px; height: 8px; border-radius: 50%; border: none; background: rgba(18,28,55,0.22); padding: 0; cursor: pointer; transition: all 0.2s ease; }
.carousel-dots button.active { background: #004070; width: 22px; border-radius: 4px; }

/* form inputs */
.ix-input::placeholder { color: #9aa6c2; }
.ix-input:focus { outline: none; border-color: #4f7bf2; box-shadow: 0 0 0 3px rgba(79,123,242,0.14); }

/* index hero */
.hero-sec { padding: 0 0 72px; }
.hero-panel {
  position: relative; overflow: hidden;
  background: #0a0e1b;
  background-image: radial-gradient(120% 90% at 50% -8%, rgba(98,118,152,0.16), transparent 55%);
  padding: 80px 64px 84px;
}
.hero-media {
  position: relative; aspect-ratio: 10 / 3; border-radius: 6px; overflow: hidden;
  background: #0a0e1b; box-shadow: inset 0 0 0 1px rgba(120,150,220,0.06);
}
.hero-title {
  margin: 0; font-size: clamp(34px, 4.6vw, 62px); line-height: 1.02;
  font-weight: 700; letter-spacing: -0.035em; color: #f4f7ff; text-wrap: balance;
}



#heroGrid {
  position: absolute; inset: 0; pointer-events: none;
  display: grid; grid-template-columns: repeat(10, 1fr); grid-template-rows: repeat(3, 1fr); gap: 2px;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

/* ---- TABLET ≤1024px ---- */
@media (max-width: 1024px) {
  .cols-3, .cols-4 { grid-template-columns: repeat(2, 1fr); }
  .cols-5 { grid-template-columns: repeat(3, 1fr); }
  .split-155, .split-105, .split-09-11, .split-09-13, .flow-3 { grid-template-columns: 1fr; }
  .flow-arrow { transform: rotate(90deg); justify-self: center; }
}

/* ---- MOBILE ≤768px ---- */
@media (max-width: 768px) {
  .wrap {
    padding-left: 24px; padding-right: 24px;
    padding-top: calc(var(--pt, 0px) * 0.62);
    padding-bottom: calc(var(--pb, 0px) * 0.62);
  }

  /* chip rows become one-line swipe rows, bleeding to the screen edge */
  .chip-row {
    flex-wrap: nowrap; overflow-x: auto;
    -webkit-overflow-scrolling: touch; scrollbar-width: none;
    margin-left: -24px; margin-right: -24px;
    padding-left: 24px; padding-right: 24px;
  }
  .chip-row::-webkit-scrollbar { display: none; }
  .chip-row > * { flex: none; }

  /* coverage panels: tighter padding, smaller quieter chips, no duplicate stat */
  .cov-panel { padding: 28px 20px 32px; }
  .chip { font-size: 11.5px; padding: 5px 11px; gap: 6px; }
  .m-hide { display: none; }

  /* footer: left-aligned stack */
  .site-footer__inner { padding: 36px 24px; }
  .site-footer__right { align-items: flex-start; }
  .site-footer__contact { align-items: flex-start; }
  .site-footer__legal { flex-direction: column; gap: 8px; }

  .cols-2, .cols-3, .cols-4, .cols-5,
  .split-145, .split-155, .split-105, .split-09-11, .split-09-13,
  .flow-3 { grid-template-columns: 1fr; }

  /* grids that stay 2-up on phones (compact text cards) */
  .grid.m-2col { grid-template-columns: repeat(2, 1fr); }
  .m-2col .cell { padding: 20px 16px 22px; }
  .cell--min190, .cell--min230 { min-height: 0; }

  /* header: hamburger + drop-down drawer replaces the desktop nav */
  .site-header__bar { flex-wrap: wrap; gap: 14px; padding: 12px 18px; }
  .nav-toggle { display: flex; }
  .site-nav { display: none; }
  .menu-open .site-nav {
    display: flex; order: 3; width: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 6px 0 10px;
  }
  .menu-open .site-nav a {
    padding: 13px 2px; font-size:15px;
    border-top: 1px solid rgba(18,28,55,0.07);
  }
  .menu-open .site-nav a.active::after { display: none; }

  /* split sections: text reads first when stacked, image follows below */
  [data-feat-img] { order: 1; }

  /* card carousel: horizontal swipe with snap */
  .card-carousel {
    display: flex; grid-template-columns: none;
    overflow-x: auto; scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch; scrollbar-width: none;
    gap: 14px; margin-left: -24px; margin-right: -24px; padding: 4px 24px 10px;
  }
  .card-carousel::-webkit-scrollbar { display: none; }
  .card-carousel > * { flex: 0 0 84%; scroll-snap-align: center; }
  .carousel-dots { display: flex; }

  /* index hero: full-bleed media, bigger title (10:3 tile mosaic kept as designed) */
  .hero-sec { padding-bottom: 0; }
  .hero-panel { padding: 48px 24px 40px; }
  .hero-media { border-radius: 0; margin-left: -24px; margin-right: -24px; }
  .hero-title { font-size: clamp(30px, 9vw, 44px); }
  .hero-panel .eyebrow { font-size: 12px !important; letter-spacing: 0.12em !important; }
  /* hero subcopy: smaller and forced to wrap (was running one long line) */
  .hero-lead { font-size: 14px !important; line-height: 1.5; max-width: 34ch !important; }
  /* index landing hero: keep subcopy on one line, tighter gap under the title */
  .hero-panel .hero-lead { max-width: none !important; margin-top: 12px !important; }
  #heroGrid { gap: 0; }
  #heroGrid > div { box-shadow: 0 0 0 0.5px #0a0e1b, inset 0 0 0 1px rgba(120,150,220,0.12) !important; }
  /* glass tiles: match the gap:0 grid (perfect squares at tile positions) */
  .hero-glass { width: 10% !important; height: 33.333% !important; }
  .g-tl { left: 10% !important; top: 0 !important; }
  .g-tr { left: 80% !important; top: 0 !important; }
  .g-bl { left: 10% !important; top: 66.666% !important; }
  .g-br { left: 80% !important; top: 66.666% !important; }

  /* hero/page-header H1s carry a hard-coded desktop clamp (min 36px) that,
     with their forced <br>, is wider than a phone and pushes the whole page
     into horizontal overflow. Scale the H1 to the viewport on small screens. */
  .wrap h1 { font-size: clamp(30px, 8.6vw, 46px) !important; }
  /* index 'difference' intro: tighten heading-to-text gap when stacked */
  .diff-intro { gap: 22px !important; margin-bottom: 36px !important; }
}

/* ---- SMALL MOBILE ≤480px ---- */
@media (max-width: 480px) {
  .wrap { padding-left: 20px; padding-right: 20px; }
}

/* ===== TEMP: VOC 개편 중 문의 접점 비활성화 (되돌리려면 이 블록만 삭제) =====
   헤더 'Contact Us' 버튼, 푸터 Contact 링크, 본문 Contact 링크, 전화번호(tel:)를
   클릭해도 아무 반응 없게 만듦. 표시는 그대로 두되 클릭만 막음. */
a[href="Contact"],
a[href="Contact.html"],
a[href="/Contact"],
a[href^="tel:"] {
  pointer-events: none;
  cursor: default;
}
/* 전화번호는 아예 화면에서 내림 ('Get in touch' 라벨 포함 블록 전체) */
.site-footer__contact { display: none; }
