/* ============================================================
   RONIX mobile — shared styles
   Mobile-first, width:device-width, 순수 반응형.
   Wix 클래스 일체 미사용.
   ============================================================ */

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: 'Noto Sans KR', 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: #1f2937;
  background: #fff;
  word-break: keep-all;
  overflow-wrap: break-word;
  padding-top: 60px;              /* fixed header 공간 */
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, h4, h5, h6 { margin: 0; font-weight: 700; line-height: 1.3; }
p { margin: 0 0 .9em; }
button { font-family: inherit; }

/* ---- Header (fixed) ---- */
.m-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 60px;
  background: #fff;
  border-bottom: 1px solid #eef0f3;
  z-index: 1000;
  display: flex;
  align-items: center;
  padding: 0 14px;
  gap: 10px;
}
.m-header__logo {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  min-width: 0;
}
.m-header__logo-img { height: 28px; width: auto; flex: none; }
.m-header__brand {
  font-size: 14px;
  font-weight: 900;
  color: #0a4651;
  letter-spacing: -0.4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}
/* 아주 좁은 화면 (~340px 이하) 에서는 브랜드 텍스트 숨김 — 로고 이미지로 대체 */
@media (max-width: 340px) {
  .m-header__brand { display: none; }
}
.m-burger {
  background: linear-gradient(135deg, #0a4651, #073640);
  color: #fff;
  border: 2px solid #fff;
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 3px 10px rgba(0,0,0,.15);
  cursor: pointer;
}
.m-burger svg { width: 14px; height: 14px; fill: currentColor; }

/* ---- Quick quote button (fixed) ---- */
.m-quote-btn {
  position: fixed;
  top: 70px;
  right: 10px;
  z-index: 999;
  padding: 9px 16px;
  background: linear-gradient(135deg, #e63946, #c1121f);
  color: #fff !important;
  border: 2px solid #fff;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .3px;
  box-shadow: 0 4px 14px rgba(0,0,0,.25);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  animation: m-pulse 2.4s infinite;
}
.m-quote-btn svg { width: 14px; height: 14px; fill: currentColor; }
@keyframes m-pulse {
  0%,100% { box-shadow: 0 4px 14px rgba(0,0,0,.25), 0 0 0 0 rgba(230,57,70,.55); }
  70%     { box-shadow: 0 4px 14px rgba(0,0,0,.25), 0 0 0 12px rgba(230,57,70,0); }
}

/* ---- Hamburger drawer ---- */
.m-backdrop {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.5);
  z-index: 9998;
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s ease;
}
.m-drawer {
  position: fixed;
  top: 0; right: 0;
  width: 82%;
  max-width: 320px;
  height: 100%;
  background: #0a4651;
  color: #fff;
  padding: 24px 22px;
  transform: translateX(100%);
  transition: transform .3s ease;
  z-index: 9999;
  overflow-y: auto;
}
.m-drawer__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 18px;
  margin-bottom: 12px;
  border-bottom: 1px solid rgba(255,255,255,.18);
}
.m-drawer__title { font-size: 16px; font-weight: 900; letter-spacing: 3px; }
.m-drawer__close {
  background: none; border: none;
  font-size: 28px; color: #fff; cursor: pointer;
  line-height: 1; padding: 4px 8px;
}
.m-drawer a {
  display: block;
  padding: 15px 4px;
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  border-bottom: 1px solid rgba(255,255,255,.12);
}
.m-drawer a:active { background: rgba(255,255,255,.06); }
body.m-menu-open .m-drawer   { transform: translateX(0); }
body.m-menu-open .m-backdrop { opacity: 1; visibility: visible; }
body.m-menu-open             { overflow: hidden; }

