/* ========== CSS Variables ========== */
:root {
  --accent-blue: #1B5EAB;
  --accent-hover: #164B8A;
  --accent-light: #2A7FD4;
  --border-dark: #2A3F5F;
  --border-light: #D1DBE6;
  --fg-inverse: #FFFFFF;
  --fg-muted: #a9bdd0;
  --fg-primary: #0A1628;
  --fg-secondary: #333b45;
  --rounded-lg: 12px;
  --rounded-md: 8px;
  --rounded-sm: 4px;
  --surface-card: #FFFFFF;
  --surface-dark: #0A1628;
  --surface-light: #F0F4F8;
  --surface-navy: #0D2137;
  --surface-primary: #FFFFFF;
}

/* ========== Reset & Base ========== */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--fg-primary);
  background: var(--surface-primary);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a {
  text-decoration: none;
  color: inherit;
}

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

/* ========== Header ========== */
.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 16%;
  background: var(--surface-dark);
  position: sticky;
  top: 0;
  z-index: 100;
}

.logo-group {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.logo-group .logo-text {
  font-size: 22px;
  font-weight: 700;
  color: var(--fg-inverse);
}

.logo-group .logo-sub {
  font-size: 10px;
  font-weight: 500;
  color: var(--fg-muted);
  letter-spacing: 2px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav a {
  font-size: 16px;
  font-weight: 500;
  color: var(--fg-inverse);
  transition: color 0.2s;
}

.nav a:hover {
  color: var(--accent-light);
}

/* ========== Hero ========== */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 650px;
  background: url('/images/generated-1776095271851.png') center/cover no-repeat;
  padding: 0 16%;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(10, 22, 40, 0.2);
}

.hero-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
  width: 100%;
  height: 100%;
}

.hero-title {
  font-size: 44px;
  font-weight: 700;
  color: var(--fg-inverse);
  text-align: center;
  line-height: 1.3;
  text-shadow: 0 4px 10px rgba(0, 0, 0, 1);
}

.hero-subtitle {
  font-size: 22px;
  font-weight: 600;
  color: #fffdc8;
  text-align: center;
  line-height: 1.5;
  max-width: 700px;
  text-shadow: 0 4px 10px rgba(0, 0, 0, 1);
}

.hero-buttons {
  display: flex;
  gap: 16px;
  align-items: center;
}

.btn-primary {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  background: var(--accent-blue);
  color: var(--fg-inverse);
  font-size: 15px;
  font-weight: 600;
  border-radius: var(--rounded-md);
  border: none;
  cursor: pointer;
  transition: background 0.2s;
}

.btn-primary:hover {
  background: var(--accent-hover);
}

.btn-secondary {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  background: transparent;
  color: var(--fg-inverse);
  font-size: 15px;
  font-weight: 600;
  border-radius: var(--rounded-md);
  border: 1.5px solid var(--fg-inverse);
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* ========== Section 2: Service Overview ========== */
.section-services {
  background: var(--surface-light);
  padding: 96px 16%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 48px;
}

.section-title-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.section-title {
  font-size: 40px;
  font-weight: 700;
  color: var(--fg-primary);
  text-align: center;
}

.section-subtitle {
  font-size: 16px;
  font-weight: 400;
  color: var(--fg-secondary);
  text-align: center;
}

.card-row {
  display: flex;
  gap: 24px;
  width: 100%;
}

/* -- Service Card Style 1 (Icon Row) -- */
.service-card-v1 {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 40px;
  background: var(--surface-card);
  border-radius: var(--rounded-lg);
  box-shadow: 0 4px 16px rgba(10, 22, 40, 0.07);
}

.service-card-v1 .card-icon {
  width: 40px;
  height: 40px;
  color: var(--accent-blue);
}

.service-card-v1 .card-title {
  font-size: 24px;
  font-weight: 700;
  color: var(--fg-primary);
  text-align: center;
}

.service-card-v1 .card-badge {
  font-size: 15px;
  font-weight: 500;
  color: var(--accent-blue);
  letter-spacing: 1px;
  text-align: center;
}

.service-card-v1 .card-desc {
  font-size: 16px;
  font-weight: 400;
  color: var(--fg-secondary);
  line-height: 1.6;
  text-align: center;
  max-width: 280px;
}

/* -- Service Card Style 2 (Circle Icon) -- */
.service-card-v2 {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding: 32px;
  background: var(--surface-card);
  border-radius: var(--rounded-lg);
  box-shadow: 0 4px 16px rgba(10, 22, 40, 0.07);
}

.service-card-v2 .icon-circle {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--accent-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.service-card-v2 .icon-circle i,
.service-card-v2 .icon-circle svg {
  width: 28px;
  height: 28px;
  color: var(--fg-inverse);
}

.service-card-v2 .card-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--fg-primary);
  text-align: center;
}

