/* ==========================================================================
   수리수리 유리수리 SPTV (Master Glass Care) - 전면유리 돌빵 복원 디자인 시스템
   ========================================================================== */

@import url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard/dist/web/static/pretendard.css');

:root {
  --primary: #0284c7;
  --primary-hover: #0369a1;
  --primary-light: #e0f2fe;
  --primary-glow: rgba(2, 132, 199, 0.15);
  --secondary: #0f172a;
  --accent: #f59e0b;
  --accent-light: #fef3c7;
  --success: #10b981;
  --danger: #ef4444;
  --text-main: #0f172a;
  --text-sub: #64748b;
  --text-muted: #94a3b8;
  --bg-page: #f8fafc;
  --card-bg: #ffffff;
  --border-light: #e2e8f0;
  --border-focus: #38bdf8;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 12px -1px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 12px 28px -4px rgba(15, 23, 42, 0.12);
  --shadow-glow: 0 0 20px rgba(2, 132, 199, 0.25);
  --font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, Roboto, sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: var(--font-family);
  background-color: var(--bg-page);
  color: var(--text-main);
  line-height: 1.6;
  font-size: 16px;
  word-break: keep-all;
  overflow-x: hidden;
  padding-bottom: 76px; /* 모바일 하단 도크 공간 */
}

@media (min-width: 961px) {
  body {
    padding-bottom: 0;
  }
}

a {
  text-decoration: none;
  color: inherit;
}

/* ==========================================================================
   GNB 헤더
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-light);
  height: 60px;
}

.header-container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-logo-icon {
  width: 34px;
  height: 34px;
  background: linear-gradient(135deg, #0284c7, #0369a1);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-weight: 900;
  font-size: 1.1rem;
  box-shadow: 0 2px 8px rgba(2, 132, 199, 0.35);
}

.brand-text-col {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-size: 1.15rem;
  font-weight: 900;
  color: var(--secondary);
  letter-spacing: -0.5px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.brand-badge {
  font-size: 0.68rem;
  font-weight: 800;
  background: #f0fdf4;
  color: #16a34a;
  padding: 2px 6px;
  border-radius: 4px;
  border: 1px solid #bbf7d0;
}

.brand-sub {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-sub);
}

.header-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--secondary);
  color: #ffffff;
  padding: 8px 14px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 700;
  transition: all 0.2s ease;
}

.header-cta-btn:hover {
  background: var(--primary);
  transform: translateY(-1px);
}

/* ==========================================================================
   Hero & Fact Pills
   ========================================================================== */
.hero-section {
  max-width: 1140px;
  margin: 0 auto;
  padding: 36px 20px 24px;
  text-align: center;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--primary-light);
  color: var(--primary);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 800;
  margin-bottom: 16px;
  border: 1px solid #bae6fd;
}

.hero-headline {
  font-size: 2.1rem;
  font-weight: 900;
  line-height: 1.28;
  letter-spacing: -0.8px;
  color: var(--secondary);
  margin-bottom: 14px;
}

.hero-headline .highlight {
  color: var(--primary);
  position: relative;
  display: inline-block;
}

.hero-subtext {
  font-size: 1.05rem;
  color: var(--text-sub);
  max-width: 680px;
  margin: 0 auto 28px;
  line-height: 1.55;
}

.hero-facts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  max-width: 820px;
  margin: 0 auto;
}

.fact-card {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 14px 12px;
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.fact-card .icon {
  font-size: 1.4rem;
  margin-bottom: 4px;
}

.fact-card .title {
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--secondary);
  margin-bottom: 2px;
}

.fact-card .desc {
  font-size: 0.76rem;
  color: var(--text-sub);
}

@media (max-width: 640px) {
  .hero-headline {
    font-size: 1.55rem;
    line-height: 1.35;
  }
  .hero-subtext {
    font-size: 0.92rem;
  }
  .hero-facts-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
  }
  .fact-card {
    padding: 10px 6px;
  }
  .fact-card .title {
    font-size: 0.78rem;
  }
  .fact-card .desc {
    font-size: 0.68rem;
  }
}

/* ==========================================================================
   2-Column Desktop / 1-Column Mobile 계산기 레이아웃
   ========================================================================== */
