/* --- DoubleU-Tech Specified Color System --- */
:root {
    --primary-dark: #0f2332;   /* 深藍黑 - 用於標題與導航 */
    --accent: #eb611b;         /* 品牌橘 - 用於強調與按鈕 */
    --grey-light: #f9f9f9;     /* 淺灰 - 用於區塊背景 */
    --text-main: #333333;      /* 主文字 */
    --text-secondary: #666666; /* 次要文字 */
    --white: #ffffff;          /* 純白 */
}

/* --- Global Settings --- */
* { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
}

body {
    font-family: 'Montserrat', sans-serif;
    color: var(--text-main);
    background-color: var(--white);
    line-height: 1.8;
    scroll-behavior: smooth;
    padding-top: 100px; /* 留出空間給固定導航欄 */
}

h1, h2, h3 { 
    font-family: 'Playfair Display', serif; 
    color: var(--primary-dark); 
    font-weight: 400; 
}

.container { 
    max-width: 1200px; 
    margin: 0 auto; 
    padding: 0 40px; 
}

.narrow { 
    max-width: 800px; 
    margin: 0 auto; 
}

/* --- Navbar & Logo (修正 Logo 大小與點擊) --- */
.navbar {
    height: 100px; /* 增加導航高度，讓 Logo 更顯眼 */
    background: var(--white);
    position: fixed; 
    width: 100%; 
    top: 0; 
    z-index: 1000;
    border-bottom: 1px solid #f0f0f0;
    display: flex; 
    align-items: center;
}

.nav-inner { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    width: 100%; 
}

.logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo img { 
    height: 80px;        /* 顯著放大 Logo，解決太小的問題 */
    width: auto; 
    max-width: 300px; 
    object-fit: contain; 
    transition: transform 0.3s ease;
}

.logo img:hover {
    transform: scale(1.03); /* 懸停時輕微放大 */
}

nav ul { 
    list-style: none; 
    display: flex; 
    align-items: center; 
}

nav ul li { 
    margin-left: 35px; 
}

nav ul li a { 
    text-decoration: none; 
    color: var(--primary-dark); 
    font-size: 13px; 
    font-weight: 600; 
    text-transform: uppercase; 
    letter-spacing: 1.5px; 
}

nav ul li a:hover { 
    color: var(--accent); 
}

.nav-btn { 
    border: 2px solid var(--accent); 
    color: var(--accent) !important; 
    padding: 10px 22px; 
    border-radius: 2px;
}

.nav-btn:hover { 
    background: var(--accent); 
    color: var(--white) !important; 
}

/* --- Hero Section --- */
.hero { 
    padding: 130px 0 100px; 
    background-color: var(--grey-light); 
}

.overline { 
    color: var(--accent); 
    font-weight: 700; 
    text-transform: uppercase; 
    letter-spacing: 3px; 
    font-size: 11px; 
    margin-bottom: 15px; 
    display: block; 
}

.hero h1 { 
    font-size: 54px; 
    margin-bottom: 30px; 
    max-width: 850px; 
    line-height: 1.15; 
}

.hero-subtext { 
    font-size: 19px; 
    color: var(--text-secondary); 
    margin-bottom: 45px; 
    max-width: 600px; 
    font-weight: 300; 
}

.btn { 
    padding: 18px 38px; 
    text-decoration: none; 
    font-weight: 600; 
    font-size: 14px; 
    display: inline-block; 
    transition: 0.3s; 
    letter-spacing: 1px; 
}

.btn-dark { 
    background: var(--primary-dark); 
    color: var(--white); 
    margin-right: 15px; 
}

.btn-outline { 
    border: 1px solid var(--primary-dark); 
    color: var(--primary-dark); 
}

.btn:hover { 
    opacity: 0.9; 
    transform: translateY(-2px); 
}

/* --- Services --- */
.section { 
    padding: 120px 0; 
}

.section-header { 
    margin-bottom: 80px; 
}

.section-header h2 { 
    font-size: 40px; 
}

.centered { 
    text-align: center; 
}

