/* MCAIT responsive footer + mobile safety patch v3
   - 심플 footer 유지
   - 스마트폰에서도 footer가 반드시 보이도록 display/visibility 보정
   - 모바일 메뉴와 프로토타입 모달 터치 동작 보정
*/

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

*, *::before, *::after {
  box-sizing: border-box;
}

/* 모바일 메뉴 보정: 기존 style.css가 없거나 약한 경우에도 동작하도록 보강 */
.menu-toggle {
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.mobile-nav {
  width: 100%;
}

.mobile-nav.open,
.mobile-nav.is-open {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
}

.mobile-nav a {
  touch-action: manipulation;
  -webkit-tap-highlight-color: rgba(0,0,0,.08);
}

/* scroll reveal: 구형/모바일 브라우저에서도 내용이 사라져 보이지 않도록 안전값 유지 */
.mcait-scroll-reveal {
  opacity: 1;
  transform: none;
}

@media (min-width: 769px) {
  .mcait-scroll-reveal {
    opacity: 0;
    transform: translateY(36px);
    transition: opacity .7s ease, transform .7s ease;
    will-change: opacity, transform;
  }

  .mcait-scroll-reveal.mcait-visible {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 심플 footer: 모든 브라우저/스마트폰에서 보이도록 강제 보정 */
.site-footer,
.site-footer.mcait-footer-simple {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  clear: both;
  position: relative;
  z-index: 10;
  width: 100%;
  margin: 0;
  padding: 28px 0;
  background: #111827;
  color: #e5e7eb;
  font-size: 14px;
  line-height: 1.7;
  overflow: visible;
}

.site-footer.mcait-footer-simple .footer-wrap,
.site-footer .footer-wrap {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 22px 34px;
  flex-wrap: wrap;
}

.mcait-footer-main {
  flex: 1 1 620px;
  min-width: 260px;
}

.mcait-footer-main strong {
  display: inline-block;
  margin-bottom: 2px;
  color: #ffffff;
  font-size: 15px;
  font-weight: 800;
}

.mcait-footer-main > span {
  display: inline-block;
  color: #cbd5e1;
  line-height: 1.6;
}

.mcait-footer-business {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 18px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
  color: #d1d5db;
  font-size: 13px;
  line-height: 1.7;
}

.mcait-footer-business li {
  margin: 0;
  white-space: normal;
}

.mcait-footer-business b {
  color: #ffffff;
  font-weight: 700;
}

.mcait-footer-business a,
.site-footer.mcait-footer-simple a,
.site-footer a {
  color: inherit;
  text-decoration: none;
}

.mcait-footer-business a:hover,
.mcait-footer-business a:focus,
.site-footer.mcait-footer-simple .footer-links a:hover,
.site-footer.mcait-footer-simple .footer-links a:focus {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.site-footer.mcait-footer-simple .footer-links,
.mcait-footer-links {
  flex: 0 1 340px;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  text-align: right;
  gap: 10px 14px;
  flex-wrap: wrap;
  color: #cbd5e1;
  font-size: 13px;
}

.site-footer.mcait-footer-simple .footer-links span,
.mcait-footer-links span {
  color: #9ca3af;
}

/* 프로토타입 제목 버튼: 스마트폰 터치가 먹지 않는 문제 방지 */
.prototype-title-btn {
  -webkit-appearance: none;
  appearance: none;
  display: inline;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-weight: inherit;
  text-align: left;
  cursor: pointer;
  touch-action: manipulation;
  pointer-events: auto;
  -webkit-tap-highlight-color: rgba(37, 99, 235, .18);
}

.prototype-title-btn:hover,
.prototype-title-btn:focus {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.prototype-mini-card,
.prototype-mini-card * {
  max-width: 100%;
}

/* 프로토타입 상세 모달: 모바일 화면에서 화면 밖으로 밀리지 않도록 보정 */
.prototype-modal[hidden] {
  display: none !important;
}

.prototype-modal {
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
}

.prototype-modal-backdrop {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  background: rgba(15, 23, 42, .72);
}

.prototype-modal-dialog {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 980px;
  max-height: 92vh;
  overflow: auto;
  background: #ffffff;
  color: #111827;
  border-radius: 18px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, .28);
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(260px, .65fr);
  outline: none;
  -webkit-overflow-scrolling: touch;
}

.prototype-modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 999px;
  background: rgba(17, 24, 39, .86);
  color: #ffffff;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  touch-action: manipulation;
}

.prototype-modal-media {
  background: #f3f4f6;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 280px;
}

.prototype-modal-media img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 78vh;
  object-fit: contain;
}

.prototype-modal-body {
  padding: 34px 28px 28px;
}

.prototype-open-new {
  touch-action: manipulation;
}

@media (max-width: 760px) {
  .site-footer,
  .site-footer.mcait-footer-simple {
    padding: 24px 0 26px;
    font-size: 13px;
  }

  .site-footer.mcait-footer-simple .footer-wrap,
  .site-footer .footer-wrap {
    display: block;
    padding: 0 18px;
  }

  .mcait-footer-main {
    min-width: 0;
  }

  .mcait-footer-main strong {
    font-size: 15px;
  }

  .mcait-footer-business {
    display: block;
    margin-top: 10px;
    font-size: 12.5px;
    line-height: 1.75;
  }

  .mcait-footer-business li + li {
    margin-top: 2px;
  }

  .site-footer.mcait-footer-simple .footer-links,
  .mcait-footer-links {
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
    text-align: left;
    gap: 8px 12px;
    margin-top: 16px;
    font-size: 12.5px;
  }

  .site-footer.mcait-footer-simple .footer-links span,
  .mcait-footer-links span {
    flex-basis: 100%;
  }

  .prototype-title-btn {
    min-height: 32px;
    line-height: 1.35;
  }

  .prototype-modal {
    align-items: flex-start;
    padding: 10px;
    padding-top: 18px;
  }

  .prototype-modal-dialog {
    display: block;
    max-height: 88vh;
    border-radius: 14px;
  }

  .prototype-modal-media {
    min-height: 160px;
  }

  .prototype-modal-media img {
    max-height: 52vh;
  }

  .prototype-modal-body {
    padding: 20px 18px 22px;
  }

  .prototype-modal-close {
    width: 40px;
    height: 40px;
    top: 8px;
    right: 8px;
  }
}

@media (max-width: 380px) {
  .site-footer.mcait-footer-simple .footer-wrap,
  .site-footer .footer-wrap {
    padding: 0 14px;
  }

  .mcait-footer-business {
    font-size: 12px;
  }
}


/* 회사소개 CI 섹션 v4 */
.mcait-ci-section {
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 52%, #ffffff 100%);
  color: #111827;
  overflow: hidden;
}

.mcait-ci-section .container {
  width: 100%;
  max-width: 1120px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}

.mcait-ci-header {
  max-width: 820px;
  margin: 0 auto 26px;
  text-align: center;
}

.mcait-ci-header h2 {
  margin: 8px 0 12px;
  color: #0f2f7a;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.2;
  letter-spacing: -0.04em;
}

.mcait-ci-header p {
  margin: 0 auto;
  color: #374151;
  font-size: clamp(16px, 2.2vw, 19px);
  line-height: 1.75;
  word-break: keep-all;
}

.mcait-ci-visual {
  margin: 24px auto 30px;
  padding: clamp(18px, 4vw, 34px);
  max-width: 980px;
  border: 1px solid rgba(37, 99, 235, .14);
  border-radius: 26px;
  background: #ffffff;
  box-shadow: 0 20px 56px rgba(15, 23, 42, .08);
}

.mcait-ci-visual img {
  display: block;
  width: 100%;
  max-width: 920px;
  height: auto;
  margin: 0 auto;
}

.mcait-ci-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 24px;
}


.mcait-ci-grid-compact {
  max-width: 980px;
  margin-left: auto;
  margin-right: auto;
}

.mcait-ci-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  min-width: 0;
  padding: 24px;
  border: 1px solid rgba(37, 99, 235, .14);
  border-radius: 22px;
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 14px 36px rgba(15, 23, 42, .06);
}

