/* ✅ 기본 설정 (전역 폰트 Tahoma) */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: Tahoma, sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: #f5f7fb;
  color: #222;
}

/* ✅ 헤더 / 상단바 */
.header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: #ffffffcc;
  backdrop-filter: blur(10px);
  border-bottom: 1px solid #dde2ee;
  padding: 10px 40px;
  display: flex;
  align-items: center;
}

/* 로고 */
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.logo-img {
  height: 40px;
  width: 40px;
  object-fit: cover;
  border-radius: 6px;
}

.logo-text {
  font-weight: 700;
  font-size: 18px;
  color: #1a2b4c;
}

/* 네비게이션 (가로 메뉴) */
.nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 22px;
}

.nav a {
  text-decoration: none;
  color: #333;
  font-size: 14px;
}

/* 언어 선택 */
.lang-select {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  margin-left: 10px;
}

.lang-select a {
  color: #444;
  text-decoration: none;
  font-weight: 600;
  transition: 0.2s;
  opacity: 0.65;
}

.lang-select a:hover {
  opacity: 1;
}

.lang-select .active {
  opacity: 1;
  color: #000;
  font-weight: 700;
}

/* ✅ 히어로 섹션 */
.hero {
  padding: 80px 20px 60px;
  background: radial-gradient(circle at top left, #1e88e5 0, #0d47a1 40%, #06152d 100%);
  color: white;
}

.hero-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1.1fr);
  gap: 40px;
  align-items: center;
}

.hero-text {
  max-width: 620px;
}

.hero-label {
  font-size: 13px;
  letter-spacing: 2px;
  text-transform: uppercase;
  opacity: 0.8;
  margin-bottom: 10px;
}

.hero h1 {
  font-size: 34px;
  line-height: 1.3;
  margin-bottom: 16px;
}

.hero-sub {
  font-size: 15px;
  line-height: 1.7;
  opacity: 0.9;
  margin-bottom: 24px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* 버튼 */
.btn {
  display: inline-block;
  padding: 10px 20px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
}

.btn.primary {
  background: #ffcc00;
  color: #1a2b4c;
}

.btn.primary:hover {
  filter: brightness(0.95);
}

.btn.ghost {
  background: transparent;
  color: #ffffff;
  border-color: #ffffff55;
}

.btn.ghost:hover {
  background: #ffffff22;
}

/* 히어로 통계 카드 */
.hero-stats {
  display: grid;
  gap: 12px;
}

.stat-card {
  background: #ffffff11;
  border-radius: 10px;
  padding: 14px 16px;
  border: 1px solid #ffffff33;
}

.stat-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  opacity: 0.8;
}

.stat-value {
  display: block;
  font-size: 20px;
  font-weight: 700;
  margin: 4px 0;
}

.stat-desc {
  font-size: 12px;
  opacity: 0.9;
}

/* ✅ 공통 섹션 */
.section {
  padding: 60px 20px;
  max-width: 1100px;
  margin: 0 auto;
  scroll-margin-top: 90px; /* 헤더에 안 가리게 */
}

.section h2 {
  font-size: 26px;
  margin-bottom: 16px;
  text-align: center;
  color: #1a2b4c;
}

.section-sub {
  text-align: center;
  font-size: 14px;
  color: #555;
  margin-bottom: 24px;
}

.section-gray {
  background-color: #eef2fb;
  border-top: 1px solid #dde2ee;
  border-bottom: 1px solid #dde2ee;
}

/* ✅ 회사 소개 */
.about-wrap {
  display: flex;
  align-items: flex-start;
  gap: 30px;
  margin-top: 24px;
}

.about-img img {
  width: 180px;
  height: 180px;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.about-text {
  text-align: left;
  line-height: 1.8;
  flex: 1;
}

.about-text h3 {
  font-size: 22px;
  margin-bottom: 10px;
}

.about-tags {
  margin-bottom: 14px;
}

.about-tags span {
  display: inline-block;
  font-size: 11px;
  padding: 4px 8px;
  border-radius: 999px;
  background: #e3efff;
  color: #1e88e5;
  margin-right: 6px;
  margin-bottom: 4px;
}

.about-contact {
  margin-top: 12px;
  font-size: 14px;
  color: #444;
}

/* ✅ 사업분야 카드 (가로 3개 + 버튼식) */
.cards {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}

.card {
  background: white;
  padding: 20px 18px;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(6,21,45,0.06);
  text-align: left;
  border: 1px solid #dde2ee;
}

.card-icon {
  font-size: 24px;
  margin-bottom: 8px;
}

.card h3 {
  margin-bottom: 8px;
  font-size: 18px;
  color: #1a2b4c;
}

.card p {
  font-size: 14px;
  line-height: 1.7;
  color: #444;
}

/* 카드 전체를 버튼처럼 */
.card-btn {
  cursor: pointer;
  transition: 0.2s ease;
  text-decoration: none;
  color: inherit;
}

.card-btn:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 14px rgba(0,0,0,0.12);
  background: #ffffff;
}

/* ✅ 강점 섹션 */
.strength-grid {
  margin-top: 20px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}

.strength-item {
  background: #ffffff;
  padding: 18px 18px;
  border-radius: 10px;
  border: 1px solid #dde2ee;
  box-shadow: 0 2px 6px rgba(0,0,0,0.03);
  text-align: left;
}

.strength-item h3 {
  font-size: 16px;
  margin-bottom: 8px;
  color: #1a2b4c;
}

.strength-item p {
  font-size: 14px;
  color: #444;
  line-height: 1.7;
}

