/* Company subpage — extends styles.css */

:root {
  --company-blue: #107af2;
  --company-blue-dark: #0667d5;
  --company-text: #222;
  --company-muted: #505050;
  --company-tab-muted: #6b7280;
  --company-header-h: 80px;
  --company-sticky-offset: 280px;
}

html.company-html {
  scroll-behavior: smooth;
}

.company-page {
  margin: 0;
  background: #fff;
  color: var(--company-text);
  font-family: "Pretendard", "Noto Sans KR", sans-serif;
}

.company-page img {
  display: block;
  max-width: 100%;
}

.company-page a {
  color: inherit;
  text-decoration: none;
}

.company-page .footer-links a {
  color: #fff;
}

.company-page .footer-link-contact {
  color: #107af2;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ——— Header (scrolls with page) ——— */
.company-header {
  background: #fff;
  height: var(--company-header-h);
  width: 100%;
  position: relative;
  z-index: 100;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.company-header-inner {
  align-items: center;
  display: flex;
  height: 100%;
  justify-content: flex-start;
  max-width: 1920px;
  width: 100%;
  margin: 0 auto;
  padding: 21px clamp(24px, 12.5vw, 240px);
}

.company-header .company-logo {
  align-items: center;
  display: flex;
  flex-shrink: 0;
  gap: 0;
  height: 42px;
  margin-right: 0;
  padding: 0;
  position: relative;
  width: 270px;
}

.company-header .company-logo img {
  height: 42px;
  object-fit: contain;
  position: absolute;
  top: 0;
  left: 0;
  transition: opacity 0.18s ease;
  width: 270px;
}

.company-header-nav {
  align-items: center;
  display: flex;
  margin-left: auto;
}

.company-header .topbar-nav {
  align-items: center;
  display: flex;
  gap: 30px;
  justify-content: flex-end;
  margin-left: auto;
  margin-right: 32px;
}

.company-header .topbar-divider {
  width: 1px;
  height: 10px;
  background: #000;
  margin-right: 16px;
}

.company-header .gnb-item {
  position: relative;
}

.company-header .gnb-link {
  font-size: 18px;
  font-weight: 700;
  color: #000;
  padding: 8px 12px;
  border-radius: 50px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  height: 36px;
  line-height: 20px;
  transition: color 0.2s ease;
}

.company-header .gnb-link.is-active {
  color: var(--company-blue);
}

.company-header .gnb-item:hover .gnb-link:not(.is-active) {
  color: var(--company-blue);
}

.company-header .gnb-dropdown {
  left: 50%;
  min-width: 165px;
  opacity: 0;
  pointer-events: none;
  position: absolute;
  top: 100%;
  transform: translateX(-50%) translateY(-4px);
  transition: opacity 0.18s ease, transform 0.18s ease;
  z-index: 30;
}

.company-header .gnb-dropdown::before {
  content: "";
  height: 12px;
  left: 0;
  position: absolute;
  right: 0;
  top: -12px;
}

.company-header .gnb-item:hover .gnb-dropdown,
.company-header .gnb-item:focus-within .gnb-dropdown {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(8px);
}

.company-header .gnb-dropdown a {
  align-items: center;
  background: #107af2;
  color: #fff;
  display: flex;
  font-size: 14px;
  font-weight: 500;
  justify-content: center;
  min-height: 41px;
  padding: 12px 18px;
  white-space: nowrap;
  text-decoration: none;
}

.company-header .gnb-dropdown a:first-child {
  border-top-left-radius: 8px;
  border-top-right-radius: 8px;
}

.company-header .gnb-dropdown a:last-child {
  border-bottom-left-radius: 8px;
  border-bottom-right-radius: 8px;
}

.company-header .gnb-dropdown a:hover {
  background: #0667d5;
  font-weight: 700;
}

.company-header .lang-menu {
  position: relative;
}

.company-header .lang-btn {
  align-items: center;
  background: transparent;
  border: 1px solid #6b7280;
  border-radius: 999px;
  cursor: pointer;
  display: flex;
  gap: 6px;
  height: 36px;
  width: 91px;
  padding: 4px 6px;
}

.company-header .lang-btn img {
  height: 20px;
  width: 20px;
}

.company-header .lang-btn img:last-child {
  height: 24px;
  transition: transform 0.2s ease;
  width: 24px;
}

.company-header .lang-btn span {
  color: var(--company-tab-muted);
  font-family: "Pretendard", sans-serif;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
}

.company-header .lang-dropdown {
  box-shadow: 0 0 8.8px rgba(0, 0, 0, 0.2);
  left: 50%;
  opacity: 0;
  pointer-events: none;
  position: absolute;
  top: calc(100% + 8px);
  transform: translateX(-50%) translateY(-4px);
  transition: opacity 0.18s ease, transform 0.18s ease;
  width: 89px;
  z-index: 40;
}

.company-header .lang-menu.is-open .lang-dropdown {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.company-header .lang-menu.is-open .lang-btn img:last-child {
  transform: rotate(180deg);
}

.company-header .lang-option {
  border: 0;
  color: #fff;
  cursor: pointer;
  display: block;
  font-size: 14px;
  font-weight: 500;
  height: 36px;
  line-height: 20px;
  padding: 8px 0;
  text-align: center;
  width: 100%;
}

.company-header .lang-option:first-child {
  background: #0667d5;
  border-top-left-radius: 8px;
  border-top-right-radius: 8px;
}

.company-header .lang-option:last-child {
  background: #107af2;
  border-bottom-left-radius: 8px;
  border-bottom-right-radius: 8px;
}

.company-header .lang-option:hover,
.company-header .lang-option.is-active {
  filter: brightness(1.05);
  font-weight: 700;
}

/* ——— Main content (no top padding needed since header is not fixed) ——— */
.company-main {
  padding-top: 0;
}

/* ——— Page head (scrolls away, only tabs stick) ——— */
.company-sticky-head {
  position: relative;
  z-index: 50;
  background: #fff;
}

.company-inner {
  max-width: 1286px;
  width: 100%;
  margin: 0 auto;
  padding: 0;
}

.company-crumb {
  display: flex;
  align-items: center;
  gap: 25px;
  padding-top: 90px;
  font-size: 16px;
  font-weight: 600;
  color: var(--company-text);
}

.company-crumb .crumb-home {
  width: 16px;
  height: 18px;
}

.company-crumb .crumb-sep {
  width: 7px;
  height: 12px;
  transform: rotate(180deg);
}

.company-crumb .crumb-current {
  letter-spacing: -0.02em;
}

.company-page-title {
  margin: 8px 0 144px;
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  font-size: clamp(56px, 6vw, 80px);
  line-height: 1.5;
  color: var(--company-text);
}

.company-tabs-sticky {
  position: relative;
  z-index: 50;
  background: #fff;
  border-bottom: 1px solid #ddd;
}

.company-tabs {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0;
  margin-top: 0;
}

.company-tabs a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 70px;
  padding: 20px 30px;
  font-size: 18px;
  line-height: 1.5;
  border-bottom: 3px solid transparent;
  margin-bottom: -1px;
  color: var(--company-tab-muted);
  opacity: 0.65;
}

.company-tabs a.is-active {
  opacity: 1;
  color: var(--company-text);
  border-bottom-color: var(--company-blue);
  font-weight: 600;
}

.company-tabs a.tab-poppins {
  font-family: "Poppins", sans-serif;
}

.company-tabs a:not(.tab-poppins) {
  font-family: "Pretendard", sans-serif;
}

.company-section {
  scroll-margin-top: 70px;
}

/* ——— Our Story ——— */
.company-our-story {
  height: 620px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 24px;
  text-align: center;
  background: linear-gradient(
    -79.46deg,
    rgb(39, 6, 18) 4.98%,
    rgb(8, 5, 54) 47.06%,
    rgb(5, 15, 54) 97.63%
  );
}

.company-our-story-inner {
  max-width: 1027px;
  margin: 0 auto;
}

.company-our-story-title {
  margin: 0 0 50px;
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  font-size: clamp(44px, 5vw, 64px);
  line-height: 1.5;
  color: #fff;
}

.company-our-story-lead {
  margin: 0 0 16px;
  font-size: clamp(24px, 3vw, 32px);
  line-height: 1.48;
  letter-spacing: -0.8px;
  color: #fff;
}

.company-our-story-lead .em { font-weight: 700; }
.company-our-story-lead .reg { font-weight: 400; }

.company-our-story-desc {
  margin: 0;
  font-size: 20px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.9);
  letter-spacing: -0.025em;
}

/* ——— Core values ——— */
.company-core {
  padding: 114px 24px 195px;
}

.company-core h2 {
  margin: 0 0 72px;
  text-align: center;
  font-size: 56px;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: -1.4px;
  color: #000;
}

.company-core-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  max-width: 1380px;
  margin: 0 auto;
}

