/* =============================================================
   Moriah Company - Global Stylesheet
   ============================================================= */

:root {
  /* Brand palette (from mockup) */
  --navy-900: #0a2540;
  --navy-800: #0d2c50;
  --navy-700: #123a63;
  --blue-600: #1a56db;
  --blue-500: #2563eb;
  --blue-100: #dbe7ff;

  /* Business accent colors */
  --biz-honeybee: #1a56db;
  --biz-modusel: #178a4c;
  --biz-smt: #0d2c50;
  --biz-develop: #6b46c1;

  /* Neutrals */
  --ink: #0f1e33;
  --text: #33415c;
  --muted: #6b7a90;
  --line: #e5e9f0;
  --bg: #ffffff;
  --bg-soft: #f5f7fa;
  --bg-hero: linear-gradient(135deg, #eef3fb 0%, #f7fafe 60%, #ffffff 100%);

  /* System */
  --radius: 14px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 3px rgba(15, 30, 51, .06), 0 1px 2px rgba(15, 30, 51, .04);
  --shadow-md: 0 10px 30px rgba(15, 30, 51, .10);
  --shadow-lg: 0 24px 60px rgba(15, 30, 51, .14);
  --container: 1240px;
  --header-h: 78px;
  --font: "Pretendard", "Noto Sans KR", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* -------- Reset -------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1, h2, h3, h4, h5 { color: var(--ink); line-height: 1.2; margin: 0 0 .5em; font-weight: 700; }
p { margin: 0 0 1em; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { margin: 0; padding: 0; list-style: none; }

/* -------- Layout helpers -------- */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 32px; }
.section { padding: 96px 0; }
.section[id] { scroll-margin-top: 96px; }
.section--soft { background: var(--bg-soft); }
.eyebrow {
  font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--blue-600); margin-bottom: 14px;
}
.section-title { font-size: clamp(28px, 3.4vw, 44px); letter-spacing: -.02em; }
.section-lead { font-size: 18px; color: var(--muted); max-width: 640px; }
.text-center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }

/* -------- Buttons -------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 28px; border-radius: 999px; font-weight: 600; font-size: 15px;
  border: 1.5px solid transparent; cursor: pointer; transition: all .2s ease;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; transition: transform .2s ease; }
.btn:hover svg { transform: translateX(4px); }
.btn--primary { background: var(--navy-900); color: #fff; }
.btn--primary:hover { background: var(--navy-700); box-shadow: var(--shadow-md); }
.btn--outline { background: #fff; color: var(--navy-900); border-color: var(--line); }
.btn--outline:hover { border-color: var(--navy-900); }
.btn--ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.3); }
.btn--ghost:hover { background: rgba(255,255,255,.1); }

/* =============================================================
   Header / Navigation
   ============================================================= */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.9); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav {
  height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.brand { display: flex; align-items: center; gap: 12px; font-weight: 800; color: var(--navy-900); letter-spacing: .01em; }
.brand__mark { width: 38px; height: 38px; flex: none; }
.brand__name { font-size: 17px; }
.nav__menu { display: flex; align-items: center; gap: 30px; }
.nav__item { position: relative; display: flex; align-items: center; gap: 3px; }
.nav__link {
  font-size: 15px; font-weight: 600; color: var(--text); position: relative; padding: 6px 0;
  transition: color .2s;
}
.nav__link:hover { color: var(--navy-900); }
.nav__link.is-active { color: var(--navy-900); }
.nav__link.is-active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px;
  background: var(--navy-900); border-radius: 2px;
}