.main-calc-wrapper {
  max-width: 1140px;
  margin: 16px auto 50px;
  padding: 0 20px;
}

.calc-2col-layout {
  display: grid;
  grid-template-columns: 1fr 390px;
  gap: 28px;
  align-items: start;
}

@media (max-width: 960px) {
  .calc-2col-layout {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

/* 좌측 계산기 카드 */
.calc-card-main {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-md);
}

.step-block {
  margin-bottom: 30px;
}

.step-block:last-child {
  margin-bottom: 0;
}

.step-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.step-num-badge {
  width: 24px;
  height: 24px;
  background: var(--primary);
  color: #ffffff;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}

.step-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--secondary);
}

.step-tip {
  font-size: 0.8rem;
  color: var(--text-sub);
  margin-left: auto;
}

/* 그리드 선택지 버튼 */
.option-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.option-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

@media (max-width: 600px) {
  .option-grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

.calc-radio-label {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 14px 8px;
  border: 2px solid var(--border-light);
  border-radius: var(--radius-md);
  background: #ffffff;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}

.calc-radio-label:hover {
  border-color: #93c5fd;
  background: #f0f9ff;
}

.calc-radio-label input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.calc-radio-label.active,
.calc-radio-label input[type="radio"]:checked + .radio-content {
  border-color: var(--primary);
  background: #f0f9ff;
}

.calc-radio-label.is-selected {
  border-color: var(--primary) !important;
  background: #f0f9ff !important;
  box-shadow: 0 0 0 1px var(--primary);
}

.radio-icon {
  font-size: 1.5rem;
  margin-bottom: 6px;
}

.radio-name {
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--secondary);
  margin-bottom: 2px;
}

.radio-desc {
  font-size: 0.74rem;
  color: var(--text-sub);
  line-height: 1.3;
}

.radio-tag {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--primary);
  margin-top: 4px;
}

/* 수량 카운터 */
.counter-control-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #f8fafc;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 12px 18px;
}

.counter-label-col {
  display: flex;
  flex-direction: column;
}

.counter-title {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--secondary);
}

.counter-benefit {
  font-size: 0.78rem;
  color: var(--primary);
  font-weight: 700;
}

.counter-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn-counter {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid var(--border-light);
  background: #ffffff;
  color: var(--secondary);
  font-size: 1.1rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-counter:active {
  transform: scale(0.92);
}

.counter-val {
  font-size: 1.25rem;
  font-weight: 900;
  color: var(--secondary);
  min-width: 24px;
  text-align: center;
}

/* 사진 업로드 영역 */
.photo-upload-box {
  border: 2px dashed #93c5fd;
  border-radius: var(--radius-md);
  background: #f0f9ff;
  padding: 18px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.photo-upload-box:hover {
  background: #e0f2fe;
  border-color: var(--primary);
}

.photo-upload-icon {
  font-size: 1.8rem;
  margin-bottom: 6px;
}

.photo-upload-title {
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--secondary);
}

.photo-upload-hint {
  font-size: 0.76rem;
  color: var(--text-sub);
  margin-top: 2px;
}

.thumb-preview-list {
  display: flex;
  gap: 8px;
  margin-top: 10px;
  flex-wrap: wrap;
}

.thumb-preview-item {
  width: 60px;
  height: 60px;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid var(--border-light);
}

/* ==========================================================================
   우측 스티키 요약 박스 (Sticky Summary Dock)
   ========================================================================== */
.sticky-summary-wrap {
  position: sticky;
  top: 80px;
  background: #ffffff;
  border: 2px solid var(--primary);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-glow);
}

.summary-badge-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.summary-badge {
  font-size: 0.72rem;
  font-weight: 800;
  background: var(--primary-light);
  color: var(--primary);
  padding: 4px 8px;
  border-radius: 6px;
}

.summary-label {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-sub);
}

.summary-price-main {
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--primary);
  letter-spacing: -0.5px;
  line-height: 1.1;
  margin-bottom: 12px;
}

.summary-price-main small {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--secondary);
}

/* 공업사 비교 스트립 */
.vs-compare-strip {
  background: #f8fafc;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  margin-bottom: 16px;
  font-size: 0.82rem;
}