.mcait-ci-number {
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #0f4fc4, #073078);
  color: #ffffff;
  font-size: 21px;
  font-weight: 800;
  box-shadow: 0 10px 22px rgba(7, 48, 120, .22);
}

.mcait-ci-card-body {
  min-width: 0;
}

.mcait-ci-card h3 {
  margin: 3px 0 12px;
  color: #0f3d9e;
  font-size: 20px;
  line-height: 1.35;
  letter-spacing: -0.03em;
}

.mcait-ci-card p,
.mcait-ci-card li {
  color: #1f2937;
  font-size: 15.5px;
  line-height: 1.78;
  word-break: keep-all;
}

.mcait-ci-card p {
  margin: 0;
}

.mcait-ci-card ul {
  margin: 0;
  padding-left: 18px;
}

.mcait-ci-card li + li {
  margin-top: 6px;
}

.mcait-ci-card strong {
  color: #0b3f9f;
  font-weight: 800;
}

@supports not (display: grid) {
  .mcait-ci-grid {
    display: flex;
    flex-wrap: wrap;
  }
  .mcait-ci-card {
    width: calc(50% - 9px);
  }
}

/* 태블릿/스마트폰 반응형 */
@media (max-width: 860px) {
  .mcait-ci-grid {
    grid-template-columns: 1fr;
  }

  @supports not (display: grid) {
    .mcait-ci-card {
      width: 100%;
    }
  }
}

