/* ==========================================================
   CGTae ESG Report  |  C.G.Tae Technology
   ========================================================== */

:root {
  --teal: #0F5E64;
  --teal-deep: #0A3A40;
  --teal-ink: #0C2A2E;
  --e: #2E9E5B;
  --s: #E07B2E;
  --g: #2D4E8A;
  --text: #1F2A2C;
  --muted: #5E6E70;
  --line: #DFE8E8;
  --bg: #FFFFFF;
  --bg-alt: #F3F8F7;
  --radius: 16px;
  --shadow: 0 16px 40px rgba(10, 58, 64, .10);
  --container: 1160px;
  --header-h: 76px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body {
  font-family: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Segoe UI", "Malgun Gothic", sans-serif;
  color: var(--text); background: var(--bg); line-height: 1.75; -webkit-font-smoothing: antialiased; word-break: keep-all;
}
html[lang="ja"] body { font-family: "Pretendard JP Variable", "Pretendard JP", "Pretendard Variable", "Hiragino Sans", "Yu Gothic", "Noto Sans JP", sans-serif; word-break: normal; line-break: strict; }
html[lang="zh-CN"] body { font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", "Source Han Sans SC", -apple-system, "Segoe UI", sans-serif; word-break: normal; line-break: strict; }
html[lang="en"] body { word-break: normal; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font: inherit; }
.container { width: min(var(--container), calc(100% - 48px)); margin: 0 auto; }

/* ---------- type ---------- */
h1, h2, h3, h4 { line-height: 1.3; letter-spacing: -0.02em; font-weight: 800; color: var(--teal-ink); }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--teal); margin-bottom: 14px; }
.section-title { font-size: clamp(28px, 3.6vw, 42px); margin-bottom: 14px; }
.section-lead { font-size: 17px; color: var(--muted); max-width: 680px; }
.section-head { margin-bottom: 56px; }
.section-head.center { text-align: center; }
.section-head.center .section-lead { margin: 0 auto; }
section { padding: 104px 0; }
.alt { background: var(--bg-alt); }

/* ---------- header ---------- */
.header { position: fixed; top: 0; left: 0; right: 0; z-index: 100; height: var(--header-h); transition: background .25s, box-shadow .25s; }
.header.scrolled { background: rgba(255, 255, 255, .94); backdrop-filter: blur(12px); box-shadow: 0 1px 0 var(--line); }
.header .container { display: flex; align-items: center; height: 100%; gap: 32px; }
.logo { display: flex; align-items: center; gap: 12px; color: #fff; }
.logo img { width: 46px; height: 46px; border-radius: 50%; }
.logo b { font-size: 18px; font-weight: 800; letter-spacing: -.01em; line-height: 1.1; }
.logo small { display: block; font-size: 12px; font-weight: 600; opacity: .8; }
.header.scrolled .logo { color: var(--teal-ink); }
.nav { display: flex; align-items: center; gap: 26px; margin-left: auto; }
.nav > a { font-size: 15px; font-weight: 600; color: rgba(255, 255, 255, .88); position: relative; padding: 6px 0; }
.nav > a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: currentColor; transform: scaleX(0); transition: transform .2s; }
.nav > a:hover::after, .nav > a.active::after { transform: scaleX(1); }
.header.scrolled .nav > a { color: var(--text); }
.header.scrolled .nav > a.active { color: var(--teal); }
.lang-switch { display: flex; gap: 2px; padding: 3px; border: 1px solid rgba(255, 255, 255, .35); border-radius: 999px; }
.lang-switch a { font-size: 12px; font-weight: 700; letter-spacing: .04em; color: rgba(255, 255, 255, .85); padding: 4px 9px; border-radius: 999px; }
.lang-switch a.on { background: #fff; color: var(--teal); }
.header.scrolled .lang-switch { border-color: var(--line); }
.header.scrolled .lang-switch a { color: var(--muted); }
.header.scrolled .lang-switch a.on { background: var(--teal); color: #fff; }
.menu-toggle { display: none; width: 44px; height: 44px; border: 0; background: none; cursor: pointer; margin-left: auto; }
.menu-toggle span { display: block; width: 22px; height: 2px; background: #fff; margin: 5px auto; transition: .2s; }
.header.scrolled .menu-toggle span, .header.open .menu-toggle span { background: var(--teal-ink); }

/* ---------- hero ---------- */
.hero { position: relative; min-height: min(100vh, 880px); display: flex; flex-direction: column; justify-content: center; padding: calc(var(--header-h) + 56px) 0 64px; color: #fff; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; background: url("../images/hero.jpg") center / cover no-repeat; }
.hero-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10, 58, 64, .78) 0%, rgba(10, 58, 64, .55) 45%, rgba(10, 42, 46, .88) 100%); }
.hero .container { position: relative; }
.hero .kicker { font-size: 15px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; opacity: .85; }
.hero h1 { color: #fff; font-size: clamp(42px, 6.2vw, 78px); line-height: 1.12; letter-spacing: -.035em; margin: 16px 0 18px; }
.hero p.lead { font-size: 20px; opacity: .88; max-width: 620px; }
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 56px; }
.pillar { position: relative; border-radius: 18px; overflow: hidden; aspect-ratio: 16 / 10; display: flex; align-items: flex-end; padding: 22px 24px; color: #fff; box-shadow: 0 18px 40px rgba(0, 0, 0, .25); }
.pillar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.pillar::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, var(--c) 0%, rgba(0, 0, 0, .05) 70%); opacity: .92; }
.pillar:hover img { transform: scale(1.05); }
.pillar > div { position: relative; z-index: 1; }
.pillar .letter { font-size: 15px; font-weight: 800; letter-spacing: .1em; opacity: .9; }
.pillar b { display: block; font-size: 26px; font-weight: 800; letter-spacing: -.02em; line-height: 1.2; }
.pillar small { font-size: 15px; opacity: .9; }
.pillar.e { --c: rgba(46, 158, 91, .95); } .pillar.s { --c: rgba(224, 123, 46, .95); } .pillar.g { --c: rgba(45, 78, 138, .95); }

