/*---------------------------------------
   1. Base & Reset
-----------------------------------------*/
body {
    font-family: 'Roboto', 'Roboto Condensed', Helvetica, Arial, sans-serif;
    font-weight: 300;
    overflow-x: hidden;
    background-color: #ffffff;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

* {
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}

/*---------------------------------------
   2. Typography
-----------------------------------------*/
h1, h2, h3, h4, h5, h6, .navbar-default, .btn {
    font-family: 'Roboto', 'Roboto Condensed', Helvetica, Arial, sans-serif;
    font-weight: 400;
}

h1 {
    color: #FFB718;
    font-size: 42px;
    letter-spacing: 2px;
    padding-bottom: 10px;
    margin-top: 0px;
    line-height: 1.2;
}

h2 {
    color: #167475;
    font-size: 28px;
}

p {
    color: #666666;
    font-size: 16px;
    line-height: 28px;
    font-weight: 300;
}

a {
    color: #167475;
    transition: 0.3s;
    text-decoration: none !important;
}

a:hover, a:active, a:focus {
    color: #31849b;
    outline: none;
}

/*---------------------------------------
   3. Navigation
-----------------------------------------*/
.navbar-default {
    background: #ffffff;
    border: none;
    margin: 0 !important;
    box-shadow: 0px 0px 10px rgba(0,0,0,0.1);
}

.navbar-default .navbar-brand {
    color: #167475;
    font-size: 26px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 2px;
    line-height: 50px;
    margin: 0;
}

.navbar-default img {
    width: auto;
    height: auto;
    max-height: 40px;
    margin-top: 5px;
    margin-left: 10px;
}

/*---------------------------------------
   4. Hero Section
-----------------------------------------*/
#home {
    background-image: url(../images/home-bg.jpg);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center center;
    position: relative;
    width: 100%;
    padding-top: 130px;
    padding-bottom: 80px;
    color: #ffffff;
    overflow: hidden; 
}

#home .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 15, 30, 0.85); 
    z-index: 1;
}

#home .container {
    position: relative;
    z-index: 2;
}

.home-flex-container {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

#home .home-thumb {
    padding-right: 20px;
}

#home h1 {
    color: #ffffff;
    text-shadow: 0px 2px 4px rgba(0,0,0,0.5);
    font-weight: 700;
}

#home p {
    color: #e0e0e0;
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 25px;
}

/* CTA 按鈕 */
.btn-download-hero {
    display: inline-block;
    background-color: #007985;
    color: #fff !important;
    padding: 12px 35px;
    border-radius: 50px;
    font-size: 18px;
    font-weight: bold;
    text-decoration: none;
    box-shadow: 0 5px 15px rgba(0,75,79,0.4);
    border: 1px solid #007985;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.btn-download-hero:hover {
    background-color: #006166;
    border-color: #006166;
    transform: translateY(-2px);
}

/* 右側圖片 */
.hero-image-container {
    text-align: center;
    margin-top: 20px;
}
.hero-image-container img {
    box-shadow: 0 15px 40px rgba(0,0,0,0.6);
    border: 1px solid rgba(255,255,255,0.15);
    transition: transform 0.3s ease;
    max-width: 100%;
    height: auto;
}
.hero-image-container img:hover {
    transform: scale(1.02);
}

/*---------------------------------------
   5. Content Sections
-----------------------------------------*/
.section-title {
    margin-bottom: 20px; /* 縮減標題下方間距 */
}

/* 調整各區塊 padding，讓整體更緊湊 */
#introduction, #contact {
    padding-top: 50px;
    padding-bottom: 50px;
}

#introduction {
    background-color: #FFFFFF;
    text-align: left;
}
.introduction-thumb2 {
    margin: 0 auto;
}

/*---------------------------------------
   6. Contact / Footer 優化 (重點修改區)
-----------------------------------------*/
#contact {
    background-color: #167475; /* 墨綠色背景 */
    color: #fff;
    padding-top: 40px;
    padding-bottom: 20px;
}

