/* ============================================================
   EROOM CHEM & TECH — Design System
   "Research-driven eco precision chemistry"
   Base: warm paper + deep forest green + lime/amber dot accent
   ============================================================ */

:root {
  /* Brand core (디자인 디렉터 확정안 — 로고 그린 단일 주조) */
  --green-900: #0a2a5e;
  --green-800: #0d3573;
  --green-700: #104394;
  --green-600: #1558c6;   /* logo green — primary */
  --green-500: #2d74e0;
  --green-400: #5493ec;
  --green-100: #dce9fb;
  --green-050: #eef4fc;

  --lime: #2bd9c8;        /* logo dot — signature accent (3% 제한) */
  --amber: #f2c230;       /* 인증 배지·NEW 한정 */
  --yellow: #f2c230;
  --teal: #33628f;        /* 문서성 UI(표 헤더·다운로드) 한정 */
  --mint: #bbd4f5;        /* 다크 섹션 서브카피 */

  /* Neutrals — white base + green-tinted gray */
  --paper: #ffffff;
  --paper-2: #f4f7fb;
  --ink: #16202e;
  --ink-70: rgba(22, 32, 46, 0.74);
  --ink-50: rgba(22, 32, 46, 0.52);
  --ink-30: rgba(22, 32, 46, 0.30);
  --hairline: rgba(22, 32, 46, 0.08);
  --hairline-strong: rgba(22, 32, 46, 0.14);

  /* On-dark */
  --white-90: rgba(255,255,255,0.92);
  --white-70: rgba(255,255,255,0.72);
  --white-50: rgba(255,255,255,0.55);
  --white-hairline: rgba(255,255,255,0.14);

  /* Type scale */
  --font-sans: "Pretendard Variable", Pretendard, -apple-system, "Malgun Gothic", sans-serif;
  --font-serif: "Noto Serif KR", serif;
  --font-en: "Archivo", "Pretendard Variable", sans-serif;

  /* Motion */
  --ease-out: cubic-bezier(0.32, 0.72, 0, 1);
  --ease-spring: cubic-bezier(0.34, 1.4, 0.44, 1);
  --dur: 0.7s;

  /* Radii */
  --r-xl: 2rem;
  --r-lg: 1.5rem;
  --r-md: 1.1rem;

  /* Layout */
  --container: 1240px;
  --container-wide: 1420px;
  --nav-h: 88px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; color-scheme: only light; scroll-padding-top: calc(var(--nav-h) + 70px); }