.company-core-card {
  position: relative;
  min-height: 386px;
  padding: 50px 60px;
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
}

.company-core-card-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.company-core-card-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.company-core-card-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 10.65%, rgba(0,0,0,0.5) 53%);
}

.company-core-card--exp .company-core-card-bg::after {
  background: linear-gradient(180deg, rgba(0,0,0,0) 10.65%, rgba(0,0,0,0.2) 53%);
}

.company-core-pill {
  position: relative;
  z-index: 1;
  padding: 4px 16px;
  border-radius: 30px;
  border: 1px solid rgba(255,255,255,0.45);
  background: rgba(0,0,0,0.1);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: #fff;
}

.company-core-card h3 {
  position: relative;
  z-index: 1;
  margin: 0 0 2px;
  font-size: 36px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #fff;
  line-height: 1.5;
}

.company-core-card p {
  position: relative;
  z-index: 1;
  margin: 0;
  font-size: 20px;
  line-height: 1.5;
  letter-spacing: -0.02em;
  color: rgba(255,255,255,0.8);
}

.company-core-card--wide {
  grid-column: 1 / -1;
}

/* ——— History ——— */
.company-history-hero {
  position: relative;
  min-height: 620px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 24px;
  text-align: center;
  color: #fff;
}

.company-history-hero-bg {
  position: absolute;
  inset: 0;
}

