/* (주)구구 홈페이지 공통 스타일 */
@import url("https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/static/pretendard.min.css");

:root {
  --yellow: #f2b705;
  --yellow-soft: #fff6d6;
  --green: #1f6b45;
  --green-soft: #e8f2ec;
  --ink: #1d2327;
  --ink-2: #4a5359;
  --ink-3: #7b858c;
  --line: #e3e6e8;
  --bg: #ffffff;
  --bg-alt: #f6f7f8;
  --radius: 10px;
  --wrap: 1180px;
  --header-h: 72px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  font-family: "Pretendard", -apple-system, "Malgun Gothic", sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.7;
  word-break: keep-all;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { line-height: 1.3; margin: 0 0 .5em; letter-spacing: -0.02em; }
p { margin: 0 0 1em; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.section { padding: 88px 0; }
.section.alt { background: var(--bg-alt); }
.eyebrow {
  display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: .12em;
  color: var(--green); text-transform: uppercase; margin-bottom: 10px;
}
.section-title { font-size: clamp(26px, 3.2vw, 36px); font-weight: 800; }
.section-lead { color: var(--ink-2); font-size: 17px; max-width: 720px; }
.section-head { margin-bottom: 44px; }
.section-head.center { text-align: center; }
.section-head.center .section-lead { margin: 0 auto; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50; height: var(--header-h);
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { height: 100%; display: flex; align-items: center; justify-content: space-between; }
.logo img { height: 40px; width: auto; }
.nav { display: flex; gap: 6px; align-items: center; }
.nav > li { position: relative; list-style: none; }
.nav ul { margin: 0; padding: 0; }
.nav > li > a {
  display: block; padding: 10px 16px; font-weight: 600; font-size: 16px; border-radius: 8px;
}
.nav > li > a:hover, .nav > li > a.active { color: var(--green); }
.nav .sub {
  position: absolute; top: 100%; left: 0; min-width: 210px; padding: 8px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: 0 12px 32px rgba(0,0,0,.08);
  opacity: 0; visibility: hidden; transform: translateY(6px); transition: .18s;
}
.nav > li:hover .sub, .nav > li:focus-within .sub { opacity: 1; visibility: visible; transform: none; }
.nav .sub a { display: block; padding: 9px 12px; border-radius: 6px; font-size: 15px; color: var(--ink-2); }
.nav .sub a:hover { background: var(--bg-alt); color: var(--ink); }
.nav-cta { margin-left: 10px; }
.menu-btn { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.menu-btn span { display: block; width: 24px; height: 2px; background: var(--ink); margin: 5px 0; transition: .2s; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 13px 24px;
  font-weight: 700; font-size: 16px; border-radius: 8px; border: 2px solid transparent;
  transition: .15s; cursor: pointer; white-space: nowrap;
}
.btn-primary { background: var(--yellow); color: var(--ink); }
.btn-primary:hover { background: #ffc61a; }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #000; }
.btn-ghost { border-color: currentColor; }
.btn-ghost:hover { background: rgba(255,255,255,.1); }
.btn-outline { border-color: var(--line); background: #fff; }
.btn-outline:hover { border-color: var(--ink); }
.btn-sm { padding: 9px 16px; font-size: 14px; }

/* ---------- Hero ---------- */
.hero {
  position: relative; color: #fff; min-height: 620px; display: flex; align-items: center;
  background: #12181b url("../images/history-steel.jpg") center 30%/cover no-repeat;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(14,20,23,.92) 0%, rgba(14,20,23,.75) 45%, rgba(14,20,23,.25) 100%);
}
.hero .wrap { position: relative; width: 100%; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px;
  background: rgba(242,183,5,.16); color: var(--yellow); font-weight: 700; font-size: 14px; margin-bottom: 22px;
}
.hero h1 { font-size: clamp(34px, 5vw, 58px); font-weight: 800; margin-bottom: 20px; }
.hero h1 em { font-style: normal; color: var(--yellow); }
.hero p { font-size: clamp(17px, 1.6vw, 20px); color: rgba(255,255,255,.85); max-width: 560px; margin-bottom: 34px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- Page banner (sub pages) ---------- */
.page-banner {
  background: var(--ink); color: #fff; padding: 64px 0 56px; position: relative; overflow: hidden;
}
.page-banner::after {
  content: ""; position: absolute; right: -60px; top: -60px; width: 280px; height: 280px;
  background: url("../images/logo-mark.png") center/contain no-repeat; opacity: .12;
}
.page-banner h1 { font-size: clamp(30px, 4vw, 44px); font-weight: 800; margin: 0; }
.page-banner p { color: rgba(255,255,255,.75); margin: 10px 0 0; font-size: 17px; }
.breadcrumb { font-size: 14px; color: rgba(255,255,255,.6); margin-bottom: 12px; }
.subnav { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: var(--header-h); z-index: 40; }
.subnav .wrap { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.subnav a { padding: 16px 18px; font-weight: 600; color: var(--ink-3); white-space: nowrap; border-bottom: 3px solid transparent; }
.subnav a:hover { color: var(--ink); }
.subnav a.active { color: var(--ink); border-bottom-color: var(--yellow); }

/* ---------- Cards / grids ---------- */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  transition: .2s; display: flex; flex-direction: column;
}
a.card:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(0,0,0,.08); border-color: transparent; }
.card-img { aspect-ratio: 4/3; background: var(--bg-alt); overflow: hidden; }
.card-img img { width: 100%; height: 100%; object-fit: cover; }
.card-img.contain img { object-fit: contain; padding: 18px; }
.card-body { padding: 22px 24px 26px; flex: 1; display: flex; flex-direction: column; }
.card-body h3 { font-size: 20px; font-weight: 800; }
.card-body p { color: var(--ink-2); font-size: 15px; flex: 1; }
.card-tag { font-size: 13px; color: var(--green); font-weight: 700; margin-bottom: 6px; }
.more { font-weight: 700; color: var(--green); font-size: 15px; }
.more::after { content: " →"; }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.stat { background: #fff; padding: 30px 24px; }
.stat b { display: block; font-size: 30px; font-weight: 800; color: var(--ink); line-height: 1.2; }
.stat b small { font-size: 16px; font-weight: 700; margin-left: 2px; }
.stat span { color: var(--ink-3); font-size: 14px; }

/* ---------- Feature list ---------- */
.feature { display: flex; gap: 16px; align-items: flex-start; }
.feature-num {
  flex: none; width: 40px; height: 40px; border-radius: 8px; background: var(--yellow);
  display: grid; place-items: center; font-weight: 800;
}
.feature h4 { font-size: 17px; font-weight: 700; margin-bottom: 4px; }
.feature p { color: var(--ink-2); font-size: 15px; margin: 0; }

.check-list { list-style: none; padding: 0; margin: 0 0 1em; }
.check-list li { position: relative; padding-left: 28px; margin-bottom: 10px; color: var(--ink-2); }
.check-list li::before {
  content: ""; position: absolute; left: 0; top: 7px; width: 16px; height: 16px; border-radius: 4px;
  background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='white' stroke-width='2'/%3E%3C/svg%3E") center/12px no-repeat;
}

/* ---------- Split ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split.top { align-items: start; }
.split-img { border-radius: var(--radius); overflow: hidden; }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
table { width: 100%; border-collapse: collapse; font-size: 15px; background: #fff; }
th, td { padding: 13px 16px; border-bottom: 1px solid var(--line); text-align: center; }
th { background: var(--bg-alt); font-weight: 700; }
td:first-child { font-weight: 700; }
tr:last-child td { border-bottom: 0; }
.dot { color: var(--green); font-size: 18px; }

/* ---------- FAQ ---------- */
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding: 20px 40px 20px 0; position: relative;
  font-weight: 700; font-size: 17px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before { content: "Q"; color: var(--green); font-weight: 800; margin-right: 12px; }
.faq summary::after {
  content: "+"; position: absolute; right: 6px; top: 16px; font-size: 24px; font-weight: 400; color: var(--ink-3); transition: .2s;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .answer { padding: 0 0 22px 28px; color: var(--ink-2); }
.faq .answer p:last-child { margin: 0; }

/* ---------- Timeline ---------- */
.timeline { border-left: 2px solid var(--line); margin-left: 8px; }
.tl-year { position: relative; padding: 0 0 36px 36px; }
.tl-year::before {
  content: ""; position: absolute; left: -9px; top: 6px; width: 16px; height: 16px;
  border-radius: 50%; background: var(--yellow); border: 3px solid #fff; box-shadow: 0 0 0 1px var(--line);
}
.tl-year h3 { font-size: 26px; font-weight: 800; margin-bottom: 12px; }
.tl-year ul { list-style: none; padding: 0; margin: 0; }
.tl-year li { display: flex; gap: 14px; padding: 6px 0; color: var(--ink-2); }
.tl-year li b { flex: none; width: 28px; color: var(--ink); }

/* ---------- Org chart ---------- */
.org { display: flex; flex-direction: column; align-items: center; gap: 0; }
.org-node {
  padding: 14px 32px; border-radius: 8px; font-weight: 700; font-size: 17px; text-align: center; min-width: 150px;
}
.org-ceo { background: var(--ink); color: #fff; }
.org-vp { background: var(--yellow); }
.org-dept { background: #fff; border: 2px solid var(--green); color: var(--green); }
.org-line { width: 2px; height: 28px; background: var(--line); }
.org-row { display: flex; gap: 24px; position: relative; padding-top: 28px; }
.org-row::before { content: ""; position: absolute; top: 0; left: 75px; right: 75px; height: 2px; background: var(--line); }
.org-row > div { position: relative; }
.org-row > div::before { content: ""; position: absolute; top: -28px; left: 50%; width: 2px; height: 28px; background: var(--line); }

/* ---------- Values (C-H-A-N-G-E) ---------- */
.values { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
.value { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 14px; text-align: center; }
.value .letter { font-size: 44px; font-weight: 900; color: var(--yellow); line-height: 1; }
.value .en { font-weight: 700; margin-top: 10px; font-size: 15px; }
.value .ko { color: var(--ink-3); font-size: 14px; }

/* ---------- Gallery / lightbox ---------- */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.gallery a { display: block; border-radius: 8px; overflow: hidden; border: 1px solid var(--line); background: #fff; }
.gallery img { width: 100%; aspect-ratio: 16/9; object-fit: cover; transition: .3s; }
.gallery a:hover img { transform: scale(1.03); }
.gallery.portrait img { aspect-ratio: 3/4; object-fit: contain; background: #fff; }
.zoomable { cursor: zoom-in; }
.figure { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; }
.figure + .figure { margin-top: 24px; }
.caption { font-size: 14px; color: var(--ink-3); margin-top: 8px; text-align: center; }

.lightbox {
  position: fixed; inset: 0; z-index: 100; background: rgba(0,0,0,.9);
  display: none; align-items: center; justify-content: center; padding: 40px 20px;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 100%; max-height: 100%; object-fit: contain; }
.lightbox button {
  position: absolute; background: rgba(255,255,255,.12); color: #fff; border: 0; cursor: pointer;
  width: 48px; height: 48px; border-radius: 50%; font-size: 22px;
}
.lb-close { top: 16px; right: 16px; }
.lb-prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 16px; top: 50%; transform: translateY(-50%); }

/* ---------- Video ---------- */
.video { position: relative; aspect-ratio: 16/9; border-radius: var(--radius); overflow: hidden; background: #000; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-title { font-weight: 700; margin-top: 14px; font-size: 17px; }
.video-desc { color: var(--ink-3); font-size: 14px; }

/* ---------- Cert list ---------- */
.cert-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.cert-item {
  display: flex; gap: 14px; align-items: center; background: #fff; border: 1px solid var(--line);
  border-radius: 8px; padding: 16px 18px;
}
.cert-type {
  flex: none; font-size: 12px; font-weight: 800; padding: 4px 8px; border-radius: 4px;
  background: var(--green-soft); color: var(--green);
}
.cert-type.design { background: var(--yellow-soft); color: #8a6a00; }
.cert-type.safety { background: var(--ink); color: #fff; }
.cert-item b { display: block; font-size: 15px; }
.cert-item span { font-size: 13px; color: var(--ink-3); }

/* ---------- News ---------- */
.news-list { border-top: 2px solid var(--ink); }
.news-item { display: flex; gap: 20px; align-items: center; padding: 20px 4px; border-bottom: 1px solid var(--line); }
.news-src { flex: none; width: 120px; font-size: 14px; font-weight: 700; color: var(--green); }
.news-title { flex: 1; font-weight: 600; }

/* ---------- CTA band ---------- */
.cta-band { background: var(--yellow); padding: 56px 0; }
.cta-band .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.cta-band h2 { font-size: clamp(22px, 2.6vw, 30px); font-weight: 800; margin: 0 0 6px; }
.cta-band p { margin: 0; color: rgba(0,0,0,.7); }
.cta-actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* ---------- Contact ---------- */
.contact-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.contact-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; background: #fff; }
.contact-card .label { font-size: 14px; color: var(--ink-3); margin-bottom: 6px; }
.contact-card .value-big { font-size: 22px; font-weight: 800; margin-bottom: 14px; display: block; }
.location { border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; background: #fff; }
.location h3 { font-size: 20px; font-weight: 800; }
.location .addr { font-size: 17px; font-weight: 600; margin-bottom: 4px; }
.location .addr-en { color: var(--ink-3); font-size: 14px; margin-bottom: 18px; }
.location .map-links { display: flex; gap: 8px; flex-wrap: wrap; }

/* ---------- Footer ---------- */
.site-footer { background: #12181b; color: rgba(255,255,255,.65); padding: 56px 0 40px; font-size: 14px; }
.footer-top { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; margin-bottom: 32px; }
.footer-brand img { height: 36px; width: auto; filter: brightness(0) invert(1); opacity: .9; margin-bottom: 14px; }
.footer-info p { margin: 0 0 4px; }
.footer-info b { color: #fff; font-weight: 600; }
.footer-nav { display: flex; gap: 40px; }
.footer-nav h4 { color: #fff; font-size: 15px; margin-bottom: 12px; }
.footer-nav ul { list-style: none; margin: 0; padding: 0; }
.footer-nav li { margin-bottom: 6px; }
.footer-nav a:hover { color: #fff; }
.copyright { border-top: 1px solid rgba(255,255,255,.1); padding-top: 24px; color: rgba(255,255,255,.4); }

/* ---------- Floating call button (mobile) ---------- */
.float-call { display: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .values { grid-template-columns: repeat(3, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 980px) {
  :root { --header-h: 64px; }
  .section { padding: 64px 0; }
  .logo img { height: 34px; }
  .menu-btn { display: block; }
  .nav {
    position: fixed; top: var(--header-h); left: 0; right: 0; bottom: 0; background: #fff;
    flex-direction: column; align-items: stretch; gap: 0; padding: 12px 20px 40px; overflow-y: auto;
    display: none;
  }
  body.menu-open .nav { display: flex; }
  body.menu-open { overflow: hidden; }
  body.menu-open .menu-btn span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  body.menu-open .menu-btn span:nth-child(2) { opacity: 0; }
  body.menu-open .menu-btn span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .nav > li > a { padding: 16px 4px; font-size: 18px; border-bottom: 1px solid var(--line); border-radius: 0; }
  .nav .sub { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 4px 0 8px 12px; }
  .nav-cta { margin: 20px 0 0; }
  .nav-cta .btn { width: 100%; justify-content: center; }
  .grid-2, .grid-3, .split, .contact-cards, .cert-list { grid-template-columns: 1fr; }
  .split { gap: 32px; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .hero { min-height: 520px; }
  .hero::before { background: linear-gradient(180deg, rgba(14,20,23,.85), rgba(14,20,23,.7)); }
  .news-item { flex-direction: column; align-items: flex-start; gap: 4px; }
  .float-call {
    display: flex; position: fixed; right: 16px; bottom: 16px; z-index: 60;
    width: 56px; height: 56px; border-radius: 50%; background: var(--yellow);
    align-items: center; justify-content: center; box-shadow: 0 8px 24px rgba(0,0,0,.25);
  }
  .footer-nav { gap: 28px; flex-wrap: wrap; }
}
@media (max-width: 560px) {
  .wrap { padding: 0 16px; }
  .grid-4, .stats { grid-template-columns: 1fr 1fr; }
  .values { grid-template-columns: repeat(2, 1fr); }
  .gallery { grid-template-columns: 1fr; }
  .stat { padding: 22px 16px; }
  .stat b { font-size: 24px; }
  .org-row { gap: 8px; }
  .org-row::before { left: 50px; right: 50px; }
  .org-node { padding: 12px 10px; min-width: 0; font-size: 15px; }
  .org-row .org-node { width: 100px; }
  .hero-actions .btn, .cta-actions .btn { flex: 1; justify-content: center; }
}
