/* ==================== 共同樣式 - style.css ==================== */

body {
    font-family: 'Open Sans', sans-serif;
    color: #333;
    line-height: 1.7;
}

h1, h2, h3, h4 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
}

/* Navbar */
.navbar {
    background: rgba(3, 9, 37, 0.97) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
}

/* Hero Section */
.hero {
    min-height: 70vh;
    background-size: cover;
    background-position: center;
}

/* ==================== Services 標題下劃線 - 強制加長 ==================== */

.section-title {
    position: relative;
    display: inline-block;
}

.section-title:after {
    content: '';
    position: absolute;
    width: 100% !important;        /* 強制加長 */
    height: 4px !important;
    background: #3ba6bb !important;
    bottom: -5px !important;
    left: 0% !important;         /* 左右對稱延伸 */
    transform: none !important;
}
/* 圖片樣式 */
.content-img {
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

/* Footer */
footer {
    background-color: #030925 !important;
    color: #ccc;
    padding: 45px 0 35px;
}

/* 響應式調整 */
@media (max-width: 768px) {
    .navbar {
        padding: 12px 0;
    }
}
.custom-header {
    position: relative;
}

.custom-header::before {
    display: none;   /* 直接隱藏遮罩 */
}}

.custom-header > .container {
    position: relative;
    z-index: 2;
}

.logo-img {
    height: 55px;
    width: auto;
}

/* Mobile */
@media (max-width: 768px) {
    .custom-header {
        min-height: 70px;
    }
}
/* ==================== Menu Bar Hover 效果 ==================== */
.nav-link {
    color: #ffffff !important;
    transition: color 0.3s ease;
    font-weight: 500;
}

.nav-link:hover {
    color: #3ba6bb !important;     /* 淺藍色（跟你網站主色一致） */
}

/* Mobile Menu 的 hover 效果 */
#mobileMenu .nav-link {
    color: #ffffff !important;
}

#mobileMenu .nav-link:hover {
    color: #3ba6bb !important;
    background-color: rgba(59, 166, 187, 0.2);
}

/* Mobile 漢堡按鈕顏色 */
.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3E%3Cpath stroke='rgba(255,255,255,1)' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E") !important;
}

/* 防止文字斷行 */
.desktop-menu {
    flex-wrap: nowrap;
}
/* ==================== Menu Bar Hover + 響應式優化 ==================== */

/* Menu 文字樣式 */
.nav-link {
    color: #ffffff !important;
    font-weight: 600 !important;
    font-size: clamp(14px, 1.8vw, 16px);
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: #3ba6bb !important;
}

/* 移除預設灰點 */
.desktop-menu, 
.navbar-nav {
    list-style: none;
    padding: 0;
    margin: 0;
}

/* Logo 控制 */
.logo-img {
    height: 55px;
    width: auto;
}

/* Mobile 漢堡按鈕顏色強化 */
.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3E%3Cpath stroke='rgba(255,255,255,1)' stroke-width='2.5' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E") !important;
}

/* 響應式調整 */
@media (max-width: 768px) {
    .nav-link {
        font-size: 16px;
    }
}
/* ==================== 漢堡按鈕優化 ==================== */

/* 漢堡按鈕顏色 - 淺藍色 */
.navbar-toggler {
    border: none;
    padding: 8px;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3E%3Cpath stroke='%233ba6bb' stroke-width='2.5' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E") !important;
    width: 28px;
    height: 28px;
}

/* Hover 時更明顯 */
.navbar-toggler:hover .navbar-toggler-icon {
    opacity: 0.8;
}

/* Mobile Menu 樣式 */
#mobileMenu {
    background-color: #0a2a5e;
}

#mobileMenu .nav-link {
    color: #ffffff;
    font-weight: 600;
    font-size: 16px;
}

#mobileMenu .nav-link:hover {
    color: #3ba6bb;
    background-color: rgba(59, 166, 187, 0.2);
}
/* ==================== Mobile Menu Bar 純底色 ==================== */

/* 桌面版保持背景圖片不變 */
.custom-header {
    background: url('../images/header-bg.jpg') no-repeat center top !important;
    background-size: cover !important;
}