@media (max-width: 560px) {
  .mcait-ci-section .container {
    padding-left: 16px;
    padding-right: 16px;
  }

  .mcait-ci-visual {
    margin-top: 18px;
    margin-bottom: 22px;
    padding: 14px;
    border-radius: 18px;
  }

  .mcait-ci-card {
    padding: 18px;
    gap: 12px;
    border-radius: 18px;
  }

  .mcait-ci-number {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    font-size: 18px;
  }

  .mcait-ci-card h3 {
    font-size: 18px;
  }

  .mcait-ci-card p,
  .mcait-ci-card li {
    font-size: 14.5px;
    line-height: 1.72;
  }

}
/* =========================================================
   MCAIT mobile navigation vertical dropdown patch
   - 스마트폰 메뉴를 가로 나열이 아닌 세로 드롭다운으로 통일
   - 모든 페이지가 이 CSS를 읽고 있으므로 이 파일 하나만 교체하면 적용됨
   ========================================================= */

@media (min-width: 769px) {
  .mobile-nav {
    display: none !important;
  }
}

@media (max-width: 768px) {
  .site-header {
    position: relative;
    z-index: 1000;
  }

  .site-header .nav {
    position: relative;
  }

  .desktop-nav {
    display: none !important;
  }

  .menu-toggle {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    margin-left: auto;
    border: 0;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.94);
    color: #071a3a;
    font-size: 34px;
    line-height: 1;
    box-shadow: 0 16px 42px rgba(7, 26, 58, 0.12);
    cursor: pointer;
  }

  .mobile-nav {
    display: none !important;
    position: absolute;
    left: 18px;
    right: 18px;
    top: calc(100% + 8px);
    z-index: 1001;
    width: auto !important;
    margin: 0 !important;
    padding: 12px !important;
    border: 1px solid rgba(15, 48, 122, 0.12);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 22px 58px rgba(7, 26, 58, 0.18);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    text-align: left;
  }

  .mobile-nav.open,
  .mobile-nav.is-open {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    justify-content: flex-start !important;
    gap: 8px !important;
    visibility: visible !important;
    opacity: 1 !important;
  }

  .mobile-nav a {
    display: flex !important;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    min-height: 48px;
    padding: 13px 16px !important;
    border-radius: 15px;
    background: #f6f9ff;
    color: #071a3a !important;
    font-size: 16px;
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: -0.03em;
    text-decoration: none !important;
    white-space: normal !important;
  }

  .mobile-nav a:hover,
  .mobile-nav a:focus,
  .mobile-nav a:active {
    background: linear-gradient(135deg, #0b5cff 0%, #04befe 100%);
    color: #ffffff !important;
    outline: none;
  }
}

@media (max-width: 420px) {
  .menu-toggle {
    width: 58px;
    height: 58px;
    border-radius: 20px;
    font-size: 31px;
  }

  .mobile-nav {
    left: 14px;
    right: 14px;
    padding: 10px !important;
    border-radius: 20px;
  }

  .mobile-nav a {
    min-height: 46px;
    padding: 12px 14px !important;
    font-size: 15px;
  }
}