/* --- 修正問題 1：大標題 Contact Us 強制居中 --- */
#contact .contact-title {
    width: 100%;         /* 確保標題容器佔滿整行 */
    text-align: center;  /* 讓內部文字置中 */
    margin-bottom: 30px;
}

#contact .contact-title h3 {
    color: #ffffff;      /* 確保標題是白色 */
    font-weight: 700;
    margin: 0;
}

/* --- Footer 5欄排版邏輯 --- */
#contact .row {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

/* 每一欄的寬度與設定 */
.col-md-15 {
    width: 19%;
    padding: 0 10px;
    margin-bottom: 20px;
    text-align: left;
}

/* 桌機版：最後一個欄位 (About ARBOR / Contact Info) 置中 */
@media (min-width: 768px) {
    #contact .col-md-15:last-child {
        text-align: center;
    }
}

/* 小標題樣式 */
#contact .section-title h5 {
    color: #ffffff;      /* 強制白色 */
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: bold;
}

/* 分隔線樣式 */
#contact hr {
    margin: 8px 0 10px 0; 
    border-top: 1px solid rgba(255,255,255,0.3);
}

/* --- 修正問題 2：強制連結與文字為白色 (解決隱形問題) --- */
#contact .section-title p, 
#contact .section-title a {
    color: #ffffff !important;  /* ★關鍵：強制覆蓋原本的深綠色 */
    font-size: 13px;
    line-height: 1.4;
    display: block;
    margin-bottom: 5px;
    text-decoration: none;
    font-weight: 300;
}

/* 滑鼠移過去的效果 (加上底線與變亮) */
#contact .section-title a:hover {
    color: #FFB718 !important;  /* 懸停時變金黃色，增加辨識度 */
    text-decoration: underline !important;
}

/*---------------------------------------
   7. Bottom Copyright
-----------------------------------------*/
footer {
    padding: 15px 0;
    background: #fff;
    border-top: 1px solid #eee;
}

footer p {
    font-size: 12px;
    color: #888;
    margin: 0;
    line-height: 30px; /* 對齊 icon */
}

.social-icon {
    margin: 0;
    padding: 0;
    text-align: right;
}
.social-icon li {
    display: inline-block;
    margin-left: 10px;
}
.social-icon li a {
    color: #666;
    font-size: 18px;
    transition: color 0.3s;
}
.social-icon li a:hover {
    color: #167475;
}

/*---------------------------------------
   8. Utilities
-----------------------------------------*/
.go-top {
    background-color: #167475;
    color: #fff;
    bottom: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    border-radius: 50%;
    position: fixed;
    z-index: 999;
    display: none;
    cursor: pointer;
}

.max_inquiry_box, iframe {
    width: 100% !important;
    overflow: hidden;
}
/* =========================================
   Language Switcher (右上角語系選單 - 企業色修正版)
   ========================================= */

/* 容器定位 */
.navbar-right-lang {
    float: right;
    height: 50px;
    display: flex;
    align-items: center;
}

/* 按鈕樣式 - 使用企業主色 #009785 */
.lang-btn {
    color: #009785 !important; /* ARBOR Green */
    font-size: 14px;
    font-weight: 500;
    text-decoration: none !important;
    padding: 5px 10px;
    border: 1px solid transparent;
    transition: all 0.3s ease;
}

/* 滑鼠移過去的效果 - 結合企業輔色 #ffb718 */
.lang-btn:hover, .lang-btn:focus, .dropdown.open .lang-btn {
    color: #009785 !important; /* 保持綠色或加深 */
    background-color: rgba(255, 183, 24, 0.1); /* 背景帶淡淡的黃色 #ffb718 */
    border-radius: 4px;
}

/* 地球圖示 */
.lang-btn i {
    font-size: 16px;
    margin-right: 4px;
    vertical-align: middle;
}