.service-card-v2 .card-badge {
  font-size: 14px;
  font-weight: 500;
  color: var(--accent-blue);
  text-align: center;
}

.service-card-v2 .card-desc {
  font-size: 14px;
  font-weight: 400;
  color: var(--fg-secondary);
  line-height: 1.6;
  text-align: center;
}

/* ========== Section 3: Why Us ========== */
.section-why {
  background: var(--surface-dark);
  padding: 96px 16%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 64px;
}

.why-top-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent-light);
  letter-spacing: 3px;
  text-align: center;
}

.why-title {
  font-size: 40px;
  font-weight: 700;
  color: var(--fg-inverse);
  text-align: center;
}

.why-subtitle {
  font-size: 16px;
  font-weight: 400;
  color: var(--fg-muted);
  text-align: center;
  line-height: 1.6;
  max-width: 700px;
}

.why-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

/* -- Why Cards -- */
.why-card-row {
  display: flex;
  gap: 32px;
  width: 100%;
}

.why-card {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 40px;
  background: var(--surface-navy);
  border-radius: var(--rounded-lg);
}

.why-card .icon-box {
  width: 56px;
  height: 56px;
  border-radius: var(--rounded-md);
  background: var(--accent-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.why-card .icon-box i,
.why-card .icon-box svg {
  width: 28px;
  height: 28px;
  color: var(--fg-inverse);
}

.why-card .card-badge {
  font-size: 15px;
  font-weight: 600;
  color: var(--accent-light);
  letter-spacing: 1px;
}

.why-card .card-title {
  font-size: 24px;
  font-weight: 700;
  color: var(--fg-inverse);
}

.why-card .card-desc {
  font-size: 16px;
  font-weight: 400;
  color: var(--fg-muted);
  line-height: 1.7;
}

/* -- Stats Row -- */
.stats-row {
  display: flex;
  justify-content: space-around;
  width: 100%;
  padding-top: 40px;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.stat-number {
  font-size: 48px;
  font-weight: 800;
  color: var(--accent-light);
}

.stat-label {
  font-size: 16px;
  font-weight: 400;
  color: var(--fg-muted);
}

/* ========== Section 4: Contact ========== */
.section-contact {
  background: var(--surface-light);
  padding: 96px 16%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 64px;
}

.contact-top-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent-blue);
  letter-spacing: 3px;
  text-align: center;
}

.contact-title {
  font-size: 40px;
  font-weight: 700;
  color: var(--fg-primary);
  text-align: center;
}

.contact-subtitle {
  font-size: 16px;
  font-weight: 400;
  color: var(--fg-secondary);
  text-align: center;
  line-height: 1.6;
  max-width: 600px;
}

.contact-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.contact-row {
  display: flex;
  gap: 48px;
  width: 100%;
}

/* -- Form Card -- */
.form-card {
  flex: 1;
  background: var(--surface-card);
  border-radius: var(--rounded-lg);
  border: 1px solid var(--border-light);
  padding: 40px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.form-card .form-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--fg-primary);
}

.form-row {
  display: flex;
  gap: 16px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.form-field label {
  font-size: 13px;
  font-weight: 600;
  color: var(--fg-secondary);
}

.form-field input,
.form-field textarea {
  height: 44px;
  padding: 0 14px;
  border: 1px solid var(--border-light);
  border-radius: var(--rounded-md);
  background: var(--surface-light);
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  color: var(--fg-primary);
  outline: none;
  transition: border-color 0.2s;
}

.form-field input::placeholder,
.form-field textarea::placeholder {
  color: var(--fg-muted);
}

.form-field input:focus,
.form-field textarea:focus {
  border-color: var(--accent-blue);
}

.form-field textarea {
  height: 120px;
  padding: 14px;
  resize: vertical;
}

.submit-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 52px;
  background: var(--accent-blue);
  color: var(--fg-inverse);
  font-size: 16px;
  font-weight: 700;
  font-family: 'Inter', sans-serif;
  border: none;
  border-radius: var(--rounded-md);
  cursor: pointer;
  transition: background 0.2s;
}

.submit-btn:hover {
  background: var(--accent-hover);
}

/* -- Info Card -- */
.info-card {
  flex: 1;
  background: var(--surface-dark);
  border-radius: var(--rounded-lg);
  padding: 40px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.info-card .info-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--fg-inverse);
}

