/* ============================================================
   KYNEX CORP — shared styles
   Light, clean, modern. Air style guide tokens.
   ============================================================ */
:root {
  --ink: #1b1b1b;
  --canvas: #ffffff;
  --haze: #f5f5f5;
  --twilight: #426188;
  --signal: #2b7fff;
  --line: rgba(0, 0, 0, 0.08);
  --line-strong: rgba(0, 0, 0, 0.14);
  --muted: rgba(27, 27, 27, 0.62);
  --radius-inputs: 4px;
  --radius-buttons: 8px;
  --radius-images: 11px;
  --radius-cards: 12px;
  --page-max: 1150px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--canvas);
  color: var(--ink);
  font-family: 'Inter', 'Noto Sans KR', ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
/* Korean: wrap lines only at spaces so a word never splits mid-word (Round 16) */
body[data-lang="ko"] { font-family: 'Noto Sans KR', 'Inter', system-ui, sans-serif; word-break: keep-all; overflow-wrap: break-word; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font-family: inherit; font-size: inherit; }
button { cursor: pointer; }

.container { max-width: var(--page-max); margin: 0 auto; padding: 0 24px; }
.section { padding: 72px 0; }
.section.alt { background: var(--haze); }
.section.tight { padding: 48px 0; }

/* ---------- Language blocks ---------- */
body[data-lang="en"] .t-ko { display: none !important; }
body:not([data-lang="en"]) .t-en { display: none !important; }
body[data-lang="en"] .block-ko { display: none !important; }
body:not([data-lang="en"]) .block-en { display: none !important; }
body:not([data-lang="ko"]) .only-ko { display: none !important; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  max-width: var(--page-max); margin: 0 auto; padding: 0 24px;
  height: 72px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.logo {
  font-weight: 500; font-size: 21px; letter-spacing: 2.5px;
  color: var(--ink); text-transform: uppercase;
}
.logo b { color: var(--twilight); font-weight: 500; }
.logo-img { height: 40px; width: auto; display: block; }

.nav-links { display: flex; align-items: center; gap: 28px; flex: 1; justify-content: center; }
.nav-lang { display: flex; align-items: center; gap: 26px; }
body[data-lang="en"] .nav-lang.nav-ko { display: none; }
body:not([data-lang="en"]) .nav-lang.nav-en { display: none; }
.nav-lang a {
  font-size: 14px; font-weight: 500; color: rgba(27, 27, 27, 0.78);
  padding: 4px 2px; border-bottom: 2px solid transparent;
  transition: color .2s;
  white-space: nowrap;
}
.nav-lang a:hover { color: var(--ink); }
.nav-lang a.active { color: var(--ink); border-bottom-color: var(--ink); }

.nav-actions { display: flex; align-items: center; gap: 12px; }

.lang-select {
  appearance: none; -webkit-appearance: none;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-buttons);
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%231b1b1b' fill='none' stroke-width='1.5'/%3E%3C/svg%3E") no-repeat right 10px center;
  padding: 7px 30px 7px 12px;
  font-size: 13px; font-weight: 500; color: var(--ink);
  height: 36px; cursor: pointer;
}

