/* =========================================================
   메인 비주얼
========================================================= */

.hero {
  position: relative; overflow: hidden; color: #fff;
  background: linear-gradient(135deg, #0d47a1 0%, #1e88e5 60%, #64b5f6 100%);
}
.hero::after {
  content: ""; position: absolute; right: -10%; bottom: -60px; left: -10%; height: 140px;
  background: rgba(255, 255, 255, .12); border-radius: 50%;
}
.hero-inner {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.1fr 1fr; align-items: center; gap: 40px;
  max-width: 1400px; margin: 0 auto; padding: 200px 80px 120px;
}
.hero-text { position: relative; min-height: 330px; }
.hero-slide {
  position: absolute; top: 0; right: 0; left: 0;
  opacity: 0; transform: translateY(16px); pointer-events: none;
  transition: opacity .7s ease, transform .7s ease;
}
.hero-slide.is-active { opacity: 1; transform: none; pointer-events: auto; }
.hero-eyebrow {
  display: inline-block; padding: 6px 16px; border-radius: 20px;
  background: rgba(255, 255, 255, .18); font-size: 16px; font-weight: 500;
}
.hero-title {
  margin: 22px 0 0; font-size: 54px; font-weight: 800; line-height: 1.25;
  letter-spacing: -2px; word-break: keep-all;
}
.hero-desc { margin: 20px 0 0; font-size: 20px; line-height: 1.6; opacity: .92; word-break: keep-all; }
.hero-cta { position: absolute; bottom: 0; left: 0; display: flex; flex-wrap: wrap; gap: 12px; }
.hero-btn {
  display: inline-flex; align-items: center; height: 52px; padding: 0 26px;
  border: 1px solid #fff; border-radius: 26px; color: #fff; font-size: 17px; font-weight: 700;
  transition: background .2s, color .2s;
}
.hero-btn:hover { background: #fff; color: var(--navy); }
.hero-btn.primary { background: var(--orange); border-color: var(--orange); }
.hero-btn.primary:hover { background: #fff; color: var(--orange); }
.hero-photo img {
  display: block; width: 100%; height: auto;
  border-radius: 28px; box-shadow: 0 24px 60px rgba(0, 0, 0, .25);
}
.hero-arrow {
  position: absolute; top: 50%; z-index: 20; width: 60px; height: 100px;
  padding: 0; background: transparent; border: 0; color: #fff;
  font-size: 80px; font-weight: 200; line-height: 90px; opacity: .8; cursor: pointer;
  transform: translateY(-50%);
}
.hero-arrow:hover { opacity: 1; }
.hero-arrow.left { left: 7px; }
.hero-arrow.right { right: 7px; }
.slider-dots {
  position: absolute; right: 0; bottom: 43px; left: 0; z-index: 20;
  display: flex; align-items: center; justify-content: center; gap: 7px;
}
.slider-dot {
  width: 8px; height: 8px; padding: 0; border: 0; border-radius: 50%;
  background: rgba(255, 255, 255, .5); cursor: pointer;
}
.slider-dot.is-active { background: #fff; }

@media (prefers-reduced-motion: reduce) {
  .hero-slide { transition: none; }
}

/* =========================================================
   서비스 그리드
========================================================= */

.service-grid {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  width: 100%; max-width: 1920px; margin: 0 auto;
}
.service-feature, .service-card {
  display: flex; align-items: center; justify-content: center;
  aspect-ratio: 1 / 1; text-align: center;
}
.service-feature { background: #fff; color: var(--navy); border: 1px solid #e3eefa; }
.service-card { background: var(--card-bg); color: #fff; }
.service-card--light { color: var(--navy); }
.service-inner { width: 100%; padding: 30px 24px; }
.service-line { display: block; width: 50px; height: 1px; margin: 0 auto 20px; background: currentColor; }
.feature-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 96px; height: 96px; margin-bottom: 22px; border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), var(--navy)); color: #fff;
}
.feature-icon svg {
  width: 48px; height: 48px;
  fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}
.service-title {
  margin: 0; font-size: 34px; font-weight: 700; line-height: 48px;
  letter-spacing: -1.4px; word-break: keep-all;
}
.service-desc {
  margin: 20px 0 0; font-size: 18px; font-weight: 500; line-height: 28px;
  letter-spacing: -.5px; word-break: keep-all;
}
.service-feature .service-desc { color: #4a5b70; }
.service-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 126px; height: 43px; margin-top: 20px;
  border: 1px solid currentColor; font-size: 15px;
  transition: color .2s, background-color .2s;
}
.service-card .service-btn:hover { background: #fff; color: var(--card-bg); }
.service-card--light .service-btn:hover { background: var(--navy); color: #fff; }

/* =========================================================
   빠른 상담
========================================================= */

.contact-bar {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  width: 100%; max-width: 1920px; margin: 0 auto;
}
.contact-item {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 120px; padding: 20px; text-align: center;
}
.contact-phone { background: var(--navy); }
.contact-inquiry { background: var(--blue); }
.contact-item img { display: block; width: auto; height: 46px; }
.contact-item strong { color: #fff; font-size: 34px; font-weight: 700; line-height: 48px; letter-spacing: -1px; white-space: nowrap; }

/* =========================================================
   반응형
========================================================= */

@media (max-width: 1400px) {
  .service-inner { padding: 25px 18px; }
  .service-title { font-size: 28px; line-height: 40px; }
  .service-desc { margin-top: 16px; font-size: 15px; line-height: 24px; }
  .service-btn { width: 112px; height: 40px; margin-top: 17px; font-size: 14px; }
  .contact-item strong { font-size: 28px; line-height: 40px; }
}

@media (max-width: 1200px) {
  .hero-inner { padding: 140px 60px 100px; }
  .hero-title { font-size: 42px; }
}

@media (max-width: 1024px) {
  .service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .service-title { font-size: 30px; line-height: 42px; }
  .service-desc { font-size: 16px; line-height: 25px; }
  .contact-item strong { font-size: 24px; line-height: 34px; }
  .slider-dots { bottom: 22px; }
}

@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; padding: 120px 40px 90px; }
  .hero-photo { order: -1; max-width: 520px; }
}

@media (max-width: 767px) {
  .hero-inner { gap: 24px; padding: 28px 20px 70px; }
  .hero-text { min-height: 280px; }
  .hero-eyebrow { padding: 5px 12px; font-size: 12px; }
  .hero-title { margin-top: 14px; font-size: 30px; letter-spacing: -1px; }
  .hero-desc { margin-top: 12px; font-size: 15px; }
  .hero-btn { height: 44px; padding: 0 18px; font-size: 14px; }
  .hero-arrow { display: none; }
  .slider-dots { bottom: 24px; gap: 5px; }
  .slider-dot { width: 7px; height: 7px; }

  .service-inner { padding: 15px 10px; }
  .service-line { width: 30px; margin-bottom: 11px; }
  .feature-icon { width: 54px; height: 54px; margin-bottom: 10px; }
  .feature-icon svg { width: 28px; height: 28px; }
  .service-title { font-size: 18px; line-height: 26px; letter-spacing: -.8px; }
  .service-desc { margin-top: 10px; font-size: 11px; line-height: 17px; letter-spacing: -.3px; }
  .service-btn { width: 82px; height: 31px; margin-top: 12px; font-size: 11px; }

  .contact-bar { grid-template-columns: 1fr; }
  .contact-item { gap: 7px; min-height: 76px; padding: 14px 12px; }
  .contact-item img { height: 30px; }
  .contact-item strong { font-size: 19px; line-height: 28px; white-space: normal; }
}

@media (max-width: 420px) {
  .service-title { font-size: 16px; line-height: 23px; }
  .service-desc { font-size: 10px; line-height: 15px; }
  .service-btn { width: 76px; height: 29px; font-size: 10px; }
  .contact-item strong { font-size: 17px; }
}
