/* ==========================================================================
   💎 SAiGEN Services Page - 專業網頁 UI 設計師精修版 CSS 系統
   ========================================================================== */
:root {
  --bs-body-font-family: 'Inter', sans-serif;
  --bs-body-bg: #f7f9fb;
  --bs-body-color: #191c1e;
  --color-gold-custom: #f7d5a4;
  --color-navy-dark: #0f1c36;
}

/* 關鍵修正：強制全域根元素與 HTML/Body 封鎖水平溢出，徹底根除手機版右側白邊空間 */
html, body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden !important;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

*, *:before, *:after {
  box-sizing: inherit;
}

body {
  background-color: var(--bs-body-bg);
  color: var(--bs-body-color);
  font-family: var(--bs-body-font-family);
  -webkit-font-smoothing: antialiased;
}

.font-serif {
  font-family: 'Playfair Display', Georgia, serif;
}

/* 靜奢藍金色彩常數 */
.bg-secondary {
  background-color: #725b38 !important;
}
.text-secondary {
  color: #725b38 !important;
}
.bg-gradient-cta {
  background: linear-gradient(135deg, #ffffff 0%, rgba(254, 222, 178, 0.28) 100%);
}

.text-xxs {
  font-size: 0.7rem;
}

/* ==========================================================================
   ✨ 森林底圖專屬濾鏡與底部 CTA 系統（含完美 Zoom In / Zoom Out 互動）
   ========================================================================== */
/* 1. 區塊基準設定 */
.advisory-zoom-section {
  position: relative;
  overflow: hidden;
  width: 100%;
}

/* 背景容器：強制隱藏溢出，確保放大縮小時絕對不超出邊界 */
.advisory-bg-container {
  position: absolute;
  inset: 0;
  overflow: hidden !important;
  width: 100%;
  height: 100%;
}

/* 2. 背景圖片基礎設定與絲滑轉場動畫 */
.static-navy-filter-bg {
  transform: scale(1);
  filter: brightness(0.88) contrast(108%) saturate(75%) hue-rotate(-8deg);
  -webkit-filter: brightness(0.88) contrast(108%) saturate(75%) hue-rotate(-8deg);
  
  /* 關鍵：設定 1.4 秒長秒數與高雅緩動曲線，實現 Zoom In 與 Zoom Out 的呼吸感 */
  transition: transform 1.4s cubic-bezier(0.16, 1, 0.3, 1), filter 1.4s ease;
  will-change: transform;
}

/* 3. 滑鼠移入時的狀態（Zoom In：微幅放大，營造鏡頭靠近的沉浸感） */
.advisory-zoom-section:hover .static-navy-filter-bg {
  transform: scale(1.07);
  filter: brightness(0.95) contrast(106%) saturate(85%) hue-rotate(-8deg);
}

/* 4. 按鈕與箭頭互動細節（維持高奢一致性） */
.advisory-cta-btn {
  background-color: #f7d5a4 !important;
  border: 1px solid rgba(255, 255, 255, 0.8) !important;
  color: #0f1c36 !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.advisory-cta-btn:hover {
  background-color: #ffffff !important;
  border-color: #f7d5a4 !important;
  color: #0f1c36 !important;
  transform: translateY(-3px);
  box-shadow: 0 0.75rem 2.5rem rgba(247, 213, 164, 0.5), 0 4px 15px rgba(0, 0, 0, 0.5);
}

.advisory-cta-btn .advisory-arrow {
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.advisory-cta-btn:hover .advisory-arrow {
  transform: translateX(5px);
}

/* ==========================================================================
   ✨ 服務項目：大器留白、呼吸感與視覺層級優化系統
   ========================================================================== */

/* 強制每一個服務項目 Row 擁有極大器的上下留白與呼吸間距，徹底消除擁擠感 */
.service-row-item {
  padding-top: 5.5rem !important;
  padding-bottom: 5.5rem !important;
}

/* 標題與內文的完美行高與字距調整，消除閱讀疲勞感 */
.service-title {
  letter-spacing: -0.01em;
  line-height: 1.35;
}

.service-desc {
  line-height: 2.1 !important;
  letter-spacing: 0.01em;
  color: #383f45 !important;
}

/* 靜態玻璃霧面藥丸標籤 (Static Glassmorphism Pill Badge) - 無互動感、純粹高級感 */
.static-glass-badge {
  background: rgba(255, 255, 255, 0.65) !important;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(114, 91, 56, 0.15);
  color: #221610 !important;
  font-weight: 500;
  font-size: 0.8rem;
  box-shadow: 0 2px 6px rgba(15, 28, 54, 0.02);
  transition: none !important;
  transform: none !important;
}

/* 圖片質感框線與陰影（高度設定為大器的 420px，確保視覺平衡） */
.service-img-frame {
  height: 420px !important;
  border: 1px solid rgba(114, 91, 56, 0.2);
  box-shadow: 0 1rem 3rem rgba(15, 28, 54, 0.08);
  background-color: #ffffff;
}

/* ==========================================================================
   📱 響應式優化 (Responsive Design) - 確保行動裝置上的舒適閱讀體驗
   ========================================================================== */
@media (max-width: 991.98px) {
  /* 針對每一列服務項目強烈設定為彈性盒子，並透過 order 讓圖片永遠在上方 */
  .service-row-item .row {
    display: flex;
    flex-direction: column;
  }

  /* 無論在桌機上原本是左文右圖還是左圖右文，手機版一律強制圖片先出現 */
  .service-row-item .col-lg-6:has(.service-img-frame) {
    order: 1 !important;
    margin-bottom: 1.5rem !important; /* 圖片與下方文案的舒適間距 */
  }

  .service-row-item .col-lg-6:not(:has(.service-img-frame)) {
    order: 2 !important;
  }

  /* 微調手機版上的 Row 上下留白，確保滑動時節奏輕快 */
  .service-row-item {
    padding-top: 2.5rem !important;
    padding-bottom: 2.5rem !important;
    margin-top: 1rem !important;
    margin-bottom: 1rem !important;
  }

  /* 手機版圖片高度適度調整，確保瀏覽時精煉大方 */
  .service-img-frame {
    height: 280px !important;
  }
}