/* ============================================================
   금니시세몰 — 메인 페이지 전용 스타일
   ============================================================ */

/* ---- BANNER / HERO ---- */
.hero {
  padding: 28px 0 0;
}

.banner {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--bg-2);
  box-shadow: var(--shadow);
}

.slides {
  position: relative;
  height: clamp(340px, 42vw, 480px);
}

.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity .7s ease;
  display: grid;
  place-items: center;
  padding: 40px;
  /* 비활성 슬라이드(겹쳐 쌓임)가 클릭을 가로채지 않도록 */
  pointer-events: none;
}

.slide.active {
  opacity: 1;
  pointer-events: auto;
}

.slide-1 {
  background: url("img/banner1.jpg") center/cover no-repeat;
}

.slide-1 .slide-inner {
  display: none;
}

.slide-2 {
  background: url("img/banner2.jpg") center/cover no-repeat;
}

.slide-2 {
  display: block;
  padding: 0;
}

.slide-caption {
  position: absolute;
  left: 40px;
  bottom: 40px;
  text-align: left;
}

.slide-caption h2 {
  color: var(--orange);
  font-size: clamp(30px, 4.6vw, 54px);
  line-height: 1.15;
  margin-bottom: 10px;
}

.slide-caption p {
  color: #111;
  font-weight: 800;
  font-size: clamp(15px, 1.9vw, 20px);
}

@media (max-width: 560px) {
  .slide-caption {
    left: 22px;
    bottom: 24px;
  }
}

.slide-3 {
  background: url("img/banner3.jpg") center/cover no-repeat;
}

.slide-4 {
  background: url("img/banner4.jpg") center/cover no-repeat;
}

.slide-3 .slide-inner,
.slide-4 .slide-inner {
  display: none;
}

/* 모바일: 컨테이너 비율을 배너 이미지(1152×482)에 맞춰 이미지가 잘리지 않게 */
@media (max-width: 640px) {
  .slides {
    height: auto;
    aspect-ratio: 1152 / 482;
  }
  .slide {
    padding: 0;
  }
  /* 모바일 전용 배너 이미지 */
  .slide-1 {
    background: url("img/banner1_mb.jpg") center/cover no-repeat;
  }
  .slide-2 {
    background: url("img/banner2_mb.jpg") center/cover no-repeat;
  }
  .slide-3 {
    background: url("img/banner3_mb.jpg") center/cover no-repeat;
  }
  .slide-4 {
    background: url("img/banner4_mb.jpg") center/cover no-repeat;
  }
}

/* 4번째 슬라이드: 이미지 하단 '파트너십 상담하기' 버튼 영역만 클릭 가능 */
.slide-link {
  position: absolute;
  inset: 0;
  z-index: 2;
  cursor: pointer;
}
.slide-2 .slide-hotspot {
  position: absolute;
  left: 11.5%;
  top: 72%;
  width: 16.5%;
  height: 10%;
  z-index: 2;
  cursor: pointer;
}
.slide-4 .slide-hotspot {
  position: absolute;
  left: 10%;
  top: 66%;
  width: 19%;
  height: 11%;
  z-index: 2;
  cursor: pointer;
}

/* 1번째 슬라이드: 계산프로그램 바로가기 버튼 (텍스트 아래 좌측) */
.slide-btn {
  position: absolute;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  line-height: 1;
  padding: clamp(5px, 0.7vw, 8px) clamp(12px, 1.5vw, 18px);
  border-radius: 999px;
  background: var(--orange);
  color: #fff;
  font-size: clamp(11px, 1.3vw, 14px);
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .18);
  transition: background .16s, transform .16s;
}

.slide-btn:hover {
  background: var(--orange-d);
  transform: translateY(-2px);
}

.slide-btn svg {
  width: 15px;
  height: 15px;
  display: block;
  flex: none;
}

/* 한글은 디센더가 없어 라인박스 위쪽에 떠 보이므로 라벨만 살짝 아래로 보정 */
.slide-btn .sb-label {
  display: inline-block;
  transform: translateY(0em);
}

.slide-1 .slide-btn {
  left: 14.7%;
  bottom: clamp(70px, 9%, 52px);
}

