/* ==========================================================================
 * OBIA I18N 1:1 TRANSLATION MODULE CSS (OFFLINE PROTOTYPE)
 * Mission: AG-OBIA-INTERNATIONAL-04-OFFLINE-1TO1-TRANSLATION-PROTOTYPE
 * Preserves 100% Header Height (100px Desktop / 70px Mobile) & topGapPx = 0px
 * ========================================================================== */

/* 1. Language Switcher in Desktop Header (ul.header-nav.nav-right) */
.obia-lang-switcher-item {
  display: inline-flex !important;
  align-items: center !important;
  margin: 0 0 0 8px !important;
  padding: 0 !important;
  list-style: none !important;
  height: 36px !important;
  vertical-align: middle !important;
}

.obia-lang-pill-group {
  display: inline-flex !important;
  align-items: center !important;
  background: rgba(15, 42, 74, 0.06) !important;
  border: 1px solid rgba(15, 42, 74, 0.16) !important;
  border-radius: 999px !important;
  padding: 2px !important;
  gap: 2px !important;
  height: 32px !important;
  box-sizing: border-box !important;
}

.obia-lang-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-width: 34px !important;
  height: 26px !important;
  padding: 0 8px !important;
  border-radius: 999px !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  line-height: 1 !important;
  letter-spacing: 0.03em !important;
  color: #1e293b !important;
  text-decoration: none !important;
  transition: background-color 0.15s ease, color 0.15s ease !important;
  box-sizing: border-box !important;
  cursor: pointer !important;
}

.obia-lang-btn:hover {
  background: rgba(17, 117, 199, 0.12) !important;
  color: #0d5ea6 !important;
}

.obia-lang-btn.is-active {
  background: #1175c7 !important;
  color: #ffffff !important;
  box-shadow: 0 1px 3px rgba(17, 117, 199, 0.28) !important;
}

.obia-lang-btn:focus-visible {
  outline: 2px solid #0d5ea6 !important;
  outline-offset: 2px !important;
}

/* 2. Compact Language Switcher in Mobile Header (ul.mobile-nav.nav-right) */
.obia-mobile-lang-item {
  display: inline-flex !important;
  align-items: center !important;
  margin: 0 4px 0 0 !important;
  padding: 0 !important;
  list-style: none !important;
  height: 30px !important;
}

.obia-mobile-lang-item .obia-lang-pill-group {
  height: 28px !important;
  padding: 2px !important;
  gap: 1px !important;
}

.obia-mobile-lang-item .obia-lang-btn {
  min-width: 26px !important;
  height: 22px !important;
  padding: 0 5px !important;
  font-size: 10.5px !important;
}

/* 3. Language Bar inside Mobile Drawer (#main-menu) */
.obia-drawer-lang-bar {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding: 10px 18px !important;
  background: #f8fafc !important;
  border-bottom: 1px solid #e2e8f0 !important;
  font-size: 12.5px !important;
  font-weight: 600 !important;
  color: #334155 !important;
}

/* 4. Korean & English Typography Safety (Zero external WebFont download) */
html[lang="ko"] body,
html[lang="ko"] h1, html[lang="ko"] h2, html[lang="ko"] h3,
html[lang="ko"] h4, html[lang="ko"] h5, html[lang="ko"] h6,
html[lang="ko"] p, html[lang="ko"] a, html[lang="ko"] span,
html[lang="ko"] li, html[lang="ko"] label, html[lang="ko"] input,
html[lang="ko"] select, html[lang="ko"] button {
  font-family: "Be Vietnam Pro", -apple-system, BlinkMacSystemFont, "Malgun Gothic", "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
  word-break: keep-all;
  overflow-wrap: break-word;
}

/* Keep top navigation menu single-line and compact on Desktop 1440px */
@media (min-width: 850px) {
  html[lang="en"] #masthead .header-nav-main > li > a,
  html[lang="ko"] #masthead .header-nav-main > li > a {
    white-space: nowrap !important;
  }
}

/* 5. Safe Offline Form & Demo Notification Styling */
.obia-offline-demo-notice {
  margin-top: 10px !important;
  padding: 10px 14px !important;
  border-radius: 8px !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  line-height: 1.45 !important;
  display: none;
}

.obia-offline-demo-notice.is-visible {
  display: block !important;
}

.obia-offline-demo-notice.is-error {
  background: #fef2f2 !important;
  border: 1px solid #fecaca !important;
  color: #b91c1c !important;
}

