/* ===== CSS Variables ===== */
:root {
    /* Colors */
    --primary-color: #F2EFE7;
    --secondary-color: #E74C3C;
    --accent-color: #3498DB;
    --success-color: #27AE60;
    --warning-color: #F39C12;
    --danger-color: #E74C3C;
    --info-color: #3498DB;
    
    /* Neutral Colors */
    --dark-color: #6A7F5F; /* // updated: 企業色文字 */
    --medium-dark: #6A7F5F; /* // updated: 企業色文字 */
    --medium-color: #6A7F5F; /* // updated: 企業色文字 */
    --main-text-color: #6A7F5F; /* // updated: 主要文字顏色企業色 */
    --light-color: #BDC3C7;
    --very-light: #ECF0F1;
    --white: #FFFFFF;
    
    /* Typography */
    --font-primary: 'Noto Sans TC', sans-serif;
    --font-secondary: 'Playfair Display', serif;
    
    /* Font Sizes */
    --font-size-xs: 0.75rem;
    --font-size-sm: 0.875rem;
    --font-size-base: 1rem;
    --font-size-lg: 1.125rem;
    --font-size-xl: 1.25rem;
    --font-size-2xl: 1.5rem;
    --font-size-3xl: 2rem;
    --font-size-4xl: 2.5rem;
    
    /* Spacing */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-2xl: 3rem;
    --spacing-3xl: 4rem;
    
    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-full: 50%;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 4px 16px rgba(0, 0, 0, 0.12);
    --shadow-xl: 0 8px 32px rgba(0, 0, 0, 0.15);
    
    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/* ===== Reset & Base Styles ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    font-size: var(--font-size-base);
    line-height: 1.6;
    color: var(--main-text-color) !important; /* // updated: 統一企業色 */
    background-color: var(--white);
}

/* ===== Typography ===== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-secondary);
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: var(--spacing-md);
    color: var(--main-text-color) !important; /* // updated: 統一企業色 */
}

h1 { font-size: var(--font-size-4xl); }
h2 { font-size: var(--font-size-3xl); }
h3 { font-size: var(--font-size-2xl); }
h4 { font-size: var(--font-size-xl); }
h5 { font-size: var(--font-size-lg); }
h6 { font-size: var(--font-size-base); }

p {
    margin-bottom: var(--spacing-md);
    color: var(--main-text-color) !important; /* // updated: 統一企業色 */
}

a {
    color: var(--main-text-color) !important; /* // updated: 統一企業色 */
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--main-text-color) !important; /* // updated: hover 也維持企業色 */
    opacity: 0.8;
}

/* ===== Buttons ===== */
.btn {
    display: inline-block;
    padding: var(--spacing-sm) var(--spacing-lg);
    font-size: var(--font-size-base);
    font-weight: 500;
    text-align: center;
    text-decoration: none;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background-color: #6A7F5F !important; /* // updated: 企業色背景 */
    color: var(--white) !important; /* // updated: 白色粗體文字 */
    border: 2px solid #6A7F5F;
    font-weight: 700; /* // updated: 粗體 */
}

