/* ============================================================
   home.css — 메인페이지 전용
   ============================================================ */

/* ---------- 히어로 ---------- */
.hero {
  position: relative;
  margin-top: var(--header-h);
  min-height: 680px;
  display: flex; align-items: center;
  overflow: hidden;
  background: var(--paper-deep);
}
.hero-photo-bg {
  position: absolute; inset: 0; z-index: 0; overflow: hidden;
}
.hero-photo-track {
  display: flex; height: 100%; width: max-content;
  animation: hero-photo-scroll 60s linear infinite;
}
.hero-photo-track img {
  height: 100%; width: auto; object-fit: cover; display: block;
}
@keyframes hero-photo-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.hero-overlay {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(100deg,
    rgba(253,251,249,.95) 0%,
    rgba(253,251,249,.88) 40%,
    rgba(253,251,249,.58) 62%,
    rgba(253,251,249,.20) 80%,
    rgba(253,251,249,.05) 100%);
}
.hero-scanline {
  position: absolute; left: 0; right: 0; top: -4%; z-index: 2;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(217, 117, 47, .55), transparent);
  box-shadow: 0 0 18px 3px rgba(217, 117, 47, .3);
  animation: scan-sweep 2.6s cubic-bezier(.4,0,.2,1) 0.3s 1 both;
  pointer-events: none;
}
@keyframes scan-sweep {
  0%   { top: -2%; opacity: 0; }
  8%   { opacity: 1; }
  92%  { opacity: 1; }
  100% { top: 102%; opacity: 0; }
}
.hero-inner {
  position: relative; z-index: 3;
  max-width: 1180px; width: 100%; margin: 0 auto; padding: 90px 24px;
  text-align: left;
}
.hero-inner > div { max-width: 640px; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-num); font-size: 12.5px; font-weight: 700; letter-spacing: .16em;
  color: var(--accent-deep); text-transform: uppercase; margin-bottom: 22px;
}
.hero-eyebrow::before { content: ''; width: 22px; height: 1px; background: var(--accent); }
.hero h1 {
  color: var(--ink); font-size: 36px; line-height: 1.42; letter-spacing: -0.01em;
  margin-bottom: 26px;
}
.hero h1 em { color: var(--accent); font-style: normal; }
.hero p { color: var(--ink); font-size: 15.5px; line-height: 1.95; max-width: 600px; margin: 0; }

@media (max-width: 980px) {
  .hero { min-height: 520px; }
  .hero-inner { padding: 56px 24px; }
  .hero-inner > div { max-width: 100%; }
  .hero h1 { font-size: 25px; line-height: 1.38; margin-bottom: 16px; }
  .hero p { font-size: 14px; line-height: 1.75; }
  .hero-eyebrow { margin-bottom: 14px; }
}
@media (max-width: 400px) {
  .hero h1 { font-size: 22px; }
  .hero p { font-size: 13.5px; }
}
@media (max-width: 640px) {
  .hero-overlay {
    background: linear-gradient(170deg,
      rgba(253,251,249,.95) 0%,
      rgba(253,251,249,.90) 45%,
      rgba(253,251,249,.60) 72%,
      rgba(253,251,249,.22) 100%);
  }
}
@media (prefers-reduced-motion: reduce) {
  .hero-photo-track { animation: none; }
}

/* ---------- MRI 예약 안내 스트립 ---------- */
.reserve-strip { background: var(--accent-soft); border-bottom: 1px solid var(--line); }
.reserve-strip .container { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 16px 24px; flex-wrap: wrap; }
.reserve-strip p { margin: 0; font-size: 14.5px; color: var(--ink); }
.reserve-strip strong { color: var(--accent-deep); }

/* ---------- 진단 부위 섹션 ---------- */
.section { padding: 88px 0; }
.section.alt { background: var(--white); }
.section-head { margin-bottom: 44px; }
.section-head.split { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 20px; }

.region-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.region-card {
  display: block; overflow: hidden; background: var(--white); position: relative;
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.region-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-pop); border-color: var(--accent-soft); }
.region-card-img { width: 100%; aspect-ratio: 700/452; object-fit: cover; background: var(--paper-deep); display: block; }
.region-card-body { padding: 18px 18px 22px; }
.region-card h3 { font-size: 16.5px; margin: 0 0 6px; }
.region-card p { font-size: 12.5px; color: var(--ink-soft); margin: 0; }
@media (max-width: 900px) { .region-grid { grid-template-columns: repeat(2, 1fr); } }

