/* =========================================================
   ㈜지오텍 홈페이지 스타일
   색상을 바꾸려면 아래 :root 의 값만 고치면 전체에 적용됩니다.
   ========================================================= */
:root {
  --navy: #0A1622;        /* 남색(가장 어두움) - 상단 메뉴, 하단, 문의 배경 */
  --navy-2: #12293F;      /* 남색(조금 밝음) - 핵심 숫자 띠, 대표이사 박스 */
  --accent: #18B4F0;      /* 포인트 하늘색 - 어두운 배경 위에서만 글자색으로 사용 */
  --accent-text: #0072A8; /* 흰 배경 위 강조 글자색 (글자 대비 기준 충족) */
  --bg-soft: #F4F8FC;     /* 연한 배경 */
  --line: #DCE7F2;        /* 테두리 */
  --text: #1A2230;        /* 본문 글자 */
  --text-sub: #4A5868;    /* 보조 글자 */
  --header-h: 72px;
  --radius: 18px;
  --font: "Noto Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
}

/* ---------- 기본 ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: var(--font);
  font-weight: 400;
  color: var(--text);
  background: #fff;
  line-height: 1.7;
  word-break: keep-all;
  overflow-wrap: break-word;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
section[id], [id="top"] { scroll-margin-top: var(--header-h); }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.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; }
.accent { color: var(--accent); }
.accent-text { color: var(--accent-text); }

/* 키보드 이동 시 초점 표시 */
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 200;
  background: #fff; color: var(--navy); padding: 10px 16px; border-radius: 8px; font-weight: 700;
}
.skip-link:focus { top: 12px; }

