/* =============================================
   electric-repair.html 페이지 고유 스타일
   ============================================= */

/* ===== 1. 히어로 ===== */
.repair-hero {
  position: relative;
  background: linear-gradient(135deg, #EFF6FF 0%, #FFFFFF 50%, #F0F9FF 100%);
  overflow: hidden;
  padding: 40px 0;
  display: flex;
  align-items: center;
}
.repair-hero::before {
  content: ''; position: absolute; top: -40%; right: -15%;
  width: 800px; height: 800px;
  background: radial-gradient(circle, rgba(37,99,235,.1) 0%, transparent 65%);
  border-radius: 50%; pointer-events: none;
}
.repair-hero .container { position: relative; z-index: 1; }
.repair-hero-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center;
}
.repair-hero-title {
  font-size: 2.75rem; font-weight: 800; line-height: 1.3;
  color: var(--text); margin: 20px 0 16px;
}
.repair-hero-title .accent { color: var(--accent); }
.repair-hero-desc {
  font-size: 1.125rem; color: var(--text-sec); line-height: 1.8; margin-bottom: 24px;
}
.repair-trust-badges {
  display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 32px;
}
.repair-trust-item {
  display: inline-flex; align-items: center;
  padding: 6px 14px; background: var(--accent-light);
  border: 1px solid rgba(37,99,235,.15); border-radius: 100px;
  font-size: .85rem; font-weight: 600; color: var(--text); white-space: nowrap;
}
.repair-hero-buttons {
  display: flex; gap: 12px; flex-wrap: wrap;
}
.repair-hero-cta {
  padding: 16px 48px; font-size: 1.1rem; font-weight: 700;
  border-radius: 10px; box-shadow: 0 4px 24px rgba(37,99,235,.3);
}
.repair-hero-cta svg { width: 20px; height: 20px; }
.repair-hero-visual { position: relative; }
.repair-hero-img {
  width: 100%; border-radius: var(--radius-lg);
  border: 2px solid var(--accent-light); box-shadow: var(--shadow);
}

/* ===== 히어로 이미지 placeholder ===== */
.repair-hero-placeholder {
  width: 100%; aspect-ratio: 4/3; border-radius: var(--radius-lg);
  background: linear-gradient(135deg, #2563EB 0%, #1D4ED8 100%);
  display: flex; align-items: center; justify-content: center;
}
.repair-hero-placeholder::after {
  content: '🔧'; font-size: 4rem; opacity: .5;
}

/* ===== 히어로 인터랙티브 — 진입 애니메이션 + 배경 펄스 + 통계 카드 ===== */
@keyframes repairHeroFadeIn {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes repairHeroPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.12); opacity: .55; }
}
.repair-hero::before { animation: repairHeroPulse 5s ease-in-out infinite; }
.repair-hero .section-label,
.repair-hero-title,
.repair-hero-desc,
.repair-trust-badges,
.repair-hero-buttons,
.repair-hero-visual {
  opacity: 0;
  animation: repairHeroFadeIn .6s cubic-bezier(.4,0,.2,1) forwards;
}
.repair-hero .section-label { animation-delay: .05s; }
.repair-hero-title { animation-delay: .15s; }
.repair-hero-desc { animation-delay: .25s; }
.repair-trust-badges { animation-delay: .35s; }
.repair-hero-buttons { animation-delay: .45s; }
.repair-hero-visual { animation-delay: .2s; }

/* ===== 히어로 이미지 hover 모션 ===== */
.repair-hero-img {
  transition: transform .4s cubic-bezier(.4,0,.2,1), box-shadow .4s cubic-bezier(.4,0,.2,1);
  will-change: transform;
}
.repair-hero-visual:hover .repair-hero-img {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(37,99,235,.22);
}