/* 下拉選單本體 */
.navbar-right-lang .dropdown-menu {
    border-radius: 0 0 4px 4px;
    border: 1px solid #eee;
    border-top: 2px solid #009785; /* 頂部加一條綠色裝飾線 */
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    min-width: 120px;
    margin-top: 0;
}

/* 下拉選單選項 */
.navbar-right-lang .dropdown-menu li a {
    padding: 10px 20px;
    font-size: 14px;
    color: #666;
    transition: all 0.2s;
}

/* 選項懸停效果 - 文字變綠，背景變淡灰 */
.navbar-right-lang .dropdown-menu li a:hover {
    background-color: #f9f9f9;
    color: #009785; /* 懸停時變回主色 */
    padding-left: 25px;
    border-left: 3px solid #ffb718; /* 左側加上黃色亮點指示 */
}

/* --- 手機版微調 (< 768px) --- */
@media (max-width: 767px) {
    .navbar-header {
        float: left;
    }
    .navbar-right-lang {
        float: right;
    }
    .navbar-default img {
        max-height: 35px;
        margin-top: 8px;
    }
    .lang-btn {
        font-size: 13px;
    }
}



/*---------------------------------------
   9. RWD / Media Queries (響應式)
-----------------------------------------*/

/* --- 筆電高度 < 700px (緊湊模式) --- */
@media screen and (max-height: 700px) and (min-width: 992px) {
    #home {
        padding-top: 100px; 
        padding-bottom: 40px;
    }
    h1 { font-size: 32px; } 
    #home p { font-size: 15px; margin-bottom: 15px; }
    .btn-download-hero { padding: 8px 25px; margin-top: 5px; }
    .hero-image-container img { max-height: 280px; width: auto; }
}

/* --- 平板 (Width < 992px) --- */
@media (max-width: 992px) {
    #home { padding-top: 100px; text-align: center; }
    .home-flex-container { flex-direction: column; }
    .home-thumb { padding-right: 0; width: 100%; }
    .hero-image-container { margin-top: 40px; width: 100%; }
    .hero-image-container img { max-width: 60%; }
    
    /* 平板上 Footer 改為 3欄 + 2欄 分配 */
    .col-md-15 { width: 33.33%; }
}

/* --- 手機版 (Width < 767px) --- */
@media (max-width: 767px) {
    h1 { font-size: 26px !important; line-height: 1.3 !important; }
    p { font-size: 16px !important; }
    
    #home { padding-top: 90px; padding-bottom: 50px; }
    
    .btn-download-hero { width: 80%; display: block; margin: 20px auto 0; text-align: center; }
    .hero-image-container img { max-width: 80%; }
    .introduction-thumb2 { padding-left: 10px; padding-right: 10px; }
    .max_inquiry_box, iframe { width: 100% !important; max-width: 100vw !important; }

    /* --- 手機版 Footer 垂直堆疊 --- */
    #contact .row { display: block; } /* 取消 Flex，改回堆疊 */
    .col-md-12 { width: 100%; text-align: center; } /* 標題置中 */
    
    /* 讓那 5 欄變成單欄垂直排列 */
    .col-md-15 {
        width: 100%;
        text-align: center; /* 手機版全部置中 */
        margin-bottom: 30px;
        border-bottom: 1px solid rgba(255,255,255,0.1);
        padding-bottom: 20px;
    }
    
    /* 確保最後一個欄位在手機版也是置中 */
    #contact .col-md-15:last-child {
        text-align: center;
    }
    
    /* 最下方版權區塊 */
    footer .col-md-7, footer .col-md-5 {
        width: 100%;
        text-align: center;
    }
    .social-icon { text-align: center; margin-top: 10px; }
}

/* Cookie Bar */
#ok {
    display: block; width: 100%; height: auto;
    font-size: 12px; font-weight: 500; color: #fff;
    line-height: 1.5; text-align: center;
    background-color: rgba(85,85,85,0.9);
    padding: 10px; position: fixed; bottom: 0; z-index: 9000;
}