/* 手機版改為純色 #d8f3fa */
@media (max-width: 768px) {
    .custom-header {
        background: #e8ffff !important;
        box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    }
    
    /* 讓文字顏色更清晰 */
    .custom-header .nav-link {
        color: #0a2a5e !important;
    }
    
    /* 漢堡按鈕顏色調整為深色 */
    .navbar-toggler-icon {
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3E%3Cpath stroke='%230a2a5e' stroke-width='2.5' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E") !important;
    }
}
/* 讓兩張圖片大小一致 */
.content-img {
    width: 100%;
    height: 320px;           /* 可調整 */
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

/* 手機版 */
@media (max-width: 768px) {
    .content-img {
        height: 260px;
    }
}
.desktop-menu {
    display: flex;
    align-items: center;
    gap: 20px;
    margin: 0;
    padding: 0;
    list-style: none;
}

/* 寬度足夠時靠右 */
@media (min-width: 1201px) {
    .desktop-menu {
        justify-content: flex-end;
    }
}

/* 視窗變窄時自動換行 + 置中 */
@media (max-width: 1200px) {
    .desktop-menu {
        justify-content: center;
        flex-wrap: wrap;
        gap: 14px 24px;
        padding: 12px 0;
    }
}
@media (max-width: 1200px) {
    .hero {
        max-height: 450px !important;
    }
}
.service-content {
    max-width: 820px;
    margin-left: auto;
    margin-right: auto;
}
/* Why Hong Kong? 清單置中 + 行距控制 */
.why-list {
    list-style: none;
    padding: 0;
    margin: 25px auto 0;
    line-height: 1.85;
}

.why-list li {
    margin-bottom: 14px;
    font-size: 1.05rem;
}

.why-list strong {
    font-weight: 600;
}
.service-img {
    width: 100% !important;
    max-width: 100% !important;
    height: 450px;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

/* 手機版 */
@media (max-width: 991px) {
    .service-img {
        height: 300px !important;
    }
}

/* 超小手機可再微調 */
@media (max-width: 576px) {
    .service-img {
        height: 280px !important;
    }
}
/* ==================== Customers 2x2 圖片大小控制 ==================== */

.customers-img {
    width: 100%;
    height: 320px;           /* ← 桌面版高度 */
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.12);
}

/* 手機版 */
@media (max-width: 991px) {
    .customers-img {
        height: 200px;       /* ← 手機版高度 */
    }
}
/* ==================== Customers Logo 手機版縮小 ==================== */

.customers-logo {
    max-height: 200px;           /* 桌面版 Logo 高度 */
    width: auto;
    margin: 15px 0;
}

/* 手機版 Logo 縮小 */
@media (max-width: 991px) {
    .customers-logo {
        max-height: 150px;       /* ← 手機版縮小高度 */
    }
}

/* 更小的手機 */
@media (max-width: 576px) {
    .customers-logo {
        max-height: 120px;
    }
}
/* ==================== Contact Us 地址行距加大 ==================== */

.address-line {
    line-height: 1.8 !important;     /* 加大行距 */
    font-size: 1.2rem;
    margin-bottom: 28px;
}

/* 手機版再加大一點間距 */
@media (max-width: 991px) {
    .address-line {
        line-height: 2.0 !important;
        margin-bottom: 32px;
    }
}.mb-24 {
}
.address-section {
    background-color: #f8f9fa;
}

.address-line {
    line-height: 1.95;
    font-size: 1.05rem;
    color: #444;
}

/* Footer 固定底部 */
html, body {
    height: 100%;
}

body {
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}
/* 讓灰色地址區塊緊貼 Footer */
.address-section {
    background-color: #f8f9fa;
    margin-bottom: 0 !important;     /* 移除下方間距 */
    padding-bottom: 60px;            /* 可自行調整 */
}

/* Footer 緊貼上方 */
footer {
    margin-top: 0 !important;
    padding-top: 30px;
}
/* ==================== Hero 文字響應式調整 ==================== */

.hero-title {
    font-size: 3.2rem;
    line-height: 1.1;
}

.hero-subtitle {
    font-size: 1.6rem;
}

.hero-desc {
    font-size: 1.1rem;
    line-height: 1.5;
}

/* 手機版縮小文字 */
@media (max-width: 991px) {
    .hero-title {
        font-size: 2.2rem;      /* 桌面 3.2rem → 手機 2.2rem */
    }
    .hero-subtitle {
        font-size: 1.35rem;
    }
    .hero-desc {
        font-size: 1rem;
    }
}

/* 更小的手機再縮小一點 */
@media (max-width: 576px) {
    .hero-title {
        font-size: 1.95rem;
    }
    .hero-subtitle {
        font-size: 1.25rem;
    }
}

/* ==================== Hero 文字動畫 - 第二三行由右至左滑入 ==================== */

@keyframes scaleIn {
    0%   { opacity: 0; transform: scale(0.3); }
    60%  { opacity: 1; transform: scale(1); }
    100% { opacity: 1; transform: scale(1); }
}

@keyframes slideFromRight {
    0%   { opacity: 0; transform: translateX(1000px); }
    100% { opacity: 1; transform: translateX(0); }
}

/* 第一行：放大出現 */
.hero-subtitle {
    animation: scaleIn 0.4s ease forwards;
    animation-delay: 0.2s;
}

/* 第二行 & 第三行：由右至左滑入 */
.hero-title,
.hero-desc {
    animation: slideFromRight 0.1s ease forwards;   /* 滑入速度 */
}

/* 延遲時間 */
.hero-subtitle { animation-delay: 0.5s !important; }
.hero-title     { animation-delay: 0.7s !important; }
.hero-desc      { animation-delay: 1.5s !important; }

/* 整體循環 */
.hero-subtitle,
.hero-title,
.hero-desc {
    animation-iteration-count: 2;
    animation-duration: 6s;     /* 總循環約11秒 */
    opacity: 100;
}
/* ==================== Hero 描述文字寬度控制 ==================== */

.hero-desc {
    max-width: 850px;           /* 跟標題寬度對齊 */
    margin: 0 auto;             /* 置中 */
    padding: 0 15px;            /* 避免太貼邊 */
    font-size: 1.1rem;
    line-height: 1.55;
}

/* ==================== 手機版 Menu 被 Hero 蓋住修正 (992px 以下) ==================== */

@media (max-width: 992px) {
    
    /* Header 提高層級 */
    .custom-header {
        position: relative;
        z-index: 1050 !important;
    }

    /* 展開的手機選單 */
    #mobileMenu {
        z-index: 1100 !important;
    }

    /* Bootstrap collapse 選單 */
    .navbar-collapse {
        z-index: 1100 !important;
    }

    /* Hero 降低層級 */
    .hero {
        position: relative;
        z-index: 1 !important;
    }
}