/* 모바일: 1번 슬라이드 버튼을 이미지에 새겨진 다른 버튼 크기에 맞춰 축소 */
@media (max-width: 640px) {
  .slide-1 .slide-btn {
    padding: 1vw 2vw;
    gap: 0.7vw;
    line-height: 1;
    font-size: 1.6vw;
    bottom: clamp(20px, 9%, 52px);
  }
  .slide-1 .slide-btn svg {
    width: 1.5vw;
    height: 1.5vw;
  }
  .slide-1 .slide-btn .sb-label {
    transform: translateY(0.2em);
  }
}

.slide-inner {
  max-width: 760px;
  text-align: center;
}

.slide .s-eyebrow {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gold-l);
  margin-bottom: 16px;
}

.slide h2 {
  font-size: clamp(28px, 4.4vw, 52px);
  line-height: 1.18;
  margin-bottom: 16px;
}

.slide h2 em {
  font-style: normal;
  color: var(--orange-l);
}

.slide p {
  color: var(--dim);
  font-size: clamp(15px, 1.7vw, 18px);
  max-width: 540px;
  margin: 0 auto;
}

.slide .ph-note {
  margin-top: 22px;
  display: inline-block;
  font-family: ui-monospace, monospace;
  font-size: 12px;
  color: var(--mute);
  border: 1px dashed var(--line-2);
  border-radius: 999px;
  padding: 6px 14px;
}

.banner-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 4;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .75);
  border: 1px solid var(--line-2);
  color: var(--text);
  display: grid;
  place-items: center;
  font-size: 22px;
  backdrop-filter: blur(6px);
  box-shadow: 0 6px 16px -8px rgba(40, 28, 10, .4);
  transition: background .16s, color .16s;
}

.banner-nav:hover {
  background: var(--orange);
  border-color: transparent;
  color: #fff;
}

.banner-nav.prev {
  left: 18px;
}

.banner-nav.next {
  right: 18px;
}

.dots {
  position: absolute;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 9px;
  z-index: 4;
}

.dots button {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: 0;
  background: rgba(28, 20, 8, .2);
  transition: all .2s;
}

.dots button.on {
  width: 26px;
  border-radius: 5px;
  background: var(--orange);
}

/* 모바일: dots는 슬라이드 거의 끝까지 내리고, 양옆 화살표는 절반 정도 밖으로 */
@media (max-width: 640px) {
  /* 바깥으로 나간 화살표가 잘리지 않도록 클리핑을 .slides로 옮김 */
  .banner {
    overflow: visible;
  }
  .slides {
    border-radius: 20px;
    overflow: hidden;
  }
  .dots {
    bottom: 6px;
  }
  .banner-nav {
    z-index: 6;
  }
  .banner-nav.prev {
    left: -24px;
  }
  .banner-nav.next {
    right: -24px;
  }
}

/* ---- QUICK LINKS ---- */
.quick {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
  margin-top: 22px;
}

.quick a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 26px 14px;
  border-radius: 16px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  transition: transform .18s, border-color .18s, background .18s;
}

.quick a:hover {
  transform: translateY(-4px);
  border-color: var(--orange);
  background: var(--bg-3);
}

.quick .q-ico {
  width: 88px;
  height: 88px;
  border-radius: 20px;
  background: linear-gradient(150deg, #fff4ea, #f6ecdb);
  border: 1px solid var(--line-2);
  display: grid;
  place-items: center;
  color: var(--gold-l);
}

.quick a:hover .q-ico {
  color: var(--orange);
  border-color: rgba(255, 95, 0, .45);
}

.quick .q-ico svg {
  width: 44px;
  height: 44px;
}

.quick .q-label {
  font-size: 21px;
  font-weight: 700;
}

.quick .q-sub {
  font-size: 12px;
  color: var(--mute);
  margin-top: -6px;
}

@media (max-width: 1024px) {
  .quick {
    grid-template-columns: repeat(5, 1fr);
  }
}

@media (max-width: 760px) {
  .quick {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 560px) {
  .quick {
    grid-template-columns: repeat(2, 1fr);
  }

  .quick a {
    padding: 20px 10px;
  }
}

/* ---- PRICE SECTION ---- */
.section {
  padding: 76px 0;
}

.section.tight {
  padding: 58px 0;
}

.sec-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px 36px;
  margin-bottom: 38px;
  flex-wrap: wrap;
}

.sec-head .sec-title {
  white-space: nowrap;
}

.sec-head .left .eyebrow {
  margin-bottom: 14px;
}

.sec-head .updated {
  font-size: 13px;
  color: var(--mute);
}

.sec-head .updated b {
  color: var(--gold-l);
  font-weight: 700;
}

.price-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 26px;
}

