/* ============================================================
   반려동물 해양장 (/pet/) 전용 CSS
   common.css 의 토큰·컴포넌트를 그대로 쓰고, 보조색만 갈아끼운다.
   네이비는 유지하고 골드 대신 세이지/시폼 계열로 한 톤 밝게.
   ============================================================ */

:root {
  --color-pet-accent:      #6E9E86;  /* 세이지 그린 — 골드 자리 */
  --color-pet-accent-dark: #4F7B66;
  --color-pet-accent-soft: #E9F1EC;  /* 카드 배경 */
  --color-pet-seafoam:     #9CC7BC;  /* 시폼 — 포인트 라인 */
  --color-pet-sand:        #F6F3EC;  /* 섹션 배경 */
  --pet-callbar-h:         62px;
}

/* 스크린리더 전용 텍스트 — 표의 ✓/✕ 기호에 의미를 부여한다 */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* ── 히어로 ── */
.pet-hero {
  position: relative;
  isolation: isolate;
  min-height: 460px;
  display: flex;
  align-items: center;
  text-align: center;
  padding: 4rem 0;
  background-color: var(--color-navy);
  background-image:
    linear-gradient(170deg, rgba(10,37,64,.82) 0%, rgba(30,74,90,.72) 55%, rgba(110,158,134,.55) 100%);
}
.pet-hero-content { position: relative; z-index: 2; max-width: 720px; margin: 0 auto; }
.pet-hero-eyebrow {
  display: inline-block;
  font-size: .78rem; font-weight: 700; letter-spacing: .12em;
  color: var(--color-pet-seafoam);
  border: 1px solid rgba(156,199,188,.45);
  border-radius: var(--radius-full);
  padding: .3rem 1rem;
  margin-bottom: 1.25rem;
}
.pet-hero-title {
  font-family: var(--font-heading);
  font-size: clamp(1.7rem, 5vw, 2.8rem);
  font-weight: 700; line-height: 1.35;
  color: var(--color-cream);
  word-break: keep-all;
}
.pet-hero-sub {
  margin-top: 1rem;
  font-size: clamp(.95rem, 2.2vw, 1.1rem);
  color: rgba(248,246,240,.82);
  line-height: 1.8; word-break: keep-all;
}
.pet-hero-cta { display: flex; gap: .75rem; justify-content: center; flex-wrap: wrap; margin-top: 2rem; }
.pet-hero-note { margin-top: 1.25rem; font-size: .8rem; color: rgba(248,246,240,.6); }

