/* =========================================================
   About Us 內頁專屬樣式（02-1 恆達願景）
   ── 通用元件、內頁 hero 樣式皆沿用 common.css，本檔僅處理頁面特定樣式
   ========================================================= */

/* ---------- Hero：本頁背景圖（其餘 hero 樣式由 common.css 提供） ---------- */
.page-hero.hero-fullbleed::before {
    background-image: url("../images/about_us/hero_mountain.jpg");
}

/* ============================================================
   Section：恆達願景 + 四項創新策略 2×2 卡
   ============================================================ */
.vision {
    padding: var(--spacing-xl) 0;
    background: var(--color-bg-light);
    position: relative;
}

/* 標題群（.vision-head）已合併為共用元件 .section-head（見 common.css） */

.strategy-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.strategy-card {
    background: var(--color-white);
    padding: 40px 36px;
    position: relative;
}

.strategy-card h3 {
    font-family: var(--font-family-chinese);
    font-size: 1.375rem;
    font-weight: 700;
    margin: 0 0 12px;
    color: var(--primary-teal);
}

.strategy-card p {
    font-size: 0.95rem;
    line-height: 1.85;
    color: var(--color-text-secondary);
    margin: 0;
}

.vision-tail {
    margin-top: 48px;
    padding: 32px 36px;
    background: var(--primary-teal);
    color: var(--color-white);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 32px;
    text-align: center;
}

.vision-tail .tag {
    font-family: var(--font-family-english);
    font-size: 0.75rem;
    letter-spacing: 0.3em;
    font-weight: 700;
    padding: 6px 14px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    flex-shrink: 0;
}

.vision-tail p {
    margin: 0;
    font-size: 1.0625rem;
    line-height: 1.7;
}

.vision-tail p .accent {
    font-weight: 700;
}

/* ============================================================
   Section：永續策略
   ============================================================ */
.strategy {
    padding: var(--spacing-xl) 0;
    background: var(--color-white);
}

.strategy .strategy-grid-2 {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 60px;
    align-items: stretch;
}

.strategy .strategy-text {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 28px;
}

.strategy .strategy-text h2 {
    flex-shrink: 0;
    align-self: flex-start;
    font-family: var(--font-family-chinese);
    font-size: 3rem;
    font-weight: 900;
    letter-spacing: 0.02em;
    margin: 0;
    line-height: 1.2;
    border-left: 4px solid var(--primary-teal);
    padding-left: 20px;
}

.strategy .strategy-text .strategy-body {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.strategy .strategy-text .body {
    font-size: var(--font-size-body);
    line-height: 1.8;
    color: var(--color-text-primary);
    margin: 0 0 1.4em;
}

.strategy .strategy-text .body:first-child {
    margin-top: 0;
}

.strategy .strategy-text .body:last-of-type {
    margin-bottom: 0;
}

.strategy .strategy-text .body .accent {
    color: var(--primary-teal);
}

.strategy .strategy-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: auto;
    padding-top: 28px;
}

.strategy .strategy-tags .tag {
    font-family: var(--font-family-english);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    padding: 8px 14px;
    border: 1px solid var(--primary-teal);
    color: var(--color-white);
    background: var(--primary-teal);
}

.strategy .strategy-img {
    width: 100%;
    height: 100%;
    overflow: hidden;
    position: relative;
}

.strategy .strategy-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}



/* ============================================================
   Section：專業分工（5 欄）
   ============================================================ */
.expertise-block {
    padding: var(--spacing-xl) 0;
    background: var(--color-bg-dark);
    color: var(--color-white);
    position: relative;
    overflow: hidden;
}

.expertise-block .expertise-bg {
    position: absolute;
    inset: 0;
    background: url("../images/about_us/service framework_bg.jpg") center/cover no-repeat;
    opacity: 0.18;
    z-index: 0;
}

.expertise-block .container {
    position: relative;
    z-index: 1;
}

.expertise-block .head {
    display: flex;
    align-items: center;
    gap: 32px;
    margin-bottom: 60px;
}

/* 深色底：標題線與文字皆白色（與 common.css .section-head--white 同邏輯） */
.expertise-block .head h2 {
    flex-shrink: 0;
    font-family: var(--font-family-chinese);
    font-size: 3rem;
    font-weight: 900;
    letter-spacing: 0.02em;
    margin: 0;
    line-height: 1.2;
    color: var(--color-white);
    border-left: 4px solid var(--color-white);
    padding-left: 20px;
}

.expertise-block .head .lead {
    flex: 1;
    max-width: 560px;
    font-size: var(--font-size-subheadline);
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
}

.exp-cols {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 24px;
}

.exp-col {
    background: var(--primary-teal);
    padding: 36px 24px 32px;
    position: relative;
}

.exp-col h3 {
    font-family: var(--font-family-chinese);
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0 0 16px;
    color: var(--color-white);
    line-height: 1.4;
}

.exp-col .desc {
    font-size: 0.9rem;
    line-height: 1.75;
    color: var(--color-white);
    margin: 0;
    transition: color var(--transition-normal);
}

/* ============================================================
   Section：團隊（24 人均質網格 + 部門色帶）
   ============================================================ */
.team {
    padding: var(--spacing-xl) 0;
    background: var(--color-bg-light);
}

.team .team-head {
    display: flex;
    align-items: center;
    gap: 32px;
    margin-bottom: 48px;
}

.team .team-head h2 {
    flex-shrink: 0;
    font-family: var(--font-family-chinese);
    font-size: 3rem;
    font-weight: 900;
    letter-spacing: 0.02em;
    margin: 0;
    line-height: 1.2;
    border-left: 4px solid var(--primary-teal);
    padding-left: 20px;
}