/* ---------- 버튼 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 26px; border-radius: 999px;
  font-weight: 700; font-size: 16px; text-decoration: none; white-space: nowrap;
  border: 2px solid transparent; transition: background .2s, color .2s, border-color .2s;
}
.btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.btn-primary { background: var(--accent); color: var(--navy); }
.btn-primary:hover { background: #4CC6F4; }
.btn-ghost { border-color: rgba(255,255,255,.55); color: #fff; }
.btn-ghost:hover { border-color: #fff; background: rgba(255,255,255,.08); }
.btn-sm { min-height: 40px; padding: 0 18px; font-size: 15px; }
.btn-lg { min-height: 56px; padding: 0 32px; font-size: 17px; }

/* ---------- 상단 메뉴 (스크롤해도 고정) ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100; height: var(--header-h);
  background: rgba(10, 22, 34, .92);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255,255,255,.06);
  transition: box-shadow .2s;
}
.site-header.is-scrolled { box-shadow: 0 6px 24px rgba(0,0,0,.25); }
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; }

.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: #fff; }
.brand-mark {
  width: 36px; height: 36px; border-radius: 9px; flex: none;
  display: grid; place-items: center;
  background: var(--accent); color: var(--navy); font-weight: 800; font-size: 20px; line-height: 1;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { font-size: 18px; font-weight: 800; }
.brand-text small { font-size: 11px; letter-spacing: .06em; color: rgba(255,255,255,.65); }

.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav ul { display: flex; gap: 28px; }
.site-nav ul a {
  color: rgba(255,255,255,.85); text-decoration: none; font-weight: 500; font-size: 15px;
  padding: 6px 0; border-bottom: 2px solid transparent;
}
.site-nav ul a:hover, .site-nav ul a.is-active { color: #fff; border-bottom-color: var(--accent); }

.nav-toggle { display: none; }

/* ---------- 히어로 ---------- */
.hero {
  position: relative; min-height: 88vh; min-height: 88svh;
  display: flex; align-items: center;
  padding: calc(var(--header-h) + 64px) 0 96px;
  color: #fff; background: #060d14; overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(6,13,20,.92) 0%, rgba(6,13,20,.72) 45%, rgba(6,13,20,.45) 100%),
    var(--hero-img, url("../images/hero-pcb.webp")) center / cover no-repeat;
  filter: saturate(.55) hue-rotate(170deg);
  transform: scale(1.04);
}
.hero-inner { position: relative; }
.hero-eyebrow { color: var(--accent); font-size: clamp(16px, 2vw, 22px); font-weight: 500; letter-spacing: .01em; }
.hero-title { margin-top: 14px; font-size: clamp(40px, 7vw, 76px); font-weight: 800; line-height: 1.2; letter-spacing: -.01em; }
.hero-tagline { margin-top: 40px; color: #7FB3E0; font-size: clamp(14px, 1.6vw, 18px); font-weight: 500; letter-spacing: .02em; }
.hero-rule { width: min(520px, 100%); margin: 18px 0; border: 0; border-top: 1px solid rgba(255,255,255,.35); }
.hero-desc { max-width: 640px; color: rgba(255,255,255,.82); font-size: clamp(15px, 1.6vw, 18px); }
.hero-actions { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- 핵심 숫자 ---------- */
.stats { background: var(--navy-2); color: #fff; }
.stats-list { display: grid; grid-template-columns: repeat(4, 1fr); }
.stats-list li { padding: 40px 16px; text-align: center; display: flex; flex-direction: column; gap: 6px; }
.stats-list li + li { border-left: 1px solid rgba(255,255,255,.12); }
.stat-num { color: var(--accent); font-size: clamp(34px, 4vw, 48px); font-weight: 800; line-height: 1.1; }
.stat-num small { font-size: .45em; font-weight: 700; margin-left: 2px; }
.stat-label { color: rgba(255,255,255,.82); font-size: 15px; }

/* ---------- 공통 섹션 ---------- */
.section { padding: 112px 0; }
.section-soft { background: var(--bg-soft); }
.sec-head {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 18px;
  padding-bottom: 24px; margin-bottom: 56px; border-bottom: 2px solid #222;
}
.sec-eyebrow { color: var(--accent-text); font-size: clamp(20px, 2.6vw, 32px); font-weight: 400; letter-spacing: -.01em; }
.sec-head h2 { font-size: clamp(26px, 3.2vw, 38px); font-weight: 700; color: #111; }
.sec-lead { color: var(--text-sub); font-size: 17px; margin-bottom: 28px; }

/* ---------- 인사말 ---------- */
.greeting { display: grid; grid-template-columns: 1.15fr 1fr; gap: 56px; align-items: start; }
.greeting-lead { font-size: clamp(24px, 3vw, 34px); font-weight: 700; line-height: 1.4; color: #111; margin-bottom: 28px; }
.greeting-text p:not(.greeting-lead):not(.greeting-sign) { color: #333; font-size: 17px; line-height: 1.95; }
.greeting-text p + p { margin-top: 22px; }
.greeting-sign { text-align: right; margin-top: 36px !important; font-size: 19px; color: #111; }
.greeting-sign strong { font-weight: 700; }
.greeting-photo img { width: 100%; aspect-ratio: 5 / 6; object-fit: cover; }

/* ---------- 사업분야 ---------- */
.industry-tags { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 40px; }
.industry-tags li {
  padding: 6px 16px; border-radius: 999px; background: #fff; border: 1px solid var(--line);
  color: var(--accent-text); font-weight: 500; font-size: 15px;
}
.biz-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.biz-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 36px 32px; }
.biz-head { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.biz-icon { width: 30px; height: 30px; fill: none; stroke: #3B7BB5; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.biz-code { font-size: 15px; font-weight: 800; letter-spacing: .08em; color: var(--accent-text); }
.biz-card h3 { font-size: 21px; font-weight: 800; color: #111; margin-bottom: 16px; }
.dot-list li { position: relative; padding-left: 18px; color: #3A4656; font-size: 16px; }
.dot-list li + li { margin-top: 8px; }
.dot-list li::before { content: ""; position: absolute; left: 2px; top: .72em; width: 5px; height: 5px; border-radius: 50%; background: #3A4656; }
.biz-desc { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line); color: var(--text-sub); font-size: 15px; }

/* ---------- 연혁 ---------- */
.ring-dot {
  display: inline-block; width: 26px; height: 26px; border-radius: 50%;
  background: var(--accent); border: 6px solid #C2ECFC; box-shadow: 0 0 0 0 transparent;
}
.ring-dot-sm { width: 18px; height: 18px; border-width: 4px; }
.history-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.history-card {
  background: var(--bg-soft); border: 1px solid var(--line); border-radius: 36px;
  padding: 32px 20px 40px; text-align: center; min-height: 290px;
}
.history-period { margin: 10px 0 22px; font-size: 30px; font-weight: 800; color: #313E50; }
.history-card ul li { font-size: 16px; color: #222; line-height: 1.6; }
.history-card ul li + li { margin-top: 12px; }
.history-card ul strong { font-weight: 800; color: #000; }

.cert-block { margin-top: 40px; display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 12px 28px; }
.cert-title { font-size: 16px; font-weight: 700; color: var(--accent-text); }
.cert-list { display: flex; flex-wrap: wrap; gap: 12px 28px; }
.cert-list li { display: flex; align-items: center; gap: 10px; font-size: 16px; color: #222; }

/* ---------- 설비 ---------- */
.equip-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; }
.equip-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 20px 26px; }
.equip-img { height: 220px; display: grid; place-items: center; margin-bottom: 18px; }
.equip-img img { max-height: 100%; width: auto; object-fit: contain; }
.equip-card h3 { font-size: 19px; font-weight: 700; color: #111; }
.equip-note { display: block; font-size: 15px; font-weight: 400; color: var(--text-sub); }
.equip-sub { margin-top: 4px; }
.equip-sub li { font-size: 15px; color: var(--text-sub); }
.equip-sub li::before { content: "* "; }

/* ---------- 조직도 ---------- */
.org { --gap: 40px; --c: #B9C5D1; max-width: 1100px; margin: 0 auto; text-align: center; }
.org-ceo {
  display: inline-block; min-width: 220px; padding: 26px 36px; border-radius: 14px;
  background: var(--navy-2); color: #fff; font-size: 20px; font-weight: 700; position: relative;
}
.org-ceo::after { content: ""; position: absolute; left: 50%; top: 100%; height: var(--gap); border-left: 1px solid var(--c); }
.org-l2, .org-l3 { position: relative; display: grid; gap: 24px; padding-top: var(--gap); }
.org-l2 { grid-template-columns: repeat(var(--cols, 3), 1fr); margin-top: var(--gap); max-width: 900px; margin-left: auto; margin-right: auto; }
.org-l3 { grid-template-columns: repeat(var(--cols, 5), 1fr); margin-top: var(--gap); gap: 16px; }
/* 가로 연결선 */
.org-l2::before { content: ""; position: absolute; top: 0; left: calc(100% / (var(--cols, 3) * 2)); right: calc(100% / (var(--cols, 3) * 2)); border-top: 1px solid var(--c); }
.org-l3::before { content: ""; position: absolute; top: 0; left: calc(100% / (var(--cols, 5) * 2)); right: calc(100% / (var(--cols, 5) * 2)); border-top: 1px solid var(--c); }
.org-l2 li, .org-l3 li {
  position: relative; background: var(--bg-soft); border: 1px solid var(--line); border-radius: 14px;
}
.org-l2 li { padding: 22px 12px; color: var(--accent-text); font-size: 19px; font-weight: 500; }
.org-l3 li { padding: 12px 8px; color: #111; font-size: 18px; border-radius: 10px; }
/* 세로 연결선 */
.org-l2 li::before, .org-l3 li::before { content: ""; position: absolute; left: 50%; bottom: 100%; height: var(--gap); border-left: 1px solid var(--c); }
.org-l2 li::before, .org-l3 li::before { height: calc(var(--gap) - 1px); }
.org-l2 li::before { display: block; }
.org-l2 li { margin-top: 0; }
.org-hub::after { content: ""; position: absolute; left: 50%; top: 100%; height: var(--gap); border-left: 1px solid var(--c); }

/* ---------- 문의 ---------- */
.contact-cta { background: var(--navy); color: #fff; text-align: center; padding: 120px 0; }
.cta-title { font-size: clamp(30px, 5vw, 56px); font-weight: 800; line-height: 1.3; letter-spacing: -.02em; }
.cta-sub { margin-top: 24px; color: #7FB3E0; font-size: clamp(15px, 1.8vw, 19px); font-weight: 500; }
.cta-rule { width: min(800px, 100%); margin: 36px auto; border: 0; border-top: 1px solid rgba(255,255,255,.3); }
.cta-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }

.company-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 56px; align-items: center; }
.company-info > div { display: grid; grid-template-columns: 140px 1fr; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.company-info > div:first-child { border-top: 1px solid var(--line); }
.company-info dt { font-weight: 800; color: var(--navy-2); font-size: 17px; line-height: 1.6; }
.company-info dd { font-size: 17px; color: #222; line-height: 1.6; }
.company-info dd strong { font-weight: 700; color: #111; }
.company-info a { color: var(--accent-text); text-decoration: none; }
.company-info a:hover { text-decoration: underline; }
.company-photo img { width: 100%; aspect-ratio: 5 / 6; object-fit: cover; }

/* ---------- 하단 ---------- */
.site-footer { background: var(--navy); color: rgba(255,255,255,.72); padding: 48px 0 40px; font-size: 14px; border-top: 1px solid rgba(255,255,255,.08); }
.footer-inner { display: grid; gap: 20px; }
.footer-brand { display: flex; align-items: center; gap: 10px; color: #fff; }
.footer-info { font-style: normal; line-height: 1.9; }
.footer-info span { margin-right: 18px; display: inline-block; }
.footer-info a { color: rgba(255,255,255,.88); text-decoration: none; }
.footer-info a:hover { text-decoration: underline; }
.footer-copy { color: rgba(255,255,255,.55); font-size: 13px; }
.footer-admin { color: rgba(255,255,255,.55); text-decoration: none; }
.footer-admin:hover { color: #fff; text-decoration: underline; }

/* =========================================================
   반응형
   ========================================================= */
@media (max-width: 1100px) {
  .equip-grid { grid-template-columns: repeat(3, 1fr); }
  .history-grid { grid-template-columns: repeat(2, 1fr); }
  .history-card { min-height: 0; }
}

/* 태블릿 이하: 햄버거 메뉴 */
@media (max-width: 960px) {
  .nav-toggle {
    display: grid; place-items: center; width: 44px; height: 44px; margin-right: -8px;
    background: none; border: 0; cursor: pointer; border-radius: 8px;
  }
  .nav-toggle-bar, .nav-toggle-bar::before, .nav-toggle-bar::after {
    display: block; width: 24px; height: 2px; background: #fff; border-radius: 2px; transition: transform .2s, background .2s;
  }
  .nav-toggle-bar { position: relative; }
  .nav-toggle-bar::before, .nav-toggle-bar::after { content: ""; position: absolute; left: 0; }
  .nav-toggle-bar::before { top: -7px; }
  .nav-toggle-bar::after { top: 7px; }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bar { background: transparent; }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bar::before { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bar::after { transform: translateY(-7px) rotate(-45deg); }

  .site-nav {
    position: fixed; top: var(--header-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--navy); padding: 8px 24px 28px;
    border-top: 1px solid rgba(255,255,255,.08);
    box-shadow: 0 16px 32px rgba(0,0,0,.35);
    display: none;
  }
  .site-nav.is-open { display: flex; }
  .site-nav ul { flex-direction: column; gap: 0; }
  .site-nav ul a { display: block; padding: 14px 0; font-size: 17px; border-bottom: 1px solid rgba(255,255,255,.08); }
  .site-nav ul a:hover, .site-nav ul a.is-active { border-bottom-color: rgba(255,255,255,.08); color: var(--accent); }
  .nav-cta { margin-top: 20px; min-height: 48px; }

  .greeting, .company-grid { grid-template-columns: 1fr; gap: 40px; }
  .greeting-photo img, .company-photo img { aspect-ratio: 16 / 10; }
  .biz-grid { grid-template-columns: 1fr; }
  .stats-list { grid-template-columns: repeat(2, 1fr); }
  .stats-list li:nth-child(3) { border-left: 0; }
  .stats-list li:nth-child(n+3) { border-top: 1px solid rgba(255,255,255,.12); }
}

/* 휴대폰 */
@media (max-width: 720px) {
  :root { --header-h: 64px; }
  .container { padding: 0 20px; }
  .section { padding: 72px 0; }
  .sec-head { margin-bottom: 36px; padding-bottom: 18px; }
  .hero { min-height: 0; padding: calc(var(--header-h) + 64px) 0 72px; }
  .hero-actions .btn { flex: 1 1 auto; }
  .stats-list li { padding: 28px 8px; }
  .stat-label { font-size: 13px; }
  .greeting-text p:not(.greeting-lead):not(.greeting-sign) { font-size: 16px; }
  .biz-card { padding: 28px 22px; }
  .history-grid { grid-template-columns: 1fr; gap: 16px; }
  .history-card { border-radius: 24px; padding: 28px 20px 30px; }
  .history-period { font-size: 26px; margin-bottom: 16px; }
  .cert-block { justify-content: flex-start; }
  .equip-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .equip-card { padding: 14px 14px 20px; }
  .equip-img { height: 150px; }
  .equip-card h3 { font-size: 17px; }

  /* 조직도: 휴대폰에서는 세로로 쌓기 */
  .org { --gap: 24px; }
  .org-ceo { min-width: 180px; padding: 18px 28px; font-size: 18px; }
  .org-l2 { grid-template-columns: 1fr; gap: 10px; }
  .org-l3 { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .org-l3 li:last-child { grid-column: 1 / -1; }
  .org-l2::before, .org-l3::before, .org-l2 li::before, .org-l3 li::before, .org-hub::after { display: none; }
  .org-l2 li { padding: 16px 12px; font-size: 17px; }
  .org-l3 li { font-size: 16px; }
  .org-l3 { padding-top: 0; margin-top: 10px; }
  .org-l2 { padding-top: 0; }
  .org-ceo::after { height: var(--gap); }

  .contact-cta { padding: 80px 0; }
  .cta-actions .btn { width: 100%; }
  .company-info > div { grid-template-columns: 96px 1fr; gap: 12px; }
  .company-info dt, .company-info dd { font-size: 15px; }
}

@media (max-width: 380px) {
  .brand-text small { display: none; }
  .btn-lg { padding: 0 20px; font-size: 16px; }
}
