/* ============================================================
   Young Chang TIW — corporate site design system
   ============================================================ */

:root {
  --navy-900: #0a1f38;
  --navy-800: #0d2b4c;
  --navy-700: #123a63;
  --blue-600: #1f6fd6;
  --blue-500: #2e82ef;
  --gold-500: #c99a3a;
  --gold-600: #b0842c;
  --ink: #142433;
  --muted: #5c6b7a;
  --muted-light: #8695a4;
  --line: #e2e8f0;
  --line-soft: #edf1f5;
  --bg: #ffffff;
  --bg-soft: #f5f8fb;
  --bg-navy-soft: #0e2c4d;
  --ok: #1f9d5a;
  --shadow-sm: 0 1px 2px rgba(10, 31, 56, 0.06);
  --shadow-md: 0 8px 24px rgba(10, 31, 56, 0.10);
  --shadow-lg: 0 20px 50px rgba(10, 31, 56, 0.18);
  --radius: 10px;
  --radius-lg: 16px;
  --container: 1180px;
  --font: "Inter", "Noto Sans", "Noto Sans KR", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
button { font-family: inherit; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-600);
  margin-bottom: 14px;
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  background: var(--gold-500);
  display: inline-block;
}

h1, h2, h3, h4 { font-weight: 800; line-height: 1.2; margin: 0 0 16px; letter-spacing: -0.01em; }
h1 { font-size: clamp(32px, 4.4vw, 52px); }
h2 { font-size: clamp(26px, 3.2vw, 36px); }
h3 { font-size: 20px; }
p { margin: 0 0 16px; color: var(--muted); }
.lede { font-size: 19px; color: var(--muted); }