.team .team-head .note {
    flex: 1;
    max-width: 560px;
    font-size: var(--font-size-body);
    line-height: 1.6;
    color: var(--color-text-primary);
    margin: 0;
}

.team .team-head .note strong {
    color: var(--color-text-primary);
    font-weight: 500;
}

/* 6 種部門配色 — 低彩度，沿用品牌氣質 */
.dept-dev    { --dept: #016D82; } /* 建設事業部 — 主品牌 teal */
.dept-pm     { --dept: #2A8A7B; } /* 全案管理部 */
.dept-design { --dept: #5C7E9C; } /* 建築設計事業部 */
.dept-tech   { --dept: #8A6E54; } /* 營建專案暨技術管理部 */
.dept-int    { --dept: #B07C5C; } /* 室內設計暨裝修事業部 */
.dept-none   { --dept: #9F9F9F; } /* 行政 / 無部門 */

/* 網格：桌機 6 / 平板 4 / 大手機 3 / 手機 2 */
.team-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 1fr;
    gap: 28px 32px;
}

/* 卡片：純照片（無遮罩）+ 底部資訊區（職稱/中名/英名/細線/學歷/部門） */
.member {
    background: var(--color-white);
    overflow: hidden;
    text-align: left;
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
    transition: transform var(--transition-normal);
}

/* 右下角企業色三角 */
.member::after {
    content: '';
    position: absolute;
    right: 0;
    bottom: 0;
    width: 24px;
    height: 24px;
    background: var(--primary-teal);
    clip-path: polygon(100% 0, 100% 100%, 0 100%);
    pointer-events: none;
}

@media (hover: hover) {
    .member:hover {
        transform: translateY(-4px);
    }

    .member:hover .photo img {
        filter: grayscale(0);
        transform: scale(1.05);
    }
}

.member .photo {
    aspect-ratio: 1 / 1;
    width: 100%;
    background: rgba(0, 0, 0, 0.05);
    overflow: hidden;
    position: relative;
}

.member .photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
    filter: grayscale(0.15);
    transition: filter var(--transition-normal), transform var(--transition-slow);
}

/* 彭心怡照片微調：往上並微微放大 */
.about_us .member-pengxinyi .photo img {
    transform: scale(1.12);
    transform-origin: center top;
    object-position: center 38%;
}

@media(hover: hover) {
    .about_us .member-pengxinyi:hover .photo img {
        transform: scale(1.17);
    }
}

/* placeholder 樣式（無真實照片時） */
.member .photo.is-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        repeating-linear-gradient(45deg,
            #e8e8e8 0,
            #e8e8e8 10px,
            #f0f0f0 10px,
            #f0f0f0 20px);
}

.member .photo.is-placeholder .ph-mono {
    font-family: var(--font-family-english);
    font-size: 0.7rem;
    letter-spacing: 0.15em;
    color: var(--color-gray-1);
    font-weight: 500;
    background: rgba(255, 255, 255, 0.85);
    padding: 6px 10px;
}

/* 資訊區：垂直 flex 讓 .dept 永遠靠卡片底部 */
.member .info {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 20px 18px 20px;
}

.member .role {
    font-family: var(--font-family-chinese);
    font-size: 0.85rem;
    font-weight: 400;
    color: var(--primary-teal);
    margin: 0 0 14px;
    line-height: 1.4;
    letter-spacing: 0.05em;
}

.member .name-zh {
    font-family: var(--font-family-chinese);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-text-primary);
    margin: 0;
    line-height: 1.2;
    letter-spacing: 0.05em;
}

.member .member-divider {
    border: none;
    border-top: 1px solid var(--color-gray-2);
    margin: 18px 0 16px;
    width: 100%;
}

.member .edu ul {
    list-style: none;
    margin: 0;
    padding: 0;
    font-family: var(--font-family-chinese);
    font-size: 0.875rem;
    color: var(--color-text-secondary);
    line-height: 1.75;
}

.member .edu ul li {
    margin: 0;
}

.member .dept {
    margin: 0;
    padding-top: 32px;
    padding-right: 22px;
    font-family: var(--font-family-chinese);
    font-size: 0.8rem;
    font-weight: 400;
    color: var(--color-text-secondary);
    letter-spacing: 0.08em;
    margin-top: auto;
}

/* ============================================================
   RWD
   ============================================================ */
@media (max-width: 1200px) {
    .team-grid { grid-template-columns: repeat(5, 1fr); }
}

@media (max-width: 1024px) {
    .strategy .strategy-grid-2 {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .exp-cols {
        grid-template-columns: repeat(2, 1fr);
    }

    .team-grid { grid-template-columns: repeat(4, 1fr); }

    .strategy-grid { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
    .strategy .strategy-text {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .strategy .strategy-text h2 {
        font-size: 2rem;
    }

    .vision-tail { flex-direction: column; align-items: flex-start; gap: 16px; }

    .team-grid { grid-template-columns: repeat(3, 1fr); gap: 24px 16px; }
}

@media (max-width: 768px) {
    .strategy-card { padding: 28px 24px; }
    .strategy-card h3 { font-size: 1.125rem; }
    .vision-tail { padding: 24px 20px; }
    .vision-tail p { font-size: 0.95rem; }

    .exp-cols { grid-template-columns: 1fr; }

    .team-grid { grid-template-columns: repeat(2, 1fr); gap: 24px 14px; }
    .member .info { padding: 16px 14px; }
    .member .name-zh { font-size: 1.25rem; }
    .member .role { font-size: 0.78rem; margin-bottom: 10px; }
    .member .member-divider { margin: 14px 0 12px; }
    .member .edu ul { font-size: 0.8rem; }
    .member .dept { font-size: 0.75rem; padding-top: 24px; }
}

@media (max-width: 540px) {
    .team-grid { grid-template-columns: 1fr; gap: 20px; }
}