@media (max-width: 1024px) {
  .price-grid {
    grid-template-columns: 1fr;
  }
}

.price-card {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.price-card .pc-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 22px;
  background: linear-gradient(100deg, rgba(196, 154, 60, .16), rgba(255, 95, 0, .08));
  border-bottom: 1px solid var(--line-2);
}

.price-card .pc-head h3 {
  font-size: 18px;
  display: flex;
  align-items: center;
  gap: 9px;
  white-space: nowrap;
}

.price-card .pc-head h3 .ic {
  color: var(--gold-l);
  display: grid;
  place-items: center;
}

.price-card .pc-head .unit {
  font-size: 12px;
  color: var(--mute);
}

.price-card.with-img .pc-body {
  display: grid;
  grid-template-columns: 1fr;
}

.price-table {
  width: 100%;
  border-collapse: collapse;
}

.price-table th,
.price-table td {
  padding: 14px 18px;
  text-align: right;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.price-table th:first-child,
.price-table td:first-child {
  text-align: left;
}

.price-table thead th {
  background: #f4f0e8;
  color: var(--mute);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: none;
  border-bottom: 1px solid var(--line);
}

.price-table tbody tr {
  border-bottom: 1px solid var(--line);
  transition: background .15s;
}

.price-table tbody tr:last-child {
  border-bottom: 0;
}

.price-table tbody tr:hover {
  background: rgba(28, 20, 8, .025);
}

.price-table .kind {
  font-weight: 700;
  font-size: 15.5px;
}

.price-table .kind .k-badge {
  display: inline-block;
  font-size: 11px;
  padding: 2px 7px;
  border-radius: 5px;
  margin-right: 8px;
  background: rgba(196, 154, 60, .18);
  color: var(--gold-l);
  font-weight: 700;
  vertical-align: 1px;
}

.price-table .wt {
  color: var(--dim);
}

.price-table .base {
  font-weight: 800;
  font-size: 16px;
}

.price-table .base .won {
  font-size: 12px;
  color: var(--mute);
  font-weight: 600;
  margin-left: 2px;
}

.chg {
  font-weight: 700;
  font-size: 14px;
  white-space: nowrap;
}

.chg.up {
  color: var(--up);
}

.chg.down {
  color: var(--down);
}

.chg.flat {
  color: var(--mute);
}

.chg .arw {
  font-size: 11px;
  margin-right: 3px;
}

.teeth-wrap {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
}

@media (max-width: 620px) {
  .teeth-wrap {
    grid-template-columns: 1fr;
  }
  /* 치금시세 테이블: 가로 스크롤 + 첫 열(구분) 고정 */
  .teeth-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .teeth-scroll .price-table {
    width: max-content;
    min-width: 100%;
  }
  .teeth-scroll .price-table th:first-child,
  .teeth-scroll .price-table td:first-child {
    position: sticky;
    left: 0;
    z-index: 1;
    background: var(--bg-2);
    border-right: 1px solid var(--line);
  }
  .teeth-scroll .price-table thead th:first-child {
    z-index: 2;
    background: #f4f0e8;
  }
}

.teeth-img {
  min-height: 100%;
}

.teeth-img.ph {
  border-radius: 0;
  border: 0;
  border-left: 1px solid var(--line);
  min-height: 220px;
}

.live-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--orange-d);
  background: rgba(255, 95, 0, .10);
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 95, 0, .28);
}

.live-pill .blip {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 0 0 rgba(255, 95, 0, .55);
  animation: blip 1.8s infinite;
}

