/* =========================================================================
   RelaxNest · 컴포넌트 / 레이아웃 (오버레이 포함)
   ========================================================================= */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--fs-base);
  line-height: var(--lh-base);
  color: var(--text-base);
  background: var(--bg-deep);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--accent-soft);
  text-decoration: none;
  transition: color 0.18s ease;
}
a:hover {
  color: var(--c-gold-300);
}

h1,
h2,
h3 {
  color: var(--text-strong);
  line-height: var(--lh-tight);
  letter-spacing: -0.01em;
  margin: 0 0 var(--sp-4);
}
h1 {
  font-size: var(--fs-3xl);
  font-weight: 800;
}
h2 {
  font-size: var(--fs-2xl);
  font-weight: 700;
}
h3 {
  font-size: var(--fs-lg);
  font-weight: 700;
}
p {
  margin: 0 0 var(--sp-4);
}

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--sp-5);
}

.section {
  padding: var(--sp-8) 0;
}
.section--tight {
  padding: var(--sp-7) 0;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: var(--fs-sm);
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--accent);
  text-transform: uppercase;
}
.eyebrow::before {
  content: "";
  width: 34px;
  height: 2px;
  background: var(--grad-orange);
  border-radius: 2px;
}

.lede {
  color: var(--text-muted);
  font-size: var(--fs-lg);
  max-width: 64ch;
}

/* ---------- 헤더 / 내비 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(8, 12, 22, 0.82);
  backdrop-filter: saturate(150%) blur(12px);
  border-bottom: 1px solid var(--c-line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-weight: 800;
  font-size: var(--fs-lg);
  color: var(--text-strong);
  letter-spacing: -0.02em;
}
.brand .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--grad-gold);
  box-shadow: 0 0 14px rgba(212, 175, 106, 0.7);
}
.nav-menu {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-menu > li {
  position: relative;
}
.nav-menu > li > a {
  display: inline-block;
  padding: var(--sp-2) var(--sp-3);
  color: var(--text-base);
  font-weight: 600;
  font-size: var(--fs-sm);
  border-radius: var(--radius-sm);
}
.nav-menu > li > a:hover {
  color: var(--text-strong);
  background: var(--c-line-soft);
}
.dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 220px;
  background: var(--grad-surface);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-pop);
  padding: var(--sp-2);
  display: grid;
  gap: 2px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity 0.16s ease, transform 0.16s ease, visibility 0.16s;
}
.nav-menu > li:hover .dropdown,
.nav-menu > li:focus-within .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.dropdown a {
  display: block;
  padding: var(--sp-2) var(--sp-3);
  border-radius: var(--radius-sm);
  color: var(--text-base);
  font-size: var(--fs-sm);
}
.dropdown a:hover {
  background: var(--c-line-soft);
  color: var(--text-strong);
}
.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--c-line);
  color: var(--text-strong);
  border-radius: var(--radius-sm);
  width: 42px;
  height: 38px;
  font-size: 1.2rem;
  cursor: pointer;
}

/* ---------- 버튼 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  padding: 0.7rem 1.3rem;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: var(--fs-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.18s ease, background 0.18s;
}
.btn:hover {
  transform: translateY(-1px);
}
.btn-gold {
  background: var(--grad-gold);
  color: #2a2008;
  box-shadow: var(--shadow-gold);
}
.btn-orange {
  background: var(--grad-orange);
  color: #fff;
  box-shadow: var(--shadow-orange);
}
.btn-ghost {
  background: var(--bg-surface);
  color: var(--text-strong);
  border-color: var(--c-line);
}
.btn-ghost:hover {
  border-color: var(--c-gold-600);
  color: var(--c-gold-300);
}

/* ---------- 히어로 (좌측 텍스트 · 우측 이미지) ---------- */
.hero {
  position: relative;
  background: var(--grad-hero);
  border-bottom: 1px solid var(--c-line);
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: var(--sp-7);
  align-items: center;
  padding-top: var(--sp-8);
  padding-bottom: var(--sp-8);
}
.hero-copy {
  text-align: left;
}
.hero h1 {
  font-size: clamp(1.9rem, 4.4vw, var(--fs-4xl));
  margin-bottom: var(--sp-4);
}
.hero-copy .lede {
  margin: 0 0 var(--sp-6);
}
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
  justify-content: flex-start;
}
.hero-media {
  position: relative;
}
.hero-media img {
  width: 100%;
  aspect-ratio: 1448 / 1086;
  object-fit: cover;
  border-radius: var(--radius-lg);
  border: 1px solid var(--c-line);
  box-shadow: var(--shadow-pop);
}
.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(8, 12, 22, 0) 55%, rgba(8, 12, 22, 0.35));
  pointer-events: none;
}
@media (max-width: 920px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: var(--sp-5);
    text-align: center;
  }
  .hero-copy {
    text-align: center;
  }
  .hero-copy .lede {
    margin-left: auto;
    margin-right: auto;
  }
  .hero-cta {
    justify-content: center;
  }
  .hero-media {
    order: -1;
    max-width: 520px;
    margin: 0 auto;
  }
}

