/* home-core-services.css - 首頁核心服務與收費模組樣式 */

.rd-core-services {
  padding: 85px 0 95px;
  background: #fff;
}
.rd-section-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 46px;
}
.rd-section-eyebrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 18px;
  border-radius: 999px;
  background: #e8f5fa;
  color: #168cbd;
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: 0.05em;
  margin-bottom: 14px;
}
.rd-section-title {
  margin: 0 0 14px;
  color: #0c5f80;
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 800;
  letter-spacing: -0.01em;
}
.rd-section-subtitle {
  margin: 0;
  color: #556c75;
  font-size: 16px;
  line-height: 1.7;
}

/* 核心雙卡片網格 */
.rd-services-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
}
@media (max-width: 991.98px) {
  .rd-services-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

.rd-service-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 34px 34px 30px;
  border-radius: 24px;
  border: 1px solid #d4ebf3;
  background: #fff;
  box-shadow: 0 12px 32px rgba(12, 95, 128, 0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.rd-service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(12, 95, 128, 0.12);
}
.rd-service-card--cremation {
  background: linear-gradient(180deg, #f4fafc 0%, #ffffff 100%);
  border-color: #c9e4ed;
}
.rd-service-card--aquamation {
  background: linear-gradient(180deg, #f0fbf9 0%, #ffffff 100%);
  border-color: #c2ece7;
}

/* 卡片頂部標題欄（專業標題居左，100%獨立標籤居右無背景無邊框） */
.rd-service-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 8px;
  padding-bottom: 0;
  border-bottom: none;
}

.rd-service-card__title {
  margin: 0;
  font-size: 22px;
  font-weight: 800;
  color: #0c5f80;
  line-height: 1.35;
}

/* 100% 獨立一爐 / 一機 標籤：去除邊框線與背景 */
.rd-assurance-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 700;
  color: #137f7b;
  background: transparent;
  border: none;
  padding: 0;
  box-shadow: none;
  white-space: nowrap;
}
.rd-assurance-tag i {
  color: #168cbd;
  font-size: 14px;
}
.rd-service-card--aquamation .rd-assurance-tag i {
  color: #137f7b;
}

.rd-service-card__one-liner {
  margin: 0 0 22px;
  color: #556c75;
  font-size: 14.5px;
  line-height: 1.65;
}

/* 兩個服務選項（獨立 vs 集體） */
.rd-service-options {
  display: grid;
  gap: 14px;
  margin-bottom: 24px;
}
.rd-option-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 20px;
  background: #ffffff;
  border: 1.5px solid #dcf0f6;
  border-radius: 16px;
  text-decoration: none;
  color: inherit;
  transition: all 0.22s ease;
  box-shadow: 0 4px 12px rgba(12, 95, 128, 0.03);
}
.rd-service-card--aquamation .rd-option-link {
  border-color: #d6f2ed;
}
.rd-option-link:hover {
  border-color: #168cbd;
  background: #fafdfe;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(22, 140, 189, 0.12);
}
.rd-service-card--aquamation .rd-option-link:hover {
  border-color: #25bcb5;
  background: #f7fdfc;
  box-shadow: 0 8px 20px rgba(37, 188, 181, 0.14);
}

.rd-option-left {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.rd-option-head {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.rd-option-name {
  font-size: 17px;
  font-weight: 800;
  color: #0c5f80;
}
.rd-status-badge {
  font-size: 12px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
}
.rd-status-badge--urn {
  background: #e3f4fc;
  color: #0c5f80;
  border: 1px solid rgba(22, 140, 189, 0.3);
}
.rd-status-badge--burial {
  background: #f1f3f4;
  color: #63747a;
  border: 1px solid #d5dbde;
}
.rd-option-hint {
  color: #6a7f88;
  font-size: 13.5px;
  line-height: 1.45;
}

.rd-option-right {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}
.rd-price-block {
  text-align: right;
  line-height: 1.1;
}
.rd-price-currency {
  font-size: 13px;
  color: #168cbd;
  font-weight: 700;
  margin-right: 2px;
}
.rd-service-card--aquamation .rd-price-currency {
  color: #137f7b;
}
.rd-price-val {
  font-size: 26px;
  font-weight: 900;
  color: #168cbd;
  letter-spacing: -0.02em;
}
.rd-service-card--aquamation .rd-price-val {
  color: #137f7b;
}
.rd-price-up {
  font-size: 13px;
  color: #7b8e96;
  font-weight: 600;
  margin-left: 2px;
}
.rd-option-arrow {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #eaf5f9;
  color: #168cbd;
  font-size: 13px;
  transition: all 0.2s ease;
}
.rd-service-card--aquamation .rd-option-arrow {
  background: #e3f6f3;
  color: #137f7b;
}
.rd-option-link:hover .rd-option-arrow {
  background: #168cbd;
  color: #fff;
  transform: translateX(3px);
}
.rd-service-card--aquamation .rd-option-link:hover .rd-option-arrow {
  background: #137f7b;
  color: #fff;
}

/* 底部全流程按鈕 */
.rd-card-footer {
  margin-top: auto;
  padding-top: 10px;
}
.rd-btn-card-action {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 13px 20px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.25s ease;
}
.rd-btn-card-action--cremation {
  background: #0c5f80;
  color: #fff;
  border: 1px solid #0c5f80;
}
.rd-btn-card-action--cremation:hover {
  background: #168cbd;
  border-color: #168cbd;
  color: #fff;
}
.rd-btn-card-action--aquamation {
  background: #137f7b;
  color: #fff;
  border: 1px solid #137f7b;
}
.rd-btn-card-action--aquamation:hover {
  background: #25bcb5;
  border-color: #25bcb5;
  color: #fff;
}

/* 底部說明條 */
.rd-services-footnote {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 32px auto 0;
  color: #63747a;
  font-size: 14px;
  line-height: 1.6;
  text-align: center;
}
.rd-services-footnote i {
  color: #168cbd;
  font-size: 15px;
  flex-shrink: 0;
}

@media (max-width: 767.98px) {
  .rd-service-card {
    padding: 15px;
  }

  .rd-option-link {
    padding: 15px;
    gap: 10px;
  }

  /* Keep the option title, badge, price and arrow aligned on narrow screens. */
  .rd-option-hint {
    display: none;
  }

  .rd-option-left {
    gap: 6px;
    min-width: 0;
  }

  .rd-option-right {
    gap: 8px;
  }
}