.btn-primary:hover {
    background-color: #5a6f4f !important; /* // updated: hover 時稍深的企業色 */
    border-color: #5a6f4f;
    color: var(--white) !important; /* // updated: 維持白色 */
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-outline-primary {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-outline-light {
    background-color: #6A7F5F !important; /* // updated: 企業色背景 */
    color: var(--white) !important; /* // updated: 白色粗體文字 */
    border: 2px solid #6A7F5F;
    font-weight: 700; /* // updated: 粗體 */
}

.btn-outline-light:hover {
    background-color: #5a6f4f !important; /* // updated: hover 時稍深的企業色 */
    color: var(--white) !important; /* // updated: 維持白色 */
    border-color: #5a6f4f;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-lg {
    padding: var(--spacing-md) var(--spacing-xl);
    font-size: var(--font-size-lg);
}

.btn-sm {
    padding: var(--spacing-xs) var(--spacing-md);
    font-size: var(--font-size-sm);
}

/* ===== Navigation ===== */
.navbar {
    padding: var(--spacing-md) 0;
    transition: all var(--transition-normal);
    background-color: transparent !important;
    box-shadow: none;
}

/* Home page transparent header over hero */
.home .navbar { background-color: transparent !important; box-shadow: none; }

.home .navbar.scrolled {
    background-color: rgba(255,255,255,0.6) !important;
    box-shadow: var(--shadow-md);
    backdrop-filter: saturate(180%) blur(8px);
}

.navbar-brand {
    display: flex;
    align-items: center;
    font-family: var(--font-secondary);
    font-size: var(--font-size-xl);
    font-weight: 700;
    color: var(--main-text-color) !important; /* // updated: 統一企業色 */
}

.logo {
    height: 96px; /* // updated: 96px 高度 */
    width: auto;
    margin-right: var(--spacing-sm);
}

.brand-text { font-size: var(--font-size-xl); color: var(--main-text-color) !important; } /* // updated: 統一企業色 */

.navbar-nav .nav-link {
    font-weight: 500;
    color: var(--main-text-color) !important; /* // updated: 統一企業色 */
    padding: var(--spacing-sm) var(--spacing-md);
    margin: 0 var(--spacing-xs);
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--main-text-color) !important; /* // updated: 統一企業色 */
    background-color: rgba(255,255,255,0.3);
    box-shadow: inset 0 -2px 0 0 rgba(242,239,231,0.7);
}

/* Navbar toggler for dark header */
.navbar .navbar-toggler { border-color: rgba(242, 239, 231, 0.45); }
.navbar .navbar-toggler:focus { box-shadow: 0 0 0 3px rgba(242, 239, 231, 0.35); }

.navbar .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(242,239,231,0.95)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Mobile collapse background */
.navbar .navbar-collapse { background-color: transparent; }
.home .navbar .navbar-collapse { background-color: transparent; }
.home .navbar.scrolled .navbar-collapse { background-color: rgba(255,255,255,0.6); }

/* Scroll indicator */
.scroll-indicator {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    color: #fff;
    font-size: var(--font-size-sm);
    opacity: 0.9;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.scroll-indicator .mouse {
    width: 22px;
    height: 34px;
    border: 2px solid rgba(255,255,255,0.8);
    border-radius: 16px;
    position: relative;
}

.scroll-indicator .wheel {
    width: 3px;
    height: 6px;
    background: #fff;
    border-radius: 2px;
    position: absolute;
    left: 50%;
    top: 6px;
    transform: translateX(-50%);
    animation: wheel 1.5s ease-in-out infinite;
}

@keyframes wheel {
    0% { opacity: 1; transform: translate(-50%, 0); }
    60% { opacity: 0; transform: translate(-50%, 10px); }
    100% { opacity: 0; transform: translate(-50%, 10px); }
}

/* Mosaic grid */
.mosaic {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    grid-auto-rows: 120px;
    gap: 12px;
}

.mosaic-item {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
}

.mosaic-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.mosaic-item:hover img { transform: scale(1.06); }
.mosaic-item .overlay { position:absolute; inset:0; background: linear-gradient(180deg, rgba(0,0,0,0) 40%, rgba(0,0,0,.45)); }
.mosaic-item .title { position:absolute; left:12px; bottom:10px; color:#fff; font-weight:600; }

@media (max-width: 991px){ .mosaic{ grid-template-columns: repeat(4, 1fr); grid-auto-rows: 100px; } }
@media (max-width: 575px){ .mosaic{ grid-template-columns: repeat(2, 1fr); grid-auto-rows: 100px; } }

/* ===== Hero Section ===== */
.hero-section {
    position: relative;
    height: 100vh;
    min-height: 600px;
    overflow: hidden;
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
    z-index: 0;
    opacity: 0;
    transition: opacity var(--transition-slow);
}

.hero-video.show {
    opacity: 1;
}

.hero-slider {
    position: relative;
    width: 100%;
    height: 100%;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity var(--transition-slow);
}

.hero-slide.active {
    opacity: 1;
}

.hero-image {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: opacity var(--transition-slow);
}

/* Swiper hero specific */
.hero-swiper { position: absolute; inset: 0; z-index: 1; }
.hero-swiper .swiper-slide { position: relative; }
.hero-swiper .swiper-slide img { width: 100%; height: 100vh; min-height: 600px; object-fit: cover; display: block; }
.hero-swiper .swiper-button-prev, .hero-swiper .swiper-button-next { color: #fff; }
.hero-swiper .swiper-pagination-bullet { background: rgba(255,255,255,0.7); }
.hero-swiper .swiper-pagination-bullet-active { background: #fff; }

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(242, 239, 231, 0.55);
}

/* Home video should have no tint/overlay */
.home .hero-overlay { background: transparent; }
/* Hide fallback hero image layer on home to avoid flash before video */
.home .hero-slider .hero-image { display: none; }

/* When video is ready, fade out the fallback image layer */
.hero-video.show ~ .hero-slider .hero-image {
    opacity: 0;
}

.hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    z-index: 2;
}

.hero-title.scroll-animate { opacity: 0; transform: translateY(30px); }
.hero-subtitle.scroll-animate { opacity: 0; transform: translateY(30px); }
.hero-content .btn.scroll-animate { opacity: 0; transform: translateY(30px); }

.hero-title {
    font-size: var(--font-size-4xl);
    font-weight: 700;
    color: var(--white);
    margin-bottom: var(--spacing-lg);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: var(--font-size-xl);
    color: var(--white);
    margin-bottom: var(--spacing-xl);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.hero-buttons {
    margin-top: var(--spacing-xl);
}

/* Slider Controls */
.slider-controls {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    z-index: 3;
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: var(--white);
    width: 50px;
    height: 50px;
    border-radius: var(--radius-full);
    font-size: var(--font-size-lg);
    cursor: pointer;
    transition: all var(--transition-normal);
    backdrop-filter: blur(10px);
}

.slider-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-50%) scale(1.1);
}

.prev-btn {
    left: var(--spacing-xl);
}

.next-btn {
    right: var(--spacing-xl);
}

/* Slider Indicators */
.slider-indicators {
    position: absolute;
    bottom: var(--spacing-xl);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: var(--spacing-sm);
    z-index: 3;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all var(--transition-normal);
}

.indicator.active {
    background: var(--white);
    transform: scale(1.2);
}

/* ===== Section Styles ===== */
.section-title {
    font-size: var(--font-size-3xl);
    font-weight: 700;
    color: var(--main-text-color) !important; /* // updated: 統一企業色 */
    text-align: center;
    margin-bottom: var(--spacing-md);
    letter-spacing: 0.02em;
}

.section-subtitle {
    font-size: var(--font-size-lg);
    color: var(--main-text-color) !important; /* // updated: 統一企業色 */
    text-align: center;
    margin-bottom: var(--spacing-xl);
}

/* ===== Featured Works (Hiyori-like) ===== */
.featured-works {
    background: #fff;
}

.fw-intro {
    max-width: 760px;
    margin: 0 auto var(--spacing-2xl);
    color: var(--medium-color);
    text-align: center;
}

.fw-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

@media (max-width: 991px) {
    .fw-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 575px) {
    .fw-grid { grid-template-columns: 1fr; }
}

.fw-card {
    position: relative;
    overflow: hidden;
    border-radius: 14px;
    background: #f5f5f5;
}

.fw-card .fw-media {
    position: relative;
    width: 100%;
    padding-top: 66.66%; /* 3:2 ratio */
}

.fw-card img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: translateZ(0);
    transition: transform 3s ease; /* long, refined motion */
}

.fw-card:hover img,
.fw-card:focus-within img,
.fw-card:active img {
    transform: scale(1.05) translateY(-5px);
}

.fw-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0) 40%, rgba(0,0,0,0.55) 100%);
    opacity: 0;
    transition: opacity .6s ease;
}