/* ---- Section / container ---- */
.m-section { padding: 36px 20px; }
.m-section--alt { background: #f6f7f9; }
.m-section--dark {
  background: linear-gradient(160deg, #0a4651 0%, #0d3e48 45%, #061e26 100%);
  color: #fff;
}
.m-section__title {
  font-size: 22px;
  font-weight: 900;
  text-align: center;
  color: #0a4651;
  margin-bottom: 6px;
  line-height: 1.35;
}
.m-section--dark .m-section__title { color: #fff; }
.m-section__sub {
  font-size: 14px;
  color: #6b7280;
  text-align: center;
  margin-bottom: 22px;
}
.m-section--dark .m-section__sub { color: rgba(255,255,255,.75); }

/* ---- Hero ---- */
.m-hero {
  background: linear-gradient(160deg, #0a4651 0%, #0d3e48 50%, #061e26 100%);
  color: #fff;
  padding: 42px 20px 50px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.m-hero::before, .m-hero::after {
  content: "";
  position: absolute; left: 0; right: 0;
  height: 2px; pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(247,200,31,.55), transparent);
}
.m-hero::before { top: 0; } .m-hero::after { bottom: 0; }
.m-hero__tag {
  display: inline-block;
  font-size: 11px; font-weight: 800; letter-spacing: 2px;
  color: #f7c81f;
  border: 1px solid rgba(247,200,31,.5);
  padding: 5px 14px; border-radius: 999px;
  margin-bottom: 20px;
}
.m-hero__title {
  font-size: 26px;
  font-weight: 900;
  line-height: 1.35;
  letter-spacing: -0.5px;
  margin-bottom: 14px;
}
.m-hero__title .red  { color: #ff6b6b; }
.m-hero__title .gold { color: #f7c81f; }
.m-hero__sub {
  font-size: 14px;
  line-height: 1.7;
  opacity: .88;
  margin-bottom: 28px;
}
.m-hero__cta {
  display: inline-block;
  padding: 14px 26px;
  background: linear-gradient(135deg, #e63946, #c1121f);
  color: #fff !important;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: .3px;
  text-decoration: none;
  box-shadow: 0 6px 18px rgba(200,18,31,.4);
}

/* ---- Pillars grid ---- */
.m-pillars {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.m-pillar {
  background: #fff;
  border-radius: 12px;
  padding: 20px 14px;
  text-align: center;
  border-top: 3px solid #c8201e;
  box-shadow: 0 3px 10px rgba(0,0,0,.06);
}
.m-pillar__ic {
  display: inline-flex;
  align-items: center; justify-content: center;
  width: 44px; height: 44px;
  background: linear-gradient(135deg, #c8201e, #a31a18);
  color: #fff;
  border-radius: 50%;
  font-size: 20px;
  margin-bottom: 10px;
}
.m-pillar h3 {
  font-size: 14px; font-weight: 900;
  color: #0a4651;
  margin-bottom: 4px;
}
.m-pillar p {
  font-size: 12px; line-height: 1.55;
  color: #4b5563;
  margin: 0;
}

/* ---- Callout ---- */
.m-callout {
  background: #fff;
  border-radius: 12px;
  padding: 22px 20px;
  border-left: 4px solid #c8201e;
  box-shadow: 0 4px 14px rgba(0,0,0,.06);
  margin-bottom: 14px;
  text-align: center;
}
.m-callout p { font-size: 14px; line-height: 1.8; margin-bottom: 0; }
.m-callout strong { color: #c8201e; font-weight: 800; }
.m-callout .lead {
  display: block;
  font-size: 17px; font-weight: 800;
  color: #0a4651;
  margin-bottom: 10px;
}

/* ---- Red banner ---- */
.m-banner-red {
  background: linear-gradient(90deg, #c8201e, #e63946, #c8201e);
  color: #fff;
  padding: 16px 20px;
  text-align: center;
  font-weight: 800;
  font-size: 14px;
  letter-spacing: .3px;
}
.m-banner-red .gold { color: #ffe066; }
.m-banner-red--home {
  font-size: 16px;
  line-height: 1.5;
  padding: 18px 20px;
}
.m-banner-red--home > div + div { margin-top: 4px; }

/* ---- Video ---- */
.m-video {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: 12px;
  background: #000;
  margin-bottom: 14px;
}
.m-video iframe, .m-video video {
  position: absolute; top: 0; left: 0;
  width: 100%; height: 100%;
  border: 0;
}

/* ---- Image blocks ---- */
.m-img-card {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(0,0,0,.08);
  margin-bottom: 14px;
}
.m-img-card img { width: 100%; height: auto; display: block; }

/* ---- Footer ---- */
.m-footer {
  background: #0a4651;
  color: #fff;
  padding: 32px 20px 26px;
  font-size: 12px;
  line-height: 1.7;
  text-align: center;
}
.m-footer p { margin: 0; }
.m-footer__en { margin-top: 14px; color: rgba(255,255,255,.75); }
.m-footer__copy {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid rgba(255,255,255,.15);
  color: rgba(255,255,255,.6);
  font-size: 11px;
}

/* ---- Media queries (larger phones / tablets landscape) ---- */
@media (min-width: 520px) {
  .m-hero__title      { font-size: 30px; }
  .m-section__title   { font-size: 25px; }
  .m-pillars          { grid-template-columns: repeat(4, 1fr); gap: 14px; }
  .m-pillar h3        { font-size: 15px; }
  .m-pillar p         { font-size: 13px; }
}
@media (min-width: 720px) {
  .m-section          { padding: 50px 28px; }
  .m-hero             { padding: 56px 28px 64px; }
  .m-hero__title      { font-size: 34px; }
}
