/* =====================================================================
   layout.css — 헤더 · 내비게이션 · 호버 메가 서브메뉴 · 로그인 아이콘 · 푸터 · 페이지 상단 히어로(page-hero)
   ---------------------------------------------------------------------
   ● base.css의 전역 변수(:root)에 의존합니다. base.css를 먼저 불러온 뒤 이 파일을 불러오세요.
   ● 로드 순서: base → layout → home → company → products → modal → login → responsive
   ===================================================================== */

/* ══════════ 헤더 · 내비게이션 · 호버 메가 서브메뉴 · 언어/햄버거 버튼 ══════════ */
header{position:sticky;top:0;z-index:50;background:rgba(243,245,244,.82);backdrop-filter:blur(12px);border-bottom:1px solid var(--line)}
/* home page: header overlays the hero and is hidden until the user scrolls */
.nav{display:flex;align-items:center;justify-content:space-between;height:68px}
.brand{font-weight:800;font-size:20px;letter-spacing:.02em;display:flex;align-items:center;gap:8px}
/* 헤더 브랜드: MX On + M2I 로고 (클릭 시 index.html 로 이동) */
.brand{gap:14px}
.brand .hb-logo{width:auto;display:block}
.brand .hb-mxon{height:26px}
.brand .hb-m2i{height:36px}
.brand .hb-sep{width:1px;height:26px;background:var(--line);flex:none}
.brand:hover .hb-logo{opacity:.85;transition:opacity .18s}
.brand .dot{width:9px;height:9px;background:var(--signal);border-radius:2px;transform:rotate(45deg)}
.menu{display:flex;gap:34px;list-style:none}
.menu > li{position:static}
.menu > li > a{font-size:15px;font-weight:500;color:#33414D;position:relative;display:block;padding:22px 0}
.menu > li > a::after{content:"";position:absolute;left:0;bottom:0;height:2px;width:0;background:var(--signal);transition:width .22s}
.menu > li:hover > a{color:var(--ink)}
.menu > li:hover > a::after{width:100%}
/* 서브메뉴 (헤더 아래 전체 폭 띠 / 메가 메뉴) */
.submenu{position:absolute;top:100%;left:0;right:0;width:100%;list-style:none;display:flex;justify-content:center;gap:6px;background:var(--paper-2);border-top:2px solid var(--signal);border-bottom:1px solid var(--line);box-shadow:0 18px 30px rgba(11,22,32,.08);padding:16px 28px;opacity:0;visibility:hidden;transform:translateY(-6px);transition:opacity .2s,transform .2s,visibility .2s;z-index:60}
.menu > li:hover > .submenu{opacity:1;visibility:visible;transform:none}
.submenu a{display:block;padding:11px 20px;font-size:14px;font-weight:500;color:#33414D;border-radius:8px;white-space:nowrap}
.submenu a:hover{background:var(--paper);color:var(--ink)}
.nav-right{display:flex;align-items:center;gap:18px}
.lang{display:flex;font-family:var(--font-mono);font-size:12px;border:1px solid var(--line);border-radius:7px;overflow:hidden}
.lang button{background:none;border:0;padding:7px 11px;cursor:pointer;color:var(--slate);font-family:inherit;font-size:12px}
.lang button.on{background:var(--ink);color:#fff}
.hamb{display:none;background:none;border:0;cursor:pointer;flex-direction:column;gap:5px;padding:8px}
.hamb span{width:22px;height:2px;background:var(--ink);display:block}
/* ══════════ 푸터 (모든 페이지 공통) ══════════ */
footer{background:var(--ink);color:#96A8B6;padding:64px 0 40px;border-top:0}
.foot-top{display:flex;justify-content:space-between;gap:40px;flex-wrap:wrap;padding-bottom:36px;border-bottom:1px solid var(--line-dk)}
footer .brand{color:#fff;margin-bottom:14px}
.foot-cols{display:flex;gap:56px;flex-wrap:wrap}
.foot-cols h4{font-family:var(--font-mono);font-size:11px;letter-spacing:.1em;text-transform:uppercase;color:#6D8494;margin-bottom:14px}
.foot-cols a{display:block;font-size:14px;color:#B9C7D2;padding:4px 0}
.foot-cols a:hover{color:#fff}
.foot-bot{display:flex;justify-content:space-between;flex-wrap:wrap;gap:12px;margin-top:26px;font-size:13px;font-family:var(--font-mono);color:#6D8494}
/* ══════════ 회사 소개 페이지 (상세) ══════════ */
.page-hero{background:var(--ink);color:#EAF0F4;padding:76px 0 60px;position:relative;overflow:hidden}
.page-hero .grid-lines{position:absolute;inset:0;opacity:.4;background-image:linear-gradient(var(--line-dk) 1px,transparent 1px),linear-gradient(90deg,var(--line-dk) 1px,transparent 1px);background-size:64px 64px;mask-image:radial-gradient(90% 80% at 80% 10%,#000,transparent 78%)}
.page-hero .inner{position:relative}
.page-hero h1{font-size:clamp(30px,5vw,50px);font-weight:800;letter-spacing:-.02em;margin-top:16px}
.crumb{font-family:var(--font-mono);font-size:18px;color:#ffffff;letter-spacing:.08em;font-weight:bolder}
.crumb a:hover{color:#fff}
/* ══════════ 로그인 아이콘 (헤더) ══════════ */
.login-icon{display:inline-flex;align-items:center;justify-content:center;width:38px;height:38px;border:1px solid var(--line);border-radius:9px;color:#33414D;transition:background .2s,color .2s,border-color .2s}
.login-icon:hover{background:var(--ink);color:#fff;border-color:var(--ink)}
.login-icon svg{display:block}

/* 푸터 회사 정보 (저작권·연락처·주소·ICP) */
.foot-info{max-width:70ch;font-size:13.5px;line-height:1.9;color:#96A8B6}
.foot-info p{margin:0}
.foot-info p:first-child{color:#B9C7D2;margin-bottom:4px}
.foot-info span + span{margin-left:22px}
@media(max-width:680px){
  .foot-info span{display:block;margin-left:0!important}
  .foot-info p{margin-bottom:2px}
}
.foot-bot a{color:#8FA3B2;transition:color .18s}
.foot-bot a:hover{color:#fff}

/* 푸터 브랜드 로고 (MX On + M2I) — 어두운 배경에서도 원색이 보이도록 밝은 칩 위에 표시 */
.foot-brand{display:inline-flex;align-items:center;gap:16px;background:#fff;border-radius:10px;
  padding:12px 18px;margin-bottom:18px}
.foot-brand .fb-logo{display:block;width:auto}
.foot-brand .fb-mxon{height:24px}
.foot-brand .fb-m2i{height:32px}
.foot-brand .fb-sep{width:1px;height:26px;background:#E1E6EA;flex:none}
@media(max-width:680px){
  .foot-brand{gap:12px;padding:10px 14px}
  .foot-brand .fb-mxon{height:20px}
  .foot-brand .fb-m2i{height:27px}
}

/* 푸터 로고 링크 (MX On → mxon.co.kr / M2I → tophmi.com) */
.foot-brand .fb-link{display:flex;align-items:center;transition:opacity .18s}
.foot-brand .fb-link:hover{opacity:.72}