.service-grid { 
    display: grid; 
    grid-template-columns: repeat(3, 1fr); 
    gap: 40px; 
}

.service-item { 
    padding: 55px 45px; 
    border: 1px solid #f2f2f2; 
    background: var(--white);
    transition: 0.4s; 
}

.service-item:hover { 
    border-color: var(--accent); 
    transform: translateY(-5px); 
    box-shadow: 0 15px 35px rgba(0,0,0,0.03); 
}

.service-num { 
    font-size: 11px; 
    font-weight: 700; 
    color: var(--accent); 
    display: block; 
    margin-bottom: 25px; 
    letter-spacing: 2px; 
}

/* --- About Split --- */
.split { 
    display: grid; 
    grid-template-columns: 1fr 1fr; 
    gap: 100px; 
    align-items: center; 
}

.about-image-placeholder { 
    height: 500px; 
    background: var(--grey-light); 
    border: 1px solid #eee; 
}

/* --- Team (修正照片圓框與裁切) --- */
.team-grid { 
    display: grid; 
    grid-template-columns: repeat(3, 1fr); 
    gap: 60px; 
    text-align: center; 
    margin-top: 80px; 
}

.member-photo { 
    width: 200px; 
    height: 200px; 
    background: var(--grey-light); 
    border-radius: 50%; 
    margin: 0 auto 30px; 
    overflow: hidden;    /* 強制裁切溢出的照片部分 */
    border: 1px solid #eee;
    display: flex;
    align-items: center;
    justify-content: center;
}

.member-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;   /* 讓 Teresa 與 Fred 的照片填滿圓圈 */
    display: block;
}

/* 針對 Bert 的去背圖進行特殊優化 */
.member-photo img[src*="removebg"] {
    object-fit: contain; 
    width: 88%;          /* 縮小一點點避免貼邊 */
    height: 88%;
}

.team-member h4 { 
    margin-bottom: 5px; 
    font-size: 20px; 
}

.role { 
    color: var(--accent); 
    font-weight: 600; 
    font-size: 13px; 
    text-transform: uppercase; 
    letter-spacing: 2px; 
    display: block; 
}

/* --- Contact Form (自定義風格) --- */
.contact { 
    background-color: var(--grey-light); 
}

.custom-form-wrapper { 
    margin-top: 60px; 
}

.form-row { 
    display: flex; 
    gap: 30px; 
    margin-bottom: 30px; 
}

.form-group { 
    flex: 1; 
    display: flex; 
    flex-direction: column; 
    margin-bottom: 30px; 
}

.form-group label { 
    font-size: 11px; 
    font-weight: 700; 
    text-transform: uppercase; 
    letter-spacing: 2px; 
    color: var(--primary-dark); 
    margin-bottom: 10px; 
}

.form-group input, 
.form-group textarea {
    border: none; 
    border-bottom: 1px solid #ccc; 
    background: transparent; 
    padding: 12px 0;
    font-family: inherit; 
    font-size: 16px; 
    transition: 0.3s;
}

.form-group input:focus, 
.form-group textarea:focus { 
    outline: none; 
    border-bottom: 1px solid var(--accent); 
}

/* --- Footer --- */
.footer { 
    padding: 90px 0 50px; 
    background: var(--primary-dark); 
    color: var(--white); 
    text-align: center; 
}

.footer-logo img { 
    height: 40px;        /* Footer Logo 稍微大一點 */
    margin-bottom: 30px; 
    filter: brightness(0) invert(1); /* 讓頁尾 Logo 變純白 */
}

.footer p { 
    font-size: 12px; 
    opacity: 0.5; 
    letter-spacing: 1px; 
}

/* --- Responsive (手機版優化) --- */
@media (max-width: 992px) {
    .service-grid, .team-grid, .split { 
        grid-template-columns: 1fr; 
    }
    .form-row {
        flex-direction: column;
        gap: 0;
    }
    .hero h1 { 
        font-size: 34px; 
    }
    nav { 
        display: none; 
    }
}