/* ===== 히어로 미니 통계 카드 ===== */
.repair-hero-stats {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  padding: 16px 14px;
  background: #FFFFFF;
  border: 1px solid rgba(37,99,235,.12);
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(0,0,0,.06);
}
.repair-hero-stats .mini-stat {
  text-align: center;
  padding: 10px 6px;
  background: #F8FAFC;
  border-radius: 10px;
  transition: transform .25s ease;
}
.repair-hero-stats .mini-stat:hover { transform: translateY(-2px); }
.repair-hero-stats .mini-stat .val {
  font-size: 1.35rem;
  font-weight: 800;
  color: #2563EB;
  line-height: 1.1;
}
.repair-hero-stats .mini-stat .lbl {
  font-size: .72rem;
  color: #64748B;
  margin-top: 4px;
  line-height: 1.3;
}
@media (max-width: 480px) {
  .repair-hero-stats { padding: 12px 10px; gap: 8px; }
  .repair-hero-stats .mini-stat { padding: 8px 4px; }
  .repair-hero-stats .mini-stat .val { font-size: 1.1rem; }
  .repair-hero-stats .mini-stat .lbl { font-size: .65rem; }
}

/* ===== 2. 서비스 종류 ===== */
.repair-services { background: var(--bg-alt); }
.repair-services-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px;
}
.repair-svc-card {
  background: #fff; border-radius: var(--radius-lg);
  box-shadow: var(--shadow); overflow: hidden;
  transition: all .3s var(--ease);
}
.repair-svc-card:hover {
  box-shadow: var(--shadow-hover); transform: translateY(-4px);
}

/* ===== 서비스 카드 이미지 ===== */
.repair-svc-img-wrap {
  width: 100%; aspect-ratio: 16/9; overflow: hidden;
  background: var(--bg-alt);
}
.repair-svc-img-wrap img {
  width: 100%; height: 100%; object-fit: cover;
}

/* ===== 이미지 placeholder ===== */
.repair-img-placeholder {
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #EFF6FF 0%, #DBEAFE 100%);
}
.repair-img-placeholder::after {
  content: '🔧'; font-size: 3rem; opacity: .3;
}

/* ===== 서비스 카드 본문 ===== */
.repair-svc-body {
  padding: 24px;
}
.repair-svc-body h3 {
  font-size: 1.15rem; font-weight: 700; color: var(--text); margin-bottom: 8px;
}
.repair-svc-body p {
  font-size: .9rem; color: var(--text-sec); line-height: 1.7;
}

