/* ============================================================
   COMPONENTS — 짱한의원 공용 컴포넌트
   브레드크럼 / 페이지 히어로 / 섹션 아이브로 / CTA 밴드 / 버튼 /
   sticky 상담 폼 / 개인정보 모달
   ============================================================ */

/* ========== BREADCRUMB ========== */
.crumb {
  padding: 24px 0 0;
  font-size: 14px;
  color: var(--gray-500);
}
.crumb a:hover { color: var(--magenta); }
.crumb span { margin: 0 8px; color: var(--gray-300); }

/* ========== PAGE HERO ========== */
.page-hero {
  padding: 60px 0 80px;
}
.ph-eyebrow {
  display: inline-block;
  font-size: 14px;
  font-weight: 700;
  color: var(--magenta);
  background: var(--magenta-soft);
  padding: 8px 18px;
  border-radius: 999px;
  margin-bottom: 32px;
  letter-spacing: -0.005em;
}
.page-hero h1 {
  font-size: clamp(36px, 5.5vw, 64px);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.04em;
  color: var(--charcoal);
  margin-bottom: 32px;
  max-width: 800px;
}
.page-hero h1 .accent { color: var(--magenta); }
.ph-sub {
  font-size: clamp(17px, 1.6vw, 20px);
  color: var(--gray-700);
  max-width: 640px;
  line-height: 1.85;
}
.ph-sub strong { color: var(--charcoal); font-weight: 700; }

/* ========== SECTION EYEBROW ========== */
.section-eyebrow {
  font-size: 15px;
  font-weight: 700;
  color: var(--magenta);
  margin-bottom: 18px;
  letter-spacing: -0.01em;
}

/* ========== CTA BAND ========== */
.cta-band {
  background: var(--charcoal);
  color: var(--white);
  padding: clamp(80px, 10vw, 130px) 0;
  text-align: center;
}
.cta-band .section-eyebrow { color: var(--magenta); }
.cta-band h2 {
  font-size: clamp(32px, 4.5vw, 52px);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.25;
  margin-bottom: 24px;
}
.cta-band h2 .accent { color: var(--magenta); }
.cta-band p {
  font-size: 18px;
  color: rgba(255,255,255,0.75);
  max-width: 580px;
  margin: 0 auto 48px;
  line-height: 1.8;
}
.cta-phone {
  display: inline-block;
  font-size: clamp(40px, 6vw, 64px);
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.02em;
  margin-bottom: 32px;
  padding: 0 20px;
  border-bottom: 4px solid var(--magenta);
}
.cta-phone::before { content: "☎ "; color: var(--magenta); }
.cta-channels {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ========== BUTTONS (base) ========== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 20px 36px;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.01em;
  border-radius: 4px;
  transition: all 0.25s;
  min-height: 60px;
}
.btn-primary { background: var(--magenta); color: var(--white); }
.btn-primary:hover { background: var(--magenta-deep); }
.btn-secondary {
  background: var(--white);
  color: var(--charcoal);
  border: 2px solid var(--charcoal);
}
.btn-secondary:hover { background: var(--charcoal); color: var(--white); }
.cta-band .btn-secondary {
  background: transparent;
  border-color: var(--white);
  color: var(--white);
}
.cta-band .btn-secondary:hover { background: var(--white); color: var(--charcoal); }

/* ========== STICKY CONSULT FORM (Desktop only) ========== */
.sticky-consult { display: none; }
@media (min-width: 921px) {
  .sticky-consult {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 199;
    background: var(--white);
    background: rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    padding: 12px 32px;
    align-items: center;
    border-top: 1px solid var(--magenta);
    box-shadow: 0 -2px 18px rgba(200, 0, 94, 0.4),
                0 -10px 40px rgba(0, 0, 0, 0.18);
    transform: translateY(100%);
    transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
  }
  .sticky-consult.is-visible { transform: translateY(0); }
  .sc-inner {
    position: relative;
    max-width: 1280px;
    margin: 0 auto;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
  }
  .sc-label {
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex-shrink: 0;
    min-height: 44px;
    padding: 0 8px 0 2px;
  }
  .sc-label-eyebrow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: 'Fraunces', serif;
    font-style: italic;
    font-size: clamp(70px, 7vw, 110px);
    font-weight: 900;
    letter-spacing: -0.02em;
    color: rgba(200, 0, 94, 0.025);
    text-transform: uppercase;
    white-space: nowrap;
    pointer-events: none;
    line-height: 0.9;
    margin: 0;
    z-index: 0;
  }
  .sc-label-title {
    position: relative;
    z-index: 1;
    font-size: 21px;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--charcoal);
    line-height: 1.1;
  }
  .sc-form {
    display: flex;
    align-items: center;
    gap: 10px;
  }
  .sc-input {
    flex: 1;
    max-width: 180px;
    height: 38px;
    padding: 0 14px;
    border: 1px solid var(--gray-300);
    background: var(--white);
    color: var(--ink);
    font-size: 14px;
    font-weight: 500;
    border-radius: 4px;
    transition: border-color 0.2s, box-shadow 0.2s;
    font-family: inherit;
  }
  .sc-input::placeholder { color: var(--gray-500); font-weight: 400; }
  .sc-input:focus {
    outline: none;
    border-color: var(--magenta);
    box-shadow: 0 0 0 3px rgba(200, 0, 94, 0.18);
  }
  .sc-consent-inline {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    cursor: pointer;
    user-select: none;
    padding: 6px 0;
  }
  .sc-checkbox {
    appearance: none;
    -webkit-appearance: none;
    width: 16px;
    height: 16px;
    border: 1.5px solid var(--gray-500);
    border-radius: 3px;
    background: var(--white);
    cursor: pointer;
    position: relative;
    flex-shrink: 0;
    transition: all 0.15s;
  }
  .sc-checkbox:hover { border-color: var(--magenta); }
  .sc-checkbox:checked {
    background: var(--magenta);
    border-color: var(--magenta);
  }
  .sc-checkbox:checked::after {
    content: "";
    position: absolute;
    left: 3px;
    top: -1px;
    width: 5px;
    height: 9px;
    border: solid var(--white);
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
  }
  .sc-consent-text {
    font-size: 13px;
    color: var(--charcoal);
    letter-spacing: -0.01em;
    font-weight: 500;
  }
  .sc-consent-text a {
    color: var(--magenta);
    text-decoration: underline;
    text-underline-offset: 2px;
    font-weight: 600;
  }
  .sc-consent-text a:hover { color: var(--magenta-deep); }
  .sc-consent-required {
    font-size: 11px;
    color: var(--gray-500);
    font-weight: 400;
    margin-left: 2px;
  }
  .sc-submit {
    height: 38px;
    padding: 0 22px;
    background: transparent;
    color: var(--magenta);
    border: 1.5px solid var(--magenta);
    border-radius: 4px;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: -0.01em;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
    flex-shrink: 0;
  }
  .sc-submit:hover {
    background: var(--magenta);
    color: var(--white);
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(200, 0, 94, 0.4);
  }
  .sc-submit:active { transform: scale(0.97); }
}
@media (min-width: 921px) and (max-width: 1180px) {
  .sc-input { max-width: 140px; }
  .sc-consent-required { display: none; }
  .sc-consent-text { font-size: 12px; }
  .sticky-consult { padding: 10px 22px; }
  .sc-inner { gap: 10px; }
}