.info-items {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.info-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.info-item .item-icon {
  width: 20px;
  height: 20px;
  color: var(--accent-light);
  flex-shrink: 0;
  margin-top: 2px;
}

.info-item .item-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.info-item .item-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--fg-muted);
}

.info-item .item-value {
  font-size: 16px;
  font-weight: 400;
  color: var(--fg-inverse);
  line-height: 1.5;
}

.info-divider {
  height: 1px;
  background: var(--border-dark);
  width: 100%;
}

.map-overlay {
  position: absolute;
  inset: 0;
  background: rgba(10, 22, 40, 0.5);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.map-overlay i,
.map-overlay svg {
  width: 24px;
  height: 24px;
  color: var(--fg-inverse);
}

.map-overlay span {
  font-size: 13px;
  font-weight: 500;
  color: var(--fg-muted);
}

/* ========== Footer ========== */
.footer {
  background: var(--surface-dark);
  padding: 48px 16%;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  width: 100%;
}

.footer-left {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-logo {
  font-size: 22px;
  font-weight: 800;
  color: var(--fg-inverse);
}

.footer-logo-en {
  font-size: 12px;
  font-weight: 500;
  color: var(--fg-muted);
  letter-spacing: 1px;
}

.footer-desc {
  font-size: 14px;
  font-weight: 400;
  color: var(--fg-muted);
  line-height: 1.6;
  max-width: 400px;
}

.footer-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
}

.footer-right a {
  font-size: 13px;
  color: var(--fg-muted);
  transition: color 0.2s;
}

.footer-right a:hover {
  color: var(--fg-inverse);
}

.footer-divider {
  height: 1px;
  background: var(--border-dark);
  width: 100%;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.copyright {
  font-size: 12px;
  color: var(--fg-muted);
}

.lang-toggle {
  display: flex;
  align-items: center;
  gap: 12px;
}

.lang-toggle span {
  font-size: 12px;
  color: var(--fg-muted);
}

.lang-toggle .active {
  font-weight: 600;
  color: var(--fg-inverse);
}

/* ========== Animations ========== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ========== Responsive ========== */
@media (max-width: 1024px) {
  .header {
    padding: 16px 8%;
  }

  .hero {
    padding: 0 8%;
    height: 500px;
  }

  .hero-title {
    font-size: 32px;
  }

  .section-services,
  .section-why,
  .section-contact,
  .footer {
    padding-left: 8%;
    padding-right: 8%;
  }

  .card-row,
  .why-card-row {
    flex-direction: column;
  }

  .contact-row {
    flex-direction: column;
  }

  .stats-row {
    flex-direction: column;
    align-items: center;
    gap: 32px;
  }
}

@media (max-width: 768px) {
  .header {
    padding: 12px 32px;
  }

  .nav {
    display: none;
  }

  .hero {
    padding: 0 8%;
    height: 450px;
  }

  .hero-title {
    font-size: 26px;
  }

  .hero-subtitle {
    font-size: 15px;
  }

  .hero-buttons {
    flex-direction: column;
    width: 100%;
  }

  .btn-primary,
  .btn-secondary {
    width: 100%;
  }

  .section-services,
  .section-why,
  .section-contact,
  .footer {
    padding-left: 6%;
    padding-right: 6%;
  }

  .section-title,
  .why-title,
  .contact-title {
    font-size: 28px;
  }

  .info-card,
  .why-card,
  .service-card-v1 {
    padding: 32px;
  }

  .form-row {
    flex-direction: column;
  }

  .footer-top {
    flex-direction: column;
    gap: 32px;
  }

  .footer-right {
    align-items: flex-start;
  }

  .stat-number {
    font-size: 36px;
  }
}

/* 지도 감싸는 영역 */
.map-frame {
  width: 100%;
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid #eee;
  height: 450px !important;
  background-color: #fff;
}

/* 카카오 맵 내부 캔버스 영역 강제 제어 */
.root_daum_roughmap,
.root_daum_roughmap .roughmap_canvas,
.root_daum_roughmap .roughmap_canvas iframe {
  width: 100% !important;
  border: none !important;
}

/* 하단 주소/전화번호 영역 숨기기 */
.root_daum_roughmap .foot_info,
.root_daum_roughmap .wrap_controllers {
  display: none !important;
  height: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  border: none !important;
}

/* 1. PC */
@media (min-width: 1024px) {
  .root_daum_roughmap .roughmap_canvas iframe {
    height: 450px !important;
  }
}

/* 2. 태블릿 & 모바일 */
@media (max-width: 1023px) {

  .root_daum_roughmap .roughmap_canvas,
  .root_daum_roughmap .roughmap_canvas iframe {
    height: 350px !important;
  }
}