/* ---------- 카드 / 그리드 ---------- */
.grid {
  display: grid;
  gap: var(--sp-4);
}
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  position: relative;
  background: var(--grad-surface);
  border: 1px solid var(--c-line);
  border-radius: var(--radius-lg);
  padding: var(--sp-5);
  overflow: hidden;
  transition: transform 0.18s ease, border-color 0.18s ease;
}
.card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--overlay-card);
  pointer-events: none;
}
.card:hover {
  transform: translateY(-3px);
  border-color: var(--c-gold-600);
}
.card h3 {
  margin-bottom: var(--sp-2);
}
.card p {
  color: var(--text-muted);
  font-size: var(--fs-sm);
  margin-bottom: var(--sp-3);
}
.card .card-link {
  font-weight: 700;
  font-size: var(--fs-sm);
}

/* ---------- 요금 (스크린샷 레이아웃) ---------- */
.pricing {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-4);
  align-items: stretch;
}
.price-card {
  position: relative;
  text-align: center;
  background: var(--grad-surface);
  border: 1px solid var(--c-line);
  border-radius: var(--radius-lg);
  padding: var(--sp-6) var(--sp-5);
}
.price-card--featured {
  border-color: var(--c-gold-500);
  box-shadow: var(--shadow-gold);
}
.price-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--grad-gold);
  color: #2a2008;
  font-weight: 800;
  font-size: var(--fs-xs);
  padding: 0.3rem 0.9rem;
  border-radius: var(--radius-pill);
}
.price-card h3 {
  font-size: var(--fs-lg);
  margin-bottom: var(--sp-4);
}
.price-amount {
  font-size: var(--fs-4xl);
  font-weight: 800;
  color: var(--text-strong);
  line-height: 1;
}
.price-card--featured .price-amount {
  color: var(--c-gold-400);
}
.price-amount .won {
  font-size: var(--fs-base);
  color: var(--text-muted);
  font-weight: 600;
}
.price-min {
  color: var(--accent);
  font-weight: 700;
  font-size: var(--fs-sm);
  margin: var(--sp-2) 0 var(--sp-4);
}
.price-desc {
  color: var(--text-muted);
  font-size: var(--fs-sm);
  margin-bottom: var(--sp-5);
}

/* ---------- 체크리스트 ---------- */
.checklist {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--sp-3);
}
.checklist li {
  position: relative;
  padding-left: 2rem;
  color: var(--text-base);
}
.checklist li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  width: 1.4rem;
  height: 1.4rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(212, 175, 106, 0.15);
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 800;
}

/* ---------- 프로즈 (본문) ---------- */
.prose {
  max-width: 74ch;
}
.prose h2 {
  margin-top: var(--sp-6);
}
.prose ul {
  padding-left: 1.2rem;
}
.prose li {
  margin-bottom: var(--sp-2);
}

/* ---------- 브레드크럼 ---------- */
.breadcrumb {
  font-size: var(--fs-sm);
  color: var(--text-muted);
  padding: var(--sp-4) 0;
}
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb .sep { margin: 0 var(--sp-2); opacity: 0.5; }

/* ---------- FAQ ---------- */
.faq details {
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  padding: var(--sp-4) var(--sp-5);
  margin-bottom: var(--sp-3);
  background: var(--bg-surface);
}
.faq summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--text-strong);
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  float: right;
  color: var(--accent);
  font-weight: 800;
}
.faq details[open] summary::after { content: "–"; }
.faq details[open] summary { margin-bottom: var(--sp-3); }
.faq p { color: var(--text-muted); margin: 0; }

/* ---------- E-E-A-T / Who-How-Why ---------- */
.eeat {
  border: 1px dashed var(--c-line);
  border-radius: var(--radius);
  padding: var(--sp-5);
  background: rgba(255, 255, 255, 0.015);
  font-size: var(--fs-sm);
  color: var(--text-muted);
}
.eeat h3 { font-size: var(--fs-base); }
.whw {
  display: grid;
  gap: var(--sp-3);
  grid-template-columns: repeat(3, 1fr);
  margin-top: var(--sp-4);
}
.whw div { background: var(--bg-surface); padding: var(--sp-4); border-radius: var(--radius-sm); }
.whw strong { color: var(--accent); display: block; margin-bottom: var(--sp-1); }