.fw-card:hover .fw-overlay,
.fw-card:focus-within .fw-overlay,
.fw-card:active .fw-overlay {
    opacity: 1;
}

.fw-meta {
    position: absolute;
    left: 16px;
    right: 16px;
    bottom: 14px;
    color: #fff;
    transform: translateY(12px);
    opacity: 0;
    transition: transform .6s ease, opacity .6s ease;
}

.fw-card:hover .fw-meta,
.fw-card:focus-within .fw-meta,
.fw-card:active .fw-meta {
    transform: translateY(0);
    opacity: 1;
}

.fw-title { font-weight: 700; letter-spacing: .02em; }
.fw-desc  { font-size: var(--font-size-sm); opacity: .9; }

/* ===== Featured Projects ===== */
.featured-projects {
    padding: var(--spacing-3xl) 0;
}

.project-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-normal);
    height: 100%;
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.project-image {
    position: relative;
    overflow: hidden;
    height: 250px;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.project-card:hover .project-image img {
    transform: scale(1.1);
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(44, 62, 80, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.project-content {
    padding: var(--spacing-lg);
}

.project-title {
    font-size: var(--font-size-xl);
    font-weight: 600;
    color: var(--main-text-color) !important; /* // updated: 統一企業色 */
    margin-bottom: var(--spacing-sm);
}

.project-description {
    color: var(--medium-color);
    margin-bottom: var(--spacing-md);
}

.project-tags {
    display: flex;
    gap: var(--spacing-xs);
    flex-wrap: wrap;
}

.tag {
    background: rgba(242, 239, 231, 0.3);
    color: var(--dark-color);
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: var(--radius-sm);
    font-size: var(--font-size-sm);
    font-weight: 500;
}

/* ===== Services Section ===== */
.services-section {
    background: linear-gradient(180deg, #FFFFFF 0%, #F2EFE7 100%);
    position: relative;
    overflow: hidden;
}

.services-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 50%, rgba(106, 127, 95, 0.03) 0%, transparent 50%);
    pointer-events: none;
}

.service-card {
    background: var(--white);
    padding: var(--spacing-xl);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-normal);
    height: 100%;
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.service-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-color));
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--spacing-lg);
    font-size: var(--font-size-2xl);
    color: var(--white);
}