/* ── 펫 전용 버튼 ── */
.btn-pet { background: var(--color-pet-accent); color: #fff; }
.btn-pet:hover { background: var(--color-pet-accent-dark); color: #fff; box-shadow: var(--shadow-md); transform: translateY(-1px); }
.btn-pet-ghost { background: transparent; color: var(--color-pet-accent-dark); border-color: var(--color-pet-accent); }
.btn-pet-ghost:hover { background: var(--color-pet-accent); color: #fff; }

/* ── 섹션 ── */
.pet-section-sand { background: var(--color-pet-sand); }
.pet-section-title {
  font-family: var(--font-heading);
  font-size: clamp(1.35rem, 3vw, 2rem);
  font-weight: 700; color: var(--color-navy);
  text-align: center; word-break: keep-all;
}
.pet-section-title::after {
  content: ''; display: block;
  width: 42px; height: 3px; margin: .9rem auto 0;
  background: var(--color-pet-accent); border-radius: var(--radius-full);
}
.pet-section-sub {
  text-align: center; color: var(--color-muted);
  margin: 1rem auto var(--spacing-lg); max-width: 640px;
  line-height: 1.9; word-break: keep-all;
}

/* ── 공감 카드 ── */
.pet-empathy { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--spacing-md); }
.pet-empathy-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-top: 3px solid var(--color-pet-seafoam);
  border-radius: var(--radius-md);
  padding: 1.5rem;
}
.pet-empathy-quote {
  font-family: var(--font-heading);
  font-size: 1rem; color: var(--color-navy);
  line-height: 1.7; margin-bottom: .75rem; word-break: keep-all;
}
.pet-empathy-answer { font-size: .9rem; color: var(--color-muted); line-height: 1.85; word-break: keep-all; }

/* ── 법적 안내 박스 ── */
.pet-legal {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-left: 4px solid var(--color-pet-accent);
  border-radius: var(--radius-md);
  padding: 1.5rem 1.75rem;
}
.pet-legal + .pet-legal { margin-top: var(--spacing-md); }
.pet-legal-title {
  font-family: var(--font-heading); font-weight: 700;
  color: var(--color-navy); font-size: 1.05rem; margin-bottom: .75rem;
}
.pet-legal p { font-size: .93rem; line-height: 1.9; color: var(--color-text); word-break: keep-all; }
.pet-legal p + p { margin-top: .6rem; }
.pet-legal strong { color: var(--color-pet-accent-dark); }
.pet-legal a { color: var(--color-pet-accent-dark); text-decoration: underline; text-underline-offset: 3px; font-weight: 600; }
.pet-legal-list { display: flex; flex-direction: column; gap: .55rem; margin-top: .85rem; }
.pet-legal-list li { display: flex; gap: .6rem; align-items: flex-start; font-size: .9rem; line-height: 1.8; color: var(--color-text); word-break: keep-all; }
.pet-legal-list li::before { content: '·'; color: var(--color-pet-accent); font-weight: 700; flex-shrink: 0; }
.pet-legal-warn { display: flex; gap: .6rem; align-items: flex-start; }
.pet-legal-warn li::before { content: '✕'; color: var(--color-error); font-weight: 700; }

/* ── 패키지 카드 ── */
.pet-price-card {
  max-width: 760px; margin: 0 auto;
  background: var(--color-white);
  border: 2px solid var(--color-pet-accent);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}
.pet-price-head { background: var(--color-pet-accent-soft); padding: 1.75rem; text-align: center; }
.pet-price-name { font-family: var(--font-heading); font-size: 1.35rem; font-weight: 700; color: var(--color-navy); }
.pet-price-desc { font-size: .88rem; color: var(--color-muted); margin-top: .4rem; word-break: keep-all; }
.pet-price-amount { font-size: clamp(2rem, 6vw, 2.6rem); font-weight: 800; color: var(--color-navy); line-height: 1.1; margin-top: .9rem; }
.pet-price-amount span { font-size: 1.05rem; font-weight: 500; color: var(--color-muted); }
.pet-price-vat { font-size: .82rem; color: var(--color-muted); margin-top: .35rem; }
.pet-price-body { padding: 1.5rem 1.75rem 1.75rem; }

/* ── 포함 / 별도 / 옵션 3분할 ── */
.pet-table-block + .pet-table-block { margin-top: 1.75rem; }
.pet-table-caption {
  display: flex; align-items: center; gap: .5rem;
  font-weight: 700; font-size: .95rem; color: var(--color-navy);
  margin-bottom: .6rem;
}
.pet-table-caption .badge { font-size: .7rem; }
.pet-table-note { font-size: .82rem; color: var(--color-muted); margin-bottom: .6rem; line-height: 1.7; word-break: keep-all; }
.pet-table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.pet-table th, .pet-table td { padding: .7rem .85rem; border-bottom: 1px solid var(--color-border); text-align: left; vertical-align: top; line-height: 1.7; word-break: keep-all; }
.pet-table tr:last-child td { border-bottom: none; }
.pet-table .pet-cell-mark { width: 2.2rem; text-align: center; padding-right: 0; }
.pet-table .pet-cell-note { color: var(--color-muted); font-size: .85rem; }
.pet-mark-in  { color: var(--color-pet-accent-dark); font-weight: 700; }
.pet-mark-out { color: var(--color-muted); font-weight: 700; }
.pet-mark-opt { color: var(--color-navy); font-weight: 700; }
.pet-table-wrap { overflow-x: auto; border: 1px solid var(--color-border); border-radius: var(--radius-sm); background: var(--color-white); }
.pet-table-wrap.is-excluded { background: rgba(90,113,132,.05); }

/* ── 절차 ── */
.pet-step { display: flex; gap: 1.25rem; padding: 1.5rem; background: var(--color-white); border-radius: var(--radius-md); box-shadow: var(--shadow-sm); }
.pet-step + .pet-step { margin-top: 1rem; }
.pet-step-num {
  flex-shrink: 0; width: 46px; height: 46px; border-radius: var(--radius-full);
  background: var(--color-navy); color: var(--color-pet-seafoam);
  font-family: var(--font-heading); font-size: 1.15rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.pet-step-body { flex: 1; min-width: 0; }
.pet-step-head { display: flex; align-items: center; gap: .7rem; flex-wrap: wrap; margin-bottom: .5rem; }
.pet-step-title { font-family: var(--font-heading); font-size: 1.05rem; font-weight: 700; color: var(--color-navy); }
.pet-step-lead { font-size: .93rem; color: var(--color-text); line-height: 1.85; margin-bottom: .75rem; word-break: keep-all; }
.badge-pet { background: var(--color-pet-accent-soft); color: var(--color-pet-accent-dark); border: 1px solid rgba(110,158,134,.35); }
.pet-checklist { display: flex; flex-direction: column; gap: .45rem; }
.pet-checklist li { display: flex; gap: .6rem; align-items: flex-start; font-size: .88rem; line-height: 1.8; color: var(--color-muted); word-break: keep-all; }
.pet-checklist li::before { content: '✓'; color: var(--color-pet-accent); font-weight: 700; flex-shrink: 0; }

/* ── 아코디언 (FAQ) 펫 색상 ── */
.pet-faq .accordion-btn[aria-expanded="true"] .accordion-icon {
  background: var(--color-pet-accent); border-color: var(--color-pet-accent); color: #fff;
}
.pet-faq .accordion-body { color: var(--color-text); }
.pet-faq-cat-title { font-family: var(--font-heading); font-size: 1.1rem; font-weight: 700; color: var(--color-navy); margin-bottom: 1rem; }

/* ── 후기 빈 상태 ── */
.pet-empty {
  text-align: center;
  border: 1.5px dashed var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-white);
  padding: 3rem 1.5rem;
}
.pet-empty-icon { font-size: 2.4rem; line-height: 1; margin-bottom: .9rem; }
.pet-empty-title { font-family: var(--font-heading); font-size: 1.1rem; font-weight: 700; color: var(--color-navy); }
.pet-empty-desc { font-size: .9rem; color: var(--color-muted); margin-top: .6rem; line-height: 1.85; word-break: keep-all; }

/* ── CTA 밴드 ── */
.pet-cta-band { background: linear-gradient(135deg, var(--color-navy) 0%, #1E4A5A 100%); padding: var(--spacing-xl) 0; text-align: center; }
.pet-cta-title { font-family: var(--font-heading); font-size: clamp(1.35rem, 3vw, 1.9rem); font-weight: 700; color: var(--color-cream); word-break: keep-all; }
.pet-cta-sub { color: rgba(248,246,240,.72); margin-top: .6rem; margin-bottom: var(--spacing-lg); font-size: .98rem; word-break: keep-all; }

/* ── 모바일 하단 고정 콜바 ── */
.pet-callbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 200;
  display: none; grid-template-columns: 1fr 1fr;
  height: var(--pet-callbar-h);
  box-shadow: 0 -2px 14px rgba(10,37,64,.18);
  transform: translateY(110%);
  transition: transform .28s ease;
}
.pet-callbar.is-visible { transform: none; }
.pet-callbar a {
  display: flex; align-items: center; justify-content: center; gap: .4rem;
  font-size: .95rem; font-weight: 700; line-height: 1;
}
.pet-callbar .pet-callbar-tel   { background: var(--color-pet-accent); color: #fff; }
.pet-callbar .pet-callbar-kakao { background: var(--color-kakao); color: #3A1D1D; }

/* ── 반응형 ── */
@media (max-width: 900px) {
  .pet-empathy { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .pet-hero { min-height: 420px; padding: 3rem 0; }
  .pet-hero-cta { flex-direction: column; align-items: stretch; }
  .pet-hero-cta .btn { width: 100%; }
  .pet-price-body { padding: 1.25rem 1rem 1.5rem; }
  .pet-price-head { padding: 1.5rem 1rem; }
  .pet-legal { padding: 1.25rem 1rem; }
  .pet-step { flex-direction: column; gap: .9rem; padding: 1.25rem 1rem; }
  .pet-callbar { display: grid; }
  /* 고정 콜바가 푸터·플로팅 버튼을 가리지 않도록 */
  body.has-pet-callbar { padding-bottom: var(--pet-callbar-h); }
  body.has-pet-callbar .floating-btn { bottom: calc(var(--pet-callbar-h) + 16px); }
}
@media (prefers-reduced-motion: reduce) {
  .pet-callbar { transition: none; }
}

/* ── 결제·환불 안내 (패키지 카드 하단) ── */
.pet-payment-note {
  margin-top: 1.5rem;
  padding: 1rem 1.1rem;
  background: var(--color-pet-sand);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
}
.pet-payment-note p { font-size: .86rem; line-height: 1.8; color: var(--color-muted); word-break: keep-all; }
.pet-payment-note p + p { margin-top: .4rem; }
.pet-payment-note strong { color: var(--color-navy); }
.pet-payment-note a { color: var(--color-pet-accent-dark); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

/* 표시가격 적용 범위 (1마리 기준 고지) */
.pet-price-scope { font-size: .78rem; color: var(--color-muted); line-height: 1.7; margin-top: .6rem; padding: 0 .5rem; word-break: keep-all; }