.vs-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 4px;
  color: var(--text-sub);
}

.vs-row.saved {
  margin-bottom: 0;
  font-weight: 800;
  color: #dc2626;
  border-top: 1px dashed var(--border-light);
  padding-top: 6px;
}

/* 입력 필드 */
.summary-input-group {
  margin-bottom: 14px;
}

.form-control-input {
  width: 100%;
  height: 44px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 0 12px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--secondary);
  background: #ffffff;
  outline: none;
  transition: border-color 0.15s ease;
}

.form-control-input:focus {
  border-color: var(--primary);
}

/* CTA 버튼들 */
.btn-primary-order {
  width: 100%;
  height: 52px;
  background: linear-gradient(135deg, #0284c7, #0369a1);
  color: #ffffff;
  border: none;
  border-radius: var(--radius-md);
  font-size: 1.05rem;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.35);
  transition: all 0.2s ease;
  margin-bottom: 8px;
}

.btn-primary-order:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(2, 132, 199, 0.45);
}

.btn-sub-call {
  width: 100%;
  height: 44px;
  background: var(--secondary);
  color: #ffffff;
  border: none;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
}

/* ==========================================================================
   4대 안심 보증 그리드
   ========================================================================== */
.section-common-wrap {
  max-width: 1140px;
  margin: 60px auto;
  padding: 0 20px;
}

.section-head {
  text-align: center;
  margin-bottom: 32px;
}

.section-headline {
  font-size: 1.7rem;
  font-weight: 900;
  color: var(--secondary);
  letter-spacing: -0.5px;
  margin-bottom: 8px;
}

.section-subtext {
  font-size: 0.95rem;
  color: var(--text-sub);
}

.guarantee-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

@media (max-width: 860px) {
  .guarantee-grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .guarantee-grid-4 {
    grid-template-columns: 1fr;
  }
}

.guarantee-card {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 22px 18px;
  box-shadow: var(--shadow-sm);
  text-align: left;
}

.guarantee-icon-box {
  width: 42px;
  height: 42px;
  background: var(--primary-light);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  margin-bottom: 14px;
}

.guarantee-card h3 {
  font-size: 1.02rem;
  font-weight: 800;
  color: var(--secondary);
  margin-bottom: 6px;
}

.guarantee-card p {
  font-size: 0.82rem;
  color: var(--text-sub);
  line-height: 1.5;
}

/* ==========================================================================
   FAQ 아코디언
   ========================================================================== */
.faq-accordion-wrap {
  max-width: 860px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-card-detail {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all 0.2s ease;
}

.faq-card-detail[open] {
  border-color: var(--primary);
  box-shadow: var(--shadow-sm);
}

.faq-summary-row {
  padding: 16px 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--secondary);
  user-select: none;
  list-style: none;
}

.faq-summary-row::-webkit-details-marker {
  display: none;
}

.faq-badge-q {
  color: var(--primary);
  font-weight: 900;
  margin-right: 8px;
}

.faq-body-content {
  padding: 0 20px 18px;
  font-size: 0.88rem;
  color: #475569;
  line-height: 1.65;
  border-top: 1px dashed var(--border-light);
  padding-top: 14px;
}

/* ==========================================================================
   모바일 플로팅 하단 도크
   ========================================================================== */
.mobile-sticky-footer {
  display: none;
}

@media (max-width: 960px) {
  .mobile-sticky-footer {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 66px;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(12px);
    border-top: 1px solid var(--border-light);
    padding: 8px 14px;
    gap: 8px;
    z-index: 999;
    box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.08);
  }

  .footer-action-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border-radius: var(--radius-sm);
    font-size: 0.92rem;
    font-weight: 800;
  }

  .footer-action-btn.sms {
    background: #f1f5f9;
    color: var(--secondary);
  }

  .footer-action-btn.call {
    background: var(--primary);
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(2, 132, 199, 0.35);
  }
}

/* 푸터 */
.site-footer {
  max-width: 1140px;
  margin: 60px auto 30px;
  padding: 24px 20px;
  border-top: 1px solid var(--border-light);
  font-size: 0.78rem;
  color: var(--text-sub);
  line-height: 1.6;
}