.service-title {
    font-size: var(--font-size-xl);
    font-weight: 600;
    color: var(--main-text-color) !important; /* // updated: 統一企業色 */
    margin-bottom: var(--spacing-md);
}

.service-description {
    color: var(--medium-color);
}

/* ===== New Service Card Design ===== */
.service-card-new {
    background: #FFFFFF;
    padding: var(--spacing-2xl) var(--spacing-xl);
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(106, 127, 95, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(106, 127, 95, 0.1);
}

.service-card-new::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #6A7F5F 0%, rgba(106, 127, 95, 0.5) 100%);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.service-card-new:hover::before {
    transform: scaleX(1);
}

.service-card-new:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(106, 127, 95, 0.15);
    border-color: rgba(106, 127, 95, 0.3);
}

.service-icon-wrapper {
    position: relative;
    width: 100px;
    height: 100px;
    margin: 0 auto var(--spacing-xl);
}

.service-icon-wrapper .service-icon {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #6A7F5F 0%, #5a6f4f 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: #FFFFFF;
    position: relative;
    z-index: 2;
    transition: all 0.4s ease;
    box-shadow: 0 8px 24px rgba(106, 127, 95, 0.2);
}

.service-icon-wrapper .service-icon-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(106, 127, 95, 0.15) 0%, rgba(106, 127, 95, 0.05) 100%);
    border-radius: 50%;
    z-index: 1;
    transition: all 0.4s ease;
}

.service-card-new:hover .service-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 12px 32px rgba(106, 127, 95, 0.3);
}

.service-card-new:hover .service-icon-bg {
    transform: translate(-50%, -50%) scale(1.2);
    opacity: 0.6;
}

.service-title-new {
    font-size: var(--font-size-xl);
    font-weight: 700;
    color: #6A7F5F !important;
    margin-bottom: var(--spacing-md);
    transition: color 0.3s ease;
}

.service-description-new {
    color: #6A7F5F !important;
    opacity: 0.85;
    line-height: 1.7;
    margin-bottom: var(--spacing-lg);
    transition: opacity 0.3s ease;
}

.service-card-new:hover .service-description-new {
    opacity: 1;
}

.service-divider {
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, transparent 0%, #6A7F5F 50%, transparent 100%);
    margin: 0 auto;
    opacity: 0.3;
    transition: all 0.4s ease;
}