/* ---------- message ---------- */
.message { display: grid; grid-template-columns: 1fr 1.15fr; gap: 64px; align-items: center; }
.message .photo { border-radius: 22px; overflow: hidden; box-shadow: var(--shadow); }
.message .photo img { width: 100%; height: auto; }
.message h2 { font-size: clamp(28px, 3.4vw, 40px); margin-bottom: 24px; }
.message p { font-size: 17px; color: var(--text); margin-bottom: 14px; }
.message .sign { margin-top: 26px; font-weight: 700; color: var(--teal); font-size: 17px; }

/* ---------- ESG sections ---------- */
.pillar-head { display: flex; align-items: center; gap: 20px; margin-bottom: 18px; }
.pillar-head .badge { width: 64px; height: 64px; border-radius: 18px; display: grid; place-items: center; color: #fff; font-size: 30px; font-weight: 800; background: var(--c); flex-shrink: 0; }
.pillar-head .eyebrow { margin: 0; color: var(--c); }
.pillar-head h2 { font-size: clamp(28px, 3.6vw, 42px); }
#environment { --c: var(--e); } #social { --c: var(--s); } #governance { --c: var(--g); }
.sub-title { font-size: 24px; margin: 72px 0 8px; padding-left: 16px; border-left: 5px solid var(--c); }
.sub-title:first-of-type { margin-top: 56px; }

.topics { display: grid; gap: 28px; margin-top: 28px; }
.topic { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 32px; }
.alt .topic { background: #fff; }
.topic:nth-child(even) .topic-media { order: 2; }
.topic-media img { width: 100%; height: auto; border-radius: 14px; }
.topic.no-media { grid-template-columns: 1fr; }
.topic h3 { font-size: 23px; margin-bottom: 14px; display: flex; align-items: center; gap: 10px; }
.topic h3::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--c); flex-shrink: 0; }
.topic p { font-size: 16px; color: var(--text); }
.topic p + p { margin-top: 12px; }
.topic .note { font-size: 14px; color: var(--muted); }
.ext-link { display: inline-flex; align-items: center; gap: 8px; margin-top: 18px; padding: 10px 18px; border-radius: 999px; border: 1px solid var(--line); font-size: 15px; font-weight: 700; color: var(--c); }
.ext-link:hover { border-color: var(--c); }
.ext-link svg { width: 18px; height: 18px; }
dialog.article .ext-link { --c: var(--teal); margin-top: 6px; }

