/* ----- Hero -----/* ----- 共用標題 ----- */
.sv-eyebrow-row {
  display: flex;
  align-items: center;
  gap: 30px;
  margin-bottom: 24px;
}

.sv-eyebrow-row__title {
  margin: 0;
  flex-shrink: 0;
  font-family: var(--font-display);
  font-size: clamp(22px, 2.4vw, 28px);
  font-weight: 700;
  letter-spacing: 0.22em;
  color: var(--svc-ink);
}

.sv-eyebrow-row__rule {
  width: 1px;
  align-self: stretch;
  background: rgba(74, 67, 63, .35);
}

.sv-eyebrow-row__body {
  margin: 0;
  flex: 1;
  font-size: 14px;
  line-height: 1.95;
  letter-spacing: 0.06em;
  color: #5c5650;
}

/* ----- Section 1: 安靈服務 (標題列 + 大圖) ----- */
.sv-anling {
  background: #fff;
  padding: clamp(72px, 9vw, 110px) 0;
}

.sv-shell {
  width: min(calc(100% - 40px), 1100px);
  margin: 0 auto;
}

.sv-anling__image {
  display: block;
  width: 100%;
  aspect-ratio: 1100 / 619;
  background: url('../../assets/sv-anling.png') center/cover;
  border-radius: 4px;
  margin-top: 30px;
}

/* ----- Section 2: 安靈查詢 (表單左 + 大圖右) ----- */
.sv-search {
  background: var(--svc-bg);
  padding: clamp(64px, 8vw, 96px) 0;
}

.sv-search__row {
  display: grid;
  grid-template-columns: 330fr 600fr;
  gap: clamp(30px, 4.5vw, 70px);
  align-items: center;
}

.sv-search__col h2 {
  margin: 0 0 30px;
  font-family: var(--font-display);
  font-size: clamp(22px, 2.4vw, 28px);
  font-weight: 700;
  letter-spacing: 0.22em;
  color: var(--svc-ink);
}

.sv-search__form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.sv-search__input {
  width: 100%;
  padding: 16px 18px;
  border: 1px solid var(--svc-rail);
  border-radius: 4px;
  font-size: 14px;
  font-family: var(--font-body);
  background: #fff;
}

.sv-search__input::placeholder {
  color: #b8b2a8;
}

.sv-search__btn {
  width: 100%;
  padding: 14px;
  border: none;
  border-radius: 4px;
  background: linear-gradient(180deg, #a67c42 0%, #8a5a28 100%);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.24em;
  cursor: pointer;
  font-family: inherit;
}

.sv-search__image {
  width: 100%;
  aspect-ratio: 600 / 450;
  background: url('../../assets/sv-search.png') center/cover;
  border-radius: 4px;
}

/* ----- Section 3: 光之所及 (置中標題 + 2 張卡 + body + button) ----- */
.sv-tablet {
  background: #fff;
  padding: clamp(72px, 9vw, 110px) 0;
}

.sv-tablet__head {
  text-align: center;
  margin-bottom: 36px;
}

.sv-tablet__title {
  margin: 0 0 18px;
  font-family: var(--font-display);
  font-size: clamp(24px, 2.6vw, 30px);
  font-weight: 700;
  letter-spacing: 0.22em;
  color: var(--svc-ink);
}

.sv-tablet__subtitle {
  margin: 0;
  font-size: 13px;
  letter-spacing: 0.32em;
  color: #8a827a;
}

.sv-tablet__row {
  display: grid;
  grid-template-columns: 1fr 230px 1fr;
  gap: 24px;
  align-items: center;
  margin: 36px auto;
  max-width: 832px;
}

.sv-tablet__copy {
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: center;
}

.sv-tablet__copy--left {
  text-align: right;
}

.sv-tablet__copy--right {
  text-align: left;
}

.sv-tablet__name {
  margin: 0;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.22em;
  color: var(--svc-ink);
}

.sv-tablet__sub {
  margin: 0;
  font-size: 13px;
  letter-spacing: 0.12em;
  color: #8a827a;
}

.sv-tablet__image {
  width: 230px;
  aspect-ratio: 230 / 251;
  background: url('../../assets/sv-tablet.png') center/cover;
  border-radius: 4px;
  margin: 0 auto;
}

.sv-tablet__body {
  max-width: 880px;
  margin: 0 auto;
  font-size: 14px;
  line-height: 2.05;
  letter-spacing: 0.06em;
  color: #5c5650;
  text-align: center;
}

.sv-tablet__cta-wrap {
  text-align: center;
  margin-top: 28px;
}

/* ----- 共用 CTA 小按鈕 ----- */
.sv-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 22px;
  border-radius: 999px;
  background: linear-gradient(180deg, #a67c42 0%, #8a5a28 100%);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.18em;
  transition: filter .2s ease;
}

.sv-cta:hover {
  filter: brightness(1.06);
}

/* ----- Section 4: 祭祀代辦 (大圖右側 + 左方文字塊) ----- */
.sv-offering {
  position: relative;
  width: 100%;
  background: #fff;
  overflow: hidden;
}

.sv-offering__inner {
  position: relative;
  width: 100%;
  aspect-ratio: 1440 / 1035;
  max-width: 1440px;
  margin: 0 auto;
}

.sv-offering__image {
  position: absolute;
  left: 19.4%;   /* 279/1440 */
  top: 0;
  width: 80.6%;  /* 1161/1440 */
  height: auto;
  aspect-ratio: 1161 / 1035;
  background: url('../../assets/sv-offering.png') center/contain no-repeat;
  z-index: 1;
}

.sv-offering__copy {
  position: absolute;
  left: 10%;     /* 144/1440 */
  top: 34.4%;    /* (2989-2633)/1035 */
  max-width: 432px;
  z-index: 2;
}

.sv-offering__title {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: clamp(22px, 2.4vw, 28px);
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--svc-ink);
  line-height: 1.45;
}

