/*=====================
  Base Reset
=====================*/
body {
  margin: 0;
  font-family: 'Segoe UI', 'Noto Sans KR', sans-serif;
  color: #1f2937;
  background-color: #fff;
}

/*=====================
  Header
=====================*/
/* 전체 너비 제한 */
.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* 로고 */
.logo img {
  height: 32px;
}

/* 메뉴 스타일 */
.main-nav .nav-list {
  list-style: none;
  display: flex;
  gap: 2rem;
  margin: 0;
  padding: 0;
}

.main-nav .nav-list a {
  text-decoration: none;
  font-weight: 500;
  color: #1e3a8a; /* 딥블루 계열 */
  transition: color 0.2s;
}

.main-nav .nav-list a:hover {
  color: #2563eb; /* 밝은 파란색 */
}

.logo img {
  height: 40px;
}

/*=====================
  Hero Section
=====================*/
.hero {
  background: linear-gradient(135deg, #3b82f6, #ffffff);
}

.hero-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
}

.hero-text {
  flex: 1 1 480px;
  padding-left: 90px; /* ← 왼쪽에서 30px 떨어지게 */
}

.hero-text h1 {
  font-size: 2rem;
  color: #1e3a8a;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.hero-text p {
  font-size: 1rem;
  line-height: 1.6;
  color: #374151;
  margin-bottom: 1.5rem;
}

.hero-text .icon {
  font-size: 1.5rem;
}

.hero-image {
  flex: 1 1 480px;
  text-align: center;
}

.hero-image img {
  max-width: 100%;
  height: auto;
  opacity: 0;
  animation: fadeIn 1.5s ease forwards;
  animation-delay: 0.5s;
}

.hero-divider {
  border: none;
  border-top: 1px solid #e5e7eb;
  margin-top: 2rem;
}