.service-card-new:hover .service-divider {
    width: 100px;
    opacity: 0.6;
}

@media (max-width: 768px) {
    .service-card-new {
        padding: var(--spacing-xl) var(--spacing-lg);
    }
    
    .service-icon-wrapper {
        width: 80px;
        height: 80px;
        margin-bottom: var(--spacing-lg);
    }
    
    .service-icon-wrapper .service-icon {
        font-size: 2rem;
    }
}

/* ===== About Section ===== */
.about-section {
    padding: var(--spacing-3xl) 0;
}

.about-content {
    padding-right: var(--spacing-xl);
}

/* Ensure the About section button text is white */
.about-content .btn {
    color: #FFFFFF !important;
}

.about-description {
    font-size: var(--font-size-lg);
    line-height: 1.8;
    margin-bottom: var(--spacing-lg);
}

.about-stats {
    display: flex;
    gap: var(--spacing-xl);
    margin: var(--spacing-xl) 0;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: var(--font-size-3xl);
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: var(--spacing-xs);
}

.stat-label {
    color: var(--medium-color);
    font-weight: 500;
}

.about-image {
    position: relative;
}

.about-image img {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

/* ===== Testimonials Section ===== */
.testimonials-section {
    background-color: var(--very-light);
}

.testimonial-card {
    background: var(--white);
    padding: var(--spacing-xl);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    height: 100%;
    transition: all var(--transition-normal);
}

.testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.testimonial-content {
    margin-bottom: var(--spacing-lg);
}

.stars {
    color: var(--warning-color);
    margin-bottom: var(--spacing-md);
}

.testimonial-text {
    font-style: italic;
    font-size: var(--font-size-lg);
    line-height: 1.7;
    color: var(--medium-color);
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

.author-avatar {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-full);
    overflow: hidden;
    flex-shrink: 0;
}

.author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.author-name {
    font-size: var(--font-size-lg);
    font-weight: 600;
    color: var(--main-text-color) !important; /* // updated: 統一企業色 */
    margin-bottom: var(--spacing-xs);
}

.author-title {
    color: var(--medium-color);
    font-size: var(--font-size-sm);
}

/* ===== CTA Section ===== */
.cta-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, #5d6f54 100%);
    color: var(--white);
    text-align: center;
}

.cta-title {
    font-size: var(--font-size-3xl);
    font-weight: 700;
    margin-bottom: var(--spacing-md);
}

.cta-subtitle {
    font-size: var(--font-size-lg);
    margin-bottom: var(--spacing-xl);
    opacity: 0.9;
}

.cta-buttons {
    margin-top: var(--spacing-xl);
}

/* Ensure CTA buttons' text is white */
.cta-buttons .btn {
    color: #FFFFFF !important;
}

/* Homepage CTA redesign */
.cta-home { /* // updated */
    background: #F2EFE7 !important; /* brand background */
    color: #6A7F5F; /* brand text */
}

.cta-card { /* // updated */
    position: relative;
    background: #FFFFFF;
    border: 1px solid rgba(106,127,95,0.15);
    border-radius: 24px;
    padding: var(--spacing-3xl) var(--spacing-2xl);
    overflow: hidden;
    box-shadow: 0 12px 40px rgba(106,127,95,0.12);
}

.cta-card::before, .cta-card::after { /* // updated decorative blobs */
    content: '';
    position: absolute;
    border-radius: 50%;
    filter: blur(20px);
    opacity: 0.12;
}

