/* =============================================
   메인 페이지 전용 스타일
   ============================================= */

/* ---- Hero Section ---- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--primary-dark);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: url('../images/hero-bg.jpg') center/cover no-repeat;
  opacity: 0.35;
  transform: scale(1.05);
  transition: transform 8s ease;
}

.hero:hover .hero-bg {
  transform: scale(1);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(9, 30, 64, 0.85) 0%,
    rgba(15, 44, 92, 0.7) 50%,
    rgba(43, 127, 196, 0.3) 100%
  );
}

.hero-wave {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  overflow: hidden;
  line-height: 0;
  z-index: 2;
}

.hero-wave svg {
  display: block;
  width: 100%;
}

.hero-content {
  position: relative;
  z-index: 3;
  text-align: center;
  color: var(--white);
  padding: 100px 24px 80px;
  max-width: 900px;
  margin: 0 auto;
  width: 100%;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(43,127,196,0.25);
  border: 1px solid rgba(77,166,232,0.5);
  border-radius: 50px;
  padding: 8px 20px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent-light);
  margin-bottom: 28px;
  letter-spacing: 0.05em;
  backdrop-filter: blur(4px);
}

.hero-title {
  font-size: clamp(2rem, 5vw, 3.6rem);
  font-weight: 900;
  line-height: 1.2;
  margin-bottom: 24px;
  text-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

.hero-title .highlight {
  color: var(--accent-light);
  position: relative;
  display: inline-block;
}

.hero-title .highlight::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--accent-light);
  border-radius: 2px;
  opacity: 0.6;
}

.hero-desc {
  font-size: clamp(1rem, 1.8vw, 1.2rem);
  line-height: 1.8;
  opacity: 0.9;
  max-width: 680px;
  margin: 0 auto 36px;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Slider for slogans */
.hero-slider {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 32px;
}

.hero-slogan {
  display: none;
  animation: fadeInUp 0.6s ease;
}

.hero-slogan.active {
  display: block;
}

.slogan-dots {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-top: 20px;
}

.slogan-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.3);
  cursor: pointer;
  transition: var(--transition);
}

.slogan-dot.active {
  background: var(--accent-light);
  width: 24px;
  border-radius: 4px;
}

/* ---- Stats Bar ---- */
.stats-bar {
  background: var(--primary);
  padding: 0;
  position: relative;
  z-index: 1;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-left: 1px solid rgba(255,255,255,0.1);
}

.stats-item {
  padding: 36px 24px;
  text-align: center;
  border-right: 1px solid rgba(255,255,255,0.1);
  border-top: 1px solid rgba(255,255,255,0.1);
  position: relative;
  transition: var(--transition);
}

.stats-item::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--accent);
  transform: scaleX(0);
  transition: var(--transition);
}

.stats-item:hover::before {
  transform: scaleX(1);
}

.stats-num {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 900;
  color: var(--white);
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 2px;
  line-height: 1;
}

.stats-num .unit {
  font-size: 0.6em;
  color: var(--accent-light);
}

.stats-label {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.65);
  margin-top: 8px;
  font-weight: 400;
}

.stats-sub {
  font-size: 0.75rem;
  color: var(--accent-light);
  margin-top: 4px;
  font-weight: 500;
}

/* ---- Trust Banners ---- */
.trust-section {
  background: var(--white);
  padding: 56px 0;
  border-bottom: 1px solid var(--gray-100);
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.trust-card {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 28px;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-md);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.trust-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--accent);
  border-radius: 0 2px 2px 0;
}

.trust-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.trust-icon {
  width: 52px;
  height: 52px;
  background: rgba(43,127,196,0.1);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: var(--accent);
  flex-shrink: 0;
}

.trust-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 6px;
}

.trust-desc {
  font-size: 0.88rem;
  color: var(--text-sub);
  line-height: 1.7;
}

