/* 긴급장례접수 (info/urgent.html) — tokens from upgrade.css */

.sp-hero-lead {
  word-break: keep-all;
}
.ug-main {
  padding: clamp(3.5rem, 7vw, 5.5rem) 0 0;
  color: #3e4a5a;
  letter-spacing: -0.02em;
  word-break: keep-all;
}
.ug-kicker {
  margin: 0 0 0.75rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  color: var(--hl-gold);
}

/* ================= 임종의 전화 ================= */
.ug-call {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.ug-live {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0 0 0.8rem;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--hl-gold);
}
.ug-live-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #3ecf6e;
  box-shadow: 0 0 0 0 rgba(62, 207, 110, 0.6);
  animation: ug-pulse 2s infinite;
}
@keyframes ug-pulse {
  70% { box-shadow: 0 0 0 10px rgba(62, 207, 110, 0); }
  100% { box-shadow: 0 0 0 0 rgba(62, 207, 110, 0); }
}
.ug-call-info h2 {
  margin: 0 0 1rem;
  font-size: clamp(2rem, 3.6vw, 2.8rem);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.05em;
  color: var(--hl-ink);
}
.ug-call-lead {
  margin: 0;
  font-size: 1.08rem;
  line-height: 1.8;
}
.ug-call-lead b {
  font-weight: 700;
  color: var(--hl-navy);
}
.ug-call-badges {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.6rem;
  margin: 1.8rem 0 0;
  padding: 0;
  list-style: none;
}
.ug-call-badges li {
  padding: 0.95rem 1rem;
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--hl-muted);
  background: #fff;
  border: 1px solid #e5e8ec;
  border-left: 3px solid var(--hl-gold);
}
.ug-call-badges b {
  display: block;
  margin-bottom: 0.15rem;
  font-size: 1rem;
  color: var(--hl-ink);
}

.ug-call-box {
  position: relative;
  padding: clamp(2rem, 4vw, 2.8rem);
  text-align: center;
  color: #fff;
  background:
    radial-gradient(circle at 90% 0%, rgba(184, 149, 90, 0.32), transparent 55%),
    linear-gradient(145deg, var(--hl-deep) 0%, var(--hl-navy) 100%);
  border-top: 4px solid var(--hl-gold);
  box-shadow: 0 24px 50px rgba(11, 28, 51, 0.2);
}
.ug-call-label {
  display: inline-block;
  margin: 0 0 0.9rem;
  padding: 0.35rem 0.9rem;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--hl-deep);
  background: var(--hl-gold-soft);
}
.ug-call-number {
  display: block;
  font-family: "Roboto", sans-serif;
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.01em;
  white-space: nowrap;
  color: #fff !important;
  text-shadow: 0 0 28px rgba(212, 188, 138, 0.35);
}
.ug-call-btns {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 0.7rem;
  margin-top: 1.6rem;
}
.ug-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem 0.8rem;
  font-size: 1rem;
  font-weight: 700;
  transition: background 0.25s ease, transform 0.25s ease;
}
.ug-btn svg {
  width: 1.15rem;
  height: 1.15rem;
  fill: currentColor;
}
.ug-btn.is-gold {
  color: var(--hl-deep) !important;
  background: var(--hl-gold-soft);
}
.ug-btn.is-gold:hover {
  background: #e2cda0;
  transform: translateY(-2px);
}
.ug-btn.is-line {
  color: #fff !important;
  border: 1px solid rgba(255, 255, 255, 0.35);
}
.ug-btn.is-line:hover {
  background: rgba(255, 255, 255, 0.08);
}
.ug-call-sub {
  margin: 1.3rem 0 0;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.7);
}
.ug-call-sub a {
  font-weight: 700;
  color: var(--hl-gold-soft) !important;
  border-bottom: 1px solid currentColor;
}

/* ================= 공통 섹션 ================= */
.ug-section {
  padding: clamp(4rem, 8vw, 6rem) 0 0;
}
.ug-section.is-tint {
  margin-top: clamp(4rem, 8vw, 6rem);
  padding: clamp(4rem, 8vw, 6rem) 0;
  background: #f3f1ec;
}
.ug-section.is-tint + .ug-section {
  padding-top: clamp(3.5rem, 7vw, 5rem);
}
.ug-main > .ug-section:last-child {
  padding-bottom: clamp(4rem, 8vw, 6rem);
}
.ug-head {
  margin-bottom: clamp(2rem, 4vw, 2.8rem);
  text-align: center;
}
.ug-head h2 {
  margin: 0;
  font-size: clamp(1.6rem, 2.8vw, 2.2rem);
  font-weight: 700;
  letter-spacing: -0.045em;
  color: var(--hl-ink);
}
.ug-head p:not(.ug-kicker) {
  margin: 0.8rem 0 0;
  font-size: 0.98rem;
  color: var(--hl-muted);
}