/*=====================
  Animation
=====================*/
@keyframes fadeIn {
  to { opacity: 1; }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes slideInLeft {
  from { opacity: 0; transform: translateX(-30px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes slideInRight {
  from { opacity: 0; transform: translateX(30px); }
  to { opacity: 1; transform: translateX(0); }
}

/*=====================
  Buttons
=====================*/
.btn {
  display: inline-block;
  background-color: #3b82f6;
  color: white;
  padding: 0.75rem 1.5rem;
  text-decoration: none;
  border-radius: 6px;
  font-weight: bold;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/*=====================
  Section Container
=====================*/
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 1rem;
}

/*=====================
  About Section
=====================*/
.about {
  background-color: #ffffff;
  text-align: center;
}

.about h2 {
  font-size: 1.8rem;
  color: #1e3a8a;
  margin-bottom: 1.5rem;
  font-weight: 700;
}

.about p {
  font-size: 1rem;
  color: #334155;
  line-height: 1.8;
  margin-bottom: 3rem;
}

.about-strengths {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
}

.card {
  background: #ffffff;
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 6px 18px rgba(0, 86, 179, 0.1);
  max-width: 300px;
  flex: 1 1 280px;
  text-align: left;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border-top: 4px solid #3b82f6;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 24px rgba(0, 86, 179, 0.2);
}

.card h3 {
  color: #1e40af;
  margin-bottom: 0.75rem;
  font-size: 1.2rem;
  font-weight: 600;
}

.card p {
  color: #334155;
  font-size: 0.95rem;
  line-height: 1.6;
}

/*=====================
  Services Section
=====================*/
.service-wrap {
  padding: 0rem 2rem;
  background-color: #ffffff;
}

.service-wrap h2 {
  text-align: center;
  font-size: 2rem;
  color: #1e3a8a;
  margin-bottom: 2rem;
}

.service-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
}

.service-card.horizontal {
  background: #f9fafb;
  padding: 1.8rem;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  flex: 1 1 calc(33.333% - 2rem); /* 🔥 핵심: 3칸 정렬 */
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  max-width: 100%; /* max-width를 없애거나 100%로 */
  box-sizing: border-box;
}

.service-card h3 {
  font-size: 1.2rem;
  color: #1e3a8a;
  margin-bottom: 0.5rem;
}

.service-card h3 small {
  font-size: 0.75rem;
  font-weight: 400;
  color: #64748b;
}

.service-card ul {
  list-style: none;
  padding-left: 0;
  font-size: 0.95rem;
  color: #475569;
  line-height: 1.6;
  margin-top: 1rem;
}

.service-card ul li {
  margin-bottom: 0.5rem;
}

.icon-with-title {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.circle-icon {
  width: 48px;
  height: 48px;
  background-color: #2563eb;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
}

.title-group h3 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: bold;
  color: #1e3a8a;
}

.title-group small {
  font-size: 1rem;
  color: #475569;
  font-weight: 500;
}

.custom-list {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.custom-list li {
  position: relative;
  padding-left: 1.2rem;
  margin-bottom: 0.6rem;
  color: #334155;
  font-size: 0.95rem;
  line-height: 1.5;
}

.custom-list li::before {
  content: "✔";
  position: absolute;
  left: 0;
  top: 0.05rem;
  color: #3b82f6;
  font-size: 0.8rem;
}

/*=====================
  도입 효과
=====================*/
.effect-section {
  padding: 2rem 0rem 0rem 0rem ;
  text-align: center;
}

.effect-section h3 {
  font-size: 1.5rem;
  color: #1e3a8a;
  margin-bottom: 1.5rem;
}

.benefit-box {
  background-color: #f8fafc;
  padding: 2rem;
  border-radius: 12px;
  max-width: 700px;
  margin: 0 auto;
  box-shadow: 0 4px 12px rgba(0,0,0,0.03);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.benefit-box:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 25px rgba(0, 86, 179, 0.15);
}

.benefits {
  list-style: none;
  padding-left: 0;
  text-align: left;
  color: #334155;
  font-size: 1rem;
  line-height: 1.8;
}

.benefits li {
  margin-bottom: 0.8rem;
}

.benefits i {
  color: #3b82f6;
  margin-right: 0.5rem;
}

/*=====================
  Contact Section
=====================*/
.contact {
  background-color: #ffffff;
  padding: 0rem 2rem;
  text-align: center;
}

.contact .container {
  max-width: 800px;
  margin: 0 auto;
}

.contact h2 {
  font-size: 1.8rem;
  color: #1e3a8a;
  margin-bottom: 1rem;
  font-weight: 700;
}

.contact p {
  font-size: 1rem;
  color: #334155;
  margin-bottom: 2rem;
  line-height: 1.6;
}

.contact-info {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  text-align: left;
  margin-bottom: 2.5rem;
}

.contact-info .info-item {
  flex: 1 1 300px;
  background-color: #f9fafb;
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
  font-size: 0.95rem;
  color: #475569;
  line-height: 1.6;
}

.contact-info .info-item a {
  color: #2563eb;
  text-decoration: none;
}

.contact-info .info-item a:hover {
  text-decoration: underline;
}

.contact .btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background-color: #2563eb;
  color: #ffffff;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 500;
  transition: background-color 0.3s;
}

.contact .btn:hover {
  background-color: #1e40af;
}

/*=====================
  Footer
=====================*/
.footer {
  background-color: #f8fafc; /* 밝은 회색 배경 */
  color: #64748b;            /* 어두운 회색 텍스트 */
  padding: 2rem 1rem;
  text-align: center;
  font-size: 0.95rem;
  border-top: 1px solid #e5e7eb;
}

.brand {
  text-align: center;
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.brand-sub {
  color: #334155;      /* 더 진하고 선명한 회색 */
  font-weight: 500;    /* 보통보다 조금 더 두껍게 */
  font-size: 1.05rem;  /* 약간 더 크게 */
  margin-right: 0.4rem;
}

.brand-name {
  color: #1e3a8a;     /* 포인트 진한 파랑 */
  font-weight: 700;   /* 굵게 */
  font-size: 1.15rem; /* 약간 더 크게 */
  letter-spacing: 0.5px;
}

.footer .copyright {
  font-weight: 400;
  color: #64748b;
  line-height: 1.6;
  font-size: 0.9rem;
}

/*=====================
  Responsive
=====================*/
@media (max-width: 768px) {
  .hero-container {
    flex-direction: column;
    text-align: center;
  }

  .hero-text, .hero-image {
    max-width: 100%;
    text-align: center;
  }

  .hero-text h1 {
    justify-content: center;
  }

  .nav {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    right: 0;
    background-color: white;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    width: 100%;
    padding: 1rem 2rem;
  }

  .nav.active {
    display: flex;
  }

  .menu-toggle {
    display: block;
  }
}

@media (max-width: 1024px) {
  .service-card.horizontal {
    flex: 1 1 calc(50% - 2rem); /* 중간 화면에서는 2개 */
  }
}

@media (max-width: 640px) {
  .service-card.horizontal {
    flex: 1 1 100%; /* 모바일에서는 1개씩 */
  }
}