/* ========== PRIVACY MODAL ========== */
.privacy-modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 300;
  background: rgba(26, 26, 26, 0.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  transition: opacity 0.25s ease;
}
.privacy-modal-overlay.is-open {
  display: flex;
  opacity: 1;
}
.privacy-modal {
  background: var(--white);
  border-radius: 8px;
  max-width: 720px;
  width: 100%;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.25);
  transform: scale(0.95) translateY(10px);
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}
.privacy-modal-overlay.is-open .privacy-modal {
  transform: scale(1) translateY(0);
}
.pm-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 32px 20px;
  border-bottom: 1px solid var(--gray-100);
  flex-shrink: 0;
}
.pm-title-block {
  display: flex;
  flex-direction: column;
}
.pm-eyebrow {
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--magenta);
  text-transform: uppercase;
  margin-bottom: 4px;
}
.pm-title {
  font-size: 20px;
  font-weight: 800;
  color: var(--charcoal);
  letter-spacing: -0.01em;
}
.pm-close {
  background: none;
  border: none;
  color: var(--gray-500);
  cursor: pointer;
  padding: 8px;
  font-size: 26px;
  line-height: 1;
  transition: color 0.2s;
  flex-shrink: 0;
}
.pm-close:hover { color: var(--charcoal); }
.pm-body {
  padding: 24px 32px 28px;
  overflow-y: auto;
  flex: 1;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.7;
}
.pm-body p {
  margin: 0 0 14px;
  color: var(--gray-700);
}
.pm-section {
  margin-bottom: 24px;
}
.pm-section:last-child {
  margin-bottom: 0;
}
.pm-section-num {
  display: inline-block;
  font-family: 'Fraunces', serif;
  font-style: italic;
  color: var(--magenta);
  font-weight: 600;
  margin-right: 8px;
}
.pm-section-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--charcoal);
  margin: 0 0 8px;
  letter-spacing: -0.01em;
}
.pm-section-content {
  font-size: 14px;
  color: var(--gray-700);
  line-height: 1.7;
}
.pm-section-content strong {
  color: var(--charcoal);
  font-weight: 600;
}
.pm-table {
  width: 100%;
  border-collapse: collapse;
  margin: 8px 0;
  font-size: 13px;
}
.pm-table th,
.pm-table td {
  padding: 10px 14px;
  text-align: left;
  border-bottom: 1px solid var(--gray-100);
}
.pm-table th {
  background: var(--gray-50);
  font-weight: 600;
  color: var(--charcoal);
}
.pm-table td {
  color: var(--gray-700);
}
.pm-footer {
  padding: 18px 32px;
  border-top: 1px solid var(--gray-100);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-shrink: 0;
}
.pm-footer-note {
  font-size: 12px;
  color: var(--gray-500);
  line-height: 1.5;
}
.pm-agree-btn {
  background: var(--magenta);
  color: var(--white);
  border: none;
  padding: 12px 24px;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s;
  font-family: inherit;
  flex-shrink: 0;
  letter-spacing: -0.01em;
}
.pm-agree-btn:hover {
  background: var(--magenta-deep);
}
@media (max-width: 600px) {
  .pm-header { padding: 20px 22px 16px; }
  .pm-body { padding: 20px 22px 24px; }
  .pm-footer { padding: 16px 22px; flex-direction: column; align-items: stretch; }
  .pm-agree-btn { width: 100%; }
  .pm-title { font-size: 18px; }
  .pm-table { font-size: 12px; }
  .pm-table th,
  .pm-table td { padding: 8px 10px; }
}