.section { padding: 88px 0; }
.section-tight { padding: 56px 0; }
.section-soft { background: var(--bg-soft); }
.section-navy { background: linear-gradient(160deg, var(--navy-900), var(--navy-700)); color: #fff; }
.section-navy p { color: rgba(255,255,255,0.72); }
.section-navy .eyebrow { color: var(--gold-500); }
.section-head { max-width: 720px; margin: 0 0 48px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--gold-500); color: var(--navy-900); box-shadow: var(--shadow-md); }
.btn-primary:hover { background: var(--gold-600); }
.btn-outline { border-color: rgba(255,255,255,0.4); color: #fff; }
.btn-outline:hover { border-color: #fff; background: rgba(255,255,255,0.08); }
.btn-navy { background: var(--navy-800); color: #fff; }
.btn-navy:hover { background: var(--navy-900); }
.btn-block { width: 100%; }
.btn[disabled] { opacity: 0.6; cursor: not-allowed; transform: none; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 31, 56, 0.97);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}
.brand { display: flex; align-items: center; gap: 10px; color: #fff; }
.brand-mark {
  width: 38px; height: 38px; border-radius: 9px;
  background: linear-gradient(135deg, var(--gold-500), var(--blue-500));
  display: flex; align-items: center; justify-content: center;
  font-weight: 900; color: var(--navy-900); font-size: 16px;
  flex: none;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name { font-weight: 800; font-size: 16.5px; letter-spacing: 0.01em; }
.brand-sub { font-size: 10.5px; letter-spacing: 0.14em; color: var(--gold-500); text-transform: uppercase; }

.main-nav ul { display: flex; align-items: center; gap: 6px; }
.main-nav a {
  color: rgba(255,255,255,0.82);
  font-weight: 600;
  font-size: 14.5px;
  padding: 10px 16px;
  border-radius: 8px;
  transition: background 0.15s ease, color 0.15s ease;
}
.main-nav a:hover, .main-nav a.active { color: #fff; background: rgba(255,255,255,0.08); }
.header-cta { display: flex; align-items: center; gap: 14px; }
.header-cta .btn { padding: 10px 22px; font-size: 14px; }

.menu-toggle {
  display: none;
  width: 42px; height: 42px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.25);
  background: transparent;
  color: #fff;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.menu-toggle svg { width: 20px; height: 20px; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  color: #fff;
  overflow: hidden;
  background: var(--navy-900);
}
/* A drawn pattern, not a stretched photo — avoids upscaling the site's
   small (mostly 300x200px) source photography to full-bleed hero size. */
.hero-bg {
  position: absolute; inset: 0;
  background-image:
    radial-gradient(circle at 18% 22%, rgba(46,130,239,0.28), transparent 42%),
    radial-gradient(circle at 82% 78%, rgba(201,154,58,0.22), transparent 46%),
    repeating-linear-gradient(115deg, rgba(255,255,255,0.035) 0 2px, transparent 2px 64px),
    repeating-linear-gradient(25deg, rgba(255,255,255,0.03) 0 2px, transparent 2px 64px);
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(115deg, rgba(9,26,46,0.55) 0%, rgba(10,31,56,0.35) 45%, rgba(18,58,99,0.2) 100%);
}
.hero-inner {
  position: relative;
  padding: 120px 0 96px;
  display: grid;
  grid-template-columns: minmax(0, 620px) 1fr;
  gap: 40px;
  align-items: center;
}
.hero-copy p { color: rgba(255,255,255,0.78); }
.hero-badges { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 0; }
.hero-badge {
  display: flex; align-items: center; gap: 8px;
  padding: 9px 16px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  color: rgba(255,255,255,0.9);
}
.hero-badge svg { width: 15px; height: 15px; color: var(--gold-500); flex: none; }
.hero-cta { display: flex; gap: 14px; margin-top: 34px; flex-wrap: wrap; }
.hero-art {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255,255,255,0.14);
}
.hero-art { background: #fff; }
.hero-art img { width: 100%; height: 100%; object-fit: contain; aspect-ratio: 4/3; }

/* ---------- Stat / trust bar ---------- */
.stat-bar {
  background: var(--bg-soft);
  border-bottom: 1px solid var(--line);
}
.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  padding: 34px 0;
}
.stat-item { text-align: center; }
.stat-num { font-size: 28px; font-weight: 900; color: var(--navy-800); }
.stat-label { font-size: 13px; color: var(--muted); font-weight: 600; }

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

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
  display: flex;
  flex-direction: column;
}
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.card-media { aspect-ratio: 4/3; background: #fff; display: flex; align-items: center; justify-content: center; overflow: hidden; position: relative; }
.card-media img { width: 100%; height: 100%; object-fit: contain; }
.card-media-video { background: #000; }
.card-media-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.card-span-2 { grid-column: span 2; }
.card-span-2 .card-media { aspect-ratio: 16/9; }
.card-media.icon-media { background: linear-gradient(150deg, var(--navy-800), var(--navy-700)); }
.card-media.icon-media svg { width: 64px; height: 64px; color: var(--gold-500); }
.card-body { padding: 26px 26px 28px; flex: 1; display: flex; flex-direction: column; }
.card-tag { font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--blue-600); margin-bottom: 8px; }
.card-body h3 { margin-bottom: 10px; }
.card-body p { margin-bottom: 18px; font-size: 15px; }
.card-link { margin-top: auto; font-weight: 700; font-size: 14.5px; color: var(--navy-800); display: inline-flex; align-items: center; gap: 6px; }
.card-link svg { width: 15px; height: 15px; transition: transform 0.15s ease; }
.card:hover .card-link svg { transform: translateX(3px); }

.icon-tile {
  width: 52px; height: 52px; border-radius: 12px;
  background: rgba(31,111,214,0.1);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
}
.icon-tile svg { width: 26px; height: 26px; color: var(--blue-600); }

/* ---------- Split feature rows ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split.reverse .split-media { order: 2; }
.split-media { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md); border: 1px solid var(--line); }
.split-media img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
/* "Framed" variant: for the site's smaller (often 300x200px) source photos —
   pads them on a neutral card instead of stretching them edge-to-edge,
   which keeps them sharp instead of visibly upscaled/blurry. */
.split-media.framed {
  background: var(--bg-soft);
  display: flex; align-items: center; justify-content: center;
  padding: 32px;
}
.split-media.framed img {
  width: auto; height: auto; max-width: 100%; max-height: 340px;
  aspect-ratio: auto; object-fit: contain;
  border-radius: 10px; box-shadow: var(--shadow-sm);
}

/* Small inline supporting photos (native ~300x200px) — capped so they are
   never displayed larger than roughly their native resolution. */
.inline-photo {
  max-width: 320px; width: 100%; height: auto;
  border-radius: 12px; border: 1px solid var(--line);
  margin: 8px 0 26px;
  box-shadow: var(--shadow-sm);
}
.inline-photo-row { display: flex; gap: 16px; flex-wrap: wrap; margin: 8px 0 26px; }
.inline-photo-row .inline-photo { margin: 0; }

.video-embed {
  position: relative; width: 100%; aspect-ratio: 16/9;
  border-radius: 12px; overflow: hidden; border: 1px solid var(--line);
  box-shadow: var(--shadow-sm); background: #000; margin: 8px 0 26px;
}
.video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.spec-list { display: grid; gap: 14px; margin: 22px 0; }
.spec-list li { display: flex; gap: 12px; align-items: flex-start; color: var(--ink); font-size: 15px; }
.spec-list svg { width: 20px; height: 20px; color: var(--ok); flex: none; margin-top: 2px; }

.meta-row { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0 6px; }
.pill {
  font-size: 12.5px; font-weight: 700; letter-spacing: 0.03em;
  padding: 6px 13px; border-radius: 999px;
  background: rgba(201,154,58,0.12); color: var(--gold-600);
  border: 1px solid rgba(201,154,58,0.28);
}
.pill.blue { background: rgba(31,111,214,0.1); color: var(--blue-600); border-color: rgba(31,111,214,0.24); }

/* product detail block */
.product-block { padding: 72px 0; border-bottom: 1px solid var(--line); }
.product-block:last-of-type { border-bottom: none; }
.product-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 52px; align-items: start; }
.product-grid.reverse .product-media { order: 2; }
.product-media { position: sticky; top: 100px; }
.product-media img { border-radius: var(--radius-lg); border: 1px solid var(--line); box-shadow: var(--shadow-sm); width: 100%; aspect-ratio: 4/3; object-fit: contain; background: #fff; }
.detail-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 28px; }
.detail-card { background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; }
.detail-card h4 { font-size: 13px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--navy-800); margin-bottom: 8px; }
.detail-card p { font-size: 14px; margin: 0; }
.detail-card.warn { background: #fdf3ea; border-color: #f2d9b8; }
.detail-card.warn h4 { color: var(--gold-600); }

/* ---------- Quote / testimonial ---------- */
.quote-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.quote-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 28px; box-shadow: var(--shadow-sm);
}
.quote-card svg { width: 26px; height: 26px; color: var(--gold-500); margin-bottom: 14px; }
.quote-card p { font-style: italic; color: var(--ink); font-size: 15px; }
.quote-source { font-weight: 700; font-size: 13.5px; color: var(--navy-800); margin-top: 12px; }
.quote-source span { display: block; font-weight: 500; color: var(--muted); font-size: 12.5px; }

/* ---------- CTA band ---------- */
.cta-band {
  border-radius: var(--radius-lg);
  background: linear-gradient(120deg, var(--navy-900), var(--navy-700));
  color: #fff;
  padding: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  box-shadow: var(--shadow-lg);
}
.cta-band h2 { margin-bottom: 8px; }
.cta-band p { color: rgba(255,255,255,0.72); margin: 0; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.contact-info-card {
  background: var(--navy-900); color: #fff; border-radius: var(--radius-lg);
  padding: 36px; box-shadow: var(--shadow-lg);
}
.contact-info-card h3 { color: #fff; }
.contact-info-list { display: grid; gap: 20px; margin-top: 22px; }
.contact-info-list li { display: flex; gap: 14px; align-items: flex-start; }
.contact-info-list .ci-icon {
  width: 40px; height: 40px; border-radius: 10px; flex: none;
  background: rgba(255,255,255,0.1); display: flex; align-items: center; justify-content: center;
}
.contact-info-list svg { width: 19px; height: 19px; color: var(--gold-500); }
.contact-info-list a, .contact-info-list span.ci-text { color: rgba(255,255,255,0.86); font-size: 14.5px; line-height: 1.5; }
.contact-info-list strong { display: block; color: #fff; font-size: 13px; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 3px; }

.map-frame { margin-top: 22px; border-radius: var(--radius); overflow: hidden; border: 1px solid rgba(255,255,255,0.15); }
.map-frame iframe { width: 100%; height: 220px; border: 0; display: block; filter: grayscale(0.2) contrast(1.05); }

.form-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 36px; box-shadow: var(--shadow-md);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 13.5px; font-weight: 700; color: var(--ink); margin-bottom: 7px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px; border-radius: 9px; border: 1.5px solid var(--line);
  font-family: inherit; font-size: 14.5px; color: var(--ink); background: #fbfcfe;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--blue-500); box-shadow: 0 0 0 3px rgba(46,130,239,0.14); background: #fff;
}
.field textarea { resize: vertical; min-height: 130px; }
.field-hint { font-size: 12.5px; color: var(--muted-light); margin-top: 5px; }
.hp-field { position: absolute; left: -9999px; top: -9999px; opacity: 0; height: 0; width: 0; overflow: hidden; }

.form-status { margin-top: 16px; padding: 13px 16px; border-radius: 9px; font-size: 14px; font-weight: 600; display: none; }
.form-status.show { display: block; }
.form-status.ok { background: #eafaf0; color: #167a44; border: 1px solid #bfeccd; }
.form-status.err { background: #fdecec; color: #b3271d; border: 1px solid #f6c9c6; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-900); color: rgba(255,255,255,0.7); padding: 64px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 40px; }
.footer-brand p { color: rgba(255,255,255,0.55); font-size: 14px; margin-top: 14px; }
.footer-col h4 { color: #fff; font-size: 13.5px; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 18px; }
.footer-col li { margin-bottom: 11px; }
.footer-col a { color: rgba(255,255,255,0.62); font-size: 14.5px; }
.footer-col a:hover { color: #fff; }
.footer-bottom {
  margin-top: 48px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,0.12);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  font-size: 13px; color: rgba(255,255,255,0.5);
}
.footer-bottom a { color: rgba(255,255,255,0.6); }
.footer-bottom a:hover { color: #fff; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  background: linear-gradient(150deg, var(--navy-900), var(--navy-700));
  color: #fff; padding: 68px 0 56px;
}
.page-hero .eyebrow { color: var(--gold-500); }
.breadcrumb { font-size: 13px; color: rgba(255,255,255,0.6); margin-bottom: 14px; }
.breadcrumb a { color: rgba(255,255,255,0.8); }
.breadcrumb a:hover { color: #fff; }

/* ---------- Legal pages ---------- */
.legal-content { max-width: 820px; }
.legal-content h2 { font-size: 22px; margin-top: 36px; }
.legal-content h2:first-child { margin-top: 0; }
.legal-content p, .legal-content li { color: var(--muted); font-size: 15px; }
.legal-content ul, .legal-content ol { margin: 0 0 18px 22px; list-style: disc; }
.legal-content ol { list-style: decimal; }
.legal-updated { font-size: 13px; color: var(--muted-light); margin-bottom: 30px; }

/* ---------- Utility ---------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.hidden { display: none !important; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 980px) {
  .main-nav, .header-cta .btn-outline-nav { display: none; }
  .menu-toggle { display: flex; }
  .hero-inner { grid-template-columns: 1fr; padding-top: 56px; }
  .hero-art { order: -1; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .grid-3, .grid-2, .quote-grid { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; gap: 32px; }
  .split.reverse .split-media { order: 0; }
  .product-grid { grid-template-columns: 1fr; }
  .product-grid.reverse .product-media { order: 0; }
  .product-media { position: static; }
  .detail-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .cta-band { flex-direction: column; text-align: center; padding: 40px 28px; }
}

@media (max-width: 640px) {
  .section { padding: 56px 0; }
  .footer-grid { grid-template-columns: 1fr; }
  .header-cta .btn { display: none; }
}

/* ---------- Mobile nav drawer ---------- */
.mobile-nav {
  position: fixed; inset: 76px 0 0 0; z-index: 90;
  background: var(--navy-900);
  transform: translateX(100%);
  transition: transform 0.25s ease;
  overflow-y: auto;
}
.mobile-nav.open { transform: translateX(0); }
.mobile-nav ul { padding: 24px; display: grid; gap: 6px; }
.mobile-nav a {
  display: block; padding: 16px 18px; border-radius: 10px;
  color: #fff; font-weight: 700; font-size: 17px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.mobile-nav .btn { margin: 12px 18px 0; }