/* ---- Services Section (Home) ---- */
.services-home {
  background: var(--gray-50);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.service-card {
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  position: relative;
  cursor: pointer;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
}

.service-card-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.service-card:hover .service-card-img {
  transform: scale(1.05);
}

.service-card-body {
  padding: 24px;
}

.service-card-icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--accent), var(--accent-teal));
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.2rem;
  margin-bottom: 14px;
}

.service-card-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 8px;
}

.service-card-desc {
  font-size: 0.88rem;
  color: var(--text-sub);
  line-height: 1.7;
  margin-bottom: 16px;
}

.service-link {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition);
}

.service-link:hover {
  gap: 10px;
}

/* ---- Why Section ---- */
.why-section {
  background: var(--primary-dark);
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.why-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('../images/spring-bg.jpg') center/cover no-repeat;
  opacity: 0.1;
}

.why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.why-content .section-title {
  color: var(--white);
  text-align: left;
}

.why-features {
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.why-feature {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.why-feature-num {
  width: 40px;
  height: 40px;
  background: var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  font-weight: 700;
  flex-shrink: 0;
}

.why-feature-text h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 4px;
}

.why-feature-text p {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.7);
  line-height: 1.7;
}

.why-visual {
  position: relative;
}

.why-img {
  border-radius: var(--radius-lg);
  width: 100%;
  height: 450px;
  object-fit: cover;
}

.why-badge-float {
  position: absolute;
  bottom: -20px;
  right: -20px;
  background: var(--accent);
  color: var(--white);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  text-align: center;
  box-shadow: var(--shadow-xl);
}

.why-badge-float .num {
  font-size: 2rem;
  font-weight: 900;
  line-height: 1;
}

.why-badge-float .label {
  font-size: 0.8rem;
  opacity: 0.9;
  margin-top: 4px;
}

/* ---- Gallery Section ---- */
.gallery-section {
  background: var(--white);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  aspect-ratio: 4/3;
  cursor: pointer;
}

.gallery-item:first-child {
  grid-column: span 2;
  grid-row: span 2;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery-item:hover img {
  transform: scale(1.08);
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(9,30,64,0.8) 0%, transparent 60%);
  opacity: 0;
  transition: var(--transition);
  display: flex;
  align-items: flex-end;
  padding: 16px;
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-caption {
  color: var(--white);
  font-size: 0.85rem;
  font-weight: 500;
}

/* ---- CTA Section ---- */
.cta-section {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-light) 60%, var(--accent) 100%);
  padding: 88px 0;
  text-align: center;
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(ellipse at center, rgba(255,255,255,0.07) 0%, transparent 60%);
  pointer-events: none;
}

.cta-section::after {
  content: '';
  position: absolute;
  inset: 0;
  background: url('../images/hero-bg.jpg') center/cover no-repeat;
  opacity: 0.07;
  pointer-events: none;
}

.cta-section .container {
  position: relative;
  z-index: 1;
}

.cta-title {
  font-size: clamp(1.7rem, 3.5vw, 2.6rem);
  font-weight: 900;
  margin-bottom: 16px;
  text-shadow: 0 2px 12px rgba(0,0,0,0.2);
}

.cta-desc {
  font-size: clamp(0.95rem, 1.5vw, 1.1rem);
  opacity: 0.9;
  max-width: 560px;
  margin: 0 auto 40px;
  line-height: 1.8;
}

.cta-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-white {
  background: var(--white);
  color: var(--accent);
  border-color: var(--white);
}

.btn-white:hover {
  background: rgba(255,255,255,0.9);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.2);
}

/* ---- Responsive (Home) ---- */
@media (max-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .why-grid {
    gap: 40px;
  }
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .gallery-item:first-child {
    grid-column: span 1;
    grid-row: span 1;
  }
}

@media (max-width: 768px) {
  .hero-content {
    padding: 90px 20px 60px;
  }
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .trust-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .services-grid {
    grid-template-columns: 1fr;
  }
  .why-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .why-badge-float {
    bottom: 10px;
    right: 10px;
  }
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .gallery-item:first-child {
    grid-column: span 2;
    grid-row: span 1;
  }
}

@media (max-width: 480px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .stats-item {
    padding: 24px 12px;
  }
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