/* ================= 원스톱 흐름 ================= */
.ug-flow {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
  background: #fff;
  border: 1px solid var(--hl-line);
}
.ug-flow li {
  position: relative;
  padding: 1.8rem 1.3rem 1.7rem;
}
.ug-flow li + li {
  border-left: 1px solid var(--hl-line);
}
.ug-flow li + li::before {
  content: "";
  position: absolute;
  top: 2.15rem;
  left: -6px;
  width: 10px;
  height: 10px;
  background: #fff;
  border-top: 1px solid var(--hl-line);
  border-right: 1px solid var(--hl-line);
  transform: rotate(45deg);
}
.ug-flow-no {
  display: block;
  margin-bottom: 0.8rem;
  font-family: "Roboto", sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--hl-gold);
}
.ug-flow h3 {
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.04em;
  color: var(--hl-ink);
}
.ug-flow p {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.7;
  color: var(--hl-muted);
}
.ug-flow li:first-child,
.ug-flow li:last-child {
  background: var(--hl-navy);
}
.ug-flow li:first-child h3,
.ug-flow li:last-child h3 {
  color: #fff;
}
.ug-flow li:first-child p,
.ug-flow li:last-child p {
  color: rgba(255, 255, 255, 0.75);
}
.ug-flow li:first-child .ug-flow-no,
.ug-flow li:last-child .ug-flow-no {
  color: var(--hl-gold-soft);
}
.ug-flow li:nth-child(2)::before {
  background: var(--hl-navy);
  border-color: var(--hl-navy);
}

/* ================= 임종 직후 ================= */
.ug-ready {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.ug-ready-text h2 {
  margin: 0 0 1rem;
  font-size: clamp(1.6rem, 2.8vw, 2.2rem);
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -0.045em;
  color: var(--hl-ink);
}
.ug-ready-text > p:not(.ug-kicker) {
  margin: 0;
  font-size: 0.98rem;
  color: var(--hl-muted);
}
.ug-ready-list {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: ready;
}
.ug-ready-list li {
  position: relative;
  padding: 1.2rem 1.4rem 1.2rem 4.2rem;
  background: #fff;
  border: 1px solid #e5e8ec;
  counter-increment: ready;
}
.ug-ready-list li + li {
  margin-top: 0.7rem;
}
.ug-ready-list li::before {
  content: counter(ready);
  position: absolute;
  top: 50%;
  left: 1.3rem;
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  margin-top: -1rem;
  font-family: "Roboto", sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
  background: var(--hl-navy);
}
.ug-ready-list strong {
  display: block;
  font-size: 1.02rem;
  color: var(--hl-ink);
}
.ug-ready-list span {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.88rem;
  color: var(--hl-muted);
}

/* ================= 모바일 하단 전화바 ================= */
.ug-mbar {
  display: none;
}

@media (max-width: 1024px) {
  .ug-call,
  .ug-ready {
    grid-template-columns: 1fr;
  }
  .ug-call {
    gap: 0;
  }
  .ug-call-info {
    display: contents;
  }
  .ug-call-box {
    order: 1;
    margin-top: 1.6rem;
  }
  .ug-call-badges {
    order: 2;
    margin-top: 1.4rem;
  }
  .ug-flow {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .ug-flow li + li::before {
    display: none;
  }
  .ug-flow li:nth-child(n + 3) {
    border-top: 1px solid var(--hl-line);
  }
  .ug-flow li:nth-child(odd) {
    border-left: 0;
  }
  .ug-flow li:last-child {
    grid-column: 1 / -1;
  }
  .ug-mbar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 30;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.7rem 1rem calc(0.7rem + env(safe-area-inset-bottom));
    background: var(--hl-deep);
    border-top: 2px solid var(--hl-gold);
    box-shadow: 0 -8px 24px rgba(11, 28, 51, 0.25);
  }
  .ug-mbar p {
    margin: 0;
    display: flex;
    flex-direction: column;
  }
  .ug-mbar small {
    font-size: 0.72rem;
    color: var(--hl-gold-soft);
  }
  .ug-mbar b {
    font-family: "Roboto", sans-serif;
    font-size: 1.3rem;
    font-weight: 800;
    color: #fff;
  }
  .ug-mbar a {
    flex: 0 0 auto;
    padding: 0.85rem 1.4rem;
    background: var(--hl-gold-soft);
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--hl-deep) !important;
  }
  body:has(.ug-mbar) footer {
    padding-bottom: 5.5rem;
  }
  body:has(.ug-mbar) #TopBtn {
    bottom: 88px;
  }
}
@media (max-width: 560px) {
  .ug-call-badges {
    grid-template-columns: 1fr;
  }
  .ug-call-btns {
    grid-template-columns: 1fr;
  }
  .ug-flow {
    grid-template-columns: 1fr;
  }
  .ug-flow li {
    border-left: 0 !important;
  }
  .ug-flow li + li {
    border-top: 1px solid var(--hl-line);
  }
  .ug-ready-list li {
    padding-left: 3.8rem;
  }
  .ug-ready-list li::before {
    left: 1rem;
  }
}