.sv-offering__sub {
  margin: 0 0 28px;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: var(--accent);
}

.sv-offering__body {
  margin: 0 0 32px;
  font-size: 14px;
  line-height: 2;
  letter-spacing: 0.06em;
  color: #5c5650;
}

/* ----- Section 5: 致贈慰禮 (大圖左側 + 右方文字塊) ----- */
.sv-condolence {
  position: relative;
  width: 100%;
  background: #fff;
  overflow: hidden;
}

.sv-condolence__inner {
  position: relative;
  width: 100%;
  aspect-ratio: 1440 / 1004;
  max-width: 1440px;
  margin: 0 auto;
}

.sv-condolence__image {
  position: absolute;
  left: -4.1%;   /* -59/1440 */
  top: 0;
  width: 72.85%; /* 1049/1440 */
  height: auto;
  aspect-ratio: 1049 / 1004;
  background: url('../../assets/sv-condolence.png') center/contain no-repeat;
  z-index: 1;
}

.sv-condolence__copy {
  position: absolute;
  right: 9.4%;   /* (1440-1304)/1440 */
  top: 35.3%;    /* (3775-3421)/1004 */
  max-width: 563px;
  z-index: 2;
}

/* 共用 offering/condolence 標題系列(致贈慰禮 reuse) */
.sv-condolence__title {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: clamp(22px, 2.4vw, 28px);
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--svc-ink);
  line-height: 1.45;
}

.sv-condolence__sub {
  margin: 0 0 28px;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: var(--accent);
}

.sv-condolence__body {
  margin: 0 0 32px;
  font-size: 14px;
  line-height: 2;
  letter-spacing: 0.06em;
  color: #5c5650;
}

/* ----- Section 6: AI 追思體驗 (全寬大圖 + 右側壓字) ----- */
.sv-ai {
  position: relative;
  width: 100%;
  aspect-ratio: 1440 / 1247;
  background:
    linear-gradient(90deg, transparent 0%, transparent 45%, rgba(0, 0, 0, .55) 75%, rgba(0, 0, 0, .7) 100%),
    url('../../assets/sv-ai.png') center/cover;
  color: #fff;
}

.sv-ai__copy {
  position: absolute;
  left: 49.2%;   /* 708/1440 */
  top: 64.6%;    /* 805/1247 */
  width: 36.7%;  /* 529/1440 */
  max-width: 529px;
}

.sv-ai__eyebrow {
  margin: 0 0 18px;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.36em;
  color: #f3e5c8;
}

.sv-ai__title {
  margin: 0 0 26px;
  font-family: var(--font-display);
  font-size: clamp(22px, 2.4vw, 30px);
  font-weight: 700;
  letter-spacing: 0.22em;
  line-height: 1.45;
  text-shadow: 0 3px 12px rgba(0, 0, 0, .5);
}

.sv-ai__body {
  margin: 0;
  font-size: 14px;
  line-height: 1.95;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, .92);
  text-shadow: 0 2px 8px rgba(0, 0, 0, .5);
}

/* ----- 響應式:平板 / 手機 ----- */
@media (max-width: 1023px) {
  .sv-search__row {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .sv-tablet__row {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .sv-tablet__copy--left,
  .sv-tablet__copy--right {
    text-align: center;
  }

  /* 4/5/6 區塊改為流動排版,不再用絕對定位 */
  .sv-offering,
  .sv-condolence {
    padding: clamp(48px, 8vw, 72px) 0;
  }

  .sv-offering__inner,
  .sv-condolence__inner {
    aspect-ratio: auto;
    display: flex;
    flex-direction: column;
    gap: 28px;
    padding: 0 20px;
  }

  .sv-offering__image,
  .sv-condolence__image {
    position: static;
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
  }

  .sv-offering__copy,
  .sv-condolence__copy {
    position: static;
    max-width: none;
    width: 100%;
  }

  .sv-ai {
    aspect-ratio: auto;
    padding: clamp(48px, 8vw, 72px) 0;
    background:
      linear-gradient(180deg, rgba(0,0,0,.55), rgba(0,0,0,.7)),
      url('../../assets/sv-ai.png') center/cover;
  }

  .sv-ai__copy {
    position: static;
    max-width: none;
    width: min(calc(100% - 40px), 720px);
    margin: 0 auto;
  }
}

@media (max-width: 767px) {  .sv-eyebrow-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }

  .sv-eyebrow-row__rule {
    display: none;
  }

  /* 手機版 CTA:全寬矩形,而非桌機的窄 pill */
  .sv-cta {
    display: flex;
    width: 100%;
    justify-content: center;
    padding: 14px;
    border-radius: 4px;
    font-size: 14px;
    letter-spacing: 0.24em;
  }

  .sv-tablet__cta-wrap {
    text-align: left;
  }
}

/* ----- Hero (per-page) ----- */
.sv-hero {
  width: 100%;
  aspect-ratio: 1440 / 450;
  background: url('../../assets/sv-hero.png') center/cover no-repeat;
}

@media (max-width: 767px) {
  .sv-hero {
    aspect-ratio: 4 / 3;
  }
}