/* 모바일 전용 - 자동으로 천천히 흐르다가 터치하면 직접 슬라이드 가능한 캐러셀 (JS로 transform 제어) */
.region-carousel { display: none; overflow: hidden; position: relative; }
.region-carousel::before, .region-carousel::after {
  content: ''; position: absolute; top: 0; bottom: 0; width: 24px; z-index: 2; pointer-events: none;
}
.region-carousel::before { left: 0; background: linear-gradient(90deg, var(--white), transparent); }
.region-carousel::after { right: 0; background: linear-gradient(270deg, var(--white), transparent); }
.region-carousel-track { display: flex; width: max-content; gap: 14px; touch-action: pan-y; will-change: transform; }
.region-carousel-track .region-card { width: 220px; flex: none; user-select: none; -webkit-user-drag: none; }
.region-carousel-track .region-card img { pointer-events: none; }
@media (max-width: 900px) {
  .region-grid { display: none; }
  .region-carousel { display: block; }
}

/* ---------- 장비 섹션 ---------- */
.equip-strip { background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.equip-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.equip-card { background: var(--white); border: 1px solid var(--line); padding: 24px 22px; border-radius: var(--radius-sm); box-shadow: var(--shadow-card); }
.equip-card .ei-ico { display: block; width: 22px; height: 22px; color: var(--accent); margin-bottom: 14px; }
.equip-card .eq-spec { font-family: var(--font-num); font-size: 22px; font-weight: 700; color: var(--accent); }
.equip-card h4 { color: var(--ink); font-size: 16px; margin: 6px 0 8px; }
.equip-card p { color: var(--ink-soft); font-size: 13px; margin: 0; }
@media (max-width: 900px) { .equip-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .equip-grid { grid-template-columns: 1fr; } }

/* ---------- 의료진 미리보기 ---------- */
.doctor-strip { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.doctor-card { display: block; overflow: hidden; text-align: center; color: inherit; text-decoration: none; transition: transform .18s ease, box-shadow .18s ease; }
.doctor-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-pop); }
.doctor-card .dphoto { width: 100%; aspect-ratio: 490/380; object-fit: cover; background: var(--paper-deep); }
.doctor-card .dinfo { padding: 16px 10px 20px; }
.doctor-card .drole { font-size: 12px; color: var(--accent-deep); font-weight: 700; }
.doctor-card h3 { font-size: 16px; margin: 4px 0 0; }
@media (max-width: 980px) { .doctor-strip { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px) { .doctor-strip { grid-template-columns: repeat(2, 1fr); } }

/* ---------- FAQ ---------- */
.faq-list { max-width: 760px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q {
  width: 100%; text-align: left; background: none; border: none;
  padding: 20px 4px; display: flex; justify-content: space-between; align-items: center;
  font-size: 15.5px; font-weight: 600; color: var(--ink);
}
.faq-q > span:first-child { flex: 1 1 auto; min-width: 0; }
.faq-q .qmark { font-family: var(--font-num); color: var(--accent-deep); font-weight: 700; margin-right: 8px; }
.faq-q .qtoggle { display: inline-flex; width: 18px; height: 18px; color: var(--ink-soft); transition: transform .25s, color .25s; flex: none; }
.faq-item.open .qtoggle { transform: rotate(45deg); color: var(--accent); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .25s ease; }
.faq-item.open .faq-a { max-height: 260px; }
.faq-a p { padding: 0 4px 20px 30px; color: var(--ink-soft); font-size: 14.5px; line-height: 1.7; margin: 0; }

/* ---------- 소식 프리뷰 ---------- */
.notice-preview { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 900px) { .notice-preview { grid-template-columns: 1fr; } }

/* ---------- 오시는길 스트립 ---------- */
.location-strip { display: grid; grid-template-columns: 1fr 1fr; gap: 0; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; }
.location-strip .lmap { display: block; width: 100%; height: 100%; min-height: 320px; background: var(--paper-deep); position: relative; }
.location-strip .linfo { padding: 40px; }
.linfo dl { display: grid; grid-template-columns: 74px 1fr; gap: 12px 14px; margin: 22px 0 0; }
.linfo dt { color: var(--accent-deep); font-weight: 700; font-size: 13.5px; }
.linfo dd { margin: 0; font-size: 14.5px; color: var(--ink); }
@media (max-width: 800px) { .location-strip { grid-template-columns: 1fr; } .location-strip .lmap { min-height: 220px; } }

/* ---------- 공통 CTA 배너 ---------- */
.cta-band {
  background: var(--accent-soft);
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  padding: 64px 0; text-align: center;
}
.cta-band h3 { color: var(--ink); font-size: 26px; margin-bottom: 12px; }
.cta-band p { color: var(--ink-soft); margin-bottom: 28px; }
.cta-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