/* ---------- 푸터 ---------- */
.site-footer {
  background: var(--bg-deep);
  border-top: 1px solid var(--c-line);
  padding: var(--sp-8) 0 var(--sp-6);
  margin-top: var(--sp-8);
}
.footer-cta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
  align-items: center;
  justify-content: center;
  padding: var(--sp-6);
  border: 1px solid var(--c-line);
  border-radius: var(--radius-lg);
  background: var(--grad-surface);
  margin-bottom: var(--sp-7);
}
.footer-cta p {
  margin: 0;
  color: var(--text-base);
  font-weight: 600;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: var(--sp-5);
}
.footer-grid h4 {
  color: var(--text-strong);
  font-size: var(--fs-sm);
  margin: 0 0 var(--sp-3);
}
.footer-grid ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--sp-2);
}
.footer-grid a {
  color: var(--text-muted);
  font-size: var(--fs-sm);
}
.footer-grid a:hover { color: var(--accent); }
.footer-brand p {
  color: var(--text-muted);
  font-size: var(--fs-sm);
}
.footer-contact {
  font-size: var(--fs-sm);
  color: var(--text-muted);
  line-height: 1.9;
}
.footer-contact strong { color: var(--text-base); }
.footer-bottom {
  margin-top: var(--sp-6);
  padding-top: var(--sp-5);
  border-top: 1px solid var(--c-line-soft);
  font-size: var(--fs-xs);
  color: var(--c-ink-500);
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
  justify-content: space-between;
}

/* ---------- 후기 / 평점 ---------- */
.stars {
  color: var(--c-gold-400);
  letter-spacing: 1px;
  font-size: 1rem;
}
.stars-off { color: var(--c-navy-500); }
.rating-badge {
  display: inline-block;
  margin-left: var(--sp-2);
  font-size: var(--fs-sm);
  font-weight: 700;
  color: var(--c-gold-400);
  background: rgba(212, 175, 106, 0.12);
  border: 1px solid var(--c-line);
  border-radius: var(--radius-pill);
  padding: 0.2rem 0.7rem;
  vertical-align: middle;
}
.review-card {
  margin: 0;
  background: var(--grad-surface);
  border: 1px solid var(--c-line);
  border-radius: var(--radius-lg);
  padding: var(--sp-5);
}
.review-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--sp-3);
}
.review-area {
  font-size: var(--fs-xs);
  color: var(--text-muted);
}
.review-card blockquote {
  margin: 0 0 var(--sp-3);
  color: var(--text-base);
  font-size: var(--fs-sm);
  line-height: 1.7;
}
.review-card figcaption {
  font-size: var(--fs-xs);
  color: var(--text-muted);
}

/* ---------- 롱테일 내부링크 허브 ---------- */
.link-cols {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-5);
  margin-top: var(--sp-5);
}
.link-cols h3 {
  font-size: var(--fs-base);
  color: var(--accent-soft);
  margin: 0 0 var(--sp-3);
  padding-bottom: var(--sp-2);
  border-bottom: 1px solid var(--c-line);
}
.link-cols ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--sp-2);
}
.link-cols a {
  color: var(--text-muted);
  font-size: var(--fs-sm);
}
.link-cols a:hover {
  color: var(--accent);
}
@media (max-width: 920px) {
  .link-cols { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .link-cols { grid-template-columns: 1fr; }
}

/* ---------- 고정 전화예약 버튼 (모든 페이지) ---------- */
.call-fab {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 90;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.2rem 0.8rem 0.95rem;
  border-radius: var(--radius-pill);
  background: var(--grad-orange);
  color: #fff;
  font-weight: 800;
  font-size: var(--fs-sm);
  box-shadow: var(--shadow-orange), 0 8px 24px -8px rgba(0, 0, 0, 0.6);
  transition: transform 0.15s ease, box-shadow 0.18s ease;
}
.call-fab:hover {
  color: #fff;
  transform: translateY(-2px);
}
.call-fab__icon {
  width: 22px;
  height: 22px;
  flex: none;
}
.call-fab__ring {
  position: absolute;
  left: 18px;
  top: 50%;
  width: 24px;
  height: 24px;
  margin-top: -12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  transform: translateZ(0);
  animation: call-pulse 1.8s ease-out infinite;
  pointer-events: none;
}
@keyframes call-pulse {
  0% { transform: scale(0.7); opacity: 0.7; }
  70% { transform: scale(2.4); opacity: 0; }
  100% { opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .call-fab__ring { animation: none; display: none; }
}
@media (max-width: 680px) {
  .call-fab {
    right: 14px;
    bottom: 14px;
    padding: 0.7rem 1rem 0.7rem 0.8rem;
  }
}

/* ---------- 반응형 ---------- */
@media (max-width: 920px) {
  .grid-3, .grid-4, .pricing, .whw { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 680px) {
  .nav-menu {
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    background: var(--grad-surface);
    border-bottom: 1px solid var(--c-line);
    padding: var(--sp-3);
    gap: var(--sp-1);
    display: none;
  }
  .nav-menu.open { display: flex; }
  .nav-menu > li > a { padding: var(--sp-3); }
  .dropdown {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    background: transparent;
    padding-left: var(--sp-4);
  }
  .nav-toggle { display: block; }
  .grid-2, .grid-3, .grid-4, .pricing, .whw { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .section { padding: var(--sp-7) 0; }
}