@keyframes blip {
  0% {
    box-shadow: 0 0 0 0 rgba(255, 95, 0, .5);
  }

  70% {
    box-shadow: 0 0 0 7px rgba(255, 95, 0, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(255, 95, 0, 0);
  }
}

/* ---- PROCESS (4 STEP) ---- */
.process {
  background: linear-gradient(180deg, #faf6ef, #f4eee3);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.process .sec-title {
  text-align: center;
}

.process .lead {
  text-align: center;
  color: var(--dim);
  margin: 16px auto 0;
  max-width: 560px;
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 48px;
}

@media (max-width: 920px) {
  .steps {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 520px) {
  .steps {
    grid-template-columns: 1fr;
  }
}

.step {
  position: relative;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 52px 24px 34px;
  text-align: center;
  transition: transform .2s, border-color .2s;
}

.step:hover {
  transform: translateY(-5px);
  border-color: var(--line-2);
}

.step .num {
  position: absolute;
  top: 18px;
  right: 20px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .1em;
  color: var(--mute);
}

.step .s-ico {
  width: 104px;
  height: 104px;
  margin: 0 auto 24px;
  border-radius: 24px;
  background: linear-gradient(150deg, rgba(255, 95, 0, .14), rgba(196, 154, 60, .12));
  border: 1px solid var(--line-2);
  display: grid;
  place-items: center;
  color: var(--orange);
}

.step .s-ico svg {
  width: 50px;
  height: 50px;
}

.step h4 {
  font-size: clamp(20px, 2.2vw, 26px);
  margin-bottom: 0;
}

.step p {
  color: var(--dim);
  font-size: 14.5px;
  line-height: 1.65;
}

.step .connector {
  position: absolute;
  top: 92px;
  right: -22px;
  color: var(--line-2);
  z-index: 2;
}

@media (max-width: 920px) {
  .step .connector {
    display: none;
  }
}

/* ---- LOCATION / CONSULT ---- */
.lc-grid {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 26px;
}

@media (max-width: 860px) {
  .lc-grid {
    grid-template-columns: 1fr;
  }
}

.lc-card {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 30px;
}

.lc-card h3 {
  font-size: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}

.lc-card h3 .ic {
  color: var(--gold-l);
  display: grid;
  place-items: center;
}

.map.ph {
  height: 220px;
  margin-bottom: 20px;
}

.addr-line {
  display: flex;
  gap: 12px;
  margin-bottom: 14px;
}

.addr-line .ic {
  color: var(--orange-l);
  flex: none;
  margin-top: 2px;
}

.addr-line .t {
  font-size: 16px;
  font-weight: 600;
}

.addr-line .s {
  font-size: 13.5px;
  color: var(--mute);
}

.consult .big-num {
  font-size: 34px;
  font-weight: 900;
  color: var(--gold-l);
  letter-spacing: -0.02em;
  margin-bottom: 4px;
}

.consult .hours {
  color: var(--mute);
  font-size: 13.5px;
  margin-bottom: 22px;
}

.consult .kakao-inline {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  justify-content: center;
  background: #FEE500;
  color: #181600;
  font-weight: 800;
  font-size: 15.5px;
  padding: 15px;
  border: 0;
  border-radius: 12px;
  transition: transform .16s;
}

.consult .kakao-inline:hover {
  transform: translateY(-2px);
}

.consult .kb-ico {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #181600;
  color: #FEE500;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 900;
}

.consult .row2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 14px;
}

.consult .row2 .mini {
  text-align: center;
  padding: 12px;
  border-radius: 11px;
  background: var(--bg-3);
  border: 1px solid var(--line);
}

.consult .row2 .mini .l {
  font-size: 12px;
  color: var(--mute);
}

.consult .row2 .mini .v {
  font-size: 17px;
  font-weight: 800;
  color: var(--text);
}

/* ---- TRUST STRIP ---- */
.trust {
  border-top: 1px solid var(--line);
}

.trust-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
}

@media (max-width: 720px) {
  .trust-row {
    grid-template-columns: repeat(2, 1fr);
  }
}

.trust-row .ti {
  background: var(--bg);
  padding: 34px 24px;
  text-align: center;
}

.trust-row .ti .v {
  font-size: clamp(26px, 3vw, 34px);
  font-weight: 900;
  color: var(--orange);
}

.trust-row .ti .l {
  color: var(--dim);
  font-size: 14px;
  margin-top: 6px;
}