.company-history-hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.company-history-hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 51.24%, rgba(0,0,0,0.4) 71.42%),
    linear-gradient(90deg, rgba(0,0,0,0.28), rgba(0,0,0,0.28));
}

.company-history-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 1027px;
}

.company-history-hero h2 {
  margin: 0 0 50px;
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  font-size: clamp(40px, 5vw, 64px);
}

.company-history-hero .sub {
  margin: 0 0 16px;
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  font-size: 36px;
  line-height: 1.48;
}

.company-history-hero .desc {
  margin: 0;
  font-size: 20px;
  line-height: 1.6;
  color: rgba(255,255,255,0.9);
  letter-spacing: -0.025em;
}

/* Timeline */
.company-timeline-wrap {
  padding: 80px 24px 120px;
  max-width: 1274px;
  margin: 0 auto;
}

.company-timeline {
  position: relative;
  padding-left: 108px;
  border-left: 1px solid #d1d5db;
  margin-left: 40px;
}

.company-timeline-node {
  position: absolute;
  left: 0;
  top: 0;
  width: 48px;
  height: 48px;
  margin-left: -24px;
  margin-top: -12px;
  border-radius: 80px;
  background: var(--company-blue-dark);
  box-shadow: 0 4px 12px rgba(16,122,242,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.company-timeline-node img {
  width: 22px;
  height: 22px;
  filter: brightness(0) invert(1);
}

.company-timeline-block {
  display: grid;
  grid-template-columns: minmax(100px, 140px) 1fr;
  gap: 24px 48px;
  align-items: start;
  padding-bottom: 56px;
}

.company-timeline-year {
  font-family: "Poppins", sans-serif;
  font-weight: 500;
  font-size: clamp(36px, 4vw, 54px);
  line-height: 1.5;
  color: #000;
}

.company-timeline-year.is-highlight {
  color: #2563eb;
}

.company-timeline-events {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 30px;
  max-width: 520px;
}

.company-timeline-events li {
  font-size: 22px;
  line-height: 1.5;
  letter-spacing: -0.02em;
  color: var(--company-muted);
}

/* ——— Location ——— */
.company-location-layout {
  display: grid;
  grid-template-columns: minmax(120px, 280px) 1fr;
  gap: 40px 48px;
  align-items: start;
  padding-top: 48px;
}

.company-location-asia {
  font-family: "Poppins", sans-serif;
  font-weight: 500;
  font-size: 48px;
  line-height: 1.5;
  color: #0b2355;
  margin: 70px 0 0;
  padding-left: 8px;
}

.company-location-list {
  display: flex;
  flex-direction: column;
  gap: 96px;
  padding-bottom: 120px;
  width: 100%;
  max-width: 947px;
  justify-self: end;
}

.company-location-card {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.company-location-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
}

.company-location-info {
  flex: 1;
  min-width: 0;
}

.company-location-info h3 {
  margin: 0 0 28px;
  font-size: 32px;
  font-weight: 600;
  letter-spacing: -0.025em;
  color: #000;
}

.company-loc-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 12px;
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: -0.025em;
  color: var(--company-muted);
}

.company-loc-row:last-child { margin-bottom: 0; }

.company-loc-label {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  flex-shrink: 0;
}

.company-loc-label img { width: 14px; height: 16px; }
.company-loc-label.phone img { width: 16px; height: 16px; }

.company-loc-value {
  font-weight: 300;
  text-align: right;
  max-width: 614px;
}

.company-loc-thumb {
  width: 230px;
  height: 147px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
}

.company-loc-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.company-loc-map {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(0,0,0,0.15);
  aspect-ratio: 944 / 400;
}

.company-loc-map img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ——— Override footer background for company page ——— */
.company-page .footer {
  background: #050a1f;
}

/* ——— Responsive ——— */
@media (max-width: 1200px) {
  .company-header-nav,
  .company-header .topbar-nav,
  .company-header .topbar-divider {
    display: none;
  }
}

@media (max-width: 900px) {
  .company-header {
    height: 72px;
    width: 100%;
  }

  .company-header-inner {
    padding: 0 24px;
  }

  .company-header .company-logo {
    width: 180px;
    height: 28px;
  }

  .company-header .company-logo img {
    width: 180px;
    height: 28px;
  }

  .company-inner {
    padding: 0 24px;
  }

  .company-page-title {
    font-size: 64px;
    margin-bottom: 84px;
  }

  .company-crumb {
    padding-top: 56px;
  }

  .company-core-grid {
    grid-template-columns: 1fr;
  }

  .company-timeline {
    margin-left: 16px;
    padding-left: 24px;
  }

  .company-timeline-node {
    margin-left: -48px;
  }

  .company-timeline-block {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .company-header {
    height: 62px;
  }

  .company-header-inner {
    padding: 0 16px;
  }

  .company-header .company-logo {
    width: 148px;
    height: 23px;
  }

  .company-header .company-logo img {
    width: 148px;
    height: 23px;
  }

  .company-inner {
    padding: 0 16px;
  }

  .company-crumb {
    gap: 12px;
    padding-top: 34px;
    font-size: 14px;
  }

  .company-page-title {
    font-size: 48px;
    margin-bottom: 44px;
  }

  .company-our-story {
    height: auto;
    min-height: 460px;
    padding: 80px 16px;
  }

  .company-our-story-title {
    margin-bottom: 28px;
    font-size: 48px;
  }

  .company-our-story-lead {
    font-size: 24px;
    letter-spacing: -0.4px;
  }

  .company-our-story-desc {
    font-size: 17px;
    line-height: 1.7;
  }

  .company-core {
    padding: 80px 16px 120px;
  }

  .company-core h2 {
    font-size: 44px;
    margin-bottom: 36px;
    letter-spacing: -0.8px;
  }

  .company-tabs a {
    padding: 16px 16px;
    font-size: 16px;
  }

  .company-location-layout {
    grid-template-columns: 1fr;
  }

  .company-location-asia {
    margin-top: 0;
  }

  .company-location-top {
    flex-direction: column;
  }

  .company-loc-value {
    text-align: left;
  }

  .company-tabs {
    flex-direction: column;
    align-items: stretch;
    border: 1px solid #d8d8d8;
    border-radius: 10px;
    margin: 0;
    overflow: hidden;
  }

  .company-tabs a {
    border-bottom: 1px solid #eee;
    border-radius: 0;
    justify-content: flex-start;
    margin-bottom: 0;
    min-height: 52px;
    padding: 16px 18px;
  }

  .company-tabs a.is-active {
    background: rgba(16, 122, 242, 0.06);
    border-bottom-color: #eee;
    border-left: 3px solid var(--company-blue);
    padding-left: 15px;
  }

  .company-tabs a:last-child {
    border-bottom: 0;
  }
}