.cta-card::before { /* left blob */
    width: 240px; height: 240px;
    left: -60px; top: -60px;
    background: radial-gradient(circle, #6A7F5F 0%, transparent 60%);
}

.cta-card::after { /* right blob */
    width: 280px; height: 280px;
    right: -80px; bottom: -80px;
    background: radial-gradient(circle, #6A7F5F 0%, transparent 60%);
}

.cta-home .cta-title { /* // updated */
    color: #6A7F5F !important;
}
.cta-home .cta-subtitle { /* // updated */
    color: #6A7F5F !important;
    opacity: 0.9;
}

.cta-badge { /* // updated */
    display: inline-block;
    padding: 6px 12px;
    font-size: var(--font-size-sm);
    color: #6A7F5F;
    background: rgba(106,127,95,0.12);
    border: 1px solid rgba(106,127,95,0.25);
    border-radius: 999px;
    margin-bottom: var(--spacing-md);
}

.cta-home .btn { /* // updated ensure spacing */
    min-width: 180px;
}

@media (max-width: 768px) {
    .cta-card { padding: var(--spacing-2xl) var(--spacing-xl); }
    .cta-home .btn { width: 100%; margin: 0 0 var(--spacing-md) 0; }
    .cta-buttons { display: grid; gap: var(--spacing-md); justify-items: center; }
}

/* ===== Footer ===== */
.footer {
    background-color: var(--dark-color);
    color: var(--white);
}

.footer-brand {
    margin-bottom: var(--spacing-lg);
}

.footer-logo {
    height: 40px;
    width: auto;
    margin-bottom: var(--spacing-sm);
}

.footer-brand-text {
    font-size: var(--font-size-xl);
    font-weight: 700;
    margin-bottom: var(--spacing-md);
}

.footer-description {
    color: var(--light-color);
    line-height: 1.6;
}

.footer-title {
    font-size: var(--font-size-lg);
    font-weight: 600;
    margin-bottom: var(--spacing-lg);
    color: var(--white);
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: var(--spacing-sm);
}

.footer-links a {
    color: var(--light-color);
    transition: color var(--transition-fast);
}

.footer-links a:hover {
    color: var(--secondary-color);
}

.footer-contact p {
    margin-bottom: var(--spacing-sm);
    color: var(--light-color);
}

.footer-contact i {
    color: var(--secondary-color);
    width: 20px;
}

.footer-social {
    display: flex;
    gap: var(--spacing-md);
}

/* Social Icon - 獨立設定，不影響 footer 其他連結 */
.social-icon {
    width: 40px;
    height: 40px;
    background: #6A7F5F !important; /* // updated: 企業色背景 */
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white) !important; /* // updated: 確保圖標為白色 */
    transition: all var(--transition-normal);
    text-decoration: none; /* // updated: 移除預設連結樣式 */
}

.social-icon:hover {
    background: #7A8F6F !important; /* // updated: hover 時稍亮的企業色 */
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(106, 127, 95, 0.3);
    color: var(--white) !important; /* // updated: hover 時保持白色 */
}

/* 保留原有的 social-link 樣式（如果其他地方有使用） */
.social-link {
    width: 40px;
    height: 40px;
    background: var(--medium-dark);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    transition: all var(--transition-normal);
}

.social-link:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
}

.footer-divider {
    border-color: var(--medium-dark);
    margin: var(--spacing-xl) 0;
}

.footer-copyright {
    color: var(--light-color);
    text-align: center;
    margin: 0;
}

.footer-link {
    color: var(--light-color);
    transition: color var(--transition-fast);
}

.footer-link:hover {
    color: var(--secondary-color);
}

/* ===== Back to Top Button ===== */
.back-to-top {
    position: fixed;
    bottom: var(--spacing-xl);
    right: var(--spacing-xl);
    width: 50px;
    height: 50px;
    background: var(--secondary-color);
    color: var(--white);
    border: none;
    border-radius: var(--radius-full);
    font-size: var(--font-size-lg);
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-normal);
    z-index: 1000;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--primary-color);
    transform: translateY(-2px);
}

/* ===== Utility Classes ===== */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: var(--spacing-xs); }
.mb-2 { margin-bottom: var(--spacing-sm); }
.mb-3 { margin-bottom: var(--spacing-md); }
.mb-4 { margin-bottom: var(--spacing-lg); }
.mb-5 { margin-bottom: var(--spacing-xl); }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: var(--spacing-xs); }
.mt-2 { margin-top: var(--spacing-sm); }
.mt-3 { margin-top: var(--spacing-md); }
.mt-4 { margin-top: var(--spacing-lg); }
.mt-5 { margin-top: var(--spacing-xl); }

.py-5 { padding: var(--spacing-3xl) 0; }
.px-5 { padding: 0 var(--spacing-3xl); }

.bg-light { background-color: var(--very-light); }
.bg-dark { background-color: var(--dark-color); }

