/* =============================================
   香港專業復康護老中心 - 最終整理版
   以你原版為基礎，已修正 LPG 左右排列
   ============================================= */

:root {
    --primary: #8C6F56;
    --secondary: #5D7E69;
    --accent: #BF9B30;
    --bg-light: #F4F1EE;
    --soft: #F8F1E9;
    --text: #333333;
    --white: #ffffff;
    --shadow: 0 4px 15px rgba(0,0,0,0.1);
}

/* 全域 */
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
    font-family: 'Noto Sans TC', sans-serif;
    color: var(--text);
    line-height: 1.8;
    background-color: var(--white);
    overflow-x: hidden;
}

.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }
.section { padding: 80px 0; }
.bg-alt { background-color: var(--bg-light); }
.text-center { text-align: center; }

/* Navbar & Hero（保留你原版風格） */
.navbar { background: var(--white); padding: 15px 0; box-shadow: 0 2px 10px rgba(0,0,0,0.05); position: sticky; top: 0; z-index: 1000; }
.flex-nav { display: flex; justify-content: space-between; align-items: center; }
.logo { font-size: 1.4rem; font-weight: 700; color: var(--primary); font-family: 'Noto Serif TC', serif; }
.nav-links { list-style: none; display: flex; gap: 25px; align-items: center; }
.nav-links a { text-decoration: none; color: var(--text); font-weight: 500; transition: color 0.3s; }
.nav-links a:hover { color: var(--primary); }
.btn-cta { background: var(--primary); color: var(--white) !important; padding: 10px 22px; border-radius: 5px; font-weight: 700; }

.hero {
    background: linear-gradient(rgba(0,0,0,0.35), rgba(0,0,0,0.35)), url('images/hero_bg3.jpg') center/cover no-repeat;
    padding: 160px 0 100px;
    color: #fff;
    text-align: center;
}
.hero h1 { font-family: 'Noto Serif TC', serif; font-size: 3.2rem; margin-bottom: 20px; text-shadow: 0 2px 10px rgba(0,0,0,0.3); }
.hero p { font-size: 1.4rem; margin-bottom: 30px; }
.hero-btns { display: flex; gap: 20px; justify-content: center; flex-wrap: wrap; }
.btn-whatsapp {
    background: #25D366; color: white; padding: 16px 36px; border-radius: 50px; font-weight: 700; font-size: 1.2rem;
    text-decoration: none; display: inline-block; transition: transform 0.3s;
}
.btn-whatsapp:hover { transform: translateY(-3px);}
.hero-subtitle { margin-top: 40px; font-size: 1.1rem; opacity: 0.95; }

/* Section Title */
.section-title {
    position: relative; display: inline-block; padding-bottom: 12px; color: var(--primary);
}
.section-title::after {
    content: ''; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%);
    width: 70px; height: 4px; background: linear-gradient(to right, var(--secondary), var(--accent));
    border-radius: 4px;
}

/* ==================== LPG 區塊關鍵修正 ==================== */
.lpg-highlight { background: linear-gradient(135deg, #f8f1e9, #e8d9c8); padding: 80px 0; }

#lpg .grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}

.rehab-card {
    background: white;
    padding: 30px;
    border-radius: 20px;
    box-shadow: var(--shadow);
}
/* ==================== LPG 按鈕置中 ==================== */
.rehab-card .btn-whatsapp {
    display: block;           /* 變成區塊元素 */
    margin: 30px auto 0;      /* 上下間距 + 水平置中 */
    max-width: 280px;         /* 可自行調整寬度 */
    text-align: center;
}

.rehab-img {
    width: 100%;
    max-height: 280px;           /* 控制圖片大小 */
    object-fit: contain;
    border-radius: 12px;
    margin-bottom: 25px;
    background: #fff;
    padding: 10px;
}

/* ==================== LPG 卡片微調 ==================== */
#lpg .rehab-card {
    padding: 30px 25px;          /* 左右留一點空間，避免 bullet 出界 */
}

#lpg .rehab-card h3 {
    margin-top: 15px;            /* 讓標題更貼近圖片 */
    margin-bottom: 20px;
    font-size: 1.45rem;
 
}