/* ---------- insights ---------- */
.insights { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.insight { background: #fff; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; text-align: left; cursor: pointer; padding: 0; color: inherit; transition: transform .2s, box-shadow .2s; display: flex; flex-direction: column; }
.insight:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.insight .thumb { aspect-ratio: 16 / 10; overflow: hidden; }
.insight .thumb img { width: 100%; height: 100%; object-fit: cover; }
.insight .body { padding: 22px 24px 26px; flex: 1; display: flex; flex-direction: column; }
.insight time { font-size: 13px; color: var(--muted); font-weight: 600; }
.insight h3 { font-size: 20px; margin: 6px 0 10px; }
.insight p { font-size: 15px; color: var(--muted); flex: 1; }
.insight .more { margin-top: 14px; font-size: 14px; font-weight: 700; color: var(--teal); }

/* article dialog */
dialog.article { border: 0; border-radius: 20px; padding: 0; width: min(760px, calc(100% - 32px)); max-height: calc(100vh - 64px); margin: auto; box-shadow: 0 30px 80px rgba(0, 0, 0, .35); }
dialog.article::backdrop { background: rgba(8, 30, 34, .6); }
dialog.article .inner { padding: 44px 48px 48px; }
dialog.article time { font-size: 14px; color: var(--muted); font-weight: 600; }
dialog.article h3 { font-size: 28px; margin: 8px 0 22px; }
dialog.article p { font-size: 16px; margin-bottom: 14px; }
dialog.article .close { position: sticky; top: 0; float: right; margin: 14px 14px 0 0; width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--bg-alt); color: var(--teal-ink); font-size: 22px; cursor: pointer; z-index: 1; }

/* ---------- footer ---------- */
.footer { background: var(--teal-deep); color: rgba(255, 255, 255, .7); padding: 48px 0 30px; font-size: 14px; }
.footer .top { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; padding-bottom: 26px; border-bottom: 1px solid rgba(255, 255, 255, .12); }
.footer .logo { color: #fff; }
.footer .home-link { display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .3); color: #fff; font-weight: 700; }
.footer .home-link:hover { background: rgba(255, 255, 255, .1); }
.footer .bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 22px; gap: 12px; flex-wrap: wrap; }
.lang { display: flex; gap: 6px; flex-wrap: wrap; }
.lang a { padding: 6px 10px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .18); font-size: 12px; }
.lang a.on, .lang a:hover { background: rgba(255, 255, 255, .12); color: #fff; }

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 1024px) {
  .message { grid-template-columns: 1fr; gap: 36px; }
  .message .photo { max-width: 600px; }
  .topic { gap: 32px; padding: 26px; }
  .insights { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  :root { --header-h: 64px; }
  .container { width: calc(100% - 32px); }
  section { padding: 72px 0; }
  .nav { display: none; }
  .menu-toggle { display: block; }
  .header.open { background: #fff; box-shadow: 0 1px 0 var(--line); }
  .header.open .logo { color: var(--teal-ink); }
  .header.open .nav { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; position: absolute; top: var(--header-h); left: 0; right: 0; background: #fff; padding: 10px 16px 20px; border-bottom: 1px solid var(--line); }
  .header.open .nav > a { color: var(--text); padding: 12px 6px; font-size: 16px; width: 100%; }
  .header.open .nav > a::after { display: none; }
  .header.open .lang-switch { border-color: var(--line); margin-top: 8px; }
  .header.open .lang-switch a { color: var(--muted); }
  .header.open .lang-switch a.on { background: var(--teal); color: #fff; }
  .header.open .menu-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .header.open .menu-toggle span:nth-child(2) { opacity: 0; }
  .header.open .menu-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .logo img { width: 40px; height: 40px; }
  .logo b { font-size: 16px; }
  .hero { min-height: 0; padding-bottom: 48px; }
  .hero p.lead { font-size: 17px; }
  .pillars { grid-template-columns: 1fr; gap: 12px; margin-top: 36px; }
  .pillar { aspect-ratio: auto; min-height: 120px; }
  .topic { grid-template-columns: 1fr; gap: 20px; padding: 20px; }
  .topic:nth-child(even) .topic-media { order: 0; }
  .topic h3 { font-size: 20px; }
  .sub-title { font-size: 21px; margin-top: 56px; }
  .insights { grid-template-columns: 1fr; }
  .pillar-head .badge { width: 52px; height: 52px; font-size: 24px; border-radius: 14px; }
  dialog.article .inner { padding: 28px 22px 30px; }
  dialog.article h3 { font-size: 23px; }
  .section-head { margin-bottom: 36px; }
}