body {
  font-family: var(--font-sans);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.65;
  font-size: 16px;
  letter-spacing: -0.01em;
  overflow-x: hidden;
}
img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font: inherit; border: 0; background: none; cursor: pointer; }
::selection { background: var(--green-600); color: #fff; }

/* Film grain */
body::after {
  content: "";
  position: fixed; inset: 0; z-index: 80;
  pointer-events: none;
  opacity: 0.028;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Containers / sections ---------- */
.container { max-width: var(--container); margin: 0 auto; padding: 0 28px; }
.container-wide { max-width: var(--container-wide); margin: 0 auto; padding: 0 28px; }
.section { padding: 130px 0; position: relative; }
.section-tight { padding: 96px 0; }
.section-dark { background: var(--green-900); color: var(--white-90); }
.section-tint { background: var(--green-050); }
.section-paper2 { background: var(--paper-2); }

/* ---------- Eyebrow / headings ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-en);
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--green-600);
  padding: 7px 16px;
  border: 1px solid var(--hairline-strong);
  border-radius: 999px;
  background: rgba(255,255,255,0.6);
  margin-bottom: 26px;
}
.section-dark .eyebrow { color: var(--lime); border-color: var(--white-hairline); background: rgba(255,255,255,0.05); }
.eyebrow::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: linear-gradient(135deg, var(--amber), var(--lime));
}
.h-display {
  font-size: clamp(38px, 5.2vw, 64px);
  line-height: 1.16; font-weight: 800; letter-spacing: -0.035em;
  word-break: keep-all;
}
.h-section {
  font-size: clamp(30px, 3.6vw, 46px);
  line-height: 1.22; font-weight: 800; letter-spacing: -0.03em;
  word-break: keep-all;
}
.h-sub { font-size: clamp(21px, 2.2vw, 27px); font-weight: 700; letter-spacing: -0.02em; word-break: keep-all; }
.lead { font-size: clamp(16px, 1.35vw, 18.5px); color: var(--ink-70); word-break: keep-all; }
.section-dark .lead { color: var(--white-70); }
.serif-accent { font-family: var(--font-serif); font-weight: 600; font-style: normal; }
.text-green { color: var(--green-600); }
.text-lime { color: var(--lime); }

/* ---------- Buttons (island + nested icon) ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 14px;
  padding: 8px 10px 8px 26px;
  border-radius: 999px;
  font-weight: 700; font-size: 15.5px; letter-spacing: -0.01em;
  transition: transform var(--dur) var(--ease-out), background var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out);
  will-change: transform;
}
.btn:active { transform: scale(0.97); }
.btn .ic {
  width: 38px; height: 38px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 15px;
  transition: transform var(--dur) var(--ease-spring);
}
.btn:hover .ic { transform: translate(3px, -2px) scale(1.06); }
.btn-primary { background: var(--green-600); color: #fff; box-shadow: 0 18px 40px -18px rgba(16, 67, 148, 0.55); }
.btn-primary:hover { background: var(--green-500); }
.btn-primary .ic { background: rgba(255,255,255,0.16); color: #fff; }
.btn-ghost { background: rgba(255,255,255,0.7); color: var(--ink); border: 1px solid var(--hairline-strong); backdrop-filter: blur(6px); }
.btn-ghost:hover { background: #fff; }
.btn-ghost .ic { background: var(--green-050); color: var(--green-600); }
.btn-light { background: #fff; color: var(--green-800); }
.btn-light .ic { background: var(--green-050); color: var(--green-600); }
.btn-outline-light { background: rgba(255,255,255,0.06); color: #fff; border: 1px solid var(--white-hairline); }
.btn-outline-light:hover { background: rgba(255,255,255,0.12); }
.btn-outline-light .ic { background: rgba(255,255,255,0.12); color: var(--lime); }

/* ---------- Double-bezel card ---------- */
.bezel {
  background: rgba(22,33,27,0.035);
  border: 1px solid var(--hairline);
  border-radius: var(--r-xl);
  padding: 7px;
}
.bezel > .core {
  background: #fff;
  border-radius: calc(var(--r-xl) - 7px);
  box-shadow: inset 0 1px 1px rgba(255,255,255,0.9), 0 24px 60px -36px rgba(10, 40, 90, 0.25);
  overflow: hidden;
  height: 100%;
}
.section-dark .bezel { background: rgba(255,255,255,0.05); border-color: var(--white-hairline); }
.section-dark .bezel > .core {
  background: rgba(10, 40, 90, 0.55);
  box-shadow: inset 0 1px 1px rgba(255,255,255,0.08);
  backdrop-filter: none;
}

/* ---------- Nav (대기업형 풀와이드 바) ---------- */
.nav-wrap {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--hairline);
  box-shadow: 0 2px 24px -18px rgba(10,40,90,0.35);
}
.nav {
  max-width: 1560px;
  margin: 0 auto;
  height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 40px;
}
.nav-logo { display: flex; align-items: center; gap: 12px; }
.nav-logo img { height: 36px; }
.nav-logo .logo-sub {
  font-family: var(--font-en); font-size: 9.5px; font-weight: 600;
  letter-spacing: 0.18em; color: var(--ink-50); text-transform: uppercase;
  border-left: 1px solid var(--hairline-strong); padding-left: 12px;
  line-height: 1.5;
}
.nav-menu { display: flex; gap: 8px; height: var(--nav-h); }
.nav-menu > li { position: relative; display: flex; align-items: stretch; }
.nav-menu > li > a {
  display: flex; align-items: center; padding: 0 26px;
  font-weight: 700; font-size: 16.5px; letter-spacing: -0.015em;
  position: relative;
  transition: color 0.35s var(--ease-out);
}
.nav-menu > li > a::after {
  content: ""; position: absolute; left: 26px; right: 26px; bottom: 0;
  height: 3px; background: var(--green-600);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.45s var(--ease-out);
}
.nav-menu > li > a:hover, .nav-menu > li > a.active { color: var(--green-600); }
.nav-menu > li > a:hover::after, .nav-menu > li > a.active::after { transform: scaleX(1); }
.dropdown {
  position: absolute; top: 100%; left: 50%;
  transform: translateX(-50%) translateY(10px);
  min-width: 216px;
  background: #fff;
  border: 1px solid var(--hairline);
  border-top: 3px solid var(--green-600);
  border-radius: 0 0 14px 14px;
  padding: 10px 8px;
  box-shadow: 0 30px 60px -30px rgba(10,40,90,0.4);
  opacity: 0; visibility: hidden;
  transition: opacity 0.4s var(--ease-out), transform 0.4s var(--ease-out), visibility 0.4s;
}
.nav-menu > li:hover .dropdown { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.dropdown a {
  display: block; padding: 11px 16px;
  font-size: 14.5px; font-weight: 500; color: var(--ink-70);
  border-radius: 12px;
  transition: background 0.3s var(--ease-out), color 0.3s var(--ease-out), padding 0.3s var(--ease-out);
}
.dropdown a:hover { background: var(--green-050); color: var(--green-700); padding-left: 20px; }
.nav-cta { display: flex; align-items: center; gap: 10px; }
.nav-tel { text-align: right; margin-right: 6px; }
.nav-tel .t1 { font-family: var(--font-en); font-size: 10px; letter-spacing: 0.2em; color: var(--ink-50); text-transform: uppercase; }
.nav-tel .t2 { font-family: var(--font-en); font-size: 17px; font-weight: 700; color: var(--green-700); letter-spacing: 0.01em; }

/* Hamburger */
.ham { display: none; width: 46px; height: 46px; border-radius: 50%; position: relative; z-index: 130; background: var(--green-050); }
.ham span {
  position: absolute; left: 13px; width: 20px; height: 2px; background: var(--green-800);
  transition: transform 0.5s var(--ease-spring), top 0.5s var(--ease-spring), opacity 0.3s;
}
.ham span:nth-child(1) { top: 18px; }
.ham span:nth-child(2) { top: 26px; }
.ham.open span:nth-child(1) { top: 22px; transform: rotate(45deg); }
.ham.open span:nth-child(2) { top: 22px; transform: rotate(-45deg); }

/* Mobile overlay menu */
.m-menu {
  position: fixed; inset: 0; z-index: 120;
  background: rgba(8, 30, 68, 0.92);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  display: flex; flex-direction: column; justify-content: center;
  padding: 90px 40px 60px;
  opacity: 0; visibility: hidden;
  transition: opacity 0.6s var(--ease-out), visibility 0.6s;
}
.m-menu.open { opacity: 1; visibility: visible; }
.m-menu a.top {
  color: #fff; font-size: clamp(26px, 6vw, 34px); font-weight: 800; letter-spacing: -0.02em;
  padding: 10px 0; display: block;
  transform: translateY(30px); opacity: 0;
  transition: transform 0.7s var(--ease-out), opacity 0.7s var(--ease-out);
}
.m-menu .subs { display: flex; flex-wrap: wrap; gap: 4px 16px; margin: -4px 0 10px; transform: translateY(30px); opacity: 0; transition: transform 0.7s var(--ease-out), opacity 0.7s var(--ease-out); }
.m-menu .subs a { color: var(--white-50); font-size: 15px; padding: 4px 0; }
.m-menu.open a.top, .m-menu.open .subs { transform: translateY(0); opacity: 1; }

/* ---------- Reveal animations ---------- */
.rv { opacity: 0; transform: translateY(46px); filter: blur(8px); transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out), filter 0.9s var(--ease-out); }
.rv.on { opacity: 1; transform: translateY(0); filter: blur(0); }
.rv-d1 { transition-delay: 0.1s; } .rv-d2 { transition-delay: 0.2s; }
.rv-d3 { transition-delay: 0.3s; } .rv-d4 { transition-delay: 0.4s; }
.rv-d5 { transition-delay: 0.5s; }
@media (prefers-reduced-motion: reduce) {
  .rv { opacity: 1; transform: none; filter: none; transition: none; }
}

/* ---------- Sub-hero (하위페이지 공통) ---------- */
.subhero {
  position: relative;
  margin-top: var(--nav-h);
  min-height: 460px;
  display: flex; align-items: flex-end;
  padding: 110px 0 76px;
  color: #fff;
  overflow: hidden;
  isolation: isolate;
}
.subhero .bg { position: absolute; inset: 0; z-index: -2; }
.subhero .bg img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); }
.subhero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(168deg, rgba(8,30,68,0.55) 0%, rgba(8,30,68,0.78) 62%, rgba(8,30,68,0.92) 100%);
}
.subhero .crumb {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-en); font-size: 11.5px; font-weight: 500;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--white-70);
  margin-bottom: 18px;
}
.subhero .crumb b { color: var(--lime); font-weight: 600; }
.subhero .crumb i { font-style: normal; opacity: 0.5; }
.subhero h1 { font-size: clamp(34px, 4.6vw, 56px); font-weight: 800; letter-spacing: -0.03em; line-height: 1.18; word-break: keep-all; }
.subhero .desc { margin-top: 16px; max-width: 640px; color: var(--white-70); font-size: clamp(15.5px, 1.3vw, 17.5px); word-break: keep-all; }