.obia-offline-demo-notice.is-success {
  background: #f0fdf4 !important;
  border: 1px solid #bbf7d0 !important;
  color: #15803d !important;
}

input.obia-date-disabled {
  opacity: 0.55 !important;
  background-color: #f1f5f9 !important;
  cursor: not-allowed !important;
}

/* 6. P-CLS-01: Reserve exact 1316/818 aspect ratio for Mobile/Tablet hero banner & 44x44 for floating contact icons */
@media (max-width: 1024px) {
  #obia-hero .obia-hero-left-mobile {
    aspect-ratio: 1316 / 818;
  }
  #obia-hero .obia-hero-left-mobile img {
    aspect-ratio: 1316 / 818;
    width: 100%;
    height: auto;
    display: block;
  }
}
.float-call a img {
  width: 44px;
  height: 44px;
  aspect-ratio: 1 / 1;
  display: block;
}

/* ==========================================================================
   INT-51 HYBRID v2.0 ENHANCEMENTS:
   1. Hide internal developer notice (.real-data-notice) on customer frontend (Owner Approved Option C)
   2. Smooth interactive carousel controls on Page ID 8 (#sec-6-real)
   3. Exact Desktop Hero Form Card height sync on Page ID 8 (#obia-hero) matching Homepage 115
   ========================================================================== */
body.obia-hide-dev-notice .real-data-notice,
.obia-lp01 .real-data-notice {
  display: none !important;
}

#obia-lp01 .carousel-track {
  scroll-behavior: smooth;
}
#obia-lp01 .carousel-nav-btn {
  cursor: pointer;
  user-select: none;
  z-index: 5;
}
#obia-lp01 .carousel-dots .dot {
  cursor: pointer;
}

@media (min-width: 1025px) {
  html body #obia-lp01 #obia-hero .obia-hero-form-box.hero-form-card {
    height: auto !important;
    top: 3.2% !important;
    bottom: 3.2% !important;
    padding: 12px 16px !important;
    overflow-y: auto !important;
  }
  html body #obia-lp01 #obia-hero .obia-hero-form-box.hero-form-card .form-dx .row {
    margin-bottom: 4px !important;
  }
  html body #obia-lp01 #obia-hero .obia-hero-form-box.hero-form-card .form-dx p {
    margin: 0 0 2px !important;
  }
  html body #obia-lp01 #obia-hero .obia-hero-form-box.hero-form-card .form-dx label {
    font-size: 10.5px !important;
    margin-bottom: 2px !important;
  }
  html body #obia-lp01 #obia-hero .obia-hero-form-box.hero-form-card .form-dx input[type="text"],
  html body #obia-lp01 #obia-hero .obia-hero-form-box.hero-form-card .form-dx input[type="tel"],
  html body #obia-lp01 #obia-hero .obia-hero-form-box.hero-form-card .form-dx input[type="date"],
  html body #obia-lp01 #obia-hero .obia-hero-form-box.hero-form-card .form-dx select {
    height: 29px !important;
    min-height: 29px !important;
    max-height: 29px !important;
    padding: 2px 8px !important;
    font-size: 11.5px !important;
  }
  html body #obia-lp01 #obia-hero .obia-hero-form-box.hero-form-card .rowFull {
    padding-top: 4px !important;
  }
  html body #obia-lp01 #obia-hero .obia-hero-form-box.hero-form-card input.wpcf7-submit {
    height: 36px !important;
    line-height: 36px !important;
    font-size: 13.5px !important;
  }
}

/* 7. v2.0.1 Mobile Header (<= 549px) Fit: Prevents #logo (200px) from clipping VI|EN|KO + Cart icon on 360px-390px phones */
@media (max-width: 549px) {
  #masthead .header-inner.medium-logo-center #logo {
    width: auto !important;
    max-width: 132px !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }
  #masthead .header-inner.medium-logo-center #logo img {
    max-width: 132px !important;
    max-height: 52px !important;
    width: auto !important;
    height: auto !important;
  }
  #masthead .flex-right ul.mobile-nav {
    flex-wrap: nowrap !important;
    gap: 2px !important;
  }
  .obia-mobile-lang-item {
    margin: 0 2px 0 0 !important;
    height: 26px !important;
  }
  .obia-mobile-lang-item .obia-lang-pill-group {
    height: 24px !important;
    padding: 1px !important;
    gap: 1px !important;
  }
  .obia-mobile-lang-item .obia-lang-btn {
    min-width: 21px !important;
    height: 20px !important;
    padding: 0 4px !important;
    font-size: 9.5px !important;
  }
}

