/* ============================================
   UniCell B2C Landing — Global Styles
   Palette: Hermès Orange (#F37021) energetic theme
   ============================================ */

:root {
  --orange: #F37021;
  --orange-deep: #D95A0A;
  --orange-soft: #FFF3EA;
  --orange-tint: #FFE3CF;
  --ink: #1E1A17;
  --ink-soft: #55504B;
  --cream: #FFFBF7;
  --white: #FFFFFF;
  --line: #F0E3D8;
  --ok: #1E8E5A;
  --warn: #C9541B;
  --radius: 16px;
  --shadow: 0 8px 28px rgba(217, 90, 10, 0.10);
  --font: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont,
          "Segoe UI", "Malgun Gothic", "Apple SD Gothic Neo", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.65;
  word-break: keep-all;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; }

.container { max-width: 1120px; margin: 0 auto; padding: 0 20px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 251, 247, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 68px;
}
.logo {
  font-size: 1.4rem; font-weight: 800; letter-spacing: -0.02em;
  display: flex; align-items: center;
}
.logo .dot {
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--orange); display: inline-block; margin-right: 8px;
}
.logo em { font-style: normal; color: var(--orange); }

.gnb { display: flex; gap: 28px; align-items: center; }
.gnb a { font-weight: 600; font-size: 0.95rem; color: var(--ink-soft); transition: color .2s; }
.gnb a:hover, .gnb a.active { color: var(--orange); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 26px; border-radius: 999px; border: none;
  font-weight: 700; font-size: 0.95rem; transition: all .2s;
}
.btn-primary { background: var(--orange); color: #fff; box-shadow: var(--shadow); }
.btn-primary:hover { background: var(--orange-deep); transform: translateY(-2px); }
.btn-outline { background: transparent; color: var(--orange); border: 2px solid var(--orange); }
.btn-outline:hover { background: var(--orange-soft); }
.btn-lg { padding: 16px 38px; font-size: 1.05rem; }

.nav-toggle {
  display: none; background: none; border: none;
  width: 42px; height: 42px; position: relative;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: ""; display: block; position: absolute; left: 8px;
  width: 26px; height: 3px; border-radius: 2px; background: var(--ink);
  transition: transform .2s;
}
.nav-toggle span { top: 20px; }
.nav-toggle span::before { top: -8px; left: 0; }
.nav-toggle span::after { top: 8px; left: 0; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, #FF8A3D 0%, var(--orange) 45%, var(--orange-deep) 100%);
  color: #fff; text-align: center;
  padding: 96px 20px 110px;
}
.hero::before, .hero::after {
  content: ""; position: absolute; border-radius: 50%;
  background: rgba(255, 255, 255, 0.10);
}
.hero::before { width: 420px; height: 420px; top: -160px; right: -120px; }
.hero::after { width: 300px; height: 300px; bottom: -140px; left: -80px; }

.hero .eyebrow {
  display: inline-block; padding: 8px 18px; border-radius: 999px;
  background: rgba(255,255,255,0.18); font-weight: 700; font-size: 0.88rem;
  letter-spacing: 0.04em; margin-bottom: 22px;
}
.hero h1 {
  font-size: clamp(1.9rem, 4.5vw, 3.2rem); font-weight: 900;
  letter-spacing: -0.03em; line-height: 1.28; margin-bottom: 18px;
}
.hero p.lead {
  font-size: clamp(1rem, 2vw, 1.2rem); opacity: 0.94;
  max-width: 640px; margin: 0 auto 36px;
}
.hero .btn-primary { background: #fff; color: var(--orange-deep); }
.hero .btn-primary:hover { background: var(--orange-soft); }
.hero .btn-outline { border-color: rgba(255,255,255,0.7); color: #fff; }
.hero .btn-outline:hover { background: rgba(255,255,255,0.12); }
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; position: relative; z-index: 1; }

/* Sub-page hero variant */
.hero.hero-sub { padding: 72px 20px 84px; }
.hero .crumb { font-size: 0.85rem; opacity: 0.85; margin-bottom: 14px; }
.hero .crumb a { text-decoration: underline; }

/* ---------- Sections ---------- */
.section { padding: 84px 0; }
.section-alt { background: var(--white); }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 52px; }
.section-head .tag {
  display: inline-block; color: var(--orange); font-weight: 800;
  font-size: 0.9rem; letter-spacing: 0.08em; text-transform: uppercase;
  margin-bottom: 12px;
}
.section-head h2 {
  font-size: clamp(1.5rem, 3vw, 2.2rem); font-weight: 800;
  letter-spacing: -0.02em; line-height: 1.35; margin-bottom: 14px;
}
.section-head p { color: var(--ink-soft); }

/* ---------- Cards ---------- */
/* 중앙 정렬 플렉스: 카드 크기는 3열 그대로 유지하되, 개수가 3의 배수가 아니어도
   마지막 줄 카드들이 가운데로 정렬되어 정돈되어 보인다. */
.card-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 24px; }
.card {
  flex: 0 1 calc((100% - 48px) / 3); /* 3열 기준(gap 24px × 2) */
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 34px 28px;
  transition: transform .25s, box-shadow .25s;
  display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.card .icon {
  width: 58px; height: 58px; border-radius: 16px;
  background: var(--orange-soft); color: var(--orange);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.7rem; margin-bottom: 20px;
}
.card h3 { font-size: 1.2rem; font-weight: 800; margin-bottom: 10px; letter-spacing: -0.01em; }
.card p { color: var(--ink-soft); font-size: 0.95rem; flex: 1; }
.card .card-link {
  margin-top: 22px; color: var(--orange); font-weight: 700; font-size: 0.95rem;
  display: inline-flex; align-items: center; gap: 6px;
}
.card .card-link:hover { color: var(--orange-deep); }

/* ---------- Steps / process ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 34px; counter-reset: step; }
.step {
  background: var(--white); border: 2px solid var(--orange); border-radius: var(--radius);
  padding: 28px 22px; position: relative;
  transition: transform .2s, box-shadow .2s;
}
.step:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.step::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  display: block; font-size: 1.6rem; font-weight: 900; color: var(--orange);
  margin-bottom: 10px; letter-spacing: -0.02em;
}
/* 카드 사이 화살표 (데스크톱 4열에서만 표시) */
.step:not(:last-child)::after {
  content: "→"; position: absolute; top: 50%; right: -34px; width: 34px;
  text-align: center; transform: translateY(-50%);
  color: var(--orange); font-size: 1.5rem; font-weight: 900; line-height: 1;
}
.step h4 { font-size: 1.02rem; font-weight: 800; margin-bottom: 8px; }
.step p { font-size: 0.88rem; color: var(--ink-soft); }

/* ---------- Info list (subpages) ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.check-list li {
  position: relative; padding-left: 32px; margin-bottom: 14px; color: var(--ink-soft);
}
.check-list li::before {
  content: "✓"; position: absolute; left: 0; top: 0;
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--orange-soft); color: var(--orange);
  font-size: 0.8rem; font-weight: 900;
  display: flex; align-items: center; justify-content: center;
}
.info-box {
  background: var(--orange-soft); border: 1px solid var(--orange-tint);
  border-radius: var(--radius); padding: 26px 28px;
}
.info-box h4 { color: var(--orange-deep); font-weight: 800; margin-bottom: 10px; }
.info-box p, .info-box li { font-size: 0.92rem; color: var(--ink-soft); }
.info-box ul { list-style: disc; padding-left: 20px; }
.info-box li { margin-bottom: 6px; }

/* ---------- Quiz ---------- */
.quiz-wrap {
  max-width: 720px; margin: 0 auto;
  background: var(--white); border: 1px solid var(--line);
  border-radius: 22px; padding: 44px 40px; box-shadow: var(--shadow);
}
.quiz-progress { height: 8px; background: var(--orange-soft); border-radius: 99px; margin-bottom: 30px; overflow: hidden; }
.quiz-progress .bar { height: 100%; width: 0%; background: var(--orange); border-radius: 99px; transition: width .3s; }
.quiz-q { font-size: 1.2rem; font-weight: 800; margin-bottom: 24px; line-height: 1.5; }
.quiz-q .qnum { color: var(--orange); margin-right: 8px; }
.quiz-options { display: grid; gap: 12px; }
.quiz-options button {
  text-align: left; padding: 16px 20px; border-radius: 14px;
  border: 2px solid var(--line); background: var(--cream);
  font-size: 1rem; font-weight: 600; color: var(--ink); transition: all .15s;
}
.quiz-options button:hover { border-color: var(--orange); background: var(--orange-soft); }
.quiz-result { text-align: center; }
.quiz-result .badge {
  display: inline-block; padding: 10px 24px; border-radius: 999px;
  font-weight: 800; margin-bottom: 18px; font-size: 1.05rem;
}
.badge-low { background: #E7F5EE; color: var(--ok); }
.badge-mid { background: var(--orange-soft); color: var(--warn); }
.badge-high { background: #FDEBE3; color: #B03A0E; }
.quiz-result h3 { font-size: 1.4rem; font-weight: 800; margin-bottom: 14px; }
.quiz-result p { color: var(--ink-soft); margin-bottom: 26px; }
.quiz-disclaimer {
  margin-top: 26px; padding-top: 20px; border-top: 1px dashed var(--line);
  font-size: 0.8rem; color: #9A928A; text-align: center;
}

/* ---------- Clinic search ---------- */
.clinic-tools { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 26px; }
.clinic-tools select, .clinic-tools input {
  padding: 13px 18px; border-radius: 12px; border: 2px solid var(--line);
  font-family: inherit; font-size: 0.95rem; background: var(--white);
  outline-color: var(--orange);
}
.clinic-tools input { flex: 1; min-width: 220px; }
.clinic-layout { display: grid; grid-template-columns: 1fr 1.2fr; gap: 24px; align-items: start; }
#clinic-map {
  height: 520px; border-radius: var(--radius); border: 1px solid var(--line);
  position: sticky; top: 90px; z-index: 1;
}
.clinic-list { display: grid; gap: 14px; max-height: 520px; overflow-y: auto; padding-right: 6px; }
.clinic-item {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px 22px; cursor: pointer; transition: border-color .15s, box-shadow .15s;
}
.clinic-item:hover, .clinic-item.active { border-color: var(--orange); box-shadow: var(--shadow); }
.clinic-item h4 { font-weight: 800; margin-bottom: 4px; }
.clinic-item .meta { font-size: 0.88rem; color: var(--ink-soft); }
.clinic-item .badges { margin-top: 10px; display: flex; gap: 6px; flex-wrap: wrap; }
.clinic-item .badges span {
  font-size: 0.75rem; font-weight: 700; padding: 4px 10px; border-radius: 99px;
  background: var(--orange-soft); color: var(--orange-deep);
}
.clinic-empty { text-align: center; color: var(--ink-soft); padding: 40px 0; }

/* ---------- Consult form ---------- */
.form-wrap {
  max-width: 640px; margin: 0 auto; background: var(--white);
  border: 1px solid var(--line); border-radius: 22px;
  padding: 44px 40px; box-shadow: var(--shadow);
}
.form-row { margin-bottom: 22px; }
.form-row label { display: block; font-weight: 700; margin-bottom: 8px; font-size: 0.95rem; }
.form-row label .req { color: var(--orange); }
.form-row input[type="text"], .form-row input[type="tel"], .form-row input[type="email"],
.form-row select, .form-row textarea {
  width: 100%; padding: 14px 16px; border-radius: 12px;
  border: 2px solid var(--line); font-family: inherit; font-size: 1rem;
  background: var(--cream); outline: none; transition: border-color .15s;
}
.form-row input:focus, .form-row select:focus, .form-row textarea:focus { border-color: var(--orange); }
.form-row textarea { min-height: 120px; resize: vertical; }
.form-check { display: flex; gap: 10px; align-items: flex-start; font-size: 0.88rem; color: var(--ink-soft); }
.form-check input { margin-top: 4px; accent-color: var(--orange); }
.form-error { color: #C0392B; font-size: 0.83rem; margin-top: 6px; display: none; }
.form-row.invalid input, .form-row.invalid select { border-color: #C0392B; }
.form-row.invalid .form-error { display: block; }
.form-success { text-align: center; padding: 30px 0; }
.form-success .icon { font-size: 3rem; margin-bottom: 14px; }

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(120deg, var(--orange) 0%, var(--orange-deep) 100%);
  border-radius: 24px; color: #fff; text-align: center;
  padding: 64px 32px; position: relative; overflow: hidden;
}
.cta-band::before {
  content: ""; position: absolute; width: 260px; height: 260px; border-radius: 50%;
  background: rgba(255,255,255,0.1); top: -100px; right: -60px;
}
.cta-band h2 { font-size: clamp(1.4rem, 3vw, 2rem); font-weight: 800; margin-bottom: 12px; }
.cta-band p { opacity: 0.92; margin-bottom: 30px; }
.cta-band .btn-primary { background: #fff; color: var(--orange-deep); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink); color: #B9B2AB;
  padding: 56px 0 40px; margin-top: 84px; font-size: 0.85rem;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; margin-bottom: 36px; }
.site-footer h5 { color: #fff; font-size: 0.95rem; margin-bottom: 14px; }
.site-footer a:hover { color: var(--orange); }
.site-footer li { margin-bottom: 8px; }
.footer-legal {
  border-top: 1px solid #37322D; padding-top: 26px;
  font-size: 0.78rem; line-height: 1.8; color: #8A837C;
}
.footer-legal strong { color: #B9B2AB; }

/* ---------- Utilities ---------- */
.text-center { text-align: center; }
.mt-40 { margin-top: 40px; }
.hidden { display: none !important; }

/* ---------- Responsive ---------- */
@media (max-width: 920px) {
  .steps { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .step:not(:last-child)::after { display: none; } /* 2열에서는 화살표 숨김 */
  .card { flex-basis: calc((100% - 24px) / 2); } /* 2열 (gap 24px × 1) */
  .split, .clinic-layout { grid-template-columns: 1fr; }
  #clinic-map { position: static; height: 380px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .gnb {
    display: none; position: absolute; top: 68px; left: 0; right: 0;
    flex-direction: column; background: var(--white);
    padding: 20px; border-bottom: 1px solid var(--line); gap: 18px;
  }
  .gnb.open { display: flex; }
  .nav-toggle { display: block; }
  .header-cta { display: none; }
  .steps { grid-template-columns: 1fr; gap: 30px; }
  /* 1열: 카드 아래로 향하는 화살표 */
  .step:not(:last-child)::after {
    display: block; content: "↓"; top: auto; bottom: -30px; right: 0; left: 0;
    width: 100%; transform: none;
  }
  .card { flex-basis: 100%; } /* 1열 */
  .section { padding: 60px 0; }
  .hero { padding: 68px 20px 76px; }
  .quiz-wrap, .form-wrap { padding: 30px 22px; }
  .footer-grid { grid-template-columns: 1fr; }
}