/* Buttons */
.btn {
  display: inline-block;
  background: transparent;
  border: 1px solid var(--ink);
  color: var(--ink);
  border-radius: var(--radius-buttons);
  padding: 10px 18px;
  font-size: 14px; font-weight: 500;
  transition: background .2s, color .2s, border-color .2s;
}
.btn:hover { background: var(--ink); color: #fff; }
.btn.solid { background: var(--ink); color: #fff; }
.btn.solid:hover { background: #3a3a3a; }
.btn.light {
  border-color: #fff; color: #fff;
}
.btn.light:hover { background: #fff; color: var(--ink); }
.btn.small { padding: 8px 14px; font-size: 13px; }

.menu-btn {
  display: none;
  background: transparent; border: 1px solid var(--line-strong);
  border-radius: var(--radius-buttons); width: 40px; height: 40px;
  align-items: center; justify-content: center;
}
.menu-btn span {
  display: block; width: 18px; height: 2px; background: var(--ink);
  position: relative;
}
.menu-btn span::before, .menu-btn span::after {
  content: ''; position: absolute; left: 0; width: 18px; height: 2px; background: var(--ink);
}
.menu-btn span::before { top: -6px; }
.menu-btn span::after { top: 6px; }

.mobile-menu {
  display: none;
  border-bottom: 1px solid var(--line);
  background: #fff;
}
.mobile-menu.open { display: block; }
.mobile-menu a {
  display: block; padding: 14px 24px;
  font-size: 15px; font-weight: 500;
  border-bottom: 1px solid var(--line);
}
.mobile-menu a.active { color: var(--signal); }

/* ---------- Type ---------- */
.eyebrow {
  font-size: 13px; font-weight: 500;
  letter-spacing: 2.2px; text-transform: uppercase;
  color: var(--twilight);
  margin-bottom: 14px;
}
h1 { font-size: clamp(32px, 4.2vw, 44px); line-height: 1.12; font-weight: 500; letter-spacing: -0.5px; }
h2 { font-size: clamp(26px, 3.4vw, 38px); line-height: 1.15; font-weight: 500; letter-spacing: -0.3px; }
h3 { font-size: 20px; font-weight: 500; line-height: 1.2; }
.lead { font-size: 19px; line-height: 1.5; color: var(--muted); font-weight: 400; }
p.sub { color: var(--muted); }
.cursive {
  font-family: 'Caveat', 'Noto Sans KR', cursive;
  font-style: italic; font-weight: 400;
  font-size: 1.12em; color: var(--twilight);
}
.link-blue {
  color: var(--signal); border-bottom: 2px solid var(--signal);
  padding: 0 6px 2px; font-weight: 500; font-size: 15px;
}
.link-blue:hover { opacity: .75; }

/* ---------- Hero ---------- */
.hero { padding: 88px 0 72px; }
.hero-grid {
  display: grid; grid-template-columns: 1.05fr 0.95fr;
  gap: 48px; align-items: center;
}
.hero .lead { margin: 20px 0 32px; max-width: 540px; }
.hero-cta { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.hero-img {
  border-radius: var(--radius-images); overflow: hidden;
  aspect-ratio: 4 / 3;
}
.hero-img img { width: 100%; height: 100%; object-fit: cover; }

/* KO homepage hero: uploaded route image large on top, text below (Round 15) */
.hero-img-ko { display: none; }
body[data-lang="ko"] .hero-grid { display: flex; flex-direction: column; gap: 32px; }
body[data-lang="ko"] .hero-img { order: -1; width: 100%; aspect-ratio: auto; }
body[data-lang="ko"] .hero-img img { height: auto; }
body[data-lang="ko"] .hero-img-main { display: none; }
body[data-lang="ko"] .hero-img-ko { display: block; }

/* EN homepage hero: no image beside the heading, text spans full width (Round 16) */
body[data-lang="en"] .hero-img { display: none; }
body[data-lang="en"] .hero-grid { grid-template-columns: 1fr; }
/* Full-width hero text: let the lead use the whole row (Round 16) */
body[data-lang="en"] .hero .lead, body[data-lang="ko"] .hero .lead { max-width: none; }

/* Page hero (sub pages) */
.page-hero { padding: 72px 0 56px; border-bottom: 1px solid var(--line); }
.page-hero .lead { margin-top: 16px; max-width: 1000px; }

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

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-cards);
  padding: 20px;
  transition: border-color .2s, transform .2s;
}
.section.alt .card { background: #fff; }
.card:hover { border-color: var(--line-strong); }
.card h3 { margin-bottom: 8px; }
.card p { font-size: 15px; color: var(--muted); }

.img-card {
  border-radius: var(--radius-images); overflow: hidden;
  aspect-ratio: 4 / 3; background: var(--haze);
}
.img-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.img-card:hover img { transform: scale(1.03); }

/* Product cards */
.product-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 24px; }
.product-card { grid-column: span 2; display: flex; flex-direction: column; }
.product-card .img-card { margin-bottom: 16px; }
.product-card .card-body { display: flex; flex-direction: column; flex: 1; }
.product-card p { margin-bottom: 16px; }
.product-card .card-link { margin-top: auto; align-self: flex-start; }

/* EN: industrial first & featured */
body[data-lang="en"] .pc-industrial {
  order: -1; grid-column: span 6;
  display: grid; grid-template-columns: 1.15fr 1fr; gap: 24px; align-items: center;
  background: var(--haze); border-color: transparent;
}
body[data-lang="en"] .pc-industrial .img-card { margin-bottom: 0; aspect-ratio: 16 / 10; }
body[data-lang="en"] .pc-vehicles, body[data-lang="en"] .pc-parts { grid-column: span 3; }
body[data-lang="en"] .featured-tag {
  display: inline-block;
  background: var(--twilight); color: #fff;
  border-radius: 9999px; padding: 4px 12px;
  font-size: 12px; font-weight: 500; letter-spacing: 1.5px; text-transform: uppercase;
  margin-bottom: 12px;
}

/* KO: wide product cards so descriptions fit on one line (Round 17).
   Mirrors the EN featured treatment; DOM order kept. */
body[data-lang="ko"] .pc-vehicles, body[data-lang="ko"] .pc-parts { grid-column: span 3; }
body[data-lang="ko"] .pc-industrial {
  grid-column: span 6;
  display: grid; grid-template-columns: 1.15fr 1fr; gap: 24px; align-items: center;
  background: var(--haze); border-color: transparent;
}
body[data-lang="ko"] .pc-industrial .img-card { margin-bottom: 0; aspect-ratio: 16 / 10; }

/* ---------- Steps / features ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.step { padding: 16px; border: 1px solid var(--line); border-radius: var(--radius-cards); }
.step-num {
  font-size: 13px; font-weight: 500; color: var(--twilight);
  letter-spacing: 1.5px; margin-bottom: 10px;
}
.step h3 { font-size: 17px; margin-bottom: 6px; }
.step p { font-size: 13px; color: var(--muted); }

.chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-buttons);
  padding: 6px 13px;
  font-size: 13px; font-weight: 500; color: rgba(27, 27, 27, 0.8);
  background: #fff;
}

/* ---------- Split sections ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.split .img-card { aspect-ratio: 4 / 3; }

/* Wider text column for one-line lead-ins (Round 17) */
.split-wide { grid-template-columns: 1.25fr 0.75fr; }

/* ---------- Banner (photo strip) ---------- */
.banner {
  position: relative; border-radius: 14px; overflow: hidden;
  min-height: 340px; display: flex; align-items: flex-end;
}
.banner img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.banner .veil { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.42); }
.banner-text { position: relative; padding: 32px; color: #fff; max-width: 800px; }
.banner-text h2 { color: #fff; margin-bottom: 8px; }
.banner-text p { color: rgba(255, 255, 255, 0.88); font-size: 15px; }

/* ---------- Stats ---------- */
.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; text-align: center; }
.stat-num { font-size: 44px; font-weight: 500; line-height: 1; letter-spacing: -1px; }
.stat-num small { font-size: 22px; font-weight: 500; }
.stat-label { margin-top: 8px; font-size: 14px; color: var(--muted); }

/* ---------- Timeline ---------- */
.timeline { border-left: 1px solid var(--line-strong); padding-left: 28px; display: flex; flex-direction: column; gap: 28px; }
.timeline-item { position: relative; }
.timeline-item::before {
  content: ''; position: absolute; left: -33px; top: 7px;
  width: 9px; height: 9px; border-radius: 9999px; background: var(--twilight);
}
.timeline-year { font-size: 13px; font-weight: 500; letter-spacing: 2px; color: var(--twilight); margin-bottom: 4px; }
.timeline-item h4 { font-size: 17px; font-weight: 500; margin-bottom: 4px; }
.timeline-item p { font-size: 15px; color: var(--muted); }

/* ---------- Forms ---------- */
.field { margin-bottom: 16px; }
.field label {
  display: block; font-size: 13px; font-weight: 500;
  margin-bottom: 6px; color: rgba(27, 27, 27, 0.75);
}
.field input, .field select, .field textarea {
  width: 100%;
  background: var(--haze);
  border: 1px solid var(--line);
  border-radius: var(--radius-inputs);
  padding: 10px 12px;
  color: var(--ink);
  outline: none;
  transition: border-color .2s;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--twilight); }
.field textarea { min-height: 130px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* ---------- Contact / Kakao ---------- */
.contact-row { display: flex; gap: 12px; padding: 13px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.contact-row:last-child { border-bottom: none; }
.contact-label {
  min-width: 78px; font-size: 12px; font-weight: 500;
  color: var(--muted); text-transform: uppercase; letter-spacing: 1.2px;
}
.kakao-icon { width: 22px; height: 22px; vertical-align: -4px; margin-right: 8px; }
.kakao-id {
  background: var(--haze);
  border: 1px solid var(--line);
  border-radius: var(--radius-inputs);
  padding: 12px 16px;
  font-size: 19px; font-weight: 500; letter-spacing: 1px;
  margin-bottom: 12px;
  display: flex; justify-content: space-between; align-items: center;
}
.pill-btn {
  background: transparent;
  border: 1px solid var(--ink);
  border-radius: 9999px;
  padding: 5px 14px;
  font-size: 13px; font-weight: 500; color: var(--ink);
  transition: all .2s;
}
.pill-btn:hover { background: var(--ink); color: #fff; }

.map-frame {
  border-radius: var(--radius-cards); overflow: hidden;
  border: 1px solid var(--line);
  aspect-ratio: 16 / 10; background: var(--haze);
}
.map-frame iframe { width: 100%; height: 100%; border: 0; }

/* ---------- Brand strips ---------- */
.brand-strip { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.brand-chip {
  display: flex; align-items: center; gap: 10px;
  border: 1px solid var(--line); border-radius: 10px;
  padding: 10px 18px; background: #fff;
}
.brand-chip img { width: 26px; height: 26px; object-fit: contain; }
.brand-chip span { font-size: 14px; font-weight: 500; color: rgba(27, 27, 27, 0.78); white-space: nowrap; }

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--haze);
  border-radius: 14px;
  padding: 48px 40px;
  display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap;
}

/* ---------- Footer (dark, rotating industrial imagery) ---------- */
.site-footer { position: relative; background: #101113; color: #fff; margin-top: 72px; overflow: hidden; }
.footer-bg { position: absolute; inset: 0; }
.footer-slide {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  opacity: 0; transition: opacity 1.6s ease;
}
.footer-slide.on { opacity: 1; }
.footer-bg::after { content: ''; position: absolute; inset: 0; background: rgba(9, 10, 12, 0.84); }
.site-footer .container { position: relative; z-index: 2; }
.footer-grid {
  display: grid; grid-template-columns: 1fr 1fr 1fr 1.4fr;
  gap: 40px; padding: 56px 0 40px;
}
.footer-grid .logo { font-size: 19px; }
.site-footer .logo-img { height: 26px; }
.footer-desc { margin-top: 12px; font-size: 14px; color: rgba(255, 255, 255, 0.7); max-width: 300px; }
.footer-col h5 {
  font-size: 17px; letter-spacing: 0.5px;
  color: #fff; margin-bottom: 16px; font-weight: 700;
}
.footer-col a, .footer-col span { display: block; font-size: 14px; color: rgba(255, 255, 255, 0.78); margin-bottom: 9px; }
.footer-col a:hover { color: #fff; }
.footer-map iframe { width: 100%; height: 200px; border: 0; border-radius: 10px; display: block; margin-bottom: 9px; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  padding: 18px 0 26px;
  font-size: 13px; color: rgba(255, 255, 255, 0.5);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px;
}

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

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .nav-links { display: none; }
  .menu-btn { display: flex; }
  .hero-grid, .split, .grid-2 { grid-template-columns: 1fr; }
  .grid-3, .steps { grid-template-columns: 1fr 1fr; }
  .product-grid { grid-template-columns: 1fr 1fr; }
  .product-card, body[data-lang="en"] .pc-vehicles, body[data-lang="en"] .pc-parts { grid-column: span 1; }
  body[data-lang="en"] .pc-industrial { grid-column: span 2; }
  body[data-lang="ko"] .pc-vehicles, body[data-lang="ko"] .pc-parts { grid-column: span 1; }
  body[data-lang="ko"] .pc-industrial { grid-column: span 2; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
}
@media (max-width: 620px) {
  .grid-3, .steps, .grid-2, .product-grid { grid-template-columns: 1fr; }
  body[data-lang="en"] .pc-industrial { grid-column: span 1; display: block; }
  body[data-lang="en"] .pc-industrial .img-card { margin-bottom: 16px; }
  body[data-lang="ko"] .pc-industrial { grid-column: span 1; display: block; }
  body[data-lang="ko"] .pc-industrial .img-card { margin-bottom: 16px; }
  .stats-grid { grid-template-columns: 1fr; gap: 32px; }
  .nav-actions .btn { display: none; }
  .form-row { grid-template-columns: 1fr; }
  .section { padding: 52px 0; }
  .hero { padding: 56px 0 48px; }
}
