/* ===== 메가텔레콤 메인페이지 (리디자인 핸드오프) ===== */
/* 메인(index.html) 전용 스타일. 내부 페이지는 기존 style.css/megamenu 유지. */

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, sans-serif;
  color: #16181D; background: #fff;
  -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; }

/* ---- keyframes ---- */
@keyframes mtFloat { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes mtPulse { 0%,100% { opacity: 1; } 50% { opacity: .45; } }

/* ---- hover/interaction ---- */
.mt-svc { transition: all .22s; }
.mt-svc:hover { transform: translateY(-6px); box-shadow: 0 18px 40px rgba(20,24,29,.13) !important; }
.mt-svc:hover .mt-arrow { transform: translateX(4px); }
.mt-arrow { transition: transform .2s; }
.mt-biz { transition: all .2s; }
.mt-biz:hover { border-color: #E60012 !important; transform: translateY(-4px); }
.mt-store { transition: all .22s; }
.mt-store:hover { transform: translateY(-5px); box-shadow: 0 20px 44px rgba(20,24,29,.16) !important; }
.mt-store:hover .mt-store-img { transform: scale(1.05); }
.mt-store-img { transition: transform .3s; }
.mt-nav-link { transition: color .15s; }
.mt-nav-link:hover { color: #E60012 !important; }
.mt-notice-row { transition: background .12s; }
.mt-notice-row:hover { background: #FAFAFB; }
.mt-cta { transition: background .15s; }
.mt-cta:hover { background: #C00010 !important; }
.mt-cta-ghost { transition: all .15s; }
.mt-cta-ghost:hover { background: #fff !important; color: #16181D !important; }
.mt-lang-pill { transition: background .15s; }
.mt-lang-pill:hover { background: rgba(255,255,255,.22) !important; }
.mt-fab { transition: transform .18s; }
.mt-fab:hover { transform: scale(1.07); }
.mt-chip { transition: all .15s; cursor: pointer; }
.mt-chip.selected { border-color: #E60012 !important; background: #FFF0F1 !important; color: #E60012 !important; }

/* ---- 그리드(반응형 오버라이드 용이하도록 CSS에서 정의) ---- */
.mt-grid { display: grid; }
.mt-hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.mt-grid-4 { grid-template-columns: repeat(4, 1fr); gap: 20px; }
.mt-grid-6 { grid-template-columns: repeat(6, 1fr); gap: 14px; }
.mt-grid-2 { grid-template-columns: 1fr 1fr; gap: 24px; }
.mt-news-grid { grid-template-columns: 1.35fr 1fr; gap: 30px; }
.mt-footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 40px; align-items: start; }

/* ---- 모바일 햄버거/드로어 ---- */
.mt-hamburger { display: none; width: 40px; height: 40px; border: none; background: none; cursor: pointer; flex-direction: column; gap: 5px; align-items: center; justify-content: center; }
.mt-hamburger span { display: block; width: 22px; height: 2px; background: #16181D; border-radius: 2px; transition: .2s; }
.mt-drawer { display: none; position: fixed; inset: 0; z-index: 90; }
.mt-drawer.open { display: block; }
.mt-drawer-overlay { position: absolute; inset: 0; background: rgba(0,0,0,.4); }
.mt-drawer-panel { position: absolute; top: 0; right: 0; bottom: 0; width: 78%; max-width: 320px; background: #fff; padding: 24px 22px; overflow-y: auto; box-shadow: -10px 0 40px rgba(0,0,0,.2); }
.mt-drawer-panel a { display: block; padding: 14px 6px; font-size: 16px; font-weight: 700; border-bottom: 1px solid #F1F2F4; }
.mt-drawer-close { position: absolute; top: 14px; right: 14px; border: none; background: #F6F7F9; width: 36px; height: 36px; border-radius: 9px; font-size: 20px; cursor: pointer; }

/* ---- 예약 모달 표시 토글 ---- */
.mt-modal { display: none; }
.mt-modal.open { display: flex; }

/* ===== 반응형 ===== */
@media (max-width: 1024px) {
  .mt-hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .mt-grid-6 { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
  .mt-nav { display: none !important; }
  .mt-hamburger { display: flex; }
  .mt-foreigners-action { display: none !important; }
  .mt-grid-4 { grid-template-columns: repeat(2, 1fr); }
  .mt-grid-2 { grid-template-columns: 1fr; }
  .mt-news-grid { grid-template-columns: 1fr; }
  .mt-footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .mt-hero-h1 { font-size: 38px !important; }
  .mt-section-h2 { font-size: 28px !important; }
  .mt-utilbar-hours { display: none; }
}
@media (max-width: 520px) {
  .mt-grid-4 { grid-template-columns: 1fr; }
  .mt-grid-6 { grid-template-columns: repeat(2, 1fr); }
  .mt-hero-h1 { font-size: 32px !important; }
}