/* ===== 누전차단기 교체 안내 ===== */
.repair-rcd-alert { background: var(--bg); }
.repair-rcd-box {
  max-width: 680px; margin: 0 auto; padding: 48px 40px;
  background: #FEF2F2; border-radius: var(--radius-lg);
  text-align: center;
  border: 1px solid rgba(239,68,68,.15);
}
.repair-rcd-box h2 {
  font-size: 1.5rem; font-weight: 800; color: var(--text); margin-bottom: 28px;
}
.accent-danger { color: #EF4444; }
.repair-rcd-checklist {
  display: flex; flex-direction: column; gap: 12px;
  text-align: left; max-width: 360px; margin: 0 auto 28px;
}
.repair-rcd-check {
  font-size: 1rem; font-weight: 600; color: var(--text);
  padding: 10px 16px; background: #fff; border-radius: var(--radius-md);
  border: 1px solid rgba(239,68,68,.12);
}
.repair-rcd-highlight {
  font-size: 1.1rem; color: var(--text-sec); margin-bottom: 24px; line-height: 1.6;
}
.repair-rcd-highlight strong { color: #EF4444; font-weight: 800; }
.btn-danger {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 16px 48px; background: #EF4444; color: #fff;
  font-size: 1.05rem; font-weight: 700; border-radius: var(--radius-md);
  border: none; cursor: pointer; text-decoration: none;
  box-shadow: 0 4px 16px rgba(239,68,68,.3);
  transition: all .3s var(--ease);
}
.btn-danger:hover { background: #DC2626; transform: translateY(-2px); }
@media (max-width: 768px) {
  .repair-rcd-box { padding: 36px 24px; }
  .repair-rcd-box h2 { font-size: 1.25rem; }
}

/* ===== 3. 이용 프로세스 ===== */
.repair-process { background: var(--bg); }
.repair-process-track {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
  position: relative;
}
.repair-process-track::before {
  content: ''; position: absolute; top: 36px; left: 10%; right: 10%;
  height: 2px;
  background: linear-gradient(90deg, rgba(37,99,235,.3), rgba(37,99,235,.1));
}
.repair-proc-step { text-align: center; position: relative; z-index: 1; }
.repair-proc-num {
  width: 56px; height: 56px; margin: 0 auto 12px;
  display: flex; align-items: center; justify-content: center;
  background: var(--accent); color: #fff; border-radius: 50%;
  font-size: 1.25rem; font-weight: 800;
  box-shadow: 0 4px 16px rgba(37,99,235,.25);
}
.repair-proc-icon {
  font-size: 1.5rem; margin-bottom: 8px;
}
.repair-proc-step h3 {
  font-size: .95rem; font-weight: 700; color: var(--text); margin-bottom: 4px;
}
.repair-proc-step p {
  font-size: .8rem; color: var(--text-sec); line-height: 1.5;
}

/* ===== 4. 요금 안내 ===== */
.repair-pricing { background: var(--bg-alt); }
.repair-pricing-table {
  max-width: 700px; margin: 0 auto;
  background: #fff; border-radius: var(--radius-lg);
  box-shadow: var(--shadow); overflow: hidden;
}
.repair-pricing-table table {
  width: 100%; border-collapse: collapse;
}
.repair-pricing-table th {
  padding: 16px 24px; text-align: left;
  background: var(--accent); color: #fff;
  font-size: .9rem; font-weight: 700;
}
.repair-pricing-table th:last-child { text-align: right; }
.repair-pricing-table td {
  padding: 16px 24px; font-size: .95rem; color: var(--text);
  border-bottom: 1px solid rgba(0,0,0,.06);
}
.repair-pricing-table tr:last-child td { border-bottom: none; }
.repair-price {
  text-align: right; font-weight: 700; color: var(--accent); white-space: nowrap;
}
.repair-pricing-notes {
  padding: 16px 24px; background: var(--bg-alt);
}
.repair-pricing-notes p {
  font-size: .8rem; color: var(--text-sec); line-height: 1.8;
}

/* ===== 5. FAQ ===== */
.repair-faq { background: var(--bg); }
.repair-faq-list { max-width: 760px; margin: 0 auto; }
.repair-faq-item {
  background: #fff; border-radius: var(--radius-md); margin-bottom: 12px;
  box-shadow: var(--shadow); overflow: hidden;
}
.repair-faq-q {
  width: 100%; padding: 20px 24px;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  background: none; border: none; cursor: pointer;
  font-size: 1rem; font-weight: 600; color: var(--text); text-align: left;
}
.repair-faq-q .arrow {
  font-size: 1.25rem; color: var(--accent);
  transition: transform .3s; flex-shrink: 0;
}
.repair-faq-item.open .repair-faq-q .arrow { transform: rotate(180deg); }
.repair-faq-a { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.repair-faq-a-inner {
  padding: 0 24px 20px; font-size: .95rem;
  color: var(--text-sec); line-height: 1.7;
}

/* ===== 모바일 하단 고정 CTA ===== */
.sticky-cta {
  display: none;
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 900;
  padding: 12px 16px; background: #fff;
  box-shadow: 0 -2px 12px rgba(0,0,0,.1);
  gap: 8px;
}
.sticky-cta .btn {
  flex: 1; text-align: center; padding: 14px 0;
  font-size: .95rem; font-weight: 700; border-radius: var(--radius-md);
}

/* ===== 반응형 ===== */
@media (max-width: 1024px) {
  .repair-hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .repair-hero-visual { order: -1; max-width: 480px; margin: 0 auto; }
}
@media (max-width: 768px) {
  .repair-hero { padding: 32px 0 40px; }
  .repair-hero-grid { text-align: center; }
  .repair-hero-title { font-size: 2rem; }
  .repair-hero-buttons { justify-content: center; flex-direction: column; }
  .repair-hero-buttons .btn { width: 100%; max-width: 320px; margin: 0 auto; }
  .repair-trust-badges { justify-content: center; }
  .repair-services-grid { grid-template-columns: 1fr; }
  .repair-process-track { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .repair-process-track::before { display: none; }
  .repair-pricing-table th,
  .repair-pricing-table td { padding: 14px 16px; font-size: .9rem; }
  /* 모바일 하단 고정 CTA 표시 */
  .sticky-cta { display: flex; }
  body { padding-bottom: 72px; }
}
@media (max-width: 480px) {
  .repair-hero-title { font-size: 1.75rem; }
  .repair-process-track { grid-template-columns: 1fr 1fr; }
  .repair-svc-body { padding: 20px; }
}