/* Local tab nav under subhero */
.localnav { border-bottom: 1px solid var(--hairline); background: rgba(255,255,255,0.94); backdrop-filter: blur(12px); position: sticky; top: var(--nav-h); z-index: 60; }
.localnav .inner { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.localnav .inner::-webkit-scrollbar { display: none; }
.localnav a {
  padding: 18px 22px; font-weight: 600; font-size: 15px; color: var(--ink-50);
  border-bottom: 2px solid transparent; white-space: nowrap;
  transition: color 0.35s var(--ease-out), border-color 0.35s var(--ease-out);
}
.localnav a.active, .localnav a:hover { color: var(--green-700); border-bottom-color: var(--green-600); }

/* ---------- Tables (제품 데이터) ---------- */
/* [2026-07-24] 표가 페이지 배경과 붙어 보이던 문제 — 연한 검정 라인 + 셀 배경 분리 */
.tbl-wrap { overflow-x: auto; border-radius: var(--r-md); border: 1px solid rgba(20, 26, 36, 0.13); background: #fff; }
table.data { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 640px; }
table.data thead th {
  background: var(--teal); color: #fff;
  font-weight: 600; padding: 13px 16px; text-align: left;
  font-size: 13px; letter-spacing: 0.02em; white-space: nowrap;
}
table.data thead th:first-child { border-top-left-radius: 0; }
table.data tbody th {
  background: #F6F7F9; color: var(--green-800); font-weight: 700;
  padding: 12px 16px; text-align: left; white-space: nowrap;
  border-top: 1px solid rgba(20, 26, 36, 0.09);
  border-right: 1px solid rgba(20, 26, 36, 0.09);
}
table.data td { padding: 12px 16px; border-top: 1px solid rgba(20, 26, 36, 0.09); color: var(--ink-70); background: #fff; }
table.data tbody tr:first-child th, table.data tbody tr:first-child td { border-top: 0; }
table.data tbody tr:hover th { background: #EEF1F5; }
table.data tbody tr:hover td { background: #FAFBFC; }
.tbl-note { font-size: 13px; color: var(--ink-50); margin-top: 12px; }

/* ---------- Footer ---------- */
footer { background: var(--green-900); color: var(--white-70); position: relative; overflow: hidden; }
footer .f-top { padding: 90px 0 60px; display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 60px; }
footer .f-logo { font-family: var(--font-serif); font-style: italic; font-weight: 700; font-size: 34px; color: #fff; letter-spacing: -0.01em; }
footer .f-logo .dots { display: inline-flex; gap: 4px; margin-left: 8px; }
footer .f-logo .dots i { width: 7px; height: 7px; border-radius: 50%; display: inline-block; }
footer .f-sub { font-family: var(--font-en); letter-spacing: 0.3em; font-size: 11px; color: var(--white-50); text-transform: uppercase; margin-top: 6px; }
footer h4 { color: #fff; font-size: 14px; font-weight: 700; letter-spacing: 0.06em; margin-bottom: 20px; }
footer .f-item { font-size: 14.5px; line-height: 1.8; margin-bottom: 18px; }
footer .f-item b { color: var(--white-90); display: block; margin-bottom: 2px; font-weight: 700; }
footer .f-bottom {
  border-top: 1px solid var(--white-hairline);
  padding: 26px 0; display: flex; justify-content: space-between; align-items: center;
  font-size: 13px; color: var(--white-50);
}
footer .f-links { display: flex; gap: 22px; }
footer .f-links a:hover { color: #fff; }

/* ---------- Utilities ---------- */
.grid { display: grid; }
.mt-8 { margin-top: 8px; } .mt-16 { margin-top: 16px; } .mt-24 { margin-top: 24px; }
.mt-40 { margin-top: 40px; } .mt-60 { margin-top: 60px; } .mt-80 { margin-top: 80px; }
.center { text-align: center; }
.img-cover { width: 100%; height: 100%; object-fit: cover; }

/* Image tone unifier — 모든 사진에 동일한 톤 */
.ph { position: relative; overflow: hidden; }
.ph img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out); }
.ph::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(150deg, rgba(16,67,148,0.16), rgba(8,30,68,0.05) 45%, rgba(240,180,41,0.08));
  mix-blend-mode: multiply;
  pointer-events: none;
}
.ph:hover img { transform: scale(1.045); }

/* KPI counter */
.kpi { font-family: var(--font-en); font-weight: 800; font-size: clamp(40px, 4.4vw, 58px); letter-spacing: -0.03em; line-height: 1; }
.kpi small { font-size: 0.5em; font-weight: 700; }

/* Divider dots (logo motif) */
.dotline { display: flex; gap: 8px; align-items: center; }
.dotline i { border-radius: 50%; display: block; }
.dotline i:nth-child(1) { width: 8px; height: 8px; background: var(--yellow); }
.dotline i:nth-child(2) { width: 9px; height: 9px; background: var(--amber); }
.dotline i:nth-child(3) { width: 10px; height: 10px; background: var(--lime); }
.dotline i:nth-child(4) { width: 11px; height: 11px; background: var(--green-500); }
.dotline i:nth-child(5) { width: 12px; height: 12px; background: var(--green-600); }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .nav-menu, .nav-tel { display: none; }
  .ham { display: block; }
  footer .f-top { grid-template-columns: 1fr; gap: 40px; }
}
@media (max-width: 768px) {
  .section { padding: 84px 0; }
  .section-tight { padding: 64px 0; }
  .container, .container-wide { padding: 0 20px; }
  .nav { padding: 0 18px; }
  .subhero { min-height: 380px; padding: 90px 0 56px; }
  .btn { font-size: 14.5px; padding: 7px 8px 7px 20px; }
  .btn .ic { width: 34px; height: 34px; }
}

/* ---------- 언어 국기 스위처 (사각형) ---------- */
.lang-flags { display: flex; align-items: center; gap: 7px; margin-left: 6px; }
.lang-btn {
  width: 34px; height: 25px; border-radius: 5px;
  padding: 0; display: flex; align-items: center; justify-content: center;
  border: 2px solid transparent;
  box-shadow: 0 0 0 1px var(--hairline-strong);
  transition: transform 0.35s var(--ease-out), border-color 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out);
  overflow: hidden; background: #fff;
}
.lang-btn svg { width: 100%; height: 100%; display: block; border-radius: 3px; }
.lang-btn:hover { transform: translateY(-2px); }
.lang-btn.on { border-color: rgba(0, 0, 0, 0.38); box-shadow: 0 0 0 1px rgba(0,0,0,0.12); }
@media (max-width: 768px) {
  .lang-flags { gap: 5px; }
  .lang-btn { width: 30px; height: 22px; }
}

/* Google Translate 배너/하이라이트 숨김 */
.goog-te-banner-frame, #goog-gt-tt, .goog-te-balloon-frame, .skiptranslate iframe { display: none !important; }
body { top: 0 !important; }
.goog-text-highlight { background: none !important; box-shadow: none !important; }
font[style] { background: none !important; }

/* 다국어 번역 시 내비 줄바꿈 방지 */
.nav-menu > li > a { white-space: nowrap; }
.nav-tel, .nav-tel .t1, .nav-tel .t2 { white-space: nowrap; }
.nav .btn { white-space: nowrap; }
.nav-logo .logo-sub { white-space: nowrap; }
.dropdown a { white-space: nowrap; }

/* 내비 그룹 간 최소 간격 (번역 시 밀착 방지) */
.nav { gap: 28px; }
@media (max-width: 1360px) {
  .nav-menu > li > a { padding: 0 16px; font-size: 15.5px; }
  .nav-menu > li > a::after { left: 16px; right: 16px; }
}

/* 번역 로드 실패 안내 */
.gt-fail-notice {
  position: fixed; top: calc(var(--nav-h) + 10px); left: 50%; transform: translateX(-50%);
  z-index: 150; background: #fff; border: 1px solid var(--hairline-strong);
  border-left: 4px solid var(--amber); border-radius: 10px;
  padding: 12px 20px; font-size: 13.5px; color: var(--ink-70);
  box-shadow: 0 12px 32px rgba(10,42,94,0.15); max-width: 90vw;
}