/* ✅ 문의 폼 공통 스타일 (KR/EN 페이지 공유) */
.contact-form {
  max-width: 520px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.contact-form input,
.contact-form textarea {
  padding: 10px;
  border-radius: 6px;
  border: 1px solid #c9d2eb;
  font-size: 14px;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: #1e88e5;
  box-shadow: 0 0 0 1px #1e88e544;
}

.contact-form button {
  padding: 11px;
  border: none;
  border-radius: 999px;
  background: #1e88e5;
  color: white;
  font-size: 15px;
  cursor: pointer;
  font-weight: 600;
}

.contact-form button:hover {
  filter: brightness(0.95);
}

/* 문의 페이지용 안내 텍스트 (쓸 거면) */
.form-notice {
  margin-top: 8px;
  font-size: 12px;
  color: #666;
  text-align: center;
}

/* ✅ 문의페이지 전용 레이아웃 (100vh 꽉 차게) */
.contact-page-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.contact-page {
  flex: 1;
  max-width: 800px;
}

/* 문의 헤더 */
.contact-header {
  padding: 20px;
  background: #1e88e5;
  color: white;
  text-align: center;
  position: relative;
}

.contact-header h1 {
  font-size: 22px;
}

/* 뒤로가기 / 닫기 버튼 */
.back-btn {
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  color: white;
  text-decoration: none;
  font-size: 14px;
}

.back-btn:hover {
  text-decoration: underline;
}

/* ✅ 푸터 */
.footer {
  background: #111827;
  color: #e5e7eb;
  padding: 20px 20px 24px;
  font-size: 12px;
  margin-top: 20px;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.footer-info {
  margin-bottom: 10px;
  line-height: 1.7;
}

.footer-info strong {
  color: #ffffff;
}

.footer-copy {
  color: #9ca3af;
}

/* 푸터 아래 공백 제거용 */
body {
  margin-bottom: 0;
}

/* ✅ 반응형: 태블릿 이하 */
@media (max-width: 900px) {
  .header {
    padding: 10px 16px;
  }

  .hero-inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero {
    text-align: left;
  }

  .hero-stats {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  }

  .about-wrap {
    flex-direction: column;
    align-items: center;
  }

  .about-text {
    text-align: center;
  }

  .about-contact {
    text-align: center;
  }

  .nav {
    gap: 12px;
    font-size: 13px;
    flex-wrap: wrap;
    justify-content: flex-end;
  }
}

/* ✅ 모바일 */
@media (max-width: 600px) {
  .hero {
    padding: 60px 16px 40px;
  }

  .hero h1 {
    font-size: 26px;
  }

  .hero-sub {
    font-size: 13px;
  }

  .section {
    padding: 40px 16px;
  }
}

.float-contact {
  position: fixed;
  right: 18px;
  bottom: 18px;
  padding: 10px 16px;
  background: #1e88e5;
  color: #fff;
  font-size: 13px;
  border-radius: 999px;
  text-decoration: none;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
  z-index: 50;
}

.float-contact:hover {
  filter: brightness(1.05);
}

.to-top {
  position: fixed;
  right: 18px;
  bottom: 70px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: #374151;
  color: #fff;
  font-size: 16px;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: 0.2s;
  z-index: 40;
}

.to-top.show {
  opacity: 0.9;
  pointer-events: auto;
}

.to-top:hover {
  opacity: 1;
}

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: 0.5s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.float-contact.stop {
  position: absolute;
}

.float-contact.hide {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.product-img-box {
  margin-top: 12px;
  width: 100%;
  text-align: center;
}

.product-img-box img {
  width: 100%;
  max-height: 220px;
  object-fit: contain;
  border-radius: 8px;
  background: #ffffff;
  padding: 10px;
  border: 1px solid #dde2ee;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

.strength-item {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 20px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
  min-height: 330px; /* 각 카드 높이를 일정하게 */
}

.product-img-box {
  margin-top: auto; /* 가장 아래로 밀어내는 핵심 코드 */
  text-align: center;
  padding-top: 12px;
}

.product-img-box img {
  width: 100%;
  max-height: 220px;
  object-fit: contain;
  border-radius: 8px;
  background: #ffffff;
  padding: 10px;
  border: 1px solid #dde2ee;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

/* PC(데스크탑) 화면에서 푸터 내용을 왼쪽에 붙이기 */
@media (min-width: 1024px) {
  .footer-inner {
    max-width: none;   /* 가운데 박스 폭 제한 해제 */
    margin: 0;         /* auto 마진 제거 */
    padding-left: 40px;/* 헤더랑 맞춰서 왼쪽 여백만 살짝 줌 */
  }
}

/* ===== Custom Confirm Modal ===== */

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2000;
}

.modal-box {
  background: #ffffff;
  padding: 25px;
  border-radius: 12px;
  width: 90%;
  max-width: 380px;
  text-align: center;
  box-shadow: 0 8px 25px rgba(0,0,0,0.2);
  animation: modalFadeIn 0.2s ease-out;
}

.modal-box h3 {
  margin-bottom: 10px;
  font-size: 20px;
}

.modal-box p {
  margin: 4px 0;
  font-size: 14px;
}

.modal-buttons {
  margin-top: 20px;
  display: flex;
  gap: 10px;
  justify-content: center;
}

.modal-buttons button {
  padding: 10px 18px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
}

#confirmYes,
#confirmYesEn {
  background: #1e88e5;
  color: #fff;
}

#confirmNo,
#confirmNoEn {
  background: #e5e7eb;
  color: #111827;
}

@keyframes modalFadeIn {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}

.email-note {
  font-size: 12px;
  color: #d32f2f; /* 빨간색 */
  margin-top: -10px;
  margin-bottom: 10px;
}

.lang-buttons {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: 20px;
}

.lang-buttons button {
  padding: 10px 18px;
  font-size: 15px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
}

.lang-kr {
  background: #1e88e5;
  color: #fff;
}

.lang-en {
  background: #4caf50;
  color: #fff;
}
