/* /css/style.css */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+TC:wght@300;400;500;700&display=swap');

:root {
    --primary-color: #003366;   /* 深藍：官方、專業 */
    --secondary-color: #C5A059; /* 金色：尊榮、亮點 */
    --text-dark: #333333;
    --text-light: #666666;
    --bg-light: #f8f9fa;
}

body {
    font-family: 'Noto Sans TC', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
}

/* 共用按鈕樣式 */
.btn-primary-custom {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
    padding: 10px 25px;
    border-radius: 5px;
    transition: all 0.3s;
}
.btn-primary-custom:hover {
    background-color: #002244;
    color: #fff;
}

.btn-gold {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    color: #fff;
    font-weight: bold;
    padding: 10px 30px;
    border-radius: 5px;
    transition: all 0.3s;
}
.btn-gold:hover {
    background-color: #b08d4a;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(197, 160, 89, 0.4);
}

/* 標題樣式 */
h2.section-title {
    color: var(--primary-color);
    font-weight: 700;
    position: relative;
    margin-bottom: 3rem;
    text-align: center;
}
h2.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background-color: var(--secondary-color);
    margin: 15px auto 0;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(rgba(0, 51, 102, 0.85), rgba(0, 51, 102, 0.85)), url('../images/hero-bg.jpg'); /* 請自備背景圖 */
    background-size: cover;
    background-position: center;
    color: white;
    padding: 100px 0;
    text-align: center;
}
.hero-subtitle {
    color: var(--secondary-color);
    font-weight: 500;
    letter-spacing: 2px;
    margin-bottom: 10px;
    display: block;
}
.hero-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
}

/* Card Styles */
.feature-card, .agency-card, .service-card {
    background: #fff;
    border: none;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
    height: 100%;
}
.feature-card:hover, .agency-card:hover, .service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}
.icon-box {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 15px;
}

/* Process Section */
.process-step {
    position: relative;
    z-index: 1;
}
.step-number {
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
    margin: 0 auto 15px;
    border: 3px solid #fff;
    box-shadow: 0 0 0 3px var(--secondary-color);
}

/* Footer */
footer {
    background-color: var(--primary-color);
    color: rgba(255,255,255,0.8);
    padding: 60px 0 20px;
}
footer h5 {
    color: #fff;
    font-weight: 700;
    margin-bottom: 20px;
    border-left: 3px solid var(--secondary-color);
    padding-left: 10px;
}
footer a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    transition: color 0.2s;
}
footer a:hover {
    color: var(--secondary-color);
}
/* =========================================
   Core Web Vitals - CLS 預防設定
========================================= */

/* 預留 Header 空間，避免畫面往下擠 */
#header-placeholder {
  /* * 這裡的高度請依照你實際 Header 的高度設定。
   * 以我們使用的 Bootstrap Navbar 加上 padding，大約是 72px 左右。
   * 建議在瀏覽器開發者工具 (F12) 實際量測一次你的 Navbar 高度來調整。
   */
  min-height: 72px; 
  background-color: var(--secondary-color); /* #1D3557 預先填滿深藍色背景 */
  width: 100%;
  display: block;
  position: sticky;
  top: 0;
  z-index: 1030; /* 確保層級夠高不被蓋住 */
}

/* 順便為 Footer 預留空間 (選擇性) */
#footer-placeholder {
  /* Footer 包含文字較多，行動版與電腦版高度不同，可以抓一個大概的安全值 */
  min-height: 300px; 
  background-color: var(--secondary-color);
  width: 100%;
  display: block;
}

/* 針對行動版調整預留高度 (如果行動版 Header 較窄) */
@media (max-width: 991px) {
  #header-placeholder {
    min-height: 60px; /* 行動版漢堡選單列通常比較扁 */
  }
}

/* 確保選單容器有相對定位 */
.custom-navbar .navbar-nav {
    position: relative;
    z-index: 1;
}

.custom-navbar .nav-item {
    position: relative;
    z-index: 2; /* 確保文字在指示器色塊之上 */
    margin: 0 4px; /* 增加項目之間的微小間距，讓色塊滑動更清晰 */
}

/* 調整導覽列文字基本樣式 */
.custom-navbar .nav-link {
    color: #444;
    font-weight: 500;
    padding: 8px 16px !important;
    transition: color 0.3s ease;
    border-radius: 30px;
}

/* Hover 或 Active 時的文字變色 */
.custom-navbar .nav-link:hover,
.custom-navbar .nav-link.active {
    color: #003366; 
    font-weight: 700;
}

/* --- 動態滑動膠囊指示器 --- */
.nav-indicator {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    height: 40px; /* 色塊高度 */
    background-color: #e6f0fa; /* 呼應主視覺的淡藍底色 */
    border-radius: 30px;
    z-index: 0;
    /* 加入果凍般的彈性滑動動畫 */
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55); 
    opacity: 0;
    pointer-events: none; /* 避免色塊擋住點擊事件 */
}

/* 響應式：手機版漢堡選單展開時，隱藏滑動特效，恢復 Bootstrap 預設垂直排版 */
@media (max-width: 991.98px) {
    .nav-indicator {
        display: none !important;
    }
    .custom-navbar .nav-item {
        margin: 5px 0;
        width: 100%;
    }
}