/* --- 變數設定 --- */
:root {
    --primary-bg: #1C2833;      /* 黑曜石 */
    --secondary-bg: #17202A;    /* 深灰背景 (區隔用) */
    --card-bg: #212F3C;         /* 卡片背景 */
    --secondary-text: #E5E7E9;  /* 白金灰 */
    --accent-color: #D4AC0D;    /* 暗金 */
    --font-main: 'Noto Sans TC', sans-serif;
}

/* --- 全域設定 --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    background-color: var(--primary-bg);
    color: var(--secondary-text);
    line-height: 1.6;
    overflow-x: hidden;
}

a { text-decoration: none; color: inherit; transition: 0.3s; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

/* --- 導覽列 --- */
header {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 20px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    background: rgba(28, 40, 51, 0.95);
    border-bottom: 1px solid #333;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 900;
    font-size: 1.5rem;
    letter-spacing: 2px;
    color: #fff;
}
.logo-icon {
    width: 30px;
    height: 30px;
    background: #fff;
    clip-path: polygon(100% 0, 0 0, 50% 100%);
}

nav ul {
    display: flex;
    gap: 30px;
}
nav a {
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}
nav a:hover { color: var(--accent-color); }

/* --- Hero Section --- */
.hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    background-image: url('../images/heroMain.avif');
    background-size: cover;
    background-position: center;
    position: relative;
}
.hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(28, 40, 51, 0.7); 
}
.hero-content {
    position: relative;
    z-index: 1;
    padding: 20px;
}
.hero h1 {
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 900;
    color: #fff;
    letter-spacing: 5px;
    text-shadow: 0 4px 15px rgba(0,0,0,0.5);
    margin-bottom: 20px;
}
.hero p {
    font-size: 1.2rem;
    color: var(--accent-color);
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 40px;
}
.btn-cta {
    display: inline-block;
    padding: 15px 40px;
    background-color: var(--accent-color);
    color: #000;
    font-weight: 900;
    border: none;
    cursor: pointer;
    text-transform: uppercase;
}
.btn-cta:hover {
    background-color: #fff;
    transform: translateY(-3px);
}

/* --- 通用標題樣式 --- */
.section-title {
    text-align: center;
    margin-bottom: 60px;
}
.section-title h2 {
    font-size: 2.5rem;
    font-weight: 900;
    color: #fff;
    letter-spacing: 2px;
    text-transform: uppercase;
}
.section-title span {
    display: block;
    width: 50px;
    height: 4px;
    background: var(--accent-color);
    margin: 15px auto 0;
}

/* --- NEW: 關於我們 (圖文交錯) --- */
.about {
    padding: 100px 10%;
    display: flex;
    align-items: center;
    gap: 60px;
    background: var(--primary-bg);
}
.about-img {
    flex: 1;
    position: relative;
}
.about-img img {
    width: 100%;
    filter: grayscale(100%);
    border: 2px solid var(--accent-color);
    transition: 0.5s;
}
.about-img:hover img { filter: grayscale(0%); }

.about-text {
    flex: 1;
}
.about-text h3 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: #fff;
}
.about-text p {
    margin-bottom: 20px;
    color: #bbb;
    font-size: 1.1rem;
}

/* --- NEW: 數據統計 (深色背景帶) --- */
.stats {
    padding: 60px 5%;
    background: var(--accent-color);
    color: #1C2833;
    display: flex;
    justify-content: space-around;
    text-align: center;
    flex-wrap: wrap;
    gap: 30px;
}
.stat-item h3 {
    font-size: 3.5rem;
    font-weight: 900;
    line-height: 1;
}
.stat-item p {
    font-weight: 700;
    font-size: 1rem;
    text-transform: uppercase;
}

/* --- 作品牆 (維持原樣) --- */
.portfolio {
    padding: 100px 5%;
    background: var(--secondary-bg);
}
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 15px;
}
.gallery-item {
    position: relative;
    height: 400px;
    overflow: hidden;
    cursor: pointer;
}
.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s;
    filter: grayscale(50%);
}
.gallery-item:hover img {
    transform: scale(1.1);
    filter: grayscale(0%);
}
.overlay {
    position: absolute;
    bottom: 0; left: 0; width: 100%;
    padding: 30px;
    background: linear-gradient(transparent, rgba(0,0,0,0.9));
    opacity: 0;
    transition: 0.3s;
}
.gallery-item:hover .overlay { opacity: 1; }
.overlay h3 { color: var(--accent-color); font-size: 1.4rem; }

/* --- 服務項目 (3欄卡片) --- */
.services {
    padding: 100px 10%;
    background: var(--primary-bg);
}
.service-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
}
.service-card {
    flex: 1 1 300px;
    background: var(--card-bg);
    padding: 40px;
    border: 1px solid #333;
    text-align: center;
    transition: 0.3s;
}
.service-card:hover {
    border-color: var(--accent-color);
    transform: translateY(-5px);
}
.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #fff;
}

/* --- NEW: 服務流程 (步驟圖) --- */
.process {
    padding: 100px 5%;
    background: #111; /* 極深色 */
    text-align: center;
}
.process-steps {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 50px;
    margin-top: 50px;
    position: relative;
}
.step {
    flex: 1 1 200px;
    position: relative;
    z-index: 1;
}
.step-num {
    width: 60px;
    height: 60px;
    background: var(--accent-color);
    color: #000;
    font-weight: 900;
    font-size: 1.5rem;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 20px;
    border: 5px solid #111; /* 創造間隔感 */
}
.step h3 { font-size: 1.2rem; margin-bottom: 10px; color: #fff; }
.step p { font-size: 0.9rem; color: #888; }

/* --- NEW: 客戶評價 --- */
.reviews {
    padding: 100px 10%;
    background: var(--secondary-bg);
}
.review-grid {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
}
.review-card {
    flex: 1 1 300px;
    background: var(--primary-bg);
    padding: 30px;
    border-left: 4px solid var(--accent-color);
}
.review-text {
    font-style: italic;
    margin-bottom: 20px;
    color: #ccc;
}
.review-author {
    font-weight: 700;
    color: #fff;
}
.review-type {
    font-size: 0.8rem;
    color: var(--accent-color);
}

/* --- 聯絡資訊 --- */
.contact {
    padding: 80px 5%;
    background: #000;
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    align-items: center;
}
.contact-text { flex: 1 1 400px; }
.contact-row {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    gap: 20px;
}
.icon-box {
    width: 50px;
    height: 50px;
    background: #222;
    color: var(--accent-color);
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 900;
}
.map-box {
    flex: 1 1 400px;
    height: 400px;
    background: #222;
}
.map-box iframe { width: 100%; height: 100%; border: 0; filter: grayscale(100%) invert(92%) contrast(83%); }

/* Footer */
footer {
    text-align: center;
    padding: 30px;
    background: #0b0b0b;
    color: #555;
    font-size: 0.8rem;
    border-top: 1px solid #222;
}

/* 手機 RWD */
@media (max-width: 768px) {
    .about { flex-direction: column; }
    .contact { flex-direction: column; }
    .hero h1 { font-size: 3.5rem; }
    nav { display: none; } /* 手機版暫藏選單 */
}