.shadow-sm { box-shadow: var(--shadow-sm); }
.shadow-md { box-shadow: var(--shadow-md); }
.shadow-lg { box-shadow: var(--shadow-lg); }
.shadow-xl { box-shadow: var(--shadow-xl); }

.rounded { border-radius: var(--radius-md); }
.rounded-lg { border-radius: var(--radius-lg); }
.rounded-xl { border-radius: var(--radius-xl); }

/* Brand card for non-white panels */
.brand-card { /* // updated */
    background-color: #6A7F5F !important; /* // updated */
    color: #FFFFFF !important; /* // updated */
    border-radius: 16px; /* // updated */
}

/* Apply brand card styling to all site cards */
.service-card, .testimonial-card, .project-card, .philosophy-card, .workflow-item { /* // updated */
    background-color: #6A7F5F !important; /* // updated */
    color: #FFFFFF !important; /* // updated */
}

/* Ensure titles/paragraphs are readable on brand background */
.service-card .service-title,
.testimonial-card .author-name,
.project-card .project-title,
.philosophy-card .philosophy-title,
.workflow-item .wi-title { /* // updated */
    color: #FFFFFF !important; /* // updated */
}

/* Exception: White background cards in design-philosophy section */
.design-philosophy .philosophy-card .philosophy-title {
    color: #6A7F5F !important; /* // updated: 品牌色文字在白色卡片上 */
}

.workflow-item .wi-desc,
.workflow-item .wi-list li,
.project-card .project-description,
.service-card .service-description,
.philosophy-card .philosophy-description,
.testimonial-card .testimonial-text { /* // updated */
    color: rgba(255,255,255,0.92) !important; /* // updated */
}

/* Exception: White background cards in design-philosophy section */
.design-philosophy .philosophy-card .philosophy-description {
    color: #6A7F5F !important; /* // updated: 品牌色文字在白色卡片上 */
}

/* Adjust checklist/checkmark color for visibility */
.workflow-item .wi-list li:before { /* // updated */
    color: #FFFFFF !important; /* // updated */
}

/* Links/buttons inside brand cards */
.service-card a, .testimonial-card a, .project-card a, .philosophy-card a, .workflow-item a { /* // updated */
    color: #FFFFFF !important; /* // updated */
}

/* ===== Animation Classes ===== */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all var(--transition-slow);
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.slide-in-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: all var(--transition-slow);
}

.slide-in-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.slide-in-right {
    opacity: 0;
    transform: translateX(50px);
    transition: all var(--transition-slow);
}

.slide-in-right.visible {
    opacity: 1;
    transform: translateX(0);
}

.scale-in {
    opacity: 0;
    transform: scale(0.8);
    transition: all var(--transition-slow);
}

.scale-in.visible {
    opacity: 1;
    transform: scale(1);
}

/* ===== Floating Contact Bar ===== */
.float-contact {
    position: fixed;
    top: 50%;
    right: 16px;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 1100;
}

.float-contact .fc-item {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-full);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: var(--primary-color);
    box-shadow: var(--shadow-lg);
    border: none;
    cursor: pointer;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast);
}

.float-contact .fc-item:hover { transform: translateY(-2px) scale(1.03); box-shadow: var(--shadow-xl); }
.float-contact .fc-item:active { transform: scale(0.98); }

.float-contact .fc-item.line { background: #06C755; }
.float-contact .fc-item.phone { background: var(--primary-color); }
.float-contact .fc-item.form { background: var(--secondary-color); }
.float-contact .fc-item.to-top { background: rgba(0,0,0,0.6); }

@media (max-width: 767px) {
    .float-contact {
        top: auto;
        bottom: 16px;
        right: 16px;
        transform: none;
        flex-direction: row;
    }
}

/* ===== Global Text Color Override - Brand Color #6A7F5F ===== */
/* // updated: 確保所有文字元素統一使用企業色 */
span:not(.fw-title):not(.fw-desc):not(.fw-meta),
label,
.footer-links a,
.footer-contact p,
.footer-description,
.project-description,
.service-description,
.author-title,
.about-description,
.stat-label {
    color: var(--main-text-color) !important; /* // updated: 統一企業色 */
}