/* Dropdown (사업영역) */
.nav__caret { font-size: 10px; color: var(--muted); transition: transform .2s ease; }
.nav__drop {
  position: absolute; top: 100%; left: 50%; transform: translateX(-50%) translateY(10px);
  min-width: 200px; background: #fff; border: 1px solid var(--line); border-radius: 12px;
  box-shadow: var(--shadow-md); padding: 8px; z-index: 60;
  opacity: 0; visibility: hidden; transition: opacity .18s ease, transform .18s ease;
}
.nav__drop::before { content: ""; position: absolute; top: -12px; left: 0; right: 0; height: 12px; }
.nav__item--drop:hover .nav__drop,
.nav__item--drop:focus-within .nav__drop { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(6px); }
.nav__item--drop:hover .nav__caret { transform: rotate(180deg); color: var(--navy-900); }
.nav__drop a {
  display: block; padding: 10px 14px; border-radius: 8px; font-size: 14px; font-weight: 600;
  color: var(--text); white-space: nowrap; transition: background .15s, color .15s;
}
.nav__drop a:hover { background: var(--bg-soft); color: var(--navy-900); }
.nav__actions { display: flex; align-items: center; gap: 18px; }
.btn--ir { background: var(--navy-900); color: #fff; padding: 12px 20px; font-size: 13px; letter-spacing: .04em; }
.btn--ir:hover { background: var(--navy-700); }
.lang {
  display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; color: var(--muted);
}
.lang button {
  background: none; border: none; cursor: pointer; font: inherit; color: var(--muted); padding: 2px 4px;
  transition: color .2s;
}
.lang button.is-active { color: var(--navy-900); }
.lang button:hover { color: var(--navy-900); }
.lang__sep { color: var(--line); }
.nav__toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.nav__toggle span { display: block; width: 24px; height: 2px; background: var(--navy-900); margin: 5px 0; border-radius: 2px; transition: .25s; }

/* =============================================================
   Hero
   ============================================================= */
.hero { position: relative; background: var(--bg-hero); overflow: hidden; }
.hero__inner { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; padding: 90px 0 100px; }
.hero__title { font-size: clamp(38px, 5.2vw, 68px); letter-spacing: -.03em; line-height: 1.05; margin-bottom: 24px; }
.hero__lead { font-size: 19px; color: var(--text); max-width: 460px; margin-bottom: 36px; }
.hero__cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero__photo {
  position: absolute; top: 0; right: 0; bottom: 0; width: 64%; z-index: 0;
  background: url("../assets/hero.jpg") center/cover no-repeat;
}
.hero__photo::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(to right, #f4f8fd 0%, rgba(244,248,253,.92) 10%, rgba(244,248,253,0) 40%),
    linear-gradient(to bottom, rgba(244,248,253,0) 78%, #ffffff 100%);
}
.hero__inner { position: relative; z-index: 1; }

/* Investment highlights card */
.ihl {
  background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 32px;
  box-shadow: var(--shadow-lg);
}
.ihl__title { font-size: 20px; padding-bottom: 18px; border-bottom: 1px solid var(--line); margin-bottom: 20px; }
.ihl__item { display: flex; gap: 16px; padding: 14px 0; }
.ihl__item + .ihl__item { border-top: 1px solid var(--bg-soft); }
.ihl__icon { width: 34px; height: 34px; flex: none; color: var(--navy-900); }
.ihl__name { font-weight: 700; color: var(--ink); font-size: 15px; }
.ihl__desc { font-size: 13.5px; color: var(--muted); }

/* =============================================================
   Businesses grid
   ============================================================= */
.biz-head { display: grid; grid-template-columns: 300px 1fr; gap: 40px; margin-bottom: 48px; align-items: start; }
.biz-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.biz-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  display: flex; flex-direction: column; transition: transform .25s, box-shadow .25s;
}
.biz-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.biz-card__media { height: 176px; background-size: cover; background-position: center; position: relative; }
.biz-card__media::after { content:""; position:absolute; inset:0; background: linear-gradient(180deg, rgba(10,37,64,.30) 0%, rgba(10,37,64,0) 46%); }
.biz-card__num {
  position: absolute; top: 14px; left: 14px; z-index: 2;
  width: 44px; height: 44px; border-radius: 12px; background: var(--biz-color, var(--blue-600));
  color: #fff; font-size: 16px; font-weight: 800; display: grid; place-items: center;
  box-shadow: 0 6px 16px rgba(10,37,64,.30);
}
.biz-card__body { padding: 22px 22px 24px; display: flex; flex-direction: column; }
.biz-card__name { font-size: 19px; margin: 0 0 4px; }
.biz-card__role { font-size: 13.5px; color: var(--muted); min-height: 38px; margin: 0 0 16px; }
.biz-card__tags { display: flex; flex-wrap: wrap; gap: 6px 14px; padding: 0 0 16px; margin: 0 0 16px; font-size: 12.5px; color: var(--text); border-bottom: 1px solid var(--bg-soft); list-style: none; }
.biz-card__tags li { position: relative; padding-left: 12px; }
.biz-card__tags li::before { content:"•"; position:absolute; left:0; color: var(--biz-color, var(--blue-600)); }
.biz-card__ip { padding: 0; display: flex; flex-direction: column; gap: 8px; }
.ip-row { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.ip-row svg { width: 16px; height: 16px; color: var(--biz-color, var(--blue-600)); flex: none; }
.ip-row b { color: var(--biz-color, var(--blue-600)); font-weight: 700; width: 66px; }
.ip-row span { color: var(--text); letter-spacing: .02em; }

/* =============================================================
   Stats band
   ============================================================= */
.stats {
  background: var(--bg-soft); border-top: 1px solid var(--line);
}
.stats__inner { display: grid; grid-template-columns: 280px 1fr auto; gap: 40px; align-items: center; padding: 56px 0; }
.stats__intro h4 { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--navy-900); }
.stats__intro p { font-size: 13.5px; color: var(--muted); margin: 0; }
.stats__nums { display: flex; gap: 36px; flex-wrap: wrap; }
.stat { text-align: center; }
.stat__n { font-size: 40px; font-weight: 800; color: var(--navy-900); line-height: 1; }
.stat__l { font-size: 13px; color: var(--muted); margin-top: 8px; }
.invcard {
  background: var(--navy-900); color: #fff; border-radius: var(--radius); padding: 26px 30px; min-width: 300px;
}
.invcard__head { display: flex; justify-content: space-between; align-items: center; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 18px; color: #cdd8ec; }
.invcard__row { display: flex; align-items: center; gap: 12px; font-size: 15px; padding: 6px 0; }
.invcard__row svg { width: 18px; height: 18px; color: #8fb4ff; }

/* =============================================================
   Generic page hero (subpages)
   ============================================================= */
.page-hero { background: var(--navy-900); color: #fff; padding: 84px 0; }
.page-hero .eyebrow { color: #8fb4ff; }
.page-hero h1 { color: #fff; font-size: clamp(32px, 4.4vw, 52px); letter-spacing: -.02em; }
.page-hero p { color: #c3d0e4; font-size: 18px; max-width: 620px; margin: 0; }
.breadcrumb { font-size: 13px; color: #8ea3c4; margin-bottom: 20px; }
.breadcrumb a:hover { color: #fff; }

/* -------- Cards / feature grids -------- */
.grid { display: grid; gap: 26px; }
.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); padding: 30px;
  transition: transform .2s, box-shadow .2s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.card__icon {
  width: 52px; height: 52px; border-radius: 12px; background: var(--blue-100); color: var(--blue-600);
  display: grid; place-items: center; margin-bottom: 18px;
}
.card__icon svg { width: 26px; height: 26px; }
.card h3 { font-size: 20px; }
.card p { color: var(--muted); font-size: 15px; margin: 0; }

/* Split feature */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.split--reverse .split__media { order: 2; }
.split__media { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-md); aspect-ratio: 4/3; background: var(--bg-soft); }
.split__media > div { width: 100%; height: 100%; background-size: cover; background-position: center; }
.feature-list li { display: flex; gap: 14px; padding: 10px 0; align-items: flex-start; }
.feature-list svg { width: 22px; height: 22px; color: var(--blue-600); flex: none; margin-top: 2px; }
.feature-list b { color: var(--ink); }
/* space between the feature list and the patent/trademark line below it */
.feature-list + p { margin-top: 24px; }

/* Timeline */
.timeline { position: relative; padding-left: 30px; }
.timeline::before { content:""; position: absolute; left: 6px; top: 6px; bottom: 6px; width: 2px; background: var(--line); }
.timeline__item { position: relative; padding: 0 0 34px 24px; }
.timeline__item::before { content:""; position: absolute; left: -30px; top: 4px; width: 14px; height: 14px; border-radius: 50%; background: var(--blue-600); border: 3px solid #fff; box-shadow: 0 0 0 2px var(--blue-100); }
.timeline__year { font-weight: 800; color: var(--navy-900); font-size: 17px; }
.timeline__text { color: var(--muted); font-size: 15px; }

/* News */
.news-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 26px; }
.news-card { background:#fff; border:1px solid var(--line); border-radius: var(--radius); overflow:hidden; transition: box-shadow .2s, transform .2s; }
.news-card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); }
.news-card__media { height: 180px; background-size: cover; background-position: center; background-color: var(--bg-soft); }
.news-card__body { padding: 22px 24px 26px; }
.news-card__meta { font-size: 12.5px; color: var(--blue-600); font-weight: 700; letter-spacing: .04em; text-transform: uppercase; margin-bottom: 10px; }
.news-card__title { font-size: 17px; color: var(--ink); }
.news-card__excerpt { font-size: 14px; color: var(--muted); margin: 0; }

/* Jobs / careers */
.job { display:flex; justify-content: space-between; align-items:center; gap:20px; background:#fff; border:1px solid var(--line); border-radius: var(--radius-sm); padding: 22px 26px; transition: box-shadow .2s; }
.job:hover { box-shadow: var(--shadow-sm); }
.job__title { font-size: 17px; font-weight: 700; color: var(--ink); }
.job__meta { font-size: 13.5px; color: var(--muted); }
.tag { display:inline-block; font-size:12px; font-weight:700; padding: 5px 12px; border-radius:999px; background: var(--blue-100); color: var(--blue-600); }

/* Contact */
.contact-grid { display:grid; grid-template-columns: 1fr 1fr; gap: 50px; }
.field { margin-bottom: 20px; }
.field label { display:block; font-size:14px; font-weight:600; color: var(--ink); margin-bottom: 8px; }
.field input, .field textarea, .field select {
  width:100%; padding: 13px 16px; border:1px solid var(--line); border-radius: 10px; font: inherit; color: var(--ink);
  background:#fff; transition: border-color .2s, box-shadow .2s;
}
.field input:focus, .field textarea:focus, .field select:focus { outline:none; border-color: var(--blue-500); box-shadow: 0 0 0 3px var(--blue-100); }
.field textarea { min-height: 140px; resize: vertical; }
.contact-info { background: var(--bg-soft); border-radius: var(--radius); padding: 36px; }
.contact-info__row { display:flex; gap:16px; padding: 16px 0; border-bottom:1px solid var(--line); }
.contact-info__row:last-child { border-bottom:none; }
.contact-info__row svg { width:22px; height:22px; color: var(--blue-600); flex:none; }
.contact-info__row b { display:block; color: var(--ink); }
.contact-info__row span { color: var(--muted); font-size: 14.5px; }
.form-note { font-size: 13px; color: var(--muted); }

/* CTA band */
.cta-band { background: var(--navy-900); color:#fff; border-radius: 20px; padding: 60px; text-align:center; }
.cta-band h2 { color:#fff; font-size: clamp(26px,3vw,38px); }
.cta-band p { color:#c3d0e4; max-width: 560px; margin: 0 auto 28px; }

/* =============================================================
   Footer
   ============================================================= */
.site-footer { background: var(--navy-900); color: #c3d0e4; }
.footer-main { display:grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; padding: 64px 0 48px; }
.footer-brand .brand { color:#fff; margin-bottom: 16px; }
.footer-brand p { font-size: 14px; color: #9fb0cc; max-width: 300px; }
.footer-col h5 { color:#fff; font-size: 14px; letter-spacing: .04em; margin-bottom: 16px; }
.footer-col a { display:block; font-size: 14px; color:#9fb0cc; padding: 6px 0; transition: color .2s; }
.footer-col a:hover { color:#fff; }
.footer-bottom { border-top:1px solid rgba(255,255,255,.1); padding: 22px 0; display:flex; justify-content: space-between; align-items:center; gap: 20px; flex-wrap: wrap; }
.footer-bottom__links { display:flex; gap: 26px; font-size: 13px; }
.footer-bottom__links a:hover { color:#fff; }
.footer-bottom__copy { font-size: 12.5px; color:#7d90b0; }

/* =============================================================
   Utilities & animation
   ============================================================= */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-in { opacity: 1; transform: none; }
[hidden] { display: none !important; }

/* =============================================================
   Responsive
   ============================================================= */
@media (max-width: 1080px) {
  .biz-grid { grid-template-columns: repeat(2, 1fr); }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .stats__inner { grid-template-columns: 1fr; }
  .hero__inner { grid-template-columns: 1fr; }
  .ihl { max-width: 440px; }
  .hero__photo { width: 100%; }
  .hero__photo::after {
    background: linear-gradient(to bottom, rgba(244,248,253,.72), rgba(255,255,255,.93));
  }
}
@media (max-width: 860px) {
  .nav__menu, .nav__actions .btn--ir { display: none; }
  .nav__toggle { display: block; }
  .nav.is-open .nav__menu {
    display: flex; flex-direction: column; align-items: flex-start; gap: 0;
    position: absolute; top: var(--header-h); left: 0; right: 0; background: #fff;
    border-bottom: 1px solid var(--line); padding: 8px 32px 20px; box-shadow: var(--shadow-md);
  }
  .nav__menu .nav__item { flex-direction: column; align-items: flex-start; width: 100%; }
  .nav__menu .nav__link { padding: 13px 0; width: 100%; border-bottom: 1px solid var(--bg-soft); }
  .nav__caret { display: none; }
  /* sub-links shown inline on mobile */
  .nav__drop {
    position: static; opacity: 1; visibility: visible; transform: none;
    box-shadow: none; border: none; background: transparent; padding: 4px 0 10px 14px; min-width: 0;
  }
  .nav__drop::before { display: none; }
  .nav__drop a { padding: 9px 0; }
  .split, .split--reverse .split__media { grid-template-columns: 1fr; order: 0; }
  .split { gap: 34px; }
  .grid--2, .grid--3, .grid--4, .contact-grid, .biz-head, .news-grid { grid-template-columns: 1fr; }
  .biz-grid { grid-template-columns: 1fr; }
  .section { padding: 64px 0; }
  .container { padding: 0 20px; }
  .footer-main { grid-template-columns: 1fr 1fr; gap: 30px; }
  .cta-band { padding: 40px 24px; }
  .stats__nums { gap: 24px; }
  .stat__n { font-size: 32px; }
}
@media (max-width: 520px) {
  .footer-main { grid-template-columns: 1fr; }
  .hero__cta { flex-direction: column; align-items: stretch; }
  .btn { justify-content: center; }
}