#lpg .rehab-card ul {
    padding-left: 8px;           /* 減少左邊留白，讓 bullet 不出界 */
    list-style-position: outside;
}

#lpg .rehab-card li {
    margin-bottom: 5px;         /* 項目之間間距更舒服 */
    padding-left: 12px;
}

/* 如果還覺得 bullet 太靠左，可再加強這一行 */
#lpg .rehab-card ul {
    padding-left: 20px;          /* 如果 8px 還不夠，可改成 20px 試試 */
}

.card-hover:hover {
    transform: translateY(-12px);
    box-shadow: 0 25px 50px rgba(140,111,86,0.25);
}

.pain-cycle {
    background: #f8f1e9;
    padding: 20px;
    border-radius: 12px;
    margin: 25px 0;
}
.highlight { color: var(--secondary); font-weight: 600; }

/* 其他你原有的樣式（完全保留） */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 25px; margin-top: 40px; }
.service-item {
    background: var(--white);
    padding: 30px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    text-align: center;
    border-bottom: 4px solid var(--secondary);
}

.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.about-img { max-width: 100%; border-radius: 20px; box-shadow: 0 20px 40px rgba(0,0,0,0.15); }

.tabs { display: flex; justify-content: center; gap: 15px; margin-bottom: 40px; flex-wrap: wrap; }
.tab-btn { padding: 12px 25px; border: 2px solid var(--primary); background: none; color: var(--primary); cursor: pointer; border-radius: 30px; font-weight: 700; }
.tab-btn.active { background: var(--primary); color: var(--white); }
.tab-content { display: none; }
.tab-content.active { display: block; animation: fadeIn 0.5s; }
.faq-card {
    background: var(--white);
    padding: 20px;
    margin-bottom: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    border-left: 5px solid var(--primary);
}

.map-container { border-radius: 15px; overflow: hidden; box-shadow: var(--shadow); border: 1px solid #ddd; }

.footer { background: #333; color: #eee; padding: 40px 0; font-size: 0.9rem; text-align: center; }


/* ==================== 語言切換按鈕 ==================== */
.language-switch {
    display: flex;
    gap: 4px;
    margin-left: 20px;
}

.lang-btn {
    background: none;
    border: 2px solid var(--primary);
    color: var(--primary);
    padding: 6px 14px;
    border-radius: 30px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
}

.lang-btn.active {
    background: var(--primary);
    color: white;
}

.lang-btn:hover {
    background: var(--primary);
    color: white;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* 響應式 */
@media (max-width: 768px) {
    .grid-2, .about-grid, #lpg .grid-2 { grid-template-columns: 1fr; }
    .hero { padding: 120px 0 80px; }
    .hero h1 { font-size: 2.2rem; }
    .nav-links { display: none; }
    .rehab-img { max-height: 220px; }
}

/* ==================== 手機版漢堡選單 ==================== */
.hamburger {
    display: none;
    font-size: 1.8rem;
    color: var(--primary);
    cursor: pointer;
}

.mobile-menu {
    display: none;
    flex-direction: column;
    background: var(--white);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    padding: 15px 0;
    list-style: none;
    width: 100%;
}

.mobile-menu li { padding: 12px 20px; }
.mobile-menu a { text-decoration: none; color: var(--text); display: block; }

@media (max-width: 768px) {
    .nav-links { display: none; }
    .hamburger { display: block; }

    .navbar.active .mobile-menu {
        display: flex;
    }
}

/* ==================== 解決導航列遮住標題的問題 ==================== */
section {
    scroll-margin-top: 85px;     /* 預留導航列的高度 */
    scroll-behavior: smooth;
}

@media (max-width: 768px) {
    section {
        scroll-margin-top: 30px;   /* 手機版可以再調小一點 */
    }
}

/* ==================== Logo 樣式 ==================== */
.logo-link {
    display: block;
    max-width: 280px;           /* 桌面版最大寬度 */
}

.logo-img {
    width: 100%;
    height: auto;
    display: block;
}

/* 手機版 Logo 稍微縮小 */
@media (max-width: 768px) {
    .logo-link {
        max-width: 220px;
    }
}